diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index e998620..0000000 --- a/.prettierrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "printWidth": 120, - "useTabs": true, - "trailingComma": "none", - "arrowParens": "avoid" -} diff --git a/README.md b/README.md index d89f422..cbda52c 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,53 @@ Various userscripts for the music hoarding community. -### Getting Started +## Getting Started -Install [ViolentMonkey](https://violentmonkey.github.io) or [TamperMonkey](https://tampermonkey.net) then proceed to installing any of the following userscripts: +Install [ViolentMonkey](https://violentmonkey.github.io) or [TamperMonkey](https://tampermonkey.net) then proceed to installing any of the editions: * [Apple Music](https://notabug.org/SuperSaltyGamer/ame/raw/main/dist/applemusic.user.js) * [MusicBrainz](https://notabug.org/SuperSaltyGamer/ame/raw/main/dist/musicbrainz.user.js) * [VGMdb](https://notabug.org/SuperSaltyGamer/ame/raw/main/dist/vgmdb.user.js) -### References +## Editions + +Feature rundown for all editions of Ame. + +### Ame (Apple Music) + +* Selectable release title, artist, description. +* Check release storefront availability. +* Link to full resolution release cover. +* Hide upselling modals and banners. +* Extended release info panel. +* Copy authorization token. +* Release quality badges. +* Check track quality. +* Lyrics downloading. +* Search MH Covers. + +### Ame (MusicBrainz) + +* Add covers directly from MH Covers. +* Batch download release scans. +* Enhanced search box: + * Automatic focus on page load. + * Search directly by ISRC, Catalog Number, Barcode. + * Search directly by EAC/XLD rip log. + * Attach TOC from rip log on release page. +* Related links: + * Ongaku no Mori link on release page. + * MH Covers link on release page. + +### Ame (VGMdb) + +* Seed release to MusicBrainz. +* Batch download album scans. +* Related links: + * Ongaku no Mori link on release page. + * MusicBrainz link on release page. + +## References Inspired by and/or used for reference: diff --git a/dist/applemusic.user.js b/dist/applemusic.user.js index ed328ff..3abc8db 100644 --- a/dist/applemusic.user.js +++ b/dist/applemusic.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @namespace ame-applemusic // @name Ame (Apple Music) -// @version 1.8.1 +// @version 1.8.2 // @author SuperSaltyGamer // @run-at document-start // @match https://music.apple.com/* @@ -12,241 +12,7 @@ // @updateURL https://notabug.org/SuperSaltyGamer/ame/raw/main/dist/applemusic.user.js // ==/UserScript== -(function(fa){typeof define=="function"&&define.amd?define(fa):fa()})(function(){"use strict";const fa=new Map;function Bn(e,t){return new Promise((r,n)=>{const i=fa.get(e);if(i){r(i.clone());return}GM.xmlHttpRequest({method:(t==null?void 0:t.method)??"GET",url:e,headers:Object.fromEntries(new Headers(t==null?void 0:t.headers)),responseType:"blob",onload(o){if(o.status!==404&&(o.status<200||o.status>299)){n(new Error(`Fetching "${e}" responded with an erroneous status code.`));return}const a=o.responseHeaders.split(`\r -`).slice(0,-1).map(l=>l.split(": ")),s=new Response(o.response,{headers:Object.fromEntries(a),status:o.status,statusText:o.statusText});Object.defineProperty(s,"url",{value:e}),fa.set(e,s.clone()),r(s)},onerror(){n(new TypeError("Network request errored."))},ontimeout(){n(new TypeError("Network request timed out."))}})})}function Bx(e){for(var t=[],r=0;r=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=e[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=o;continue}if(n==="("){var s=1,l="",o=r+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function Ux(e,t,r){var n=e.map(function(i){return yg(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),pg(r))}function Gx(e,t,r){return Yx(jx(e,r),t,r)}function Yx(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,o=r.start,a=o===void 0?!0:o,s=r.end,l=s===void 0?!0:s,u=r.encode,c=u===void 0?function(q){return q}:u,h=r.delimiter,d=h===void 0?"/#?":h,f=r.endsWith,v=f===void 0?"":f,p="[".concat(xi(v),"]|$"),m="[".concat(xi(d),"]"),w=a?"^":"",_=0,O=e;_-1:W===void 0;i||(w+="(?:".concat(m,"(?=").concat(p,"))?")),L||(w+="(?=".concat(m,"|").concat(p,")"))}return new RegExp(w,pg(r))}function yg(e,t,r){return e instanceof RegExp?zx(e,t):Array.isArray(e)?Ux(e,t,r):Gx(e,t,r)}let jr=unsafeWindow;jr.wrappedJSObject&&(jr=jr.wrappedJSObject);const Kx=typeof cloneInto=="function"?cloneInto:e=>e,Zx=typeof exportFunction=="function"?exportFunction:e=>e;function qx(e){return Kx(e,jr,{cloneFunctions:!0,wrapReflectors:!0})}function Xx(e){return Zx(e,jr)}function Qx(e,t){return t??(t=jr),function(...r){return e.call(t,...qx(r))}}const eh=[],Jx=Qx(jr.history.pushState,jr.history);jr.history.pushState=Xx(eA);function eA(e,t,r){Jx(e,t,r),gg()}addEventListener("popstate",()=>{gg()});function gg(){for(const e of eh){const t=e.matcher(location.pathname)?e.onCallbacks:e.offCallbacks;for(const r of t)r()}}function bg(e){let t=eh.find(r=>r.pattern===e);return t||(t={pattern:e,matcher:Wx(e),onCallbacks:[],offCallbacks:[]},eh.push(t),t)}function tA(e,t,r=!1){const n=bg(e),i=n.matcher(location.pathname);n.onCallbacks.push(t),i&&t()}function rA(e,t,r=!1){const n=bg(e),i=n.matcher(location.pathname);n.offCallbacks.push(t),i||t()}function nA(){return Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=",2)))}function ha(e){return new Promise(t=>{setTimeout(t,e)})}function iA(e,t){const r=URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.download=t,n.href=r,document.body.appendChild(n),n.click(),URL.revokeObjectURL(r)}function Ut(e){const t=document.createElement("div");return t.innerHTML=e,t.firstElementChild}function Gl(e,t,r=5e3,n=document){return new Promise(i=>{let o=0,a=0;o=setTimeout(()=>{clearInterval(a),i(null)},r),a=setInterval(()=>{let s=n.querySelector(t??e);s&&(t&&(s=n.querySelector(e),!s)||(i(s),clearTimeout(o),clearInterval(a)))},10)})}function oA(e,t){new MutationObserver(n=>{for(const i of n)for(const o of Array.from(i.addedNodes))if(o instanceof Element&&o.matches(e)){t(o);return}}).observe(document.body,{childList:!0,subtree:!0})}const wg="/:country/album/:slug?/:id";function Ai(e,t=!1){tA(wg,e,t)}function Yl(e,t=!1){rA(wg,e,t)}let Kl=null;function da(e,t){return Ut(` - - `)}async function va(e,t){if(!Kl&&(Kl=await Gl(".navigation__scrollable-container","amp-chrome-player"),!Kl))return;let r=document.querySelector("#ame-sidebar");r||(r=Ut(` - - `),Kl.appendChild(r),r=document.querySelector("#ame-sidebar"));const n=Array.from(r.querySelectorAll(".ame-sidebar-button"));if(e.setAttribute("data-index",t.toString()),n.length===0){r.appendChild(e);return}let i=Number.MAX_VALUE,o=n[0];for(const a of n){const s=Math.abs(Number(a.getAttribute("data-index"))-t);s>=i||(i=s,o=a)}t>Number(o.getAttribute("data-index"))?o.after(e):o.before(e)}async function th(e){e.remove()}const aA=`\r - \r - \r - \r -\r -`,sA=` - - - - - - - - -`,lA=` - - -`,uA=` - - -`,cA=` - - -`,fA=` - - - - - -`;let Zl="";async function ql(){if(Zl)return Zl;const e=document.querySelector('script[type="module"]');if(!e)throw new Error("Failed to find script with auth token.");const n=(await(await Bn(e.src)).text()).match(new RegExp('(?<=")eyJhbGciOiJ.+?(?=")'));if(!n)throw new Error("Failed to find auth token from script.");return Zl=n[0],Zl}function Sg(){return nA().itua||null}async function ma(e,t){t??(t=location.pathname.split("/")[1]);const r=await Bn(`https://amp-api.music.apple.com/v1/catalog/${t}/albums/${e}?extend=extendedAssetUrls`,{headers:{Origin:"https://music.apple.com",Referer:"https://music.apple.com/",Authorization:`Bearer ${await ql()}`}});return r.status===404?null:(await r.json()).data[0]}async function _g(){return(await(await Bn("https://api.music.apple.com/v1/storefronts",{headers:{Origin:"https://music.apple.com",Referer:"https://music.apple.com/",Authorization:`Bearer ${await ql()}`}})).json()).data}Ai(async()=>{if(document.querySelector(".ame-album-badges-container"))return;const e=location.pathname.split("/")[4],t=await ma(e);if(!t)return;const r=await Gl(".headings__metadata-bottom",".description");if(!r)return;const n=t.attributes.audioTraits;t.attributes.isMasteredForItunes&&n.push("adm");const i=Ut('

