mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-09 15:08:04 -05:00
* First pass at a proper state machine for managing output progress state
* `yarn build` (GitHub Actions)
* Add useBusyIndicators(), spinnerOptions(), and pulseOptions()
* Bring in new spinner defaults
* Use an actual div instead of a pseudo-element since chromium can't be trusted to show them when animated
* Revert "Use an actual div instead of a pseudo-element since chromium can't be trusted to show them when animated"
This reverts commit 6167c1dfd7.
* Embed animation inside svg (to avoid Chromium bug). Consolidate options into a singular busyIndicatorOptions()
* Add to pkgdown reference
* `devtools::document()` (GitHub Actions)
* `yarn build` (GitHub Actions)
* Bump version
* `yarn build` (GitHub Actions)
* Sync package version (GitHub Actions)
* Apply suggestions from code review
Co-authored-by: Garrick Aden-Buie <garrick@adenbuie.com>
* Update snapshots
* `devtools::document()` (GitHub Actions)
* Address feedback
* Bring in more spinner type options
* fix use of fs
* Code review
* `devtools::document()` (GitHub Actions)
* Sync package version (GitHub Actions)
* Update snapshots
* Fix comments
* Make snapshot consistent cross-platform
* Fix namespace issue
* Reduce specificity of position relative
* Skip snapshot on windows; update news
* Whoops
* Scope spinner customizations to parent element by default
* Update snapshots
* Reorder spinner types
* Set a private random seed in tests
* Better id naming
---------
Co-authored-by: cpsievert <cpsievert@users.noreply.github.com>
Co-authored-by: Garrick Aden-Buie <garrick@adenbuie.com>
20 lines
428 KiB
JavaScript
20 lines
428 KiB
JavaScript
/*! shiny 1.8.1.9001 | (c) 2012-2024 RStudio, PBC. | License: GPL-3 | file LICENSE */
|
|
"use strict";(function(){var aT=Object.create;var ph=Object.defineProperty;var uT=Object.getOwnPropertyDescriptor;var sT=Object.getOwnPropertyNames;var fT=Object.getPrototypeOf,cT=Object.prototype.hasOwnProperty;var I=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var lT=function(e,r,t,n){if(r&&typeof r=="object"||typeof r=="function")for(var i=sT(r),a=0,s=i.length,c;a<s;a++)c=i[a],!cT.call(e,c)&&c!==t&&ph(e,c,{get:function(l){return r[l]}.bind(null,c),enumerable:!(n=uT(r,c))||n.enumerable});return e};var N=function(e,r,t){return t=e!=null?aT(fT(e)):{},lT(r||!e||!e.__esModule?ph(t,"default",{value:e,enumerable:!0}):t,e)};var W=I(function(BW,vh){vh.exports=window.jQuery});var X=I(function(FW,gh){var ta=function(e){return e&&e.Math==Math&&e};gh.exports=ta(typeof globalThis=="object"&&globalThis)||ta(typeof window=="object"&&window)||ta(typeof self=="object"&&self)||ta(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var K=I(function(UW,bh){bh.exports=function(e){try{return!!e()}catch(r){return!0}}});var ie=I(function(VW,wh){var pT=K();wh.exports=!pT(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var zt=I(function(zW,Sh){var vT=K();Sh.exports=!vT(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var te=I(function(HW,Oh){var hT=zt(),na=Function.prototype.call;Oh.exports=hT?na.bind(na):function(){return na.apply(na,arguments)}});var ia=I(function(Eh){"use strict";var _h={}.propertyIsEnumerable,Ph=Object.getOwnPropertyDescriptor,dT=Ph&&!_h.call({1:2},1);Eh.f=dT?function(r){var t=Ph(this,r);return!!t&&t.enumerable}:_h});var Ht=I(function(WW,Ih){Ih.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Y=I(function(YW,kh){var qh=zt(),Th=Function.prototype,ks=Th.call,mT=qh&&Th.bind.bind(ks,ks);kh.exports=qh?mT:function(e){return function(){return ks.apply(e,arguments)}}});var Ve=I(function(XW,Rh){var xh=Y(),yT=xh({}.toString),gT=xh("".slice);Rh.exports=function(e){return gT(yT(e),8,-1)}});var pi=I(function(QW,Ah){var bT=Y(),wT=K(),ST=Ve(),xs=Object,OT=bT("".split);Ah.exports=wT(function(){return!xs("z").propertyIsEnumerable(0)})?function(e){return ST(e)=="String"?OT(e,""):xs(e)}:xs});var ze=I(function(JW,$h){$h.exports=function(e){return e==null}});var He=I(function(ZW,Nh){var _T=ze(),PT=TypeError;Nh.exports=function(e){if(_T(e))throw PT("Can't call method on "+e);return e}});var Ae=I(function(e4,jh){var ET=pi(),IT=He();jh.exports=function(e){return ET(IT(e))}});var As=I(function(r4,Lh){var Rs=typeof document=="object"&&document.all,qT=typeof Rs=="undefined"&&Rs!==void 0;Lh.exports={all:Rs,IS_HTMLDDA:qT}});var ee=I(function(t4,Dh){var Ch=As(),TT=Ch.all;Dh.exports=Ch.IS_HTMLDDA?function(e){return typeof e=="function"||e===TT}:function(e){return typeof e=="function"}});var ue=I(function(n4,Gh){var Bh=ee(),Mh=As(),kT=Mh.all;Gh.exports=Mh.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Bh(e)||e===kT}:function(e){return typeof e=="object"?e!==null:Bh(e)}});var $e=I(function(i4,Fh){var $s=X(),xT=ee(),RT=function(e){return xT(e)?e:void 0};Fh.exports=function(e,r){return arguments.length<2?RT($s[e]):$s[e]&&$s[e][r]}});var gr=I(function(o4,Uh){var AT=Y();Uh.exports=AT({}.isPrototypeOf)});var vi=I(function(a4,Vh){Vh.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var Kt=I(function(u4,Xh){var Yh=X(),Ns=vi(),zh=Yh.process,Hh=Yh.Deno,Kh=zh&&zh.versions||Hh&&Hh.version,Wh=Kh&&Kh.v8,Ze,oa;Wh&&(Ze=Wh.split("."),oa=Ze[0]>0&&Ze[0]<4?1:+(Ze[0]+Ze[1]));!oa&&Ns&&(Ze=Ns.match(/Edge\/(\d+)/),(!Ze||Ze[1]>=74)&&(Ze=Ns.match(/Chrome\/(\d+)/),Ze&&(oa=+Ze[1])));Xh.exports=oa});var tt=I(function(s4,Jh){var Qh=Kt(),$T=K();Jh.exports=!!Object.getOwnPropertySymbols&&!$T(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qh&&Qh<41})});var js=I(function(f4,Zh){var NT=tt();Zh.exports=NT&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Wt=I(function(c4,ed){var jT=$e(),LT=ee(),CT=gr(),DT=js(),BT=Object;ed.exports=DT?function(e){return typeof e=="symbol"}:function(e){var r=jT("Symbol");return LT(r)&&CT(r.prototype,BT(e))}});var nt=I(function(l4,rd){var MT=String;rd.exports=function(e){try{return MT(e)}catch(r){return"Object"}}});var Ke=I(function(p4,td){var GT=ee(),FT=nt(),UT=TypeError;td.exports=function(e){if(GT(e))return e;throw UT(FT(e)+" is not a function")}});var Ar=I(function(v4,nd){var VT=Ke(),zT=ze();nd.exports=function(e,r){var t=e[r];return zT(t)?void 0:VT(t)}});var Bs=I(function(h4,id){var Ls=te(),Cs=ee(),Ds=ue(),HT=TypeError;id.exports=function(e,r){var t,n;if(r==="string"&&Cs(t=e.toString)&&!Ds(n=Ls(t,e))||Cs(t=e.valueOf)&&!Ds(n=Ls(t,e))||r!=="string"&&Cs(t=e.toString)&&!Ds(n=Ls(t,e)))return n;throw HT("Can't convert object to primitive value")}});var Ne=I(function(d4,od){od.exports=!1});var aa=I(function(m4,ud){var ad=X(),KT=Object.defineProperty;ud.exports=function(e,r){try{KT(ad,e,{value:r,configurable:!0,writable:!0})}catch(t){ad[e]=r}return r}});var ua=I(function(y4,fd){var WT=X(),YT=aa(),sd="__core-js_shared__",XT=WT[sd]||YT(sd,{});fd.exports=XT});var it=I(function(g4,ld){var QT=Ne(),cd=ua();(ld.exports=function(e,r){return cd[e]||(cd[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.29.0",mode:QT?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var xe=I(function(b4,pd){var JT=He(),ZT=Object;pd.exports=function(e){return ZT(JT(e))}});var oe=I(function(w4,vd){var ek=Y(),rk=xe(),tk=ek({}.hasOwnProperty);vd.exports=Object.hasOwn||function(r,t){return tk(rk(r),t)}});var hi=I(function(S4,hd){var nk=Y(),ik=0,ok=Math.random(),ak=nk(1 .toString);hd.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ak(++ik+ok,36)}});var re=I(function(O4,md){var uk=X(),sk=it(),dd=oe(),fk=hi(),ck=tt(),lk=js(),Yt=uk.Symbol,Ms=sk("wks"),pk=lk?Yt.for||Yt:Yt&&Yt.withoutSetter||fk;md.exports=function(e){return dd(Ms,e)||(Ms[e]=ck&&dd(Yt,e)?Yt[e]:pk("Symbol."+e)),Ms[e]}});var Gs=I(function(_4,bd){var vk=te(),yd=ue(),gd=Wt(),hk=Ar(),dk=Bs(),mk=re(),yk=TypeError,gk=mk("toPrimitive");bd.exports=function(e,r){if(!yd(e)||gd(e))return e;var t=hk(e,gk),n;if(t){if(r===void 0&&(r="default"),n=vk(t,e,r),!yd(n)||gd(n))return n;throw yk("Can't convert object to primitive value")}return r===void 0&&(r="number"),dk(e,r)}});var di=I(function(P4,wd){var bk=Gs(),wk=Wt();wd.exports=function(e){var r=bk(e,"string");return wk(r)?r:r+""}});var mi=I(function(E4,Od){var Sk=X(),Sd=ue(),Fs=Sk.document,Ok=Sd(Fs)&&Sd(Fs.createElement);Od.exports=function(e){return Ok?Fs.createElement(e):{}}});var Us=I(function(I4,_d){var _k=ie(),Pk=K(),Ek=mi();_d.exports=!_k&&!Pk(function(){return Object.defineProperty(Ek("div"),"a",{get:function(){return 7}}).a!=7})});var er=I(function(Ed){var Ik=ie(),qk=te(),Tk=ia(),kk=Ht(),xk=Ae(),Rk=di(),Ak=oe(),$k=Us(),Pd=Object.getOwnPropertyDescriptor;Ed.f=Ik?Pd:function(r,t){if(r=xk(r),t=Rk(t),$k)try{return Pd(r,t)}catch(n){}if(Ak(r,t))return kk(!qk(Tk.f,r,t),r[t])}});var Vs=I(function(T4,Id){var Nk=ie(),jk=K();Id.exports=Nk&&jk(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var ne=I(function(k4,qd){var Lk=ue(),Ck=String,Dk=TypeError;qd.exports=function(e){if(Lk(e))return e;throw Dk(Ck(e)+" is not an object")}});var we=I(function(kd){var Bk=ie(),Mk=Us(),Gk=Vs(),sa=ne(),Td=di(),Fk=TypeError,zs=Object.defineProperty,Uk=Object.getOwnPropertyDescriptor,Hs="enumerable",Ks="configurable",Ws="writable";kd.f=Bk?Gk?function(r,t,n){if(sa(r),t=Td(t),sa(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Ws in n&&!n[Ws]){var i=Uk(r,t);i&&i[Ws]&&(r[t]=n.value,n={configurable:Ks in n?n[Ks]:i[Ks],enumerable:Hs in n?n[Hs]:i[Hs],writable:!1})}return zs(r,t,n)}:zs:function(r,t,n){if(sa(r),t=Td(t),sa(n),Mk)try{return zs(r,t,n)}catch(i){}if("get"in n||"set"in n)throw Fk("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var br=I(function(R4,xd){var Vk=ie(),zk=we(),Hk=Ht();xd.exports=Vk?function(e,r,t){return zk.f(e,r,Hk(1,t))}:function(e,r,t){return e[r]=t,e}});var ot=I(function(A4,Ad){var Ys=ie(),Kk=oe(),Rd=Function.prototype,Wk=Ys&&Object.getOwnPropertyDescriptor,Xs=Kk(Rd,"name"),Yk=Xs&&function(){}.name==="something",Xk=Xs&&(!Ys||Ys&&Wk(Rd,"name").configurable);Ad.exports={EXISTS:Xs,PROPER:Yk,CONFIGURABLE:Xk}});var fa=I(function($4,$d){var Qk=Y(),Jk=ee(),Qs=ua(),Zk=Qk(Function.toString);Jk(Qs.inspectSource)||(Qs.inspectSource=function(e){return Zk(e)});$d.exports=Qs.inspectSource});var Js=I(function(N4,jd){var ex=X(),rx=ee(),Nd=ex.WeakMap;jd.exports=rx(Nd)&&/native code/.test(String(Nd))});var yi=I(function(j4,Cd){var tx=it(),nx=hi(),Ld=tx("keys");Cd.exports=function(e){return Ld[e]||(Ld[e]=nx(e))}});var Xt=I(function(L4,Dd){Dd.exports={}});var je=I(function(C4,Gd){var ix=Js(),Md=X(),ox=ue(),ax=br(),Zs=oe(),ef=ua(),ux=yi(),sx=Xt(),Bd="Object already initialized",rf=Md.TypeError,fx=Md.WeakMap,ca,gi,la,cx=function(e){return la(e)?gi(e):ca(e,{})},lx=function(e){return function(r){var t;if(!ox(r)||(t=gi(r)).type!==e)throw rf("Incompatible receiver, "+e+" required");return t}};ix||ef.state?(rr=ef.state||(ef.state=new fx),rr.get=rr.get,rr.has=rr.has,rr.set=rr.set,ca=function(e,r){if(rr.has(e))throw rf(Bd);return r.facade=e,rr.set(e,r),r},gi=function(e){return rr.get(e)||{}},la=function(e){return rr.has(e)}):(at=ux("state"),sx[at]=!0,ca=function(e,r){if(Zs(e,at))throw rf(Bd);return r.facade=e,ax(e,at,r),r},gi=function(e){return Zs(e,at)?e[at]:{}},la=function(e){return Zs(e,at)});var rr,at;Gd.exports={set:ca,get:gi,has:la,enforce:cx,getterFor:lx}});var of=I(function(D4,Vd){var nf=Y(),px=K(),vx=ee(),pa=oe(),tf=ie(),hx=ot().CONFIGURABLE,dx=fa(),Ud=je(),mx=Ud.enforce,yx=Ud.get,Fd=String,va=Object.defineProperty,gx=nf("".slice),bx=nf("".replace),wx=nf([].join),Sx=tf&&!px(function(){return va(function(){},"length",{value:8}).length!==8}),Ox=String(String).split("String"),_x=Vd.exports=function(e,r,t){gx(Fd(r),0,7)==="Symbol("&&(r="["+bx(Fd(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),t&&t.getter&&(r="get "+r),t&&t.setter&&(r="set "+r),(!pa(e,"name")||hx&&e.name!==r)&&(tf?va(e,"name",{value:r,configurable:!0}):e.name=r),Sx&&t&&pa(t,"arity")&&e.length!==t.arity&&va(e,"length",{value:t.arity});try{t&&pa(t,"constructor")&&t.constructor?tf&&va(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=mx(e);return pa(n,"source")||(n.source=wx(Ox,typeof r=="string"?r:"")),e};Function.prototype.toString=_x(function(){return vx(this)&&yx(this).source||dx(this)},"toString")});var Ee=I(function(B4,zd){var Px=ee(),Ex=we(),Ix=of(),qx=aa();zd.exports=function(e,r,t,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:r;if(Px(t)&&Ix(t,a,n),n.global)i?e[r]=t:qx(r,t);else{try{n.unsafe?e[r]&&(i=!0):delete e[r]}catch(s){}i?e[r]=t:Ex.f(e,r,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}});var Kd=I(function(M4,Hd){var Tx=Math.ceil,kx=Math.floor;Hd.exports=Math.trunc||function(r){var t=+r;return(t>0?kx:Tx)(t)}});var wr=I(function(G4,Wd){var xx=Kd();Wd.exports=function(e){var r=+e;return r!==r||r===0?0:xx(r)}});var ut=I(function(F4,Yd){var Rx=wr(),Ax=Math.max,$x=Math.min;Yd.exports=function(e,r){var t=Rx(e);return t<0?Ax(t+r,0):$x(t,r)}});var lr=I(function(U4,Xd){var Nx=wr(),jx=Math.min;Xd.exports=function(e){return e>0?jx(Nx(e),9007199254740991):0}});var Le=I(function(V4,Qd){var Lx=lr();Qd.exports=function(e){return Lx(e.length)}});var ha=I(function(z4,Zd){var Cx=Ae(),Dx=ut(),Bx=Le(),Jd=function(e){return function(r,t,n){var i=Cx(r),a=Bx(i),s=Dx(n,a),c;if(e&&t!=t){for(;a>s;)if(c=i[s++],c!=c)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}};Zd.exports={includes:Jd(!0),indexOf:Jd(!1)}});var uf=I(function(H4,rm){var Mx=Y(),af=oe(),Gx=Ae(),Fx=ha().indexOf,Ux=Xt(),em=Mx([].push);rm.exports=function(e,r){var t=Gx(e),n=0,i=[],a;for(a in t)!af(Ux,a)&&af(t,a)&&em(i,a);for(;r.length>n;)af(t,a=r[n++])&&(~Fx(i,a)||em(i,a));return i}});var da=I(function(K4,tm){tm.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var $r=I(function(nm){var Vx=uf(),zx=da(),Hx=zx.concat("length","prototype");nm.f=Object.getOwnPropertyNames||function(r){return Vx(r,Hx)}});var ma=I(function(im){im.f=Object.getOwnPropertySymbols});var sf=I(function(X4,om){var Kx=$e(),Wx=Y(),Yx=$r(),Xx=ma(),Qx=ne(),Jx=Wx([].concat);om.exports=Kx("Reflect","ownKeys")||function(r){var t=Yx.f(Qx(r)),n=Xx.f;return n?Jx(t,n(r)):t}});var ff=I(function(Q4,um){var am=oe(),Zx=sf(),eR=er(),rR=we();um.exports=function(e,r,t){for(var n=Zx(r),i=rR.f,a=eR.f,s=0;s<n.length;s++){var c=n[s];!am(e,c)&&!(t&&am(t,c))&&i(e,c,a(r,c))}}});var Qt=I(function(J4,sm){var tR=K(),nR=ee(),iR=/#|\.prototype\./,bi=function(e,r){var t=aR[oR(e)];return t==sR?!0:t==uR?!1:nR(r)?tR(r):!!r},oR=bi.normalize=function(e){return String(e).replace(iR,".").toLowerCase()},aR=bi.data={},uR=bi.NATIVE="N",sR=bi.POLYFILL="P";sm.exports=bi});var M=I(function(Z4,fm){var cf=X(),fR=er().f,cR=br(),lR=Ee(),pR=aa(),vR=ff(),hR=Qt();fm.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a,s,c,l,v,m;if(n?s=cf:i?s=cf[t]||pR(t,{}):s=(cf[t]||{}).prototype,s)for(c in r){if(v=r[c],e.dontCallGetSet?(m=fR(s,c),l=m&&m.value):l=s[c],a=hR(n?c:t+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof v==typeof l)continue;vR(v,l)}(e.sham||l&&l.sham)&&cR(v,"sham",!0),lR(s,c,v,e)}}});var st=I(function(eY,cm){var dR=Ve(),mR=Y();cm.exports=function(e){if(dR(e)==="Function")return mR(e)}});var Jt=I(function(rY,lm){"use strict";var yR=K();lm.exports=function(e,r){var t=[][e];return!!t&&yR(function(){t.call(null,r||function(){return 1},1)})}});var ya=I(function(tY,hm){var _R=re(),PR=_R("toStringTag"),vm={};vm[PR]="z";hm.exports=String(vm)==="[object z]"});var wi=I(function(nY,dm){var ER=ya(),IR=ee(),ga=Ve(),qR=re(),TR=qR("toStringTag"),kR=Object,xR=ga(function(){return arguments}())=="Arguments",RR=function(e,r){try{return e[r]}catch(t){}};dm.exports=ER?ga:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=RR(r=kR(e),TR))=="string"?t:xR?ga(r):(n=ga(r))=="Object"&&IR(r.callee)?"Arguments":n}});var pe=I(function(iY,mm){var AR=wi(),$R=String;mm.exports=function(e){if(AR(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $R(e)}});var Si=I(function(oY,ym){ym.exports=" \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"});var Oi=I(function(aY,bm){var NR=Y(),jR=He(),LR=pe(),vf=Si(),gm=NR("".replace),CR=RegExp("^["+vf+"]+"),DR=RegExp("(^|[^"+vf+"])["+vf+"]+$"),pf=function(e){return function(r){var t=LR(jR(r));return e&1&&(t=gm(t,CR,"")),e&2&&(t=gm(t,DR,"$1")),t}};bm.exports={start:pf(1),end:pf(2),trim:pf(3)}});var Im=I(function(uY,Em){var _m=X(),BR=K(),MR=Y(),GR=pe(),FR=Oi().trim,wm=Si(),_i=_m.parseInt,Sm=_m.Symbol,Om=Sm&&Sm.iterator,Pm=/^[+-]?0x/i,UR=MR(Pm.exec),VR=_i(wm+"08")!==8||_i(wm+"0x16")!==22||Om&&!BR(function(){_i(Object(Om))});Em.exports=VR?function(r,t){var n=FR(GR(r));return _i(n,t>>>0||(UR(Pm,n)?16:10))}:_i});var hf=I(function(sY,Tm){"use strict";var HR=ne();Tm.exports=function(){var e=HR(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}});var Pi=I(function(fY,km){var df=K(),KR=X(),mf=KR.RegExp,yf=df(function(){var e=mf("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),WR=yf||df(function(){return!mf("a","y").sticky}),YR=yf||df(function(){var e=mf("^r","gy");return e.lastIndex=2,e.exec("str")!=null});km.exports={BROKEN_CARET:YR,MISSED_STICKY:WR,UNSUPPORTED_Y:yf}});var Ei=I(function(cY,xm){var XR=uf(),QR=da();xm.exports=Object.keys||function(r){return XR(r,QR)}});var ba=I(function(Rm){var JR=ie(),ZR=Vs(),e1=we(),r1=ne(),t1=Ae(),n1=Ei();Rm.f=JR&&!ZR?Object.defineProperties:function(r,t){r1(r);for(var n=t1(t),i=n1(t),a=i.length,s=0,c;a>s;)e1.f(r,c=i[s++],n[c]);return r}});var gf=I(function(pY,Am){var i1=$e();Am.exports=i1("document","documentElement")});var Nr=I(function(vY,Bm){var o1=ne(),a1=ba(),$m=da(),u1=Xt(),s1=gf(),f1=mi(),c1=yi(),Nm=">",jm="<",wf="prototype",Sf="script",Cm=c1("IE_PROTO"),bf=function(){},Dm=function(e){return jm+Sf+Nm+e+jm+"/"+Sf+Nm},Lm=function(e){e.write(Dm("")),e.close();var r=e.parentWindow.Object;return e=null,r},l1=function(){var e=f1("iframe"),r="java"+Sf+":",t;return e.style.display="none",s1.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Dm("document.F=Object")),t.close(),t.F},wa,Sa=function(){try{wa=new ActiveXObject("htmlfile")}catch(r){}Sa=typeof document!="undefined"?document.domain&&wa?Lm(wa):l1():Lm(wa);for(var e=$m.length;e--;)delete Sa[wf][$m[e]];return Sa()};u1[Cm]=!0;Bm.exports=Object.create||function(r,t){var n;return r!==null?(bf[wf]=o1(r),n=new bf,bf[wf]=null,n[Cm]=r):n=Sa(),t===void 0?n:a1.f(n,t)}});var Of=I(function(hY,Mm){var p1=K(),v1=X(),h1=v1.RegExp;Mm.exports=p1(function(){var e=h1(".","s");return!(e.dotAll&&e.exec("\n")&&e.flags==="s")})});var _f=I(function(dY,Gm){var d1=K(),m1=X(),y1=m1.RegExp;Gm.exports=d1(function(){var e=y1("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})});var Ii=I(function(mY,Um){"use strict";var Zt=te(),_a=Y(),g1=pe(),b1=hf(),w1=Pi(),S1=it(),O1=Nr(),_1=je().get,P1=Of(),E1=_f(),I1=S1("native-string-replace",String.prototype.replace),Oa=RegExp.prototype.exec,Ef=Oa,q1=_a("".charAt),T1=_a("".indexOf),k1=_a("".replace),Pf=_a("".slice),If=function(){var e=/a/,r=/b*/g;return Zt(Oa,e,"a"),Zt(Oa,r,"a"),e.lastIndex!==0||r.lastIndex!==0}(),Fm=w1.BROKEN_CARET,qf=/()??/.exec("")[1]!==void 0,x1=If||qf||Fm||P1||E1;x1&&(Ef=function(r){var t=this,n=_1(t),i=g1(r),a=n.raw,s,c,l,v,m,y,b;if(a)return a.lastIndex=t.lastIndex,s=Zt(Ef,a,i),t.lastIndex=a.lastIndex,s;var w=n.groups,S=Fm&&t.sticky,q=Zt(b1,t),k=t.source,E=0,P=i;if(S&&(q=k1(q,"y",""),T1(q,"g")===-1&&(q+="g"),P=Pf(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&q1(i,t.lastIndex-1)!=="\n")&&(k="(?: "+k+")",P=" "+P,E++),c=new RegExp("^(?:"+k+")",q)),qf&&(c=new RegExp("^"+k+"$(?!\\s)",q)),If&&(l=t.lastIndex),v=Zt(Oa,S?c:t,P),S?v?(v.input=Pf(v.input,E),v[0]=Pf(v[0],E),v.index=t.lastIndex,t.lastIndex+=v[0].length):t.lastIndex=0:If&&v&&(t.lastIndex=t.global?v.index+v[0].length:l),qf&&v&&v.length>1&&Zt(I1,v[0],c,function(){for(m=1;m<arguments.length-2;m++)arguments[m]===void 0&&(v[m]=void 0)}),v&&w)for(v.groups=y=O1(null),m=0;m<w.length;m++)b=w[m],y[b[0]]=v[b[1]];return v});Um.exports=Ef});var ve=I(function(){"use strict";var R1=M(),Vm=Ii();R1({target:"RegExp",proto:!0,forced:/./.exec!==Vm},{exec:Vm})});var iy=I(function(kY,ny){"use strict";var D1=ya(),B1=wi();ny.exports=D1?{}.toString:function(){return"[object "+B1(this)+"]"}});var en=I(function(xY,oy){var U1=Ve();oy.exports=typeof process!="undefined"&&U1(process)=="process"});var uy=I(function(RY,ay){var V1=Y(),z1=Ke();ay.exports=function(e,r,t){try{return V1(z1(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var fy=I(function(AY,sy){var H1=ee(),K1=String,W1=TypeError;sy.exports=function(e){if(typeof e=="object"||H1(e))return e;throw W1("Can't set "+K1(e)+" as a prototype")}});var rn=I(function($Y,cy){var Y1=uy(),X1=ne(),Q1=fy();cy.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Y1(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,a){return X1(i),Q1(a),e?t(i,a):i.__proto__=a,i}}():void 0)});var tr=I(function(NY,py){var J1=we().f,Z1=oe(),eA=re(),ly=eA("toStringTag");py.exports=function(e,r,t){e&&!t&&(e=e.prototype),e&&!Z1(e,ly)&&J1(e,ly,{configurable:!0,value:r})}});var jr=I(function(jY,hy){var vy=of(),rA=we();hy.exports=function(e,r,t){return t.get&&vy(t.get,r,{getter:!0}),t.set&&vy(t.set,r,{setter:!0}),rA.f(e,r,t)}});var qi=I(function(LY,my){"use strict";var tA=$e(),nA=jr(),iA=re(),oA=ie(),dy=iA("species");my.exports=function(e){var r=tA(e);oA&&r&&!r[dy]&&nA(r,dy,{configurable:!0,get:function(){return this}})}});var tn=I(function(CY,yy){var aA=gr(),uA=TypeError;yy.exports=function(e,r){if(aA(r,e))return e;throw uA("Incorrect invocation")}});var ki=I(function(DY,Oy){var sA=Y(),fA=K(),gy=ee(),cA=wi(),lA=$e(),pA=fa(),by=function(){},vA=[],wy=lA("Reflect","construct"),kf=/^\s*(?:class|function)\b/,hA=sA(kf.exec),dA=!kf.exec(by),Ti=function(r){if(!gy(r))return!1;try{return wy(by,vA,r),!0}catch(t){return!1}},Sy=function(r){if(!gy(r))return!1;switch(cA(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return dA||!!hA(kf,pA(r))}catch(t){return!0}};Sy.sham=!0;Oy.exports=!wy||fA(function(){var e;return Ti(Ti.call)||!Ti(Object)||!Ti(function(){e=!0})||e})?Sy:Ti});var xf=I(function(BY,_y){var mA=ki(),yA=nt(),gA=TypeError;_y.exports=function(e){if(mA(e))return e;throw gA(yA(e)+" is not a constructor")}});var Ea=I(function(MY,Ey){var Py=ne(),bA=xf(),wA=ze(),SA=re(),OA=SA("species");Ey.exports=function(e,r){var t=Py(e).constructor,n;return t===void 0||wA(n=Py(t)[OA])?r:bA(n)}});var nn=I(function(GY,ky){var _A=zt(),Ty=Function.prototype,Iy=Ty.apply,qy=Ty.call;ky.exports=typeof Reflect=="object"&&Reflect.apply||(_A?qy.bind(Iy):function(){return qy.apply(Iy,arguments)})});var Lr=I(function(FY,Ry){var xy=st(),PA=Ke(),EA=zt(),IA=xy(xy.bind);Ry.exports=function(e,r){return PA(e),r===void 0?e:EA?IA(e,r):function(){return e.apply(r,arguments)}}});var xi=I(function(UY,Ay){var qA=Y();Ay.exports=qA([].slice)});var Ny=I(function(VY,$y){var TA=TypeError;$y.exports=function(e,r){if(e<r)throw TA("Not enough arguments");return e}});var Rf=I(function(zY,jy){var kA=vi();jy.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(kA)});var Mf=I(function(HY,Vy){var Ce=X(),xA=nn(),RA=Lr(),Ly=ee(),AA=oe(),Uy=K(),Cy=gf(),$A=xi(),Dy=mi(),NA=Ny(),jA=Rf(),LA=en(),Cf=Ce.setImmediate,Df=Ce.clearImmediate,CA=Ce.process,Af=Ce.Dispatch,DA=Ce.Function,By=Ce.MessageChannel,BA=Ce.String,$f=0,Ri={},My="onreadystatechange",Ai,ct,Nf,jf;Uy(function(){Ai=Ce.location});var Bf=function(e){if(AA(Ri,e)){var r=Ri[e];delete Ri[e],r()}},Lf=function(e){return function(){Bf(e)}},Gy=function(e){Bf(e.data)},Fy=function(e){Ce.postMessage(BA(e),Ai.protocol+"//"+Ai.host)};(!Cf||!Df)&&(Cf=function(r){NA(arguments.length,1);var t=Ly(r)?r:DA(r),n=$A(arguments,1);return Ri[++$f]=function(){xA(t,void 0,n)},ct($f),$f},Df=function(r){delete Ri[r]},LA?ct=function(e){CA.nextTick(Lf(e))}:Af&&Af.now?ct=function(e){Af.now(Lf(e))}:By&&!jA?(Nf=new By,jf=Nf.port2,Nf.port1.onmessage=Gy,ct=RA(jf.postMessage,jf)):Ce.addEventListener&&Ly(Ce.postMessage)&&!Ce.importScripts&&Ai&&Ai.protocol!=="file:"&&!Uy(Fy)?(ct=Fy,Ce.addEventListener("message",Gy,!1)):My in Dy("script")?ct=function(e){Cy.appendChild(Dy("script"))[My]=function(){Cy.removeChild(this),Bf(e)}}:ct=function(e){setTimeout(Lf(e),0)});Vy.exports={set:Cf,clear:Df}});var Gf=I(function(KY,Hy){var zy=function(){this.head=null,this.tail=null};zy.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}};Hy.exports=zy});var Wy=I(function(WY,Ky){var MA=vi();Ky.exports=/ipad|iphone|ipod/i.test(MA)&&typeof Pebble!="undefined"});var Xy=I(function(YY,Yy){var GA=vi();Yy.exports=/web0s(?!.*chrome)/i.test(GA)});var ig=I(function(XY,ng){var lt=X(),Qy=Lr(),FA=er().f,Ff=Mf().set,UA=Gf(),VA=Rf(),zA=Wy(),HA=Xy(),Uf=en(),Jy=lt.MutationObserver||lt.WebKitMutationObserver,Zy=lt.document,eg=lt.process,Ia=lt.Promise,rg=FA(lt,"queueMicrotask"),Hf=rg&&rg.value,on,Vf,zf,qa,tg;Hf||($i=new UA,Ni=function(){var e,r;for(Uf&&(e=eg.domain)&&e.exit();r=$i.get();)try{r()}catch(t){throw $i.head&&on(),t}e&&e.enter()},!VA&&!Uf&&!HA&&Jy&&Zy?(Vf=!0,zf=Zy.createTextNode(""),new Jy(Ni).observe(zf,{characterData:!0}),on=function(){zf.data=Vf=!Vf}):!zA&&Ia&&Ia.resolve?(qa=Ia.resolve(void 0),qa.constructor=Ia,tg=Qy(qa.then,qa),on=function(){tg(Ni)}):Uf?on=function(){eg.nextTick(Ni)}:(Ff=Qy(Ff,lt),on=function(){Ff(Ni)}),Hf=function(e){$i.head||on(),$i.add(e)});var $i,Ni;ng.exports=Hf});var ag=I(function(QY,og){og.exports=function(e,r){try{arguments.length==1?console.error(e):console.error(e,r)}catch(t){}}});var ji=I(function(JY,ug){ug.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}});var an=I(function(ZY,sg){var KA=X();sg.exports=KA.Promise});var Kf=I(function(e7,fg){fg.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"});var lg=I(function(r7,cg){var WA=Kf(),YA=en();cg.exports=!WA&&!YA&&typeof window=="object"&&typeof document=="object"});var un=I(function(t7,hg){var XA=X(),Li=an(),QA=ee(),JA=Qt(),ZA=fa(),e$=re(),r$=lg(),t$=Kf(),n$=Ne(),Wf=Kt(),pg=Li&&Li.prototype,i$=e$("species"),Yf=!1,vg=QA(XA.PromiseRejectionEvent),o$=JA("Promise",function(){var e=ZA(Li),r=e!==String(Li);if(!r&&Wf===66||n$&&!(pg.catch&&pg.finally))return!0;if(!Wf||Wf<51||!/native code/.test(e)){var t=new Li(function(a){a(1)}),n=function(a){a(function(){},function(){})},i=t.constructor={};if(i[i$]=n,Yf=t.then(function(){})instanceof n,!Yf)return!0}return!r&&(r$||t$)&&!vg});hg.exports={CONSTRUCTOR:o$,REJECTION_EVENT:vg,SUBCLASSING:Yf}});var pt=I(function(n7,mg){"use strict";var dg=Ke(),a$=TypeError,u$=function(e){var r,t;this.promise=new e(function(n,i){if(r!==void 0||t!==void 0)throw a$("Bad Promise constructor");r=n,t=i}),this.resolve=dg(r),this.reject=dg(t)};mg.exports.f=function(e){return new u$(e)}});var jg=I(function(){"use strict";var s$=M(),f$=Ne(),Ra=en(),Cr=X(),ln=te(),yg=Ee(),gg=rn(),c$=tr(),l$=qi(),p$=Ke(),xa=ee(),v$=ue(),h$=tn(),d$=Ea(),_g=Mf().set,ec=ig(),m$=ag(),y$=ji(),g$=Gf(),Pg=je(),Aa=an(),rc=un(),Eg=pt(),$a="Promise",Ig=rc.CONSTRUCTOR,b$=rc.REJECTION_EVENT,w$=rc.SUBCLASSING,Xf=Pg.getterFor($a),S$=Pg.set,sn=Aa&&Aa.prototype,vt=Aa,Ta=sn,qg=Cr.TypeError,Qf=Cr.document,tc=Cr.process,Jf=Eg.f,O$=Jf,_$=!!(Qf&&Qf.createEvent&&Cr.dispatchEvent),Tg="unhandledrejection",P$="rejectionhandled",bg=0,kg=1,E$=2,nc=1,xg=2,ka,wg,I$,Sg,Rg=function(e){var r;return v$(e)&&xa(r=e.then)?r:!1},Ag=function(e,r){var t=r.value,n=r.state==kg,i=n?e.ok:e.fail,a=e.resolve,s=e.reject,c=e.domain,l,v,m;try{i?(n||(r.rejection===xg&&T$(r),r.rejection=nc),i===!0?l=t:(c&&c.enter(),l=i(t),c&&(c.exit(),m=!0)),l===e.promise?s(qg("Promise-chain cycle")):(v=Rg(l))?ln(v,l,a,s):a(l)):s(t)}catch(y){c&&!m&&c.exit(),s(y)}},$g=function(e,r){e.notified||(e.notified=!0,ec(function(){for(var t=e.reactions,n;n=t.get();)Ag(n,e);e.notified=!1,r&&!e.rejection&&q$(e)}))},Ng=function(e,r,t){var n,i;_$?(n=Qf.createEvent("Event"),n.promise=r,n.reason=t,n.initEvent(e,!1,!0),Cr.dispatchEvent(n)):n={promise:r,reason:t},!b$&&(i=Cr["on"+e])?i(n):e===Tg&&m$("Unhandled promise rejection",t)},q$=function(e){ln(_g,Cr,function(){var r=e.facade,t=e.value,n=Og(e),i;if(n&&(i=y$(function(){Ra?tc.emit("unhandledRejection",t,r):Ng(Tg,r,t)}),e.rejection=Ra||Og(e)?xg:nc,i.error))throw i.value})},Og=function(e){return e.rejection!==nc&&!e.parent},T$=function(e){ln(_g,Cr,function(){var r=e.facade;Ra?tc.emit("rejectionHandled",r):Ng(P$,r,e.value)})},fn=function(e,r,t){return function(n){e(r,n,t)}},cn=function(e,r,t){e.done||(e.done=!0,t&&(e=t),e.value=r,e.state=E$,$g(e,!0))},Zf=function(e,r,t){if(!e.done){e.done=!0,t&&(e=t);try{if(e.facade===r)throw qg("Promise can't be resolved itself");var n=Rg(r);n?ec(function(){var i={done:!1};try{ln(n,r,fn(Zf,i,e),fn(cn,i,e))}catch(a){cn(i,a,e)}}):(e.value=r,e.state=kg,$g(e,!1))}catch(i){cn({done:!1},i,e)}}};if(Ig&&(vt=function(r){h$(this,Ta),p$(r),ln(ka,this);var t=Xf(this);try{r(fn(Zf,t),fn(cn,t))}catch(n){cn(t,n)}},Ta=vt.prototype,ka=function(r){S$(this,{type:$a,done:!1,notified:!1,parent:!1,reactions:new g$,rejection:!1,state:bg,value:void 0})},ka.prototype=yg(Ta,"then",function(r,t){var n=Xf(this),i=Jf(d$(this,vt));return n.parent=!0,i.ok=xa(r)?r:!0,i.fail=xa(t)&&t,i.domain=Ra?tc.domain:void 0,n.state==bg?n.reactions.add(i):ec(function(){Ag(i,n)}),i.promise}),wg=function(){var e=new ka,r=Xf(e);this.promise=e,this.resolve=fn(Zf,r),this.reject=fn(cn,r)},Eg.f=Jf=function(e){return e===vt||e===I$?new wg(e):O$(e)},!f$&&xa(Aa)&&sn!==Object.prototype)){Sg=sn.then,w$||yg(sn,"then",function(r,t){var n=this;return new vt(function(i,a){ln(Sg,n,i,a)}).then(r,t)},{unsafe:!0});try{delete sn.constructor}catch(e){}gg&&gg(sn,Ta)}s$({global:!0,constructor:!0,wrap:!0,forced:Ig},{Promise:vt});c$(vt,$a,!1,!0);l$($a)});var pn=I(function(a7,Lg){Lg.exports={}});var ic=I(function(u7,Cg){var k$=re(),x$=pn(),R$=k$("iterator"),A$=Array.prototype;Cg.exports=function(e){return e!==void 0&&(x$.Array===e||A$[R$]===e)}});var Na=I(function(s7,Bg){var $$=wi(),Dg=Ar(),N$=ze(),j$=pn(),L$=re(),C$=L$("iterator");Bg.exports=function(e){if(!N$(e))return Dg(e,C$)||Dg(e,"@@iterator")||j$[$$(e)]}});var oc=I(function(f7,Mg){var D$=te(),B$=Ke(),M$=ne(),G$=nt(),F$=Na(),U$=TypeError;Mg.exports=function(e,r){var t=arguments.length<2?F$(e):r;if(B$(t))return M$(D$(t,e));throw U$(G$(e)+" is not iterable")}});var ac=I(function(c7,Fg){var V$=te(),Gg=ne(),z$=Ar();Fg.exports=function(e,r,t){var n,i;Gg(e);try{if(n=z$(e,"return"),!n){if(r==="throw")throw t;return t}n=V$(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return Gg(n),t}});var ht=I(function(l7,Hg){var H$=Lr(),K$=te(),W$=ne(),Y$=nt(),X$=ic(),Q$=Le(),Ug=gr(),J$=oc(),Z$=Na(),Vg=ac(),eN=TypeError,ja=function(e,r){this.stopped=e,this.result=r},zg=ja.prototype;Hg.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),c=!!(t&&t.INTERRUPTED),l=H$(r,n),v,m,y,b,w,S,q,k=function(P){return v&&Vg(v,"normal",P),new ja(!0,P)},E=function(P){return i?(W$(P),c?l(P[0],P[1],k):l(P[0],P[1])):c?l(P,k):l(P)};if(a)v=e.iterator;else if(s)v=e;else{if(m=Z$(e),!m)throw eN(Y$(e)+" is not iterable");if(X$(m)){for(y=0,b=Q$(e);b>y;y++)if(w=E(e[y]),w&&Ug(zg,w))return w;return new ja(!1)}v=J$(e,m)}for(S=a?e.next:v.next;!(q=K$(S,v)).done;){try{w=E(q.value)}catch(P){Vg(v,"throw",P)}if(typeof w=="object"&&w&&Ug(zg,w))return w}return new ja(!1)}});var La=I(function(p7,Xg){var rN=re(),Wg=rN("iterator"),Yg=!1;try{Kg=0,uc={next:function(){return{done:!!Kg++}},return:function(){Yg=!0}},uc[Wg]=function(){return this},Array.from(uc,function(){throw 2})}catch(e){}var Kg,uc;Xg.exports=function(e,r){if(!r&&!Yg)return!1;var t=!1;try{var n={};n[Wg]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch(i){}return t}});var Ca=I(function(v7,Qg){var tN=an(),nN=La(),iN=un().CONSTRUCTOR;Qg.exports=iN||!nN(function(e){tN.all(e).then(void 0,function(){})})});var Jg=I(function(){"use strict";var oN=M(),aN=te(),uN=Ke(),sN=pt(),fN=ji(),cN=ht(),lN=Ca();oN({target:"Promise",stat:!0,forced:lN},{all:function(r){var t=this,n=sN.f(t),i=n.resolve,a=n.reject,s=fN(function(){var c=uN(t.resolve),l=[],v=0,m=1;cN(r,function(y){var b=v++,w=!1;m++,aN(c,t,y).then(function(S){w||(w=!0,l[b]=S,--m||i(l))},a)}),--m||i(l)});return s.error&&a(s.value),n.promise}})});var eb=I(function(){"use strict";var pN=M(),vN=Ne(),hN=un().CONSTRUCTOR,fc=an(),dN=$e(),mN=ee(),yN=Ee(),Zg=fc&&fc.prototype;pN({target:"Promise",proto:!0,forced:hN,real:!0},{catch:function(e){return this.then(void 0,e)}});!vN&&mN(fc)&&(sc=dN("Promise").prototype.catch,Zg.catch!==sc&&yN(Zg,"catch",sc,{unsafe:!0}));var sc});var rb=I(function(){"use strict";var gN=M(),bN=te(),wN=Ke(),SN=pt(),ON=ji(),_N=ht(),PN=Ca();gN({target:"Promise",stat:!0,forced:PN},{race:function(r){var t=this,n=SN.f(t),i=n.reject,a=ON(function(){var s=wN(t.resolve);_N(r,function(c){bN(s,t,c).then(n.resolve,i)})});return a.error&&i(a.value),n.promise}})});var tb=I(function(){"use strict";var EN=M(),IN=te(),qN=pt(),TN=un().CONSTRUCTOR;EN({target:"Promise",stat:!0,forced:TN},{reject:function(r){var t=qN.f(this);return IN(t.reject,void 0,r),t.promise}})});var ib=I(function(O7,nb){var kN=ne(),xN=ue(),RN=pt();nb.exports=function(e,r){if(kN(e),xN(r)&&r.constructor===e)return r;var t=RN.f(e),n=t.resolve;return n(r),t.promise}});var ub=I(function(){"use strict";var AN=M(),$N=$e(),ob=Ne(),NN=an(),ab=un().CONSTRUCTOR,jN=ib(),LN=$N("Promise"),CN=ob&&!ab;AN({target:"Promise",stat:!0,forced:ob||ab},{resolve:function(r){return jN(CN&&this===LN?NN:this,r)}})});var dt=I(function(E7,fb){"use strict";var MN=di(),GN=we(),FN=Ht();fb.exports=function(e,r,t){var n=MN(r);n in e?GN.f(e,n,FN(0,t)):e[n]=t}});var Da=I(function(I7,lb){var cb=ut(),UN=Le(),VN=dt(),zN=Array,HN=Math.max;lb.exports=function(e,r,t){for(var n=UN(e),i=cb(r,n),a=cb(t===void 0?n:t,n),s=zN(HN(a-i,0)),c=0;i<a;i++,c++)VN(s,c,e[i]);return s.length=c,s}});var Ba=I(function(q7,hb){var KN=Ve(),WN=Ae(),pb=$r().f,YN=Da(),vb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],XN=function(e){try{return pb(e)}catch(r){return YN(vb)}};hb.exports.f=function(r){return vb&&KN(r)=="Window"?XN(r):pb(WN(r))}});var cc=I(function(db){var QN=re();db.f=QN});var lc=I(function(k7,mb){var JN=X();mb.exports=JN});var vn=I(function(x7,gb){var yb=lc(),ZN=oe(),ej=cc(),rj=we().f;gb.exports=function(e){var r=yb.Symbol||(yb.Symbol={});ZN(r,e)||rj(r,e,{value:ej.f(e)})}});var pc=I(function(R7,bb){var tj=te(),nj=$e(),ij=re(),oj=Ee();bb.exports=function(){var e=nj("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,n=ij("toPrimitive");r&&!r[n]&&oj(r,n,function(i){return tj(t,this)},{arity:1})}});var Dr=I(function(A7,wb){var aj=Ve();wb.exports=Array.isArray||function(r){return aj(r)=="Array"}});var Pb=I(function($7,_b){var Sb=Dr(),uj=ki(),sj=ue(),fj=re(),cj=fj("species"),Ob=Array;_b.exports=function(e){var r;return Sb(e)&&(r=e.constructor,uj(r)&&(r===Ob||Sb(r.prototype))?r=void 0:sj(r)&&(r=r[cj],r===null&&(r=void 0))),r===void 0?Ob:r}});var Ci=I(function(N7,Eb){var lj=Pb();Eb.exports=function(e,r){return new(lj(e))(r===0?0:r)}});var Mr=I(function(j7,qb){var pj=Lr(),vj=Y(),hj=pi(),dj=xe(),mj=Le(),yj=Ci(),Ib=vj([].push),Br=function(e){var r=e==1,t=e==2,n=e==3,i=e==4,a=e==6,s=e==7,c=e==5||a;return function(l,v,m,y){for(var b=dj(l),w=hj(b),S=pj(v,m),q=mj(w),k=0,E=y||yj,P=r?E(l,q):t||s?E(l,0):void 0,$,R;q>k;k++)if((c||k in w)&&($=w[k],R=S($,k,b),e))if(r)P[k]=R;else if(R)switch(e){case 3:return!0;case 5:return $;case 6:return k;case 2:Ib(P,$)}else switch(e){case 4:return!1;case 7:Ib(P,$)}return a?-1:n||i?i:P}};qb.exports={forEach:Br(0),map:Br(1),filter:Br(2),some:Br(3),every:Br(4),find:Br(5),findIndex:Br(6),filterReject:Br(7)}});var Ub=I(function(){"use strict";var Ma=M(),Sc=X(),Oc=te(),gj=Y(),bj=Ne(),hn=ie(),dn=tt(),wj=K(),de=oe(),Sj=gr(),mc=ne(),Ga=Ae(),_c=di(),Oj=pe(),yc=Ht(),Bi=Nr(),xb=Ei(),_j=$r(),Rb=Ba(),Pj=ma(),Ab=er(),$b=we(),Ej=ba(),Nb=ia(),vc=Ee(),Ij=jr(),Pc=it(),qj=yi(),jb=Xt(),Tb=hi(),Tj=re(),kj=cc(),xj=vn(),Rj=pc(),Aj=tr(),Lb=je(),Fa=Mr().forEach,Re=qj("hidden"),Ua="Symbol",Mi="prototype",$j=Lb.set,kb=Lb.getterFor(Ua),We=Object[Mi],yt=Sc.Symbol,Di=yt&&yt[Mi],Nj=Sc.TypeError,hc=Sc.QObject,Cb=Ab.f,mt=$b.f,Db=Rb.f,jj=Nb.f,Bb=gj([].push),Sr=Pc("symbols"),Gi=Pc("op-symbols"),Lj=Pc("wks"),gc=!hc||!hc[Mi]||!hc[Mi].findChild,bc=hn&&wj(function(){return Bi(mt({},"a",{get:function(){return mt(this,"a",{value:7}).a}})).a!=7})?function(e,r,t){var n=Cb(We,r);n&&delete We[r],mt(e,r,t),n&&e!==We&&mt(We,r,n)}:mt,dc=function(e,r){var t=Sr[e]=Bi(Di);return $j(t,{type:Ua,tag:e,description:r}),hn||(t.description=r),t},Va=function(r,t,n){r===We&&Va(Gi,t,n),mc(r);var i=_c(t);return mc(n),de(Sr,i)?(n.enumerable?(de(r,Re)&&r[Re][i]&&(r[Re][i]=!1),n=Bi(n,{enumerable:yc(0,!1)})):(de(r,Re)||mt(r,Re,yc(1,{})),r[Re][i]=!0),bc(r,i,n)):mt(r,i,n)},Ec=function(r,t){mc(r);var n=Ga(t),i=xb(n).concat(Fb(n));return Fa(i,function(a){(!hn||Oc(wc,n,a))&&Va(r,a,n[a])}),r},Cj=function(r,t){return t===void 0?Bi(r):Ec(Bi(r),t)},wc=function(r){var t=_c(r),n=Oc(jj,this,t);return this===We&&de(Sr,t)&&!de(Gi,t)?!1:n||!de(this,t)||!de(Sr,t)||de(this,Re)&&this[Re][t]?n:!0},Mb=function(r,t){var n=Ga(r),i=_c(t);if(!(n===We&&de(Sr,i)&&!de(Gi,i))){var a=Cb(n,i);return a&&de(Sr,i)&&!(de(n,Re)&&n[Re][i])&&(a.enumerable=!0),a}},Gb=function(r){var t=Db(Ga(r)),n=[];return Fa(t,function(i){!de(Sr,i)&&!de(jb,i)&&Bb(n,i)}),n},Fb=function(e){var r=e===We,t=Db(r?Gi:Ga(e)),n=[];return Fa(t,function(i){de(Sr,i)&&(!r||de(We,i))&&Bb(n,Sr[i])}),n};dn||(yt=function(){if(Sj(Di,this))throw Nj("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:Oj(arguments[0]),t=Tb(r),n=function(i){this===We&&Oc(n,Gi,i),de(this,Re)&&de(this[Re],t)&&(this[Re][t]=!1),bc(this,t,yc(1,i))};return hn&&gc&&bc(We,t,{configurable:!0,set:n}),dc(t,r)},Di=yt[Mi],vc(Di,"toString",function(){return kb(this).tag}),vc(yt,"withoutSetter",function(e){return dc(Tb(e),e)}),Nb.f=wc,$b.f=Va,Ej.f=Ec,Ab.f=Mb,_j.f=Rb.f=Gb,Pj.f=Fb,kj.f=function(e){return dc(Tj(e),e)},hn&&(Ij(Di,"description",{configurable:!0,get:function(){return kb(this).description}}),bj||vc(We,"propertyIsEnumerable",wc,{unsafe:!0})));Ma({global:!0,constructor:!0,wrap:!0,forced:!dn,sham:!dn},{Symbol:yt});Fa(xb(Lj),function(e){xj(e)});Ma({target:Ua,stat:!0,forced:!dn},{useSetter:function(){gc=!0},useSimple:function(){gc=!1}});Ma({target:"Object",stat:!0,forced:!dn,sham:!hn},{create:Cj,defineProperty:Va,defineProperties:Ec,getOwnPropertyDescriptor:Mb});Ma({target:"Object",stat:!0,forced:!dn},{getOwnPropertyNames:Gb});Rj();Aj(yt,Ua);jb[Re]=!0});var Ic=I(function(D7,Vb){var Dj=tt();Vb.exports=Dj&&!!Symbol.for&&!!Symbol.keyFor});var Hb=I(function(){var Bj=M(),Mj=$e(),Gj=oe(),Fj=pe(),zb=it(),Uj=Ic(),qc=zb("string-to-symbol-registry"),Vj=zb("symbol-to-string-registry");Bj({target:"Symbol",stat:!0,forced:!Uj},{for:function(e){var r=Fj(e);if(Gj(qc,r))return qc[r];var t=Mj("Symbol")(r);return qc[r]=t,Vj[t]=r,t}})});var Wb=I(function(){var zj=M(),Hj=oe(),Kj=Wt(),Wj=nt(),Yj=it(),Xj=Ic(),Kb=Yj("symbol-to-string-registry");zj({target:"Symbol",stat:!0,forced:!Xj},{keyFor:function(r){if(!Kj(r))throw TypeError(Wj(r)+" is not a symbol");if(Hj(Kb,r))return Kb[r]}})});var Zb=I(function(U7,Jb){var Qj=Y(),Yb=Dr(),Jj=ee(),Xb=Ve(),Zj=pe(),Qb=Qj([].push);Jb.exports=function(e){if(Jj(e))return e;if(!!Yb(e)){for(var r=e.length,t=[],n=0;n<r;n++){var i=e[n];typeof i=="string"?Qb(t,i):(typeof i=="number"||Xb(i)=="Number"||Xb(i)=="String")&&Qb(t,Zj(i))}var a=t.length,s=!0;return function(c,l){if(s)return s=!1,l;if(Yb(this))return l;for(var v=0;v<a;v++)if(t[v]===c)return l}}}});var mn=I(function(){var eL=M(),uw=$e(),sw=nn(),rL=te(),Fi=Y(),fw=K(),ew=ee(),rw=Wt(),cw=xi(),tL=Zb(),nL=tt(),iL=String,Gr=uw("JSON","stringify"),za=Fi(/./.exec),tw=Fi("".charAt),oL=Fi("".charCodeAt),aL=Fi("".replace),uL=Fi(1 .toString),sL=/[\uD800-\uDFFF]/g,nw=/^[\uD800-\uDBFF]$/,iw=/^[\uDC00-\uDFFF]$/,ow=!nL||fw(function(){var e=uw("Symbol")();return Gr([e])!="[null]"||Gr({a:e})!="{}"||Gr(Object(e))!="{}"}),aw=fw(function(){return Gr("\uDF06\uD834")!=='"\\udf06\\ud834"'||Gr("\uDEAD")!=='"\\udead"'}),fL=function(e,r){var t=cw(arguments),n=tL(r);if(!(!ew(n)&&(e===void 0||rw(e))))return t[1]=function(i,a){if(ew(n)&&(a=rL(n,this,iL(i),a)),!rw(a))return a},sw(Gr,null,t)},cL=function(e,r,t){var n=tw(t,r-1),i=tw(t,r+1);return za(nw,e)&&!za(iw,i)||za(iw,e)&&!za(nw,n)?"\\u"+uL(oL(e,0),16):e};Gr&&eL({target:"JSON",stat:!0,arity:3,forced:ow||aw},{stringify:function(r,t,n){var i=cw(arguments),a=sw(ow?fL:Gr,null,i);return aw&&typeof a=="string"?aL(a,sL,cL):a}})});var pw=I(function(){var lL=M(),pL=tt(),vL=K(),lw=ma(),hL=xe(),dL=!pL||vL(function(){lw.f(1)});lL({target:"Object",stat:!0,forced:dL},{getOwnPropertySymbols:function(r){var t=lw.f;return t?t(hL(r)):[]}})});var yn=I(function(W7,bw){var IL=re(),qL=Nr(),TL=we().f,kc=IL("unscopables"),xc=Array.prototype;xc[kc]==null&&TL(xc,kc,{configurable:!0,value:qL(null)});bw.exports=function(e){xc[kc][e]=!0}});var Rc=I(function(Y7,ww){var kL=K();ww.exports=!kL(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var gn=I(function(X7,Ow){var xL=oe(),RL=ee(),AL=xe(),$L=yi(),NL=Rc(),Sw=$L("IE_PROTO"),Ac=Object,jL=Ac.prototype;Ow.exports=NL?Ac.getPrototypeOf:function(e){var r=AL(e);if(xL(r,Sw))return r[Sw];var t=r.constructor;return RL(t)&&r instanceof t?t.prototype:r instanceof Ac?jL:null}});var Lc=I(function(Q7,Ew){"use strict";var LL=K(),CL=ee(),DL=ue(),BL=Nr(),_w=gn(),ML=Ee(),GL=re(),FL=Ne(),jc=GL("iterator"),Pw=!1,_r,$c,Nc;[].keys&&(Nc=[].keys(),"next"in Nc?($c=_w(_w(Nc)),$c!==Object.prototype&&(_r=$c)):Pw=!0);var UL=!DL(_r)||LL(function(){var e={};return _r[jc].call(e)!==e});UL?_r={}:FL&&(_r=BL(_r));CL(_r[jc])||ML(_r,jc,function(){return this});Ew.exports={IteratorPrototype:_r,BUGGY_SAFARI_ITERATORS:Pw}});var qw=I(function(J7,Iw){"use strict";var VL=Lc().IteratorPrototype,zL=Nr(),HL=Ht(),KL=tr(),WL=pn(),YL=function(){return this};Iw.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=zL(VL,{next:HL(+!n,t)}),KL(e,i,!1,!0),WL[i]=YL,e}});var Ya=I(function(Z7,Cw){"use strict";var XL=M(),QL=te(),Ka=Ne(),jw=ot(),JL=ee(),ZL=qw(),Tw=gn(),kw=rn(),eC=tr(),rC=br(),Cc=Ee(),tC=re(),xw=pn(),Lw=Lc(),nC=jw.PROPER,iC=jw.CONFIGURABLE,Rw=Lw.IteratorPrototype,Wa=Lw.BUGGY_SAFARI_ITERATORS,Vi=tC("iterator"),Aw="keys",zi="values",$w="entries",Nw=function(){return this};Cw.exports=function(e,r,t,n,i,a,s){ZL(t,r,n);var c=function(E){if(E===i&&b)return b;if(!Wa&&E in m)return m[E];switch(E){case Aw:return function(){return new t(this,E)};case zi:return function(){return new t(this,E)};case $w:return function(){return new t(this,E)}}return function(){return new t(this)}},l=r+" Iterator",v=!1,m=e.prototype,y=m[Vi]||m["@@iterator"]||i&&m[i],b=!Wa&&y||c(i),w=r=="Array"&&m.entries||y,S,q,k;if(w&&(S=Tw(w.call(new e)),S!==Object.prototype&&S.next&&(!Ka&&Tw(S)!==Rw&&(kw?kw(S,Rw):JL(S[Vi])||Cc(S,Vi,Nw)),eC(S,l,!0,!0),Ka&&(xw[l]=Nw))),nC&&i==zi&&y&&y.name!==zi&&(!Ka&&iC?rC(m,"name",zi):(v=!0,b=function(){return QL(y,this)})),i)if(q={values:c(zi),keys:a?b:c(Aw),entries:c($w)},s)for(k in q)(Wa||v||!(k in m))&&Cc(m,k,q[k]);else XL({target:r,proto:!0,forced:Wa||v},q);return(!Ka||s)&&m[Vi]!==b&&Cc(m,Vi,b,{name:i}),xw[r]=b,q}});var Xa=I(function(e9,Dw){Dw.exports=function(e,r){return{value:e,done:r}}});var z=I(function(r9,Uw){"use strict";var oC=Ae(),Dc=yn(),Bw=pn(),Gw=je(),aC=we().f,uC=Ya(),Qa=Xa(),sC=Ne(),fC=ie(),Fw="Array Iterator",cC=Gw.set,lC=Gw.getterFor(Fw);Uw.exports=uC(Array,"Array",function(e,r){cC(this,{type:Fw,target:oC(e),index:0,kind:r})},function(){var e=lC(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,Qa(void 0,!0)):t=="keys"?Qa(n,!1):t=="values"?Qa(r[n],!1):Qa([n,r[n]],!1)},"values");var Mw=Bw.Arguments=Bw.Array;Dc("keys");Dc("values");Dc("entries");if(!sC&&fC&&Mw.name!=="values")try{aC(Mw,"name",{value:"values"})}catch(e){}});var Mc=I(function(t9,Hw){var Bc=Y(),pC=wr(),vC=pe(),hC=He(),dC=Bc("".charAt),Vw=Bc("".charCodeAt),mC=Bc("".slice),zw=function(e){return function(r,t){var n=vC(hC(r)),i=pC(t),a=n.length,s,c;return i<0||i>=a?e?"":void 0:(s=Vw(n,i),s<55296||s>56319||i+1===a||(c=Vw(n,i+1))<56320||c>57343?e?dC(n,i):s:e?mC(n,i,i+2):(s-55296<<10)+(c-56320)+65536)}};Hw.exports={codeAt:zw(!1),charAt:zw(!0)}});var Gc=I(function(n9,Xw){Xw.exports={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}});var Uc=I(function(i9,Jw){var OC=mi(),Fc=OC("span").classList,Qw=Fc&&Fc.constructor&&Fc.constructor.prototype;Jw.exports=Qw===Object.prototype?void 0:Qw});var Kc=I(function(o9,oS){"use strict";var LC=Mr().forEach,CC=Jt(),DC=CC("forEach");oS.exports=DC?[].forEach:function(r){return LC(this,r,arguments.length>1?arguments[1]:void 0)}});var bn=I(function(a9,hS){var eD=K(),rD=re(),tD=Kt(),nD=rD("species");hS.exports=function(e){return tD>=51||!eD(function(){var r=[],t=r.constructor={};return t[nD]=function(){return{foo:1}},r[e](Boolean).foo!==1})}});var gS=I(function(u9,yS){"use strict";var gD=ne(),bD=Bs(),wD=TypeError;yS.exports=function(e){if(gD(this),e==="string"||e==="default")e="string";else if(e!=="number")throw wD("Incorrect hint");return bD(this,e)}});var eu=I(function(s9,OS){var ED=ee(),ID=ue(),SS=rn();OS.exports=function(e,r,t){var n,i;return SS&&ED(n=r.constructor)&&n!==t&&ID(i=n.prototype)&&i!==t.prototype&&SS(e,i),e}});var Xc=I(function(f9,_S){var qD=Y();_S.exports=qD(1 .valueOf)});var Wi=I(function(c9,NS){"use strict";ve();var xS=st(),RS=Ee(),zD=Ii(),AS=K(),$S=re(),HD=br(),KD=$S("species"),rl=RegExp.prototype;NS.exports=function(e,r,t,n){var i=$S(e),a=!AS(function(){var v={};return v[i]=function(){return 7},""[e](v)!=7}),s=a&&!AS(function(){var v=!1,m=/a/;return e==="split"&&(m={},m.constructor={},m.constructor[KD]=function(){return m},m.flags="",m[i]=/./[i]),m.exec=function(){return v=!0,null},m[i](""),!v});if(!a||!s||t){var c=xS(/./[i]),l=r(i,""[e],function(v,m,y,b,w){var S=xS(v),q=m.exec;return q===zD||q===rl.exec?a&&!w?{done:!0,value:c(m,y,b)}:{done:!0,value:S(y,m,b)}:{done:!1}});RS(String.prototype,e,l[0]),RS(rl,i,l[1])}n&&HD(rl[i],"sham",!0)}});var nu=I(function(l9,jS){"use strict";var WD=Mc().charAt;jS.exports=function(e,r,t){return r+(t?WD(e,r).length:1)}});var CS=I(function(p9,LS){var il=Y(),YD=xe(),XD=Math.floor,tl=il("".charAt),QD=il("".replace),nl=il("".slice),JD=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ZD=/\$([$&'`]|\d{1,2})/g;LS.exports=function(e,r,t,n,i,a){var s=t+e.length,c=n.length,l=ZD;return i!==void 0&&(i=YD(i),l=JD),QD(a,l,function(v,m){var y;switch(tl(m,0)){case"$":return"$";case"&":return e;case"`":return nl(r,0,t);case"'":return nl(r,s);case"<":y=i[nl(m,1,-1)];break;default:var b=+m;if(b===0)return v;if(b>c){var w=XD(b/10);return w===0?v:w<=c?n[w-1]===void 0?tl(m,1):n[w-1]+tl(m,1):v}y=n[b-1]}return y===void 0?"":y})}});var Yi=I(function(v9,BS){var DS=te(),eB=ne(),rB=ee(),tB=Ve(),nB=Ii(),iB=TypeError;BS.exports=function(e,r){var t=e.exec;if(rB(t)){var n=DS(t,e,r);return n!==null&&eB(n),n}if(tB(e)==="RegExp")return DS(nB,e,r);throw iB("RegExp#exec called on incompatible receiver")}});var ul=I(function(h9,zS){var EB=te(),IB=oe(),qB=gr(),TB=hf(),VS=RegExp.prototype;zS.exports=function(e){var r=e.flags;return r===void 0&&!("flags"in VS)&&!IB(e,"flags")&&qB(VS,e)?EB(TB,e):r}});var JS=I(function(d9,QS){var XS=X(),CB=K(),DB=Y(),BB=pe(),MB=Oi().trim,GB=Si(),FB=DB("".charAt),ou=XS.parseFloat,WS=XS.Symbol,YS=WS&&WS.iterator,UB=1/ou(GB+"-0")!==-1/0||YS&&!CB(function(){ou(Object(YS))});QS.exports=UB?function(r){var t=MB(BB(r)),n=ou(t);return n===0&&FB(t,0)=="-"?-0:n}:ou});var uu=I(function(m9,t0){var WB=TypeError,YB=9007199254740991;t0.exports=function(e){if(e>YB)throw WB("Maximum allowed index exceeded");return e}});var u0=I(function(y9,a0){"use strict";var f2=ie(),c2=Dr(),l2=TypeError,p2=Object.getOwnPropertyDescriptor,v2=f2&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();a0.exports=v2?function(e,r){if(c2(e)&&!p2(e,"length").writable)throw l2("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r}});var c0=I(function(g9,f0){"use strict";var s0=nt(),h2=TypeError;f0.exports=function(e,r){if(!delete e[r])throw h2("Cannot delete property "+s0(r)+" of "+s0(e))}});var k0=I(function(fX,T0){"use strict";var I0=Y(),z2=Ke(),H2=ue(),K2=oe(),E0=xi(),W2=zt(),q0=Function,Y2=I0([].concat),X2=I0([].join),gl={},Q2=function(e,r,t){if(!K2(gl,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";gl[r]=q0("C,a","return new C("+X2(n,",")+")")}return gl[r](e,t)};T0.exports=W2?q0.bind:function(r){var t=z2(this),n=t.prototype,i=E0(arguments,1),a=function(){var c=Y2(i,E0(arguments));return this instanceof a?Q2(t,c.length,c):t.apply(r,c)};return H2(n)&&(a.prototype=n),a}});var G0=I(function(kX,M0){var hM=ot().PROPER,dM=K(),D0=Si(),B0="\u200B\x85\u180E";M0.exports=function(e){return dM(function(){return!!D0[e]()||B0[e]()!==B0||hM&&D0[e].name!==e})}});var K0=I(function(XX,H0){var z0=oe();H0.exports=function(e){return e!==void 0&&(z0(e,"value")||z0(e,"writable"))}});var LO=I(function(tre,jO){var qF=ne(),TF=ac();jO.exports=function(e,r,t,n){try{return n?r(qF(t)[0],t[1]):r(t)}catch(i){TF(e,"throw",i)}}});var MO=I(function(nre,BO){"use strict";var kF=Lr(),xF=te(),RF=xe(),AF=LO(),$F=ic(),NF=ki(),jF=Le(),CO=dt(),LF=oc(),CF=Na(),DO=Array;BO.exports=function(r){var t=RF(r),n=NF(this),i=arguments.length,a=i>1?arguments[1]:void 0,s=a!==void 0;s&&(a=kF(a,i>2?arguments[2]:void 0));var c=CF(t),l=0,v,m,y,b,w,S;if(c&&!(this===DO&&$F(c)))for(b=LF(t,c),w=b.next,m=n?new this:[];!(y=xF(w,b)).done;l++)S=s?AF(b,a,[y.value,l],!0):y.value,CO(m,l,S);else for(v=jF(t),m=n?new this(v):DO(v);v>l;l++)S=s?a(t[l],l):t[l],CO(m,l,S);return m.length=l,m}});var Xl=I(function(zne,g_){g_.exports=Object.is||function(r,t){return r===t?r!==0||1/r===1/t:r!=r&&t!=t}});var Zl=I(function(ooe,A_){var dV=ie(),R_=Y(),mV=Ei(),yV=Ae(),gV=ia().f,bV=R_(gV),wV=R_([].push),x_=function(e){return function(r){for(var t=yV(r),n=mV(t),i=n.length,a=0,s=[],c;i>a;)c=n[a++],(!dV||bV(t,c))&&wV(s,e?[c,t[c]]:t[c]);return s}};A_.exports={entries:x_(!0),values:x_(!1)}});var Du=I(function(Pse,sP){var Lz=ue(),Cz=Ve(),Dz=re(),Bz=Dz("match");sP.exports=function(e){var r;return Lz(e)&&((r=e[Bz])!==void 0?!!r:Cz(e)=="RegExp")}});var DP=I(function(Ule,CP){var CH=K();CP.exports=CH(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var GP=I(function(Vle,MP){var DH=K(),BH=ue(),MH=Ve(),BP=DP(),Uu=Object.isExtensible,GH=DH(function(){Uu(1)});MP.exports=GH||BP?function(r){return!BH(r)||BP&&MH(r)=="ArrayBuffer"?!1:Uu?Uu(r):!0}:Uu});var Vu=I(function(zle,FP){var FH=K();FP.exports=!FH(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Qn=I(function(Hle,zP){var UH=M(),VH=Y(),zH=Xt(),HH=ue(),Mp=oe(),KH=we().f,UP=$r(),WH=Ba(),Gp=GP(),YH=hi(),XH=Vu(),VP=!1,kr=YH("meta"),QH=0,Fp=function(e){KH(e,kr,{value:{objectID:"O"+QH++,weakData:{}}})},JH=function(e,r){if(!HH(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Mp(e,kr)){if(!Gp(e))return"F";if(!r)return"E";Fp(e)}return e[kr].objectID},ZH=function(e,r){if(!Mp(e,kr)){if(!Gp(e))return!0;if(!r)return!1;Fp(e)}return e[kr].weakData},e3=function(e){return XH&&VP&&Gp(e)&&!Mp(e,kr)&&Fp(e),e},r3=function(){t3.enable=function(){},VP=!0;var e=UP.f,r=VH([].splice),t={};t[kr]=1,e(t).length&&(UP.f=function(n){for(var i=e(n),a=0,s=i.length;a<s;a++)if(i[a]===kr){r(i,a,1);break}return i},UH({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:WH.f}))},t3=zP.exports={enable:r3,fastKey:JH,getWeakData:ZH,onFreeze:e3};zH[kr]=!0});var Ro=I(function(Kle,KP){"use strict";var n3=M(),i3=X(),o3=Y(),HP=Qt(),a3=Ee(),u3=Qn(),s3=ht(),f3=tn(),c3=ee(),l3=ze(),Up=ue(),Vp=K(),p3=La(),v3=tr(),h3=eu();KP.exports=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,a=n?"set":"add",s=i3[e],c=s&&s.prototype,l=s,v={},m=function(E){var P=o3(c[E]);a3(c,E,E=="add"?function(R){return P(this,R===0?0:R),this}:E=="delete"?function($){return i&&!Up($)?!1:P(this,$===0?0:$)}:E=="get"?function(R){return i&&!Up(R)?void 0:P(this,R===0?0:R)}:E=="has"?function(R){return i&&!Up(R)?!1:P(this,R===0?0:R)}:function(R,j){return P(this,R===0?0:R,j),this})},y=HP(e,!c3(s)||!(i||c.forEach&&!Vp(function(){new s().entries().next()})));if(y)l=t.getConstructor(r,e,n,a),u3.enable();else if(HP(e,!0)){var b=new l,w=b[a](i?{}:-0,1)!=b,S=Vp(function(){b.has(1)}),q=p3(function(E){new s(E)}),k=!i&&Vp(function(){for(var E=new s,P=5;P--;)E[a](P,P);return!E.has(-0)});q||(l=r(function(E,P){f3(E,c);var $=h3(new s,E,l);return l3(P)||s3(P,$[a],{that:$,AS_ENTRIES:n}),$}),l.prototype=c,c.constructor=l),(S||k)&&(m("delete"),m("has"),n&&m("get")),(k||w)&&m(a),i&&c.clear&&delete c.clear}return v[e]=l,n3({global:!0,constructor:!0,forced:l!=s},v),v3(l,e),i||t.setStrong(l,e,n),l}});var Ao=I(function(Wle,WP){var d3=Ee();WP.exports=function(e,r,t){for(var n in r)d3(e,n,r[n],t);return e}});var Hp=I(function(Yle,ZP){"use strict";var m3=Nr(),y3=jr(),YP=Ao(),g3=Lr(),b3=tn(),w3=ze(),S3=ht(),O3=Ya(),zu=Xa(),_3=qi(),$o=ie(),XP=Qn().fastKey,JP=je(),QP=JP.set,zp=JP.getterFor;ZP.exports={getConstructor:function(e,r,t,n){var i=e(function(v,m){b3(v,a),QP(v,{type:r,index:m3(null),first:void 0,last:void 0,size:0}),$o||(v.size=0),w3(m)||S3(m,v[n],{that:v,AS_ENTRIES:t})}),a=i.prototype,s=zp(r),c=function(v,m,y){var b=s(v),w=l(v,m),S,q;return w?w.value=y:(b.last=w={index:q=XP(m,!0),key:m,value:y,previous:S=b.last,next:void 0,removed:!1},b.first||(b.first=w),S&&(S.next=w),$o?b.size++:v.size++,q!=="F"&&(b.index[q]=w)),v},l=function(v,m){var y=s(v),b=XP(m),w;if(b!=="F")return y.index[b];for(w=y.first;w;w=w.next)if(w.key==m)return w};return YP(a,{clear:function(){for(var m=this,y=s(m),b=y.index,w=y.first;w;)w.removed=!0,w.previous&&(w.previous=w.previous.next=void 0),delete b[w.index],w=w.next;y.first=y.last=void 0,$o?y.size=0:m.size=0},delete:function(v){var m=this,y=s(m),b=l(m,v);if(b){var w=b.next,S=b.previous;delete y.index[b.index],b.removed=!0,S&&(S.next=w),w&&(w.previous=S),y.first==b&&(y.first=w),y.last==b&&(y.last=S),$o?y.size--:m.size--}return!!b},forEach:function(m){for(var y=s(this),b=g3(m,arguments.length>1?arguments[1]:void 0),w;w=w?w.next:y.first;)for(b(w.value,w.key,this);w&&w.removed;)w=w.previous},has:function(m){return!!l(this,m)}}),YP(a,t?{get:function(m){var y=l(this,m);return y&&y.value},set:function(m,y){return c(this,m===0?0:m,y)}}:{add:function(m){return c(this,m=m===0?0:m,m)}}),$o&&y3(a,"size",{configurable:!0,get:function(){return s(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=zp(r),a=zp(n);O3(e,r,function(s,c){QP(this,{type:n,target:s,state:i(s),kind:c,last:void 0})},function(){for(var s=a(this),c=s.kind,l=s.last;l&&l.removed;)l=l.previous;return!s.target||!(s.last=l=l?l.next:s.state.first)?(s.target=void 0,zu(void 0,!0)):c=="keys"?zu(l.key,!1):c=="values"?zu(l.value,!1):zu([l.key,l.value],!1)},t?"entries":"values",!t,!0),_3(r)}}});var eE=I(function(){"use strict";var P3=Ro(),E3=Hp();P3("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},E3)});var rv=I(function(Eve,dE){dE.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"});var yE=I(function(Ive,mE){var W3=wr(),Y3=lr(),X3=RangeError;mE.exports=function(e){if(e===void 0)return 0;var r=W3(e),t=Y3(r);if(r!==t)throw X3("Wrong length or index");return t}});var bE=I(function(qve,gE){var Q3=Array,J3=Math.abs,xr=Math.pow,Z3=Math.floor,e8=Math.log,r8=Math.LN2,t8=function(e,r,t){var n=Q3(t),i=t*8-r-1,a=(1<<i)-1,s=a>>1,c=r===23?xr(2,-24)-xr(2,-77):0,l=e<0||e===0&&1/e<0?1:0,v=0,m,y,b;for(e=J3(e),e!=e||e===1/0?(y=e!=e?1:0,m=a):(m=Z3(e8(e)/r8),b=xr(2,-m),e*b<1&&(m--,b*=2),m+s>=1?e+=c/b:e+=c*xr(2,1-s),e*b>=2&&(m++,b/=2),m+s>=a?(y=0,m=a):m+s>=1?(y=(e*b-1)*xr(2,r),m=m+s):(y=e*xr(2,s-1)*xr(2,r),m=0));r>=8;)n[v++]=y&255,y/=256,r-=8;for(m=m<<r|y,i+=r;i>0;)n[v++]=m&255,m/=256,i-=8;return n[--v]|=l*128,n},n8=function(e,r){var t=e.length,n=t*8-r-1,i=(1<<n)-1,a=i>>1,s=n-7,c=t-1,l=e[c--],v=l&127,m;for(l>>=7;s>0;)v=v*256+e[c--],s-=8;for(m=v&(1<<-s)-1,v>>=-s,s+=r;s>0;)m=m*256+e[c--],s-=8;if(v===0)v=1-a;else{if(v===i)return m?NaN:l?-1/0:1/0;m=m+xr(2,r),v=v-a}return(l?-1:1)*m*xr(2,v-r)};gE.exports={pack:t8,unpack:n8}});var tv=I(function(Tve,SE){"use strict";var i8=xe(),wE=ut(),o8=Le();SE.exports=function(r){for(var t=i8(this),n=o8(t),i=arguments.length,a=wE(i>1?arguments[1]:void 0,n),s=i>2?arguments[2]:void 0,c=s===void 0?n:wE(s,n);c>a;)t[a++]=r;return t}});var rs=I(function(kve,BE){"use strict";var Zu=X(),fv=Y(),nv=ie(),a8=rv(),NE=ot(),OE=br(),u8=jr(),_E=Ao(),iv=K(),Wu=tn(),s8=wr(),f8=lr(),Qu=yE(),jE=bE(),c8=gn(),PE=rn(),l8=$r().f,p8=tv(),v8=Da(),LE=tr(),cv=je(),h8=NE.PROPER,EE=NE.CONFIGURABLE,ri="ArrayBuffer",es="DataView",ti="prototype",d8="Wrong length",CE="Wrong index",IE=cv.getterFor(ri),Do=cv.getterFor(es),qE=cv.set,Je=Zu[ri],Ge=Je,ei=Ge&&Ge[ti],yr=Zu[es],kt=yr&&yr[ti],TE=Object.prototype,m8=Zu.Array,Ju=Zu.RangeError,y8=fv(p8),g8=fv([].reverse),DE=jE.pack,kE=jE.unpack,xE=function(e){return[e&255]},RE=function(e){return[e&255,e>>8&255]},AE=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},$E=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},b8=function(e){return DE(e,23,4)},w8=function(e){return DE(e,52,8)},Yu=function(e,r,t){u8(e[ti],r,{configurable:!0,get:function(){return t(this)[r]}})},Yr=function(e,r,t,n){var i=Qu(t),a=Do(e);if(i+r>a.byteLength)throw Ju(CE);var s=a.bytes,c=i+a.byteOffset,l=v8(s,c,c+r);return n?l:g8(l)},Xr=function(e,r,t,n,i,a){var s=Qu(t),c=Do(e);if(s+r>c.byteLength)throw Ju(CE);for(var l=c.bytes,v=s+c.byteOffset,m=n(+i),y=0;y<r;y++)l[v+y]=m[a?y:r-y-1]};if(!a8)Ge=function(r){Wu(this,ei);var t=Qu(r);qE(this,{type:ri,bytes:y8(m8(t),0),byteLength:t}),nv||(this.byteLength=t,this.detached=!1)},ei=Ge[ti],yr=function(r,t,n){Wu(this,kt),Wu(r,ei);var i=IE(r),a=i.byteLength,s=s8(t);if(s<0||s>a)throw Ju("Wrong offset");if(n=n===void 0?a-s:f8(n),s+n>a)throw Ju(d8);qE(this,{type:es,buffer:r,byteLength:n,byteOffset:s,bytes:i.bytes}),nv||(this.buffer=r,this.byteLength=n,this.byteOffset=s)},kt=yr[ti],nv&&(Yu(Ge,"byteLength",IE),Yu(yr,"buffer",Do),Yu(yr,"byteLength",Do),Yu(yr,"byteOffset",Do)),_E(kt,{getInt8:function(r){return Yr(this,1,r)[0]<<24>>24},getUint8:function(r){return Yr(this,1,r)[0]},getInt16:function(r){var t=Yr(this,2,r,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(r){var t=Yr(this,2,r,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(r){return $E(Yr(this,4,r,arguments.length>1?arguments[1]:void 0))},getUint32:function(r){return $E(Yr(this,4,r,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(r){return kE(Yr(this,4,r,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(r){return kE(Yr(this,8,r,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(r,t){Xr(this,1,r,xE,t)},setUint8:function(r,t){Xr(this,1,r,xE,t)},setInt16:function(r,t){Xr(this,2,r,RE,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(r,t){Xr(this,2,r,RE,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(r,t){Xr(this,4,r,AE,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(r,t){Xr(this,4,r,AE,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(r,t){Xr(this,4,r,b8,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(r,t){Xr(this,8,r,w8,t,arguments.length>2?arguments[2]:void 0)}});else{if(ov=h8&&Je.name!==ri,!iv(function(){Je(1)})||!iv(function(){new Je(-1)})||iv(function(){return new Je,new Je(1.5),new Je(NaN),Je.length!=1||ov&&!EE})){for(Ge=function(r){return Wu(this,ei),new Je(Qu(r))},Ge[ti]=ei,av=l8(Je),uv=0;av.length>uv;)(Xu=av[uv++])in Ge||OE(Ge,Xu,Je[Xu]);ei.constructor=Ge}else ov&&EE&&OE(Je,"name",ri);PE&&c8(kt)!==TE&&PE(kt,TE),Co=new yr(new Ge(2)),sv=fv(kt.setInt8),Co.setInt8(0,2147483648),Co.setInt8(1,2147483649),(Co.getInt8(0)||!Co.getInt8(1))&&_E(kt,{setInt8:function(r,t){sv(this,r,t<<24>>24)},setUint8:function(r,t){sv(this,r,t<<24>>24)}},{unsafe:!0})}var ov,av,uv,Xu,Co,sv;LE(Ge,ri);LE(yr,es);BE.exports={ArrayBuffer:Ge,DataView:yr}});var HE=I(function(){var $8=M(),N8=rs(),j8=rv();$8({global:!0,constructor:!0,forced:!j8},{DataView:N8.DataView})});var YE=I(function(Ave,WE){var L8=Ke(),C8=xe(),D8=pi(),B8=Le(),M8=TypeError,KE=function(e){return function(r,t,n,i){L8(t);var a=C8(r),s=D8(a),c=B8(a),l=e?c-1:0,v=e?-1:1;if(n<2)for(;;){if(l in s){i=s[l],l+=v;break}if(l+=v,e?l<0:c<=l)throw M8("Reduce of empty array with no initial value")}for(;e?l>=0:c>l;l+=v)l in s&&(i=t(i,s[l],l,a));return i}};WE.exports={left:KE(!1),right:KE(!0)}});var wv=I(function(nhe,uI){"use strict";var cK=Y(),tI=Ao(),ts=Qn().getWeakData,lK=tn(),pK=ne(),vK=ze(),gv=ue(),hK=ht(),iI=Mr(),nI=oe(),oI=je(),dK=oI.set,mK=oI.getterFor,yK=iI.find,gK=iI.findIndex,bK=cK([].splice),wK=0,ns=function(e){return e.frozen||(e.frozen=new aI)},aI=function(){this.entries=[]},bv=function(e,r){return yK(e.entries,function(t){return t[0]===r})};aI.prototype={get:function(e){var r=bv(this,e);if(r)return r[1]},has:function(e){return!!bv(this,e)},set:function(e,r){var t=bv(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=gK(this.entries,function(t){return t[0]===e});return~r&&bK(this.entries,r,1),!!~r}};uI.exports={getConstructor:function(e,r,t,n){var i=e(function(l,v){lK(l,a),dK(l,{type:r,id:wK++,frozen:void 0}),vK(v)||hK(v,l[n],{that:l,AS_ENTRIES:t})}),a=i.prototype,s=mK(r),c=function(l,v,m){var y=s(l),b=ts(pK(v),!0);return b===!0?ns(y).set(v,m):b[y.id]=m,l};return tI(a,{delete:function(l){var v=s(this);if(!gv(l))return!1;var m=ts(l);return m===!0?ns(v).delete(l):m&&nI(m,v.id)&&delete m[v.id]},has:function(v){var m=s(this);if(!gv(v))return!1;var y=ts(v);return y===!0?ns(m).has(v):y&&nI(y,m.id)}}),tI(a,t?{get:function(v){var m=s(this);if(gv(v)){var y=ts(v);return y===!0?ns(m).get(v):y?y[m.id]:void 0}},set:function(v,m){return c(this,v,m)}}:{add:function(v){return c(this,v,!0)}}),i}}});var yI=I(function(){"use strict";var SK=Vu(),sI=X(),us=Y(),fI=Ao(),OK=Qn(),_K=Ro(),pI=wv(),is=ue(),os=je().enforce,PK=K(),EK=Js(),Go=Object,IK=Array.isArray,as=Go.isExtensible,vI=Go.isFrozen,qK=Go.isSealed,hI=Go.freeze,TK=Go.seal,cI={},lI={},kK=!sI.ActiveXObject&&"ActiveXObject"in sI,Bo,dI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mI=_K("WeakMap",dI,pI),ii=mI.prototype,ss=us(ii.set),xK=function(){return SK&&PK(function(){var e=hI([]);return ss(new mI,e,1),!vI(e)})};EK&&(kK?(Bo=pI.getConstructor(dI,"WeakMap",!0),OK.enable(),Sv=us(ii.delete),Mo=us(ii.has),Ov=us(ii.get),fI(ii,{delete:function(e){if(is(e)&&!as(e)){var r=os(this);return r.frozen||(r.frozen=new Bo),Sv(this,e)||r.frozen.delete(e)}return Sv(this,e)},has:function(r){if(is(r)&&!as(r)){var t=os(this);return t.frozen||(t.frozen=new Bo),Mo(this,r)||t.frozen.has(r)}return Mo(this,r)},get:function(r){if(is(r)&&!as(r)){var t=os(this);return t.frozen||(t.frozen=new Bo),Mo(this,r)?Ov(this,r):t.frozen.get(r)}return Ov(this,r)},set:function(r,t){if(is(r)&&!as(r)){var n=os(this);n.frozen||(n.frozen=new Bo),Mo(this,r)?ss(this,r,t):n.frozen.set(r,t)}else ss(this,r,t);return this}})):xK()&&fI(ii,{set:function(r,t){var n;return IK(r)&&(vI(r)?n=cI:qK(r)&&(n=lI)),ss(this,r,t),n==cI&&hI(r),n==lI&&TK(r),this}}));var Sv,Mo,Ov});var gI=I(function(){"use strict";var RK=Ro(),AK=Hp();RK("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},AK)});var SI=I(function(she,wI){"use strict";var $K=Dr(),NK=Le(),jK=uu(),LK=Lr(),bI=function(e,r,t,n,i,a,s,c){for(var l=i,v=0,m=s?LK(s,c):!1,y,b;v<n;)v in t&&(y=m?m(t[v],v,r):t[v],a>0&&$K(y)?(b=NK(y),l=bI(e,r,y,b,l,a-1)-1):(jK(l+1),e[l]=y),l++),v++;return l};wI.exports=bI});var NI=I(function(Sde,$I){var g5=we().f;$I.exports=function(e,r,t){t in e||g5(e,t,{configurable:!0,get:function(){return r[t]},set:function(n){r[t]=n}})}});var ms=I(function(Ode,VI){var Y5=Du(),X5=TypeError;VI.exports=function(e){if(Y5(e))throw X5("The method doesn't accept regular expressions");return e}});var ys=I(function(_de,zI){var Q5=re(),J5=Q5("match");zI.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[J5]=!1,"/./"[e](r)}catch(n){}}return!1}});var Rq=I(function(){"use strict";var vW=Ro(),hW=wv();vW("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},hW)});var hh=N(W());function dh(){(0,hh.default)(document).on("submit","form:not([action])",function(e){e.preventDefault()})}var mh=N(W());function yh(){var e=window.history.pushState;window.history.pushState=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var i=e.apply(this,t);return(0,mh.default)(document).trigger("pushstate"),i}}var gR=M(),bR=st(),wR=ha().indexOf,SR=Jt(),lf=bR([].indexOf),pm=!!lf&&1/lf([1],1,-0)<0,OR=pm||!SR("indexOf");gR({target:"Array",proto:!0,forced:OR},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return pm?lf(this,r,t)||0:wR(this,r,t)}});var zR=M(),qm=Im();zR({global:!0,forced:parseInt!=qm},{parseInt:qm});var _Y=N(ve());ve();var A1=M(),zm=te(),$1=ee(),Hm=ne(),N1=pe(),j1=function(){var e=!1,r=/[ac]/;return r.exec=function(){return e=!0,/./.exec.apply(this,arguments)},r.test("abc")===!0&&e}(),L1=/./.test;A1({target:"RegExp",proto:!0,forced:!j1},{test:function(e){var r=Hm(this),t=N1(e),n=r.exec;if(!$1(n))return zm(L1,r,t);var i=zm(n,r,t);return i===null?!1:(Hm(i),!0)}});var Pa=N(W());var Km=!1,Wm=!1,Ym=-1;function Tf(e){Km=e}function Xm(e){Wm=e}function Qm(e){Ym=e}function Jm(){return Km}function ft(){return Wm}function Zm(){return Ym}var Ie;function ey(e){Ie=e}function C1(){var e=Ie.indexOf("MSIE ");if(ft()&&e>0)return parseInt(Ie.substring(e+5,Ie.indexOf(".",e)),10);var r=Ie.indexOf("Trident/");if(r>0){var t=Ie.indexOf("rv:");return parseInt(Ie.substring(t+3,Ie.indexOf(".",t)),10)}return-1}function ry(){/\bQt\//.test(Ie)?((0,Pa.default)(document.documentElement).addClass("qt"),Tf(!0)):Tf(!1),/\bQt/.test(Ie)&&/\bMacintosh/.test(Ie)&&(0,Pa.default)(document.documentElement).addClass("qtmac"),/\bQt\/5/.test(Ie)&&/Linux/.test(Ie)&&(0,Pa.default)(document.documentElement).addClass("qt5"),Xm(/MSIE|Trident|Edge/.test(Ie)),Qm(C1())}function ty(){return window.Shiny||(window.Shiny={}),window.Shiny}var M1=ya(),G1=Ee(),F1=iy();M1||G1(Object.prototype,"toString",F1,{unsafe:!0});jg();Jg();eb();rb();tb();ub();var DN=M(),BN=ie(),sb=we().f;DN({target:"Object",stat:!0,forced:Object.defineProperty!==sb,sham:!BN},{defineProperty:sb});Ub();Hb();Wb();mn();pw();var mL=M(),yL=ie(),gL=X(),Ha=Y(),bL=oe(),wL=ee(),SL=gr(),OL=pe(),_L=jr(),PL=ff(),Or=gL.Symbol,gt=Or&&Or.prototype;yL&&wL(Or)&&(!("description"in gt)||Or().description!==void 0)&&(Tc={},Ui=function(){var r=arguments.length<1||arguments[0]===void 0?void 0:OL(arguments[0]),t=SL(gt,this)?new Or(r):r===void 0?Or():Or(r);return r===""&&(Tc[t]=!0),t},PL(Ui,Or),Ui.prototype=gt,gt.constructor=Ui,vw=String(Or("test"))=="Symbol(test)",hw=Ha(gt.valueOf),dw=Ha(gt.toString),mw=/^Symbol\((.*)\)[^)]+$/,yw=Ha("".replace),gw=Ha("".slice),_L(gt,"description",{configurable:!0,get:function(){var r=hw(this);if(bL(Tc,r))return"";var t=dw(r),n=vw?gw(t,7,-1):yw(t,mw,"$1");return n===""?void 0:n}}),mL({global:!0,constructor:!0,forced:!0},{Symbol:Ui}));var Tc,Ui,vw,hw,dw,mw,yw,gw;var EL=vn();EL("iterator");var Pbe=N(z());var yC=Mc().charAt,gC=pe(),Ww=je(),bC=Ya(),Kw=Xa(),Yw="String Iterator",wC=Ww.set,SC=Ww.getterFor(Yw);bC(String,"String",function(e){wC(this,{type:Yw,string:gC(e),index:0})},function(){var r=SC(this),t=r.string,n=r.index,i;return n>=t.length?Kw(void 0,!0):(i=yC(t,n),r.index+=i.length,Kw(i,!1))});var Zw=X(),rS=Gc(),_C=Uc(),Hi=z(),Vc=br(),tS=re(),zc=tS("iterator"),eS=tS("toStringTag"),Hc=Hi.values,nS=function(e,r){if(e){if(e[zc]!==Hc)try{Vc(e,zc,Hc)}catch(n){e[zc]=Hc}if(e[eS]||Vc(e,eS,r),rS[r]){for(var t in Hi)if(e[t]!==Hi[t])try{Vc(e,t,Hi[t])}catch(n){e[t]=Hi[t]}}}};for(Ja in rS)nS(Zw[Ja]&&Zw[Ja].prototype,Ja);var Ja;nS(_C,"DOMTokenList");var PC=vn();PC("asyncIterator");var EC=$e(),IC=vn(),qC=tr();IC("toStringTag");qC(EC("Symbol"),"Symbol");var TC=X(),kC=tr();kC(TC.JSON,"JSON",!0);var xC=tr();xC(Math,"Math",!0);var RC=M(),AC=K(),$C=xe(),iS=gn(),NC=Rc(),jC=AC(function(){iS(1)});RC({target:"Object",stat:!0,forced:jC,sham:!NC},{getPrototypeOf:function(r){return iS($C(r))}});var BC=M(),aS=Kc();BC({target:"Array",proto:!0,forced:[].forEach!=aS},{forEach:aS});var uS=X(),sS=Gc(),MC=Uc(),Wc=Kc(),GC=br(),fS=function(e){if(e&&e.forEach!==Wc)try{GC(e,"forEach",Wc)}catch(r){e.forEach=Wc}};for(Za in sS)sS[Za]&&fS(uS[Za]&&uS[Za].prototype);var Za;fS(MC);var FC=ie(),UC=ot().EXISTS,cS=Y(),VC=jr(),lS=Function.prototype,zC=cS(lS.toString),pS=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,HC=cS(pS.exec),KC="name";FC&&!UC&&VC(lS,KC,{configurable:!0,get:function(){try{return HC(pS,zC(this))[1]}catch(e){return""}}});var WC=M(),YC=rn();WC({target:"Object",stat:!0},{setPrototypeOf:YC});var XC=M(),QC=Y(),JC=Dr(),ZC=QC([].reverse),vS=[1,2];XC({target:"Array",proto:!0,forced:String(vS)===String(vS.reverse())},{reverse:function(){return JC(this)&&(this.length=this.length),ZC(this)}});var iD=M(),dS=Dr(),oD=ki(),aD=ue(),mS=ut(),uD=Le(),sD=Ae(),fD=dt(),cD=re(),lD=bn(),pD=xi(),vD=lD("slice"),hD=cD("species"),Yc=Array,dD=Math.max;iD({target:"Array",proto:!0,forced:!vD},{slice:function(r,t){var n=sD(this),i=uD(n),a=mS(r,i),s=mS(t===void 0?i:t,i),c,l,v;if(dS(n)&&(c=n.constructor,oD(c)&&(c===Yc||dS(c.prototype))?c=void 0:aD(c)&&(c=c[hD],c===null&&(c=void 0)),c===Yc||c===void 0))return pD(n,a,s);for(l=new(c===void 0?Yc:c)(dD(s-a,0)),v=0;a<s;a++,v++)a in n&&fD(l,v,n[a]);return l.length=v,l}});var rT=N(W());var mD=vn(),yD=pc();mD("toPrimitive");yD();var SD=oe(),OD=Ee(),_D=gS(),PD=re(),bS=PD("toPrimitive"),wS=Date.prototype;SD(wS,bS)||OD(wS,bS,_D);var TD=M(),Qc=Ne(),kD=ie(),IS=X(),Jc=lc(),qS=Y(),xD=Qt(),PS=oe(),RD=eu(),AD=gr(),$D=Wt(),TS=Gs(),ND=K(),jD=$r().f,LD=er().f,CD=we().f,DD=Xc(),BD=Oi().trim,Ki="Number",wn=IS[Ki],ES=Jc[Ki],Zc=wn.prototype,MD=IS.TypeError,GD=qS("".slice),ru=qS("".charCodeAt),FD=function(e){var r=TS(e,"number");return typeof r=="bigint"?r:UD(r)},UD=function(e){var r=TS(e,"number"),t,n,i,a,s,c,l,v;if($D(r))throw MD("Cannot convert a Symbol value to a number");if(typeof r=="string"&&r.length>2){if(r=BD(r),t=ru(r,0),t===43||t===45){if(n=ru(r,2),n===88||n===120)return NaN}else if(t===48){switch(ru(r,1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+r}for(s=GD(r,2),c=s.length,l=0;l<c;l++)if(v=ru(s,l),v<48||v>a)return NaN;return parseInt(s,i)}}return+r},el=xD(Ki,!wn(" 0o1")||!wn("0b1")||wn("+0x1")),VD=function(e){return AD(Zc,e)&&ND(function(){DD(e)})},tu=function(r){var t=arguments.length<1?0:wn(FD(r));return VD(this)?RD(Object(t),this,tu):t};tu.prototype=Zc;el&&!Qc&&(Zc.constructor=tu);TD({global:!0,constructor:!0,wrap:!0,forced:el},{Number:tu});var kS=function(e,r){for(var t=kD?jD(r):"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;t.length>n;n++)PS(r,i=t[n])&&!PS(e,i)&&CD(e,i,LD(r,i))};Qc&&ES&&kS(Jc[Ki],ES);(el||Qc)&&kS(Jc[Ki],wn);var H9=N(z());var S9=N(ve());var oB=nn(),MS=te(),iu=Y(),aB=Wi(),uB=K(),sB=ne(),fB=ee(),cB=ze(),lB=wr(),pB=lr(),Sn=pe(),vB=He(),hB=nu(),dB=Ar(),mB=CS(),yB=Yi(),gB=re(),al=gB("replace"),bB=Math.max,wB=Math.min,SB=iu([].concat),ol=iu([].push),GS=iu("".indexOf),FS=iu("".slice),OB=function(e){return e===void 0?e:String(e)},_B=function(){return"a".replace(/./,"$0")==="$0"}(),US=function(){return/./[al]?/./[al]("a","$0")==="":!1}(),PB=!uB(function(){var e=/./;return e.exec=function(){var r=[];return r.groups={a:"7"},r},"".replace(e,"$<a>")!=="7"});aB("replace",function(e,r,t){var n=US?"$":"$0";return[function(a,s){var c=vB(this),l=cB(a)?void 0:dB(a,al);return l?MS(l,a,c,s):MS(r,Sn(c),a,s)},function(i,a){var s=sB(this),c=Sn(i);if(typeof a=="string"&&GS(a,n)===-1&&GS(a,"$<")===-1){var l=t(r,s,c,a);if(l.done)return l.value}var v=fB(a);v||(a=Sn(a));var m=s.global;if(m){var y=s.unicode;s.lastIndex=0}for(var b=[];;){var w=yB(s,c);if(w===null||(ol(b,w),!m))break;var S=Sn(w[0]);S===""&&(s.lastIndex=hB(c,pB(s.lastIndex),y))}for(var q="",k=0,E=0;E<b.length;E++){w=b[E];for(var P=Sn(w[0]),$=bB(wB(lB(w.index),c.length),0),R=[],j=1;j<w.length;j++)ol(R,OB(w[j]));var L=w.groups;if(v){var U=SB([P],R,$,c);L!==void 0&&ol(U,L);var C=Sn(oB(a,void 0,U))}else C=mB(P,c,$,R,L,a);$>=k&&(q+=FS(c,k,$)+C,k=$+P.length)}return q+FS(c,k)}]},!PB||!_B||US);var kB=ot().PROPER,xB=Ee(),RB=ne(),HS=pe(),AB=K(),$B=ul(),sl="toString",NB=RegExp.prototype,KS=NB[sl],jB=AB(function(){return KS.call({source:"a",flags:"b"})!="/a/b"}),LB=kB&&KS.name!=sl;(jB||LB)&&xB(RegExp.prototype,sl,function(){var r=RB(this),t=HS(r.source),n=HS($B(r));return"/"+t+"/"+n},{unsafe:!0});var VB=M(),ZS=JS();VB({global:!0,forced:parseFloat!=ZS},{parseFloat:ZS});var zB=M(),HB=Y(),e0=K(),r0=Xc(),au=HB(1 .toPrecision),KB=e0(function(){return au(1,void 0)!=="1"})||!e0(function(){au({})});zB({target:"Number",proto:!0,forced:KB},{toPrecision:function(r){return r===void 0?au(r0(this)):au(r0(this),r)}});var XB=M(),QB=K(),JB=Dr(),ZB=ue(),e2=xe(),r2=Le(),n0=uu(),i0=dt(),t2=Ci(),n2=bn(),i2=re(),o2=Kt(),o0=i2("isConcatSpreadable"),a2=o2>=51||!QB(function(){var e=[];return e[o0]=!1,e.concat()[0]!==e}),u2=function(e){if(!ZB(e))return!1;var r=e[o0];return r!==void 0?!!r:JB(e)},s2=!a2||!n2("concat");XB({target:"Array",proto:!0,arity:1,forced:s2},{concat:function(r){var t=e2(this),n=t2(t,0),i=0,a,s,c,l,v;for(a=-1,c=arguments.length;a<c;a++)if(v=a===-1?t:arguments[a],u2(v))for(l=r2(v),n0(i+l),s=0;s<l;s++,i++)s in v&&i0(n,i,v[s]);else n0(i+1),i0(n,i++,v);return n.length=i,n}});var d2=M(),m2=xe(),y2=ut(),g2=wr(),b2=Le(),w2=u0(),S2=uu(),O2=Ci(),_2=dt(),fl=c0(),P2=bn(),E2=P2("splice"),I2=Math.max,q2=Math.min;d2({target:"Array",proto:!0,forced:!E2},{splice:function(r,t){var n=m2(this),i=b2(n),a=y2(r,i),s=arguments.length,c,l,v,m,y,b;for(s===0?c=l=0:s===1?(c=0,l=i-a):(c=s-2,l=q2(I2(g2(t),0),i-a)),S2(i+c-l),v=O2(n,l),m=0;m<l;m++)y=a+m,y in n&&_2(v,m,n[y]);if(v.length=l,c<l){for(m=a;m<i-l;m++)y=m+l,b=m+c,y in n?n[b]=n[y]:fl(n,b);for(m=i;m>i-l+c;m--)fl(n,m-1)}else if(c>l)for(m=i-l;m>a;m--)y=m+l-1,b=m+c-1,y in n?n[b]=n[y]:fl(n,b);for(m=0;m<c;m++)n[m+a]=arguments[m+2];return w2(n,i-l+c),v}});var T2=M(),k2=xe(),l0=Ei(),x2=K(),R2=x2(function(){l0(1)});T2({target:"Object",stat:!0,forced:R2},{keys:function(r){return l0(k2(r))}});var Xi=N(W());function cl(){return window.devicePixelRatio}function Ye(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function F(e,r){return Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==void 0}function Se(e,r){return e===void 0?r:e}function v0(e){var r={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>'"/]/g,function(t){return r[t]})}function su(){return Math.floor(4294967296+Math.random()*64424509440).toString(16)}function bt(e){if(!(!e||!e.toLowerCase))switch(e.toLowerCase()){case"true":return!0;case"false":return!1;default:return}}function pr(e,r){var t=void 0;if("currentStyle"in e)t=e.currentStyle[r];else{var n,i,a=(n=document)===null||n===void 0||(i=n.defaultView)===null||i===void 0?void 0:i.getComputedStyle(e,null);a&&(t=a.getPropertyValue(r))}return t}function p0(e,r){for(var t=e.toString();t.length<r;)t="0"+t;return t}function pl(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(r<1)throw"Significant digits must be at least 1.";return parseFloat(e.toPrecision(r))}function h0(e){var r=new Date(e);return r.toString()==="Invalid Date"&&(r=new Date(e.replace(/-/g,"/"))),r}function nr(e){return e instanceof Date?e.getUTCFullYear()+"-"+p0(e.getUTCMonth()+1,2)+"-"+p0(e.getUTCDate(),2):null}function d0(e,r){var t={};return function(){var n=e.getBoundingClientRect(),i={w:n.width,h:n.height};i.w===0&&i.h===0||i.w===t.w&&i.h===t.h||(t=i,r(i.w,i.h))}}function vl(){return cl()?Math.round(cl()*100)/100:1}function m0(e){var r=e.replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\b]/g,"\\b"),t;try{t=new Function("with (this) {\n try {\n return (".concat(e,");\n } catch (e) {\n console.error('Error evaluating expression: ").concat(r,"');\n throw e;\n }\n }"))}catch(n){throw console.error("Error parsing expression: "+e),n}return function(n){return t.call(n)}}function Qi(e){return e==null?[]:Array.isArray(e)?e:[e]}function y0(e,r){function t(v,m){for(var y=0,b=0,w=[];y<v.length&&b<m.length;)r(v[y],m[b])<=0?w.push(v[y++]):w.push(m[b++]);for(;y<v.length;)w.push(v[y++]);for(;b<m.length;)w.push(m[b++]);return w}e=e.slice(0);for(var n=1;n<e.length;n*=2)for(var i=0;i<e.length;i+=n*2){var a=e.slice(i,i+n),s=e.slice(i+n,i+n*2),c=t(a,s),l=[i,c.length];Array.prototype.push.apply(l,c),Array.prototype.splice.apply(e,l)}return e}function H(e){return typeof e=="undefined"?e:e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function ir(e,r){var t={};return Object.keys(e).forEach(function(n){t[n]=r(e[n],n,e)}),t}function g0(e){return typeof e=="number"&&isNaN(e)}function ll(e,r){if(Xi.default.type(e)==="object"&&Xi.default.type(r)==="object"){var t=e,n=r;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var i in t)if(!Ye(n,i)||!ll(t[i],n[i]))return!1;return!0}else if(Xi.default.type(e)==="array"&&Xi.default.type(r)==="array"){var a=e,s=r;if(a.length!==s.length)return!1;for(var c=0;c<a.length;c++)if(!ll(a[c],s[c]))return!1;return!0}else return e===r}function hl(){if(arguments.length<2)throw new Error("equal requires at least two arguments.");for(var e=0;e<arguments.length-1;e++)if(!ll(e<0||arguments.length<=e?void 0:arguments[e],e+1<0||arguments.length<=e+1?void 0:arguments[e+1]))return!1;return!0}var b0=function(r,t,n){function i(c){return(c+"").replace(/-/,".").replace(/(\.0)+[^.]*$/,"").split(".")}function a(c,l){for(var v=i(c),m=i(l),y=Math.min(v.length,m.length),b,w=0;w<y;w++)if(b=parseInt(v[w],10)-parseInt(m[w],10),b!==0)return b;return v.length-m.length}var s=a(r,n);if(t==="==")return s===0;if(t===">=")return s>=0;if(t===">")return s>0;if(t==="<=")return s<=0;if(t==="<")return s<0;throw"Unknown operator: ".concat(t)};function Oe(e,r){if(typeof e!="undefined"){if(r.length!==1)throw new Error("labelNode must be of length 1");var t=Array.isArray(e)&&e.length===0;t?r.addClass("shiny-label-null"):(r.text(e),r.removeClass("shiny-label-null"))}}function Ji(e){var r=document.createElement("a");r.href="/";var t=document.createElement("div");t.style.setProperty("position","absolute","important"),t.style.setProperty("top","-1000px","important"),t.style.setProperty("left","0","important"),t.style.setProperty("width","30px","important"),t.style.setProperty("height","10px","important"),t.appendChild(r),e.appendChild(t);var n=window.getComputedStyle(r).getPropertyValue("color");return e.removeChild(t),n}function dl(){return!window.bootstrap}function Zi(e){return Zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zi(e)}function A2(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function w0(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S0(n.key),n)}}function $2(e,r,t){return r&&w0(e.prototype,r),t&&w0(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ml(e,r,t){return r=S0(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function S0(e){var r=N2(e,"string");return Zi(r)==="symbol"?r:String(r)}function N2(e,r){if(Zi(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Zi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var fu=function(){function e(){A2(this,e),ml(this,"name",void 0),ml(this,"bindings",[]),ml(this,"bindingNames",{})}return $2(e,[{key:"register",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a={binding:t,priority:i};this.bindings.unshift(a),n&&(this.bindingNames[n]=a,t.name=n)}},{key:"setPriority",value:function(t,n){var i=this.bindingNames[t];if(!i)throw"Tried to set priority on unknown binding "+t;i.priority=n||0}},{key:"getPriority",value:function(t){var n=this.bindingNames[t];return n?n.priority:!1}},{key:"getBindings",value:function(){return y0(this.bindings,function(t,n){return n.priority-t.priority})}}]),e}();var oX=N(z());function eo(e){return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},eo(e)}function j2(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function O0(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_0(n.key),n)}}function L2(e,r,t){return r&&O0(e.prototype,r),t&&O0(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function C2(e,r,t){return r=_0(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _0(e){var r=D2(e,"string");return eo(r)==="symbol"?r:String(r)}function D2(e,r){if(eo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(eo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var ae=function(){function e(){j2(this,e),C2(this,"name",void 0)}return L2(e,[{key:"find",value:function(t){throw"Not implemented"}},{key:"getId",value:function(t){return t.getAttribute("data-input-id")||t.id}},{key:"getType",value:function(t){return null}},{key:"getValue",value:function(t){throw"Not implemented"}},{key:"subscribe",value:function(t,n){}},{key:"unsubscribe",value:function(t){}},{key:"receiveMessage",value:function(t,n){throw"Not implemented"}},{key:"getState",value:function(t){throw"Not implemented"}},{key:"getRatePolicy",value:function(t){return null}},{key:"initialize",value:function(t){}},{key:"dispose",value:function(t){}}]),e}();var B2=M(),M2=Mr().find,G2=yn(),yl="find",P0=!0;yl in[]&&Array(1)[yl](function(){P0=!1});B2({target:"Array",proto:!0,forced:P0},{find:function(r){return M2(this,r,arguments.length>1?arguments[1]:void 0)}});G2(yl);var F2=M(),U2=X(),V2=tr();F2({global:!0},{Reflect:{}});V2(U2.Reflect,"Reflect",!0);var J2=M(),Z2=$e(),bl=nn(),eM=k0(),x0=xf(),rM=ne(),R0=ue(),tM=Nr(),$0=K(),wl=Z2("Reflect","construct"),nM=Object.prototype,iM=[].push,N0=$0(function(){function e(){}return!(wl(function(){},[],e)instanceof e)}),j0=!$0(function(){wl(function(){})}),A0=N0||j0;J2({target:"Reflect",stat:!0,forced:A0,sham:A0},{construct:function(r,t){x0(r),rM(t);var n=arguments.length<3?r:x0(arguments[2]);if(j0&&!N0)return wl(r,t,n);if(r==n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var i=[null];return bl(iM,i,t),new(bl(eM,r,i))}var a=n.prototype,s=tM(R0(a)?a:nM),c=bl(r,s,t);return R0(c)?c:s}});var _X=N(z());var wt=N(W());function On(e){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},On(e)}function oM(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function L0(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uM(n.key),n)}}function aM(e,r,t){return r&&L0(e.prototype,r),t&&L0(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uM(e){var r=sM(e,"string");return On(r)==="symbol"?r:String(r)}function sM(e,r){if(On(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(On(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function fM(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Sl(e,r)}function Sl(e,r){return Sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sl(e,r)}function cM(e){var r=vM();return function(){var n=cu(e),i;if(r){var a=cu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return lM(this,i)}}function lM(e,r){if(r&&(On(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pM(e)}function pM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vM(){if(typeof Reflect=="undefined"||!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(e){return!1}}function cu(e){return cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cu(e)}var C0=function(e){fM(t,e);var r=cM(t);function t(){return oM(this,t),r.apply(this,arguments)}return aM(t,[{key:"find",value:function(i){return(0,wt.default)(i).find('input[type="checkbox"]')}},{key:"getValue",value:function(i){return i.checked}},{key:"setValue",value:function(i,a){i.checked=a}},{key:"subscribe",value:function(i,a){(0,wt.default)(i).on("change.checkboxInputBinding",function(){a(!0)})}},{key:"unsubscribe",value:function(i){(0,wt.default)(i).off(".checkboxInputBinding")}},{key:"getState",value:function(i){return{label:(0,wt.default)(i).parent().find("span").text(),value:i.checked}}},{key:"receiveMessage",value:function(i,a){F(a,"value")&&(i.checked=a.value),F(a,"label")&&(0,wt.default)(i).parent().find("span").text(a.label),(0,wt.default)(i).trigger("change")}}]),t}(ae);var mM=M(),yM=Oi().trim,gM=G0();mM({target:"String",proto:!0,forced:gM("trim")},{trim:function(){return yM(this)}});var VX=N(z());var De=N(W());function _n(e){return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_n(e)}function bM(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function F0(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SM(n.key),n)}}function wM(e,r,t){return r&&F0(e.prototype,r),t&&F0(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SM(e){var r=OM(e,"string");return _n(r)==="symbol"?r:String(r)}function OM(e,r){if(_n(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(_n(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function _M(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Ol(e,r)}function Ol(e,r){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ol(e,r)}function PM(e){var r=qM();return function(){var n=lu(e),i;if(r){var a=lu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return EM(this,i)}}function EM(e,r){if(r&&(_n(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IM(e)}function IM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qM(){if(typeof Reflect=="undefined"||!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(e){return!1}}function lu(e){return lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lu(e)}function U0(e){return(0,De.default)(e).find('label[for="'+H(e.id)+'"]')}function TM(e){var r=e.parentNode;return r.tagName==="LABEL"?(0,De.default)(r).find("span").text().trim():null}var V0=function(e){_M(t,e);var r=PM(t);function t(){return bM(this,t),r.apply(this,arguments)}return wM(t,[{key:"find",value:function(i){return(0,De.default)(i).find(".shiny-input-checkboxgroup")}},{key:"getValue",value:function(i){for(var a=(0,De.default)('input:checkbox[name="'+H(i.id)+'"]:checked'),s=new Array(a.length),c=0;c<a.length;c++)s[c]=a[c].value;return s}},{key:"setValue",value:function(i,a){var s;if(a=(s=a)!==null&&s!==void 0?s:[],(0,De.default)('input:checkbox[name="'+H(i.id)+'"]').prop("checked",!1),a instanceof Array)for(var c=0;c<a.length;c++)(0,De.default)('input:checkbox[name="'+H(i.id)+'"][value="'+H(a[c])+'"]').prop("checked",!0);else(0,De.default)('input:checkbox[name="'+H(i.id)+'"][value="'+H(a)+'"]').prop("checked",!0)}},{key:"getState",value:function(i){for(var a=(0,De.default)('input:checkbox[name="'+H(i.id)+'"]'),s=new Array(a.length),c=0;c<s.length;c++)s[c]={value:a[c].value,label:TM(a[c])};return{label:U0(i).text(),value:this.getValue(i),options:s}}},{key:"receiveMessage",value:function(i,a){var s=(0,De.default)(i);F(a,"options")&&(s.find("div.shiny-options-group").remove(),s.find("label.checkbox").remove(),s.append(a.options)),F(a,"value")&&this.setValue(i,a.value),Oe(a.label,U0(i)),(0,De.default)(i).trigger("change")}},{key:"subscribe",value:function(i,a){(0,De.default)(i).on("change.checkboxGroupInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,De.default)(i).off(".checkboxGroupInputBinding")}}]),t}(ae);var SQ=N(ve());var NQ=N(z());var to=N(W());var kM=M(),xM=te(),RM=ue(),AM=ne(),$M=K0(),NM=er(),jM=gn();function W0(e,r){var t=arguments.length<3?e:arguments[2],n,i;if(AM(e)===t)return e[r];if(n=NM.f(e,r),n)return $M(n)?n.value:n.get===void 0?void 0:xM(n.get,t);if(RM(i=jM(e)))return W0(i,r,t)}kM({target:"Reflect",stat:!0},{get:W0});var LM=M(),CM=K(),DM=Ae(),Y0=er().f,X0=ie(),BM=!X0||CM(function(){Y0(1)});LM({target:"Object",stat:!0,forced:BM,sham:!X0},{getOwnPropertyDescriptor:function(r,t){return Y0(DM(r),t)}});var vQ=N(z());var St=N(W());function Pn(e){return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pn(e)}function Z0(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Q0(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MM(n.key),n)}}function eO(e,r,t){return r&&Q0(e.prototype,r),t&&Q0(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MM(e){var r=GM(e,"string");return Pn(r)==="symbol"?r:String(r)}function GM(e,r){if(Pn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Pn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function pu(){return typeof Reflect!="undefined"&&Reflect.get?pu=Reflect.get.bind():pu=function(r,t,n){var i=FM(r,t);if(!!i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},pu.apply(this,arguments)}function FM(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=En(e),e!==null););return e}function rO(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&_l(e,r)}function _l(e,r){return _l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_l(e,r)}function tO(e){var r=zM();return function(){var n=En(e),i;if(r){var a=En(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return UM(this,i)}}function UM(e,r){if(r&&(Pn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VM(e)}function VM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zM(){if(typeof Reflect=="undefined"||!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(e){return!1}}function En(e){return En=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},En(e)}function J0(e){return(0,St.default)(e).parent().find('label[for="'+H(e.id)+'"]')}var ro=function(e){rO(t,e);var r=tO(t);function t(){return Z0(this,t),r.apply(this,arguments)}return eO(t,[{key:"find",value:function(i){var a=(0,St.default)(i).find('input[type="text"], input[type="search"], input[type="url"], input[type="email"]');return a.not('input[type="text"][id$="-selectized"]')}},{key:"getId",value:function(i){return pu(En(t.prototype),"getId",this).call(this,i)||i.name}},{key:"getValue",value:function(i){throw"not implemented"}},{key:"setValue",value:function(i,a){throw"not implemented"}},{key:"subscribe",value:function(i,a){(0,St.default)(i).on("keyup.textInputBinding input.textInputBinding",function(){a(!0)}),(0,St.default)(i).on("change.textInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,St.default)(i).off(".textInputBinding")}},{key:"receiveMessage",value:function(i,a){throw"not implemented"}},{key:"getState",value:function(i){throw"not implemented"}},{key:"getRatePolicy",value:function(i){return{policy:"debounce",delay:250}}}]),t}(ae),In=function(e){rO(t,e);var r=tO(t);function t(){return Z0(this,t),r.apply(this,arguments)}return eO(t,[{key:"setValue",value:function(i,a){i.value=a}},{key:"getValue",value:function(i){return i.value}},{key:"getState",value:function(i){return{label:J0(i).text(),value:i.value,placeholder:i.placeholder}}},{key:"receiveMessage",value:function(i,a){F(a,"value")&&this.setValue(i,a.value),Oe(a.label,J0(i)),F(a,"placeholder")&&(i.placeholder=a.placeholder),(0,St.default)(i).trigger("change")}}]),t}(ro);function qn(e){return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qn(e)}function HM(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function nO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WM(n.key),n)}}function KM(e,r,t){return r&&nO(e.prototype,r),t&&nO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WM(e){var r=YM(e,"string");return qn(r)==="symbol"?r:String(r)}function YM(e,r){if(qn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(qn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function XM(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Pl(e,r)}function Pl(e,r){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pl(e,r)}function QM(e){var r=eG();return function(){var n=vu(e),i;if(r){var a=vu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return JM(this,i)}}function JM(e,r){if(r&&(qn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZM(e)}function ZM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function vu(e){return vu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vu(e)}function iO(e){return(0,to.default)(e).parent().find('label[for="'+H(e.id)+'"]')}var oO=function(e){XM(t,e);var r=QM(t);function t(){return HM(this,t),r.apply(this,arguments)}return KM(t,[{key:"find",value:function(i){return(0,to.default)(i).find('input[type="number"]')}},{key:"getValue",value:function(i){var a=(0,to.default)(i).val();if(typeof a=="string"&&/^\s*$/.test(a))return null;var s=Number(a);return isNaN(s)?a:s}},{key:"setValue",value:function(i,a){i.value=""+a}},{key:"getType",value:function(i){return"shiny.number"}},{key:"receiveMessage",value:function(i,a){var s,c,l,v;F(a,"value")&&(i.value=(s=a.value)!==null&&s!==void 0?s:""),F(a,"min")&&(i.min=(c=a.min)!==null&&c!==void 0?c:""),F(a,"max")&&(i.max=(l=a.max)!==null&&l!==void 0?l:""),F(a,"step")&&(i.step=(v=a.step)!==null&&v!==void 0?v:""),Oe(a.label,iO(i)),(0,to.default)(i).trigger("change")}},{key:"getState",value:function(i){return{label:iO(i).text(),value:this.getValue(i),min:Number(i.min),max:Number(i.max),step:Number(i.step)}}}]),t}(ro);var ZQ=N(z());var uO=N(W());function Tn(e){return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tn(e)}function rG(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function aO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nG(n.key),n)}}function tG(e,r,t){return r&&aO(e.prototype,r),t&&aO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nG(e){var r=iG(e,"string");return Tn(r)==="symbol"?r:String(r)}function iG(e,r){if(Tn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Tn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function oG(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&El(e,r)}function El(e,r){return El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},El(e,r)}function aG(e){var r=fG();return function(){var n=hu(e),i;if(r){var a=hu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return uG(this,i)}}function uG(e,r){if(r&&(Tn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sG(e)}function sG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function hu(e){return hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hu(e)}var sO=function(e){oG(t,e);var r=aG(t);function t(){return rG(this,t),r.apply(this,arguments)}return tG(t,[{key:"find",value:function(i){return(0,uO.default)(i).find('input[type="password"]')}},{key:"getType",value:function(i){return"shiny.password"}}]),t}(In);var yJ=N(z());var cO=N(W());function kn(e){return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kn(e)}function cG(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function fO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pG(n.key),n)}}function lG(e,r,t){return r&&fO(e.prototype,r),t&&fO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pG(e){var r=vG(e,"string");return kn(r)==="symbol"?r:String(r)}function vG(e,r){if(kn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(kn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function hG(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Il(e,r)}function Il(e,r){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Il(e,r)}function dG(e){var r=gG();return function(){var n=du(e),i;if(r){var a=du(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return mG(this,i)}}function mG(e,r){if(r&&(kn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yG(e)}function yG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function du(e){return du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},du(e)}var lO=function(e){hG(t,e);var r=dG(t);function t(){return cG(this,t),r.apply(this,arguments)}return lG(t,[{key:"find",value:function(i){return(0,cO.default)(i).find("textarea")}}]),t}(In);var LJ=N(z());var Xe=N(W());function xn(e){return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xn(e)}function bG(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function pO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SG(n.key),n)}}function wG(e,r,t){return r&&pO(e.prototype,r),t&&pO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SG(e){var r=OG(e,"string");return xn(r)==="symbol"?r:String(r)}function OG(e,r){if(xn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(xn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function _G(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&ql(e,r)}function ql(e,r){return ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ql(e,r)}function PG(e){var r=qG();return function(){var n=mu(e),i;if(r){var a=mu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return EG(this,i)}}function EG(e,r){if(r&&(xn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IG(e)}function IG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function mu(e){return mu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mu(e)}function vO(e){return(0,Xe.default)(e).parent().find('label[for="'+H(e.id)+'"]')}function TG(e){var r=e.parentNode;return r.tagName==="LABEL"?(0,Xe.default)(r).find("span").text().trim():null}var hO=function(e){_G(t,e);var r=PG(t);function t(){return bG(this,t),r.apply(this,arguments)}return wG(t,[{key:"find",value:function(i){return(0,Xe.default)(i).find(".shiny-input-radiogroup")}},{key:"getValue",value:function(i){var a=(0,Xe.default)('input:radio[name="'+H(i.id)+'"]:checked');return a.length===0?null:a.val()}},{key:"setValue",value:function(i,a){Array.isArray(a)&&a.length===0?(0,Xe.default)('input:radio[name="'+H(i.id)+'"]').prop("checked",!1):(0,Xe.default)('input:radio[name="'+H(i.id)+'"][value="'+H(a)+'"]').prop("checked",!0)}},{key:"getState",value:function(i){for(var a=(0,Xe.default)('input:radio[name="'+H(i.id)+'"]'),s=new Array(a.length),c=0;c<s.length;c++)s[c]={value:a[c].value,label:TG(a[c])};return{label:vO(i).text(),value:this.getValue(i),options:s}}},{key:"receiveMessage",value:function(i,a){var s=(0,Xe.default)(i);F(a,"options")&&(s.find("div.shiny-options-group").remove(),s.find("label.radio").remove(),s.append(a.options)),F(a,"value")&&this.setValue(i,a.value),Oe(a.label,vO(i)),(0,Xe.default)(i).trigger("change")}},{key:"subscribe",value:function(i,a){(0,Xe.default)(i).on("change.radioInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,Xe.default)(i).off(".radioInputBinding")}}]),t}(ae);var rZ=N(z());var se=N(W());function Rn(e){return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Rn(e)}function mO(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function dO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kG(n.key),n)}}function yO(e,r,t){return r&&dO(e.prototype,r),t&&dO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kG(e){var r=xG(e,"string");return Rn(r)==="symbol"?r:String(r)}function xG(e,r){if(Rn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Rn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function gO(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Tl(e,r)}function Tl(e,r){return Tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tl(e,r)}function bO(e){var r=$G();return function(){var n=yu(e),i;if(r){var a=yu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return RG(this,i)}}function RG(e,r){if(r&&(Rn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AG(e)}function AG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $G(){if(typeof Reflect=="undefined"||!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(e){return!1}}function yu(e){return yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yu(e)}var kl=function(e){gO(t,e);var r=bO(t);function t(){return mO(this,t),r.apply(this,arguments)}return yO(t,[{key:"find",value:function(i){return(0,se.default)(i).find(".shiny-date-input")}},{key:"getType",value:function(i){return"shiny.date"}},{key:"subscribe",value:function(i,a){(0,se.default)(i).on("keyup.dateInputBinding input.dateInputBinding",function(){a(!0)}),(0,se.default)(i).on("changeDate.dateInputBinding change.dateInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,se.default)(i).off(".dateInputBinding")}},{key:"getRatePolicy",value:function(){return{policy:"debounce",delay:250}}},{key:"setValue",value:function(i,a){throw"not implemented"}},{key:"initialize",value:function(i){var a=(0,se.default)(i).find("input"),s=a.data("initial-date");s==null&&(s=this._floorDateTime(this._dateAsUTC(new Date))),this.setValue(i,s),a.data("min-date")!==void 0&&this._setMin(a[0],a.data("min-date")),a.data("max-date")!==void 0&&this._setMax(a[0],a.data("max-date"))}},{key:"_getLabelNode",value:function(i){return(0,se.default)(i).find('label[for="'+H(i.id)+'"]')}},{key:"_formatToString",value:function(i){var a="",s;for(s=0;s<i.parts.length;s++)a+=i.separators[s]+i.parts[s];return a+=i.separators[s],a}},{key:"_setMin",value:function(i,a){if(a===null){(0,se.default)(i).bsDatepicker("setStartDate",null);return}var s=this._newDate(a);if(s!==null&&(a=s,!isNaN(a.valueOf()))){var c=(0,se.default)(i).bsDatepicker("getUTCDate");(0,se.default)(i).bsDatepicker("setStartDate",this._utcDateAsLocal(a)),a&&c&&a.getTime()>c.getTime()?(0,se.default)(i).bsDatepicker("clearDates"):(0,se.default)(i).bsDatepicker("setUTCDate",c)}}},{key:"_setMax",value:function(i,a){if(a===null){(0,se.default)(i).bsDatepicker("setEndDate",null);return}var s=this._newDate(a);if(s!==null&&(a=s,!isNaN(a.valueOf()))){var c=(0,se.default)(i).bsDatepicker("getUTCDate");(0,se.default)(i).bsDatepicker("setEndDate",this._utcDateAsLocal(a)),a&&c&&a.getTime()<c.getTime()?(0,se.default)(i).bsDatepicker("clearDates"):(0,se.default)(i).bsDatepicker("setUTCDate",c)}}},{key:"_newDate",value:function(i){if(i instanceof Date)return i;if(!i)return null;var a=h0(i);return isNaN(a.valueOf())?null:a}},{key:"_floorDateTime",value:function(i){return i=new Date(i.getTime()),i.setUTCHours(0,0,0,0),i}},{key:"_dateAsUTC",value:function(i){return new Date(i.getTime()-i.getTimezoneOffset()*6e4)}},{key:"_utcDateAsLocal",value:function(i){return new Date(i.getTime()+i.getTimezoneOffset()*6e4)}}]),t}(ae),wO=function(e){gO(t,e);var r=bO(t);function t(){return mO(this,t),r.apply(this,arguments)}return yO(t,[{key:"getValue",value:function(i){var a=(0,se.default)(i).find("input").bsDatepicker("getUTCDate");return nr(a)}},{key:"setValue",value:function(i,a){if(a===null){(0,se.default)(i).find("input").val("").bsDatepicker("update");return}var s=this._newDate(a);s!==null&&(isNaN(s.valueOf())||(0,se.default)(i).find("input").bsDatepicker("setUTCDate",s))}},{key:"getState",value:function(i){var a=(0,se.default)(i),s=a.find("input"),c=s.data("datepicker").startDate,l=s.data("datepicker").endDate;c=c===-1/0?null:nr(c),l=l===1/0?null:nr(l);var v=s.data("datepicker").startViewMode;return v===2?v="decade":v===1?v="year":v===0&&(v="month"),{label:this._getLabelNode(i).text(),value:this.getValue(i),valueString:s.val(),min:c,max:l,language:s.data("datepicker").language,weekstart:s.data("datepicker").weekStart,format:this._formatToString(s.data("datepicker").format),startview:v}}},{key:"receiveMessage",value:function(i,a){var s=(0,se.default)(i).find("input");Oe(a.label,this._getLabelNode(i)),F(a,"min")&&this._setMin(s[0],a.min),F(a,"max")&&this._setMax(s[0],a.max),F(a,"value")&&this.setValue(i,a.value),(0,se.default)(i).trigger("change")}}]),t}(kl);var lZ=N(ve());var PZ=N(z());var he=N(W());function An(e){return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},An(e)}function NG(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function SO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LG(n.key),n)}}function jG(e,r,t){return r&&SO(e.prototype,r),t&&SO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LG(e){var r=CG(e,"string");return An(r)==="symbol"?r:String(r)}function CG(e,r){if(An(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(An(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function DG(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Rl(e,r)}function Rl(e,r){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rl(e,r)}function BG(e){var r=FG();return function(){var n=gu(e),i;if(r){var a=gu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return MG(this,i)}}function MG(e,r){if(r&&(An(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GG(e)}function GG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gu(e)}function bu(e){e.$cache&&e.$cache.input?e.$cache.input.trigger("change"):console.log("Couldn't force ion slider to update")}function OO(e,r,t){var n,i;return e==="date"?(n=window.strftime.utc(),i=function(s){return n(r,new Date(s))}):e==="datetime"?(t?n=window.strftime.timezone(t):n=window.strftime,i=function(s){return n(r,new Date(s))}):i=function(s){return VG(s,this.prettify_separator)},i}function UG(e){return(0,he.default)(e).parent().find('label[for="'+H(e.id)+'"]')}function xl(e){return(0,he.default)(e).data("ionRangeSlider").options.type==="double"?2:1}var _O=function(e){DG(t,e);var r=BG(t);function t(){return NG(this,t),r.apply(this,arguments)}return jG(t,[{key:"find",value:function(i){return he.default.fn.ionRangeSlider?(0,he.default)(i).find("input.js-range-slider"):(0,he.default)()}},{key:"getType",value:function(i){var a=(0,he.default)(i).data("data-type");return a==="date"?"shiny.date":a==="datetime"?"shiny.datetime":null}},{key:"getValue",value:function(i){var a=(0,he.default)(i),s=(0,he.default)(i).data("ionRangeSlider").result,c,l=a.data("data-type");return l==="date"?c=function(m){return nr(new Date(Number(m)))}:l==="datetime"?c=function(m){return Number(m)/1e3}:c=function(m){return Number(m)},xl(i)===2?[c(s.from),c(s.to)]:c(s.from)}},{key:"setValue",value:function(i,a){var s=(0,he.default)(i),c=s.data("ionRangeSlider");s.data("immediate",!0);try{xl(i)===2&&a instanceof Array?c.update({from:a[0],to:a[1]}):c.update({from:a}),bu(c)}finally{s.data("immediate",!1)}}},{key:"subscribe",value:function(i,a){(0,he.default)(i).on("change.sliderInputBinding",function(){a(!(0,he.default)(i).data("immediate")&&!(0,he.default)(i).data("animating"))})}},{key:"unsubscribe",value:function(i){(0,he.default)(i).off(".sliderInputBinding")}},{key:"receiveMessage",value:function(i,a){var s=(0,he.default)(i),c=s.data("ionRangeSlider"),l={};if(F(a,"value"))if(xl(i)===2&&a.value instanceof Array)l.from=a.value[0],l.to=a.value[1];else{if(Array.isArray(a.value)){var v=["an empty array.","a single-value array.","an array with more than two values."];throw"Slider requires two values to update with an array, but message value was "+v[Math.min(a.value.length,2)]}l.from=a.value}for(var m=["min","max","step"],y=0;y<m.length;y++){var b=m[y];F(a,b)&&(l[b]=a[b])}Oe(a.label,UG(i));for(var w=["data-type","time-format","timezone"],S=0;S<w.length;S++){var q=w[S];F(a,q)&&s.data(q,a[q])}var k=s.data("data-type"),E=s.data("time-format"),P=s.data("timezone");l.prettify=OO(k,E,P),s.data("immediate",!0);try{c.update(l),bu(c)}finally{s.data("immediate",!1)}}},{key:"getRatePolicy",value:function(i){return{policy:"debounce",delay:250}}},{key:"getState",value:function(i){}},{key:"initialize",value:function(i){var a=(0,he.default)(i),s=a.data("data-type"),c=a.data("time-format"),l=a.data("timezone"),v={prettify:OO(s,c,l)};a.ionRangeSlider(v)}}]),t}(ro);function VG(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:",",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".",n=e.toString().split(".");return n[0]=n[0].replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+r),n.length===1?n[0]:n.length===2?n[0]+t+n[1]:""}(0,he.default)(document).on("click",".slider-animate-button",function(e){e.preventDefault();var r=(0,he.default)(this),t=(0,he.default)("#"+H(r.attr("data-target-id"))),n="Play",i="Pause",a=r.attr("data-loop")!==void 0&&!/^\s*false\s*$/i.test(r.attr("data-loop")),s=r.attr("data-interval");if(isNaN(s)?s=1500:s=Number(s),t.data("animTimer"))clearTimeout(t.data("animTimer")),t.removeData("animTimer"),r.attr("title",n),r.removeClass("playing"),t.removeData("animating");else{var c;if(t.hasClass("jslider")){var l=t.slider();l.canStepNext()||l.resetToStart(),c=setInterval(function(){a&&!l.canStepNext()?l.resetToStart():(l.stepNext(),!a&&!l.canStepNext()&&r.click())},s)}else{var v=t.data("ionRangeSlider"),m=function(){return v.options.type==="double"?v.result.to<v.result.max:v.result.from<v.result.max},y=function(){var S={from:v.result.min};v.options.type==="double"&&(S.to=S.from+(v.result.to-v.result.from)),v.update(S),bu(v)},b=function(){var S={from:Math.min(v.result.max,v.result.from+v.options.step)};v.options.type==="double"&&(S.to=Math.min(v.result.max,v.result.to+v.options.step)),v.update(S),bu(v)};m()||y(),c=setInterval(function(){a&&!m()?y():(b(),!a&&!m()&&r.click())},s)}t.data("animTimer",c),r.attr("title",i),r.addClass("playing"),t.data("animating",!0)}});var UZ=N(z());var or=N(W());function $n(e){return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$n(e)}function zG(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function PO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KG(n.key),n)}}function HG(e,r,t){return r&&PO(e.prototype,r),t&&PO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KG(e){var r=WG(e,"string");return $n(r)==="symbol"?r:String(r)}function WG(e,r){if($n(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if($n(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function YG(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Al(e,r)}function Al(e,r){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Al(e,r)}function XG(e){var r=ZG();return function(){var n=wu(e),i;if(r){var a=wu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return QG(this,i)}}function QG(e,r){if(r&&($n(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JG(e)}function JG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function wu(e){return wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wu(e)}function EO(e){return(0,or.default)(e).find('label[for="'+H(e.id)+'"]')}var IO=function(e){YG(t,e);var r=XG(t);function t(){return zG(this,t),r.apply(this,arguments)}return HG(t,[{key:"find",value:function(i){return(0,or.default)(i).find(".shiny-date-range-input")}},{key:"getValue",value:function(i){var a=(0,or.default)(i).find("input"),s=a.eq(0).bsDatepicker("getUTCDate"),c=a.eq(1).bsDatepicker("getUTCDate");return[nr(s),nr(c)]}},{key:"setValue",value:function(i,a){if(a instanceof Object){var s=(0,or.default)(i).find("input");if(a.start!==void 0)if(a.start===null)s.eq(0).val("").bsDatepicker("update");else{var c=this._newDate(a.start);s.eq(0).bsDatepicker("setUTCDate",c)}if(a.end!==void 0)if(a.end===null)s.eq(1).val("").bsDatepicker("update");else{var l=this._newDate(a.end);s.eq(1).bsDatepicker("setUTCDate",l)}}}},{key:"getState",value:function(i){var a=(0,or.default)(i),s=a.find("input"),c=s.eq(0),l=s.eq(1),v=c.bsDatepicker("getStartDate"),m=c.bsDatepicker("getEndDate"),y=v===-1/0?null:nr(v),b=m===1/0?null:nr(m),w=c.data("datepicker").startView;return w===2?w="decade":w===1?w="year":w===0&&(w="month"),{label:EO(i).text(),value:this.getValue(i),valueString:[c.val(),l.val()],min:y,max:b,weekstart:c.data("datepicker").weekStart,format:this._formatToString(c.data("datepicker").format),language:c.data("datepicker").language,startview:w}}},{key:"receiveMessage",value:function(i,a){var s=(0,or.default)(i),c=s.find("input"),l=c.eq(0),v=c.eq(1);Oe(a.label,EO(i)),F(a,"min")&&(this._setMin(l[0],a.min),this._setMin(v[0],a.min)),F(a,"max")&&(this._setMax(l[0],a.max),this._setMax(v[0],a.max)),F(a,"value")&&this.setValue(i,a.value),s.trigger("change")}},{key:"initialize",value:function(i){var a=(0,or.default)(i),s=a.find("input"),c=s.eq(0),l=s.eq(1),v=c.data("initial-date"),m=l.data("initial-date");v==null&&(v=this._dateAsUTC(new Date)),m==null&&(m=this._dateAsUTC(new Date)),this.setValue(i,{start:v,end:m}),this._setMin(c[0],c.data("min-date")),this._setMin(l[0],c.data("min-date")),this._setMax(c[0],l.data("max-date")),this._setMax(l[0],l.data("max-date"))}},{key:"subscribe",value:function(i,a){(0,or.default)(i).on("keyup.dateRangeInputBinding input.dateRangeInputBinding",function(){a(!0)}),(0,or.default)(i).on("changeDate.dateRangeInputBinding change.dateRangeInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,or.default)(i).off(".dateRangeInputBinding")}}]),t}(kl);var ZZ=N(mn());var lee=N(z());var ce=N(W());var Ot=eval;function Nn(e){return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Nn(e)}function eF(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function qO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tF(n.key),n)}}function rF(e,r,t){return r&&qO(e.prototype,r),t&&qO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tF(e){var r=nF(e,"string");return Nn(r)==="symbol"?r:String(r)}function nF(e,r){if(Nn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Nn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function iF(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&$l(e,r)}function $l(e,r){return $l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$l(e,r)}function oF(e){var r=sF();return function(){var n=Su(e),i;if(r){var a=Su(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return aF(this,i)}}function aF(e,r){if(r&&(Nn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uF(e)}function uF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sF(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Su(e){return Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Su(e)}function TO(e){var r=H(e.id);return Nl(e)&&(r+="-selectized"),(0,ce.default)(e).parent().parent().find('label[for="'+r+'"]')}function Nl(e){var r=(0,ce.default)(e).parent().find('script[data-for="'+H(e.id)+'"]');return r.length>0}var kO=function(e){iF(t,e);var r=oF(t);function t(){return eF(this,t),r.apply(this,arguments)}return rF(t,[{key:"find",value:function(i){return(0,ce.default)(i).find("select")}},{key:"getType",value:function(i){var a=(0,ce.default)(i);return a.hasClass("symbol")?a.attr("multiple")==="multiple"?"shiny.symbolList":"shiny.symbol":null}},{key:"getId",value:function(i){return ae.prototype.getId.call(this,i)||i.name}},{key:"getValue",value:function(i){if(Nl(i)){var a=this._selectize(i);return a==null?void 0:a.getValue()}else return(0,ce.default)(i).val()}},{key:"setValue",value:function(i,a){if(!Nl(i))(0,ce.default)(i).val(a);else{var s=this._selectize(i);s==null||s.setValue(a)}}},{key:"getState",value:function(i){for(var a=new Array(i.length),s=0;s<i.length;s++)a[s]={value:i[s].value,label:i[s].label};return{label:TO(i),value:this.getValue(i),options:a}}},{key:"receiveMessage",value:function(i,a){var s=(0,ce.default)(i);if(F(a,"options")){var c=this._selectize(i);c==null||c.destroy(),s.empty().append(a.options),this._selectize(i)}if(F(a,"config")&&(s.parent().find('script[data-for="'+H(i.id)+'"]').replaceWith(a.config),this._selectize(i,!0)),F(a,"url")){var l=this._selectize(i);l.clearOptions(),F(a,"value")&&l.clear();var v=!1;l.settings.load=function(m,y){var b=l.settings;ce.default.ajax({url:a.url,data:{query:m,field:JSON.stringify([b.searchField]),value:b.valueField,conju:b.searchConjunction,maxop:b.maxOptions},type:"GET",error:function(){y()},success:function(S){ce.default.each(S,function(q,k){var E=k[b.optgroupField||"optgroup"],P={};P[b.optgroupLabelField||"label"]=E,P[b.optgroupValueField||"value"]=E,l.addOptionGroup(E,P)}),y(S),v||(F(a,"value")?l.setValue(a.value):b.maxItems===1&&l.setValue(S[0].value)),v=!0}})},l.load(function(m){l.settings.load.apply(l,["",m])})}else F(a,"value")&&this.setValue(i,a.value);Oe(a.label,TO(i)),(0,ce.default)(i).trigger("change")}},{key:"subscribe",value:function(i,a){var s=this;(0,ce.default)(i).on("change.selectInputBinding",function(){i.nonempty&&s.getValue(i)===""||a(!1)})}},{key:"unsubscribe",value:function(i){(0,ce.default)(i).off(".selectInputBinding")}},{key:"initialize",value:function(i){this._selectize(i)}},{key:"_selectize",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!!ce.default.fn.selectize){var s=(0,ce.default)(i),c=s.parent().find('script[data-for="'+H(i.id)+'"]');if(c.length!==0){var l=ce.default.extend({labelField:"label",valueField:"value",searchField:["label"]},JSON.parse(c.html()));typeof c.data("nonempty")!="undefined"?(i.nonempty=!0,l=ce.default.extend(l,{onItemRemove:function(b){this.getValue()===""&&(0,ce.default)("select#"+H(i.id)).empty().append((0,ce.default)("<option/>",{value:b,selected:!0})).trigger("change")},onDropdownClose:function(){this.getValue()===""&&this.setValue((0,ce.default)("select#"+H(i.id)).val())}})):i.nonempty=!1,c.data("eval")instanceof Array&&ce.default.each(c.data("eval"),function(y,b){l[b]=Ot("("+l[b]+")")});var v=s.selectize(l)[0].selectize;if(a){var m=ce.default.extend(v.settings,l);v.destroy(),v=s.selectize(m)[0].selectize}return v}}}}]),t}(ae);var Ree=N(z());var vr=N(W());function jn(e){return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jn(e)}function fF(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function xO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lF(n.key),n)}}function cF(e,r,t){return r&&xO(e.prototype,r),t&&xO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lF(e){var r=pF(e,"string");return jn(r)==="symbol"?r:String(r)}function pF(e,r){if(jn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(jn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function vF(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&jl(e,r)}function jl(e,r){return jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jl(e,r)}function hF(e){var r=yF();return function(){var n=Ou(e),i;if(r){var a=Ou(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return dF(this,i)}}function dF(e,r){if(r&&(jn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mF(e)}function mF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yF(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Ou(e){return Ou=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ou(e)}var RO=function(e){vF(t,e);var r=hF(t);function t(){return fF(this,t),r.apply(this,arguments)}return cF(t,[{key:"find",value:function(i){return(0,vr.default)(i).find(".action-button")}},{key:"getValue",value:function(i){return(0,vr.default)(i).data("val")||0}},{key:"setValue",value:function(i,a){(0,vr.default)(i).data("val",a)}},{key:"getType",value:function(i){return"shiny.action"}},{key:"subscribe",value:function(i,a){(0,vr.default)(i).on("click.actionButtonInputBinding",function(){var s=(0,vr.default)(this),c=s.data("val")||0;s.data("val",c+1),a(!1)})}},{key:"getState",value:function(i){return{value:this.getValue(i)}}},{key:"receiveMessage",value:function(i,a){var s=(0,vr.default)(i);if(F(a,"label")||F(a,"icon")){var c=s.text(),l="";if(s.find("i[class]").length>0){var v=s.find("i[class]")[0];v===s.children()[0]&&(l=(0,vr.default)(v).prop("outerHTML"))}if(F(a,"label")&&(c=a.label),F(a,"icon")){var m;l=Array.isArray(a.icon)?"":(m=a.icon)!==null&&m!==void 0?m:""}s.html(l+" "+c)}F(a,"disabled")&&(a.disabled?s.attr("disabled",""):s.attr("disabled",null))}},{key:"unsubscribe",value:function(i){(0,vr.default)(i).off(".actionButtonInputBinding")}}]),t}(ae);(0,vr.default)(document).on("click","a.action-button",function(e){e.preventDefault()});var Xee=N(z());var Qe=N(W());function Ln(e){return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ln(e)}function gF(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function AO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wF(n.key),n)}}function bF(e,r,t){return r&&AO(e.prototype,r),t&&AO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wF(e){var r=SF(e,"string");return Ln(r)==="symbol"?r:String(r)}function SF(e,r){if(Ln(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Ln(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function OF(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Ll(e,r)}function Ll(e,r){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ll(e,r)}function _F(e){var r=IF();return function(){var n=_u(e),i;if(r){var a=_u(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return PF(this,i)}}function PF(e,r){if(r&&(Ln(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EF(e)}function EF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IF(){if(typeof Reflect=="undefined"||!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(e){return!1}}function _u(e){return _u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_u(e)}function $O(e){return e.attr("data-value")||e.text()}var NO=function(e){OF(t,e);var r=_F(t);function t(){return gF(this,t),r.apply(this,arguments)}return bF(t,[{key:"find",value:function(i){return(0,Qe.default)(i).find("ul.nav.shiny-tab-input")}},{key:"getValue",value:function(i){var a=dl()?(0,Qe.default)(i).find("li:not(.dropdown).active > a"):(0,Qe.default)(i).find(".nav-link:not(.dropdown-toggle).active, .dropdown-menu .dropdown-item.active");return a.length===1?$O(a):null}},{key:"setValue",value:function(i,a){var s=!1;if(a){var c=dl()?(0,Qe.default)(i).find("li:not(.dropdown) > a"):(0,Qe.default)(i).find(".nav-link:not(.dropdown-toggle), .dropdown-menu .dropdown-item");c.each(function(){if($O((0,Qe.default)(this))===a)return(0,Qe.default)(this).tab("show"),s=!0,!1})}s||(0,Qe.default)(i).trigger("change")}},{key:"getState",value:function(i){return{value:this.getValue(i)}}},{key:"receiveMessage",value:function(i,a){F(a,"value")&&this.setValue(i,a.value),(0,Qe.default)(i).trigger("change")}},{key:"subscribe",value:function(i,a){(0,Qe.default)(i).on("change shown.bootstrapTabInputBinding shown.bs.tab.bootstrapTabInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,Qe.default)(i).off(".bootstrapTabInputBinding")}}]),t}(ae);var fte=N(z());var _e=N(W());var DF=M(),BF=MO(),MF=La(),GF=!MF(function(e){Array.from(e)});DF({target:"Array",stat:!0,forced:GF},{from:BF});var FF=M(),UF=Mr().map,VF=bn(),zF=VF("map");FF({target:"Array",proto:!0,forced:!zF},{map:function(r){return UF(this,r,arguments.length>1?arguments[1]:void 0)}});var Ure=N(z());var dr=N(W());var Cl=N(W());function GO(e,r,t,n,i,a){var s=Cl.default.Event("shiny:inputchanged");return s.name=e,s.value=r,s.binding=t,s.el=n,s.inputType=i,(0,Cl.default)(a).trigger(s),s}var pre=N(z());function Dl(e){return Dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Dl(e)}function no(){"use strict";no=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&Dl(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function FO(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function UO(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){FO(a,n,i,s,c,"next",l)}function c(l){FO(a,n,i,s,c,"throw",l)}s(void 0)})}}var Bl;function VO(e){Bl=e}function Pr(){if(typeof Bl=="undefined")throw"Shiny has not finish initialization yet. Please wait for the 'shiny-initialized' event.";return Bl}function hr(e,r,t){Pr().setInputValue(e,r,t)}function _t(){return Pr().shinyapp}function zO(e){Pr().user=e}function HO(e){Pr().forgetLastInputValue(e)}function io(e){return Ml.apply(this,arguments)}function Ml(){return Ml=UO(no().mark(function e(r){return no().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Pr().bindAll(r);case 2:case"end":return n.stop()}},e)})),Ml.apply(this,arguments)}function qe(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Pr().unbindAll(e,r)}function oo(e){Pr().initializeInputs(e)}function KO(e,r){return Gl.apply(this,arguments)}function Gl(){return Gl=UO(no().mark(function e(r,t){return no().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_t().bindOutput(r,t);case 2:case"end":return i.stop()}},e)})),Gl.apply(this,arguments)}function WO(e,r){return _t().unbindOutput(e,r)}function YO(){return Pr().oncustommessage}var XO;function QO(){return XO}function JO(e){XO=e}function ZO(){return Pr().createSocket}function Cn(e){return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Cn(e)}function HF(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Fl(e,r)}function Fl(e,r){return Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fl(e,r)}function KF(e){var r=YF();return function(){var n=Pu(e),i;if(r){var a=Pu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return WF(this,i)}}function WF(e,r){if(r&&(Cn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fr(e)}function Fr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YF(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Pu(e){return Pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pu(e)}function r_(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function e_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n_(n.key),n)}}function t_(e,r,t){return r&&e_(e.prototype,r),t&&e_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ar(e,r,t){return r=n_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n_(e){var r=XF(e,"string");return Cn(r)==="symbol"?r:String(r)}function XF(e,r){if(Cn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Cn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var QF=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r_(this,e),ar(this,"files",void 0),ar(this,"fileIndex",-1),ar(this,"aborted",!1),ar(this,"completed",!1),this.files=Array.from(r),t&&this.$run()}return t_(e,[{key:"onBegin",value:function(t,n){setTimeout(n,0)}},{key:"onFile",value:function(t,n){setTimeout(n,0)}},{key:"onComplete",value:function(){}},{key:"onAbort",value:function(){}},{key:"abort",value:function(){this.completed||this.aborted||(this.aborted=!0,this.onAbort())}},{key:"$getRun",value:function(){var t=this,n=!1;return function(){n||(n=!0,t.$run())}}},{key:"$run",value:function(){if(!(this.aborted||this.completed)){if(this.fileIndex<0){this.fileIndex=0,this.onBegin(this.files,this.$getRun());return}if(this.fileIndex===this.files.length){this.completed=!0,this.onComplete();return}var t=this.files[this.fileIndex++];this.onFile(t,this.$getRun())}}}]),e}(),Ul=function(e){HF(t,e);var r=KF(t);function t(n,i,a,s){var c;return r_(this,t),c=r.call(this,a,!1),ar(Fr(c),"shinyapp",void 0),ar(Fr(c),"id",void 0),ar(Fr(c),"el",void 0),ar(Fr(c),"jobId",void 0),ar(Fr(c),"uploadUrl",void 0),ar(Fr(c),"progressBytes",void 0),ar(Fr(c),"totalBytes",void 0),c.shinyapp=n,c.id=i,c.el=s,c.$run(),c}return t_(t,[{key:"makeRequest",value:function(i,a,s,c,l){this.shinyapp.makeRequest(i,a,s,c,l)}},{key:"onBegin",value:function(i,a){var s=this;this.$setError(null),this.$setActive(!0),this.$setVisible(!0),this.onProgress(null,0),this.totalBytes=0,this.progressBytes=0,dr.default.each(i,function(l,v){s.totalBytes+=v.size});var c=dr.default.map(i,function(l){return{name:l.name,size:l.size,type:l.type}});this.makeRequest("uploadInit",[c],function(l){s.jobId=l.jobId,s.uploadUrl=l.uploadUrl,a()},function(l){s.onError(l)},void 0)}},{key:"onFile",value:function(i,a){var s=this;this.onProgress(i,0),dr.default.ajax(this.uploadUrl,{type:"POST",cache:!1,xhr:function(){if(typeof dr.default.ajaxSettings.xhr!="function")throw"jQuery's XHR is not a function";var l=dr.default.ajaxSettings.xhr();return l.upload&&(l.upload.onprogress=function(v){v.lengthComputable&&s.onProgress(i,(s.progressBytes+v.loaded)/s.totalBytes)}),l},data:i,contentType:"application/octet-stream",processData:!1,success:function(){s.progressBytes+=i.size,a()},error:function(l,v,m){s.onError(l.responseText||v)}})}},{key:"onComplete",value:function(){var i=this,a=dr.default.map(this.files,function(c,l){return{name:c.name,size:c.size,type:c.type}}),s=GO(this.id,a,QO(),this.el,"shiny.fileupload",document);this.makeRequest("uploadEnd",[this.jobId,this.id],function(){i.$setActive(!1),i.onProgress(null,1),i.$bar().text("Upload complete"),(0,dr.default)(s.el).val("")},function(c){i.onError(c)},void 0),this.$bar().text("Finishing upload")}},{key:"onError",value:function(i){this.$setError(i||""),this.$setActive(!1)}},{key:"onAbort",value:function(){this.$setVisible(!1)}},{key:"onProgress",value:function(i,a){this.$bar().width(Math.round(a*100)+"%"),this.$bar().text(i?i.name:"")}},{key:"$container",value:function(){return(0,dr.default)("#"+H(this.id)+"_progress.shiny-file-input-progress")}},{key:"$bar",value:function(){return(0,dr.default)("#"+H(this.id)+"_progress.shiny-file-input-progress .progress-bar")}},{key:"$setVisible",value:function(i){this.$container().css("visibility",i?"visible":"hidden")}},{key:"$setError",value:function(i){this.$bar().toggleClass("progress-bar-danger",i!==null),i!==null&&(this.onProgress(null,1),this.$bar().text(i))}},{key:"$setActive",value:function(i){this.$container().toggleClass("active",!!i)}}]),t}(QF);function Dn(e){return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Dn(e)}function JF(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function i_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eU(n.key),n)}}function ZF(e,r,t){return r&&i_(e.prototype,r),t&&i_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eU(e){var r=rU(e,"string");return Dn(r)==="symbol"?r:String(r)}function rU(e,r){if(Dn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Dn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function tU(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Vl(e,r)}function Vl(e,r){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vl(e,r)}function nU(e){var r=aU();return function(){var n=qu(e),i;if(r){var a=qu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return iU(this,i)}}function iU(e,r){if(r&&(Dn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oU(e)}function oU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aU(){if(typeof Reflect=="undefined"||!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(e){return!1}}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qu(e)}var Eu="shiny-file-input-active",Iu="shiny-file-input-over";function ao(e){return(0,_e.default)(e).closest("div.input-group")}function o_(e){var r=(0,_e.default)(e),t=0;return r.on({"dragenter.draghover":function(i){t++===0&&r.trigger("draghover:enter",i)},"dragleave.draghover":function(i){--t===0&&r.trigger("draghover:leave",i),t<0&&console.error("draghover childCounter is negative somehow")},"dragover.draghover":function(i){i.preventDefault()},"drop.draghover":function(i){t=0,r.trigger("draghover:drop",i),i.preventDefault()}}),r}function a_(e){return(0,_e.default)(e).off(".draghover")}function uU(){var e=(0,_e.default)("html");o_(e).on({"draghover:enter.draghover":function(){ao(Er).addClass(Eu)},"draghover:leave.draghover":function(){ao(Er).removeClass(Eu)},"draghover:drop.draghover":function(){ao(Er).removeClass(Iu).removeClass(Eu)}})}function sU(){var e=(0,_e.default)("html");e.off(".draghover"),a_(e)}function fU(e){var r=document.createElement("input");r.type="file";try{r.files=e}catch(t){return!1}return!0}function cU(e,r){var t,n,i=(t=e.originalEvent)===null||t===void 0||(n=t.dataTransfer)===null||n===void 0?void 0:n.files,a=(0,_e.default)(r);i==null?console.log("Dropping files is not supported on this browser. (no FileList)"):fU(i)?(a.val(""),r.files=i,a.trigger("change")):(a.val(""),lU(r,i))}function u_(e,r){var t=e.closest("div.input-group").find("input[type=text]");r.length===1?t.val(r[0].name):t.val(r.length+" files")}function s_(e){var r=e.data("currentUploader");r&&r.abort(),e.removeAttr("data-restore")}function lU(e,r){var t=(0,_e.default)(e);s_(t),u_(t,r),t.data("currentUploader",new Ul(_t(),zl(e),r,e))}function pU(e){var r=(0,_e.default)(e.target);s_(r);var t=e.target.files,n=zl(e.target);t.length!==0&&(u_(r,t),r.data("currentUploader",new Ul(_t(),n,t,e.target)))}var Er=(0,_e.default)();function zl(e){return ae.prototype.getId.call(this,e)||e.name}var f_=function(e){tU(t,e);var r=nU(t);function t(){return JF(this,t),r.apply(this,arguments)}return ZF(t,[{key:"find",value:function(i){return(0,_e.default)(i).find('input[type="file"]')}},{key:"getId",value:function(i){return zl(i)}},{key:"getValue",value:function(i){var a=(0,_e.default)(i).attr("data-restore");if(a){var s=JSON.parse(a),c=(0,_e.default)(i).closest("div.input-group").find("input[type=text]");s.name.length===1?c.val(s.name[0]):c.val(s.name.length+" files");var l=(0,_e.default)(i).closest("div.form-group").find(".progress"),v=l.find(".progress-bar");return l.removeClass("active"),v.width("100%"),v.css("visibility","visible"),s}else return null}},{key:"setValue",value:function(i,a){}},{key:"getType",value:function(i){return"shiny.file"}},{key:"subscribe",value:function(i,a){(0,_e.default)(i).on("change.fileInputBinding",pU),Er.length===0&&uU(),Er=Er.add(i);var s=ao(i);o_(s).on({"draghover:enter.draghover":function(l){s.addClass(Iu)},"draghover:leave.draghover":function(l){s.removeClass(Iu),l.stopPropagation()},"draghover:drop.draghover":function(l,v){cU(v,i)}})}},{key:"unsubscribe",value:function(i){var a=(0,_e.default)(i),s=ao(i);s.removeClass(Iu).removeClass(Eu),a_(s),a.off(".fileInputBinding"),s.off(".draghover"),Er=Er.not(i),Er.length===0&&sU()}}]),t}(ae);function c_(){var e=new fu;e.register(new In,"shiny.textInput"),e.register(new lO,"shiny.textareaInput"),e.register(new sO,"shiny.passwordInput"),e.register(new oO,"shiny.numberInput"),e.register(new C0,"shiny.checkboxInput"),e.register(new V0,"shiny.checkboxGroupInput"),e.register(new hO,"shiny.radioInput"),e.register(new _O,"shiny.sliderInput"),e.register(new wO,"shiny.dateInput"),e.register(new IO,"shiny.dateRangeInput"),e.register(new kO,"shiny.selectInput"),e.register(new RO,"shiny.actionButtonInput"),e.register(new NO,"shiny.bootstrapTabInput");var r=new f_;return e.register(r,"shiny.fileInputBinding"),{inputBindings:e,fileInputBinding:r}}var Sne=N(z());var Wl=N(W());var vU=M(),hU=Y(),dU=pi(),mU=Ae(),yU=Jt(),gU=hU([].join),bU=dU!=Object,wU=bU||!yU("join",",");vU({target:"Array",proto:!0,forced:wU},{join:function(r){return gU(mU(this),r===void 0?",":r)}});var jte=N(ve());var Hte=N(z());var Pt=N(W());function Bn(e){return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bn(e)}function Hl(){"use strict";Hl=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&Bn(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function l_(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function SU(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){l_(a,n,i,s,c,"next",l)}function c(l){l_(a,n,i,s,c,"throw",l)}s(void 0)})}}function OU(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function p_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v_(n.key),n)}}function _U(e,r,t){return r&&p_(e.prototype,r),t&&p_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PU(e,r,t){return r=v_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function v_(e){var r=EU(e,"string");return Bn(r)==="symbol"?r:String(r)}function EU(e,r){if(Bn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Bn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Pe=function(){function e(){OU(this,e),PU(this,"name",void 0)}return _U(e,[{key:"find",value:function(t){throw"Not implemented"}},{key:"renderValue",value:function(t,n){throw"Not implemented"}},{key:"getId",value:function(t){return t.getAttribute("data-input-id")||t.id}},{key:"onValueChange",value:function(){var r=SU(Hl().mark(function n(i,a){return Hl().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.clearError(i),c.next=3,this.renderValue(i,a);case 3:case"end":return c.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"onValueError",value:function(t,n){this.renderError(t,n)}},{key:"renderError",value:function(t,n){if(this.clearError(t),n.message===""){(0,Pt.default)(t).empty();return}var i="shiny-output-error";n.type!==null&&(i=i+" "+Pt.default.map(Qi(n.type),function(a){return i+"-"+a}).join(" ")),(0,Pt.default)(t).addClass(i).text(n.message)}},{key:"clearError",value:function(t){(0,Pt.default)(t).attr("class",function(n,i){return i.replace(/(^|\s)shiny-output-error\S*/g,"")})}},{key:"showProgress",value:function(t,n){var i="recalculating";n?(0,Pt.default)(t).addClass(i):(0,Pt.default)(t).removeClass(i)}}]),e}();function Mn(e){return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mn(e)}function IU(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function h_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TU(n.key),n)}}function qU(e,r,t){return r&&h_(e.prototype,r),t&&h_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TU(e){var r=kU(e,"string");return Mn(r)==="symbol"?r:String(r)}function kU(e,r){if(Mn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Mn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function xU(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Kl(e,r)}function Kl(e,r){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kl(e,r)}function RU(e){var r=NU();return function(){var n=Tu(e),i;if(r){var a=Tu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return AU(this,i)}}function AU(e,r){if(r&&(Mn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $U(e)}function $U(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NU(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Tu(e){return Tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tu(e)}var d_=function(e){xU(t,e);var r=RU(t);function t(){return IU(this,t),r.apply(this,arguments)}return qU(t,[{key:"find",value:function(i){return(0,Wl.default)(i).find(".shiny-text-output")}},{key:"renderValue",value:function(i,a){(0,Wl.default)(i).text(a)}}]),t}(Pe);var Mne=N(z());var uo=N(W());function Gn(e){return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gn(e)}function jU(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function m_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CU(n.key),n)}}function LU(e,r,t){return r&&m_(e.prototype,r),t&&m_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CU(e){var r=DU(e,"string");return Gn(r)==="symbol"?r:String(r)}function DU(e,r){if(Gn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Gn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function BU(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Yl(e,r)}function Yl(e,r){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yl(e,r)}function MU(e){var r=UU();return function(){var n=ku(e),i;if(r){var a=ku(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return GU(this,i)}}function GU(e,r){if(r&&(Gn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FU(e)}function FU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UU(){if(typeof Reflect=="undefined"||!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(e){return!1}}function ku(e){return ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ku(e)}var y_=function(e){BU(t,e);var r=MU(t);function t(){return jU(this,t),r.apply(this,arguments)}return LU(t,[{key:"find",value:function(i){return(0,uo.default)(i).find("a.shiny-download-link")}},{key:"renderValue",value:function(i,a){i.setAttribute("href",a),i.classList.remove("disabled"),i.removeAttribute("aria-disabled"),i.removeAttribute("tabindex")}},{key:"showProgress",value:function(i,a){}}]),t}(Pe);(0,uo.default)(document).on("click.shinyDownloadLink","a.shiny-download-link",function(e){var r=uo.default.Event("shiny:filedownload");r.name=this.id,r.href=this.href,(0,uo.default)(document).trigger(r)});var Lie=N(ve());var VU=te(),zU=Wi(),HU=ne(),KU=ze(),WU=He(),b_=Xl(),w_=pe(),YU=Ar(),XU=Yi();zU("search",function(e,r,t){return[function(i){var a=WU(this),s=KU(i)?void 0:YU(i,e);return s?VU(s,i,a):new RegExp(i)[e](w_(a))},function(n){var i=HU(this),a=w_(n),s=t(r,i,a);if(s.done)return s.value;var c=i.lastIndex;b_(c,0)||(i.lastIndex=0);var l=XU(i,a);return b_(i.lastIndex,c)||(i.lastIndex=c),l===null?-1:l.index}]});var Xie=N(z());var mr=N(W());var eie=N(z());function fo(e){return fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},fo(e)}function QU(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function S_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O_(n.key),n)}}function JU(e,r,t){return r&&S_(e.prototype,r),t&&S_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function so(e,r,t){return r=O_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function O_(e){var r=ZU(e,"string");return fo(r)==="symbol"?r:String(r)}function ZU(e,r){if(fo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(fo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var ur=function(){function e(r,t,n){QU(this,e),so(this,"target",void 0),so(this,"func",void 0),so(this,"delayMs",void 0),so(this,"timerId",void 0),so(this,"args",void 0),this.target=r,this.func=t,this.delayMs=n,this.timerId=null,this.args=null}return JU(e,[{key:"normalCall",value:function(){var t=this;this.$clearTimer();for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];this.args=i,this.timerId=setTimeout(function(){t.timerId!==null&&(t.$clearTimer(),t.$invoke())},this.delayMs)}},{key:"immediateCall",value:function(){this.$clearTimer();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.args=n,this.$invoke()}},{key:"isPending",value:function(){return this.timerId!==null}},{key:"$clearTimer",value:function(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}},{key:"$invoke",value:function(){this.args&&this.args.length>0?this.func.apply(this.target,this.args):this.func.apply(this.target),this.args=null}}]),e}();function Ur(e,r){var t=null;return function n(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];t!==null&&(clearTimeout(t),t=null),t=setTimeout(function(){t!==null&&(t=null,r.apply(n,a))},e)}}var pie=N(z());function co(e){return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},co(e)}function eV(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function __(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E_(n.key),n)}}function rV(e,r,t){return r&&__(e.prototype,r),t&&__(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function P_(e,r,t){return r=E_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function E_(e){var r=tV(e,"string");return co(r)==="symbol"?r:String(r)}function tV(e,r){if(co(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(co(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Ql=function(){function e(r,t){eV(this,e),P_(this,"target",void 0),P_(this,"func",void 0),this.target=r,this.func=t}return rV(e,[{key:"normalCall",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.func.apply(this.target,n)}},{key:"immediateCall",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.func.apply(this.target,n)}}]),e}();var Pie=N(z());function po(e){return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},po(e)}function nV(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function I_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q_(n.key),n)}}function iV(e,r,t){return r&&I_(e.prototype,r),t&&I_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lo(e,r,t){return r=q_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function q_(e){var r=oV(e,"string");return po(r)==="symbol"?r:String(r)}function oV(e,r){if(po(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(po(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Fn=function(){function e(r,t,n){nV(this,e),lo(this,"target",void 0),lo(this,"func",void 0),lo(this,"delayMs",void 0),lo(this,"timerId",void 0),lo(this,"args",void 0),this.target=r,this.func=t,this.delayMs=n,this.timerId=null,this.args=null}return iV(e,[{key:"normalCall",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.args=n,this.timerId===null&&this.$invoke()}},{key:"immediateCall",value:function(){this.$clearTimer();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.args=n,this.$invoke()}},{key:"isPending",value:function(){return this.args!==null}},{key:"$clearTimer",value:function(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}},{key:"$invoke",value:function(){var t=this;this.args!==null&&(this.func.apply(this.target,this.args),this.args=null,this.timerId=setTimeout(function(){t.timerId!==null&&(t.$clearTimer(),t.isPending()&&t.$invoke())},this.delayMs))}}]),e}();function Un(e){return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Un(e)}function aV(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function T_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sV(n.key),n)}}function uV(e,r,t){return r&&T_(e.prototype,r),t&&T_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sV(e){var r=fV(e,"string");return Un(r)==="symbol"?r:String(r)}function fV(e,r){if(Un(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Un(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function cV(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Jl(e,r)}function Jl(e,r){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jl(e,r)}function lV(e){var r=hV();return function(){var n=xu(e),i;if(r){var a=xu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return pV(this,i)}}function pV(e,r){if(r&&(Un(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vV(e)}function vV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hV(){if(typeof Reflect=="undefined"||!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(e){return!1}}function xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xu(e)}var k_=function(e){cV(t,e);var r=lV(t);function t(){return aV(this,t),r.apply(this,arguments)}return uV(t,[{key:"find",value:function(i){return(0,mr.default)(i).find(".shiny-datatable-output")}},{key:"onValueError",value:function(i,a){qe(i),this.renderError(i,a)}},{key:"renderValue",value:function(i,a){var s,c,l,v,m=(0,mr.default)(i).empty();if(!(!a||!a.colnames)){var y=mr.default.makeArray(a.colnames),b=mr.default.map(y,function($){return"<th>"+$+"</th>"}).join("");b="<thead><tr>"+b+"</tr></thead>";var w="";(!((s=(c=a.options)===null||c===void 0?void 0:c.searching)!==null&&s!==void 0)||s)&&(w=mr.default.map(y,function($){return'<th><input type="text" placeholder="'+v0($.replace(/(<([^>]+)>)/gi,""))+'" /></th>'}).join(""),w="<tfoot>"+w+"</tfoot>");var S='<table class="table table-striped table-hover">'+b+w+"</table>";m.append(S),a.evalOptions&&mr.default.each(a.evalOptions,function($,R){a.options[R]=Ot("("+a.options[R]+")")});var q=((l=a.options)===null||l===void 0||(v=l.search)===null||v===void 0?void 0:v.caseInsensitive)!==!1,k=(0,mr.default)(i).children("table").DataTable(mr.default.extend({processing:!0,serverSide:!0,order:[],orderClasses:!1,pageLength:25,ajax:{url:a.action,type:"POST",data:function(R){R.search||(R.search={}),R.search.caseInsensitive=q,R.escape=a.escape}}},a.options));if(typeof a.callback=="string"){var E=Ot("("+a.callback+")");typeof E=="function"&&E(k)}m.find("label input").first().unbind("keyup").keyup(Ur(a.searchDelay,function(){k.search(this.value).draw()}));var P=m.find("tfoot input");P.length>0&&(mr.default.each(k.settings()[0].aoColumns,function($,R){R.bSearchable||P.eq($).hide()}),P.keyup(Ur(a.searchDelay,function(){k.column(P.index(this)).search(this.value).draw()}))),m.parents(".tab-content").css("overflow","visible")}}}]),t}(Pe);var wae=N(z());var Q_=N(W());var Ioe=N(ve());var SV=M(),OV=Zl().entries;SV({target:"Object",stat:!0},{entries:function(r){return OV(r)}});var Loe=N(z());var _V=M(),PV=te(),EV=Ke(),IV=pt(),qV=ji(),TV=ht(),kV=Ca();_V({target:"Promise",stat:!0,forced:kV},{allSettled:function(r){var t=this,n=IV.f(t),i=n.resolve,a=n.reject,s=qV(function(){var c=EV(t.resolve),l=[],v=0,m=1;TV(r,function(y){var b=v++,w=!1;m++,PV(c,t,y).then(function(S){w||(w=!0,l[b]={status:"fulfilled",value:S},--m||i(l))},function(S){w||(w=!0,l[b]={status:"rejected",reason:S},--m||i(l))})}),--m||i(l)});return s.error&&a(s.value),n.promise}});var Be=N(W());var hoe=N(z());function vo(e){return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},vo(e)}function xV(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function $_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j_(n.key),n)}}function RV(e,r,t){return r&&$_(e.prototype,r),t&&$_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N_(e,r,t){return r=j_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function j_(e){var r=AV(e,"string");return vo(r)==="symbol"?r:String(r)}function AV(e,r){if(vo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(vo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var $V=function(){function e(){xV(this,e),N_(this,"regular",void 0),N_(this,"transitioned",void 0)}return RV(e,[{key:"setImageSend",value:function(t,n){var i=new ur(null,n,0);return this.regular=function(){i.normalCall()},t.lastChanceCallback.push(function(){i.isPending()&&i.immediateCall()}),this.transitioned=Ur(200,this.regular),i}}]),e}(),sr=new $V;var boe=N(ve());var Ir=N(W()),NV=/<!--(SHINY.SINGLETON\[([\w]+)\])-->([\s\S]*?)<!--\/\1-->/,jV=/<head(?:\s[^>]*)?>([\s\S]*?)<\/head>/,Ru={};function ep(e,r,t){var n=DV(e);switch(CV(n.head),LV(n.singletons),t.toLowerCase()){case"replace":(0,Ir.default)(r).html(n.html);break;case"beforebegin":(0,Ir.default)(r).before(n.html);break;case"afterbegin":(0,Ir.default)(r).prepend(n.html);break;case"beforeend":(0,Ir.default)(r).append(n.html);break;case"afterend":(0,Ir.default)(r).after(n.html);break;default:throw new Error("Unknown where position: "+t)}return n}function LV(e){Ir.default.extend(Ru,e)}function L_(e){if(typeof e=="string")Ru[e]=!0;else if(e instanceof Array)for(var r=0;r<e.length;r++)Ru[e[r]]=!0}function CV(e){if(e.length>0)for(var r=(0,Ir.default)("<div>"+e+"</div>").get(0),t=(0,Ir.default)("head");r.hasChildNodes();)t.append(r.firstChild)}function DV(e){for(var r={},t,n=function(c,l,v,m){return Ru[v]||r[v]?"":(r[v]=!0,m)};t=e.replace(NV,n),e.length!==t.length;)e=t;for(var i=[],a=function(c,l){return i.push(l),""};t=e.replace(jV,a),e.length!==t.length;)e=t;return{html:e,head:i.join("\n"),singletons:r}}function fr(){"use strict";fr=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&ho(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function Vn(e,r){return GV(e)||MV(e,r)||M_(e,r)||BV()}function BV(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function MV(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,v=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){v=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(v)throw i}}return c}}function GV(e){if(Array.isArray(e))return e}function B_(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=M_(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return a=v.done,v},e:function(v){s=!0,c=v},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function M_(e,r){if(!!e){if(typeof e=="string")return C_(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C_(e,r)}}function C_(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function ho(e){return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ho(e)}function D_(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function yo(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){D_(a,n,i,s,c,"next",l)}function c(l){D_(a,n,i,s,c,"throw",l)}s(void 0)})}}function Me(e,r){return rp.apply(this,arguments)}function rp(){return rp=yo(fr().mark(function e(r,t){var n,i,a,s,c,l,v=arguments;return fr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return n=v.length>2&&v[2]!==void 0?v[2]:"replace",n==="replace"&&qe(r),i="",a=[],t===null?i="":typeof t=="string"?i=t:ho(t)==="object"&&(i=t.html,a=t.deps||[]),y.next=7,go(i,r,a,n);case 7:if(s=r,n!=="replace"){y.next=14;break}return oo(r),y.next=12,io(r);case 12:y.next=19;break;case 14:return c=(0,Be.default)(r).parent(),c.length>0&&(s=c,(n==="beforeBegin"||n==="afterEnd")&&(l=c.parent(),l.length>0&&(s=l))),oo(s),y.next=19,io(s);case 19:case"end":return y.stop()}},e)})),rp.apply(this,arguments)}function G_(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"replace";t==="replace"&&qe(e);var n="",i=[];r===null?n="":typeof r=="string"?n=r:ho(r)==="object"&&(n=r.html,i=r.deps||[]),ap(n,e,i,t);var a=e;if(t==="replace")return oo(e),io(e);var s=(0,Be.default)(e).parent();if(s.length>0&&(a=s,t==="beforeBegin"||t==="afterEnd")){var c=s.parent();c.length>0&&(a=c)}return oo(a),io(a)}function go(e,r,t){return tp.apply(this,arguments)}function tp(){return tp=yo(fr().mark(function e(r,t,n){var i,a=arguments;return fr().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i=a.length>3&&a[3]!==void 0?a[3]:"replace",c.next=3,Et(n);case 3:return c.abrupt("return",ep(r,t,i));case 4:case"end":return c.stop()}},e)})),tp.apply(this,arguments)}function ap(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"replace";return up(t),ep(e,r,n)}function Et(e){return np.apply(this,arguments)}function np(){return np=yo(fr().mark(function e(r){var t,n,i;return fr().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!r){s.next=18;break}t=B_(r),s.prev=2,t.s();case 4:if((n=t.n()).done){s.next=10;break}return i=n.value,s.next=8,VV(i);case 8:s.next=4;break;case 10:s.next=15;break;case 12:s.prev=12,s.t0=s.catch(2),t.e(s.t0);case 15:return s.prev=15,t.f(),s.finish(15);case 18:case"end":return s.stop()}},e,null,[[2,12,15,18]])})),np.apply(this,arguments)}function up(e){if(e){var r=B_(e),t;try{for(r.s();!(t=r.n()).done;){var n=t.value;zV(n)}}catch(i){r.e(i)}finally{r.f()}}}var mo={};function Au(e,r){mo[e]=r}function F_(e){if(!e.restyle)return!1;var r=Object.keys(mo),t=r.indexOf(e.name);return t===-1?!1:mo[r[t]]===e.version}function U_(e){var r=(0,Be.default)("head").first(),t=function(s,c){var l=new XMLHttpRequest;l.open("GET",s),l.onload=function(){var v="shiny_restyle_"+s.split("?restyle")[0].replace(/\W/g,"_"),m=r.find("style#"+v),y=(0,Be.default)("<style>").attr("id",v).html(l.responseText);r.append(y),m.remove(),i(c),sr.transitioned()},l.send()},n=function(s){if(!s)return null;for(var c=0;c<document.styleSheets.length;c++){var l=document.styleSheets[c];if(typeof l.href=="string"&&l.href.indexOf(s)>-1)return l}return null},i=function(s){!s||(s.disabled=!0,ft()&&(s.cssText=""),s.ownerNode instanceof Element&&(0,Be.default)(s.ownerNode).remove())};e.map(function(a){var s=(0,Be.default)(a),c=n(s.attr("href")),l=s.attr("href")+"?restyle="+new Date().getTime();ft()?t(l,c):(s.attr("href",l),s.attr("onload",function(){var v=(0,Be.default)("<div>").css("transition","0.1s all").css("position","absolute").css("top","-1000px").css("left","0");v.one("transitionend",function(){v.remove(),i(c),sr.transitioned()}),(0,Be.default)(document.body).append(v);var m="#"+Math.floor(Math.random()*16777215).toString(16);setTimeout(function(){return v.css("color",m)},10)}),r.append(a))})}function sp(e){return e.stylesheet.map(function(r){F(r,"rel")||(r.rel="stylesheet"),F(r,"type")||(r.type="text/css");var t=document.createElement("link");return Object.entries(r).forEach(function(n){var i=Vn(n,2),a=i[0],s=i[1];a==="href"&&(s=encodeURI(s)),t.setAttribute(a,s||"")}),t})}function V_(e,r){var t=sp(e);t.length!==0&&r.append(t)}function FV(e,r){e.script.forEach(function(t){var n=document.createElement("script");Object.entries(t).forEach(function(i){var a=Vn(i,2),s=a[0],c=a[1];s==="src"&&(c=encodeURI(c)),n.setAttribute(s,c||"")}),r.append(n)})}function UV(e){return ip.apply(this,arguments)}function ip(){return ip=yo(fr().mark(function e(r){var t;return fr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t=[],r.script.forEach(function(a){var s=document.createElement("script");F(a,"async")||(s.async=!1),Object.entries(a).forEach(function(l){var v=Vn(l,2),m=v[0],y=v[1];m==="src"&&(y=encodeURI(y)),s.setAttribute(m,y||"")});var c=new Promise(function(l,v){s.onload=function(m){l(null)},s.onerror=function(m){v(m)}});t.push(c),document.head.append(s)}),i.next=4,Promise.allSettled(t);case 4:case"end":return i.stop()}},e)})),ip.apply(this,arguments)}function z_(e,r){e.meta.forEach(function(t){for(var n=document.createElement("meta"),i=0,a=Object.entries(t);i<a.length;i++){var s=Vn(a[i],2),c=s[0],l=s[1];n.setAttribute(c,l)}r.append(n)})}function H_(e,r){e.attachment.forEach(function(t){var n=(0,Be.default)("<link rel='attachment'>").attr("id",e.name+"-"+t.key+"-attachment").attr("href",encodeURI(t.href));r.append(n)})}function K_(e,r){if(e.head){var t=(0,Be.default)("<head></head>");t.html(e.head),r.append(t.children())}}function VV(e){return op.apply(this,arguments)}function op(){return op=yo(fr().mark(function e(r){var t,n;return fr().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t=W_(r),!F_(t)){a.next=4;break}return U_(sp(t)),a.abrupt("return",!0);case 4:if(!F(mo,t.name)){a.next=6;break}return a.abrupt("return",!1);case 6:return Au(t.name,t.version),n=(0,Be.default)("head").first(),z_(t,n),V_(t,n),a.next=12,UV(t);case 12:return H_(t,n),K_(t,n),a.abrupt("return",!0);case 15:case"end":return a.stop()}},e)})),op.apply(this,arguments)}function zV(e){var r=W_(e);if(F_(r))return U_(sp(r)),!0;if(F(mo,r.name))return!1;Au(r.name,r.version);var t=(0,Be.default)("head").first();return z_(r,t),V_(r,t),FV(r,t),H_(r,t),K_(r,t),!0}function W_(e){var r,t=(r=e.src)===null||r===void 0?void 0:r.href,n={name:e.name,version:e.version,restyle:e.restyle,meta:[],stylesheet:[],script:[],attachment:[],head:e.head};e.meta&&(Array.isArray(e.meta)?n.meta=e.meta:n.meta=Object.entries(e.meta).map(function(s){var c=Vn(s,2),l=c[0],v=c[1];return{name:l,content:v}})),n.stylesheet=Qi(e.stylesheet).map(function(s){return typeof s=="string"&&(s={href:s}),t&&(s.href=t+"/"+s.href),s}),n.script=Qi(e.script).map(function(s){return typeof s=="string"&&(s={src:s}),t&&(s.src=t+"/"+s.src),s});var i=e.attachment;if(i||(i=[]),typeof i=="string"&&(i=[i]),Array.isArray(i)){var a=i;i=a.map(function(s,c){return typeof s=="string"?{key:(c+1).toString(),href:s}:s})}else i=Object.entries(i).map(function(s){var c=Vn(s,2),l=c[0],v=c[1];return{key:l,href:v}});return n.attachment=i.map(function(s){return t&&(s.href=t+"/"+s.href),s}),n}function It(e){return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},It(e)}function fp(){"use strict";fp=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&It(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function Y_(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function HV(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){Y_(a,n,i,s,c,"next",l)}function c(l){Y_(a,n,i,s,c,"throw",l)}s(void 0)})}}function KV(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function X_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YV(n.key),n)}}function WV(e,r,t){return r&&X_(e.prototype,r),t&&X_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YV(e){var r=XV(e,"string");return It(r)==="symbol"?r:String(r)}function XV(e,r){if(It(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(It(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function QV(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&cp(e,r)}function cp(e,r){return cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cp(e,r)}function JV(e){var r=rz();return function(){var n=$u(e),i;if(r){var a=$u(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return ZV(this,i)}}function ZV(e,r){if(r&&(It(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ez(e)}function ez(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rz(){if(typeof Reflect=="undefined"||!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(e){return!1}}function $u(e){return $u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$u(e)}var J_=function(e){QV(t,e);var r=JV(t);function t(){return KV(this,t),r.apply(this,arguments)}return WV(t,[{key:"find",value:function(i){return(0,Q_.default)(i).find(".shiny-html-output")}},{key:"onValueError",value:function(i,a){qe(i),this.renderError(i,a)}},{key:"renderValue",value:function(){var n=HV(fp().mark(function a(s,c){return fp().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,Me(s,c);case 2:case"end":return v.stop()}},a)}));function i(a,s){return n.apply(this,arguments)}return i}()}]),t}(Pe);var tz=M(),nz=Mr().filter,iz=bn(),oz=iz("filter");tz({target:"Array",proto:!0,forced:!oz},{filter:function(r){return nz(this,r,arguments.length>1?arguments[1]:void 0)}});var Zue=N(z());var Hr=N(W());var az=M(),uz=Mr().some,sz=Jt(),fz=sz("some");az({target:"Array",proto:!0,forced:!fz},{some:function(r){return uz(this,r,arguments.length>1?arguments[1]:void 0)}});var cz=M(),lz=Zl().values;cz({target:"Object",stat:!0},{values:function(r){return lz(r)}});var pz=M(),vz=ie(),hz=sf(),dz=Ae(),mz=er(),yz=dt();pz({target:"Object",stat:!0,sham:!vz},{getOwnPropertyDescriptors:function(r){for(var t=dz(r),n=mz.f,i=hz(t),a={},s=0,c,l;i.length>s;)l=n(t,c=i[s++]),l!==void 0&&yz(a,c,l);return a}});var gz=M(),bz=ie(),Z_=ba().f;gz({target:"Object",stat:!0,forced:Object.defineProperties!==Z_,sham:!bz},{defineProperties:Z_});var pue=N(z());var iP=N(W());var tP=N(W());function eP(e,r,t,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;a=a||!0;var s=(i-n)/(t-r),c=e-r,l=c*s+n;if(a){var v=Math.max(i,n),m=Math.min(i,n);l>v?l=v:l<m&&(l=m)}return l}function rP(e,r,t,n,i){return{scale:function(s,c){return i&&(s=Math.log(s)/Math.log(i)),eP(s,e,r,t,n,c)},scaleInv:function(s,c){var l=eP(s,t,n,e,r,c);return i&&(l=Math.pow(i,l)),l}}}function wz(e){var r=e,t=r.domain,n=r.range,i=r.log&&r.log.x?r.log.x:null,a=r.log&&r.log.y?r.log.y:null,s=rP(t.left,t.right,n.left,n.right,i),c=rP(t.bottom,t.top,n.bottom,n.top,a);function l(m,y){return ir(m,function(b,w){var S=w.substring(0,1);return S==="x"?s.scale(b,y):S==="y"?c.scale(b,y):null})}r.scaleDataToImg=l;function v(m,y){return ir(m,function(b,w){var S=w.substring(0,1);return S==="x"?s.scaleInv(b,y):S==="y"?c.scaleInv(b,y):null})}return r.scaleImgToData=v,r.clipImg=function(m){var y={x:m.x,y:m.y},b=r.range;return m.x>b.right?y.x=b.right:m.x<b.left&&(y.x=b.left),m.y>b.bottom?y.y=b.bottom:m.y<b.top&&(y.y=b.top),y},r}function lp(e){return e.map(function(r){return wz(r)})}function Sz(e){var r=e[0].getBoundingClientRect();return{x:r.width/e.outerWidth(),y:r.height/e.outerHeight()}}function pp(e){var r=e.offset(),t=Sz(e),n={left:parseInt(e.css("border-left-width"))+parseInt(e.css("padding-left")),top:parseInt(e.css("border-top-width"))+parseInt(e.css("padding-top"))};return{x:r.left+t.x*n.left,y:r.top+t.y*n.top}}function Oz(e){var r={x:e.width()/e.outerWidth(),y:e.height()/e.outerHeight()},t=e[0].getBoundingClientRect();return{x:r.x*t.width,y:r.y*t.height}}function vp(e,r){var t=e.find("img"),n=t[0];if(r.panels.length===0){var i={top:0,left:0,right:n.clientWidth-1,bottom:n.clientHeight-1};r.panels[0]={domain:i,range:i,mapping:{}}}var a=r;a.dims.height=a.dims.height||n.naturalHeight,a.dims.width=a.dims.width||n.naturalWidth,a.panels=lp(r.panels),a.mouseOffsetCss=function(l){var v=pp(t);return{x:l.pageX-v.x,y:l.pageY-v.y}};function s(l){var v=a.imgToCssScalingRatio(),m=ir(l,function(y,b){var w=b.substring(0,1);return w==="x"?l[b]/v.x:w==="y"?l[b]/v.y:null});return m}a.scaleCssToImg=s;function c(l){var v=a.imgToCssScalingRatio(),m=ir(l,function(y,b){var w=b.substring(0,1);return w==="x"?l[b]*v.x:w==="y"?l[b]*v.y:null});return m}return a.scaleImgToCss=c,a.imgToCssScalingRatio=function(){var l=Oz(t);return{x:l.x/a.dims.width,y:l.y/a.dims.height}},a.cssToImgScalingRatio=function(){var l=a.imgToCssScalingRatio();return{x:1/l.x,y:1/l.y}},a.getPanelCss=function(l){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=a.scaleCssToImg(l),y=m.x,b=m.y,w=a.cssToImgScalingRatio(),S={x:v*w.x,y:v*w.y},q=[],k=[],E,P;for(P=0;P<a.panels.length;P++)if(E=a.panels[P].range,y<=E.right+S.x&&y>=E.left-S.x&&b<=E.bottom+S.y&&b>=E.top-S.y){q.push(a.panels[P]);var $=0,R=0;y>E.right&&y<=E.right+S.x?$=y-E.right:y<E.left&&y>=E.left-S.x&&($=y-E.left),b>E.bottom&&b<=E.bottom+S.y?R=b-E.bottom:b<E.top&&b>=E.top-S.y&&(R=b-E.top),k.push(Math.sqrt(Math.pow($,2)+Math.pow(R,2)))}if(q.length){var j=Math.min.apply(null,k);for(P=0;P<q.length;P++)if(k[P]===j)return q[P]}return null},a.isInPanelCss=function(l){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return!!a.getPanelCss(l,v)},a.mouseCoordinateSender=function(l){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return function(y){if(y===null){hr(l,null);return}var b=a.mouseOffsetCss(y);if(!a.isInPanelCss(b)){if(m){hr(l,null);return}if(v)return;var w={coords_css:b,coords_img:a.scaleCssToImg(b)};hr(l,w,{priority:"event"});return}var S=a.getPanelCss(b),q=a.scaleCssToImg(b),k=S.scaleImgToData(q),E={x:k==null?void 0:k.x,y:k==null?void 0:k.y,coords_css:b,coords_img:q,img_css_ratio:a.cssToImgScalingRatio()};tP.default.extend(E,S.panel_vars),E.mapping=S.mapping,E.domain=S.domain,E.range=S.range,E.log=S.log,hr(l,E,{priority:"event"})}},a}function zn(e,r){return{xmin:Math.min(e.x,r.x),xmax:Math.max(e.x,r.x),ymin:Math.min(e.y,r.y),ymax:Math.max(e.y,r.y)}}function Vr(e,r,t){e instanceof Array||(e=[e]);var n=Math.max.apply(null,e),i=Math.min.apply(null,e),a=0;n>t?a=t-n:i<r&&(a=r-i);for(var s=[],c=0;c<e.length;c++)s[c]=e[c]+a;return s}function bo(e){return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bo(e)}function nP(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function Nu(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?nP(Object(t),!0).forEach(function(n){_z(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nP(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _z(e,r,t){return r=Pz(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Pz(e){var r=Ez(e,"string");return bo(r)==="symbol"?r:String(r)}function Ez(e,r){if(bo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(bo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function hp(e,r,t,n){var i=10,a=e[0],s=null,c={},l=t.scaleCssToImg,v=t.scaleImgToCss;m();function m(){c.brushing=!1,c.dragging=!1,c.resizing=!1,c.down={x:NaN,y:NaN},c.up={x:NaN,y:NaN},c.resizeSides={left:!1,right:!1,top:!1,bottom:!1},c.boundsCss={xmin:NaN,xmax:NaN,ymin:NaN,ymax:NaN},c.boundsData={xmin:NaN,xmax:NaN,ymin:NaN,ymax:NaN},c.panel=null,c.changeStartBounds={xmin:NaN,xmax:NaN,ymin:NaN,ymax:NaN},s&&s.remove()}function y(){var O=e.find("#"+a.id+"_brush");return O.length>0}function b(){var O=e.find("#"+a.id+"_brush");if(O.length!==0){var T=O.data("bounds-data"),x=O.data("panel");if(!(!T||!x)){for(var A=0;A<t.panels.length;A++){var ge=t.panels[A];if(hl(x.mapping,ge.mapping)&&hl(x.panel_vars,ge.panel_vars)){c.panel=t.panels[A];break}}if(c.panel===null){O.remove();return}s=O,P(T),j()}}}function w(){var O=P();Object.values(O).some(g0)||(P(O),j())}function S(O){var T=c.boundsCss;return O.x<=T.xmax&&O.x>=T.xmin&&O.y<=T.ymax&&O.y>=T.ymin}function q(O){var T=k(O);return T.left||T.right||T.top||T.bottom}function k(O){var T=c.boundsCss,x={xmin:T.xmin-i,xmax:T.xmax+i,ymin:T.ymin-i,ymax:T.ymax+i},A={left:!1,right:!1,top:!1,bottom:!1};return(r.brushDirection==="xy"||r.brushDirection==="x")&&O.y<=x.ymax&&O.y>=x.ymin&&(O.x<T.xmin&&O.x>=x.xmin?A.left=!0:O.x>T.xmax&&O.x<=x.xmax&&(A.right=!0)),(r.brushDirection==="xy"||r.brushDirection==="y")&&O.x<=x.xmax&&O.x>=x.xmin&&(O.y<T.ymin&&O.y>=x.ymin?A.top=!0:O.y>T.ymax&&O.y<=x.ymax&&(A.bottom=!0)),A}function E(O){if(O===void 0)return Nu({},c.boundsCss);var T={x:O.xmin,y:O.ymin},x={x:O.xmax,y:O.ymax},A=c.panel,ge=A.range;r.brushClip&&(T=v(A.clipImg(l(T))),x=v(A.clipImg(l(x)))),r.brushDirection==="xy"||(r.brushDirection==="x"?(T.y=v({y:ge.top}).y,x.y=v({y:ge.bottom}).y):r.brushDirection==="y"&&(T.x=v({x:ge.left}).x,x.x=v({x:ge.right}).x)),c.boundsCss={xmin:T.x,xmax:x.x,ymin:T.y,ymax:x.y};var Fe=A.scaleImgToData(l(T)),cr=A.scaleImgToData(l(x));c.boundsData=zn(Fe,cr),c.boundsData=ir(c.boundsData,function(Ue){return pl(Ue,14)}),s.data("bounds-data",c.boundsData),s.data("panel",c.panel)}function P(O){if(typeof O=="undefined")return Nu({},c.boundsData);var T=v(c.panel.scaleDataToImg(O));T=ir(T,function(x){return pl(x,13)}),E({xmin:Math.min(T.xmin,T.xmax),xmax:Math.max(T.xmin,T.xmax),ymin:Math.min(T.ymin,T.ymax),ymax:Math.max(T.ymin,T.ymax)})}function $(){return c.panel}function R(){s&&s.remove(),s=(0,iP.default)(document.createElement("div")).attr("id",a.id+"_brush").css({"background-color":r.brushFill,opacity:r.brushOpacity,"pointer-events":"none",position:"absolute"}).hide();var O="1px solid "+r.brushStroke;r.brushDirection==="xy"?s.css({border:O}):r.brushDirection==="x"?s.css({"border-left":O,"border-right":O}):r.brushDirection==="y"&&s.css({"border-top":O,"border-bottom":O}),e.append(s),s.offset({x:0,y:0}).width(0).outerHeight(0)}function j(){var O=pp(e.find("img")),T=c.boundsCss;s.offset({top:O.y+T.ymin,left:O.x+T.xmin}).outerWidth(T.xmax-T.xmin+1).outerHeight(T.ymax-T.ymin+1)}function L(O){if(O===void 0)return c.down;c.down=O}function U(O){if(O===void 0)return c.up;c.up=O}function C(){return c.brushing}function B(){c.brushing=!0,R(),c.panel=t.getPanelCss(c.down,n),E(zn(c.down,c.down)),j()}function D(O){E(zn(c.down,O)),s.show(),j()}function V(){c.brushing=!1,E(zn(c.down,c.up))}function f(){return c.dragging}function o(){c.dragging=!0,c.changeStartBounds=Nu({},c.boundsCss)}function u(O){var T=O.x-c.down.x,x=O.y-c.down.y,A=c.changeStartBounds,ge={xmin:A.xmin+T,xmax:A.xmax+T,ymin:A.ymin+x,ymax:A.ymax+x};if(r.brushClip){var Fe=c.panel,cr=Fe.range,Ue=l(ge),Ut=[Ue.xmin,Ue.xmax],Vt=[Ue.ymin,Ue.ymax];Ut=Vr(Ut,cr.left,cr.right),Vt=Vr(Vt,cr.top,cr.bottom),ge=v({xmin:Ut[0],xmax:Ut[1],ymin:Vt[0],ymax:Vt[1]})}E(ge),j()}function h(){c.dragging=!1}function d(){return c.resizing}function p(){c.resizing=!0,c.changeStartBounds=Nu({},c.boundsCss),c.resizeSides=k(c.down)}function g(O){var T={x:O.x-c.down.x,y:O.y-c.down.y},x=l(T),A=l(c.changeStartBounds),ge=c.panel,Fe=ge.range;if(c.resizeSides.left){var cr=Vr(A.xmin+x.x,Fe.left,A.xmax)[0];A.xmin=cr}else if(c.resizeSides.right){var Ue=Vr(A.xmax+x.x,A.xmin,Fe.right)[0];A.xmax=Ue}if(c.resizeSides.top){var Ut=Vr(A.ymin+x.y,Fe.top,A.ymax)[0];A.ymin=Ut}else if(c.resizeSides.bottom){var Vt=Vr(A.ymax+x.y,A.ymin,Fe.bottom)[0];A.ymax=Vt}E(v(A)),j()}function _(){c.resizing=!1}return{reset:m,hasOldBrush:y,importOldBrush:b,isInsideBrush:S,isInResizeArea:q,whichResizeSides:k,onResize:w,boundsCss:E,boundsData:P,getPanel:$,down:L,up:U,isBrushing:C,startBrushing:B,brushTo:D,stopBrushing:V,isDragging:f,startDragging:o,dragTo:u,stopDragging:h,isResizing:d,startResizing:p,resizeTo:g,stopResizing:_}}var oP=N(W());function dp(e,r,t){var n=void 0,i=null;function a(m,y){var b=oP.default.Event(m,{which:y.which,pageX:y.pageX,pageY:y.pageY});e.trigger(b)}function s(){i&&(a("mousedown2",i),i=null)}function c(m){i=m,n=window.setTimeout(function(){s()},t)}function l(m){if(m.which===1){if(!r){a("mousedown2",m);return}i===null?c(m):(clearTimeout(n),i&&Math.abs(i.pageX-m.pageX)>2||Math.abs(i.pageY-m.pageY)>2?(s(),c(m)):(i=null,a("dblclick2",m)))}}function v(m){m.which=1,a("dblclick2",m)}return{mousedown:l,dblclickIE8:v}}var zr=N(W());function ju(e,r,t){var n=t.mouseCoordinateSender(e,r);return n(null),{mousedown:function(a){a.which===1&&n(a)},onResetImg:function(){n(null)},onResize:null}}function mp(e,r,t,n,i,a){var s=a.mouseCoordinateSender(e,n,i),c;t==="throttle"?c=new Fn(null,s,r):c=new ur(null,s,r),c.immediateCall(null);var l;return i?l=function(){c.normalCall(null)}:l=function(){},{mousemove:function(m){c.normalCall(m)},mouseout:l,onResetImg:function(){c.immediateCall(null)},onResize:null}}function yp(e,r,t,n,i){var a=20,s=hp(r,t,n,a);r.on("shiny-internal:brushed.image_output",function(R,j){j.brushId===e&&j.outputId!==i&&(r.data("mostRecentBrush",!1),s.reset())});function c(R){r.removeClass("crosshair grabbable grabbing ns-resize ew-resize nesw-resize nwse-resize"),R&&r.addClass(R)}function l(){var R=s.boundsData();if(isNaN(R.xmin)){hr(e,null),qt.find(document.documentElement).trigger("shiny-internal:brushed",{brushId:e,outputId:null});return}var j=s.getPanel();zr.default.extend(R,j.panel_vars),R.coords_css=s.boundsCss(),R.coords_img=n.scaleCssToImg(R.coords_css),R.img_css_ratio=n.cssToImgScalingRatio(),R.mapping=j.mapping,R.domain=j.domain,R.range=j.range,R.log=j.log,R.direction=t.brushDirection,R.brushId=e,R.outputId=i,hr(e,R),r.data("mostRecentBrush",!0),qt.find(document.documentElement).trigger("shiny-internal:brushed",R)}var v;t.brushDelayType==="throttle"?v=new Fn(null,l,t.brushDelay):v=new ur(null,l,t.brushDelay),s.hasOldBrush()||v.immediateCall();function m(R){if(!(s.isBrushing()||s.isDragging()||s.isResizing())&&R.which===1){var j=n.mouseOffsetCss(R);if(!(t.brushClip&&!n.isInPanelCss(j,a)))if(s.up({x:NaN,y:NaN}),s.down(j),s.isInResizeArea(j))s.startResizing(j),(0,zr.default)(document).on("mousemove.image_brush",S).on("mouseup.image_brush",E);else if(s.isInsideBrush(j))s.startDragging(j),c("grabbing"),(0,zr.default)(document).on("mousemove.image_brush",w).on("mouseup.image_brush",k);else{var L=n.getPanelCss(j,a);s.startBrushing(L.clipImg(n.scaleCssToImg(j))),(0,zr.default)(document).on("mousemove.image_brush",b).on("mouseup.image_brush",q)}}}function y(R){var j=n.mouseOffsetCss(R);if(!(s.isBrushing()||s.isDragging()||s.isResizing()))if(s.isInResizeArea(j)){var L=s.whichResizeSides(j);L.left&&L.top||L.right&&L.bottom?c("nwse-resize"):L.left&&L.bottom||L.right&&L.top?c("nesw-resize"):L.left||L.right?c("ew-resize"):(L.top||L.bottom)&&c("ns-resize")}else s.isInsideBrush(j)?c("grabbable"):n.isInPanelCss(j,a)?c("crosshair"):c(null)}function b(R){s.brushTo(n.mouseOffsetCss(R)),v.normalCall()}function w(R){s.dragTo(n.mouseOffsetCss(R)),v.normalCall()}function S(R){s.resizeTo(n.mouseOffsetCss(R)),v.normalCall()}function q(R){if(R.which===1){if((0,zr.default)(document).off("mousemove.image_brush").off("mouseup.image_brush"),s.up(n.mouseOffsetCss(R)),s.stopBrushing(),c("crosshair"),s.down().x===s.up().x&&s.down().y===s.up().y){s.reset(),v.immediateCall();return}v.isPending()&&v.immediateCall()}}function k(R){R.which===1&&((0,zr.default)(document).off("mousemove.image_brush").off("mouseup.image_brush"),s.up(n.mouseOffsetCss(R)),s.stopDragging(),c("grabbable"),v.isPending()&&v.immediateCall())}function E(R){R.which===1&&((0,zr.default)(document).off("mousemove.image_brush").off("mouseup.image_brush"),s.up(n.mouseOffsetCss(R)),s.stopResizing(),v.isPending()&&v.immediateCall())}function P(){t.brushResetOnNew&&r.data("mostRecentBrush")&&(s.reset(),v.immediateCall())}t.brushResetOnNew||r.data("mostRecentBrush")&&(s.importOldBrush(),v.immediateCall());function $(){s.onResize(),v.immediateCall()}return{mousedown:m,mousemove:y,onResetImg:P,onResize:$}}function Hn(e,r){r.css("-webkit-user-drag","none"),r.off("dragstart.image_output"),r.on("dragstart.image_output",function(){return!1}),e.off("selectstart.image_output"),e.on("selectstart.image_output",function(){return!1})}function Kn(e){return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kn(e)}function Iz(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function aP(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tz(n.key),n)}}function qz(e,r,t){return r&&aP(e.prototype,r),t&&aP(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tz(e){var r=kz(e,"string");return Kn(r)==="symbol"?r:String(r)}function kz(e,r){if(Kn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Kn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function xz(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&gp(e,r)}function gp(e,r){return gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gp(e,r)}function Rz(e){var r=Nz();return function(){var n=Lu(e),i;if(r){var a=Lu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Az(this,i)}}function Az(e,r){if(r&&(Kn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $z(e)}function $z(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nz(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Lu(e){return Lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lu(e)}var jz=function(e){xz(t,e);var r=Rz(t);function t(){return Iz(this,t),r.apply(this,arguments)}return qz(t,[{key:"find",value:function(i){return(0,Hr.default)(i).find(".shiny-image-output, .shiny-plot-output")}},{key:"renderValue",value:function(i,a){var s=this.getId(i),c=(0,Hr.default)(i),l,v=c.find("img");if(v.length===0?(l=document.createElement("img"),c.append(l),v=(0,Hr.default)(l)):(l=v[0],v.trigger("reset")),!a){c.empty();return}var m={clickId:c.data("click-id"),clickClip:Se(bt(c.data("click-clip")),!0),dblclickId:c.data("dblclick-id"),dblclickClip:Se(bt(c.data("dblclick-clip")),!0),dblclickDelay:Se(c.data("dblclick-delay"),400),hoverId:c.data("hover-id"),hoverClip:Se(bt(c.data("hover-clip")),!0),hoverDelayType:Se(c.data("hover-delay-type"),"debounce"),hoverDelay:Se(c.data("hover-delay"),300),hoverNullOutside:Se(bt(c.data("hover-null-outside")),!1),brushId:c.data("brush-id"),brushClip:Se(bt(c.data("brush-clip")),!0),brushDelayType:Se(c.data("brush-delay-type"),"debounce"),brushDelay:Se(c.data("brush-delay"),300),brushFill:Se(c.data("brush-fill"),"#666"),brushStroke:Se(c.data("brush-stroke"),"#000"),brushOpacity:Se(c.data("brush-opacity"),.3),brushDirection:Se(c.data("brush-direction"),"xy"),brushResetOnNew:Se(bt(c.data("brush-reset-on-new")),!1),coordmap:a.coordmap};m.brushFill==="auto"&&(m.brushFill=Ji(c[0])),m.brushStroke==="auto"&&(m.brushStroke=pr(c[0],"color")),Hr.default.each(a,function(w,S){S===null||w==="coordmap"||(w==="src"&&S===l.getAttribute("src")&&l.removeAttribute("src"),l.setAttribute(w,S))});for(var y=0;y<l.attributes.length;y++){var b=l.attributes[y];b.specified&&!Ye(a,b.name)&&l.removeAttribute(b.name)}m.coordmap||(m.coordmap={panels:[],dims:{height:null,width:null}}),c.off(".image_output"),v.off(".image_output"),v.off("load.shiny_image_interaction"),v.one("load.shiny_image_interaction",function(){var w=m.coordmap=vp(c,m.coordmap),S=dp(c,m.dblclickId,m.dblclickDelay);if(c.on("mousedown.image_output",S.mousedown),ft()&&Zm()===8&&c.on("dblclick.image_output",S.dblclickIE8),m.clickId){Hn(c,v);var q=ju(m.clickId,m.clickClip,w);c.on("mousedown2.image_output",q.mousedown),c.on("resize.image_output",q.onResize),v.on("reset.image_output",q.onResetImg)}if(m.dblclickId){Hn(c,v);var k=ju(m.dblclickId,m.clickClip,w);c.on("dblclick2.image_output",k.mousedown),c.on("resize.image_output",k.onResize),v.on("reset.image_output",k.onResetImg)}if(m.hoverId){Hn(c,v);var E=mp(m.hoverId,m.hoverDelay,m.hoverDelayType,m.hoverClip,m.hoverNullOutside,w);c.on("mousemove.image_output",E.mousemove),c.on("mouseout.image_output",E.mouseout),c.on("resize.image_output",E.onResize),v.on("reset.image_output",E.onResetImg)}if(m.brushId){Hn(c,v);var P=yp(m.brushId,c,m,w,s);c.on("mousedown.image_output",P.mousedown),c.on("mousemove.image_output",P.mousemove),c.on("resize.image_output",P.onResize),v.on("reset.image_output",P.onResetImg)}(m.clickId||m.dblclickId||m.hoverId||m.brushId)&&c.addClass("crosshair"),a.error&&console.log("Error on server extracting coordmap: "+a.error)})}},{key:"renderError",value:function(i,a){(0,Hr.default)(i).find("img").trigger("reset"),Pe.prototype.renderError.call(this,i,a)}},{key:"clearError",value:function(i){(0,Hr.default)(i).contents().filter(function(){return!(this instanceof HTMLElement&&(this.tagName==="IMG"||this.id===i.id+"_brush"))}).remove(),Pe.prototype.clearError.call(this,i)}},{key:"resize",value:function(i,a,s){(0,Hr.default)(i).find("img").trigger("resize")}}]),t}(Pe),qt=new jz;function uP(){var e=new fu;return e.register(new d_,"shiny.textOutput"),e.register(new y_,"shiny.downloadLink"),e.register(new k_,"shiny.datatableOutput"),e.register(new J_,"shiny.htmlOutput"),e.register(qt,"shiny.imageOutput"),{outputBindings:e}}function Cu(e){hr(e,null),qt.find(document.documentElement).trigger("shiny-internal:brushed",{brushId:e,outputId:null})}var Tse=N(ve());var Mz=nn(),wo=te(),wp=Y(),Gz=Wi(),Fz=ne(),Uz=ze(),Vz=Du(),fP=He(),zz=Ea(),Hz=nu(),Kz=lr(),bp=pe(),Wz=Ar(),cP=Da(),lP=Yi(),Yz=Ii(),Xz=Pi(),Qz=K(),Wn=Xz.UNSUPPORTED_Y,pP=4294967295,Jz=Math.min,vP=[].push,Zz=wp(/./.exec),Yn=wp(vP),So=wp("".slice),eH=!Qz(function(){var e=/(?:)/,r=e.exec;e.exec=function(){return r.apply(this,arguments)};var t="ab".split(e);return t.length!==2||t[0]!=="a"||t[1]!=="b"});Gz("split",function(e,r,t){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,a){var s=bp(fP(this)),c=a===void 0?pP:a>>>0;if(c===0)return[];if(i===void 0)return[s];if(!Vz(i))return wo(r,s,i,c);for(var l=[],v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),m=0,y=new RegExp(i.source,v+"g"),b,w,S;(b=wo(Yz,y,s))&&(w=y.lastIndex,!(w>m&&(Yn(l,So(s,m,b.index)),b.length>1&&b.index<s.length&&Mz(vP,l,cP(b,1)),S=b[0].length,m=w,l.length>=c)));)y.lastIndex===b.index&&y.lastIndex++;return m===s.length?(S||!Zz(y,""))&&Yn(l,""):Yn(l,So(s,m)),l.length>c?cP(l,0,c):l}:"0".split(void 0,0).length?n=function(i,a){return i===void 0&&a===0?[]:wo(r,this,i,a)}:n=r,[function(a,s){var c=fP(this),l=Uz(a)?void 0:Wz(a,e);return l?wo(l,a,c,s):wo(n,bp(c),a,s)},function(i,a){var s=Fz(this),c=bp(i),l=t(n,s,c,a,n!==r);if(l.done)return l.value;var v=zz(s,RegExp),m=s.unicode,y=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Wn?"g":"y"),b=new v(Wn?"^(?:"+s.source+")":s,y),w=a===void 0?pP:a>>>0;if(w===0)return[];if(c.length===0)return lP(b,c)===null?[c]:[];for(var S=0,q=0,k=[];q<c.length;){b.lastIndex=Wn?0:q;var E=lP(b,Wn?So(c,q):c),P;if(E===null||(P=Jz(Kz(b.lastIndex+(Wn?q:0)),c.length))===S)q=Hz(c,q,m);else{if(Yn(k,So(c,S,q)),k.length===w)return k;for(var $=1;$<=E.length-1;$++)if(Yn(k,E[$]),k.length===w)return k;q=S=P}}return Yn(k,So(c,S)),k}]},!eH,Wn);var rH=te(),tH=Wi(),nH=ne(),iH=ze(),oH=lr(),Sp=pe(),aH=He(),uH=Ar(),sH=nu(),hP=Yi();tH("match",function(e,r,t){return[function(i){var a=aH(this),s=iH(i)?void 0:uH(i,e);return s?rH(s,i,a):new RegExp(i)[e](Sp(a))},function(n){var i=nH(this),a=Sp(n),s=t(r,i,a);if(s.done)return s.value;if(!i.global)return hP(i,a);var c=i.unicode;i.lastIndex=0;for(var l=[],v=0,m;(m=hP(i,a))!==null;){var y=Sp(m[0]);l[v]=y,y===""&&(i.lastIndex=sH(a,oH(i.lastIndex),c)),v++}return v===0?null:l}]});var Bse=N(z());var Oo=N(W());function Op(e){return Op=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Op(e)}function _p(){"use strict";_p=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&Op(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function dP(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function fH(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){dP(a,n,i,s,c,"next",l)}function c(l){dP(a,n,i,s,c,"throw",l)}s(void 0)})}}var cH=250;function qr(){return Pp.apply(this,arguments)}function Pp(){return Pp=fH(_p().mark(function e(){var r,t,n,i,a,s,c,l,v,m,y,b,w,S,q,k,E,P,$,R,j,L,U,C=arguments;return _p().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return t=C.length>0&&C[0]!==void 0?C[0]:{},n=t.html,i=n===void 0?"":n,a=t.action,s=a===void 0?"":a,c=t.deps,l=c===void 0?[]:c,v=t.duration,m=v===void 0?5e3:v,y=t.id,b=y===void 0?null:y,w=t.closeButton,S=w===void 0?!0:w,q=t.type,k=q===void 0?null:q,b||(b=su()),D.next=4,Et(l);case 4:return pH(),E=_o(b),((r=E)===null||r===void 0?void 0:r.length)===0&&(E=vH(b)),P=E,$='<div class="shiny-notification-content-text">'.concat(i,"</div>")+'<div class="shiny-notification-content-action">'.concat(s,"</div>"),R=P.find(".shiny-notification-content"),D.next=12,Me(R,{html:$});case 12:return j=P==null?void 0:P.attr("class"),j&&(L=j.split(/\s+/).filter(function(V){return V.match(/^shiny-notification-/)}).join(" "),P.removeClass(L)),k&&k!=="default"&&P.addClass("shiny-notification-"+k),U=P.find(".shiny-notification-close"),S&&U.length===0?P.append('<div class="shiny-notification-close">×</div>'):!S&&U.length!==0&&U.remove(),m?hH(b,m):mP(b),D.abrupt("return",b);case 19:case"end":return D.stop()}},e)})),Pp.apply(this,arguments)}function Tr(e){var r;(r=_o(e))===null||r===void 0||r.fadeOut(cH,function(){qe(this),(0,Oo.default)(this).remove(),lH().length===0&&Po().remove()})}function _o(e){return e?Po().find("#shiny-notification-"+H(e)):null}function lH(){return Po().find(".shiny-notification").map(function(){return this.id.replace(/shiny-notification-/,"")}).get()}function Po(){return(0,Oo.default)("#shiny-notification-panel")}function pH(){var e=Po();return e.length>0||(0,Oo.default)(document.body).append('<div id="shiny-notification-panel">'),e}function vH(e){var r,t=_o(e);return((r=t)===null||r===void 0?void 0:r.length)===0&&(t=(0,Oo.default)('<div id="shiny-notification-'.concat(e,'" class="shiny-notification">')+'<div class="shiny-notification-close">×</div><div class="shiny-notification-content"></div></div>'),t.find(".shiny-notification-close").on("click",function(n){n.preventDefault(),n.stopPropagation(),Tr(e)}),Po().append(t)),t}function hH(e,r){var t;mP(e);var n=setTimeout(function(){Tr(e)},r);(t=_o(e))===null||t===void 0||t.data("removalCallback",n)}function mP(e){var r=_o(e),t=r==null?void 0:r.data("removalCallback");t&&clearTimeout(t)}var lfe=N(z());var Kr=N(W());function Ep(e){return Ep=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ep(e)}function Ip(){"use strict";Ip=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&Ep(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function yP(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function dH(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){yP(a,n,i,s,c,"next",l)}function c(l){yP(a,n,i,s,c,"throw",l)}s(void 0)})}}function Bu(){return qp.apply(this,arguments)}function qp(){return qp=dH(Ip().mark(function e(){var r,t,n,i,a,s,c=arguments;return Ip().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return r=c.length>0&&c[0]!==void 0?c[0]:{},t=r.html,n=t===void 0?"":t,i=r.deps,a=i===void 0?[]:i,v.next=3,Et(a);case 3:return(0,Kr.default)(".modal-backdrop").remove(),s=(0,Kr.default)("#shiny-modal-wrapper"),s.length===0&&(s=(0,Kr.default)('<div id="shiny-modal-wrapper"></div>'),(0,Kr.default)(document.body).append(s),s.on("hidden.bs.modal",function(m){m.target===(0,Kr.default)("#shiny-modal")[0]&&(qe(s),s.remove())})),s.on("keydown.shinymodal",function(m){(0,Kr.default)("#shiny-modal").data("keyboard")!==!1&&m.keyCode===27&&(m.stopPropagation(),m.preventDefault())}),v.next=9,Me(s,{html:n});case 9:case"end":return v.stop()}},e)})),qp.apply(this,arguments)}function Mu(){var e=(0,Kr.default)("#shiny-modal-wrapper");e.off("keydown.shinymodal"),e.find(".modal").length>0?e.find(".modal").modal("hide"):(qe(e),e.remove())}var Nfe=N(z());var Rp=N(W());function Tp(e){return Tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tp(e)}function kp(){"use strict";kp=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&Tp(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function gP(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function mH(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){gP(a,n,i,s,c,"next",l)}function c(l){gP(a,n,i,s,c,"throw",l)}s(void 0)})}}function bP(e){var r=(0,Rp.default)("#shiny-reconnect-time");if(r.length!==0){var t=Math.floor((e-new Date().getTime())/1e3);t>0?r.text(" in "+t+"s"):r.text("..."),setTimeout(function(){bP(e)},1e3)}}function Gu(e){return xp.apply(this,arguments)}function xp(){return xp=mH(kp().mark(function e(r){var t,n,i;return kp().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(t=new Date().getTime()+r,!((0,Rp.default)("#shiny-reconnect-text").length>0)){s.next=3;break}return s.abrupt("return");case 3:return n='<span id="shiny-reconnect-text">Attempting to reconnect</span><span id="shiny-reconnect-time"></span>',i='<a id="shiny-reconnect-now" href="#" onclick="Shiny.shinyapp.reconnect();">Try now</a>',s.next=7,qr({id:"reconnect",html:n,action:i,duration:null,closeButton:!1,type:"warning"});case 7:bP(t);case 8:case"end":return s.stop()}},e)})),xp.apply(this,arguments)}function Fu(){Tr("reconnect")}var jge=N(ve());var Kge=N(z());var J=N(W());var ace=N(z());function Eo(e){return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Eo(e)}function yH(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function wP(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SP(n.key),n)}}function gH(e,r,t){return r&&wP(e.prototype,r),t&&wP(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xn(e,r,t){return r=SP(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function SP(e){var r=bH(e,"string");return Eo(r)==="symbol"?r:String(r)}function bH(e,r){if(Eo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Eo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Ap=function(){function e(r){yH(this,e),Xn(this,"target",void 0),Xn(this,"shinyapp",void 0),Xn(this,"pendingData",{}),Xn(this,"reentrant",!1),Xn(this,"sendIsEnqueued",!1),Xn(this,"lastChanceCallback",[]),this.shinyapp=r}return gH(e,[{key:"setInput",value:function(t,n,i){var a=this;this.pendingData[t]=n,this.reentrant||(i.priority==="event"?this._sendNow():this.sendIsEnqueued||this.shinyapp.taskQueue.enqueue(function(){a.sendIsEnqueued=!1,a._sendNow()}))}},{key:"_sendNow",value:function(){this.reentrant&&console.trace("Unexpected reentrancy in InputBatchSender!"),this.reentrant=!0;try{this.lastChanceCallback.forEach(function(n){return n()});var t=this.pendingData;this.pendingData={},this.shinyapp.sendInput(t)}finally{this.reentrant=!1}}}]),e}();var pce=N(mn());var Sce=N(z());function Wr(e){var r=e.split(":");return{name:r[0],inputType:r.length>1?r[1]:""}}function Io(e){return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Io(e)}function wH(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function OP(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PP(n.key),n)}}function SH(e,r,t){return r&&OP(e.prototype,r),t&&OP(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _P(e,r,t){return r=PP(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function PP(e){var r=OH(e,"string");return Io(r)==="symbol"?r:String(r)}function OH(e,r){if(Io(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Io(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var $p=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};wH(this,e),_P(this,"target",void 0),_P(this,"lastSentValues",{}),this.target=r,this.reset(t)}return SH(e,[{key:"setInput",value:function(t,n,i){var a=Wr(t),s=a.name,c=a.inputType,l=JSON.stringify(n);i.priority!=="event"&&this.lastSentValues[s]&&this.lastSentValues[s].jsonValue===l&&this.lastSentValues[s].inputType===c||(this.lastSentValues[s]={jsonValue:l,inputType:c},this.target.setInput(t,n,i))}},{key:"reset",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n={};for(var i in t)if(F(t,i)){var a=Wr(i),s=a.name,c=a.inputType;n[s]={jsonValue:JSON.stringify(t[i]),inputType:c}}this.lastSentValues=n}},{key:"forget",value:function(t){delete this.lastSentValues[t]}}]),e}();var Lce=N(z());var Np=N(W());function qo(e){return qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qo(e)}function _H(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function EP(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IP(n.key),n)}}function PH(e,r,t){return r&&EP(e.prototype,r),t&&EP(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EH(e,r,t){return r=IP(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function IP(e){var r=IH(e,"string");return qo(r)==="symbol"?r:String(r)}function IH(e,r){if(qo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(qo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var jp=function(){function e(r){_H(this,e),EH(this,"target",void 0),this.target=r}return PH(e,[{key:"setInput",value:function(t,n,i){var a=Np.default.Event("shiny:inputchanged"),s=Wr(t);if(a.name=s.name,a.inputType=s.inputType,a.value=n,a.binding=i.binding||null,a.el=i.el||null,a.priority=i.priority,(0,Np.default)(i.el||window.document).trigger(a),!a.isDefaultPrevented()){var c=a.name;a.inputType!==""&&(c+=":"+a.inputType),this.target.setInput(c,a.value,{priority:i.priority})}}}]),e}();var Xce=N(z());function To(e){return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},To(e)}function qH(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function qP(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kP(n.key),n)}}function TH(e,r,t){return r&&qP(e.prototype,r),t&&qP(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TP(e,r,t){return r=kP(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function kP(e){var r=kH(e,"string");return To(r)==="symbol"?r:String(r)}function kH(e,r){if(To(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(To(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Lp=function(){function e(r){qH(this,e),TP(this,"target",void 0),TP(this,"inputRatePolicies",{}),this.target=r}return TH(e,[{key:"setInput",value:function(t,n,i){var a=Wr(t),s=a.name;this._ensureInit(s),i.priority!=="deferred"?this.inputRatePolicies[s].immediateCall(t,n,i):this.inputRatePolicies[s].normalCall(t,n,i)}},{key:"setRatePolicy",value:function(t,n,i){var a=Wr(t),s=a.name;n==="direct"?this.inputRatePolicies[s]=new Ql(this,this._doSetInput):n==="debounce"?this.inputRatePolicies[s]=new ur(this,this._doSetInput,i):n==="throttle"&&(this.inputRatePolicies[s]=new Fn(this,this._doSetInput,i))}},{key:"_ensureInit",value:function(t){t in this.inputRatePolicies||this.setRatePolicy(t,"direct")}},{key:"_doSetInput",value:function(t,n,i){this.target.setInput(t,n,i)}}]),e}();var tle=N(ve());var ple=N(z());function ko(e){return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ko(e)}function xH(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function xP(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AP(n.key),n)}}function RH(e,r,t){return r&&xP(e.prototype,r),t&&xP(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RP(e,r,t){return r=AP(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function AP(e){var r=AH(e,"string");return ko(r)==="symbol"?r:String(r)}function AH(e,r){if(ko(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ko(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Cp=function(){function e(r){xH(this,e),RP(this,"pendingInput",{}),RP(this,"target",void 0),this.target=r}return RH(e,[{key:"setInput",value:function(t,n,i){/^\./.test(t)?this.target.setInput(t,n,i):this.pendingInput[t]={value:n,opts:i}}},{key:"submit",value:function(){for(var t in this.pendingInput)if(F(this.pendingInput,t)){var n=this.pendingInput[t],i=n.value,a=n.opts;this.target.setInput(t,i,a)}}}]),e}();var Ale=N(z());function xo(e){return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xo(e)}function $H(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function $P(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LP(n.key),n)}}function NH(e,r,t){return r&&$P(e.prototype,r),t&&$P(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NP(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function jH(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?NP(Object(t),!0).forEach(function(n){jP(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):NP(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function jP(e,r,t){return r=LP(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function LP(e){var r=LH(e,"string");return xo(r)==="symbol"?r:String(r)}function LH(e,r){if(xo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(xo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Dp(e){var r=jH({priority:"immediate"},e);switch(r.priority){case"deferred":case"immediate":case"event":break;default:throw new Error("Unexpected input value mode: '"+r.priority+"'")}return r}var Bp=function(){function e(r){$H(this,e),jP(this,"target",void 0),this.target=r}return NH(e,[{key:"setInput",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t)throw"Can't set input with empty name.";var a=Dp(i);this.target.setInput(t,n,a)}}]),e}();var Upe=N(z());eE();var cve=N(ve());var be=N(W());var upe=N(z());function Jn(e){return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jn(e)}function Kp(){"use strict";Kp=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&Jn(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function rE(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function I3(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){rE(a,n,i,s,c,"next",l)}function c(l){rE(a,n,i,s,c,"throw",l)}s(void 0)})}}function q3(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function tE(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iE(n.key),n)}}function T3(e,r,t){return r&&tE(e.prototype,r),t&&tE(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nE(e,r,t){return r=iE(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function iE(e){var r=k3(e,"string");return Jn(r)==="symbol"?r:String(r)}function k3(e,r){if(Jn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Jn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var oE=function(){function e(r,t){q3(this,e),nE(this,"el",void 0),nE(this,"binding",void 0),this.el=r,this.binding=t,t.resize&&(this.onResize=d0(r,function(n,i){t.resize(r,n,i)}))}return T3(e,[{key:"getId",value:function(){return this.binding.getId(this.el)}},{key:"onValueChange",value:function(){var r=I3(Kp().mark(function n(i){return Kp().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.binding.onValueChange(this.el,i);case 2:case"end":return s.stop()}},n,this)}));function t(n){return r.apply(this,arguments)}return t}()},{key:"onValueError",value:function(t){this.binding.onValueError(this.el,t)}},{key:"showProgress",value:function(t){this.binding.showProgress(this.el,t)}},{key:"onResize",value:function(){}}]),e}();var Cpe=N(z());function Zn(e){return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zn(e)}function aE(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fE(n.key),n)}}function x3(e,r,t){return r&&aE(e.prototype,r),t&&aE(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function R3(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function A3(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&No(e,r)}function $3(e){var r=sE();return function(){var n=jo(e),i;if(r){var a=jo(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return N3(this,i)}}function N3(e,r){if(r&&(Zn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uE(e)}function uE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wp(e){var r=typeof Map=="function"?new Map:void 0;return Wp=function(n){if(n===null||!j3(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return Hu(n,arguments,jo(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),No(i,n)},Wp(e)}function Hu(e,r,t){return sE()?Hu=Reflect.construct.bind():Hu=function(i,a,s){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(i,c),v=new l;return s&&No(v,s.prototype),v},Hu.apply(null,arguments)}function sE(){if(typeof Reflect=="undefined"||!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(e){return!1}}function j3(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function No(e,r){return No=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},No(e,r)}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jo(e)}function L3(e,r,t){return r=fE(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function fE(e){var r=C3(e,"string");return Zn(r)==="symbol"?r:String(r)}function C3(e,r){if(Zn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Zn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Ku=function(e){A3(t,e);var r=$3(t);function t(n){var i,a=n.headline,s=n.message;return R3(this,t),i=r.call(this,s),L3(uE(i),"headline",void 0),i.name="ShinyClientError",i.headline=a,i}return x3(t)}(Wp(Error));function Yp(e){return Yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yp(e)}function Tt(){"use strict";Tt=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&Yp(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function cE(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function Zp(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){cE(a,n,i,s,c,"next",l)}function c(l){cE(a,n,i,s,c,"throw",l)}s(void 0)})}}function D3(e,r){return F3(e)||G3(e,r)||M3(e,r)||B3()}function B3(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M3(e,r){if(!!e){if(typeof e=="string")return lE(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lE(e,r)}}function lE(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function G3(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,v=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){v=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(v)throw i}}return c}}function F3(e){if(Array.isArray(e))return e}function U3(e,r,t,n){var i=r.getId(t);if(i){var a=r.getValue(t),s=r.getType(t);s&&(i=i+":"+s);var c={priority:n?"deferred":"immediate",binding:r,el:t};e.setInput(i,a,c)}}var Lo=function(){var e=new Map;function r(){var i=new Map;if(e.forEach(function(s,c){var l={input:0,output:0};s.forEach(function(v){return l[v]+=1}),!(l.input===1&&l.output===1&&!Shiny.inDevMode())&&l.input+l.output>1&&i.set(c,l)}),i.size===0)return{status:"ok"};var a=Array.from(i.entries()).map(function(s){var c=D3(s,2),l=c[0],v=c[1],m=[pE(v.input,"input"),pE(v.output,"output")].filter(function(y){return y!==""}).join(" and ");return'- "'.concat(l,'": ').concat(m)}).join("\n");return{status:"error",error:new Ku({headline:"Duplicate input/output IDs found",message:"The following ".concat(i.size===1?"ID was":"IDs were"," repeated:\n").concat(a)})}}function t(i,a){var s=e.get(i);s?s.push(a):e.set(i,[a])}function n(i,a){var s=e.get(i);if(s){var c=s.indexOf(a);c>-1&&s.splice(c,1)}(s==null?void 0:s.length)===0&&e.delete(i)}return{addBinding:t,removeBinding:n,checkValidity:r}}();function pE(e,r){return e===0?"":e===1?"".concat(e," ").concat(r):"".concat(e," ").concat(r,"s")}function V3(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.documentElement,t=e.inputs,n=e.inputsRate,i=e.inputBindings,a=i.getBindings(),s={},c=function(){for(var m=a[l].binding,y=m.find(r)||[],b=function(){var k=y[w];if(k.hasAttribute("data-shiny-no-bind-input"))return"continue";var E=m.getId(k);if(!E||(0,be.default)(k).hasClass("shiny-bound-input"))return"continue";var P=m.getType(k),$=P?E+":"+P:E;s[$]={value:m.getValue(k),opts:{immediate:!0,binding:m,el:k}};var R=function(){var L=m,U=k;return function(C){U3(t,L,U,C)}}();m.subscribe(k,R),(0,be.default)(k).data("shiny-input-binding",m),(0,be.default)(k).addClass("shiny-bound-input");var j=m.getRatePolicy(k);j!==null&&n.setRatePolicy($,j.policy,j.delay),Lo.addBinding(E,"input"),(0,be.default)(k).trigger({type:"shiny:bound",binding:m,bindingType:"input"})},w=0;w<y.length;w++)var S=b()},l=0;l<a.length;l++)c();return s}function z3(e){return Xp.apply(this,arguments)}function Xp(){return Xp=Zp(Tt().mark(function e(r){var t,n,i,a,s,c,l,v,m,y,b,w,S,q,k,E=arguments;return Tt().wrap(function($){for(;;)switch($.prev=$.next){case 0:t=r.sendOutputHiddenState,n=r.maybeAddThemeObserver,i=r.outputBindings,a=E.length>1&&E[1]!==void 0?E[1]:document.documentElement,s=(0,be.default)(a),c=i.getBindings(),l=0;case 5:if(!(l<c.length)){$.next=35;break}v=c[l].binding,m=v.find(s)||[],y=0;case 9:if(!(y<m.length)){$.next=32;break}if(w=m[y],S=v.getId(w),S){$.next=14;break}return $.abrupt("continue",29);case 14:if(be.default.contains(document.documentElement,w)){$.next=16;break}return $.abrupt("continue",29);case 16:if(q=(0,be.default)(w),!q.hasClass("shiny-bound-output")){$.next=19;break}return $.abrupt("continue",29);case 19:return n(w),k=new oE(w,v),$.next=23,KO(S,k);case 23:q.data("shiny-output-binding",k),q.addClass("shiny-bound-output"),q.attr("aria-live")||q.attr("aria-live","polite"),(b=Shiny.shinyapp)!==null&&b!==void 0&&b.$outputProgress.isRecalculating(S)&&k.showProgress(!0),Lo.addBinding(S,"output"),q.trigger({type:"shiny:bound",binding:v,bindingType:"output"});case 29:y++,$.next=9;break;case 32:l++,$.next=5;break;case 35:setTimeout(sr.regular,0),setTimeout(t,0);case 37:case"end":return $.stop()}},e)})),Xp.apply(this,arguments)}function H3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.documentElement,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=(0,be.default)(e).find(".shiny-bound-input").toArray();r&&(0,be.default)(e).hasClass("shiny-bound-input")&&t.push(e);for(var n=0;n<t.length;n++){var i=t[n],a=(0,be.default)(i).data("shiny-input-binding");if(!!a){var s=a.getId(i);(0,be.default)(i).removeClass("shiny-bound-input"),Lo.removeBinding(s,"input"),a.unsubscribe(i),(0,be.default)(i).trigger({type:"shiny:unbound",binding:a,bindingType:"input"})}}}function K3(e){var r=e.sendOutputHiddenState,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.documentElement,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=(0,be.default)(t).find(".shiny-bound-output").toArray();n&&(0,be.default)(t).hasClass("shiny-bound-output")&&i.push(t);for(var a=0;a<i.length;a++){var s=(0,be.default)(i[a]),c=s.data("shiny-output-binding");if(!!c){var l=c.binding.getId(i[a]);WO(l,c),Lo.removeBinding(l,"output"),s.removeClass("shiny-bound-output"),s.removeData("shiny-output-binding"),s.trigger({type:"shiny:unbound",binding:c.binding,bindingType:"output"})}}setTimeout(sr.regular,0),setTimeout(r,0)}function ev(e,r){return Qp.apply(this,arguments)}function Qp(){return Qp=Zp(Tt().mark(function e(r,t){var n,i;return Tt().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,z3(r,t);case 2:if(n=V3(r,t),i=Lo.checkValidity(),i.status!=="error"){s.next=10;break}if(!Shiny.inDevMode()){s.next=9;break}throw i.error;case 9:console.warn("[shiny] "+i.error.message);case 10:return s.abrupt("return",n);case 11:case"end":return s.stop()}},e)})),Qp.apply(this,arguments)}function vE(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;H3(r,t),K3(e,r,t)}function hE(e,r){return Jp.apply(this,arguments)}function Jp(){return Jp=Zp(Tt().mark(function e(r,t){var n,i;return Tt().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,ev(r,t);case 2:n=s.sent,i=r.inputs,be.default.each(n,function(c,l){i.setInput(c,l.value,l.opts)}),r.initDeferredIframes();case 6:case"end":return s.stop()}},e)})),Jp.apply(this,arguments)}var Cye=N(ve());var Bye=N(mn());var S8=M(),O8=X(),_8=rs(),P8=qi(),lv="ArrayBuffer",ME=_8[lv],E8=O8[lv];S8({global:!0,constructor:!0,forced:E8!==ME},{ArrayBuffer:ME});P8(lv);var I8=M(),vv=st(),q8=K(),VE=rs(),GE=ne(),FE=ut(),T8=lr(),k8=Ea(),hv=VE.ArrayBuffer,pv=VE.DataView,zE=pv.prototype,UE=vv(hv.prototype.slice),x8=vv(zE.getUint8),R8=vv(zE.setUint8),A8=q8(function(){return!new hv(2).slice(1,void 0).byteLength});I8({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:A8},{slice:function(r,t){if(UE&&t===void 0)return UE(GE(this),r);for(var n=GE(this).byteLength,i=FE(r,n),a=FE(t===void 0?n:t,n),s=new(k8(this,hv))(T8(a-i)),c=new pv(this),l=new pv(s),v=0;i<a;)R8(l,v++,x8(c,i++));return s}});HE();var G8=M(),F8=YE().left,U8=Jt(),XE=Kt(),V8=en(),z8=!V8&&XE>79&&XE<83,H8=z8||!U8("reduce");G8({target:"Array",proto:!0,forced:H8},{reduce:function(r){var t=arguments.length;return F8(this,r,t,t>1?arguments[1]:void 0)}});var Qye=N(z());var G=N(W());var Fve=N(z());function ni(e){return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ni(e)}function dv(){"use strict";dv=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&ni(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function QE(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function K8(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){QE(a,n,i,s,c,"next",l)}function c(l){QE(a,n,i,s,c,"throw",l)}s(void 0)})}}function W8(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function JE(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eI(n.key),n)}}function Y8(e,r,t){return r&&JE(e.prototype,r),t&&JE(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZE(e,r,t){return r=eI(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function eI(e){var r=X8(e,"string");return ni(r)==="symbol"?r:String(r)}function X8(e,r){if(ni(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ni(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var rI=function(){function e(){W8(this,e),ZE(this,"$promises",[]),ZE(this,"$resolvers",[])}return Y8(e,[{key:"_add",value:function(){var t=this,n=new Promise(function(i){t.$resolvers.push(i)});this.$promises.push(n)}},{key:"enqueue",value:function(t){this.$resolvers.length||this._add();var n=this.$resolvers.shift();n(t)}},{key:"dequeue",value:function(){var r=K8(dv().mark(function n(){var i;return dv().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return this.$promises.length||this._add(),i=this.$promises.shift(),s.abrupt("return",i);case 3:case"end":return s.stop()}},n,this)}));function t(){return r.apply(this,arguments)}return t}()},{key:"isEmpty",value:function(){return!this.$promises.length}},{key:"isBlocked",value:function(){return!!this.$resolvers.length}},{key:"length",get:function(){return this.$promises.length-this.$resolvers.length}}]),e}();var Q8=M(),J8=Vu(),Z8=K(),eK=ue(),rK=Qn().onFreeze,mv=Object.freeze,tK=Z8(function(){mv(1)});Q8({target:"Object",stat:!0,forced:tK,sham:!J8},{freeze:function(r){return mv&&eK(r)?mv(rK(r)):r}});var Wme=N(z());var Bhe=N(ve(),1);var nK=M(),iK=Xl();nK({target:"Object",stat:!0},{is:iK});var oK=M(),aK=K(),uK=Ba().f,sK=aK(function(){return!Object.getOwnPropertyNames(1)});oK({target:"Object",stat:!0,forced:sK},{getOwnPropertyNames:uK});var fK=M(),yv=X();fK({global:!0,forced:yv.globalThis!==yv},{globalThis:yv});var Zhe=N(mn(),1);var nde=N(z(),1);yI();gI();var CK=M(),DK=SI(),BK=xe(),MK=Le(),GK=wr(),FK=Ci();CK({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,t=BK(this),n=MK(t),i=FK(t,0);return i.length=DK(i,t,t,n,0,r===void 0?1:GK(r)),i}});var UK=yn();UK("flat");var che=N(ve(),1);var hhe=N(z(),1);function Fo(e){return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fo(e)}function EI(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=VK(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return a=v.done,v},e:function(v){s=!0,c=v},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function VK(e,r){if(!!e){if(typeof e=="string")return OI(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return OI(e,r)}}function OI(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function zK(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _I(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KK(n.key),n)}}function HK(e,r,t){return r&&_I(e.prototype,r),t&&_I(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KK(e){var r=WK(e,"string");return Fo(r)==="symbol"?r:String(r)}function WK(e,r){if(Fo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Fo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var fs=globalThis,cs=fs.ShadowRoot&&(fs.ShadyCSS===void 0||fs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_v=Symbol(),PI=new WeakMap,Pv=function(){function e(r,t,n){if(zK(this,e),this._$cssResult$=!0,n!==_v)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}return HK(e,[{key:"styleSheet",get:function(){var t=this.o,n=this.t;if(cs&&t===void 0){var i=n!==void 0&&n.length===1;i&&(t=PI.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&PI.set(n,t))}return t}},{key:"toString",value:function(){return this.cssText}}]),e}(),II=function(r){return new Pv(typeof r=="string"?r:r+"",void 0,_v)},Uo=function(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var a=r.length===1?r[0]:n.reduce(function(s,c,l){return s+function(v){if(v._$cssResult$===!0)return v.cssText;if(typeof v=="number")return v;throw Error("Value passed to 'css' function must be a 'css' function result: "+v+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(c)+r[l+1]},r[0]);return new Pv(a,r,_v)},Ev=function(r,t){if(cs)r.adoptedStyleSheets=t.map(function(l){return l instanceof CSSStyleSheet?l:l.styleSheet});else{var n=EI(t),i;try{for(n.s();!(i=n.n()).done;){var a=i.value,s=document.createElement("style"),c=fs.litNonce;c!==void 0&&s.setAttribute("nonce",c),s.textContent=a.cssText,r.appendChild(s)}}catch(l){n.e(l)}finally{n.f()}}},ls=cs?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(r){var t="",n=EI(r.cssRules),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;t+=a.cssText}}catch(s){n.e(s)}finally{n.f()}return II(t)}(e):e};function At(e){return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},At(e)}var Iv,qv,Tv;function ps(e){return QK(e)||XK(e)||Nv(e)||YK()}function YK(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function XK(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QK(e){if(Array.isArray(e))return Rv(e)}function vs(e,r){return e5(e)||ZK(e,r)||Nv(e,r)||JK()}function JK(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ZK(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,v=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){v=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(v)throw i}}return c}}function e5(e){if(Array.isArray(e))return e}function xv(){"use strict";xv=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&At(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function qI(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function r5(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){qI(a,n,i,s,c,"next",l)}function c(l){qI(a,n,i,s,c,"throw",l)}s(void 0)})}}function xt(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Nv(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return a=v.done,v},e:function(v){s=!0,c=v},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function Nv(e,r){if(!!e){if(typeof e=="string")return Rv(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Rv(e,r)}}function Rv(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function t5(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function TI(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i5(n.key),n)}}function n5(e,r,t){return r&&TI(e.prototype,r),t&&TI(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function i5(e){var r=o5(e,"string");return At(r)==="symbol"?r:String(r)}function o5(e,r){if(At(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(At(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function a5(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&zo(e,r)}function u5(e){var r=RI();return function(){var n=Ho(e),i;if(r){var a=Ho(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s5(this,i)}}function s5(e,r){if(r&&(At(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f5(e)}function f5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Av(e){var r=typeof Map=="function"?new Map:void 0;return Av=function(n){if(n===null||!c5(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return hs(n,arguments,Ho(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zo(i,n)},Av(e)}function hs(e,r,t){return RI()?hs=Reflect.construct.bind():hs=function(i,a,s){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(i,c),v=new l;return s&&zo(v,s.prototype),v},hs.apply(null,arguments)}function RI(){if(typeof Reflect=="undefined"||!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(e){return!1}}function c5(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function zo(e,r){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zo(e,r)}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ho(e)}var l5=Object.is,p5=Object.defineProperty,v5=Object.getOwnPropertyDescriptor,h5=Object.getOwnPropertyNames,d5=Object.getOwnPropertySymbols,m5=Object.getPrototypeOf,oi=globalThis,kI=oi.trustedTypes,y5=kI?kI.emptyScript:"",kv=oi.reactiveElementPolyfillSupport,Vo=function(r,t){return r},$v={toAttribute:function(r,t){switch(t){case Boolean:r=r?y5:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute:function(r,t){var n=r;switch(t){case Boolean:n=r!==null;break;case Number:n=r===null?null:Number(r);break;case Object:case Array:try{n=JSON.parse(r)}catch(i){n=null}}return n}},AI=function(r,t){return!l5(r,t)},xI={attribute:!0,type:String,converter:$v,reflect:!1,hasChanged:AI};(Iv=Symbol.metadata)!==null&&Iv!==void 0||(Symbol.metadata=Symbol("metadata")),(qv=oi.litPropertyMetadata)!==null&&qv!==void 0||(oi.litPropertyMetadata=new WeakMap);var Rt=function(e){a5(t,e);var r=u5(t);function t(){var n;return t5(this,t),n=r.call(this),n._$Ep=void 0,n.isUpdatePending=!1,n.hasUpdated=!1,n._$Em=null,n._$Ev(),n}return n5(t,[{key:"_$Ev",value:function(){var i=this,a;this._$Eg=new Promise(function(s){return i.enableUpdating=s}),this._$AL=new Map,this._$E_(),this.requestUpdate(),(a=this.constructor.l)===null||a===void 0||a.forEach(function(s){return s(i)})}},{key:"addController",value:function(i){var a,s;((a=this._$ES)!==null&&a!==void 0?a:this._$ES=[]).push(i),this.renderRoot!==void 0&&this.isConnected&&((s=i.hostConnected)===null||s===void 0||s.call(i))}},{key:"removeController",value:function(i){var a;(a=this._$ES)===null||a===void 0||a.splice(this._$ES.indexOf(i)>>>0,1)}},{key:"_$E_",value:function(){var i=new Map,a=this.constructor.elementProperties,s=xt(a.keys()),c;try{for(s.s();!(c=s.n()).done;){var l=c.value;this.hasOwnProperty(l)&&(i.set(l,this[l]),delete this[l])}}catch(v){s.e(v)}finally{s.f()}i.size>0&&(this._$Ep=i)}},{key:"createRenderRoot",value:function(){var i,a=(i=this.shadowRoot)!==null&&i!==void 0?i:this.attachShadow(this.constructor.shadowRootOptions);return Ev(a,this.constructor.elementStyles),a}},{key:"connectedCallback",value:function(){var i,a;(i=this.renderRoot)!==null&&i!==void 0||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(a=this._$ES)===null||a===void 0||a.forEach(function(s){var c;return(c=s.hostConnected)===null||c===void 0?void 0:c.call(s)})}},{key:"enableUpdating",value:function(i){}},{key:"disconnectedCallback",value:function(){var i;(i=this._$ES)===null||i===void 0||i.forEach(function(a){var s;return(s=a.hostDisconnected)===null||s===void 0?void 0:s.call(a)})}},{key:"attributeChangedCallback",value:function(i,a,s){this._$AK(i,s)}},{key:"_$EO",value:function(i,a){var s=this.constructor.elementProperties.get(i),c=this.constructor._$Eu(i,s);if(c!==void 0&&s.reflect===!0){var l,v=(((l=s.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?s.converter:$v).toAttribute(a,s.type);this._$Em=i,v==null?this.removeAttribute(c):this.setAttribute(c,v),this._$Em=null}}},{key:"_$AK",value:function(i,a){var s=this.constructor,c=s._$Eh.get(i);if(c!==void 0&&this._$Em!==c){var l,v=s.getPropertyOptions(c),m=typeof v.converter=="function"?{fromAttribute:v.converter}:((l=v.converter)===null||l===void 0?void 0:l.fromAttribute)!==void 0?v.converter:$v;this._$Em=c,this[c]=m.fromAttribute(a,v.type),this._$Em=null}}},{key:"requestUpdate",value:function(i,a,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=arguments.length>4?arguments[4]:void 0;if(i!==void 0){var v,m;if((v=s)!==null&&v!==void 0||(s=this.constructor.getPropertyOptions(i)),!((m=s.hasChanged)!==null&&m!==void 0?m:AI)(c?l:this[i],a))return;this.C(i,a,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}},{key:"C",value:function(i,a,s){var c;this._$AL.has(i)||this._$AL.set(i,a),s.reflect===!0&&this._$Em!==i&&((c=this._$Ej)!==null&&c!==void 0?c:this._$Ej=new Set).add(i)}},{key:"_$EP",value:function(){var n=r5(xv().mark(function a(){var s;return xv().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.isUpdatePending=!0,l.prev=1,l.next=4,this._$Eg;case 4:l.next=9;break;case 6:l.prev=6,l.t0=l.catch(1),Promise.reject(l.t0);case 9:if(s=this.scheduleUpdate(),l.t1=s!=null,!l.t1){l.next=14;break}return l.next=14,s;case 14:return l.abrupt("return",!this.isUpdatePending);case 15:case"end":return l.stop()}},a,this,[[1,6]])}));function i(){return n.apply(this,arguments)}return i}()},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(!!this.isUpdatePending){if(!this.hasUpdated){if(this._$Ep){var i=xt(this._$Ep),a;try{for(i.s();!(a=i.n()).done;){var s=vs(a.value,2),c=s[0],l=s[1];this[c]=l}}catch(P){i.e(P)}finally{i.f()}this._$Ep=void 0}var v=this.constructor.elementProperties;if(v.size>0){var m=xt(v),y;try{for(m.s();!(y=m.n()).done;){var b=vs(y.value,2),w=b[0],S=b[1];S.wrapped!==!0||this._$AL.has(w)||this[w]===void 0||this.C(w,this[w],S)}}catch(P){m.e(P)}finally{m.f()}}}var q=!1,k=this._$AL;try{var E;q=this.shouldUpdate(k),q?(this.willUpdate(k),(E=this._$ES)!==null&&E!==void 0&&E.forEach(function(P){var $;return($=P.hostUpdate)===null||$===void 0?void 0:$.call(P)}),this.update(k)):this._$ET()}catch(P){throw q=!1,this._$ET(),P}q&&this._$AE(k)}}},{key:"willUpdate",value:function(i){}},{key:"_$AE",value:function(i){var a;(a=this._$ES)!==null&&a!==void 0&&a.forEach(function(s){var c;return(c=s.hostUpdated)===null||c===void 0?void 0:c.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}},{key:"_$ET",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$Eg}},{key:"shouldUpdate",value:function(i){return!0}},{key:"update",value:function(i){var a=this;this._$Ej&&(this._$Ej=this._$Ej.forEach(function(s){return a._$EO(s,a[s])})),this._$ET()}},{key:"updated",value:function(i){}},{key:"firstUpdated",value:function(i){}}],[{key:"addInitializer",value:function(i){var a;this._$Ei(),((a=this.l)!==null&&a!==void 0?a:this.l=[]).push(i)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&ps(this._$Eh.keys())}},{key:"createProperty",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xI;if(a.state&&(a.attribute=!1),this._$Ei(),this.elementProperties.set(i,a),!a.noAccessor){var s=Symbol(),c=this.getPropertyDescriptor(i,s,a);c!==void 0&&p5(this.prototype,i,c)}}},{key:"getPropertyDescriptor",value:function(i,a,s){var c,l=(c=v5(this.prototype,i))!==null&&c!==void 0?c:{get:function(){return this[a]},set:function(b){this[a]=b}},v=l.get,m=l.set;return{get:function(){return v==null?void 0:v.call(this)},set:function(b){var w=v==null?void 0:v.call(this);m.call(this,b),this.requestUpdate(i,w,s)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(i){var a;return(a=this.elementProperties.get(i))!==null&&a!==void 0?a:xI}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(Vo("elementProperties"))){var i=m5(this);i.finalize(),i.l!==void 0&&(this.l=ps(i.l)),this.elementProperties=new Map(i.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(Vo("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vo("properties"))){var i=this.properties,a=[].concat(ps(h5(i)),ps(d5(i))),s=xt(a),c;try{for(s.s();!(c=s.n()).done;){var l=c.value;this.createProperty(l,i[l])}}catch(L){s.e(L)}finally{s.f()}}var v=this[Symbol.metadata];if(v!==null){var m=litPropertyMetadata.get(v);if(m!==void 0){var y=xt(m),b;try{for(y.s();!(b=y.n()).done;){var w=vs(b.value,2),S=w[0],q=w[1];this.elementProperties.set(S,q)}}catch(L){y.e(L)}finally{y.f()}}}this._$Eh=new Map;var k=xt(this.elementProperties),E;try{for(k.s();!(E=k.n()).done;){var P=vs(E.value,2),$=P[0],R=P[1],j=this._$Eu($,R);j!==void 0&&this._$Eh.set(j,$)}}catch(L){k.e(L)}finally{k.f()}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(i){var a=[];if(Array.isArray(i)){var s=new Set(i.flat(1/0).reverse()),c=xt(s),l;try{for(c.s();!(l=c.n()).done;){var v=l.value;a.unshift(ls(v))}}catch(m){c.e(m)}finally{c.f()}}else i!==void 0&&a.push(ls(i));return a}},{key:"_$Eu",value:function(i,a){var s=a.attribute;return s===!1?void 0:typeof s=="string"?s:typeof i=="string"?i.toLowerCase():void 0}}]),t}(Av(HTMLElement));Rt.elementStyles=[],Rt.shadowRootOptions={mode:"open"},Rt[Vo("elementProperties")]=new Map,Rt[Vo("finalized")]=new Map,kv!=null&&kv({ReactiveElement:Rt}),((Tv=oi.reactiveElementVersions)!==null&&Tv!==void 0?Tv:oi.reactiveElementVersions=[]).push("2.0.0");var qde=N(z(),1);var b5=ie(),Dv=X(),Ko=Y(),w5=Qt(),S5=eu(),O5=br(),_5=$r().f,jI=gr(),P5=Du(),LI=pe(),E5=ul(),BI=Pi(),I5=NI(),q5=Ee(),T5=K(),k5=oe(),x5=je().enforce,R5=qi(),A5=re(),MI=Of(),GI=_f(),$5=A5("match"),Jr=Dv.RegExp,ai=Jr.prototype,N5=Dv.SyntaxError,j5=Ko(ai.exec),ds=Ko("".charAt),CI=Ko("".replace),DI=Ko("".indexOf),L5=Ko("".slice),C5=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$t=/a/g,jv=/a/g,D5=new Jr($t)!==$t,FI=BI.MISSED_STICKY,B5=BI.UNSUPPORTED_Y,M5=b5&&(!D5||FI||MI||GI||T5(function(){return jv[$5]=!1,Jr($t)!=$t||Jr(jv)==jv||Jr($t,"i")!="/a/i"})),G5=function(e){for(var r=e.length,t=0,n="",i=!1,a;t<=r;t++){if(a=ds(e,t),a==="\\"){n+=a+ds(e,++t);continue}!i&&a==="."?n+="[\\s\\S]":(a==="["?i=!0:a==="]"&&(i=!1),n+=a)}return n},F5=function(e){for(var r=e.length,t=0,n="",i=[],a={},s=!1,c=!1,l=0,v="",m;t<=r;t++){if(m=ds(e,t),m==="\\")m=m+ds(e,++t);else if(m==="]")s=!1;else if(!s)switch(!0){case m==="[":s=!0;break;case m==="(":j5(C5,L5(e,t+1))&&(t+=2,c=!0),n+=m,l++;continue;case(m===">"&&c):if(v===""||k5(a,v))throw new N5("Invalid capture group name");a[v]=!0,i[i.length]=[v,l],c=!1,v="";continue}c?v+=m:n+=m}return[n,i]};if(w5("RegExp",M5)){for(Qr=function(r,t){var n=jI(ai,this),i=P5(r),a=t===void 0,s=[],c=r,l,v,m,y,b,w;if(!n&&i&&a&&r.constructor===Qr)return r;if((i||jI(ai,r))&&(r=r.source,a&&(t=E5(c))),r=r===void 0?"":LI(r),t=t===void 0?"":LI(t),c=r,MI&&"dotAll"in $t&&(v=!!t&&DI(t,"s")>-1,v&&(t=CI(t,/s/g,""))),l=t,FI&&"sticky"in $t&&(m=!!t&&DI(t,"y")>-1,m&&B5&&(t=CI(t,/y/g,""))),GI&&(y=F5(r),r=y[0],s=y[1]),b=S5(Jr(r,t),n?this:ai,Qr),(v||m||s.length)&&(w=x5(b),v&&(w.dotAll=!0,w.raw=Qr(G5(r),l)),m&&(w.sticky=!0),s.length&&(w.groups=s)),r!==c)try{O5(b,"source",c===""?"(?:)":c)}catch(S){}return b},Lv=_5(Jr),Cv=0;Lv.length>Cv;)I5(Qr,Jr,Lv[Cv++]);ai.constructor=Qr,Qr.prototype=ai,q5(Dv,"RegExp",Qr,{constructor:!0})}var Qr,Lv,Cv;R5("RegExp");var Nde=N(ve(),1);var U5=ie(),V5=Pi().MISSED_STICKY,z5=Ve(),H5=jr(),K5=je().get,UI=RegExp.prototype,W5=TypeError;U5&&V5&&H5(UI,"sticky",{configurable:!0,get:function(){if(this!==UI){if(z5(this)==="RegExp")return!!K5(this).sticky;throw W5("Incompatible receiver, RegExp required")}}});var Z5=M(),WI=st(),e6=er().f,r6=lr(),HI=pe(),t6=ms(),n6=He(),i6=ys(),o6=Ne(),KI=WI("".startsWith),a6=WI("".slice),u6=Math.min,YI=i6("startsWith"),s6=!o6&&!YI&&!!function(){var e=e6(String.prototype,"startsWith");return e&&!e.writable}();Z5({target:"String",proto:!0,forced:!s6&&!YI},{startsWith:function(r){var t=HI(n6(this));t6(r);var n=r6(u6(arguments.length>1?arguments[1]:void 0,t.length)),i=HI(r);return KI?KI(t,i,n):a6(t,n,n+i.length)===i}});var f6=M(),JI=st(),c6=er().f,l6=lr(),XI=pe(),p6=ms(),v6=He(),h6=ys(),d6=Ne(),QI=JI("".endsWith),m6=JI("".slice),y6=Math.min,ZI=h6("endsWith"),g6=!d6&&!ZI&&!!function(){var e=c6(String.prototype,"endsWith");return e&&!e.writable}();f6({target:"String",proto:!0,forced:!g6&&!ZI},{endsWith:function(r){var t=XI(v6(this));p6(r);var n=arguments.length>1?arguments[1]:void 0,i=t.length,a=n===void 0?i:y6(l6(n),i),s=XI(r);return QI?QI(t,s,a):m6(t,a-s.length,a)===s}});var b6=M(),w6=tv(),S6=yn();b6({target:"Array",proto:!0},{fill:w6});S6("fill");var Bv;function zv(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Fv(e,r)}function Fv(e,r){return Fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fv(e,r)}function Hv(e){var r=P6();return function(){var n=gs(e),i;if(r){var a=gs(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return O6(this,i)}}function O6(e,r){if(r&&(Lt(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _6(e)}function _6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P6(){if(typeof Reflect=="undefined"||!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(e){return!1}}function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gs(e)}function Kv(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Wv(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return a=v.done,v},e:function(v){s=!0,c=v},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function E6(e){return T6(e)||q6(e)||Wv(e)||I6()}function I6(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q6(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T6(e){if(Array.isArray(e))return Uv(e)}function k6(e,r){return A6(e)||R6(e,r)||Wv(e,r)||x6()}function x6(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Wv(e,r){if(!!e){if(typeof e=="string")return Uv(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Uv(e,r)}}function Uv(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function R6(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,v=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){v=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(v)throw i}}return c}}function A6(e){if(Array.isArray(e))return e}function et(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function eq(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$6(n.key),n)}}function rt(e,r,t){return r&&eq(e.prototype,r),t&&eq(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $6(e){var r=N6(e,"string");return Lt(r)==="symbol"?r:String(r)}function N6(e,r){if(Lt(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Lt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Lt(e){return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lt(e)}var bs=globalThis,ws=bs.trustedTypes,rq=ws?ws.createPolicy("lit-html",{createHTML:function(r){return r}}):void 0,uq="$lit$",Zr="lit$".concat((Math.random()+"").slice(9),"$"),sq="?"+Zr,j6="<".concat(sq,">"),Ct=document,Yo=function(){return Ct.createComment("")},Xo=function(r){return r===null||Lt(r)!="object"&&typeof r!="function"},fq=Array.isArray,L6=function(r){return fq(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function"},Mv="[ \n\f\r]",Wo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tq=/-->/g,nq=/>/g,Nt=RegExp(">|".concat(Mv,"(?:([^\\s\"'>=/]+)(").concat(Mv,"*=").concat(Mv,"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),iq=/'/g,oq=/"/g,cq=/^(?:script|style|textarea|title)$/i,lq=function(r){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return{_$litType$:r,strings:t,values:i}}},Yv=lq(1),rme=lq(2),Dt=Symbol.for("lit-noChange"),me=Symbol.for("lit-nothing"),aq=new WeakMap,jt=Ct.createTreeWalker(Ct,129);function pq(e,r){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return rq!==void 0?rq.createHTML(r):r}var C6=function(r,t){for(var n=r.length-1,i=[],a,s=t===2?"<svg>":"",c=Wo,l=0;l<n;l++){for(var v=r[l],m=void 0,y=void 0,b=-1,w=0;w<v.length&&(c.lastIndex=w,y=c.exec(v),y!==null);){var S;w=c.lastIndex,c===Wo?y[1]==="!--"?c=tq:y[1]!==void 0?c=nq:y[2]!==void 0?(cq.test(y[2])&&(a=RegExp("</"+y[2],"g")),c=Nt):y[3]!==void 0&&(c=Nt):c===Nt?y[0]===">"?(c=(S=a)!==null&&S!==void 0?S:Wo,b=-1):y[1]===void 0?b=-2:(b=c.lastIndex-y[2].length,m=y[1],c=y[3]===void 0?Nt:y[3]==='"'?oq:iq):c===oq||c===iq?c=Nt:c===tq||c===nq?c=Wo:(c=Nt,a=void 0)}var q=c===Nt&&r[l+1].startsWith("/>")?" ":"";s+=c===Wo?v+j6:b>=0?(i.push(m),v.slice(0,b)+uq+v.slice(b)+Zr+q):v+Zr+(b===-2?l:q)}return[pq(r,s+(r[n]||"<?>")+(t===2?"</svg>":"")),i]},Vv=function(){function e(r,t){var n=r.strings,i=r._$litType$;et(this,e);var a;this.parts=[];var s=0,c=0,l=n.length-1,v=this.parts,m=C6(n,i),y=k6(m,2),b=y[0],w=y[1];if(this.el=e.createElement(b,t),jt.currentNode=this.el.content,i===2){var S=this.el.content.firstChild;S.replaceWith.apply(S,E6(S.childNodes))}for(;(a=jt.nextNode())!==null&&v.length<l;){if(a.nodeType===1){if(a.hasAttributes()){var q=Kv(a.getAttributeNames()),k;try{for(q.s();!(k=q.n()).done;){var E=k.value;if(E.endsWith(uq)){var P=w[c++],$=a.getAttribute(E).split(Zr),R=/([.?@])?(.*)/.exec(P);v.push({type:1,index:s,name:R[2],strings:$,ctor:R[1]==="."?B6:R[1]==="?"?M6:R[1]==="@"?G6:Ss}),a.removeAttribute(E)}else E.startsWith(Zr)&&(v.push({type:6,index:s}),a.removeAttribute(E))}}catch(B){q.e(B)}finally{q.f()}}if(cq.test(a.tagName)){var j=a.textContent.split(Zr),L=j.length-1;if(L>0){a.textContent=ws?ws.emptyScript:"";for(var U=0;U<L;U++)a.append(j[U],Yo()),jt.nextNode(),v.push({type:2,index:++s});a.append(j[L],Yo())}}}else if(a.nodeType===8)if(a.data===sq)v.push({type:2,index:s});else for(var C=-1;(C=a.data.indexOf(Zr,C+1))!==-1;)v.push({type:7,index:s}),C+=Zr.length-1;s++}}return rt(e,null,[{key:"createElement",value:function(t,n){var i=Ct.createElement("template");return i.innerHTML=t,i}}]),e}();function ui(e,r){var t,n,i,a,s,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,l=arguments.length>3?arguments[3]:void 0;if(r===Dt)return r;var v=l!==void 0?(t=c._$Co)===null||t===void 0?void 0:t[l]:c._$Cl,m=Xo(r)?void 0:r._$litDirective$;return((n=v)===null||n===void 0?void 0:n.constructor)!==m&&((i=v)!==null&&i!==void 0&&(a=i._$AO)!==null&&a!==void 0&&a.call(i,!1),m===void 0?v=void 0:(v=new m(e),v._$AT(e,c,l)),l!==void 0?((s=c._$Co)!==null&&s!==void 0?s:c._$Co=[])[l]=v:c._$Cl=v),v!==void 0&&(r=ui(e,v._$AS(e,r.values),v,l)),r}var D6=function(){function e(r,t){et(this,e),this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}return rt(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(t){var n,i=this._$AD,a=i.el.content,s=i.parts,c=((n=t==null?void 0:t.creationScope)!==null&&n!==void 0?n:Ct).importNode(a,!0);jt.currentNode=c;for(var l=jt.nextNode(),v=0,m=0,y=s[0];y!==void 0;){var b;if(v===y.index){var w=void 0;y.type===2?w=new Xv(l,l.nextSibling,this,t):y.type===1?w=new y.ctor(l,y.name,y.strings,this,t):y.type===6&&(w=new F6(l,this,t)),this._$AV.push(w),y=s[++m]}v!==((b=y)===null||b===void 0?void 0:b.index)&&(l=jt.nextNode(),v++)}return jt.currentNode=Ct,c}},{key:"p",value:function(t){var n=0,i=Kv(this._$AV),a;try{for(i.s();!(a=i.n()).done;){var s=a.value;s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,n),n+=s.strings.length-2):s._$AI(t[n])),n++}}catch(c){i.e(c)}finally{i.f()}}}]),e}(),Xv=function(){function e(r,t,n,i){var a;et(this,e),this.type=2,this._$AH=me,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=(a=i==null?void 0:i.isConnected)!==null&&a!==void 0?a:!0}return rt(e,[{key:"_$AU",get:function(){var t,n;return(t=(n=this._$AM)===null||n===void 0?void 0:n._$AU)!==null&&t!==void 0?t:this._$Cv}},{key:"parentNode",get:function(){var t,n=this._$AA.parentNode,i=this._$AM;return i!==void 0&&((t=n)===null||t===void 0?void 0:t.nodeType)===11&&(n=i.parentNode),n}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;t=ui(this,t,n),Xo(t)?t===me||t==null||t===""?(this._$AH!==me&&this._$AR(),this._$AH=me):t!==this._$AH&&t!==Dt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):L6(t)?this.T(t):this._(t)}},{key:"k",value:function(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}},{key:"$",value:function(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}},{key:"_",value:function(t){this._$AH!==me&&Xo(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ct.createTextNode(t)),this._$AH=t}},{key:"g",value:function(t){var n,i=t.values,a=t._$litType$,s=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=Vv.createElement(pq(a.h,a.h[0]),this.options)),a);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===s)this._$AH.p(i);else{var c=new D6(s,this),l=c.u(this.options);c.p(i),this.$(l),this._$AH=c}}},{key:"_$AC",value:function(t){var n=aq.get(t.strings);return n===void 0&&aq.set(t.strings,n=new Vv(t)),n}},{key:"T",value:function(t){fq(this._$AH)||(this._$AH=[],this._$AR());var n=this._$AH,i,a=0,s=Kv(t),c;try{for(s.s();!(c=s.n()).done;){var l=c.value;a===n.length?n.push(i=new e(this.k(Yo()),this.k(Yo()),this,this.options)):i=n[a],i._$AI(l),a++}}catch(v){s.e(v)}finally{s.f()}a<n.length&&(this._$AR(i&&i._$AB.nextSibling,a),n.length=a)}},{key:"_$AR",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for((i=this._$AP)===null||i===void 0?void 0:i.call(this,!1,!0,n);t&&t!==this._$AB;){var i,a=t.nextSibling;t.remove(),t=a}}},{key:"setConnected",value:function(t){var n;this._$AM===void 0&&(this._$Cv=t,(n=this._$AP)===null||n===void 0||n.call(this,t))}}]),e}(),Ss=function(){function e(r,t,n,i,a){et(this,e),this.type=1,this._$AH=me,this._$AN=void 0,this.element=r,this.name=t,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=me}return rt(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this,i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=this.strings,c=!1;if(s===void 0)t=ui(this,t,n,0),c=!Xo(t)||t!==this._$AH&&t!==Dt,c&&(this._$AH=t);else{var l=t,v,m;for(t=s[0],v=0;v<s.length-1;v++){var y;m=ui(this,l[i+v],n,v),m===Dt&&(m=this._$AH[v]),c||(c=!Xo(m)||m!==this._$AH[v]),m===me?t=me:t!==me&&(t+=((y=m)!==null&&y!==void 0?y:"")+s[v+1]),this._$AH[v]=m}}c&&!a&&this.j(t)}},{key:"j",value:function(t){t===me?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}]),e}(),B6=function(e){zv(t,e);var r=Hv(t);function t(){var n;return et(this,t),n=r.apply(this,arguments),n.type=3,n}return rt(t,[{key:"j",value:function(i){this.element[this.name]=i===me?void 0:i}}]),t}(Ss),M6=function(e){zv(t,e);var r=Hv(t);function t(){var n;return et(this,t),n=r.apply(this,arguments),n.type=4,n}return rt(t,[{key:"j",value:function(i){this.element.toggleAttribute(this.name,!!i&&i!==me)}}]),t}(Ss),G6=function(e){zv(t,e);var r=Hv(t);function t(n,i,a,s,c){var l;return et(this,t),l=r.call(this,n,i,a,s,c),l.type=5,l}return rt(t,[{key:"_$AI",value:function(i){var a,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;if((i=(a=ui(this,i,s,0))!==null&&a!==void 0?a:me)!==Dt){var c=this._$AH,l=i===me&&c!==me||i.capture!==c.capture||i.once!==c.once||i.passive!==c.passive,v=i!==me&&(c===me||l);l&&this.element.removeEventListener(this.name,this,c),v&&this.element.addEventListener(this.name,this,i),this._$AH=i}}},{key:"handleEvent",value:function(i){var a,s;typeof this._$AH=="function"?this._$AH.call((a=(s=this.options)===null||s===void 0?void 0:s.host)!==null&&a!==void 0?a:this.element,i):this._$AH.handleEvent(i)}}]),t}(Ss),F6=function(){function e(r,t,n){et(this,e),this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}return rt(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){ui(this,t)}}]),e}();var Gv=bs.litHtmlPolyfillSupport;Gv!=null&&Gv(Vv,Xv),((Bv=bs.litHtmlVersions)!==null&&Bv!==void 0?Bv:bs.litHtmlVersions=[]).push("3.0.0");var vq=function(r,t,n){var i,a=(i=n==null?void 0:n.renderBefore)!==null&&i!==void 0?i:t,s=a._$litPart$;if(s===void 0){var c,l=(c=n==null?void 0:n.renderBefore)!==null&&c!==void 0?c:null;a._$litPart$=s=new Xv(t.insertBefore(Yo(),l),l,void 0,n!=null?n:{})}return s._$AI(r),s};var gme=N(z(),1);function si(e){return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},si(e)}var Qv,Jv;function U6(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function hq(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z6(n.key),n)}}function V6(e,r,t){return r&&hq(e.prototype,r),t&&hq(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function z6(e){var r=H6(e,"string");return si(r)==="symbol"?r:String(r)}function H6(e,r){if(si(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(si(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Bt(){return typeof Reflect!="undefined"&&Reflect.get?Bt=Reflect.get.bind():Bt=function(r,t,n){var i=K6(r,t);if(!!i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},Bt.apply(this,arguments)}function K6(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=Rr(e),e!==null););return e}function W6(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&eh(e,r)}function eh(e,r){return eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eh(e,r)}function Y6(e){var r=Q6();return function(){var n=Rr(e),i;if(r){var a=Rr(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return X6(this,i)}}function X6(e,r){if(r&&(si(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dq(e)}function dq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q6(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rr(e)}var Mt=function(e){W6(t,e);var r=Y6(t);function t(){var n;return U6(this,t),n=r.apply(this,arguments),n.renderOptions={host:dq(n)},n._$Do=void 0,n}return V6(t,[{key:"createRenderRoot",value:function(){var i,a,s=Bt(Rr(t.prototype),"createRenderRoot",this).call(this);return(a=(i=this.renderOptions).renderBefore)!==null&&a!==void 0||(i.renderBefore=s.firstChild),s}},{key:"update",value:function(i){var a=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),Bt(Rr(t.prototype),"update",this).call(this,i),this._$Do=vq(a,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var i;Bt(Rr(t.prototype),"connectedCallback",this).call(this),(i=this._$Do)===null||i===void 0||i.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var i;Bt(Rr(t.prototype),"disconnectedCallback",this).call(this),(i=this._$Do)===null||i===void 0||i.setConnected(!1)}},{key:"render",value:function(){return Dt}}]),t}(Rt);Mt._$litElement$=!0,Mt["finalized"]=!0,(Qv=globalThis.litElementHydrateSupport)===null||Qv===void 0||Qv.call(globalThis,{LitElement:Mt});var Zv=globalThis.litElementPolyfillSupport;Zv==null||Zv({LitElement:Mt});((Jv=globalThis.litElementVersions)!==null&&Jv!==void 0?Jv:globalThis.litElementVersions=[]).push("4.0.0");function Gt(e){return Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gt(e)}var mq,yq,gq,bq,wq;function rh(){"use strict";rh=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&Gt(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function Sq(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function J6(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){Sq(a,n,i,s,c,"next",l)}function c(l){Sq(a,n,i,s,c,"throw",l)}s(void 0)})}}function _q(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Oq(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qq(n.key),n)}}function Pq(e,r,t){return r&&Oq(e.prototype,r),t&&Oq(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eq(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&th(e,r)}function th(e,r){return th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},th(e,r)}function Iq(e){var r=eW();return function(){var n=Os(e),i;if(r){var a=Os(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Z6(this,i)}}function Z6(e,r){if(r&&(Gt(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nh(e)}function nh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eW(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Os(e)}function Qo(e,r,t){return r=qq(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function qq(e){var r=rW(e,"string");return Gt(r)==="symbol"?r:String(r)}function rW(e,r){if(Gt(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Gt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Jo(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var Tq=Uo(mq||(mq=Jo(["\n button {\n background-color: transparent;\n outline: none;\n border-style: none;\n padding: var(--space-3);\n border-radius: var(--space-1);\n font-size: var(--font-lg);\n background-color: inherit;\n display: block;\n }\n\n button > svg {\n display: block;\n }\n"]))),kq=function(e){Eq(t,e);var r=Iq(t);function t(){return _q(this,t),r.apply(this,arguments)}return Pq(t,[{key:"toggleCollapsed",value:function(){var i;this.classList.toggle("collapsed"),(i=this.querySelector(".toggle-button"))===null||i===void 0||i.blur()}},{key:"handleDismissAll",value:function(){var i=this;this.classList.add("leaving"),this.addEventListener("animationend",function(){i.remove()})}},{key:"render",value:function(){return Yv(yq||(yq=Jo([' <div class="header">\n <span class="title"> Shiny Client Errors </span>\n <button\n class="close-button"\n @click=','\n title="Dismiss all console messages and close console"\n >\n <svg\n xmlns="http://www.w3.org/2000/svg"\n fill="none"\n viewBox="0 0 24 24"\n stroke-width="1.5"\n height="1em"\n width="1em"\n stroke="currentColor"\n class="close-icon"\n >\n <path\n stroke-linecap="round"\n stroke-linejoin="round"\n d="M6 18L18 6M6 6l12 12"\n />\n </svg>\n Dismiss all\n </button>\n <button class="toggle-button" @click=','>\n <svg\n xmlns="http://www.w3.org/2000/svg"\n fill="none"\n viewBox="0 0 24 24"\n stroke-width="1.5"\n height="1em"\n width="1em"\n stroke="currentColor"\n class="toggle-icon"\n >\n <path\n class="collapse"\n stroke-linecap="round"\n stroke-linejoin="round"\n d="M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25"\n />\n </svg>\n </button>\n </div>\n <slot class="content"></slot>'])),this.handleDismissAll,this.toggleCollapsed)}}]),t}(Mt);Qo(kq,"styles",[Uo(bq||(bq=Jo(["\n :host {\n /* We declare hard pixel values here to avoid body font size changes\n messing up the size of the console. This was an issue with bslib setting\n the body font-size at 16px relative to base shiny's 14px. */\n --font-md: 14px;\n --font-lg: 16px;\n --font-xl: 18px;\n\n /* These are all taken from open-props */\n --space-1: 6px;\n --space-2: calc(var(--space-1) * 2);\n --space-3: calc(var(--space-1) * 3);\n --space-4: calc(var(--space-1) * 4);\n --space-8: calc(var(--space-1) * 8);\n\n --red-2: #ffc9c9;\n --red-6: #fa5252;\n --red-7: #f03e3e;\n --red-8: #e03131;\n --red-10: #b02525;\n --red-11: #962020;\n --red-12: #7d1a1a;\n\n --gray-1: #f8f9fa;\n --gray-2: #e9ecef;\n --gray-3: #dee2e6;\n --gray-4: #ced4da;\n --gray-6: #868e96;\n --gray-8: #6c757d;\n\n --green-8: #51cf66;\n\n --shadow-color: 220 3% 15%;\n --shadow-strength: 1%;\n --shadow-3: 0 -1px 3px 0 hsl(var(--shadow-color) /\n calc(var(--shadow-strength) + 2%)),\n 0 1px 2px -5px hsl(var(--shadow-color) /\n calc(var(--shadow-strength) + 2%)),\n 0 2px 5px -5px hsl(var(--shadow-color) /\n calc(var(--shadow-strength) + 4%)),\n 0 4px 12px -5px hsl(var(--shadow-color) /\n calc(var(--shadow-strength) + 5%)),\n 0 12px 15px -5px hsl(var(--shadow-color) /\n calc(var(--shadow-strength) + 7%));\n\n --ring-shadow: 0 0 0 1px var(--gray-2);\n\n /* How fast should the message pop in and out of the screen? */\n --animation-speed: 500ms;\n\n /* Taken from open-props */\n --ease-3: cubic-bezier(0.25, 0, 0.3, 1);\n --animation-slide-in-left: slide-in-left var(--animation-speed)\n var(--ease-3);\n\n --animation-slide-out-left: slide-out-left var(--animation-speed)\n var(--ease-3);\n --modal-bg-color: white;\n\n position: fixed;\n top: var(--space-1);\n right: var(--space-1);\n z-index: 1000;\n\n display: flex;\n flex-direction: column;\n\n background-color: var(--modal-bg-color);\n border-radius: var(--space-1);\n\n animation: var(--animation-slide-in-left);\n box-shadow: var(--shadow-3), var(--ring-shadow);\n\n /* Dont let the error console burst out of the viewport */\n max-height: calc(100vh - 2 * var(--space-1));\n }\n\n @keyframes slide-in-left {\n from {\n transform: translateX(100%);\n }\n }\n @keyframes slide-out-left {\n to {\n transform: translateX(100%);\n }\n }\n\n :host(.leaving) {\n animation: var(--animation-slide-out-left);\n }\n\n .header {\n display: flex;\n justify-content: flex-end;\n align-items: flex-start;\n gap: var(--space-2);\n }\n\n .title {\n font-size: var(--font-xl);\n margin-right: auto;\n padding: var(--space-3);\n line-height: 1;\n font-weight: 600;\n color: var(--red-12);\n }\n\n ","\n\n button:hover {\n background-color: var(--gray-2);\n }\n\n .toggle-button {\n width: fit-content;\n border: none;\n aspect-ratio: 1;\n border-color: var(--gray-4);\n }\n\n .close-button {\n display: flex;\n align-items: center;\n color: var(--red-11);\n }\n\n .close-button > svg {\n margin-right: 3px;\n }\n\n .toggle-button:focus {\n outline: 1px solid black;\n }\n\n .toggle-icon {\n transition: transform var(--animation-speed) ease-in-out;\n }\n\n :host(.collapsed) .toggle-icon {\n transform: scaleX(-1) scaleY(-1);\n }\n\n :host(.collapsed) .close-button {\n display: none;\n }\n\n .content {\n display: block;\n padding-inline: var(--space-4);\n padding-block-start: 0;\n padding-block-end: var(--space-4);\n max-height: 100%;\n overflow: auto;\n }\n\n :host(.collapsed) .content {\n display: none;\n }\n "])),Tq)]);customElements.define("shiny-error-console",kq);var ih=function(e){Eq(t,e);var r=Iq(t);function t(){var n;_q(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r.call.apply(r,[this].concat(a)),Qo(nh(n),"headline",""),Qo(nh(n),"message",""),n}return Pq(t,[{key:"copyErrorToClipboard",value:function(){var n=J6(rh().mark(function a(){var s=this;return rh().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,navigator.clipboard.writeText(this.message);case 2:this.classList.add("copy-success"),setTimeout(function(){s.classList.remove("copy-success")},1e3);case 4:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"render",value:function(){return Yv(gq||(gq=Jo(['\n <div class="container">\n <div class="decoration-container">\n <div class="vertical-line"></div>\n <div class="dot"></div>\n </div>\n <div class="contents">\n <h3>','</h3>\n <pre class="error-message">','</pre>\n </div>\n\n <div class="actions">\n <button\n class="copy-button"\n @click=','\n title="Copy error to clipboard"\n >\n <div class="copy-button-inner">\n <svg\n class="front"\n xmlns="http://www.w3.org/2000/svg"\n fill="none"\n viewBox="0 0 24 24"\n stroke-width="1.5"\n stroke="currentColor"\n height="1em"\n width="1em"\n >\n <path\n stroke-linecap="round"\n stroke-linejoin="round"\n d="M15.666 3.888A2.25 2.25 0 0013.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 01-.75.75H9a.75.75 0 01-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 01-2.25 2.25H6.75A2.25 2.25 0 014.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 011.927-.184"\n />\n </svg>\n\n <svg\n class="back"\n xmlns="http://www.w3.org/2000/svg"\n fill="none"\n viewBox="0 0 24 24"\n stroke-width="1.5"\n stroke="currentColor"\n height="1em"\n width="1em"\n >\n <path\n stroke-linecap="round"\n stroke-linejoin="round"\n d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"\n />\n </svg>\n </div>\n </button>\n </div>\n </div>\n '])),this.headline,this.message,this.copyErrorToClipboard)}}]),t}(Mt);Qo(ih,"properties",{headline:{},message:{}});Qo(ih,"styles",[Uo(wq||(wq=Jo(['\n :host {\n color: var(--red-11);\n display: block;\n font-size: var(--font-md);\n\n position: relative;\n --icon-size: var(--font-lg)\n\n /* Reset box sizing */\n box-sizing: border-box;\n }\n\n .container {\n display: flex;\n gap: var(--space-2);\n }\n\n .contents {\n width: 40ch;\n display: flex;\n flex-direction: column;\n gap: var(--space-1);\n padding-block-start: 0;\n padding-block-end: var(--space-3);\n overflow: auto;\n }\n\n :host(:last-of-type) .contents {\n\n padding-block-end: var(--space-1);\n }\n\n .contents > h3 {\n font-size: 1em;\n font-weight: 500;\n color: var(--red-12);\n }\n\n .contents > * {\n margin-block: 0;\n }\n\n .error-message {\n font-family: "Courier New", Courier, monospace;\n }\n\n .decoration-container {\n flex-shrink: 0;\n position: relative;\n\n --line-w: 2px;\n --dot-size: 11px;\n }\n\n :host(:hover) .decoration-container {\n --scale: 1.25;\n }\n\n .vertical-line {\n margin-inline: auto;\n width: var(--line-w);\n height: 100%;\n\n background-color: var(--red-10);\n }\n\n :host(:first-of-type) .vertical-line {\n height: calc(100% - var(--dot-size));\n margin-top: var(--dot-size);\n }\n\n .dot {\n position: absolute;\n width: var(--dot-size);\n height: var(--dot-size);\n top: calc(-1px + var(--dot-size) / 2);\n left: calc(50% - var(--dot-size) / 2);\n border-radius: 100%;\n transform: scale(var(--scale, 1));\n\n color: var(--red-6);\n background-color: var(--red-10);\n }\n\n .actions {\n transform: scaleX(0);\n transition: transform calc(var(--animation-speed) / 2) ease-in-out;\n display: flex;\n justify-content: center;\n flex-direction: column;\n }\n\n /* Delay transition on mouseout so the buttons don\'t jump away if the user\n overshoots them with their mouse */\n :host(:not(:hover)) .actions {\n transition-delay: 0.15s;\n }\n\n :host(:hover) .actions {\n transform: scaleX(1);\n }\n\n ',"\n\n .copy-button {\n padding: 0;\n width: var(--space-8);\n height: var(--space-8);\n position: relative;\n --pad: var(--space-2);\n }\n\n .copy-button-inner {\n position: relative;\n width: 100%;\n height: 100%;\n border-radius: inherit;\n transition: transform 0.5s;\n transform-style: preserve-3d;\n }\n\n /* Animate flipping to the other side when the .copy-success class is\n added to the host */\n :host(.copy-success) .copy-button-inner {\n transform: rotateY(180deg);\n }\n\n /* Position the front and back side */\n .copy-button .front,\n .copy-button .back {\n --side: calc(100% - 2 * var(--pad));\n position: absolute;\n inset: var(--pad);\n height: var(--side);\n width: var(--side);\n -webkit-backface-visibility: hidden; /* Safari */\n backface-visibility: hidden;\n }\n\n .copy-button:hover .copy-button-inner {\n background-color: var(--gray-2);\n }\n\n /* Style the back side */\n .copy-button .back {\n --pad: var(--space-1);\n color: var(--green-8);\n transform: rotateY(180deg);\n }\n "])),Tq)]);customElements.define("shiny-error-message",ih);function _s(e){if(!!Shiny.inDevMode()){var r=null,t="Error on client while running Shiny app";typeof e=="string"?r=e:e instanceof Ku?(r=e.message,t=e.headline):e instanceof Error?r=e.message:r="Unknown error";var n=document.querySelector("shiny-error-console");n||(n=document.createElement("shiny-error-console"),document.body.appendChild(n));var i=document.createElement("shiny-error-message");i.setAttribute("headline",t||""),i.setAttribute("message",r),n.appendChild(i)}}var lye=N(z());var tW=M(),nW=ha().includes,iW=K(),oW=yn(),aW=iW(function(){return!Array(1).includes()});tW({target:"Array",proto:!0,forced:aW},{includes:function(r){return nW(this,r,arguments.length>1?arguments[1]:void 0)}});oW("includes");var uW=M(),sW=Y(),fW=ms(),cW=He(),xq=pe(),lW=ys(),pW=sW("".indexOf);uW({target:"String",proto:!0,forced:!lW("includes")},{includes:function(r){return!!~pW(xq(cW(this)),xq(fW(r)),arguments.length>1?arguments[1]:void 0)}});Rq();var kye=N(ve());function Zo(e){return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zo(e)}function dW(e,r){return gW(e)||yW(e,r)||Bq(e,r)||mW()}function mW(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yW(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,v=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){v=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(v)throw i}}return c}}function gW(e){if(Array.isArray(e))return e}function bW(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Bq(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return a=v.done,v},e:function(v){s=!0,c=v},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function Bq(e,r){if(!!e){if(typeof e=="string")return Aq(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Aq(e,r)}}function Aq(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function wW(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function $q(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mq(n.key),n)}}function SW(e,r,t){return r&&$q(e.prototype,r),t&&$q(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fi(e,r){OW(e,r),r.add(e)}function OW(e,r){if(r.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Nq(e,r,t){return r=Mq(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Mq(e){var r=_W(e,"string");return Zo(r)==="symbol"?r:String(r)}function _W(e,r){if(Zo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Zo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Te(e,r,t){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return t}var Z;(function(e){e.Initial="initial",e.Running="running",e.Idle="idle",e.Value="value",e.Error="error",e.Cancel="cancel",e.Persistent="persistent",e.Invalidated="invalidated"})(Z||(Z={}));var jq=new WeakSet,Lq=new WeakSet,Cq=new WeakSet,oh=new WeakSet,ea=new WeakSet,Ft=new WeakSet,Gq=function(){function e(){wW(this,e),fi(this,Ft),fi(this,ea),fi(this,oh),fi(this,Cq),fi(this,Lq),fi(this,jq),Nq(this,"outputStates",new Map),Nq(this,"changedOutputs",new Map)}return SW(e,[{key:"takeChanges",value:function(){var t=this.changedOutputs;return this.changedOutputs=new Map,t}},{key:"isRecalculating",value:function(t){var n=Te(this,ea,Ps).call(this,t),i=[Z.Initial,Z.Running,Z.Idle,Z.Persistent,Z.Invalidated];return i.includes(n)}},{key:"updateStateFromMessage",value:function(t){qW(t)&&Te(this,jq,PW).call(this,t),TW(t)&&Te(this,Lq,EW).call(this,t),kW(t)&&Te(this,Cq,IW).call(this,t)}}]),e}();function PW(e){var r=e.recalculating,t=r.name,n=r.status,i=Te(this,ea,Ps).call(this,t);if(n==="recalculating")switch(i){case Z.Initial:case Z.Invalidated:Te(this,Ft,ci).call(this,t,Z.Running);break;default:throw new Error("Shiny server sent a message that the output '".concat(t,"' is recalculating,\n but the output is in an unexpected state of: '").concat(i,"'."))}if(n==="recalculated")switch(i){case Z.Running:Te(this,Ft,ci).call(this,t,Z.Idle);break;default:throw new Error("Shiny server sent a message that the output '".concat(t,"' has been recalculated,\n but the output is in an unexpected state of: '").concat(i,"'."))}}function EW(e){for(var r in e.values)Te(this,oh,Dq).call(this,r,Z.Value);for(var t in e.errors)Te(this,oh,Dq).call(this,t,Z.Error);var n=bW(this.outputStates),i;try{for(n.s();!(i=n.n()).done;){var a=dW(i.value,2),s=a[0],c=a[1];switch(c){case Z.Idle:Te(this,Ft,ci).call(this,s,Z.Cancel);break;case Z.Value:case Z.Error:case Z.Cancel:case Z.Persistent:case Z.Invalidated:break;default:throw new Error("Shiny server sent a flush message, and after processing the values and errors,\n the output '".concat(s,"' has an unexpected ending state of: '").concat(c,"'."))}}}catch(l){n.e(l)}finally{n.f()}}function IW(e){var r=e.progress.message,t=r.id,n=r.persistent,i=Te(this,ea,Ps).call(this,t);if(n)switch(i){case Z.Running:Te(this,Ft,ci).call(this,t,Z.Persistent);break;default:throw new Error("Shiny server has sent a 'persistent progress' message for ".concat(t,",\n but the output is in an unexpected state of: ").concat(i))}else switch(i){case Z.Value:case Z.Error:case Z.Cancel:case Z.Persistent:case Z.Idle:Te(this,Ft,ci).call(this,t,Z.Invalidated);break;default:throw new Error("Shiny server has sent a progress message for ".concat(t,",\n but the output is in an unexpected state of: ").concat(i))}}function Dq(e,r){var t=Te(this,ea,Ps).call(this,e);switch(t){case Z.Idle:Te(this,Ft,ci).call(this,e,r);break;default:throw new Error("Shiny server has sent a ".concat(r," for the output '").concat(e,"',\n but the output is in an unexpected state of: '").concat(t,"'."))}}function Ps(e){var r;return(r=this.outputStates.get(e))!==null&&r!==void 0?r:Z.Initial}function ci(e,r){var t=this.isRecalculating(e);this.outputStates.set(e,r);var n=this.isRecalculating(e);t!==n&&this.changedOutputs.set(e,n)}function qW(e){var r=e;return r.recalculating!==void 0}function TW(e){var r=e;return r.values!==void 0&&r.errors!==void 0}function kW(e){var r=e;return r.progress!==void 0&&r.progress.type==="binding"}function li(e){return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},li(e)}function xW(e,r){return $W(e)||AW(e,r)||zq(e,r)||RW()}function RW(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AW(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,v=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){v=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(v)throw i}}return c}}function $W(e){if(Array.isArray(e))return e}function ah(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=zq(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return a=v.done,v},e:function(v){s=!0,c=v},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function zq(e,r){if(!!e){if(typeof e=="string")return Fq(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Fq(e,r)}}function Fq(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Q(){"use strict";Q=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&li(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function Uq(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function ke(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){Uq(a,n,i,s,c,"next",l)}function c(l){Uq(a,n,i,s,c,"throw",l)}s(void 0)})}}function NW(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Vq(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hq(n.key),n)}}function jW(e,r,t){return r&&Vq(e.prototype,r),t&&Vq(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ye(e,r,t){return r=Hq(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Hq(e){var r=LW(e,"string");return li(r)==="symbol"?r:String(r)}function LW(e,r){if(li(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(li(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Kq=[],uh={},Es=[],Is={};function fe(e,r){if(uh[e])throw'handler for message of type "'+e+'" already added.';if(typeof r!="function")throw"handler must be a function.";if(r.length!==1)throw"handler must be a function that takes one argument.";Kq.push(e),uh[e]=r}function Wq(e,r){if(Is[e]){var t=Es.indexOf(e);t!==-1&&(Es.splice(t,1),delete Is[e])}if(typeof r!="function")throw"handler must be a function.";if(r.length!==1)throw"handler must be a function that takes one argument.";Es.push(e),Is[e]=r}var Yq=function(){function e(){NW(this,e),ye(this,"$socket",null),ye(this,"taskQueue",new rI),ye(this,"config",null),ye(this,"$inputValues",{}),ye(this,"$initialInput",null),ye(this,"$bindings",{}),ye(this,"$outputProgress",new Gq),ye(this,"$values",{}),ye(this,"$errors",{}),ye(this,"$conditionals",{}),ye(this,"$pendingMessages",[]),ye(this,"$activeRequests",{}),ye(this,"$nextRequestId",0),ye(this,"$allowReconnect",!1),ye(this,"scheduledReconnect",void 0),ye(this,"reconnectDelay",function(){var r=0,t=[1500,1500,2500,2500,5500,5500,10500];return{next:function(){var i=r;return i>=t.length&&(i=t.length-1),r++,t[i]},reset:function(){r=0}}}()),ye(this,"progressHandlers",{binding:function(t){var n=t.id,i=this.$bindings[n];i&&(0,G.default)(i.el).trigger({type:"shiny:outputinvalidated",binding:i,name:n}),this._updateProgress()},open:function(){var r=ke(Q().mark(function n(i){var a,s,c,l,v;return Q().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(i.style!=="notification"){y.next=5;break}return y.next=3,qr({html:'<div id="shiny-progress-'.concat(i.id,'" class="shiny-progress-notification">')+'<div class="progress active" style="display: none;"><div class="progress-bar"></div></div><div class="progress-text"><span class="progress-message">message</span> <span class="progress-detail"></span></div></div>',id:i.id,duration:null});case 3:y.next=6;break;case 5:i.style==="old"&&(a=(0,G.default)(".shiny-progress-container"),a.length===0&&(a=(0,G.default)('<div class="shiny-progress-container"></div>'),(0,G.default)(document.body).append(a)),s=(0,G.default)(".shiny-progress.open").length,c=(0,G.default)('<div class="shiny-progress open"><div class="progress active"><div class="progress-bar bar"></div></div><div class="progress-text"><span class="progress-message">message</span><span class="progress-detail"></span></div></div>'),c.attr("id",i.id),a.append(c),l=c.find(".progress"),l&&(l.css("top",s*l.height()+"px"),v=c.find(".progress-text"),v.css("top",3*l.height()+s*v.outerHeight()+"px"),c.hide()));case 6:case"end":return y.stop()}},n)}));function t(n){return r.apply(this,arguments)}return t}(),update:function(t){if(t.style==="notification"){var n=(0,G.default)("#shiny-progress-"+t.id);if(n.length===0)return;typeof t.message!="undefined"&&n.find(".progress-message").text(t.message),typeof t.detail!="undefined"&&n.find(".progress-detail").text(t.detail),typeof t.value!="undefined"&&t.value!==null&&(n.find(".progress").show(),n.find(".progress-bar").width(t.value*100+"%"))}else if(t.style==="old"){var i=(0,G.default)("#"+t.id+".shiny-progress");typeof t.message!="undefined"&&i.find(".progress-message").text(t.message),typeof t.detail!="undefined"&&i.find(".progress-detail").text(t.detail),typeof t.value!="undefined"&&t.value!==null&&(i.find(".progress").show(),i.find(".bar").width(t.value*100+"%")),i.fadeIn()}},close:function(t){if(t.style==="notification")Tr(t.id);else if(t.style==="old"){var n=(0,G.default)("#"+t.id+".shiny-progress");n.removeClass("open"),n.fadeOut({complete:function(){n.remove(),(0,G.default)(".shiny-progress").length===0&&(0,G.default)(".shiny-progress-container").remove()}})}}}),this._init()}return jW(e,[{key:"connect",value:function(t){if(this.$socket)throw"Connect was already called on this application object";this.$socket=this.createSocket(),this.$initialInput=t,G.default.extend(this.$inputValues,t),this.$updateConditionals()}},{key:"isConnected",value:function(){return!!this.$socket}},{key:"reconnect",value:function(){if(clearTimeout(this.scheduledReconnect),this.isConnected())throw"Attempted to reconnect, but already connected.";this.$socket=this.createSocket(),this.$initialInput=G.default.extend({},this.$inputValues),this.$updateConditionals()}},{key:"createSocket",value:function(){var t=this,n=ZO()||function(){var s="ws:";window.location.protocol==="https:"&&(s="wss:");var c=window.location.pathname;/^([$#!&-;=?-[\]_a-z~]|%[0-9a-fA-F]{2})+$/.test(c)||(c=encodeURI(c),Jm()&&(c=encodeURI(c))),/\/$/.test(c)||(c+="/"),c+="websocket/";var l=new WebSocket(s+"//"+window.location.host+c);return l.binaryType="arraybuffer",l},i=n(),a=!1;return i.onopen=function(){for(a=!0,(0,G.default)(document).trigger({type:"shiny:connected",socket:i}),t.onConnected(),i.send(JSON.stringify({method:"init",data:t.$initialInput}));t.$pendingMessages.length;){var s=t.$pendingMessages.shift();i.send(s)}t.startActionQueueLoop()},i.onmessage=function(s){t.taskQueue.enqueue(ke(Q().mark(function c(){return Q().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,t.dispatchMessage(s.data);case 2:return v.abrupt("return",v.sent);case 3:case"end":return v.stop()}},c)})))},i.onclose=function(s){var c=s.code===1012;a&&((0,G.default)(document).trigger({type:"shiny:disconnected",socket:i}),t.$notifyDisconnected()),t.onDisconnected(c),t.$removeSocket()},i}},{key:"startActionQueueLoop",value:function(){var r=ke(Q().mark(function n(){var i;return Q().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=1,s.next=4,this.taskQueue.dequeue();case 4:return i=s.sent,s.next=7,i();case 7:s.next=13;break;case 9:s.prev=9,s.t0=s.catch(1),_s(s.t0),console.error(s.t0);case 13:s.next=0;break;case 15:case"end":return s.stop()}},n,this,[[1,9]])}));function t(){return r.apply(this,arguments)}return t}()},{key:"sendInput",value:function(t){var n=JSON.stringify({method:"update",data:t});this.$sendMsg(n),G.default.extend(this.$inputValues,t),this.$updateConditionals()}},{key:"$notifyDisconnected",value:function(){window.parent&&window.parent.postMessage("disconnected","*")}},{key:"$removeSocket",value:function(){this.$socket=null}},{key:"$scheduleReconnect",value:function(t){var n=this;this.scheduledReconnect=window.setTimeout(function(){n.reconnect()},t)}},{key:"onDisconnected",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if((0,G.default)("#shiny-disconnected-overlay").length===0&&(0,G.default)(document.body).append('<div id="shiny-disconnected-overlay"></div>'),(0,G.default)("#shiny-disconnected-overlay").toggleClass("reloading",t),this.$allowReconnect===!0&&this.$socket.allowReconnect===!0||this.$allowReconnect==="force"){var n=this.reconnectDelay.next();Gu(n),this.$scheduleReconnect(n)}}},{key:"onConnected",value:function(){(0,G.default)("#shiny-disconnected-overlay").remove(),Fu(),this.reconnectDelay.reset()}},{key:"makeRequest",value:function(t,n,i,a,s){for(var c=this.$nextRequestId;this.$activeRequests[c];)c=(c+1)%1e9;this.$nextRequestId=c+1,this.$activeRequests[c]={onSuccess:i,onError:a};var l=JSON.stringify({method:t,args:n,tag:c});if(s){var v=function(k){var E=new ArrayBuffer(4),P=new DataView(E);return P.setUint32(0,k,!0),E},m=[];m.push(v(16908802));var y=new Blob([l]);m.push(v(y.size)),m.push(y);for(var b=0;b<s.length;b++){var w=s[b];m.push(v(w.byteLength||w.size||0)),m.push(w)}var S=new Blob(m);l=S}this.$sendMsg(l)}},{key:"$sendMsg",value:function(t){this.$socket&&this.$socket.readyState?this.$socket.send(t):this.$pendingMessages.push(t)}},{key:"receiveError",value:function(t,n){if(this.$errors[t]!==n){this.$errors[t]=n,delete this.$values[t];var i=this.$bindings[t],a=G.default.Event("shiny:error");a.name=t,a.error=n,a.binding=i,(0,G.default)(i?i.el:document).trigger(a),!a.isDefaultPrevented()&&i&&i.onValueError&&i.onValueError(a.error)}}},{key:"receiveOutput",value:function(){var r=ke(Q().mark(function n(i,a){var s,c;return Q().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(s=this.$bindings[i],c=G.default.Event("shiny:value"),c.name=i,c.value=a,c.binding=s,this.$values[i]!==a){v.next=8;break}return(0,G.default)(s?s.el:document).trigger(c),v.abrupt("return",void 0);case 8:if(this.$values[i]=a,delete this.$errors[i],(0,G.default)(s?s.el:document).trigger(c),!(!c.isDefaultPrevented()&&s)){v.next=14;break}return v.next=14,s.onValueChange(c.value);case 14:return v.abrupt("return",a);case 15:case"end":return v.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"bindOutput",value:function(){var r=ke(Q().mark(function n(i,a){return Q().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(i){c.next=2;break}throw new Error("Can't bind an element with no ID");case 2:if(this.$bindings[i]=a,this.$values[i]===void 0){c.next=8;break}return c.next=6,a.onValueChange(this.$values[i]);case 6:c.next=9;break;case 8:this.$errors[i]!==void 0&&a.onValueError(this.$errors[i]);case 9:return c.abrupt("return",a);case 10:case"end":return c.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"unbindOutput",value:function(t,n){return this.$bindings[t]===n?(delete this.$bindings[t],!0):!1}},{key:"_narrowScopeComponent",value:function(t,n){return Object.keys(t).filter(function(i){return i.indexOf(n)===0}).map(function(i){return ye({},i.substring(n.length),t[i])}).reduce(function(i,a){return G.default.extend(i,a)},{})}},{key:"_narrowScope",value:function(t,n){return n?{input:this._narrowScopeComponent(t.input,n),output:this._narrowScopeComponent(t.output,n)}:t}},{key:"$updateConditionals",value:function(){(0,G.default)(document).trigger({type:"shiny:conditional"});var t={};for(var n in this.$inputValues)if(Ye(this.$inputValues,n)){var i=n.replace(/:.*/,"");t[i]=this.$inputValues[n]}for(var a={input:t,output:this.$values},s=(0,G.default)(document).find("[data-display-if]"),c=0;c<s.length;c++){var l=(0,G.default)(s[c]),v=l.data("data-display-if-func");if(!v){var m=l.attr("data-display-if");v=m0(m),l.data("data-display-if-func",v)}var y=l.attr("data-ns-prefix"),b=this._narrowScope(a,y),w=v(b),S=l.css("display")!=="none";w!==S&&(w?(l.trigger("show"),l.show(),l.trigger("shown")):(l.trigger("hide"),l.hide(),l.trigger("hidden")))}}},{key:"dispatchMessage",value:function(){var r=ke(Q().mark(function n(i){var a,s,c,l,v,m,y;return Q().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(a={},typeof i=="string")a=JSON.parse(i);else{for(s=new DataView(i,0,1).getUint8(0),c=new DataView(i,1,s),l=[],v=0;v<s;v++)l.push(String.fromCharCode(c.getUint8(v)));m=l.join(""),i=i.slice(s+1),a.custom={},a.custom[m]=i}if(y=G.default.Event("shiny:message"),y.message=a,(0,G.default)(document).trigger(y),!y.isDefaultPrevented()){w.next=7;break}return w.abrupt("return");case 7:return this.$outputProgress.updateStateFromMessage(y.message),w.next=10,this._sendMessagesToHandlers(y.message,uh,Kq);case 10:this.$updateConditionals();case 11:case"end":return w.stop()}},n,this)}));function t(n){return r.apply(this,arguments)}return t}()},{key:"_sendMessagesToHandlers",value:function(){var r=ke(Q().mark(function n(i,a,s){var c,l;return Q().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=0;case 1:if(!(c<s.length)){m.next=9;break}if(l=s[c],!Ye(i,l)){m.next=6;break}return m.next=6,a[l].call(this,i[l]);case 6:c++,m.next=1;break;case 9:case"end":return m.stop()}},n,this)}));function t(n,i,a){return r.apply(this,arguments)}return t}()},{key:"_updateProgress",value:function(){var t=this.$outputProgress.takeChanges(),n=ah(t.entries()),i;try{for(n.s();!(i=n.n()).done;){var a=xW(i.value,2),s=a[0],c=a[1];Ye(this.$bindings,s)&&this.$bindings[s].showProgress(c)}}catch(l){n.e(l)}finally{n.f()}}},{key:"_init",value:function(){var t=this;fe("values",function(){var v=ke(Q().mark(function m(y){var b;return Q().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:t._updateProgress(),S.t0=Q().keys(y);case 2:if((S.t1=S.t0()).done){S.next=9;break}if(b=S.t1.value,!Ye(y,b)){S.next=7;break}return S.next=7,t.receiveOutput(b,y[b]);case 7:S.next=2;break;case 9:case"end":return S.stop()}},m)}));return function(m){return v.apply(this,arguments)}}()),fe("errors",function(v){for(var m in v)Ye(v,m)&&t.receiveError(m,v[m])}),fe("inputMessages",function(){var v=ke(Q().mark(function m(y){var b,w,S,q,k;return Q().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:b=0;case 1:if(!(b<y.length)){P.next=23;break}if(w=(0,G.default)(".shiny-bound-input#"+H(y[b].id)),S=w.data("shiny-input-binding"),!(w.length>0)){P.next=20;break}if(w.attr("aria-live")||w.attr("aria-live","polite"),q=w[0],k=G.default.Event("shiny:updateinput"),k.message=y[b].message,k.binding=S,(0,G.default)(q).trigger(k),k.isDefaultPrevented()){P.next=20;break}return P.prev=12,P.next=15,S.receiveMessage(q,k.message);case 15:P.next=20;break;case 17:P.prev=17,P.t0=P.catch(12),console.error("[shiny] Error in inputBinding.receiveMessage()",{error:P.t0,binding:S,message:k.message});case 20:b++,P.next=1;break;case 23:case"end":return P.stop()}},m,null,[[12,17]])}));return function(m){return v.apply(this,arguments)}}()),fe("javascript",function(v){Ot(v)}),fe("console",function(v){for(var m=0;m<v.length;m++)console.log&&console.log(v[m])}),fe("progress",function(){var v=ke(Q().mark(function m(y){var b;return Q().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(!(y.type&&y.message)){S.next=5;break}return S.next=3,t.progressHandlers[y.type];case 3:b=S.sent,b&&b.call(t,y.message);case 5:case"end":return S.stop()}},m)}));return function(m){return v.apply(this,arguments)}}()),fe("notification",function(){var v=ke(Q().mark(function m(y){return Q().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(y.type!=="show"){w.next=5;break}return w.next=3,qr(y.message);case 3:w.next=10;break;case 5:if(y.type!=="remove"){w.next=9;break}Tr(y.message),w.next=10;break;case 9:throw"Unkown notification type: "+y.type;case 10:case"end":return w.stop()}},m)}));return function(m){return v.apply(this,arguments)}}()),fe("modal",function(){var v=ke(Q().mark(function m(y){return Q().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(y.type!=="show"){w.next=5;break}return w.next=3,Bu(y.message);case 3:w.next=10;break;case 5:if(y.type!=="remove"){w.next=9;break}Mu(),w.next=10;break;case 9:throw"Unkown modal type: "+y.type;case 10:case"end":return w.stop()}},m)}));return function(m){return v.apply(this,arguments)}}()),fe("response",function(v){var m=v.tag,y=t.$activeRequests[m];y&&(delete t.$activeRequests[m],"value"in v?y.onSuccess(v.value):y.onError(v.error))}),fe("allowReconnect",function(v){switch(v){case!0:case!1:case"force":t.$allowReconnect=v;break;default:throw"Invalid value for allowReconnect: "+v}}),fe("custom",function(){var v=ke(Q().mark(function m(y){var b;return Q().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(b=YO(),!b){S.next=4;break}return S.next=4,b(y);case 4:return S.next=6,t._sendMessagesToHandlers(y,Is,Es);case 6:case"end":return S.stop()}},m)}));return function(m){return v.apply(this,arguments)}}()),fe("config",function(v){t.config={workerId:v.workerId,sessionId:v.sessionId},v.user&&zO(v.user),(0,G.default)(document).trigger("shiny:sessioninitialized")}),fe("busy",function(v){v==="busy"?((0,G.default)(document.documentElement).addClass("shiny-busy"),(0,G.default)(document).trigger("shiny:busy")):v==="idle"&&((0,G.default)(document.documentElement).removeClass("shiny-busy"),(0,G.default)(document).trigger("shiny:idle"))}),fe("recalculating",function(v){if(Ye(v,"name")&&Ye(v,"status")){var m=t.$bindings[v.name];m?(0,G.default)(m.el).trigger("shiny:"+v.status):(0,G.default)().trigger("shiny:"+v.status)}}),fe("reload",function(v){window.location.reload()}),fe("shiny-insert-ui",function(){var v=ke(Q().mark(function m(y){var b,w,S,q;return Q().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(b=(0,G.default)(y.selector),b.length!==0){E.next=7;break}return console.warn('The selector you chose ("'+y.selector+'") could not be found in the DOM.'),E.next=5,go(y.content.html,(0,G.default)([]),y.content.deps);case 5:E.next=26;break;case 7:w=ah(b),E.prev=8,w.s();case 10:if((S=w.n()).done){E.next=18;break}return q=S.value,E.next=14,Me(q,y.content,y.where);case 14:if(y.multiple!==!1){E.next=16;break}return E.abrupt("break",18);case 16:E.next=10;break;case 18:E.next=23;break;case 20:E.prev=20,E.t0=E.catch(8),w.e(E.t0);case 23:return E.prev=23,w.f(),E.finish(23);case 26:case"end":return E.stop()}},m,null,[[8,20,23,26]])}));return function(m){return v.apply(this,arguments)}}()),fe("shiny-remove-ui",function(v){var m=(0,G.default)(v.selector);m.each(function(y,b){return qe(b,!0),(0,G.default)(b).remove(),v.multiple===!1?!1:void 0})}),fe("frozen",function(v){for(var m=0;m<v.ids.length;m++)HO(v.ids[m])});function n(v){var m=(0,G.default)("#"+H(v));if(m.length===0)throw"There is no tabsetPanel (or navbarPage or navlistPanel) with id equal to '"+v+"'";return m}function i(v){var m=v.attr("data-tabsetid"),y=(0,G.default)("div.tab-content[data-tabsetid='"+H(m)+"']");return y}function a(v,m,y){var b="[data-value='"+H(y)+"']",w=v.find("a"+b),S=w.parent();if(S.length===0)throw"There is no tabPanel (or navbarMenu) with value (or menuName) equal to '"+y+"'";var q=[],k=[];if(w.attr("data-toggle")==="dropdown"){var E=w.find("+ ul.dropdown-menu"),P=E.attr("data-tabsetid"),$=E.find("a[data-toggle='tab']").parent("li");$.each(function(L,U){q.push((0,G.default)(U))});var R="div.tab-pane[id^='tab-"+H(P)+"']",j=m.find(R);j.each(function(L,U){k.push((0,G.default)(U))})}else k.push(m.find("div"+b));return{$liTag:S,$liTags:q,$divTags:k}}fe("shiny-insert-tab",function(){var v=ke(Q().mark(function m(y){var b,w,S,q,k,E,P,$,R,j,L,U,C,B,D,V,f;return Q().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(f=function(){if(y.menuName!==null){var d=(0,G.default)("a.dropdown-toggle[data-value='"+H(y.menuName)+"']");if(d.length===0)throw"There is no navbarMenu with menuName equal to '"+y.menuName+"'";var p=d.find("+ ul.dropdown-menu"),g=p.attr("data-tabsetid");return{$tabset:p,id:g}}else if(y.target!==null&&$!==null){var _=$.parent("ul");if(_.hasClass("dropdown-menu")){var O=_.attr("data-tabsetid");return{$tabset:_,id:O}}}return null},V=function(d,p){var g=[0];return d.find("> li").each(function(){var _=(0,G.default)(this).find("> a[data-toggle='tab']");if(_.length>0){var O=_.attr("href").replace(/.*(?=#[^\s]+$)/,""),T=O.replace("#tab-"+p+"-","");g.push(Number(T))}}),Math.max.apply(null,g)+1},b=n(y.inputId),w=b,S=i(w),q=b.attr("data-tabsetid"),k=(0,G.default)(y.divTag.html),E=(0,G.default)(y.liTag.html),P=E.find("> a"),$=null,y.target!==null&&(R=a(w,S,y.target),$=R.$liTag),j=f(),j===null){u.next=18;break}if(P.attr("data-toggle")!=="dropdown"){u.next=15;break}throw"Cannot insert a navbarMenu inside another one";case 15:w=j.$tabset,q=j.id,E.removeClass("nav-item").find(".nav-link").removeClass("nav-link").addClass("dropdown-item");case 18:return P.attr("data-toggle")==="tab"&&(L=V(w,q),U="tab-"+q+"-"+L,E.find("> a").attr("href","#"+U),k.attr("id",U)),y.position==="before"?$?$.before(E):w.prepend(E):y.position==="after"&&($?$.after(E):w.append(E)),u.next=22,Me(E[0],{html:E.html(),deps:y.liTag.deps});case 22:return u.next=24,Me(S[0],{html:"",deps:y.divTag.deps},"beforeend");case 24:C=ah(k.get()),u.prev=25,C.s();case 27:if((B=C.n()).done){u.next=34;break}return D=B.value,S[0].appendChild(D),u.next=32,Me(D,D.innerHTML||D.textContent);case 32:u.next=27;break;case 34:u.next=39;break;case 36:u.prev=36,u.t0=u.catch(25),C.e(u.t0);case 39:return u.prev=39,C.f(),u.finish(39);case 42:y.select&&E.find("a").tab("show");case 43:case"end":return u.stop()}},m,null,[[25,36,39,42]])}));return function(m){return v.apply(this,arguments)}}());function s(v){var m=v.data("shiny-input-binding");if(!m.getValue(v)){var y=c(v),b=G.default.Event("shiny:updateinput");b.binding=m,v.trigger(b),m.setValue(v[0],y)}}function c(v){return v.find("li:visible a[data-toggle='tab']").first().attr("data-value")||null}function l(v,m){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;G.default.each(v,function(b,w){b==="$liTag"?m(w):b==="$divTags"?G.default.each(w,function(S,q){m(q)}):y&&b==="$liTags"&&G.default.each(w,function(S,q){m(q)})})}fe("shiny-remove-tab",function(v){var m=n(v.inputId),y=i(m),b=a(m,y,v.target);l(b,w),s(m);function w(S){qe(S,!0),S.remove()}}),fe("shiny-change-tab-visibility",function(v){var m=n(v.inputId),y=i(m),b=a(m,y,v.target);l(b,w,!0),s(m);function w(S){v.type==="show"?S.css("display",""):v.type==="hide"&&(S.hide(),S.removeClass("active"))}}),fe("updateQueryString",function(v){if(v.mode==="replace"){window.history.replaceState(null,null,v.queryString);return}var m=null;if(v.queryString.charAt(0)==="#")m="hash";else if(v.queryString.charAt(0)==="?")m="query";else throw"The 'query' string must start with either '?' (to update the query string) or with '#' (to update the hash).";var y=window.location.pathname,b=window.location.search,w=window.location.hash,S=y;m==="query"?S+=v.queryString:S+=b+v.queryString,window.history.pushState(null,null,S),v.queryString.indexOf("#")!==-1&&(m="hash"),window.location.hash!==w&&(m="hash"),m==="hash"&&(0,G.default)(document).trigger("hashchange")}),fe("resetBrush",function(v){Cu(v.brushId)})}},{key:"getTestSnapshotBaseUrl",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.fullUrl,i=n===void 0?!0:n,a=window.location,s="";return i&&(s=a.origin+a.pathname.replace(/\/[^/]*$/,"")),s+="/session/"+encodeURIComponent(this.config.sessionId)+"/dataobj/shinytest?w="+encodeURIComponent(this.config.workerId)+"&nonce="+su(),s}}]),e}();function sh(e){return sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},sh(e)}function ra(){"use strict";ra=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&sh(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function Xq(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function Qq(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){Xq(a,n,i,s,c,"next",l)}function c(l){Xq(a,n,i,s,c,"throw",l)}s(void 0)})}}function Zq(e){return fh.apply(this,arguments)}function fh(){return fh=Qq(ra().mark(function e(r){var t,n,i,a,s,c,l,v,m,y,b,w,S,q,k,E,P,$,R,j,L,U,C,B,D,V,f,o;return ra().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return D=function(p,g){for(var _=arguments.length,O=new Array(_>2?_-2:0),T=2;T<_;T++)O[T-2]=arguments[T];var x=p.split(".");return function(A){for(var ge,Fe,cr=(ge=(Fe=A.namespace)===null||Fe===void 0?void 0:Fe.split("."))!==null&&ge!==void 0?ge:[],Ue=0;Ue<x.length;Ue++)if(cr.indexOf(x[Ue])===-1)return;g.apply(this,[x,g].concat(O))}},B=function(){C.normalCall()},U=function(){var p={};(0,J.default)(".shiny-bound-output").each(function(){var _=S(this);delete L[_];var O=j(this),T={type:"shiny:visualchange",visible:!O};O?v.setInput(".clientdata_output_"+_+"_hidden",!0):(p[_]=!0,v.setInput(".clientdata_output_"+_+"_hidden",!1));var x=(0,J.default)(this);T.binding=x.data("shiny-output-binding"),x.trigger(T)});for(var g in L)F(L,g)&&v.setInput(".clientdata_output_"+g+"_hidden",!0);L=p},j=function(p){return p===null||p.offsetWidth!==0||p.offsetHeight!==0?!1:pr(p,"display")==="none"?!0:j(p.parentNode)},R=function(){(0,J.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-size").each(function(){var p=S(this),g=this.getBoundingClientRect();(g.width!==0||g.height!==0)&&(v.setInput(".clientdata_output_"+p+"_width",g.width),v.setInput(".clientdata_output_"+p+"_height",g.height))}),(0,J.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-theme").each(function(){$(this)}),(0,J.default)(".shiny-bound-output").each(function(){var p=(0,J.default)(this),g=p.data("shiny-output-binding");p.trigger({type:"shiny:visualchange",visible:!j(this),binding:g}),g.onResize()})},$=function(p){if(!p.classList.contains("shiny-output-error")){var g=S(p);v.setInput(".clientdata_output_"+g+"_bg",k(p)),v.setInput(".clientdata_output_"+g+"_fg",pr(p,"color")),v.setInput(".clientdata_output_"+g+"_accent",Ji(p)),v.setInput(".clientdata_output_"+g+"_font",E(p))}},P=function(p){if(!!window.MutationObserver){var g=p.classList,_=g.contains("shiny-image-output")||g.contains("shiny-plot-output")||g.contains("shiny-report-theme");if(!!_){var O=(0,J.default)(p);if(!O.data("shiny-theme-observer")){var T=new ur(null,function(){return $(p)},100),x=new MutationObserver(function(){return T.normalCall()}),A={attributes:!0,attributeFilter:["style","class"]};x.observe(p,A),O.data("shiny-theme-observer",x)}}}},E=function(p){var g=pr(p,"font-family"),_=pr(p,"font-size");return{families:g==null?void 0:g.replace(/"/g,"").split(", "),size:_}},k=function(p){if(!p)return null;var g=pr(p,"background-color");if(!g)return g;var _=g.match(/^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);if(g==="transparent"||_&&parseFloat(_[4])===0){var O=pr(p,"background-image");return O&&O!=="none"?null:k(p.parentElement)}return g},S=function(p){var g=(0,J.default)(p),_=g.data("shiny-output-binding");return _?_.getId():null},w=function(){for(var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.documentElement,g=m.getBindings(),_=0;_<g.length;_++){var O=g[_].binding,T=O.find(p);if(T)for(var x=0;x<T.length;x++){var A=(0,J.default)(T[x]);A.data("_shiny_initialized")||(A.data("_shiny_initialized",!0),O.initialize(T[x]))}}},b=function(){return{inputs:v,inputsRate:s,sendOutputHiddenState:B,maybeAddThemeObserver:P,inputBindings:m,outputBindings:y,initDeferredIframes:Jq}},VO(r),t=r.shinyapp=new Yq,r.progressHandlers=t.progressHandlers,n=new Ap(t),i=new $p(n),a=new jp(i),s=new Lp(a),c=new Cp(a),(0,J.default)('input[type="submit"], button[type="submit"]').length>0?(l=c,(0,J.default)('input[type="submit"], button[type="submit"]').each(function(){(0,J.default)(this).click(function(d){d.preventDefault(),c.submit()})})):l=s,v=new Bp(l),r.setInputValue=r.onInputChange=function(d,p){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=Dp(g);v.setInput(d,p,_)},r.forgetLastInputValue=function(d){i.forget(d)},m=r.inputBindings,y=r.outputBindings,r.bindAll=function(){var d=Qq(ra().mark(function p(g){return ra().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,hE(b(),g);case 2:case"end":return O.stop()}},p)}));return function(p){return d.apply(this,arguments)}}(),r.unbindAll=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;vE(b(),d,p)},r.initializeInputs=w,w(document.documentElement),h.t0=ir,h.next=33,ev(b(),document.documentElement);case 33:h.t1=h.sent,h.t2=function(d){return d.value},q=(0,h.t0)(h.t1,h.t2),(0,J.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-size").each(function(){var d=S(this),p=this.getBoundingClientRect();(p.width!==0||p.height!==0)&&(q[".clientdata_output_"+d+"_width"]=p.width,q[".clientdata_output_"+d+"_height"]=p.height)}),(0,J.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-theme").each(function(){var d=this,p=S(d);q[".clientdata_output_"+p+"_bg"]=k(d),q[".clientdata_output_"+p+"_fg"]=pr(d,"color"),q[".clientdata_output_"+p+"_accent"]=Ji(d),q[".clientdata_output_"+p+"_font"]=E(d),P(d)}),sr.setImageSend(n,R),L={},(0,J.default)(".shiny-bound-output").each(function(){var d=S(this);j(this)?q[".clientdata_output_"+d+"_hidden"]=!0:(L[d]=!0,q[".clientdata_output_"+d+"_hidden"]=!1)}),C=new ur(null,U,0),n.lastChanceCallback.push(function(){C.isPending()&&C.immediateCall()}),(0,J.default)(window).resize(Ur(500,sr.regular)),V=["modal","dropdown","tab","tooltip","popover","collapse"],J.default.each(V,function(d,p){(0,J.default)(document.body).on("shown.bs."+p+".sendImageSize","*",D("bs",sr.regular)),(0,J.default)(document.body).on("shown.bs."+p+".sendOutputHiddenState hidden.bs."+p+".sendOutputHiddenState","*",D("bs",B))}),(0,J.default)(document.body).on("shown.sendImageSize","*",sr.regular),(0,J.default)(document.body).on("shown.sendOutputHiddenState hidden.sendOutputHiddenState","*",B),q[".clientdata_pixelratio"]=vl(),(0,J.default)(window).resize(function(){v.setInput(".clientdata_pixelratio",vl())}),q[".clientdata_url_protocol"]=window.location.protocol,q[".clientdata_url_hostname"]=window.location.hostname,q[".clientdata_url_port"]=window.location.port,q[".clientdata_url_pathname"]=window.location.pathname,q[".clientdata_url_search"]=window.location.search,(0,J.default)(window).on("pushstate",function(d){v.setInput(".clientdata_url_search",window.location.search)}),(0,J.default)(window).on("popstate",function(d){v.setInput(".clientdata_url_search",window.location.search)}),q[".clientdata_url_hash_initial"]=window.location.hash,q[".clientdata_url_hash"]=window.location.hash,(0,J.default)(window).on("hashchange",function(d){v.setInput(".clientdata_url_hash",window.location.hash)}),f=q[".clientdata_singletons"]=(0,J.default)('script[type="application/shiny-singletons"]').text(),L_(f.split(/,/)),o=(0,J.default)('script[type="application/html-dependencies"]').text(),J.default.each(o.split(/;/),function(d,p){var g=/\s*^(.+)\[(.+)\]\s*$/.exec(p);g&&Au(g[1],g[2])}),i.reset(q),t.connect(q),(0,J.default)(document).one("shiny:connected",function(){Jq()});case 67:case"end":return h.stop()}},e)})),fh.apply(this,arguments)}function Jq(){!window.Shiny||!window.Shiny.shinyapp||!window.Shiny.shinyapp.isConnected()||(0,J.default)(".shiny-frame-deferred").each(function(e,r){var t=(0,J.default)(r);t.removeClass("shiny-frame-deferred"),t.attr("src",t.attr("data-deferred-src")),t.attr("data-deferred-src",null)})}function ch(e){return ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ch(e)}function lh(){"use strict";lh=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,h,d){return u[h]=d}}function v(f,o,u,h){var d=o&&o.prototype instanceof b?o:b,p=Object.create(d.prototype),g=new B(h||[]);return n(p,"_invoke",{value:j(f,u,g)}),p}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(h){return{type:"throw",arg:h}}}e.wrap=v;var y={};function b(){}function w(){}function S(){}var q={};l(q,a,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(D([])));E&&E!==r&&t.call(E,a)&&(q=E);var P=S.prototype=b.prototype=Object.create(q);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,p,g,_){var O=m(f[d],f,p);if(O.type!=="throw"){var T=O.arg,x=T.value;return x&&ch(x)=="object"&&t.call(x,"__await")?o.resolve(x.__await).then(function(A){u("next",A,g,_)},function(A){u("throw",A,g,_)}):o.resolve(x).then(function(A){T.value=A,g(T)},function(A){return u("throw",A,g,_)})}_(O.arg)}var h;n(this,"_invoke",{value:function(p,g){function _(){return new o(function(O,T){u(p,g,O,T)})}return h=h?h.then(_,_):_()}})}function j(f,o,u){var h="suspendedStart";return function(d,p){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(d==="throw")throw p;return V()}for(u.method=d,u.arg=p;;){var g=u.delegate;if(g){var _=L(g,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h==="suspendedStart")throw h="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h="executing";var O=m(f,o,u);if(O.type==="normal"){if(h=u.done?"completed":"suspendedYield",O.arg===y)continue;return{value:O.arg,done:u.done}}O.type==="throw"&&(h="completed",u.method="throw",u.arg=O.arg)}}}function L(f,o){var u=o.method,h=f.iterator[u];if(h===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(h,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var p=d.arg;return p?p.done?(o[f.resultName]=p.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):p:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,h=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return h.next=h}}return{next:V}}function V(){return{value:void 0,done:!0}}return w.prototype=S,n(P,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===w||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,S):(f.__proto__=S,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,h,d){d===void 0&&(d=Promise);var p=new R(v(f,o,u,h),d);return e.isGeneratorFunction(o)?p:p.next().then(function(g){return g.done?g.value:p.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var h in o)u.push(h);return u.reverse(),function d(){for(;u.length;){var p=u.pop();if(p in o)return d.value=p,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function h(T,x){return g.type="throw",g.arg=o,u.next=T,x&&(u.method="next",u.arg=void 0),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return h("end");if(p.tryLoc<=this.prev){var _=t.call(p,"catchLoc"),O=t.call(p,"finallyLoc");if(_&&O){if(this.prev<p.catchLoc)return h(p.catchLoc,!0);if(this.prev<p.finallyLoc)return h(p.finallyLoc)}else if(_){if(this.prev<p.catchLoc)return h(p.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return h(p.finallyLoc)}}}},abrupt:function(o,u){for(var h=this.tryEntries.length-1;h>=0;--h){var d=this.tryEntries[h];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(o==="break"||o==="continue")&&p.tryLoc<=u&&u<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=o,g.arg=u,p?(this.method="next",this.next=p.finallyLoc,y):this.complete(g)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),C(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var d=h.completion;if(d.type==="throw"){var p=d.arg;C(h)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:D(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=void 0),y}},e}function eT(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(v){t(v);return}c.done?r(l):Promise.resolve(l).then(n,i)}function CW(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){eT(a,n,i,s,c,"next",l)}function c(l){eT(a,n,i,s,c,"throw",l)}s(void 0)})}}var le;function tT(e){le=e,le.version="1.8.1.9001";var r=c_(),t=r.inputBindings,n=r.fileInputBinding,i=uP(),a=i.outputBindings;JO(n),le.$escape=H,le.compareVersion=b0,le.inputBindings=t,le.InputBinding=ae,le.outputBindings=a,le.OutputBinding=Pe,le.resetBrush=Cu,le.notifications={show:qr,remove:Tr},le.modal={show:Bu,remove:Mu},le.addCustomMessageHandler=Wq,le.showReconnectDialog=Gu,le.hideReconnectDialog=Fu,le.renderDependenciesAsync=Et,le.renderDependencies=up,le.renderContentAsync=Me,le.renderContent=G_,le.renderHtmlAsync=go,le.renderHtml=ap,le.inDevMode=function(){return"__SHINY_DEV_MODE__"in window?Boolean(window.__SHINY_DEV_MODE__):!1},(0,rT.default)(function(){setTimeout(CW(lh().mark(function s(){return lh().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,Zq(le);case 3:l.next=9;break;case 5:throw l.prev=5,l.t0=l.catch(0),_s(l.t0),l.t0;case 9:case"end":return l.stop()}},s,null,[[0,5]])})),1)})}function nT(){return window.navigator.userAgent}var Ts=N(W());function qs(){return _t().config}function iT(){(0,Ts.default)(document).on("keydown",function(e){if(!(e.which!==114||!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey)){var r="reactlog?w="+window.escape(qs().workerId)+"&s="+window.escape(qs().sessionId);window.open(r),e.preventDefault()}}),(0,Ts.default)(document).on("keydown",function(e){if(!!(e.which===115&&(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey||e.which===114&&(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey)){var r="reactlog/mark?w="+window.escape(qs().workerId)+"&s="+window.escape(qs().sessionId);Ts.default.get(r,function(t){if(t==="marked"){var n='<span id="shiny-reactlog-mark-text">Marked time point in reactlog</span>';qr({html:n,closeButton:!0})}}).fail(function(){window.open(r)}),e.preventDefault()}})}function oT(){tT(ty()),ey(nT()),ry(),yh(),dh(),iT()}oT();})();
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
//# sourceMappingURL=shiny.min.js.map
|