@metamask/snaps-execution-environments 0.27.1 → 0.28.0
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/dist/common/BaseSnapExecutor.d.ts +1 -1
- package/dist/common/BaseSnapExecutor.js +14 -2
- package/dist/common/BaseSnapExecutor.js.map +1 -1
- package/dist/common/endowments/network.d.ts +1 -41
- package/dist/common/endowments/network.js +7 -205
- package/dist/common/endowments/network.js.map +1 -1
- package/dist/common/utils.d.ts +0 -16
- package/dist/common/utils.js +1 -41
- package/dist/common/utils.js.map +1 -1
- package/dist/common/validation.d.ts +8 -8
- package/dist/offscreen/OffscreenSnapExecutor.d.ts +34 -0
- package/dist/offscreen/OffscreenSnapExecutor.js +104 -0
- package/dist/offscreen/OffscreenSnapExecutor.js.map +1 -0
- package/dist/offscreen/index.d.ts +1 -0
- package/dist/offscreen/index.js +15 -0
- package/dist/offscreen/index.js.map +1 -0
- package/dist/webpack/iframe/bundle.js +1750 -1
- package/dist/webpack/iframe/bundle.js.LICENSE.txt +0 -2
- package/dist/webpack/iframe/lockdown.umd.min.js +1 -1
- package/dist/webpack/node-process/bundle.js +23 -10
- package/dist/webpack/node-process/bundle.js.LICENSE.txt +0 -2
- package/dist/webpack/node-process/lockdown.umd.min.js +1 -1
- package/dist/webpack/node-thread/bundle.js +23 -10
- package/dist/webpack/node-thread/bundle.js.LICENSE.txt +0 -2
- package/dist/webpack/node-thread/lockdown.umd.min.js +1 -1
- package/dist/webpack/offscreen/bundle.js +1751 -0
- package/dist/webpack/offscreen/bundle.js.LICENSE.txt +25 -0
- package/dist/webpack/offscreen/index.html +11 -0
- package/dist/webpack/offscreen/lockdown.umd.min.js +1 -0
- package/package.json +13 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{const e=[({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([]);const n=globalThis;r.universalThis(n);const{Array:a,Date:s,FinalizationRegistry:i,Float32Array:c,JSON:l,Map:p,Math:m,Number:u,Object:y,Promise:f,Proxy:g,Reflect:d,RegExp:b,Set:E,String:w,WeakMap:P,WeakSet:S}=globalThis;r.Array(a),r.Date(s),r.FinalizationRegistry(i),r.Float32Array(c),r.JSON(l),r.Map(p),r.Math(m),r.Number(u),r.Object(y),r.Promise(f),r.Proxy(g),r.Reflect(d),r.FERAL_REG_EXP(b),r.Set(E),r.String(w),r.WeakMap(P),r.WeakSet(S);const{Error:h,RangeError:v,ReferenceError:j,SyntaxError:k,TypeError:T}=globalThis;r.FERAL_ERROR(h),r.RangeError(v),r.ReferenceError(j),r.SyntaxError(k),r.TypeError(T);const{assign:A,create:x,defineProperties:M,entries:I,freeze:O,getOwnPropertyDescriptor:C,getOwnPropertyDescriptors:_,getOwnPropertyNames:F,getPrototypeOf:R,is:V,isExtensible:N,keys:L,prototype:$,seal:D,preventExtensions:G,setPrototypeOf:U,values:H,fromEntries:z}=y;r.assign(A),r.create(x),r.defineProperties(M),r.entries(I),r.freeze(O),r.getOwnPropertyDescriptor(C),r.getOwnPropertyDescriptors(_),r.getOwnPropertyNames(F),r.getPrototypeOf(R),r.is(V),r.isExtensible(N),r.keys(L),r.objectPrototype($),r.seal(D),r.preventExtensions(G),r.setPrototypeOf(U),r.values(H),r.fromEntries(z);const{species:W,toStringTag:B,iterator:K,matchAll:J,unscopables:q,keyFor:Y,for:X}=Symbol;r.speciesSymbol(W),r.toStringTagSymbol(B),r.iteratorSymbol(K),r.matchAllSymbol(J),r.unscopablesSymbol(q),r.symbolKeyFor(Y),r.symbolFor(X);const{isInteger:Z}=u;r.isInteger(Z);const{stringify:Q}=l;r.stringifyJson(Q);const{defineProperty:ee}=y;r.defineProperty(((e,t,r)=>{const o=ee(e,t,r);if(o!==e)throw T(`Please report that the original defineProperty silently failed to set ${Q(w(t))}. (SES_DEFINE_PROPERTY_FAILED_SILENTLY)`);return o}));const{apply:te,construct:re,get:oe,getOwnPropertyDescriptor:ne,has:ae,isExtensible:se,ownKeys:ie,preventExtensions:ce,set:le}=d;r.apply(te),r.construct(re),r.reflectGet(oe),r.reflectGetOwnPropertyDescriptor(ne),r.reflectHas(ae),r.reflectIsExtensible(se),r.ownKeys(ie),r.reflectPreventExtensions(ce),r.reflectSet(le);const{isArray:pe,prototype:me}=a;r.isArray(pe),r.arrayPrototype(me);const{prototype:ue}=p;r.mapPrototype(ue);const{revocable:ye}=g;r.proxyRevocable(ye);const{prototype:fe}=RegExp;r.regexpPrototype(fe);const{prototype:ge}=E;r.setPrototype(ge);const{prototype:de}=w;r.stringPrototype(de);const{prototype:be}=P;r.weakmapPrototype(be);const{prototype:Ee}=S;r.weaksetPrototype(Ee);const{prototype:we}=Function;r.functionPrototype(we);const{prototype:Pe}=f;r.promisePrototype(Pe);const Se=R(Uint8Array.prototype);r.typedArrayPrototype(Se);const{bind:he}=we,ve=he.bind(he.call);r.uncurryThis(ve);const je=ve($.hasOwnProperty);r.objectHasOwnProperty(je);const ke=ve(me.filter);r.arrayFilter(ke);const Te=ve(me.forEach);r.arrayForEach(Te);const Ae=ve(me.includes);r.arrayIncludes(Ae);const xe=ve(me.join);r.arrayJoin(xe);const Me=ve(me.map);r.arrayMap(Me);const Ie=ve(me.pop);r.arrayPop(Ie);const Oe=ve(me.push);r.arrayPush(Oe);const Ce=ve(me.slice);r.arraySlice(Ce);const _e=ve(me.some);r.arraySome(_e);const Fe=ve(me.sort);r.arraySort(Fe);const Re=ve(me[K]);r.iterateArray(Re);const Ve=ve(ue.set);r.mapSet(Ve);const Ne=ve(ue.get);r.mapGet(Ne);const Le=ve(ue.has);r.mapHas(Le);const $e=ve(ue.delete);r.mapDelete($e);const De=ve(ue.entries);r.mapEntries(De);const Ge=ve(ue[K]);r.iterateMap(Ge);const Ue=ve(ge.add);r.setAdd(Ue);const He=ve(ge.delete);r.setDelete(He);const ze=ve(ge.forEach);r.setForEach(ze);const We=ve(ge.has);r.setHas(We);const Be=ve(ge[K]);r.iterateSet(Be);const Ke=ve(fe.test);r.regexpTest(Ke);const Je=ve(fe.exec);r.regexpExec(Je);const qe=ve(fe[J]);r.matchAllRegExp(qe);const Ye=ve(de.endsWith);r.stringEndsWith(Ye);const Xe=ve(de.includes);r.stringIncludes(Xe);const Ze=ve(de.indexOf);r.stringIndexOf(Ze);const Qe=ve(de.match);r.stringMatch(Qe);const et=ve(de.replace);r.stringReplace(et);const tt=ve(de.search);r.stringSearch(tt);const rt=ve(de.slice);r.stringSlice(rt);const ot=ve(de.split);r.stringSplit(ot);const nt=ve(de.startsWith);r.stringStartsWith(nt);const at=ve(de[K]);r.iterateString(at);const st=ve(be.delete);r.weakmapDelete(st);const it=ve(be.get);r.weakmapGet(it);const ct=ve(be.has);r.weakmapHas(ct);const lt=ve(be.set);r.weakmapSet(lt);const pt=ve(Ee.add);r.weaksetAdd(pt);const mt=ve(Ee.get);r.weaksetGet(mt);const ut=ve(Ee.has);r.weaksetHas(ut);const yt=ve(we.toString);r.functionToString(yt);const{all:ft}=f;r.promiseAll((e=>te(ft,f,[e])));const gt=ve(Pe.catch);r.promiseCatch(gt);const dt=ve(Pe.then);r.promiseThen(dt);const bt=i&&ve(i.prototype.register);r.finalizationRegistryRegister(bt);const Et=i&&ve(i.prototype.unregister);r.finalizationRegistryUnregister(Et),r.getConstructorOf((e=>oe(R(e),"constructor")));const wt=O(x(null));r.immutableObject(wt),r.isObject((e=>y(e)===e)),r.isError((e=>e instanceof h));const Pt=eval;r.FERAL_EVAL(Pt);const St=Function;r.FERAL_FUNCTION(St),r.noEvalEvaluate((()=>{throw new T('Cannot eval with evalTaming set to "noEval" (SES_NO_EVAL)')}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([])},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d;e([["../commons.js",[["Set",[e=>n=e]],["String",[e=>a=e]],["arrayJoin",[e=>s=e]],["arraySlice",[e=>i=e]],["freeze",[e=>c=e]],["is",[e=>l=e]],["isError",[e=>p=e]],["setAdd",[e=>m=e]],["setHas",[e=>u=e]],["stringIncludes",[e=>y=e]],["stringStartsWith",[e=>f=e]],["stringifyJson",[e=>g=e]],["toStringTagSymbol",[e=>d=e]]]]]),r.enJoin(((e,t)=>{if(0===e.length)return"(none)";if(1===e.length)return e[0];if(2===e.length){const[r,o]=e;return`${r} ${t} ${o}`}return`${s(i(e,0,-1),", ")}, ${t} ${e[e.length-1]}`}));const b=e=>(e=""+e).length>=1&&y("aeiouAEIOU",e[0])?"an "+e:"a "+e;r.an(b),c(b);const E=(e,t)=>{const r=new n,o=(e,t)=>{switch(typeof t){case"object":return null===t?null:u(r,t)?"[Seen]":(m(r,t),p(t)?`[${t.name}: ${t.message}]`:d in t?`[${t[d]}]`:t);case"function":return`[Function ${t.name||"<anon>"}]`;case"string":return f(t,"[")?`[${t}]`:t;case"undefined":case"symbol":return`[${a(t)}]`;case"bigint":return`[${t}n]`;case"number":return l(t,NaN)?"[NaN]":t===1/0?"[Infinity]":t===-1/0?"[-Infinity]":t;default:return t}};try{return g(e,o,t)}catch(e){return"[Something that failed to stringify]"}};r.bestEffortStringify(E),c(E)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([])},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S,h,v,j,k;e([["../commons.js",[["RangeError",[e=>n=e]],["TypeError",[e=>a=e]],["WeakMap",[e=>s=e]],["arrayJoin",[e=>i=e]],["arrayMap",[e=>c=e]],["arrayPop",[e=>l=e]],["arrayPush",[e=>p=e]],["assign",[e=>m=e]],["freeze",[e=>u=e]],["globalThis",[e=>y=e]],["is",[e=>f=e]],["isError",[e=>g=e]],["stringIndexOf",[e=>d=e]],["stringReplace",[e=>b=e]],["stringSlice",[e=>E=e]],["stringStartsWith",[e=>w=e]],["weakmapDelete",[e=>P=e]],["weakmapGet",[e=>S=e]],["weakmapHas",[e=>h=e]],["weakmapSet",[e=>v=e]]]],["./stringify-utils.js",[["an",[e=>j=e]],["bestEffortStringify",[e=>k=e]]]],["./types.js",[]],["./internal-types.js",[]]]);const T=new s,A=(e,t)=>{const r=u({toString:u((()=>k(e,t)))});return v(T,r,e),r};u(A);const x=new s,M=({template:e,args:t})=>{const r=[e[0]];for(let o=0;o<t.length;o+=1){const n=t[o];let a;a=h(T,n)?""+n:g(n)?`(${j(n.name)})`:`(${j(typeof n)})`,p(r,a,e[o+1])}return i(r,"")},I=u({toString(){const e=S(x,this);return void 0===e?"[Not a DetailsToken]":M(e)}});u(I.toString);const O=(e,...t)=>{const r=u({__proto__:I});return v(x,r,{template:e,args:t}),r};u(O);const C=(e,...t)=>(t=c(t,(e=>h(T,e)?e:A(e))),O(e,...t));r.unredactedDetails(C),u(C);const _=({template:e,args:t})=>{const r=[e[0]];for(let o=0;o<t.length;o+=1){let n=t[o];h(T,n)&&(n=S(T,n));const a=b(l(r)||"",/ $/,"");""!==a&&p(r,a);const s=b(e[o+1],/^ /,"");p(r,n,s)}return""===r[r.length-1]&&l(r),r},F=new s;let R=0;const V=new s,N=(e,t=e.name)=>{let r=S(V,e);return void 0!==r||(R+=1,r=`${t}#${R}`,v(V,e,r)),r},L=(e=O`Assert failed`,t=y.Error,{errorName:r}={})=>{"string"==typeof e&&(e=O([e]));const o=S(x,e);if(void 0===o)throw new a("unrecognized details "+A(e));const n=new t(M(o));return v(F,n,_(o)),void 0!==r&&N(n,r),n};u(L);const $=new s,D=new s,G=(e,t)=>{"string"==typeof t&&(t=O([t]));const r=S(x,t);if(void 0===r)throw new a("unrecognized details "+A(t));const o=_(r),n=S(D,e);if(void 0!==n)for(const t of n)t(e,o);else{const t=S($,e);void 0!==t?p(t,o):v($,e,[o])}};u(G);const U={getStackString:y.getStackString||(e=>{if(!("stack"in e))return"";const t=""+e.stack,r=d(t,"\n");return w(t," ")||-1===r?t:E(t,r+1)}),tagError:e=>N(e),resetErrorTagNum:()=>{R=0},getMessageLogArgs:e=>S(F,e),takeMessageLogArgs:e=>{const t=S(F,e);return P(F,e),t},takeNoteLogArgsArray:(e,t)=>{const r=S($,e);if(P($,e),void 0!==t){const r=S(D,e);r?p(r,t):v(D,e,[t])}return r||[]}};r.loggedErrorHandler(U),u(U);const H=(e,t=!1)=>{const r=t?C:O,o=(t=r`Assert failed`,o=y.Error)=>{const n=L(t,o);throw void 0!==e&&e(n),n};function s(e,t=r`Check failed`,n=y.Error){if(!e)throw o(t,n)}u(o);const i=(e,t,o=r`Expected ${e} is same as ${t}`,a=n)=>{s(f(e,t),o,a)};u(i);const c=(e,t,o)=>{s("string"==typeof t,r`${A(t)} must be a string`),void 0===o&&(o=r([""," must be "+j(t)],e)),i(typeof e,t,o,a)};u(c);const l=m(s,{error:L,fail:o,equal:i,typeof:c,string:(e,t)=>c(e,"string",t),note:G,details:r,quote:A,makeAssert:H});return u(l)};r.makeAssert(H),u(H);const z=H();r.assert(z)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c;e([["./commons.js",[["FERAL_EVAL",[e=>n=e]],["create",[e=>a=e]],["defineProperties",[e=>s=e]],["freeze",[e=>i=e]]]],["./error/assert.js",[["assert",[e=>c=e]]]]]);const{details:l}=c;r.makeEvalScopeKit((()=>{const e=a(null),t=i({eval:{get:()=>(delete e.eval,n),enumerable:!1,configurable:!0}}),r={evalScope:e,allowNextEvalToBeUnsafe(){null!==r.revoked&&c.fail(l`a handler did not reset allowNextEvalToBeUnsafe ${this.revoked.err}`),s(e,t)},revoked:null};return r}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l;e([["./commons.js",[["arrayFilter",[e=>n=e]],["arrayIncludes",[e=>a=e]],["getOwnPropertyDescriptor",[e=>s=e]],["getOwnPropertyNames",[e=>i=e]],["objectHasOwnProperty",[e=>c=e]],["regexpTest",[e=>l=e]]]]]);const p=["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","let","static","enum","implements","package","protected","interface","private","public","await","null","true","false","this","arguments"],m=/^[a-zA-Z_$][\w$]*$/,u=e=>"eval"!==e&&!a(p,e)&&l(m,e);function y(e,t){const r=s(e,t);return!1===r.configurable&&!1===r.writable&&c(r,"value")}r.isValidIdentifierName(u),r.getScopeConstants(((e,t={})=>{const r=i(e),o=i(t),s=n(o,(e=>u(e)&&y(t,e)));return{globalObjectConstants:n(r,(t=>!a(o,t)&&u(t)&&y(e,t))),globalLexicalConstants:s}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i;function c(e,t){return 0===e.length?"":`const {${a(e,",")}} = this.${t};`}e([["./commons.js",[["FERAL_FUNCTION",[e=>n=e]],["arrayJoin",[e=>a=e]],["apply",[e=>s=e]]]],["./scope-constants.js",[["getScopeConstants",[e=>i=e]]]]]),r.makeEvaluate((e=>{const{globalObjectConstants:t,globalLexicalConstants:r}=i(e.globalObject,e.globalLexicals),o=c(t,"globalObject"),a=c(r,"globalLexicals"),l=n(`\n with (this.scopeTerminator) {\n with (this.globalObject) {\n with (this.globalLexicals) {\n with (this.evalScope) {\n ${o}\n ${a}\n return function() {\n 'use strict';\n return eval(arguments[0]);\n };\n }\n }\n }\n }\n `);return s(l,e,[])}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y;e([["./commons.js",[["Proxy",[e=>n=e]],["String",[e=>a=e]],["TypeError",[e=>s=e]],["ReferenceError",[e=>i=e]],["create",[e=>c=e]],["freeze",[e=>l=e]],["getOwnPropertyDescriptors",[e=>p=e]],["globalThis",[e=>m=e]],["immutableObject",[e=>u=e]]]],["./error/assert.js",[["assert",[e=>y=e]]]]]);const{details:f,quote:g}=y,d=new n(u,l({get(e,t){y.fail(f`Please report unexpected scope handler trap: ${g(a(t))}`)}}));r.alwaysThrowHandler(d);const b=l(c(d,p({get(e,t){},set(e,t,r){throw new i(a(t)+" is not defined")},has:(e,t)=>t in m,getPrototypeOf:()=>null,getOwnPropertyDescriptor(e,t){const r=g(a(t));console.warn("getOwnPropertyDescriptor trap on scopeTerminatorHandler for "+r,(new s).stack)}})));r.strictScopeTerminatorHandler(b);const E=new n(u,b);r.strictScopeTerminator(E)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m;e([["./commons.js",[["Proxy",[e=>n=e]],["create",[e=>a=e]],["freeze",[e=>s=e]],["getOwnPropertyDescriptors",[e=>i=e]],["immutableObject",[e=>c=e]],["reflectSet",[e=>l=e]]]],["./strict-scope-terminator.js",[["strictScopeTerminatorHandler",[e=>p=e]],["alwaysThrowHandler",[e=>m=e]]]]]),r.createSloppyGlobalsScopeTerminator((e=>{const t={...p,set:(t,r,o)=>l(e,r,o),has:(e,t)=>!0},r=s(a(m,i(t)));return new n(c,r)}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s;e([["./commons.js",[["FERAL_REG_EXP",[e=>n=e]],["regexpExec",[e=>a=e]],["stringSlice",[e=>s=e]]]]]);const i=new n("(?:\\s*//\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)|/\\*\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)\\s*\\*/)\\s*$");r.getSourceURL((e=>{let t="<unknown>";for(;e.length>0;){const r=a(i,e);if(null===r)break;e=s(e,0,e.length-r[0].length),"sourceURL"===r[3]?t=r[4]:"sourceURL"===r[1]&&(t=r[2])}return t}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p;function m(e,t){const r=i(e,t);if(r<0)return-1;const o="\n"===e[r]?1:0;return l(c(e,0,r),"\n").length+o}e([["./commons.js",[["FERAL_REG_EXP",[e=>n=e]],["SyntaxError",[e=>a=e]],["stringReplace",[e=>s=e]],["stringSearch",[e=>i=e]],["stringSlice",[e=>c=e]],["stringSplit",[e=>l=e]]]],["./get-source-url.js",[["getSourceURL",[e=>p=e]]]]]);const u=new n("(?:\x3c!--|--\x3e)","g"),y=e=>{const t=m(e,u);if(t<0)return e;const r=p(e);throw new a(`Possible HTML comment rejected at ${r}:${t}. (SES_HTML_COMMENT_REJECTED)`)};r.rejectHtmlComments(y),r.evadeHtmlCommentTest((e=>s(e,u,(e=>"<"===e[0]?"< ! --":"-- >"))));const f=new n("(^|[^.])\\bimport(\\s*(?:\\(|/[/*]))","g"),g=e=>{const t=m(e,f);if(t<0)return e;const r=p(e);throw new a(`Possible import expression rejected at ${r}:${t}. (SES_IMPORT_REJECTED)`)};r.rejectImportExpressions(g),r.evadeImportExpressionTest((e=>s(e,f,((e,t,r)=>`${t}__import__${r}`))));const d=new n("(^|[^.])\\beval(\\s*\\()","g");r.rejectSomeDirectEvalExpressions((e=>{const t=m(e,d);if(t<0)return e;const r=p(e);throw new a(`Possible direct eval expression rejected at ${r}:${t}. (SES_EVAL_REJECTED)`)})),r.mandatoryTransforms((e=>(e=y(e),g(e)))),r.applyTransforms(((e,t)=>{for(const r of t)e=r(e);return e}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u;e([["./commons.js",[["apply",[e=>n=e]],["freeze",[e=>a=e]]]],["./strict-scope-terminator.js",[["strictScopeTerminator",[e=>s=e]]]],["./sloppy-globals-scope-terminator.js",[["createSloppyGlobalsScopeTerminator",[e=>i=e]]]],["./eval-scope.js",[["makeEvalScopeKit",[e=>c=e]]]],["./transforms.js",[["applyTransforms",[e=>l=e]],["mandatoryTransforms",[e=>p=e]]]],["./make-evaluate.js",[["makeEvaluate",[e=>m=e]]]],["./error/assert.js",[["assert",[e=>u=e]]]]]);const{details:y}=u;r.makeSafeEvaluator((({globalObject:e,globalLexicals:t={},globalTransforms:r=[],sloppyGlobalsMode:o=!1}={})=>{const f=o?i(e):s,g=c(),{evalScope:d}=g,b=a({evalScope:d,globalLexicals:t,globalObject:e,scopeTerminator:f});let E;return{safeEvaluate:(t,{localTransforms:o=[]}={})=>{let a;E||(E=m(b)),t=l(t,[...o,...r,p]);try{return g.allowNextEvalToBeUnsafe(),n(E,e,[t])}catch(e){throw a=e,e}finally{const e="eval"in d;delete d.eval,e&&(g.revoked={err:a},u.fail(y`handler did not reset allowNextEvalToBeUnsafe ${a}`))}}}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u;e([["./commons.js",[["TypeError",[e=>n=e]],["arrayPush",[e=>a=e]],["create",[e=>s=e]],["defineProperties",[e=>i=e]],["getOwnPropertyDescriptors",[e=>c=e]]]],["./transforms.js",[["evadeHtmlCommentTest",[e=>l=e]],["evadeImportExpressionTest",[e=>p=e]],["rejectSomeDirectEvalExpressions",[e=>m=e]]]],["./make-safe-evaluator.js",[["makeSafeEvaluator",[e=>u=e]]]]]);const y=(e,t)=>{const{sloppyGlobalsMode:r=!1,__moduleShimLexicals__:o}=t;let n;if(void 0!==o||r){let{globalTransforms:t}=e;const{globalObject:a,globalLexicals:l}=e;let p=l;void 0!==o&&(t=void 0,p=s(null,c(l)),i(p,c(o))),({safeEvaluate:n}=u({globalObject:a,globalLexicals:p,globalTransforms:t,sloppyGlobalsMode:r}))}else({safeEvaluate:n}=e);return{safeEvaluate:n}};r.provideCompartmentEvaluator(y),r.compartmentEvaluate(((e,t,r)=>{if("string"!=typeof t)throw new n("first argument of evaluate() must be a string");const{transforms:o=[],__evadeHtmlCommentTest__:s=!1,__evadeImportExpressionTest__:i=!1,__rejectSomeDirectEvalExpressions__:c=!0}=r,u=[...o];!0===s&&a(u,l),!0===i&&a(u,p),!0===c&&a(u,m);const{safeEvaluate:f}=y(e,r);return f(t,{localTransforms:u})}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([]),r.makeEvalFunction((e=>t=>"string"!=typeof t?t:e(t)))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l;e([["./commons.js",[["FERAL_FUNCTION",[e=>n=e]],["arrayJoin",[e=>a=e]],["arrayPop",[e=>s=e]],["defineProperties",[e=>i=e]],["getPrototypeOf",[e=>c=e]]]],["./error/assert.js",[["assert",[e=>l=e]]]]]),r.makeFunctionConstructor((e=>{const t=function(t){const r=""+(s(arguments)||""),o=""+a(arguments,",");new n(o,""),new n(r);const i=`(function anonymous(${o}\n) {\n${r}\n})`;return e(i)};return i(t,{prototype:{value:n.prototype,writable:!1,enumerable:!1,configurable:!1}}),l(c(n)===n.prototype,"Function prototype is the same accross compartments"),l(c(t)===n.prototype,"Function constructor prototype is the same accross compartments"),t}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([]);r.constantProperties({Infinity:1/0,NaN:NaN,undefined:void 0}),r.universalPropertyNames({isFinite:"isFinite",isNaN:"isNaN",parseFloat:"parseFloat",parseInt:"parseInt",decodeURI:"decodeURI",decodeURIComponent:"decodeURIComponent",encodeURI:"encodeURI",encodeURIComponent:"encodeURIComponent",Array:"Array",ArrayBuffer:"ArrayBuffer",BigInt:"BigInt",BigInt64Array:"BigInt64Array",BigUint64Array:"BigUint64Array",Boolean:"Boolean",DataView:"DataView",EvalError:"EvalError",Float32Array:"Float32Array",Float64Array:"Float64Array",Int8Array:"Int8Array",Int16Array:"Int16Array",Int32Array:"Int32Array",Map:"Map",Number:"Number",Object:"Object",Promise:"Promise",Proxy:"Proxy",RangeError:"RangeError",ReferenceError:"ReferenceError",Set:"Set",String:"String",Symbol:"Symbol",SyntaxError:"SyntaxError",TypeError:"TypeError",Uint8Array:"Uint8Array",Uint8ClampedArray:"Uint8ClampedArray",Uint16Array:"Uint16Array",Uint32Array:"Uint32Array",URIError:"URIError",WeakMap:"WeakMap",WeakSet:"WeakSet",JSON:"JSON",Reflect:"Reflect",escape:"escape",unescape:"unescape",lockdown:"lockdown",harden:"harden",HandledPromise:"HandledPromise"}),r.initialGlobalPropertyNames({Date:"%InitialDate%",Error:"%InitialError%",RegExp:"%InitialRegExp%",Math:"%InitialMath%",getStackString:"%InitialGetStackString%"}),r.sharedGlobalPropertyNames({Date:"%SharedDate%",Error:"%SharedError%",RegExp:"%SharedRegExp%",Math:"%SharedMath%"}),r.uniqueGlobalPropertyNames({globalThis:"%UniqueGlobalThis%",eval:"%UniqueEval%",Function:"%UniqueFunction%",Compartment:"%UniqueCompartment%"});const n=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError];r.NativeErrors(n);const a={"[[Proto]]":"%FunctionPrototype%",length:"number",name:"string"};r.FunctionInstance(a);const s=a,i={"[[Proto]]":"%AsyncFunctionPrototype%"},c={get:s,set:"undefined"},l={get:s,set:s};function p(e){return{"[[Proto]]":"%SharedError%",prototype:e}}function m(e){return{"[[Proto]]":"%ErrorPrototype%",constructor:e,message:"string",name:"string",toString:!1,cause:!1}}function u(e){return{"[[Proto]]":"%TypedArray%",BYTES_PER_ELEMENT:"number",prototype:e}}function y(e){return{"[[Proto]]":"%TypedArrayPrototype%",BYTES_PER_ELEMENT:"number",constructor:e}}r.isAccessorPermit((e=>e===c||e===l));const f={E:"number",LN10:"number",LN2:"number",LOG10E:"number",LOG2E:"number",PI:"number",SQRT1_2:"number",SQRT2:"number","@@toStringTag":"string",abs:s,acos:s,acosh:s,asin:s,asinh:s,atan:s,atanh:s,atan2:s,cbrt:s,ceil:s,clz32:s,cos:s,cosh:s,exp:s,expm1:s,floor:s,fround:s,hypot:s,imul:s,log:s,log1p:s,log10:s,log2:s,max:s,min:s,pow:s,round:s,sign:s,sin:s,sinh:s,sqrt:s,tan:s,tanh:s,trunc:s,idiv:!1,idivmod:!1,imod:!1,imuldiv:!1,irem:!1,mod:!1},g={"[[Proto]]":null,"%ThrowTypeError%":s,Infinity:"number",NaN:"number",undefined:"undefined","%UniqueEval%":s,isFinite:s,isNaN:s,parseFloat:s,parseInt:s,decodeURI:s,decodeURIComponent:s,encodeURI:s,encodeURIComponent:s,Object:{"[[Proto]]":"%FunctionPrototype%",assign:s,create:s,defineProperties:s,defineProperty:s,entries:s,freeze:s,fromEntries:s,getOwnPropertyDescriptor:s,getOwnPropertyDescriptors:s,getOwnPropertyNames:s,getOwnPropertySymbols:s,getPrototypeOf:s,hasOwn:s,is:s,isExtensible:s,isFrozen:s,isSealed:s,keys:s,preventExtensions:s,prototype:"%ObjectPrototype%",seal:s,setPrototypeOf:s,values:s},"%ObjectPrototype%":{"[[Proto]]":null,constructor:"Object",hasOwnProperty:s,isPrototypeOf:s,propertyIsEnumerable:s,toLocaleString:s,toString:s,valueOf:s,"--proto--":l,__defineGetter__:s,__defineSetter__:s,__lookupGetter__:s,__lookupSetter__:s},"%UniqueFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%InertFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%FunctionPrototype%":{apply:s,bind:s,call:s,constructor:"%InertFunction%",toString:s,"@@hasInstance":s,caller:!1,arguments:!1},Boolean:{"[[Proto]]":"%FunctionPrototype%",prototype:"%BooleanPrototype%"},"%BooleanPrototype%":{constructor:"Boolean",toString:s,valueOf:s},Symbol:{"[[Proto]]":"%FunctionPrototype%",asyncIterator:"symbol",for:s,hasInstance:"symbol",isConcatSpreadable:"symbol",iterator:"symbol",keyFor:s,match:"symbol",matchAll:"symbol",prototype:"%SymbolPrototype%",replace:"symbol",search:"symbol",species:"symbol",split:"symbol",toPrimitive:"symbol",toStringTag:"symbol",unscopables:"symbol"},"%SymbolPrototype%":{constructor:"Symbol",description:c,toString:s,valueOf:s,"@@toPrimitive":s,"@@toStringTag":"string"},"%InitialError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:s,stackTraceLimit:l,prepareStackTrace:l},"%SharedError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:s,stackTraceLimit:l,prepareStackTrace:l},"%ErrorPrototype%":{constructor:"%SharedError%",message:"string",name:"string",toString:s,at:!1,stack:l,cause:!1},EvalError:p("%EvalErrorPrototype%"),RangeError:p("%RangeErrorPrototype%"),ReferenceError:p("%ReferenceErrorPrototype%"),SyntaxError:p("%SyntaxErrorPrototype%"),TypeError:p("%TypeErrorPrototype%"),URIError:p("%URIErrorPrototype%"),"%EvalErrorPrototype%":m("EvalError"),"%RangeErrorPrototype%":m("RangeError"),"%ReferenceErrorPrototype%":m("ReferenceError"),"%SyntaxErrorPrototype%":m("SyntaxError"),"%TypeErrorPrototype%":m("TypeError"),"%URIErrorPrototype%":m("URIError"),Number:{"[[Proto]]":"%FunctionPrototype%",EPSILON:"number",isFinite:s,isInteger:s,isNaN:s,isSafeInteger:s,MAX_SAFE_INTEGER:"number",MAX_VALUE:"number",MIN_SAFE_INTEGER:"number",MIN_VALUE:"number",NaN:"number",NEGATIVE_INFINITY:"number",parseFloat:s,parseInt:s,POSITIVE_INFINITY:"number",prototype:"%NumberPrototype%"},"%NumberPrototype%":{constructor:"Number",toExponential:s,toFixed:s,toLocaleString:s,toPrecision:s,toString:s,valueOf:s},BigInt:{"[[Proto]]":"%FunctionPrototype%",asIntN:s,asUintN:s,prototype:"%BigIntPrototype%",bitLength:!1,fromArrayBuffer:!1},"%BigIntPrototype%":{constructor:"BigInt",toLocaleString:s,toString:s,valueOf:s,"@@toStringTag":"string"},"%InitialMath%":{...f,random:s},"%SharedMath%":f,"%InitialDate%":{"[[Proto]]":"%FunctionPrototype%",now:s,parse:s,prototype:"%DatePrototype%",UTC:s},"%SharedDate%":{"[[Proto]]":"%FunctionPrototype%",now:s,parse:s,prototype:"%DatePrototype%",UTC:s},"%DatePrototype%":{constructor:"%SharedDate%",getDate:s,getDay:s,getFullYear:s,getHours:s,getMilliseconds:s,getMinutes:s,getMonth:s,getSeconds:s,getTime:s,getTimezoneOffset:s,getUTCDate:s,getUTCDay:s,getUTCFullYear:s,getUTCHours:s,getUTCMilliseconds:s,getUTCMinutes:s,getUTCMonth:s,getUTCSeconds:s,setDate:s,setFullYear:s,setHours:s,setMilliseconds:s,setMinutes:s,setMonth:s,setSeconds:s,setTime:s,setUTCDate:s,setUTCFullYear:s,setUTCHours:s,setUTCMilliseconds:s,setUTCMinutes:s,setUTCMonth:s,setUTCSeconds:s,toDateString:s,toISOString:s,toJSON:s,toLocaleDateString:s,toLocaleString:s,toLocaleTimeString:s,toString:s,toTimeString:s,toUTCString:s,valueOf:s,"@@toPrimitive":s,getYear:s,setYear:s,toGMTString:s},String:{"[[Proto]]":"%FunctionPrototype%",fromCharCode:s,fromCodePoint:s,prototype:"%StringPrototype%",raw:s,fromArrayBuffer:!1},"%StringPrototype%":{length:"number",at:s,charAt:s,charCodeAt:s,codePointAt:s,concat:s,constructor:"String",endsWith:s,includes:s,indexOf:s,lastIndexOf:s,localeCompare:s,match:s,matchAll:s,normalize:s,padEnd:s,padStart:s,repeat:s,replace:s,replaceAll:s,search:s,slice:s,split:s,startsWith:s,substring:s,toLocaleLowerCase:s,toLocaleUpperCase:s,toLowerCase:s,toString:s,toUpperCase:s,trim:s,trimEnd:s,trimStart:s,valueOf:s,"@@iterator":s,substr:s,anchor:s,big:s,blink:s,bold:s,fixed:s,fontcolor:s,fontsize:s,italics:s,link:s,small:s,strike:s,sub:s,sup:s,trimLeft:s,trimRight:s,compare:!1},"%StringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:s,"@@toStringTag":"string"},"%InitialRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":c,input:!1,$_:!1,lastMatch:!1,"$&":!1,lastParen:!1,"$+":!1,leftContext:!1,"$`":!1,rightContext:!1,"$'":!1,$1:!1,$2:!1,$3:!1,$4:!1,$5:!1,$6:!1,$7:!1,$8:!1,$9:!1},"%SharedRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":c},"%RegExpPrototype%":{constructor:"%SharedRegExp%",exec:s,dotAll:c,flags:c,global:c,ignoreCase:c,"@@match":s,"@@matchAll":s,multiline:c,"@@replace":s,"@@search":s,source:c,"@@split":s,sticky:c,test:s,toString:s,unicode:c,compile:!1,hasIndices:!1},"%RegExpStringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:s,"@@toStringTag":"string"},Array:{"[[Proto]]":"%FunctionPrototype%",from:s,isArray:s,of:s,prototype:"%ArrayPrototype%","@@species":c,at:s},"%ArrayPrototype%":{at:s,length:"number",concat:s,constructor:"Array",copyWithin:s,entries:s,every:s,fill:s,filter:s,find:s,findIndex:s,flat:s,flatMap:s,forEach:s,includes:s,indexOf:s,join:s,keys:s,lastIndexOf:s,map:s,pop:s,push:s,reduce:s,reduceRight:s,reverse:s,shift:s,slice:s,some:s,sort:s,splice:s,toLocaleString:s,toString:s,unshift:s,values:s,"@@iterator":s,"@@unscopables":{"[[Proto]]":null,copyWithin:"boolean",entries:"boolean",fill:"boolean",find:"boolean",findIndex:"boolean",flat:"boolean",flatMap:"boolean",includes:"boolean",keys:"boolean",values:"boolean",at:!1,findLast:"boolean",findLastIndex:"boolean"},findLast:s,findLastIndex:s},"%ArrayIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:s,"@@toStringTag":"string"},"%TypedArray%":{"[[Proto]]":"%FunctionPrototype%",from:s,of:s,prototype:"%TypedArrayPrototype%","@@species":c},"%TypedArrayPrototype%":{at:s,buffer:c,byteLength:c,byteOffset:c,constructor:"%TypedArray%",copyWithin:s,entries:s,every:s,fill:s,filter:s,find:s,findIndex:s,forEach:s,includes:s,indexOf:s,join:s,keys:s,lastIndexOf:s,length:c,map:s,reduce:s,reduceRight:s,reverse:s,set:s,slice:s,some:s,sort:s,subarray:s,toLocaleString:s,toString:s,values:s,"@@iterator":s,"@@toStringTag":c,findLast:s,findLastIndex:s},BigInt64Array:u("%BigInt64ArrayPrototype%"),BigUint64Array:u("%BigUint64ArrayPrototype%"),Float32Array:u("%Float32ArrayPrototype%"),Float64Array:u("%Float64ArrayPrototype%"),Int16Array:u("%Int16ArrayPrototype%"),Int32Array:u("%Int32ArrayPrototype%"),Int8Array:u("%Int8ArrayPrototype%"),Uint16Array:u("%Uint16ArrayPrototype%"),Uint32Array:u("%Uint32ArrayPrototype%"),Uint8Array:u("%Uint8ArrayPrototype%"),Uint8ClampedArray:u("%Uint8ClampedArrayPrototype%"),"%BigInt64ArrayPrototype%":y("BigInt64Array"),"%BigUint64ArrayPrototype%":y("BigUint64Array"),"%Float32ArrayPrototype%":y("Float32Array"),"%Float64ArrayPrototype%":y("Float64Array"),"%Int16ArrayPrototype%":y("Int16Array"),"%Int32ArrayPrototype%":y("Int32Array"),"%Int8ArrayPrototype%":y("Int8Array"),"%Uint16ArrayPrototype%":y("Uint16Array"),"%Uint32ArrayPrototype%":y("Uint32Array"),"%Uint8ArrayPrototype%":y("Uint8Array"),"%Uint8ClampedArrayPrototype%":y("Uint8ClampedArray"),Map:{"[[Proto]]":"%FunctionPrototype%","@@species":c,prototype:"%MapPrototype%"},"%MapPrototype%":{clear:s,constructor:"Map",delete:s,entries:s,forEach:s,get:s,has:s,keys:s,set:s,size:c,values:s,"@@iterator":s,"@@toStringTag":"string"},"%MapIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:s,"@@toStringTag":"string"},Set:{"[[Proto]]":"%FunctionPrototype%",prototype:"%SetPrototype%","@@species":c},"%SetPrototype%":{add:s,clear:s,constructor:"Set",delete:s,entries:s,forEach:s,has:s,keys:s,size:c,values:s,"@@iterator":s,"@@toStringTag":"string"},"%SetIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:s,"@@toStringTag":"string"},WeakMap:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakMapPrototype%"},"%WeakMapPrototype%":{constructor:"WeakMap",delete:s,get:s,has:s,set:s,"@@toStringTag":"string"},WeakSet:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakSetPrototype%"},"%WeakSetPrototype%":{add:s,constructor:"WeakSet",delete:s,has:s,"@@toStringTag":"string"},ArrayBuffer:{"[[Proto]]":"%FunctionPrototype%",isView:s,prototype:"%ArrayBufferPrototype%","@@species":c,fromString:!1,fromBigInt:!1},"%ArrayBufferPrototype%":{byteLength:c,constructor:"ArrayBuffer",slice:s,"@@toStringTag":"string",concat:!1,transfer:s,resize:s,resizable:c,maxByteLength:c},SharedArrayBuffer:!1,"%SharedArrayBufferPrototype%":!1,DataView:{"[[Proto]]":"%FunctionPrototype%",BYTES_PER_ELEMENT:"number",prototype:"%DataViewPrototype%"},"%DataViewPrototype%":{buffer:c,byteLength:c,byteOffset:c,constructor:"DataView",getBigInt64:s,getBigUint64:s,getFloat32:s,getFloat64:s,getInt8:s,getInt16:s,getInt32:s,getUint8:s,getUint16:s,getUint32:s,setBigInt64:s,setBigUint64:s,setFloat32:s,setFloat64:s,setInt8:s,setInt16:s,setInt32:s,setUint8:s,setUint16:s,setUint32:s,"@@toStringTag":"string"},Atomics:!1,JSON:{parse:s,stringify:s,"@@toStringTag":"string"},"%IteratorPrototype%":{"@@iterator":s},"%AsyncIteratorPrototype%":{"@@asyncIterator":s},"%InertGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%Generator%"},"%Generator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertGeneratorFunction%",prototype:"%GeneratorPrototype%","@@toStringTag":"string"},"%InertAsyncGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncGenerator%"},"%AsyncGenerator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncGeneratorFunction%",prototype:"%AsyncGeneratorPrototype%","@@toStringTag":"string"},"%GeneratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",constructor:"%Generator%",next:s,return:s,throw:s,"@@toStringTag":"string"},"%AsyncGeneratorPrototype%":{"[[Proto]]":"%AsyncIteratorPrototype%",constructor:"%AsyncGenerator%",next:s,return:s,throw:s,"@@toStringTag":"string"},HandledPromise:{"[[Proto]]":"Promise",applyFunction:s,applyFunctionSendOnly:s,applyMethod:s,applyMethodSendOnly:s,get:s,getSendOnly:s,prototype:"%PromisePrototype%",resolve:s},Promise:{"[[Proto]]":"%FunctionPrototype%",all:s,allSettled:s,any:!1,prototype:"%PromisePrototype%",race:s,reject:s,resolve:s,"@@species":c},"%PromisePrototype%":{catch:s,constructor:"Promise",finally:s,then:s,"@@toStringTag":"string","UniqueSymbol(async_id_symbol)":l,"UniqueSymbol(trigger_async_id_symbol)":l,"UniqueSymbol(destroyed)":l},"%InertAsyncFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncFunctionPrototype%"},"%AsyncFunctionPrototype%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncFunction%","@@toStringTag":"string"},Reflect:{apply:s,construct:s,defineProperty:s,deleteProperty:s,get:s,getOwnPropertyDescriptor:s,getPrototypeOf:s,has:s,isExtensible:s,ownKeys:s,preventExtensions:s,set:s,setPrototypeOf:s,"@@toStringTag":"string"},Proxy:{"[[Proto]]":"%FunctionPrototype%",revocable:s},escape:s,unescape:s,"%UniqueCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:s},"%InertCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:s},"%CompartmentPrototype%":{constructor:"%InertCompartment%",evaluate:s,globalThis:c,name:c,toString:s,import:i,load:i,importNow:s,module:s},lockdown:s,harden:s,"%InitialGetStackString%":s};r.whitelist(g)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g;e([["./commons.js",[["TypeError",[e=>n=e]],["assign",[e=>a=e]],["create",[e=>s=e]],["defineProperty",[e=>i=e]],["entries",[e=>c=e]],["freeze",[e=>l=e]],["objectHasOwnProperty",[e=>p=e]],["unscopablesSymbol",[e=>m=e]]]],["./make-eval-function.js",[["makeEvalFunction",[e=>u=e]]]],["./make-function-constructor.js",[["makeFunctionConstructor",[e=>y=e]]]],["./whitelist.js",[["constantProperties",[e=>f=e]],["universalPropertyNames",[e=>g=e]]]]]),r.setGlobalObjectSymbolUnscopables((e=>{i(e,m,l(a(s(null),{set:l((()=>{throw new n("Cannot set Symbol.unscopables of a Compartment's globalThis")})),enumerable:!1,configurable:!1})))})),r.setGlobalObjectConstantProperties((e=>{for(const[t,r]of c(f))i(e,t,{value:r,writable:!1,enumerable:!1,configurable:!1})})),r.setGlobalObjectMutableProperties(((e,{intrinsics:t,newGlobalPropertyNames:r,makeCompartmentConstructor:o,markVirtualizedNativeFunction:n})=>{for(const[r,o]of c(g))p(t,o)&&i(e,r,{value:t[o],writable:!0,enumerable:!1,configurable:!0});for(const[o,n]of c(r))p(t,n)&&i(e,o,{value:t[n],writable:!0,enumerable:!1,configurable:!0});const a={globalThis:e};a.Compartment=o(o,t,n);for(const[t,r]of c(a))i(e,t,{value:r,writable:!0,enumerable:!1,configurable:!0}),"function"==typeof r&&n(r)})),r.setGlobalObjectEvaluators(((e,t,r)=>{{const o=u(t);r(o),i(e,"eval",{value:o,writable:!0,enumerable:!1,configurable:!0})}{const o=y(t);r(o),i(e,"Function",{value:o,writable:!0,enumerable:!1,configurable:!0})}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S;e([["./commons.js",[["ReferenceError",[e=>n=e]],["TypeError",[e=>a=e]],["Map",[e=>s=e]],["Set",[e=>i=e]],["arrayJoin",[e=>c=e]],["arrayMap",[e=>l=e]],["arrayPush",[e=>p=e]],["create",[e=>m=e]],["freeze",[e=>u=e]],["mapGet",[e=>y=e]],["mapHas",[e=>f=e]],["mapSet",[e=>g=e]],["setAdd",[e=>d=e]],["promiseCatch",[e=>b=e]],["promiseThen",[e=>E=e]],["values",[e=>w=e]],["weakmapGet",[e=>P=e]]]],["./error/assert.js",[["assert",[e=>S=e]]]]]);const{details:h,quote:v}=S,j=()=>{};r.makeAlias(((e,t)=>u({compartment:e,specifier:t})));const k=async(e,t,r,o,n,a,s,i,c)=>{const{resolveHook:l,moduleRecords:y}=P(e,r),f=((e,t,r)=>{const o=m(null);for(const n of e){const e=t(n,r);o[n]=e}return u(o)})(n.imports,l,o),b=u({compartment:r,staticModuleRecord:n,moduleSpecifier:o,resolvedImports:f,importMeta:c});for(const o of w(f)){const n=T(e,t,r,o,a,s,i);d(a,E(n,j,(e=>{p(i,e)})))}return g(y,o,b),b},T=async(e,t,r,o,i,c,l)=>{const{name:p}=P(e,r);let m=y(c,r);void 0===m&&(m=new s,g(c,r,m));let u=y(m,o);return void 0!==u||(u=b((async(e,t,r,o,s,i,c)=>{const{importHook:l,moduleMap:p,moduleMapHook:m,moduleRecords:u}=P(e,r);let d=p[o];if(void 0===d&&void 0!==m&&(d=m(o)),"string"==typeof d)S.fail(h`Cannot map module ${v(o)} to ${v(d)} in parent compartment, not yet implemented`,a);else if(void 0!==d){const r=P(t,d);void 0===r&&S.fail(h`Cannot map module ${v(o)} because the value is not a module exports namespace, or is from another realm`,n);const a=await T(e,t,r.compartment,r.specifier,s,i,c);return g(u,o,a),a}if(f(u,o))return y(u,o);const b=await l(o);if(null!==b&&"object"==typeof b||S.fail(h`importHook must return a promise for an object, for module ${v(o)} in compartment ${v(r.name)}`),void 0!==b.record){const{compartment:n=r,specifier:a=o,record:l,importMeta:p}=b,m=await k(e,t,n,a,l,s,i,c,p);return g(u,o,m),m}return k(e,t,r,o,b,s,i,c)})(e,t,r,o,i,c,l),(e=>{throw S.note(e,h`${e.message}, loading ${v(o)} in compartment ${v(p)}`),e})),g(m,o,u)),u};r.load((async(e,t,r,o)=>{const{name:n}=P(e,r),m=new i,u=new s,y=[],f=T(e,t,r,o,m,u,y);d(m,E(f,j,(e=>{p(y,e)})));for(const e of m)await e;if(y.length>0)throw new a(`Failed to load module ${v(o)} in package ${v(n)} (${y.length} underlying failures: ${c(l(y,(e=>e.message)),", ")}`)}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w;e([["./module-load.js",[["makeAlias",[e=>n=e]]]],["./commons.js",[["Proxy",[e=>a=e]],["TypeError",[e=>s=e]],["create",[e=>i=e]],["freeze",[e=>c=e]],["mapGet",[e=>l=e]],["mapHas",[e=>p=e]],["mapSet",[e=>m=e]],["ownKeys",[e=>u=e]],["reflectGet",[e=>y=e]],["reflectGetOwnPropertyDescriptor",[e=>f=e]],["reflectHas",[e=>g=e]],["reflectIsExtensible",[e=>d=e]],["reflectPreventExtensions",[e=>b=e]],["weakmapSet",[e=>E=e]]]],["./error/assert.js",[["assert",[e=>w=e]]]]]);const{quote:P}=w,S=()=>{let e=!1;const t=i(null);return c({activate(){e=!0},proxiedExports:t,exportsProxy:new a(t,{get(r,o,n){if(!e)throw new s(`Cannot get property ${P(o)} of module exports namespace, the module has not yet begun to execute`);return y(t,o,n)},set(e,t,r){throw new s(`Cannot set property ${P(t)} of module exports namespace`)},has(r,o){if(!e)throw new s(`Cannot check property ${P(o)}, the module has not yet begun to execute`);return g(t,o)},deleteProperty(e,t){throw new s(`Cannot delete property ${P(t)}s of module exports namespace`)},ownKeys(r){if(!e)throw new s("Cannot enumerate keys, the module has not yet begun to execute");return u(t)},getOwnPropertyDescriptor(r,o){if(!e)throw new s(`Cannot get own property descriptor ${P(o)}, the module has not yet begun to execute`);return f(t,o)},preventExtensions(r){if(!e)throw new s("Cannot prevent extensions of module exports namespace, the module has not yet begun to execute");return b(t)},isExtensible(){if(!e)throw new s("Cannot check extensibility of module exports namespace, the module has not yet begun to execute");return d(t)},getPrototypeOf:e=>null,setPrototypeOf(e,t){throw new s("Cannot set prototype of module exports namespace")},defineProperty(e,t,r){throw new s(`Cannot define property ${P(t)} of module exports namespace`)},apply(e,t,r){throw new s("Cannot call module exports namespace, it is not a function")},construct(e,t){throw new s("Cannot construct module exports namespace, it is not a constructor")}})})};r.deferExports(S),r.getDeferredExports(((e,t,r,o)=>{const{deferredExports:a}=t;if(!p(a,o)){const t=S();E(r,t.exportsProxy,n(e,o)),m(a,o,t)}return l(a,o)}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S,h,v,j;e([["./error/assert.js",[["assert",[e=>n=e]]]],["./module-proxy.js",[["getDeferredExports",[e=>a=e]]]],["./commons.js",[["ReferenceError",[e=>s=e]],["SyntaxError",[e=>i=e]],["TypeError",[e=>c=e]],["arrayForEach",[e=>l=e]],["arrayIncludes",[e=>p=e]],["arrayPush",[e=>m=e]],["arraySome",[e=>u=e]],["arraySort",[e=>y=e]],["create",[e=>f=e]],["defineProperty",[e=>g=e]],["entries",[e=>d=e]],["freeze",[e=>b=e]],["isArray",[e=>E=e]],["keys",[e=>w=e]],["mapGet",[e=>P=e]],["weakmapGet",[e=>S=e]],["reflectHas",[e=>h=e]],["assign",[e=>v=e]]]],["./compartment-evaluate.js",[["compartmentEvaluate",[e=>j=e]]]]]);const{quote:k}=n;r.makeThirdPartyModuleInstance(((e,t,r,o,n,s)=>{const{exportsProxy:i,proxiedExports:p,activate:y}=a(r,S(e,r),o,n),d=f(null);if(t.exports){if(!E(t.exports)||u(t.exports,(e=>"string"!=typeof e)))throw new c('SES third-party static module record "exports" property must be an array of strings for module '+n);l(t.exports,(e=>{let t=p[e];const r=[];g(p,e,{get:()=>t,set:e=>{t=e;for(const t of r)t(e)},enumerable:!0,configurable:!1}),d[e]=e=>{m(r,e),e(t)}})),d["*"]=e=>{e(p)}}const w={activated:!1};return b({notifiers:d,exportsProxy:i,execute(){if(h(w,"errorFromExecute"))throw w.errorFromExecute;if(!w.activated){y(),w.activated=!0;try{t.execute(p,r,s)}catch(e){throw w.errorFromExecute=e,e}}}})})),r.makeModuleInstance(((e,t,r,o)=>{const{compartment:n,moduleSpecifier:u,staticModuleRecord:E,importMeta:h}=r,{reexports:T=[],__syncModuleProgram__:A,__fixedExportMap__:x={},__liveExportMap__:M={},__needsImportMeta__:I=!1}=E,O=S(e,n),{__shimTransforms__:C,importMetaHook:_}=O,{exportsProxy:F,proxiedExports:R,activate:V}=a(n,O,t,u),N=f(null),L=f(null),$=f(null),D=f(null),G=f(null);h&&v(G,h),I&&_&&_(u,G);const U=f(null),H=f(null);function z(e){const t=f(null);t.default=!1;for(const[r,n]of e){const e=P(o,r);e.execute();const{notifiers:a}=e;for(const[e,t]of n){const o=a[e];if(!o)throw i(`The requested module '${r}' does not provide an export named '${e}'`);for(const e of t)o(e)}if(p(T,r))for(const[e,r]of d(a))void 0===t[e]?t[e]=r:t[e]=!1}for(const[e,r]of d(t))if(!H[e]&&!1!==r){let t;H[e]=r,r((e=>t=e)),N[e]={get:()=>t,set:void 0,enumerable:!0,configurable:!1}}l(y(w(N)),(e=>g(R,e,N[e]))),b(R),V()}l(d(x),(([e,[t]])=>{let r=U[t];if(!r){let e,o=!0,n=[];const a=()=>{if(o)throw new s(`binding ${k(t)} not yet initialized`);return e},i=b((r=>{if(!o)throw new c(`Internal: binding ${k(t)} already initialized`);e=r;const a=n;n=null,o=!1;for(const e of a)e(r);return r}));r={get:a,notify:t=>{t!==i&&(o?m(n,t):t(e))}},U[t]=r,$[t]=i}N[e]={get:r.get,set:void 0,enumerable:!0,configurable:!1},H[e]=r.notify})),l(d(M),(([e,[t,r]])=>{let o=U[t];if(!o){let n,a=!0;const i=[],c=()=>{if(a)throw new s(`binding ${k(e)} not yet initialized`);return n},l=b((e=>{n=e,a=!1;for(const t of i)t(e)})),p=e=>{if(a)throw new s(`binding ${k(t)} not yet initialized`);n=e;for(const t of i)t(e)};o={get:c,notify:e=>{e!==l&&(m(i,e),a||e(n))}},U[t]=o,r&&g(L,t,{get:c,set:p,enumerable:!0,configurable:!1}),D[t]=l}N[e]={get:o.get,set:void 0,enumerable:!0,configurable:!1},H[e]=o.notify})),H["*"]=e=>{e(R)};let W,B=j(O,A,{globalObject:n.globalThis,transforms:C,__moduleShimLexicals__:L}),K=!1;return b({notifiers:H,exportsProxy:F,execute:function(){if(B){const e=B;B=null;try{e(b({imports:b(z),onceVar:b($),liveVar:b(D),importMeta:G}))}catch(e){K=!0,W=e}}if(K)throw W}})}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d;e([["./error/assert.js",[["assert",[e=>n=e]]]],["./module-instance.js",[["makeModuleInstance",[e=>a=e]],["makeThirdPartyModuleInstance",[e=>s=e]]]],["./commons.js",[["Map",[e=>i=e]],["ReferenceError",[e=>c=e]],["TypeError",[e=>l=e]],["entries",[e=>p=e]],["isArray",[e=>m=e]],["isObject",[e=>u=e]],["mapGet",[e=>y=e]],["mapHas",[e=>f=e]],["mapSet",[e=>g=e]],["weakmapGet",[e=>d=e]]]]]);const{quote:b}=n,E=(e,t,r,o)=>{const{name:n,moduleRecords:a}=d(e,r),s=y(a,o);if(void 0===s)throw new c(`Missing link to module ${b(o)} from compartment ${b(n)}`);return w(e,t,s)};r.link(E);const w=(e,t,r)=>{const{compartment:o,moduleSpecifier:c,resolvedImports:w,staticModuleRecord:P}=r,{instances:S}=d(e,o);if(f(S,c))return y(S,c);!function(e,t){n(u(e),`Static module records must be of type object, got ${b(e)}, for module ${b(t)}`);const{imports:r,exports:o,reexports:a=[]}=e;n(m(r),`Property 'imports' of a static module record must be an array, got ${b(r)}, for module ${b(t)}`),n(m(o),`Property 'exports' of a precompiled module record must be an array, got ${b(o)}, for module ${b(t)}`),n(m(a),`Property 'reexports' of a precompiled module record must be an array if present, got ${b(a)}, for module ${b(t)}`)}(P,c);const h=new i;let v;if(function(e){return"string"==typeof e.__syncModuleProgram__}(P))!function(e,t){const{__fixedExportMap__:r,__liveExportMap__:o}=e;n(u(r),`Property '__fixedExportMap__' of a precompiled module record must be an object, got ${b(r)}, for module ${b(t)}`),n(u(o),`Property '__liveExportMap__' of a precompiled module record must be an object, got ${b(o)}, for module ${b(t)}`)}(P,c),v=a(e,t,r,h);else{if(!function(e){return"function"==typeof e.execute}(P))throw new l("importHook must return a static module record, got "+b(P));!function(e,t){const{exports:r}=e;n(m(r),`Property 'exports' of a third-party static module record must be an array, got ${b(r)}, for module ${b(t)}`)}(P,c),v=s(e,P,o,t,c,w)}g(S,c,v);for(const[r,n]of p(w)){const a=E(e,t,o,n);g(h,r,a)}return v};r.instantiate(w)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S,h,v,j,k,T,A,x,M;e([["./commons.js",[["Map",[e=>n=e]],["ReferenceError",[e=>a=e]],["TypeError",[e=>s=e]],["WeakMap",[e=>i=e]],["arrayFilter",[e=>c=e]],["arrayJoin",[e=>l=e]],["assign",[e=>p=e]],["defineProperties",[e=>m=e]],["entries",[e=>u=e]],["freeze",[e=>y=e]],["getOwnPropertyNames",[e=>f=e]],["promiseThen",[e=>g=e]],["weakmapGet",[e=>d=e]],["weakmapSet",[e=>b=e]]]],["./global-object.js",[["setGlobalObjectSymbolUnscopables",[e=>E=e]],["setGlobalObjectConstantProperties",[e=>w=e]],["setGlobalObjectMutableProperties",[e=>P=e]],["setGlobalObjectEvaluators",[e=>S=e]]]],["./scope-constants.js",[["isValidIdentifierName",[e=>h=e]]]],["./whitelist.js",[["sharedGlobalPropertyNames",[e=>v=e]]]],["./module-load.js",[["load",[e=>j=e]]]],["./module-link.js",[["link",[e=>k=e]]]],["./module-proxy.js",[["getDeferredExports",[e=>T=e]]]],["./error/assert.js",[["assert",[e=>A=e]]]],["./compartment-evaluate.js",[["compartmentEvaluate",[e=>x=e]]]],["./make-safe-evaluator.js",[["makeSafeEvaluator",[e=>M=e]]]]]);const{quote:I}=A,O=new i,C=new i,_=e=>{const{importHook:t,resolveHook:r}=d(C,e);if("function"!=typeof t||"function"!=typeof r)throw new s("Compartment must be constructed with an importHook and a resolveHook for it to be able to load modules")},F=function(e={},t={},r={}){throw new s("Compartment.prototype.constructor is not a valid constructor.")};r.InertCompartment(F);const R=(e,t)=>{const{execute:r,exportsProxy:o}=k(C,O,e,t);return r(),o},V={constructor:F,get globalThis(){return d(C,this).globalObject},get name(){return d(C,this).name},evaluate(e,t={}){const r=d(C,this);return x(r,e,t)},toString:()=>"[object Compartment]",module(e){if("string"!=typeof e)throw new s("first argument of module() must be a string");_(this);const{exportsProxy:t}=T(this,d(C,this),O,e);return t},async import(e){if("string"!=typeof e)throw new s("first argument of import() must be a string");return _(this),g(j(C,O,this,e),(()=>({namespace:R(this,e)})))},async load(e){if("string"!=typeof e)throw new s("first argument of load() must be a string");return _(this),j(C,O,this,e)},importNow(e){if("string"!=typeof e)throw new s("first argument of importNow() must be a string");return _(this),R(this,e)}};r.CompartmentPrototype(V),m(F,{prototype:{value:V}}),r.makeCompartmentConstructor(((e,t,r)=>{function o(o={},i={},m={}){if(void 0===new.target)throw new s("Class constructor Compartment cannot be invoked without 'new'");const{name:g="<unknown>",transforms:j=[],__shimTransforms__:k=[],globalLexicals:T={},resolveHook:A,importHook:x,moduleMapHook:_,importMetaHook:F}=m,R=[...j,...k],V=new n,N=new n,L=new n;for(const[e,t]of u(i||{})){if("string"==typeof t)throw new s(`Cannot map module ${I(e)} to ${I(t)} in parent compartment`);if(void 0===d(O,t))throw a(`Cannot map module ${I(e)} because it has no known compartment in this realm`)}const $=c(f(T),(e=>!h(e)));if($.length)throw new s(`Cannot create compartment with invalid names for global lexicals: ${l($,", ")}; these names would not be lexically mentionable`);const D=y({...T}),G={};E(G),w(G);const{safeEvaluate:U}=M({globalObject:G,globalLexicals:D,globalTransforms:R,sloppyGlobalsMode:!1});P(G,{intrinsics:t,newGlobalPropertyNames:v,makeCompartmentConstructor:e,markVirtualizedNativeFunction:r}),S(G,U,r),p(G,o),b(C,this,{name:""+g,globalTransforms:R,globalObject:G,globalLexicals:D,safeEvaluate:U,resolveHook:A,importHook:x,moduleMap:i,moduleMapHook:_,importMetaHook:F,moduleRecords:V,__shimTransforms__:k,deferredExports:L,instances:N})}return o.prototype=V,o}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S;e([["./commons.js",[["TypeError",[e=>n=e]],["WeakSet",[e=>a=e]],["arrayFilter",[e=>s=e]],["defineProperty",[e=>i=e]],["entries",[e=>c=e]],["freeze",[e=>l=e]],["getOwnPropertyDescriptor",[e=>p=e]],["getOwnPropertyDescriptors",[e=>m=e]],["globalThis",[e=>u=e]],["is",[e=>y=e]],["isObject",[e=>f=e]],["objectHasOwnProperty",[e=>g=e]],["values",[e=>d=e]],["weaksetHas",[e=>b=e]]]],["./whitelist.js",[["constantProperties",[e=>E=e]],["sharedGlobalPropertyNames",[e=>w=e]],["universalPropertyNames",[e=>P=e]],["whitelist",[e=>S=e]]]]]);const h=e=>"function"==typeof e;function v(e,t,r){if(g(e,t)){const o=p(e,t);if(!y(o.value,r.value)||o.get!==r.get||o.set!==r.set||o.writable!==r.writable||o.enumerable!==r.enumerable||o.configurable!==r.configurable)throw new n("Conflicting definitions of "+t)}i(e,t,r)}function j(e,t){const r={__proto__:null};for(const[o,n]of c(t))g(e,o)&&(r[n]=e[o]);return r}const k=()=>{const e={__proto__:null};let t;const r=t=>{!function(e,t){for(const[r,o]of c(t))v(e,r,o)}(e,m(t))};l(r);const o=()=>{for(const[t,r]of c(e)){if(!f(r))continue;if(!g(r,"prototype"))continue;const o=S[t];if("object"!=typeof o)throw new n("Expected permit object at whitelist."+t);const a=o.prototype;if(!a)throw new n(t+".prototype property not whitelisted");if("string"!=typeof a||!g(S,a))throw new n(`Unrecognized ${t}.prototype whitelist entry`);const s=r.prototype;if(g(e,a)){if(e[a]!==s)throw new n("Conflicting bindings of "+a)}else e[a]=s}};l(o);const i=()=>(l(e),t=new a(s(d(e),h)),e);l(i);const p=e=>{if(!t)throw new n("isPseudoNative can only be called after finalIntrinsics");return b(t,e)};l(p);const y={addIntrinsics:r,completePrototypes:o,finalIntrinsics:i,isPseudoNative:p};return l(y),r(E),r(j(u,P)),y};r.makeIntrinsicsCollector(k),r.getGlobalIntrinsics((e=>{const{addIntrinsics:t,finalIntrinsics:r}=k();return t(j(e,w)),r()}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([]),r.minEnablements({"%ObjectPrototype%":{toString:!0},"%FunctionPrototype%":{toString:!0},"%ErrorPrototype%":{name:!0}});const n={"%ObjectPrototype%":{toString:!0,valueOf:!0},"%ArrayPrototype%":{toString:!0,push:!0},"%FunctionPrototype%":{constructor:!0,bind:!0,toString:!0},"%ErrorPrototype%":{constructor:!0,message:!0,name:!0,toString:!0},"%TypeErrorPrototype%":{constructor:!0,message:!0,name:!0},"%SyntaxErrorPrototype%":{message:!0,name:!0},"%RangeErrorPrototype%":{message:!0,name:!0},"%URIErrorPrototype%":{message:!0,name:!0},"%EvalErrorPrototype%":{message:!0,name:!0},"%ReferenceErrorPrototype%":{message:!0,name:!0},"%PromisePrototype%":{constructor:!0},"%TypedArrayPrototype%":"*","%Generator%":{constructor:!0,name:!0,toString:!0},"%IteratorPrototype%":{toString:!0}};r.moderateEnablements(n);const a={...n,"%ObjectPrototype%":"*","%TypedArrayPrototype%":"*"};r.severeEnablements(a)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E;e([["./commons.js",[["Set",[e=>n=e]],["String",[e=>a=e]],["TypeError",[e=>s=e]],["arrayForEach",[e=>i=e]],["defineProperty",[e=>c=e]],["getOwnPropertyDescriptor",[e=>l=e]],["getOwnPropertyDescriptors",[e=>p=e]],["getOwnPropertyNames",[e=>m=e]],["isObject",[e=>u=e]],["objectHasOwnProperty",[e=>y=e]],["ownKeys",[e=>f=e]],["setHas",[e=>g=e]]]],["./enablements.js",[["minEnablements",[e=>d=e]],["moderateEnablements",[e=>b=e]],["severeEnablements",[e=>E=e]]]]]),r.default((function(e,t,r=[]){const o=new n(r);function w(e,t,r,n){if("value"in n&&n.configurable){const{value:i}=n;function l(){return i}c(l,"originalValue",{value:i,writable:!1,enumerable:!1,configurable:!1});const p=g(o,r);c(t,r,{get:l,set:function(o){if(t===this)throw new s(`Cannot assign to read only property '${a(r)}' of '${e}'`);y(this,r)?this[r]=o:(p&&console.error(new s("Override property "+r)),c(this,r,{value:o,writable:!0,enumerable:!0,configurable:!0}))},enumerable:n.enumerable,configurable:n.configurable})}}function P(e,t,r){const o=l(t,r);o&&w(e,t,r,o)}function S(e,t){const r=p(t);r&&i(f(r),(o=>w(e,t,o,r[o])))}let h;switch(t){case"min":h=d;break;case"moderate":h=b;break;case"severe":h=E;break;default:throw new s("unrecognized overrideTaming "+t)}!function e(t,r,o){for(const n of m(o)){const i=l(r,n);if(!i||i.get||i.set)continue;const c=`${t}.${a(n)}`,p=o[n];if(!0===p)P(c,r,n);else if("*"===p)S(c,i.value);else{if(!u(p))throw new s("Unexpected override enablement plan "+c);e(c,i.value,p)}}}("root",e,h)}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s;e([["./commons.js",[["arrayPush",[e=>n=e]],["freeze",[e=>a=e]]]],["./error/assert.js",[["assert",[e=>s=e]]]]]);const{details:i,quote:c}=s,l=e=>{const t=[],r=(r,o)=>{s.typeof(r,"string",i`Environment option name ${c(r)} must be a string.`),s.typeof(o,"string",i`Environment option default setting ${c(o)} must be a string.`);let a=o;const l=e.process;if(l&&"object"==typeof l){const e=l.env;if(e&&"object"==typeof e&&r in e){n(t,r);const o=e[r];s.typeof(o,"string",i`Environment option named ${c(r)}, if present, must have a corresponding string value, got ${c(o)}`),a=o}}return void 0===a||"string"==typeof a||s.fail(i`Environment option value ${c(a)}, if present, must be a string.`),a};a(r);const o=()=>a([...t]);return a(o),a({getEnvironmentOption:r,getCapturedEnvironmentOptionNames:o})};r.makeEnvironmentCaptor(l),a(l)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f;e([["../commons.js",[["WeakSet",[e=>n=e]],["arrayFilter",[e=>a=e]],["arrayMap",[e=>s=e]],["arrayPush",[e=>i=e]],["defineProperty",[e=>c=e]],["freeze",[e=>l=e]],["fromEntries",[e=>p=e]],["isError",[e=>m=e]],["stringEndsWith",[e=>u=e]],["weaksetAdd",[e=>y=e]],["weaksetHas",[e=>f=e]]]],["./types.js",[]],["./internal-types.js",[]]]);const g=l([["debug","debug"],["log","log"],["info","info"],["warn","warn"],["error","error"],["trace","log"],["dirxml","log"],["group","log"],["groupCollapsed","log"]]),d=l([["assert","error"],["timeLog","log"],["clear",void 0],["count","info"],["countReset",void 0],["dir","log"],["groupEnd","log"],["table","log"],["time","info"],["timeEnd","info"],["profile",void 0],["profileEnd",void 0],["timeStamp",void 0]]),b=l([...g,...d]);r.consoleWhitelist(b);const E=(e,{shouldResetForDebugging:t=!1}={})=>{t&&e.resetErrorTagNum();let r=[];const o=p(s(b,(([e,t])=>{const o=(...t)=>{i(r,[e,...t])};return c(o,"name",{value:e}),[e,l(o)]})));l(o);const n=()=>{const e=l(r);return r=[],e};return l(n),l({loggingConsole:o,takeLog:n})};r.makeLoggingConsoleKit(E),l(E);const w={NOTE:"ERROR_NOTE:",MESSAGE:"ERROR_MESSAGE:"};l(w);const P=(e,t)=>{const{getStackString:r,tagError:o,takeMessageLogArgs:b,takeNoteLogArgsArray:E}=t,P=(e,t)=>s(e,(e=>m(e)?(i(t,e),`(${o(e)})`):e)),S=(t,r,n,a,s)=>{const i=o(r),c=n===w.MESSAGE?i+":":`${i} ${n}`,l=P(a,s);e[t](c,...l)},h=(t,r,o)=>{if(0===r.length)return;if(1===r.length&&void 0===o)return void j(t,r[0]);let n;n=1===r.length?"Nested error":`Nested ${r.length} errors`,void 0!==o&&(n=`${n} under ${o}`),e.group(n);try{for(const e of r)j(t,e)}finally{e.groupEnd()}},v=new n,j=(t,n)=>{if(f(v,n))return;const a=o(n);y(v,n);const s=[],i=b(n),c=E(n,(e=>(t,r)=>{const n=[];S(e,t,w.NOTE,r,n),h(e,n,o(t))})(t));void 0===i?e[t](a+":",n.message):S(t,n,w.MESSAGE,i,s);let l=r(n);"string"==typeof l&&l.length>=1&&!u(l,"\n")&&(l+="\n"),e[t](l);for(const e of c)S(t,n,w.NOTE,e,s);h(t,s,a)},k=s(g,(([t,r])=>{const o=(...r)=>{const o=[],n=P(r,o);e[t](...n),h(t,o)};return c(o,"name",{value:t}),[t,l(o)]})),T=a(d,(([t,r])=>t in e)),A=s(T,(([t,r])=>{const o=(...r)=>{e[t](...r)};return c(o,"name",{value:t}),[t,l(o)]})),x=p([...k,...A]);return l(x)};r.makeCausalConsole(P),l(P);const S=(e,t,r)=>{const o=a(b,(([t,r])=>t in e)),n=s(o,(([r,o])=>[r,l(((...n)=>{(void 0===o||t.canLog(o))&&e[r](...n)}))])),i=p(n);return l(i)};r.filterConsole(S),l(S)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f;e([["../commons.js",[["FinalizationRegistry",[e=>n=e]],["Map",[e=>a=e]],["mapGet",[e=>s=e]],["mapDelete",[e=>i=e]],["WeakMap",[e=>c=e]],["mapSet",[e=>l=e]],["finalizationRegistryRegister",[e=>p=e]],["weakmapSet",[e=>m=e]],["weakmapGet",[e=>u=e]],["mapEntries",[e=>y=e]],["mapHas",[e=>f=e]]]]]),r.makeRejectionHandlers((e=>{if(void 0===n)return;let t=0;const r=new a;let o;const g=e=>{i(r,e),o&&0===r.size&&(o(),o=void 0)},d=new c,b=new n((t=>{if(f(r,t)){const o=s(r,t);g(t),e(o)}}));return{rejectionHandledHandler:e=>{const t=u(d,e);g(t)},unhandledRejectionHandler:(e,o)=>{t+=1;const n=t;l(r,n,e),m(d,o,n),p(b,o,n,o)},processTerminationHandler:()=>{for(const[t,o]of y(r))g(t),e(o)}}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c;e([["../commons.js",[["TypeError",[e=>n=e]],["globalThis",[e=>a=e]]]],["./assert.js",[["loggedErrorHandler",[e=>s=e]]]],["./console.js",[["makeCausalConsole",[e=>i=e]]]],["./unhandled-rejection.js",[["makeRejectionHandlers",[e=>c=e]]]],["./types.js",[]],["./internal-types.js",[]]]);const l=console;r.tameConsole(((e="safe",t="platform",r="report",o)=>{if("safe"!==e&&"unsafe"!==e)throw new n("unrecognized consoleTaming "+e);let p;p=void 0===o?s:{...s,getStackString:o};const m="unsafe"===e?l:i(l,p);if("none"!==t&&void 0!==a.process&&a.process.on("uncaughtException",(e=>{m.error(e),"platform"===t||"exit"===t?a.process.exit(a.process.exitCode||-1):"abort"===t&&a.process.abort()})),"none"!==r&&void 0!==a.process){const e=c((e=>{m.error("SES_UNHANDLED_REJECTION:",e)}));e&&(a.process.on("unhandledRejection",e.unhandledRejectionHandler),a.process.on("rejectionHandled",e.rejectionHandledHandler),a.process.on("exit",e.processTerminationHandler))}if("none"!==t&&void 0!==a.window&&void 0!==a.window.addEventListener&&a.window.addEventListener("error",(e=>{e.preventDefault(),m.error(e.error),"exit"!==t&&"abort"!==t||(a.window.location.href="about:blank")})),"none"!==r&&void 0!==a.window&&void 0!==a.window.addEventListener){const e=c((e=>{m.error("SES_UNHANDLED_REJECTION:",e)}));e&&(a.window.addEventListener("unhandledrejection",(t=>{t.preventDefault(),e.unhandledRejectionHandler(t.reason,t.promise)})),a.window.addEventListener("rejectionhandled",(t=>{t.preventDefault(),e.rejectionHandledHandler(t.promise)})),a.window.addEventListener("beforeunload",(t=>{e.processTerminationHandler()})))}return{console:m}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P;e([["../commons.js",[["WeakMap",[e=>n=e]],["WeakSet",[e=>a=e]],["apply",[e=>s=e]],["arrayFilter",[e=>i=e]],["arrayJoin",[e=>c=e]],["arrayMap",[e=>l=e]],["arraySlice",[e=>p=e]],["create",[e=>m=e]],["defineProperties",[e=>u=e]],["fromEntries",[e=>y=e]],["reflectSet",[e=>f=e]],["regexpExec",[e=>g=e]],["regexpTest",[e=>d=e]],["weakmapGet",[e=>b=e]],["weakmapSet",[e=>E=e]],["weaksetAdd",[e=>w=e]],["weaksetHas",[e=>P=e]]]]]);const S=["getTypeName","getFunctionName","getMethodName","getFileName","getLineNumber","getColumnNumber","getEvalOrigin","isToplevel","isEval","isNative","isConstructor","isAsync","getPosition","getScriptNameOrSourceURL","toString"],h=e=>{const t=y(l(S,(t=>{const r=e[t];return[t,()=>s(r,e,[])]})));return m(t,{})},v=[/\/node_modules\//,/^(?:node:)?internal\//,/\/packages\/ses\/src\/error\/assert.js$/,/\/packages\/eventual-send\/src\//],j=e=>{if(!e)return!0;for(const t of v)if(d(t,e))return!1;return!0};r.filterFileName(j);const k=[/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/,/^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/],T=e=>{for(const t of k){const r=g(t,e);if(r)return c(p(r,1),"")}return e};r.shortenCallSiteString(T),r.tameV8ErrorConstructor(((e,t,r,o)=>{const p=e.captureStackTrace,m=e=>"verbose"===o||j(e.getFileName()),y=e=>{let t=""+e;return"concise"===o&&(t=T(t)),"\n at "+t},g=(e,t)=>c(l(i(t,m),y),""),d=new n,S={captureStackTrace(t,r=S.captureStackTrace){"function"!=typeof p?f(t,"stack",""):s(p,e,[t,r])},getStackString(e){let t=b(d,e);if(void 0===t&&(e.stack,t=b(d,e),t||(t={stackString:""},E(d,e,t))),void 0!==t.stackString)return t.stackString;const r=g(0,t.callSites);return E(d,e,{stackString:r}),r},prepareStackTrace(e,t){if("unsafe"===r){const r=g(0,t);return E(d,e,{stackString:r}),`${e}${r}`}return E(d,e,{callSites:t}),""}},v=S.prepareStackTrace;e.prepareStackTrace=v;const k=new a([v]);return u(t,{captureStackTrace:{value:S.captureStackTrace,writable:!0,enumerable:!1,configurable:!0},prepareStackTrace:{get:()=>e.prepareStackTrace,set(t){if("function"==typeof t){const r=(e=>{if(P(k,e))return e;const t={prepareStackTrace:(t,r)=>(E(d,t,{callSites:r}),e(t,(e=>l(e,h))(r)))};return w(k,t.prepareStackTrace),t.prepareStackTrace})(t);e.prepareStackTrace=r}else e.prepareStackTrace=v},enumerable:!1,configurable:!0}}),S.getStackString}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y;e([["../commons.js",[["FERAL_ERROR",[e=>n=e]],["TypeError",[e=>a=e]],["apply",[e=>s=e]],["construct",[e=>i=e]],["defineProperties",[e=>c=e]],["setPrototypeOf",[e=>l=e]],["getOwnPropertyDescriptor",[e=>p=e]],["defineProperty",[e=>m=e]]]],["../whitelist.js",[["NativeErrors",[e=>u=e]]]],["./tame-v8-error-constructor.js",[["tameV8ErrorConstructor",[e=>y=e]]]]]);const f=p(n.prototype,"stack"),g=f&&f.get,d=e=>"function"==typeof g?s(g,e,[]):"stack"in e?""+e.stack:"";r.default((function(e="safe",t="concise"){if("safe"!==e&&"unsafe"!==e)throw new a("unrecognized errorTaming "+e);if("concise"!==t&&"verbose"!==t)throw new a("unrecognized stackFiltering "+t);const r=n.prototype,o="function"==typeof n.captureStackTrace?"v8":"unknown",{captureStackTrace:p}=n,f=(e={})=>{const t=function(...e){let r;return r=void 0===new.target?s(n,this,e):i(n,e,new.target),"v8"===o&&s(p,n,[r,t]),r};return c(t,{length:{value:1},prototype:{value:r,writable:!1,enumerable:!1,configurable:!1}}),t},g=f({powers:"original"}),b=f({powers:"none"});c(r,{constructor:{value:b}});for(const e of u)l(e,b);c(g,{stackTraceLimit:{get(){if("number"==typeof n.stackTraceLimit)return n.stackTraceLimit},set(e){"number"==typeof e&&("number"!=typeof n.stackTraceLimit||(n.stackTraceLimit=e))},enumerable:!1,configurable:!0}}),c(b,{stackTraceLimit:{get(){},set(e){},enumerable:!1,configurable:!0}}),"v8"===o&&c(b,{prepareStackTrace:{get:()=>()=>"",set(e){},enumerable:!1,configurable:!0},captureStackTrace:{value:(e,t)=>{m(e,"stack",{value:""})},writable:!1,enumerable:!1,configurable:!0}});let E=d;return"v8"===o?E=y(n,g,e,t):c(r,"unsafe"===e?{stack:{get(){return E(this)},set(e){c(this,{stack:{value:e,writable:!0,enumerable:!0,configurable:!0}})}}}:{stack:{get(){return""+this},set(e){c(this,{stack:{value:e,writable:!0,enumerable:!0,configurable:!0}})}}}),{"%InitialGetStackString%":E,"%InitialError%":g,"%SharedError%":b}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E;function w(e){return p(e).constructor}e([["./commons.js",[["FERAL_FUNCTION",[e=>n=e]],["Float32Array",[e=>a=e]],["Map",[e=>s=e]],["Set",[e=>i=e]],["String",[e=>c=e]],["getOwnPropertyDescriptor",[e=>l=e]],["getPrototypeOf",[e=>p=e]],["iterateArray",[e=>m=e]],["iterateMap",[e=>u=e]],["iterateSet",[e=>y=e]],["iterateString",[e=>f=e]],["matchAllRegExp",[e=>g=e]],["matchAllSymbol",[e=>d=e]],["regexpPrototype",[e=>b=e]]]],["./compartment-shim.js",[["InertCompartment",[e=>E=e]]]]]),r.getAnonymousIntrinsics((()=>{const e=n.prototype.constructor,t=l(function(){return arguments}(),"callee").get,r=f(new c),o=p(r),P=b[d]&&g(/./),S=P&&p(P),h=m([]),v=p(h),j=p(a),k=u(new s),T=p(k),A=y(new i),x=p(A),M=p(v),I=w((function*(){})),O=I.prototype,C=w((async function*(){})),_=C.prototype,F=_.prototype,R=p(F);return{"%InertFunction%":e,"%ArrayIteratorPrototype%":v,"%InertAsyncFunction%":w((async function(){})),"%AsyncGenerator%":_,"%InertAsyncGeneratorFunction%":C,"%AsyncGeneratorPrototype%":F,"%AsyncIteratorPrototype%":R,"%Generator%":O,"%InertGeneratorFunction%":I,"%IteratorPrototype%":M,"%MapIteratorPrototype%":T,"%RegExpStringIteratorPrototype%":S,"%SetIteratorPrototype%":x,"%StringIteratorPrototype%":o,"%ThrowTypeError%":t,"%TypedArray%":j,"%InertCompartment%":E}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S,h,v,j,k,T,A,x,M,I;e([["./commons.js",[["Set",[e=>n=e]],["String",[e=>a=e]],["TypeError",[e=>s=e]],["WeakMap",[e=>i=e]],["WeakSet",[e=>c=e]],["apply",[e=>l=e]],["arrayForEach",[e=>p=e]],["defineProperty",[e=>m=e]],["freeze",[e=>u=e]],["getOwnPropertyDescriptor",[e=>y=e]],["getOwnPropertyDescriptors",[e=>f=e]],["getPrototypeOf",[e=>g=e]],["isInteger",[e=>d=e]],["isObject",[e=>b=e]],["objectHasOwnProperty",[e=>E=e]],["ownKeys",[e=>w=e]],["preventExtensions",[e=>P=e]],["setAdd",[e=>S=e]],["setForEach",[e=>h=e]],["setHas",[e=>v=e]],["toStringTagSymbol",[e=>j=e]],["typedArrayPrototype",[e=>k=e]],["weakmapGet",[e=>T=e]],["weakmapSet",[e=>A=e]],["weaksetAdd",[e=>x=e]],["weaksetHas",[e=>M=e]]]],["./error/assert.js",[["assert",[e=>I=e]]]]]);const O=y(k,j);I(O);const C=O.get;I(C);const _=e=>void 0!==l(C,e,[]);r.isTypedArray(_),r.makeHardener((()=>{const e=new c,{harden:t}={harden(t){const r=new n,o=new i;function c(t,n){if(!b(t))return;const a=typeof t;if("object"!==a&&"function"!==a)throw new s("Unexpected typeof: "+a);M(e,t)||v(r,t)||(S(r,t),A(o,t,n))}return c(t),h(r,(function(e){var t;_(e)?(P(t=e),p(w(t),(e=>{const r=y(t,e);I(r),(e=>{const t=+a(e);return d(t)&&a(t)===e})(e)||m(t,e,{...r,writable:!1,configurable:!1})}))):u(e);const r=T(o,e)||"unknown",n=f(e);c(g(e),r+".__proto__"),p(w(n),(e=>{const t=`${r}.${a(e)}`,o=n[e];E(o,"value")?c(o.value,""+t):(c(o.get,t+"(get)"),c(o.set,t+"(set)"))}))})),h(r,(function(t){x(e,t)})),t}};return t}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c;e([["./commons.js",[["Date",[e=>n=e]],["TypeError",[e=>a=e]],["apply",[e=>s=e]],["construct",[e=>i=e]],["defineProperties",[e=>c=e]]]]]),r.default((function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new a("unrecognized dateTaming "+e);const t=n,r=t.prototype,o=({powers:e="none"}={})=>{let o;return o="original"===e?function(...e){return void 0===new.target?s(t,void 0,e):i(t,e,new.target)}:function(...e){return void 0===new.target?"Invalid Date":(0===e.length&&(e=[NaN]),i(t,e,new.target))},c(o,{length:{value:7},prototype:{value:r,writable:!1,enumerable:!1,configurable:!1},parse:{value:n.parse,writable:!0,enumerable:!1,configurable:!0},UTC:{value:n.UTC,writable:!0,enumerable:!1,configurable:!0}}),o},l=o({powers:"original"}),p=o({powers:"none"});return c(l,{now:{value:n.now,writable:!0,enumerable:!1,configurable:!0}}),c(p,{now:{value:()=>NaN,writable:!0,enumerable:!1,configurable:!0}}),c(r,{constructor:{value:p}}),{"%InitialDate%":l,"%SharedDate%":p}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i;function c(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new n("unrecognized domainTaming "+e);if("unsafe"!==e&&"object"==typeof a.process&&null!==a.process){const e=s(a.process,"domain");if(void 0!==e&&void 0!==e.get)throw new n("SES failed to lockdown, Node.js domains have been initialized (SES_NO_DOMAINS)");i(a.process,"domain",{value:null,configurable:!1,writable:!1,enumerable:!1})}}e([["./commons.js",[["TypeError",[e=>n=e]],["globalThis",[e=>a=e]],["getOwnPropertyDescriptor",[e=>s=e]],["defineProperty",[e=>i=e]]]]]),Object.defineProperty(c,"name",{value:"tameDomains"}),r.tameDomains(c)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l;e([["./commons.js",[["FERAL_FUNCTION",[e=>n=e]],["SyntaxError",[e=>a=e]],["TypeError",[e=>s=e]],["defineProperties",[e=>i=e]],["getPrototypeOf",[e=>c=e]],["setPrototypeOf",[e=>l=e]]]]]),r.default((function(){try{n.prototype.constructor("return 1")}catch(e){return harden({})}const e={};function t(t,r,o){let p;try{p=(0,eval)(o)}catch(e){if(e instanceof a)return;throw e}const m=c(p),u=function(){throw new s("Function.prototype.constructor is not a valid constructor.")};i(u,{prototype:{value:m},name:{value:t,writable:!1,enumerable:!1,configurable:!0}}),i(m,{constructor:{value:u}}),u!==n.prototype.constructor&&l(u,n.prototype.constructor),e[r]=u}return t("Function","%InertFunction%","(function(){})"),t("GeneratorFunction","%InertGeneratorFunction%","(function*(){})"),t("AsyncFunction","%InertAsyncFunction%","(async function(){})"),t("AsyncGeneratorFunction","%InertAsyncGeneratorFunction%","(async function*(){})"),e}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u;e([["./commons.js",[["WeakSet",[e=>n=e]],["defineProperty",[e=>a=e]],["freeze",[e=>s=e]],["functionPrototype",[e=>i=e]],["functionToString",[e=>c=e]],["stringEndsWith",[e=>l=e]],["weaksetAdd",[e=>p=e]],["weaksetHas",[e=>m=e]]]]]),r.tameFunctionToString((()=>{if(void 0===u){const e=new n;a(i,"toString",{value:{toString(){const t=c(this,[]);return l(t,") { [native code] }")||!m(e,this)?t:`function ${this.name}() { [native code] }`}}.toString}),u=s((t=>p(e,t)))}return u}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m;e([["./commons.js",[["Number",[e=>n=e]],["String",[e=>a=e]],["TypeError",[e=>s=e]],["defineProperty",[e=>i=e]],["getOwnPropertyNames",[e=>c=e]],["isObject",[e=>l=e]],["regexpExec",[e=>p=e]]]],["./error/assert.js",[["assert",[e=>m=e]]]]]);const{details:u,quote:y}=m,f=/^(\w*[a-z])Locale([A-Z]\w*)$/,g={localeCompare(e){if(null==this)throw new s('Cannot localeCompare with null or undefined "this" value');const t=""+this;return t<(e=""+e)?-1:t>e?1:(m(t===e,u`expected ${y(t)} and ${y(e)} to compare`),0)},toString(){return""+this}},d=g.localeCompare,b=g.toString;r.default((function(e,t="safe"){if("safe"!==t&&"unsafe"!==t)throw new s("unrecognized localeTaming "+t);if("unsafe"!==t){i(a.prototype,"localeCompare",{value:d});for(const t of c(e)){const r=e[t];if(l(r))for(const e of c(r)){const t=p(f,e);if(t){m("function"==typeof r[e],u`expected ${y(e)} to be a function`);const o=`${t[1]}${t[2]}`,n=r[o];m("function"==typeof n,u`function ${y(o)} not found`),i(r,e,{value:n})}}}i(n.prototype,"toLocaleString",{value:b})}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c;e([["./commons.js",[["Math",[e=>n=e]],["TypeError",[e=>a=e]],["create",[e=>s=e]],["getOwnPropertyDescriptors",[e=>i=e]],["objectPrototype",[e=>c=e]]]]]),r.default((function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new a("unrecognized mathTaming "+e);const t=n,r=t,{random:o,...l}=i(t);return{"%InitialMath%":r,"%SharedMath%":s(c,l)}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l;e([["./commons.js",[["FERAL_REG_EXP",[e=>n=e]],["TypeError",[e=>a=e]],["construct",[e=>s=e]],["defineProperties",[e=>i=e]],["getOwnPropertyDescriptor",[e=>c=e]],["speciesSymbol",[e=>l=e]]]]]),r.default((function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new a("unrecognized regExpTaming "+e);const t=n.prototype,r=(e={})=>{const r=function(...e){return void 0===new.target?n(...e):s(n,e,new.target)};return i(r,{length:{value:2},prototype:{value:t,writable:!1,enumerable:!1,configurable:!1},[l]:c(n,l)}),r},o=r(),p=r();return"unsafe"!==e&&delete t.compile,i(t,{constructor:{value:p}}),{"%InitialRegExp%":o,"%SharedRegExp%":p}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P;e([["./whitelist.js",[["whitelist",[e=>n=e]],["FunctionInstance",[e=>a=e]],["isAccessorPermit",[e=>s=e]]]],["./commons.js",[["Map",[e=>i=e]],["String",[e=>c=e]],["TypeError",[e=>l=e]],["arrayFilter",[e=>p=e]],["arrayIncludes",[e=>m=e]],["arrayMap",[e=>u=e]],["entries",[e=>y=e]],["getOwnPropertyDescriptor",[e=>f=e]],["getPrototypeOf",[e=>g=e]],["isObject",[e=>d=e]],["mapGet",[e=>b=e]],["objectHasOwnProperty",[e=>E=e]],["ownKeys",[e=>w=e]],["symbolKeyFor",[e=>P=e]]]]]),r.default((function(e,t){const r=["undefined","boolean","number","string","symbol"],o=new i(e.Symbol?u(p(y(n.Symbol),(([t,r])=>"symbol"===r&&"symbol"==typeof e.Symbol[t])),(([t])=>[e.Symbol[t],"@@"+t])):[]);function S(e,t){if("string"==typeof t)return t;const r=b(o,t);if("symbol"==typeof t){if(r)return r;{const e=P(t);return void 0!==e?`RegisteredSymbol(${e})`:"Unique"+c(t)}}throw new l(`Unexpected property name type ${e} ${t}`)}function h(t,o,n,a){if("object"==typeof a)return k(t,o,a),!0;if(!1===a)return!1;if("string"==typeof a)if("prototype"===n||"constructor"===n){if(E(e,a)){if(o!==e[a])throw new l("Does not match whitelist "+t);return!0}}else if(m(r,a)){if(typeof o!==a)throw new l(`At ${t} expected ${a} not ${typeof o}`);return!0}throw new l(`Unexpected whitelist permit ${a} at ${t}`)}function v(e,t,r,o){const n=f(t,r);if(E(n,"value")){if(s(o))throw new l("Accessor expected at "+e);return h(e,n.value,r,o)}if(!s(o))throw new l("Accessor not expected at "+e);return h(e+"<get>",n.get,r,o.get)&&h(e+"<set>",n.set,r,o.set)}function j(e,r,o){const n="__proto__"===o?"--proto--":o;return E(r,n)?r[n]:"function"==typeof e&&(t(e),E(a,n))?a[n]:void 0}function k(t,r,o){if(void 0!==r){!function(t,r,o){if(!d(r))throw new l(`Object expected: ${t}, ${r}, ${o}`);const n=g(r);if(null!==n||null!==o){if(void 0!==o&&"string"!=typeof o)throw new l(`Malformed whitelist permit ${t}.__proto__`);if(n!==e[o||"%ObjectPrototype%"])throw new l(`Unexpected intrinsic ${t}.__proto__ at ${o}`)}}(t,r,o["[[Proto]]"]);for(const e of w(r)){const n=S(t,e),a=`${t}.${n}`,s=j(r,o,n);if(!s||!v(a,r,e,s)){!1!==s&&console.warn("Removing "+a);try{delete r[e]}catch(t){if(e in r){if("function"==typeof r&&"prototype"===e&&(r.prototype=void 0,void 0===r.prototype)){console.warn(`Tolerating undeletable ${a} === undefined`);continue}console.error("failed to delete "+a,t)}else console.error(`deleting ${a} threw`,t);throw t}}}}}k("intrinsics",e,n)}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S,h,v,j,k,T,A,x,M,I,O,C,_,F,R,V,N;e([["./commons.js",[["FERAL_FUNCTION",[e=>n=e]],["FERAL_EVAL",[e=>a=e]],["TypeError",[e=>s=e]],["arrayFilter",[e=>i=e]],["arrayMap",[e=>c=e]],["globalThis",[e=>l=e]],["is",[e=>p=e]],["ownKeys",[e=>m=e]],["stringSplit",[e=>u=e]],["noEvalEvaluate",[e=>y=e]]]],["./error/stringify-utils.js",[["enJoin",[e=>f=e]]]],["./make-hardener.js",[["makeHardener",[e=>g=e]]]],["./intrinsics.js",[["makeIntrinsicsCollector",[e=>d=e]]]],["./whitelist-intrinsics.js",[["default",[e=>b=e]]]],["./tame-function-constructors.js",[["default",[e=>E=e]]]],["./tame-date-constructor.js",[["default",[e=>w=e]]]],["./tame-math-object.js",[["default",[e=>P=e]]]],["./tame-regexp-constructor.js",[["default",[e=>S=e]]]],["./enable-property-overrides.js",[["default",[e=>h=e]]]],["./tame-locale-methods.js",[["default",[e=>v=e]]]],["./global-object.js",[["setGlobalObjectConstantProperties",[e=>j=e]],["setGlobalObjectMutableProperties",[e=>k=e]],["setGlobalObjectEvaluators",[e=>T=e]]]],["./make-safe-evaluator.js",[["makeSafeEvaluator",[e=>A=e]]]],["./whitelist.js",[["initialGlobalPropertyNames",[e=>x=e]]]],["./tame-function-tostring.js",[["tameFunctionToString",[e=>M=e]]]],["./tame-domains.js",[["tameDomains",[e=>I=e]]]],["./error/tame-console.js",[["tameConsole",[e=>O=e]]]],["./error/tame-error-constructor.js",[["default",[e=>C=e]]]],["./error/assert.js",[["assert",[e=>_=e]],["makeAssert",[e=>F=e]]]],["./environment-options.js",[["makeEnvironmentCaptor",[e=>R=e]]]],["./get-anonymous-intrinsics.js",[["getAnonymousIntrinsics",[e=>V=e]]]],["./compartment-shim.js",[["makeCompartmentConstructor",[e=>N=e]]]]]);const{details:L,quote:$}=_;let D;const G=g(),U=(e={})=>{const{getEnvironmentOption:t,getCapturedEnvironmentOptionNames:r}=R(l),{errorTaming:o=t("LOCKDOWN_ERROR_TAMING","safe"),errorTrapping:g=t("LOCKDOWN_ERROR_TRAPPING","platform"),unhandledRejectionTrapping:U=t("LOCKDOWN_UNHANDLED_REJECTION_TRAPPING","report"),regExpTaming:H=t("LOCKDOWN_REGEXP_TAMING","safe"),localeTaming:z=t("LOCKDOWN_LOCALE_TAMING","safe"),consoleTaming:W=t("LOCKDOWN_CONSOLE_TAMING","safe"),overrideTaming:B=t("LOCKDOWN_OVERRIDE_TAMING","moderate"),stackFiltering:K=t("LOCKDOWN_STACK_FILTERING","concise"),domainTaming:J=t("LOCKDOWN_DOMAIN_TAMING","safe"),evalTaming:q=t("LOCKDOWN_EVAL_TAMING","safeEval"),overrideDebug:Y=i(u(t("LOCKDOWN_OVERRIDE_DEBUG",""),","),(e=>""!==e)),dateTaming:X="safe",mathTaming:Z="safe",...Q}=e,ee=r();ee.length>0&&console.warn("SES Lockdown using options from environment variables "+f(c(ee,$),"and")),_("unsafeEval"===q||"safeEval"===q||"noEval"===q,L`lockdown(): non supported option evalTaming: ${$(q)}`);const te=m(Q);if(_(0===te.length,L`lockdown(): non supported option ${$(te)}`),_(void 0===D,`Already locked down at ${D} (SES_ALREADY_LOCKED_DOWN)`,s),D=new s("Prior lockdown (SES_ALREADY_LOCKED_DOWN)"),D.stack,(()=>{let e=!1;try{e=n("eval","SES_changed",' eval("SES_changed = true");\n return SES_changed;\n ')(a,!1),e||delete l.SES_changed}catch(t){e=!0}if(!e)throw new s("SES cannot initialize unless 'eval' is the original intrinsic 'eval', suitable for direct-eval (dynamically scoped eval) (SES_DIRECT_EVAL)")})(),l.Function.prototype.constructor!==l.Function&&"function"==typeof l.harden&&"function"==typeof l.lockdown&&l.Date.prototype.constructor!==l.Date&&"function"==typeof l.Date.now&&p(l.Date.prototype.constructor.now(),NaN))throw new s("Already locked down but not by this SES instance (SES_MULTIPLE_INSTANCES)");I(J);const{addIntrinsics:re,completePrototypes:oe,finalIntrinsics:ne}=d();re({harden:G}),re(E()),re(w(X)),re(C(o,K)),re(P(Z)),re(S(H)),re(V()),oe();const ae=ne();let se;"unsafe"!==o&&(se=ae["%InitialGetStackString%"]);const ie=O(W,g,U,se);l.console=ie.console,"unsafe"===o&&l.assert===_&&(l.assert=F(void 0,!0)),v(ae,z);const ce=M();if(b(ae,ce),j(l),k(l,{intrinsics:ae,newGlobalPropertyNames:x,makeCompartmentConstructor:N,markVirtualizedNativeFunction:ce}),"noEval"===q)T(l,y,ce);else if("safeEval"===q){const{safeEvaluate:e}=A({globalObject:l});T(l,e,ce)}return function(){return h(ae,B,Y),G(ae),l.harden=G,!0}};r.repairIntrinsics(U),r.lockdown(((e={})=>{U(e)()}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m;if(e([["./src/commons.js",[["globalThis",[e=>n=e]],["TypeError",[e=>a=e]],["assign",[e=>s=e]]]],["./src/tame-function-tostring.js",[["tameFunctionToString",[e=>i=e]]]],["./src/intrinsics.js",[["getGlobalIntrinsics",[e=>c=e]]]],["./src/lockdown-shim.js",[["lockdown",[e=>l=e]]]],["./src/compartment-shim.js",[["makeCompartmentConstructor",[e=>p=e]]]],["./src/error/assert.js",[["assert",[e=>m=e]]]]]),function(){return this}())throw new a("SES failed to initialize, sloppy mode (SES_NO_SLOPPY)");const u=i(),y=p(p,c(n),u);s(n,{lockdown:l,Compartment:y,assert:m})}];function t(e,t){const r=[];return{get:function(){return t},set:function(e){t=e;for(const e of r)e(t)},observe:function(e){r.push(e),e(t)},enumerable:!0}}const r=[{globalThis:t(),Array:t(),Date:t(),FinalizationRegistry:t(),Float32Array:t(),JSON:t(),Map:t(),Math:t(),Number:t(),Object:t(),Promise:t(),Proxy:t(),Reflect:t(),FERAL_REG_EXP:t(),Set:t(),String:t(),WeakMap:t(),WeakSet:t(),FERAL_ERROR:t(),RangeError:t(),ReferenceError:t(),SyntaxError:t(),TypeError:t(),assign:t(),create:t(),defineProperties:t(),entries:t(),freeze:t(),getOwnPropertyDescriptor:t(),getOwnPropertyDescriptors:t(),getOwnPropertyNames:t(),getPrototypeOf:t(),is:t(),isExtensible:t(),keys:t(),objectPrototype:t(),seal:t(),preventExtensions:t(),setPrototypeOf:t(),values:t(),fromEntries:t(),speciesSymbol:t(),toStringTagSymbol:t(),iteratorSymbol:t(),matchAllSymbol:t(),unscopablesSymbol:t(),symbolKeyFor:t(),symbolFor:t(),isInteger:t(),stringifyJson:t(),defineProperty:t(),apply:t(),construct:t(),reflectGet:t(),reflectGetOwnPropertyDescriptor:t(),reflectHas:t(),reflectIsExtensible:t(),ownKeys:t(),reflectPreventExtensions:t(),reflectSet:t(),isArray:t(),arrayPrototype:t(),mapPrototype:t(),proxyRevocable:t(),regexpPrototype:t(),setPrototype:t(),stringPrototype:t(),weakmapPrototype:t(),weaksetPrototype:t(),functionPrototype:t(),promisePrototype:t(),typedArrayPrototype:t(),uncurryThis:t(),objectHasOwnProperty:t(),arrayFilter:t(),arrayForEach:t(),arrayIncludes:t(),arrayJoin:t(),arrayMap:t(),arrayPop:t(),arrayPush:t(),arraySlice:t(),arraySome:t(),arraySort:t(),iterateArray:t(),mapSet:t(),mapGet:t(),mapHas:t(),mapDelete:t(),mapEntries:t(),iterateMap:t(),setAdd:t(),setDelete:t(),setForEach:t(),setHas:t(),iterateSet:t(),regexpTest:t(),regexpExec:t(),matchAllRegExp:t(),stringEndsWith:t(),stringIncludes:t(),stringIndexOf:t(),stringMatch:t(),stringReplace:t(),stringSearch:t(),stringSlice:t(),stringSplit:t(),stringStartsWith:t(),iterateString:t(),weakmapDelete:t(),weakmapGet:t(),weakmapHas:t(),weakmapSet:t(),weaksetAdd:t(),weaksetGet:t(),weaksetHas:t(),functionToString:t(),promiseAll:t(),promiseCatch:t(),promiseThen:t(),finalizationRegistryRegister:t(),finalizationRegistryUnregister:t(),getConstructorOf:t(),immutableObject:t(),isObject:t(),isError:t(),FERAL_EVAL:t(),FERAL_FUNCTION:t(),noEvalEvaluate:t()},{},{an:t(),bestEffortStringify:t(),enJoin:t()},{},{unredactedDetails:t(),loggedErrorHandler:t(),makeAssert:t(),assert:t()},{makeEvalScopeKit:t()},{isValidIdentifierName:t(),getScopeConstants:t()},{makeEvaluate:t()},{alwaysThrowHandler:t(),strictScopeTerminatorHandler:t(),strictScopeTerminator:t()},{createSloppyGlobalsScopeTerminator:t()},{getSourceURL:t()},{rejectHtmlComments:t(),evadeHtmlCommentTest:t(),rejectImportExpressions:t(),evadeImportExpressionTest:t(),rejectSomeDirectEvalExpressions:t(),mandatoryTransforms:t(),applyTransforms:t()},{makeSafeEvaluator:t()},{provideCompartmentEvaluator:t(),compartmentEvaluate:t()},{makeEvalFunction:t()},{makeFunctionConstructor:t()},{constantProperties:t(),universalPropertyNames:t(),initialGlobalPropertyNames:t(),sharedGlobalPropertyNames:t(),uniqueGlobalPropertyNames:t(),NativeErrors:t(),FunctionInstance:t(),isAccessorPermit:t(),whitelist:t()},{setGlobalObjectSymbolUnscopables:t(),setGlobalObjectConstantProperties:t(),setGlobalObjectMutableProperties:t(),setGlobalObjectEvaluators:t()},{makeAlias:t(),load:t()},{deferExports:t(),getDeferredExports:t()},{makeThirdPartyModuleInstance:t(),makeModuleInstance:t()},{link:t(),instantiate:t()},{InertCompartment:t(),CompartmentPrototype:t(),makeCompartmentConstructor:t()},{makeIntrinsicsCollector:t(),getGlobalIntrinsics:t()},{minEnablements:t(),moderateEnablements:t(),severeEnablements:t()},{default:t()},{makeEnvironmentCaptor:t()},{makeLoggingConsoleKit:t(),makeCausalConsole:t(),filterConsole:t(),consoleWhitelist:t()},{makeRejectionHandlers:t()},{tameConsole:t()},{filterFileName:t(),shortenCallSiteString:t(),tameV8ErrorConstructor:t()},{default:t()},{getAnonymousIntrinsics:t()},{isTypedArray:t(),makeHardener:t()},{default:t()},{tameDomains:t()},{default:t()},{tameFunctionToString:t()},{default:t()},{default:t()},{default:t()},{default:t()},{repairIntrinsics:t(),lockdown:t()},{}],o=r.map((e=>Object.create(null,e)));for(let e=0;e<o.length;e+=1)r[e]["*"]=t(0,o[e]);function n(e,t,o){for(const[n,a]of e.get(t)){const e=r[o][n];if(void 0===e)throw new ReferenceError("Cannot import name "+n);for(const t of a)e.observe(t)}}e[0]({imports(e){new Map(e)},liveVar:{},onceVar:{universalThis:r[0].globalThis.set,Array:r[0].Array.set,Date:r[0].Date.set,FinalizationRegistry:r[0].FinalizationRegistry.set,Float32Array:r[0].Float32Array.set,JSON:r[0].JSON.set,Map:r[0].Map.set,Math:r[0].Math.set,Number:r[0].Number.set,Object:r[0].Object.set,Promise:r[0].Promise.set,Proxy:r[0].Proxy.set,Reflect:r[0].Reflect.set,FERAL_REG_EXP:r[0].FERAL_REG_EXP.set,Set:r[0].Set.set,String:r[0].String.set,WeakMap:r[0].WeakMap.set,WeakSet:r[0].WeakSet.set,FERAL_ERROR:r[0].FERAL_ERROR.set,RangeError:r[0].RangeError.set,ReferenceError:r[0].ReferenceError.set,SyntaxError:r[0].SyntaxError.set,TypeError:r[0].TypeError.set,assign:r[0].assign.set,create:r[0].create.set,defineProperties:r[0].defineProperties.set,entries:r[0].entries.set,freeze:r[0].freeze.set,getOwnPropertyDescriptor:r[0].getOwnPropertyDescriptor.set,getOwnPropertyDescriptors:r[0].getOwnPropertyDescriptors.set,getOwnPropertyNames:r[0].getOwnPropertyNames.set,getPrototypeOf:r[0].getPrototypeOf.set,is:r[0].is.set,isExtensible:r[0].isExtensible.set,keys:r[0].keys.set,objectPrototype:r[0].objectPrototype.set,seal:r[0].seal.set,preventExtensions:r[0].preventExtensions.set,setPrototypeOf:r[0].setPrototypeOf.set,values:r[0].values.set,fromEntries:r[0].fromEntries.set,speciesSymbol:r[0].speciesSymbol.set,toStringTagSymbol:r[0].toStringTagSymbol.set,iteratorSymbol:r[0].iteratorSymbol.set,matchAllSymbol:r[0].matchAllSymbol.set,unscopablesSymbol:r[0].unscopablesSymbol.set,symbolKeyFor:r[0].symbolKeyFor.set,symbolFor:r[0].symbolFor.set,isInteger:r[0].isInteger.set,stringifyJson:r[0].stringifyJson.set,defineProperty:r[0].defineProperty.set,apply:r[0].apply.set,construct:r[0].construct.set,reflectGet:r[0].reflectGet.set,reflectGetOwnPropertyDescriptor:r[0].reflectGetOwnPropertyDescriptor.set,reflectHas:r[0].reflectHas.set,reflectIsExtensible:r[0].reflectIsExtensible.set,ownKeys:r[0].ownKeys.set,reflectPreventExtensions:r[0].reflectPreventExtensions.set,reflectSet:r[0].reflectSet.set,isArray:r[0].isArray.set,arrayPrototype:r[0].arrayPrototype.set,mapPrototype:r[0].mapPrototype.set,proxyRevocable:r[0].proxyRevocable.set,regexpPrototype:r[0].regexpPrototype.set,setPrototype:r[0].setPrototype.set,stringPrototype:r[0].stringPrototype.set,weakmapPrototype:r[0].weakmapPrototype.set,weaksetPrototype:r[0].weaksetPrototype.set,functionPrototype:r[0].functionPrototype.set,promisePrototype:r[0].promisePrototype.set,typedArrayPrototype:r[0].typedArrayPrototype.set,uncurryThis:r[0].uncurryThis.set,objectHasOwnProperty:r[0].objectHasOwnProperty.set,arrayFilter:r[0].arrayFilter.set,arrayForEach:r[0].arrayForEach.set,arrayIncludes:r[0].arrayIncludes.set,arrayJoin:r[0].arrayJoin.set,arrayMap:r[0].arrayMap.set,arrayPop:r[0].arrayPop.set,arrayPush:r[0].arrayPush.set,arraySlice:r[0].arraySlice.set,arraySome:r[0].arraySome.set,arraySort:r[0].arraySort.set,iterateArray:r[0].iterateArray.set,mapSet:r[0].mapSet.set,mapGet:r[0].mapGet.set,mapHas:r[0].mapHas.set,mapDelete:r[0].mapDelete.set,mapEntries:r[0].mapEntries.set,iterateMap:r[0].iterateMap.set,setAdd:r[0].setAdd.set,setDelete:r[0].setDelete.set,setForEach:r[0].setForEach.set,setHas:r[0].setHas.set,iterateSet:r[0].iterateSet.set,regexpTest:r[0].regexpTest.set,regexpExec:r[0].regexpExec.set,matchAllRegExp:r[0].matchAllRegExp.set,stringEndsWith:r[0].stringEndsWith.set,stringIncludes:r[0].stringIncludes.set,stringIndexOf:r[0].stringIndexOf.set,stringMatch:r[0].stringMatch.set,stringReplace:r[0].stringReplace.set,stringSearch:r[0].stringSearch.set,stringSlice:r[0].stringSlice.set,stringSplit:r[0].stringSplit.set,stringStartsWith:r[0].stringStartsWith.set,iterateString:r[0].iterateString.set,weakmapDelete:r[0].weakmapDelete.set,weakmapGet:r[0].weakmapGet.set,weakmapHas:r[0].weakmapHas.set,weakmapSet:r[0].weakmapSet.set,weaksetAdd:r[0].weaksetAdd.set,weaksetGet:r[0].weaksetGet.set,weaksetHas:r[0].weaksetHas.set,functionToString:r[0].functionToString.set,promiseAll:r[0].promiseAll.set,promiseCatch:r[0].promiseCatch.set,promiseThen:r[0].promiseThen.set,finalizationRegistryRegister:r[0].finalizationRegistryRegister.set,finalizationRegistryUnregister:r[0].finalizationRegistryUnregister.set,getConstructorOf:r[0].getConstructorOf.set,immutableObject:r[0].immutableObject.set,isObject:r[0].isObject.set,isError:r[0].isError.set,FERAL_EVAL:r[0].FERAL_EVAL.set,FERAL_FUNCTION:r[0].FERAL_FUNCTION.set,noEvalEvaluate:r[0].noEvalEvaluate.set},importMeta:{}}),e[1]({imports(e){new Map(e)},liveVar:{},onceVar:{},importMeta:{}}),e[2]({imports(e){n(new Map(e),"../commons.js",0)},liveVar:{},onceVar:{an:r[2].an.set,bestEffortStringify:r[2].bestEffortStringify.set,enJoin:r[2].enJoin.set},importMeta:{}}),e[3]({imports(e){new Map(e)},liveVar:{},onceVar:{},importMeta:{}}),e[4]({imports(e){const t=new Map(e);n(t,"../commons.js",0),n(t,"./internal-types.js",1),n(t,"./stringify-utils.js",2),n(t,"./types.js",3)},liveVar:{},onceVar:{unredactedDetails:r[4].unredactedDetails.set,loggedErrorHandler:r[4].loggedErrorHandler.set,makeAssert:r[4].makeAssert.set,assert:r[4].assert.set},importMeta:{}}),e[5]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{makeEvalScopeKit:r[5].makeEvalScopeKit.set},importMeta:{}}),e[6]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{isValidIdentifierName:r[6].isValidIdentifierName.set,getScopeConstants:r[6].getScopeConstants.set},importMeta:{}}),e[7]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./scope-constants.js",6)},liveVar:{},onceVar:{makeEvaluate:r[7].makeEvaluate.set},importMeta:{}}),e[8]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{alwaysThrowHandler:r[8].alwaysThrowHandler.set,strictScopeTerminatorHandler:r[8].strictScopeTerminatorHandler.set,strictScopeTerminator:r[8].strictScopeTerminator.set},importMeta:{}}),e[9]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./strict-scope-terminator.js",8)},liveVar:{},onceVar:{createSloppyGlobalsScopeTerminator:r[9].createSloppyGlobalsScopeTerminator.set},importMeta:{}}),e[10]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{getSourceURL:r[10].getSourceURL.set},importMeta:{}}),e[11]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./get-source-url.js",10)},liveVar:{},onceVar:{rejectHtmlComments:r[11].rejectHtmlComments.set,evadeHtmlCommentTest:r[11].evadeHtmlCommentTest.set,rejectImportExpressions:r[11].rejectImportExpressions.set,evadeImportExpressionTest:r[11].evadeImportExpressionTest.set,rejectSomeDirectEvalExpressions:r[11].rejectSomeDirectEvalExpressions.set,mandatoryTransforms:r[11].mandatoryTransforms.set,applyTransforms:r[11].applyTransforms.set},importMeta:{}}),e[12]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4),n(t,"./eval-scope.js",5),n(t,"./make-evaluate.js",7),n(t,"./sloppy-globals-scope-terminator.js",9),n(t,"./strict-scope-terminator.js",8),n(t,"./transforms.js",11)},liveVar:{},onceVar:{makeSafeEvaluator:r[12].makeSafeEvaluator.set},importMeta:{}}),e[13]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./make-safe-evaluator.js",12),n(t,"./transforms.js",11)},liveVar:{},onceVar:{provideCompartmentEvaluator:r[13].provideCompartmentEvaluator.set,compartmentEvaluate:r[13].compartmentEvaluate.set},importMeta:{}}),e[14]({imports(e){new Map(e)},liveVar:{},onceVar:{makeEvalFunction:r[14].makeEvalFunction.set},importMeta:{}}),e[15]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{makeFunctionConstructor:r[15].makeFunctionConstructor.set},importMeta:{}}),e[16]({imports(e){new Map(e)},liveVar:{},onceVar:{constantProperties:r[16].constantProperties.set,universalPropertyNames:r[16].universalPropertyNames.set,initialGlobalPropertyNames:r[16].initialGlobalPropertyNames.set,sharedGlobalPropertyNames:r[16].sharedGlobalPropertyNames.set,uniqueGlobalPropertyNames:r[16].uniqueGlobalPropertyNames.set,NativeErrors:r[16].NativeErrors.set,FunctionInstance:r[16].FunctionInstance.set,isAccessorPermit:r[16].isAccessorPermit.set,whitelist:r[16].whitelist.set},importMeta:{}}),e[17]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./make-eval-function.js",14),n(t,"./make-function-constructor.js",15),n(t,"./whitelist.js",16)},liveVar:{},onceVar:{setGlobalObjectSymbolUnscopables:r[17].setGlobalObjectSymbolUnscopables.set,setGlobalObjectConstantProperties:r[17].setGlobalObjectConstantProperties.set,setGlobalObjectMutableProperties:r[17].setGlobalObjectMutableProperties.set,setGlobalObjectEvaluators:r[17].setGlobalObjectEvaluators.set},importMeta:{}}),e[18]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{makeAlias:r[18].makeAlias.set,load:r[18].load.set},importMeta:{}}),e[19]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4),n(t,"./module-load.js",18)},liveVar:{},onceVar:{deferExports:r[19].deferExports.set,getDeferredExports:r[19].getDeferredExports.set},importMeta:{}}),e[20]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./compartment-evaluate.js",13),n(t,"./error/assert.js",4),n(t,"./module-proxy.js",19)},liveVar:{},onceVar:{makeThirdPartyModuleInstance:r[20].makeThirdPartyModuleInstance.set,makeModuleInstance:r[20].makeModuleInstance.set},importMeta:{}}),e[21]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4),n(t,"./module-instance.js",20)},liveVar:{},onceVar:{link:r[21].link.set,instantiate:r[21].instantiate.set},importMeta:{}}),e[22]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./compartment-evaluate.js",13),n(t,"./error/assert.js",4),n(t,"./global-object.js",17),n(t,"./make-safe-evaluator.js",12),n(t,"./module-link.js",21),n(t,"./module-load.js",18),n(t,"./module-proxy.js",19),n(t,"./scope-constants.js",6),n(t,"./whitelist.js",16)},liveVar:{},onceVar:{InertCompartment:r[22].InertCompartment.set,CompartmentPrototype:r[22].CompartmentPrototype.set,makeCompartmentConstructor:r[22].makeCompartmentConstructor.set},importMeta:{}}),e[23]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./whitelist.js",16)},liveVar:{},onceVar:{makeIntrinsicsCollector:r[23].makeIntrinsicsCollector.set,getGlobalIntrinsics:r[23].getGlobalIntrinsics.set},importMeta:{}}),e[24]({imports(e){new Map(e)},liveVar:{},onceVar:{minEnablements:r[24].minEnablements.set,moderateEnablements:r[24].moderateEnablements.set,severeEnablements:r[24].severeEnablements.set},importMeta:{}}),e[25]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./enablements.js",24)},liveVar:{},onceVar:{default:r[25].default.set},importMeta:{}}),e[26]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{makeEnvironmentCaptor:r[26].makeEnvironmentCaptor.set},importMeta:{}}),e[27]({imports(e){const t=new Map(e);n(t,"../commons.js",0),n(t,"./internal-types.js",1),n(t,"./types.js",3)},liveVar:{},onceVar:{makeLoggingConsoleKit:r[27].makeLoggingConsoleKit.set,makeCausalConsole:r[27].makeCausalConsole.set,filterConsole:r[27].filterConsole.set,consoleWhitelist:r[27].consoleWhitelist.set},importMeta:{}}),e[28]({imports(e){n(new Map(e),"../commons.js",0)},liveVar:{},onceVar:{makeRejectionHandlers:r[28].makeRejectionHandlers.set},importMeta:{}}),e[29]({imports(e){const t=new Map(e);n(t,"../commons.js",0),n(t,"./assert.js",4),n(t,"./console.js",27),n(t,"./internal-types.js",1),n(t,"./types.js",3),n(t,"./unhandled-rejection.js",28)},liveVar:{},onceVar:{tameConsole:r[29].tameConsole.set},importMeta:{}}),e[30]({imports(e){n(new Map(e),"../commons.js",0)},liveVar:{},onceVar:{filterFileName:r[30].filterFileName.set,shortenCallSiteString:r[30].shortenCallSiteString.set,tameV8ErrorConstructor:r[30].tameV8ErrorConstructor.set},importMeta:{}}),e[31]({imports(e){const t=new Map(e);n(t,"../commons.js",0),n(t,"../whitelist.js",16),n(t,"./tame-v8-error-constructor.js",30)},liveVar:{},onceVar:{default:r[31].default.set},importMeta:{}}),e[32]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./compartment-shim.js",22)},liveVar:{},onceVar:{getAnonymousIntrinsics:r[32].getAnonymousIntrinsics.set},importMeta:{}}),e[33]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{isTypedArray:r[33].isTypedArray.set,makeHardener:r[33].makeHardener.set},importMeta:{}}),e[34]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{default:r[34].default.set},importMeta:{}}),e[35]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{tameDomains:r[35].tameDomains.set},importMeta:{}}),e[36]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{default:r[36].default.set},importMeta:{}}),e[37]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{tameFunctionToString:r[37].tameFunctionToString.set},importMeta:{}}),e[38]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{default:r[38].default.set},importMeta:{}}),e[39]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{default:r[39].default.set},importMeta:{}}),e[40]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{default:r[40].default.set},importMeta:{}}),e[41]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./whitelist.js",16)},liveVar:{},onceVar:{default:r[41].default.set},importMeta:{}}),e[42]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./compartment-shim.js",22),n(t,"./enable-property-overrides.js",25),n(t,"./environment-options.js",26),n(t,"./error/assert.js",4),n(t,"./error/stringify-utils.js",2),n(t,"./error/tame-console.js",29),n(t,"./error/tame-error-constructor.js",31),n(t,"./get-anonymous-intrinsics.js",32),n(t,"./global-object.js",17),n(t,"./intrinsics.js",23),n(t,"./make-hardener.js",33),n(t,"./make-safe-evaluator.js",12),n(t,"./tame-date-constructor.js",34),n(t,"./tame-domains.js",35),n(t,"./tame-function-constructors.js",36),n(t,"./tame-function-tostring.js",37),n(t,"./tame-locale-methods.js",38),n(t,"./tame-math-object.js",39),n(t,"./tame-regexp-constructor.js",40),n(t,"./whitelist-intrinsics.js",41),n(t,"./whitelist.js",16)},liveVar:{},onceVar:{repairIntrinsics:r[42].repairIntrinsics.set,lockdown:r[42].lockdown.set},importMeta:{}}),e[43]({imports(e){const t=new Map(e);n(t,"./src/commons.js",0),n(t,"./src/compartment-shim.js",22),n(t,"./src/error/assert.js",4),n(t,"./src/intrinsics.js",23),n(t,"./src/lockdown-shim.js",42),n(t,"./src/tame-function-tostring.js",37)},liveVar:{},onceVar:{},importMeta:{}})})();
|
|
1
|
+
"use strict";(()=>{const e=[({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([]);const n=globalThis;r.universalThis(n);const{Array:a,Date:s,FinalizationRegistry:i,Float32Array:c,JSON:l,Map:p,Math:m,Number:u,Object:y,Promise:f,Proxy:g,Reflect:d,RegExp:b,Set:E,String:w,WeakMap:P,WeakSet:S}=globalThis;r.Array(a),r.Date(s),r.FinalizationRegistry(i),r.Float32Array(c),r.JSON(l),r.Map(p),r.Math(m),r.Number(u),r.Object(y),r.Promise(f),r.Proxy(g),r.Reflect(d),r.FERAL_REG_EXP(b),r.Set(E),r.String(w),r.WeakMap(P),r.WeakSet(S);const{Error:h,RangeError:v,ReferenceError:j,SyntaxError:k,TypeError:T}=globalThis;r.FERAL_ERROR(h),r.RangeError(v),r.ReferenceError(j),r.SyntaxError(k),r.TypeError(T);const{assign:A,create:M,defineProperties:x,entries:I,freeze:O,getOwnPropertyDescriptor:C,getOwnPropertyDescriptors:F,getOwnPropertyNames:_,getPrototypeOf:R,is:V,isExtensible:N,keys:D,prototype:$,seal:G,preventExtensions:L,setPrototypeOf:U,values:H,fromEntries:z}=y;r.assign(A),r.create(M),r.defineProperties(x),r.entries(I),r.freeze(O),r.getOwnPropertyDescriptor(C),r.getOwnPropertyDescriptors(F),r.getOwnPropertyNames(_),r.getPrototypeOf(R),r.is(V),r.isExtensible(N),r.keys(D),r.objectPrototype($),r.seal(G),r.preventExtensions(L),r.setPrototypeOf(U),r.values(H),r.fromEntries(z);const{species:W,toStringTag:B,iterator:K,matchAll:J,unscopables:q,keyFor:Y,for:X}=Symbol;r.speciesSymbol(W),r.toStringTagSymbol(B),r.iteratorSymbol(K),r.matchAllSymbol(J),r.unscopablesSymbol(q),r.symbolKeyFor(Y),r.symbolFor(X);const{isInteger:Z}=u;r.isInteger(Z);const{stringify:Q}=l;r.stringifyJson(Q);const{defineProperty:ee}=y;r.defineProperty(((e,t,r)=>{const o=ee(e,t,r);if(o!==e)throw T(`Please report that the original defineProperty silently failed to set ${Q(w(t))}. (SES_DEFINE_PROPERTY_FAILED_SILENTLY)`);return o}));const{apply:te,construct:re,get:oe,getOwnPropertyDescriptor:ne,has:ae,isExtensible:se,ownKeys:ie,preventExtensions:ce,set:le}=d;r.apply(te),r.construct(re),r.reflectGet(oe),r.reflectGetOwnPropertyDescriptor(ne),r.reflectHas(ae),r.reflectIsExtensible(se),r.ownKeys(ie),r.reflectPreventExtensions(ce),r.reflectSet(le);const{isArray:pe,prototype:me}=a;r.isArray(pe),r.arrayPrototype(me);const{prototype:ue}=p;r.mapPrototype(ue);const{revocable:ye}=g;r.proxyRevocable(ye);const{prototype:fe}=RegExp;r.regexpPrototype(fe);const{prototype:ge}=E;r.setPrototype(ge);const{prototype:de}=w;r.stringPrototype(de);const{prototype:be}=P;r.weakmapPrototype(be);const{prototype:Ee}=S;r.weaksetPrototype(Ee);const{prototype:we}=Function;r.functionPrototype(we);const{prototype:Pe}=f;r.promisePrototype(Pe);const Se=R(Uint8Array.prototype);r.typedArrayPrototype(Se);const{bind:he}=we,ve=he.bind(he.call);r.uncurryThis(ve);const je=ve($.hasOwnProperty);r.objectHasOwnProperty(je);const ke=ve(me.filter);r.arrayFilter(ke);const Te=ve(me.forEach);r.arrayForEach(Te);const Ae=ve(me.includes);r.arrayIncludes(Ae);const Me=ve(me.join);r.arrayJoin(Me);const xe=ve(me.map);r.arrayMap(xe);const Ie=ve(me.pop);r.arrayPop(Ie);const Oe=ve(me.push);r.arrayPush(Oe);const Ce=ve(me.slice);r.arraySlice(Ce);const Fe=ve(me.some);r.arraySome(Fe);const _e=ve(me.sort);r.arraySort(_e);const Re=ve(me[K]);r.iterateArray(Re);const Ve=ve(ue.set);r.mapSet(Ve);const Ne=ve(ue.get);r.mapGet(Ne);const De=ve(ue.has);r.mapHas(De);const $e=ve(ue.delete);r.mapDelete($e);const Ge=ve(ue.entries);r.mapEntries(Ge);const Le=ve(ue[K]);r.iterateMap(Le);const Ue=ve(ge.add);r.setAdd(Ue);const He=ve(ge.delete);r.setDelete(He);const ze=ve(ge.forEach);r.setForEach(ze);const We=ve(ge.has);r.setHas(We);const Be=ve(ge[K]);r.iterateSet(Be);const Ke=ve(fe.test);r.regexpTest(Ke);const Je=ve(fe.exec);r.regexpExec(Je);const qe=ve(fe[J]);r.matchAllRegExp(qe);const Ye=ve(de.endsWith);r.stringEndsWith(Ye);const Xe=ve(de.includes);r.stringIncludes(Xe);const Ze=ve(de.indexOf);r.stringIndexOf(Ze);const Qe=ve(de.match);r.stringMatch(Qe);const et=ve(de.replace);r.stringReplace(et);const tt=ve(de.search);r.stringSearch(tt);const rt=ve(de.slice);r.stringSlice(rt);const ot=ve(de.split);r.stringSplit(ot);const nt=ve(de.startsWith);r.stringStartsWith(nt);const at=ve(de[K]);r.iterateString(at);const st=ve(be.delete);r.weakmapDelete(st);const it=ve(be.get);r.weakmapGet(it);const ct=ve(be.has);r.weakmapHas(ct);const lt=ve(be.set);r.weakmapSet(lt);const pt=ve(Ee.add);r.weaksetAdd(pt);const mt=ve(Ee.get);r.weaksetGet(mt);const ut=ve(Ee.has);r.weaksetHas(ut);const yt=ve(we.toString);r.functionToString(yt);const{all:ft}=f;r.promiseAll((e=>te(ft,f,[e])));const gt=ve(Pe.catch);r.promiseCatch(gt);const dt=ve(Pe.then);r.promiseThen(dt);const bt=i&&ve(i.prototype.register);r.finalizationRegistryRegister(bt);const Et=i&&ve(i.prototype.unregister);r.finalizationRegistryUnregister(Et),r.getConstructorOf((e=>oe(R(e),"constructor")));const wt=O(M(null));r.immutableObject(wt),r.isObject((e=>y(e)===e)),r.isError((e=>e instanceof h));const Pt=eval;r.FERAL_EVAL(Pt);const St=Function;r.FERAL_FUNCTION(St),r.noEvalEvaluate((()=>{throw new T('Cannot eval with evalTaming set to "noEval" (SES_NO_EVAL)')}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([])},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d;e([["../commons.js",[["Set",[e=>n=e]],["String",[e=>a=e]],["arrayJoin",[e=>s=e]],["arraySlice",[e=>i=e]],["freeze",[e=>c=e]],["is",[e=>l=e]],["isError",[e=>p=e]],["setAdd",[e=>m=e]],["setHas",[e=>u=e]],["stringIncludes",[e=>y=e]],["stringStartsWith",[e=>f=e]],["stringifyJson",[e=>g=e]],["toStringTagSymbol",[e=>d=e]]]]]),r.enJoin(((e,t)=>{if(0===e.length)return"(none)";if(1===e.length)return e[0];if(2===e.length){const[r,o]=e;return`${r} ${t} ${o}`}return`${s(i(e,0,-1),", ")}, ${t} ${e[e.length-1]}`}));const b=e=>(e=""+e).length>=1&&y("aeiouAEIOU",e[0])?"an "+e:"a "+e;r.an(b),c(b);const E=(e,t)=>{const r=new n,o=(e,t)=>{switch(typeof t){case"object":return null===t?null:u(r,t)?"[Seen]":(m(r,t),p(t)?`[${t.name}: ${t.message}]`:d in t?`[${t[d]}]`:t);case"function":return`[Function ${t.name||"<anon>"}]`;case"string":return f(t,"[")?`[${t}]`:t;case"undefined":case"symbol":return`[${a(t)}]`;case"bigint":return`[${t}n]`;case"number":return l(t,NaN)?"[NaN]":t===1/0?"[Infinity]":t===-1/0?"[-Infinity]":t;default:return t}};try{return g(e,o,t)}catch(e){return"[Something that failed to stringify]"}};r.bestEffortStringify(E),c(E)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([])},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S,h,v,j,k;e([["../commons.js",[["RangeError",[e=>n=e]],["TypeError",[e=>a=e]],["WeakMap",[e=>s=e]],["arrayJoin",[e=>i=e]],["arrayMap",[e=>c=e]],["arrayPop",[e=>l=e]],["arrayPush",[e=>p=e]],["assign",[e=>m=e]],["freeze",[e=>u=e]],["globalThis",[e=>y=e]],["is",[e=>f=e]],["isError",[e=>g=e]],["stringIndexOf",[e=>d=e]],["stringReplace",[e=>b=e]],["stringSlice",[e=>E=e]],["stringStartsWith",[e=>w=e]],["weakmapDelete",[e=>P=e]],["weakmapGet",[e=>S=e]],["weakmapHas",[e=>h=e]],["weakmapSet",[e=>v=e]]]],["./stringify-utils.js",[["an",[e=>j=e]],["bestEffortStringify",[e=>k=e]]]],["./types.js",[]],["./internal-types.js",[]]]);const T=new s,A=(e,t)=>{const r=u({toString:u((()=>k(e,t)))});return v(T,r,e),r};u(A);const M=new s,x=({template:e,args:t})=>{const r=[e[0]];for(let o=0;o<t.length;o+=1){const n=t[o];let a;a=h(T,n)?""+n:g(n)?`(${j(n.name)})`:`(${j(typeof n)})`,p(r,a,e[o+1])}return i(r,"")},I=u({toString(){const e=S(M,this);return void 0===e?"[Not a DetailsToken]":x(e)}});u(I.toString);const O=(e,...t)=>{const r=u({__proto__:I});return v(M,r,{template:e,args:t}),r};u(O);const C=(e,...t)=>(t=c(t,(e=>h(T,e)?e:A(e))),O(e,...t));r.unredactedDetails(C),u(C);const F=({template:e,args:t})=>{const r=[e[0]];for(let o=0;o<t.length;o+=1){let n=t[o];h(T,n)&&(n=S(T,n));const a=b(l(r)||"",/ $/,"");""!==a&&p(r,a);const s=b(e[o+1],/^ /,"");p(r,n,s)}return""===r[r.length-1]&&l(r),r},_=new s;let R=0;const V=new s,N=(e,t=e.name)=>{let r=S(V,e);return void 0!==r||(R+=1,r=`${t}#${R}`,v(V,e,r)),r},D=(e=O`Assert failed`,t=y.Error,{errorName:r}={})=>{"string"==typeof e&&(e=O([e]));const o=S(M,e);if(void 0===o)throw new a("unrecognized details "+A(e));const n=new t(x(o));return v(_,n,F(o)),void 0!==r&&N(n,r),n};u(D);const $=new s,G=new s,L=(e,t)=>{"string"==typeof t&&(t=O([t]));const r=S(M,t);if(void 0===r)throw new a("unrecognized details "+A(t));const o=F(r),n=S(G,e);if(void 0!==n)for(const t of n)t(e,o);else{const t=S($,e);void 0!==t?p(t,o):v($,e,[o])}};u(L);const U={getStackString:y.getStackString||(e=>{if(!("stack"in e))return"";const t=""+e.stack,r=d(t,"\n");return w(t," ")||-1===r?t:E(t,r+1)}),tagError:e=>N(e),resetErrorTagNum:()=>{R=0},getMessageLogArgs:e=>S(_,e),takeMessageLogArgs:e=>{const t=S(_,e);return P(_,e),t},takeNoteLogArgsArray:(e,t)=>{const r=S($,e);if(P($,e),void 0!==t){const r=S(G,e);r?p(r,t):v(G,e,[t])}return r||[]}};r.loggedErrorHandler(U),u(U);const H=(e,t=!1)=>{const r=t?C:O,o=(t=r`Assert failed`,o=y.Error)=>{const n=D(t,o);throw void 0!==e&&e(n),n};function s(e,t=r`Check failed`,n=y.Error){if(!e)throw o(t,n)}u(o);const i=(e,t,o=r`Expected ${e} is same as ${t}`,a=n)=>{s(f(e,t),o,a)};u(i);const c=(e,t,o)=>{s("string"==typeof t,r`${A(t)} must be a string`),void 0===o&&(o=r([""," must be "+j(t)],e)),i(typeof e,t,o,a)};u(c);const l=m(s,{error:D,fail:o,equal:i,typeof:c,string:(e,t)=>c(e,"string",t),note:L,details:r,Fail:(e,...t)=>o(r(e,...t)),quote:A,makeAssert:H});return u(l)};r.makeAssert(H),u(H);const z=H();r.assert(z)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c;e([["./commons.js",[["FERAL_EVAL",[e=>n=e]],["create",[e=>a=e]],["defineProperties",[e=>s=e]],["freeze",[e=>i=e]]]],["./error/assert.js",[["assert",[e=>c=e]]]]]);const{Fail:l}=c;r.makeEvalScopeKit((()=>{const e=a(null),t=i({eval:{get:()=>(delete e.eval,n),enumerable:!1,configurable:!0}}),r={evalScope:e,allowNextEvalToBeUnsafe(){null!==r.revoked&&l`a handler did not reset allowNextEvalToBeUnsafe ${this.revoked.err}`,s(e,t)},revoked:null};return r}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l;e([["./commons.js",[["arrayFilter",[e=>n=e]],["arrayIncludes",[e=>a=e]],["getOwnPropertyDescriptor",[e=>s=e]],["getOwnPropertyNames",[e=>i=e]],["objectHasOwnProperty",[e=>c=e]],["regexpTest",[e=>l=e]]]]]);const p=["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","let","static","enum","implements","package","protected","interface","private","public","await","null","true","false","this","arguments"],m=/^[a-zA-Z_$][\w$]*$/,u=e=>"eval"!==e&&!a(p,e)&&l(m,e);function y(e,t){const r=s(e,t);return!1===r.configurable&&!1===r.writable&&c(r,"value")}r.isValidIdentifierName(u),r.getScopeConstants(((e,t={})=>{const r=i(e),o=i(t),s=n(o,(e=>u(e)&&y(t,e)));return{globalObjectConstants:n(r,(t=>!a(o,t)&&u(t)&&y(e,t))),moduleLexicalConstants:s}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i;function c(e,t){return 0===e.length?"":`const {${a(e,",")}} = this.${t};`}e([["./commons.js",[["FERAL_FUNCTION",[e=>n=e]],["arrayJoin",[e=>a=e]],["apply",[e=>s=e]]]],["./scope-constants.js",[["getScopeConstants",[e=>i=e]]]]]),r.makeEvaluate((e=>{const{globalObjectConstants:t,moduleLexicalConstants:r}=i(e.globalObject,e.moduleLexicals),o=c(t,"globalObject"),a=c(r,"moduleLexicals"),l=n(`\n with (this.scopeTerminator) {\n with (this.globalObject) {\n with (this.moduleLexicals) {\n with (this.evalScope) {\n ${o}\n ${a}\n return function() {\n 'use strict';\n return eval(arguments[0]);\n };\n }\n }\n }\n }\n `);return s(l,e,[])}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y;e([["./commons.js",[["Proxy",[e=>n=e]],["String",[e=>a=e]],["TypeError",[e=>s=e]],["ReferenceError",[e=>i=e]],["create",[e=>c=e]],["freeze",[e=>l=e]],["getOwnPropertyDescriptors",[e=>p=e]],["globalThis",[e=>m=e]],["immutableObject",[e=>u=e]]]],["./error/assert.js",[["assert",[e=>y=e]]]]]);const{Fail:f,quote:g}=y,d=new n(u,l({get(e,t){f`Please report unexpected scope handler trap: ${g(a(t))}`}}));r.alwaysThrowHandler(d);const b=l(c(d,p({get(e,t){},set(e,t,r){throw new i(a(t)+" is not defined")},has:(e,t)=>t in m,getPrototypeOf:()=>null,getOwnPropertyDescriptor(e,t){const r=g(a(t));console.warn("getOwnPropertyDescriptor trap on scopeTerminatorHandler for "+r,(new s).stack)}})));r.strictScopeTerminatorHandler(b);const E=new n(u,b);r.strictScopeTerminator(E)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m;e([["./commons.js",[["Proxy",[e=>n=e]],["create",[e=>a=e]],["freeze",[e=>s=e]],["getOwnPropertyDescriptors",[e=>i=e]],["immutableObject",[e=>c=e]],["reflectSet",[e=>l=e]]]],["./strict-scope-terminator.js",[["strictScopeTerminatorHandler",[e=>p=e]],["alwaysThrowHandler",[e=>m=e]]]]]),r.createSloppyGlobalsScopeTerminator((e=>{const t={...p,set:(t,r,o)=>l(e,r,o),has:(e,t)=>!0},r=s(a(m,i(t)));return new n(c,r)}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s;e([["./commons.js",[["FERAL_REG_EXP",[e=>n=e]],["regexpExec",[e=>a=e]],["stringSlice",[e=>s=e]]]]]);const i=new n("(?:\\s*//\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)|/\\*\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)\\s*\\*/)\\s*$");r.getSourceURL((e=>{let t="<unknown>";for(;e.length>0;){const r=a(i,e);if(null===r)break;e=s(e,0,e.length-r[0].length),"sourceURL"===r[3]?t=r[4]:"sourceURL"===r[1]&&(t=r[2])}return t}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p;function m(e,t){const r=i(e,t);if(r<0)return-1;const o="\n"===e[r]?1:0;return l(c(e,0,r),"\n").length+o}e([["./commons.js",[["FERAL_REG_EXP",[e=>n=e]],["SyntaxError",[e=>a=e]],["stringReplace",[e=>s=e]],["stringSearch",[e=>i=e]],["stringSlice",[e=>c=e]],["stringSplit",[e=>l=e]]]],["./get-source-url.js",[["getSourceURL",[e=>p=e]]]]]);const u=new n("(?:\x3c!--|--\x3e)","g"),y=e=>{const t=m(e,u);if(t<0)return e;const r=p(e);throw new a(`Possible HTML comment rejected at ${r}:${t}. (SES_HTML_COMMENT_REJECTED)`)};r.rejectHtmlComments(y),r.evadeHtmlCommentTest((e=>s(e,u,(e=>"<"===e[0]?"< ! --":"-- >"))));const f=new n("(^|[^.])\\bimport(\\s*(?:\\(|/[/*]))","g"),g=e=>{const t=m(e,f);if(t<0)return e;const r=p(e);throw new a(`Possible import expression rejected at ${r}:${t}. (SES_IMPORT_REJECTED)`)};r.rejectImportExpressions(g),r.evadeImportExpressionTest((e=>s(e,f,((e,t,r)=>`${t}__import__${r}`))));const d=new n("(^|[^.])\\beval(\\s*\\()","g");r.rejectSomeDirectEvalExpressions((e=>{const t=m(e,d);if(t<0)return e;const r=p(e);throw new a(`Possible direct eval expression rejected at ${r}:${t}. (SES_EVAL_REJECTED)`)})),r.mandatoryTransforms((e=>(e=y(e),g(e)))),r.applyTransforms(((e,t)=>{for(const r of t)e=r(e);return e}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u;e([["./commons.js",[["apply",[e=>n=e]],["freeze",[e=>a=e]]]],["./strict-scope-terminator.js",[["strictScopeTerminator",[e=>s=e]]]],["./sloppy-globals-scope-terminator.js",[["createSloppyGlobalsScopeTerminator",[e=>i=e]]]],["./eval-scope.js",[["makeEvalScopeKit",[e=>c=e]]]],["./transforms.js",[["applyTransforms",[e=>l=e]],["mandatoryTransforms",[e=>p=e]]]],["./make-evaluate.js",[["makeEvaluate",[e=>m=e]]]],["./error/assert.js",[["assert",[e=>u=e]]]]]);const{Fail:y}=u;r.makeSafeEvaluator((({globalObject:e,moduleLexicals:t={},globalTransforms:r=[],sloppyGlobalsMode:o=!1}={})=>{const u=o?i(e):s,f=c(),{evalScope:g}=f,d=a({evalScope:g,moduleLexicals:t,globalObject:e,scopeTerminator:u});let b;return{safeEvaluate:(t,{localTransforms:o=[]}={})=>{let a;b||(b=m(d)),t=l(t,[...o,...r,p]);try{return f.allowNextEvalToBeUnsafe(),n(b,e,[t])}catch(e){throw a=e,e}finally{const e="eval"in g;delete g.eval,e&&(f.revoked={err:a},y`handler did not reset allowNextEvalToBeUnsafe ${a}`)}}}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m;e([["./commons.js",[["TypeError",[e=>n=e]],["arrayPush",[e=>a=e]],["create",[e=>s=e]],["getOwnPropertyDescriptors",[e=>i=e]]]],["./transforms.js",[["evadeHtmlCommentTest",[e=>c=e]],["evadeImportExpressionTest",[e=>l=e]],["rejectSomeDirectEvalExpressions",[e=>p=e]]]],["./make-safe-evaluator.js",[["makeSafeEvaluator",[e=>m=e]]]]]);const u=(e,t)=>{const{sloppyGlobalsMode:r=!1,__moduleShimLexicals__:o}=t;let n;if(void 0!==o||r){let{globalTransforms:t}=e;const{globalObject:a}=e;let c;void 0!==o&&(t=void 0,c=s(null,i(o))),({safeEvaluate:n}=m({globalObject:a,moduleLexicals:c,globalTransforms:t,sloppyGlobalsMode:r}))}else({safeEvaluate:n}=e);return{safeEvaluate:n}};r.provideCompartmentEvaluator(u),r.compartmentEvaluate(((e,t,r)=>{if("string"!=typeof t)throw new n("first argument of evaluate() must be a string");const{transforms:o=[],__evadeHtmlCommentTest__:s=!1,__evadeImportExpressionTest__:i=!1,__rejectSomeDirectEvalExpressions__:m=!0}=r,y=[...o];!0===s&&a(y,c),!0===i&&a(y,l),!0===m&&a(y,p);const{safeEvaluate:f}=u(e,r);return f(t,{localTransforms:y})}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([]),r.makeEvalFunction((e=>t=>"string"!=typeof t?t:e(t)))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l;e([["./commons.js",[["FERAL_FUNCTION",[e=>n=e]],["arrayJoin",[e=>a=e]],["arrayPop",[e=>s=e]],["defineProperties",[e=>i=e]],["getPrototypeOf",[e=>c=e]]]],["./error/assert.js",[["assert",[e=>l=e]]]]]);const{Fail:p}=l;r.makeFunctionConstructor((e=>{const t=function(t){const r=""+(s(arguments)||""),o=""+a(arguments,",");new n(o,""),new n(r);const i=`(function anonymous(${o}\n) {\n${r}\n})`;return e(i)};return i(t,{prototype:{value:n.prototype,writable:!1,enumerable:!1,configurable:!1}}),c(n)===n.prototype||p`Function prototype is the same accross compartments`,c(t)===n.prototype||p`Function constructor prototype is the same accross compartments`,t}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([]);r.constantProperties({Infinity:1/0,NaN:NaN,undefined:void 0}),r.universalPropertyNames({isFinite:"isFinite",isNaN:"isNaN",parseFloat:"parseFloat",parseInt:"parseInt",decodeURI:"decodeURI",decodeURIComponent:"decodeURIComponent",encodeURI:"encodeURI",encodeURIComponent:"encodeURIComponent",Array:"Array",ArrayBuffer:"ArrayBuffer",BigInt:"BigInt",BigInt64Array:"BigInt64Array",BigUint64Array:"BigUint64Array",Boolean:"Boolean",DataView:"DataView",EvalError:"EvalError",Float32Array:"Float32Array",Float64Array:"Float64Array",Int8Array:"Int8Array",Int16Array:"Int16Array",Int32Array:"Int32Array",Map:"Map",Number:"Number",Object:"Object",Promise:"Promise",Proxy:"Proxy",RangeError:"RangeError",ReferenceError:"ReferenceError",Set:"Set",String:"String",Symbol:"Symbol",SyntaxError:"SyntaxError",TypeError:"TypeError",Uint8Array:"Uint8Array",Uint8ClampedArray:"Uint8ClampedArray",Uint16Array:"Uint16Array",Uint32Array:"Uint32Array",URIError:"URIError",WeakMap:"WeakMap",WeakSet:"WeakSet",JSON:"JSON",Reflect:"Reflect",escape:"escape",unescape:"unescape",lockdown:"lockdown",harden:"harden",HandledPromise:"HandledPromise"}),r.initialGlobalPropertyNames({Date:"%InitialDate%",Error:"%InitialError%",RegExp:"%InitialRegExp%",Math:"%InitialMath%",getStackString:"%InitialGetStackString%"}),r.sharedGlobalPropertyNames({Date:"%SharedDate%",Error:"%SharedError%",RegExp:"%SharedRegExp%",Math:"%SharedMath%"}),r.uniqueGlobalPropertyNames({globalThis:"%UniqueGlobalThis%",eval:"%UniqueEval%",Function:"%UniqueFunction%",Compartment:"%UniqueCompartment%"});const n=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError];r.NativeErrors(n);const a={"[[Proto]]":"%FunctionPrototype%",length:"number",name:"string"};r.FunctionInstance(a);const s=a,i={"[[Proto]]":"%AsyncFunctionPrototype%"},c={get:s,set:"undefined"},l={get:s,set:s};function p(e){return{"[[Proto]]":"%SharedError%",prototype:e}}function m(e){return{"[[Proto]]":"%ErrorPrototype%",constructor:e,message:"string",name:"string",toString:!1,cause:!1}}function u(e){return{"[[Proto]]":"%TypedArray%",BYTES_PER_ELEMENT:"number",prototype:e}}function y(e){return{"[[Proto]]":"%TypedArrayPrototype%",BYTES_PER_ELEMENT:"number",constructor:e}}r.isAccessorPermit((e=>e===c||e===l));const f={E:"number",LN10:"number",LN2:"number",LOG10E:"number",LOG2E:"number",PI:"number",SQRT1_2:"number",SQRT2:"number","@@toStringTag":"string",abs:s,acos:s,acosh:s,asin:s,asinh:s,atan:s,atanh:s,atan2:s,cbrt:s,ceil:s,clz32:s,cos:s,cosh:s,exp:s,expm1:s,floor:s,fround:s,hypot:s,imul:s,log:s,log1p:s,log10:s,log2:s,max:s,min:s,pow:s,round:s,sign:s,sin:s,sinh:s,sqrt:s,tan:s,tanh:s,trunc:s,idiv:!1,idivmod:!1,imod:!1,imuldiv:!1,irem:!1,mod:!1},g={"[[Proto]]":null,"%ThrowTypeError%":s,Infinity:"number",NaN:"number",undefined:"undefined","%UniqueEval%":s,isFinite:s,isNaN:s,parseFloat:s,parseInt:s,decodeURI:s,decodeURIComponent:s,encodeURI:s,encodeURIComponent:s,Object:{"[[Proto]]":"%FunctionPrototype%",assign:s,create:s,defineProperties:s,defineProperty:s,entries:s,freeze:s,fromEntries:s,getOwnPropertyDescriptor:s,getOwnPropertyDescriptors:s,getOwnPropertyNames:s,getOwnPropertySymbols:s,getPrototypeOf:s,hasOwn:s,is:s,isExtensible:s,isFrozen:s,isSealed:s,keys:s,preventExtensions:s,prototype:"%ObjectPrototype%",seal:s,setPrototypeOf:s,values:s},"%ObjectPrototype%":{"[[Proto]]":null,constructor:"Object",hasOwnProperty:s,isPrototypeOf:s,propertyIsEnumerable:s,toLocaleString:s,toString:s,valueOf:s,"--proto--":l,__defineGetter__:s,__defineSetter__:s,__lookupGetter__:s,__lookupSetter__:s},"%UniqueFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%InertFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%FunctionPrototype%":{apply:s,bind:s,call:s,constructor:"%InertFunction%",toString:s,"@@hasInstance":s,caller:!1,arguments:!1},Boolean:{"[[Proto]]":"%FunctionPrototype%",prototype:"%BooleanPrototype%"},"%BooleanPrototype%":{constructor:"Boolean",toString:s,valueOf:s},Symbol:{"[[Proto]]":"%FunctionPrototype%",asyncIterator:"symbol",for:s,hasInstance:"symbol",isConcatSpreadable:"symbol",iterator:"symbol",keyFor:s,match:"symbol",matchAll:"symbol",prototype:"%SymbolPrototype%",replace:"symbol",search:"symbol",species:"symbol",split:"symbol",toPrimitive:"symbol",toStringTag:"symbol",unscopables:"symbol"},"%SymbolPrototype%":{constructor:"Symbol",description:c,toString:s,valueOf:s,"@@toPrimitive":s,"@@toStringTag":"string"},"%InitialError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:s,stackTraceLimit:l,prepareStackTrace:l},"%SharedError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:s,stackTraceLimit:l,prepareStackTrace:l},"%ErrorPrototype%":{constructor:"%SharedError%",message:"string",name:"string",toString:s,at:!1,stack:l,cause:!1},EvalError:p("%EvalErrorPrototype%"),RangeError:p("%RangeErrorPrototype%"),ReferenceError:p("%ReferenceErrorPrototype%"),SyntaxError:p("%SyntaxErrorPrototype%"),TypeError:p("%TypeErrorPrototype%"),URIError:p("%URIErrorPrototype%"),"%EvalErrorPrototype%":m("EvalError"),"%RangeErrorPrototype%":m("RangeError"),"%ReferenceErrorPrototype%":m("ReferenceError"),"%SyntaxErrorPrototype%":m("SyntaxError"),"%TypeErrorPrototype%":m("TypeError"),"%URIErrorPrototype%":m("URIError"),Number:{"[[Proto]]":"%FunctionPrototype%",EPSILON:"number",isFinite:s,isInteger:s,isNaN:s,isSafeInteger:s,MAX_SAFE_INTEGER:"number",MAX_VALUE:"number",MIN_SAFE_INTEGER:"number",MIN_VALUE:"number",NaN:"number",NEGATIVE_INFINITY:"number",parseFloat:s,parseInt:s,POSITIVE_INFINITY:"number",prototype:"%NumberPrototype%"},"%NumberPrototype%":{constructor:"Number",toExponential:s,toFixed:s,toLocaleString:s,toPrecision:s,toString:s,valueOf:s},BigInt:{"[[Proto]]":"%FunctionPrototype%",asIntN:s,asUintN:s,prototype:"%BigIntPrototype%",bitLength:!1,fromArrayBuffer:!1},"%BigIntPrototype%":{constructor:"BigInt",toLocaleString:s,toString:s,valueOf:s,"@@toStringTag":"string"},"%InitialMath%":{...f,random:s},"%SharedMath%":f,"%InitialDate%":{"[[Proto]]":"%FunctionPrototype%",now:s,parse:s,prototype:"%DatePrototype%",UTC:s},"%SharedDate%":{"[[Proto]]":"%FunctionPrototype%",now:s,parse:s,prototype:"%DatePrototype%",UTC:s},"%DatePrototype%":{constructor:"%SharedDate%",getDate:s,getDay:s,getFullYear:s,getHours:s,getMilliseconds:s,getMinutes:s,getMonth:s,getSeconds:s,getTime:s,getTimezoneOffset:s,getUTCDate:s,getUTCDay:s,getUTCFullYear:s,getUTCHours:s,getUTCMilliseconds:s,getUTCMinutes:s,getUTCMonth:s,getUTCSeconds:s,setDate:s,setFullYear:s,setHours:s,setMilliseconds:s,setMinutes:s,setMonth:s,setSeconds:s,setTime:s,setUTCDate:s,setUTCFullYear:s,setUTCHours:s,setUTCMilliseconds:s,setUTCMinutes:s,setUTCMonth:s,setUTCSeconds:s,toDateString:s,toISOString:s,toJSON:s,toLocaleDateString:s,toLocaleString:s,toLocaleTimeString:s,toString:s,toTimeString:s,toUTCString:s,valueOf:s,"@@toPrimitive":s,getYear:s,setYear:s,toGMTString:s},String:{"[[Proto]]":"%FunctionPrototype%",fromCharCode:s,fromCodePoint:s,prototype:"%StringPrototype%",raw:s,fromArrayBuffer:!1},"%StringPrototype%":{length:"number",at:s,charAt:s,charCodeAt:s,codePointAt:s,concat:s,constructor:"String",endsWith:s,includes:s,indexOf:s,lastIndexOf:s,localeCompare:s,match:s,matchAll:s,normalize:s,padEnd:s,padStart:s,repeat:s,replace:s,replaceAll:s,search:s,slice:s,split:s,startsWith:s,substring:s,toLocaleLowerCase:s,toLocaleUpperCase:s,toLowerCase:s,toString:s,toUpperCase:s,trim:s,trimEnd:s,trimStart:s,valueOf:s,"@@iterator":s,substr:s,anchor:s,big:s,blink:s,bold:s,fixed:s,fontcolor:s,fontsize:s,italics:s,link:s,small:s,strike:s,sub:s,sup:s,trimLeft:s,trimRight:s,compare:!1},"%StringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:s,"@@toStringTag":"string"},"%InitialRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":c,input:!1,$_:!1,lastMatch:!1,"$&":!1,lastParen:!1,"$+":!1,leftContext:!1,"$`":!1,rightContext:!1,"$'":!1,$1:!1,$2:!1,$3:!1,$4:!1,$5:!1,$6:!1,$7:!1,$8:!1,$9:!1},"%SharedRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":c},"%RegExpPrototype%":{constructor:"%SharedRegExp%",exec:s,dotAll:c,flags:c,global:c,ignoreCase:c,"@@match":s,"@@matchAll":s,multiline:c,"@@replace":s,"@@search":s,source:c,"@@split":s,sticky:c,test:s,toString:s,unicode:c,compile:!1,hasIndices:!1},"%RegExpStringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:s,"@@toStringTag":"string"},Array:{"[[Proto]]":"%FunctionPrototype%",from:s,isArray:s,of:s,prototype:"%ArrayPrototype%","@@species":c,at:s},"%ArrayPrototype%":{at:s,length:"number",concat:s,constructor:"Array",copyWithin:s,entries:s,every:s,fill:s,filter:s,find:s,findIndex:s,flat:s,flatMap:s,forEach:s,includes:s,indexOf:s,join:s,keys:s,lastIndexOf:s,map:s,pop:s,push:s,reduce:s,reduceRight:s,reverse:s,shift:s,slice:s,some:s,sort:s,splice:s,toLocaleString:s,toString:s,unshift:s,values:s,"@@iterator":s,"@@unscopables":{"[[Proto]]":null,copyWithin:"boolean",entries:"boolean",fill:"boolean",find:"boolean",findIndex:"boolean",flat:"boolean",flatMap:"boolean",includes:"boolean",keys:"boolean",values:"boolean",at:!1,findLast:"boolean",findLastIndex:"boolean"},findLast:s,findLastIndex:s},"%ArrayIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:s,"@@toStringTag":"string"},"%TypedArray%":{"[[Proto]]":"%FunctionPrototype%",from:s,of:s,prototype:"%TypedArrayPrototype%","@@species":c},"%TypedArrayPrototype%":{at:s,buffer:c,byteLength:c,byteOffset:c,constructor:"%TypedArray%",copyWithin:s,entries:s,every:s,fill:s,filter:s,find:s,findIndex:s,forEach:s,includes:s,indexOf:s,join:s,keys:s,lastIndexOf:s,length:c,map:s,reduce:s,reduceRight:s,reverse:s,set:s,slice:s,some:s,sort:s,subarray:s,toLocaleString:s,toString:s,values:s,"@@iterator":s,"@@toStringTag":c,findLast:s,findLastIndex:s},BigInt64Array:u("%BigInt64ArrayPrototype%"),BigUint64Array:u("%BigUint64ArrayPrototype%"),Float32Array:u("%Float32ArrayPrototype%"),Float64Array:u("%Float64ArrayPrototype%"),Int16Array:u("%Int16ArrayPrototype%"),Int32Array:u("%Int32ArrayPrototype%"),Int8Array:u("%Int8ArrayPrototype%"),Uint16Array:u("%Uint16ArrayPrototype%"),Uint32Array:u("%Uint32ArrayPrototype%"),Uint8Array:u("%Uint8ArrayPrototype%"),Uint8ClampedArray:u("%Uint8ClampedArrayPrototype%"),"%BigInt64ArrayPrototype%":y("BigInt64Array"),"%BigUint64ArrayPrototype%":y("BigUint64Array"),"%Float32ArrayPrototype%":y("Float32Array"),"%Float64ArrayPrototype%":y("Float64Array"),"%Int16ArrayPrototype%":y("Int16Array"),"%Int32ArrayPrototype%":y("Int32Array"),"%Int8ArrayPrototype%":y("Int8Array"),"%Uint16ArrayPrototype%":y("Uint16Array"),"%Uint32ArrayPrototype%":y("Uint32Array"),"%Uint8ArrayPrototype%":y("Uint8Array"),"%Uint8ClampedArrayPrototype%":y("Uint8ClampedArray"),Map:{"[[Proto]]":"%FunctionPrototype%","@@species":c,prototype:"%MapPrototype%"},"%MapPrototype%":{clear:s,constructor:"Map",delete:s,entries:s,forEach:s,get:s,has:s,keys:s,set:s,size:c,values:s,"@@iterator":s,"@@toStringTag":"string"},"%MapIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:s,"@@toStringTag":"string"},Set:{"[[Proto]]":"%FunctionPrototype%",prototype:"%SetPrototype%","@@species":c},"%SetPrototype%":{add:s,clear:s,constructor:"Set",delete:s,entries:s,forEach:s,has:s,keys:s,size:c,values:s,"@@iterator":s,"@@toStringTag":"string"},"%SetIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:s,"@@toStringTag":"string"},WeakMap:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakMapPrototype%"},"%WeakMapPrototype%":{constructor:"WeakMap",delete:s,get:s,has:s,set:s,"@@toStringTag":"string"},WeakSet:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakSetPrototype%"},"%WeakSetPrototype%":{add:s,constructor:"WeakSet",delete:s,has:s,"@@toStringTag":"string"},ArrayBuffer:{"[[Proto]]":"%FunctionPrototype%",isView:s,prototype:"%ArrayBufferPrototype%","@@species":c,fromString:!1,fromBigInt:!1},"%ArrayBufferPrototype%":{byteLength:c,constructor:"ArrayBuffer",slice:s,"@@toStringTag":"string",concat:!1,transfer:s,resize:s,resizable:c,maxByteLength:c},SharedArrayBuffer:!1,"%SharedArrayBufferPrototype%":!1,DataView:{"[[Proto]]":"%FunctionPrototype%",BYTES_PER_ELEMENT:"number",prototype:"%DataViewPrototype%"},"%DataViewPrototype%":{buffer:c,byteLength:c,byteOffset:c,constructor:"DataView",getBigInt64:s,getBigUint64:s,getFloat32:s,getFloat64:s,getInt8:s,getInt16:s,getInt32:s,getUint8:s,getUint16:s,getUint32:s,setBigInt64:s,setBigUint64:s,setFloat32:s,setFloat64:s,setInt8:s,setInt16:s,setInt32:s,setUint8:s,setUint16:s,setUint32:s,"@@toStringTag":"string"},Atomics:!1,JSON:{parse:s,stringify:s,"@@toStringTag":"string"},"%IteratorPrototype%":{"@@iterator":s},"%AsyncIteratorPrototype%":{"@@asyncIterator":s},"%InertGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%Generator%"},"%Generator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertGeneratorFunction%",prototype:"%GeneratorPrototype%","@@toStringTag":"string"},"%InertAsyncGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncGenerator%"},"%AsyncGenerator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncGeneratorFunction%",prototype:"%AsyncGeneratorPrototype%","@@toStringTag":"string"},"%GeneratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",constructor:"%Generator%",next:s,return:s,throw:s,"@@toStringTag":"string"},"%AsyncGeneratorPrototype%":{"[[Proto]]":"%AsyncIteratorPrototype%",constructor:"%AsyncGenerator%",next:s,return:s,throw:s,"@@toStringTag":"string"},HandledPromise:{"[[Proto]]":"Promise",applyFunction:s,applyFunctionSendOnly:s,applyMethod:s,applyMethodSendOnly:s,get:s,getSendOnly:s,prototype:"%PromisePrototype%",resolve:s},Promise:{"[[Proto]]":"%FunctionPrototype%",all:s,allSettled:s,any:!1,prototype:"%PromisePrototype%",race:s,reject:s,resolve:s,"@@species":c},"%PromisePrototype%":{catch:s,constructor:"Promise",finally:s,then:s,"@@toStringTag":"string","UniqueSymbol(async_id_symbol)":l,"UniqueSymbol(trigger_async_id_symbol)":l,"UniqueSymbol(destroyed)":l},"%InertAsyncFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncFunctionPrototype%"},"%AsyncFunctionPrototype%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncFunction%","@@toStringTag":"string"},Reflect:{apply:s,construct:s,defineProperty:s,deleteProperty:s,get:s,getOwnPropertyDescriptor:s,getPrototypeOf:s,has:s,isExtensible:s,ownKeys:s,preventExtensions:s,set:s,setPrototypeOf:s,"@@toStringTag":"string"},Proxy:{"[[Proto]]":"%FunctionPrototype%",revocable:s},escape:s,unescape:s,"%UniqueCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:s},"%InertCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:s},"%CompartmentPrototype%":{constructor:"%InertCompartment%",evaluate:s,globalThis:c,name:c,toString:s,import:i,load:i,importNow:s,module:s},lockdown:s,harden:s,"%InitialGetStackString%":s};r.whitelist(g)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g;e([["./commons.js",[["TypeError",[e=>n=e]],["assign",[e=>a=e]],["create",[e=>s=e]],["defineProperty",[e=>i=e]],["entries",[e=>c=e]],["freeze",[e=>l=e]],["objectHasOwnProperty",[e=>p=e]],["unscopablesSymbol",[e=>m=e]]]],["./make-eval-function.js",[["makeEvalFunction",[e=>u=e]]]],["./make-function-constructor.js",[["makeFunctionConstructor",[e=>y=e]]]],["./whitelist.js",[["constantProperties",[e=>f=e]],["universalPropertyNames",[e=>g=e]]]]]),r.setGlobalObjectSymbolUnscopables((e=>{i(e,m,l(a(s(null),{set:l((()=>{throw new n("Cannot set Symbol.unscopables of a Compartment's globalThis")})),enumerable:!1,configurable:!1})))})),r.setGlobalObjectConstantProperties((e=>{for(const[t,r]of c(f))i(e,t,{value:r,writable:!1,enumerable:!1,configurable:!1})})),r.setGlobalObjectMutableProperties(((e,{intrinsics:t,newGlobalPropertyNames:r,makeCompartmentConstructor:o,markVirtualizedNativeFunction:n})=>{for(const[r,o]of c(g))p(t,o)&&i(e,r,{value:t[o],writable:!0,enumerable:!1,configurable:!0});for(const[o,n]of c(r))p(t,n)&&i(e,o,{value:t[n],writable:!0,enumerable:!1,configurable:!0});const a={globalThis:e};a.Compartment=o(o,t,n);for(const[t,r]of c(a))i(e,t,{value:r,writable:!0,enumerable:!1,configurable:!0}),"function"==typeof r&&n(r)})),r.setGlobalObjectEvaluators(((e,t,r)=>{{const o=u(t);r(o),i(e,"eval",{value:o,writable:!0,enumerable:!1,configurable:!0})}{const o=y(t);r(o),i(e,"Function",{value:o,writable:!0,enumerable:!1,configurable:!0})}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S;e([["./commons.js",[["ReferenceError",[e=>n=e]],["TypeError",[e=>a=e]],["Map",[e=>s=e]],["Set",[e=>i=e]],["arrayJoin",[e=>c=e]],["arrayMap",[e=>l=e]],["arrayPush",[e=>p=e]],["create",[e=>m=e]],["freeze",[e=>u=e]],["mapGet",[e=>y=e]],["mapHas",[e=>f=e]],["mapSet",[e=>g=e]],["setAdd",[e=>d=e]],["promiseCatch",[e=>b=e]],["promiseThen",[e=>E=e]],["values",[e=>w=e]],["weakmapGet",[e=>P=e]]]],["./error/assert.js",[["assert",[e=>S=e]]]]]);const{Fail:h,details:v,quote:j}=S,k=()=>{};r.makeAlias(((e,t)=>u({compartment:e,specifier:t})));const T=(e,t,r,o,n,a,s,i,c)=>{const{resolveHook:l,moduleRecords:y}=P(e,r),f=((e,t,r)=>{const o=m(null);for(const n of e){const e=t(n,r);o[n]=e}return u(o)})(n.imports,l,o),b=u({compartment:r,staticModuleRecord:n,moduleSpecifier:o,resolvedImports:f,importMeta:c});for(const o of w(f)){const n=A(e,t,r,o,a,s,i);d(a,E(n,k,(e=>{p(i,e)})))}return g(y,o,b),b},A=async(e,t,r,o,i,c,l)=>{const{name:p}=P(e,r);let m=y(c,r);void 0===m&&(m=new s,g(c,r,m));let u=y(m,o);return void 0!==u||(u=b((async(e,t,r,o,s,i,c)=>{const{importHook:l,moduleMap:p,moduleMapHook:m,moduleRecords:u}=P(e,r);let d=p[o];if(void 0===d&&void 0!==m&&(d=m(o)),"string"==typeof d)S.fail(v`Cannot map module ${j(o)} to ${j(d)} in parent compartment, not yet implemented`,a);else if(void 0!==d){const r=P(t,d);void 0===r&&S.fail(v`Cannot map module ${j(o)} because the value is not a module exports namespace, or is from another realm`,n);const a=await A(e,t,r.compartment,r.specifier,s,i,c);return g(u,o,a),a}if(f(u,o))return y(u,o);const b=await l(o);if(null!==b&&"object"==typeof b||h`importHook must return a promise for an object, for module ${j(o)} in compartment ${j(r.name)}`,void 0!==b.specifier){if(void 0!==b.record){if(void 0!==b.compartment)throw new a("Cannot redirect to an explicit record with a specified compartment");const{compartment:n=r,specifier:l=o,record:p,importMeta:m}=b,y=T(e,t,n,l,p,s,i,c,m);return g(u,o,y),y}if(void 0!==b.compartment){if(void 0!==b.importMeta)throw new a("Cannot redirect to an implicit record with a specified importMeta");const r=await A(e,t,b.compartment,b.specifier,s,i,c);return g(u,o,r),r}throw new a("Unnexpected RedirectStaticModuleInterface record shape")}return T(e,t,r,o,b,s,i,c)})(e,t,r,o,i,c,l),(e=>{throw S.note(e,v`${e.message}, loading ${j(o)} in compartment ${j(p)}`),e})),g(m,o,u)),u};r.load((async(e,t,r,o)=>{const{name:n}=P(e,r),m=new i,u=new s,y=[],f=A(e,t,r,o,m,u,y);d(m,E(f,k,(e=>{p(y,e)})));for(const e of m)await e;if(y.length>0)throw new a(`Failed to load module ${j(o)} in package ${j(n)} (${y.length} underlying failures: ${c(l(y,(e=>e.message)),", ")}`)}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w;e([["./module-load.js",[["makeAlias",[e=>n=e]]]],["./commons.js",[["Proxy",[e=>a=e]],["TypeError",[e=>s=e]],["create",[e=>i=e]],["freeze",[e=>c=e]],["mapGet",[e=>l=e]],["mapHas",[e=>p=e]],["mapSet",[e=>m=e]],["ownKeys",[e=>u=e]],["reflectGet",[e=>y=e]],["reflectGetOwnPropertyDescriptor",[e=>f=e]],["reflectHas",[e=>g=e]],["reflectIsExtensible",[e=>d=e]],["reflectPreventExtensions",[e=>b=e]],["weakmapSet",[e=>E=e]]]],["./error/assert.js",[["assert",[e=>w=e]]]]]);const{quote:P}=w,S=()=>{let e=!1;const t=i(null);return c({activate(){e=!0},proxiedExports:t,exportsProxy:new a(t,{get(r,o,n){if(!e)throw new s(`Cannot get property ${P(o)} of module exports namespace, the module has not yet begun to execute`);return y(t,o,n)},set(e,t,r){throw new s(`Cannot set property ${P(t)} of module exports namespace`)},has(r,o){if(!e)throw new s(`Cannot check property ${P(o)}, the module has not yet begun to execute`);return g(t,o)},deleteProperty(e,t){throw new s(`Cannot delete property ${P(t)}s of module exports namespace`)},ownKeys(r){if(!e)throw new s("Cannot enumerate keys, the module has not yet begun to execute");return u(t)},getOwnPropertyDescriptor(r,o){if(!e)throw new s(`Cannot get own property descriptor ${P(o)}, the module has not yet begun to execute`);return f(t,o)},preventExtensions(r){if(!e)throw new s("Cannot prevent extensions of module exports namespace, the module has not yet begun to execute");return b(t)},isExtensible(){if(!e)throw new s("Cannot check extensibility of module exports namespace, the module has not yet begun to execute");return d(t)},getPrototypeOf:e=>null,setPrototypeOf(e,t){throw new s("Cannot set prototype of module exports namespace")},defineProperty(e,t,r){throw new s(`Cannot define property ${P(t)} of module exports namespace`)},apply(e,t,r){throw new s("Cannot call module exports namespace, it is not a function")},construct(e,t){throw new s("Cannot construct module exports namespace, it is not a constructor")}})})};r.deferExports(S),r.getDeferredExports(((e,t,r,o)=>{const{deferredExports:a}=t;if(!p(a,o)){const t=S();E(r,t.exportsProxy,n(e,o)),m(a,o,t)}return l(a,o)}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S,h,v,j;e([["./error/assert.js",[["assert",[e=>n=e]]]],["./module-proxy.js",[["getDeferredExports",[e=>a=e]]]],["./commons.js",[["ReferenceError",[e=>s=e]],["SyntaxError",[e=>i=e]],["TypeError",[e=>c=e]],["arrayForEach",[e=>l=e]],["arrayIncludes",[e=>p=e]],["arrayPush",[e=>m=e]],["arraySome",[e=>u=e]],["arraySort",[e=>y=e]],["create",[e=>f=e]],["defineProperty",[e=>g=e]],["entries",[e=>d=e]],["freeze",[e=>b=e]],["isArray",[e=>E=e]],["keys",[e=>w=e]],["mapGet",[e=>P=e]],["weakmapGet",[e=>S=e]],["reflectHas",[e=>h=e]],["assign",[e=>v=e]]]],["./compartment-evaluate.js",[["compartmentEvaluate",[e=>j=e]]]]]);const{quote:k}=n;r.makeThirdPartyModuleInstance(((e,t,r,o,n,s)=>{const{exportsProxy:i,proxiedExports:p,activate:y}=a(r,S(e,r),o,n),d=f(null);if(t.exports){if(!E(t.exports)||u(t.exports,(e=>"string"!=typeof e)))throw new c('SES third-party static module record "exports" property must be an array of strings for module '+n);l(t.exports,(e=>{let t=p[e];const r=[];g(p,e,{get:()=>t,set:e=>{t=e;for(const t of r)t(e)},enumerable:!0,configurable:!1}),d[e]=e=>{m(r,e),e(t)}})),d["*"]=e=>{e(p)}}const w={activated:!1};return b({notifiers:d,exportsProxy:i,execute(){if(h(w,"errorFromExecute"))throw w.errorFromExecute;if(!w.activated){y(),w.activated=!0;try{t.execute(p,r,s)}catch(e){throw w.errorFromExecute=e,e}}}})})),r.makeModuleInstance(((e,t,r,o)=>{const{compartment:n,moduleSpecifier:u,staticModuleRecord:E,importMeta:h}=r,{reexports:T=[],__syncModuleProgram__:A,__fixedExportMap__:M={},__liveExportMap__:x={},__reexportMap__:I={},__needsImportMeta__:O=!1}=E,C=S(e,n),{__shimTransforms__:F,importMetaHook:_}=C,{exportsProxy:R,proxiedExports:V,activate:N}=a(n,C,t,u),D=f(null),$=f(null),G=f(null),L=f(null),U=f(null);h&&v(U,h),O&&_&&_(u,U);const H=f(null),z=f(null);function W(e){const t=f(null);t.default=!1;for(const[r,n]of e){const e=P(o,r);e.execute();const{notifiers:a}=e;for(const[e,t]of n){const o=a[e];if(!o)throw i(`The requested module '${r}' does not provide an export named '${e}'`);for(const e of t)o(e)}if(p(T,r))for(const[e,r]of d(a))void 0===t[e]?t[e]=r:t[e]=!1;if(I[r])for(const[e,o]of I[r])t[o]=a[e]}for(const[e,r]of d(t))if(!z[e]&&!1!==r){let t;z[e]=r,r((e=>t=e)),D[e]={get:()=>t,set:void 0,enumerable:!0,configurable:!1}}l(y(w(D)),(e=>g(V,e,D[e]))),b(V),N()}l(d(M),(([e,[t]])=>{let r=H[t];if(!r){let e,o=!0,n=[];const a=()=>{if(o)throw new s(`binding ${k(t)} not yet initialized`);return e},i=b((r=>{if(!o)throw new c(`Internal: binding ${k(t)} already initialized`);e=r;const a=n;n=null,o=!1;for(const e of a)e(r);return r}));r={get:a,notify:t=>{t!==i&&(o?m(n,t):t(e))}},H[t]=r,G[t]=i}D[e]={get:r.get,set:void 0,enumerable:!0,configurable:!1},z[e]=r.notify})),l(d(x),(([e,[t,r]])=>{let o=H[t];if(!o){let n,a=!0;const i=[],c=()=>{if(a)throw new s(`binding ${k(e)} not yet initialized`);return n},l=b((e=>{n=e,a=!1;for(const t of i)t(e)})),p=e=>{if(a)throw new s(`binding ${k(t)} not yet initialized`);n=e;for(const t of i)t(e)};o={get:c,notify:e=>{e!==l&&(m(i,e),a||e(n))}},H[t]=o,r&&g($,t,{get:c,set:p,enumerable:!0,configurable:!1}),L[t]=l}D[e]={get:o.get,set:void 0,enumerable:!0,configurable:!1},z[e]=o.notify})),z["*"]=e=>{e(V)};let B,K=j(C,A,{globalObject:n.globalThis,transforms:F,__moduleShimLexicals__:$}),J=!1;return b({notifiers:z,exportsProxy:R,execute:function(){if(K){const e=K;K=null;try{e(b({imports:b(W),onceVar:b(G),liveVar:b(L),importMeta:U}))}catch(e){J=!0,B=e}}if(J)throw B}})}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d;e([["./error/assert.js",[["assert",[e=>n=e]]]],["./module-instance.js",[["makeModuleInstance",[e=>a=e]],["makeThirdPartyModuleInstance",[e=>s=e]]]],["./commons.js",[["Map",[e=>i=e]],["ReferenceError",[e=>c=e]],["TypeError",[e=>l=e]],["entries",[e=>p=e]],["isArray",[e=>m=e]],["isObject",[e=>u=e]],["mapGet",[e=>y=e]],["mapHas",[e=>f=e]],["mapSet",[e=>g=e]],["weakmapGet",[e=>d=e]]]]]);const{Fail:b,quote:E}=n,w=(e,t,r,o)=>{const{name:n,moduleRecords:a}=d(e,r),s=y(a,o);if(void 0===s)throw new c(`Missing link to module ${E(o)} from compartment ${E(n)}`);return P(e,t,s)};r.link(w);const P=(e,t,r)=>{const{compartment:o,moduleSpecifier:n,resolvedImports:c,staticModuleRecord:P}=r,{instances:S}=d(e,o);if(f(S,n))return y(S,n);!function(e,t){u(e)||b`Static module records must be of type object, got ${E(e)}, for module ${E(t)}`;const{imports:r,exports:o,reexports:n=[]}=e;m(r)||b`Property 'imports' of a static module record must be an array, got ${E(r)}, for module ${E(t)}`,m(o)||b`Property 'exports' of a precompiled module record must be an array, got ${E(o)}, for module ${E(t)}`,m(n)||b`Property 'reexports' of a precompiled module record must be an array if present, got ${E(n)}, for module ${E(t)}`}(P,n);const h=new i;let v;if(function(e){return"string"==typeof e.__syncModuleProgram__}(P))!function(e,t){const{__fixedExportMap__:r,__liveExportMap__:o}=e;u(r)||b`Property '__fixedExportMap__' of a precompiled module record must be an object, got ${E(r)}, for module ${E(t)}`,u(o)||b`Property '__liveExportMap__' of a precompiled module record must be an object, got ${E(o)}, for module ${E(t)}`}(P,n),v=a(e,t,r,h);else{if(!function(e){return"function"==typeof e.execute}(P))throw new l("importHook must return a static module record, got "+E(P));!function(e,t){const{exports:r}=e;m(r)||b`Property 'exports' of a third-party static module record must be an array, got ${E(r)}, for module ${E(t)}`}(P,n),v=s(e,P,o,t,n,c)}g(S,n,v);for(const[r,n]of p(c)){const a=w(e,t,o,n);g(h,r,a)}return v};r.instantiate(P)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S,h,v,j;e([["./commons.js",[["Map",[e=>n=e]],["ReferenceError",[e=>a=e]],["TypeError",[e=>s=e]],["WeakMap",[e=>i=e]],["assign",[e=>c=e]],["defineProperties",[e=>l=e]],["entries",[e=>p=e]],["promiseThen",[e=>m=e]],["weakmapGet",[e=>u=e]],["weakmapSet",[e=>y=e]]]],["./global-object.js",[["setGlobalObjectSymbolUnscopables",[e=>f=e]],["setGlobalObjectConstantProperties",[e=>g=e]],["setGlobalObjectMutableProperties",[e=>d=e]],["setGlobalObjectEvaluators",[e=>b=e]]]],["./whitelist.js",[["sharedGlobalPropertyNames",[e=>E=e]]]],["./module-load.js",[["load",[e=>w=e]]]],["./module-link.js",[["link",[e=>P=e]]]],["./module-proxy.js",[["getDeferredExports",[e=>S=e]]]],["./error/assert.js",[["assert",[e=>h=e]]]],["./compartment-evaluate.js",[["compartmentEvaluate",[e=>v=e]]]],["./make-safe-evaluator.js",[["makeSafeEvaluator",[e=>j=e]]]]]);const{quote:k}=h,T=new i,A=new i,M=e=>{const{importHook:t,resolveHook:r}=u(A,e);if("function"!=typeof t||"function"!=typeof r)throw new s("Compartment must be constructed with an importHook and a resolveHook for it to be able to load modules")},x=function(e={},t={},r={}){throw new s("Compartment.prototype.constructor is not a valid constructor.")};r.InertCompartment(x);const I=(e,t)=>{const{execute:r,exportsProxy:o}=P(A,T,e,t);return r(),o},O={constructor:x,get globalThis(){return u(A,this).globalObject},get name(){return u(A,this).name},evaluate(e,t={}){const r=u(A,this);return v(r,e,t)},toString:()=>"[object Compartment]",module(e){if("string"!=typeof e)throw new s("first argument of module() must be a string");M(this);const{exportsProxy:t}=S(this,u(A,this),T,e);return t},async import(e){if("string"!=typeof e)throw new s("first argument of import() must be a string");return M(this),m(w(A,T,this,e),(()=>({namespace:I(this,e)})))},async load(e){if("string"!=typeof e)throw new s("first argument of load() must be a string");return M(this),w(A,T,this,e)},importNow(e){if("string"!=typeof e)throw new s("first argument of importNow() must be a string");return M(this),I(this,e)}};r.CompartmentPrototype(O),l(x,{prototype:{value:O}}),r.makeCompartmentConstructor(((e,t,r)=>{function o(o={},i={},l={}){if(void 0===new.target)throw new s("Class constructor Compartment cannot be invoked without 'new'");const{name:m="<unknown>",transforms:w=[],__shimTransforms__:P=[],resolveHook:S,importHook:h,moduleMapHook:v,importMetaHook:M}=l,x=[...w,...P],I=new n,O=new n,C=new n;for(const[e,t]of p(i||{})){if("string"==typeof t)throw new s(`Cannot map module ${k(e)} to ${k(t)} in parent compartment`);if(void 0===u(T,t))throw a(`Cannot map module ${k(e)} because it has no known compartment in this realm`)}const F={};f(F),g(F);const{safeEvaluate:_}=j({globalObject:F,globalTransforms:x,sloppyGlobalsMode:!1});d(F,{intrinsics:t,newGlobalPropertyNames:E,makeCompartmentConstructor:e,markVirtualizedNativeFunction:r}),b(F,_,r),c(F,o),y(A,this,{name:""+m,globalTransforms:x,globalObject:F,safeEvaluate:_,resolveHook:S,importHook:h,moduleMap:i,moduleMapHook:v,importMetaHook:M,moduleRecords:I,__shimTransforms__:P,deferredExports:C,instances:O})}return o.prototype=O,o}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S;e([["./commons.js",[["TypeError",[e=>n=e]],["WeakSet",[e=>a=e]],["arrayFilter",[e=>s=e]],["defineProperty",[e=>i=e]],["entries",[e=>c=e]],["freeze",[e=>l=e]],["getOwnPropertyDescriptor",[e=>p=e]],["getOwnPropertyDescriptors",[e=>m=e]],["globalThis",[e=>u=e]],["is",[e=>y=e]],["isObject",[e=>f=e]],["objectHasOwnProperty",[e=>g=e]],["values",[e=>d=e]],["weaksetHas",[e=>b=e]]]],["./whitelist.js",[["constantProperties",[e=>E=e]],["sharedGlobalPropertyNames",[e=>w=e]],["universalPropertyNames",[e=>P=e]],["whitelist",[e=>S=e]]]]]);const h=e=>"function"==typeof e;function v(e,t,r){if(g(e,t)){const o=p(e,t);if(!y(o.value,r.value)||o.get!==r.get||o.set!==r.set||o.writable!==r.writable||o.enumerable!==r.enumerable||o.configurable!==r.configurable)throw new n("Conflicting definitions of "+t)}i(e,t,r)}function j(e,t){const r={__proto__:null};for(const[o,n]of c(t))g(e,o)&&(r[n]=e[o]);return r}const k=()=>{const e={__proto__:null};let t;const r=t=>{!function(e,t){for(const[r,o]of c(t))v(e,r,o)}(e,m(t))};l(r);const o=()=>{for(const[t,r]of c(e)){if(!f(r))continue;if(!g(r,"prototype"))continue;const o=S[t];if("object"!=typeof o)throw new n("Expected permit object at whitelist."+t);const a=o.prototype;if(!a)throw new n(t+".prototype property not whitelisted");if("string"!=typeof a||!g(S,a))throw new n(`Unrecognized ${t}.prototype whitelist entry`);const s=r.prototype;if(g(e,a)){if(e[a]!==s)throw new n("Conflicting bindings of "+a)}else e[a]=s}};l(o);const i=()=>(l(e),t=new a(s(d(e),h)),e);l(i);const p=e=>{if(!t)throw new n("isPseudoNative can only be called after finalIntrinsics");return b(t,e)};l(p);const y={addIntrinsics:r,completePrototypes:o,finalIntrinsics:i,isPseudoNative:p};return l(y),r(E),r(j(u,P)),y};r.makeIntrinsicsCollector(k),r.getGlobalIntrinsics((e=>{const{addIntrinsics:t,finalIntrinsics:r}=k();return t(j(e,w)),r()}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{e([]),r.minEnablements({"%ObjectPrototype%":{toString:!0},"%FunctionPrototype%":{toString:!0},"%ErrorPrototype%":{name:!0}});const n={"%ObjectPrototype%":{toString:!0,valueOf:!0},"%ArrayPrototype%":{toString:!0,push:!0},"%FunctionPrototype%":{constructor:!0,bind:!0,toString:!0},"%ErrorPrototype%":{constructor:!0,message:!0,name:!0,toString:!0},"%TypeErrorPrototype%":{constructor:!0,message:!0,name:!0},"%SyntaxErrorPrototype%":{message:!0,name:!0},"%RangeErrorPrototype%":{message:!0,name:!0},"%URIErrorPrototype%":{message:!0,name:!0},"%EvalErrorPrototype%":{message:!0,name:!0},"%ReferenceErrorPrototype%":{message:!0,name:!0},"%PromisePrototype%":{constructor:!0},"%TypedArrayPrototype%":"*","%Generator%":{constructor:!0,name:!0,toString:!0},"%IteratorPrototype%":{toString:!0}};r.moderateEnablements(n);const a={...n,"%ObjectPrototype%":"*","%TypedArrayPrototype%":"*"};r.severeEnablements(a)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E;e([["./commons.js",[["Set",[e=>n=e]],["String",[e=>a=e]],["TypeError",[e=>s=e]],["arrayForEach",[e=>i=e]],["defineProperty",[e=>c=e]],["getOwnPropertyDescriptor",[e=>l=e]],["getOwnPropertyDescriptors",[e=>p=e]],["getOwnPropertyNames",[e=>m=e]],["isObject",[e=>u=e]],["objectHasOwnProperty",[e=>y=e]],["ownKeys",[e=>f=e]],["setHas",[e=>g=e]]]],["./enablements.js",[["minEnablements",[e=>d=e]],["moderateEnablements",[e=>b=e]],["severeEnablements",[e=>E=e]]]]]),r.default((function(e,t,r=[]){const o=new n(r);function w(e,t,r,n){if("value"in n&&n.configurable){const{value:i}=n;function l(){return i}c(l,"originalValue",{value:i,writable:!1,enumerable:!1,configurable:!1});const p=g(o,r);c(t,r,{get:l,set:function(o){if(t===this)throw new s(`Cannot assign to read only property '${a(r)}' of '${e}'`);y(this,r)?this[r]=o:(p&&console.error(new s("Override property "+r)),c(this,r,{value:o,writable:!0,enumerable:!0,configurable:!0}))},enumerable:n.enumerable,configurable:n.configurable})}}function P(e,t,r){const o=l(t,r);o&&w(e,t,r,o)}function S(e,t){const r=p(t);r&&i(f(r),(o=>w(e,t,o,r[o])))}let h;switch(t){case"min":h=d;break;case"moderate":h=b;break;case"severe":h=E;break;default:throw new s("unrecognized overrideTaming "+t)}!function e(t,r,o){for(const n of m(o)){const i=l(r,n);if(!i||i.get||i.set)continue;const c=`${t}.${a(n)}`,p=o[n];if(!0===p)P(c,r,n);else if("*"===p)S(c,i.value);else{if(!u(p))throw new s("Unexpected override enablement plan "+c);e(c,i.value,p)}}}("root",e,h)}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s;e([["./commons.js",[["arrayPush",[e=>n=e]],["freeze",[e=>a=e]]]],["./error/assert.js",[["assert",[e=>s=e]]]]]);const{details:i,Fail:c,quote:l}=s,p=e=>{const t=[],r=(r,o)=>{s.typeof(r,"string",i`Environment option name ${l(r)} must be a string.`),s.typeof(o,"string",i`Environment option default setting ${l(o)} must be a string.`);let a=o;const p=e.process;if(p&&"object"==typeof p){const e=p.env;if(e&&"object"==typeof e&&r in e){n(t,r);const o=e[r];s.typeof(o,"string",i`Environment option named ${l(r)}, if present, must have a corresponding string value, got ${l(o)}`),a=o}}return void 0===a||"string"==typeof a||c`Environment option value ${l(a)}, if present, must be a string.`,a};a(r);const o=()=>a([...t]);return a(o),a({getEnvironmentOption:r,getCapturedEnvironmentOptionNames:o})};r.makeEnvironmentCaptor(p),a(p)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f;e([["../commons.js",[["WeakSet",[e=>n=e]],["arrayFilter",[e=>a=e]],["arrayMap",[e=>s=e]],["arrayPush",[e=>i=e]],["defineProperty",[e=>c=e]],["freeze",[e=>l=e]],["fromEntries",[e=>p=e]],["isError",[e=>m=e]],["stringEndsWith",[e=>u=e]],["weaksetAdd",[e=>y=e]],["weaksetHas",[e=>f=e]]]],["./types.js",[]],["./internal-types.js",[]]]);const g=l([["debug","debug"],["log","log"],["info","info"],["warn","warn"],["error","error"],["trace","log"],["dirxml","log"],["group","log"],["groupCollapsed","log"]]),d=l([["assert","error"],["timeLog","log"],["clear",void 0],["count","info"],["countReset",void 0],["dir","log"],["groupEnd","log"],["table","log"],["time","info"],["timeEnd","info"],["profile",void 0],["profileEnd",void 0],["timeStamp",void 0]]),b=l([...g,...d]);r.consoleWhitelist(b);const E=(e,{shouldResetForDebugging:t=!1}={})=>{t&&e.resetErrorTagNum();let r=[];const o=p(s(b,(([e,t])=>{const o=(...t)=>{i(r,[e,...t])};return c(o,"name",{value:e}),[e,l(o)]})));l(o);const n=()=>{const e=l(r);return r=[],e};return l(n),l({loggingConsole:o,takeLog:n})};r.makeLoggingConsoleKit(E),l(E);const w={NOTE:"ERROR_NOTE:",MESSAGE:"ERROR_MESSAGE:"};l(w);const P=(e,t)=>{const{getStackString:r,tagError:o,takeMessageLogArgs:b,takeNoteLogArgsArray:E}=t,P=(e,t)=>s(e,(e=>m(e)?(i(t,e),`(${o(e)})`):e)),S=(t,r,n,a,s)=>{const i=o(r),c=n===w.MESSAGE?i+":":`${i} ${n}`,l=P(a,s);e[t](c,...l)},h=(t,r,o)=>{if(0===r.length)return;if(1===r.length&&void 0===o)return void j(t,r[0]);let n;n=1===r.length?"Nested error":`Nested ${r.length} errors`,void 0!==o&&(n=`${n} under ${o}`),e.group(n);try{for(const e of r)j(t,e)}finally{e.groupEnd()}},v=new n,j=(t,n)=>{if(f(v,n))return;const a=o(n);y(v,n);const s=[],i=b(n),c=E(n,(e=>(t,r)=>{const n=[];S(e,t,w.NOTE,r,n),h(e,n,o(t))})(t));void 0===i?e[t](a+":",n.message):S(t,n,w.MESSAGE,i,s);let l=r(n);"string"==typeof l&&l.length>=1&&!u(l,"\n")&&(l+="\n"),e[t](l);for(const e of c)S(t,n,w.NOTE,e,s);h(t,s,a)},k=s(g,(([t,r])=>{const o=(...r)=>{const o=[],n=P(r,o);e[t](...n),h(t,o)};return c(o,"name",{value:t}),[t,l(o)]})),T=a(d,(([t,r])=>t in e)),A=s(T,(([t,r])=>{const o=(...r)=>{e[t](...r)};return c(o,"name",{value:t}),[t,l(o)]})),M=p([...k,...A]);return l(M)};r.makeCausalConsole(P),l(P);const S=(e,t,r)=>{const o=a(b,(([t,r])=>t in e)),n=s(o,(([r,o])=>[r,l(((...n)=>{(void 0===o||t.canLog(o))&&e[r](...n)}))])),i=p(n);return l(i)};r.filterConsole(S),l(S)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f;e([["../commons.js",[["FinalizationRegistry",[e=>n=e]],["Map",[e=>a=e]],["mapGet",[e=>s=e]],["mapDelete",[e=>i=e]],["WeakMap",[e=>c=e]],["mapSet",[e=>l=e]],["finalizationRegistryRegister",[e=>p=e]],["weakmapSet",[e=>m=e]],["weakmapGet",[e=>u=e]],["mapEntries",[e=>y=e]],["mapHas",[e=>f=e]]]]]),r.makeRejectionHandlers((e=>{if(void 0===n)return;let t=0;const r=new a;let o;const g=e=>{i(r,e),o&&0===r.size&&(o(),o=void 0)},d=new c,b=new n((t=>{if(f(r,t)){const o=s(r,t);g(t),e(o)}}));return{rejectionHandledHandler:e=>{const t=u(d,e);g(t)},unhandledRejectionHandler:(e,o)=>{t+=1;const n=t;l(r,n,e),m(d,o,n),p(b,o,n,o)},processTerminationHandler:()=>{for(const[t,o]of y(r))g(t),e(o)}}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c;e([["../commons.js",[["TypeError",[e=>n=e]],["globalThis",[e=>a=e]]]],["./assert.js",[["loggedErrorHandler",[e=>s=e]]]],["./console.js",[["makeCausalConsole",[e=>i=e]]]],["./unhandled-rejection.js",[["makeRejectionHandlers",[e=>c=e]]]],["./types.js",[]],["./internal-types.js",[]]]);const l=console;r.tameConsole(((e="safe",t="platform",r="report",o)=>{if("safe"!==e&&"unsafe"!==e)throw new n("unrecognized consoleTaming "+e);let p;p=void 0===o?s:{...s,getStackString:o};const m="unsafe"===e?l:i(l,p);if("none"!==t&&void 0!==a.process&&a.process.on("uncaughtException",(e=>{m.error(e),"platform"===t||"exit"===t?a.process.exit(a.process.exitCode||-1):"abort"===t&&a.process.abort()})),"none"!==r&&void 0!==a.process){const e=c((e=>{m.error("SES_UNHANDLED_REJECTION:",e)}));e&&(a.process.on("unhandledRejection",e.unhandledRejectionHandler),a.process.on("rejectionHandled",e.rejectionHandledHandler),a.process.on("exit",e.processTerminationHandler))}if("none"!==t&&void 0!==a.window&&void 0!==a.window.addEventListener&&a.window.addEventListener("error",(e=>{e.preventDefault(),m.error(e.error),"exit"!==t&&"abort"!==t||(a.window.location.href="about:blank")})),"none"!==r&&void 0!==a.window&&void 0!==a.window.addEventListener){const e=c((e=>{m.error("SES_UNHANDLED_REJECTION:",e)}));e&&(a.window.addEventListener("unhandledrejection",(t=>{t.preventDefault(),e.unhandledRejectionHandler(t.reason,t.promise)})),a.window.addEventListener("rejectionhandled",(t=>{t.preventDefault(),e.rejectionHandledHandler(t.promise)})),a.window.addEventListener("beforeunload",(t=>{e.processTerminationHandler()})))}return{console:m}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P;e([["../commons.js",[["WeakMap",[e=>n=e]],["WeakSet",[e=>a=e]],["apply",[e=>s=e]],["arrayFilter",[e=>i=e]],["arrayJoin",[e=>c=e]],["arrayMap",[e=>l=e]],["arraySlice",[e=>p=e]],["create",[e=>m=e]],["defineProperties",[e=>u=e]],["fromEntries",[e=>y=e]],["reflectSet",[e=>f=e]],["regexpExec",[e=>g=e]],["regexpTest",[e=>d=e]],["weakmapGet",[e=>b=e]],["weakmapSet",[e=>E=e]],["weaksetAdd",[e=>w=e]],["weaksetHas",[e=>P=e]]]]]);const S=["getTypeName","getFunctionName","getMethodName","getFileName","getLineNumber","getColumnNumber","getEvalOrigin","isToplevel","isEval","isNative","isConstructor","isAsync","getPosition","getScriptNameOrSourceURL","toString"],h=e=>{const t=y(l(S,(t=>{const r=e[t];return[t,()=>s(r,e,[])]})));return m(t,{})},v=[/\/node_modules\//,/^(?:node:)?internal\//,/\/packages\/ses\/src\/error\/assert.js$/,/\/packages\/eventual-send\/src\//],j=e=>{if(!e)return!0;for(const t of v)if(d(t,e))return!1;return!0};r.filterFileName(j);const k=[/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/,/^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/],T=e=>{for(const t of k){const r=g(t,e);if(r)return c(p(r,1),"")}return e};r.shortenCallSiteString(T),r.tameV8ErrorConstructor(((e,t,r,o)=>{const p=e.captureStackTrace,m=e=>"verbose"===o||j(e.getFileName()),y=e=>{let t=""+e;return"concise"===o&&(t=T(t)),"\n at "+t},g=(e,t)=>c(l(i(t,m),y),""),d=new n,S={captureStackTrace(t,r=S.captureStackTrace){"function"!=typeof p?f(t,"stack",""):s(p,e,[t,r])},getStackString(e){let t=b(d,e);if(void 0===t&&(e.stack,t=b(d,e),t||(t={stackString:""},E(d,e,t))),void 0!==t.stackString)return t.stackString;const r=g(0,t.callSites);return E(d,e,{stackString:r}),r},prepareStackTrace(e,t){if("unsafe"===r){const r=g(0,t);return E(d,e,{stackString:r}),`${e}${r}`}return E(d,e,{callSites:t}),""}},v=S.prepareStackTrace;e.prepareStackTrace=v;const k=new a([v]);return u(t,{captureStackTrace:{value:S.captureStackTrace,writable:!0,enumerable:!1,configurable:!0},prepareStackTrace:{get:()=>e.prepareStackTrace,set(t){if("function"==typeof t){const r=(e=>{if(P(k,e))return e;const t={prepareStackTrace:(t,r)=>(E(d,t,{callSites:r}),e(t,(e=>l(e,h))(r)))};return w(k,t.prepareStackTrace),t.prepareStackTrace})(t);e.prepareStackTrace=r}else e.prepareStackTrace=v},enumerable:!1,configurable:!0}}),S.getStackString}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y;e([["../commons.js",[["FERAL_ERROR",[e=>n=e]],["TypeError",[e=>a=e]],["apply",[e=>s=e]],["construct",[e=>i=e]],["defineProperties",[e=>c=e]],["setPrototypeOf",[e=>l=e]],["getOwnPropertyDescriptor",[e=>p=e]],["defineProperty",[e=>m=e]]]],["../whitelist.js",[["NativeErrors",[e=>u=e]]]],["./tame-v8-error-constructor.js",[["tameV8ErrorConstructor",[e=>y=e]]]]]);const f=p(n.prototype,"stack"),g=f&&f.get,d=e=>"function"==typeof g?s(g,e,[]):"stack"in e?""+e.stack:"";r.default((function(e="safe",t="concise"){if("safe"!==e&&"unsafe"!==e)throw new a("unrecognized errorTaming "+e);if("concise"!==t&&"verbose"!==t)throw new a("unrecognized stackFiltering "+t);const r=n.prototype,o="function"==typeof n.captureStackTrace?"v8":"unknown",{captureStackTrace:p}=n,f=(e={})=>{const t=function(...e){let r;return r=void 0===new.target?s(n,this,e):i(n,e,new.target),"v8"===o&&s(p,n,[r,t]),r};return c(t,{length:{value:1},prototype:{value:r,writable:!1,enumerable:!1,configurable:!1}}),t},g=f({powers:"original"}),b=f({powers:"none"});c(r,{constructor:{value:b}});for(const e of u)l(e,b);c(g,{stackTraceLimit:{get(){if("number"==typeof n.stackTraceLimit)return n.stackTraceLimit},set(e){"number"==typeof e&&("number"!=typeof n.stackTraceLimit||(n.stackTraceLimit=e))},enumerable:!1,configurable:!0}}),c(b,{stackTraceLimit:{get(){},set(e){},enumerable:!1,configurable:!0}}),"v8"===o&&c(b,{prepareStackTrace:{get:()=>()=>"",set(e){},enumerable:!1,configurable:!0},captureStackTrace:{value:(e,t)=>{m(e,"stack",{value:""})},writable:!1,enumerable:!1,configurable:!0}});let E=d;return"v8"===o?E=y(n,g,e,t):c(r,"unsafe"===e?{stack:{get(){return E(this)},set(e){c(this,{stack:{value:e,writable:!0,enumerable:!0,configurable:!0}})}}}:{stack:{get(){return""+this},set(e){c(this,{stack:{value:e,writable:!0,enumerable:!0,configurable:!0}})}}}),{"%InitialGetStackString%":E,"%InitialError%":g,"%SharedError%":b}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E;function w(e){return p(e).constructor}e([["./commons.js",[["FERAL_FUNCTION",[e=>n=e]],["Float32Array",[e=>a=e]],["Map",[e=>s=e]],["Set",[e=>i=e]],["String",[e=>c=e]],["getOwnPropertyDescriptor",[e=>l=e]],["getPrototypeOf",[e=>p=e]],["iterateArray",[e=>m=e]],["iterateMap",[e=>u=e]],["iterateSet",[e=>y=e]],["iterateString",[e=>f=e]],["matchAllRegExp",[e=>g=e]],["matchAllSymbol",[e=>d=e]],["regexpPrototype",[e=>b=e]]]],["./compartment-shim.js",[["InertCompartment",[e=>E=e]]]]]),r.getAnonymousIntrinsics((()=>{const e=n.prototype.constructor,t=l(function(){return arguments}(),"callee").get,r=f(new c),o=p(r),P=b[d]&&g(/./),S=P&&p(P),h=m([]),v=p(h),j=p(a),k=u(new s),T=p(k),A=y(new i),M=p(A),x=p(v),I=w((function*(){})),O=I.prototype,C=w((async function*(){})),F=C.prototype,_=F.prototype,R=p(_);return{"%InertFunction%":e,"%ArrayIteratorPrototype%":v,"%InertAsyncFunction%":w((async function(){})),"%AsyncGenerator%":F,"%InertAsyncGeneratorFunction%":C,"%AsyncGeneratorPrototype%":_,"%AsyncIteratorPrototype%":R,"%Generator%":O,"%InertGeneratorFunction%":I,"%IteratorPrototype%":x,"%MapIteratorPrototype%":T,"%RegExpStringIteratorPrototype%":S,"%SetIteratorPrototype%":M,"%StringIteratorPrototype%":o,"%ThrowTypeError%":t,"%TypedArray%":j,"%InertCompartment%":E}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S,h,v,j,k,T,A,M,x,I;e([["./commons.js",[["Set",[e=>n=e]],["String",[e=>a=e]],["TypeError",[e=>s=e]],["WeakMap",[e=>i=e]],["WeakSet",[e=>c=e]],["apply",[e=>l=e]],["arrayForEach",[e=>p=e]],["defineProperty",[e=>m=e]],["freeze",[e=>u=e]],["getOwnPropertyDescriptor",[e=>y=e]],["getOwnPropertyDescriptors",[e=>f=e]],["getPrototypeOf",[e=>g=e]],["isInteger",[e=>d=e]],["isObject",[e=>b=e]],["objectHasOwnProperty",[e=>E=e]],["ownKeys",[e=>w=e]],["preventExtensions",[e=>P=e]],["setAdd",[e=>S=e]],["setForEach",[e=>h=e]],["setHas",[e=>v=e]],["toStringTagSymbol",[e=>j=e]],["typedArrayPrototype",[e=>k=e]],["weakmapGet",[e=>T=e]],["weakmapSet",[e=>A=e]],["weaksetAdd",[e=>M=e]],["weaksetHas",[e=>x=e]]]],["./error/assert.js",[["assert",[e=>I=e]]]]]);const O=y(k,j);I(O);const C=O.get;I(C);const F=e=>void 0!==l(C,e,[]);r.isTypedArray(F),r.makeHardener((()=>{const e=new c,{harden:t}={harden(t){const r=new n,o=new i;function c(t,n){if(!b(t))return;const a=typeof t;if("object"!==a&&"function"!==a)throw new s("Unexpected typeof: "+a);x(e,t)||v(r,t)||(S(r,t),A(o,t,n))}return c(t),h(r,(function(e){var t;F(e)?(P(t=e),p(w(t),(e=>{const r=y(t,e);I(r),(e=>{const t=+a(e);return d(t)&&a(t)===e})(e)||m(t,e,{...r,writable:!1,configurable:!1})}))):u(e);const r=T(o,e)||"unknown",n=f(e);c(g(e),r+".__proto__"),p(w(n),(e=>{const t=`${r}.${a(e)}`,o=n[e];E(o,"value")?c(o.value,""+t):(c(o.get,t+"(get)"),c(o.set,t+"(set)"))}))})),h(r,(function(t){M(e,t)})),t}};return t}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c;e([["./commons.js",[["Date",[e=>n=e]],["TypeError",[e=>a=e]],["apply",[e=>s=e]],["construct",[e=>i=e]],["defineProperties",[e=>c=e]]]]]),r.default((function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new a("unrecognized dateTaming "+e);const t=n,r=t.prototype,o=({powers:e="none"}={})=>{let o;return o="original"===e?function(...e){return void 0===new.target?s(t,void 0,e):i(t,e,new.target)}:function(...e){return void 0===new.target?"Invalid Date":(0===e.length&&(e=[NaN]),i(t,e,new.target))},c(o,{length:{value:7},prototype:{value:r,writable:!1,enumerable:!1,configurable:!1},parse:{value:n.parse,writable:!0,enumerable:!1,configurable:!0},UTC:{value:n.UTC,writable:!0,enumerable:!1,configurable:!0}}),o},l=o({powers:"original"}),p=o({powers:"none"});return c(l,{now:{value:n.now,writable:!0,enumerable:!1,configurable:!0}}),c(p,{now:{value:()=>NaN,writable:!0,enumerable:!1,configurable:!0}}),c(r,{constructor:{value:p}}),{"%InitialDate%":l,"%SharedDate%":p}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i;function c(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new n("unrecognized domainTaming "+e);if("unsafe"!==e&&"object"==typeof a.process&&null!==a.process){const e=s(a.process,"domain");if(void 0!==e&&void 0!==e.get)throw new n("SES failed to lockdown, Node.js domains have been initialized (SES_NO_DOMAINS)");i(a.process,"domain",{value:null,configurable:!1,writable:!1,enumerable:!1})}}e([["./commons.js",[["TypeError",[e=>n=e]],["globalThis",[e=>a=e]],["getOwnPropertyDescriptor",[e=>s=e]],["defineProperty",[e=>i=e]]]]]),Object.defineProperty(c,"name",{value:"tameDomains"}),r.tameDomains(c)},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p;e([["./commons.js",[["FERAL_FUNCTION",[e=>n=e]],["SyntaxError",[e=>a=e]],["TypeError",[e=>s=e]],["defineProperties",[e=>i=e]],["getPrototypeOf",[e=>c=e]],["setPrototypeOf",[e=>l=e]],["freeze",[e=>p=e]]]]]),r.default((function(){try{n.prototype.constructor("return 1")}catch(e){return p({})}const e={};function t(t,r,o){let p;try{p=(0,eval)(o)}catch(e){if(e instanceof a)return;throw e}const m=c(p),u=function(){throw new s("Function.prototype.constructor is not a valid constructor.")};i(u,{prototype:{value:m},name:{value:t,writable:!1,enumerable:!1,configurable:!0}}),i(m,{constructor:{value:u}}),u!==n.prototype.constructor&&l(u,n.prototype.constructor),e[r]=u}return t("Function","%InertFunction%","(function(){})"),t("GeneratorFunction","%InertGeneratorFunction%","(function*(){})"),t("AsyncFunction","%InertAsyncFunction%","(async function(){})"),t("AsyncGeneratorFunction","%InertAsyncGeneratorFunction%","(async function*(){})"),e}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u;e([["./commons.js",[["WeakSet",[e=>n=e]],["defineProperty",[e=>a=e]],["freeze",[e=>s=e]],["functionPrototype",[e=>i=e]],["functionToString",[e=>c=e]],["stringEndsWith",[e=>l=e]],["weaksetAdd",[e=>p=e]],["weaksetHas",[e=>m=e]]]]]),r.tameFunctionToString((()=>{if(void 0===u){const e=new n;a(i,"toString",{value:{toString(){const t=c(this,[]);return l(t,") { [native code] }")||!m(e,this)?t:`function ${this.name}() { [native code] }`}}.toString}),u=s((t=>p(e,t)))}return u}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m;e([["./commons.js",[["Number",[e=>n=e]],["String",[e=>a=e]],["TypeError",[e=>s=e]],["defineProperty",[e=>i=e]],["getOwnPropertyNames",[e=>c=e]],["isObject",[e=>l=e]],["regexpExec",[e=>p=e]]]],["./error/assert.js",[["assert",[e=>m=e]]]]]);const{Fail:u,quote:y}=m,f=/^(\w*[a-z])Locale([A-Z]\w*)$/,g={localeCompare(e){if(null==this)throw new s('Cannot localeCompare with null or undefined "this" value');const t=""+this;return t<(e=""+e)?-1:t>e?1:(t===e||u`expected ${y(t)} and ${y(e)} to compare`,0)},toString(){return""+this}},d=g.localeCompare,b=g.toString;r.default((function(e,t="safe"){if("safe"!==t&&"unsafe"!==t)throw new s("unrecognized localeTaming "+t);if("unsafe"!==t){i(a.prototype,"localeCompare",{value:d});for(const t of c(e)){const r=e[t];if(l(r))for(const e of c(r)){const t=p(f,e);if(t){"function"==typeof r[e]||u`expected ${y(e)} to be a function`;const o=`${t[1]}${t[2]}`,n=r[o];"function"==typeof n||u`function ${y(o)} not found`,i(r,e,{value:n})}}}i(n.prototype,"toLocaleString",{value:b})}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c;e([["./commons.js",[["Math",[e=>n=e]],["TypeError",[e=>a=e]],["create",[e=>s=e]],["getOwnPropertyDescriptors",[e=>i=e]],["objectPrototype",[e=>c=e]]]]]),r.default((function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new a("unrecognized mathTaming "+e);const t=n,r=t,{random:o,...l}=i(t);return{"%InitialMath%":r,"%SharedMath%":s(c,l)}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l;e([["./commons.js",[["FERAL_REG_EXP",[e=>n=e]],["TypeError",[e=>a=e]],["construct",[e=>s=e]],["defineProperties",[e=>i=e]],["getOwnPropertyDescriptor",[e=>c=e]],["speciesSymbol",[e=>l=e]]]]]),r.default((function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new a("unrecognized regExpTaming "+e);const t=n.prototype,r=(e={})=>{const r=function(...e){return void 0===new.target?n(...e):s(n,e,new.target)};return i(r,{length:{value:2},prototype:{value:t,writable:!1,enumerable:!1,configurable:!1},[l]:c(n,l)}),r},o=r(),p=r();return"unsafe"!==e&&delete t.compile,i(t,{constructor:{value:p}}),{"%InitialRegExp%":o,"%SharedRegExp%":p}}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P;e([["./whitelist.js",[["whitelist",[e=>n=e]],["FunctionInstance",[e=>a=e]],["isAccessorPermit",[e=>s=e]]]],["./commons.js",[["Map",[e=>i=e]],["String",[e=>c=e]],["TypeError",[e=>l=e]],["arrayFilter",[e=>p=e]],["arrayIncludes",[e=>m=e]],["arrayMap",[e=>u=e]],["entries",[e=>y=e]],["getOwnPropertyDescriptor",[e=>f=e]],["getPrototypeOf",[e=>g=e]],["isObject",[e=>d=e]],["mapGet",[e=>b=e]],["objectHasOwnProperty",[e=>E=e]],["ownKeys",[e=>w=e]],["symbolKeyFor",[e=>P=e]]]]]),r.default((function(e,t){const r=["undefined","boolean","number","string","symbol"],o=new i(e.Symbol?u(p(y(n.Symbol),(([t,r])=>"symbol"===r&&"symbol"==typeof e.Symbol[t])),(([t])=>[e.Symbol[t],"@@"+t])):[]);function S(e,t){if("string"==typeof t)return t;const r=b(o,t);if("symbol"==typeof t){if(r)return r;{const e=P(t);return void 0!==e?`RegisteredSymbol(${e})`:"Unique"+c(t)}}throw new l(`Unexpected property name type ${e} ${t}`)}function h(t,o,n,a){if("object"==typeof a)return k(t,o,a),!0;if(!1===a)return!1;if("string"==typeof a)if("prototype"===n||"constructor"===n){if(E(e,a)){if(o!==e[a])throw new l("Does not match whitelist "+t);return!0}}else if(m(r,a)){if(typeof o!==a)throw new l(`At ${t} expected ${a} not ${typeof o}`);return!0}throw new l(`Unexpected whitelist permit ${a} at ${t}`)}function v(e,t,r,o){const n=f(t,r);if(E(n,"value")){if(s(o))throw new l("Accessor expected at "+e);return h(e,n.value,r,o)}if(!s(o))throw new l("Accessor not expected at "+e);return h(e+"<get>",n.get,r,o.get)&&h(e+"<set>",n.set,r,o.set)}function j(e,r,o){const n="__proto__"===o?"--proto--":o;return E(r,n)?r[n]:"function"==typeof e&&(t(e),E(a,n))?a[n]:void 0}function k(t,r,o){if(void 0!==r){!function(t,r,o){if(!d(r))throw new l(`Object expected: ${t}, ${r}, ${o}`);const n=g(r);if(null!==n||null!==o){if(void 0!==o&&"string"!=typeof o)throw new l(`Malformed whitelist permit ${t}.__proto__`);if(n!==e[o||"%ObjectPrototype%"])throw new l(`Unexpected intrinsic ${t}.__proto__ at ${o}`)}}(t,r,o["[[Proto]]"]);for(const e of w(r)){const n=S(t,e),a=`${t}.${n}`,s=j(r,o,n);if(!s||!v(a,r,e,s)){!1!==s&&console.warn("Removing "+a);try{delete r[e]}catch(t){if(e in r){if("function"==typeof r&&"prototype"===e&&(r.prototype=void 0,void 0===r.prototype)){console.warn(`Tolerating undeletable ${a} === undefined`);continue}console.error("failed to delete "+a,t)}else console.error(`deleting ${a} threw`,t);throw t}}}}}k("intrinsics",e,n)}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m,u,y,f,g,d,b,E,w,P,S,h,v,j,k,T,A,M,x,I,O,C,F,_,R,V,N;e([["./commons.js",[["FERAL_FUNCTION",[e=>n=e]],["FERAL_EVAL",[e=>a=e]],["TypeError",[e=>s=e]],["arrayFilter",[e=>i=e]],["arrayMap",[e=>c=e]],["globalThis",[e=>l=e]],["is",[e=>p=e]],["ownKeys",[e=>m=e]],["stringSplit",[e=>u=e]],["noEvalEvaluate",[e=>y=e]]]],["./error/stringify-utils.js",[["enJoin",[e=>f=e]]]],["./make-hardener.js",[["makeHardener",[e=>g=e]]]],["./intrinsics.js",[["makeIntrinsicsCollector",[e=>d=e]]]],["./whitelist-intrinsics.js",[["default",[e=>b=e]]]],["./tame-function-constructors.js",[["default",[e=>E=e]]]],["./tame-date-constructor.js",[["default",[e=>w=e]]]],["./tame-math-object.js",[["default",[e=>P=e]]]],["./tame-regexp-constructor.js",[["default",[e=>S=e]]]],["./enable-property-overrides.js",[["default",[e=>h=e]]]],["./tame-locale-methods.js",[["default",[e=>v=e]]]],["./global-object.js",[["setGlobalObjectConstantProperties",[e=>j=e]],["setGlobalObjectMutableProperties",[e=>k=e]],["setGlobalObjectEvaluators",[e=>T=e]]]],["./make-safe-evaluator.js",[["makeSafeEvaluator",[e=>A=e]]]],["./whitelist.js",[["initialGlobalPropertyNames",[e=>M=e]]]],["./tame-function-tostring.js",[["tameFunctionToString",[e=>x=e]]]],["./tame-domains.js",[["tameDomains",[e=>I=e]]]],["./error/tame-console.js",[["tameConsole",[e=>O=e]]]],["./error/tame-error-constructor.js",[["default",[e=>C=e]]]],["./error/assert.js",[["assert",[e=>F=e]],["makeAssert",[e=>_=e]]]],["./environment-options.js",[["makeEnvironmentCaptor",[e=>R=e]]]],["./get-anonymous-intrinsics.js",[["getAnonymousIntrinsics",[e=>V=e]]]],["./compartment-shim.js",[["makeCompartmentConstructor",[e=>N=e]]]]]);const{Fail:D,details:$,quote:G}=F;let L;const U=g(),H=(e={})=>{const{getEnvironmentOption:t,getCapturedEnvironmentOptionNames:r}=R(l),{errorTaming:o=t("LOCKDOWN_ERROR_TAMING","safe"),errorTrapping:g=t("LOCKDOWN_ERROR_TRAPPING","platform"),unhandledRejectionTrapping:H=t("LOCKDOWN_UNHANDLED_REJECTION_TRAPPING","report"),regExpTaming:z=t("LOCKDOWN_REGEXP_TAMING","safe"),localeTaming:W=t("LOCKDOWN_LOCALE_TAMING","safe"),consoleTaming:B=t("LOCKDOWN_CONSOLE_TAMING","safe"),overrideTaming:K=t("LOCKDOWN_OVERRIDE_TAMING","moderate"),stackFiltering:J=t("LOCKDOWN_STACK_FILTERING","concise"),domainTaming:q=t("LOCKDOWN_DOMAIN_TAMING","safe"),evalTaming:Y=t("LOCKDOWN_EVAL_TAMING","safeEval"),overrideDebug:X=i(u(t("LOCKDOWN_OVERRIDE_DEBUG",""),","),(e=>""!==e)),dateTaming:Z="safe",mathTaming:Q="safe",...ee}=e,te=r();te.length>0&&console.warn("SES Lockdown using options from environment variables "+f(c(te,G),"and")),"unsafeEval"===Y||"safeEval"===Y||"noEval"===Y||D`lockdown(): non supported option evalTaming: ${G(Y)}`;const re=m(ee);if(0===re.length||D`lockdown(): non supported option ${G(re)}`,void 0===L||F.fail($`Already locked down at ${L} (SES_ALREADY_LOCKED_DOWN)`,s),L=new s("Prior lockdown (SES_ALREADY_LOCKED_DOWN)"),L.stack,(()=>{let e=!1;try{e=n("eval","SES_changed",' eval("SES_changed = true");\n return SES_changed;\n ')(a,!1),e||delete l.SES_changed}catch(t){e=!0}if(!e)throw new s("SES cannot initialize unless 'eval' is the original intrinsic 'eval', suitable for direct-eval (dynamically scoped eval) (SES_DIRECT_EVAL)")})(),l.Function.prototype.constructor!==l.Function&&"function"==typeof l.harden&&"function"==typeof l.lockdown&&l.Date.prototype.constructor!==l.Date&&"function"==typeof l.Date.now&&p(l.Date.prototype.constructor.now(),NaN))throw new s("Already locked down but not by this SES instance (SES_MULTIPLE_INSTANCES)");I(q);const{addIntrinsics:oe,completePrototypes:ne,finalIntrinsics:ae}=d();oe({harden:U}),oe(E()),oe(w(Z)),oe(C(o,J)),oe(P(Q)),oe(S(z)),oe(V()),ne();const se=ae();let ie;"unsafe"!==o&&(ie=se["%InitialGetStackString%"]);const ce=O(B,g,H,ie);l.console=ce.console,"unsafe"===o&&l.assert===F&&(l.assert=_(void 0,!0)),v(se,W);const le=x();if(b(se,le),j(l),k(l,{intrinsics:se,newGlobalPropertyNames:M,makeCompartmentConstructor:N,markVirtualizedNativeFunction:le}),"noEval"===Y)T(l,y,le);else if("safeEval"===Y){const{safeEvaluate:e}=A({globalObject:l});T(l,e,le)}return function(){return h(se,K,X),U(se),l.harden=U,!0}};r.repairIntrinsics(H),r.lockdown(((e={})=>{H(e)()}))},({imports:e,liveVar:t,onceVar:r,importMeta:o})=>{let n,a,s,i,c,l,p,m;if(e([["./src/commons.js",[["globalThis",[e=>n=e]],["TypeError",[e=>a=e]],["assign",[e=>s=e]]]],["./src/tame-function-tostring.js",[["tameFunctionToString",[e=>i=e]]]],["./src/intrinsics.js",[["getGlobalIntrinsics",[e=>c=e]]]],["./src/lockdown-shim.js",[["lockdown",[e=>l=e]]]],["./src/compartment-shim.js",[["makeCompartmentConstructor",[e=>p=e]]]],["./src/error/assert.js",[["assert",[e=>m=e]]]]]),function(){return this}())throw new a("SES failed to initialize, sloppy mode (SES_NO_SLOPPY)");const u=i(),y=p(p,c(n),u);s(n,{lockdown:l,Compartment:y,assert:m})}],t=(e,t)=>{const r=[];return Object.freeze({get:Object.freeze((()=>t)),set:Object.freeze((e=>{t=e;for(const e of r)e(t)})),observe:Object.freeze((e=>{r.push(e),e(t)})),enumerable:!0})},r=[{globalThis:t(),Array:t(),Date:t(),FinalizationRegistry:t(),Float32Array:t(),JSON:t(),Map:t(),Math:t(),Number:t(),Object:t(),Promise:t(),Proxy:t(),Reflect:t(),FERAL_REG_EXP:t(),Set:t(),String:t(),WeakMap:t(),WeakSet:t(),FERAL_ERROR:t(),RangeError:t(),ReferenceError:t(),SyntaxError:t(),TypeError:t(),assign:t(),create:t(),defineProperties:t(),entries:t(),freeze:t(),getOwnPropertyDescriptor:t(),getOwnPropertyDescriptors:t(),getOwnPropertyNames:t(),getPrototypeOf:t(),is:t(),isExtensible:t(),keys:t(),objectPrototype:t(),seal:t(),preventExtensions:t(),setPrototypeOf:t(),values:t(),fromEntries:t(),speciesSymbol:t(),toStringTagSymbol:t(),iteratorSymbol:t(),matchAllSymbol:t(),unscopablesSymbol:t(),symbolKeyFor:t(),symbolFor:t(),isInteger:t(),stringifyJson:t(),defineProperty:t(),apply:t(),construct:t(),reflectGet:t(),reflectGetOwnPropertyDescriptor:t(),reflectHas:t(),reflectIsExtensible:t(),ownKeys:t(),reflectPreventExtensions:t(),reflectSet:t(),isArray:t(),arrayPrototype:t(),mapPrototype:t(),proxyRevocable:t(),regexpPrototype:t(),setPrototype:t(),stringPrototype:t(),weakmapPrototype:t(),weaksetPrototype:t(),functionPrototype:t(),promisePrototype:t(),typedArrayPrototype:t(),uncurryThis:t(),objectHasOwnProperty:t(),arrayFilter:t(),arrayForEach:t(),arrayIncludes:t(),arrayJoin:t(),arrayMap:t(),arrayPop:t(),arrayPush:t(),arraySlice:t(),arraySome:t(),arraySort:t(),iterateArray:t(),mapSet:t(),mapGet:t(),mapHas:t(),mapDelete:t(),mapEntries:t(),iterateMap:t(),setAdd:t(),setDelete:t(),setForEach:t(),setHas:t(),iterateSet:t(),regexpTest:t(),regexpExec:t(),matchAllRegExp:t(),stringEndsWith:t(),stringIncludes:t(),stringIndexOf:t(),stringMatch:t(),stringReplace:t(),stringSearch:t(),stringSlice:t(),stringSplit:t(),stringStartsWith:t(),iterateString:t(),weakmapDelete:t(),weakmapGet:t(),weakmapHas:t(),weakmapSet:t(),weaksetAdd:t(),weaksetGet:t(),weaksetHas:t(),functionToString:t(),promiseAll:t(),promiseCatch:t(),promiseThen:t(),finalizationRegistryRegister:t(),finalizationRegistryUnregister:t(),getConstructorOf:t(),immutableObject:t(),isObject:t(),isError:t(),FERAL_EVAL:t(),FERAL_FUNCTION:t(),noEvalEvaluate:t()},{},{an:t(),bestEffortStringify:t(),enJoin:t()},{},{unredactedDetails:t(),loggedErrorHandler:t(),makeAssert:t(),assert:t()},{makeEvalScopeKit:t()},{isValidIdentifierName:t(),getScopeConstants:t()},{makeEvaluate:t()},{alwaysThrowHandler:t(),strictScopeTerminatorHandler:t(),strictScopeTerminator:t()},{createSloppyGlobalsScopeTerminator:t()},{getSourceURL:t()},{rejectHtmlComments:t(),evadeHtmlCommentTest:t(),rejectImportExpressions:t(),evadeImportExpressionTest:t(),rejectSomeDirectEvalExpressions:t(),mandatoryTransforms:t(),applyTransforms:t()},{makeSafeEvaluator:t()},{provideCompartmentEvaluator:t(),compartmentEvaluate:t()},{makeEvalFunction:t()},{makeFunctionConstructor:t()},{constantProperties:t(),universalPropertyNames:t(),initialGlobalPropertyNames:t(),sharedGlobalPropertyNames:t(),uniqueGlobalPropertyNames:t(),NativeErrors:t(),FunctionInstance:t(),isAccessorPermit:t(),whitelist:t()},{setGlobalObjectSymbolUnscopables:t(),setGlobalObjectConstantProperties:t(),setGlobalObjectMutableProperties:t(),setGlobalObjectEvaluators:t()},{makeAlias:t(),load:t()},{deferExports:t(),getDeferredExports:t()},{makeThirdPartyModuleInstance:t(),makeModuleInstance:t()},{link:t(),instantiate:t()},{InertCompartment:t(),CompartmentPrototype:t(),makeCompartmentConstructor:t()},{makeIntrinsicsCollector:t(),getGlobalIntrinsics:t()},{minEnablements:t(),moderateEnablements:t(),severeEnablements:t()},{default:t()},{makeEnvironmentCaptor:t()},{makeLoggingConsoleKit:t(),makeCausalConsole:t(),filterConsole:t(),consoleWhitelist:t()},{makeRejectionHandlers:t()},{tameConsole:t()},{filterFileName:t(),shortenCallSiteString:t(),tameV8ErrorConstructor:t()},{default:t()},{getAnonymousIntrinsics:t()},{isTypedArray:t(),makeHardener:t()},{default:t()},{tameDomains:t()},{default:t()},{tameFunctionToString:t()},{default:t()},{default:t()},{default:t()},{default:t()},{repairIntrinsics:t(),lockdown:t()},{}],o=r.map((e=>Object.freeze(Object.create(null,e))));for(let e=0;e<o.length;e+=1)r[e]["*"]=t(0,o[e]);function n(e,t,o){for(const[n,a]of e.get(t)){const e=r[o][n];if(void 0===e)throw new ReferenceError("Cannot import name "+n);for(const t of a)e.observe(t)}}e[0]({imports(e){new Map(e)},liveVar:{},onceVar:{universalThis:r[0].globalThis.set,Array:r[0].Array.set,Date:r[0].Date.set,FinalizationRegistry:r[0].FinalizationRegistry.set,Float32Array:r[0].Float32Array.set,JSON:r[0].JSON.set,Map:r[0].Map.set,Math:r[0].Math.set,Number:r[0].Number.set,Object:r[0].Object.set,Promise:r[0].Promise.set,Proxy:r[0].Proxy.set,Reflect:r[0].Reflect.set,FERAL_REG_EXP:r[0].FERAL_REG_EXP.set,Set:r[0].Set.set,String:r[0].String.set,WeakMap:r[0].WeakMap.set,WeakSet:r[0].WeakSet.set,FERAL_ERROR:r[0].FERAL_ERROR.set,RangeError:r[0].RangeError.set,ReferenceError:r[0].ReferenceError.set,SyntaxError:r[0].SyntaxError.set,TypeError:r[0].TypeError.set,assign:r[0].assign.set,create:r[0].create.set,defineProperties:r[0].defineProperties.set,entries:r[0].entries.set,freeze:r[0].freeze.set,getOwnPropertyDescriptor:r[0].getOwnPropertyDescriptor.set,getOwnPropertyDescriptors:r[0].getOwnPropertyDescriptors.set,getOwnPropertyNames:r[0].getOwnPropertyNames.set,getPrototypeOf:r[0].getPrototypeOf.set,is:r[0].is.set,isExtensible:r[0].isExtensible.set,keys:r[0].keys.set,objectPrototype:r[0].objectPrototype.set,seal:r[0].seal.set,preventExtensions:r[0].preventExtensions.set,setPrototypeOf:r[0].setPrototypeOf.set,values:r[0].values.set,fromEntries:r[0].fromEntries.set,speciesSymbol:r[0].speciesSymbol.set,toStringTagSymbol:r[0].toStringTagSymbol.set,iteratorSymbol:r[0].iteratorSymbol.set,matchAllSymbol:r[0].matchAllSymbol.set,unscopablesSymbol:r[0].unscopablesSymbol.set,symbolKeyFor:r[0].symbolKeyFor.set,symbolFor:r[0].symbolFor.set,isInteger:r[0].isInteger.set,stringifyJson:r[0].stringifyJson.set,defineProperty:r[0].defineProperty.set,apply:r[0].apply.set,construct:r[0].construct.set,reflectGet:r[0].reflectGet.set,reflectGetOwnPropertyDescriptor:r[0].reflectGetOwnPropertyDescriptor.set,reflectHas:r[0].reflectHas.set,reflectIsExtensible:r[0].reflectIsExtensible.set,ownKeys:r[0].ownKeys.set,reflectPreventExtensions:r[0].reflectPreventExtensions.set,reflectSet:r[0].reflectSet.set,isArray:r[0].isArray.set,arrayPrototype:r[0].arrayPrototype.set,mapPrototype:r[0].mapPrototype.set,proxyRevocable:r[0].proxyRevocable.set,regexpPrototype:r[0].regexpPrototype.set,setPrototype:r[0].setPrototype.set,stringPrototype:r[0].stringPrototype.set,weakmapPrototype:r[0].weakmapPrototype.set,weaksetPrototype:r[0].weaksetPrototype.set,functionPrototype:r[0].functionPrototype.set,promisePrototype:r[0].promisePrototype.set,typedArrayPrototype:r[0].typedArrayPrototype.set,uncurryThis:r[0].uncurryThis.set,objectHasOwnProperty:r[0].objectHasOwnProperty.set,arrayFilter:r[0].arrayFilter.set,arrayForEach:r[0].arrayForEach.set,arrayIncludes:r[0].arrayIncludes.set,arrayJoin:r[0].arrayJoin.set,arrayMap:r[0].arrayMap.set,arrayPop:r[0].arrayPop.set,arrayPush:r[0].arrayPush.set,arraySlice:r[0].arraySlice.set,arraySome:r[0].arraySome.set,arraySort:r[0].arraySort.set,iterateArray:r[0].iterateArray.set,mapSet:r[0].mapSet.set,mapGet:r[0].mapGet.set,mapHas:r[0].mapHas.set,mapDelete:r[0].mapDelete.set,mapEntries:r[0].mapEntries.set,iterateMap:r[0].iterateMap.set,setAdd:r[0].setAdd.set,setDelete:r[0].setDelete.set,setForEach:r[0].setForEach.set,setHas:r[0].setHas.set,iterateSet:r[0].iterateSet.set,regexpTest:r[0].regexpTest.set,regexpExec:r[0].regexpExec.set,matchAllRegExp:r[0].matchAllRegExp.set,stringEndsWith:r[0].stringEndsWith.set,stringIncludes:r[0].stringIncludes.set,stringIndexOf:r[0].stringIndexOf.set,stringMatch:r[0].stringMatch.set,stringReplace:r[0].stringReplace.set,stringSearch:r[0].stringSearch.set,stringSlice:r[0].stringSlice.set,stringSplit:r[0].stringSplit.set,stringStartsWith:r[0].stringStartsWith.set,iterateString:r[0].iterateString.set,weakmapDelete:r[0].weakmapDelete.set,weakmapGet:r[0].weakmapGet.set,weakmapHas:r[0].weakmapHas.set,weakmapSet:r[0].weakmapSet.set,weaksetAdd:r[0].weaksetAdd.set,weaksetGet:r[0].weaksetGet.set,weaksetHas:r[0].weaksetHas.set,functionToString:r[0].functionToString.set,promiseAll:r[0].promiseAll.set,promiseCatch:r[0].promiseCatch.set,promiseThen:r[0].promiseThen.set,finalizationRegistryRegister:r[0].finalizationRegistryRegister.set,finalizationRegistryUnregister:r[0].finalizationRegistryUnregister.set,getConstructorOf:r[0].getConstructorOf.set,immutableObject:r[0].immutableObject.set,isObject:r[0].isObject.set,isError:r[0].isError.set,FERAL_EVAL:r[0].FERAL_EVAL.set,FERAL_FUNCTION:r[0].FERAL_FUNCTION.set,noEvalEvaluate:r[0].noEvalEvaluate.set},importMeta:{}}),e[1]({imports(e){new Map(e)},liveVar:{},onceVar:{},importMeta:{}}),e[2]({imports(e){n(new Map(e),"../commons.js",0)},liveVar:{},onceVar:{an:r[2].an.set,bestEffortStringify:r[2].bestEffortStringify.set,enJoin:r[2].enJoin.set},importMeta:{}}),e[3]({imports(e){new Map(e)},liveVar:{},onceVar:{},importMeta:{}}),e[4]({imports(e){const t=new Map(e);n(t,"../commons.js",0),n(t,"./internal-types.js",1),n(t,"./stringify-utils.js",2),n(t,"./types.js",3)},liveVar:{},onceVar:{unredactedDetails:r[4].unredactedDetails.set,loggedErrorHandler:r[4].loggedErrorHandler.set,makeAssert:r[4].makeAssert.set,assert:r[4].assert.set},importMeta:{}}),e[5]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{makeEvalScopeKit:r[5].makeEvalScopeKit.set},importMeta:{}}),e[6]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{isValidIdentifierName:r[6].isValidIdentifierName.set,getScopeConstants:r[6].getScopeConstants.set},importMeta:{}}),e[7]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./scope-constants.js",6)},liveVar:{},onceVar:{makeEvaluate:r[7].makeEvaluate.set},importMeta:{}}),e[8]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{alwaysThrowHandler:r[8].alwaysThrowHandler.set,strictScopeTerminatorHandler:r[8].strictScopeTerminatorHandler.set,strictScopeTerminator:r[8].strictScopeTerminator.set},importMeta:{}}),e[9]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./strict-scope-terminator.js",8)},liveVar:{},onceVar:{createSloppyGlobalsScopeTerminator:r[9].createSloppyGlobalsScopeTerminator.set},importMeta:{}}),e[10]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{getSourceURL:r[10].getSourceURL.set},importMeta:{}}),e[11]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./get-source-url.js",10)},liveVar:{},onceVar:{rejectHtmlComments:r[11].rejectHtmlComments.set,evadeHtmlCommentTest:r[11].evadeHtmlCommentTest.set,rejectImportExpressions:r[11].rejectImportExpressions.set,evadeImportExpressionTest:r[11].evadeImportExpressionTest.set,rejectSomeDirectEvalExpressions:r[11].rejectSomeDirectEvalExpressions.set,mandatoryTransforms:r[11].mandatoryTransforms.set,applyTransforms:r[11].applyTransforms.set},importMeta:{}}),e[12]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4),n(t,"./eval-scope.js",5),n(t,"./make-evaluate.js",7),n(t,"./sloppy-globals-scope-terminator.js",9),n(t,"./strict-scope-terminator.js",8),n(t,"./transforms.js",11)},liveVar:{},onceVar:{makeSafeEvaluator:r[12].makeSafeEvaluator.set},importMeta:{}}),e[13]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./make-safe-evaluator.js",12),n(t,"./transforms.js",11)},liveVar:{},onceVar:{provideCompartmentEvaluator:r[13].provideCompartmentEvaluator.set,compartmentEvaluate:r[13].compartmentEvaluate.set},importMeta:{}}),e[14]({imports(e){new Map(e)},liveVar:{},onceVar:{makeEvalFunction:r[14].makeEvalFunction.set},importMeta:{}}),e[15]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{makeFunctionConstructor:r[15].makeFunctionConstructor.set},importMeta:{}}),e[16]({imports(e){new Map(e)},liveVar:{},onceVar:{constantProperties:r[16].constantProperties.set,universalPropertyNames:r[16].universalPropertyNames.set,initialGlobalPropertyNames:r[16].initialGlobalPropertyNames.set,sharedGlobalPropertyNames:r[16].sharedGlobalPropertyNames.set,uniqueGlobalPropertyNames:r[16].uniqueGlobalPropertyNames.set,NativeErrors:r[16].NativeErrors.set,FunctionInstance:r[16].FunctionInstance.set,isAccessorPermit:r[16].isAccessorPermit.set,whitelist:r[16].whitelist.set},importMeta:{}}),e[17]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./make-eval-function.js",14),n(t,"./make-function-constructor.js",15),n(t,"./whitelist.js",16)},liveVar:{},onceVar:{setGlobalObjectSymbolUnscopables:r[17].setGlobalObjectSymbolUnscopables.set,setGlobalObjectConstantProperties:r[17].setGlobalObjectConstantProperties.set,setGlobalObjectMutableProperties:r[17].setGlobalObjectMutableProperties.set,setGlobalObjectEvaluators:r[17].setGlobalObjectEvaluators.set},importMeta:{}}),e[18]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{makeAlias:r[18].makeAlias.set,load:r[18].load.set},importMeta:{}}),e[19]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4),n(t,"./module-load.js",18)},liveVar:{},onceVar:{deferExports:r[19].deferExports.set,getDeferredExports:r[19].getDeferredExports.set},importMeta:{}}),e[20]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./compartment-evaluate.js",13),n(t,"./error/assert.js",4),n(t,"./module-proxy.js",19)},liveVar:{},onceVar:{makeThirdPartyModuleInstance:r[20].makeThirdPartyModuleInstance.set,makeModuleInstance:r[20].makeModuleInstance.set},importMeta:{}}),e[21]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4),n(t,"./module-instance.js",20)},liveVar:{},onceVar:{link:r[21].link.set,instantiate:r[21].instantiate.set},importMeta:{}}),e[22]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./compartment-evaluate.js",13),n(t,"./error/assert.js",4),n(t,"./global-object.js",17),n(t,"./make-safe-evaluator.js",12),n(t,"./module-link.js",21),n(t,"./module-load.js",18),n(t,"./module-proxy.js",19),n(t,"./whitelist.js",16)},liveVar:{},onceVar:{InertCompartment:r[22].InertCompartment.set,CompartmentPrototype:r[22].CompartmentPrototype.set,makeCompartmentConstructor:r[22].makeCompartmentConstructor.set},importMeta:{}}),e[23]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./whitelist.js",16)},liveVar:{},onceVar:{makeIntrinsicsCollector:r[23].makeIntrinsicsCollector.set,getGlobalIntrinsics:r[23].getGlobalIntrinsics.set},importMeta:{}}),e[24]({imports(e){new Map(e)},liveVar:{},onceVar:{minEnablements:r[24].minEnablements.set,moderateEnablements:r[24].moderateEnablements.set,severeEnablements:r[24].severeEnablements.set},importMeta:{}}),e[25]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./enablements.js",24)},liveVar:{},onceVar:{default:r[25].default.set},importMeta:{}}),e[26]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{makeEnvironmentCaptor:r[26].makeEnvironmentCaptor.set},importMeta:{}}),e[27]({imports(e){const t=new Map(e);n(t,"../commons.js",0),n(t,"./internal-types.js",1),n(t,"./types.js",3)},liveVar:{},onceVar:{makeLoggingConsoleKit:r[27].makeLoggingConsoleKit.set,makeCausalConsole:r[27].makeCausalConsole.set,filterConsole:r[27].filterConsole.set,consoleWhitelist:r[27].consoleWhitelist.set},importMeta:{}}),e[28]({imports(e){n(new Map(e),"../commons.js",0)},liveVar:{},onceVar:{makeRejectionHandlers:r[28].makeRejectionHandlers.set},importMeta:{}}),e[29]({imports(e){const t=new Map(e);n(t,"../commons.js",0),n(t,"./assert.js",4),n(t,"./console.js",27),n(t,"./internal-types.js",1),n(t,"./types.js",3),n(t,"./unhandled-rejection.js",28)},liveVar:{},onceVar:{tameConsole:r[29].tameConsole.set},importMeta:{}}),e[30]({imports(e){n(new Map(e),"../commons.js",0)},liveVar:{},onceVar:{filterFileName:r[30].filterFileName.set,shortenCallSiteString:r[30].shortenCallSiteString.set,tameV8ErrorConstructor:r[30].tameV8ErrorConstructor.set},importMeta:{}}),e[31]({imports(e){const t=new Map(e);n(t,"../commons.js",0),n(t,"../whitelist.js",16),n(t,"./tame-v8-error-constructor.js",30)},liveVar:{},onceVar:{default:r[31].default.set},importMeta:{}}),e[32]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./compartment-shim.js",22)},liveVar:{},onceVar:{getAnonymousIntrinsics:r[32].getAnonymousIntrinsics.set},importMeta:{}}),e[33]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{isTypedArray:r[33].isTypedArray.set,makeHardener:r[33].makeHardener.set},importMeta:{}}),e[34]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{default:r[34].default.set},importMeta:{}}),e[35]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{tameDomains:r[35].tameDomains.set},importMeta:{}}),e[36]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{default:r[36].default.set},importMeta:{}}),e[37]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{tameFunctionToString:r[37].tameFunctionToString.set},importMeta:{}}),e[38]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./error/assert.js",4)},liveVar:{},onceVar:{default:r[38].default.set},importMeta:{}}),e[39]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{default:r[39].default.set},importMeta:{}}),e[40]({imports(e){n(new Map(e),"./commons.js",0)},liveVar:{},onceVar:{default:r[40].default.set},importMeta:{}}),e[41]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./whitelist.js",16)},liveVar:{},onceVar:{default:r[41].default.set},importMeta:{}}),e[42]({imports(e){const t=new Map(e);n(t,"./commons.js",0),n(t,"./compartment-shim.js",22),n(t,"./enable-property-overrides.js",25),n(t,"./environment-options.js",26),n(t,"./error/assert.js",4),n(t,"./error/stringify-utils.js",2),n(t,"./error/tame-console.js",29),n(t,"./error/tame-error-constructor.js",31),n(t,"./get-anonymous-intrinsics.js",32),n(t,"./global-object.js",17),n(t,"./intrinsics.js",23),n(t,"./make-hardener.js",33),n(t,"./make-safe-evaluator.js",12),n(t,"./tame-date-constructor.js",34),n(t,"./tame-domains.js",35),n(t,"./tame-function-constructors.js",36),n(t,"./tame-function-tostring.js",37),n(t,"./tame-locale-methods.js",38),n(t,"./tame-math-object.js",39),n(t,"./tame-regexp-constructor.js",40),n(t,"./whitelist-intrinsics.js",41),n(t,"./whitelist.js",16)},liveVar:{},onceVar:{repairIntrinsics:r[42].repairIntrinsics.set,lockdown:r[42].lockdown.set},importMeta:{}}),e[43]({imports(e){const t=new Map(e);n(t,"./src/commons.js",0),n(t,"./src/compartment-shim.js",22),n(t,"./src/error/assert.js",4),n(t,"./src/intrinsics.js",23),n(t,"./src/lockdown-shim.js",42),n(t,"./src/tame-function-tostring.js",37)},liveVar:{},onceVar:{},importMeta:{}}),r[r.length-1]["*"].get()})();
|