/* @preserve THIS IS A GENERATED/BUNDLED FILE BY ROLLUP if you want to view the source visit the plugins github repository */ "use strict";var e=require("obsidian");function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var r=t(require("@codemirror/state"));function n(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i0&&u[0]<4?1:+(u[0]+u[1])),!l&&z&&(!(u=z.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=z.match(/Chrome\/(\d+)/))&&(l=+u[1]);var W=l,Y=h.String,$=!!Object.getOwnPropertySymbols&&!d((function(){var e=Symbol("symbol detection");return!Y(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&W&&W<41})),Z=$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,K=Z?function(e){return"symbol"==typeof e}:function(e){var t=U("Symbol");return M(t)&&q(t.prototype,X(e))},Q=String,J=function(e){try{return Q(e)}catch(e){return"Object"}},ee=TypeError,te=function(e){if(M(e))return e;throw new ee(J(e)+" is not a function")},re=function(e,t){var r=e[t];return I(r)?void 0:te(r)},ne=TypeError,ie=function(e,t){var r,n;if("string"===t&&M(r=e.toString)&&!P(n=g(r,e)))return n;if(M(r=e.valueOf)&&!P(n=g(r,e)))return n;if("string"!==t&&M(r=e.toString)&&!P(n=g(r,e)))return n;throw new ne("Can't convert object to primitive value")},ae=!1,oe=Object.defineProperty,se=function(e,t){try{oe(h,e,{value:t,configurable:!0,writable:!0})}catch(r){h[e]=t}return t},ue="__core-js_shared__",le=h[ue]||se(ue,{}),ce=o((function(e){(e.exports=function(e,t){return le[e]||(le[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),he=Object,de=function(e){return he(R(e))},fe=C({}.hasOwnProperty),pe=Object.hasOwn||function(e,t){return fe(de(e),t)},me=0,ge=Math.random(),ve=C(1..toString),De=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ve(++me+ge,36)},ye=h.Symbol,Ee=ce("wks"),be=Z?ye.for||ye:ye&&ye.withoutSetter||De,we=function(e){return pe(Ee,e)||(Ee[e]=$&&pe(ye,e)?ye[e]:be("Symbol."+e)),Ee[e]},_e=TypeError,Te=we("toPrimitive"),Ce=function(e,t){if(!P(e)||K(e))return e;var r,n=re(e,Te);if(n){if(void 0===t&&(t="default"),r=g(n,e,t),!P(r)||K(r))return r;throw new _e("Can't convert object to primitive value")}return void 0===t&&(t="number"),ie(e,t)},Ae=function(e){var t=Ce(e,"string");return K(t)?t:t+""},Se=h.document,xe=P(Se)&&P(Se.createElement),ke=function(e){return xe?Se.createElement(e):{}},Fe=!f&&!d((function(){return 7!==Object.defineProperty(ke("div"),"a",{get:function(){return 7}}).a})),Ne=Object.getOwnPropertyDescriptor,Ie=f?Ne:function(e,t){if(e=L(e),t=Ae(t),Fe)try{return Ne(e,t)}catch(e){}if(pe(e,t))return b(!g(E.f,e,t),e[t])},Oe={f:Ie},Re=f&&d((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Le=String,Be=TypeError,Me=function(e){if(P(e))return e;throw new Be(Le(e)+" is not an object")},Pe=TypeError,Ue=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,ze="enumerable",je="configurable",He="writable",Ge=f?Re?function(e,t,r){if(Me(e),t=Ae(t),Me(r),"function"==typeof e&&"prototype"===t&&"value"in r&&He in r&&!r[He]){var n=qe(e,t);n&&n[He]&&(e[t]=r.value,r={configurable:je in r?r[je]:n[je],enumerable:ze in r?r[ze]:n[ze],writable:!1})}return Ue(e,t,r)}:Ue:function(e,t,r){if(Me(e),t=Ae(t),Me(r),Fe)try{return Ue(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Pe("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Ve={f:Ge},We=f?function(e,t,r){return Ve.f(e,t,b(1,r))}:function(e,t,r){return e[t]=r,e},Ye=Function.prototype,$e=f&&Object.getOwnPropertyDescriptor,Ze=pe(Ye,"name"),Xe={EXISTS:Ze,PROPER:Ze&&"something"===function(){}.name,CONFIGURABLE:Ze&&(!f||f&&$e(Ye,"name").configurable)},Ke=C(Function.toString);M(le.inspectSource)||(le.inspectSource=function(e){return Ke(e)});var Qe,Je,et,tt=le.inspectSource,rt=h.WeakMap,nt=M(rt)&&/native code/.test(String(rt)),it=ce("keys"),at=function(e){return it[e]||(it[e]=De(e))},ot={},st="Object already initialized",ut=h.TypeError,lt=h.WeakMap;if(nt||le.state){var ct=le.state||(le.state=new lt);ct.get=ct.get,ct.has=ct.has,ct.set=ct.set,Qe=function(e,t){if(ct.has(e))throw new ut(st);return t.facade=e,ct.set(e,t),t},Je=function(e){return ct.get(e)||{}},et=function(e){return ct.has(e)}}else{var ht=at("state");ot[ht]=!0,Qe=function(e,t){if(pe(e,ht))throw new ut(st);return t.facade=e,We(e,ht,t),t},Je=function(e){return pe(e,ht)?e[ht]:{}},et=function(e){return pe(e,ht)}}var dt={set:Qe,get:Je,has:et,enforce:function(e){return et(e)?Je(e):Qe(e,{})},getterFor:function(e){return function(t){var r;if(!P(t)||(r=Je(t)).type!==e)throw new ut("Incompatible receiver, "+e+" required");return r}}},ft=o((function(e){var t=Xe.CONFIGURABLE,r=dt.enforce,n=dt.get,i=String,a=Object.defineProperty,o=C("".slice),s=C("".replace),u=C([].join),l=f&&!d((function(){return 8!==a((function(){}),"length",{value:8}).length})),c=String(String).split("String"),h=e.exports=function(e,n,h){"Symbol("===o(i(n),0,7)&&(n="["+s(i(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(n="get "+n),h&&h.setter&&(n="set "+n),(!pe(e,"name")||t&&e.name!==n)&&(f?a(e,"name",{value:n,configurable:!0}):e.name=n),l&&h&&pe(h,"arity")&&e.length!==h.arity&&a(e,"length",{value:h.arity});try{h&&pe(h,"constructor")&&h.constructor?f&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=r(e);return pe(d,"source")||(d.source=u(c,"string"==typeof n?n:"")),e};Function.prototype.toString=h((function(){return M(this)&&n(this).source||tt(this)}),"toString")})),pt=function(e,t,r,n){n||(n={});var i=n.enumerable,a=void 0!==n.name?n.name:t;if(M(r)&&ft(r,a,n),n.global)i?e[t]=r:se(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:Ve.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},mt=Math.ceil,gt=Math.floor,vt=Math.trunc||function(e){var t=+e;return(t>0?gt:mt)(t)},Dt=function(e){var t=+e;return t!=t||0===t?0:vt(t)},yt=Math.max,Et=Math.min,bt=function(e,t){var r=Dt(e);return r<0?yt(r+t,0):Et(r,t)},wt=Math.min,_t=function(e){return e>0?wt(Dt(e),9007199254740991):0},Tt=function(e){return _t(e.length)},Ct=function(e){return function(t,r,n){var i,a=L(t),o=Tt(a),s=bt(n,o);if(e&&r!=r){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},At={includes:Ct(!0),indexOf:Ct(!1)},St=At.indexOf,xt=C([].push),kt=function(e,t){var r,n=L(e),i=0,a=[];for(r in n)!pe(ot,r)&&pe(n,r)&&xt(a,r);for(;t.length>i;)pe(n,r=t[i++])&&(~St(a,r)||xt(a,r));return a},Ft=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nt=Ft.concat("length","prototype"),It=Object.getOwnPropertyNames||function(e){return kt(e,Nt)},Ot={f:It},Rt={f:Object.getOwnPropertySymbols},Lt=C([].concat),Bt=U("Reflect","ownKeys")||function(e){var t=Ot.f(Me(e)),r=Rt.f;return r?Lt(t,r(e)):t},Mt=function(e,t,r){for(var n=Bt(t),i=Ve.f,a=Oe.f,o=0;oo;)Ve.f(e,r=i[o++],n[r]);return e},ir={f:nr},ar=U("document","documentElement"),or="prototype",sr="script",ur=at("IE_PROTO"),lr=function(){},cr=function(e){return"<"+sr+">"+e+""},hr=function(e){e.write(cr("")),e.close();var t=e.parentWindow.Object;return e=null,t},dr=function(){try{$t=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;dr="undefined"!=typeof document?document.domain&&$t?hr($t):(t=ke("iframe"),r="java"+sr+":",t.style.display="none",ar.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(cr("document.F=Object")),e.close(),e.F):hr($t);for(var n=Ft.length;n--;)delete dr[or][Ft[n]];return dr()};ot[ur]=!0;var fr=Object.create||function(e,t){var r;return null!==e?(lr[or]=Me(e),r=new lr,lr[or]=null,r[ur]=e):r=dr(),void 0===t?r:ir.f(r,t)},pr=C([].slice),mr=Ot.f,gr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vr={f:function(e){return gr&&"Window"===x(e)?function(e){try{return mr(e)}catch(e){return pr(gr)}}(e):mr(L(e))}},Dr=function(e,t,r){return r.get&&ft(r.get,t,{getter:!0}),r.set&&ft(r.set,t,{setter:!0}),Ve.f(e,t,r)},yr={f:we},Er=h,br=Ve.f,wr=function(e){var t=Er.Symbol||(Er.Symbol={});pe(t,e)||br(t,e,{value:yr.f(e)})},_r=function(){var e=U("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=we("toPrimitive");t&&!t[n]&&pt(t,n,(function(e){return g(r,this)}),{arity:1})},Tr=Ve.f,Cr=we("toStringTag"),Ar=function(e,t,r){e&&!r&&(e=e.prototype),e&&!pe(e,Cr)&&Tr(e,Cr,{configurable:!0,value:t})},Sr=function(e){if("Function"===x(e))return C(e)},xr=Sr(Sr.bind),kr=function(e,t){return te(e),void 0===t?e:p?xr(e,t):function(){return e.apply(t,arguments)}},Fr=Array.isArray||function(e){return"Array"===x(e)},Nr=function(){},Ir=[],Or=U("Reflect","construct"),Rr=/^\s*(?:class|function)\b/,Lr=C(Rr.exec),Br=!Rr.test(Nr),Mr=function(e){if(!M(e))return!1;try{return Or(Nr,Ir,e),!0}catch(e){return!1}},Pr=function(e){if(!M(e))return!1;switch(Jt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Br||!!Lr(Rr,tt(e))}catch(e){return!0}};Pr.sham=!0;var Ur=!Or||d((function(){var e;return Mr(Mr.call)||!Mr(Object)||!Mr((function(){e=!0}))||e}))?Pr:Mr,qr=we("species"),zr=Array,jr=function(e,t){return new(function(e){var t;return Fr(e)&&(t=e.constructor,(Ur(t)&&(t===zr||Fr(t.prototype))||P(t)&&null===(t=t[qr]))&&(t=void 0)),void 0===t?zr:t}(e))(0===t?0:t)},Hr=C([].push),Gr=function(e){var t=1===e,r=2===e,n=3===e,i=4===e,a=6===e,o=7===e,s=5===e||a;return function(u,l,c,h){for(var d,f,p=de(u),m=N(p),g=Tt(m),v=kr(l,c),D=0,y=h||jr,E=t?y(u,g):r||o?y(u,0):void 0;g>D;D++)if((s||D in m)&&(f=v(d=m[D],D,p),e))if(t)E[D]=f;else if(f)switch(e){case 3:return!0;case 5:return d;case 6:return D;case 2:Hr(E,d)}else switch(e){case 4:return!1;case 7:Hr(E,d)}return a?-1:n||i?i:E}},Vr={forEach:Gr(0),map:Gr(1),filter:Gr(2),some:Gr(3),every:Gr(4),find:Gr(5),findIndex:Gr(6),filterReject:Gr(7)},Wr=Vr.forEach,Yr=at("hidden"),$r="Symbol",Zr="prototype",Xr=dt.set,Kr=dt.getterFor($r),Qr=Object[Zr],Jr=h.Symbol,en=Jr&&Jr[Zr],tn=h.RangeError,rn=h.TypeError,nn=h.QObject,an=Oe.f,on=Ve.f,sn=vr.f,un=E.f,ln=C([].push),cn=ce("symbols"),hn=ce("op-symbols"),dn=ce("wks"),fn=!nn||!nn[Zr]||!nn[Zr].findChild,pn=function(e,t,r){var n=an(Qr,t);n&&delete Qr[t],on(e,t,r),n&&e!==Qr&&on(Qr,t,n)},mn=f&&d((function(){return 7!==fr(on({},"a",{get:function(){return on(this,"a",{value:7}).a}})).a}))?pn:on,gn=function(e,t){var r=cn[e]=fr(en);return Xr(r,{type:$r,tag:e,description:t}),f||(r.description=t),r},vn=function(e,t,r){e===Qr&&vn(hn,t,r),Me(e);var n=Ae(t);return Me(r),pe(cn,n)?(r.enumerable?(pe(e,Yr)&&e[Yr][n]&&(e[Yr][n]=!1),r=fr(r,{enumerable:b(0,!1)})):(pe(e,Yr)||on(e,Yr,b(1,fr(null))),e[Yr][n]=!0),mn(e,n,r)):on(e,n,r)},Dn=function(e,t){Me(e);var r=L(t),n=rr(r).concat(wn(r));return Wr(n,(function(t){f&&!g(yn,r,t)||vn(e,t,r[t])})),e},yn=function(e){var t=Ae(e),r=g(un,this,t);return!(this===Qr&&pe(cn,t)&&!pe(hn,t))&&(!(r||!pe(this,t)||!pe(cn,t)||pe(this,Yr)&&this[Yr][t])||r)},En=function(e,t){var r=L(e),n=Ae(t);if(r!==Qr||!pe(cn,n)||pe(hn,n)){var i=an(r,n);return!i||!pe(cn,n)||pe(r,Yr)&&r[Yr][n]||(i.enumerable=!0),i}},bn=function(e){var t=sn(L(e)),r=[];return Wr(t,(function(e){pe(cn,e)||pe(ot,e)||ln(r,e)})),r},wn=function(e){var t=e===Qr,r=sn(t?hn:L(e)),n=[];return Wr(r,(function(e){!pe(cn,e)||t&&!pe(Qr,e)||ln(n,cn[e])})),n};$||(Jr=function(){if(q(en,this))throw new rn("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?tr(arguments[0]):void 0,t=De(e),r=function(e){var n=void 0===this?h:this;n===Qr&&g(r,hn,e),pe(n,Yr)&&pe(n[Yr],t)&&(n[Yr][t]=!1);var i=b(1,e);try{mn(n,t,i)}catch(e){if(!(e instanceof tn))throw e;pn(n,t,i)}};return f&&fn&&mn(Qr,t,{configurable:!0,set:r}),gn(t,e)},en=Jr[Zr],pt(en,"toString",(function(){return Kr(this).tag})),pt(Jr,"withoutSetter",(function(e){return gn(De(e),e)})),E.f=yn,Ve.f=vn,ir.f=Dn,Oe.f=En,Ot.f=vr.f=bn,Rt.f=wn,yr.f=function(e){return gn(we(e),e)},f&&(Dr(en,"description",{configurable:!0,get:function(){return Kr(this).description}}),pt(Qr,"propertyIsEnumerable",yn,{unsafe:!0}))),Wt({global:!0,constructor:!0,wrap:!0,forced:!$,sham:!$},{Symbol:Jr}),Wr(rr(dn),(function(e){wr(e)})),Wt({target:$r,stat:!0,forced:!$},{useSetter:function(){fn=!0},useSimple:function(){fn=!1}}),Wt({target:"Object",stat:!0,forced:!$,sham:!f},{create:function(e,t){return void 0===t?fr(e):Dn(fr(e),t)},defineProperty:vn,defineProperties:Dn,getOwnPropertyDescriptor:En}),Wt({target:"Object",stat:!0,forced:!$},{getOwnPropertyNames:bn}),_r(),Ar(Jr,$r),ot[Yr]=!0;var _n=$&&!!Symbol.for&&!!Symbol.keyFor,Tn=ce("string-to-symbol-registry"),Cn=ce("symbol-to-string-registry");Wt({target:"Symbol",stat:!0,forced:!_n},{for:function(e){var t=tr(e);if(pe(Tn,t))return Tn[t];var r=U("Symbol")(t);return Tn[t]=r,Cn[r]=t,r}});var An=ce("symbol-to-string-registry");Wt({target:"Symbol",stat:!0,forced:!_n},{keyFor:function(e){if(!K(e))throw new TypeError(J(e)+" is not a symbol");if(pe(An,e))return An[e]}});var Sn=Function.prototype,xn=Sn.apply,kn=Sn.call,Fn="object"==typeof Reflect&&Reflect.apply||(p?kn.bind(xn):function(){return kn.apply(xn,arguments)}),Nn=C([].push),In=function(e){if(M(e))return e;if(Fr(e)){for(var t=e.length,r=[],n=0;na&&pi(i,arguments[a]),i}));h.prototype=l,"Error"!==s?li?li(h,c):Mt(h,c,{name:!0}):f&&i in u&&(hi(h,u,i),hi(h,u,"prepareStackTrace")),Mt(h,u);try{l.name!==s&&We(l,"name",s),l.constructor=h}catch(e){}return h}},Ci="WebAssembly",Ai=h[Ci],Si=7!==new Error("e",{cause:7}).cause,xi=function(e,t){var r={};r[e]=Ti(e,t,Si),Wt({global:!0,constructor:!0,arity:1,forced:Si},r)},ki=function(e,t){if(Ai&&Ai[e]){var r={};r[e]=Ti(Ci+"."+e,t,Si),Wt({target:Ci,stat:!0,constructor:!0,arity:1,forced:Si},r)}};xi("Error",(function(e){return function(t){return Fn(e,this,arguments)}})),xi("EvalError",(function(e){return function(t){return Fn(e,this,arguments)}})),xi("RangeError",(function(e){return function(t){return Fn(e,this,arguments)}})),xi("ReferenceError",(function(e){return function(t){return Fn(e,this,arguments)}})),xi("SyntaxError",(function(e){return function(t){return Fn(e,this,arguments)}})),xi("TypeError",(function(e){return function(t){return Fn(e,this,arguments)}})),xi("URIError",(function(e){return function(t){return Fn(e,this,arguments)}})),ki("CompileError",(function(e){return function(t){return Fn(e,this,arguments)}})),ki("LinkError",(function(e){return function(t){return Fn(e,this,arguments)}})),ki("RuntimeError",(function(e){return function(t){return Fn(e,this,arguments)}}));var Fi=Error.prototype.toString,Ni=d((function(){if(f){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==Fi.call(e))return!0}return"2: 1"!==Fi.call({message:1,name:2})||"Error"!==Fi.call({})}))?function(){var e=Me(this),t=fi(e.name,"Error"),r=fi(e.message);return t?r?t+": "+r:t:r}:Fi,Ii=Error.prototype;Ii.toString!==Ni&&pt(Ii,"toString",Ni);var Oi=!d((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ri=at("IE_PROTO"),Li=Object,Bi=Li.prototype,Mi=Oi?Li.getPrototypeOf:function(e){var t=de(e);if(pe(t,Ri))return t[Ri];var r=t.constructor;return M(r)&&t instanceof r?r.prototype:t instanceof Li?Bi:null},Pi={},Ui=we("iterator"),qi=Array.prototype,zi=function(e){return void 0!==e&&(Pi.Array===e||qi[Ui]===e)},ji=we("iterator"),Hi=function(e){if(!I(e))return re(e,ji)||re(e,"@@iterator")||Pi[Jt(e)]},Gi=TypeError,Vi=function(e,t){var r=arguments.length<2?Hi(e):t;if(te(r))return Me(g(r,e));throw new Gi(J(e)+" is not iterable")},Wi=function(e,t,r){var n,i;Me(e);try{if(!(n=re(e,"return"))){if("throw"===t)throw r;return r}n=g(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Me(n),r},Yi=TypeError,$i=function(e,t){this.stopped=e,this.result=t},Zi=$i.prototype,Xi=function(e,t,r){var n,i,a,o,s,u,l,c=r&&r.that,h=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),f=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=kr(t,c),v=function(e){return n&&Wi(n,"normal",e),new $i(!0,e)},D=function(e){return h?(Me(e),p?m(e[0],e[1],v):m(e[0],e[1])):p?m(e,v):m(e)};if(d)n=e.iterator;else if(f)n=e;else{if(!(i=Hi(e)))throw new Yi(J(e)+" is not iterable");if(zi(i)){for(a=0,o=Tt(e);o>a;a++)if((s=D(e[a]))&&q(Zi,s))return s;return new $i(!1)}n=Vi(e,i)}for(u=d?e.next:n.next;!(l=g(u,n)).done;){try{s=D(l.value)}catch(e){Wi(n,"throw",e)}if("object"==typeof s&&s&&q(Zi,s))return s}return new $i(!1)},Ki=we("toStringTag"),Qi=Error,Ji=[].push,ea=function(e,t){var r,n=q(ta,this);li?r=li(new Qi,n?Mi(this):ta):(r=n?this:fr(ta),We(r,Ki,"Error")),void 0!==t&&We(r,"message",fi(t)),_i(r,ea,r.stack,1),arguments.length>2&&pi(r,arguments[2]);var i=[];return Xi(e,Ji,{that:i}),We(r,"errors",i),r};li?li(ea,Qi):Mt(ea,Qi,{name:!0});var ta=ea.prototype=fr(Qi.prototype,{constructor:b(1,ea),message:b(1,""),name:b(1,"AggregateError")});Wt({global:!0,constructor:!0,arity:2},{AggregateError:ea});var ra="AggregateError",na=U(ra),ia=!d((function(){return 1!==na([1]).errors[0]}))&&d((function(){return 7!==na([1],ra,{cause:7}).cause}));Wt({global:!0,constructor:!0,arity:2,forced:ia},{AggregateError:Ti(ra,(function(e){return function(t,r){return Fn(e,this,arguments)}}),ia,!0)});var aa=Ve.f,oa=we("unscopables"),sa=Array.prototype;void 0===sa[oa]&&aa(sa,oa,{configurable:!0,value:fr(null)});var ua=function(e){sa[oa][e]=!0};Wt({target:"Array",proto:!0},{at:function(e){var t=de(this),r=Tt(t),n=Dt(e),i=n>=0?n:r+n;return i<0||i>=r?void 0:t[i]}}),ua("at");var la=TypeError,ca=function(e){if(e>9007199254740991)throw la("Maximum allowed index exceeded");return e},ha=function(e,t,r){var n=Ae(t);n in e?Ve.f(e,n,b(0,r)):e[n]=r},da=we("species"),fa=function(e){return W>=51||!d((function(){var t=[];return(t.constructor={})[da]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},pa=we("isConcatSpreadable"),ma=W>=51||!d((function(){var e=[];return e[pa]=!1,e.concat()[0]!==e})),ga=function(e){if(!P(e))return!1;var t=e[pa];return void 0!==t?!!t:Fr(e)},va=!ma||!fa("concat");Wt({target:"Array",proto:!0,arity:1,forced:va},{concat:function(e){var t,r,n,i,a,o=de(this),s=jr(o,0),u=0;for(t=-1,n=arguments.length;t2?arguments[2]:void 0,s=Ea((void 0===o?n:bt(o,n))-a,n-i),u=1;for(a0;)a in r?r[i]=r[a]:ya(r,i),i+=u,a+=u;return r};Wt({target:"Array",proto:!0},{copyWithin:ba}),ua("copyWithin");var wa=function(e,t){var r=[][e];return!!r&&d((function(){r.call(null,t||function(){return 1},1)}))},_a=Vr.every,Ta=wa("every");Wt({target:"Array",proto:!0,forced:!Ta},{every:function(e){return _a(this,e,arguments.length>1?arguments[1]:void 0)}});var Ca=function(e){for(var t=de(this),r=Tt(t),n=arguments.length,i=bt(n>1?arguments[1]:void 0,r),a=n>2?arguments[2]:void 0,o=void 0===a?r:bt(a,r);o>i;)t[i++]=e;return t};Wt({target:"Array",proto:!0},{fill:Ca}),ua("fill");var Aa=Vr.filter,Sa=fa("filter");Wt({target:"Array",proto:!0,forced:!Sa},{filter:function(e){return Aa(this,e,arguments.length>1?arguments[1]:void 0)}});var xa=Vr.find,ka="find",Fa=!0;ka in[]&&Array(1)[ka]((function(){Fa=!1})),Wt({target:"Array",proto:!0,forced:Fa},{find:function(e){return xa(this,e,arguments.length>1?arguments[1]:void 0)}}),ua(ka);var Na=Vr.findIndex,Ia="findIndex",Oa=!0;Ia in[]&&Array(1)[Ia]((function(){Oa=!1})),Wt({target:"Array",proto:!0,forced:Oa},{findIndex:function(e){return Na(this,e,arguments.length>1?arguments[1]:void 0)}}),ua(Ia);var Ra=function(e){var t=1===e;return function(r,n,i){for(var a,o=de(r),s=N(o),u=Tt(s),l=kr(n,i);u-- >0;)if(l(a=s[u],u,o))switch(e){case 0:return a;case 1:return u}return t?-1:void 0}},La={findLast:Ra(0),findLastIndex:Ra(1)},Ba=La.findLast;Wt({target:"Array",proto:!0},{findLast:function(e){return Ba(this,e,arguments.length>1?arguments[1]:void 0)}}),ua("findLast");var Ma=La.findLastIndex;Wt({target:"Array",proto:!0},{findLastIndex:function(e){return Ma(this,e,arguments.length>1?arguments[1]:void 0)}}),ua("findLastIndex");var Pa=function(e,t,r,n,i,a,o,s){for(var u,l,c=i,h=0,d=!!o&&kr(o,s);h0&&Fr(u)?(l=Tt(u),c=Pa(e,t,u,l,c,a-1)-1):(ca(c+1),e[c]=u),c++),h++;return c},Ua=Pa;Wt({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=de(this),r=Tt(t),n=jr(t,0);return n.length=Ua(n,t,t,r,0,void 0===e?1:Dt(e)),n}}),Wt({target:"Array",proto:!0},{flatMap:function(e){var t,r=de(this),n=Tt(r);return te(e),(t=jr(r,0)).length=Ua(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var qa=Vr.forEach,za=wa("forEach")?[].forEach:function(e){return qa(this,e,arguments.length>1?arguments[1]:void 0)};Wt({target:"Array",proto:!0,forced:[].forEach!==za},{forEach:za});var ja=function(e,t,r,n){try{return n?t(Me(r)[0],r[1]):t(r)}catch(t){Wi(e,"throw",t)}},Ha=Array,Ga=function(e){var t=de(e),r=Ur(this),n=arguments.length,i=n>1?arguments[1]:void 0,a=void 0!==i;a&&(i=kr(i,n>2?arguments[2]:void 0));var o,s,u,l,c,h,d=Hi(t),f=0;if(!d||this===Ha&&zi(d))for(o=Tt(t),s=r?new this(o):Ha(o);o>f;f++)h=a?i(t[f],f):t[f],ha(s,f,h);else for(c=(l=Vi(t,d)).next,s=r?new this:[];!(u=g(c,l)).done;f++)h=a?ja(l,i,[u.value,f],!0):u.value,ha(s,f,h);return s.length=f,s},Va=we("iterator"),Wa=!1;try{var Ya=0,$a={next:function(){return{done:!!Ya++}},return:function(){Wa=!0}};$a[Va]=function(){return this},Array.from($a,(function(){throw 2}))}catch(jre){}var Za=function(e,t){try{if(!t&&!Wa)return!1}catch(e){return!1}var r=!1;try{var n={};n[Va]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Xa=!Za((function(e){Array.from(e)}));Wt({target:"Array",stat:!0,forced:Xa},{from:Ga});var Ka=At.includes,Qa=d((function(){return!Array(1).includes()}));Wt({target:"Array",proto:!0,forced:Qa},{includes:function(e){return Ka(this,e,arguments.length>1?arguments[1]:void 0)}}),ua("includes");var Ja=At.indexOf,eo=Sr([].indexOf),to=!!eo&&1/eo([1],1,-0)<0,ro=to||!wa("indexOf");Wt({target:"Array",proto:!0,forced:ro},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return to?eo(this,e,t)||0:Ja(this,e,t)}}),Wt({target:"Array",stat:!0},{isArray:Fr});var no,io,ao,oo=we("iterator"),so=!1;[].keys&&("next"in(ao=[].keys())?(io=Mi(Mi(ao)))!==Object.prototype&&(no=io):so=!0);var uo=!P(no)||d((function(){var e={};return no[oo].call(e)!==e}));uo&&(no={}),M(no[oo])||pt(no,oo,(function(){return this}));var lo={IteratorPrototype:no,BUGGY_SAFARI_ITERATORS:so},co=lo.IteratorPrototype,ho=function(){return this},fo=function(e,t,r,n){var i=t+" Iterator";return e.prototype=fr(co,{next:b(+!n,r)}),Ar(e,i,!1),Pi[i]=ho,e},po=Xe.PROPER,mo=Xe.CONFIGURABLE,go=lo.IteratorPrototype,vo=lo.BUGGY_SAFARI_ITERATORS,Do=we("iterator"),yo="keys",Eo="values",bo="entries",wo=function(){return this},_o=function(e,t,r,n,i,a,o){fo(r,t,n);var s,u,l,c=function(e){if(e===i&&m)return m;if(!vo&&e&&e in f)return f[e];switch(e){case yo:case Eo:case bo:return function(){return new r(this,e)}}return function(){return new r(this)}},h=t+" Iterator",d=!1,f=e.prototype,p=f[Do]||f["@@iterator"]||i&&f[i],m=!vo&&p||c(i),v="Array"===t&&f.entries||p;if(v&&(s=Mi(v.call(new e)))!==Object.prototype&&s.next&&(Mi(s)!==go&&(li?li(s,go):M(s[Do])||pt(s,Do,wo)),Ar(s,h,!0)),po&&i===Eo&&p&&p.name!==Eo&&(mo?We(f,"name",Eo):(d=!0,m=function(){return g(p,this)})),i)if(u={values:c(Eo),keys:a?m:c(yo),entries:c(bo)},o)for(l in u)(vo||d||!(l in f))&&pt(f,l,u[l]);else Wt({target:t,proto:!0,forced:vo||d},u);return f[Do]!==m&&pt(f,Do,m,{name:i}),Pi[t]=m,u},To=function(e,t){return{value:e,done:t}},Co=Ve.f,Ao="Array Iterator",So=dt.set,xo=dt.getterFor(Ao),ko=_o(Array,"Array",(function(e,t){So(this,{type:Ao,target:L(e),index:0,kind:t})}),(function(){var e=xo(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,To(void 0,!0);switch(e.kind){case"keys":return To(r,!1);case"values":return To(t[r],!1)}return To([r,t[r]],!1)}),"values"),Fo=Pi.Arguments=Pi.Array;if(ua("keys"),ua("values"),ua("entries"),f&&"values"!==Fo.name)try{Co(Fo,"name",{value:"values"})}catch(Hre){}var No=C([].join),Io=N!==Object||!wa("join",",");Wt({target:"Array",proto:!0,forced:Io},{join:function(e){return No(L(this),void 0===e?",":e)}});var Oo=Math.min,Ro=[].lastIndexOf,Lo=!!Ro&&1/[1].lastIndexOf(1,-0)<0,Bo=wa("lastIndexOf"),Mo=Lo||!Bo?function(e){if(Lo)return Fn(Ro,this,arguments)||0;var t=L(this),r=Tt(t),n=r-1;for(arguments.length>1&&(n=Oo(n,Dt(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:Ro;Wt({target:"Array",proto:!0,forced:Mo!==[].lastIndexOf},{lastIndexOf:Mo});var Po=Vr.map,Uo=fa("map");Wt({target:"Array",proto:!0,forced:!Uo},{map:function(e){return Po(this,e,arguments.length>1?arguments[1]:void 0)}});var qo=Array,zo=d((function(){function e(){}return!(qo.of.call(e)instanceof e)}));Wt({target:"Array",stat:!0,forced:zo},{of:function(){for(var e=0,t=arguments.length,r=new(Ur(this)?this:qo)(t);t>e;)ha(r,e,arguments[e++]);return r.length=t,r}});var jo=TypeError,Ho=Object.getOwnPropertyDescriptor,Go=f&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(Fr(e)&&!Ho(e,"length").writable)throw new jo("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Vo=d((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();Wt({target:"Array",proto:!0,arity:1,forced:Vo},{push:function(e){var t=de(this),r=Tt(t),n=arguments.length;ca(r+n);for(var i=0;i=0:s>u;u+=l)u in o&&(i=r(i,o[u],u,a));return i}},$o={left:Yo(!1),right:Yo(!0)},Zo="process"===x(h.process),Xo=$o.left,Ko=!Zo&&W>79&&W<83||!wa("reduce");Wt({target:"Array",proto:!0,forced:Ko},{reduce:function(e){var t=arguments.length;return Xo(this,e,t,t>1?arguments[1]:void 0)}});var Qo=$o.right,Jo=!Zo&&W>79&&W<83||!wa("reduceRight");Wt({target:"Array",proto:!0,forced:Jo},{reduceRight:function(e){return Qo(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var es=C([].reverse),ts=[1,2];Wt({target:"Array",proto:!0,forced:String(ts)===String(ts.reverse())},{reverse:function(){return Fr(this)&&(this.length=this.length),es(this)}});var rs=fa("slice"),ns=we("species"),is=Array,as=Math.max;Wt({target:"Array",proto:!0,forced:!rs},{slice:function(e,t){var r,n,i,a=L(this),o=Tt(a),s=bt(e,o),u=bt(void 0===t?o:t,o);if(Fr(a)&&(r=a.constructor,(Ur(r)&&(r===is||Fr(r.prototype))||P(r)&&null===(r=r[ns]))&&(r=void 0),r===is||void 0===r))return pr(a,s,u);for(n=new(void 0===r?is:r)(as(u-s,0)),i=0;s1?arguments[1]:void 0)}});var us=Math.floor,ls=function(e,t){var r=e.length;if(r<8)for(var n,i,a=1;a0;)e[i]=e[--i];i!==a++&&(e[i]=n)}else for(var o=us(r/2),s=ls(pr(e,0,o),t),u=ls(pr(e,o),t),l=s.length,c=u.length,h=0,d=0;h3)){if(fs)return!0;if(ms)return ms<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)gs.push({k:t+n,v:r})}for(gs.sort((function(e,t){return t.v-e.v})),n=0;ntr(r)?1:-1}}(e)),r=Tt(i),n=0;nl-n+r;a--)ya(u,a-1)}else if(r>n)for(a=l-n;a>c;a--)s=a+r-1,(o=a+n-1)in u?u[s]=u[o]:ya(u,s);for(a=0;a2?r:Tt(t),a=new e(i);i>n;)a[n]=t[n++];return a},Ns=function(e,t){var r=h[e],n=r&&r.prototype;return n&&n[t]},Is=Array,Os=C(Ns("Array","sort"));Wt({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&te(e);var t=L(this),r=Fs(Is,t);return Os(r,e)}}),ua("toSorted");var Rs=Array,Ls=Math.max,Bs=Math.min;Wt({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,i,a,o=L(this),s=Tt(o),u=bt(e,s),l=arguments.length,c=0;for(0===l?r=n=0:1===l?(r=0,n=s-u):(r=l-2,n=Bs(Ls(Dt(t),0),s-u)),i=ca(s+r-n),a=Rs(i);c=i||o<0)throw new Ps("Incorrect index");for(var s=new t(i),u=0;ur||u!=u?o*(1/0):o*u},Qs=Math.fround||function(e){return Ks(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},Js=Array,eu=Math.abs,tu=Math.pow,ru=Math.floor,nu=Math.log,iu=Math.LN2,au=function(e,t,r){var n,i,a,o=Js(r),s=8*r-t-1,u=(1<>1,c=23===t?tu(2,-24)-tu(2,-77):0,h=e<0||0===e&&1/e<0?1:0,d=0;for((e=eu(e))!=e||e===1/0?(i=e!=e?1:0,n=u):(n=ru(nu(e)/iu),e*(a=tu(2,-n))<1&&(n--,a*=2),(e+=n+l>=1?c/a:c*tu(2,1-l))*a>=2&&(n++,a/=2),n+l>=u?(i=0,n=u):n+l>=1?(i=(e*a-1)*tu(2,t),n+=l):(i=e*tu(2,l-1)*tu(2,t),n=0));t>=8;)o[d++]=255&i,i/=256,t-=8;for(n=n<0;)o[d++]=255&n,n/=256,s-=8;return o[--d]|=128*h,o},ou=function(e,t){var r,n=e.length,i=8*n-t-1,a=(1<>1,s=i-7,u=n-1,l=e[u--],c=127&l;for(l>>=7;s>0;)c=256*c+e[u--],s-=8;for(r=c&(1<<-s)-1,c>>=-s,s+=t;s>0;)r=256*r+e[u--],s-=8;if(0===c)c=1-o;else{if(c===a)return r?NaN:l?-1/0:1/0;r+=tu(2,t),c-=o}return(l?-1:1)*r*tu(2,c-t)},su=Xe.PROPER,uu=Xe.CONFIGURABLE,lu="ArrayBuffer",cu="DataView",hu="prototype",du="Wrong index",fu=dt.getterFor(lu),pu=dt.getterFor(cu),mu=dt.set,gu=h[lu],vu=gu,Du=vu&&vu[hu],yu=h[cu],Eu=yu&&yu[hu],bu=Object.prototype,wu=h.Array,_u=h.RangeError,Tu=C(Ca),Cu=C([].reverse),Au=au,Su=ou,xu=function(e){return[255&e]},ku=function(e){return[255&e,e>>8&255]},Fu=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Nu=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Iu=function(e){return Au(Qs(e),23,4)},Ou=function(e){return Au(e,52,8)},Ru=function(e,t,r){Dr(e[hu],t,{configurable:!0,get:function(){return r(this)[t]}})},Lu=function(e,t,r,n){var i=pu(e),a=Ws(r),o=!!n;if(a+t>i.byteLength)throw new _u(du);var s=i.bytes,u=a+i.byteOffset,l=pr(s,u,u+t);return o?l:Cu(l)},Bu=function(e,t,r,n,i,a){var o=pu(e),s=Ws(r),u=n(+i),l=!!a;if(s+t>o.byteLength)throw new _u(du);for(var c=o.bytes,h=s+o.byteOffset,d=0;d>24)},setUint8:function(e,t){Uu(this,e,t<<24>>24)}},{unsafe:!0})}else vu=function(e){Gs(this,Du);var t=Ws(e);mu(this,{type:lu,bytes:Tu(wu(t),0),byteLength:t}),f||(this.byteLength=t,this.detached=!1)},Du=vu[hu],yu=function(e,t,r){Gs(this,Eu),Gs(e,Du);var n=fu(e),i=n.byteLength,a=Dt(t);if(a<0||a>i)throw new _u("Wrong offset");if(a+(r=void 0===r?i-a:_t(r))>i)throw new _u("Wrong length");mu(this,{type:cu,buffer:e,byteLength:r,byteOffset:a,bytes:n.bytes}),f||(this.buffer=e,this.byteLength=r,this.byteOffset=a)},Eu=yu[hu],f&&(Ru(vu,"byteLength",fu),Ru(yu,"buffer",pu),Ru(yu,"byteLength",pu),Ru(yu,"byteOffset",pu)),js(Eu,{getInt8:function(e){return Lu(this,1,e)[0]<<24>>24},getUint8:function(e){return Lu(this,1,e)[0]},getInt16:function(e){var t=Lu(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Lu(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Nu(Lu(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Nu(Lu(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return Su(Lu(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return Su(Lu(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){Bu(this,1,e,xu,t)},setUint8:function(e,t){Bu(this,1,e,xu,t)},setInt16:function(e,t){Bu(this,2,e,ku,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){Bu(this,2,e,ku,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){Bu(this,4,e,Fu,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){Bu(this,4,e,Fu,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){Bu(this,4,e,Iu,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){Bu(this,8,e,Ou,t,arguments.length>2&&arguments[2])}});Ar(vu,lu),Ar(yu,cu);var qu={ArrayBuffer:vu,DataView:yu},zu="ArrayBuffer",ju=qu[zu],Hu=h[zu];Wt({global:!0,constructor:!0,forced:Hu!==ju},{ArrayBuffer:ju}),Ts(zu);var Gu,Vu,Wu,Yu=dt.enforce,$u=dt.get,Zu=h.Int8Array,Xu=Zu&&Zu.prototype,Ku=h.Uint8ClampedArray,Qu=Ku&&Ku.prototype,Ju=Zu&&Mi(Zu),el=Xu&&Mi(Xu),tl=Object.prototype,rl=h.TypeError,nl=we("toStringTag"),il=De("TYPED_ARRAY_TAG"),al="TypedArrayConstructor",ol=zs&&!!li&&"Opera"!==Jt(h.opera),sl=!1,ul={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ll={BigInt64Array:8,BigUint64Array:8},cl=function(e){var t=Mi(e);if(P(t)){var r=$u(t);return r&&pe(r,al)?r[al]:cl(t)}},hl=function(e){if(!P(e))return!1;var t=Jt(e);return pe(ul,t)||pe(ll,t)};for(Gu in ul)(Wu=(Vu=h[Gu])&&Vu.prototype)?Yu(Wu)[al]=Vu:ol=!1;for(Gu in ll)(Wu=(Vu=h[Gu])&&Vu.prototype)&&(Yu(Wu)[al]=Vu);if((!ol||!M(Ju)||Ju===Function.prototype)&&(Ju=function(){throw new rl("Incorrect invocation")},ol))for(Gu in ul)h[Gu]&&li(h[Gu],Ju);if((!ol||!el||el===tl)&&(el=Ju.prototype,ol))for(Gu in ul)h[Gu]&&li(h[Gu].prototype,el);if(ol&&Mi(Qu)!==el&&li(Qu,el),f&&!pe(el,nl))for(Gu in sl=!0,Dr(el,nl,{configurable:!0,get:function(){return P(this)?this[il]:void 0}}),ul)h[Gu]&&We(h[Gu],il,Gu);var dl={NATIVE_ARRAY_BUFFER_VIEWS:ol,TYPED_ARRAY_TAG:sl&&il,aTypedArray:function(e){if(hl(e))return e;throw new rl("Target is not a typed array")},aTypedArrayConstructor:function(e){if(M(e)&&(!li||q(Ju,e)))return e;throw new rl(J(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(f){if(r)for(var i in ul){var a=h[i];if(a&&pe(a.prototype,e))try{delete a.prototype[e]}catch(r){try{a.prototype[e]=t}catch(e){}}}el[e]&&!r||pt(el,e,r?t:ol&&Xu[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(f){if(li){if(r)for(n in ul)if((i=h[n])&&pe(i,e))try{delete i[e]}catch(e){}if(Ju[e]&&!r)return;try{return pt(Ju,e,r?t:ol&&Ju[e]||t)}catch(e){}}for(n in ul)!(i=h[n])||i[e]&&!r||pt(i,e,t)}},getTypedArrayConstructor:cl,isView:function(e){if(!P(e))return!1;var t=Jt(e);return"DataView"===t||pe(ul,t)||pe(ll,t)},isTypedArray:hl,TypedArray:Ju,TypedArrayPrototype:el};Wt({target:"ArrayBuffer",stat:!0,forced:!dl.NATIVE_ARRAY_BUFFER_VIEWS},{isView:dl.isView});var fl=TypeError,pl=function(e){if(Ur(e))return e;throw new fl(J(e)+" is not a constructor")},ml=we("species"),gl=function(e,t){var r,n=Me(e).constructor;return void 0===n||I(r=Me(n)[ml])?t:pl(r)},vl=qu.ArrayBuffer,Dl=qu.DataView,yl=Dl.prototype,El=Sr(vl.prototype.slice),bl=Sr(yl.getUint8),wl=Sr(yl.setUint8),_l=d((function(){return!new vl(2).slice(1,void 0).byteLength}));Wt({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:_l},{slice:function(e,t){if(El&&void 0===t)return El(Me(this),e);for(var r=Me(this).byteLength,n=bt(e,r),i=bt(void 0===t?r:t,r),a=new(gl(this,vl))(_t(i-n)),o=new Dl(this),s=new Dl(a),u=0;n=0&&t<=99?t+1900:t)}}),Wt({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString});var Nl=RangeError,Il=function(e){var t=tr(R(this)),r="",n=Dt(e);if(n<0||n===1/0)throw new Nl("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r},Ol=C(Il),Rl=C("".slice),Ll=Math.ceil,Bl=function(e){return function(t,r,n){var i,a,o=tr(R(t)),s=_t(r),u=o.length,l=void 0===n?" ":tr(n);return s<=u||""===l?o:((a=Ol(l,Ll((i=s-u)/l.length))).length>i&&(a=Rl(a,0,i)),e?o+a:a+o)}},Ml={start:Bl(!1),end:Bl(!0)},Pl=Ml.start,Ul=RangeError,ql=isFinite,zl=Math.abs,jl=Date.prototype,Hl=jl.toISOString,Gl=C(jl.getTime),Vl=C(jl.getUTCDate),Wl=C(jl.getUTCFullYear),Yl=C(jl.getUTCHours),$l=C(jl.getUTCMilliseconds),Zl=C(jl.getUTCMinutes),Xl=C(jl.getUTCMonth),Kl=C(jl.getUTCSeconds),Ql=d((function(){return"0385-07-25T07:06:39.999Z"!==Hl.call(new Date(-50000000000001))}))||!d((function(){Hl.call(new Date(NaN))}))?function(){if(!ql(Gl(this)))throw new Ul("Invalid time value");var e=this,t=Wl(e),r=$l(e),n=t<0?"-":t>9999?"+":"";return n+Pl(zl(t),n?6:4,0)+"-"+Pl(Xl(e)+1,2,0)+"-"+Pl(Vl(e),2,0)+"T"+Pl(Yl(e),2,0)+":"+Pl(Zl(e),2,0)+":"+Pl(Kl(e),2,0)+"."+Pl(r,3,0)+"Z"}:Hl;Wt({target:"Date",proto:!0,forced:Date.prototype.toISOString!==Ql},{toISOString:Ql});var Jl=d((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));Wt({target:"Date",proto:!0,arity:1,forced:Jl},{toJSON:function(e){var t=de(this),r=Ce(t,"number");return"number"!=typeof r||isFinite(r)?t.toISOString():null}});var ec=TypeError,tc=we("toPrimitive"),rc=Date.prototype;pe(rc,tc)||pt(rc,tc,(function(e){if(Me(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new ec("Incorrect hint");return ie(this,e)}));var nc=Date.prototype,ic="Invalid Date",ac="toString",oc=C(nc[ac]),sc=C(nc.getTime);String(new Date(NaN))!==ic&&pt(nc,ac,(function(){var e=sc(this);return e==e?oc(this):ic}));var uc=C("".charAt),lc=C("".charCodeAt),cc=C(/./.exec),hc=C(1..toString),dc=C("".toUpperCase),fc=/[\w*+\-./@]/,pc=function(e,t){for(var r=hc(e,16);r.length1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),js(a,r?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),f&&Dr(a,"size",{configurable:!0,get:function(){return o(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Lc(t),a=Lc(n);_o(e,t,(function(e,t){Rc(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?To("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,To(void 0,!0))}),r?"entries":"values",!r,!0),Ts(t)}};Ic("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Bc);var Mc=Map.prototype,Pc={Map:Map,set:C(Mc.set),get:C(Mc.get),has:C(Mc.has),remove:C(Mc.delete),proto:Mc},Uc=Pc.Map,qc=Pc.has,zc=Pc.get,jc=Pc.set,Hc=C([].push);Wt({target:"Map",stat:!0,forced:ae},{groupBy:function(e,t){R(e),te(t);var r=new Uc,n=0;return Xi(e,(function(e){var i=t(e,n++);qc(r,i)?Hc(zc(r,i),e):jc(r,i,[e])})),r}});var Gc=Math.log,Vc=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:Gc(1+t)},Wc=Math.acosh,Yc=Math.log,$c=Math.sqrt,Zc=Math.LN2,Xc=!Wc||710!==Math.floor(Wc(Number.MAX_VALUE))||Wc(1/0)!==1/0;Wt({target:"Math",stat:!0,forced:Xc},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?Yc(t)+Zc:Vc(t-1+$c(t-1)*$c(t+1))}});var Kc=Math.asinh,Qc=Math.log,Jc=Math.sqrt;var eh=!(Kc&&1/Kc(0)>0);Wt({target:"Math",stat:!0,forced:eh},{asinh:function e(t){var r=+t;return isFinite(r)&&0!==r?r<0?-e(-r):Qc(r+Jc(r*r+1)):r}});var th=Math.atanh,rh=Math.log,nh=!(th&&1/th(-0)<0);Wt({target:"Math",stat:!0,forced:nh},{atanh:function(e){var t=+e;return 0===t?t:rh((1+t)/(1-t))/2}});var ih=Math.abs,ah=Math.pow;Wt({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return Ys(t)*ah(ih(t),1/3)}});var oh=Math.floor,sh=Math.log,uh=Math.LOG2E;Wt({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-oh(sh(t+.5)*uh):32}});var lh=Math.expm1,ch=Math.exp,hh=!lh||lh(10)>22025.465794806718||lh(10)<22025.465794806718||-2e-17!==lh(-2e-17)?function(e){var t=+e;return 0===t?t:t>-1e-6&&t<1e-6?t+t*t/2:ch(t)-1}:lh,dh=Math.cosh,fh=Math.abs,ph=Math.E,mh=!dh||dh(710)===1/0;Wt({target:"Math",stat:!0,forced:mh},{cosh:function(e){var t=hh(fh(e)-1)+1;return(t+1/(t*ph*ph))*(ph/2)}}),Wt({target:"Math",stat:!0,forced:hh!==Math.expm1},{expm1:hh}),Wt({target:"Math",stat:!0},{fround:Qs});var gh=Math.hypot,vh=Math.abs,Dh=Math.sqrt,yh=!!gh&&gh(1/0,NaN)!==1/0;Wt({target:"Math",stat:!0,arity:2,forced:yh},{hypot:function(e,t){for(var r,n,i=0,a=0,o=arguments.length,s=0;a0?(n=r/s)*n:r;return s===1/0?1/0:s*Dh(i)}});var Eh=Math.imul,bh=d((function(){return-5!==Eh(4294967295,5)||2!==Eh.length}));Wt({target:"Math",stat:!0,forced:bh},{imul:function(e,t){var r=65535,n=+e,i=+t,a=r&n,o=r&i;return 0|a*o+((r&n>>>16)*o+a*(r&i>>>16)<<16>>>0)}});var wh=Math.log,_h=Math.LOG10E,Th=Math.log10||function(e){return wh(e)*_h};Wt({target:"Math",stat:!0},{log10:Th}),Wt({target:"Math",stat:!0},{log1p:Vc});var Ch=Math.log,Ah=Math.LN2;Wt({target:"Math",stat:!0},{log2:function(e){return Ch(e)/Ah}}),Wt({target:"Math",stat:!0},{sign:Ys});var Sh=Math.abs,xh=Math.exp,kh=Math.E,Fh=d((function(){return-2e-17!==Math.sinh(-2e-17)}));Wt({target:"Math",stat:!0,forced:Fh},{sinh:function(e){var t=+e;return Sh(t)<1?(hh(t)-hh(-t))/2:(xh(t-1)-xh(-t-1))*(kh/2)}});var Nh=Math.exp;Wt({target:"Math",stat:!0},{tanh:function(e){var t=+e,r=hh(t),n=hh(-t);return r===1/0?1:n===1/0?-1:(r-n)/(Nh(t)+Nh(-t))}}),Ar(Math,"Math",!0),Wt({target:"Math",stat:!0},{trunc:vt});var Ih=C(1..valueOf),Oh="\t\n\v\f\r                 \u2028\u2029\ufeff",Rh=C("".replace),Lh=RegExp("^["+Oh+"]+"),Bh=RegExp("(^|[^"+Oh+"])["+Oh+"]+$"),Mh=function(e){return function(t){var r=tr(R(t));return 1&e&&(r=Rh(r,Lh,"")),2&e&&(r=Rh(r,Bh,"$1")),r}},Ph={start:Mh(1),end:Mh(2),trim:Mh(3)},Uh=Ot.f,qh=Oe.f,zh=Ve.f,jh=Ph.trim,Hh="Number",Gh=h[Hh];Er[Hh];var Vh=Gh.prototype,Wh=h.TypeError,Yh=C("".slice),$h=C("".charCodeAt),Zh=function(e){var t,r,n,i,a,o,s,u,l=Ce(e,"number");if(K(l))throw new Wh("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=jh(l),43===(t=$h(l,0))||45===t){if(88===(r=$h(l,2))||120===r)return NaN}else if(48===t){switch($h(l,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(o=(a=Yh(l,2)).length,s=0;si)return NaN;return parseInt(a,n)}return+l},Xh=Gt(Hh,!Gh(" 0o1")||!Gh("0b1")||Gh("+0x1")),Kh=function(e){var t,r=arguments.length<1?0:Gh(function(e){var t=Ce(e,"number");return"bigint"==typeof t?t:Zh(t)}(e));return q(Vh,t=this)&&d((function(){Ih(t)}))?di(Object(r),this,Kh):r};Kh.prototype=Vh,Xh&&(Vh.constructor=Kh),Wt({global:!0,constructor:!0,wrap:!0,forced:Xh},{Number:Kh});Xh&&function(e,t){for(var r,n=f?Uh(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;n.length>i;i++)pe(t,r=n[i])&&!pe(e,r)&&zh(e,r,qh(t,r))}(Er[Hh],Gh),Wt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var Qh=h.isFinite,Jh=Number.isFinite||function(e){return"number"==typeof e&&Qh(e)};Wt({target:"Number",stat:!0},{isFinite:Jh});var ed=Math.floor,td=Number.isInteger||function(e){return!P(e)&&isFinite(e)&&ed(e)===e};Wt({target:"Number",stat:!0},{isInteger:td}),Wt({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var rd=Math.abs;Wt({target:"Number",stat:!0},{isSafeInteger:function(e){return td(e)&&rd(e)<=9007199254740991}}),Wt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),Wt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var nd=Ph.trim,id=C("".charAt),ad=h.parseFloat,od=h.Symbol,sd=od&&od.iterator,ud=1/ad(Oh+"-0")!=-1/0||sd&&!d((function(){ad(Object(sd))}))?function(e){var t=nd(tr(e)),r=ad(t);return 0===r&&"-"===id(t,0)?-0:r}:ad;Wt({target:"Number",stat:!0,forced:Number.parseFloat!==ud},{parseFloat:ud});var ld=Ph.trim,cd=h.parseInt,hd=h.Symbol,dd=hd&&hd.iterator,fd=/^[+-]?0x/i,pd=C(fd.exec),md=8!==cd(Oh+"08")||22!==cd(Oh+"0x16")||dd&&!d((function(){cd(Object(dd))}))?function(e,t){var r=ld(tr(e));return cd(r,t>>>0||(pd(fd,r)?16:10))}:cd;Wt({target:"Number",stat:!0,forced:Number.parseInt!==md},{parseInt:md});var gd=RangeError,vd=String,Dd=isFinite,yd=Math.abs,Ed=Math.floor,bd=Math.pow,wd=Math.round,_d=C(1..toExponential),Td=C(Il),Cd=C("".slice),Ad="-6.9000e-11"===_d(-69e-12,4)&&"1.25e+0"===_d(1.255,2)&&"1.235e+4"===_d(12345,3)&&"3e+1"===_d(25,0),Sd=!Ad||!(d((function(){_d(1,1/0)}))&&d((function(){_d(1,-1/0)})))||!!d((function(){_d(1/0,1/0),_d(NaN,1/0)}));Wt({target:"Number",proto:!0,forced:Sd},{toExponential:function(e){var t=Ih(this);if(void 0===e)return _d(t);var r=Dt(e);if(!Dd(t))return String(t);if(r<0||r>20)throw new gd("Incorrect fraction digits");if(Ad)return _d(t,r);var n="",i="",a=0,o="",s="";if(t<0&&(n="-",t=-t),0===t)a=0,i=Td("0",r+1);else{var u=Th(t);a=Ed(u);var l=0,c=bd(10,a-r);2*t>=(2*(l=wd(t/c))+1)*c&&(l+=1),l>=bd(10,r+1)&&(l/=10,a+=1),i=vd(l)}return 0!==r&&(i=Cd(i,0,1)+"."+Cd(i,1)),0===a?(o="+",s="0"):(o=a>0?"+":"-",s=vd(yd(a))),n+(i+="e"+o+s)}});var xd=RangeError,kd=String,Fd=Math.floor,Nd=C(Il),Id=C("".slice),Od=C(1..toFixed),Rd=function(e,t,r){return 0===t?r:t%2==1?Rd(e,t-1,r*e):Rd(e*e,t/2,r)},Ld=function(e,t,r){for(var n=-1,i=r;++n<6;)i+=t*e[n],e[n]=i%1e7,i=Fd(i/1e7)},Bd=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=Fd(n/t),n=n%t*1e7},Md=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=kd(e[t]);r=""===r?n:r+Nd("0",7-n.length)+n}return r},Pd=d((function(){return"0.000"!==Od(8e-5,3)||"1"!==Od(.9,0)||"1.25"!==Od(1.255,2)||"1000000000000000128"!==Od(0xde0b6b3a7640080,0)}))||!d((function(){Od({})}));Wt({target:"Number",proto:!0,forced:Pd},{toFixed:function(e){var t,r,n,i,a=Ih(this),o=Dt(e),s=[0,0,0,0,0,0],u="",l="0";if(o<0||o>20)throw new xd("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return kd(a);if(a<0&&(u="-",a=-a),a>1e-21)if(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(a*Rd(2,69,1))-69,r=t<0?a*Rd(2,-t,1):a/Rd(2,t,1),r*=4503599627370496,(t=52-t)>0){for(Ld(s,0,r),n=o;n>=7;)Ld(s,1e7,0),n-=7;for(Ld(s,Rd(10,n,1),0),n=t-1;n>=23;)Bd(s,1<<23),n-=23;Bd(s,1<0?u+((i=l.length)<=o?"0."+Nd("0",o-i)+l:Id(l,0,i-o)+"."+Id(l,i-o)):u+l}});var Ud=C(1..toPrecision),qd=d((function(){return"1"!==Ud(1,void 0)}))||!d((function(){Ud({})}));Wt({target:"Number",proto:!0,forced:qd},{toPrecision:function(e){return void 0===e?Ud(Ih(this)):Ud(Ih(this),e)}});var zd=Object.assign,jd=Object.defineProperty,Hd=C([].concat),Gd=!zd||d((function(){if(f&&1!==zd({b:1},zd(jd({},"a",{enumerable:!0,get:function(){jd(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==zd({},e)[r]||rr(zd({},t)).join("")!==n}))?function(e,t){for(var r=de(e),n=arguments.length,i=1,a=Rt.f,o=E.f;n>i;)for(var s,u=N(arguments[i++]),l=a?Hd(rr(u),a(u)):rr(u),c=l.length,h=0;c>h;)s=l[h++],f&&!g(o,u,s)||(r[s]=u[s]);return r}:zd;Wt({target:"Object",stat:!0,arity:2,forced:Object.assign!==Gd},{assign:Gd}),Wt({target:"Object",stat:!0,sham:!f},{create:fr});var Vd=!d((function(){if(!(ms&&ms<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete h[e]}}));f&&Wt({target:"Object",proto:!0,forced:Vd},{__defineGetter__:function(e,t){Ve.f(de(this),e,{get:te(t),enumerable:!0,configurable:!0})}});var Wd=ir.f;Wt({target:"Object",stat:!0,forced:Object.defineProperties!==Wd,sham:!f},{defineProperties:Wd});var Yd=Ve.f;Wt({target:"Object",stat:!0,forced:Object.defineProperty!==Yd,sham:!f},{defineProperty:Yd}),f&&Wt({target:"Object",proto:!0,forced:Vd},{__defineSetter__:function(e,t){Ve.f(de(this),e,{set:te(t),enumerable:!0,configurable:!0})}});var $d=E.f,Zd=C($d),Xd=C([].push),Kd=f&&d((function(){var e=Object.create(null);return e[2]=2,!Zd(e,2)})),Qd=function(e){return function(t){for(var r,n=L(t),i=rr(n),a=Kd&&null===Mi(n),o=i.length,s=0,u=[];o>s;)r=i[s++],f&&!(a?r in n:Zd(n,r))||Xd(u,e?[r,n[r]]:n[r]);return u}},Jd={entries:Qd(!0),values:Qd(!1)},ef=Jd.entries;Wt({target:"Object",stat:!0},{entries:function(e){return ef(e)}});var tf=Nc.onFreeze,rf=Object.freeze,nf=d((function(){rf(1)}));Wt({target:"Object",stat:!0,forced:nf,sham:!Fc},{freeze:function(e){return rf&&P(e)?rf(tf(e)):e}}),Wt({target:"Object",stat:!0},{fromEntries:function(e){var t={};return Xi(e,(function(e,r){ha(t,e,r)}),{AS_ENTRIES:!0}),t}});var af=Oe.f,of=!f||d((function(){af(1)}));Wt({target:"Object",stat:!0,forced:of,sham:!f},{getOwnPropertyDescriptor:function(e,t){return af(L(e),t)}}),Wt({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(e){for(var t,r,n=L(e),i=Oe.f,a=Bt(n),o={},s=0;a.length>s;)void 0!==(r=i(n,t=a[s++]))&&ha(o,t,r);return o}});var sf=vr.f,uf=d((function(){return!Object.getOwnPropertyNames(1)}));Wt({target:"Object",stat:!0,forced:uf},{getOwnPropertyNames:sf});var lf=d((function(){Mi(1)}));Wt({target:"Object",stat:!0,forced:lf,sham:!Oi},{getPrototypeOf:function(e){return Mi(de(e))}});var cf=U("Object","create"),hf=C([].push);Wt({target:"Object",stat:!0},{groupBy:function(e,t){R(e),te(t);var r=cf(null),n=0;return Xi(e,(function(e){var i=Ae(t(e,n++));i in r?hf(r[i],e):r[i]=[e]})),r}}),Wt({target:"Object",stat:!0},{hasOwn:pe});var df=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Wt({target:"Object",stat:!0},{is:df}),Wt({target:"Object",stat:!0,forced:Object.isExtensible!==kc},{isExtensible:kc});var ff=Object.isFrozen,pf=Sc||d((function(){ff(1)}));Wt({target:"Object",stat:!0,forced:pf},{isFrozen:function(e){return!P(e)||(!(!Sc||"ArrayBuffer"!==x(e))||!!ff&&ff(e))}});var mf=Object.isSealed,gf=Sc||d((function(){mf(1)}));Wt({target:"Object",stat:!0,forced:gf},{isSealed:function(e){return!P(e)||(!(!Sc||"ArrayBuffer"!==x(e))||!!mf&&mf(e))}});var vf=d((function(){rr(1)}));Wt({target:"Object",stat:!0,forced:vf},{keys:function(e){return rr(de(e))}});var Df=Oe.f;f&&Wt({target:"Object",proto:!0,forced:Vd},{__lookupGetter__:function(e){var t,r=de(this),n=Ae(e);do{if(t=Df(r,n))return t.get}while(r=Mi(r))}});var yf=Oe.f;f&&Wt({target:"Object",proto:!0,forced:Vd},{__lookupSetter__:function(e){var t,r=de(this),n=Ae(e);do{if(t=yf(r,n))return t.set}while(r=Mi(r))}});var Ef=Nc.onFreeze,bf=Object.preventExtensions,wf=d((function(){bf(1)}));Wt({target:"Object",stat:!0,forced:wf,sham:!Fc},{preventExtensions:function(e){return bf&&P(e)?bf(Ef(e)):e}});var _f=Object.getPrototypeOf,Tf=Object.setPrototypeOf,Cf=Object.prototype,Af="__proto__";if(f&&_f&&Tf&&!(Af in Cf))try{Dr(Cf,Af,{configurable:!0,get:function(){return _f(de(this))},set:function(e){var t=R(this);ai(e)&&P(t)&&Tf(t,e)}})}catch(Gre){}var Sf=Nc.onFreeze,xf=Object.seal,kf=d((function(){xf(1)}));Wt({target:"Object",stat:!0,forced:kf,sham:!Fc},{seal:function(e){return xf&&P(e)?xf(Sf(e)):e}}),Wt({target:"Object",stat:!0},{setPrototypeOf:li});var Ff=Zt?{}.toString:function(){return"[object "+Jt(this)+"]"};Zt||pt(Object.prototype,"toString",Ff,{unsafe:!0});var Nf=Jd.values;Wt({target:"Object",stat:!0},{values:function(e){return Nf(e)}}),Wt({global:!0,forced:parseFloat!==ud},{parseFloat:ud}),Wt({global:!0,forced:parseInt!==md},{parseInt:md});var If,Of,Rf,Lf,Bf=TypeError,Mf=function(e,t){if(eb)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})),Gm=Ot.f,Vm=dt.enforce,Wm=we("match"),Ym=h.RegExp,$m=Ym.prototype,Zm=h.SyntaxError,Xm=C($m.exec),Km=C("".charAt),Qm=C("".replace),Jm=C("".indexOf),eg=C("".slice),tg=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,rg=/a/g,ng=/a/g,ig=new Ym(rg)!==rg,ag=Um.MISSED_STICKY,og=Um.UNSUPPORTED_Y,sg=f&&(!ig||ag||zm||Hm||d((function(){return ng[Wm]=!1,Ym(rg)!==rg||Ym(ng)===ng||"/a/i"!==String(Ym(rg,"i"))})));if(Gt("RegExp",sg)){for(var ug=function(e,t){var r,n,i,a,o,s,u=q($m,this),l=Nm(e),c=void 0===t,h=[],d=e;if(!u&&l&&c&&e.constructor===ug)return e;if((l||q($m,e))&&(e=e.source,c&&(t=Rm(d))),e=void 0===e?"":tr(e),t=void 0===t?"":tr(t),d=e,zm&&"dotAll"in rg&&(n=!!t&&Jm(t,"s")>-1)&&(t=Qm(t,/s/g,"")),r=t,ag&&"sticky"in rg&&(i=!!t&&Jm(t,"y")>-1)&&og&&(t=Qm(t,/y/g,"")),Hm&&(a=function(e){for(var t,r=e.length,n=0,i="",a=[],o=fr(null),s=!1,u=!1,l=0,c="";n<=r;n++){if("\\"===(t=Km(e,n)))t+=Km(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:Xm(tg,eg(e,n+1))&&(n+=2,u=!0),i+=t,l++;continue;case">"===t&&u:if(""===c||pe(o,c))throw new Zm("Invalid capture group name");o[c]=!0,a[a.length]=[c,l],u=!1,c="";continue}u?c+=t:i+=t}return[i,a]}(e),e=a[0],h=a[1]),o=di(Ym(e,t),u?this:$m,ug),(n||i||h.length)&&(s=Vm(o),n&&(s.dotAll=!0,s.raw=ug(function(e){for(var t,r=e.length,n=0,i="",a=!1;n<=r;n++)"\\"!==(t=Km(e,n))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+Km(e,++n);return i}(e),r)),i&&(s.sticky=!0),h.length&&(s.groups=h)),e!==d)try{We(o,"source",""===d?"(?:)":d)}catch(e){}return o},lg=Gm(Ym),cg=0;lg.length>cg;)hi(ug,Ym,lg[cg++]);$m.constructor=ug,ug.prototype=$m,pt(h,"RegExp",ug,{constructor:!0})}Ts("RegExp");var hg=dt.get,dg=RegExp.prototype,fg=TypeError;f&&zm&&Dr(dg,"dotAll",{configurable:!0,get:function(){if(this!==dg){if("RegExp"===x(this))return!!hg(this).dotAll;throw new fg("Incompatible receiver, RegExp required")}}});var pg=dt.get,mg=ce("native-string-replace",String.prototype.replace),gg=RegExp.prototype.exec,vg=gg,Dg=C("".charAt),yg=C("".indexOf),Eg=C("".replace),bg=C("".slice),wg=function(){var e=/a/,t=/b*/g;return g(gg,e,"a"),g(gg,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_g=Um.BROKEN_CARET,Tg=void 0!==/()??/.exec("")[1];(wg||Tg||_g||zm||Hm)&&(vg=function(e){var t,r,n,i,a,o,s,u=this,l=pg(u),c=tr(e),h=l.raw;if(h)return h.lastIndex=u.lastIndex,t=g(vg,h,c),u.lastIndex=h.lastIndex,t;var d=l.groups,f=_g&&u.sticky,p=g(Im,u),m=u.source,v=0,D=c;if(f&&(p=Eg(p,"y",""),-1===yg(p,"g")&&(p+="g"),D=bg(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Dg(c,u.lastIndex-1))&&(m="(?: "+m+")",D=" "+D,v++),r=new RegExp("^(?:"+m+")",p)),Tg&&(r=new RegExp("^"+m+"$(?!\\s)",p)),wg&&(n=u.lastIndex),i=g(gg,f?r:u,D),f?i?(i.input=bg(i.input,v),i[0]=bg(i[0],v),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:wg&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Tg&&i&&i.length>1&&g(mg,i[0],r,(function(){for(a=1;a=0?n:r+n;return i<0||i>=r?void 0:zg(t,i)}});var Hg=C("".charAt),Gg=C("".charCodeAt),Vg=C("".slice),Wg=function(e){return function(t,r){var n,i,a=tr(R(t)),o=Dt(r),s=a.length;return o<0||o>=s?e?"":void 0:(n=Gg(a,o))<55296||n>56319||o+1===s||(i=Gg(a,o+1))<56320||i>57343?e?Hg(a,o):n:e?Vg(a,o,o+2):i-56320+(n-55296<<10)+65536}},Yg={codeAt:Wg(!1),charAt:Wg(!0)},$g=Yg.codeAt;Wt({target:"String",proto:!0},{codePointAt:function(e){return $g(this,e)}});var Zg=TypeError,Xg=function(e){if(Nm(e))throw new Zg("The method doesn't accept regular expressions");return e},Kg=we("match"),Qg=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Kg]=!1,"/./"[e](t)}catch(e){}}return!1},Jg=Oe.f,ev=Sr("".slice),tv=Math.min,rv=Qg("endsWith"),nv=!rv&&!!function(){var e=Jg(String.prototype,"endsWith");return e&&!e.writable}();Wt({target:"String",proto:!0,forced:!nv&&!rv},{endsWith:function(e){var t=tr(R(this));Xg(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,i=void 0===r?n:tv(_t(r),n),a=tr(e);return ev(t,i-a.length,i)===a}});var iv=RangeError,av=String.fromCharCode,ov=String.fromCodePoint,sv=C([].join),uv=!!ov&&1!==ov.length;Wt({target:"String",stat:!0,arity:1,forced:uv},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(t=+arguments[i++],bt(t,1114111)!==t)throw new iv(t+" is not a valid code point");r[i]=t<65536?av(t):av(55296+((t-=65536)>>10),t%1024+56320)}return sv(r,"")}});var lv=C("".indexOf);Wt({target:"String",proto:!0,forced:!Qg("includes")},{includes:function(e){return!!~lv(tr(R(this)),tr(Xg(e)),arguments.length>1?arguments[1]:void 0)}});var cv=C("".charCodeAt);Wt({target:"String",proto:!0},{isWellFormed:function(){for(var e=tr(R(this)),t=e.length,r=0;r=56320||++r>=t||56320!=(64512&cv(e,r))))return!1}return!0}});var hv=Yg.charAt,dv="String Iterator",fv=dt.set,pv=dt.getterFor(dv);_o(String,"String",(function(e){fv(this,{type:dv,string:tr(e),index:0})}),(function(){var e,t=pv(this),r=t.string,n=t.index;return n>=r.length?To(void 0,!0):(e=hv(r,n),t.index+=e.length,To(e,!1))}));var mv=we("species"),gv=RegExp.prototype,vv=function(e,t,r,n){var i=we(e),a=!d((function(){var t={};return t[i]=function(){return 7},7!==""[e](t)})),o=a&&!d((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[mv]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!a||!o||r){var s=Sr(/./[i]),u=t(i,""[e],(function(e,t,r,n,i){var o=Sr(e),u=t.exec;return u===Cg||u===gv.exec?a&&!i?{done:!0,value:s(t,r,n)}:{done:!0,value:o(r,t,n)}:{done:!1}}));pt(String.prototype,e,u[0]),pt(gv,i,u[1])}n&&We(gv[i],"sham",!0)},Dv=Yg.charAt,yv=function(e,t,r){return t+(r?Dv(e,t).length:1)},Ev=TypeError,bv=function(e,t){var r=e.exec;if(M(r)){var n=g(r,e,t);return null!==n&&Me(n),n}if("RegExp"===x(e))return g(Cg,e,t);throw new Ev("RegExp#exec called on incompatible receiver")};vv("match",(function(e,t,r){return[function(t){var r=R(this),n=I(t)?void 0:re(t,e);return n?g(n,t,r):new RegExp(t)[e](tr(r))},function(e){var n=Me(this),i=tr(e),a=r(t,n,i);if(a.done)return a.value;if(!n.global)return bv(n,i);var o=n.unicode;n.lastIndex=0;for(var s,u=[],l=0;null!==(s=bv(n,i));){var c=tr(s[0]);u[l]=c,""===c&&(n.lastIndex=yv(i,_t(n.lastIndex),o)),l++}return 0===l?null:u}]}));var wv=we("matchAll"),_v="RegExp String",Tv=_v+" Iterator",Cv=dt.set,Av=dt.getterFor(Tv),Sv=RegExp.prototype,xv=TypeError,kv=Sr("".indexOf),Fv=Sr("".matchAll),Nv=!!Fv&&!d((function(){Fv("a",/./)})),Iv=fo((function(e,t,r,n){Cv(this,{type:Tv,regexp:e,string:t,global:r,unicode:n,done:!1})}),_v,(function(){var e=Av(this);if(e.done)return To(void 0,!0);var t=e.regexp,r=e.string,n=bv(t,r);return null===n?(e.done=!0,To(void 0,!0)):e.global?(""===tr(n[0])&&(t.lastIndex=yv(r,_t(t.lastIndex),e.unicode)),To(n,!1)):(e.done=!0,To(n,!1))})),Ov=function(e){var t,r,n,i=Me(this),a=tr(e),o=gl(i,RegExp),s=tr(Rm(i));return t=new o(o===RegExp?i.source:i,s),r=!!~kv(s,"g"),n=!!~kv(s,"u"),t.lastIndex=_t(i.lastIndex),new Iv(t,a,r,n)};Wt({target:"String",proto:!0,forced:Nv},{matchAll:function(e){var t,r,n,i=R(this);if(I(e)){if(Nv)return Fv(i,e)}else{if(Nm(e)&&(t=tr(R(Rm(e))),!~kv(t,"g")))throw new xv("`.matchAll` does not allow non-global regexes");if(Nv)return Fv(i,e);if(n=re(e,wv))return g(n,e,i)}return r=tr(i),new RegExp(e,"g")[wv](r)}}),wv in Sv||pt(Sv,wv,Ov);var Rv=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(z),Lv=Ml.end;Wt({target:"String",proto:!0,forced:Rv},{padEnd:function(e){return Lv(this,e,arguments.length>1?arguments[1]:void 0)}});var Bv=Ml.start;Wt({target:"String",proto:!0,forced:Rv},{padStart:function(e){return Bv(this,e,arguments.length>1?arguments[1]:void 0)}});var Mv=C([].push),Pv=C([].join);Wt({target:"String",stat:!0},{raw:function(e){var t=L(de(e).raw),r=Tt(t);if(!r)return"";for(var n=arguments.length,i=[],a=0;;){if(Mv(i,tr(t[a++])),a===r)return Pv(i,"");a]*>)/g,Gv=/\$([$&'`]|\d{1,2})/g,Vv=function(e,t,r,n,i,a){var o=r+e.length,s=n.length,u=Gv;return void 0!==i&&(i=de(i),u=Hv),zv(a,u,(function(a,u){var l;switch(qv(u,0)){case"$":return"$";case"&":return e;case"`":return jv(t,0,r);case"'":return jv(t,o);case"<":l=i[jv(u,1,-1)];break;default:var c=+u;if(0===c)return a;if(c>s){var h=Uv(c/10);return 0===h?a:h<=s?void 0===n[h-1]?qv(u,1):n[h-1]+qv(u,1):a}l=n[c-1]}return void 0===l?"":l}))},Wv=we("replace"),Yv=Math.max,$v=Math.min,Zv=C([].concat),Xv=C([].push),Kv=C("".indexOf),Qv=C("".slice),Jv="$0"==="a".replace(/./,"$0"),eD=!!/./[Wv]&&""===/./[Wv]("a","$0"),tD=!d((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));vv("replace",(function(e,t,r){var n=eD?"$":"$0";return[function(e,r){var n=R(this),i=I(e)?void 0:re(e,Wv);return i?g(i,e,n,r):g(t,tr(n),e,r)},function(e,i){var a=Me(this),o=tr(e);if("string"==typeof i&&-1===Kv(i,n)&&-1===Kv(i,"$<")){var s=r(t,a,o,i);if(s.done)return s.value}var u=M(i);u||(i=tr(i));var l,c=a.global;c&&(l=a.unicode,a.lastIndex=0);for(var h,d=[];null!==(h=bv(a,o))&&(Xv(d,h),c);){""===tr(h[0])&&(a.lastIndex=yv(o,_t(a.lastIndex),l))}for(var f,p="",m=0,g=0;g=m&&(p+=Qv(o,m,y)+v,m=y+D.length)}return p+Qv(o,m)}]}),!tD||!Jv||eD);var rD=we("replace"),nD=TypeError,iD=C("".indexOf);C("".replace);var aD=C("".slice),oD=Math.max,sD=function(e,t,r){return r>e.length?-1:""===t?r:iD(e,t,r)};Wt({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,i,a,o,s,u,l,c=R(this),h=0,d=0,f="";if(!I(e)){if(Nm(e)&&(r=tr(R(Rm(e))),!~iD(r,"g")))throw new nD("`.replaceAll` does not allow non-global regexes");if(n=re(e,rD))return g(n,e,c,t)}for(i=tr(c),a=tr(e),(o=M(t))||(t=tr(t)),s=a.length,u=oD(1,s),h=sD(i,a,0);-1!==h;)l=o?tr(t(a,h,i)):Vv(a,i,h,[],void 0,t),f+=aD(i,d,h)+l,d=h+s,h=sD(i,a,h+u);return d1||"".split(/.?/).length?function(e,r){var n=tr(R(this)),i=void 0===r?lD:r>>>0;if(0===i)return[];if(void 0===e)return[n];if(!Nm(e))return g(t,n,e,i);for(var a,o,s,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,h=new RegExp(e.source,l+"g");(a=g(Cg,h,n))&&!((o=h.lastIndex)>c&&(fD(u,pD(n,c,a.index)),a.length>1&&a.index=i));)h.lastIndex===a.index&&h.lastIndex++;return c===n.length?!s&&dD(h,"")||fD(u,""):fD(u,pD(n,c)),u.length>i?pr(u,0,i):u}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:g(t,this,e,r)}:t,[function(t,r){var i=R(this),a=I(t)?void 0:re(t,e);return a?g(a,t,i,r):g(n,tr(i),t,r)},function(e,i){var a=Me(this),o=tr(e),s=r(n,a,o,i,n!==t);if(s.done)return s.value;var u=gl(a,RegExp),l=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(uD?"g":"y"),h=new u(uD?"^(?:"+a.source+")":a,c),d=void 0===i?lD:i>>>0;if(0===d)return[];if(0===o.length)return null===bv(h,o)?[o]:[];for(var f=0,p=0,m=[];p1?arguments[1]:void 0,t.length)),n=tr(e);return vD(t,r,r+n.length)===n}});var bD=C("".slice),wD=Math.max,_D=Math.min,TD=!"".substr||"b"!=="ab".substr(-1);Wt({target:"String",proto:!0,forced:TD},{substr:function(e,t){var r,n,i=tr(R(this)),a=i.length,o=Dt(e);return o===1/0&&(o=0),o<0&&(o=wD(a+o,0)),(r=void 0===t?a:Dt(t))<=0||r===1/0||o>=(n=_D(o+r,a))?"":bD(i,o,n)}});var CD=Array,AD=C("".charAt),SD=C("".charCodeAt),xD=C([].join),kD="".toWellFormed,FD=kD&&d((function(){return"1"!==g(kD,1)}));Wt({target:"String",proto:!0,forced:FD},{toWellFormed:function(){var e=tr(R(this));if(FD)return g(kD,e);for(var t=e.length,r=CD(t),n=0;n=56320||n+1>=t||56320!=(64512&SD(e,n+1))?r[n]="�":(r[n]=AD(e,n),r[++n]=AD(e,n))}return xD(r,"")}});var ND=Xe.PROPER,ID=function(e){return d((function(){return!!Oh[e]()||"​…᠎"!=="​…᠎"[e]()||ND&&Oh[e].name!==e}))},OD=Ph.trim;Wt({target:"String",proto:!0,forced:ID("trim")},{trim:function(){return OD(this)}});var RD=Ph.end,LD=ID("trimEnd")?function(){return RD(this)}:"".trimEnd;Wt({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==LD},{trimRight:LD}),Wt({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==LD},{trimEnd:LD});var BD=Ph.start,MD=ID("trimStart")?function(){return BD(this)}:"".trimStart;Wt({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==MD},{trimLeft:MD}),Wt({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==MD},{trimStart:MD});var PD=/"/g,UD=C("".replace),qD=function(e,t,r,n){var i=tr(R(e)),a="<"+t;return""!==r&&(a+=" "+r+'="'+UD(tr(n),PD,""")+'"'),a+">"+i+""},zD=function(e){return d((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};Wt({target:"String",proto:!0,forced:zD("anchor")},{anchor:function(e){return qD(this,"a","name",e)}}),Wt({target:"String",proto:!0,forced:zD("big")},{big:function(){return qD(this,"big","","")}}),Wt({target:"String",proto:!0,forced:zD("blink")},{blink:function(){return qD(this,"blink","","")}}),Wt({target:"String",proto:!0,forced:zD("bold")},{bold:function(){return qD(this,"b","","")}}),Wt({target:"String",proto:!0,forced:zD("fixed")},{fixed:function(){return qD(this,"tt","","")}}),Wt({target:"String",proto:!0,forced:zD("fontcolor")},{fontcolor:function(e){return qD(this,"font","color",e)}}),Wt({target:"String",proto:!0,forced:zD("fontsize")},{fontsize:function(e){return qD(this,"font","size",e)}}),Wt({target:"String",proto:!0,forced:zD("italics")},{italics:function(){return qD(this,"i","","")}}),Wt({target:"String",proto:!0,forced:zD("link")},{link:function(e){return qD(this,"a","href",e)}}),Wt({target:"String",proto:!0,forced:zD("small")},{small:function(){return qD(this,"small","","")}}),Wt({target:"String",proto:!0,forced:zD("strike")},{strike:function(){return qD(this,"strike","","")}}),Wt({target:"String",proto:!0,forced:zD("sub")},{sub:function(){return qD(this,"sub","","")}}),Wt({target:"String",proto:!0,forced:zD("sup")},{sup:function(){return qD(this,"sup","","")}});var jD=dl.NATIVE_ARRAY_BUFFER_VIEWS,HD=h.ArrayBuffer,GD=h.Int8Array,VD=!jD||!d((function(){GD(1)}))||!d((function(){new GD(-1)}))||!Za((function(e){new GD,new GD(null),new GD(1.5),new GD(e)}),!0)||d((function(){return 1!==new GD(new HD(2),1,void 0).length})),WD=RangeError,YD=function(e){var t=Dt(e);if(t<0)throw new WD("The argument can't be less than 0");return t},$D=RangeError,ZD=function(e,t){var r=YD(e);if(r%t)throw new $D("Wrong offset");return r},XD=Math.round,KD=function(e){var t=XD(e);return t<0?0:t>255?255:255&t},QD=function(e){var t=Jt(e);return"BigInt64Array"===t||"BigUint64Array"===t},JD=TypeError,ey=function(e){var t=Ce(e,"number");if("number"==typeof t)throw new JD("Can't convert number to bigint");return BigInt(t)},ty=dl.aTypedArrayConstructor,ry=function(e){var t,r,n,i,a,o,s,u,l=pl(this),c=de(e),h=arguments.length,d=h>1?arguments[1]:void 0,f=void 0!==d,p=Hi(c);if(p&&!zi(p))for(u=(s=Vi(c,p)).next,c=[];!(o=g(u,s)).done;)c.push(o.value);for(f&&h>2&&(d=kr(d,arguments[2])),r=Tt(c),n=new(ty(l))(r),i=QD(n),t=0;r>t;t++)a=f?d(c[t],t):c[t],n[t]=i?ey(a):+a;return n},ny=o((function(e){var t=Ot.f,r=Vr.forEach,n=dt.get,i=dt.set,a=dt.enforce,o=Ve.f,s=Oe.f,u=h.RangeError,l=qu.ArrayBuffer,c=l.prototype,d=qu.DataView,p=dl.NATIVE_ARRAY_BUFFER_VIEWS,m=dl.TYPED_ARRAY_TAG,v=dl.TypedArray,D=dl.TypedArrayPrototype,y=dl.isTypedArray,E="BYTES_PER_ELEMENT",w="Wrong length",_=function(e,t){Dr(e,t,{configurable:!0,get:function(){return n(this)[t]}})},T=function(e){var t;return q(c,e)||"ArrayBuffer"===(t=Jt(e))||"SharedArrayBuffer"===t},C=function(e,t){return y(e)&&!K(t)&&t in e&&td(+t)&&t>=0},A=function(e,t){return t=Ae(t),C(e,t)?b(2,e[t]):s(e,t)},S=function(e,t,r){return t=Ae(t),!(C(e,t)&&P(r)&&pe(r,"value"))||pe(r,"get")||pe(r,"set")||r.configurable||pe(r,"writable")&&!r.writable||pe(r,"enumerable")&&!r.enumerable?o(e,t,r):(e[t]=r.value,e)};f?(p||(Oe.f=A,Ve.f=S,_(D,"buffer"),_(D,"byteOffset"),_(D,"byteLength"),_(D,"length")),Wt({target:"Object",stat:!0,forced:!p},{getOwnPropertyDescriptor:A,defineProperty:S}),e.exports=function(e,s,c){var f=e.match(/\d+/)[0]/8,b=e+(c?"Clamped":"")+"Array",_="get"+e,C="set"+e,A=h[b],S=A,x=S&&S.prototype,k={},F=function(e,t){o(e,t,{get:function(){return function(e,t){var r=n(e);return r.view[_](t*f+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=n(e);i.view[C](t*f+i.byteOffset,c?KD(r):r,!0)}(this,t,e)},enumerable:!0})};p?VD&&(S=s((function(e,t,r,n){return Gs(e,x),di(P(t)?T(t)?void 0!==n?new A(t,ZD(r,f),n):void 0!==r?new A(t,ZD(r,f)):new A(t):y(t)?Fs(S,t):g(ry,S,t):new A(Ws(t)),e,S)})),li&&li(S,v),r(t(A),(function(e){e in S||We(S,e,A[e])})),S.prototype=x):(S=s((function(e,t,r,n){Gs(e,x);var a,o,s,c=0,h=0;if(P(t)){if(!T(t))return y(t)?Fs(S,t):g(ry,S,t);a=t,h=ZD(r,f);var p=t.byteLength;if(void 0===n){if(p%f)throw new u(w);if((o=p-h)<0)throw new u(w)}else if((o=_t(n)*f)+h>p)throw new u(w);s=o/f}else s=Ws(t),a=new l(o=s*f);for(i(e,{buffer:a,byteOffset:h,byteLength:o,length:s,view:new d(a)});c=0?n:r+n;return i<0||i>=r?void 0:t[i]}));var ay=C(ba),oy=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("copyWithin",(function(e,t){return ay(oy(this),e,t,arguments.length>2?arguments[2]:void 0)}));var sy=Vr.every,uy=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("every",(function(e){return sy(uy(this),e,arguments.length>1?arguments[1]:void 0)}));var ly=dl.aTypedArray,cy=dl.exportTypedArrayMethod,hy=C("".slice);cy("fill",(function(e){var t=arguments.length;ly(this);var r="Big"===hy(Jt(this),0,3)?ey(e):+e;return g(Ca,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),d((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var dy=dl.aTypedArrayConstructor,fy=dl.getTypedArrayConstructor,py=function(e){return dy(gl(e,fy(e)))},my=function(e,t){return Fs(py(e),t)},gy=Vr.filter,vy=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("filter",(function(e){var t=gy(vy(this),e,arguments.length>1?arguments[1]:void 0);return my(this,t)}));var Dy=Vr.find,yy=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("find",(function(e){return Dy(yy(this),e,arguments.length>1?arguments[1]:void 0)}));var Ey=Vr.findIndex,by=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("findIndex",(function(e){return Ey(by(this),e,arguments.length>1?arguments[1]:void 0)}));var wy=La.findLast,_y=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("findLast",(function(e){return wy(_y(this),e,arguments.length>1?arguments[1]:void 0)}));var Ty=La.findLastIndex,Cy=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("findLastIndex",(function(e){return Ty(Cy(this),e,arguments.length>1?arguments[1]:void 0)}));var Ay=Vr.forEach,Sy=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("forEach",(function(e){Ay(Sy(this),e,arguments.length>1?arguments[1]:void 0)})),(0,dl.exportTypedArrayStaticMethod)("from",ry,VD);var xy=At.includes,ky=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("includes",(function(e){return xy(ky(this),e,arguments.length>1?arguments[1]:void 0)}));var Fy=At.indexOf,Ny=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("indexOf",(function(e){return Fy(Ny(this),e,arguments.length>1?arguments[1]:void 0)}));var Iy=we("iterator"),Oy=h.Uint8Array,Ry=C(ko.values),Ly=C(ko.keys),By=C(ko.entries),My=dl.aTypedArray,Py=dl.exportTypedArrayMethod,Uy=Oy&&Oy.prototype,qy=!d((function(){Uy[Iy].call([1])})),zy=!!Uy&&Uy.values&&Uy[Iy]===Uy.values&&"values"===Uy.values.name,jy=function(){return Ry(My(this))};Py("entries",(function(){return By(My(this))}),qy),Py("keys",(function(){return Ly(My(this))}),qy),Py("values",jy,qy||!zy,{name:"values"}),Py(Iy,jy,qy||!zy,{name:"values"});var Hy=dl.aTypedArray,Gy=dl.exportTypedArrayMethod,Vy=C([].join);Gy("join",(function(e){return Vy(Hy(this),e)}));var Wy=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return Fn(Mo,Wy(this),t>1?[e,arguments[1]]:[e])}));var Yy=Vr.map,$y=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("map",(function(e){return Yy($y(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(py(e))(t)}))}));var Zy=dl.aTypedArrayConstructor;(0,dl.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,r=new(Zy(this))(t);t>e;)r[e]=arguments[e++];return r}),VD);var Xy=$o.left,Ky=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return Xy(Ky(this),e,t,t>1?arguments[1]:void 0)}));var Qy=$o.right,Jy=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return Qy(Jy(this),e,t,t>1?arguments[1]:void 0)}));var eE=dl.aTypedArray,tE=dl.exportTypedArrayMethod,rE=Math.floor;tE("reverse",(function(){for(var e,t=this,r=eE(t).length,n=rE(r/2),i=0;i1?arguments[1]:void 0,1),r=de(e);if(lE)return g(oE,this,r,t);var n=this.length,i=Tt(r),a=0;if(i+t>n)throw new nE("Wrong length");for(;ai;)o[i]=r[i++];return o}),d((function(){new Int8Array(1).slice()})));var dE=Vr.some,fE=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("some",(function(e){return dE(fE(this),e,arguments.length>1?arguments[1]:void 0)}));var pE=dl.aTypedArray,mE=dl.exportTypedArrayMethod,gE=h.Uint16Array,vE=gE&&Sr(gE.prototype.sort),DE=!(!vE||d((function(){vE(new gE(2),null)}))&&d((function(){vE(new gE(2),{})}))),yE=!!vE&&!d((function(){if(W)return W<74;if(ds)return ds<67;if(fs)return!0;if(ms)return ms<602;var e,t,r=new gE(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(vE(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));mE("sort",(function(e){return void 0!==e&&te(e),yE?vE(this,e):cs(pE(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!yE||DE);var EE=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("subarray",(function(e,t){var r=EE(this),n=r.length,i=bt(e,n);return new(py(r))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,_t((void 0===t?n:bt(t,n))-i))}));var bE=h.Int8Array,wE=dl.aTypedArray,_E=dl.exportTypedArrayMethod,TE=[].toLocaleString,CE=!!bE&&d((function(){TE.call(new bE(1))}));_E("toLocaleString",(function(){return Fn(TE,CE?pr(wE(this)):wE(this),pr(arguments))}),d((function(){return[1,2].toLocaleString()!==new bE([1,2]).toLocaleString()}))||!d((function(){bE.prototype.toLocaleString.call([1,2])})));var AE=dl.aTypedArray,SE=dl.getTypedArrayConstructor;(0,dl.exportTypedArrayMethod)("toReversed",(function(){return xs(AE(this),SE(this))}));var xE=dl.aTypedArray,kE=dl.getTypedArrayConstructor,FE=dl.exportTypedArrayMethod,NE=C(dl.TypedArrayPrototype.sort);FE("toSorted",(function(e){void 0!==e&&te(e);var t=xE(this),r=Fs(kE(t),t);return NE(r,e)}));var IE=dl.exportTypedArrayMethod,OE=h.Uint8Array,RE=OE&&OE.prototype||{},LE=[].toString,BE=C([].join);d((function(){LE.call({})}))&&(LE=function(){return BE(this)});var ME=RE.toString!==LE;IE("toString",LE,ME);var PE=dl.aTypedArray,UE=dl.getTypedArrayConstructor,qE=dl.exportTypedArrayMethod,zE=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();qE("with",{with:function(e,t){var r=PE(this),n=Dt(e),i=QD(r)?ey(t):+t;return Us(r,UE(r),n,i)}}.with,!zE);var jE=String.fromCharCode,HE=C("".charAt),GE=C(/./.exec),VE=C("".slice),WE=/^[\da-f]{2}$/i,YE=/^[\da-f]{4}$/i;Wt({global:!0},{unescape:function(e){for(var t,r,n=tr(e),i="",a=n.length,o=0;o1?arguments[1]:void 0,i=r>2?arguments[2]:void 0;return new(U("Promise"))((function(r){var a=de(e);void 0!==n&&(n=kr(n,i));var o=re(a,Wb),s=o?void 0:Hi(a)||Zb,u=Ur(t)?new t:[],l=o?function(e,t){var r=arguments.length<2?re(e,zb):t;return r?Me(g(r,e)):new Ub(qb(Vi(e)))}(a,o):new Ub(qb(Vi(a,s)));r(Vb(l,n,u))}))};Wt({target:"Array",stat:!0},{fromAsync:Kb});var Qb=Vr.filterReject;Wt({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Qb(this,e,arguments.length>1?arguments[1]:void 0)}}),ua("filterOut");var Jb=Vr.filterReject;Wt({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Jb(this,e,arguments.length>1?arguments[1]:void 0)}}),ua("filterReject");var ew=Array,tw=C([].push),rw=function(e,t,r,n){for(var i,a,o,s=de(e),u=N(s),l=kr(t,r),c=fr(null),h=Tt(u),d=0;h>d;d++)o=u[d],(a=Ae(l(o,d,s)))in c?tw(c[a],o):c[a]=[o];if(n&&(i=n(s))!==ew)for(a in c)c[a]=Fs(i,c[a]);return c};Wt({target:"Array",proto:!0},{group:function(e){return rw(this,e,arguments.length>1?arguments[1]:void 0)}}),ua("group"),Wt({target:"Array",proto:!0,forced:!wa("groupBy")},{groupBy:function(e){return rw(this,e,arguments.length>1?arguments[1]:void 0)}}),ua("groupBy");var nw=Pc.Map,iw=Pc.get,aw=Pc.has,ow=Pc.set,sw=C([].push),uw=function(e){for(var t,r,n=de(this),i=N(n),a=kr(e,arguments.length>1?arguments[1]:void 0),o=new nw,s=Tt(i),u=0;s>u;u++)t=a(r=i[u],u,n),aw(o,t)?sw(iw(o,t),r):ow(o,t,[r]);return o};Wt({target:"Array",proto:!0,name:"groupToMap",forced:!wa("groupByToMap")},{groupByToMap:uw}),ua("groupByToMap"),Wt({target:"Array",proto:!0,forced:ae},{groupToMap:uw}),ua("groupToMap");var lw=Object.isFrozen,cw=function(e,t){if(!lw||!Fr(e)||!lw(e))return!1;for(var r,n=0,i=e.length;n92||Zo&&W>94||Tp&&W>97)return!1;var e=new ArrayBuffer(8),t=Ow(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})),Lw=h.structuredClone,Bw=h.ArrayBuffer,Mw=h.MessageChannel,Pw=!1;if(Rw)Pw=function(e){Lw(e,{transfer:[e]})};else if(Bw)try{Mw||(xw=Iw("worker_threads"))&&(Mw=xw.MessageChannel),Mw&&(kw=new Mw,Fw=new Bw(2),Nw=function(e){kw.port1.postMessage(null,[e])},2===Fw.byteLength&&(Nw(Fw),0===Fw.byteLength&&(Pw=Nw)))}catch(Yre){}var Uw=Pw,qw=h.structuredClone,zw=h.ArrayBuffer,jw=h.DataView,Hw=h.TypeError,Gw=Math.min,Vw=zw.prototype,Ww=jw.prototype,Yw=C(Vw.slice),$w=ii(Vw,"resizable","get"),Zw=ii(Vw,"maxByteLength","get"),Xw=C(Ww.getInt8),Kw=C(Ww.setInt8),Qw=(Rw||Uw)&&function(e,t,r){var n,i=Tw(e),a=void 0===t?i:Ws(t),o=!$w||!$w(e);if(Aw(e))throw new Hw("ArrayBuffer is detached");if(Rw&&(e=qw(e,{transfer:[e]}),i===a&&(r||o)))return e;if(i>=a&&(!r||o))n=Yw(e,0,a);else{var s=r&&!o&&Zw?{maxByteLength:Zw(e)}:void 0;n=new zw(a,s);for(var u=new jw(e),l=new jw(n),c=Gw(a,i),h=0;he,u=!1;if(void 0===r)o=void 0;else if(P(r))o=r.step,u=!!r.inclusive;else{if(typeof r!=n)throw new rT(K_);o=r}if(I(o)&&(o=s?a:-a),typeof o!=n)throw new rT(K_);if(o===1/0||o===-1/0||o===i&&e!==t)throw new tT(K_);J_(this,{type:Q_,start:e,end:t,step:o,inclusive:u,hitsEnd:e!=e||t!=t||o!=o||t>e!=o>i,currentCount:i,zero:i}),f||(this.start=e,this.end=t,this.step=o,this.inclusive=u)}),Q_,(function(){var e=eT(this);if(e.hitsEnd)return To(void 0,!0);var t=e.start,r=e.end,n=t+e.step*e.currentCount++;n===r&&(e.hitsEnd=!0);var i=e.inclusive;return(r>t?i?n>r:n>=r:i?r>n:r>=n)?(e.hitsEnd=!0,To(void 0,!0)):To(n,!1)})),iT=function(e){Dr(nT.prototype,e,{get:function(){return eT(this)[e]},set:function(){},configurable:!0,enumerable:!1})};f&&(iT("start"),iT("end"),iT("inclusive"),iT("step"));var aT=nT;"function"==typeof BigInt&&Wt({target:"BigInt",stat:!0,forced:!0},{range:function(e,t,r){return new aT(e,t,r,"bigint",BigInt(0),BigInt(1))}});var oT=Object,sT=TypeError,uT=U("Map"),lT=U("WeakMap"),cT=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=fr(null)};cT.prototype.get=function(e,t){return this[e]||(this[e]=t())},cT.prototype.next=function(e,t,r){var n=r?this.objectsByIndex[e]||(this.objectsByIndex[e]=new lT):this.primitives||(this.primitives=new uT),i=n.get(t);return i||n.set(t,i=new cT),i};var hT=new cT,dT=function(){var e,t,r=hT,n=arguments.length;for(e=0;e1&&arguments[1]);return mT([255&t,t>>8&255],10)}});var vT=C(DataView.prototype.getUint8);Wt({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(e){return vT(this,e)}});var DT=TypeError,yT=function(e){if("DataView"===Jt(e))return e;throw new DT("Argument is not a DataView")},ET=Math.f16round||function(e){return Ks(e,.0009765625,65504,6103515625e-14)},bT=au,wT=C(DataView.prototype.setUint16);Wt({target:"DataView",proto:!0},{setFloat16:function(e,t){yT(this);var r=Ws(e),n=bT(ET(t),10,2);return wT(this,r,n[1]<<8|n[0],arguments.length>2&&arguments[2])}});var _T=C(DataView.prototype.setUint8);Wt({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(e,t){yT(this);var r=Ws(e);return _T(this,r,KD(t))}});var TT=U("SuppressedError"),CT=ReferenceError,AT=we("dispose"),ST=we("toStringTag"),xT="DisposableStack",kT=dt.set,FT=dt.getterFor(xT),NT="sync-dispose",IT="disposed",OT=function(e){var t=FT(e);if(t.state===IT)throw new CT(xT+" already disposed");return t},RT=function(){kT(Gs(this,LT),{type:xT,state:"pending",stack:[]}),f||(this.disposed=!1)},LT=RT.prototype;js(LT,{dispose:function(){var e=FT(this);if(e.state!==IT){e.state=IT,f||(this.disposed=!0);for(var t,r=e.stack,n=r.length,i=!1;n;){var a=r[--n];r[n]=null;try{a()}catch(e){i?t=new TT(e,t):(i=!0,t=e)}}if(e.stack=null,i)throw t}},use:function(e){return n_(OT(this),e,NT),e},adopt:function(e,t){var r=OT(this);return te(t),n_(r,void 0,NT,(function(){t(e)})),e},defer:function(e){var t=OT(this);te(e),n_(t,void 0,NT,e)},move:function(){var e=OT(this),t=new RT;return FT(t).stack=e.stack,e.stack=[],e.state=IT,f||(this.disposed=!0),t}}),f&&Dr(LT,"disposed",{configurable:!0,get:function(){return FT(this).state===IT}}),pt(LT,AT,LT.dispose,{name:"dispose"}),pt(LT,ST,xT,{nonWritable:!0}),Wt({global:!0,constructor:!0},{DisposableStack:RT});var BT=function(){return C(te(this))};Wt({target:"Function",proto:!0,forced:!0},{demethodize:BT});var MT=Object.getOwnPropertyDescriptor,PT=/^\s*class\b/,UT=C(PT.exec);Wt({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(e){return M(e)&&!function(e){try{if(!f||!UT(PT,tt(e)))return!1}catch(e){}var t=MT(e,"prototype");return!!t&&pe(t,"writable")&&!t.writable}(e)}}),Wt({target:"Function",stat:!0,forced:!0},{isConstructor:Ur});var qT=Ve.f,zT=we("metadata"),jT=Function.prototype;void 0===jT[zT]&&qT(jT,zT,{value:null}),Wt({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:BT});var HT=lo.IteratorPrototype,GT="constructor",VT="Iterator",WT=we("toStringTag"),YT=TypeError,$T=h[VT],ZT=!M($T)||$T.prototype!==HT||!d((function(){$T({})})),XT=function(){if(Gs(this,HT),Mi(this)===HT)throw new YT("Abstract class Iterator not directly constructable")},KT=function(e,t){f?Dr(HT,e,{configurable:!0,get:function(){return t},set:function(t){if(Me(this),this===HT)throw new YT("You can't redefine this property");pe(this,e)?this[e]=t:ha(this,e,t)}}):HT[e]=t};pe(HT,WT)||KT(WT,VT),!ZT&&pe(HT,GT)&&HT[GT]!==Object||KT(GT,XT),XT.prototype=HT,Wt({global:!0,constructor:!0,forced:ZT},{Iterator:XT});var QT=lo.IteratorPrototype,JT=we("toStringTag"),eC="IteratorHelper",tC="WrapForValidIterator",rC=dt.set,nC=function(e){var t=dt.getterFor(e?tC:eC);return js(fr(QT),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var n=r.done?void 0:r.nextHandler();return To(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var i=re(n,"return");return i?g(i,n):To(void 0,!0)}if(r.inner)try{Wi(r.inner.iterator,"normal")}catch(e){return Wi(n,"throw",e)}return Wi(n,"normal"),To(void 0,!0)}})},iC=nC(!0),aC=nC(!1);We(aC,JT,"Iterator Helper");var oC=function(e,t){var r=function(r,n){n?(n.iterator=r.iterator,n.next=r.next):n=r,n.type=t?tC:eC,n.nextHandler=e,n.counter=0,n.done=!1,rC(this,n)};return r.prototype=t?iC:aC,r},sC=oC((function(){var e=this.iterator,t=Me(g(this.next,e));if(!(this.done=!!t.done))return ja(e,this.mapper,[t.value,this.counter++],!0)})),uC=function(e){return Me(this),te(e),new sC(qb(this),{mapper:e})},lC=function(e,t){return[t,e]},cC=function(){return g(uC,this,lC)};Wt({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:cC});var hC=lo.IteratorPrototype,dC=we("dispose");pe(hC,dC)||pt(hC,dC,(function(){var e=re(this,"return");e&&g(e,this)}));var fC=oC((function(){for(var e,t=this.iterator,r=this.next;this.remaining;)if(this.remaining--,e=Me(g(r,t)),this.done=!!e.done)return;if(e=Me(g(r,t)),!(this.done=!!e.done))return e.value}));Wt({target:"Iterator",proto:!0,real:!0,forced:ae},{drop:function(e){Me(this);var t=YD(B_(+e));return new fC(qb(this),{remaining:t})}}),Wt({target:"Iterator",proto:!0,real:!0},{every:function(e){Me(this),te(e);var t=qb(this),r=0;return!Xi(t,(function(t,n){if(!e(t,r++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var pC=oC((function(){for(var e,t,r=this.iterator,n=this.predicate,i=this.next;;){if(e=Me(g(i,r)),this.done=!!e.done)return;if(t=e.value,ja(r,n,[t,this.counter++],!0))return t}}));Wt({target:"Iterator",proto:!0,real:!0,forced:ae},{filter:function(e){return Me(this),te(e),new pC(qb(this),{predicate:e})}}),Wt({target:"Iterator",proto:!0,real:!0},{find:function(e){Me(this),te(e);var t=qb(this),r=0;return Xi(t,(function(t,n){if(e(t,r++))return n(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var mC=function(e,t){t&&"string"==typeof e||Me(e);var r=Hi(e);return qb(Me(void 0!==r?g(r,e):e))},gC=oC((function(){for(var e,t,r=this.iterator,n=this.mapper;;){if(t=this.inner)try{if(!(e=Me(g(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){Wi(r,"throw",e)}if(e=Me(g(this.next,r)),this.done=!!e.done)return;try{this.inner=mC(n(e.value,this.counter++),!1)}catch(e){Wi(r,"throw",e)}}}));Wt({target:"Iterator",proto:!0,real:!0,forced:ae},{flatMap:function(e){return Me(this),te(e),new gC(qb(this),{mapper:e,inner:null})}}),Wt({target:"Iterator",proto:!0,real:!0},{forEach:function(e){Me(this),te(e);var t=qb(this),r=0;Xi(t,(function(t){e(t,r++)}),{IS_RECORD:!0})}});var vC=lo.IteratorPrototype,DC=oC((function(){return g(this.next,this.iterator)}),!0);Wt({target:"Iterator",stat:!0,forced:ae},{from:function(e){var t=mC("string"==typeof e?de(e):e,!0);return q(vC,t.iterator)?t.iterator:new DC(t)}}),Wt({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:cC}),Wt({target:"Iterator",proto:!0,real:!0,forced:ae},{map:uC});var yC=TypeError;Wt({target:"Iterator",stat:!0,forced:!0},{range:function(e,t,r){if("number"==typeof e)return new aT(e,t,r,"number",0,1);if("bigint"==typeof e)return new aT(e,t,r,"bigint",BigInt(0),BigInt(1));throw new yC("Incorrect Iterator.range arguments")}});var EC=TypeError;Wt({target:"Iterator",proto:!0,real:!0},{reduce:function(e){Me(this),te(e);var t=qb(this),r=arguments.length<2,n=r?void 0:arguments[1],i=0;if(Xi(t,(function(t){r?(r=!1,n=t):n=e(n,t,i),i++}),{IS_RECORD:!0}),r)throw new EC("Reduce of empty iterator with no initial value");return n}}),Wt({target:"Iterator",proto:!0,real:!0},{some:function(e){Me(this),te(e);var t=qb(this),r=0;return Xi(t,(function(t,n){if(e(t,r++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var bC=oC((function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,Wi(e,"normal",void 0);var t=Me(g(this.next,e));return(this.done=!!t.done)?void 0:t.value}));Wt({target:"Iterator",proto:!0,real:!0,forced:ae},{take:function(e){Me(this);var t=YD(B_(+e));return new bC(qb(this),{remaining:t})}});var wC=[].push;Wt({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return Xi(qb(Me(this)),wC,{that:e,IS_RECORD:!0}),e}}),Wt({target:"Iterator",proto:!0,real:!0,forced:ae},{toAsync:function(){return new V_(qb(new Ub(qb(Me(this)))))}});var _C=!d((function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})),TC=dt.get,CC=function(e){if(!P(e))return!1;var t=TC(e);return!!t&&"RawJSON"===t.type};Wt({target:"JSON",stat:!0,forced:!_C},{isRawJSON:CC});var AC=SyntaxError,SC=parseInt,xC=String.fromCharCode,kC=C("".charAt),FC=C("".slice),NC=C(/./.exec),IC={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},OC=/^[\da-f]{4}$/i,RC=/^[\u0000-\u001F]$/,LC=function(e,t){for(var r=!0,n="";t1?arguments[1]:void 0);return!1!==vw(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var _A=Pc.Map,TA=Pc.set;Wt({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=DA(this),r=kr(e,arguments.length>1?arguments[1]:void 0),n=new _A;return vw(t,(function(e,i){r(e,i,t)&&TA(n,i,e)})),n}}),Wt({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=DA(this),r=kr(e,arguments.length>1?arguments[1]:void 0),n=vw(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}}),Wt({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=DA(this),r=kr(e,arguments.length>1?arguments[1]:void 0),n=vw(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var CA=function(e,t,r){return function(n){var i=de(n),a=arguments.length,o=a>1?arguments[1]:void 0,s=void 0!==o,u=s?kr(o,a>2?arguments[2]:void 0):void 0,l=new e,c=0;return Xi(i,(function(e){var n=s?u(e,c++):e;r?t(l,Me(n)[0],n[1]):t(l,n)})),l}};Wt({target:"Map",stat:!0,forced:!0},{from:CA(Pc.Map,Pc.set,!0)});Wt({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===vw(DA(this),(function(t){if(function(e,t){return e===t||e!=e&&t!=t}(t,e))return!0}),!0)}});var AA=Pc.Map;Wt({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(M(this)?this:AA);te(t);var n=te(r.set);return Xi(e,(function(e){g(n,r,t(e),e)})),r}}),Wt({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=vw(DA(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var SA=Pc.Map,xA=Pc.set;Wt({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=DA(this),r=kr(e,arguments.length>1?arguments[1]:void 0),n=new SA;return vw(t,(function(e,i){xA(n,r(e,i,t),e)})),n}});var kA=Pc.Map,FA=Pc.set;Wt({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=DA(this),r=kr(e,arguments.length>1?arguments[1]:void 0),n=new kA;return vw(t,(function(e,i){FA(n,i,r(e,i,t))})),n}});var NA=Pc.set;Wt({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=DA(this),r=arguments.length,n=0;n1?arguments[1]:void 0);return!0===vw(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var RA=TypeError,LA=Pc.get,BA=Pc.has,MA=Pc.set;Wt({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=DA(this),n=arguments.length;te(t);var i=BA(r,e);if(!i&&n<3)throw new RA("Updating absent value");var a=i?LA(r,e):te(n>2?arguments[2]:void 0)(e,r);return MA(r,e,t(a,e,r)),r}});var PA=TypeError,UA=function(e,t){var r,n=Me(this),i=te(n.get),a=te(n.has),o=te(n.set),s=arguments.length>2?arguments[2]:void 0;if(!M(t)&&!M(s))throw new PA("At least one callback required");return g(a,n,e)?(r=g(i,n,e),M(t)&&(r=t(r),g(o,n,e,r))):M(s)&&(r=s(),g(o,n,e,r)),r};Wt({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:UA}),Wt({target:"Map",proto:!0,real:!0,forced:!0},{upsert:UA});var qA=Math.min,zA=Math.max;Wt({target:"Math",stat:!0,forced:!0},{clamp:function(e,t,r){return qA(r,zA(t,e))}}),Wt({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180});var jA=180/Math.PI;Wt({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*jA}});var HA=Math.scale||function(e,t,r,n,i){var a=+e,o=+t,s=+r,u=+n,l=+i;return a!=a||o!=o||s!=s||u!=u||l!=l?NaN:a===1/0||a===-1/0?a:(a-o)*(l-u)/(s-o)+u};Wt({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,r,n,i){return Qs(HA(e,t,r,n,i))}}),Wt({target:"Math",stat:!0},{f16round:ET}),Wt({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,r,n){var i=e>>>0,a=r>>>0;return(t>>>0)+(n>>>0)+((i&a|(i|a)&~(i+a>>>0))>>>31)|0}}),Wt({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var r=65535,n=+e,i=+t,a=n&r,o=i&r,s=n>>16,u=i>>16,l=(s*o>>>0)+(a*o>>>16);return s*u+(l>>16)+((a*u>>>0)+(l&r)>>16)}}),Wt({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,r,n){var i=e>>>0,a=r>>>0;return(t>>>0)-(n>>>0)-((~i&a|~(i^a)&i-a>>>0)>>>31)|0}}),Wt({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI});var GA=Math.PI/180;Wt({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*GA}}),Wt({target:"Math",stat:!0,forced:!0},{scale:HA});var VA="Seeded Random",WA=VA+" Generator",YA=dt.set,$A=dt.getterFor(WA),ZA=TypeError,XA=fo((function(e){YA(this,{type:WA,seed:e%2147483647})}),VA,(function(){var e=$A(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return To((1073741823&t)/1073741823,!1)}));Wt({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=Me(e).seed;if(!Jh(t))throw new ZA('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new XA(t)}}),Wt({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t==t&&0===t?1/t==-1/0:t<0}}),Wt({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var r=65535,n=+e,i=+t,a=n&r,o=i&r,s=n>>>16,u=i>>>16,l=(s*o>>>0)+(a*o>>>16);return s*u+(l>>>16)+((a*u>>>0)+(l&r)>>>16)}});var KA="Invalid number representation",QA=RangeError,JA=SyntaxError,eS=TypeError,tS=parseInt,rS=Math.pow,nS=/^[\d.a-z]+$/,iS=C("".charAt),aS=C(nS.exec),oS=C(1..toString),sS=C("".slice),uS=C("".split);Wt({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var r=1;if("string"!=typeof e)throw new eS(KA);if(!e.length)throw new JA(KA);if("-"===iS(e,0)&&(r=-1,!(e=sS(e,1)).length))throw new JA(KA);var n=void 0===t?10:Dt(t);if(n<2||n>36)throw new QA("Invalid radix");if(!aS(nS,e))throw new JA(KA);var i=uS(e,"."),a=tS(i[0],n);if(i.length>1&&(a+=tS(i[1],n)/rS(n,i[1].length)),10===n&&oS(a,n)!==e)throw new JA(KA);return r*a}}),Wt({target:"Number",stat:!0,forced:!0},{range:function(e,t,r){return new aT(e,t,r,"number",0,1)}});var lS="Object Iterator",cS=dt.set,hS=dt.getterFor(lS),dS=fo((function(e,t){var r=de(e);cS(this,{type:lS,mode:t,object:r,keys:rr(r),index:0})}),"Object",(function(){for(var e=hS(this),t=e.keys;;){if(null===t||e.index>=t.length)return e.object=e.keys=null,To(void 0,!0);var r=t[e.index++],n=e.object;if(pe(n,r)){switch(e.mode){case"keys":return To(r,!1);case"values":return To(n[r],!1)}return To([r,n[r]],!1)}}}));Wt({target:"Object",stat:!0,forced:!0},{iterateEntries:function(e){return new dS(e,"entries")}}),Wt({target:"Object",stat:!0,forced:!0},{iterateKeys:function(e){return new dS(e,"keys")}}),Wt({target:"Object",stat:!0,forced:!0},{iterateValues:function(e){return new dS(e,"values")}});var fS=we("observable"),pS="Observable",mS="Subscription",gS="SubscriptionObserver",vS=dt.getterFor,DS=dt.set,yS=vS(pS),ES=vS(mS),bS=vS(gS),wS=function(e){this.observer=Me(e),this.cleanup=void 0,this.subscriptionObserver=void 0};wS.prototype={type:mS,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(e){Ep(e)}}},close:function(){if(!f){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return void 0===this.observer}};var _S=function(e,t){var r,n=DS(this,new wS(e));f||(this.closed=!1);try{(r=re(e,"start"))&&g(r,e,this)}catch(e){Ep(e)}if(!n.isClosed()){var i=n.subscriptionObserver=new TS(n);try{var a=t(i),o=a;I(a)||(n.cleanup=M(a.unsubscribe)?function(){o.unsubscribe()}:te(a))}catch(e){return void i.error(e)}n.isClosed()&&n.clean()}};_S.prototype=js({},{unsubscribe:function(){var e=ES(this);e.isClosed()||(e.close(),e.clean())}}),f&&Dr(_S.prototype,"closed",{configurable:!0,get:function(){return ES(this).isClosed()}});var TS=function(e){DS(this,{type:gS,subscriptionState:e}),f||(this.closed=!1)};TS.prototype=js({},{next:function(e){var t=bS(this).subscriptionState;if(!t.isClosed()){var r=t.observer;try{var n=re(r,"next");n&&g(n,r,e)}catch(e){Ep(e)}}},error:function(e){var t=bS(this).subscriptionState;if(!t.isClosed()){var r=t.observer;t.close();try{var n=re(r,"error");n?g(n,r,e):Ep(e)}catch(e){Ep(e)}t.clean()}},complete:function(){var e=bS(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var r=re(t,"complete");r&&g(r,t)}catch(e){Ep(e)}e.clean()}}}),f&&Dr(TS.prototype,"closed",{configurable:!0,get:function(){return bS(this).subscriptionState.isClosed()}});var CS=function(e){Gs(this,AS),DS(this,{type:pS,subscriber:te(e)})},AS=CS.prototype;js(AS,{subscribe:function(e){var t=arguments.length;return new _S(M(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:P(e)?e:{},yS(this).subscriber)}}),pt(AS,fS,(function(){return this})),Wt({global:!0,constructor:!0,forced:!0},{Observable:CS}),Ts(pS);var SS=we("observable");Wt({target:"Observable",stat:!0,forced:!0},{from:function(e){var t=Ur(this)?this:U("Observable"),r=re(Me(e),SS);if(r){var n=Me(g(r,e));return n.constructor===t?n:new t((function(e){return n.subscribe(e)}))}var i=Vi(e);return new t((function(e){Xi(i,(function(t,r){if(e.next(t),e.closed)return r()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}});var xS=U("Array");Wt({target:"Observable",stat:!0,forced:!0},{of:function(){for(var e=Ur(this)?this:U("Observable"),t=arguments.length,r=xS(t),n=0;n?@[\\\\\\]^`{|}~"+Oh+"]","g");Wt({target:"RegExp",stat:!0,forced:!0},{escape:function(e){var t=tr(e),r=sx(t,0);return(r>47&&r<58?"\\x3":"")+ux(t,lx,"\\$&")}});var cx=Set.prototype,hx={Set:Set,add:C(cx.add),has:C(cx.has),remove:C(cx.delete),proto:cx},dx=hx.has,fx=function(e){return dx(e),e},px=hx.add;Wt({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=fx(this),t=0,r=arguments.length;t1?arguments[1]:void 0);return!1!==bx(t,(function(e){if(!r(e,e,t))return!1}),!0)}});var zx=hx.Set,jx=hx.add;Wt({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=fx(this),r=kr(e,arguments.length>1?arguments[1]:void 0),n=new zx;return bx(t,(function(e){r(e,e,t)&&jx(n,e)})),n}}),Wt({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=fx(this),r=kr(e,arguments.length>1?arguments[1]:void 0),n=bx(t,(function(e){if(r(e,e,t))return{value:e}}),!0);return n&&n.value}}),Wt({target:"Set",stat:!0,forced:!0},{from:CA(hx.Set,hx.add,!1)});var Hx=hx.Set,Gx=hx.add,Vx=hx.has,Wx=function(e){var t=fx(this),r=Nx(e),n=new Hx;return Cx(t)>r.size?hw(r.getIterator(),(function(e){Vx(t,e)&&Gx(n,e)})):bx(t,(function(e){r.includes(e)&&Gx(n,e)})),n},Yx=!Bx("intersection")||d((function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}));Wt({target:"Set",proto:!0,real:!0,forced:Yx},{intersection:Wx}),Wt({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return g(Wx,this,qx(e))}});var $x=hx.has,Zx=function(e){var t=fx(this),r=Nx(e);if(Cx(t)<=r.size)return!1!==bx(t,(function(e){if(r.includes(e))return!1}),!0);var n=r.getIterator();return!1!==hw(n,(function(e){if($x(t,e))return Wi(n,"normal",!1)}))};Wt({target:"Set",proto:!0,real:!0,forced:!Bx("isDisjointFrom")},{isDisjointFrom:Zx}),Wt({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return g(Zx,this,qx(e))}});var Xx=function(e){var t=fx(this),r=Nx(e);return!(Cx(t)>r.size)&&!1!==bx(t,(function(e){if(!r.includes(e))return!1}),!0)};Wt({target:"Set",proto:!0,real:!0,forced:!Bx("isSubsetOf")},{isSubsetOf:Xx}),Wt({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return g(Xx,this,qx(e))}});var Kx=hx.has,Qx=function(e){var t=fx(this),r=Nx(e);if(Cx(t)1?arguments[1]:void 0),n=new tk;return bx(t,(function(e){rk(n,r(e,e,t))})),n}}),Wt({target:"Set",stat:!0,forced:!0},{of:IA(hx.Set,hx.add,!1)});var nk=TypeError;Wt({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=fx(this),r=arguments.length<2,n=r?void 0:arguments[1];if(te(e),bx(t,(function(i){r?(r=!1,n=i):n=e(n,i,i,t)})),r)throw new nk("Reduce of empty set with no initial value");return n}}),Wt({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=fx(this),r=kr(e,arguments.length>1?arguments[1]:void 0);return!0===bx(t,(function(e){if(r(e,e,t))return!0}),!0)}});var ik=hx.add,ak=hx.has,ok=hx.remove,sk=function(e){var t=fx(this),r=Nx(e).getIterator(),n=Tx(t);return hw(r,(function(e){ak(t,e)?ok(n,e):ik(n,e)})),n};Wt({target:"Set",proto:!0,real:!0,forced:!Bx("symmetricDifference")},{symmetricDifference:sk}),Wt({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return g(sk,this,qx(e))}});var uk=hx.add,lk=function(e){var t=fx(this),r=Nx(e).getIterator(),n=Tx(t);return hw(r,(function(e){uk(n,e)})),n};Wt({target:"Set",proto:!0,real:!0,forced:!Bx("union")},{union:lk}),Wt({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return g(lk,this,qx(e))}});var ck=Yg.charAt;Wt({target:"String",proto:!0,forced:!0},{at:function(e){var t=tr(R(this)),r=t.length,n=Dt(e),i=n>=0?n:r+n;return i<0||i>=r?void 0:ck(t,i)}});var hk=TypeError,dk=C([].push),fk=C([].join),pk=function(e){var t=L(e),r=Tt(t);if(!r)return"";for(var n=arguments.length,i=[],a=0;;){var o=t[a++];if(void 0===o)throw new hk("Incorrect template");if(dk(i,tr(o)),a===r)return fk(i,"");a=r.length?To(void 0,!0):(e=gk(r,n),t.index+=e.length,To({codePoint:mk(e,0),position:n},!1))}));Wt({target:"String",proto:!0,forced:!0},{codePoints:function(){return new Ek(tr(R(this)))}});var bk=WeakMap.prototype,wk={WeakMap:WeakMap,set:C(bk.set),get:C(bk.get),has:C(bk.has),remove:C(bk.delete)},_k=String.fromCharCode,Tk=U("String","fromCodePoint"),Ck=C("".charAt),Ak=C("".charCodeAt),Sk=C("".indexOf),xk=C("".slice),kk=function(e,t){var r=Ak(e,t);return r>=48&&r<=57},Fk=function(e,t,r){if(r>=e.length)return-1;for(var n=0;t=48&&e<=57?e-48:e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:-1},Ik=function(e){for(var t,r="",n=0,i=0;(i=Sk(e,"\\",i))>-1;){if(r+=xk(e,n,i),++i===e.length)return;var a=Ck(e,i++);switch(a){case"b":r+="\b";break;case"t":r+="\t";break;case"n":r+="\n";break;case"v":r+="\v";break;case"f":r+="\f";break;case"r":r+="\r";break;case"\r":i1114111)return;r+=Tk(t);break;default:if(kk(a,0))return;r+=a}n=i}return r+xk(e,n)},Ok=Ve.f,Rk=new wk.WeakMap,Lk=wk.get,Bk=wk.has,Mk=wk.set,Pk=Array,Uk=TypeError,qk=Object.freeze||Object,zk=Object.isFrozen,jk=Math.min,Hk=C("".charAt),Gk=C("".slice),Vk=C("".split),Wk=C(/./.exec),Yk=/([\n\u2028\u2029]|\r\n?)/g,$k=RegExp("^["+Oh+"]*"),Zk=RegExp("[^"+Oh+"]"),Xk="Invalid tag",Kk=function(e){var t,r,n,i,a=de(e),o=Tt(a),s=Pk(o),u=Pk(o),l=0;if(!o)throw new Uk(Xk);for(;l0)throw new Uk("Invalid opening line");t[1]=""}if(h){if(1===t.length||Wk(Zk,t[t.length-1]))throw new Uk("Invalid closing line");t[t.length-2]="",t[t.length-1]=""}for(var d=2;d1?arguments[1]:void 0,i=r>2?arguments[2]:void 0;return new(U("Promise"))((function(r){pl(t),r(Kb(e,n,i))})).then((function(e){return Fs(TF(t),e)}))}),!0);var CF=Vr.filterReject,AF=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("filterOut",(function(e){var t=CF(AF(this),e,arguments.length>1?arguments[1]:void 0);return my(this,t)}),!0);var SF=Vr.filterReject,xF=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("filterReject",(function(e){var t=SF(xF(this),e,arguments.length>1?arguments[1]:void 0);return my(this,t)}),!0);var kF=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("groupBy",(function(e){var t=arguments.length>1?arguments[1]:void 0;return rw(kF(this),e,t,py)}),!0);var FF=dl.aTypedArray,NF=dl.getTypedArrayConstructor,IF=dl.exportTypedArrayMethod,OF=Math.max,RF=Math.min;IF("toSpliced",(function(e,t){var r,n,i,a,o,s,u,l=FF(this),c=NF(l),h=Tt(l),d=bt(e,h),f=arguments.length,p=0;if(0===f)r=n=0;else if(1===f)r=0,n=h-d;else if(n=RF(OF(Dt(t),0),h-d),r=f-2){a=new c(r),i=QD(a);for(var m=2;m1?zF(arguments[1]):void 0,r="base64"===XF(t)?KF:QF,n=!!t&&!!t.strict,i=n?e:rN(e,aN,"");if(i.length%4==0)"=="===nN(i,-2)?i=nN(i,0,-2):"="===nN(i,-1)&&(i=nN(i,0,-1));else if(n)throw new eN("Input is not correctly padded");var a=i.length%4;switch(a){case 1:throw new eN("Bad input length");case 2:i+="AA";break;case 3:i+="A"}for(var o=[],s=0,u=i.length,l=function(e){var t=tN(i,s+e);if(!pe(r,t))throw new eN('Bad char in input: "'+t+'"');return r[t]<<18-6*e};s>16&255,c>>8&255,255&c)}var h=o.length;if(2===a){if(n&&0!==o[h-2])throw new eN(oN);h-=2}else if(3===a){if(n&&0!==o[h-1])throw new eN(oN);h--}return Fs(JF,o,h)}});var sN=h.Uint8Array,uN=h.SyntaxError,lN=h.parseInt,cN=/[^\da-f]/i,hN=C(cN.exec),dN=C("".slice);sN&&Wt({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(e){HF(e);var t=e.length;if(t%2)throw new uN("String should have an even number of characters");if(hN(cN,e))throw new uN("String should only contain hex characters");for(var r=new sN(t/2),n=0;n>6*t&63)};a+2>(-2*s&6)));return a}});var YN=$F.i2c,$N=U("btoa"),ZN=C("".charAt),XN=C("".charCodeAt),KN=!!$N&&!d((function(){return"aGk="!==$N("hi")})),QN=KN&&!d((function(){$N()})),JN=KN&&d((function(){return"bnVsbA=="!==$N(null)})),eI=KN&&1!==$N.length;Wt({global:!0,bind:!0,enumerable:!0,forced:!KN||QN||JN||eI},{btoa:function(e){if(Mf(arguments.length,1),KN)return g($N,h,tr(e));for(var t,r,n=tr(e),i="",a=0,o=YN;ZN(n,a)||(o="=",a%1);){if((r=XN(n,a+=3/4))>255)throw new(U("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");i+=ZN(o,63&(t=t<<8|r)>>8-a%1*8)}return i}});var tI={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},rI=ke("span").classList,nI=rI&&rI.constructor&&rI.constructor.prototype,iI=nI===Object.prototype?void 0:nI,aI=function(e){if(e&&e.forEach!==za)try{We(e,"forEach",za)}catch(t){e.forEach=za}};for(var oI in tI)tI[oI]&&aI(h[oI]&&h[oI].prototype);aI(iI);var sI=we("iterator"),uI=ko.values,lI=function(e,t){if(e){if(e[sI]!==uI)try{We(e,sI,uI)}catch(t){e[sI]=uI}if(Ar(e,t,!0),tI[t])for(var r in ko)if(e[r]!==ko[r])try{We(e,r,ko[r])}catch(t){e[r]=ko[r]}}};for(var cI in tI)lI(h[cI]&&h[cI].prototype,cI);lI(iI,"DOMTokenList");var hI={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},dI=Ve.f,fI="DOMException",pI="DATA_CLONE_ERR",mI=U("Error"),gI=U(fI)||function(){try{(new(U("MessageChannel")||Iw("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===pI&&25===e.code)return e.constructor}}(),vI=gI&&gI.prototype,DI=mI.prototype,yI=dt.set,EI=dt.getterFor(fI),bI="stack"in new mI(fI),wI=function(e){return pe(hI,e)&&hI[e].m?hI[e].c:0},_I=function(){Gs(this,TI);var e=arguments.length,t=fi(e<1?void 0:arguments[0]),r=fi(e<2?void 0:arguments[1],"Error"),n=wI(r);if(yI(this,{type:fI,name:r,message:t,code:n}),f||(this.name=r,this.message=t,this.code=n),bI){var i=new mI(t);i.name=fI,dI(this,"stack",b(1,Ei(i.stack,1)))}},TI=_I.prototype=fr(DI),CI=function(e){return{enumerable:!0,configurable:!0,get:e}},AI=function(e){return CI((function(){return EI(this)[e]}))};f&&(Dr(TI,"code",AI("code")),Dr(TI,"message",AI("message")),Dr(TI,"name",AI("name"))),dI(TI,"constructor",b(1,_I));var SI=d((function(){return!(new gI instanceof mI)})),xI=SI||d((function(){return DI.toString!==Ni||"2: 1"!==String(new gI(1,2))})),kI=SI||d((function(){return 25!==new gI(1,"DataCloneError").code}));SI||25!==gI[pI]||vI[pI];Wt({global:!0,constructor:!0,forced:SI},{DOMException:SI?_I:gI});var FI=U(fI),NI=FI.prototype;for(var II in xI&&gI===FI&&pt(NI,"toString",Ni),kI&&f&&gI===FI&&Dr(NI,"code",CI((function(){return wI(Me(this).name)}))),hI)if(pe(hI,II)){var OI=hI[II],RI=OI.s,LI=b(6,OI.c);pe(FI,RI)||dI(FI,RI,LI),pe(NI,RI)||dI(NI,RI,LI)}var BI=Ve.f,MI="DOMException",PI=U("Error"),UI=U(MI),qI=function(){Gs(this,zI);var e=arguments.length,t=fi(e<1?void 0:arguments[0]),r=fi(e<2?void 0:arguments[1],"Error"),n=new UI(t,r),i=new PI(t);return i.name=MI,BI(n,"stack",b(1,Ei(i.stack,1))),di(n,this,qI),n},zI=qI.prototype=UI.prototype,jI="stack"in new PI(MI),HI="stack"in new UI(1,2),GI=UI&&f&&Object.getOwnPropertyDescriptor(h,MI),VI=!(!GI||GI.writable&&GI.configurable),WI=jI&&!VI&&!HI;Wt({global:!0,constructor:!0,forced:WI},{DOMException:WI?qI:UI});var YI=U(MI),$I=YI.prototype;if($I.constructor!==YI)for(var ZI in BI($I,"constructor",b(1,YI)),hI)if(pe(hI,ZI)){var XI=hI[ZI],KI=XI.s;pe(YI,KI)||BI(YI,KI,b(6,XI.c))}var QI="DOMException";Ar(U(QI),QI);var JI=Jf.clear;Wt({global:!0,bind:!0,enumerable:!0,forced:h.clearImmediate!==JI},{clearImmediate:JI});var eO="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,tO=h.Function,rO=/MSIE .\./.test(z)||eO&&function(){var e=h.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}(),nO=function(e,t){var r=t?2:1;return rO?function(n,i){var a=Mf(arguments.length,1)>r,o=M(n)?n:tO(n),s=a?pr(arguments,r):[],u=a?function(){Fn(o,this,s)}:o;return t?e(u,i):e(u)}:e},iO=Jf.set,aO=h.setImmediate?nO(iO,!1):iO;Wt({global:!0,bind:!0,enumerable:!0,forced:h.setImmediate!==aO},{setImmediate:aO}),Wt({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){Mf(arguments.length,1),yp(te(e))}});var oO=TypeError,sO=Object.defineProperty,uO=h.self!==h;try{if(f){var lO=Object.getOwnPropertyDescriptor(h,"self");!uO&&lO&&lO.get&&lO.enumerable||Dr(h,"self",{get:function(){return h},set:function(e){if(this!==h)throw new oO("Illegal invocation");sO(h,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else Wt({global:!0,simple:!0,forced:uO},{self:h})}catch(Zre){}var cO,hO=h.Object,dO=h.Array,fO=h.Date,pO=h.Error,mO=h.TypeError,gO=h.PerformanceMark,vO=U("DOMException"),DO=Pc.Map,yO=Pc.has,EO=Pc.get,bO=Pc.set,wO=hx.Set,_O=hx.add,TO=hx.has,CO=U("Object","keys"),AO=C([].push),SO=C((!0).valueOf),xO=C(1..valueOf),kO=C("".valueOf),FO=C(fO.prototype.getTime),NO=De("structuredClone"),IO="DataCloneError",OO="Transferring",RO=function(e){return!d((function(){var t=new h.Set([7]),r=e(t),n=e(hO(7));return r===t||!r.has(7)||!P(n)||7!=+n}))&&e},LO=function(e,t){return!d((function(){var r=new t,n=e({a:r,b:r});return!(n&&n.a===n.b&&n.a instanceof t&&n.a.stack===r.stack)}))},BO=h.structuredClone,MO=!LO(BO,pO)||!LO(BO,vO)||(cO=BO,!!d((function(){var e=cO(new h.AggregateError([1],NO,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==NO||3!==e.cause}))),PO=!BO&&RO((function(e){return new gO(NO,{detail:e}).detail})),UO=RO(BO)||PO,qO=function(e){throw new vO("Uncloneable type: "+e,IO)},zO=function(e,t){throw new vO((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",IO)},jO=function(e,t){return UO||zO(t),UO(e)},HO=function(e,t,r){if(yO(t,e))return EO(t,e);var n,i,a,o,s,u;if("SharedArrayBuffer"===(r||Jt(e)))n=UO?UO(e):e;else{var l=h.DataView;l||M(e.slice)||zO("ArrayBuffer");try{if(M(e.slice)&&!e.resizable)n=e.slice(0);else{i=e.byteLength,a="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,n=new ArrayBuffer(i,a),o=new l(e),s=new l(n);for(u=0;u1&&!I(arguments[1])?Me(arguments[1]):void 0,i=n?n.transfer:void 0;void 0!==i&&(r=function(e,t){if(!P(e))throw new mO("Transfer option cannot be converted to a sequence");var r=[];Xi(e,(function(e){AO(r,Me(e))}));for(var n,i,a,o,s,u=0,l=Tt(r),c=new wO;u>1,e+=tR(e/t);e>455;)e=tR(e/35),n+=36;return tR(n+36*e/(e+38))},hR=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r=55296&&i<=56319&&r=a&&ntR((ZO-o)/h))throw new JO(QO);for(o+=(c-a)*h,a=c,r=0;rZO)throw new JO(QO);if(n===a){for(var d=o,f=36;;){var p=f<=s?1:f>=s+26?26:f-s;if(d=t.length)return e.target=void 0,To(void 0,!0);var n=t[r];switch(e.kind){case"keys":return To(n.key,!1);case"values":return To(n.value,!1)}return To([n.key,n.value],!1)}),!0),VR=function(e){this.entries=[],this.url=null,void 0!==e&&(P(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===SR(e,0)?RR(e,1):e:tr(e)))};VR.prototype={type:fR,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,a,o,s,u=this.entries,l=Hi(e);if(l)for(r=(t=Vi(e,l)).next;!(n=g(r,t)).done;){if(a=(i=Vi(Me(n.value))).next,(o=g(a,i)).done||(s=g(a,i)).done||!g(a,i).done)throw new TR("Expected sequence with length 2");kR(u,{key:tr(o.value),value:tr(s.value)})}else for(var c in e)pe(e,c)&&kR(u,{key:c,value:tr(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=OR(e,"&"),a=0;a0?arguments[0]:void 0));f||(this.size=e.entries.length)},YR=WR.prototype;if(js(YR,{append:function(e,t){var r=gR(this);Mf(arguments.length,2),kR(r.entries,{key:tr(e),value:tr(t)}),f||this.length++,r.updateURL()},delete:function(e){for(var t=gR(this),r=Mf(arguments.length,1),n=t.entries,i=tr(e),a=r<2?void 0:arguments[1],o=void 0===a?a:tr(a),s=0;st.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=gR(this).entries,n=kr(e,arguments.length>1?arguments[1]:void 0),i=0;i1?XR(arguments[1]):{})}}),M(yR)){var KR=function(e){return Gs(this,bR),new yR(e,arguments.length>1?XR(arguments[1]):{})};bR.constructor=KR,KR.prototype=bR,Wt({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:KR})}}var QR,JR={URLSearchParams:WR,getState:gR},eL=Yg.codeAt,tL=dt.set,rL=dt.getterFor("URL"),nL=JR.URLSearchParams,iL=JR.getState,aL=h.URL,oL=h.TypeError,sL=h.parseInt,uL=Math.floor,lL=Math.pow,cL=C("".charAt),hL=C(/./.exec),dL=C([].join),fL=C(1..toString),pL=C([].pop),mL=C([].push),gL=C("".replace),vL=C([].shift),DL=C("".split),yL=C("".slice),EL=C("".toLowerCase),bL=C([].unshift),wL="Invalid scheme",_L="Invalid host",TL="Invalid port",CL=/[a-z]/i,AL=/[\d+-.a-z]/i,SL=/\d/,xL=/^0x/i,kL=/^[0-7]+$/,FL=/^\d+$/,NL=/^[\da-f]+$/i,IL=/[\0\t\n\r #%/:<>?@[\\\]^|]/,OL=/[\0\t\n\r #/:<>?@[\\\]^|]/,RL=/^[\u0000-\u0020]+/,LL=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,BL=/[\t\n\r]/g,ML=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)bL(t,e%256),e=uL(e/256);return dL(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,a=0;a<8;a++)0!==e[a]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=a),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=fL(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},PL={},UL=Gd({},PL,{" ":1,'"':1,"<":1,">":1,"`":1}),qL=Gd({},UL,{"#":1,"?":1,"{":1,"}":1}),zL=Gd({},qL,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),jL=function(e,t){var r=eL(e,0);return r>32&&r<127&&!pe(t,e)?e:encodeURIComponent(e)},HL={ftp:21,file:null,http:80,https:443,ws:80,wss:443},GL=function(e,t){var r;return 2===e.length&&hL(CL,cL(e,0))&&(":"===(r=cL(e,1))||!t&&"|"===r)},VL=function(e){var t;return e.length>1&&GL(yL(e,0,2))&&(2===e.length||"/"===(t=cL(e,2))||"\\"===t||"?"===t||"#"===t)},WL=function(e){return"."===e||"%2e"===EL(e)},YL={},$L={},ZL={},XL={},KL={},QL={},JL={},eB={},tB={},rB={},nB={},iB={},aB={},oB={},sB={},uB={},lB={},cB={},hB={},dB={},fB={},pB=function(e,t,r){var n,i,a,o=tr(e);if(t){if(i=this.parse(o))throw new oL(i);this.searchParams=null}else{if(void 0!==r&&(n=new pB(r,!0)),i=this.parse(o,null,n))throw new oL(i);(a=iL(new nL)).bindURL(this),this.searchParams=a}};pB.prototype={type:"URL",parse:function(e,t,r){var n,i,a,o,s,u=this,l=t||YL,c=0,h="",d=!1,f=!1,p=!1;for(e=tr(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=gL(e,RL,""),e=gL(e,LL,"$1")),e=gL(e,BL,""),n=Ga(e);c<=n.length;){switch(i=n[c],l){case YL:if(!i||!hL(CL,i)){if(t)return wL;l=ZL;continue}h+=EL(i),l=$L;break;case $L:if(i&&(hL(AL,i)||"+"===i||"-"===i||"."===i))h+=EL(i);else{if(":"!==i){if(t)return wL;h="",l=ZL,c=0;continue}if(t&&(u.isSpecial()!==pe(HL,h)||"file"===h&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=h,t)return void(u.isSpecial()&&HL[u.scheme]===u.port&&(u.port=null));h="","file"===u.scheme?l=oB:u.isSpecial()&&r&&r.scheme===u.scheme?l=XL:u.isSpecial()?l=eB:"/"===n[c+1]?(l=KL,c++):(u.cannotBeABaseURL=!0,mL(u.path,""),l=hB)}break;case ZL:if(!r||r.cannotBeABaseURL&&"#"!==i)return wL;if(r.cannotBeABaseURL&&"#"===i){u.scheme=r.scheme,u.path=pr(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,l=fB;break}l="file"===r.scheme?oB:QL;continue;case XL:if("/"!==i||"/"!==n[c+1]){l=QL;continue}l=tB,c++;break;case KL:if("/"===i){l=rB;break}l=cB;continue;case QL:if(u.scheme=r.scheme,i===QR)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=pr(r.path),u.query=r.query;else if("/"===i||"\\"===i&&u.isSpecial())l=JL;else if("?"===i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=pr(r.path),u.query="",l=dB;else{if("#"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=pr(r.path),u.path.length--,l=cB;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=pr(r.path),u.query=r.query,u.fragment="",l=fB}break;case JL:if(!u.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,l=cB;continue}l=rB}else l=tB;break;case eB:if(l=tB,"/"!==i||"/"!==cL(h,c+1))continue;c++;break;case tB:if("/"!==i&&"\\"!==i){l=rB;continue}break;case rB:if("@"===i){d&&(h="%40"+h),d=!0,a=Ga(h);for(var m=0;m65535)return TL;u.port=u.isSpecial()&&D===HL[u.scheme]?null:D,h=""}if(t)return;l=lB;continue}return TL}h+=i;break;case oB:if(u.scheme="file","/"===i||"\\"===i)l=sB;else{if(!r||"file"!==r.scheme){l=cB;continue}switch(i){case QR:u.host=r.host,u.path=pr(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=pr(r.path),u.query="",l=dB;break;case"#":u.host=r.host,u.path=pr(r.path),u.query=r.query,u.fragment="",l=fB;break;default:VL(dL(pr(n,c),""))||(u.host=r.host,u.path=pr(r.path),u.shortenPath()),l=cB;continue}}break;case sB:if("/"===i||"\\"===i){l=uB;break}r&&"file"===r.scheme&&!VL(dL(pr(n,c),""))&&(GL(r.path[0],!0)?mL(u.path,r.path[0]):u.host=r.host),l=cB;continue;case uB:if(i===QR||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&GL(h))l=cB;else if(""===h){if(u.host="",t)return;l=lB}else{if(o=u.parseHost(h))return o;if("localhost"===u.host&&(u.host=""),t)return;h="",l=lB}continue}h+=i;break;case lB:if(u.isSpecial()){if(l=cB,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==QR&&(l=cB,"/"!==i))continue}else u.fragment="",l=fB;else u.query="",l=dB;break;case cB:if(i===QR||"/"===i||"\\"===i&&u.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(s=EL(s=h))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"===i||"\\"===i&&u.isSpecial()||mL(u.path,"")):WL(h)?"/"===i||"\\"===i&&u.isSpecial()||mL(u.path,""):("file"===u.scheme&&!u.path.length&&GL(h)&&(u.host&&(u.host=""),h=cL(h,0)+":"),mL(u.path,h)),h="","file"===u.scheme&&(i===QR||"?"===i||"#"===i))for(;u.path.length>1&&""===u.path[0];)vL(u.path);"?"===i?(u.query="",l=dB):"#"===i&&(u.fragment="",l=fB)}else h+=jL(i,qL);break;case hB:"?"===i?(u.query="",l=dB):"#"===i?(u.fragment="",l=fB):i!==QR&&(u.path[0]+=jL(i,PL));break;case dB:t||"#"!==i?i!==QR&&("'"===i&&u.isSpecial()?u.query+="%27":u.query+="#"===i?"%23":jL(i,PL)):(u.fragment="",l=fB);break;case fB:i!==QR&&(u.fragment+=jL(i,UL))}c++}},parseHost:function(e){var t,r,n;if("["===cL(e,0)){if("]"!==cL(e,e.length-1))return _L;if(t=function(e){var t,r,n,i,a,o,s,u=[0,0,0,0,0,0,0,0],l=0,c=null,h=0,d=function(){return cL(e,h)};if(":"===d()){if(":"!==cL(e,1))return;h+=2,c=++l}for(;d();){if(8===l)return;if(":"!==d()){for(t=r=0;r<4&&hL(NL,d());)t=16*t+sL(d(),16),h++,r++;if("."===d()){if(0===r)return;if(h-=r,l>6)return;for(n=0;d();){if(i=null,n>0){if(!("."===d()&&n<4))return;h++}if(!hL(SL,d()))return;for(;hL(SL,d());){if(a=sL(d(),10),null===i)i=a;else{if(0===i)return;i=10*i+a}if(i>255)return;h++}u[l]=256*u[l]+i,2!=++n&&4!==n||l++}if(4!==n)return;break}if(":"===d()){if(h++,!d())return}else if(d())return;u[l++]=t}else{if(null!==c)return;h++,c=++l}}if(null!==c)for(o=l-c,l=7;0!==l&&o>0;)s=u[l],u[l--]=u[c+o-1],u[c+--o]=s;else if(8!==l)return;return u}(yL(e,1,-1)),!t)return _L;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],i=sR(oR(uR(e),KO,"."),".");for(t=0;t4)return e;for(r=[],n=0;n1&&"0"===cL(i,0)&&(a=hL(xL,i)?16:8,i=yL(i,8===a?1:2)),""===i)o=0;else{if(!hL(10===a?FL:8===a?kL:NL,i))return e;o=sL(i,a)}mL(r,o)}for(n=0;n=lL(256,5-t))return null}else if(o>255)return null;for(s=pL(r),n=0;n1?arguments[1]:void 0,n=tL(t,new pB(e,!1,r));f||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},gB=mB.prototype,vB=function(e,t){return{get:function(){return rL(this)[e]()},set:t&&function(e){return rL(this)[t](e)},configurable:!0,enumerable:!0}};if(f&&(Dr(gB,"href",vB("serialize","setHref")),Dr(gB,"origin",vB("getOrigin")),Dr(gB,"protocol",vB("getProtocol","setProtocol")),Dr(gB,"username",vB("getUsername","setUsername")),Dr(gB,"password",vB("getPassword","setPassword")),Dr(gB,"host",vB("getHost","setHost")),Dr(gB,"hostname",vB("getHostname","setHostname")),Dr(gB,"port",vB("getPort","setPort")),Dr(gB,"pathname",vB("getPathname","setPathname")),Dr(gB,"search",vB("getSearch","setSearch")),Dr(gB,"searchParams",vB("getSearchParams")),Dr(gB,"hash",vB("getHash","setHash"))),pt(gB,"toJSON",(function(){return rL(this).serialize()}),{enumerable:!0}),pt(gB,"toString",(function(){return rL(this).serialize()}),{enumerable:!0}),aL){var DB=aL.createObjectURL,yB=aL.revokeObjectURL;DB&&pt(mB,"createObjectURL",kr(DB,aL)),yB&&pt(mB,"revokeObjectURL",kr(yB,aL))}Ar(mB,"URL"),Wt({global:!0,constructor:!0,forced:!$O,sham:!f},{URL:mB});var EB=U("URL"),bB=$O&&d((function(){EB.canParse()}));Wt({target:"URL",stat:!0,forced:!bB},{canParse:function(e){var t=Mf(arguments.length,1),r=tr(e),n=t<2||void 0===arguments[1]?void 0:tr(arguments[1]);try{return!!new EB(r,n)}catch(e){return!1}}}),Wt({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return g(URL.prototype.toString,this)}});var wB=URLSearchParams,_B=wB.prototype,TB=C(_B.append),CB=C(_B.delete),AB=C(_B.forEach),SB=C([].push),xB=new wB("a=1&a=2&b=3");xB.delete("a",1),xB.delete("b",void 0),xB+""!="a=2"&&pt(_B,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return CB(this,e);var n=[];AB(this,(function(e,t){SB(n,{key:t,value:e})})),Mf(t,1);for(var i,a=tr(e),o=tr(r),s=0,u=0,l=!1,c=n.length;s{const e=[...top.document.getElementsByTagName("style")].flatMap((e=>[...e.sheet.rules].map((e=>e.cssText)))).join("\n");if(e!=this.style){this.style=e;for(const t of this.listerners)t(e)}}),250)}listen(e){this.listerners.add(e),e(this.style)}remove(e){this.listerners.delete(e)}unwatch(){clearInterval(this.interval)}}var MB=void 0!==MB?MB:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},PB=[],UB=[],qB="undefined"!=typeof Uint8Array?Uint8Array:Array,zB=!1;function jB(){zB=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)PB[t]=e[t],UB[e.charCodeAt(t)]=t;UB["-".charCodeAt(0)]=62,UB["_".charCodeAt(0)]=63}function HB(e,t,r){for(var n,i,a=[],o=t;o>18&63]+PB[i>>12&63]+PB[i>>6&63]+PB[63&i]);return a.join("")}function GB(e){var t;zB||jB();for(var r=e.length,n=r%3,i="",a=[],o=16383,s=0,u=r-n;su?u:s+o));return 1===n?(t=e[r-1],i+=PB[t>>2],i+=PB[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=PB[t>>10],i+=PB[t>>4&63],i+=PB[t<<2&63],i+="="),a.push(i),a.join("")}function VB(e,t,r,n,i){var a,o,s=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,d=r?-1:1,f=e[t+h];for(h+=d,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+h],h+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+e[t+h],h+=d,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),a-=l}return(f?-1:1)*o*Math.pow(2,a-n)}function WB(e,t,r,n,i,a){var o,s,u,l=8*a-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(o++,u/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(t*u-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&s,f+=p,s/=256,i-=8);for(o=o<0;e[r+f]=255&o,f+=p,o/=256,l-=8);e[r+f-p]|=128*m}var YB={}.toString,$B=Array.isArray||function(e){return"[object Array]"==YB.call(e)};function ZB(){return KB.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function XB(e,t){if(ZB()=ZB())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ZB().toString(16)+" bytes");return 0|e}function nM(e){return!(null==e||!e._isBuffer)}function iM(e,t){if(nM(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return NM(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return IM(e).length;default:if(n)return NM(e).length;t=(""+t).toLowerCase(),n=!0}}function aM(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return EM(this,t,r);case"utf8":case"utf-8":return gM(this,t,r);case"ascii":return DM(this,t,r);case"latin1":case"binary":return yM(this,t,r);case"base64":return mM(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bM(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function oM(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function sM(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=KB.from(t,n)),nM(t))return 0===t.length?-1:uM(e,t,r,n,i);if("number"==typeof t)return t&=255,KB.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):uM(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function uM(e,t,r,n,i){var a,o=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var h=!0,d=0;di&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function mM(e,t,r){return 0===t&&r===e.length?GB(e):GB(e.slice(t,r))}function gM(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=vM)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},KB.prototype.compare=function(e,t,r,n,i){if(!nM(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(n,i),l=e.slice(t,r),c=0;ci)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return lM(this,e,t,r);case"utf8":case"utf-8":return cM(this,e,t,r);case"ascii":return hM(this,e,t,r);case"latin1":case"binary":return dM(this,e,t,r);case"base64":return fM(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pM(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},KB.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var vM=4096;function DM(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function _M(e,t,r,n,i,a){if(!nM(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function TM(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function CM(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function AM(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function SM(e,t,r,n,i){return i||AM(e,0,r,4),WB(e,t,r,n,23,4),r+4}function xM(e,t,r,n,i){return i||AM(e,0,r,8),WB(e,t,r,n,52,8),r+8}KB.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},KB.prototype.readUInt8=function(e,t){return t||wM(e,1,this.length),this[e]},KB.prototype.readUInt16LE=function(e,t){return t||wM(e,2,this.length),this[e]|this[e+1]<<8},KB.prototype.readUInt16BE=function(e,t){return t||wM(e,2,this.length),this[e]<<8|this[e+1]},KB.prototype.readUInt32LE=function(e,t){return t||wM(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},KB.prototype.readUInt32BE=function(e,t){return t||wM(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},KB.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||wM(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},KB.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||wM(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},KB.prototype.readInt8=function(e,t){return t||wM(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},KB.prototype.readInt16LE=function(e,t){t||wM(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},KB.prototype.readInt16BE=function(e,t){t||wM(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},KB.prototype.readInt32LE=function(e,t){return t||wM(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},KB.prototype.readInt32BE=function(e,t){return t||wM(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},KB.prototype.readFloatLE=function(e,t){return t||wM(e,4,this.length),VB(this,e,!0,23,4)},KB.prototype.readFloatBE=function(e,t){return t||wM(e,4,this.length),VB(this,e,!1,23,4)},KB.prototype.readDoubleLE=function(e,t){return t||wM(e,8,this.length),VB(this,e,!0,52,8)},KB.prototype.readDoubleBE=function(e,t){return t||wM(e,8,this.length),VB(this,e,!1,52,8)},KB.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||_M(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},KB.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||_M(this,e,t,1,255,0),KB.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},KB.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||_M(this,e,t,2,65535,0),KB.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):TM(this,e,t,!0),t+2},KB.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||_M(this,e,t,2,65535,0),KB.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):TM(this,e,t,!1),t+2},KB.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||_M(this,e,t,4,4294967295,0),KB.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):CM(this,e,t,!0),t+4},KB.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||_M(this,e,t,4,4294967295,0),KB.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):CM(this,e,t,!1),t+4},KB.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);_M(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},KB.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);_M(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},KB.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||_M(this,e,t,1,127,-128),KB.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},KB.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||_M(this,e,t,2,32767,-32768),KB.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):TM(this,e,t,!0),t+2},KB.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||_M(this,e,t,2,32767,-32768),KB.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):TM(this,e,t,!1),t+2},KB.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||_M(this,e,t,4,2147483647,-2147483648),KB.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):CM(this,e,t,!0),t+4},KB.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||_M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),KB.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):CM(this,e,t,!1),t+4},KB.prototype.writeFloatLE=function(e,t,r){return SM(this,e,t,!0,r)},KB.prototype.writeFloatBE=function(e,t,r){return SM(this,e,t,!1,r)},KB.prototype.writeDoubleLE=function(e,t,r){return xM(this,e,t,!0,r)},KB.prototype.writeDoubleBE=function(e,t,r){return xM(this,e,t,!1,r)},KB.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!KB.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function IM(e){return function(e){var t,r,n,i,a,o;zB||jB();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[s-2]?2:"="===e[s-1]?1:0,o=new qB(3*s/4-a),n=a>0?s-4:s;var u=0;for(t=0,r=0;t>16&255,o[u++]=i>>8&255,o[u++]=255&i;return 2===a?(i=UB[e.charCodeAt(t)]<<2|UB[e.charCodeAt(t+1)]>>4,o[u++]=255&i):1===a&&(i=UB[e.charCodeAt(t)]<<10|UB[e.charCodeAt(t+1)]<<4|UB[e.charCodeAt(t+2)]>>2,o[u++]=i>>8&255,o[u++]=255&i),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(kM,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function OM(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function RM(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}class LM extends Error{}class BM extends LM{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class MM extends LM{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class PM extends LM{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class UM extends LM{}class qM extends LM{constructor(e){super(`Invalid unit ${e}`)}}class zM extends LM{}class jM extends LM{constructor(){super("Zone is an abstract class")}}const HM="numeric",GM="short",VM="long",WM={year:HM,month:HM,day:HM},YM={year:HM,month:GM,day:HM},$M={year:HM,month:GM,day:HM,weekday:GM},ZM={year:HM,month:VM,day:HM},XM={year:HM,month:VM,day:HM,weekday:VM},KM={hour:HM,minute:HM},QM={hour:HM,minute:HM,second:HM},JM={hour:HM,minute:HM,second:HM,timeZoneName:GM},eP={hour:HM,minute:HM,second:HM,timeZoneName:VM},tP={hour:HM,minute:HM,hourCycle:"h23"},rP={hour:HM,minute:HM,second:HM,hourCycle:"h23"},nP={hour:HM,minute:HM,second:HM,hourCycle:"h23",timeZoneName:GM},iP={hour:HM,minute:HM,second:HM,hourCycle:"h23",timeZoneName:VM},aP={year:HM,month:HM,day:HM,hour:HM,minute:HM},oP={year:HM,month:HM,day:HM,hour:HM,minute:HM,second:HM},sP={year:HM,month:GM,day:HM,hour:HM,minute:HM},uP={year:HM,month:GM,day:HM,hour:HM,minute:HM,second:HM},lP={year:HM,month:GM,day:HM,weekday:GM,hour:HM,minute:HM},cP={year:HM,month:VM,day:HM,hour:HM,minute:HM,timeZoneName:GM},hP={year:HM,month:VM,day:HM,hour:HM,minute:HM,second:HM,timeZoneName:GM},dP={year:HM,month:VM,day:HM,weekday:VM,hour:HM,minute:HM,timeZoneName:VM},fP={year:HM,month:VM,day:HM,weekday:VM,hour:HM,minute:HM,second:HM,timeZoneName:VM};class pP{get type(){throw new jM}get name(){throw new jM}get ianaName(){return this.name}get isUniversal(){throw new jM}offsetName(e,t){throw new jM}formatOffset(e,t){throw new jM}offset(e){throw new jM}equals(e){throw new jM}get isValid(){throw new jM}}let mP=null;class gP extends pP{static get instance(){return null===mP&&(mP=new gP),mP}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return uU(e,t,r)}formatOffset(e,t){return dU(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let vP={};const DP={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let yP={};class EP extends pP{static create(e){return yP[e]||(yP[e]=new EP(e)),yP[e]}static resetCache(){yP={},vP={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=EP.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return uU(e,t,r,this.name)}formatOffset(e,t){return dU(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const r=(n=this.name,vP[n]||(vP[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),vP[n]);var n;let[i,a,o,s,u,l,c]=r.formatToParts?function(e,t){const r=e.formatToParts(t),n=[];for(let e=0;e=0?d:1e3+d,(aU({year:i,month:a,day:o,hour:24===u?0:u,minute:l,second:c,millisecond:0})-h)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let bP={};let wP={};function _P(e,t={}){const r=JSON.stringify([e,t]);let n=wP[r];return n||(n=new Intl.DateTimeFormat(e,t),wP[r]=n),n}let TP={};let CP={};let AP=null;function SP(e,t,r,n){const i=e.listingMode();return"error"===i?null:"en"===i?r(t):n(t)}class xP{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:n,floor:i,...a}=r;if(!t||Object.keys(a).length>0){const t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function(e,t={}){const r=JSON.stringify([e,t]);let n=TP[r];return n||(n=new Intl.NumberFormat(e,t),TP[r]=n),n}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return KP(this.floor?Math.floor(e):tU(e,3),this.padTo)}}class kP{constructor(e,t,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&EP.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||n,this.dtf=_P(t,i)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class FP{constructor(e,t,r){this.opts={style:"long",...r},!t&&YP()&&(this.rtf=function(e,t={}){const{base:r,...n}=t,i=JSON.stringify([e,n]);let a=CP[i];return a||(a=new Intl.RelativeTimeFormat(e,t),CP[i]=a),a}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r="always",n=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&a){const r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${i[e][0]}`;case-1:return r?"yesterday":`last ${i[e][0]}`;case 0:return r?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),u=1===s,l=i[e],c=n?u?l[1]:l[2]||l[1]:u?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class NP{static fromOpts(e){return NP.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,r,n=!1){const i=e||HP.defaultLocale,a=i||(n?"en-US":AP||(AP=(new Intl.DateTimeFormat).resolvedOptions().locale,AP)),o=t||HP.defaultNumberingSystem,s=r||HP.defaultOutputCalendar;return new NP(a,o,s,i)}static resetCache(){AP=null,wP={},TP={},CP={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r}={}){return NP.create(e,t,r)}constructor(e,t,r,n){const[i,a,o]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(-1===r)return[e];{let t,n;try{t=_P(e).resolvedOptions(),n=e}catch(i){const a=e.substring(0,r);t=_P(a).resolvedOptions(),n=a}const{numberingSystem:i,calendar:a}=t;return[n,i,a]}}(e);this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=r||o||null,this.intl=function(e,t,r){return r||t?(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?NP.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return SP(this,e,vU,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){const t=[];for(let r=1;r<=12;r++){const n=Rz.utc(2009,r,1);t.push(e(n))}return t}((e=>this.extract(e,r,"month")))),this.monthsCache[n][e]}))}weekdays(e,t=!1){return SP(this,e,bU,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){const t=[];for(let r=1;r<=7;r++){const n=Rz.utc(2016,11,13+r);t.push(e(n))}return t}((e=>this.extract(e,r,"weekday")))),this.weekdaysCache[n][e]}))}meridiems(){return SP(this,void 0,(()=>wU),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Rz.utc(2016,11,13,9),Rz.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return SP(this,e,AU,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Rz.utc(-40,1,1),Rz.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===r));return n?n.value:null}numberFormatter(e={}){return new xP(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new kP(e,this.intl,t)}relFormatter(e={}){return new FP(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const r=JSON.stringify([e,t]);let n=bP[r];return n||(n=new Intl.ListFormat(e,t),bP[r]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let IP=null;class OP extends pP{static get utcInstance(){return null===IP&&(IP=new OP(0)),IP}static instance(e){return 0===e?OP.utcInstance:new OP(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new OP(lU(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${dU(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${dU(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return dU(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class RP extends pP{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function LP(e,t){if(GP(e)||null===e)return t;if(e instanceof pP)return e;if("string"==typeof e){const r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?gP.instance:"utc"===r||"gmt"===r?OP.utcInstance:OP.parseSpecifier(r)||EP.create(e)}return VP(e)?OP.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new RP(e)}let BP,MP=()=>Date.now(),PP="system",UP=null,qP=null,zP=null,jP=60;class HP{static get now(){return MP}static set now(e){MP=e}static set defaultZone(e){PP=e}static get defaultZone(){return LP(PP,gP.instance)}static get defaultLocale(){return UP}static set defaultLocale(e){UP=e}static get defaultNumberingSystem(){return qP}static set defaultNumberingSystem(e){qP=e}static get defaultOutputCalendar(){return zP}static set defaultOutputCalendar(e){zP=e}static get twoDigitCutoffYear(){return jP}static set twoDigitCutoffYear(e){jP=e%100}static get throwOnInvalid(){return BP}static set throwOnInvalid(e){BP=e}static resetCaches(){NP.resetCache(),EP.resetCache()}}function GP(e){return void 0===e}function VP(e){return"number"==typeof e}function WP(e){return"number"==typeof e&&e%1==0}function YP(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function $P(e,t,r){if(0!==e.length)return e.reduce(((e,n)=>{const i=[t(n),n];return e&&r(e[0],i[0])===e[0]?e:i}),null)[1]}function ZP(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function XP(e,t,r){return WP(e)&&e>=t&&e<=r}function KP(e,t=2){let r;return r=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function QP(e){return GP(e)||null===e||""===e?void 0:parseInt(e,10)}function JP(e){return GP(e)||null===e||""===e?void 0:parseFloat(e)}function eU(e){if(!GP(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function tU(e,t,r=!1){const n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function rU(e){return e%4==0&&(e%100!=0||e%400==0)}function nU(e){return rU(e)?366:365}function iU(e,t){const r=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===r?rU(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function aU(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function oU(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===t||3===n?53:52}function sU(e){return e>99?e:e>HP.twoDigitCutoffYear?1900+e:2e3+e}function uU(e,t,r,n=null){const i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);const o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(r,o).formatToParts(i).find((e=>"timezonename"===e.type.toLowerCase()));return s?s.value:null}function lU(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function cU(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new zM(`Invalid unit value ${e}`);return t}function hU(e,t){const r={};for(const n in e)if(ZP(e,n)){const i=e[n];if(null==i)continue;r[t(n)]=cU(i)}return r}function dU(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${KP(r,2)}:${KP(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${KP(r,2)}${KP(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function fU(e){return function(e,t){return t.reduce(((t,r)=>(t[r]=e[r],t)),{})}(e,["hour","minute","second","millisecond"])}const pU=["January","February","March","April","May","June","July","August","September","October","November","December"],mU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],gU=["J","F","M","A","M","J","J","A","S","O","N","D"];function vU(e){switch(e){case"narrow":return[...gU];case"short":return[...mU];case"long":return[...pU];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const DU=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],yU=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],EU=["M","T","W","T","F","S","S"];function bU(e){switch(e){case"narrow":return[...EU];case"short":return[...yU];case"long":return[...DU];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const wU=["AM","PM"],_U=["Before Christ","Anno Domini"],TU=["BC","AD"],CU=["B","A"];function AU(e){switch(e){case"narrow":return[...CU];case"short":return[...TU];case"long":return[..._U];default:return null}}function SU(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const xU={D:WM,DD:YM,DDD:ZM,DDDD:XM,t:KM,tt:QM,ttt:JM,tttt:eP,T:tP,TT:rP,TTT:nP,TTTT:iP,f:aP,ff:sP,fff:cP,ffff:dP,F:oP,FF:uP,FFF:hP,FFFF:fP};class kU{static create(e,t={}){return new kU(e,t)}static parseFormat(e){let t=null,r="",n=!1;const i=[];for(let a=0;a0&&i.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n||o===t?r+=o:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=o,t=o)}return r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return xU[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return KP(e,t);const r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,r)=>this.loc.extract(e,t,r),a=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",o=()=>r?function(e){return wU[e.hour<12?0:1]}(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(t,n)=>r?function(e,t){return vU(t)[e.month-1]}(e,t):i(n?{month:t}:{month:t,day:"numeric"},"month"),u=(t,n)=>r?function(e,t){return bU(t)[e.weekday-1]}(e,t):i(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const r=kU.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},c=t=>r?function(e,t){return AU(t)[e.year<0?0:1]}(e,t):i({era:t},"era");return SU(kU.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return n?i({day:"numeric"},"day"):this.num(e.day);case"dd":return n?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return n?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return n?i({month:"numeric"},"month"):this.num(e.month);case"MM":return n?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return n?i({year:"numeric"},"year"):this.num(e.year);case"yy":return n?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const r=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=kU.parseFormat(t),i=n.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]);return SU(n,(e=>t=>{const n=r(t);return n?this.num(e.get(n),t.length):t})(e.shiftTo(...i.map(r).filter((e=>e)))))}}class FU{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const NU=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function IU(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function OU(...e){return t=>e.reduce((([e,r,n],i)=>{const[a,o,s]=i(t,n);return[{...e,...a},o||r,s]}),[{},null,1]).slice(0,2)}function RU(e,...t){if(null==e)return[null,null];for(const[r,n]of t){const t=r.exec(e);if(t)return n(t)}return[null,null]}function LU(...e){return(t,r)=>{const n={};let i;for(i=0;ivoid 0!==e&&(t||e&&c)?-e:e;return[{years:d(JP(r)),months:d(JP(n)),weeks:d(JP(i)),days:d(JP(a)),hours:d(JP(o)),minutes:d(JP(s)),seconds:d(JP(u),"-0"===u),milliseconds:d(eU(l),h)}]}const KU={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function QU(e,t,r,n,i,a,o){const s={year:2===t.length?sU(QP(t)):QP(t),month:mU.indexOf(r)+1,day:QP(n),hour:QP(i),minute:QP(a)};return o&&(s.second=QP(o)),e&&(s.weekday=e.length>3?DU.indexOf(e)+1:yU.indexOf(e)+1),s}const JU=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function eq(e){const[,t,r,n,i,a,o,s,u,l,c,h]=e,d=QU(t,i,n,r,a,o,s);let f;return f=u?KU[u]:l?0:lU(c,h),[d,new OP(f)]}const tq=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rq=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,nq=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function iq(e){const[,t,r,n,i,a,o,s]=e;return[QU(t,i,n,r,a,o,s),OP.utcInstance]}function aq(e){const[,t,r,n,i,a,o,s]=e;return[QU(t,s,r,n,i,a,o),OP.utcInstance]}const oq=IU(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,UU),sq=IU(/(\d{4})-?W(\d\d)(?:-?(\d))?/,UU),uq=IU(/(\d{4})-?(\d{3})/,UU),lq=IU(PU),cq=OU((function(e,t){return[{year:GU(e,t),month:GU(e,t+1,1),day:GU(e,t+2,1)},null,t+3]}),VU,WU,YU),hq=OU(qU,VU,WU,YU),dq=OU(zU,VU,WU,YU),fq=OU(VU,WU,YU);const pq=OU(VU);const mq=IU(/(\d{4})-(\d\d)-(\d\d)/,HU),gq=IU(jU),vq=OU(VU,WU,YU);const Dq="Invalid Duration",yq={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Eq={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...yq},bq=365.2425,wq=30.436875,_q={years:{quarters:4,months:12,weeks:52.1775,days:bq,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:wq,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...yq},Tq=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Cq=Tq.slice(0).reverse();function Aq(e,t,r=!1){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new kq(n)}function Sq(e,t){let r=t.milliseconds??0;for(const n of Cq.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function xq(e,t){const r=Sq(e,t)<0?-1:1;Tq.reduceRight(((n,i)=>{if(GP(t[i]))return n;if(n){const a=t[n]*r,o=e[i][n],s=Math.floor(a/o);t[i]+=s*r,t[n]-=s*o*r}return i}),null),Tq.reduce(((r,n)=>{if(GP(t[n]))return r;if(r){const i=t[r]%1;t[r]-=i,t[n]+=i*e[r][n]}return n}),null)}class kq{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let r=t?_q:Eq;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||NP.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return kq.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new zM("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new kq({values:hU(e,kq.normalizeUnit),loc:NP.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(VP(e))return kq.fromMillis(e);if(kq.isDuration(e))return e;if("object"==typeof e)return kq.fromObject(e);throw new zM(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=function(e){return RU(e,[ZU,XU])}(e);return r?kq.fromObject(r,t):kq.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=function(e){return RU(e,[$U,pq])}(e);return r?kq.fromObject(r,t):kq.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new zM("need to specify a reason the Duration is invalid");const r=e instanceof FU?e:new FU(e,t);if(HP.throwOnInvalid)throw new PM(r);return new kq({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new qM(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?kU.create(this.loc,r).formatDurationFromString(this,e):Dq}toHuman(e={}){if(!this.isValid)return Dq;const t=Tq.map((t=>{const r=this.values[t];return GP(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=tU(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};return Rz.fromMillis(t,{zone:"UTC"}).toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?Sq(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=kq.fromDurationLike(e),r={};for(const e of Tq)(ZP(t.values,e)||ZP(this.values,e))&&(r[e]=t.get(e)+this.get(e));return Aq(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=kq.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=cU(e(this.values[r],r));return Aq(this,{values:t},!0)}get(e){return this[kq.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return Aq(this,{values:{...this.values,...hU(e,kq.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return Aq(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return xq(this.matrix,e),Aq(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=function(e){const t={};for(const[r,n]of Object.entries(e))0!==n&&(t[r]=n);return t}(this.normalize().shiftToAll().toObject());return Aq(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>kq.normalizeUnit(e)));const t={},r={},n=this.toObject();let i;for(const a of Tq)if(e.indexOf(a)>=0){i=a;let e=0;for(const t in r)e+=this.matrix[t][a]*r[t],r[t]=0;VP(n[a])&&(e+=n[a]);const o=Math.trunc(e);t[a]=o,r[a]=(1e3*e-1e3*o)/1e3}else VP(n[a])&&(r[a]=n[a]);for(const e in r)0!==r[e]&&(t[i]+=e===i?r[e]:r[e]/this.matrix[i][e]);return xq(this.matrix,t),Aq(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Aq(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const n of Tq)if(t=this.values[n],r=e.values[n],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1;var t,r;return!0}}const Fq="Invalid Interval";class Nq{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new zM("need to specify a reason the Interval is invalid");const r=e instanceof FU?e:new FU(e,t);if(HP.throwOnInvalid)throw new MM(r);return new Nq({invalid:r})}static fromDateTimes(e,t){const r=Lz(e),n=Lz(t),i=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?Nq.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Lz).filter((e=>this.contains(e))).sort(),r=[];let{s:n}=this,i=0;for(;n+this.e?this.e:e;r.push(Nq.fromDateTimes(n,a)),n=a,i+=1}return r}splitBy(e){const t=kq.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let r,{s:n}=this,i=1;const a=[];for(;ne*i)));r=+e>+this.e?this.e:e,a.push(Nq.fromDateTimes(n,r)),n=r,i+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r?null:Nq.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Nq.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r]),[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const n=[],i=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),a=Array.prototype.concat(...i).sort(((e,t)=>e.time-t.time));for(const e of a)r+="s"===e.type?1:-1,1===r?t=e.time:(t&&+t!=+e.time&&n.push(Nq.fromDateTimes(t,e.time)),t=null);return Nq.merge(n)}difference(...e){return Nq.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Fq}toLocaleString(e=WM,t={}){return this.isValid?kU.create(this.s.loc.clone(t),e).formatInterval(this):Fq}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Fq}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Fq}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Fq}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Fq}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):kq.invalid(this.invalidReason)}mapEndpoints(e){return Nq.fromDateTimes(e(this.s),e(this.e))}}class Iq{static hasDST(e=HP.defaultZone){const t=Rz.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return EP.isValidZone(e)}static normalizeZone(e){return LP(e,HP.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||NP.create(t,r,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||NP.create(t,r,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||NP.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||NP.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return NP.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return NP.create(t,null,"gregory").eras(e)}static features(){return{relative:YP()}}}function Oq(e,t){const r=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(kq.fromMillis(n).as("days"))}function Rq(e,t,r,n){let[i,a,o,s]=function(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const r=Oq(e,t);return(r-r%7)/7}],["days",Oq]],i={},a=e;let o,s;for(const[u,l]of n)r.indexOf(u)>=0&&(o=u,i[u]=l(e,t),s=a.plus(i),s>t?(i[u]--,(e=a.plus(i))>t&&(s=e,i[u]--,e=a.plus(i))):e=s);return[e,i,s,o]}(e,t,r);const u=t-i,l=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(o0?kq.fromMillis(u,n).shiftTo(...l).plus(c):c}const Lq={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Bq={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Mq=Lq.hanidec.replace(/[\[|\]]/g,"").split("");function Pq({numberingSystem:e},t=""){return new RegExp(`${Lq[e||"latn"]}${t}`)}const Uq="missing Intl.DateTimeFormat.formatToParts support";function qq(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=i&&(t+=n-r)}}return parseInt(t,10)}return t}(e))}}const zq=`[ ${String.fromCharCode(160)}]`,jq=new RegExp(zq,"g");function Hq(e){return e.replace(/\./g,"\\.?").replace(jq,zq)}function Gq(e){return e.replace(/\./g,"").replace(jq," ").toLowerCase()}function Vq(e,t){return null===e?null:{regex:RegExp(e.map(Hq).join("|")),deser:([r])=>e.findIndex((e=>Gq(r)===Gq(e)))+t}}function Wq(e,t){return{regex:e,deser:([,e,t])=>lU(e,t),groups:t}}function Yq(e){return{regex:e,deser:([e])=>e}}const $q={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Zq=null;function Xq(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const r=Qq(kU.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r}(e,t))))}function Kq(e,t,r){const n=Xq(kU.parseFormat(r),e),i=n.map((t=>function(e,t){const r=Pq(t),n=Pq(t,"{2}"),i=Pq(t,"{3}"),a=Pq(t,"{4}"),o=Pq(t,"{6}"),s=Pq(t,"{1,2}"),u=Pq(t,"{1,3}"),l=Pq(t,"{1,6}"),c=Pq(t,"{1,9}"),h=Pq(t,"{2,4}"),d=Pq(t,"{4,6}"),f=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},p=(p=>{if(e.literal)return f(p);switch(p.val){case"G":return Vq(t.eras("short"),0);case"GG":return Vq(t.eras("long"),0);case"y":return qq(l);case"yy":case"kk":return qq(h,sU);case"yyyy":case"kkkk":return qq(a);case"yyyyy":return qq(d);case"yyyyyy":return qq(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return qq(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return qq(n);case"MMM":return Vq(t.months("short",!0),1);case"MMMM":return Vq(t.months("long",!0),1);case"LLL":return Vq(t.months("short",!1),1);case"LLLL":return Vq(t.months("long",!1),1);case"o":case"S":return qq(u);case"ooo":case"SSS":return qq(i);case"u":return Yq(c);case"uu":return Yq(s);case"uuu":case"E":case"c":return qq(r);case"a":return Vq(t.meridiems(),0);case"EEE":return Vq(t.weekdays("short",!1),1);case"EEEE":return Vq(t.weekdays("long",!1),1);case"ccc":return Vq(t.weekdays("short",!0),1);case"cccc":return Vq(t.weekdays("long",!0),1);case"Z":case"ZZ":return Wq(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Wq(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return Yq(/[a-z_+-/]{1,256}?/i);case" ":return Yq(/[^\S\n\r]/);default:return f(p)}})(e)||{invalidReason:Uq};return p.token=e,p}(t,e))),a=i.find((e=>e.invalidReason));if(a)return{input:t,tokens:n,invalidReason:a.invalidReason};{const[e,r]=function(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}(i),a=RegExp(e,"i"),[o,s]=function(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const i in r)if(ZP(r,i)){const a=r[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(n.slice(t,t+o))),t+=o}return[n,e]}return[n,{}]}(t,a,r),[u,l,c]=s?function(e){let t,r=null;GP(e.z)||(r=EP.create(e.z)),GP(e.Z)||(r||(r=new OP(e.Z)),t=e.Z),GP(e.q)||(e.M=3*(e.q-1)+1),GP(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),GP(e.u)||(e.S=eU(e.u));const n=Object.keys(e).reduce(((t,r)=>{const n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(r);return n&&(t[n]=e[r]),t}),{});return[n,r,t]}(s):[null,null,void 0];if(ZP(s,"a")&&ZP(s,"H"))throw new UM("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:a,rawMatches:o,matches:s,result:u,zone:l,specificOffset:c}}}function Qq(e,t){if(!e)return null;const r=kU.create(t,e).dtFormatter((Zq||(Zq=Rz.fromMillis(1555555555555)),Zq)),n=r.formatToParts(),i=r.resolvedOptions();return n.map((t=>function(e,t,r){const{type:n,value:i}=e;if("literal"===n){const e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}const a=t[n];let o=n;"hour"===n&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":r.hour12?"hour12":"hour24");let s=$q[o];if("object"==typeof s&&(s=s[a]),s)return{literal:!1,val:s}}(t,e,i)))}const Jq=[0,31,59,90,120,151,181,212,243,273,304,334],ez=[0,31,60,91,121,152,182,213,244,274,305,335];function tz(e,t){return new FU("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function rz(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const i=n.getUTCDay();return 0===i?7:i}function nz(e,t,r){return r+(rU(e)?ez:Jq)[t-1]}function iz(e,t){const r=rU(e)?ez:Jq,n=r.findIndex((e=>eoU(t)?(o=t+1,s=1):o=t,{weekYear:o,weekNumber:s,weekday:a,...fU(e)}}function oz(e){const{weekYear:t,weekNumber:r,weekday:n}=e,i=rz(t,1,4),a=nU(t);let o,s=7*r+n-i-3;s<1?(o=t-1,s+=nU(o)):s>a?(o=t+1,s-=nU(t)):o=t;const{month:u,day:l}=iz(o,s);return{year:o,month:u,day:l,...fU(e)}}function sz(e){const{year:t,month:r,day:n}=e;return{year:t,ordinal:nz(t,r,n),...fU(e)}}function uz(e){const{year:t,ordinal:r}=e,{month:n,day:i}=iz(t,r);return{year:t,month:n,day:i,...fU(e)}}function lz(e){const t=WP(e.year),r=XP(e.month,1,12),n=XP(e.day,1,iU(e.year,e.month));return t?r?!n&&tz("day",e.day):tz("month",e.month):tz("year",e.year)}function cz(e){const{hour:t,minute:r,second:n,millisecond:i}=e,a=XP(t,0,23)||24===t&&0===r&&0===n&&0===i,o=XP(r,0,59),s=XP(n,0,59),u=XP(i,0,999);return a?o?s?!u&&tz("millisecond",i):tz("second",n):tz("minute",r):tz("hour",t)}const hz="Invalid DateTime",dz=864e13;function fz(e){return new FU("unsupported zone",`the zone "${e.name}" is not supported`)}function pz(e){return null===e.weekData&&(e.weekData=az(e.c)),e.weekData}function mz(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Rz({...r,...t,old:r})}function gz(e,t,r){let n=e-60*t*1e3;const i=r.offset(n);if(t===i)return[n,t];n-=60*(i-t)*1e3;const a=r.offset(n);return i===a?[n,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}function vz(e,t){const r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Dz(e,t,r){return gz(aU(e),t,r)}function yz(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a={...e.c,year:n,month:i,day:Math.min(e.c.day,iU(n,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=kq.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=aU(a);let[u,l]=gz(s,r,e.zone);return 0!==o&&(u+=o,l=e.zone.offset(u)),{ts:u,o:l}}function Ez(e,t,r,n,i,a){const{setZone:o,zone:s}=r;if(e&&0!==Object.keys(e).length||t){const n=t||s,i=Rz.fromObject(e,{...r,zone:n,specificOffset:a});return o?i:i.setZone(s)}return Rz.invalid(new FU("unparsable",`the input "${i}" can't be parsed as ${n}`))}function bz(e,t,r=!0){return e.isValid?kU.create(NP.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function wz(e,t){const r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=KP(e.c.year,r?6:4),t?(n+="-",n+=KP(e.c.month),n+="-",n+=KP(e.c.day)):(n+=KP(e.c.month),n+=KP(e.c.day)),n}function _z(e,t,r,n,i,a){let o=KP(e.c.hour);return t?(o+=":",o+=KP(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=":")):o+=KP(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=KP(e.c.second),0===e.c.millisecond&&n||(o+=".",o+=KP(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!a?o+="Z":e.o<0?(o+="-",o+=KP(Math.trunc(-e.o/60)),o+=":",o+=KP(Math.trunc(-e.o%60))):(o+="+",o+=KP(Math.trunc(e.o/60)),o+=":",o+=KP(Math.trunc(e.o%60)))),a&&(o+="["+e.zone.ianaName+"]"),o}const Tz={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Cz={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Az={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Sz=["year","month","day","hour","minute","second","millisecond"],xz=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],kz=["year","ordinal","hour","minute","second","millisecond"];function Fz(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new qM(e);return t}function Nz(e,t){const r=LP(t.zone,HP.defaultZone),n=NP.fromObject(t),i=HP.now();let a,o;if(GP(e.year))a=i;else{for(const t of Sz)GP(e[t])&&(e[t]=Tz[t]);const t=lz(e)||cz(e);if(t)return Rz.invalid(t);const n=r.offset(i);[a,o]=Dz(e,n,r)}return new Rz({ts:a,zone:r,loc:n,o:o})}function Iz(e,t,r){const n=!!GP(r.round)||r.round,i=(e,i)=>{e=tU(e,n||r.calendary?0:2,!0);return t.loc.clone(r).relFormatter(r).format(e,i)},a=n=>r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(r.unit)return i(a(r.unit),r.unit);for(const e of r.units){const t=a(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,r.units[r.units.length-1])}function Oz(e){let t,r={};return e.length>0&&"object"==typeof e[e.length-1]?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}class Rz{constructor(e){const t=e.zone||HP.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new FU("invalid input"):null)||(t.isValid?null:fz(t));this.ts=GP(e.ts)?HP.now():e.ts;let n=null,i=null;if(!r){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,i]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);n=vz(this.ts,e),r=Number.isNaN(n.year)?new FU("invalid input"):null,n=r?null:n,i=r?null:e}}this._zone=t,this.loc=e.loc||NP.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=i,this.isLuxonDateTime=!0}static now(){return new Rz({})}static local(){const[e,t]=Oz(arguments),[r,n,i,a,o,s,u]=t;return Nz({year:r,month:n,day:i,hour:a,minute:o,second:s,millisecond:u},e)}static utc(){const[e,t]=Oz(arguments),[r,n,i,a,o,s,u]=t;return e.zone=OP.utcInstance,Nz({year:r,month:n,day:i,hour:a,minute:o,second:s,millisecond:u},e)}static fromJSDate(e,t={}){const r=(n=e,"[object Date]"===Object.prototype.toString.call(n)?e.valueOf():NaN);var n;if(Number.isNaN(r))return Rz.invalid("invalid input");const i=LP(t.zone,HP.defaultZone);return i.isValid?new Rz({ts:r,zone:i,loc:NP.fromObject(t)}):Rz.invalid(fz(i))}static fromMillis(e,t={}){if(VP(e))return e<-dz||e>dz?Rz.invalid("Timestamp out of range"):new Rz({ts:e,zone:LP(t.zone,HP.defaultZone),loc:NP.fromObject(t)});throw new zM(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(VP(e))return new Rz({ts:1e3*e,zone:LP(t.zone,HP.defaultZone),loc:NP.fromObject(t)});throw new zM("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=LP(t.zone,HP.defaultZone);if(!r.isValid)return Rz.invalid(fz(r));const n=HP.now(),i=GP(t.specificOffset)?r.offset(n):t.specificOffset,a=hU(e,Fz),o=!GP(a.ordinal),s=!GP(a.year),u=!GP(a.month)||!GP(a.day),l=s||u,c=a.weekYear||a.weekNumber,h=NP.fromObject(t);if((l||o)&&c)throw new UM("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&o)throw new UM("Can't mix ordinal dates with month/day");const d=c||a.weekday&&!l;let f,p,m=vz(n,i);d?(f=xz,p=Cz,m=az(m)):o?(f=kz,p=Az,m=sz(m)):(f=Sz,p=Tz);let g=!1;for(const e of f){GP(a[e])?a[e]=g?p[e]:m[e]:g=!0}const v=d?function(e){const t=WP(e.weekYear),r=XP(e.weekNumber,1,oU(e.weekYear)),n=XP(e.weekday,1,7);return t?r?!n&&tz("weekday",e.weekday):tz("week",e.week):tz("weekYear",e.weekYear)}(a):o?function(e){const t=WP(e.year),r=XP(e.ordinal,1,nU(e.year));return t?!r&&tz("ordinal",e.ordinal):tz("year",e.year)}(a):lz(a),D=v||cz(a);if(D)return Rz.invalid(D);const y=d?oz(a):o?uz(a):a,[E,b]=Dz(y,i,r),w=new Rz({ts:E,zone:r,o:b,loc:h});return a.weekday&&l&&e.weekday!==w.weekday?Rz.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${w.toISO()}`):w}static fromISO(e,t={}){const[r,n]=function(e){return RU(e,[oq,cq],[sq,hq],[uq,dq],[lq,fq])}(e);return Ez(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=function(e){return RU(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[JU,eq])}(e);return Ez(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=function(e){return RU(e,[tq,iq],[rq,iq],[nq,aq])}(e);return Ez(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(GP(e)||GP(t))throw new zM("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:i=null}=r,a=NP.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),[o,s,u,l]=function(e,t,r){const{result:n,zone:i,specificOffset:a,invalidReason:o}=Kq(e,t,r);return[n,i,a,o]}(a,e,t);return l?Rz.invalid(l):Ez(o,s,r,`format ${t}`,e,u)}static fromString(e,t,r={}){return Rz.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=function(e){return RU(e,[mq,cq],[gq,vq])}(e);return Ez(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new zM("need to specify a reason the DateTime is invalid");const r=e instanceof FU?e:new FU(e,t);if(HP.throwOnInvalid)throw new BM(r);return new Rz({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=Qq(e,NP.fromObject(t));return r?r.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Xq(kU.parseFormat(e),NP.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?pz(this).weekYear:NaN}get weekNumber(){return this.isValid?pz(this).weekNumber:NaN}get weekday(){return this.isValid?pz(this).weekday:NaN}get ordinal(){return this.isValid?sz(this.c).ordinal:NaN}get monthShort(){return this.isValid?Iq.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Iq.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Iq.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Iq.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,r=aU(this.c),n=this.zone.offset(r-e),i=this.zone.offset(r+e),a=this.zone.offset(r-n*t),o=this.zone.offset(r-i*t);if(a===o)return[this];const s=r-a*t,u=r-o*t,l=vz(s,a),c=vz(u,o);return l.hour===c.hour&&l.minute===c.minute&&l.second===c.second&&l.millisecond===c.millisecond?[mz(this,{ts:s}),mz(this,{ts:u})]:[this]}get isInLeapYear(){return rU(this.year)}get daysInMonth(){return iU(this.year,this.month)}get daysInYear(){return this.isValid?nU(this.year):NaN}get weeksInWeekYear(){return this.isValid?oU(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=kU.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(OP.instance(e),t)}toLocal(){return this.setZone(HP.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=LP(e,HP.defaultZone)).equals(this.zone))return this;if(e.isValid){let n=this.ts;if(t||r){const t=e.offset(this.ts),r=this.toObject();[n]=Dz(r,t,e)}return mz(this,{ts:n,zone:e})}return Rz.invalid(fz(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return mz(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=hU(e,Fz),r=!GP(t.weekYear)||!GP(t.weekNumber)||!GP(t.weekday),n=!GP(t.ordinal),i=!GP(t.year),a=!GP(t.month)||!GP(t.day),o=i||a,s=t.weekYear||t.weekNumber;if((o||n)&&s)throw new UM("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&n)throw new UM("Can't mix ordinal dates with month/day");let u;r?u=oz({...az(this.c),...t}):GP(t.ordinal)?(u={...this.toObject(),...t},GP(t.day)&&(u.day=Math.min(iU(u.year,u.month),u.day))):u=uz({...sz(this.c),...t});const[l,c]=Dz(u,this.o,this.zone);return mz(this,{ts:l,o:c})}plus(e){if(!this.isValid)return this;return mz(this,yz(this,kq.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return mz(this,yz(this,kq.fromDurationLike(e).negate()))}startOf(e){if(!this.isValid)return this;const t={},r=kq.normalizeUnit(e);switch(r){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===r&&(t.weekday=1),"quarters"===r){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?kU.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):hz}toLocaleString(e=WM,t={}){return this.isValid?kU.create(this.loc.clone(t),e).formatDateTime(this):hz}toLocaleParts(e={}){return this.isValid?kU.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a="extended"===e;let o=wz(this,a);return o+="T",o+=_z(this,a,t,r,n,i),o}toISODate({format:e="extended"}={}){return this.isValid?wz(this,"extended"===e):null}toISOWeekDate(){return bz(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:i=!1,format:a="extended"}={}){if(!this.isValid)return null;return(n?"T":"")+_z(this,"extended"===a,t,e,r,i)}toRFC2822(){return bz(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return bz(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?wz(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(r&&(n+=" "),t?n+="z":e&&(n+="ZZ")),bz(this,n,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():hz}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return kq.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=(s=t,Array.isArray(s)?s:[s]).map(kq.normalizeUnit),a=e.valueOf()>this.valueOf(),o=Rq(a?this:e,a?e:this,i,n);var s;return a?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(Rz.now(),e,t)}until(e){return this.isValid?Nq.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const r=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t)<=r&&r<=n.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Rz.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(Rz.isDateTime))throw new zM("max requires all arguments be DateTimes");return $P(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:i=null}=r;return Kq(NP.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return Rz.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return WM}static get DATE_MED(){return YM}static get DATE_MED_WITH_WEEKDAY(){return $M}static get DATE_FULL(){return ZM}static get DATE_HUGE(){return XM}static get TIME_SIMPLE(){return KM}static get TIME_WITH_SECONDS(){return QM}static get TIME_WITH_SHORT_OFFSET(){return JM}static get TIME_WITH_LONG_OFFSET(){return eP}static get TIME_24_SIMPLE(){return tP}static get TIME_24_WITH_SECONDS(){return rP}static get TIME_24_WITH_SHORT_OFFSET(){return nP}static get TIME_24_WITH_LONG_OFFSET(){return iP}static get DATETIME_SHORT(){return aP}static get DATETIME_SHORT_WITH_SECONDS(){return oP}static get DATETIME_MED(){return sP}static get DATETIME_MED_WITH_SECONDS(){return uP}static get DATETIME_MED_WITH_WEEKDAY(){return lP}static get DATETIME_FULL(){return cP}static get DATETIME_FULL_WITH_SECONDS(){return hP}static get DATETIME_HUGE(){return dP}static get DATETIME_HUGE_WITH_SECONDS(){return fP}}function Lz(e){if(Rz.isDateTime(e))return e;if(e&&e.valueOf&&VP(e.valueOf()))return Rz.fromJSDate(e);if(e&&"object"==typeof e)return Rz.fromObject(e);throw new zM(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Bz={renderNullAs:"\\-",taskCompletionTracking:!1,taskCompletionUseEmojiShorthand:!1,taskCompletionText:"completion",taskCompletionDateFormat:"yyyy-MM-dd",recursiveSubTaskCompletion:!1,warnOnEmptyResult:!0,refreshEnabled:!0,refreshInterval:2500,defaultDateFormat:"MMMM dd, yyyy",defaultDateTimeFormat:"h:mm a - MMMM dd, yyyy",maxRecursiveRenderDepth:4,tableIdColumnName:"File",tableGroupColumnName:"Group",showResultCount:!0};class Mz{constructor(e){this.value=e,this.successful=!0}map(e){return new Mz(e(this.value))}flatMap(e){return e(this.value)}mapErr(e){return this}bimap(e,t){return this.map(e)}orElse(e){return this.value}cast(){return this}orElseThrow(e){return this.value}}class Pz{constructor(e){this.error=e,this.successful=!1}map(e){return this}flatMap(e){return this}mapErr(e){return new Pz(e(this.error))}bimap(e,t){return this.mapErr(t)}orElse(e){return e}cast(){return this}orElseThrow(e){throw e?new Error(e(this.error)):new Error(""+this.error)}}var Uz;!function(e){function t(e){return new Mz(e)}function r(e){return new Pz(e)}function n(e,t,n){return e.successful?t.successful?n(e.value,t.value):r(t.error):r(e.error)}e.success=t,e.failure=r,e.flatMap2=n,e.map2=function(e,r,i){return n(e,r,((e,r)=>t(i(e,r))))}}(Uz||(Uz={}));"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==a||"undefined"!=typeof self&&self;var qz={exports:{}};"undefined"!=typeof self&&self,qz.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){function n(e){if(!(this instanceof n))return new n(e);this._=e}var i=n.prototype;function a(e,t){for(var r=0;r>7),buf:function(e){var t=o((function(e,t,r,n){return e.concat(r===n.length-1?KB.from([t,0]).readUInt16BE(0):n.readUInt16BE(r))}),[],e);return KB.from(s((function(e){return(e<<1&65535)>>8}),t))}(r.buf)}})),r}function l(){return void 0!==KB}function c(){if(!l())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function h(e){c();var t=o((function(e,t){return e+t}),0,e);if(t%8!=0)throw new Error("The bits ["+e.join(", ")+"] add up to "+t+" which is not an even number of bytes; the total should be divisible by 8");var r,i=t/8,a=(r=function(e){return e>48},o((function(e,t){return e||(r(t)?t:e)}),null,e));if(a)throw new Error(a+" bit range requested exceeds 48 bit (6 byte) Number max.");return new n((function(t,r){var n=i+r;return n>t.length?w(r,i.toString()+" bytes"):b(n,o((function(e,t){var r=u(t,e.buf);return{coll:e.coll.concat(r.v),buf:r.buf}}),{coll:[],buf:t.slice(r,n)},e).coll)}))}function d(e,t){return new n((function(r,n){return c(),n+t>r.length?w(n,t+" bytes for "+e):b(n+t,r.slice(n,n+t))}))}function f(e,t){if("number"!=typeof(r=t)||Math.floor(r)!==r||t<0||t>6)throw new Error(e+" requires integer length in range [0, 6].");var r}function p(e){return f("uintBE",e),d("uintBE("+e+")",e).map((function(t){return t.readUIntBE(0,e)}))}function m(e){return f("uintLE",e),d("uintLE("+e+")",e).map((function(t){return t.readUIntLE(0,e)}))}function g(e){return f("intBE",e),d("intBE("+e+")",e).map((function(t){return t.readIntBE(0,e)}))}function v(e){return f("intLE",e),d("intLE("+e+")",e).map((function(t){return t.readIntLE(0,e)}))}function D(e){return e instanceof n}function y(e){return"[object Array]"==={}.toString.call(e)}function E(e){return l()&&KB.isBuffer(e)}function b(e,t){return{status:!0,index:e,value:t,furthest:-1,expected:[]}}function w(e,t){return y(t)||(t=[t]),{status:!1,index:-1,value:null,furthest:e,expected:t}}function _(e,t){if(!t)return e;if(e.furthest>t.furthest)return e;var r=e.furthest===t.furthest?function(e,t){if(function(){if(void 0!==n._supportsSet)return n._supportsSet;var e="undefined"!=typeof Set;return n._supportsSet=e,e}()&&Array.from){for(var r=new Set(e),i=0;i=0;){if(o in r){n=r[o].line,0===a&&(a=r[o].lineStart);break}("\n"===e.charAt(o)||"\r"===e.charAt(o)&&"\n"!==e.charAt(o+1))&&(i++,0===a&&(a=o+1)),o--}var s=n+i,u=t-a;return r[t]={line:s,lineStart:a},{offset:t,line:s+1,column:u+1}}function A(e){if(!D(e))throw new Error("not a parser: "+e)}function S(e,t){return"string"==typeof e?e.charAt(t):e[t]}function x(e){if("number"!=typeof e)throw new Error("not a number: "+e)}function k(e){if("function"!=typeof e)throw new Error("not a function: "+e)}function F(e){if("string"!=typeof e)throw new Error("not a string: "+e)}var N=2,I=3,O=8,R=5*O,L=4*O,B=" ";function M(e,t){return new Array(t+1).join(e)}function P(e,t,r){var n=t-e.length;return n<=0?e:M(r,n)+e}function U(e,t,r,n){return{from:e-t>0?e-t:0,to:e+r>n?n:e+r}}function q(e,t){var r,n,i,a,u,l=t.index,c=l.offset,h=1;if(c===e.length)return"Got the end of the input";if(E(e)){var d=c-c%O,f=c-d,p=U(d,R,L+O,e.length),m=s((function(e){return s((function(e){return P(e.toString(16),2,"0")}),e)}),function(e,t){var r=e.length,n=[],i=0;if(r<=t)return[e.slice()];for(var a=0;a=4&&(r+=1),h=2,i=s((function(e){return e.length<=4?e.join(" "):e.slice(0,4).join(" ")+" "+e.slice(4).join(" ")}),m),(u=(8*(a.to>0?a.to-1:a.to)).toString(16).length)<2&&(u=2)}else{var g=e.split(/\r\n|[\n\r\u2028\u2029]/);r=l.column-1,n=l.line-1,a=U(n,N,I,g.length),i=g.slice(a.from,a.to),u=a.to.toString().length}var v=n-a.from;return E(e)&&(u=(8*(a.to>0?a.to-1:a.to)).toString(16).length)<2&&(u=2),o((function(t,n,i){var o,s=i===v,l=s?"> ":B;return o=E(e)?P((8*(a.from+i)).toString(16),u,"0"):P((a.from+i+1).toString(),u," "),[].concat(t,[l+o+" | "+n],s?[B+M(" ",u)+" | "+P("",r," ")+M("^",h)]:[])}),[],i).join("\n")}function z(e,t){return["\n","-- PARSING FAILED "+M("-",50),"\n\n",q(e,t),"\n\n",(r=t.expected,1===r.length?"Expected:\n\n"+r[0]:"Expected one of the following: \n\n"+r.join(", ")),"\n"].join("");var r}function j(e){return void 0!==e.flags?e.flags:[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.unicode?"u":"",e.sticky?"y":""].join("")}function H(){for(var e=[].slice.call(arguments),t=e.length,r=0;r=2?x(t):t=0;var r=function(e){return RegExp("^(?:"+e.source+")",j(e))}(e),i=""+e;return n((function(e,n){var a=r.exec(e.slice(n));if(a){if(0<=t&&t<=a.length){var o=a[0],s=a[t];return b(n+o.length,s)}return w(n,"valid match group (0 to "+a.length+") in "+i)}return w(n,i)}))}function X(e){return n((function(t,r){return b(r,e)}))}function K(e){return n((function(t,r){return w(r,e)}))}function Q(e){if(D(e))return n((function(t,r){var n=e._(t,r);return n.index=r,n.value="",n}));if("string"==typeof e)return Q($(e));if(e instanceof RegExp)return Q(Z(e));throw new Error("not a string, regexp, or parser: "+e)}function J(e){return A(e),n((function(t,r){var n=e._(t,r),i=t.slice(r,n.index);return n.status?w(r,'not "'+i+'"'):b(r,null)}))}function ee(e){return k(e),n((function(t,r){var n=S(t,r);return r=e.length?w(t,"any character/byte"):b(t+1,S(e,t))})),ae=n((function(e,t){return b(e.length,e.slice(t))})),oe=n((function(e,t){return t=0})).desc(t)},n.optWhitespace=he,n.Parser=n,n.range=function(e,t){return ee((function(r){return e<=r&&r<=t})).desc(e+"-"+t)},n.regex=Z,n.regexp=Z,n.sepBy=W,n.sepBy1=Y,n.seq=H,n.seqMap=G,n.seqObj=function(){for(var e,t={},r=0,i=(e=arguments,Array.prototype.slice.call(e)),a=i.length,o=0;o255)throw new Error("Value specified to byte constructor ("+e+"=0x"+e.toString(16)+") is larger in value than a single byte.");var t=(e>15?"0x":"0x0")+e.toString(16);return n((function(r,n){var i=S(r,n);return i===e?b(n+1,i):w(n,t)}))},buffer:function(e){return d("buffer",e).map((function(e){return KB.from(e)}))},encodedString:function(e,t){return d("string",t).map((function(t){return t.toString(e)}))},uintBE:p,uint8BE:p(1),uint16BE:p(2),uint32BE:p(4),uintLE:m,uint8LE:m(1),uint16LE:m(2),uint32LE:m(4),intBE:g,int8BE:g(1),int16BE:g(2),int32BE:g(4),intLE:v,int8LE:v(1),int16LE:v(2),int32LE:v(4),floatBE:d("floatBE",4).map((function(e){return e.readFloatBE(0)})),floatLE:d("floatLE",4).map((function(e){return e.readFloatLE(0)})),doubleBE:d("doubleBE",8).map((function(e){return e.readDoubleBE(0)})),doubleLE:d("doubleLE",8).map((function(e){return e.readDoubleLE(0)}))},e.exports=n}]);var zz=qz.exports;function jz(e){return null==e?e:e.shiftToAll().normalize()}function Hz(e){return e.includes("/")&&(e=e.substring(e.lastIndexOf("/")+1)),e.endsWith(".md")&&(e=e.substring(0,e.length-3)),e}zz.alt(zz.regex(new RegExp(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"")),zz.regex(/[0-9\p{Letter}_-]+/u).map((e=>e.toLocaleLowerCase())),zz.whitespace.map((e=>"-")),zz.any.map((e=>""))).many().map((e=>e.join("")));const Gz=zz.alt(zz.regex(new RegExp(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"")),zz.regex(/[0-9\p{Letter}_-]+/u),zz.whitespace.map((e=>" ")),zz.any.map((e=>" "))).many().map((e=>e.join("").split(/\s+/).join(" ").trim()));function Vz(e){return Gz.tryParse(e)}var Wz,Yz,$z,Zz,Xz;!function(e){function t(e){return o(e)?{type:"null",value:e}:n(e)?{type:"number",value:e}:r(e)?{type:"string",value:e}:u(e)?{type:"boolean",value:e}:a(e)?{type:"duration",value:e}:i(e)?{type:"date",value:e}:c(e)?{type:"widget",value:e}:s(e)?{type:"array",value:e}:l(e)?{type:"link",value:e}:f(e)?{type:"function",value:e}:h(e)?{type:"html",value:e}:d(e)?{type:"object",value:e}:void 0}function r(e){return"string"==typeof e}function n(e){return"number"==typeof e}function i(e){return e instanceof Rz}function a(e){return e instanceof kq}function o(e){return null==e}function s(e){return Array.isArray(e)}function u(e){return"boolean"==typeof e}function l(e){return e instanceof Kz}function c(e){return e instanceof Qz}function h(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function d(e){return!("object"!=typeof e||h(e)||c(e)||s(e)||a(e)||i(e)||l(e)||void 0===e||o(e))}function f(e){return"function"==typeof e}e.toString=function e(r,n=Bz,i=!1){let a=t(r);if(!a)return n.renderNullAs;switch(a.type){case"null":return n.renderNullAs;case"string":return a.value;case"number":case"boolean":return""+a.value;case"html":return a.value.outerHTML;case"widget":case"link":return a.value.markdown();case"function":return"";case"array":let t="";return i&&(t+="["),t+=a.value.map((t=>e(t,n,!0))).join(", "),i&&(t+="]"),t;case"object":return"{ "+Object.entries(a.value).map((t=>t[0]+": "+e(t[1],n,!0))).join(", ")+" }";case"date":return 0==a.value.second&&0==a.value.hour&&0==a.value.minute?a.value.toFormat(n.defaultDateFormat):a.value.toFormat(n.defaultDateTimeFormat);case"duration":return o=jz(o=a.value),(o=kq.fromObject(Object.fromEntries(Object.entries(o.toObject()).filter((([,e])=>0!=e))))).toHuman()}var o},e.wrapValue=t,e.mapLeaves=function e(t,r){if(d(t)){let n={};for(let[i,a]of Object.entries(t))n[i]=e(a,r);return n}if(s(t)){let n=[];for(let i of t)n.push(e(i,r));return n}return r(t)},e.compareValue=function e(r,n,i){var a,o;if(void 0===r&&(r=null),void 0===n&&(n=null),null===r&&null===n)return 0;if(null===r)return-1;if(null===n)return 1;let s=t(r),u=t(n);if(void 0===s&&void 0===u)return 0;if(void 0===s)return-1;if(void 0===u)return 1;if(s.type!=u.type)return s.type.localeCompare(u.type);if(s.value===u.value)return 0;switch(s.type){case"string":return s.value.localeCompare(u.value);case"number":return s.valuee,l=n(t.path).localeCompare(n(r.path));if(0!=l)return l;let c=t.type.localeCompare(r.type);return 0!=c?c:t.subpath&&!r.subpath?1:!t.subpath&&r.subpath?-1:t.subpath||r.subpath?(null!==(a=t.subpath)&&void 0!==a?a:"").localeCompare(null!==(o=r.subpath)&&void 0!==o?o:""):0;case"date":case"duration":return s.value0;case"boolean":return r.value;case"link":return!!r.value.path;case"date":return 0!=r.value.toMillis();case"duration":return 0!=r.value.as("seconds");case"object":return Object.keys(r.value).length>0;case"null":return!1;case"html":case"widget":case"function":return!0}},e.deepCopy=function t(r){if(null==r)return r;if(e.isArray(r))return[].concat(r.map((e=>t(e))));if(e.isObject(r)){let e={};for(let[n,i]of Object.entries(r))e[n]=t(i);return e}return r},e.isString=r,e.isNumber=n,e.isDate=i,e.isDuration=a,e.isNull=o,e.isArray=s,e.isBoolean=u,e.isLink=l,e.isWidget=c,e.isHtml=h,e.isObject=d,e.isFunction=f}(Wz||(Wz={})),function(e){function t(e){return Wz.isObject(e)&&2==Object.keys(e).length&&"key"in e&&"rows"in e}function r(e){for(let r of e)if(!t(r))return!1;return!0}e.isElementGroup=t,e.isGrouping=r,e.count=function e(t){if(r(t)){let r=0;for(let n of t)r+=e(n.rows);return r}return t.length}}(Yz||(Yz={}));class Kz{static file(e,t=!1,r){return new Kz({path:e,embed:t,display:r,subpath:void 0,type:"file"})}static infer(e,t=!1,r){if(e.includes("#^")){let n=e.split("#^");return Kz.block(n[0],n[1],t,r)}if(e.includes("#")){let n=e.split("#");return Kz.header(n[0],n[1],t,r)}return Kz.file(e,t,r)}static header(e,t,r,n){return new Kz({path:e,embed:r,display:n,subpath:Vz(t),type:"header"})}static block(e,t,r,n){return new Kz({path:e,embed:r,display:n,subpath:t,type:"block"})}static fromObject(e){return new Kz(e)}constructor(e){Object.assign(this,e)}equals(e){return null!=e&&null!=e&&(this.path==e.path&&this.type==e.type&&this.subpath==e.subpath)}toString(){return this.markdown()}toObject(){return{path:this.path,type:this.type,subpath:this.subpath,display:this.display,embed:this.embed}}withPath(e){return new Kz(Object.assign({},this,{path:e}))}withDisplay(e){return new Kz(Object.assign({},this,{display:e}))}withHeader(e){return Kz.header(this.path,e,this.embed,this.display)}toFile(){return Kz.file(this.path,this.embed,this.display)}toEmbed(){if(this.embed)return this;{let e=new Kz(this);return e.embed=!0,e}}fromEmbed(){if(this.embed){let e=new Kz(this);return e.embed=!1,e}return this}markdown(){let e=(this.embed?"!":"")+"[["+this.obsidianLink();return this.display?e+="|"+this.display:(e+="|"+Hz(this.path),"header"!=this.type&&"block"!=this.type||(e+=" > "+this.subpath)),e+="]]",e}obsidianLink(){var e,t;const r=this.path.replace("|","\\|");return"header"==this.type?r+"#"+(null===(e=this.subpath)||void 0===e?void 0:e.replace("|","\\|")):"block"==this.type?r+"#^"+(null===(t=this.subpath)||void 0===t?void 0:t.replace("|","\\|")):r}fileName(){return Hz(this.path).replace(".md","")}}class Qz{constructor(e){this.$widget=e}}class Jz extends Qz{constructor(e,t){super("dataview:list-pair"),this.key=e,this.value=t}markdown(){return`${Wz.toString(this.key)}: ${Wz.toString(this.value)}`}}class ej extends Qz{constructor(e,t){super("dataview:external-link"),this.url=e,this.display=t}markdown(){var e;return`[${null!==(e=this.display)&&void 0!==e?e:this.url}](${this.url})`}}!function(e){function t(e){return"dataview:list-pair"===e.$widget}function r(e){return"dataview:external-link"===e.$widget}e.listPair=function(e,t){return new Jz(e,t)},e.externalLink=function(e,t){return new ej(e,t)},e.isListPair=t,e.isExternalLink=r,e.isBuiltin=function(e){return t(e)||r(e)}}($z||($z={})),function(e){e.variable=function(e){return{type:"variable",name:e}},e.literal=function(e){return{type:"literal",value:e}},e.binaryOp=function(e,t,r){return{type:"binaryop",left:e,op:t,right:r}},e.index=function(e,t){return{type:"index",object:e,index:t}},e.indexVariable=function(t){let r=t.split("."),n=e.variable(r[0]);for(let t=1;t"==e||">="==e||"!="==e||"="==e},e.NULL=e.literal(null)}(Zz||(Zz={})),function(e){e.tag=function(e){return{type:"tag",tag:e}},e.csv=function(e){return{type:"csv",path:e}},e.folder=function(e){return{type:"folder",folder:e}},e.link=function(e,t){return{type:"link",file:e,direction:t?"incoming":"outgoing"}},e.binaryOp=function(e,t,r){return{type:"binaryop",left:e,op:t,right:r}},e.and=function(e,t){return{type:"binaryop",left:e,op:"&",right:t}},e.or=function(e,t){return{type:"binaryop",left:e,op:"|",right:t}},e.negate=function(e){return{type:"negate",child:e}},e.empty=function(){return{type:"empty"}}}(Xz||(Xz={}));const tj=new RegExp(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,""),rj={year:kq.fromObject({years:1}),years:kq.fromObject({years:1}),yr:kq.fromObject({years:1}),yrs:kq.fromObject({years:1}),month:kq.fromObject({months:1}),months:kq.fromObject({months:1}),mo:kq.fromObject({months:1}),mos:kq.fromObject({months:1}),week:kq.fromObject({weeks:1}),weeks:kq.fromObject({weeks:1}),wk:kq.fromObject({weeks:1}),wks:kq.fromObject({weeks:1}),w:kq.fromObject({weeks:1}),day:kq.fromObject({days:1}),days:kq.fromObject({days:1}),d:kq.fromObject({days:1}),hour:kq.fromObject({hours:1}),hours:kq.fromObject({hours:1}),hr:kq.fromObject({hours:1}),hrs:kq.fromObject({hours:1}),h:kq.fromObject({hours:1}),minute:kq.fromObject({minutes:1}),minutes:kq.fromObject({minutes:1}),min:kq.fromObject({minutes:1}),mins:kq.fromObject({minutes:1}),m:kq.fromObject({minutes:1}),second:kq.fromObject({seconds:1}),seconds:kq.fromObject({seconds:1}),sec:kq.fromObject({seconds:1}),secs:kq.fromObject({seconds:1}),s:kq.fromObject({seconds:1})},nj={now:()=>Rz.local(),today:()=>Rz.local().startOf("day"),yesterday:()=>Rz.local().startOf("day").minus(kq.fromObject({days:1})),tomorrow:()=>Rz.local().startOf("day").plus(kq.fromObject({days:1})),sow:()=>Rz.local().startOf("week"),"start-of-week":()=>Rz.local().startOf("week"),eow:()=>Rz.local().endOf("week"),"end-of-week":()=>Rz.local().endOf("week"),soy:()=>Rz.local().startOf("year"),"start-of-year":()=>Rz.local().startOf("year"),eoy:()=>Rz.local().endOf("year"),"end-of-year":()=>Rz.local().endOf("year"),som:()=>Rz.local().startOf("month"),"start-of-month":()=>Rz.local().startOf("month"),eom:()=>Rz.local().endOf("month"),"end-of-month":()=>Rz.local().endOf("month")},ij=["FROM","WHERE","LIMIT","GROUP","FLATTEN"];function aj(e,t,r){return zz.seqMap(e,zz.seq(zz.optWhitespace,t,zz.optWhitespace,e).many(),((e,t)=>{if(0==t.length)return e;let n=r(e,t[0][1],t[0][3]);for(let e=1;ezz.regexp(/-?[0-9]+(\.[0-9]+)?/).map((e=>Number.parseFloat(e))).desc("number"),string:e=>zz.string('"').then(zz.alt(e.escapeCharacter,zz.noneOf('"\\')).atLeast(0).map((e=>e.join("")))).skip(zz.string('"')).desc("string"),escapeCharacter:e=>zz.string("\\").then(zz.any).map((e=>'"'===e?'"':"\\"===e?"\\":"\\"+e)),bool:e=>zz.regexp(/true|false|True|False/).map((e=>"true"==e.toLowerCase())).desc("boolean ('true' or 'false')"),tag:e=>zz.seqMap(zz.string("#"),zz.alt(zz.regexp(/[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]/).desc("text")).many(),((e,t)=>e+t.join(""))).desc("tag ('#hello/stuff')"),identifier:e=>zz.seqMap(zz.alt(zz.regexp(/\p{Letter}/u),zz.regexp(tj).desc("text")),zz.alt(zz.regexp(/[0-9\p{Letter}_-]/u),zz.regexp(tj).desc("text")).many(),((e,t)=>e+t.join(""))).desc("variable identifier"),link:e=>zz.regexp(/\[\[([^\[\]]*?)\]\]/u,1).map((e=>function(e){let[t,r]=function(e){let t=-1;for(;(t=e.indexOf("|",t+1))>=0;)if(!(t>0&&"\\"==e[t-1]))return[e.substring(0,t).replace(/\\\|/g,"|"),e.substring(t+1)];return[e.replace(/\\\|/g,"|"),void 0]}(e);return Kz.infer(t,!1,r)}(e))).desc("file link"),embedLink:e=>zz.seqMap(zz.string("!").atMost(1),e.link,((e,t)=>(e.length>0&&(t.embed=!0),t))).desc("file link"),binaryPlusMinus:e=>zz.regexp(/\+|-/).map((e=>e)).desc("'+' or '-'"),binaryMulDiv:e=>zz.regexp(/\*|\/|%/).map((e=>e)).desc("'*' or '/' or '%'"),binaryCompareOp:e=>zz.regexp(/>=|<=|!=|>|<|=/).map((e=>e)).desc("'>=' or '<=' or '!=' or '=' or '>' or '<'"),binaryBooleanOp:e=>zz.regexp(/and|or|&|\|/i).map((e=>"and"==e.toLowerCase()?"&":"or"==e.toLowerCase()?"|":e)).desc("'and' or 'or'"),rootDate:e=>zz.seqMap(zz.regexp(/\d{4}/),zz.string("-"),zz.regexp(/\d{2}/),((e,t,r)=>Rz.fromObject({year:Number.parseInt(e),month:Number.parseInt(r)}))).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),dateShorthand:e=>zz.alt(...Object.keys(nj).sort(((e,t)=>t.length-e.length)).map(zz.string)),date:e=>function(e,...t){return zz.custom(((r,n)=>(r,n)=>{let i=e._(r,n);if(!i.status)return i;for(let e of t){let t=e(i.value)._(r,i.index);if(!t.status)return i;i=t}return i}))}(e.rootDate,(e=>zz.seqMap(zz.string("-"),zz.regexp(/\d{2}/),((t,r)=>e.set({day:Number.parseInt(r)})))),(e=>zz.seqMap(zz.string("T"),zz.regexp(/\d{2}/),((t,r)=>e.set({hour:Number.parseInt(r)})))),(e=>zz.seqMap(zz.string(":"),zz.regexp(/\d{2}/),((t,r)=>e.set({minute:Number.parseInt(r)})))),(e=>zz.seqMap(zz.string(":"),zz.regexp(/\d{2}/),((t,r)=>e.set({second:Number.parseInt(r)})))),(e=>zz.alt(zz.seqMap(zz.string("."),zz.regexp(/\d{3}/),((t,r)=>e.set({millisecond:Number.parseInt(r)}))),zz.succeed(e))),(e=>zz.alt(zz.seqMap(zz.string("+").or(zz.string("-")),zz.regexp(/\d{1,2}(:\d{2})?/),((t,r)=>e.setZone("UTC"+t+r,{keepLocalTime:!0}))),zz.seqMap(zz.string("Z"),(()=>e.setZone("utc",{keepLocalTime:!0}))),zz.seqMap(zz.string("["),zz.regexp(/[0-9A-Za-z+-\/]+/u),zz.string("]"),((t,r,n)=>e.setZone(r,{keepLocalTime:!0})))))).assert((e=>e.isValid),"valid date").desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),datePlus:e=>zz.alt(e.dateShorthand.map((e=>nj[e]())),e.date).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS] or in shorthand"),durationType:e=>zz.alt(...Object.keys(rj).sort(((e,t)=>t.length-e.length)).map(zz.string)),duration:e=>zz.seqMap(e.number,zz.optWhitespace,e.durationType,((e,t,r)=>rj[r].mapUnits((t=>t*e)))).sepBy1(zz.string(",").trim(zz.optWhitespace).or(zz.optWhitespace)).map((e=>e.reduce(((e,t)=>e.plus(t))))).desc("duration like 4hr2min"),rawNull:e=>zz.string("null"),tagSource:e=>e.tag.map((e=>Xz.tag(e))),csvSource:e=>zz.seqMap(zz.string("csv(").skip(zz.optWhitespace),e.string,zz.string(")"),((e,t,r)=>Xz.csv(t))),linkIncomingSource:e=>e.link.map((e=>Xz.link(e.path,!0))),linkOutgoingSource:e=>zz.seqMap(zz.string("outgoing(").skip(zz.optWhitespace),e.link,zz.string(")"),((e,t,r)=>Xz.link(t.path,!1))),folderSource:e=>e.string.map((e=>Xz.folder(e))),parensSource:e=>zz.seqMap(zz.string("("),zz.optWhitespace,e.source,zz.optWhitespace,zz.string(")"),((e,t,r,n,i)=>r)),negateSource:e=>zz.seqMap(zz.alt(zz.string("-"),zz.string("!")),e.atomSource,((e,t)=>Xz.negate(t))),atomSource:e=>zz.alt(e.parensSource,e.negateSource,e.linkOutgoingSource,e.linkIncomingSource,e.folderSource,e.tagSource,e.csvSource),binaryOpSource:e=>aj(e.atomSource,e.binaryBooleanOp.map((e=>e)),Xz.binaryOp),source:e=>e.binaryOpSource,variableField:e=>e.identifier.chain((e=>ij.includes(e.toUpperCase())?zz.fail("Variable fields cannot be a keyword ("+ij.join(" or ")+")"):zz.succeed(Zz.variable(e)))).desc("variable"),numberField:e=>e.number.map((e=>Zz.literal(e))).desc("number"),stringField:e=>e.string.map((e=>Zz.literal(e))).desc("string"),boolField:e=>e.bool.map((e=>Zz.literal(e))).desc("boolean"),dateField:e=>zz.seqMap(zz.string("date("),zz.optWhitespace,e.datePlus,zz.optWhitespace,zz.string(")"),((e,t,r,n,i)=>Zz.literal(r))).desc("date"),durationField:e=>zz.seqMap(zz.string("dur("),zz.optWhitespace,e.duration,zz.optWhitespace,zz.string(")"),((e,t,r,n,i)=>Zz.literal(r))).desc("duration"),nullField:e=>e.rawNull.map((e=>Zz.NULL)),linkField:e=>e.link.map((e=>Zz.literal(e))),listField:e=>e.field.sepBy(zz.string(",").trim(zz.optWhitespace)).wrap(zz.string("[").skip(zz.optWhitespace),zz.optWhitespace.then(zz.string("]"))).map((e=>Zz.list(e))).desc("list ('[1, 2, 3]')"),objectField:e=>zz.seqMap(e.identifier.or(e.string),zz.string(":").trim(zz.optWhitespace),e.field,((e,t,r)=>({name:e,value:r}))).sepBy(zz.string(",").trim(zz.optWhitespace)).wrap(zz.string("{").skip(zz.optWhitespace),zz.optWhitespace.then(zz.string("}"))).map((e=>{let t={};for(let r of e)t[r.name]=r.value;return Zz.object(t)})).desc("object ('{ a: 1, b: 2 }')"),atomInlineField:e=>zz.alt(e.date,e.duration.map((e=>jz(e))),e.string,e.tag,e.embedLink,e.bool,e.number,e.rawNull),inlineFieldList:e=>e.atomInlineField.sepBy(zz.string(",").trim(zz.optWhitespace).lookahead(e.atomInlineField)),inlineField:e=>zz.alt(zz.seqMap(e.atomInlineField,zz.string(",").trim(zz.optWhitespace),e.inlineFieldList,((e,t,r)=>[e].concat(r))),e.atomInlineField),atomField:e=>zz.alt(e.embedLink.map((e=>Zz.literal(e))),e.negatedField,e.linkField,e.listField,e.objectField,e.lambdaField,e.parensField,e.boolField,e.numberField,e.stringField,e.dateField,e.durationField,e.nullField,e.variableField),indexField:e=>zz.seqMap(e.atomField,zz.alt(e.dotPostfix,e.indexPostfix,e.functionPostfix).many(),((e,t)=>{let r=e;for(let e of t)switch(e.type){case"dot":r=Zz.index(r,Zz.literal(e.field));break;case"index":r=Zz.index(r,e.field);break;case"function":r=Zz.func(r,e.fields)}return r})),negatedField:e=>zz.seqMap(zz.string("!"),e.indexField,((e,t)=>Zz.negate(t))).desc("negated field"),parensField:e=>zz.seqMap(zz.string("("),zz.optWhitespace,e.field,zz.optWhitespace,zz.string(")"),((e,t,r,n,i)=>r)),lambdaField:e=>zz.seqMap(e.identifier.sepBy(zz.string(",").trim(zz.optWhitespace)).wrap(zz.string("(").trim(zz.optWhitespace),zz.string(")").trim(zz.optWhitespace)),zz.string("=>").trim(zz.optWhitespace),e.field,((e,t,r)=>({type:"lambda",arguments:e,value:r}))),dotPostfix:e=>zz.seqMap(zz.string("."),e.identifier,((e,t)=>({type:"dot",field:t}))),indexPostfix:e=>zz.seqMap(zz.string("["),zz.optWhitespace,e.field,zz.optWhitespace,zz.string("]"),((e,t,r,n,i)=>({type:"index",field:r}))),functionPostfix:e=>zz.seqMap(zz.string("("),zz.optWhitespace,e.field.sepBy(zz.string(",").trim(zz.optWhitespace)),zz.optWhitespace,zz.string(")"),((e,t,r,n,i)=>({type:"function",fields:r}))),binaryMulDivField:e=>aj(e.indexField,e.binaryMulDiv,Zz.binaryOp),binaryPlusMinusField:e=>aj(e.binaryMulDivField,e.binaryPlusMinus,Zz.binaryOp),binaryCompareField:e=>aj(e.binaryPlusMinusField,e.binaryCompareOp,Zz.binaryOp),binaryBooleanField:e=>aj(e.binaryCompareField,e.binaryBooleanOp,Zz.binaryOp),binaryOpField:e=>e.binaryBooleanField,field:e=>e.binaryOpField});var sj;function uj(e,t){return zz.eof.map(e).or(zz.whitespace.then(t))}!function(e){e.named=function(e,t){return{name:e,field:t}},e.sortBy=function(e,t){return{field:e,direction:t}}}(sj||(sj={})),zz.createLanguage({queryType:e=>zz.alt(zz.regexp(/TABLE|LIST|TASK|CALENDAR/i)).map((e=>e.toLowerCase())).desc("query type ('TABLE', 'LIST', 'TASK', or 'CALENDAR')"),explicitNamedField:e=>zz.seqMap(oj.field.skip(zz.whitespace),zz.regexp(/AS/i).skip(zz.whitespace),oj.identifier.or(oj.string),((e,t,r)=>sj.named(r,e))),namedField:e=>zz.alt(e.explicitNamedField,function(e){return zz.custom(((t,r)=>(t,r)=>{let n=e._(t,r);return n.status?Object.assign({},n,{value:[n.value,t.substring(r,n.index)]}):n}))}(oj.field).map((([e,t])=>sj.named(function(e){return e.split(/[\r\n]+/).map((e=>e.trim())).join("")}(t),e)))),sortField:e=>zz.seqMap(oj.field.skip(zz.optWhitespace),zz.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1),((e,t)=>{let r=0==t.length?"ascending":t[0].toLowerCase();return"desc"==r&&(r="descending"),"asc"==r&&(r="ascending"),{field:e,direction:r}})),headerClause:e=>e.queryType.chain((t=>{switch(t){case"table":return uj((()=>({type:t,fields:[],showId:!0})),zz.seqMap(zz.regexp(/WITHOUT\s+ID/i).skip(zz.optWhitespace).atMost(1),zz.sepBy(e.namedField,zz.string(",").trim(zz.optWhitespace)),((e,r)=>({type:t,fields:r,showId:0==e.length}))));case"list":return uj((()=>({type:t,format:void 0,showId:!0})),zz.seqMap(zz.regexp(/WITHOUT\s+ID/i).skip(zz.optWhitespace).atMost(1),oj.field.atMost(1),((e,r)=>({type:t,format:1==r.length?r[0]:void 0,showId:0==e.length}))));case"task":return zz.succeed({type:t});case"calendar":return zz.whitespace.then(zz.seqMap(e.namedField,(e=>({type:t,showId:!0,field:e}))));default:return zz.fail(`Unrecognized query type '${t}'`)}})).desc("TABLE or LIST or TASK or CALENDAR"),fromClause:e=>zz.seqMap(zz.regexp(/FROM/i),zz.whitespace,oj.source,((e,t,r)=>r)),whereClause:e=>zz.seqMap(zz.regexp(/WHERE/i),zz.whitespace,oj.field,((e,t,r)=>({type:"where",clause:r}))).desc("WHERE "),sortByClause:e=>zz.seqMap(zz.regexp(/SORT/i),zz.whitespace,e.sortField.sepBy1(zz.string(",").trim(zz.optWhitespace)),((e,t,r)=>({type:"sort",fields:r}))).desc("SORT field [ASC/DESC]"),limitClause:e=>zz.seqMap(zz.regexp(/LIMIT/i),zz.whitespace,oj.field,((e,t,r)=>({type:"limit",amount:r}))).desc("LIMIT "),flattenClause:e=>zz.seqMap(zz.regexp(/FLATTEN/i).skip(zz.whitespace),e.namedField,((e,t)=>({type:"flatten",field:t}))).desc("FLATTEN [AS ]"),groupByClause:e=>zz.seqMap(zz.regexp(/GROUP BY/i).skip(zz.whitespace),e.namedField,((e,t)=>({type:"group",field:t}))).desc("GROUP BY [AS ]"),clause:e=>zz.alt(e.fromClause,e.whereClause,e.sortByClause,e.limitClause,e.groupByClause,e.flattenClause),query:e=>zz.seqMap(e.headerClause.trim(zz.optWhitespace),e.fromClause.trim(zz.optWhitespace).atMost(1),e.clause.trim(zz.optWhitespace).many(),((e,t,r)=>({header:e,source:0==t.length?Xz.folder(""):t[0],operations:r,settings:Bz})))});var lj=e=>{var t;return e?null===(t=e.plugins.plugins.dataview)||void 0===t?void 0:t.api:window.DataviewAPI};const cj="pdf-annotator",hj="annotation-target",dj="annotation-target-type",fj="https://arxiv.org/pdf/1702.08734.pdf",pj="https://cdn.hypothes.is/demos/epub/content/moby-dick/book.epub";function mj(){throw new Error("setTimeout has not been defined")}function gj(){throw new Error("clearTimeout has not been defined")}var vj=mj,Dj=gj;function yj(e){if(vj===setTimeout)return setTimeout(e,0);if((vj===mj||!vj)&&setTimeout)return vj=setTimeout,setTimeout(e,0);try{return vj(e,0)}catch(t){try{return vj.call(null,e,0)}catch(t){return vj.call(this,e,0)}}}"function"==typeof MB.setTimeout&&(vj=setTimeout),"function"==typeof MB.clearTimeout&&(Dj=clearTimeout);var Ej,bj=[],wj=!1,_j=-1;function Tj(){wj&&Ej&&(wj=!1,Ej.length?bj=Ej.concat(bj):_j=-1,bj.length&&Cj())}function Cj(){if(!wj){var e=yj(Tj);wj=!0;for(var t=bj.length;t;){for(Ej=bj,bj=[];++_j1)for(var r=1;r{t(e)||r.push(e)})),r}function yH(e,t){const r=[];return e.forEach((e=>{t(e)&&r.push(e)})),r}function EH(){return"undefined"!=typeof window?window:"object"==typeof Uj&&"function"==typeof require&&"object"==typeof MB?MB:this}var bH=new class{constructor(){this.urlMap={}}attachWebSocket(e,t){const r=this.urlMap[t];if(r&&r.server&&-1===r.websockets.indexOf(e))return r.websockets.push(e),r.server}attachServer(e,t){if(!this.urlMap[t])return this.urlMap[t]={server:e,websockets:[]},e}serverLookup(e){const t=this.urlMap[e];return t?t.server:void 0}websocketsLookup(e){const t=this.urlMap[e];return t?t.websockets:[]}removeServer(e){delete this.urlMap[e]}removeWebSocket(e,t){const r=this.urlMap[t];r&&(r.websockets=DH(r.websockets,(t=>t===e)))}};class wH{constructor(){this.listeners={}}addEventListener(e,t,r){"function"==typeof t&&(Array.isArray(this.listeners[e])||(this.listeners[e]=[]),0===yH(this.listeners[e],(e=>e===t)).length&&this.listeners[e].push(t))}removeEventListener(e,t,r){const n=this.listeners[e];this.listeners[e]=DH(n,(e=>e===t))}dispatchEvent(e,...t){const r=e.type,n=this.listeners[r];return!!Array.isArray(n)&&(n.forEach((r=>{t.length>0?r.apply(this,t):r.call(this,e)})),!0)}}function _H(e,t){setImmediate((t=>e.call(t)),t)}function TH(e){void 0!==Uj&&console.error(e)}class CH extends wH{constructor(e,t=""){if(super(),this.binaryType="blob",this.CLOSED=CH.CLOSED,this.CLOSING=CH.CLOSING,this.CONNECTING=CH.CONNECTING,this.OPEN=CH.OPEN,this._bufferedAmount=0,this._extensions="",this._protocol="",this._readyState=CH.CONNECTING,this._url="",this._onclose=null,this._onerror=null,this._onmessage=null,this._onopen=null,!e)throw new TypeError(`${hH} 1 argument required, but only 0 present.`);const r=new lH(e);if("ws:"!==r.protocol&&"wss:"!==r.protocol)throw new Error("SyntaxError: url scheme incorrect");if(r.hash)throw new Error("SyntaxError: url fragment exists");r.pathname||r.set("pathname","/"),this._url=r.toString();let n=[];"string"==typeof t?(this._protocol=t,n=[t]):Array.isArray(t)&&t.length>0&&(this._protocol=t[0],n=[...t]);const i=bH.attachWebSocket(this,this.url);if(i)if("function"!=typeof i.options.verifyClient||i.options.verifyClient()){if("function"==typeof i.options.selectProtocol){const e=i.options.selectProtocol(n),t=""!==e,r=-1!==n.indexOf(e);if(t&&!r)return void _H((function(){this._readyState=CH.CLOSED,bH.removeWebSocket(this,this.url),this.dispatchEvent(gH({type:"error",target:this})),this.dispatchEvent(vH({type:"close",target:this,code:cH})),TH(`WebSocket connection to '${this.url}' failed: Invalid Sub-Protocol`)}),this);this._protocol=e}_H((function(){this._readyState=CH.OPEN,this.dispatchEvent(gH({type:"open",target:this})),i.dispatchSocketEvent("connection",this)}),this)}else _H((function(){this._readyState=CH.CLOSED,bH.removeWebSocket(this,this.url),this.dispatchEvent(gH({type:"error",target:this})),this.dispatchEvent(vH({type:"close",target:this,code:cH})),TH(`WebSocket connection to '${this.url}' failed: HTTP Authentication failed; no valid credentials available`)}),this);else _H((function(){this._readyState=CH.CLOSED,this.dispatchEvent(gH({type:"error",target:this})),this.dispatchEvent(vH({type:"close",target:this,code:cH})),TH(`WebSocket connection to '${this.url}' failed`)}),this)}get bufferedAmount(){return this._bufferedAmount}get extensions(){return this._extensions}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}get onclose(){return this._onclose}set onclose(e){this._onclose&&(this.removeEventListener("close",this._onclose),this._onclose=null),e&&(this._onclose=e,this.addEventListener("close",e))}get onerror(){return this._onerror}set onerror(e){this._onerror&&(this.removeEventListener("error",this._onerror),this._onerror=null),e&&(this._onerror=e,this.addEventListener("error",e))}get onmessage(){return this._onmessage}set onmessage(e){this._onmessage&&(this.removeEventListener("message",this._onmessage),this._onmessage=null),e&&(this._onmessage=e,this.addEventListener("message",e))}get onopen(){return this._onopen}set onopen(e){this._onopen&&(this.removeEventListener("open",this._onopen),this._onopen=null),e&&(this._onopen=e,this.addEventListener("open",e))}send(e){if(this.readyState===CH.CONNECTING)throw bH.removeWebSocket(this,this.url),new Error("InvalidStateError");if(this.readyState===CH.CLOSING||this.readyState===CH.CLOSED)return void(this._bufferedAmount+=e.length);const t=bH.serverLookup(this.url);t&&_H((()=>{t.dispatchSocketEvent("message",this,e)}),t)}close(e,t){if(e&&!(1e3===e||e>=3e3&&e<5e3))throw new Error("InvalidAccessError: close code out of user configurable range");this.readyState!==CH.CLOSING&&this.readyState!==CH.CLOSED&&(this._readyState=CH.CLOSING,_H((function(){e||(e=1e3),this._readyState=CH.CLOSED,bH.removeWebSocket(this,this.url);const r=vH({type:"close",target:this,code:e,reason:t});this.dispatchEvent(r);const n=bH.serverLookup(this.url);n&&n.dispatchSocketEvent("close",this)}),this))}_moveToState(e){this._readyState=e}}CH.CONNECTING=0,CH.OPEN=1,CH.CLOSING=2,CH.CLOSED=3;class AH{constructor(e,t={}){this.listeners=new Map;const r=new lH(e);r.pathname||r.set("pathname","/"),this.url=r.toString(),this.originalWebSocket=null;bH.attachServer(this,this.url)||this.dispatchError(new Error("A mock server is already listening on this url")),void 0===t.mockGlobal&&(t.mockGlobal=!0),this.options=t,this.start()}start(){if(!this.options.mockGlobal)return;const e=EH();e.WebSocket&&(this.originalWebSocket=e.WebSocket),e.WebSocket=CH}stop(e){if(this.options.mockGlobal){const e=EH();this.originalWebSocket?e.WebSocket=this.originalWebSocket:delete e.WebSocket,this.originalWebSocket=null}bH.removeServer(this.url),"function"==typeof e&&e()}on(e,t){if("function"!=typeof t)return;const r=this.listeners.get(e)||[];0===yH(r,(e=>e===t)).length&&(r.push(t),this.listeners.set(e,r))}dispatchError(e){const t=this.listeners.get("error");if(t)for(const r of t){r(e)}}dispatchSocketEvent(e,t,r){const n=this.listeners.get(e);if(n)for(const i of n)switch(e){case"close":i(t);break;case"connection":{const e=i;if(!t)throw new Error("no socket");e(t);break}case"message":{const e=i;if(!t)throw new Error("no socket");if(!r)throw new Error("no data");e(t,r);break}}}send(e,t={}){this.emit("message",e,t)}emit(e,t,r={}){let n=r.websockets;n||(n=bH.websocketsLookup(this.url)),("object"!=typeof r||arguments.length>3)&&(t=Array.prototype.slice.call(arguments,1,arguments.length)),n.forEach((r=>{r.dispatchEvent(function(e){const{type:t,origin:r,data:n,target:i}=e,a=new mH(t,{data:n,origin:r});return i&&a._setTarget(i),a}({data:t,origin:this.url,target:r,type:e}))}))}close(e={}){const{code:t,reason:r,wasClean:n}=e,i=bH.websocketsLookup(this.url);bH.removeServer(this.url),i.forEach((e=>{e._moveToState(CH.CLOSED),e.dispatchEvent(vH({code:t||cH,reason:r||"",target:e,type:"close",wasClean:n}))})),this.dispatchSocketEvent("close")}clients(){return bH.websocketsLookup(this.url)}simulate(e){const t=bH.websocketsLookup(this.url);"error"===e&&t.forEach((e=>{e._moveToState(CH.CLOSED),e.dispatchEvent(gH({type:"error"}))}))}}function SH(...e){return e.reduce(((e,t)=>new URL(t,e)))}var xH=({fetch:e,getUrl:t})=>r=>{var n;const i=(t,r)=>e(t,r);let a=[];null===(n=r.webSocketSetup)||void 0===n||n.call(r,(e=>{const t=new AH(e,{mockGlobal:!1});return a.push(t),t}));const o=Vj.useRef(null),s=new WeakSet,u=new WeakMap;function l(e,r){const n=SH(r,e);return t(n)}function c(e,t){return Wj(this,void 0,void 0,(function*(){const r=(new DOMParser).parseFromString(e,"text/html");return t=SH(t,r.baseURI.startsWith(window.location.origin)?t:r.baseURI),function(e,t){for(const r of e.getElementsByTagName("img")){const e=r.getAttribute("src");e&&r.setAttribute("src",l(e,t))}}(r,t),function(e,t){for(const r of e.getElementsByTagName("style"))r.innerHTML=h(r.innerHTML,t)}(r,t),yield function(e,t){return Wj(this,void 0,void 0,(function*(){const r=[...e.getElementsByTagName("link")];for(const e of r)yield f(e,t)}))}(r,t),function(e,t){for(const r of e.getElementsByTagName("script")){const e=r.getAttribute("src");e&&(r.setAttribute("src",l(e,t)),r.setAttribute("patched-src",e))}}(r,t),function(e){for(const t of e.getElementsByTagName("iframe")){const e=t.getAttribute("src");e&&(t.removeAttribute("src"),t.setAttribute("patched-src",e))}}(r),{html:`${r.documentElement.outerHTML}`,context:t.href||t}}))}function h(e,t){return e.replaceAll(/url\(["']?(.*?)["']?\)/gm,((e,r)=>`url("${l(r,t)}")`))}function d(e){if(!e)return null;const t=e.getAttribute("patched-src");return t||d(function(e){const t=(e.defaultView||e.parentWindow).parent.document.getElementsByTagName("iframe");for(let r=t.length;r-- >0;){const n=t[r];try{if((n.contentDocument||n.contentWindow.document)===e)return n}catch(e){}}}(e.ownerDocument))}function f(e,t){return Wj(this,void 0,void 0,(function*(){if("stylesheet"===e.getAttribute("rel")){const r=e.getAttribute("href"),n=SH(t,r);try{const t=yield(yield i(n.href,{headers:{Accept:"text/css,*/*;q=0.1","Accept-Encoding":"gzip, deflate, br"}})).text();e.outerHTML=``}catch(e){}}else{const r=e.getAttribute("href");r&&(e.setAttribute("href",l(r,t)),e.setAttribute("patched-href",r))}}))}function p(e,t){if(null!=e)return Object.hasOwnProperty.call(e,t)?Object.getOwnPropertyDescriptor(e,t):p(Object.getPrototypeOf(e),t)}function m(e,t,r){const{get:n,set:i}=p(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){return n.call(this)},set(n){i.call(this,l(n,r)),t.setAttribute(`patched-${e}`,n)}});const a=t.setAttribute.bind(t);t.setAttribute=(t,n)=>{t.toLowerCase()==e.toLowerCase()?(a(t,l(n,r)),a(`patched-${t}`,n)):a(t,n)};const o=t.setAttributeNS.bind(t);t.setAttributeNS=(t,n,i)=>{n.toLowerCase()==e.toLowerCase()?(o(t,n,l(i,r)),o(t,`patched-${n}`,i)):o(t,n,i)};const s=t.setAttributeNode.bind(t);t.setAttributeNode=n=>{if(n.name.toLowerCase()==e.toLowerCase()){const e=t.ownerDocument.createAttribute(`patched-${n.name}`);e.value=n.value;const i=t.ownerDocument.createAttribute(n.name);return i.value=l(n.value,r),s(e),s(i)}return s(n)};const u=t.setAttributeNodeNS.bind(t);t.setAttributeNodeNS=n=>{if(n.name.toLowerCase()==e.toLowerCase()){const e=t.ownerDocument.createAttributeNS(n.namespaceURI,`patched-${n.name}`);e.value=n.value;const i=t.ownerDocument.createAttributeNS(n.namespaceURI,n.name);return i.value=l(n.value,r),u(e),u(i)}return u(n)}}function g(t,r){return class extends Worker{constructor(n,i){const a=l(n,r),o=(()=>Wj(this,void 0,void 0,(function*(){const r=yield e(a),n=function(e){return new Worker("data:application/javascript,"+encodeURIComponent(e))}(`\n fetchCallbacks = {};\n fetch=async (resource, init)=>{\n const id = \`\${Math.random()}\`.substr(2);\n const promise = new Promise(res=>{fetchCallbacks[id]=res;});\n self.postMessage({isFetch:true, id, resource, init});\n return await promise;\n };\n self.addEventListener("message", function(event) {\n if(event.data.isFetchResult) {\n fetchCallbacks[event.data.id](new Response(event.data.blob, event.data.init));\n fetchCallbacks[event.data.id] = null;\n }\n });\n ${yield r.text()}`);return n.addEventListener("message",(function(e){return Wj(this,void 0,void 0,(function*(){if(e.data.isFetch){const r=yield t.contentWindow.fetch(e.data.resource,e.data.init),i=yield r.blob();n.postMessage({isFetchResult:!0,id:e.data.id,blob:i,init:{status:r.status,statusText:r.statusText,headers:r.headers}})}}))})),n})))();return super(a,i),new Proxy(this,{get(e,t,r){const n=e[t];return"function"!=typeof n?n:function(...e){return Wj(this,void 0,void 0,(function*(){return(yield o)[t](...e)}))}}})}}}function v(e,t){const n=(e,r)=>i("string"==typeof e?SH(t,e).href:Object.assign(Object.assign({},e),{url:SH(t,e.url).href}),r);let a=n;r.fetchProxy&&(a=(e,i)=>r.fetchProxy({requestInfo:e,init:i,contextUrl:t,base:n}));const o=function(){function e(){this.object=new window.XMLHttpRequest;const e=this;this.object.onabort=function(t){"function"==typeof e.onabort&&e.onabort(t)},this.object.onerror=function(t){"function"==typeof e.onerror&&e.onerror(t)},this.object.onload=function(t){"function"==typeof e.onload&&e.onload(t)},this.object.onloadend=function(t){"function"==typeof e.onloadend&&e.onloadend(t)},this.object.onloadstart=function(t){"function"==typeof e.onloadstart&&e.onloadstart(t)},this.object.onprogress=function(t){"function"==typeof e.onprogress&&e.onprogress(t)},this.object.ontimeout=function(t){"function"==typeof e.ontimeout&&e.ontimeout(t)},this.object.onreadystatechange=function(t){e.readyState=e.object.readyState,e.status=e.object.status,e.statusText=e.object.statusText,e.response=e.object.response,""===e.responseType&&(e.responseText=e.object.responseText,e.responseXML=e.object.responseXML),e.responseURL=e.object.responseURL,"function"==typeof e.onreadystatechange&&e.onreadystatechange(t)},this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.onreadystatechange=null,this.ontimeout=null,this.readyState=XMLHttpRequest.UNSENT,this.responseHeaders={},this.response="",this.responseText="",this.responseType="",this.responseURL="",this.responseXML="",this.status=0,this.statusText="",this.timeout=0,this.upload=null,this.withCredentials=!1}return e.prototype={method:"",url:"",addEventListener:function(e,t){return this[`on${e}`]=t},open:function(e,t,r,n,i){this.method=e,this.url=t,this.object.responseType=this.responseType,this.object.open(e,t,"boolean"!=typeof r||r,void 0===n?null:n,void 0===i?null:i)},send:function(t){this.object.responseType=this.responseType;let r=!1;const n=this;e.handlers.forEach((function(e){if(("string"==typeof e.url&&e.url===n.url||e.url instanceof RegExp&&e.url.test(n.url))&&("string"!=typeof e.method||e.method.toUpperCase()===n.method.toUpperCase())){r=!0;const i=function(){return Wj(this,void 0,void 0,(function*(){"function"==typeof n.onloadstart&&n.onloadstart();let r=[];e.url instanceof RegExp?(r=e.url.exec(n.url),r.push(t)):r=[n.url,t];let i=null;if("function"==typeof e.headers?i=yield e.headers.apply(null,[n,...r]):"object"==typeof e.headers&&(i=e.headers),i&&"object"==typeof i)for(const e in i)i.hasOwnProperty(e)&&(n.responseHeaders[e.toLowerCase()]=i[e]);if(n.status=e.status,n.statusText=e.statusText,n.readyState=XMLHttpRequest.HEADERS_RECEIVED,"function"==typeof n.onreadystatechange&&n.onreadystatechange(),n.readyState=XMLHttpRequest.LOADING,"function"==typeof n.onreadystatechange&&n.onreadystatechange(),"string"==typeof e.response||"function"==typeof e.response){let t="";t="string"==typeof e.response?e.response:yield e.response.apply(null,[n,...r]),n.response=t,""!==n.responseType&&"text"!==n.responseType||(n.responseText=n.response),"document"===n.responseType&&(n.responseXML=n.response),n.readyState=XMLHttpRequest.DONE;const i={target:n};"function"==typeof n.onreadystatechange&&n.onreadystatechange(i),"function"==typeof n.onload&&n.onload(i),"function"==typeof n.onloadend&&n.onloadend(i)}else if("string"==typeof e.proxy||"function"==typeof e.proxy){let t="";if(t="string"==typeof e.proxy?e.proxy:yield e.proxy.apply(null,r),"string"==typeof t&&t.length>0){const r=new XMLHttpRequest;r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&200===r.status&&(n.status=e.status,n.statusText=e.statusText,n.response=r.response,n.readyState=XMLHttpRequest.DONE,""!==n.responseType&&"text"!==n.responseType||(n.responseText=r.response),"document"===n.responseType&&(n.responseXML=r.response),n.readyState=XMLHttpRequest.DONE,"function"==typeof n.onreadystatechange&&n.onreadystatechange(),"function"==typeof n.onload&&n.onload(),"function"==typeof n.onloadend&&n.onloadend())},r.open("GET",t),r.send()}}}))};"number"==typeof e.responseTime?setTimeout(i,e.responseTime):"object"==typeof e.responseTime&&2===e.responseTime.length?setTimeout(i,Math.random()*(e.responseTime[1]-e.responseTime[0])+e.responseTime[0]):i()}})),r||this.object.send(t)},abort:function(){this.object.abort()},setRequestHeader:function(e,t){this.object.setRequestHeader(e,t)},getResponseHeader:function(e){return this.responseHeaders.hasOwnProperty(e.toLowerCase())?this.responseHeaders[e.toLowerCase()]:this.object.getResponseHeader(e)},getAllResponseHeaders:function(){return Object.entries(this.responseHeaders).map((e=>e.join(": "))).join("\n")},overrideMimeType:function(e){this.object.overrideMimeType(e)}},e.prototype.constructor=e,e.handlers=[],e.addHandler=function(t){e.handlers.push(t)},e.UNSENT=XMLHttpRequest.UNSENT,e.OPENED=XMLHttpRequest.OPENED,e.LOADING=XMLHttpRequest.LOADING,e.HEADERS_RECEIVED=XMLHttpRequest.HEADERS_RECEIVED,e.DONE=XMLHttpRequest.DONE,e}();o.addHandler({url:/.*/,headers:function(e,t,r){return Wj(this,void 0,void 0,(function*(){const n=yield a(t,Object.assign({method:e.method},r?{body:r}:{}));return e._tmp=e._tmp||{},"arraybuffer"==e.responseType?e._tmp.response=yield n.arrayBuffer():e._tmp.response=yield n.text(),Object.fromEntries(n.headers.entries())}))},status:200,statusText:"OK",response:function(e,t,r){var n;return Wj(this,void 0,void 0,(function*(){return null===(n=null==e?void 0:e._tmp)||void 0===n?void 0:n.response}))}}),e.contentWindow.XMLHttpRequest=o}function D(e){return Wj(this,void 0,void 0,(function*(){s.has(e)||(s.add(e),function(e){if(!e.shadowRoot)return;const t=e.shadowRoot.getRootNode();if(!T.has(t)){const e=new MutationObserver(_);e.observe(t,{childList:!0,subtree:!0,attributes:!0}),T.set(t,e)}E(t.querySelectorAll("iframe")),b([...t.querySelectorAll("*")].filter((e=>e.shadowRoot)))}(e))}))}function y(e){return Wj(this,void 0,void 0,(function*(){if(!s.has(e)||e.getAttribute("srcDoc")&&e.getAttribute("srcDoc")!=u.get(e)){s.add(e);const t=e.getAttribute("src")||e.getAttribute("patched-src");function n(t){return Wj(this,void 0,void 0,(function*(){let n,a;t?(e.setAttribute("patched-src",t),e.removeAttribute("src"),n=function(e){const t=new URL(e).href;return r.proxy(t)}(t),a=yield(yield i(n,{headers:{Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8","Accept-Encoding":"gzip, deflate, br"}})).text()):(t=d(e),a=e.getAttribute("srcDoc"),u.set(e,a));const{html:o,context:s}=yield c(a,t);!function(e,t){if(r.tagPatchStrategy){if("function"==typeof r.tagPatchStrategy)return r.tagPatchStrategy(e,t);if("createEl"==r.tagPatchStrategy){if(!e.contentWindow)return;const n=e.contentWindow.document,i=n.createElement.bind(n),a=n.createElementNS.bind(n),o=(e,r)=>{switch(e.toLowerCase()){case"img":case"script":m("src",r,t);break;case"link":m("href",r,t)}return r};n.createElement=e=>{const t=i(e);return o(e,t)},n.createElementNS=(e,t)=>{const r=a(e,t);return o(t,r)}}if("prototype"==r.tagPatchStrategy){function s(e,n){const i=Symbol();e[i]=e.getAttribute,e.getAttribute=function(e){return n.has(e.toLowerCase())&&this[i](`patched-${e}`)||this[i](e)};const a=Symbol();e[a]=e.getAttributeNS,e.getAttributeNS=function(e,t){return n.has(e.toLowerCase())&&this[a](`patched-${e}`,t)||this[a](e,t)};const o=Symbol();e[o]=e.getAttributeNode,e.getAttributeNode=function(e){return n.has(e.toLowerCase())&&this[o](`patched-${e}`)||this[o](e)};const s=Symbol();e[s]=e.getAttributeNodeNS,e.getAttributeNodeNS=function(e,t){return n.has(e.toLowerCase())&&this[s](`patched-${e}`,t)||this[s](e,t)};const u=Symbol();e[u]=e.setAttribute,e.setAttribute=function(e,i){var a;if(n.has(e.toLowerCase())){const n=l(i,t);null===(a=r.onAttributeSet)||void 0===a||a.call(r,this,e,i,n),this[u](e,n),this[u](`patched-${e}`,i)}else this[u](e,i)};const c=Symbol();e[c]=e.setAttributeNS,e.setAttributeNS=function(e,i,a){var o;if(n.has(i.toLowerCase())){const n=l(a,t);null===(o=r.onAttributeSet)||void 0===o||o.call(r,this,i,a,n),this[c](e,i,n),this[c](e,`patched-${i}`,a)}else this[c](e,i,a)};const h=Symbol();e[h]=e.setAttributeNode,e.setAttributeNode=function(e){var i;if(n.has(e.name.toLowerCase())){const n=l(e.value,t);null===(i=r.onAttributeSet)||void 0===i||i.call(r,this,e.name,e.value,n);const a=this.ownerDocument.createAttribute(`patched-${e.name}`);a.value=e.value;const o=this.ownerDocument.createAttribute(e.name);return o.value=n,this[h](a),this[h](o)}return this[h](e)};const d=Symbol();e[d]=e.setAttributeNodeNS,e.setAttributeNodeNS=function(e){var i;if(n.has(e.name.toLowerCase())){const n=l(e.value,t);null===(i=r.onAttributeSet)||void 0===i||i.call(r,this,e.name,e.value,n);const a=this.ownerDocument.createAttributeNS(e.namespaceURI,`patched-${e.name}`);a.value=e.value;const o=this.ownerDocument.createAttributeNS(e.namespaceURI,e.name);return o.value=n,this[d](a),this[d](o)}return this[d](e)};for(const t of n)Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){return this.getAttribute(t)},set(e){return this.setAttribute(t,e)}})}const u=e.contentWindow;s(u.HTMLLinkElement.prototype,new Set(["href"])),s(u.HTMLScriptElement.prototype,new Set(["src"])),s(u.HTMLImageElement.prototype,new Set(["src"]))}}}(e,s),function(e,t){if(r.onMessagePatchStrategy){if("function"==typeof r.onMessagePatchStrategy)return r.onMessagePatchStrategy(e,t);if("patchedOriginClone"==r.onMessagePatchStrategy){const r=e.contentWindow.EventTarget.prototype,n=new WeakMap,i=r.addEventListener;r.addEventListener=function(e,r,a){if("message"==e){const o=e=>{if(null==r)return;let n=e.origin;try{n=new URL(t).origin}catch(e){}return e=new e.constructor(e.type,new Proxy(e,{get:(e,t)=>"origin"==t?n:e[t]})),"handleEvent"in r?r.handleEvent(e):r(e)};return n.set(r,o),i.apply(this,[e,o,a])}return i.apply(this,[e,r,a])};const a=r.removeEventListener;r.removeEventListener=function(e,t,r){if("message"==e){const i=n.get(t);return a.apply(this,[e,i,r])}return a.apply(this,[e,t,r])}}}}(e,s),function(e){e.contentWindow.ArrayBuffer=ArrayBuffer}(e),function(e){if(!r.postMessagePatchStrategy)return;if(!e.contentWindow)return;const t=e.contentWindow;if("function"==typeof r.postMessagePatchStrategy)return r.postMessagePatchStrategy(e);if("target"==r.postMessagePatchStrategy)return t.eval('\n const _postMessage = window.postMessage;\n window.postMessage = function(message, targetOrigin, transfer) {\n return _postMessage.apply(this, [message, "*", transfer]);\n }\n ');if("top"==r.postMessagePatchStrategy){const e=t.postMessage.bind(t);t.postMessage=function(...t){return t[1]="*",e(...t)}}}(e),function(e,t){const n=(e,r)=>i("string"==typeof e?SH(t,e).href:Object.assign(Object.assign({},e),{url:SH(t,e.url).href}),r);r.fetchProxy?e.contentWindow.fetch=(e,i)=>r.fetchProxy({requestInfo:e,init:i,contextUrl:t,base:n}):e.contentWindow.fetch=n}(e,s),function(e){e.contentWindow.console=new Proxy({},{get:()=>()=>null})}(e),function(e,t){e.contentWindow.Worker=g(e,t)}(e,s),v(e,s),function(e){e.contentWindow.WebSocket=CH}(e),A(e,o),w(e),e.setAttribute("patched","true"),yield r.onIframePatch(e)}))}yield n(t);const a=e.setAttribute.bind(e);e.setAttribute=(e,t)=>{"src"==e?n(t):a(e,t)};const o=e.setAttributeNS.bind(e);e.setAttributeNS=(e,t,r)=>{"src"==t?n(r):o(e,t,r)}}}))}function E(e){[...e].forEach(y)}function b(e){[...e].forEach(D)}function w(e){e.addEventListener("load",(function(e){C(e)})),C(e)}function _(e){const t=e.map((e=>e.target)).filter((e=>"IFRAME"==e.tagName));t.length>0&&E(t);const r=e.map((e=>e.target)).concat(e.flatMap((e=>[...e.addedNodes]))),n=r.filter((e=>e.shadowRoot));n.length>0&&b(n);const i=r.filter((e=>"LINK"==e.tagName));if(i>0){const e=d(i[0]);i.forEach((t=>f(t,e)))}}const T=new WeakMap;function C(e){if(!e.contentWindow)return;const t=e.getAttribute("patched-src");if(t){const r=new URL(t);e.contentWindow.location.hash=r.hash}const r=e.contentWindow.document.documentElement;if(function(e){const t=e.contentWindow.document,r=t.querySelector.bind(t);t.querySelector=e=>r(e.replaceAll("href","patched-href").replaceAll("src","patched-src"))}(e),!T.has(r)){const e=new MutationObserver(_);e.observe(r,{childList:!0,subtree:!0,attributes:!0}),T.set(r,e)}E(r.getElementsByTagName("iframe")),b([...r.getElementsByTagName("*")].filter((e=>e.shadowRoot)))}function A(e,t){const n=e.contentWindow.document;r.htmlPostProcessFunction&&(t=r.htmlPostProcessFunction(t)),n.open("text/html","replace"),n.write(t),n.close()}return Vj.useEffect((()=>{const e=o.current;if(o.current)return function(e,t){A(e,t),w(e)}(e,`