');n.includes("lossy-stereo")&&(i.innerHTML+=aA),n.includes("lossless")&&(i.innerHTML+=cA),n.includes("hi-res-lossless")&&(i.innerHTML+=uA),n.includes("atmos")&&(i.innerHTML+=lA),n.includes("adm")&&(i.innerHTML+=sA),n.includes("spatial")&&(i.innerHTML+=fA),r.after(i)});const hA=` - - -`,rh=["jp","kr","us","de","fr","gb","in","it","es","br","au","nz","cn","hk"];rh.reverse();let Rr=null;const nh=da("Check Countries",hA);nh.addEventListener("click",async()=>{const e=document.querySelector(".section");e&&await Cg(e)}),Ai(async()=>{const e=await Gl(".page-error");e&&Cg(e)}),Ai(()=>{Rr==null||Rr.abort(),Rr=null}),Yl(()=>{Rr==null||Rr.abort(),Rr=null});async function Cg(e){if(Rr)return;const t=new AbortController;Rr=t;const r=location.pathname.split("/")[4],n=Ut('
Availability in the following storefronts:
'),i=Ut(` -
-
-
-
-
- `),o=i.children[0],a=i.children[1],s=i.children[2];e.append(n),e.append(i);let l=await _g();l=l.map(u=>(u.attributes.name=u.attributes.name.split(", ").reverse().join(" "),u)).sort((u,c)=>Math.max(rh.indexOf(c.id),0)-Math.max(rh.indexOf(u.id),0));for(const u of l){if(t.signal.aborted)break;const c=await ma(r,u.id);if(!c){s.append(Ut(` - ${u.attributes.name}, - `)),await ha(222);continue}const h=Math.max(...c.relationships.tracks.data.map(p=>p.attributes.discNumber)),d=c.relationships.tracks.data.filter(p=>p.type==="songs"),f=c.relationships.tracks.data.filter(p=>p.type!=="songs"),v=new Set;for(let p=1;p<=c.attributes.trackCount-f.length;p++)v.add(p);if(d.forEach((p,m)=>{p.attributes.extendedAssetUrls&&p.attributes.playParams&&v.delete(h>1?m+1:p.attributes.trackNumber)}),v.size){h>1?a.append(Ut(` - ${u.attributes.name}, - `)):a.append(Ut(` - ${u.attributes.name}, - `)),await ha(222);continue}o.append(Ut(` - ${u.attributes.name}, - `)),await ha(222)}}const ih=da("Search Covers",` - - -`);ih.addEventListener("click",()=>{const e=document.querySelector("h1.headings__title");if(!e)return;const r=Array.from(document.querySelectorAll(".headings__subtitles > a")).map(i=>i.innerText).join(" "),n=e.innerText.replace(" - Single","").replace(" - EP","");open(`https://covers.musichoarders.xyz?artist=${encodeURIComponent(r)}&album=${encodeURIComponent(n)}`,"_blank")}),addEventListener("mousedown",async e=>{if(e.button!==2)return;const t=e.target;if(!t.matches(".artwork-component__image:not(.ame-fullsized)"))return;t.classList.add("ame-fullsized");const r=document.querySelector(".artwork__radiosity source");if(!r)return;const n=t.parentElement.querySelectorAll("source");for(const i of Array.from(n))i.srcset=dA(r.srcset)},{passive:!0});function dA(e){return e.split(" ",2)[0].replace(/is\d-ssl/,"a1").replace("image/thumb","r40").split("/").slice(0,-1).join("/")}const Og=da("Copy Authorization",` - - -`);Og.addEventListener("click",async()=>{GM.setClipboard(await ql())});const vA=` - - -`,Tg=["ec+3","alac","aac ","aach"],Rg=["BINAURAL","DOWNMIX"];let Er=null;const Eg=da("Check Qualities",vA);Eg.addEventListener("click",async()=>{var o;if(Er)return;const e=new AbortController;Er=e;const t=location.pathname.split("/")[1],r=location.pathname.split("/")[4],n=await ma(r,t);if(!n)return;const i=Array.from(document.querySelectorAll(".songs-list-row__song-wrapper"));for(const a of n.relationships.tracks.data){if(e.signal.aborted)break;if(a.type!=="songs")continue;const s=i.shift();if(!s)continue;if((o=s.querySelector(".ame-track-quality"))==null||o.remove(),!a.attributes.extendedAssetUrls){s.append(Ut('[unavailable]'));continue}const l=a.attributes.extendedAssetUrls.enhancedHls;if(!l){s.append(Ut('[lossy]'));continue}const u=await(await Bn(l)).text();await ha(150);let c=null;for(const v of u.split(` -`))if(v.startsWith('#EXT-X-SESSION-DATA:DATA-ID="com.apple.hls.audioAssetMetadata"')){c=JSON.parse(atob(v.split("VALUE=")[1].slice(1,-1)));break}if(!c)throw new Error("Could not find data from track manifest.");const h=Object.values(c);h.sort(kg);const d=await mA(l,h);d&&h.push(d),h.sort(kg);const f=h.find(v=>parseInt(v["CHANNEL-COUNT"])<=2);s.append(Ut(`${xg(f)}`))}}),Ai(()=>{Er==null||Er.abort(),Er=null}),Yl(()=>{Er==null||Er.abort(),Er=null});function kg(e,t){return Tg.indexOf(e["AUDIO-FORMAT-ID"])-Tg.indexOf(t["AUDIO-FORMAT-ID"])||t["BIT-DEPTH"]-e["BIT-DEPTH"]||t["SAMPLE-RATE"]-e["SAMPLE-RATE"]||(t["BIT-RATE"]??NaN)-(e["BIT-RATE"]??NaN)||Rg.indexOf(e["CHANNEL-USAGE"]??"")-Rg.indexOf(t["CHANNEL-USAGE"]??"")||-Number(e.__ACTUAL__)}function xg(e){const t=[];return t.push(e["AUDIO-FORMAT-ID"]),e["CHANNEL-COUNT"]&&t.push(`${e["CHANNEL-COUNT"]}ch`),e["BIT-RATE"]&&t.push(`${Math.floor(Number(e["BIT-RATE"])/1e3)}kbps`),e["BIT-DEPTH"]&&t.push(`${e["BIT-DEPTH"]}bit`),e["SAMPLE-RATE"]&&t.push(`${Math.floor(Number(e["SAMPLE-RATE"])/1e3)}kHz`),e["CHANNEL-USAGE"]&&t.push(e["CHANNEL-USAGE"].toLowerCase()),e["IS-ATMOS"]&&t.push("atmos"),e.__ACTUAL__&&t.push("[ACTUAL]"),t.join(" ")}async function mA(e,t){var l;const r=e.split("/").slice(0,-1).join("/"),n=(l=t.filter(u=>u["AUDIO-FORMAT-ID"]==="alac"&&parseInt(u["CHANNEL-COUNT"])<=2).at(-1))==null?void 0:l["FIRST-SEGMENT-URI"];if(!n)return null;const i=await await Bn(`${r}/${n}`,{headers:{Range:"bytes=0-16384"}}),o=new DataView(await i.arrayBuffer());if(o.getInt32(4)!==1718909296||o.getInt32(8)!==1769172789)return null;let a=0,s=0;for(;a100)break}return null}var jn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Te=function(e){try{return!!e()}catch{return!0}},yA=Te,pa=!yA(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Ag=pa,Ig=Function.prototype,oh=Ig.call,gA=Ag&&Ig.bind.bind(oh,oh),Ee=Ag?gA:function(e){return function(){return oh.apply(e,arguments)}},Pg=Ee,bA=Pg({}.toString),wA=Pg("".slice),kr=function(e){return wA(bA(e),8,-1)},SA=Ee,_A=Te,CA=kr,ah=Object,OA=SA("".split),ya=_A(function(){return!ah("z").propertyIsEnumerable(0)})?function(e){return CA(e)=="String"?OA(e,""):ah(e)}:ah,xr=function(e){return e==null},TA=xr,RA=TypeError,cr=function(e){if(TA(e))throw RA("Can't call method on "+e);return e},EA=ya,kA=cr,Gt=function(e){return EA(kA(e))},Xl=function(e){return e&&e.Math==Math&&e},Fe=Xl(typeof globalThis=="object"&&globalThis)||Xl(typeof window=="object"&&window)||Xl(typeof self=="object"&&self)||Xl(typeof jn=="object"&&jn)||function(){return this}()||jn||Function("return this")(),mn={},xA={get exports(){return mn},set exports(e){mn=e}},AA=!1,$g=Fe,IA=Object.defineProperty,sh=function(e,t){try{IA($g,e,{value:t,configurable:!0,writable:!0})}catch{$g[e]=t}return t},PA=Fe,$A=sh,Mg="__core-js_shared__",MA=PA[Mg]||$A(Mg,{}),lh=MA,Ng=lh;(xA.exports=function(e,t){return Ng[e]||(Ng[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.31.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"});var NA=cr,DA=Object,Ht=function(e){return DA(NA(e))},HA=Ee,LA=Ht,FA=HA({}.hasOwnProperty),Qe=Object.hasOwn||function(t,r){return FA(LA(t),r)},BA=Ee,jA=0,WA=Math.random(),VA=BA(1 .toString),Ql=function(e){return"Symbol("+(e===void 0?"":e)+")_"+VA(++jA+WA,36)},Wn=typeof navigator<"u"&&String(navigator.userAgent)||"",Dg=Fe,uh=Wn,Hg=Dg.process,Lg=Dg.Deno,Fg=Hg&&Hg.versions||Lg&&Lg.version,Bg=Fg&&Fg.v8,fr,Jl;Bg&&(fr=Bg.split("."),Jl=fr[0]>0&&fr[0]<4?1:+(fr[0]+fr[1])),!Jl&&uh&&(fr=uh.match(/Edge\/(\d+)/),(!fr||fr[1]>=74)&&(fr=uh.match(/Chrome\/(\d+)/),fr&&(Jl=+fr[1])));var ga=Jl,jg=ga,zA=Te,UA=Fe,GA=UA.String,Ii=!!Object.getOwnPropertySymbols&&!zA(function(){var e=Symbol();return!GA(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jg&&jg<41}),YA=Ii,Wg=YA&&!Symbol.sham&&typeof Symbol.iterator=="symbol",KA=Fe,ZA=mn,Vg=Qe,qA=Ql,XA=Ii,QA=Wg,Pi=KA.Symbol,ch=ZA("wks"),JA=QA?Pi.for||Pi:Pi&&Pi.withoutSetter||qA,Ve=function(e){return Vg(ch,e)||(ch[e]=XA&&Vg(Pi,e)?Pi[e]:JA("Symbol."+e)),ch[e]},fh=typeof document=="object"&&document.all,eI=typeof fh>"u"&&fh!==void 0,zg={all:fh,IS_HTMLDDA:eI},Ug=zg,tI=Ug.all,ze=Ug.IS_HTMLDDA?function(e){return typeof e=="function"||e===tI}:function(e){return typeof e=="function"},Gg=ze,Yg=zg,rI=Yg.all,tt=Yg.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Gg(e)||e===rI}:function(e){return typeof e=="object"?e!==null:Gg(e)},nI=tt,iI=String,oI=TypeError,rt=function(e){if(nI(e))return e;throw oI(iI(e)+" is not an object")},hh={},aI=Te,nt=!aI(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),sI=nt,lI=Te,Kg=sI&&lI(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),xt={},uI=Fe,Zg=tt,dh=uI.document,cI=Zg(dh)&&Zg(dh.createElement),eu=function(e){return cI?dh.createElement(e):{}},fI=nt,hI=Te,dI=eu,qg=!fI&&!hI(function(){return Object.defineProperty(dI("div"),"a",{get:function(){return 7}}).a!=7}),vI=pa,tu=Function.prototype.call,ct=vI?tu.bind(tu):function(){return tu.apply(tu,arguments)},vh=Fe,mI=ze,pI=function(e){return mI(e)?e:void 0},Wr=function(e,t){return arguments.length<2?pI(vh[e]):vh[e]&&vh[e][t]},yI=Ee,pn=yI({}.isPrototypeOf),gI=Wr,bI=ze,wI=pn,SI=Wg,_I=Object,ba=SI?function(e){return typeof e=="symbol"}:function(e){var t=gI("Symbol");return bI(t)&&wI(t.prototype,_I(e))},CI=String,$i=function(e){try{return CI(e)}catch{return"Object"}},OI=ze,TI=$i,RI=TypeError,Vn=function(e){if(OI(e))return e;throw RI(TI(e)+" is not a function")},EI=Vn,kI=xr,Mi=function(e,t){var r=e[t];return kI(r)?void 0:EI(r)},mh=ct,ph=ze,yh=tt,xI=TypeError,Xg=function(e,t){var r,n;if(t==="string"&&ph(r=e.toString)&&!yh(n=mh(r,e))||ph(r=e.valueOf)&&!yh(n=mh(r,e))||t!=="string"&&ph(r=e.toString)&&!yh(n=mh(r,e)))return n;throw xI("Can't convert object to primitive value")},AI=ct,Qg=tt,Jg=ba,II=Mi,PI=Xg,$I=Ve,MI=TypeError,NI=$I("toPrimitive"),eb=function(e,t){if(!Qg(e)||Jg(e))return e;var r=II(e,NI),n;if(r){if(t===void 0&&(t="default"),n=AI(r,e,t),!Qg(n)||Jg(n))return n;throw MI("Can't convert object to primitive value")}return t===void 0&&(t="number"),PI(e,t)},DI=eb,HI=ba,ru=function(e){var t=DI(e,"string");return HI(t)?t:t+""},LI=nt,FI=qg,BI=Kg,nu=rt,tb=ru,jI=TypeError,gh=Object.defineProperty,WI=Object.getOwnPropertyDescriptor,bh="enumerable",wh="configurable",Sh="writable";xt.f=LI?BI?function(t,r,n){if(nu(t),r=tb(r),nu(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Sh in n&&!n[Sh]){var i=WI(t,r);i&&i[Sh]&&(t[r]=n.value,n={configurable:wh in n?n[wh]:i[wh],enumerable:bh in n?n[bh]:i[bh],writable:!1})}return gh(t,r,n)}:gh:function(t,r,n){if(nu(t),r=tb(r),nu(n),FI)try{return gh(t,r,n)}catch{}if("get"in n||"set"in n)throw jI("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var VI=Math.ceil,zI=Math.floor,UI=Math.trunc||function(t){var r=+t;return(r>0?zI:VI)(r)},GI=UI,zn=function(e){var t=+e;return t!==t||t===0?0:GI(t)},YI=zn,KI=Math.max,ZI=Math.min,wa=function(e,t){var r=YI(e);return r<0?KI(r+t,0):ZI(r,t)},qI=zn,XI=Math.min,Ni=function(e){return e>0?XI(qI(e),9007199254740991):0},QI=Ni,Jt=function(e){return QI(e.length)},JI=Gt,e3=wa,t3=Jt,rb=function(e){return function(t,r,n){var i=JI(t),o=t3(i),a=e3(n,o),s;if(e&&r!=r){for(;o>a;)if(s=i[a++],s!=s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}},_h={includes:rb(!0),indexOf:rb(!1)},Sa={},r3=Ee,Ch=Qe,n3=Gt,i3=_h.indexOf,o3=Sa,nb=r3([].push),ib=function(e,t){var r=n3(e),n=0,i=[],o;for(o in r)!Ch(o3,o)&&Ch(r,o)&&nb(i,o);for(;t.length>n;)Ch(r,o=t[n++])&&(~i3(i,o)||nb(i,o));return i},Oh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],a3=ib,s3=Oh,_a=Object.keys||function(t){return a3(t,s3)},l3=nt,u3=Kg,c3=xt,f3=rt,h3=Gt,d3=_a;hh.f=l3&&!u3?Object.defineProperties:function(t,r){f3(t);for(var n=h3(r),i=d3(r),o=i.length,a=0,s;o>a;)c3.f(t,s=i[a++],n[s]);return t};var v3=Wr,ob=v3("document","documentElement"),m3=mn,p3=Ql,ab=m3("keys"),iu=function(e){return ab[e]||(ab[e]=p3(e))},y3=rt,g3=hh,sb=Oh,b3=Sa,w3=ob,S3=eu,_3=iu,lb=">",ub="<",Th="prototype",Rh="script",cb=_3("IE_PROTO"),Eh=function(){},fb=function(e){return ub+Rh+lb+e+ub+"/"+Rh+lb},hb=function(e){e.write(fb("")),e.close();var t=e.parentWindow.Object;return e=null,t},C3=function(){var e=S3("iframe"),t="java"+Rh+":",r;return e.style.display="none",w3.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(fb("document.F=Object")),r.close(),r.F},ou,au=function(){try{ou=new ActiveXObject("htmlfile")}catch{}au=typeof document<"u"?document.domain&&ou?hb(ou):C3():hb(ou);for(var e=sb.length;e--;)delete au[Th][sb[e]];return au()};b3[cb]=!0;var Di=Object.create||function(t,r){var n;return t!==null?(Eh[Th]=y3(t),n=new Eh,Eh[Th]=null,n[cb]=t):n=au(),r===void 0?n:g3.f(n,r)},O3=Ve,T3=Di,R3=xt.f,kh=O3("unscopables"),xh=Array.prototype;xh[kh]==null&&R3(xh,kh,{configurable:!0,value:T3(null)});var Ca=function(e){xh[kh][e]=!0},Oa={},E3=Fe,k3=ze,db=E3.WeakMap,vb=k3(db)&&/native code/.test(String(db)),Ta=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},x3=nt,A3=xt,I3=Ta,Un=x3?function(e,t,r){return A3.f(e,t,I3(1,r))}:function(e,t,r){return e[t]=r,e},P3=vb,mb=Fe,$3=tt,M3=Un,Ah=Qe,Ih=lh,N3=iu,D3=Sa,pb="Object already initialized",Ph=mb.TypeError,H3=mb.WeakMap,su,Ra,lu,L3=function(e){return lu(e)?Ra(e):su(e,{})},F3=function(e){return function(t){var r;if(!$3(t)||(r=Ra(t)).type!==e)throw Ph("Incompatible receiver, "+e+" required");return r}};if(P3||Ih.state){var Ar=Ih.state||(Ih.state=new H3);Ar.get=Ar.get,Ar.has=Ar.has,Ar.set=Ar.set,su=function(e,t){if(Ar.has(e))throw Ph(pb);return t.facade=e,Ar.set(e,t),t},Ra=function(e){return Ar.get(e)||{}},lu=function(e){return Ar.has(e)}}else{var Hi=N3("state");D3[Hi]=!0,su=function(e,t){if(Ah(e,Hi))throw Ph(pb);return t.facade=e,M3(e,Hi,t),t},Ra=function(e){return Ah(e,Hi)?e[Hi]:{}},lu=function(e){return Ah(e,Hi)}}var Vr={set:su,get:Ra,has:lu,enforce:L3,getterFor:F3},zr={},Ea={},yb={}.propertyIsEnumerable,gb=Object.getOwnPropertyDescriptor,B3=gb&&!yb.call({1:2},1);Ea.f=B3?function(t){var r=gb(this,t);return!!r&&r.enumerable}:yb;var j3=nt,W3=ct,V3=Ea,z3=Ta,U3=Gt,G3=ru,Y3=Qe,K3=qg,bb=Object.getOwnPropertyDescriptor;zr.f=j3?bb:function(t,r){if(t=U3(t),r=G3(r),K3)try{return bb(t,r)}catch{}if(Y3(t,r))return z3(!W3(V3.f,t,r),t[r])};var uu={},Z3={get exports(){return uu},set exports(e){uu=e}},$h=nt,q3=Qe,wb=Function.prototype,X3=$h&&Object.getOwnPropertyDescriptor,Mh=q3(wb,"name"),Q3=Mh&&function(){}.name==="something",J3=Mh&&(!$h||$h&&X3(wb,"name").configurable),ka={EXISTS:Mh,PROPER:Q3,CONFIGURABLE:J3},eP=Ee,tP=ze,Nh=lh,rP=eP(Function.toString);tP(Nh.inspectSource)||(Nh.inspectSource=function(e){return rP(e)});var Sb=Nh.inspectSource,Dh=Ee,nP=Te,iP=ze,cu=Qe,Hh=nt,oP=ka.CONFIGURABLE,aP=Sb,_b=Vr,sP=_b.enforce,lP=_b.get,Cb=String,fu=Object.defineProperty,uP=Dh("".slice),cP=Dh("".replace),fP=Dh([].join),hP=Hh&&!nP(function(){return fu(function(){},"length",{value:8}).length!==8}),dP=String(String).split("String"),vP=Z3.exports=function(e,t,r){uP(Cb(t),0,7)==="Symbol("&&(t="["+cP(Cb(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!cu(e,"name")||oP&&e.name!==t)&&(Hh?fu(e,"name",{value:t,configurable:!0}):e.name=t),hP&&r&&cu(r,"arity")&&e.length!==r.arity&&fu(e,"length",{value:r.arity});try{r&&cu(r,"constructor")&&r.constructor?Hh&&fu(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=sP(e);return cu(n,"source")||(n.source=fP(dP,typeof t=="string"?t:"")),e};Function.prototype.toString=vP(function(){return iP(this)&&lP(this).source||aP(this)},"toString");var mP=ze,pP=xt,yP=uu,gP=sh,er=function(e,t,r,n){n||(n={});var i=n.enumerable,o=n.name!==void 0?n.name:t;if(mP(r)&&yP(r,o,n),n.global)i?e[t]=r:gP(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:pP.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Gn={},bP=ib,wP=Oh,SP=wP.concat("length","prototype");Gn.f=Object.getOwnPropertyNames||function(t){return bP(t,SP)};var xa={};xa.f=Object.getOwnPropertySymbols;var _P=Wr,CP=Ee,OP=Gn,TP=xa,RP=rt,EP=CP([].concat),Ob=_P("Reflect","ownKeys")||function(t){var r=OP.f(RP(t)),n=TP.f;return n?EP(r,n(t)):r},Tb=Qe,kP=Ob,xP=zr,AP=xt,Rb=function(e,t,r){for(var n=kP(t),i=AP.f,o=xP.f,a=0;a=t.length?(e.target=void 0,mu(void 0,!0)):r=="keys"?mu(n,!1):r=="values"?mu(t[n],!1):mu([n,t[n]],!1)},"values"),Vb=Bb.Arguments=Bb.Array;if(Yh("keys"),Yh("values"),Yh("entries"),H5&&Vb.name!=="values")try{N5(Vb,"name",{value:"values"})}catch{}var j5=Ve,W5=j5("toStringTag"),zb={};zb[W5]="z";var Kh=String(zb)==="[object z]",V5=Kh,z5=ze,pu=kr,U5=Ve,G5=U5("toStringTag"),Y5=Object,K5=pu(function(){return arguments}())=="Arguments",Z5=function(e,t){try{return e[t]}catch{}},yu=V5?pu:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=Z5(t=Y5(e),G5))=="string"?r:K5?pu(t):(n=pu(t))=="Object"&&z5(t.callee)?"Arguments":n},q5=Kh,X5=yu,Q5=q5?{}.toString:function(){return"[object "+X5(this)+"]"},J5=Kh,e$=er,t$=Q5;J5||e$(Object.prototype,"toString",t$,{unsafe:!0});var Kn={},r$={get exports(){return Kn},set exports(e){Kn=e}},Zh={},n$=ru,i$=xt,o$=Ta,Li=function(e,t,r){var n=n$(t);n in e?i$.f(e,n,o$(0,r)):e[n]=r},Ub=wa,a$=Jt,s$=Li,l$=Array,u$=Math.max,qh=function(e,t,r){for(var n=a$(e),i=Ub(t,n),o=Ub(r===void 0?n:r,n),a=l$(u$(o-i,0)),s=0;ih;h++)if(f=w(e[h]),f&&n1(o1,f))return f;return new wu(!1)}u=cM(e,c)}for(v=o?e.next:u.next;!(p=oM(v,u)).done;){try{f=w(p.value)}catch(_){i1(u,"throw",_)}if(typeof f=="object"&&f&&n1(o1,f))return f}return new wu(!1)},dM=pn,vM=TypeError,nd=function(e,t){if(dM(t,e))return e;throw vM("Incorrect invocation")},mM=Ve,a1=mM("iterator"),s1=!1;try{var pM=0,l1={next:function(){return{done:!!pM++}},return:function(){s1=!0}};l1[a1]=function(){return this},Array.from(l1,function(){throw 2})}catch{}var u1=function(e,t){if(!t&&!s1)return!1;var r=!1;try{var n={};n[a1]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},yM=ze,gM=tt,c1=Vh,id=function(e,t,r){var n,i;return c1&&yM(n=t.constructor)&&n!==r&&gM(i=n.prototype)&&i!==r.prototype&&c1(e,i),e},bM=we,wM=Fe,SM=Ee,f1=hu,_M=er,CM=Kn,OM=rd,TM=nd,RM=ze,EM=xr,od=tt,ad=Te,kM=u1,xM=du,AM=id,Su=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=wM[e],s=a&&a.prototype,l=a,u={},c=function(w){var _=SM(s[w]);_M(s,w,w=="add"?function(R){return _(this,R===0?0:R),this}:w=="delete"?function(O){return i&&!od(O)?!1:_(this,O===0?0:O)}:w=="get"?function(R){return i&&!od(R)?void 0:_(this,R===0?0:R)}:w=="has"?function(R){return i&&!od(R)?!1:_(this,R===0?0:R)}:function(R,T){return _(this,R===0?0:R,T),this})},h=f1(e,!RM(a)||!(i||s.forEach&&!ad(function(){new a().entries().next()})));if(h)l=r.getConstructor(t,e,n,o),CM.enable();else if(f1(e,!0)){var d=new l,f=d[o](i?{}:-0,1)!=d,v=ad(function(){d.has(1)}),p=kM(function(w){new a(w)}),m=!i&&ad(function(){for(var w=new a,_=5;_--;)w[o](_,_);return!w.has(-0)});p||(l=t(function(w,_){TM(w,s);var O=AM(new a,w,l);return EM(_)||OM(_,O[o],{that:O,AS_ENTRIES:n}),O}),l.prototype=s,s.constructor=l),(v||m)&&(c("delete"),c("has"),n&&c("get")),(m||f)&&c(o),i&&s.clear&&delete s.clear}return u[e]=l,bM({global:!0,constructor:!0,forced:l!=a},u),xM(l,e),i||r.setStrong(l,e,n),l},h1=uu,IM=xt,Na=function(e,t,r){return r.get&&h1(r.get,t,{getter:!0}),r.set&&h1(r.set,t,{setter:!0}),IM.f(e,t,r)},PM=er,sd=function(e,t,r){for(var n in t)PM(e,n,t[n],r);return e},$M=Wr,MM=Na,NM=Ve,DM=nt,d1=NM("species"),v1=function(e){var t=$M(e);DM&&t&&!t[d1]&&MM(t,d1,{configurable:!0,get:function(){return this}})},HM=Di,LM=Na,m1=sd,FM=Ma,BM=nd,jM=xr,WM=rd,VM=Uh,_u=Gh,zM=v1,Da=nt,p1=Kn.fastKey,y1=Vr,g1=y1.set,ld=y1.getterFor,b1={getConstructor:function(e,t,r,n){var i=e(function(u,c){BM(u,o),g1(u,{type:t,index:HM(null),first:void 0,last:void 0,size:0}),Da||(u.size=0),jM(c)||WM(c,u[n],{that:u,AS_ENTRIES:r})}),o=i.prototype,a=ld(t),s=function(u,c,h){var d=a(u),f=l(u,c),v,p;return f?f.value=h:(d.last=f={index:p=p1(c,!0),key:c,value:h,previous:v=d.last,next:void 0,removed:!1},d.first||(d.first=f),v&&(v.next=f),Da?d.size++:u.size++,p!=="F"&&(d.index[p]=f)),u},l=function(u,c){var h=a(u),d=p1(c),f;if(d!=="F")return h.index[d];for(f=h.first;f;f=f.next)if(f.key==c)return f};return m1(o,{clear:function(){for(var c=this,h=a(c),d=h.index,f=h.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete d[f.index],f=f.next;h.first=h.last=void 0,Da?h.size=0:c.size=0},delete:function(u){var c=this,h=a(c),d=l(c,u);if(d){var f=d.next,v=d.previous;delete h.index[d.index],d.removed=!0,v&&(v.next=f),f&&(f.previous=v),h.first==d&&(h.first=f),h.last==d&&(h.last=v),Da?h.size--:c.size--}return!!d},forEach:function(c){for(var h=a(this),d=FM(c,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:h.first;)for(d(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(c){return!!l(this,c)}}),m1(o,r?{get:function(c){var h=l(this,c);return h&&h.value},set:function(c,h){return s(this,c===0?0:c,h)}}:{add:function(c){return s(this,c=c===0?0:c,c)}}),Da&&LM(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=ld(t),o=ld(n);VM(e,t,function(a,s){g1(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,_u(void 0,!0)):s=="keys"?_u(l.key,!1):s=="values"?_u(l.value,!1):_u([l.key,l.value],!1)},r?"entries":"values",!r,!0),zM(t)}},UM=Su,YM=b1;UM("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},YM);var KM=yu,ZM=String,mt=function(e){if(KM(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ZM(e)},ud=Ee,qM=zn,XM=mt,QM=cr,JM=ud("".charAt),w1=ud("".charCodeAt),e4=ud("".slice),S1=function(e){return function(t,r){var n=XM(QM(t)),i=qM(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=w1(n,i),a<55296||a>56319||i+1===o||(s=w1(n,i+1))<56320||s>57343?e?JM(n,i):a:e?e4(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},cd={codeAt:S1(!1),charAt:S1(!0)},t4=cd.charAt,r4=mt,_1=Vr,n4=Uh,C1=Gh,O1="String Iterator",i4=_1.set,o4=_1.getterFor(O1);n4(String,"String",function(e){i4(this,{type:O1,string:r4(e),index:0})},function(){var t=o4(this),r=t.string,n=t.index,i;return n>=r.length?C1(void 0,!0):(i=t4(r,n),t.index+=i.length,C1(i,!1))});var T1={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},a4=eu,fd=a4("span").classList,R1=fd&&fd.constructor&&fd.constructor.prototype,E1=R1===Object.prototype?void 0:R1,k1=Fe,x1=T1,s4=E1,Ha=B5,hd=Un,A1=Ve,dd=A1("iterator"),I1=A1("toStringTag"),vd=Ha.values,P1=function(e,t){if(e){if(e[dd]!==vd)try{hd(e,dd,vd)}catch{e[dd]=vd}if(e[I1]||hd(e,I1,t),x1[t]){for(var r in Ha)if(e[r]!==Ha[r])try{hd(e,r,Ha[r])}catch{e[r]=Ha[r]}}}};for(var md in x1)P1(k1[md]&&k1[md].prototype,md);P1(s4,"DOMTokenList");var l4=we,u4=_h.includes,c4=Te,f4=Ca,h4=c4(function(){return!Array(1).includes()});l4({target:"Array",proto:!0,forced:h4},{includes:function(t){return u4(this,t,arguments.length>1?arguments[1]:void 0)}}),f4("includes");var $1=$i,d4=TypeError,M1=function(e,t){if(!delete e[t])throw d4("Cannot delete property "+$1(t)+" of "+$1(e))},N1=qh,v4=Math.floor,pd=function(e,t){var r=e.length,n=v4(r/2);return r<8?m4(e,t):p4(e,pd(N1(e,0,n),t),pd(N1(e,n),t),t)},m4=function(e,t){for(var r=e.length,n=1,i,o;n0;)e[o]=e[--o];o!==n++&&(e[o]=i)}return e},p4=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a3)){if(I4)return!0;if(V1)return V1<603;var e="",t,r,n,i;for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)yn.push({k:r+i,v:n})}for(yn.sort(function(o,a){return a.v-o.v}),i=0;iB1(r)?1:-1}};T4({target:"Array",proto:!0,forced:D4},{sort:function(t){t!==void 0&&R4(t);var r=E4(this);if(U1)return t===void 0?z1(r):z1(r,t);var n=[],i=F1(r),o,a;for(a=0;aG4)throw U4("Maximum allowed index exceeded");return e},Y4=Ee,K4=Te,Y1=ze,Z4=yu,q4=Wr,X4=Sb,K1=function(){},Q4=[],Z1=q4("Reflect","construct"),gd=/^\s*(?:class|function)\b/,J4=Y4(gd.exec),e6=!gd.exec(K1),La=function(t){if(!Y1(t))return!1;try{return Z1(K1,Q4,t),!0}catch{return!1}},q1=function(t){if(!Y1(t))return!1;switch(Z4(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return e6||!!J4(gd,X4(t))}catch{return!0}};q1.sham=!0;var Cu=!Z1||K4(function(){var e;return La(La.call)||!La(Object)||!La(function(){e=!0})||e})?q1:La,X1=Bi,t6=Cu,r6=tt,n6=Ve,i6=n6("species"),Q1=Array,o6=function(e){var t;return X1(e)&&(t=e.constructor,t6(t)&&(t===Q1||X1(t.prototype))?t=void 0:r6(t)&&(t=t[i6],t===null&&(t=void 0))),t===void 0?Q1:t},a6=o6,bd=function(e,t){return new(a6(e))(t===0?0:t)},s6=Te,l6=Ve,u6=ga,c6=l6("species"),Fa=function(e){return u6>=51||!s6(function(){var t=[],r=t.constructor={};return r[c6]=function(){return{foo:1}},t[e](Boolean).foo!==1})},f6=we,h6=Ht,d6=wa,v6=zn,m6=Jt,p6=z4,y6=G1,g6=bd,b6=Li,wd=M1,w6=Fa,S6=w6("splice"),_6=Math.max,C6=Math.min;f6({target:"Array",proto:!0,forced:!S6},{splice:function(t,r){var n=h6(this),i=m6(n),o=d6(t,i),a=arguments.length,s,l,u,c,h,d;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=C6(_6(v6(r),0),i-o)),y6(i+s-l),u=g6(n,l),c=0;ci-l+s;c--)wd(n,c-1)}else if(s>l)for(c=i-l;c>o;c--)h=c+l-1,d=c+s-1,h in n?n[d]=n[h]:wd(n,d);for(c=0;c2){if(t=K6(t),r=Tu(t,0),r===43||r===45){if(n=Tu(t,2),n===88||n===120)return NaN}else if(r===48){switch(Tu(t,1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+t}for(a=q6(t,2),s=a.length,l=0;lo)return NaN;return parseInt(a,i)}}return+t},Od=F6(Ou,!ji(" 0o1")||!ji("0b1")||ji("+0x1")),J6=function(e){return j6(Cd,e)&&V6(function(){Y6(e)})},Ru=function(t){var r=arguments.length<1?0:ji(X6(t));return J6(this)?B6(Object(r),this,Ru):r};Ru.prototype=Cd,Od&&!nw&&(Cd.constructor=Ru),H6({global:!0,constructor:!0,wrap:!0,forced:Od},{Number:Ru});var eN=function(e,t){for(var r=L6?z6(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(","),n=0,i;r.length>n;n++)sw(t,i=r[n])&&!sw(e,i)&&G6(e,i,U6(t,i))};(Od||nw)&&eN(ow[Ou],ji);var tN=Ee,Ba=tN([].slice),rN=we,uw=Bi,nN=Cu,iN=tt,cw=wa,oN=Jt,aN=Gt,sN=Li,lN=Ve,uN=Fa,cN=Ba,fN=uN("slice"),hN=lN("species"),Td=Array,dN=Math.max;rN({target:"Array",proto:!0,forced:!fN},{slice:function(t,r){var n=aN(this),i=oN(n),o=cw(t,i),a=cw(r===void 0?i:r,i),s,l,u;if(uw(n)&&(s=n.constructor,nN(s)&&(s===Td||uw(s.prototype))?s=void 0:iN(s)&&(s=s[hN],s===null&&(s=void 0)),s===Td||s===void 0))return cN(n,o,a);for(l=new(s===void 0?Td:s)(dN(a-o,0)),u=0;o=51||!mN(function(){var e=[];return e[dw]=!1,e.concat()[0]!==e}),TN=function(e){if(!yN(e))return!1;var t=e[dw];return t!==void 0?!!t:pN(e)},RN=!ON||!SN("concat");vN({target:"Array",proto:!0,arity:1,forced:RN},{concat:function(t){var r=gN(this),n=wN(r,0),i=0,o,a,s,l,u;for(o=-1,s=arguments.length;o1?arguments[1]:void 0,n),a=i>2?arguments[2]:void 0,s=a===void 0?n:vw(a,n);s>o;)r[o++]=t;return r},AN=we,IN=xN,PN=Ca;AN({target:"Array",proto:!0},{fill:IN}),PN("fill");var $N=Ma,MN=Ee,NN=ya,DN=Ht,HN=Jt,LN=bd,mw=MN([].push),gn=function(e){var t=e==1,r=e==2,n=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,h){for(var d=DN(l),f=NN(d),v=$N(u,c),p=HN(f),m=0,w=h||LN,_=t?w(l,p):r||a?w(l,0):void 0,O,R;p>m;m++)if((s||m in f)&&(O=f[m],R=v(O,m,d),e))if(t)_[m]=R;else if(R)switch(e){case 3:return!0;case 5:return O;case 6:return m;case 2:mw(_,O)}else switch(e){case 4:return!1;case 7:mw(_,O)}return o?-1:n||i?i:_}},Zn={forEach:gn(0),map:gn(1),filter:gn(2),some:gn(3),every:gn(4),find:gn(5),findIndex:gn(6),filterReject:gn(7)},FN=we,BN=Zn.map,jN=Fa,WN=jN("map");FN({target:"Array",proto:!0,forced:!WN},{map:function(t){return BN(this,t,arguments.length>1?arguments[1]:void 0)}});var VN=rt,pw=function(){var e=VN(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Rd=Te,zN=Fe,Ed=zN.RegExp,kd=Rd(function(){var e=Ed("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),UN=kd||Rd(function(){return!Ed("a","y").sticky}),GN=kd||Rd(function(){var e=Ed("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),xd={BROKEN_CARET:GN,MISSED_STICKY:UN,UNSUPPORTED_Y:kd},YN=Te,KN=Fe,ZN=KN.RegExp,yw=YN(function(){var e=ZN(".","s");return!(e.dotAll&&e.exec(` -`)&&e.flags==="s")}),qN=Te,XN=Fe,QN=XN.RegExp,gw=qN(function(){var e=QN("(?b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$c")!=="bc"}),Wi=ct,Eu=Ee,JN=mt,eD=pw,tD=xd,rD=mn,nD=Di,iD=Vr.get,oD=yw,aD=gw,sD=rD("native-string-replace",String.prototype.replace),ku=RegExp.prototype.exec,Ad=ku,lD=Eu("".charAt),uD=Eu("".indexOf),cD=Eu("".replace),Id=Eu("".slice),Pd=function(){var e=/a/,t=/b*/g;return Wi(ku,e,"a"),Wi(ku,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),bw=tD.BROKEN_CARET,$d=/()??/.exec("")[1]!==void 0,fD=Pd||$d||bw||oD||aD;fD&&(Ad=function(t){var r=this,n=iD(r),i=JN(t),o=n.raw,a,s,l,u,c,h,d;if(o)return o.lastIndex=r.lastIndex,a=Wi(Ad,o,i),r.lastIndex=o.lastIndex,a;var f=n.groups,v=bw&&r.sticky,p=Wi(eD,r),m=r.source,w=0,_=i;if(v&&(p=cD(p,"y",""),uD(p,"g")===-1&&(p+="g"),_=Id(i,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&lD(i,r.lastIndex-1)!==` -`)&&(m="(?: "+m+")",_=" "+_,w++),s=new RegExp("^(?:"+m+")",p)),$d&&(s=new RegExp("^"+m+"$(?!\\s)",p)),Pd&&(l=r.lastIndex),u=Wi(ku,v?s:r,_),v?u?(u.input=Id(u.input,w),u[0]=Id(u[0],w),u.index=r.lastIndex,r.lastIndex+=u[0].length):r.lastIndex=0:Pd&&u&&(r.lastIndex=r.global?u.index+u[0].length:l),$d&&u&&u.length>1&&Wi(sD,u[0],s,function(){for(c=1;c]*>)/g,_D=/\$([$&'`]|\d{1,2})/g,CD=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,l=_D;return i!==void 0&&(i=gD(i),l=SD),wD(o,l,function(u,c){var h;switch(Ld(c,0)){case"$":return"$";case"&":return e;case"`":return Fd(t,0,r);case"'":return Fd(t,a);case"<":h=i[Fd(c,1,-1)];break;default:var d=+c;if(d===0)return u;if(d>s){var f=bD(d/10);return f===0?u:f<=s?n[f-1]===void 0?Ld(c,1):n[f-1]+Ld(c,1):u}h=n[d-1]}return h===void 0?"":h})},kw=ct,OD=rt,TD=ze,RD=kr,ED=xu,kD=TypeError,Bd=function(e,t){var r=e.exec;if(TD(r)){var n=kw(r,e,t);return n!==null&&OD(n),n}if(RD(e)==="RegExp")return kw(ED,e,t);throw kD("RegExp#exec called on incompatible receiver")},xD=qn,xw=ct,Au=Ee,AD=Nd,ID=Te,PD=rt,$D=ze,MD=xr,ND=zn,DD=Ni,Vi=mt,HD=cr,LD=Dd,FD=Mi,BD=CD,jD=Bd,WD=Ve,jd=WD("replace"),VD=Math.max,zD=Math.min,UD=Au([].concat),Wd=Au([].push),Aw=Au("".indexOf),Iw=Au("".slice),GD=function(e){return e===void 0?e:String(e)},YD=function(){return"a".replace(/./,"$0")==="$0"}(),Pw=function(){return/./[jd]?/./[jd]("a","$0")==="":!1}(),KD=!ID(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$")!=="7"});AD("replace",function(e,t,r){var n=Pw?"$":"$0";return[function(o,a){var s=HD(this),l=MD(o)?void 0:FD(o,jd);return l?xw(l,o,s,a):xw(t,Vi(s),o,a)},function(i,o){var a=PD(this),s=Vi(i);if(typeof o=="string"&&Aw(o,n)===-1&&Aw(o,"$<")===-1){var l=r(t,a,s,o);if(l.done)return l.value}var u=$D(o);u||(o=Vi(o));var c=a.global;if(c){var h=a.unicode;a.lastIndex=0}for(var d=[];;){var f=jD(a,s);if(f===null||(Wd(d,f),!c))break;var v=Vi(f[0]);v===""&&(a.lastIndex=LD(s,DD(a.lastIndex),h))}for(var p="",m=0,w=0;w=m&&(p+=Iw(s,m,O)+W,m=O+_.length)}return p+Iw(s,m)}]},!KD||!YD||Pw);var ZD=we,qD=Zn.filter,XD=Fa,QD=XD("filter");ZD({target:"Array",proto:!0,forced:!QD},{filter:function(t){return qD(this,t,arguments.length>1?arguments[1]:void 0)}});var JD=rt,e8=r1,t8=function(e,t,r,n){try{return n?t(JD(r)[0],r[1]):t(r)}catch(i){e8(e,"throw",i)}},r8=Ma,n8=ct,i8=Ht,o8=t8,a8=Qb,s8=Cu,l8=Jt,$w=Li,u8=e1,c8=td,Mw=Array,f8=function(t){var r=i8(t),n=s8(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=r8(o,i>2?arguments[2]:void 0));var s=c8(r),l=0,u,c,h,d,f,v;if(s&&!(this===Mw&&a8(s)))for(d=u8(r,s),f=d.next,c=n?new this:[];!(h=n8(f,d)).done;l++)v=a?o8(d,o,[h.value,l],!0):h.value,$w(c,l,v);else for(u=l8(r),c=n?new this(u):Mw(u);u>l;l++)v=a?o(r[l],l):r[l],$w(c,l,v);return c.length=l,c},h8=we,d8=f8,v8=u1,m8=!v8(function(e){Array.from(e)});h8({target:"Array",stat:!0,forced:m8},{from:d8});var p8=we,y8=bu,g8=_h.indexOf,b8=Fi,Vd=y8([].indexOf),Nw=!!Vd&&1/Vd([1],1,-0)<0,w8=Nw||!b8("indexOf");p8({target:"Array",proto:!0,forced:w8},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Nw?Vd(this,t,r)||0:g8(this,t,r)}});var S8=we,_8=Ee,C8=Bi,O8=_8([].reverse),Dw=[1,2];S8({target:"Array",proto:!0,forced:String(Dw)===String(Dw.reverse())},{reverse:function(){return C8(this)&&(this.length=this.length),O8(this)}});var T8=Zn.forEach,R8=Fi,E8=R8("forEach"),k8=E8?[].forEach:function(t){return T8(this,t,arguments.length>1?arguments[1]:void 0)},Hw=Fe,Lw=T1,x8=E1,zd=k8,A8=Un,Fw=function(e){if(e&&e.forEach!==zd)try{A8(e,"forEach",zd)}catch{e.forEach=zd}};for(var Ud in Lw)Lw[Ud]&&Fw(Hw[Ud]&&Hw[Ud].prototype);Fw(x8);var I8=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",P8=TypeError,Bw=function(e,t){if(er,a=M8(n)?n:F8(n),s=o?H8(arguments,r):[],l=o?function(){$8(a,this,s)}:a;return t?e(l,i):e(l)}:e},j8=we,Ww=Fe,W8=Gd,Vw=W8(Ww.setInterval,!0);j8({global:!0,bind:!0,forced:Ww.setInterval!==Vw},{setInterval:Vw});var V8=we,zw=Fe,z8=Gd,Uw=z8(zw.setTimeout,!0);V8({global:!0,bind:!0,forced:zw.setTimeout!==Uw},{setTimeout:Uw});var U8=Wn,G8=/(?:ipad|iphone|ipod).*applewebkit/i.test(U8),Y8=kr,Gw=typeof process<"u"&&Y8(process)=="process",Yt=Fe,K8=qn,Z8=Ma,Yw=ze,q8=Qe,Kw=Te,Zw=ob,X8=Ba,qw=eu,Q8=Bw,J8=G8,eH=Gw,Yd=Yt.setImmediate,Kd=Yt.clearImmediate,tH=Yt.process,Zd=Yt.Dispatch,rH=Yt.Function,Xw=Yt.MessageChannel,nH=Yt.String,qd=0,ja={},Qw="onreadystatechange",Wa,Xn,Xd,Qd;Kw(function(){Wa=Yt.location});var Jd=function(e){if(q8(ja,e)){var t=ja[e];delete ja[e],t()}},ev=function(e){return function(){Jd(e)}},Jw=function(e){Jd(e.data)},e0=function(e){Yt.postMessage(nH(e),Wa.protocol+"//"+Wa.host)};(!Yd||!Kd)&&(Yd=function(t){Q8(arguments.length,1);var r=Yw(t)?t:rH(t),n=X8(arguments,1);return ja[++qd]=function(){K8(r,void 0,n)},Xn(qd),qd},Kd=function(t){delete ja[t]},eH?Xn=function(e){tH.nextTick(ev(e))}:Zd&&Zd.now?Xn=function(e){Zd.now(ev(e))}:Xw&&!J8?(Xd=new Xw,Qd=Xd.port2,Xd.port1.onmessage=Jw,Xn=Z8(Qd.postMessage,Qd)):Yt.addEventListener&&Yw(Yt.postMessage)&&!Yt.importScripts&&Wa&&Wa.protocol!=="file:"&&!Kw(e0)?(Xn=e0,Yt.addEventListener("message",Jw,!1)):Qw in qw("script")?Xn=function(e){Zw.appendChild(qw("script"))[Qw]=function(){Zw.removeChild(this),Jd(e)}}:Xn=function(e){setTimeout(ev(e),0)});var t0={set:Yd,clear:Kd},iH=we,oH=Fe,r0=t0.clear;iH({global:!0,bind:!0,enumerable:!0,forced:oH.clearImmediate!==r0},{clearImmediate:r0});var aH=we,n0=Fe,i0=t0.set,sH=Gd,o0=n0.setImmediate?sH(i0,!1):i0;aH({global:!0,bind:!0,enumerable:!0,forced:n0.setImmediate!==o0},{setImmediate:o0});var lH=Su,uH=b1;lH("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},uH);var tv={},cH=Ve;tv.f=cH;var a0=J1,fH=Qe,hH=tv,dH=xt.f,rv=function(e){var t=a0.Symbol||(a0.Symbol={});fH(t,e)||dH(t,e,{value:hH.f(e)})},vH=ct,mH=Wr,pH=Ve,yH=er,s0=function(){var e=mH("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=pH("toPrimitive");t&&!t[n]&&yH(t,n,function(i){return vH(r,this)},{arity:1})},Iu=we,nv=Fe,iv=ct,gH=Ee,zi=nt,Ui=Ii,bH=Te,pt=Qe,wH=pn,ov=rt,Pu=Gt,av=ru,SH=mt,sv=Ta,Va=Di,l0=_a,_H=Gn,u0=Zh,CH=xa,c0=zr,f0=xt,OH=hh,h0=Ea,lv=er,TH=Na,uv=mn,RH=iu,d0=Sa,v0=Ql,EH=Ve,kH=tv,xH=rv,AH=s0,IH=du,m0=Vr,$u=Zn.forEach,Lt=RH("hidden"),Mu="Symbol",za="prototype",PH=m0.set,p0=m0.getterFor(Mu),tr=Object[za],Qn=nv.Symbol,Ua=Qn&&Qn[za],$H=nv.TypeError,cv=nv.QObject,y0=c0.f,Jn=f0.f,g0=u0.f,MH=h0.f,b0=gH([].push),Gr=uv("symbols"),Ga=uv("op-symbols"),NH=uv("wks"),fv=!cv||!cv[za]||!cv[za].findChild,hv=zi&&bH(function(){return Va(Jn({},"a",{get:function(){return Jn(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=y0(tr,t);n&&delete tr[t],Jn(e,t,r),n&&e!==tr&&Jn(tr,t,n)}:Jn,dv=function(e,t){var r=Gr[e]=Va(Ua);return PH(r,{type:Mu,tag:e,description:t}),zi||(r.description=t),r},Nu=function(t,r,n){t===tr&&Nu(Ga,r,n),ov(t);var i=av(r);return ov(n),pt(Gr,i)?(n.enumerable?(pt(t,Lt)&&t[Lt][i]&&(t[Lt][i]=!1),n=Va(n,{enumerable:sv(0,!1)})):(pt(t,Lt)||Jn(t,Lt,sv(1,{})),t[Lt][i]=!0),hv(t,i,n)):Jn(t,i,n)},vv=function(t,r){ov(t);var n=Pu(r),i=l0(n).concat(_0(n));return $u(i,function(o){(!zi||iv(mv,n,o))&&Nu(t,o,n[o])}),t},DH=function(t,r){return r===void 0?Va(t):vv(Va(t),r)},mv=function(t){var r=av(t),n=iv(MH,this,r);return this===tr&&pt(Gr,r)&&!pt(Ga,r)?!1:n||!pt(this,r)||!pt(Gr,r)||pt(this,Lt)&&this[Lt][r]?n:!0},w0=function(t,r){var n=Pu(t),i=av(r);if(!(n===tr&&pt(Gr,i)&&!pt(Ga,i))){var o=y0(n,i);return o&&pt(Gr,i)&&!(pt(n,Lt)&&n[Lt][i])&&(o.enumerable=!0),o}},S0=function(t){var r=g0(Pu(t)),n=[];return $u(r,function(i){!pt(Gr,i)&&!pt(d0,i)&&b0(n,i)}),n},_0=function(e){var t=e===tr,r=g0(t?Ga:Pu(e)),n=[];return $u(r,function(i){pt(Gr,i)&&(!t||pt(tr,i))&&b0(n,Gr[i])}),n};Ui||(Qn=function(){if(wH(Ua,this))throw $H("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:SH(arguments[0]),r=v0(t),n=function(i){this===tr&&iv(n,Ga,i),pt(this,Lt)&&pt(this[Lt],r)&&(this[Lt][r]=!1),hv(this,r,sv(1,i))};return zi&&fv&&hv(tr,r,{configurable:!0,set:n}),dv(r,t)},Ua=Qn[za],lv(Ua,"toString",function(){return p0(this).tag}),lv(Qn,"withoutSetter",function(e){return dv(v0(e),e)}),h0.f=mv,f0.f=Nu,OH.f=vv,c0.f=w0,_H.f=u0.f=S0,CH.f=_0,kH.f=function(e){return dv(EH(e),e)},zi&&(TH(Ua,"description",{configurable:!0,get:function(){return p0(this).description}}),lv(tr,"propertyIsEnumerable",mv,{unsafe:!0}))),Iu({global:!0,constructor:!0,wrap:!0,forced:!Ui,sham:!Ui},{Symbol:Qn}),$u(l0(NH),function(e){xH(e)}),Iu({target:Mu,stat:!0,forced:!Ui},{useSetter:function(){fv=!0},useSimple:function(){fv=!1}}),Iu({target:"Object",stat:!0,forced:!Ui,sham:!zi},{create:DH,defineProperty:Nu,defineProperties:vv,getOwnPropertyDescriptor:w0}),Iu({target:"Object",stat:!0,forced:!Ui},{getOwnPropertyNames:S0}),AH(),IH(Qn,Mu),d0[Lt]=!0;var HH=Ii,C0=HH&&!!Symbol.for&&!!Symbol.keyFor,LH=we,FH=Wr,BH=Qe,jH=mt,O0=mn,WH=C0,pv=O0("string-to-symbol-registry"),VH=O0("symbol-to-string-registry");LH({target:"Symbol",stat:!0,forced:!WH},{for:function(e){var t=jH(e);if(BH(pv,t))return pv[t];var r=FH("Symbol")(t);return pv[t]=r,VH[r]=t,r}});var zH=we,UH=Qe,GH=ba,YH=$i,KH=mn,ZH=C0,T0=KH("symbol-to-string-registry");zH({target:"Symbol",stat:!0,forced:!ZH},{keyFor:function(t){if(!GH(t))throw TypeError(YH(t)+" is not a symbol");if(UH(T0,t))return T0[t]}});var qH=Ee,R0=Bi,XH=ze,E0=kr,QH=mt,k0=qH([].push),JH=function(e){if(XH(e))return e;if(R0(e)){for(var t=e.length,r=[],n=0;n1?arguments[1]:void 0)}});var m9=xt.f,p9=function(e,t,r){r in e||m9(e,r,{configurable:!0,get:function(){return t[r]},set:function(n){t[r]=n}})},y9=nt,bv=Fe,Ka=Ee,g9=hu,b9=id,w9=Un,S9=Gn.f,J0=pn,_9=gv,eS=mt,C9=V0,tS=xd,O9=p9,T9=er,R9=Te,E9=Qe,k9=Vr.enforce,x9=v1,A9=Ve,rS=yw,nS=gw,I9=A9("match"),wn=bv.RegExp,Gi=wn.prototype,P9=bv.SyntaxError,$9=Ka(Gi.exec),Fu=Ka("".charAt),iS=Ka("".replace),oS=Ka("".indexOf),M9=Ka("".slice),N9=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ti=/a/g,wv=/a/g,D9=new wn(ti)!==ti,aS=tS.MISSED_STICKY,H9=tS.UNSUPPORTED_Y,L9=y9&&(!D9||aS||rS||nS||R9(function(){return wv[I9]=!1,wn(ti)!=ti||wn(wv)==wv||wn(ti,"i")!="/a/i"})),F9=function(e){for(var t=e.length,r=0,n="",i=!1,o;r<=t;r++){if(o=Fu(e,r),o==="\\"){n+=o+Fu(e,++r);continue}!i&&o==="."?n+="[\\s\\S]":(o==="["?i=!0:o==="]"&&(i=!1),n+=o)}return n},B9=function(e){for(var t=e.length,r=0,n="",i=[],o={},a=!1,s=!1,l=0,u="",c;r<=t;r++){if(c=Fu(e,r),c==="\\")c=c+Fu(e,++r);else if(c==="]")a=!1;else if(!a)switch(!0){case c==="[":a=!0;break;case c==="(":$9(N9,M9(e,r+1))&&(r+=2,s=!0),n+=c,l++;continue;case(c===">"&&s):if(u===""||E9(o,u))throw new P9("Invalid capture group name");o[u]=!0,i[i.length]=[u,l],s=!1,u="";continue}s?u+=c:n+=c}return[n,i]};if(g9("RegExp",L9)){for(var ri=function(t,r){var n=J0(Gi,this),i=_9(t),o=r===void 0,a=[],s=t,l,u,c,h,d,f;if(!n&&i&&o&&t.constructor===ri)return t;if((i||J0(Gi,t))&&(t=t.source,o&&(r=C9(s))),t=t===void 0?"":eS(t),r=r===void 0?"":eS(r),s=t,rS&&"dotAll"in ti&&(u=!!r&&oS(r,"s")>-1,u&&(r=iS(r,/s/g,""))),l=r,aS&&"sticky"in ti&&(c=!!r&&oS(r,"y")>-1,c&&H9&&(r=iS(r,/y/g,""))),nS&&(h=B9(t),t=h[0],a=h[1]),d=b9(wn(t,r),n?this:Gi,ri),(u||c||a.length)&&(f=k9(d),u&&(f.dotAll=!0,f.raw=ri(F9(t),l)),c&&(f.sticky=!0),a.length&&(f.groups=a)),t!==s)try{w9(d,"source",s===""?"(?:)":s)}catch{}return d},sS=S9(wn),lS=0;sS.length>lS;)O9(ri,wn,sS[lS++]);Gi.constructor=ri,ri.prototype=Gi,T9(bv,"RegExp",ri,{constructor:!0})}x9("RegExp");var j9=we,W9=Ee,V9=ya,z9=Gt,U9=Fi,G9=W9([].join),Y9=V9!=Object,K9=Y9||!U9("join",",");j9({target:"Array",proto:!0,forced:K9},{join:function(t){return G9(z9(this),t===void 0?",":t)}});var Z9=ka.PROPER,q9=Te,uS=ew,cS="​…᠎",X9=function(e){return q9(function(){return!!uS[e]()||cS[e]()!==cS||Z9&&uS[e].name!==e})},Q9=we,J9=rw.trim,eL=X9;Q9({target:"String",proto:!0,forced:eL("trim")},{trim:function(){return J9(this)}});function fS(e){return window.requestAnimationFrame(e)}function tL(){return!!document.documentElement.classList}function rL(){return!!document.createTextNode("test").textContent}function nL(){return!!window.getComputedStyle}function hS(e){window.cancelAnimationFrame(e)}function iL(){return"ontouchstart"in window}var Sv;function oL(){var e=document.createElement("TABLE");e.style.borderSpacing="0",e.style.borderWidth="0",e.style.padding="0";var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="t
t";var r=document.createElement("CAPTION");r.innerHTML="c
c
c
c",r.style.padding="0",r.style.margin="0",e.insertBefore(r,t),document.body.appendChild(e),Sv=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}function dS(){return Sv===void 0&&oL(),Sv}var Za;function aL(){if(Za!==void 0)return Za;try{var e={get passive(){Za=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Za=!1}return Za}var sL=we,lL=Ht,vS=_a,uL=Te,cL=uL(function(){vS(1)});sL({target:"Object",stat:!0,forced:cL},{keys:function(t){return vS(lL(t))}});var fL=rv,hL=s0;fL("toPrimitive"),hL();var dL=rt,vL=Xg,mL=TypeError,pL=function(e){if(dL(this),e==="string"||e==="default")e="string";else if(e!=="number")throw mL("Incorrect hint");return vL(this,e)},yL=Qe,gL=er,bL=pL,wL=Ve,mS=wL("toPrimitive"),pS=Date.prototype;yL(pS,mS)||gL(pS,mS,bL);var SL=Cu,_L=$i,CL=TypeError,yS=function(e){if(SL(e))return e;throw CL(_L(e)+" is not a constructor")},gS=rt,OL=yS,TL=xr,RL=Ve,EL=RL("species"),kL=function(e,t){var r=gS(e).constructor,n;return r===void 0||TL(n=gS(r)[EL])?t:OL(n)},xL=qn,qa=ct,_v=Ee,AL=Nd,IL=rt,PL=xr,$L=gv,bS=cr,ML=kL,NL=Dd,DL=Ni,Cv=mt,HL=Mi,wS=qh,SS=Bd,LL=xu,FL=xd,BL=Te,Yi=FL.UNSUPPORTED_Y,_S=4294967295,jL=Math.min,CS=[].push,WL=_v(/./.exec),Ki=_v(CS),Xa=_v("".slice),VL=!BL(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"});AL("split",function(e,t,r){var n;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?n=function(i,o){var a=Cv(bS(this)),s=o===void 0?_S:o>>>0;if(s===0)return[];if(i===void 0)return[a];if(!$L(i))return qa(t,a,i,s);for(var l=[],u=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),c=0,h=new RegExp(i.source,u+"g"),d,f,v;(d=qa(LL,h,a))&&(f=h.lastIndex,!(f>c&&(Ki(l,Xa(a,c,d.index)),d.length>1&&d.index=s)));)h.lastIndex===d.index&&h.lastIndex++;return c===a.length?(v||!WL(h,""))&&Ki(l,""):Ki(l,Xa(a,c)),l.length>s?wS(l,0,s):l}:"0".split(void 0,0).length?n=function(i,o){return i===void 0&&o===0?[]:qa(t,this,i,o)}:n=t,[function(o,a){var s=bS(this),l=PL(o)?void 0:HL(o,e);return l?qa(l,o,s,a):qa(n,Cv(s),o,a)},function(i,o){var a=IL(this),s=Cv(i),l=r(n,a,s,o,n!==t);if(l.done)return l.value;var u=ML(a,RegExp),c=a.unicode,h=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Yi?"g":"y"),d=new u(Yi?"^(?:"+a.source+")":a,h),f=o===void 0?_S:o>>>0;if(f===0)return[];if(s.length===0)return SS(d,s)===null?[s]:[];for(var v=0,p=0,m=[];p1&&arguments[1]!==void 0?arguments[1]:" ";return e.split(t)}function ES(e,t,r){return t=UL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UL(e){var t=GL(e,"string");return Zr(t)==="symbol"?t:String(t)}function GL(e,t){if(Zr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zr(e){return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function Ja(e){var t;return Array.isArray(e)?t=e.length?new Array(e.length).fill(null):[]:(t={},We(e,function(r,n){n!=="__children"&&(r&&Zr(r)==="object"&&!Array.isArray(r)?t[n]=Ja(r):Array.isArray(r)?r.length&&Zr(r[0])==="object"&&!Array.isArray(r[0])?t[n]=[Ja(r[0])]:t[n]=[]:t[n]=null)})),t}function YL(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function qi(e,t,r){var n=Array.isArray(r);return We(t,function(i,o){(n===!1||r.includes(o))&&(e[o]=i)}),e}function kS(e,t){We(t,function(r,n){t[n]&&Zr(t[n])==="object"?(e[n]||(Array.isArray(t[n])?e[n]=[]:Object.prototype.toString.call(t[n])==="[object Date]"?e[n]=t[n]:e[n]={}),kS(e[n],t[n])):e[n]=t[n]})}function Sn(e){return Zr(e)==="object"?JSON.parse(JSON.stringify(e)):e}function it(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1&&arguments[1]!==void 0?arguments[1]:"value",n="_".concat(r),i=(t={_touched:!1},ES(t,n,e),ES(t,"isTouched",function(){return this._touched}),t);return Object.defineProperty(i,r,{get:function(){return this[n]},set:function(a){this._touched=!0,this[n]=a},enumerable:!0,configurable:!0}),i}function _n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ft=function(t){var r={value:!1};return r.test=function(n,i){r.value=t(n,i)},r},Ir={chrome:Ft(function(e,t){return/Chrome/.test(e)&&/Google/.test(t)}),chromeWebKit:Ft(function(e){return/CriOS/.test(e)}),edge:Ft(function(e){return/Edge/.test(e)}),edgeWebKit:Ft(function(e){return/EdgiOS/.test(e)}),firefox:Ft(function(e){return/Firefox/.test(e)}),firefoxWebKit:Ft(function(e){return/FxiOS/.test(e)}),ie:Ft(function(e){return/Trident/.test(e)}),ie9:Ft(function(){return!!document.documentMode}),mobile:Ft(function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}),safari:Ft(function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)})},Bu={mac:Ft(function(e){return/^Mac/.test(e)}),win:Ft(function(e){return/^Win/.test(e)}),linux:Ft(function(e){return/^Linux/.test(e)}),ios:Ft(function(e){return/iPhone|iPad|iPod/i.test(e)})};function ZL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.userAgent,r=t===void 0?navigator.userAgent:t,n=e.vendor,i=n===void 0?navigator.vendor:n;We(Ir,function(o){var a=o.test;return void a(r,i)})}function qL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.platform,r=t===void 0?navigator.platform:t;We(Bu,function(n){var i=n.test;return void i(r)})}ZL(),qL();function XL(){return Ir.chrome.value}function QL(){return Ir.chromeWebKit.value}function Ev(){return Ir.firefox.value}function JL(){return Ir.firefoxWebKit.value}function eF(){return Ir.safari.value}function tF(){return Ir.edge.value}function rF(){return Ir.ie.value}function nF(){return Ir.ie9.value}function Cn(){return Ir.mobile.value}function AS(){return Bu.ios.value}function iF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:navigator,t=e.maxTouchPoints;return t>2&&Bu.mac.value}function IS(){return Bu.mac.value}/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function On(e){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function kv(e,t){return kv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},kv(e,t)}function oF(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ju(e,t,r){return oF()?ju=Reflect.construct:ju=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),u=new l;return a&&kv(u,a.prototype),u},ju.apply(null,arguments)}function dr(e){return aF(e)||sF(e)||lF(e)||uF()}function aF(e){if(Array.isArray(e))return xv(e)}function sF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lF(e,t){if(e){if(typeof e=="string")return xv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xv(e,t)}}function xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?r-1:0),i=1;i/gm),OF=vr(/\${[\w\W]*}/gm),TF=vr(/^data-[\-\w.\u00B7-\uFFFF]/),RF=vr(/^aria-[\-\w]+$/),EF=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kF=vr(/^(?:\w+script|data):/i),xF=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),AF=vr(/^html$/i),IF=function(){return typeof window>"u"?null:window},PF=function(t,r){if(On(t)!=="object"||typeof t.createPolicy!="function")return null;var n=null,i="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(i)&&(n=r.currentScript.getAttribute(i));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function FS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:IF(),t=function(N){return FS(N)};if(t.version="2.4.7",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var r=e.document,n=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,a=e.Node,s=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,c=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,h=e.HTMLFormElement,d=e.DOMParser,f=e.trustedTypes,v=s.prototype,p=zu(v,"cloneNode"),m=zu(v,"nextSibling"),w=zu(v,"childNodes"),_=zu(v,"parentNode");if(typeof o=="function"){var O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}var R=PF(f,r),T=R?R.createHTML(""):"",M=n,H=M.implementation,W=M.createNodeIterator,L=M.createDocumentFragment,q=M.getElementsByTagName,le=r.importNode,I={};try{I=ni(n).documentMode?n.documentMode:{}}catch{}var B={};t.isSupported=typeof _=="function"&&H&&H.createHTMLDocument!==void 0&&I!==9;var C=_F,z=CF,fe=OF,G=TF,ve=RF,Q=kF,g=xF,y=EF,S=null,A=ke({},[].concat(dr(NS),dr($v),dr(Mv),dr(Nv),dr(DS))),k=null,P=ke({},[].concat(dr(HS),dr(Dv),dr(LS),dr(Uu))),D=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,U=null,X=!0,ne=!0,ie=!1,ge=!0,be=!1,b=!1,V=!1,j=!1,x=!1,E=!1,$=!1,Y=!0,K=!1,F="user-content-",J=!0,oe=!1,ee={},de=null,Pe=ke({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Se=null,Ye=ke({},["audio","video","img","source","image","track"]),wt=null,dt=ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dt="http://www.w3.org/1998/Math/MathML",De="http://www.w3.org/2000/svg",st="http://www.w3.org/1999/xhtml",Et=st,lt=!1,Or=null,at=ke({},[Dt,De,st],Iv),He,ur=["application/xhtml+xml","text/html"],ut="text/html",_e,je=null,vt=n.createElement("form"),St=function(N){return N instanceof RegExp||N instanceof Function},Qt=function(N){je&&je===N||((!N||On(N)!=="object")&&(N={}),N=ni(N),He=ur.indexOf(N.PARSER_MEDIA_TYPE)===-1?He=ut:He=N.PARSER_MEDIA_TYPE,_e=He==="application/xhtml+xml"?Iv:Vu,S="ALLOWED_TAGS"in N?ke({},N.ALLOWED_TAGS,_e):A,k="ALLOWED_ATTR"in N?ke({},N.ALLOWED_ATTR,_e):P,Or="ALLOWED_NAMESPACES"in N?ke({},N.ALLOWED_NAMESPACES,Iv):at,wt="ADD_URI_SAFE_ATTR"in N?ke(ni(dt),N.ADD_URI_SAFE_ATTR,_e):dt,Se="ADD_DATA_URI_TAGS"in N?ke(ni(Ye),N.ADD_DATA_URI_TAGS,_e):Ye,de="FORBID_CONTENTS"in N?ke({},N.FORBID_CONTENTS,_e):Pe,Z="FORBID_TAGS"in N?ke({},N.FORBID_TAGS,_e):{},U="FORBID_ATTR"in N?ke({},N.FORBID_ATTR,_e):{},ee="USE_PROFILES"in N?N.USE_PROFILES:!1,X=N.ALLOW_ARIA_ATTR!==!1,ne=N.ALLOW_DATA_ATTR!==!1,ie=N.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,be=N.SAFE_FOR_TEMPLATES||!1,b=N.WHOLE_DOCUMENT||!1,x=N.RETURN_DOM||!1,E=N.RETURN_DOM_FRAGMENT||!1,$=N.RETURN_TRUSTED_TYPE||!1,j=N.FORCE_BODY||!1,Y=N.SANITIZE_DOM!==!1,K=N.SANITIZE_NAMED_PROPS||!1,J=N.KEEP_CONTENT!==!1,oe=N.IN_PLACE||!1,y=N.ALLOWED_URI_REGEXP||y,Et=N.NAMESPACE||st,D=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&St(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(D.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&St(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(D.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(D.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),be&&(ne=!1),E&&(x=!0),ee&&(S=ke({},dr(DS)),k=[],ee.html===!0&&(ke(S,NS),ke(k,HS)),ee.svg===!0&&(ke(S,$v),ke(k,Dv),ke(k,Uu)),ee.svgFilters===!0&&(ke(S,Mv),ke(k,Dv),ke(k,Uu)),ee.mathMl===!0&&(ke(S,Nv),ke(k,LS),ke(k,Uu))),N.ADD_TAGS&&(S===A&&(S=ni(S)),ke(S,N.ADD_TAGS,_e)),N.ADD_ATTR&&(k===P&&(k=ni(k)),ke(k,N.ADD_ATTR,_e)),N.ADD_URI_SAFE_ATTR&&ke(wt,N.ADD_URI_SAFE_ATTR,_e),N.FORBID_CONTENTS&&(de===Pe&&(de=ni(de)),ke(de,N.FORBID_CONTENTS,_e)),J&&(S["#text"]=!0),b&&ke(S,["html","head","body"]),S.table&&(ke(S,["tbody"]),delete Z.tbody),At&&At(N),je=N)},Tr=ke({},["mi","mo","mn","ms","mtext"]),Fn=ke({},["foreignobject","desc","title","annotation-xml"]),dg=ke({},["title","style","font","a","script"]),ki=ke({},$v);ke(ki,Mv),ke(ki,wF);var zl=ke({},Nv);ke(zl,SF);var Dce=function(N){var re=_(N);(!re||!re.tagName)&&(re={namespaceURI:Et,tagName:"template"});var ce=Vu(N.tagName),Le=Vu(re.tagName);return Or[N.namespaceURI]?N.namespaceURI===De?re.namespaceURI===st?ce==="svg":re.namespaceURI===Dt?ce==="svg"&&(Le==="annotation-xml"||Tr[Le]):Boolean(ki[ce]):N.namespaceURI===Dt?re.namespaceURI===st?ce==="math":re.namespaceURI===De?ce==="math"&&Fn[Le]:Boolean(zl[ce]):N.namespaceURI===st?re.namespaceURI===De&&!Fn[Le]||re.namespaceURI===Dt&&!Tr[Le]?!1:!zl[ce]&&(dg[ce]||!ki[ce]):!!(He==="application/xhtml+xml"&&Or[N.namespaceURI]):!1},dn=function(N){es(t.removed,{element:N});try{N.parentNode.removeChild(N)}catch{try{N.outerHTML=T}catch{N.remove()}}},vg=function(N,re){try{es(t.removed,{attribute:re.getAttributeNode(N),from:re})}catch{es(t.removed,{attribute:null,from:re})}if(re.removeAttribute(N),N==="is"&&!k[N])if(x||E)try{dn(re)}catch{}else try{re.setAttribute(N,"")}catch{}},$x=function(N){var re,ce;if(j)N=""+N;else{var Le=pF(N,/^[\r\n\t ]+/);ce=Le&&Le[0]}He==="application/xhtml+xml"&&Et===st&&(N=''+N+"");var zt=R?R.createHTML(N):N;if(Et===st)try{re=new d().parseFromString(zt,He)}catch{}if(!re||!re.documentElement){re=H.createDocument(Et,"template",null);try{re.documentElement.innerHTML=lt?T:zt}catch{}}var kt=re.body||re.documentElement;return N&&ce&&kt.insertBefore(n.createTextNode(ce),kt.childNodes[0]||null),Et===st?q.call(re,b?"html":"body")[0]:b?re.documentElement:kt},Mx=function(N){return W.call(N.ownerDocument||N,N,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Hce=function(N){return N instanceof h&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof c)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Ul=function(N){return On(a)==="object"?N instanceof a:N&&On(N)==="object"&&typeof N.nodeType=="number"&&typeof N.nodeName=="string"},vn=function(N,re,ce){B[N]&&mF(B[N],function(Le){Le.call(t,re,ce,je)})},Nx=function(N){var re;if(vn("beforeSanitizeElements",N,null),Hce(N)||It(/[\u0080-\uFFFF]/,N.nodeName))return dn(N),!0;var ce=_e(N.nodeName);if(vn("uponSanitizeElement",N,{tagName:ce,allowedTags:S}),N.hasChildNodes()&&!Ul(N.firstElementChild)&&(!Ul(N.content)||!Ul(N.content.firstElementChild))&&It(/<[/\w]/g,N.innerHTML)&&It(/<[/\w]/g,N.textContent)||ce==="select"&&It(/