1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.Dou8UoAD.js","./index.BEiPXRiB.js","./index.DRgFBrOW.js","./index.CinPJsaI.js","./index.BGGsxMsK.js","./index.CTssS8CY.js","./pandasStylerUtils.PlmC_Sod.js","./moment.C3j7ZXd7.js","./_baseIndexOf.BTknn6Gb.js","./index.Dt4MKWrN.js","./withFullScreenWrapper.CWEBbO_P.js","./Toolbar.0YdWjZhn.js","./index.DDuPBAVu.js","./FormClearHelper.DyYuMYyM.js","./sprintf.D7DtBTRn.js","./index.8HslT92O.js","./main.zgyqwsPV.js","./throttle.SbSFuU2P.js","./checkbox.YeQ8t-PZ.js","./createDownloadLinkElement.ZaXNnPK4.js","./toConsumableArray.DmYuqCFN.js","./possibleConstructorReturn.D2vivPxX.js","./createSuper.CXzRWZIx.js","./FileDownload.esm.DllwCvQc.js","./_arrayIncludes.B19Iyn2B.js","../css/index.DgR7E2CV.css","./embed.C_8wI7Q8.js","./threshold.Q1mXg5rX.js","./value.B4vHRSi7.js","./timer.C2hYhUse.js","./index.C4SaLgc9.js","./Particles.Cg5ey-rW.js","./index.DATGLwZn.js","./useBasicWidgetState.CSKMY_WY.js","../css/index.DzuxGC_t.css","./index.BSC_e7mC.js","./index.BNH1O6vW.js","./IFrameUtil.DefezniK.js","./index.CJdAAsMS.js","./index.Cys-qREe.js","./index.BK8LGuo5.js","./index.DmaExHyk.js","./index.OW6D7CJ5.js","./ProgressBar.D1rDn4Rn.js","./index.xg87JKI8.js","./index.19XigCCW.js","./useWaveformController.Bumwfqnl.js","./urls.BwSlolu9.js","./index.CaMDX02c.js","./index.BSsyTGMU.js","./withCalculatedWidth.Dl_TDMaA.js","./index.BtT26h8D.js","./UploadFileInfo.C-jY39rj.js","./index.CVgZcb-2.js","./FileHelper.DgwA_xYF.js","./InputInstructions.ikAdmYQR.js","./useTextInputAutoExpand.BZ_dM91Q.js","./base-input.DYzkAUR7.js","./inputUtils.CptNuJwn.js","./ErrorOutline.esm.LtBTGAgi.js","./index.Dc27IuI8.js","./index.BNJ18Gvk.js","./index.CV56Xzvw.js","./useIntlLocale.DrzrdT6m.js","./timepicker.BRg2LlYz.js","./input.-I2c-pPm.js","./index.NjN0yaAC.js","./styled-components.-ywQNIcz.js","./index.CccNGpyY.js","./index.DN77pJCq.js","./index.COYdue8P.js","./index.BTeFWqxT.js","./index.CCH6P_Oz.js","./uniqueId.DDLECwS_.js","./index.C6PG_WI2.js","./index.Cc0FyOvj.js","./index.DmQGepo0.js","./index.DdjNqo0t.js","./use
1UpdateUiValue.y-s71G-M.js","./index.0CGAg_-3.js","./index.SnIe8o_F.js"])))=>i.map(i=>d[i]); 2function _mergeNamespaces(n,o){for(var e=0;e<o.length;e++){const t=o[e];if(typeof t!="string"&&!Array.isArray(t)){for(const c in t)if(c!=="default"&&!(c in n)){const p=Object.getOwnPropertyDescriptor(t,c);p&&Object.defineProperty(n,c,p.get?p:{enumerable:!0,get:()=>t[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))t(c);new MutationObserver(c=>{for(const p of c)if(p.type==="childList")for(const h of p.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&t(h)}).observe(document,{childList:!0,subtree:!0});function e(c){const p={};return c.integrity&&(p.integrity=c.integrity),c.referrerPolicy&&(p.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?p.credentials="include":c.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function t(c){if(c.ep)return;c.ep=!0;const p=e(c);fetch(c.href,p)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function getAugmentedNamespace(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var o=n.default;if(typeof o=="function"){var e=function t(){var c=!1;try{c=this instanceof t}catch{}return c?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};e.prototype=o.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(n).forEach(function(t){var c=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,c.get?c:{enumerable:!0,get:function(){return n[t]}})}),e}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};var hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),t=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),$=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),A=Symbol.iterator;function N(We){return We===null||typeof We!="object"?null:(We=A&&We[A]||We["@@iterator"],typeof We=="function"?We:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,X={};function be(We,tt,Ve){this.props=We,this.context=tt,this.refs=X,this.updater=Ve||H}be.prototype.isReactComponent={},be.prototype.setState=function(We,tt){if(typeof We!="object"&&typeof We!="function"&&We!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,We,tt,"setState")},be.prototype.forceUpdate=function(We){this.updater.enqueueForceUpdate(this,We,"forceUpdate")};function we(){}we.prototype=be.prototype;function $e(We,tt,Ve){this.props=We,this.context=tt,this.refs=X,this.updater=Ve||H}var Ce=$e.prototype=new we;Ce.constructor=$e,Z(Ce,be.prototype),Ce.isPureReactComponent=!0;var Ie=Array.isArray,Ne=Object.prototype.hasOwnProperty,Fe={current:null},Be={key:!0,ref:!0,__self:!0,__source:!0};function Ge(We,tt,Ve){var vt,xt={},Qe=null,St=null;if(tt!=null)for(vt in tt.ref!==void 0&&(St=tt.ref),tt.key!==void 0&&(Qe=""+tt.key),tt)Ne.call(tt,vt)&&!Be.hasOwnProperty(vt)&&(xt[vt]=tt[vt]);var pt=arguments.length-2;if(pt===1)xt.children=Ve;else if(1<pt){for(var wt=Array(pt),Ft=0;Ft<pt;Ft++)wt[Ft]=arguments[Ft+2];xt.children=wt}if(We&&We.defaultProps)for(vt in pt=We.defaultProps,pt)xt[vt]===void 0&&(xt[vt]=pt[vt]);return{$$typeof:n,type:We,key:Qe,ref:St,props:xt,_owner:Fe.current}}function je(We,tt){return{$$typeof:n,type:We.type,key:tt,ref:We.ref,props:We.props,_owner:We._owner}}function De(We){return typeof We=="object"&&We!==null&&We.$$typeof===n}function Ue(We){var tt={"=":"=0",":":"=2"};return"$"+We.replace(/[=:]/g,function(Ve){return tt[Ve]})}var Je=/\/+/g;function Xe(We,tt){return typeof We=="object"&&We!==null&&We.key!=null?Ue(""+We.key):tt.toString(36)}function Ke(We,tt,Ve,vt,xt){var Qe=typeof We;(Qe==="undefined"||Qe==="boolean")&&(We=null);var St=!1;if(We===null)St=!0;else switch(Qe){case"string":case"number":St=!0;break;case"object":switch(We.$$typeof){case n:case o:St=!0}}if(St)return St=We,xt=xt(St),We=vt===""?"."+Xe(St,0):vt,Ie(xt)?(Ve="",We!=null&&(Ve=We.replace(Je,"$&/")+"/"),Ke(xt,tt,Ve,"",function(Ft){return Ft})):xt!=null&&(De(xt)&&(xt=je(xt,Ve+(!xt.key||St&&St.key===xt.key?"":(""+xt.key).replace(Je,"$&/")+"/")+We)),tt.push(xt)),1;if(St=0,vt=vt===""?".":vt+":",Ie(We))for(var pt=0;pt<We.length;pt++){Qe=We[pt];var wt=vt+Xe(Qe,pt);St+=Ke(Qe,tt,Ve,wt,xt)}else if(wt=N(We),typeof wt=="function")for(We=wt.call(We),pt=0;!(Qe=We.next()).done;)Qe=Qe.value,wt=vt+Xe(Qe,pt++),St+=Ke(Qe,tt,Ve,wt,xt);else if(Qe==="object")throw tt=String(We),Error("Objects are not valid as a React child (found: "+(tt==="[object Object]"?"object with keys {"+Object.keys(We).join(", ")+"}":tt)+"). If you meant to render a collection of children, use an array instead.");return St}function ze(We,tt,Ve){if(We==null)return We;var vt=[],xt=0;return Ke(We,vt,"","",function(Qe){return tt.call(Ve,Qe,xt++)}),vt}function nt(We){if(We._status===-1){var tt=We._result;tt=tt(),tt.then(function(Ve){(We._status===0||We._status===-1)&&(We._status=1,We._result=Ve)},function(Ve){(We._status===0||We._status===-1)&&(We._status=2,We._result=Ve)}),We._status===-1&&(We._status=0,We._result=tt)}if(We._status===1)return We._result.default;throw We._result}var ct={current:null},at={transition:null},dt={ReactCurrentDispatcher:ct,ReactCurrentBatchConfig:at,ReactCurrentOwner:Fe};function Me(){throw Error("act(...) is not supported in production builds of React.")}return react_production_min.Children={map:ze,forEach:function(We,tt,Ve){ze(We,function(){tt.apply(this,arguments)},Ve)}
2,count:function(We){var tt=0;return ze(We,function(){tt++}),tt},toArray:function(We){return ze(We,function(tt){return tt})||[]},only:function(We){if(!De(We))throw Error("React.Children.only expected to receive a single React element child.");return We}},react_production_min.Component=be,react_production_min.Fragment=e,react_production_min.Profiler=c,react_production_min.PureComponent=$e,react_production_min.StrictMode=t,react_production_min.Suspense=g,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dt,react_production_min.act=Me,react_production_min.cloneElement=function(We,tt,Ve){if(We==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+We+".");var vt=Z({},We.props),xt=We.key,Qe=We.ref,St=We._owner;if(tt!=null){if(tt.ref!==void 0&&(Qe=tt.ref,St=Fe.current),tt.key!==void 0&&(xt=""+tt.key),We.type&&We.type.defaultProps)var pt=We.type.defaultProps;for(wt in tt)Ne.call(tt,wt)&&!Be.hasOwnProperty(wt)&&(vt[wt]=tt[wt]===void 0&&pt!==void 0?pt[wt]:tt[wt])}var wt=arguments.length-2;if(wt===1)vt.children=Ve;else if(1<wt){pt=Array(wt);for(var Ft=0;Ft<wt;Ft++)pt[Ft]=arguments[Ft+2];vt.children=pt}return{$$typeof:n,type:We.type,key:xt,ref:Qe,props:vt,_owner:St}},react_production_min.createContext=function(We){return We={$$typeof:h,_currentValue:We,_currentValue2:We,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},We.Provider={$$typeof:p,_context:We},We.Consumer=We},react_production_min.createElement=Ge,react_production_min.createFactory=function(We){var tt=Ge.bind(null,We);return tt.type=We,tt},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(We){return{$$typeof:y,render:We}},react_production_min.isValidElement=De,react_production_min.lazy=function(We){return{$$typeof:E,_payload:{_status:-1,_result:We},_init:nt}},react_production_min.memo=function(We,tt){return{$$typeof:$,type:We,compare:tt===void 0?null:tt}},react_production_min.startTransition=function(We){var tt=at.transition;at.transition={};try{We()}finally{at.transition=tt}},react_production_min.unstable_act=Me,react_production_min.useCallback=function(We,tt){return ct.current.useCallback(We,tt)},react_production_min.useContext=function(We){return ct.current.useContext(We)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(We){return ct.current.useDeferredValue(We)},react_production_min.useEffect=function(We,tt){return ct.current.useEffect(We,tt)},react_production_min.useId=function(){return ct.current.useId()},react_production_min.useImperativeHandle=function(We,tt,Ve){return ct.current.useImperativeHandle(We,tt,Ve)},react_production_min.useInsertionEffect=function(We,tt){return ct.current.useInsertionEffect(We,tt)},react_production_min.useLayoutEffect=function(We,tt){return ct.current.useLayoutEffect(We,tt)},react_production_min.useMemo=function(We,tt){return ct.current.useMemo(We,tt)},react_production_min.useReducer=function(We,tt,Ve){return ct.current.useReducer(We,tt,Ve)},react_production_min.useRef=function(We){return ct.current.useRef(We)},react_production_min.useState=function(We){return ct.current.useState(We)},react_production_min.useSyncExternalStore=function(We,tt,Ve){return ct.current.useSyncExternalStore(We,tt,Ve)},react_production_min.useTransition=function(){return ct.current.useTransition()},react_production_min.version="18.3.1",react_production_min}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production_min()),react.exports}var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var n=requireReact(),o=Symbol.for("react.element"),e=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function h(y,g,$){var E,A={},N=null,H=null;$!==void 0&&(N=""+$),g.key!==void 0&&(N=""+g.key),g.ref!==void 0&&(H=g.ref);for(E in g)t.call(g,E)&&!p.hasOwnProperty(E)&&(A[E]=g[E]);if(y&&y.defaultProps)for(E in g=y.defaultProps,g)A[E]===void 0&&(A[E]=g[E]);return{$$typeof:o,type:y,key:N,ref:H,props:A,_owner:c.current}}return reactJsxRuntime_production_min.Fragment=e,reactJsxRuntime_production_min.jsx=h,reactJsxRuntime_production_min.jsxs=h,reactJsxRuntime_production_min}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production_min()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports),React$1=_mergeNamespaces({__proto__:null,default:React},[reactExports]);function sheetForTag(n){if(n.sheet)return n.sheet;for(var o=0;o<document.styleSheets.length;o++)if(document.styleSheets[o].ownerNode===n)return document.styleSheets[o]}function createStyleElement(n){var o=document.createElement("style");return o.setAttribute("data-emotion",n.key),n.nonce!==void 0&&o.setAttribute("nonce",n.nonce),o.appendChild(document.createTextNode("")),o.setAttribute("data-s",""),o}var StyleSheet=function(){function n(e){var t=this;this._insertTag=function(c){var p;t.tags.length===0?t.insertionPoint?p=t.insertionPoint.nextSibling:t.prepe
vendor: 9,997 bytes, line 2
2nd?p=t.container.firstChild:p=t.before:p=t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(c,p),t.tags.push(c)},this.isSpeedy=e.speedy===void 0?!0:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var o=n.prototype;return o.hydrate=function(t){t.forEach(this._insertTag)},o.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(createStyleElement(this));var c=this.tags[this.tags.length-1];if(this.isSpeedy){var p=sheetForTag(c);try{p.insertRule(t,p.cssRules.length)}catch{}}else c.appendChild(document.createTextNode(t));this.ctr++},o.flush=function(){this.tags.forEach(function(t){var c;return(c=t.parentNode)==null?void 0:c.removeChild(t)}),this.tags=[],this.ctr=0},n}(),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode,assign$1=Object.assign;function hash$1(n,o){return charat(n,0)^45?(((o<<2^charat(n,0))<<2^charat(n,1))<<2^charat(n,2))<<2^charat(n,3):0}function trim(n){return n.trim()}function match(n,o){return(n=o.exec(n))?n[0]:n}function replace$1(n,o,e){return n.replace(o,e)}function indexof(n,o){return n.indexOf(o)}function charat(n,o){return n.charCodeAt(o)|0}function substr(n,o,e){return n.slice(o,e)}function strlen(n){return n.length}function sizeof(n){return n.length}function append(n,o){return o.push(n),n}function combine(n,o){return n.map(o).join("")}var line=1,column=1,length=0,position$3=0,character=0,characters="";function node$1(n,o,e,t,c,p,h){return{value:n,root:o,parent:e,type:t,props:c,children:p,line,column,length:h,return:""}}function copy(n,o){return assign$1(node$1("",null,null,"",null,null,0),n,{length:-n.length},o)}function char(){return character}function prev(){return character=position$3>0?charat(characters,--position$3):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$3<length?charat(characters,position$3++):0,column++,character===10&&(column=1,line++),character}function peek$1(){return charat(characters,position$3)}function caret(){return position$3}function slice(n,o){return substr(characters,n,o)}function token(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(n){return line=column=1,length=strlen(characters=n),position$3=0,[]}function dealloc(n){return characters="",n}function delimit(n){return trim(slice(position$3-1,delimiter(n===91?n+2:n===40?n+1:n)))}function whitespace$1(n){for(;(character=peek$1())&&character<33;)next();return token(n)>2||token(character)>3?"":" "}function escaping(n,o){for(;--o&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(n,caret()+(o<6&&peek$1()==32&&next()==32))}function delimiter(n){for(;next();)switch(character){case n:return position$3;case 34:case 39:n!==34&&n!==39&&delimiter(character);break;case 40:n===41&&delimiter(n);break;case 92:next();break}return position$3}function commenter(n,o){for(;next()&&n+character!==57;)if(n+character===84&&peek$1()===47)break;return"/*"+slice(o,position$3-1)+"*"+from(n===47?n:next())}function identifier(n){for(;!token(peek$1());)next();return slice(n,position$3)}function compile(n){return dealloc(parse$3("",null,null,null,[""],n=alloc(n),0,[0],n))}function parse$3(n,o,e,t,c,p,h,y,g){for(var $=0,E=0,A=h,N=0,H=0,Z=0,X=1,be=1,we=1,$e=0,Ce="",Ie=c,Ne=p,Fe=t,Be=Ce;be;)switch(Z=$e,$e=next()){case 40:if(Z!=108&&charat(Be,A-1)==58){indexof(Be+=replace$1(delimit($e),"&","&\f"),"&\f")!=-1&&(we=-1);break}case 34:case 39:case 91:Be+=delimit($e);break;case 9:case 10:case 13:case 32:Be+=whitespace$1(Z);break;case 92:Be+=escaping(caret()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append(comment(commenter(next(),caret()),o,e),g);break;default:Be+="/"}break;case 123*X:y[$++]=strlen(Be)*we;case 125*X:case 59:case 0:switch($e){case 0:case 125:be=0;case 59+E:we==-1&&(Be=replace$1(Be,/\f/g,"")),H>0&&strlen(Be)-A&&append(H>32?declaration(Be+";",t,e,A-1):declaration(replace$1(Be," ","")+";",t,e,A-2),g);break;case 59:Be+=";";default:if(append(Fe=ruleset(Be,o,e,$,E,c,y,Ce,Ie=[],Ne=[],A),p),$e===123)if(E===0)parse$3(Be,o,Fe,Fe,Ie,p,A,y,Ne);else switch(N===99&&charat(Be,3)===110?100:N){case 100:case 108:case 109:case 115:parse$3(n,Fe,Fe,t&&append(ruleset(n,Fe,Fe,0,0,c,y,Ce,c,Ie=[],A),Ne),c,Ne,A,y,t?Ie:Ne);break;default:parse$3(Be,Fe,Fe,Fe,[""],Ne,0,y,Ne)}}$=E=H=0,X=we=1,Ce=Be="",A=h;break;case 58:A=1+strlen(Be),H=Z;default:if(X<1){if($e==123)--X;else if($e==125&&X++==0&&prev()==125)continue}switch(Be+=from($e),$e*X){case 38:we=E>0?1:(Be+="\f",-1);break;case 44:y[$++]=(strlen(Be)-1)*we,we=1;break;case 64:peek$1()===45&&(Be+=delimit(next())),N=peek$1(),E=A=strlen(Ce=Be+=identifier(caret())),$e++;break;case 45:Z===45&&strlen(Be)==2&&(X=0)}}return p}function ruleset(n,o,e,t,c,p,h,y,g,$,E){for(var A=c-1,N=c===0?p:[""],H=sizeof(N),Z=0,X=0,be=0;Z<t;++Z)for(var we=0,$e=substr(n,A+1,A=abs(X=h[Z])),Ce=n;we<H;++we)(Ce=trim(X>0?N[we]+" "+$e:replace$1($e,/&\f/g,N[we])))&&(g[be++]=Ce);return node$1(n,o,e,c===0?RULESET:y,g,$,E)}function comment(n,o,e){return node$1(n,o,e,COMMENT,from(char()),substr(n,2,-2),0)}function declaration(n,o,e,t){return node$1(n,o,e,DECLARATION,substr(n,0,t),substr(n,t+1,-1),t)}function serialize$2(n,o){for(var e="",t=sizeof(n),c=0;c<t;c++)e+=o(n[c],c,n,o)||"";return e}function stringify$2(n,o,e,t){switch(n.type){case LAYER:if(n.children.length)break;case IMPORT:case DECLARATION:return n.return=n.return||n.value;case COMMENT:return"";case KEYFRAMES:return n.return=n.value+"{"+serialize$2(n.children,t)+"}";case RULESET:n.value=n.props.join(",")}return strlen(e=serialize$2(n.children,t))?n.return=n.value+"{"+e+"}":""}function middleware(n){var o=sizeof(n);return function(e,t,c,p){for(var h="",y=0;y<o;y++)h+=n[y](e,t,c,p)||"";return h}}function rulesheet(n){return function(o){o.root||(o=o.return)&&n(o)}}var weakMemoize=function(o){var e=new WeakMap;return function(t){if(e.has(t))return e.get(t);var c=o(t);return e.set(t,c),c}};function memoize$1(n){var o=Object.create(null);return function(e){return o[e]===void 0&&(o[e]=n(e)),o[e]}}var identifierWithPointTracking=function(o,e,t){for(var c=0,p=0;c=p,p=peek$1(),c===38&&p===12&&(e[t]=1),!token(p);)next();return slice(o,position$3)},toRules=function(o,e){var t=-1,c=44;do switch(token(c)){case 0:c===38&&peek$1()===12&&(e[t]=1),o[t]+=identifierWithPointTracking(position$3-1,e,t);break;case 2:o[t]+=delimit(c);break;case 4:if(c===44){o[++t]=peek$1()===58?"&\f":"",e[t]=o[t].length;break}default:o[t]+=from(c)}while(c=next());return o},getRules=function(o,e){return dealloc(toRules(alloc(o),e))},fixedElements=new WeakMap,compat=function(o){if(!(o.type!=="rule"||!o.parent||o.length<1)){for(var e=o.value,t=o.parent,c=o.column===t.column&&o.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(o.props.length===1&&e.charCodeAt(0)!==58&&!fixedElements.get(t))&&!c){fixedElements.set(o,!0);for(var p=[],h=getRules(e,p),y=t.props,g=0,$=0;g<h.length;g++)for(var E=0;E<y.length;E++,$++)o.props[$]=p[g]?h[g].replace(/&\f/g,y[E]):y[E]+" "+h[g]}}},removeLabel=function(o){if(o.type==="decl"){var e=o.value;e.charCodeAt(0)===108&&e.charCodeAt(2)===98&&(o.return="",o.value="")}};function prefix$1(n,o){switch(hash$1(n,o)){case 5103:return WEBKIT+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+n+MOZ+n+MS+n+n;case 6828:case 4268:return WEBKIT+n+MS+n+n;case 6165:return WEBKIT+n+MS+"flex-"+n+n;case 5187:return WEBKIT+n+replace$1(n,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+n;case 5443:return WEBKIT+n+MS+"flex-item-"+replace$1(n,/flex-|-self/,"")+n;case 4675:return WEBKIT+n+MS+"flex-line-pack"+replace$1(n,/align-content|flex-|-self/,"")+n;case 5548:return WEBKIT+n+MS+replace$1(n,"shrink","negative")+n;case 5292:return WEBKIT+n+MS+replace$1(n,"basis","preferred-size")+n;case 6060:return WEBKIT+"box-"+replace$1(n,"-grow","")+WEBKIT+n+MS+replace$1(n,"grow","positive")+n;case 4554:return WEBKIT+replace$1(n,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+n;case 6187:return replace$1(replace$1(replace$1(n,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),n,"")+n;case 5495:case 3959:return replace$1(n,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace$1(replace$1(n,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+n+n;case 4095:case 3583:case 4068:case 2532:return replace$1(n,/(.+)-inline(.+)/,WEBKIT+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(n)-1-o>6)switch(charat(n,o+1)){case 109:if(charat(n,o+4)!==45)break;case 102:return replace$1(n,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(n,o+3)==108?"$3":"$2-$3"))+n;case 115:return~indexof(n,"stretch")?prefix$1(replace$1(n,"stretch","fill-available"),o)+n:n}break;case 4949:if(charat(n,o+1)!==115)break;case 6444:switch(charat(n,strlen(n)-3-(~indexof(n,"!important")&&10))){case 107:return replace$1(n,":",":"+WEBKIT)+n;case 101:return replace$1(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(n,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+n}break;case 5936:switch(charat(n,o+11)){case 114:return WEBKIT+n+MS+replace$1(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return WEBKIT+n+MS+replace$1(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return WEBKIT+n+MS+replace$1(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return WEBKIT+n+MS+n+n}return n}
vendor: 5,148 bytes, line 2
2var prefixer=function(o,e,t,c){if(o.length>-1&&!o.return)switch(o.type){case DECLARATION:o.return=prefix$1(o.value,o.length);break;case KEYFRAMES:return serialize$2([copy(o,{value:replace$1(o.value,"@","@"+WEBKIT)})],c);case RULESET:if(o.length)return combine(o.props,function(p){switch(match(p,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$2([copy(o,{props:[replace$1(p,/:(read-\w+)/,":"+MOZ+"$1")]})],c);case"::placeholder":return serialize$2([copy(o,{props:[replace$1(p,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(o,{props:[replace$1(p,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(o,{props:[replace$1(p,/:(plac\w+)/,MS+"input-$1")]})],c)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(o){var e=o.key;if(e==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,function(X){var be=X.getAttribute("data-emotion");be.indexOf(" ")!==-1&&(document.head.appendChild(X),X.setAttribute("data-s",""))})}var c=o.stylisPlugins||defaultStylisPlugins,p={},h,y=[];h=o.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(X){for(var be=X.getAttribute("data-emotion").split(" "),we=1;we<be.length;we++)p[be[we]]=!0;y.push(X)});var g,$=[compat,removeLabel];{var E,A=[stringify$2,rulesheet(function(X){E.insert(X)})],N=middleware($.concat(c,A)),H=function(be){return serialize$2(compile(be),N)};g=function(be,we,$e,Ce){E=$e,H(be?be+"{"+we.styles+"}":we.styles),Ce&&(Z.inserted[we.name]=!0)}}var Z={key:e,sheet:new StyleSheet({key:e,container:h,nonce:o.nonce,speedy:o.speedy,prepend:o.prepend,insertionPoint:o.insertionPoint}),nonce:o.nonce,inserted:p,registered:{},insert:g};return Z.sheet.hydrate(y),Z};function _extends$C(){return _extends$C=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)({}).hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$C.apply(null,arguments)}var reactIs$1={exports:{}},reactIs_production_min$1={};var hasRequiredReactIs_production_min$1;function requireReactIs_production_min$1(){if(hasRequiredReactIs_production_min$1)return reactIs_production_min$1;hasRequiredReactIs_production_min$1=1;var n=typeof Symbol=="function"&&Symbol.for,o=n?Symbol.for("react.element"):60103,e=n?Symbol.for("react.portal"):60106,t=n?Symbol.for("react.fragment"):60107,c=n?Symbol.for("react.strict_mode"):60108,p=n?Symbol.for("react.profiler"):60114,h=n?Symbol.for("react.provider"):60109,y=n?Symbol.for("react.context"):60110,g=n?Symbol.for("react.async_mode"):60111,$=n?Symbol.for("react.concurrent_mode"):60111,E=n?Symbol.for("react.forward_ref"):60112,A=n?Symbol.for("react.suspense"):60113,N=n?Symbol.for("react.suspense_list"):60120,H=n?Symbol.for("react.memo"):60115,Z=n?Symbol.for("react.lazy"):60116,X=n?Symbol.for("react.block"):60121,be=n?Symbol.for("react.fundamental"):60117,we=n?Symbol.for("react.responder"):60118,$e=n?Symbol.for("react.scope"):60119;function Ce(Ne){if(typeof Ne=="object"&&Ne!==null){var Fe=Ne.$$typeof;switch(Fe){case o:switch(Ne=Ne.type,Ne){case g:case $:case t:case p:case c:case A:return Ne;default:switch(Ne=Ne&&Ne.$$typeof,Ne){case y:case E:case Z:case H:case h:return Ne;default:return Fe}}case e:return Fe}}}function Ie(Ne){return Ce(Ne)===$}return reactIs_production_min$1.AsyncMode=g,reactIs_production_min$1.ConcurrentMode=$,reactIs_production_min$1.ContextConsumer=y,reactIs_production_min$1.ContextProvider=h,reactIs_production_min$1.Element=o,reactIs_production_min$1.ForwardRef=E,reactIs_production_min$1.Fragment=t,reactIs_production_min$1.Lazy=Z,reactIs_production_min$1.Memo=H,reactIs_production_min$1.Portal=e,reactIs_production_min$1.Profiler=p,reactIs_production_min$1.StrictMode=c,reactIs_production_min$1.Suspense=A,reactIs_production_min$1.isAsyncMode=function(Ne){return Ie(Ne)||Ce(Ne)===g},reactIs_production_min$1.isConcurrentMode=Ie,reactIs_production_min$1.isContextConsumer=function(Ne){return Ce(Ne)===y},reactIs_production_min$1.isContextProvider=function(Ne){return Ce(Ne)===h},reactIs_production_min$1.isElement=function(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===o},reactIs_production_min$1.isForwardRef=function(Ne){return Ce(Ne)===E},reactIs_production_min$1.isFragment=function(Ne){return Ce(Ne)===t},reactIs_production_min$1.isLazy=function(Ne){return Ce(Ne)===Z},reactIs_production_min$1.isMemo=function(Ne){return Ce(Ne)===H},reactIs_production_min$1.isPortal=function(Ne){return Ce(Ne)===e},reactIs_production_min$1.isProfiler=function(Ne){return Ce(Ne)===p},reactIs_production_min$1.isStrictMode=function(Ne){return Ce(Ne)===c},reactIs_production_min$1.isSuspense=function(Ne){return Ce(Ne)===A},reactIs_production_min$1.isValidElementType=function(Ne){return typeof Ne=="string"||typeof Ne=="function"||Ne===t||Ne===$||Ne===p||Ne===c||Ne===A||Ne===N||typeof Ne=="object"&&Ne!==null&&(Ne.$$typeof===Z||Ne.$$typeof===H||Ne.$$typeof===h||Ne.$$typeof===y||Ne.$$typeof===E||Ne.$$typeof===be||Ne.$$typeof===we||Ne.$$typeof===$e||Ne.$$typeof===X)},reactIs_production_min$1.typeOf=Ce,reactIs_production_min$1}var hasRequiredReactIs$1;
vendor: 7,285 bytes, line 2
2function requireReactIs$1(){return hasRequiredReactIs$1||(hasRequiredReactIs$1=1,reactIs$1.exports=requireReactIs_production_min$1()),reactIs$1.exports}var hoistNonReactStatics_cjs,hasRequiredHoistNonReactStatics_cjs;function requireHoistNonReactStatics_cjs(){if(hasRequiredHoistNonReactStatics_cjs)return hoistNonReactStatics_cjs;hasRequiredHoistNonReactStatics_cjs=1;var n=requireReactIs$1(),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},p={};p[n.ForwardRef]=t,p[n.Memo]=c;function h(Z){return n.isMemo(Z)?c:p[Z.$$typeof]||o}var y=Object.defineProperty,g=Object.getOwnPropertyNames,$=Object.getOwnPropertySymbols,E=Object.getOwnPropertyDescriptor,A=Object.getPrototypeOf,N=Object.prototype;function H(Z,X,be){if(typeof X!="string"){if(N){var we=A(X);we&&we!==N&&H(Z,we,be)}var $e=g(X);$&&($e=$e.concat($(X)));for(var Ce=h(Z),Ie=h(X),Ne=0;Ne<$e.length;++Ne){var Fe=$e[Ne];if(!e[Fe]&&!(be&&be[Fe])&&!(Ie&&Ie[Fe])&&!(Ce&&Ce[Fe])){var Be=E(X,Fe);try{y(Z,Fe,Be)}catch{}}}}return Z}return hoistNonReactStatics_cjs=H,hoistNonReactStatics_cjs}var hoistNonReactStatics_cjsExports=requireHoistNonReactStatics_cjs();const hoistNonReactStatics=getDefaultExportFromCjs(hoistNonReactStatics_cjsExports);var isBrowser$2=!0;function getRegisteredStyles(n,o,e){var t="";return e.split(" ").forEach(function(c){n[c]!==void 0?o.push(n[c]+";"):c&&(t+=c+" ")}),t}var registerStyles=function(o,e,t){var c=o.key+"-"+e.name;(t===!1||isBrowser$2===!1)&&o.registered[c]===void 0&&(o.registered[c]=e.styles)},insertStyles=function(o,e,t){registerStyles(o,e,t);var c=o.key+"-"+e.name;if(o.inserted[e.name]===void 0){var p=e;do o.insert(e===p?"."+c:"",p,o.sheet,!0),p=p.next;while(p!==void 0)}};function murmur2(n){for(var o=0,e,t=0,c=n.length;c>=4;++t,c-=4)e=n.charCodeAt(t)&255|(n.charCodeAt(++t)&255)<<8|(n.charCodeAt(++t)&255)<<16|(n.charCodeAt(++t)&255)<<24,e=(e&65535)*1540483477+((e>>>16)*59797<<16),e^=e>>>24,o=(e&65535)*1540483477+((e>>>16)*59797<<16)^(o&65535)*1540483477+((o>>>16)*59797<<16);switch(c){case 3:o^=(n.charCodeAt(t+2)&255)<<16;case 2:o^=(n.charCodeAt(t+1)&255)<<8;case 1:o^=n.charCodeAt(t)&255,o=(o&65535)*1540483477+((o>>>16)*59797<<16)}return o^=o>>>13,o=(o&65535)*1540483477+((o>>>16)*59797<<16),((o^o>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(o){return o.charCodeAt(1)===45},isProcessableValue=function(o){return o!=null&&typeof o!="boolean"},processStyleName=memoize$1(function(n){return isCustomProperty(n)?n:n.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(o,e){switch(o){case"animation":case"animationName":if(typeof e=="string")return e.replace(animationRegex,function(t,c,p){return cursor$1={name:c,styles:p,next:cursor$1},c})}return unitlessKeys[o]!==1&&!isCustomProperty(o)&&typeof e=="number"&&e!==0?e+"px":e};function handleInterpolation(n,o,e){if(e==null)return"";var t=e;if(t.__emotion_styles!==void 0)return t;switch(typeof e){case"boolean":return"";case"object":{var c=e;if(c.anim===1)return cursor$1={name:c.name,styles:c.styles,next:cursor$1},c.name;var p=e;if(p.styles!==void 0){var h=p.next;if(h!==void 0)for(;h!==void 0;)cursor$1={name:h.name,styles:h.styles,next:cursor$1},h=h.next;var y=p.styles+";";return y}return createStringFromObject(n,o,e)}case"function":{if(n!==void 0){var g=cursor$1,$=e(n);return cursor$1=g,handleInterpolation(n,o,$)}break}}var E=e;if(o==null)return E;var A=o[E];return A!==void 0?A:E}function createStringFromObject(n,o,e){var t="";if(Array.isArray(e))for(var c=0;c<e.length;c++)t+=handleInterpolation(n,o,e[c])+";";else for(var p in e){var h=e[p];if(typeof h!="object"){var y=h;o!=null&&o[y]!==void 0?t+=p+"{"+o[y]+"}":isProcessableValue(y)&&(t+=processStyleName(p)+":"+processStyleValue(p,y)+";")}else if(Array.isArray(h)&&typeof h[0]=="string"&&(o==null||o[h[0]]===void 0))for(var g=0;g<h.length;g++)isProcessableValue(h[g])&&(t+=processStyleName(p)+":"+processStyleValue(p,h[g])+";");else{var $=handleInterpolation(n,o,h);switch(p){case"animation":case"animationName":{t+=processStyleName(p)+":"+$+";";break}default:t+=p+"{"+$+"}"}}}return t}var labelPattern=/label:\s*([^\s;{]+)\s*(;|$)/g,cursor$1;function serializeStyles(n,o,e){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var t=!0,c="";cursor$1=void 0;var p=n[0];if(p==null||p.raw===void 0)t=!1,c+=handleInterpolation(e,o,p);else{var h=p;c+=h[0]}for(var y=1;y<n.length;y++)if(c+=handleInterpolation(e,o,n[y]),t){var g=p;c+=g[y]}labelPattern.lastIndex=0;for(var $="",E;(E=labelPattern.exec(c))!==null;)$+="-"+E[1];var A=murmur2(c)+$;return{name:A,styles:c,next:cursor$1}}var syncFallback=function(o){return o()},useInsertionEffect=React$1.useInsertionEffect?React$1.useInsertionEffect:!1,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect||syncFallback,useInsertionEffectWithLayoutFallback=useInsertionEffect||reactExports.useLayoutEffect,EmotionCacheContext=reactExports.createContext(typeof HTMLElement<"u"?createCache({key:"css"}):null),CacheProvider=EmotionCacheContext.Provider,withEmotionCache=function(o){return reactExports.forwardRef(function(e,t){var c=reactExports.useContext(EmotionCacheContext);return o(e,c,t)})},ThemeContext$2=reactExports.createContext({}),useTheme=function(){return reactExports.useContext(ThemeContext$2)},getTheme=function(o,e){if(typeof e=="function"){var t=e(o);return t}return _extends$C({},o,e)},createCacheWithTheme=weakMemoize(function(n){return weakMemoize(function(o){return getTheme(n,o)})}),ThemeProvider$2=function(o){var e=reactExports.useContext(ThemeContext$2);return o.theme!==e&&(e=createCacheWithTheme(e)(o.theme)),reactExports.createElement(ThemeContext$2.Provider,{value:e},o.children)},hasOwn={}.hasOwnProperty,typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(o,e){var t={};for(var c in e)hasOwn.call(e,c)&&(t[c]=e[c]);return t[typePropName]=o,t},Insertion$1=function(o){var e=o.cache,t=o.serialized,c=o.isStringTag;return registerStyles(e,t,c),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(e,t,c)}),null},Emotion=withEmotionCache(function(n,o,e){var t=n.css;typeof t=="string"&&o.registered[t]!==void 0&&(t=o.registered[t]);var c=n[typePropName],p=[t],h="";
2typeof n.className=="string"?h=getRegisteredStyles(o.registered,p,n.className):n.className!=null&&(h=n.className+" ");var y=serializeStyles(p,void 0,reactExports.useContext(ThemeContext$2));h+=o.key+"-"+y.name;var g={};for(var $ in n)hasOwn.call(n,$)&&$!=="css"&&$!==typePropName&&(g[$]=n[$]);return g.className=h,e&&(g.ref=e),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion$1,{cache:o,serialized:y,isStringTag:typeof c=="string"}),reactExports.createElement(c,g))}),Emotion$1=Emotion,Fragment=jsxRuntimeExports.Fragment,jsx$1=function(o,e,t){return hasOwn.call(e,"css")?jsxRuntimeExports.jsx(Emotion$1,createEmotionProps(o,e),t):jsxRuntimeExports.jsx(o,e,t)},jsxs=function(o,e,t){return hasOwn.call(e,"css")?jsxRuntimeExports.jsxs(Emotion$1,createEmotionProps(o,e),t):jsxRuntimeExports.jsxs(o,e,t)},loglevel$1={exports:{}},loglevel=loglevel$1.exports,hasRequiredLoglevel;function requireLoglevel(){return hasRequiredLoglevel||(hasRequiredLoglevel=1,function(n){(function(o,e){n.exports?n.exports=e():o.log=e()})(loglevel,function(){var o=function(){},e="undefined",t=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),c=["trace","debug","info","warn","error"],p={},h=null;function y(X,be){var we=X[be];if(typeof we.bind=="function")return we.bind(X);try{return Function.prototype.bind.call(we,X)}catch{return function(){return Function.prototype.apply.apply(we,[X,arguments])}}}function g(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function $(X){return X==="debug"&&(X="log"),typeof console===e?!1:X==="trace"&&t?g:console[X]!==void 0?y(console,X):console.log!==void 0?y(console,"log"):o}function E(){for(var X=this.getLevel(),be=0;be<c.length;be++){var we=c[be];this[we]=be<X?o:this.methodFactory(we,X,this.name)}if(this.log=this.debug,typeof console===e&&X<this.levels.SILENT)return"No console available for logging"}function A(X){return function(){typeof console!==e&&(E.call(this),this[X].apply(this,arguments))}}function N(X,be,we){return $(X)||A.apply(this,arguments)}function H(X,be){var we=this,$e,Ce,Ie,Ne="loglevel";typeof X=="string"?Ne+=":"+X:typeof X=="symbol"&&(Ne=void 0);function Fe(Ue){var Je=(c[Ue]||"silent").toUpperCase();if(!(typeof window===e||!Ne)){try{window.localStorage[Ne]=Je;return}catch{}try{window.document.cookie=encodeURIComponent(Ne)+"="+Je+";"}catch{}}}function Be(){var Ue;if(!(typeof window===e||!Ne)){try{Ue=window.localStorage[Ne]}catch{}if(typeof Ue===e)try{var Je=window.document.cookie,Xe=encodeURIComponent(Ne),Ke=Je.indexOf(Xe+"=");Ke!==-1&&(Ue=/^([^;]+)/.exec(Je.slice(Ke+Xe.length+1))[1])}catch{}return we.levels[Ue]===void 0&&(Ue=void 0),Ue}}function Ge(){if(!(typeof window===e||!Ne)){try{window.localStorage.removeItem(Ne)}catch{}try{window.document.cookie=encodeURIComponent(Ne)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function je(Ue){var Je=Ue;if(typeof Je=="string"&&we.levels[Je.toUpperCase()]!==void 0&&(Je=we.levels[Je.toUpperCase()]),typeof Je=="number"&&Je>=0&&Je<=we.levels.SILENT)return Je;throw new TypeError("log.setLevel() called with invalid level: "+Ue)}we.name=X,we.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},we.methodFactory=be||N,we.getLevel=function(){return Ie??Ce??$e},we.setLevel=function(Ue,Je){return Ie=je(Ue),Je!==!1&&Fe(Ie),E.call(we)},we.setDefaultLevel=function(Ue){Ce=je(Ue),Be()||we.setLevel(Ue,!1)},we.resetLevel=function(){Ie=null,Ge(),E.call(we)},we.enableAll=function(Ue){we.setLevel(we.levels.TRACE,Ue)},we.disableAll=function(Ue){we.setLevel(we.levels.SILENT,Ue)},we.rebuild=function(){if(h!==we&&($e=je(h.getLevel())),E.call(we),h===we)for(var Ue in p)p[Ue].rebuild()},$e=je(h?h.getLevel():"WARN");var De=Be();De!=null&&(Ie=je(De)),E.call(we)}h=new H,h.getLogger=function(be){if(typeof be!="symbol"&&typeof be!="string"||be==="")throw new TypeError("You must supply a name when creating a logger.");var we=p[be];return we||(we=p[be]=new H(be,h.methodFactory)),we};var Z=typeof window!==e?window.log:void 0;return h.noConflict=function(){return typeof window!==e&&window.log===h&&
vendor: 4,091 bytes, line 2
2(window.log=Z),h},h.getLoggers=function(){return p},h.default=h,h})}(loglevel$1)),loglevel$1.exports}var loglevelExports=requireLoglevel(),client={},reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};var hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,function(n){function o(at,dt){var Me=at.length;at.push(dt);e:for(;0<Me;){var We=Me-1>>>1,tt=at[We];if(0<c(tt,dt))at[We]=dt,at[Me]=tt,Me=We;else break e}}function e(at){return at.length===0?null:at[0]}function t(at){if(at.length===0)return null;var dt=at[0],Me=at.pop();if(Me!==dt){at[0]=Me;e:for(var We=0,tt=at.length,Ve=tt>>>1;We<Ve;){var vt=2*(We+1)-1,xt=at[vt],Qe=vt+1,St=at[Qe];if(0>c(xt,Me))Qe<tt&&0>c(St,xt)?(at[We]=St,at[Qe]=Me,We=Qe):(at[We]=xt,at[vt]=Me,We=vt);else if(Qe<tt&&0>c(St,Me))at[We]=St,at[Qe]=Me,We=Qe;else break e}}return dt}function c(at,dt){var Me=at.sortIndex-dt.sortIndex;return Me!==0?Me:at.id-dt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;n.unstable_now=function(){return p.now()}}else{var h=Date,y=h.now();n.unstable_now=function(){return h.now()-y}}var g=[],$=[],E=1,A=null,N=3,H=!1,Z=!1,X=!1,be=typeof setTimeout=="function"?setTimeout:null,we=typeof clearTimeout=="function"?clearTimeout:null,$e=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ce(at){for(var dt=e($);dt!==null;){if(dt.callback===null)t($);else if(dt.startTime<=at)t($),dt.sortIndex=dt.expirationTime,o(g,dt);else break;dt=e($)}}function Ie(at){if(X=!1,Ce(at),!Z)if(e(g)!==null)Z=!0,nt(Ne);else{var dt=e($);dt!==null&&ct(Ie,dt.startTime-at)}}function Ne(at,dt){Z=!1,X&&(X=!1,we(Ge),Ge=-1),H=!0;var Me=N;try{for(Ce(dt),A=e(g);A!==null&&(!(A.expirationTime>dt)||at&&!Ue());){var We=A.callback;if(typeof We=="function"){A.callback=null,N=A.priorityLevel;var tt=We(A.expirationTime<=dt);dt=n.unstable_now(),typeof tt=="function"?A.callback=tt:A===e(g)&&t(g),Ce(dt)}else t(g);A=e(g)}if(A!==null)var Ve=!0;else{var vt=e($);vt!==null&&ct(Ie,vt.startTime-dt),Ve=!1}return Ve}finally{A=null,N=Me,H=!1}}var Fe=!1,Be=null,Ge=-1,je=5,De=-1;function Ue(){return!(n.unstable_now()-De<je)}function Je(){if(Be!==null){var at=n.unstable_now();De=at;var dt=!0;try{dt=Be(!0,at)}finally{dt?Xe():(Fe=!1,Be=null)}}else Fe=!1}var Xe;if(typeof $e=="function")Xe=function(){$e(Je)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,ze=Ke.port2;Ke.port1.onmessage=Je,Xe=function(){ze.postMessage(null)}}else Xe=function(){be(Je,0)};function nt(at){Be=at,Fe||(Fe=!0,Xe())}function ct(at,dt){Ge=be(function(){at(n.unstable_now())},dt)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(at){at.callback=null},n.unstable_continueExecution=function(){Z||H||(Z=!0,nt(Ne))},n.unstable_forceFrameRate=function(at){0>at||125<at?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):je=0<at?Math.floor(1e3/at):5},n.unstable_getCurrentPriorityLevel=function(){return N},n.unstable_getFirstCallbackNode=function(){return e(g)},n.unstable_next=function(at){switch(N){case 1:case 2:case 3:var dt=3;break;default:dt=N}var Me=N;N=dt;try{return at()}finally{N=Me}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(at,dt){switch(at){case 1:case 2:case 3:case 4:case 5:break;default:at=3}var Me=N;N=at;try{return dt()}finally{N=Me}},n.unstable_scheduleCallback=function(at,dt,Me){var We=n.unstable_now();switch(typeof Me=="object"&&Me!==null?(Me=Me.delay,Me=typeof Me=="number"&&0<Me?We+Me:We):Me=We,at){case 1:var tt=-1;break;case 2:tt=250;break;case 5:tt=1073741823;break;case 4:tt=1e4;break;default:tt=5e3}
vendor: 4,793 bytes, line 2
2return tt=Me+tt,at={id:E++,callback:dt,priorityLevel:at,startTime:Me,expirationTime:tt,sortIndex:-1},Me>We?(at.sortIndex=Me,o($,at),e(g)===null&&at===e($)&&(X?(we(Ge),Ge=-1):X=!0,ct(Ie,Me-We))):(at.sortIndex=tt,o(g,at),Z||H||(Z=!0,nt(Ne))),at},n.unstable_shouldYield=Ue,n.unstable_wrapCallback=function(at){var dt=N;return function(){var Me=N;N=dt;try{return at.apply(this,arguments)}finally{N=Me}}}}(scheduler_production_min)),scheduler_production_min}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production_min()),scheduler.exports}var hasRequiredReactDom_production_min;function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var n=requireReact(),o=requireScheduler();function e(S){for(var k="https://reactjs.org/docs/error-decoder.html?invariant="+S,M=1;M<arguments.length;M++)k+="&args[]="+encodeURIComponent(arguments[M]);return"Minified React error #"+S+"; visit "+k+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=new Set,c={};function p(S,k){h(S,k),h(S+"Capture",k)}function h(S,k){for(c[S]=k,S=0;S<k.length;S++)t.add(k[S])}var y=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,$=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,E={},A={};function N(S){return g.call(A,S)?!0:g.call(E,S)?!1:$.test(S)?A[S]=!0:(E[S]=!0,!1)}function H(S,k,M,ye){if(M!==null&&M.type===0)return!1;switch(typeof k){case"function":case"symbol":return!0;case"boolean":return ye?!1:M!==null?!M.acceptsBooleans:(S=S.toLowerCase().slice(0,5),S!=="data-"&&S!=="aria-");default:return!1}}function Z(S,k,M,ye){if(k===null||typeof k>"u"||H(S,k,M,ye))return!0;if(ye)return!1;if(M!==null)switch(M.type){case 3:return!k;case 4:return k===!1;case 5:return isNaN(k);case 6:return isNaN(k)||1>k}return!1}function X(S,k,M,ye,ve,xe,Le){this.acceptsBooleans=k===2||k===3||k===4,this.attributeName=ye,this.attributeNamespace=ve,this.mustUseProperty=M,this.propertyName=S,this.type=k,this.sanitizeURL=xe,this.removeEmptyString=Le}var be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(S){be[S]=new X(S,0,!1,S,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(S){var k=S[0];be[k]=new X(k,1,!1,S[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(S){be[S]=new X(S,2,!1,S.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(S){be[S]=new X(S,2,!1,S,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(S){be[S]=new X(S,3,!1,S.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(S){be[S]=new X(S,3,!0,S,null,!1,!1)}),["capture","download"].forEach(function(S){be[S]=new X(S,4,!1,S,null,!1,!1)}),["cols","rows","size","span"].forEach(function(S){be[S]=new X(S,6,!1,S,null,!1,!1)}),["rowSpan","start"].forEach(function(S){be[S]=new X(S,5,!1,S.toLowerCase(),null,!1,!1)});var we=/[\-:]([a-z])/g;function $e(S){return S[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
2-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(S){var k=S.replace(we,$e);be[k]=new X(k,1,!1,S,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(S){var k=S.replace(we,$e);be[k]=new X(k,1,!1,S,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(S){var k=S.replace(we,$e);be[k]=new X(k,1,!1,S,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(S){be[S]=new X(S,1,!1,S.toLowerCase(),null,!1,!1)}),be.xlinkHref=new X("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(S){be[S]=new X(S,1,!1,S.toLowerCase(),null,!0,!0)});function Ce(S,k,M,ye){var ve=be.hasOwnProperty(k)?be[k]:null;(ve!==null?ve.type!==0:ye||!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N")&&(Z(k,M,ve,ye)&&(M=null),ye||ve===null?N(k)&&(M===null?S.removeAttribute(k):S.setAttribute(k,""+M)):ve.mustUseProperty?S[ve.propertyName]=M===null?ve.type===3?!1:"":M:(k=ve.attributeName,ye=ve.attributeNamespace,M===null?S.removeAttribute(k):(ve=ve.type,M=ve===3||ve===4&&M===!0?"":""+M,ye?S.setAttributeNS(ye,k,M):S.setAttribute(k,M))))}var Ie=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ne=Symbol.for("react.element"),Fe=Symbol.for("react.portal"),Be=Symbol.for("react.fragment"),Ge=Symbol.for("react.strict_mode"),je=Symbol.for("react.profiler"),De=Symbol.for("react.provider"),Ue=Symbol.for("react.context"),Je=Symbol.for("react.forward_ref"),Xe=Symbol.for("react.suspense"),Ke=Symbol.for("react.suspense_list"),ze=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),ct=Symbol.for("react.offscreen"),at=Symbol.iterator;function dt(S){return S===null||typeof S!="object"?null:(S=at&&S[at]||S["@@iterator"],typeof S=="function"?S:null)}var Me=Object.assign,We;function tt(S){if(We===void 0)try{throw Error()}catch(M){var k=M.stack.trim().match(/\n( *(at )?)/);We=k&&k[1]||""}return` 3`+We+S}var Ve=!1;function vt(S,k){if(!S||Ve)return"";Ve=!0;var M=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(k)if(k=function(){throw Error()},Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(rt){var ye=rt}Reflect.construct(S,[],k)}else{try{k.call()}catch(rt){ye=rt}S.call(k.prototype)}else{try{throw Error()}catch(rt){ye=rt}S()}}catch(rt){if(rt&&ye&&typeof rt.stack=="string"){for(var ve=rt.stack.split(` 4`),xe=ye.stack.split(` 5`),Le=ve.length-1,He=xe.length-1;1<=Le&&0<=He&&ve[Le]!==xe[He];)He--;for(;1<=Le&&0<=He;Le--,He--)if(ve[Le]!==xe[He]){if(Le!==1||He!==1)do if(Le--,He--,0>He||ve[Le]!==xe[He]){var qe=` 6`+ve[Le].replace(" at new "," at ");return S.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",S.displayName)),qe}while(1<=Le&&0<=He);break}}}finally{Ve=!1,Error.prepareStackTrace=M}return(S=S?S.displayName||S.name:"")?tt(S):""}function xt(S){switch(S.tag){case 5:return tt(S.type);case 16:return tt("Lazy");case 13:return tt("Suspense");case 19:return tt("SuspenseList");case 0:case 2:case 15:return S=vt(S.type,!1),S;case 11:return S=vt(S.type.render,!1),S;case 1:return S=vt(S.type,!0),S;default:return""}}function Qe(S){if(S==null)return null;if(typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case Be:return"Fragment";case Fe:return"Portal";case je:return"Profiler";case Ge:return"StrictMode";case Xe:return"Suspense";case Ke:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case Ue:return(S.displayName||"Context")+".Consumer";case De:return(S._context.displayName||"Context")+".Provider";case Je:var k=S.render;return S=S.displayName,S||(S=k.displayName||k.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case ze:return k=S.displayName||null,k!==null?k:Qe(S.type)||"Memo";case nt:k=S._payload,S=S._init;try{return Qe(S(k))}catch{}}return null}function St(S){var k=S.type;switch(S.tag){case 24:return"Cache";case 9:return(k.displayName||"Context")+".Consumer";case 10:return(k._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return S=k.render,S=S.displayName||S.name||"",k.displayName||(S!==""?"ForwardRef("+S+")":"ForwardRef");case 7:return"Fragment";case 5:return k;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qe(k);case 8:return k===Ge?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k}return null}function pt(S){switch(typeof S){case"boolean":case"number":case"string":case"undefined":return S;case"object":return S;default:return""}}function wt(S){var k=S.type;return(S=S.nodeName)&&S.toLowerCase()==="input"&&(k==="checkbox"||k==="radio")}function Ft(S){var k=wt(S)?"checked":"value",M=Object.getOwnPropertyDescriptor(S.constructor.prototype,k),ye=""+S[k];if(!S.hasOwnProperty(k)&&typeof M<"u"&&typeof M.get=="function"&&typeof M.set=="function"){var ve=M.get,xe=M.set;return Object.defineProperty(S,k,{configurable:!0,get:function(){return ve.call(this)},set:function(Le){ye=""+Le,xe.call(this,Le)}}),Object.defineProperty(S,k,{enumerable:M.enumerable}),{getValue:function(){return ye},setValue:function(Le){ye=""+Le},stopTracking:function(){S._valueTracker=null,delete S[k]}}}}function Ht(S){S._valueTracker||(S._valueTracker=Ft(S))}function on(S){if(!S)return!1;var k=S._valueTracker;if(!k)return!0;var M=k.getValue(),ye="";return S&&(ye=wt(S)?S.checked?"true":"false":S.value),S=ye,S!==M?(k.setValue(S),!0):!1}function en(S){if(S=S||(typeof document<"u"?document:void 0),typeof S>"u")return null;try{return S.activeElement||S.body}catch{return S.body}}function Wt(S,k){var M=k.checked;return Me({},k,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:M??S._wrapperState.initialChecked})}function an(S,k){var M=k.defaultValue==null?"":k.defaultValue,ye=k.checked!=null?k.checked:k.defaultChecked;
vendor: 4,850 bytes, line 6
6M=pt(k.value!=null?k.value:M),S._wrapperState={initialChecked:ye,initialValue:M,controlled:k.type==="checkbox"||k.type==="radio"?k.checked!=null:k.value!=null}}function qt(S,k){k=k.checked,k!=null&&Ce(S,"checked",k,!1)}function zt(S,k){qt(S,k);var M=pt(k.value),ye=k.type;if(M!=null)ye==="number"?(M===0&&S.value===""||S.value!=M)&&(S.value=""+M):S.value!==""+M&&(S.value=""+M);else if(ye==="submit"||ye==="reset"){S.removeAttribute("value");return}k.hasOwnProperty("value")?jt(S,k.type,M):k.hasOwnProperty("defaultValue")&&jt(S,k.type,pt(k.defaultValue)),k.checked==null&&k.defaultChecked!=null&&(S.defaultChecked=!!k.defaultChecked)}function Jt(S,k,M){if(k.hasOwnProperty("value")||k.hasOwnProperty("defaultValue")){var ye=k.type;if(!(ye!=="submit"&&ye!=="reset"||k.value!==void 0&&k.value!==null))return;k=""+S._wrapperState.initialValue,M||k===S.value||(S.value=k),S.defaultValue=k}M=S.name,M!==""&&(S.name=""),S.defaultChecked=!!S._wrapperState.initialChecked,M!==""&&(S.name=M)}function jt(S,k,M){(k!=="number"||en(S.ownerDocument)!==S)&&(M==null?S.defaultValue=""+S._wrapperState.initialValue:S.defaultValue!==""+M&&(S.defaultValue=""+M))}var Yt=Array.isArray;function yn(S,k,M,ye){if(S=S.options,k){k={};for(var ve=0;ve<M.length;ve++)k["$"+M[ve]]=!0;for(M=0;M<S.length;M++)ve=k.hasOwnProperty("$"+S[M].value),S[M].selected!==ve&&(S[M].selected=ve),ve&&ye&&(S[M].defaultSelected=!0)}else{for(M=""+pt(M),k=null,ve=0;ve<S.length;ve++){if(S[ve].value===M){S[ve].selected=!0,ye&&(S[ve].defaultSelected=!0);return}k!==null||S[ve].disabled||(k=S[ve])}k!==null&&(k.selected=!0)}}function vn(S,k){if(k.dangerouslySetInnerHTML!=null)throw Error(e(91));return Me({},k,{value:void 0,defaultValue:void 0,children:""+S._wrapperState.initialValue})}function nn(S,k){var M=k.value;if(M==null){if(M=k.children,k=k.defaultValue,M!=null){if(k!=null)throw Error(e(92));if(Yt(M)){if(1<M.length)throw Error(e(93));M=M[0]}k=M}k==null&&(k=""),M=k}S._wrapperState={initialValue:pt(M)}}function pn(S,k){var M=pt(k.value),ye=pt(k.defaultValue);M!=null&&(M=""+M,M!==S.value&&(S.value=M),k.defaultValue==null&&S.defaultValue!==M&&(S.defaultValue=M)),ye!=null&&(S.defaultValue=""+ye)}function Ut(S){var k=S.textContent;k===S._wrapperState.initialValue&&k!==""&&k!==null&&(S.value=k)}function it(S){switch(S){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function gt(S,k){return S==null||S==="http://www.w3.org/1999/xhtml"?it(k):S==="http://www.w3.org/2000/svg"&&k==="foreignObject"?"http://www.w3.org/1999/xhtml":S}var Tt,Et=function(S){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(k,M,ye,ve){MSApp.execUnsafeLocalFunction(function(){return S(k,M,ye,ve)})}:S}(function(S,k){if(S.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in S)S.innerHTML=k;else{for(Tt=Tt||document.createElement("div"),Tt.innerHTML="<svg>"+k.valueOf().toString()+"</svg>",k=Tt.firstChild;S.firstChild;)S.removeChild(S.firstChild);for(;k.firstChild;)S.appendChild(k.firstChild)}});function Nt(S,k){if(k){var M=S.firstChild;if(M&&M===S.lastChild&&M.nodeType===3){M.nodeValue=k;return}}S.textContent=k}var Ct={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bt=["Webkit","ms","Moz","O"];Object.keys(Ct).forEach(function(S){Bt.forEach(function(k){k=k+S.charAt(0).toUpperCase()+S.substring(1),Ct[k]=Ct[S]})});function Ot(S,k,M){return k==null||typeof k=="boolean"||k===""?"":M||typeof k!="number"||k===0||Ct.hasOwnProperty(S)&&Ct[S]?(""+k).trim():k+"px"}function ot(S,k){S=S.style;for(var M in k)if(k.hasOwnProperty(M)){var ye=M.indexOf("--")===0,ve=Ot(M,k[M],ye);M==="float"&&(M="cssFloat"),ye?S.setProperty(M,ve):S[M]=ve}}var lt=Me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function st(S,k){if(k){if(lt[S]&&(k.children!=null||k.dangerouslySetInnerHTML!=null))throw Error(e(137,S));if(k.dangerouslySetInnerHTML!=null){if(k.children!=null)throw Error(e(60));if(typeof k.dangerouslySetInnerHTML!="object"||!("__html"in k.dangerouslySetInnerHTML))throw Error(e(61))}if(k.style!=null&&typeof k.style!="object")throw Error(e(62))}}function ft(S,k){if(S.indexOf("-")===-1)return typeof k.is=="str
6ing";switch(S){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ut=null;function At(S){return S=S.target||S.srcElement||window,S.correspondingUseElement&&(S=S.correspondingUseElement),S.nodeType===3?S.parentNode:S}var Gt=null,Xt=null,un=null;function rr(S){if(S=Xi(S)){if(typeof Gt!="function")throw Error(e(280));var k=S.stateNode;k&&(k=Ho(k),Gt(S.stateNode,S.type,k))}}function zr(S){Xt?un?un.push(S):un=[S]:Xt=S}function Sr(){if(Xt){var S=Xt,k=un;if(un=Xt=null,rr(S),k)for(S=0;S<k.length;S++)rr(k[S])}}function Ii(S,k){return S(k)}function Vt(){}var Zt=!1;function gn(S,k,M){if(Zt)return S(k,M);Zt=!0;try{return Ii(S,k,M)}finally{Zt=!1,(Xt!==null||un!==null)&&(Vt(),Sr())}}function kn(S,k){var M=S.stateNode;if(M===null)return null;var ye=Ho(M);if(ye===null)return null;M=ye[k];e:switch(k){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(ye=!ye.disabled)||(S=S.type,ye=!(S==="button"||S==="input"||S==="select"||S==="textarea")),S=!ye;break e;default:S=!1}if(S)return null;if(M&&typeof M!="function")throw Error(e(231,k,typeof M));return M}var cr=!1;if(y)try{var Pi={};Object.defineProperty(Pi,"passive",{get:function(){cr=!0}}),window.addEventListener("test",Pi,Pi),window.removeEventListener("test",Pi,Pi)}catch{cr=!1}function nd(S,k,M,ye,ve,xe,Le,He,qe){var rt=Array.prototype.slice.call(arguments,3);try{k.apply(M,rt)}catch(yt){this.onError(yt)}}var Ai=!1,Oo=null,wo=!1,Pa=null,rd={onError:function(S){Ai=!0,Oo=S}};function id(S,k,M,ye,ve,xe,Le,He,qe){Ai=!1,Oo=null,nd.apply(rd,arguments)}function od(S,k,M,ye,ve,xe,Le,He,qe){if(id.apply(this,arguments),Ai){if(Ai){var rt=Oo;Ai=!1,Oo=null}else throw Error(e(198));wo||(wo=!0,Pa=rt)}}function Ur(S){var k=S,M=S;if(S.alternate)for(;k.return;)k=k.return;else{S=k;do k=S,(k.flags&4098)!==0&&(M=k.return),S=k.return;while(S)}return k.tag===3?M:null}function bs(S){if(S.tag===13){var k=S.memoizedState;if(k===null&&(S=S.alternate,S!==null&&(k=S.memoizedState)),k!==null)return k.dehydrated}return null}function vs(S){if(Ur(S)!==S)throw Error(e(188))}function ad(S){var k=S.alternate;if(!k){if(k=Ur(S),k===null)throw Error(e(188));return k!==S?null:S}for(var M=S,ye=k;;){var ve=M.return;if(ve===null)break;var xe=ve.alternate;if(xe===null){if(ye=ve.return,ye!==null){M=ye;continue}break}if(ve.child===xe.child){for(xe=ve.child;xe;){if(xe===M)return vs(ve),S;if(xe===ye)return vs(ve),k;xe=xe.sibling}throw Error(e(188))}if(M.return!==ye.return)M=ve,ye=xe;else{for(var Le=!1,He=ve.child;He;){if(He===M){Le=!0,M=ve,ye=xe;break}if(He===ye){Le=!0,ye=ve,M=xe;break}He=He.sibling}if(!Le){for(He=xe.child;He;){if(He===M){Le=!0,M=xe,ye=ve;break}if(He===ye){Le=!0,ye=xe,M=ve;break}He=He.sibling}if(!Le)throw Error(e(189))}}if(M.alternate!==ye)throw Error(e(190))}if(M.tag!==3)throw Error(e(188));return M.stateNode.current===M?S:k}function Ss(S){return S=ad(S),S!==null?Os(S):null}function Os(S){if(S.tag===5||S.tag===6)return S;for(S=S.child;S!==null;){var k=Os(S);if(k!==null)return k;S=S.sibling}return null}var ws=o.unstable_scheduleCallback,$s=o.unstable_cancelCallback,ld=o.unstable_shouldYield,sd=o.unstable_requestPaint,mn=o.unstable_now,ud=o.unstable_getCurrentPriorityLevel,Aa=o.unstable_ImmediatePriority,xs=o.unstable_UserBlockingPriority,$o=o.unstable_NormalPriority,cd=o.unstable_LowPriority,Ts=o.unstable_IdlePriority,xo=null,ir=null;function dd(S){if(ir&&typeof ir.onCommitFiberRoot=="function")try{ir.onCommitFiberRoot(xo,S,void 0,(S.current.flags&128)===128)}catch{}}var Yn=Math.clz32?Math.clz32:hd,fd=Math.log,pd=Math.LN2;function hd(S){return S>>>=0,S===0?32:31-(fd(S)/pd|0)|0}var To=64,Co=4194304;function Ri(S){switch(S&-S){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return S&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return S&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return S}}
vendor: 29,050 bytes, lines 6-7
6function ko(S,k){var M=S.pendingLanes;if(M===0)return 0;var ye=0,ve=S.suspendedLanes,xe=S.pingedLanes,Le=M&268435455;if(Le!==0){var He=Le&~ve;He!==0?ye=Ri(He):(xe&=Le,xe!==0&&(ye=Ri(xe)))}else Le=M&~ve,Le!==0?ye=Ri(Le):xe!==0&&(ye=Ri(xe));if(ye===0)return 0;if(k!==0&&k!==ye&&(k&ve)===0&&(ve=ye&-ye,xe=k&-k,ve>=xe||ve===16&&(xe&4194240)!==0))return k;if((ye&4)!==0&&(ye|=M&16),k=S.entangledLanes,k!==0)for(S=S.entanglements,k&=ye;0<k;)M=31-Yn(k),ve=1<<M,ye|=S[M],k&=~ve;return ye}function yd(S,k){switch(S){case 1:case 2:case 4:return k+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return k+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gd(S,k){for(var M=S.suspendedLanes,ye=S.pingedLanes,ve=S.expirationTimes,xe=S.pendingLanes;0<xe;){var Le=31-Yn(xe),He=1<<Le,qe=ve[Le];qe===-1?((He&M)===0||(He&ye)!==0)&&(ve[Le]=yd(He,k)):qe<=k&&(S.expiredLanes|=He),xe&=~He}}function Ra(S){return S=S.pendingLanes&-1073741825,S!==0?S:S&1073741824?1073741824:0}function Cs(){var S=To;return To<<=1,(To&4194240)===0&&(To=64),S}function Na(S){for(var k=[],M=0;31>M;M++)k.push(S);return k}function Ni(S,k,M){S.pendingLanes|=k,k!==536870912&&(S.suspendedLanes=0,S.pingedLanes=0),S=S.eventTimes,k=31-Yn(k),S[k]=M}function md(S,k){var M=S.pendingLanes&~k;S.pendingLanes=k,S.suspendedLanes=0,S.pingedLanes=0,S.expiredLanes&=k,S.mutableReadLanes&=k,S.entangledLanes&=k,k=S.entanglements;var ye=S.eventTimes;for(S=S.expirationTimes;0<M;){var ve=31-Yn(M),xe=1<<ve;k[ve]=0,ye[ve]=-1,S[ve]=-1,M&=~xe}}function Fa(S,k){var M=S.entangledLanes|=k;for(S=S.entanglements;M;){var ye=31-Yn(M),ve=1<<ye;ve&k|S[ye]&k&&(S[ye]|=k),M&=~ve}}var tn=0;function ks(S){return S&=-S,1<S?4<S?(S&268435455)!==0?16:536870912:4:1}var Es,La,Is,Ps,As,Ma=!1,Eo=[],Or=null,wr=null,$r=null,Fi=new Map,Li=new Map,xr=[],bd="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rs(S,k){switch(S){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":$r=null;break;case"pointerover":case"pointerout":Fi.delete(k.pointerId);break;case"gotpointercapture":case"lostpointercapture":Li.delete(k.pointerId)}}function Mi(S,k,M,ye,ve,xe){return S===null||S.nativeEvent!==xe?(S={blockedOn:k,domEventName:M,eventSystemFlags:ye,nativeEvent:xe,targetContainers:[ve]},k!==null&&(k=Xi(k),k!==null&&La(k)),S):(S.eventSystemFlags|=ye,k=S.targetContainers,ve!==null&&k.indexOf(ve)===-1&&k.push(ve),S)}function vd(S,k,M,ye,ve){switch(k){case"focusin":return Or=Mi(Or,S,k,M,ye,ve),!0;case"dragenter":return wr=Mi(wr,S,k,M,ye,ve),!0;case"mouseover":return $r=Mi($r,S,k,M,ye,ve),!0;case"pointerover":var xe=ve.pointerId;return Fi.set(xe,Mi(Fi.get(xe)||null,S,k,M,ye,ve)),!0;case"gotpointercapture":return xe=ve.pointerId,Li.set(xe,Mi(Li.get(xe)||null,S,k,M,ye,ve)),!0}return!1}function Ns(S){var k=Hr(S.target);if(k!==null){var M=Ur(k);if(M!==null){if(k=M.tag,k===13){if(k=bs(M),k!==null){S.blockedOn=k,As(S.priority,function(){Is(M)});return}}else if(k===3&&M.stateNode.current.memoizedState.isDehydrated){S.blockedOn=M.tag===3?M.stateNode.containerInfo:null;return}}}S.blockedOn=null}function Io(S){if(S.blockedOn!==null)return!1;for(var k=S.targetContainers;0<k.length;){var M=Ba(S.domEventName,S.eventSystemFlags,k[0],S.nativeEvent);if(M===null){M=S.nativeEvent;var ye=new M.constructor(M.type,M);ut=ye,M.target.dispatchEvent(ye),ut=null}else return k=Xi(M),k!==null&&La(k),S.blockedOn=M,!1;k.shift()}return!0}function Fs(S,k,M){Io(S)&&M.delete(k)}function Sd(){Ma=!1,Or!==null&&Io(Or)&&(Or=null),wr!==null&&Io(wr)&&(wr=null),$r!==null&&Io($r)&&($r=null),Fi.forEach(Fs),Li.forEach(Fs)}function Di(S,k){S.blockedOn===k&&(S.blockedOn=null,Ma||(Ma=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Sd)))}function Bi(S){function k(ve){return Di(ve,S)}if(0<Eo.length){Di(Eo[0],S);for(var M=1;M<Eo.length;M++){var ye=Eo[M];ye.blockedOn===S&&(ye.blockedOn=null)}}for(Or!==null&&Di(Or,S),wr!==null&&Di(wr,S),$r!==null&&Di($r,S),Fi.forEach(k),Li.forEach(k),M=0;M<xr.length;M++)ye=xr[M],ye.blockedOn===S&&(ye.blockedOn=null);for(;0<xr.length&&(M=xr[0],M.blockedOn===null);)Ns(M),M.blockedOn===null&&xr.shift()}var ri=Ie.ReactCurrentBatchConfig,Po=!0;function Od(S,k,M,ye){var ve=tn,xe=ri.transition;ri.transition=null;try{tn=1,Da(S,k,M,ye)}finally{tn=ve,ri.transition=xe}}function wd(S,k,M,ye){var ve=tn,xe=ri.transition;ri.transition=null;try{tn=4,Da(S,k,M,ye)}finally{tn=ve,ri.transition=xe}}function Da(S,k,M,ye){if(Po){var ve=Ba(S,k,M,ye);if(ve===null)nl(S,k,ye,Ao,M),Rs(S,ye);else if(vd(ve,S,k,M,ye))ye.stopPropagation();else if(Rs(S,ye),k&4&&-1<bd.indexOf(S)){for(;ve!==null;){var xe=Xi(ve);if(xe!==null&&Es(xe),xe=Ba(S,k,M,ye),xe===null&&nl(S,k,ye,Ao,M),xe===ve)break;ve=xe}ve!==null&&ye.stopPropagation()}else nl(S,k,ye,null,M)}}var Ao=null;function Ba(S,k,M,ye){if(Ao=null,S=At(ye),S=Hr(S),S!==null)if(k=Ur(S),k===null)S=null;else if(M=k.tag,M===13){if(S=bs(k),S!==null)return S;S=null}else if(M===3){if(k.stateNode.current.memoizedState.isDehydrated)return k.tag===3?k.stateNode.containerInfo:null;S=null}else k!==S&&(S=null);return Ao=S,null}function Ls(S){switch(S){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ud()){case Aa:return 1;case xs:return 4;case $o:case cd:return 16;case Ts:return 536870912;default:return 16}default:return 16}}var Tr=null,ja=null,Ro=null;function Ms(){if(Ro)return Ro;var S,k=ja,M=k.length,ye,ve="value"in Tr?Tr.value:Tr.textContent,xe=ve.length;for(S=0;S<M&&k[S]===ve[S];S++);var Le=M-S;for(ye=1;ye<=Le&&k[M-ye]===ve[xe-ye];ye++);return Ro=ve.slice(S,1<ye?1-ye:void 0)}function No(S){var k=S.keyCode;return"charCode"in S?(S=S.charCode,S===0&&k===13&&(S=13)):S=k,S===10&&(S=13),32<=S||S===13?S:0}function Fo(){return!0}function Ds(){return!1}function jn(S){function k(M,ye,ve,xe,Le){this._reactName=M,this._targetInst=ve,this.type=ye,this.nativeEvent=xe,this.target=Le,this.currentTarget=null;for(var He in S)S.hasOwnProperty(He)&&(M=S[He],this[He]=M?M(xe):xe[He]);return this.isDefaultPrevented=(xe.defaultPrevented!=null?xe.defaultPrevented:xe.returnValue===!1)?Fo:Ds,this.isPropagationStopped=Ds,this}return Me(k.prototype,{preventDefault:function(){this.defaultPrevented=!0;var M=this.nativeEvent;M&&(M.preventDefault?M.preventDefault():typeof M.returnValue!="unknown"&&(M.returnValue=!1),this.isDefaultPrevented=Fo)},stopPropagation:function(){var M=this.nativeEvent;M&&(M.stopPropagation?M.stopPropagation():typeof M.cancelBubble!="unknown"&&(M.cancelBubble=!0),this.isPropagationStopped=Fo)},persist:function(){},isPersistent:Fo}),k}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(S){return S.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Va=jn(ii),ji=Me({},ii,{view:0,detail:0}),$d=jn(ji),za,Ua,Vi,Lo=Me({},ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wa,button:0,buttons:0,relatedTarget:function(S){return S.relatedTarget===void 0?S.fromElement===S.srcElement?S.toElement:S.fromElement:S.relatedTarget},movementX:function(S){return"movementX"in S?S.movementX:(S!==Vi&&(Vi&&S.type==="mousemove"?(za=S.screenX-Vi.screenX,Ua=S.screenY-Vi.screenY):Ua=za=0,Vi=S),za)},movementY:function(S){return"movementY"in S?S.movementY:Ua}}),Bs=jn(Lo),xd=Me({},Lo,{dataTransfer:0}),Td=jn(xd),Cd=Me({},ji,{relatedTarget:0}),Ha=jn(Cd),kd=Me({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),Ed=jn(kd),Id=Me({},ii,{clipboardData:function(S){return"clipboardData"in S?S.clipboardData:window.clipboardData}}),Pd=jn(Id),Ad=Me({},ii,{data:0}),js=jn(Ad),Rd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Fd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ld(S){var k=this.nativeEvent;return k.getModifierState?k.getModifierState(S):(S=Fd[S])?!!k[S]:!1}function Wa(){return Ld}var Md=Me({},ji,{key:function(S){if(S.key){var k=Rd[S.key]||S.key;if(k!=="Unidentified")return k}return S.type==="keypress"?(S=No(S),S===13?"Enter":String.fromCharCode(S)):S.type==="keydown"||S.type==="keyup"?Nd[S.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wa,charCode:function(S){return S.type==="keypress"?No(S):0},keyCode:function(S){return S.type==="keydown"||S.type==="keyup"?S.keyCode:0},which:function(S){return S.type==="keypress"?No(S):S.type==="keydown"||S.type==="keyup"?S.keyCode:0}}),Dd=jn(Md),Bd=Me({},Lo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vs=jn(Bd),jd=Me({},ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa}),Vd=jn(jd),zd=Me({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ud=jn(zd),Hd=Me({},Lo,{deltaX:function(S){return"deltaX"in S?S.deltaX:"wheelDeltaX"in S?-S.wheelDeltaX:0},deltaY:function(S){return"deltaY"in S?S.deltaY:"wheelDeltaY"in S?-S.wheelDeltaY:"wheelDelta"in S?-S.wheelDelta:0},deltaZ:0,deltaMode:0}),Wd=jn(Hd),qd=[9,13,27,32],qa=y&&"CompositionEvent"in window,zi=null;y&&"documentMode"in document&&(zi=document.documentMode);var Gd=y&&"TextEvent"in window&&!zi,zs=y&&(!qa||zi&&8<zi&&11>=zi),Us=" ",Hs=!1;function Ws(S,k){switch(S){case"keyup":return qd.indexOf(k.keyCode)!==-1;case"keydown":return k.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qs(S){return S=S.detail,typeof S=="object"&&"data"in S?S.data:null}var oi=!1;function Kd(S,k){switch(S){case"compositionend":return qs(k);case"keypress":return k.which!==32?null:(Hs=!0,Us);case"textInput":return S=k.data,S===Us&&Hs?null:S;default:return null}}function Jd(S,k){if(oi)return S==="compositionend"||!qa&&Ws(S,k)?(S=Ms(),Ro=ja=Tr=null,oi=!1,S):null;switch(S){case"paste":return null;case"keypress":if(!(k.ctrlKey||k.altKey||k.metaKey)||k.ctrlKey&&k.altKey){if(k.char&&1<k.char.length)return k.char;if(k.which)return String.fromCharCode(k.which)}return null;case"compositionend":return zs&&k.locale!=="ko"?null:k.data;default:return null}}var Yd={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gs(S){var k=S&&S.nodeName&&S.nodeName.toLowerCase();return k==="input"?!!Yd[S.type]:k==="textarea"}function Ks(S,k,M,ye){zr(ye),k=Vo(k,"onChange"),0<k.length&&(M=new Va("onChange","change",null,M,ye),S.push({event:M,listeners:k}))}var Ui=null,Hi=null;function Xd(S){fu(S,0)}function Mo(S){var k=ci(S);if(on(k))return S}function Zd(S,k){if(S==="change")return k}var Js=!1;if(y){var Ga;if(y){var Ka="oninput"in document;if(!Ka){var Ys=document.createElement("div");Ys.setAttribute("oninput","return;"),Ka=typeof Ys.oninput=="function"}Ga=Ka}else Ga=!1;Js=Ga&&(!document.documentMode||9<document.documentMode)}function Xs(){Ui&&(Ui.detachEvent("onpropertychange",Zs),Hi=Ui=null)}function Zs(S){if(S.propertyName==="value"&&Mo(Hi)){var k=[];Ks(k,Hi,S,At(S)),gn(Xd,k)}}function Qd(S,k,M){S==="focusin"?(Xs(),Ui=k,Hi=M,Ui.attachEvent("onpropertychange",Zs)):S==="focusout"&&Xs()}function ef(S){if(S==="selectionchange"||S==="keyup"||S==="keydown")return Mo(Hi)}function tf(S,k){if(S==="click")return Mo(k)}function nf(S,k){if(S==="input"||S==="change")return Mo(k)}function rf(S,k){return S===k&&(S!==0||1/S===1/k)||S!==S&&k!==k}var Xn=typeof Object.is=="function"?Object.is:rf;function Wi(S,k){if(Xn(S,k))return!0;if(typeof S!="object"||S===null||typeof k!="object"||k===null)return!1;var M=Object.keys(S),ye=Object.keys(k);if(M.length!==ye.length)return!1;for(ye=0;ye<M.length;ye++){var ve=M[ye];if(!g.call(k,ve)||!Xn(S[ve],k[ve]))return!1}return!0}function Qs(S){for(;S&&S.firstChild;)S=S.firstChild;return S}function eu(S,k){var M=Qs(S);S=0;for(var ye;M;){if(M.nodeType===3){if(ye=S+M.textContent.length,S<=k&&ye>=k)return{node:M,offset:k-S};S=ye}e:{for(;M;){if(M.nextSibling){M=M.nextSibling;break e}M=M.parentNode}M=void 0}M=Qs(M)}}function tu(S,k){return S&&k?S===k?!0:S&&S.nodeType===3?!1:k&&k.nodeType===3?tu(S,k.parentNode):"contains"in S?S.contains(k):S.compareDocumentPosition?!!(S.compareDocumentPosition(k)&16):!1:!1}function nu(){for(var S=window,k=en();k instanceof S.HTMLIFrameElement;){try{var M=typeof k.contentWindow.location.href=="string"}catch{M=!1}if(M)S=k.contentWindow;else break;k=en(S.document)}return k}function Ja(S){var k=S&&S.nodeName&&S.nodeName.toLowerCase();return k&&(k==="input"&&(S.type==="text"||S.type==="search"||S.type==="tel"||S.type==="url"||S.type==="password")||k==="textarea"||S.contentEditable==="true")}function of(S){var k=nu(),M=S.focusedElem,ye=S.selectionRange;if(k!==M&&M&&M.ownerDocument&&tu(M.ownerDocument.documentElement,M)){if(ye!==null&&Ja(M)){if(k=ye.start,S=ye.end,S===void 0&&(S=k),"selectionStart"in M)M.selectionStart=k,M.selectionEnd=Math.min(S,M.value.length);else if(S=(k=M.ownerDocument||document)&&k.defaultView||window,S.getSelection){S=S.getSelection();var ve=M.textContent.length,xe=Math.min(ye.start,ve);ye=ye.end===void 0?xe:Math.min(ye.end,ve),!S.extend&&xe>ye&&(ve=ye,ye=xe,xe=ve),ve=eu(M,xe);var Le=eu(M,ye);ve&&Le&&(S.rangeCount!==1||S.anchorNode!==ve.node||S.anchorOffset!==ve.offset||S.focusNode!==Le.node||S.focusOffset!==Le.offset)&&(k=k.createRange(),k.setStart(ve.node,ve.offset),S.removeAllRanges(),xe>ye?(S.addRange(k),S.extend(Le.node,Le.offset)):(k.setEnd(Le.node,Le.offset),S.addRange(k)))}}for(k=[],S=M;S=S.parentNode;)S.nodeType===1&&k.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<k.length;M++)S=k[M],S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}var af=y&&"documentMode"in document&&11>=document.documentMode,ai=null,Ya=null,qi=null,Xa=!1;function ru(S,k,M){var ye=M.window===M?M.document:M.nodeType===9?M:M.ownerDocument;Xa||ai==null||ai!==en(ye)||(ye=ai,"selectionStart"in ye&&Ja(ye)?ye={start:ye.selectionStart,end:ye.selectionEnd}:(ye=(ye.ownerDocument&&ye.ownerDocument.defaultView||window).getSelection(),ye={anchorNode:ye.anchorNode,anchorOffset:ye.anchorOffset,focusNode:ye.focusNode,focusOffset:ye.focusOffset}),qi&&Wi(qi,ye)||(qi=ye,ye=Vo(Ya,"onSelect"),0<ye.length&&(k=new Va("onSelect","select",null,k,M),S.push({event:k,listeners:ye}),k.target=ai)))}function Do(S,k){var M={};return M[S.toLowerCase()]=k.toLowerCase(),M["Webkit"+S]="webkit"+k,M["Moz"+S]="moz"+k,M}var li={animationend:Do("Animation","AnimationEnd"),animationiteration:Do("Animation","AnimationIteration"),animationstart:Do("Animation","AnimationStart"),transitionend:Do("Transition","TransitionEnd")},Za={},iu={};y&&(iu=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);function Bo(S){if(Za[S])return Za[S];if(!li[S])return S;var k=li[S],M;for(M in k)if(k.hasOwnProperty(M)&&M in iu)return Za[S]=k[M];return S}var ou=Bo("animationend"),au=Bo("animationiteration"),lu=Bo("animationstart"),su=Bo("transitionend"),uu=new Map,cu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(S,k){uu.set(S,k),p(k,[S])}for(var Qa=0;Qa<cu.length;Qa++){var el=cu[Qa],lf=el.toLowerCase(),sf=el[0].toUpperCase()+el.slice(1);Cr(lf,"on"+sf)}Cr(ou,"onAnimationEnd"),Cr(au,"onAnimationIteration"),Cr(lu,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(su,"onTransitionEnd"),h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),uf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gi));function du(S,k,M){var ye=S.type||"unknown-event";S.currentTarget=M,od(ye,k,void 0,S),S.currentTarget=null}function fu(S,k){k=(k&4)!==0;for(var M=0;M<S.length;M++){var ye=S[M],ve=ye.event;ye=ye.listeners;e:{var xe=void 0;if(k)for(var Le=ye.length-1;0<=Le;Le--){var He=ye[Le],qe=He.instance,rt=He.currentTarget;if(He=He.listener,qe!==xe&&ve.isPropagationStopped())break e;du(ve,He,rt),xe=qe}else for(Le=0;Le<ye.length;Le++){if(He=ye[Le],qe=He.instance,rt=He.currentTarget,He=He.listener,qe!==xe&&ve.isPropagationStopped())break e;du(ve,He,rt),xe=qe}}}if(wo)throw S=Pa,wo=!1,Pa=null,S}function ln(S,k){var M=k[sl];M===void 0&&(M=k[sl]=new Set);var ye=S+"__bubble";M.has(ye)||(pu(k,S,2,!1),M.add(ye))}function tl(S,k,M){var ye=0;k&&(ye|=4),pu(M,S,ye,k)}var jo="_reactListening"+Math.random().toString(36).slice(2);function Ki(S){if(!S[jo]){S[jo]=!0,t.forEach(function(M){M!=="selectionchange"&&(uf.has(M)||tl(M,!1,S),tl(M,!0,S))});var k=S.nodeType===9?S:S.ownerDocument;k===null||k[jo]||(k[jo]=!0,tl("selectionchange",!1,k))}}function pu(S,k,M,ye){switch(Ls(k)){case 1:var ve=Od;break;case 4:ve=wd;break;default:ve=Da}M=ve.bind(null,k,M,S),ve=void 0,!cr||k!=="touchstart"&&k!=="touchmove"&&k!=="wheel"||(ve=!0),ye?ve!==void 0?S.addEventListener(k,M,{capture:!0,passive:ve}):S.addEventListener(k,M,!0):ve!==void 0?S.addEventListener(k,M,{passive:ve}):S.addEventListener(k,M,!1)}function nl(S,k,M,ye,ve){var xe=ye;if((k&1)===0&&(k&2)===0&&ye!==null)e:for(;;){if(ye===null)return;var Le=ye.tag;if(Le===3||Le===4){var He=ye.stateNode.containerInfo;if(He===ve||He.nodeType===8&&He.parentNode===ve)break;if(Le===4)for(Le=ye.return;Le!==null;){var qe=Le.tag;if((qe===3||qe===4)&&(qe=Le.stateNode.containerInfo,qe===ve||qe.nodeType===8&&qe.parentNode===ve))return;Le=Le.return}for(;He!==null;){if(Le=Hr(He),Le===null)return;if(qe=Le.tag,qe===5||qe===6){ye=xe=Le;continue e}He=He.parentNode}}ye=ye.return}gn(function(){var rt=xe,yt=At(M),mt=[];e:{var ht=uu.get(S);if(ht!==void 0){var $t=Va,It=S;switch(S){case"keypress":if(No(M)===0)break e;case"keydown":case"keyup":$t=Dd;break;case"focusin":It="focus",$t=Ha;break;case"focusout":It="blur",$t=Ha;break;case"beforeblur":case"afterblur":$t=Ha;break;case"click":if(M.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$t=Bs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$t=Td;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$t=Vd;break;case ou:case au:case lu:$t=Ed;break;case su:$t=Ud;break;case"scroll":$t=$d;break;case"wheel":$t=Wd;break;case"copy":case"cut":case"paste":$t=Pd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$t=Vs}var Pt=(k&4)!==0,bn=!Pt&&S==="scroll",Ze=Pt?ht!==null?ht+"Capture":null:ht;Pt=[];for(var Ye=rt,et;Ye!==null;){et=Ye;var bt=et.stateNode;if(et.tag===5&&bt!==null&&(et=bt,Ze!==null&&(bt=kn(Ye,Ze),bt!=null&&Pt.push(Ji(Ye,bt,et)))),bn)break;Ye=Ye.return}0<Pt.length&&(ht=new $t(ht,It,null,M,yt),mt.push({event:ht,listeners:Pt}))}}if((k&7)===0){e:{if(ht=S==="mouseover"||S==="pointerover",$t=S==="mouseout"||S==="pointerout",ht&&M!==ut&&(It=M.relatedTarget||M.fromElement)&&(Hr(It)||It[dr]))break e;if(($t||ht)&&(ht=yt.window===yt?yt:(ht=yt.ownerDocument)?ht.defaultView||ht.parentWindow:window,$t?(It=M.relatedTarget||M.toElement,$t=rt,It=It?Hr(It):null,It!==null&&(bn=Ur(It),It!==bn||It.tag!==5&&It.tag!==6)&&(It=null)):($t=null,It=rt),$t!==It)){if(Pt=Bs,bt="onMouseLeave",Ze="onMouseEnter",Ye="mouse",(S==="pointerout"||S==="pointerover")&&(Pt=Vs,bt="onPointerLeave",Ze="onPointerEnter",Ye="pointer"),bn=$t==null?ht:ci($t),et=It==null?ht:ci(It),ht=new Pt(bt,Ye+"leave",$t,M,yt),ht.target=bn,ht.relatedTarget=et,bt=null,Hr(yt)===rt&&(Pt=new Pt(Ze,Ye+"enter",It,M,yt),Pt.target=et,Pt.relatedTarget=bn,bt=Pt),bn=bt,$t&&It)t:{for(Pt=$t,Ze=It,Ye=0,et=Pt;et;et=si(et))Ye++;for(et=0,bt=Ze;bt;bt=si(bt))et++;for(;0<Ye-et;)Pt=si(Pt),Ye--;for(;0<et-Ye;)Ze=si(Ze),et--;for(;Ye--;){if(Pt===Ze||Ze!==null&&Pt===Ze.alternate)break t;Pt=si(Pt),Ze=si(Ze)}Pt=null}else Pt=null;$t!==null&&hu(mt,ht,$t,Pt,!1),It!==null&&bn!==null&&hu(mt,bn,It,Pt,!0)}}e:{if(ht=rt?ci(rt):window,$t=ht.nodeName&&ht.nodeName.toLowerCase(),$t==="select"||$t==="input"&&ht.type==="file")var Rt=Zd;else if(Gs(ht))if(Js)Rt=nf;else{Rt=ef;var Lt=Qd}else($t=ht.nodeName)&&$t.toLowerCase()==="input"&&(ht.type==="checkbox"||ht.type==="radio")&&(Rt=tf);if(Rt&&(Rt=Rt(S,rt))){Ks(mt,Rt,M,yt);break e}Lt&&Lt(S,ht,rt),S==="focusout"&&(Lt=ht._wrapperState)&&Lt.controlled&&ht.type==="number"&&jt(ht,"number",ht.value)}switch(Lt=rt?ci(rt):window,S){case"focusin":(Gs(Lt)||Lt.contentEditable==="true")&&(ai=Lt,Ya=rt,qi=null);break;case"focusout":qi=Ya=ai=null;break;case"mousedown":Xa=!0;break;case"contextmenu":case"mouseup":case"dragend":Xa=!1,ru(mt,M,yt);break;case"selectionchange":if(af)break;case"keydown":case"keyup":ru(mt,M,yt)}var Mt;if(qa)e:{switch(S){case"compositionstart":var Dt="onCompositionStart";break e;case"compositionend":Dt="onCompositionEnd";break e;case"compositionupdate":Dt="onCompositionUpdate";break e}Dt=void 0}else oi?Ws(S,M)&&(Dt="onCompositionEnd"):S==="keydown"&&M.keyCode===229&&(Dt="onCompositionStart");Dt&&(zs&&M.locale!=="ko"&&(oi||Dt!=="onCompositionStart"?Dt==="onCompositionEnd"&&oi&&(Mt=Ms()):(Tr=yt,ja="value"in Tr?Tr.value:Tr.textContent,oi=!0)),Lt=Vo(rt,Dt),0<Lt.length&&(Dt=new js(Dt,S,null,M,yt),mt.push({event:Dt,listeners:Lt}),Mt?Dt.data=Mt:(Mt=qs(M),Mt!==null&&(Dt.data=Mt)))),(Mt=Gd?Kd(S,M):Jd(S,M))&&(rt=Vo(rt,"onBeforeInput"),0<rt.length&&(yt=new js("onBeforeInput","beforeinput",null,M,yt),mt.push({event:yt,listeners:rt}),yt.data=Mt))}fu(mt,k)})}function Ji(S,k,M){return{instance:S,listener:k,currentTarget:M}}function Vo(S,k){for(var M=k+"Capture",ye=[];S!==null;){var ve=S,xe=ve.stateNode;ve.tag===5&&xe!==null&&(ve=xe,xe=kn(S,M),xe!=null&&ye.unshift(Ji(S,xe,ve)),xe=kn(S,k),xe!=null&&ye.push(Ji(S,xe,ve))),S=S.return}return ye}function si(S){if(S===null)return null;do S=S.return;while(S&&S.tag!==5);return S||null}function hu(S,k,M,ye,ve){for(var xe=k._reactName,Le=[];M!==null&&M!==ye;){var He=M,qe=He.alternate,rt=He.stateNode;if(qe!==null&&qe===ye)break;He.tag===5&&rt!==null&&(He=rt,ve?(qe=kn(M,xe),qe!=null&&Le.unshift(Ji(M,qe,He))):ve||(qe=kn(M,xe),qe!=null&&Le.push(Ji(M,qe,He)))),M=M.return}Le.length!==0&&S.push({event:k,listeners:Le})}var cf=/\r\n?/g,df=/\u0000|\uFFFD/g;function yu(S){return(typeof S=="string"?S:""+S).replace(cf,` 7`).replace(df,"")}function zo(S,k,M){if(k=yu(k),yu(S)!==k&&M)throw Error(e(425))}function Uo(){}var rl=null,il=null;function ol(S,k){return S==="textarea"||S==="noscript"||typeof k.children=="string"||typeof k.children=="number"||typeof k.dangerouslySetInnerHTML=="object"&&k.dangerouslySetInnerHTML!==null&&k.dangerouslySetInnerHTML.__html!=null}var al=typeof setTimeout=="function"?setTimeout:void 0,ff=typeof clearTimeout=="function"?clearTimeout:void 0,gu=typeof Promise=="function"?Promise:void 0,pf=typeof queueMicrotask=="function"?queueMicrotask:typeof gu<"u"?function(S){return gu.resolve(null).then(S).catch(hf)}:al;function hf(S){setTimeout(function(){throw S})}function ll(S,k){var M=k,ye=0;do{var ve=M.nextSibling;if(S.removeChild(M),ve&&ve.nodeType===8)if(M=ve.data,M==="/$"){if(ye===0){S.removeChild(ve),Bi(k);return}ye--}else M!=="$"&&M!=="$?"&&M!=="$!"||ye++;M=ve}while(M);Bi(k)}function kr(S){for(;S!=null;S=S.nextSibling){var k=S.nodeType;if(k===1||k===3)break;if(k===8){if(k=S.data,k==="$"||k==="$!"||k==="$?")break;if(k==="/$")return null}}return S}function mu(S){S=S.previousSibling;for(var k=0;S;){if(S.nodeType===8){var M=S.data;if(M==="$"||M==="$!"||M==="$?"){if(k===0)return S;k--}else M==="/$"&&k++}S=S.previousSibling}return null}var ui=Math.random().toString(36).slice(2),or="__reactFiber$"+ui,Yi="__reactProps$"+ui,dr="__reactContainer$"+ui,sl="__reactEvents$"+ui,yf="__reactListeners$"+ui,gf="__reactHandles$"+ui;function Hr(S){var k=S[or];if(k)return k;for(var M=S.parentNode;M;){if(k=M[dr]||M[or]){if(M=k.alternate,k.child!==null||M!==null&&M.child!==null)for(S=mu(S);S!==null;){if(M=S[or])return M;S=mu(S)}return k}S=M,M=S.parentNode}return null}function Xi(S){return S=S[or]||S[dr],!S||S.tag!==5&&S.tag!==6&&S.tag!==13&&S.tag!==3?null:S}function ci(S){if(S.tag===5||S.tag===6)return S.stateNode;throw Error(e(33))}function Ho(S){return S[Yi]||null}var ul=[],di=-1;function Er(S){return{current:S}}function sn(S){0>di||(S.current=ul[di],ul[di]=null,di--)}function rn(S,k){di++,ul[di]=S.current,S.current=k}var Ir={},En=Er(Ir),Fn=Er(!1),Wr=Ir;function fi(S,k){var M=S.type.contextTypes;if(!M)return Ir;var ye=S.stateNode;if(ye&&ye.__reactInternalMemoizedUnmaskedChildContext===k)return ye.__reactInternalMemoizedMaskedChildContext;var ve={},xe;for(xe in M)ve[xe]=k[xe];return ye&&(S=S.stateNode,S.__reactInternalMemoizedUnmaskedChildContext=k,S.__reactInternalMemoizedMaskedChildContext=ve),ve}function Ln(S){return S=S.childContextTypes,S!=null}function Wo(){sn(Fn),sn(En)}function bu(S,k,M){if(En.current!==Ir)throw Error(e(168));rn(En,k),rn(Fn,M)}function vu(S,k,M){var ye=S.stateNode;if(k=k.childContextTypes,typeof ye.getChildContext!="function")return M;ye=ye.getChildContext();for(var ve in ye)if(!(ve in k))throw Error(e(108,St(S)||"Unknown",ve));return Me({},M,ye)}function qo(S){return S=(S=S.stateNode)&&S.__reactInternalMemoizedMergedChildContext||Ir,Wr=En.current,rn(En,S),rn(Fn,Fn.current),!0}function Su(S,k,M){var ye=S.stateNode;if(!ye)throw Error(e(169));M?(S=vu(S,k,Wr),ye.__reactInternalMemoizedMergedChildContext=S,sn(Fn),sn(En),rn(En,S)):sn(Fn),rn(Fn,M)}var fr=null,Go=!1,cl=!1;function Ou(S){fr===null?fr=[S]:fr.push(S)}function mf(S){Go=!0,Ou(S)}function Pr(){if(!cl&&fr!==null){cl=!0;var S=0,k=tn;try{var M=fr;for(tn=1;S<M.length;S++){var ye=M[S];do ye=ye(!0);while(ye!==null)}fr=null,Go=!1}
vendor: 4,894 bytes, line 7
7catch(ve){throw fr!==null&&(fr=fr.slice(S+1)),ws(Aa,Pr),ve}finally{tn=k,cl=!1}}return null}var pi=[],hi=0,Ko=null,Jo=0,Hn=[],Wn=0,qr=null,pr=1,hr="";function Gr(S,k){pi[hi++]=Jo,pi[hi++]=Ko,Ko=S,Jo=k}function wu(S,k,M){Hn[Wn++]=pr,Hn[Wn++]=hr,Hn[Wn++]=qr,qr=S;var ye=pr;S=hr;var ve=32-Yn(ye)-1;ye&=~(1<<ve),M+=1;var xe=32-Yn(k)+ve;if(30<xe){var Le=ve-ve%5;xe=(ye&(1<<Le)-1).toString(32),ye>>=Le,ve-=Le,pr=1<<32-Yn(k)+ve|M<<ve|ye,hr=xe+S}else pr=1<<xe|M<<ve|ye,hr=S}function dl(S){S.return!==null&&(Gr(S,1),wu(S,1,0))}function fl(S){for(;S===Ko;)Ko=pi[--hi],pi[hi]=null,Jo=pi[--hi],pi[hi]=null;for(;S===qr;)qr=Hn[--Wn],Hn[Wn]=null,hr=Hn[--Wn],Hn[Wn]=null,pr=Hn[--Wn],Hn[Wn]=null}var Vn=null,zn=null,cn=!1,Zn=null;function $u(S,k){var M=Jn(5,null,null,0);M.elementType="DELETED",M.stateNode=k,M.return=S,k=S.deletions,k===null?(S.deletions=[M],S.flags|=16):k.push(M)}function xu(S,k){switch(S.tag){case 5:var M=S.type;return k=k.nodeType!==1||M.toLowerCase()!==k.nodeName.toLowerCase()?null:k,k!==null?(S.stateNode=k,Vn=S,zn=kr(k.firstChild),!0):!1;case 6:return k=S.pendingProps===""||k.nodeType!==3?null:k,k!==null?(S.stateNode=k,Vn=S,zn=null,!0):!1;case 13:return k=k.nodeType!==8?null:k,k!==null?(M=qr!==null?{id:pr,overflow:hr}:null,S.memoizedState={dehydrated:k,treeContext:M,retryLane:1073741824},M=Jn(18,null,null,0),M.stateNode=k,M.return=S,S.child=M,Vn=S,zn=null,!0):!1;default:return!1}}function pl(S){return(S.mode&1)!==0&&(S.flags&128)===0}function hl(S){if(cn){var k=zn;if(k){var M=k;if(!xu(S,k)){if(pl(S))throw Error(e(418));k=kr(M.nextSibling);var ye=Vn;k&&xu(S,k)?$u(ye,M):(S.flags=S.flags&-4097|2,cn=!1,Vn=S)}}else{if(pl(S))throw Error(e(418));S.flags=S.flags&-4097|2,cn=!1,Vn=S}}}function Tu(S){for(S=S.return;S!==null&&S.tag!==5&&S.tag!==3&&S.tag!==13;)S=S.return;Vn=S}function Yo(S){if(S!==Vn)return!1;if(!cn)return Tu(S),cn=!0,!1;var k;if((k=S.tag!==3)&&!(k=S.tag!==5)&&(k=S.type,k=k!=="head"&&k!=="body"&&!ol(S.type,S.memoizedProps)),k&&(k=zn)){if(pl(S))throw Cu(),Error(e(418));for(;k;)$u(S,k),k=kr(k.nextSibling)}if(Tu(S),S.tag===13){if(S=S.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(e(317));e:{for(S=S.nextSibling,k=0;S;){if(S.nodeType===8){var M=S.data;if(M==="/$"){if(k===0){zn=kr(S.nextSibling);break e}k--}else M!=="$"&&M!=="$!"&&M!=="$?"||k++}S=S.nextSibling}zn=null}}else zn=Vn?kr(S.stateNode.nextSibling):null;return!0}function Cu(){for(var S=zn;S;)S=kr(S.nextSibling)}function yi(){zn=Vn=null,cn=!1}function yl(S){Zn===null?Zn=[S]:Zn.push(S)}var bf=Ie.ReactCurrentBatchConfig;function Zi(S,k,M){if(S=M.ref,S!==null&&typeof S!="function"&&typeof S!="object"){if(M._owner){if(M=M._owner,M){if(M.tag!==1)throw Error(e(309));var ye=M.stateNode}if(!ye)throw Error(e(147,S));var ve=ye,xe=""+S;return k!==null&&k.ref!==null&&typeof k.ref=="function"&&k.ref._stringRef===xe?k.ref:(k=function(Le){var He=ve.refs;Le===null?delete He[xe]:He[xe]=Le},k._stringRef=xe,k)}if(typeof S!="string")throw Error(e(284));if(!M._owner)throw Error(e(290,S))}return S}function Xo(S,k){throw S=Object.prototype.toString.call(k),Error(e(31,S==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":S))}function ku(S){var k=S._init;return k(S._payload)}function Eu(S){function k(Ze,Ye){if(S){var et=Ze.deletions;et===null?(Ze.deletions=[Ye],Ze.flags|=16):et.push(Ye)}}function M(Ze,Ye){if(!S)return null;for(;Ye!==null;)k(Ze,Ye),Ye=Ye.sibling;return null}function ye(Ze,Ye){for(Ze=new Map;Ye!==null;)Ye.key!==null?Ze.set(Ye.key,Ye):Ze.set(Ye.index,Ye),Ye=Ye.sibling;return Ze}function ve(Ze,Ye){return Ze=Br(Ze,Ye),Ze.index=0,Ze.sibling=null,Ze}function xe(Ze,Ye,et){return Ze.index=et,S?(et=Ze.alternate,et!==null?(et=et.index,et<Ye?(Ze.flags|=2,Ye):et):(Ze.flags|=2,Ye)):(Ze.flags|=1048576,Ye)}function Le(Ze){return S&&Ze.alternate===null&&(Ze.flags|=2),Ze}function He(Ze,Ye,et,bt){return Ye===null||Ye.tag!==6?(Ye=ss(et,Ze.mode,bt),Ye.return=Ze,Ye):(Ye=ve(Ye,et),Ye.return=Ze,Ye)}function qe(Ze,Ye,et,bt){var Rt=et.type;return Rt===Be?yt(Ze,Ye,et.props.children,bt,et.key):Ye!==null&&(Ye.elementType===Rt||typeof Rt=="object"&&Rt!==null&&Rt.$$typeof===nt&&ku(Rt)===Ye.type)?(bt=ve(Ye,et.props),bt.ref=Zi(Ze,Ye,et),bt.return=Ze,bt):(bt=Oa(et.type,et.key,et.props,null,Ze.mode,bt),bt.ref=Zi(Ze,Ye,et),bt.return=Ze,bt)}function rt(Ze,Ye,et,bt){return Ye===null||Ye.tag!==4||Ye.stateNode.containerInfo!==et.containerInfo||Ye.stateNode.implementation!==et.implementation?(Ye=us(et,Ze.mode,bt),Ye.return=Ze,Ye):(Ye=ve(Ye,et.children||[]),Ye.return=Ze,Ye)}function yt(Ze,Ye,et,bt,Rt){return Ye===null||Ye.tag!==7?(Ye=ti(et,Ze.mode,bt,Rt),Ye.return=Ze,Ye):(Ye=ve(Ye,et),Ye.return=Ze,Ye)}function mt(Ze,Ye,et){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number")return Ye=ss(""+Ye,Ze.mode,et),Ye.return=Ze,Ye;if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case Ne:return et=Oa(Ye.type,Ye.key,Ye.props,null,Ze.mode,et),et.ref=Zi(Ze,null,Ye),et.return=Ze,et;
vendor: 1,256 bytes, line 7
7case Fe:return Ye=us(Ye,Ze.mode,et),Ye.return=Ze,Ye;case nt:var bt=Ye._init;return mt(Ze,bt(Ye._payload),et)}if(Yt(Ye)||dt(Ye))return Ye=ti(Ye,Ze.mode,et,null),Ye.return=Ze,Ye;Xo(Ze,Ye)}return null}function ht(Ze,Ye,et,bt){var Rt=Ye!==null?Ye.key:null;if(typeof et=="string"&&et!==""||typeof et=="number")return Rt!==null?null:He(Ze,Ye,""+et,bt);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case Ne:return et.key===Rt?qe(Ze,Ye,et,bt):null;case Fe:return et.key===Rt?rt(Ze,Ye,et,bt):null;case nt:return Rt=et._init,ht(Ze,Ye,Rt(et._payload),bt)}if(Yt(et)||dt(et))return Rt!==null?null:yt(Ze,Ye,et,bt,null);Xo(Ze,et)}return null}function $t(Ze,Ye,et,bt,Rt){if(typeof bt=="string"&&bt!==""||typeof bt=="number")return Ze=Ze.get(et)||null,He(Ye,Ze,""+bt,Rt);if(typeof bt=="object"&&bt!==null){switch(bt.$$typeof){case Ne:return Ze=Ze.get(bt.key===null?et:bt.key)||null,qe(Ye,Ze,bt,Rt);case Fe:return Ze=Ze.get(bt.key===null?et:bt.key)||null,rt(Ye,Ze,bt,Rt);case nt:var Lt=bt._init;return $t(Ze,Ye,et,Lt(bt._payload),Rt)}if(Yt(bt)||dt(bt))return Ze=Ze.get(et)||null,yt(Ye,Ze,bt,Rt,null);Xo(Ye,bt)}return null}function It(Ze,Ye,et,bt){for(var Rt=null,Lt=null,Mt=Ye,Dt=Ye=0,xn=null;Mt!==null&&Dt<et.length;Dt++){Mt.index>Dt?(xn=Mt,Mt=null):xn=Mt.sibling;
vendor: 11,454 bytes, line 7
7var Qt=ht(Ze,Mt,et[Dt],bt);if(Qt===null){Mt===null&&(Mt=xn);break}S&&Mt&&Qt.alternate===null&&k(Ze,Mt),Ye=xe(Qt,Ye,Dt),Lt===null?Rt=Qt:Lt.sibling=Qt,Lt=Qt,Mt=xn}if(Dt===et.length)return M(Ze,Mt),cn&&Gr(Ze,Dt),Rt;if(Mt===null){for(;Dt<et.length;Dt++)Mt=mt(Ze,et[Dt],bt),Mt!==null&&(Ye=xe(Mt,Ye,Dt),Lt===null?Rt=Mt:Lt.sibling=Mt,Lt=Mt);return cn&&Gr(Ze,Dt),Rt}for(Mt=ye(Ze,Mt);Dt<et.length;Dt++)xn=$t(Mt,Ze,Dt,et[Dt],bt),xn!==null&&(S&&xn.alternate!==null&&Mt.delete(xn.key===null?Dt:xn.key),Ye=xe(xn,Ye,Dt),Lt===null?Rt=xn:Lt.sibling=xn,Lt=xn);return S&&Mt.forEach(function(jr){return k(Ze,jr)}),cn&&Gr(Ze,Dt),Rt}function Pt(Ze,Ye,et,bt){var Rt=dt(et);if(typeof Rt!="function")throw Error(e(150));if(et=Rt.call(et),et==null)throw Error(e(151));for(var Lt=Rt=null,Mt=Ye,Dt=Ye=0,xn=null,Qt=et.next();Mt!==null&&!Qt.done;Dt++,Qt=et.next()){Mt.index>Dt?(xn=Mt,Mt=null):xn=Mt.sibling;var jr=ht(Ze,Mt,Qt.value,bt);if(jr===null){Mt===null&&(Mt=xn);break}S&&Mt&&jr.alternate===null&&k(Ze,Mt),Ye=xe(jr,Ye,Dt),Lt===null?Rt=jr:Lt.sibling=jr,Lt=jr,Mt=xn}if(Qt.done)return M(Ze,Mt),cn&&Gr(Ze,Dt),Rt;if(Mt===null){for(;!Qt.done;Dt++,Qt=et.next())Qt=mt(Ze,Qt.value,bt),Qt!==null&&(Ye=xe(Qt,Ye,Dt),Lt===null?Rt=Qt:Lt.sibling=Qt,Lt=Qt);return cn&&Gr(Ze,Dt),Rt}for(Mt=ye(Ze,Mt);!Qt.done;Dt++,Qt=et.next())Qt=$t(Mt,Ze,Dt,Qt.value,bt),Qt!==null&&(S&&Qt.alternate!==null&&Mt.delete(Qt.key===null?Dt:Qt.key),Ye=xe(Qt,Ye,Dt),Lt===null?Rt=Qt:Lt.sibling=Qt,Lt=Qt);return S&&Mt.forEach(function(Zf){return k(Ze,Zf)}),cn&&Gr(Ze,Dt),Rt}function bn(Ze,Ye,et,bt){if(typeof et=="object"&&et!==null&&et.type===Be&&et.key===null&&(et=et.props.children),typeof et=="object"&&et!==null){switch(et.$$typeof){case Ne:e:{for(var Rt=et.key,Lt=Ye;Lt!==null;){if(Lt.key===Rt){if(Rt=et.type,Rt===Be){if(Lt.tag===7){M(Ze,Lt.sibling),Ye=ve(Lt,et.props.children),Ye.return=Ze,Ze=Ye;break e}}else if(Lt.elementType===Rt||typeof Rt=="object"&&Rt!==null&&Rt.$$typeof===nt&&ku(Rt)===Lt.type){M(Ze,Lt.sibling),Ye=ve(Lt,et.props),Ye.ref=Zi(Ze,Lt,et),Ye.return=Ze,Ze=Ye;break e}M(Ze,Lt);break}else k(Ze,Lt);Lt=Lt.sibling}et.type===Be?(Ye=ti(et.props.children,Ze.mode,bt,et.key),Ye.return=Ze,Ze=Ye):(bt=Oa(et.type,et.key,et.props,null,Ze.mode,bt),bt.ref=Zi(Ze,Ye,et),bt.return=Ze,Ze=bt)}return Le(Ze);case Fe:e:{for(Lt=et.key;Ye!==null;){if(Ye.key===Lt)if(Ye.tag===4&&Ye.stateNode.containerInfo===et.containerInfo&&Ye.stateNode.implementation===et.implementation){M(Ze,Ye.sibling),Ye=ve(Ye,et.children||[]),Ye.return=Ze,Ze=Ye;break e}else{M(Ze,Ye);break}else k(Ze,Ye);Ye=Ye.sibling}Ye=us(et,Ze.mode,bt),Ye.return=Ze,Ze=Ye}return Le(Ze);case nt:return Lt=et._init,bn(Ze,Ye,Lt(et._payload),bt)}if(Yt(et))return It(Ze,Ye,et,bt);if(dt(et))return Pt(Ze,Ye,et,bt);Xo(Ze,et)}return typeof et=="string"&&et!==""||typeof et=="number"?(et=""+et,Ye!==null&&Ye.tag===6?(M(Ze,Ye.sibling),Ye=ve(Ye,et),Ye.return=Ze,Ze=Ye):(M(Ze,Ye),Ye=ss(et,Ze.mode,bt),Ye.return=Ze,Ze=Ye),Le(Ze)):M(Ze,Ye)}return bn}var gi=Eu(!0),Iu=Eu(!1),Zo=Er(null),Qo=null,mi=null,gl=null;function ml(){gl=mi=Qo=null}function bl(S){var k=Zo.current;sn(Zo),S._currentValue=k}function vl(S,k,M){for(;S!==null;){var ye=S.alternate;if((S.childLanes&k)!==k?(S.childLanes|=k,ye!==null&&(ye.childLanes|=k)):ye!==null&&(ye.childLanes&k)!==k&&(ye.childLanes|=k),S===M)break;S=S.return}}function bi(S,k){Qo=S,gl=mi=null,S=S.dependencies,S!==null&&S.firstContext!==null&&((S.lanes&k)!==0&&(Mn=!0),S.firstContext=null)}function qn(S){var k=S._currentValue;if(gl!==S)if(S={context:S,memoizedValue:k,next:null},mi===null){if(Qo===null)throw Error(e(308));mi=S,Qo.dependencies={lanes:0,firstContext:S}}else mi=mi.next=S;return k}var Kr=null;function Sl(S){Kr===null?Kr=[S]:Kr.push(S)}function Pu(S,k,M,ye){var ve=k.interleaved;return ve===null?(M.next=M,Sl(k)):(M.next=ve.next,ve.next=M),k.interleaved=M,yr(S,ye)}function yr(S,k){S.lanes|=k;var M=S.alternate;for(M!==null&&(M.lanes|=k),M=S,S=S.return;S!==null;)S.childLanes|=k,M=S.alternate,M!==null&&(M.childLanes|=k),M=S,S=S.return;return M.tag===3?M.stateNode:null}var Ar=!1;function Ol(S){S.updateQueue={baseState:S.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Au(S,k){S=S.updateQueue,k.updateQueue===S&&(k.updateQueue={baseState:S.baseState,firstBaseUpdate:S.firstBaseUpdate,lastBaseUpdate:S.lastBaseUpdate,shared:S.shared,effects:S.effects})}function gr(S,k){return{eventTime:S,lane:k,tag:0,payload:null,callback:null,next:null}}function Rr(S,k,M){var ye=S.updateQueue;if(ye===null)return null;if(ye=ye.shared,(Kt&2)!==0){var ve=ye.pending;return ve===null?k.next=k:(k.next=ve.next,ve.next=k),ye.pending=k,yr(S,M)}return ve=ye.interleaved,ve===null?(k.next=k,Sl(ye)):(k.next=ve.next,ve.next=k),ye.interleaved=k,yr(S,M)}function ea(S,k,M){if(k=k.updateQueue,k!==null&&(k=k.shared,(M&4194240)!==0)){var ye=k.lanes;ye&=S.pendingLanes,M|=ye,k.lanes=M,Fa(S,M)}}function Ru(S,k){var M=S.updateQueue,ye=S.alternate;if(ye!==null&&(ye=ye.updateQueue,M===ye)){var ve=null,xe=null;if(M=M.firstBaseUpdate,M!==null){do{var Le={eventTime:M.eventTime,lane:M.lane,tag:M.tag,payload:M.payload,callback:M.callback,next:null};xe===null?ve=xe=Le:xe=xe.next=Le,M=M.next}while(M!==null);xe===null?ve=xe=k:xe=xe.next=k}else ve=xe=k;M={baseState:ye.baseState,firstBaseUpdate:ve,lastBaseUpdate:xe,shared:ye.shared,effects:ye.effects},S.updateQueue=M;return}S=M.lastBaseUpdate,S===null?M.firstBaseUpdate=k:S.next=k,M.lastBaseUpdate=k}function ta(S,k,M,ye){var ve=S.updateQueue;Ar=!1;var xe=ve.firstBaseUpdate,Le=ve.lastBaseUpdate,He=ve.shared.pending;if(He!==null){ve.shared.pending=null;var qe=He,rt=qe.next;qe.next=null,Le===null?xe=rt:Le.next=rt,Le=qe;var yt=S.alternate;yt!==null&&(yt=yt.updateQueue,He=yt.lastBaseUpdate,He!==Le&&(He===null?yt.firstBaseUpdate=rt:He.next=rt,yt.lastBaseUpdate=qe))}if(xe!==null){var mt=ve.baseState;Le=0,yt=rt=qe=null,He=xe;do{var ht=He.lane,$t=He.eventTime;if((ye&ht)===ht){yt!==null&&(yt=yt.next={eventTime:$t,lane:0,tag:He.tag,payload:He.payload,callback:He.callback,next:null});e:{var It=S,Pt=He;switch(ht=k,$t=M,Pt.tag){case 1:if(It=Pt.payload,typeof It=="function"){mt=It.call($t,mt,ht);break e}mt=It;break e;case 3:It.flags=It.flags&-65537|128;case 0:if(It=Pt.payload,ht=typeof It=="function"?It.call($t,mt,ht):It,ht==null)break e;mt=Me({},mt,ht);break e;case 2:Ar=!0}}He.callback!==null&&He.lane!==0&&(S.flags|=64,ht=ve.effects,ht===null?ve.effects=[He]:ht.push(He))}else $t={eventTime:$t,lane:ht,tag:He.tag,payload:He.payload,callback:He.callback,next:null},yt===null?(rt=yt=$t,qe=mt):yt=yt.next=$t,Le|=ht;if(He=He.next,He===null){if(He=ve.shared.pending,He===null)break;ht=He,He=ht.next,ht.next=null,ve.lastBaseUpdate=ht,ve.shared.pending=null}}while(!0);if(yt===null&&(qe=mt),ve.baseState=qe,ve.firstBaseUpdate=rt,ve.lastBaseUpdate=yt,k=ve.shared.interleaved,k!==null){ve=k;do Le|=ve.lane,ve=ve.next;while(ve!==k)}else xe===null&&(ve.shared.lanes=0);Xr|=Le,S.lanes=Le,S.memoizedState=mt}}function Nu(S,k,M){if(S=k.effects,k.effects=null,S!==null)for(k=0;k<S.length;k++){var ye=S[k],ve=ye.callback;if(ve!==null){if(ye.callback=null,ye=M,typeof ve!="function")throw Error(e(191,ve));ve.call(ye)}}}var Qi={},ar=Er(Qi),eo=Er(Qi),to=Er(Qi);function Jr(S){if(S===Qi)throw Error(e(174));return S}function wl(S,k){switch(rn(to,k),rn(eo,S),rn(ar,Qi),S=k.nodeType,S){case 9:case 11:k=(k=k.documentElement)?k.namespaceURI:gt(null,"");break;default:S=S===8?k.parentNode:k,k=S.namespaceURI||null,S=S.tagName,k=gt(k,S)}sn(ar),rn(ar,k)}function vi(){sn(ar),sn(eo),sn(to)}function Fu(S){Jr(to.current);var k=Jr(ar.current),M=gt(k,S.type);k!==M&&(rn(eo,S),rn(ar,M))}function $l(S){eo.current===S&&(sn(ar),sn(eo))}var dn=Er(0);function na(S){for(var k=S;k!==null;){if(k.tag===13){var M=k.memoizedState;if(M!==null&&(M=M.dehydrated,M===null||M.data==="$?"||M.data==="$!"))return k}else if(k.tag===19&&k.memoizedProps.revealOrder!==void 0){if((k.flags&128)!==0)return k}else if(k.child!==null){k.child.return=k,k=k.child;continue}if(k===S)break;for(;k.sibling===null;){if(k.return===null||k.return===S)return null;k=k.return}k.sibling.return=k.return,k=k.sibling}return null}var xl=[];function Tl(){for(var S=0;S<xl.length;S++)xl[S]._workInProgressVersionPrimary=null;xl.length=0}var ra=Ie.ReactCurrentDispatcher,Cl=Ie.ReactCurrentBatchConfig,Yr=0,fn=null,On=null,_n=null,ia=!1,no=!1,ro=0,vf=0;function In(){throw Error(e(321))}function kl(S,k){if(k===null)return!1;for(var M=0;M<k.length&&M<S.length;M++)if(!Xn(S[M],k[M]))return!1;return!0}function El(S,k,M,ye,ve,xe){if(Yr=xe,fn=k,k.memoizedState=null,k.updateQueue=null,k.lanes=0,ra.current=S===null||S.memoizedState===null?$f:xf,S=M(ye,ve),no){xe=0;do{if(no=!1,ro=0,25<=xe)throw Error(e(301));xe+=1,_n=On=null,k.updateQueue=null,ra.current=Tf,S=M(ye,ve)}while(no)}if(ra.current=la,k=On!==null&&On.next!==null,Yr=0,_n=On=fn=null,ia=!1,k)throw Error(e(300));return S}function Il(){var S=ro!==0;return ro=0,S}function lr(){var S={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _n===null?fn.memoizedState=_n=S:_n=_n.next=S,_n}function Gn(){if(On===null){var S=fn.alternate;S=S!==null?S.memoizedState:null}else S=On.next;var k=_n===null?fn.memoizedState:_n.next;if(k!==null)_n=k,On=S;else{if(S===null)throw Error(e(310));On=S,S={memoizedState:On.memoizedState,baseState:On.baseState,baseQueue:On.baseQueue,queue:On.queue,next:null},_n===null?fn.memoizedState=_n=S:_n=_n.next=S}return _n}function io(S,k){return typeof k=="function"?k(S):k}function Pl(S){var k=Gn(),M=k.queue;if(M===null)throw Error(e(311));M.lastRenderedReducer=S;var ye=On,ve=ye.baseQueue,xe=M.pending;if(xe!==null){if(ve!==null){var Le=ve.next;ve.next=xe.next,xe.next=Le}ye.baseQueue=ve=xe,M.pending=null}if(ve!==null){xe=ve.next,ye=ye.baseState;var He=Le=null,qe=null,rt=xe;do{var yt=rt.lane;if((Yr&yt)===yt)qe!==null&&(qe=qe.next={lane:0,action:rt.action,hasEagerState:rt.hasEagerState,eagerState:rt.eagerState,next:null}),ye=rt.hasEagerState?rt.eagerState:S(ye,rt.action);else{var mt={lane:yt,action:rt.action,hasEagerState:rt.hasEagerState,eagerState:rt.eagerState,next:null};qe===null?(He=qe=mt,Le=ye):qe=qe.next=mt,fn.lanes|=yt,Xr|=yt}rt=rt.next}while(rt!==null&&rt!==xe);qe===null?Le=ye:qe.next=He,Xn(ye,k.memoizedState)||(Mn=!0),k.memoizedState=ye,k.baseState=Le,k.baseQueue=qe,M.lastRenderedState=ye}if(S=M.interleaved,S!==null){ve=S;do xe=ve.lane,fn.lanes|=xe,Xr|=xe,ve=ve.next;while(ve!==S)}else ve===null&&(M.lanes=0);return[k.memoizedState,M.dispatch]}function Al(S){var k=Gn(),M=k.queue;if(M===null)throw Error(e(311));M.lastRenderedReducer=S;var ye=M.dispatch,ve=M.pending,xe=k.memoizedState;if(ve!==null){M.pending=null;var Le=ve=ve.next;do xe=S(xe,Le.action),Le=Le.next;while(Le!==ve);Xn(xe,k.memoizedState)||(Mn=!0),k.memoizedState=xe,k.baseQueue===null&&(k.baseState=xe),M.lastRenderedState=xe}return[xe,ye]}function Lu(){}function Mu(S,k){var M=fn,ye=Gn(),ve=k(),xe=!Xn(ye.memoizedState,ve);if(xe&&(ye.memoizedState=ve,Mn=!0),ye=ye.queue,Rl(ju.bind(null,M,ye,S),[S]),ye.getSnapshot!==k||xe||_n!==null&&_n.memoizedState.tag&1){if(M.flags|=2048,oo(9,Bu.bind(null,M,ye,ve,k),void 0,null),$n===null)throw Error(e(349));(Yr&30)!==0||Du(M,k,ve)}return ve}function Du(S,k,M){S.flags|=16384,S={getSnapshot:k,value:M},k=fn.updateQueue,k===null?(k={lastEffect:null,stores:null},fn.updateQueue=k,k.stores=[S]):(M=k.stores,M===null?k.stores=[S]:M.push(S))}function Bu(S,k,M,ye){k.value=M,k.getSnapshot=ye,Vu(k)&&zu(S)}function ju(S,k,M){return M(function(){Vu(k)&&zu(S)})}
vendor: 4,681 bytes, line 7
7function Vu(S){var k=S.getSnapshot;S=S.value;try{var M=k();return!Xn(S,M)}catch{return!0}}function zu(S){var k=yr(S,1);k!==null&&nr(k,S,1,-1)}function Uu(S){var k=lr();return typeof S=="function"&&(S=S()),k.memoizedState=k.baseState=S,S={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:io,lastRenderedState:S},k.queue=S,S=S.dispatch=wf.bind(null,fn,S),[k.memoizedState,S]}function oo(S,k,M,ye){return S={tag:S,create:k,destroy:M,deps:ye,next:null},k=fn.updateQueue,k===null?(k={lastEffect:null,stores:null},fn.updateQueue=k,k.lastEffect=S.next=S):(M=k.lastEffect,M===null?k.lastEffect=S.next=S:(ye=M.next,M.next=S,S.next=ye,k.lastEffect=S)),S}function Hu(){return Gn().memoizedState}function oa(S,k,M,ye){var ve=lr();fn.flags|=S,ve.memoizedState=oo(1|k,M,void 0,ye===void 0?null:ye)}function aa(S,k,M,ye){var ve=Gn();ye=ye===void 0?null:ye;var xe=void 0;if(On!==null){var Le=On.memoizedState;if(xe=Le.destroy,ye!==null&&kl(ye,Le.deps)){ve.memoizedState=oo(k,M,xe,ye);return}}fn.flags|=S,ve.memoizedState=oo(1|k,M,xe,ye)}function Wu(S,k){return oa(8390656,8,S,k)}function Rl(S,k){return aa(2048,8,S,k)}function qu(S,k){return aa(4,2,S,k)}function Gu(S,k){return aa(4,4,S,k)}function Ku(S,k){if(typeof k=="function")return S=S(),k(S),function(){k(null)};if(k!=null)return S=S(),k.current=S,function(){k.current=null}}function Ju(S,k,M){return M=M!=null?M.concat([S]):null,aa(4,4,Ku.bind(null,k,S),M)}function Nl(){}function Yu(S,k){var M=Gn();k=k===void 0?null:k;var ye=M.memoizedState;return ye!==null&&k!==null&&kl(k,ye[1])?ye[0]:(M.memoizedState=[S,k],S)}function Xu(S,k){var M=Gn();k=k===void 0?null:k;var ye=M.memoizedState;return ye!==null&&k!==null&&kl(k,ye[1])?ye[0]:(S=S(),M.memoizedState=[S,k],S)}function Zu(S,k,M){return(Yr&21)===0?(S.baseState&&(S.baseState=!1,Mn=!0),S.memoizedState=M):(Xn(M,k)||(M=Cs(),fn.lanes|=M,Xr|=M,S.baseState=!0),k)}function Sf(S,k){var M=tn;tn=M!==0&&4>M?M:4,S(!0);var ye=Cl.transition;Cl.transition={};try{S(!1),k()}finally{tn=M,Cl.transition=ye}}function Qu(){return Gn().memoizedState}function Of(S,k,M){var ye=Mr(S);if(M={lane:ye,action:M,hasEagerState:!1,eagerState:null,next:null},ec(S))tc(k,M);else if(M=Pu(S,k,M,ye),M!==null){var ve=Nn();nr(M,S,ye,ve),nc(M,k,ye)}}function wf(S,k,M){var ye=Mr(S),ve={lane:ye,action:M,hasEagerState:!1,eagerState:null,next:null};if(ec(S))tc(k,ve);else{var xe=S.alternate;if(S.lanes===0&&(xe===null||xe.lanes===0)&&(xe=k.lastRenderedReducer,xe!==null))try{var Le=k.lastRenderedState,He=xe(Le,M);if(ve.hasEagerState=!0,ve.eagerState=He,Xn(He,Le)){var qe=k.interleaved;qe===null?(ve.next=ve,Sl(k)):(ve.next=qe.next,qe.next=ve),k.interleaved=ve;return}}catch{}finally{}M=Pu(S,k,ve,ye),M!==null&&(ve=Nn(),nr(M,S,ye,ve),nc(M,k,ye))}}function ec(S){var k=S.alternate;return S===fn||k!==null&&k===fn}function tc(S,k){no=ia=!0;var M=S.pending;M===null?k.next=k:(k.next=M.next,M.next=k),S.pending=k}function nc(S,k,M){if((M&4194240)!==0){var ye=k.lanes;ye&=S.pendingLanes,M|=ye,k.lanes=M,Fa(S,M)}}var la={readContext:qn,useCallback:In,useContext:In,useEffect:In,useImperativeHandle:In,useInsertionEffect:In,useLayoutEffect:In,useMemo:In,useReducer:In,useRef:In,useState:In,useDebugValue:In,useDeferredValue:In,useTransition:In,useMutableSource:In,useSyncExternalStore:In,useId:In,unstable_isNewReconciler:!1},$f={readContext:qn,useCallback:function(S,k){return lr().memoizedState=[S,k===void 0?null:k],S},useContext:qn,useEffect:Wu,useImperativeHandle:function(S,k,M){return M=M!=null?M.concat([S]):null,oa(4194308,4,Ku.bind(null,k,S),M)},useLayoutEffect:function(S,k){return oa(4194308,4,S,k)},useInsertionEffect:function(S,k){return oa(4,2,S,k)},useMemo:function(S,k){var M=lr();return k=k===void 0?null:k,S=S(),M.memoizedState=[S,k],S},useReducer:function(S,k,M){var ye=lr();return k=M!==void 0?M(k):k,ye.memoizedState=ye.baseState=k,S={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:S,lastRenderedState:k},ye.queue=S,S=S.dispatch=Of.bind(null,fn,S),[ye.memoizedState,S]},useRef:function(S){var k=lr();return S={current:S},k.memoizedState=S},useState:Uu,useDebugValue:Nl,useDeferredValue:function(S){return lr().memoizedState=S},useTransition:function(){var S=Uu(!1),k=S[0];return S=Sf.bind(null,S[1]),lr().memoizedState=S,[k,S]},useMutableSource:function(){},useSyncExternalStore:function(S,k,M){var ye=fn,ve=lr();if(cn){if(M===void 0)throw Error(e(407));M=M()}else{if(M=k(),$n===null)throw Error(e(349));(Yr&30)!==0||Du(ye,k,M)}ve.memoizedState=M;var xe={value:M,getSnapshot:k};return ve.queue=xe,Wu(ju.bind(null,ye,xe,S),[S]),ye.flags|=2048,oo(9,Bu.bind(null,ye,xe,M,k),void 0,null),M},useId:function(){var S=lr(),k=$n.identifierPrefix;if(cn){var M=hr,ye=pr;
vendor: 6,473 bytes, lines 7-9
7M=(ye&~(1<<32-Yn(ye)-1)).toString(32)+M,k=":"+k+"R"+M,M=ro++,0<M&&(k+="H"+M.toString(32)),k+=":"}else M=vf++,k=":"+k+"r"+M.toString(32)+":";return S.memoizedState=k},unstable_isNewReconciler:!1},xf={readContext:qn,useCallback:Yu,useContext:qn,useEffect:Rl,useImperativeHandle:Ju,useInsertionEffect:qu,useLayoutEffect:Gu,useMemo:Xu,useReducer:Pl,useRef:Hu,useState:function(){return Pl(io)},useDebugValue:Nl,useDeferredValue:function(S){var k=Gn();return Zu(k,On.memoizedState,S)},useTransition:function(){var S=Pl(io)[0],k=Gn().memoizedState;return[S,k]},useMutableSource:Lu,useSyncExternalStore:Mu,useId:Qu,unstable_isNewReconciler:!1},Tf={readContext:qn,useCallback:Yu,useContext:qn,useEffect:Rl,useImperativeHandle:Ju,useInsertionEffect:qu,useLayoutEffect:Gu,useMemo:Xu,useReducer:Al,useRef:Hu,useState:function(){return Al(io)},useDebugValue:Nl,useDeferredValue:function(S){var k=Gn();return On===null?k.memoizedState=S:Zu(k,On.memoizedState,S)},useTransition:function(){var S=Al(io)[0],k=Gn().memoizedState;return[S,k]},useMutableSource:Lu,useSyncExternalStore:Mu,useId:Qu,unstable_isNewReconciler:!1};function Qn(S,k){if(S&&S.defaultProps){k=Me({},k),S=S.defaultProps;for(var M in S)k[M]===void 0&&(k[M]=S[M]);return k}return k}function Fl(S,k,M,ye){k=S.memoizedState,M=M(ye,k),M=M==null?k:Me({},k,M),S.memoizedState=M,S.lanes===0&&(S.updateQueue.baseState=M)}var sa={isMounted:function(S){return(S=S._reactInternals)?Ur(S)===S:!1},enqueueSetState:function(S,k,M){S=S._reactInternals;var ye=Nn(),ve=Mr(S),xe=gr(ye,ve);xe.payload=k,M!=null&&(xe.callback=M),k=Rr(S,xe,ve),k!==null&&(nr(k,S,ve,ye),ea(k,S,ve))},enqueueReplaceState:function(S,k,M){S=S._reactInternals;var ye=Nn(),ve=Mr(S),xe=gr(ye,ve);xe.tag=1,xe.payload=k,M!=null&&(xe.callback=M),k=Rr(S,xe,ve),k!==null&&(nr(k,S,ve,ye),ea(k,S,ve))},enqueueForceUpdate:function(S,k){S=S._reactInternals;var M=Nn(),ye=Mr(S),ve=gr(M,ye);ve.tag=2,k!=null&&(ve.callback=k),k=Rr(S,ve,ye),k!==null&&(nr(k,S,ye,M),ea(k,S,ye))}};function rc(S,k,M,ye,ve,xe,Le){return S=S.stateNode,typeof S.shouldComponentUpdate=="function"?S.shouldComponentUpdate(ye,xe,Le):k.prototype&&k.prototype.isPureReactComponent?!Wi(M,ye)||!Wi(ve,xe):!0}function ic(S,k,M){var ye=!1,ve=Ir,xe=k.contextType;return typeof xe=="object"&&xe!==null?xe=qn(xe):(ve=Ln(k)?Wr:En.current,ye=k.contextTypes,xe=(ye=ye!=null)?fi(S,ve):Ir),k=new k(M,xe),S.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,k.updater=sa,S.stateNode=k,k._reactInternals=S,ye&&(S=S.stateNode,S.__reactInternalMemoizedUnmaskedChildContext=ve,S.__reactInternalMemoizedMaskedChildContext=xe),k}function oc(S,k,M,ye){S=k.state,typeof k.componentWillReceiveProps=="function"&&k.componentWillReceiveProps(M,ye),typeof k.UNSAFE_componentWillReceiveProps=="function"&&k.UNSAFE_componentWillReceiveProps(M,ye),k.state!==S&&sa.enqueueReplaceState(k,k.state,null)}function Ll(S,k,M,ye){var ve=S.stateNode;ve.props=M,ve.state=S.memoizedState,ve.refs={},Ol(S);var xe=k.contextType;typeof xe=="object"&&xe!==null?ve.context=qn(xe):(xe=Ln(k)?Wr:En.current,ve.context=fi(S,xe)),ve.state=S.memoizedState,xe=k.getDerivedStateFromProps,typeof xe=="function"&&(Fl(S,k,xe,M),ve.state=S.memoizedState),typeof k.getDerivedStateFromProps=="function"||typeof ve.getSnapshotBeforeUpdate=="function"||typeof ve.UNSAFE_componentWillMount!="function"&&typeof ve.componentWillMount!="function"||(k=ve.state,typeof ve.componentWillMount=="function"&&ve.componentWillMount(),typeof ve.UNSAFE_componentWillMount=="function"&&ve.UNSAFE_componentWillMount(),k!==ve.state&&sa.enqueueReplaceState(ve,ve.state,null),ta(S,M,ve,ye),ve.state=S.memoizedState),typeof ve.componentDidMount=="function"&&(S.flags|=4194308)}function Si(S,k){try{var M="",ye=k;do M+=xt(ye),ye=ye.return;while(ye);var ve=M}catch(xe){ve=` 8Error generating stack: `+xe.message+` 9`+xe.stack}return{value:S,source:k,stack:ve,digest:null}}function Ml(S,k,M){return{value:S,source:null,stack:M??null,digest:k??null}}function Dl(S,k){try{console.error(k.value)}catch(M){setTimeout(function(){throw M})}}var Cf=typeof WeakMap=="function"?WeakMap:Map;function ac(S,k,M){M=gr(-1,M),M.tag=3,M.payload={element:null};var ye=k.value;return M.callback=function(){ya||(ya=!0,Ql=ye),Dl(S,k)},M}function lc(S,k,M){M=gr(-1,M),M.tag=3;var ye=S.type.getDerivedStateFromError;if(typeof ye=="function"){var ve=k.value;M.payload=function(){return ye(ve)},M.callback=function(){Dl(S,k)}}var xe=S.stateNode;return xe!==null&&typeof xe.componentDidCatch=="function"&&(M.callback=function(){Dl(S,k),typeof ye!="function"&&(Fr===null?Fr=new Set([this]):Fr.add(this));var Le=k.stack;this.componentDidCatch(k.value,{componentStack:Le!==null?Le:""})}),M}function sc(S,k,M){var ye=S.pingCache;if(ye===null){ye=S.pingCache=new Cf;var ve=new Set;ye.set(k,ve)}else ve=ye.get(k),ve===void 0&&(ve=new Set,ye.set(k,ve));ve.has(M)||(ve.add(M),S=Vf.bind(null,S,k,M),k.then(S,S))}function uc(S){do{var k;if((k=S.tag===13)&&(k=S.memoizedState,k=k!==null?k.dehydrated!==null:!0),k)return S;S=S.return}while(S!==null);return null}function cc(S,k,M,ye,ve){return(S.mode&1)===0?(S===k?S.flags|=65536:(S.flags|=128,M.flags|=131072,M.flags&=-52805,M.tag===1&&(M.alternate===null?M.tag=17:(k=gr(-1,1),k.tag=2,Rr(M,k,1))),M.lanes|=1),S):(S.flags|=65536,S.lanes=ve,S)}var kf=Ie.ReactCurrentOwner,Mn=!1;function Rn(S,k,M,ye){k.child=S===null?Iu(k,null,M,ye):gi(k,S.child,M,ye)}function dc(S,k,M,ye,ve){M=M.render;var xe=k.ref;return bi(k,ve),ye=El(S,k,M,ye,xe,ve),M=Il(),S!==null&&!Mn?(k.updateQueue=S.updateQueue,k.flags&=-2053,S.lanes&=~ve,mr(S,k,ve)):(cn&&M&&dl(k),k.flags|=1,Rn(S,k,ye,ve),k.child)}function fc(S,k,M,ye,ve){if(S===null){var xe=M.type;return typeof xe=="function"&&!ls(xe)&&xe.defaultProps===void 0&&M.compare===null&&M.defaultProps===void 0?(k.tag=15,k.type=xe,pc(S,k,xe,ye,ve)):(S=Oa(M.type,null,ye,k,k.mode,ve),S.ref=k.ref,S.return=k,k.child=S)}if(xe=S.child,(S.lanes&ve)===0){var Le=xe.memoizedProps;if(M=M.compare,M=M!==null?M:Wi,M(Le,ye)&&S.ref===k.ref)return mr(S,k,ve)}return k.flags|=1,S=Br(xe,ye),S.ref=k.ref,S.return=k,k.child=S}function pc(S,k,M,ye,ve){if(S!==null){var xe=S.memoizedProps;if(Wi(xe,ye)&&S.ref===k.ref)if(Mn=!1,k.pendingProps=ye=xe,(S.lanes&ve)!==0)(S.flags&131072)!==0&&(Mn=!0);else return k.lanes=S.lanes,mr(S,k,ve)}return Bl(S,k,M,ye,ve)}function hc(S,k,M){var ye=k.pendingProps,ve=ye.children,xe=S!==null?S.memoizedState:null;if(ye.mode==="hidden")if((k.mode&1)===0)k.memoizedState={baseLanes:0,cachePool:null,transitions:null},rn(wi,Un),Un|=M;
vendor: 4,104 bytes, line 9
9else{if((M&1073741824)===0)return S=xe!==null?xe.baseLanes|M:M,k.lanes=k.childLanes=1073741824,k.memoizedState={baseLanes:S,cachePool:null,transitions:null},k.updateQueue=null,rn(wi,Un),Un|=S,null;k.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye=xe!==null?xe.baseLanes:M,rn(wi,Un),Un|=ye}else xe!==null?(ye=xe.baseLanes|M,k.memoizedState=null):ye=M,rn(wi,Un),Un|=ye;return Rn(S,k,ve,M),k.child}function yc(S,k){var M=k.ref;(S===null&&M!==null||S!==null&&S.ref!==M)&&(k.flags|=512,k.flags|=2097152)}function Bl(S,k,M,ye,ve){var xe=Ln(M)?Wr:En.current;return xe=fi(k,xe),bi(k,ve),M=El(S,k,M,ye,xe,ve),ye=Il(),S!==null&&!Mn?(k.updateQueue=S.updateQueue,k.flags&=-2053,S.lanes&=~ve,mr(S,k,ve)):(cn&&ye&&dl(k),k.flags|=1,Rn(S,k,M,ve),k.child)}function gc(S,k,M,ye,ve){if(Ln(M)){var xe=!0;qo(k)}else xe=!1;if(bi(k,ve),k.stateNode===null)ca(S,k),ic(k,M,ye),Ll(k,M,ye,ve),ye=!0;else if(S===null){var Le=k.stateNode,He=k.memoizedProps;Le.props=He;var qe=Le.context,rt=M.contextType;typeof rt=="object"&&rt!==null?rt=qn(rt):(rt=Ln(M)?Wr:En.current,rt=fi(k,rt));var yt=M.getDerivedStateFromProps,mt=typeof yt=="function"||typeof Le.getSnapshotBeforeUpdate=="function";mt||typeof Le.UNSAFE_componentWillReceiveProps!="function"&&typeof Le.componentWillReceiveProps!="function"||(He!==ye||qe!==rt)&&oc(k,Le,ye,rt),Ar=!1;var ht=k.memoizedState;Le.state=ht,ta(k,ye,Le,ve),qe=k.memoizedState,He!==ye||ht!==qe||Fn.current||Ar?(typeof yt=="function"&&(Fl(k,M,yt,ye),qe=k.memoizedState),(He=Ar||rc(k,M,He,ye,ht,qe,rt))?(mt||typeof Le.UNSAFE_componentWillMount!="function"&&typeof Le.componentWillMount!="function"||(typeof Le.componentWillMount=="function"&&Le.componentWillMount(),typeof Le.UNSAFE_componentWillMount=="function"&&Le.UNSAFE_componentWillMount()),typeof Le.componentDidMount=="function"&&(k.flags|=4194308)):(typeof Le.componentDidMount=="function"&&(k.flags|=4194308),k.memoizedProps=ye,k.memoizedState=qe),Le.props=ye,Le.state=qe,Le.context=rt,ye=He):(typeof Le.componentDidMount=="function"&&(k.flags|=4194308),ye=!1)}else{Le=k.stateNode,Au(S,k),He=k.memoizedProps,rt=k.type===k.elementType?He:Qn(k.type,He),Le.props=rt,mt=k.pendingProps,ht=Le.context,qe=M.contextType,typeof qe=="object"&&qe!==null?qe=qn(qe):(qe=Ln(M)?Wr:En.current,qe=fi(k,qe));var $t=M.getDerivedStateFromProps;(yt=typeof $t=="function"||typeof Le.getSnapshotBeforeUpdate=="function")||typeof Le.UNSAFE_componentWillReceiveProps!="function"&&typeof Le.componentWillReceiveProps!="function"||(He!==mt||ht!==qe)&&oc(k,Le,ye,qe),Ar=!1,ht=k.memoizedState,Le.state=ht,ta(k,ye,Le,ve);var It=k.memoizedState;He!==mt||ht!==It||Fn.current||Ar?(typeof $t=="function"&&(Fl(k,M,$t,ye),It=k.memoizedState),(rt=Ar||rc(k,M,rt,ye,ht,It,qe)||!1)?(yt||typeof Le.UNSAFE_componentWillUpdate!="function"&&typeof Le.componentWillUpdate!="function"||(typeof Le.componentWillUpdate=="function"&&Le.componentWillUpdate(ye,It,qe),typeof Le.UNSAFE_componentWillUpdate=="function"&&Le.UNSAFE_componentWillUpdate(ye,It,qe)),typeof Le.componentDidUpdate=="function"&&(k.flags|=4),typeof Le.getSnapshotBeforeUpdate=="function"&&(k.flags|=1024)):(typeof Le.componentDidUpdate!="function"||He===S.memoizedProps&&ht===S.memoizedState||(k.flags|=4),typeof Le.getSnapshotBeforeUpdate!="function"||He===S.memoizedProps&&ht===S.memoizedState||(k.flags|=1024),k.memoizedProps=ye,k.memoizedState=It),Le.props=ye,Le.state=It,Le.context=qe,ye=rt):(typeof Le.componentDidUpdate!="function"||He===S.memoizedProps&&ht===S.memoizedState||(k.flags|=4),typeof Le.getSnapshotBeforeUpdate!="function"||He===S.memoizedProps&&ht===S.memoizedState||(k.flags|=1024),ye=!1)}return jl(S,k,M,ye,xe,ve)}function jl(S,k,M,ye,ve,xe){yc(S,k);var Le=(k.flags&128)!==0;if(!ye&&!Le)return ve&&Su(k,M,!1),mr(S,k,xe);ye=k.stateNode,kf.current=k;var He=Le&&typeof M.getDerivedStateFromError!="function"?null:ye.render();return k.flags|=1,S!==null&&Le?(k.child=gi(k,S.child,null,xe),k.child=gi(k,null,He,xe)):Rn(S,k,He,xe),k.memoizedState=ye.state,ve&&Su(k,M,!0),k.child}function mc(S){var k=S.stateNode;k.pendingContext?bu(S,k.pendingContext,k.pendingContext!==k.context):k.context&&bu
vendor: 9,505 bytes, line 9
9(S,k.context,!1),wl(S,k.containerInfo)}function bc(S,k,M,ye,ve){return yi(),yl(ve),k.flags|=256,Rn(S,k,M,ye),k.child}var Vl={dehydrated:null,treeContext:null,retryLane:0};function zl(S){return{baseLanes:S,cachePool:null,transitions:null}}function vc(S,k,M){var ye=k.pendingProps,ve=dn.current,xe=!1,Le=(k.flags&128)!==0,He;if((He=Le)||(He=S!==null&&S.memoizedState===null?!1:(ve&2)!==0),He?(xe=!0,k.flags&=-129):(S===null||S.memoizedState!==null)&&(ve|=1),rn(dn,ve&1),S===null)return hl(k),S=k.memoizedState,S!==null&&(S=S.dehydrated,S!==null)?((k.mode&1)===0?k.lanes=1:S.data==="$!"?k.lanes=8:k.lanes=1073741824,null):(Le=ye.children,S=ye.fallback,xe?(ye=k.mode,xe=k.child,Le={mode:"hidden",children:Le},(ye&1)===0&&xe!==null?(xe.childLanes=0,xe.pendingProps=Le):xe=wa(Le,ye,0,null),S=ti(S,ye,M,null),xe.return=k,S.return=k,xe.sibling=S,k.child=xe,k.child.memoizedState=zl(M),k.memoizedState=Vl,S):Ul(k,Le));if(ve=S.memoizedState,ve!==null&&(He=ve.dehydrated,He!==null))return Ef(S,k,Le,ye,He,ve,M);if(xe){xe=ye.fallback,Le=k.mode,ve=S.child,He=ve.sibling;var qe={mode:"hidden",children:ye.children};return(Le&1)===0&&k.child!==ve?(ye=k.child,ye.childLanes=0,ye.pendingProps=qe,k.deletions=null):(ye=Br(ve,qe),ye.subtreeFlags=ve.subtreeFlags&14680064),He!==null?xe=Br(He,xe):(xe=ti(xe,Le,M,null),xe.flags|=2),xe.return=k,ye.return=k,ye.sibling=xe,k.child=ye,ye=xe,xe=k.child,Le=S.child.memoizedState,Le=Le===null?zl(M):{baseLanes:Le.baseLanes|M,cachePool:null,transitions:Le.transitions},xe.memoizedState=Le,xe.childLanes=S.childLanes&~M,k.memoizedState=Vl,ye}return xe=S.child,S=xe.sibling,ye=Br(xe,{mode:"visible",children:ye.children}),(k.mode&1)===0&&(ye.lanes=M),ye.return=k,ye.sibling=null,S!==null&&(M=k.deletions,M===null?(k.deletions=[S],k.flags|=16):M.push(S)),k.child=ye,k.memoizedState=null,ye}function Ul(S,k){return k=wa({mode:"visible",children:k},S.mode,0,null),k.return=S,S.child=k}function ua(S,k,M,ye){return ye!==null&&yl(ye),gi(k,S.child,null,M),S=Ul(k,k.pendingProps.children),S.flags|=2,k.memoizedState=null,S}function Ef(S,k,M,ye,ve,xe,Le){if(M)return k.flags&256?(k.flags&=-257,ye=Ml(Error(e(422))),ua(S,k,Le,ye)):k.memoizedState!==null?(k.child=S.child,k.flags|=128,null):(xe=ye.fallback,ve=k.mode,ye=wa({mode:"visible",children:ye.children},ve,0,null),xe=ti(xe,ve,Le,null),xe.flags|=2,ye.return=k,xe.return=k,ye.sibling=xe,k.child=ye,(k.mode&1)!==0&&gi(k,S.child,null,Le),k.child.memoizedState=zl(Le),k.memoizedState=Vl,xe);if((k.mode&1)===0)return ua(S,k,Le,null);if(ve.data==="$!"){if(ye=ve.nextSibling&&ve.nextSibling.dataset,ye)var He=ye.dgst;return ye=He,xe=Error(e(419)),ye=Ml(xe,ye,void 0),ua(S,k,Le,ye)}if(He=(Le&S.childLanes)!==0,Mn||He){if(ye=$n,ye!==null){switch(Le&-Le){case 4:ve=2;break;case 16:ve=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:ve=32;break;case 536870912:ve=268435456;break;default:ve=0}ve=(ve&(ye.suspendedLanes|Le))!==0?0:ve,ve!==0&&ve!==xe.retryLane&&(xe.retryLane=ve,yr(S,ve),nr(ye,S,ve,-1))}return as(),ye=Ml(Error(e(421))),ua(S,k,Le,ye)}return ve.data==="$?"?(k.flags|=128,k.child=S.child,k=zf.bind(null,S),ve._reactRetry=k,null):(S=xe.treeContext,zn=kr(ve.nextSibling),Vn=k,cn=!0,Zn=null,S!==null&&(Hn[Wn++]=pr,Hn[Wn++]=hr,Hn[Wn++]=qr,pr=S.id,hr=S.overflow,qr=k),k=Ul(k,ye.children),k.flags|=4096,k)}function Sc(S,k,M){S.lanes|=k;var ye=S.alternate;ye!==null&&(ye.lanes|=k),vl(S.return,k,M)}function Hl(S,k,M,ye,ve){var xe=S.memoizedState;xe===null?S.memoizedState={isBackwards:k,rendering:null,renderingStartTime:0,last:ye,tail:M,tailMode:ve}:(xe.isBackwards=k,xe.rendering=null,xe.renderingStartTime=0,xe.last=ye,xe.tail=M,xe.tailMode=ve)}function Oc(S,k,M){var ye=k.pendingProps,ve=ye.revealOrder,xe=ye.tail;if(Rn(S,k,ye.children,M),ye=dn.current,(ye&2)!==0)ye=ye&1|2,k.flags|=128;else{if(S!==null&&(S.flags&128)!==0)e:for(S=k.child;S!==null;){if(S.tag===13)S.memoizedState!==null&&Sc(S,M,k);else if(S.tag===19)Sc(S,M,k);else if(S.child!==null){S.child.return=S,S=S.child;continue}if(S===k)break e;for(;S.sibling===null;){if(S.return===null||S.return===k)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}ye&=1}if(rn(dn,ye),(k.mode&1)===0)k.memoizedState=null;else switch(ve){case"forwards":for(M=k.child,ve=null;M!==null;)S=M.alternate,S!==null&&na(S)===null&&(ve=M),M=M.sibling;M=ve,M===null?(ve=k.child,k.child=null):(ve=M.sibling,M.sibling=null),Hl(k,!1,ve,M,xe);break;case"backwards":for(M=null,ve=k.child,k.child=null;ve!==null;){if(S=ve.alternate,S!==null&&na(S)===null){k.child=ve;break}S=ve.sibling,ve.sibling=M,M=ve,ve=S}Hl(k,!0,M,null,xe);break;case"together":Hl(k,!1,null,null,void 0);break;default:k.memoizedState=null}return k.child}function ca(S,k){(k.mode&1)===0&&S!==null&&(S.alternate=null,k.alternate=null,k.flags|=2)}function mr(S,k,M){if(S!==null&&(k.dependencies=S.dependencies),Xr|=k.lanes,(M&k.childLanes)===0)return null;if(S!==null&&k.child!==S.child)throw Error(e(153));if(k.child!==null){for(S=k.child,M=Br(S,S.pendingProps),k.child=M,M.return=k;S.sibling!==null;)S=S.sibling,M=M.sibling=Br(S,S.pendingProps),M.return=k;M.sibling=null}return k.child}function If(S,k,M){switch(k.tag){case 3:mc(k),yi();break;case 5:Fu(k);break;case 1:Ln(k.type)&&qo(k);break;case 4:wl(k,k.stateNode.containerInfo);break;case 10:var ye=k.type._context,ve=k.memoizedProps.value;rn(Zo,ye._currentValue),ye._currentValue=ve;break;case 13:if(ye=k.memoizedState,ye!==null)return ye.dehydrated!==null?(rn(dn,dn.current&1),k.flags|=128,null):(M&k.child.childLanes)!==0?vc(S,k,M):(rn(dn,dn.current&1),S=mr(S,k,M),S!==null?S.sibling:null);rn(dn,dn.current&1);break;case 19:if(ye=(M&k.childLanes)!==0,(S.flags&128)!==0){if(ye)return Oc(S,k,M);k.flags|=128}if(ve=k.memoizedState,ve!==null&&(ve.rendering=null,ve.tail=null,ve.lastEffect=null),rn(dn,dn.current),ye)break;return null;case 22:case 23:return k.lanes=0,hc(S,k,M)}return mr(S,k,M)}var wc,Wl,$c,xc;wc=function(S,k){for(var M=k.child;M!==null;){if(M.tag===5||M.tag===6)S.appendChild(M.stateNode);else if(M.tag!==4&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===k)break;for(;M.sibling===null;){if(M.return===null||M.return===k)return;M=M.return}M.sibling.return=M.return,M=M.sibling}},Wl=function(){},$c=function(S,k,M,ye){var ve=S.memoizedProps;if(ve!==ye){S=k.stateNode,Jr(ar.current);var xe=null;switch(M){case"input":ve=Wt(S,ve),ye=Wt(S,ye),xe=[];break;case"select":ve=Me({},ve,{value:void 0}),ye=Me({},ye,{value:void 0}),xe=[];break;case"textarea":ve=vn(S,ve),ye=vn(S,ye),xe=[];break;default:typeof ve.onClick!="function"&&typeof ye.onClick=="function"&&(S.onclick=Uo)}st(M,ye);var Le;M=null;for(rt in ve)if(!ye.hasOwnProperty(rt)&&ve.hasOwnProperty(rt)&&ve[rt]!=null)if(rt==="style"){var He=ve[rt];for(Le in He)He.hasOwnProperty(Le)&&(M||(M={}),M[Le]="")}else rt!=="dangerouslySetInnerHTML"&&rt!=="children"&&rt!=="suppressContentEditableWarning"&&rt!=="suppressHydrationWarning"&&rt!=="autoFocus"&&(c.hasOwnProperty(rt)?xe||(xe=[]):(xe=xe||[]).push(rt,null));for(rt in ye){var qe=ye[rt];if(He=ve?.[rt],ye.hasOwnProperty(rt)&&qe!==He&&(qe!=null||He!=null))if(rt==="style")if(He){for(Le in He)!He.hasOwnProperty(Le)||qe&&qe.hasOwnProperty(Le)||(M||(M={}),M[Le]="");for(Le in qe)qe.hasOwnProperty(Le)&&He[Le]!==qe[Le]&&(M||(M={}),M[Le]=qe[Le])}else M||(xe||(xe=[]),xe.push(rt,M)),M=qe;else rt==="dangerouslySetInnerHTML"?(qe=qe?qe.__html:void 0,He=He?He.__html:void 0,qe!=null&&He!==qe&&(xe=xe||[]).push(rt,qe)):rt==="children"?typeof qe!="string"&&typeof qe!="number"||(xe=xe||[]).push(rt,""+qe):rt!=="suppressContentEditableWarning"&&rt!=="suppressHydrationWarning"&&(c.hasOwnProperty(rt)?(qe!=null&&rt==="onScroll"&&ln("scroll",S),xe||He===qe||(xe=[])):(xe=xe||[]).push(rt,qe))}M&&(xe=xe||[]).push("style",M);var rt=xe;(k.updateQueue=rt)&&(k.flags|=4)}},xc=function(S,k,M,ye){M!==ye&&(k.flags|=4)};function ao(S,k){if(!cn)switch(S.tailMode){case"hidden":k=S.tail;for(var M=null;k!==null;)k.alternate!==null&&(M=k),k=k.sibling;M===null?S.tail=null:M.sibling=null;break;case"collapsed":M=S.tail;for(var ye=null;M!==null;)M.alternate!==null&&(ye=M),M=M.sibling;ye===null?k||S.tail===null?S.tail=null:S.tail.sibling=null:ye.sibling=null}}function Pn(S){var k=S.alternate!==null&&S.alternate.child===S.child,M=0,ye=0;if(k)for(var ve=S.child;ve!==null;)M|=ve.lanes|ve.childLanes,ye|=ve.subtreeFlags&14680064,ye|=ve.flags&14680064,ve.return=S,ve=ve.sibling;else for(ve=S.child;ve!==null;)M|=ve.lanes|ve.childLanes,ye|=ve.subtreeFlags,ye|=ve.flags,ve.return=S,ve=ve.sibling;return S.subtreeFlags|=ye,S.childLanes=M,k}function Pf(S,k,M){var ye=k.pendingProps;switch(fl(k),k.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pn(k),null;case 1:return Ln(k.type)&&Wo(),Pn(k),null;case 3:return ye=k.stateNode,vi(),sn(Fn),sn(En),Tl(),ye.pendingContext&&(ye.context=ye.pendingContext,ye.pendingContext=null),(S===null||S.child===null)&&(Yo(k)?k.flags|=4:S===null||S.memoizedState.isDehydrated&&(k.flags&256)===0||(k.flags|=1024,Zn!==null&&(ns(Zn),Zn=null))),Wl(S,k),Pn(k),null;case 5:$l(k);var ve=Jr(to.current);if(M=k.type,S!==null&&k.stateNode!=null)$c(S,k,M,ye,ve),S.ref!==k.ref&&(k.flags|=512,k.flags|=2097152);else{if(!ye){if(k.stateNode===null)throw Error(e(166));return Pn(k),null}if(S=Jr(ar.current),Yo(k)){ye=k.stateNode,M=k.type;var xe=k.memoizedProps;switch(ye[or]=k,ye[Yi]=xe,S=(k.mode&1)!==0,M){case"dialog":ln("cancel",
vendor: 25,745 bytes, line 9
9ye),ln("close",ye);break;case"iframe":case"object":case"embed":ln("load",ye);break;case"video":case"audio":for(ve=0;ve<Gi.length;ve++)ln(Gi[ve],ye);break;case"source":ln("error",ye);break;case"img":case"image":case"link":ln("error",ye),ln("load",ye);break;case"details":ln("toggle",ye);break;case"input":an(ye,xe),ln("invalid",ye);break;case"select":ye._wrapperState={wasMultiple:!!xe.multiple},ln("invalid",ye);break;case"textarea":nn(ye,xe),ln("invalid",ye)}st(M,xe),ve=null;for(var Le in xe)if(xe.hasOwnProperty(Le)){var He=xe[Le];Le==="children"?typeof He=="string"?ye.textContent!==He&&(xe.suppressHydrationWarning!==!0&&zo(ye.textContent,He,S),ve=["children",He]):typeof He=="number"&&ye.textContent!==""+He&&(xe.suppressHydrationWarning!==!0&&zo(ye.textContent,He,S),ve=["children",""+He]):c.hasOwnProperty(Le)&&He!=null&&Le==="onScroll"&&ln("scroll",ye)}switch(M){case"input":Ht(ye),Jt(ye,xe,!0);break;case"textarea":Ht(ye),Ut(ye);break;case"select":case"option":break;default:typeof xe.onClick=="function"&&(ye.onclick=Uo)}ye=ve,k.updateQueue=ye,ye!==null&&(k.flags|=4)}else{Le=ve.nodeType===9?ve:ve.ownerDocument,S==="http://www.w3.org/1999/xhtml"&&(S=it(M)),S==="http://www.w3.org/1999/xhtml"?M==="script"?(S=Le.createElement("div"),S.innerHTML="<script><\/script>",S=S.removeChild(S.firstChild)):typeof ye.is=="string"?S=Le.createElement(M,{is:ye.is}):(S=Le.createElement(M),M==="select"&&(Le=S,ye.multiple?Le.multiple=!0:ye.size&&(Le.size=ye.size))):S=Le.createElementNS(S,M),S[or]=k,S[Yi]=ye,wc(S,k,!1,!1),k.stateNode=S;e:{switch(Le=ft(M,ye),M){case"dialog":ln("cancel",S),ln("close",S),ve=ye;break;case"iframe":case"object":case"embed":ln("load",S),ve=ye;break;case"video":case"audio":for(ve=0;ve<Gi.length;ve++)ln(Gi[ve],S);ve=ye;break;case"source":ln("error",S),ve=ye;break;case"img":case"image":case"link":ln("error",S),ln("load",S),ve=ye;break;case"details":ln("toggle",S),ve=ye;break;case"input":an(S,ye),ve=Wt(S,ye),ln("invalid",S);break;case"option":ve=ye;break;case"select":S._wrapperState={wasMultiple:!!ye.multiple},ve=Me({},ye,{value:void 0}),ln("invalid",S);break;case"textarea":nn(S,ye),ve=vn(S,ye),ln("invalid",S);break;default:ve=ye}st(M,ve),He=ve;for(xe in He)if(He.hasOwnProperty(xe)){var qe=He[xe];xe==="style"?ot(S,qe):xe==="dangerouslySetInnerHTML"?(qe=qe?qe.__html:void 0,qe!=null&&Et(S,qe)):xe==="children"?typeof qe=="string"?(M!=="textarea"||qe!=="")&&Nt(S,qe):typeof qe=="number"&&Nt(S,""+qe):xe!=="suppressContentEditableWarning"&&xe!=="suppressHydrationWarning"&&xe!=="autoFocus"&&(c.hasOwnProperty(xe)?qe!=null&&xe==="onScroll"&&ln("scroll",S):qe!=null&&Ce(S,xe,qe,Le))}switch(M){case"input":Ht(S),Jt(S,ye,!1);break;case"textarea":Ht(S),Ut(S);break;case"option":ye.value!=null&&S.setAttribute("value",""+pt(ye.value));break;case"select":S.multiple=!!ye.multiple,xe=ye.value,xe!=null?yn(S,!!ye.multiple,xe,!1):ye.defaultValue!=null&&yn(S,!!ye.multiple,ye.defaultValue,!0);break;default:typeof ve.onClick=="function"&&(S.onclick=Uo)}switch(M){case"button":case"input":case"select":case"textarea":ye=!!ye.autoFocus;break e;case"img":ye=!0;break e;default:ye=!1}}ye&&(k.flags|=4)}k.ref!==null&&(k.flags|=512,k.flags|=2097152)}return Pn(k),null;case 6:if(S&&k.stateNode!=null)xc(S,k,S.memoizedProps,ye);else{if(typeof ye!="string"&&k.stateNode===null)throw Error(e(166));if(M=Jr(to.current),Jr(ar.current),Yo(k)){if(ye=k.stateNode,M=k.memoizedProps,ye[or]=k,(xe=ye.nodeValue!==M)&&(S=Vn,S!==null))switch(S.tag){case 3:zo(ye.nodeValue,M,(S.mode&1)!==0);break;case 5:S.memoizedProps.suppressHydrationWarning!==!0&&zo(ye.nodeValue,M,(S.mode&1)!==0)}xe&&(k.flags|=4)}else ye=(M.nodeType===9?M:M.ownerDocument).createTextNode(ye),ye[or]=k,k.stateNode=ye}return Pn(k),null;case 13:if(sn(dn),ye=k.memoizedState,S===null||S.memoizedState!==null&&S.memoizedState.dehydrated!==null){if(cn&&zn!==null&&(k.mode&1)!==0&&(k.flags&128)===0)Cu(),yi(),k.flags|=98560,xe=!1;else if(xe=Yo(k),ye!==null&&ye.dehydrated!==null){if(S===null){if(!xe)throw Error(e(318));if(xe=k.memoizedState,xe=xe!==null?xe.dehydrated:null,!xe)throw Error(e(317));xe[or]=k}else yi(),(k.flags&128)===0&&(k.memoizedState=null),k.flags|=4;Pn(k),xe=!1}else Zn!==null&&(ns(Zn),Zn=null),xe=!0;if(!xe)return k.flags&65536?k:null}return(k.flags&128)!==0?(k.lanes=M,k):(ye=ye!==null,ye!==(S!==null&&S.memoizedState!==null)&&ye&&(k.child.flags|=8192,(k.mode&1)!==0&&(S===null||(dn.current&1)!==0?wn===0&&(wn=3):as())),k.updateQueue!==null&&(k.flags|=4),Pn(k),null);case 4:return vi(),Wl(S,k),S===null&&Ki(k.stateNode.containerInfo),Pn(k),null;case 10:return bl(k.type._context),Pn(k),null;case 17:return Ln(k.type)&&Wo(),Pn(k),null;case 19:if(sn(dn),xe=k.memoizedState,xe===null)return Pn(k),null;if(ye=(k.flags&128)!==0,Le=xe.rendering,Le===null)if(ye)ao(xe,!1);else{if(wn!==0||S!==null&&(S.flags&128)!==0)for(S=k.child;S!==null;){if(Le=na(S),Le!==null){for(k.flags|=128,ao(xe,!1),ye=Le.updateQueue,ye!==null&&(k.updateQueue=ye,k.flags|=4),k.subtreeFlags=0,ye=M,M=k.child;M!==null;)xe=M,S=ye,xe.flags&=14680066,Le=xe.alternate,Le===null?(xe.childLanes=0,xe.lanes=S,xe.child=null,xe.subtreeFlags=0,xe.memoizedProps=null,xe.memoizedState=null,xe.updateQueue=null,xe.dependencies=null,xe.stateNode=null):(xe.childLanes=Le.childLanes,xe.lanes=Le.lanes,xe.child=Le.child,xe.subtreeFlags=0,xe.deletions=null,xe.memoizedProps=Le.memoizedProps,xe.memoizedState=Le.memoizedState,xe.updateQueue=Le.updateQueue,xe.type=Le.type,S=Le.dependencies,xe.dependencies=S===null?null:{lanes:S.lanes,firstContext:S.firstContext}),M=M.sibling;return rn(dn,dn.current&1|2),k.child}S=S.sibling}xe.tail!==null&&mn()>_i&&(k.flags|=128,ye=!0,ao(xe,!1),k.lanes=4194304)}else{if(!ye)if(S=na(Le),S!==null){if(k.flags|=128,ye=!0,M=S.updateQueue,M!==null&&(k.updateQueue=M,k.flags|=4),ao(xe,!0),xe.tail===null&&xe.tailMode==="hidden"&&!Le.alternate&&!cn)return Pn(k),null}else 2*mn()-xe.renderingStartTime>_i&&M!==1073741824&&(k.flags|=128,ye=!0,ao(xe,!1),k.lanes=4194304);xe.isBackwards?(Le.sibling=k.child,k.child=Le):(M=xe.last,M!==null?M.sibling=Le:k.child=Le,xe.last=Le)}return xe.tail!==null?(k=xe.tail,xe.rendering=k,xe.tail=k.sibling,xe.renderingStartTime=mn(),k.sibling=null,M=dn.current,rn(dn,ye?M&1|2:M&1),k):(Pn(k),null);case 22:case 23:return os(),ye=k.memoizedState!==null,S!==null&&S.memoizedState!==null!==ye&&(k.flags|=8192),ye&&(k.mode&1)!==0?(Un&1073741824)!==0&&(Pn(k),k.subtreeFlags&6&&(k.flags|=8192)):Pn(k),null;case 24:return null;case 25:return null}throw Error(e(156,k.tag))}function Af(S,k){switch(fl(k),k.tag){case 1:return Ln(k.type)&&Wo(),S=k.flags,S&65536?(k.flags=S&-65537|128,k):null;case 3:return vi(),sn(Fn),sn(En),Tl(),S=k.flags,(S&65536)!==0&&(S&128)===0?(k.flags=S&-65537|128,k):null;case 5:return $l(k),null;case 13:if(sn(dn),S=k.memoizedState,S!==null&&S.dehydrated!==null){if(k.alternate===null)throw Error(e(340));yi()}return S=k.flags,S&65536?(k.flags=S&-65537|128,k):null;case 19:return sn(dn),null;case 4:return vi(),null;case 10:return bl(k.type._context),null;case 22:case 23:return os(),null;case 24:return null;default:return null}}var da=!1,An=!1,Rf=typeof WeakSet=="function"?WeakSet:Set,kt=null;function Oi(S,k){var M=S.ref;if(M!==null)if(typeof M=="function")try{M(null)}catch(ye){hn(S,k,ye)}else M.current=null}function ql(S,k,M){try{M()}catch(ye){hn(S,k,ye)}}var Tc=!1;function Nf(S,k){if(rl=Po,S=nu(),Ja(S)){if("selectionStart"in S)var M={start:S.selectionStart,end:S.selectionEnd};else e:{M=(M=S.ownerDocument)&&M.defaultView||window;var ye=M.getSelection&&M.getSelection();if(ye&&ye.rangeCount!==0){M=ye.anchorNode;var ve=ye.anchorOffset,xe=ye.focusNode;ye=ye.focusOffset;try{M.nodeType,xe.nodeType}catch{M=null;break e}var Le=0,He=-1,qe=-1,rt=0,yt=0,mt=S,ht=null;t:for(;;){for(var $t;mt!==M||ve!==0&&mt.nodeType!==3||(He=Le+ve),mt!==xe||ye!==0&&mt.nodeType!==3||(qe=Le+ye),mt.nodeType===3&&(Le+=mt.nodeValue.length),($t=mt.firstChild)!==null;)ht=mt,mt=$t;for(;;){if(mt===S)break t;if(ht===M&&++rt===ve&&(He=Le),ht===xe&&++yt===ye&&(qe=Le),($t=mt.nextSibling)!==null)break;mt=ht,ht=mt.parentNode}mt=$t}M=He===-1||qe===-1?null:{start:He,end:qe}}else M=null}M=M||{start:0,end:0}}else M=null;for(il={focusedElem:S,selectionRange:M},Po=!1,kt=k;kt!==null;)if(k=kt,S=k.child,(k.subtreeFlags&1028)!==0&&S!==null)S.return=k,kt=S;else for(;kt!==null;){k=kt;try{var It=k.alternate;if((k.flags&1024)!==0)switch(k.tag){case 0:case 11:case 15:break;case 1:if(It!==null){var Pt=It.memoizedProps,bn=It.memoizedState,Ze=k.stateNode,Ye=Ze.getSnapshotBeforeUpdate(k.elementType===k.type?Pt:Qn(k.type,Pt),bn);Ze.__reactInternalSnapshotBeforeUpdate=Ye}break;case 3:var et=k.stateNode.containerInfo;et.nodeType===1?et.textContent="":et.nodeType===9&&et.documentElement&&et.removeChild(et.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(e(163))}}catch(bt){hn(k,k.return,bt)}if(S=k.sibling,S!==null){S.return=k.return,kt=S;break}kt=k.return}return It=Tc,Tc=!1,It}function lo(S,k,M){var ye=k.updateQueue;if(ye=ye!==null?ye.lastEffect:null,ye!==null){var ve=ye=ye.next;do{if((ve.tag&S)===S){var xe=ve.destroy;ve.destroy=void 0,xe!==void 0&&ql(k,M,xe)}ve=ve.next}while(ve!==ye)}}function fa(S,k){if(k=k.updateQueue,k=k!==null?k.lastEffect:null,k!==null){var M=k=k.next;do{if((M.tag&S)===S){var ye=M.create;M.destroy=ye()}M=M.next}while(M!==k)}}function Gl(S){var k=S.ref;if(k!==null){var M=S.stateNode;switch(S.tag){case 5:S=M;break;default:S=M}typeof k=="function"?k(S):k.current=S}}function Cc(S){var k=S.alternate;k!==null&&(S.alternate=null,Cc(k)),S.child=null,S.deletions=null,S.sibling=null,S.tag===5&&(k=S.stateNode,k!==null&&(delete k[or],delete k[Yi],delete k[sl],delete k[yf],delete k[gf])),S.stateNode=null,S.return=null,S.dependencies=null,S.memoizedProps=null,S.memoizedState=null,S.pendingProps=null,S.stateNode=null,S.updateQueue=null}function kc(S){return S.tag===5||S.tag===3||S.tag===4}function Ec(S){e:for(;;){for(;S.sibling===null;){if(S.return===null||kc(S.return))return null;S=S.return}for(S.sibling.return=S.return,S=S.sibling;S.tag!==5&&S.tag!==6&&S.tag!==18;){if(S.flags&2||S.child===null||S.tag===4)continue e;S.child.return=S,S=S.child}if(!(S.flags&2))return S.stateNode}}function Kl(S,k,M){var ye=S.tag;if(ye===5||ye===6)S=S.stateNode,k?M.nodeType===8?M.parentNode.insertBefore(S,k):M.insertBefore(S,k):(M.nodeType===8?(k=M.parentNode,k.insertBefore(S,M)):(k=M,k.appendChild(S)),M=M._reactRootContainer,M!=null||k.onclick!==null||(k.onclick=Uo));else if(ye!==4&&(S=S.child,S!==null))for(Kl(S,k,M),S=S.sibling;S!==null;)Kl(S,k,M),S=S.sibling}function Jl(S,k,M){var ye=S.tag;if(ye===5||ye===6)S=S.stateNode,k?M.insertBefore(S,k):M.appendChild(S);else if(ye!==4&&(S=S.child,S!==null))for(Jl(S,k,M),S=S.sibling;S!==null;)Jl(S,k,M),S=S.sibling}var Tn=null,er=!1;function Nr(S,k,M){for(M=M.child;M!==null;)Ic(S,k,M),M=M.sibling}function Ic(S,k,M){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(xo,M)}catch{}switch(M.tag){case 5:An||Oi(M,k);case 6:var ye=Tn,ve=er;Tn=null,Nr(S,k,M),Tn=ye,er=ve,Tn!==null&&(er?(S=Tn,M=M.stateNode,S.nodeType===8?S.parentNode.removeChild(M):S.removeChild(M)):Tn.removeChild(M.stateNode));break;case 18:Tn!==null&&(er?(S=Tn,M=M.stateNode,S.nodeType===8?ll(S.parentNode,M):S.nodeType===1&&ll(S,M),Bi(S)):ll(Tn,M.stateNode));break;case 4:ye=Tn,ve=er,Tn=M.stateNode.containerInfo,er=!0,Nr(S,k,M),Tn=ye,er=ve;break;case 0:case 11:case 14:case 15:if(!An&&(ye=M.updateQueue,ye!==null&&(ye=ye.lastEffect,ye!==null))){ve=ye=ye.next;do{var xe=ve,Le=xe.destroy;xe=xe.tag,Le!==void 0&&((xe&2)!==0||(xe&4)!==0)&&ql(M,k,Le),ve=ve.next}while(ve!==ye)}Nr(S,k,M);break;case 1:if(!An&&(Oi(M,k),ye=M.stateNode,typeof ye.componentWillUnmount=="function"))try{ye.props=M.memoizedProps,ye.state=M.memoizedState,ye.componentWillUnmount()}catch(He){hn(M,k,He)}Nr(S,k,M);break;case 21:Nr(S,k,M);break;case 22:M.mode&1?(An=(ye=An)||M.memoizedState!==null,Nr(S,k,M),An=ye):Nr(S,k,M);break;default:Nr(S,k,M)}}function Pc(S){var k=S.updateQueue;if(k!==null){S.updateQueue=null;var M=S.stateNode;M===null&&(M=S.stateNode=new Rf),k.forEach(function(ye){var ve=Uf.bind(null,S,ye);M.has(ye)||(M.add(ye),ye.then(ve,ve))})}}function tr(S,k){var M=k.deletions;if(M!==null)for(var ye=0;ye<M.length;ye++){var ve=M[ye];try{var xe=S,Le=k,He=Le;e:for(;He!==null;){switch(He.tag){case 5:Tn=He.stateNode,er=!1;break e;case 3:Tn=He.stateNode.containerInfo,er=!0;break e;case 4:Tn=He.stateNode.containerInfo,er=!0;break e}He=He.return}if(Tn===null)throw Error(e(160));Ic(xe,Le,ve),Tn=null,er=!1;var qe=ve.alternate;qe!==null&&(qe.return=null),ve.return=null}catch(rt){hn(ve,k,rt)}}if(k.subtreeFlags&12854)for(k=k.child;k!==null;)Ac(k,S),k=k.sibling}function Ac(S,k){var M=S.alternate,ye=S.flags;switch(S.tag){case 0:case 11:case 14:case 15:if(tr(k,S),sr(S),ye&4){try{lo(3,S,S.return),fa(3,S)}catch(Pt){hn(S,S.return,Pt)}try{lo(5,S,S.return)}catch(Pt){hn(S,S.return,Pt)}}break;case 1:tr(k,S),sr(S),ye&512&&M!==null&&Oi(M,M.return);break;case 5:if(tr(k,S),sr(S),ye&512&&M!==null&&Oi(M,M.return),S.flags&32){var ve=S.stateNode;try{Nt(ve,"")}catch(Pt){hn(S,S.return,Pt)}}if(ye&4&&(ve=S.stateNode,ve!=null)){var xe=S.memoizedProps,Le=M!==null?M.memoizedProps:xe,He=S.type,qe=S.updateQueue;if(S.updateQueue=null,qe!==null)try{He==="input"&&xe.type==="radio"&&xe.name!=null&&qt(ve,xe),ft(He,Le);var rt=ft(He,xe);for(Le=0;Le<qe.length;Le+=2){var yt=qe[Le],mt=qe[Le+1];yt==="style"?ot(ve,mt):yt==="dangerouslySetInnerHTML"?Et(ve,mt):yt==="children"?Nt(ve,mt):Ce(ve,yt,mt,rt)}switch(He){case"input":zt(ve,xe);break;case"textarea":pn(ve,xe);break;case"select":var ht=ve._wrapperState.wasMultiple;ve._wrapperState.wasMultiple=!!xe.multiple;var $t=xe.value;$t!=null?yn(ve,!!xe.multiple,$t,!1):ht!==!!xe.multiple&&(xe.defaultValue!=null?yn(ve,!!xe.multiple,xe.defaultValue,!0):yn(ve,!!xe.multiple,xe.multiple?[]:"",!1))}ve[Yi]=xe}catch(Pt){hn(S,S.return,Pt)}}break;case 6:if(tr(k,S),sr(S),ye&4){if(S.stateNode===null)throw Error(e(162));ve=S.stateNode,xe=S.memoizedProps;try{ve.nodeValue=xe}catch(Pt){hn(S,S.return,Pt)}}break;case 3:if(tr(k,S),sr(S),ye&4&&M!==null&&M.memoizedState.isDehydrated)try{Bi(k.containerInfo)}catch(Pt){hn(S,S.return,Pt)}break;case 4:tr(k,S),sr(S);break;case 13:tr(k,S),sr(S),ve=S.child,ve.flags&8192&&(xe=ve.memoizedState!==null,ve.stateNode.isHidden=xe,!xe||ve.alternate!==null&&ve.alternate.memoizedState!==null||(Zl=mn())),ye&4&&Pc(S);break;case 22:if(yt=M!==null&&M.memoizedState!==null,S.mode&1?(An=(rt=An)||yt,tr(k,S),An=rt):tr(k,S),sr(S),ye&8192){if(rt=S.memoizedState!==null,(S.stateNode.isHidden=rt)&&!yt&&(S.mode&1)!==0)for(kt=S,yt=S.child;yt!==null;){for(mt=kt=yt;kt!==null;){switch(ht=kt,$t=ht.child,ht.tag){case 0:case 11:case 14:case 15:lo(4,ht,ht.return);break;case 1:Oi(ht,ht.return);var It=ht.stateNode;if(typeof It.componentWillUnmount=="function"){ye=ht,M=ht.return;try{k=ye,It.props=k.memoizedProps,It.state=k.memoizedState,It.componentWillUnmount()}catch(Pt){hn(ye,M,Pt)}}break;case 5:Oi(ht,ht.return);break;case 22:if(ht.memoizedState!==null){Fc(mt);continue}}$t!==null?($t.return=ht,kt=$t):Fc(mt)}yt=yt.sibling}e:for(yt=null,mt=S;;){if(mt.tag===5){if(yt===null){yt=mt;try{ve=mt.stateNode,rt?(xe=ve.style,typeof xe.setProperty=="function"?xe.setProperty("display","none","important"):xe.display="none"):(He=mt.stateNode,qe=mt.memoizedProps.style,Le=qe!=null&&qe.hasOwnProperty("display")?qe.display:null,He.style.display=Ot("display",Le))}catch(Pt){hn(S,S.return,Pt)}}}else if(mt.tag===6){if(yt===null)try{mt.stateNode.nodeValue=rt?"":mt.memoizedProps}catch(Pt){hn(S,S.return,Pt)}}else if((mt.tag!==22&&mt.tag!==23||mt.memoizedState===null||mt===S)&&mt.child!==null){mt.child.return=mt,mt=mt.child;continue}if(mt===S)break e;for(;mt.sibling===null;){if(mt.return===null||mt.return===S)break e;yt===mt&&(yt=null),mt=mt.return}yt===mt&&(yt=null),mt.sibling.return=mt.return,mt=mt.sibling}}break;case 19:tr(k,S),sr(S),ye&4&&Pc(S);break;case 21:break;default:tr(k,S),sr(S)}}function sr(S){var k=S.flags;if(k&2){try{e:{for(var M=S.return;M!==null;){if(kc(M)){var ye=M;break e}M=M.return}throw Error(e(160))}switch(ye.tag){case 5:var ve=ye.stateNode;ye.flags&32&&(Nt(ve,""),ye.flags&=-33);var xe=Ec(S);Jl(S,xe,ve);break;case 3:case 4:var Le=ye.stateNode.containerInfo,He=Ec(S);Kl(S,He,Le);break;default:throw Error(e(161))}}catch(qe){hn(S,S.return,qe)}S.flags&=-3}k&4096&&(S.flags&=-4097)}function Ff(S,k,M){kt=S,Rc(S)}function Rc(S,k,M){for(var ye=(S.mode&1)!==0;kt!==null;){var ve=kt,xe=ve.child;if(ve.tag===22&&ye){var Le=ve.memoizedState!==null||da;if(!Le){var He=ve.alternate,qe=He!==null&&He.memoizedState!==null||An;He=da;var rt=An;if(da=Le,(An=qe)&&!rt)for(kt=ve;kt!==null;)Le=kt,qe=Le.child,Le.tag===22&&Le.memoizedState!==null?Lc(ve):qe!==null?(qe.return=Le,kt=qe):Lc(ve);for(;xe!==null;)kt=xe,Rc(xe),xe=xe.sibling;kt=ve,da=He,An=rt}Nc(S)}else(ve.subtreeFlags&8772)!==0&&xe!==null?(xe.return=ve,kt=xe):Nc(S)}}function Nc(S){for(;kt!==null;){var k=kt;if((k.flags&8772)!==0){var M=k.alternate;try{if((k.flags&8772)!==0)switch(k.tag){case 0:case 11:case 15:An||fa(5,k);break;case 1:var ye=k.stateNode;if(k.flags&4&&!An)if(M===null)ye.componentDidMount();else{var ve=k.elementType===k.type?M.memoizedProps:Qn(k.type,M.memoizedProps);ye.componentDidUpdate(ve,M.memoizedState,ye.__reactInternalSnapshotBeforeUpdate)}var xe=k.updateQueue;xe!==null&&Nu(k,xe,ye);break;case 3:var Le=k.updateQueue;if(Le!==null){if(M=null,k.child!==null)switch(k.child.tag){case 5:M=k.child.stateNode;break;case 1:M=k.child.stateNode}Nu(k,Le,M)}break;case 5:var He=k.stateNode;if(M===null&&k.flags&4){M=He;var qe=k.memoizedProps;switch(k.type){case"button":case"input":case"select":case"textarea":qe.autoFocus&&M.focus();break;case"img":qe.src&&(M.src=qe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(k.memoizedState===null){var rt=k.alternate;if(rt!==null){var yt=rt.memoizedState;if(yt!==null){var mt=yt.dehydrated;mt!==null&&Bi(mt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(e(163))}An||k.flags&512&&Gl(k)}catch(ht){hn(k,k.return,ht)}}if(k===S){kt=null;break}if(M=k.sibling,M!==null){M.return=k.return,kt=M;break}kt=k.return}}function Fc(S){for(;kt!==null;){var k=kt;if(k===S){kt=null;break}var M=k.sibling;if(M!==null){M.return=k.return,kt=M;break}kt=k.return}}function Lc(S){for(;kt!==null;){var k=kt;try{switch(k.tag){case 0:case 11:case 15:var M=k.return;try{fa(4,k)}catch(qe){hn(k,M,qe)}break;case 1:var ye=k.stateNode;if(typeof ye.componentDidMount=="function"){var ve=k.return;try{ye.componentDidMount()}catch(qe){hn(k,ve,qe)}}var xe=k.return;try{Gl(k)}catch(qe){hn(k,xe,qe)}break;case 5:var Le=k.return;try{Gl(k)}catch(qe){hn(k,Le,qe)}}}catch(qe){hn(k,k.return,qe)}if(k===S){kt=null;break}var He=k.sibling;if(He!==null){He.return=k.return,kt=He;break}kt=k.return}}var Lf=Math.ceil,pa=Ie.ReactCurrentDispatcher,Yl=Ie.ReactCurrentOwner,Kn=Ie.ReactCurrentBatchConfig,Kt=0,$n=null,Sn=null,Cn=0,Un=0,wi=Er(0),wn=0,so=null,Xr=0,ha=0,Xl=0,uo=null,Dn=null,Zl=0,_i=1/0,br=null,ya=!1,Ql=null,Fr=null,ga=!1,Lr=null,ma=0,co=0,es=null,ba=-1,va=0;function Nn(){return(Kt&6)!==0?mn():ba!==-1?ba:ba=mn()}function Mr(S){return(S.mode&1)===0?1:(Kt&2)!==0&&Cn!==0?Cn&-Cn:bf.transition!==null?(va===0&&(va=Cs()),va):(S=tn,S!==0||(S=window.event,S=S===void 0?16:Ls(S.type)),S)}function nr(S,k,M,ye){if(50<co)throw co=0,es=null,Error(e(185));Ni(S,M,ye),((Kt&2)===0||S!==$n)&&(S===$n&&((Kt&2)===0&&(ha|=M),wn===4&&Dr(S,Cn)),Bn(S,ye),M===1&&Kt===0&&(k.mode&1)===0&&(_i=mn()+500,Go&&Pr()))}function Bn(S,k){var M=S.callbackNode;gd(S,k);var ye=ko(S,S===$n?Cn:0);if(ye===0)M!==null&&$s(M),S.callbackNode=null,S.callbackPriority=0;else if(k=ye&-ye,S.callbackPriority!==k){if(M!=null&&$s(M),k===1)S.tag===0?mf(Dc.bind(null,S)):Ou(Dc.bind(null,S)),pf(function(){(Kt&6)===0&&Pr()}),M=null;else{switch(ks(ye)){case 1:M=Aa;break;case 4:M=xs;break;case 16:M=$o;break;case 536870912:M=Ts;break;default:M=$o}M=qc(M,Mc.bind(null,S))}S.callbackPriority=k,S.callbackNode=M}}function Mc(S,k){if(ba=-1,va=0,(Kt&6)!==0)throw Error(e(327));var M=S.callbackNode;if($i()&&S.callbackNode!==M)return null;var ye=ko(S,S===$n?Cn:0);if(ye===0)return null;if((ye&30)!==0||(ye&S.expiredLanes)!==0||k)k=Sa(S,ye);else{k=ye;var ve=Kt;Kt|=2;var xe=jc();($n!==S||Cn!==k)&&(br=null,_i=mn()+500,Qr(S,k));do try{Bf();break}catch(He){Bc(S,He)}while(!0);ml(),pa.current=xe,Kt=ve,Sn!==null?k=0:($n=null,Cn=0,k=wn)}if(k!==0){if(k===2&&(ve=Ra(S),ve!==0&&(ye=ve,k=ts(S,ve))),k===1)throw M=so,Qr(S,0),Dr(S,ye),Bn(S,mn()),M;if(k===6)Dr(S,ye);else{if(ve=S.current.alternate,(ye&30)===0&&!Mf(ve)&&(k=Sa(S,ye),k===2&&(xe=Ra(S),xe!==0&&(ye=xe,k=ts(S,xe))),k===1))throw M=so,Qr(S,0),Dr(S,ye),Bn(S,mn()),M;switch(S.finishedWork=ve,S.finishedLanes=ye,k){case 0:case 1:throw Error(e(345));case 2:ei(S,Dn,br);break;case 3:if(Dr(S,ye),(ye&130023424)===ye&&(k=Zl+500-mn(),10<k)){if(ko(S,0)!==0)break;if(ve=S.suspendedLanes,(ve&ye)!==ye){Nn(),S.pingedLanes|=S.suspendedLanes&ve;break}S.timeoutHandle=al(ei.bind(null,S,Dn,br),k);break}ei(S,Dn,br);break;case 4:if(Dr(S,ye),(ye&4194240)===ye)break;for(k=S.eventTimes,ve=-1;0<ye;){var Le=31-Yn(ye);xe=1<<Le,Le=k[Le],Le>ve&&(ve=Le),ye&=~xe}if(ye=ve,ye=mn()-ye,ye=(120>ye?120:480>ye?480:1080>ye?1080:1920>ye?1920:3e3>ye?3e3:4320>ye?4320:1960*Lf(ye/1960))-ye,10<ye){S.timeoutHandle=al(ei.bind(null,S,Dn,br),ye);break}ei(S,Dn,br);break;case 5:ei(S,Dn,br);break;default:throw Error(e(329))}}}return Bn(S,mn()),S.callbackNode===M?Mc.bind(null,S):null}function ts(S,k){var M=uo;return S.current.memoizedState.isDehydrated&&(Qr(S,k).flags|=256),S=Sa(S,k),S!==2&&(k=Dn,Dn=M,k!==null&&ns(k)),S}function ns(S){Dn===null?Dn=S:Dn.push.apply(Dn,S)}function Mf(S){for(var k=S;;){if(k.flags&16384){var M=k.updateQueue;if(M!==null&&(M=M.stores,M!==null))for(var ye=0;ye<M.length;ye++){var ve=M[ye],xe=ve.getSnapshot;ve=ve.value;try{if(!Xn(xe(),ve))return!1}catch{return!1}}}if(M=k.child,k.subtreeFlags&16384&&M!==null)M.return=k,k=M;else{if(k===S)break;for(;k.sibling===null;){if(k.return===null||k.return===S)return!0;k=k.return}k.sibling.return=k.return,k=k.sibling}}return!0}function Dr(S,k){for(k&=~Xl,k&=~ha,S.suspendedLanes|=k,S.pingedLanes&=~k,S=S.expirationTimes;0<k;){var M=31-Yn(k),ye=1<<M;S[M]=-1,k&=~ye}}function Dc(S){if((Kt&6)!==0)throw Error(e(327));$i();var k=ko(S,0);if((k&1)===0)return Bn(S,mn()),null;var M=Sa(S,k);if(S.tag!==0&&M===2){var ye=Ra(S);ye!==0&&(k=ye,M=ts(S,ye))}if(M===1)throw M=so,Qr(S,0),Dr(S,k),Bn(S,mn()),M;if(M===6)throw Error(e(345));return S.finishedWork=S.current.alternate,S.finishedLanes=k,ei(S,Dn,br),Bn(S,mn()),null}function rs(S,k){var M=Kt;Kt|=1;try{return S(k)}finally{Kt=M,Kt===0&&(_i=mn()+500,Go&&Pr())}}function Zr(S){Lr!==null&&Lr.tag===0&&(Kt&6)===0&&$i();var k=Kt;Kt|=1;var M=Kn.transition,ye=tn;try{if(Kn.transition=null,tn=1,S)return S()}finally{tn=ye,Kn.transition=M,Kt=k,(Kt&6)===0&&Pr()}}function os(){Un=wi.current,sn(wi)}function Qr(S,k){S.finishedWork=null,S.finishedLanes=0;var M=S.timeoutHandle;if(M!==-1&&(S.timeoutHandle=-1,ff(M)),Sn!==null)for(M=Sn.return;M!==null;){var ye=M;switch(fl(ye),ye.tag){case 1:ye=ye.type.childContextTypes,ye!=null&&Wo();break;case 3:vi(),sn(Fn),sn(En),Tl();break;case 5:$l(ye);break;case 4:vi();break;case 13:sn(dn);break;case 19:sn(dn);break;case 10:bl(ye.type._context);break;case 22:case 23:os()}M=M.return}if($n=S,Sn=S=Br(S.current,null),Cn=Un=k,wn=0,so=null,Xl=ha=Xr=0,Dn=uo=null,Kr!==null){for(k=0;k<Kr.length;k++)if(M=Kr[k],ye=M.interleaved,ye!==null){M.interleaved=null;var ve=ye.next,xe=M.pending;if(xe!==null){var Le=xe.next;xe.next=ve,ye.next=Le}M.pending=ye}Kr=null}return S}function Bc(S,k){do{var M=Sn;try{if(ml(),ra.current=la,ia){for(var ye=fn.memoizedState;ye!==null;){var ve=ye.queue;ve!==null&&(ve.pending=null),ye=ye.next}ia=!1}if(Yr=0,_n=On=fn=null,no=!1,ro=0,Yl.current=null,M===null||M.return===null){wn=1,so=k,Sn=null;break}e:{var xe=S,Le=M.return,He=M,qe=k;if(k=Cn,He.flags|=32768,qe!==null&&typeof qe=="object"&&typeof qe.then=="function"){var rt=qe,yt=He,mt=yt.tag;if((yt.mode&1)===0&&(mt===0||mt===11||mt===15)){var ht=yt.alternate;ht?(yt.updateQueue=ht.updateQueue,yt.memoizedState=ht.memoizedState,yt.lanes=ht.lanes):(yt.updateQueue=null,yt.memoizedState=null)}var $t=uc(Le);if($t!==null){$t.flags&=-257,cc($t,Le,He,xe,k),$t.mode&1&&sc(xe,rt,k),k=$t,qe=rt;var It=k.updateQueue;if(It===null){var Pt=new Set;Pt.add(qe),k.updateQueue=Pt}else It.add(qe);break e}else{if((k&1)===0){sc(xe,rt,k),as();break e}qe=Error(e(426))}}else if(cn&&He.mode&1){var bn=uc(Le);if(bn!==null){(bn.flags&65536)===0&&(bn.flags|=256),cc(bn,Le,He,xe,k),yl(Si(qe,He));break e}}xe=qe=Si(qe,He),wn!==4&&(wn=2),uo===null?uo=[xe]:uo.push(xe),xe=Le;do{switch(xe.tag){case 3:xe.flags|=65536,k&=-k,xe.lanes|=k;var Ze=ac(xe,qe,k);Ru(xe,Ze);break e;case 1:He=qe;var Ye=xe.type,et=xe.stateNode;if((xe.flags&128)===0&&(typeof Ye.getDerivedStateFromError=="function"||et!==null&&typeof et.componentDidCatch=="function"&&(Fr===null||!Fr.has(et)))){xe.flags|=65536,k&=-k,xe.lanes|=k;var bt=lc(xe,He,k);Ru(xe,bt);break e}}xe=xe.return}while(xe!==null)}zc(M)}catch(Rt){k=Rt,Sn===M&&M!==null&&(Sn=M=M.return);continue}break}while(!0)}function jc(){var S=pa.current;return pa.current=la,S===null?la:S}function as(){(wn===0||wn===3||wn===2)&&(wn=4),$n===null||(Xr&268435455)===0&&(ha&268435455)===0||Dr($n,Cn)}function Sa(S,k){var M=Kt;Kt|=2;var ye=jc();($n!==S||Cn!==k)&&(br=null,Qr(S,k));do try{Df();break}catch(ve){Bc(S,ve)}while(!0);if(ml(),Kt=M,pa.current=ye,Sn!==null)throw Error(e(261));return $n=null,Cn=0,wn}function Df(){for(;Sn!==null;)Vc(Sn)}function Bf(){for(;Sn!==null&&!ld();)Vc(Sn)}function Vc(S){var k=Wc(S.alternate,S,Un);S.memoizedProps=S.pendingProps,k===null?zc(S):Sn=k,Yl.current=null}function zc(S){var k=S;do{var M=k.alternate;if(S=k.return,(k.flags&32768)===0){if(M=Pf(M,k,Un),M!==null){Sn=M;return}}else{if(M=Af(M,k),M!==null){M.flags&=32767,Sn=M;return}
vendor: 5,967 bytes, line 9
9if(S!==null)S.flags|=32768,S.subtreeFlags=0,S.deletions=null;else{wn=6,Sn=null;return}}if(k=k.sibling,k!==null){Sn=k;return}Sn=k=S}while(k!==null);wn===0&&(wn=5)}function ei(S,k,M){var ye=tn,ve=Kn.transition;try{Kn.transition=null,tn=1,jf(S,k,M,ye)}finally{Kn.transition=ve,tn=ye}return null}function jf(S,k,M,ye){do $i();while(Lr!==null);if((Kt&6)!==0)throw Error(e(327));M=S.finishedWork;var ve=S.finishedLanes;if(M===null)return null;if(S.finishedWork=null,S.finishedLanes=0,M===S.current)throw Error(e(177));S.callbackNode=null,S.callbackPriority=0;var xe=M.lanes|M.childLanes;if(md(S,xe),S===$n&&(Sn=$n=null,Cn=0),(M.subtreeFlags&2064)===0&&(M.flags&2064)===0||ga||(ga=!0,qc($o,function(){return $i(),null})),xe=(M.flags&15990)!==0,(M.subtreeFlags&15990)!==0||xe){xe=Kn.transition,Kn.transition=null;var Le=tn;tn=1;var He=Kt;Kt|=4,Yl.current=null,Nf(S,M),Ac(M,S),of(il),Po=!!rl,il=rl=null,S.current=M,Ff(M),sd(),Kt=He,tn=Le,Kn.transition=xe}else S.current=M;if(ga&&(ga=!1,Lr=S,ma=ve),xe=S.pendingLanes,xe===0&&(Fr=null),dd(M.stateNode),Bn(S,mn()),k!==null)for(ye=S.onRecoverableError,M=0;M<k.length;M++)ve=k[M],ye(ve.value,{componentStack:ve.stack,digest:ve.digest});if(ya)throw ya=!1,S=Ql,Ql=null,S;return(ma&1)!==0&&S.tag!==0&&$i(),xe=S.pendingLanes,(xe&1)!==0?S===es?co++:(co=0,es=S):co=0,Pr(),null}function $i(){if(Lr!==null){var S=ks(ma),k=Kn.transition,M=tn;try{if(Kn.transition=null,tn=16>S?16:S,Lr===null)var ye=!1;else{if(S=Lr,Lr=null,ma=0,(Kt&6)!==0)throw Error(e(331));var ve=Kt;for(Kt|=4,kt=S.current;kt!==null;){var xe=kt,Le=xe.child;if((kt.flags&16)!==0){var He=xe.deletions;if(He!==null){for(var qe=0;qe<He.length;qe++){var rt=He[qe];for(kt=rt;kt!==null;){var yt=kt;switch(yt.tag){case 0:case 11:case 15:lo(8,yt,xe)}var mt=yt.child;if(mt!==null)mt.return=yt,kt=mt;else for(;kt!==null;){yt=kt;var ht=yt.sibling,$t=yt.return;if(Cc(yt),yt===rt){kt=null;break}if(ht!==null){ht.return=$t,kt=ht;break}kt=$t}}}var It=xe.alternate;if(It!==null){var Pt=It.child;if(Pt!==null){It.child=null;do{var bn=Pt.sibling;Pt.sibling=null,Pt=bn}while(Pt!==null)}}kt=xe}}if((xe.subtreeFlags&2064)!==0&&Le!==null)Le.return=xe,kt=Le;else e:for(;kt!==null;){if(xe=kt,(xe.flags&2048)!==0)switch(xe.tag){case 0:case 11:case 15:lo(9,xe,xe.return)}var Ze=xe.sibling;if(Ze!==null){Ze.return=xe.return,kt=Ze;break e}kt=xe.return}}var Ye=S.current;for(kt=Ye;kt!==null;){Le=kt;var et=Le.child;if((Le.subtreeFlags&2064)!==0&&et!==null)et.return=Le,kt=et;else e:for(Le=Ye;kt!==null;){if(He=kt,(He.flags&2048)!==0)try{switch(He.tag){case 0:case 11:case 15:fa(9,He)}}catch(Rt){hn(He,He.return,Rt)}if(He===Le){kt=null;break e}var bt=He.sibling;if(bt!==null){bt.return=He.return,kt=bt;break e}kt=He.return}}if(Kt=ve,Pr(),ir&&typeof ir.onPostCommitFiberRoot=="function")try{ir.onPostCommitFiberRoot(xo,S)}catch{}ye=!0}return ye}finally{tn=M,Kn.transition=k}}return!1}function Uc(S,k,M){k=Si(M,k),k=ac(S,k,1),S=Rr(S,k,1),k=Nn(),S!==null&&(Ni(S,1,k),Bn(S,k))}function hn(S,k,M){if(S.tag===3)Uc(S,S,M);else for(;k!==null;){if(k.tag===3){Uc(k,S,M);break}else if(k.tag===1){var ye=k.stateNode;if(typeof k.type.getDerivedStateFromError=="function"||typeof ye.componentDidCatch=="function"&&(Fr===null||!Fr.has(ye))){S=Si(M,S),S=lc(k,S,1),k=Rr(k,S,1),S=Nn(),k!==null&&(Ni(k,1,S),Bn(k,S));break}}k=k.return}}function Vf(S,k,M){var ye=S.pingCache;ye!==null&&ye.delete(k),k=Nn(),S.pingedLanes|=S.suspendedLanes&M,$n===S&&(Cn&M)===M&&(wn===4||wn===3&&(Cn&130023424)===Cn&&500>mn()-Zl?Qr(S,0):Xl|=M),Bn(S,k)}function Hc(S,k){k===0&&((S.mode&1)===0?k=1:(k=Co,Co<<=1,(Co&130023424)===0&&(Co=4194304)));var M=Nn();S=yr(S,k),S!==null&&(Ni(S,k,M),Bn(S,M))}function zf(S){var k=S.memoizedState,M=0;k!==null&&(M=k.retryLane),Hc(S,M)}function Uf(S,k){var M=0;switch(S.tag){case 13:var ye=S.stateNode,ve=S.memoizedState;ve!==null&&(M=ve.retryLane);break;case 19:ye=S.stateNode;break;default:throw Error(e(314))}ye!==null&&ye.delete(k),Hc(S,M)}var Wc;Wc=function(S,k,M){if(S!==null)if(S.memoizedProps!==k.pendingProps||Fn.current)Mn=!0;else{if((S.lanes&M)===0&&(k.flags&128)===0)return Mn=!1,If(S,k,M);Mn=(S.flags&131072)!==0}else Mn=!1,cn&&(k.flags&1048576)!==0&&wu(k,Jo,k.index);switch(k.lanes=0,k.tag){case 2:var ye=k.type;ca(S,k),S=k.pendingProps;var ve=fi(k,En.current);bi(k,M),ve=El(null,k,ye,S,ve,M);var xe=Il();return k.flags|=1,typeof ve=="object"&&ve!==null&&typeof ve.render=="function"&&ve.$$typeof===void 0?(k.tag=1,k.memoizedState=null,k.updateQueue=null,Ln(ye)?(xe=!0,qo(k)):xe=!1,k.memoizedState=ve.state!==null&&ve.state!==void 0?ve.state:null,Ol(k),ve.updater=sa,k.stateNode=ve,ve._reactInternals=k,Ll(k,ye,S,M),k=jl(null,k,ye,!0,xe,M)):(k.tag=0,cn&&xe&&dl(k),Rn(null,k,ve,M),k=k.child),k;case 16:ye=k.elementType;e:{switch(ca(S,k),S=k.pendingProps,ve=ye._init,ye=ve(ye._payload),k.type=ye,ve=k.tag=Wf(ye),S=Qn(ye,S),ve){case 0:k=Bl(null,k,ye,S,M);break e;case 1:k=gc(null,k,ye,S,M);break e;case 11:k=dc(null,k,ye,S,M);break e;case 14:k=fc(null,k,ye,Qn(ye.type,S),M);break e}throw Error(e(306,ye,""))}return k;case 0:return ye=k.type,ve=k.pendingProps,ve=k.elementType===ye?ve:Qn(ye,ve),Bl(S,k,ye,ve,M);case 1:return ye=k.type,ve=k.pendingProps,ve=k.elementType===ye?ve:Qn(ye,ve),gc(S,k,ye,ve,M);case 3:e:{if(mc(k),S===null)throw Error(e(387));ye=k.pendingProps,xe=k.memoizedState,ve=xe.element,Au(S,k),ta(k,ye,null,M);var Le=k.memoizedState;if(ye=Le.element,xe.isDehydrated)if(xe={element:ye,isDehydrated:!1,cache:Le.cache,pendingSuspenseBoundaries:Le.pendingSuspenseBoundaries,transitions:Le.transitions},k.updateQueue.baseState=xe,k.memoizedState=xe,k.flags&256){ve=Si(Error(e(423)),k),k=bc(S,k,ye,M,ve);break e}else if(ye!==ve){ve=Si(Error(e(424)),k),k=bc(S,k,ye,M,ve);break e}else for(zn=kr(k.stateNode.containerInfo.firstChild),Vn=k,cn=!0,Zn=null,M=Iu(k,null,ye,M),k.child=M;M;)M.flags=M.flags&-3|4096,M=M.sibling;else{if(yi(),ye===ve){k=mr(S,k,M);break e}Rn(S,k,ye,M)}k=k.child}return k;case 5:return Fu(k),S===null&&hl(k),ye=k.type,ve=k.pendingProps,xe=S!==null?S.memoizedProps:null,
vendor: 13,351 bytes, line 9
9Le=ve.children,ol(ye,ve)?Le=null:xe!==null&&ol(ye,xe)&&(k.flags|=32),yc(S,k),Rn(S,k,Le,M),k.child;case 6:return S===null&&hl(k),null;case 13:return vc(S,k,M);case 4:return wl(k,k.stateNode.containerInfo),ye=k.pendingProps,S===null?k.child=gi(k,null,ye,M):Rn(S,k,ye,M),k.child;case 11:return ye=k.type,ve=k.pendingProps,ve=k.elementType===ye?ve:Qn(ye,ve),dc(S,k,ye,ve,M);case 7:return Rn(S,k,k.pendingProps,M),k.child;case 8:return Rn(S,k,k.pendingProps.children,M),k.child;case 12:return Rn(S,k,k.pendingProps.children,M),k.child;case 10:e:{if(ye=k.type._context,ve=k.pendingProps,xe=k.memoizedProps,Le=ve.value,rn(Zo,ye._currentValue),ye._currentValue=Le,xe!==null)if(Xn(xe.value,Le)){if(xe.children===ve.children&&!Fn.current){k=mr(S,k,M);break e}}else for(xe=k.child,xe!==null&&(xe.return=k);xe!==null;){var He=xe.dependencies;if(He!==null){Le=xe.child;for(var qe=He.firstContext;qe!==null;){if(qe.context===ye){if(xe.tag===1){qe=gr(-1,M&-M),qe.tag=2;var rt=xe.updateQueue;if(rt!==null){rt=rt.shared;var yt=rt.pending;yt===null?qe.next=qe:(qe.next=yt.next,yt.next=qe),rt.pending=qe}}xe.lanes|=M,qe=xe.alternate,qe!==null&&(qe.lanes|=M),vl(xe.return,M,k),He.lanes|=M;break}qe=qe.next}}else if(xe.tag===10)Le=xe.type===k.type?null:xe.child;else if(xe.tag===18){if(Le=xe.return,Le===null)throw Error(e(341));Le.lanes|=M,He=Le.alternate,He!==null&&(He.lanes|=M),vl(Le,M,k),Le=xe.sibling}else Le=xe.child;if(Le!==null)Le.return=xe;else for(Le=xe;Le!==null;){if(Le===k){Le=null;break}if(xe=Le.sibling,xe!==null){xe.return=Le.return,Le=xe;break}Le=Le.return}xe=Le}Rn(S,k,ve.children,M),k=k.child}return k;case 9:return ve=k.type,ye=k.pendingProps.children,bi(k,M),ve=qn(ve),ye=ye(ve),k.flags|=1,Rn(S,k,ye,M),k.child;case 14:return ye=k.type,ve=Qn(ye,k.pendingProps),ve=Qn(ye.type,ve),fc(S,k,ye,ve,M);case 15:return pc(S,k,k.type,k.pendingProps,M);case 17:return ye=k.type,ve=k.pendingProps,ve=k.elementType===ye?ve:Qn(ye,ve),ca(S,k),k.tag=1,Ln(ye)?(S=!0,qo(k)):S=!1,bi(k,M),ic(k,ye,ve),Ll(k,ye,ve,M),jl(null,k,ye,!0,S,M);case 19:return Oc(S,k,M);case 22:return hc(S,k,M)}throw Error(e(156,k.tag))};function qc(S,k){return ws(S,k)}function Hf(S,k,M,ye){this.tag=S,this.key=M,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=k,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=ye,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jn(S,k,M,ye){return new Hf(S,k,M,ye)}function ls(S){return S=S.prototype,!(!S||!S.isReactComponent)}function Wf(S){if(typeof S=="function")return ls(S)?1:0;if(S!=null){if(S=S.$$typeof,S===Je)return 11;if(S===ze)return 14}return 2}function Br(S,k){var M=S.alternate;return M===null?(M=Jn(S.tag,k,S.key,S.mode),M.elementType=S.elementType,M.type=S.type,M.stateNode=S.stateNode,M.alternate=S,S.alternate=M):(M.pendingProps=k,M.type=S.type,M.flags=0,M.subtreeFlags=0,M.deletions=null),M.flags=S.flags&14680064,M.childLanes=S.childLanes,M.lanes=S.lanes,M.child=S.child,M.memoizedProps=S.memoizedProps,M.memoizedState=S.memoizedState,M.updateQueue=S.updateQueue,k=S.dependencies,M.dependencies=k===null?null:{lanes:k.lanes,firstContext:k.firstContext},M.sibling=S.sibling,M.index=S.index,M.ref=S.ref,M}function Oa(S,k,M,ye,ve,xe){var Le=2;if(ye=S,typeof S=="function")ls(S)&&(Le=1);else if(typeof S=="string")Le=5;else e:switch(S){case Be:return ti(M.children,ve,xe,k);case Ge:Le=8,ve|=8;break;case je:return S=Jn(12,M,k,ve|2),S.elementType=je,S.lanes=xe,S;case Xe:return S=Jn(13,M,k,ve),S.elementType=Xe,S.lanes=xe,S;case Ke:return S=Jn(19,M,k,ve),S.elementType=Ke,S.lanes=xe,S;case ct:return wa(M,ve,xe,k);default:if(typeof S=="object"&&S!==null)switch(S.$$typeof){case De:Le=10;break e;case Ue:Le=9;break e;case Je:Le=11;break e;case ze:Le=14;break e;case nt:Le=16,ye=null;break e}throw Error(e(130,S==null?S:typeof S,""))}return k=Jn(Le,M,k,ve),k.elementType=S,k.type=ye,k.lanes=xe,k}function ti(S,k,M,ye){return S=Jn(7,S,ye,k),S.lanes=M,S}function wa(S,k,M,ye){return S=Jn(22,S,ye,k),S.elementType=ct,S.lanes=M,S.stateNode={isHidden:!1},S}function ss(S,k,M){return S=Jn(6,S,null,k),S.lanes=M,S}function us(S,k,M){return k=Jn(4,S.children!==null?S.children:[],S.key,k),k.lanes=M,k.stateNode={containerInfo:S.containerInfo,pendingChildren:null,implementation:S.implementation},k}function qf(S,k,M,ye,ve){this.tag=k,this.containerInfo=S,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Na(0),this.expirationTimes=Na(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Na(0),this.identifierPrefix=ye,this.onRecoverableError=ve,this.mutableSourceEagerHydrationData=null}function cs(S,k,M,ye,ve,xe,Le,He,qe){return S=new qf(S,k,M,He,qe),k===1?(k=1,xe===!0&&(k|=8)):k=0,xe=Jn(3,null,null,k),S.current=xe,xe.stateNode=S,xe.memoizedState={element:ye,isDehydrated:M,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ol(xe),S}function Gf(S,k,M){var ye=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fe,key:ye==null?null:""+ye,children:S,containerInfo:k,implementation:M}}function Gc(S){if(!S)return Ir;S=S._reactInternals;e:{if(Ur(S)!==S||S.tag!==1)throw Error(e(170));var k=S;do{switch(k.tag){case 3:k=k.stateNode.context;break e;case 1:if(Ln(k.type)){k=k.stateNode.__reactInternalMemoizedMergedChildContext;break e}}k=k.return}while(k!==null);throw Error(e(171))}if(S.tag===1){var M=S.type;if(Ln(M))return vu(S,M,k)}return k}function Kc(S,k,M,ye,ve,xe,Le,He,qe){return S=cs(M,ye,!0,S,ve,xe,Le,He,qe),S.context=Gc(null),M=S.current,ye=Nn(),ve=Mr(M),xe=gr(ye,ve),xe.callback=k??null,Rr(M,xe,ve),S.current.lanes=ve,Ni(S,ve,ye),Bn(S,ye),S}function $a(S,k,M,ye){var ve=k.current,xe=Nn(),Le=Mr(ve);return M=Gc(M),k.context===null?k.context=M:k.pendingContext=M,k=gr(xe,Le),k.payload={element:S},ye=ye===void 0?null:ye,ye!==null&&(k.callback=ye),S=Rr(ve,k,Le),S!==null&&(nr(S,ve,Le,xe),ea(S,ve,Le)),Le}function xa(S){if(S=S.current,!S.child)return null;switch(S.child.tag){case 5:return S.child.stateNode;default:return S.child.stateNode}}function Jc(S,k){if(S=S.memoizedState,S!==null&&S.dehydrated!==null){var M=S.retryLane;S.retryLane=M!==0&&M<k?M:k}}function ds(S,k){Jc(S,k),(S=S.alternate)&&Jc(S,k)}function Kf(){return null}var Yc=typeof reportError=="function"?reportError:function(S){console.error(S)};function fs(S){this._internalRoot=S}Ta.prototype.render=fs.prototype.render=function(S){var k=this._internalRoot;if(k===null)throw Error(e(409));$a(S,k,null,null)},Ta.prototype.unmount=fs.prototype.unmount=function(){var S=this._internalRoot;if(S!==null){this._internalRoot=null;var k=S.containerInfo;Zr(function(){$a(null,S,null,null)}),k[dr]=null}};function Ta(S){this._internalRoot=S}Ta.prototype.unstable_scheduleHydration=function(S){if(S){var k=Ps();S={blockedOn:null,target:S,priority:k};for(var M=0;M<xr.length&&k!==0&&k<xr[M].priority;M++);xr.splice(M,0,S),M===0&&Ns(S)}};function ps(S){return!(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)}function Ca(S){return!(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11&&(S.nodeType!==8||S.nodeValue!==" react-mount-point-unstable "))}function Xc(){}function Jf(S,k,M,ye,ve){if(ve){if(typeof ye=="function"){var xe=ye;ye=function(){var rt=xa(Le);xe.call(rt)}}var Le=Kc(k,ye,S,0,null,!1,!1,"",Xc);return S._reactRootContainer=Le,S[dr]=Le.current,Ki(S.nodeType===8?S.parentNode:S),Zr(),Le}for(;ve=S.lastChild;)S.removeChild(ve);if(typeof ye=="function"){var He=ye;ye=function(){var rt=xa(qe);He.call(rt)}}var qe=cs(S,0,!1,null,null,!1,!1,"",Xc);return S._reactRootContainer=qe,S[dr]=qe.current,Ki(S.nodeType===8?S.parentNode:S),Zr(function(){$a(k,qe,M,ye)}),qe}function ka(S,k,M,ye,ve){var xe=M._reactRootContainer;if(xe){var Le=xe;if(typeof ve=="function"){var He=ve;ve=function(){var qe=xa(Le);He.call(qe)}}$a(k,Le,S,ve)}else Le=Jf(M,k,S,ve,ye);return xa(Le)}Es=function(S){switch(S.tag){case 3:var k=S.stateNode;if(k.current.memoizedState.isDehydrated){var M=Ri(k.pendingLanes);M!==0&&(Fa(k,M|1),Bn(k,mn()),(Kt&6)===0&&(_i=mn()+500,Pr()))}break;case 13:Zr(function(){var ye=yr(S,1);if(ye!==null){var ve=Nn();nr(ye,S,1,ve)}}),ds(S,1)}},La=function(S){if(S.tag===13){var k=yr(S,134217728);if(k!==null){var M=Nn();nr(k,S,134217728,M)}ds(S,134217728)}},Is=function(S){if(S.tag===13){var k=Mr(S),M=yr(S,k);if(M!==null){var ye=Nn();nr(M,S,k,ye)}ds(S,k)}},Ps=function(){return tn},As=function(S,k){var M=tn;try{return tn=S,k()}finally{tn=M}},Gt=function(S,k,M){switch(k){case"input":if(zt(S,M),k=M.name,M.type==="radio"&&k!=null){for(M=S;M.parentNode;)M=M.parentNode;for(M=M.querySelectorAll("input[name="+JSON.stringify(""+k)+'][type="radio"]'),k=0;k<M.length;k++){var ye=M[k];if(ye!==S&&ye.form===S.form){var ve=Ho(ye);if(!ve)throw Error(e(90));on(ye),zt(ye,ve)}}}break;case"textarea":pn(S,M);break;case"select":k=M.value,k!=null&&yn(S,!!M.multiple,k,!1)}},Ii=rs,Vt=Zr;var Yf={usingClientEntryPoint:!1,Events:[Xi,ci,Ho,zr,Sr,rs]},fo={findFiberByHostInstance:Hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Xf={bundleType:fo.bundleType,version:fo.version,rendererPackageName:fo.rendererPackageName,rendererConfig:fo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ie.ReactCurrentDispatcher,findHostInstanceByFiber:function(S){return S=Ss(S),S===null?null:S.stateNode},findFiberByHostInstance:fo.findFiberByHostInstance||Kf,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ea=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ea.isDisabled&&Ea.supportsFiber)try{xo=Ea.inject(Xf),ir=Ea}catch{}}return reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yf,reactDom_production_min.createPortal=function(S,k){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ps(k))throw Error(e(200));return Gf(S,k,null,M)},reactDom_production_min.createRoot=function(S,k){if(!ps(S))throw Error(e(299));var M=!1,ye="",ve=Yc;return k!=null&&(k.unstable_strictMode===!0&&(M=!0),k.identifierPrefix!==void 0&&(ye=k.identifierPrefix),k.onRecoverableError!==void 0&&(ve=k.onRecoverableError)),k=cs(S,1,!1,null,null,M,!1,ye,ve),S[dr]=k.current,Ki(S.nodeType===8?S.parentNode:S),new fs(k)},reactDom_production_min.findDOMNode=function(S){if(S==null)return null;if(S.nodeType===1)return S;var k=S._reactInternals;if(k===void 0)throw typeof S.render=="function"?Error(e(188)):(S=Object.keys(S).join(","),Error(e(268,S)));return S=Ss(k),S=S===null?null:S.stateNode,S},reactDom_production_min.flushSync=function(S){return Zr(S)},reactDom_production_min.hydrate=function(S,k,M){if(!Ca(k))throw Error(e(200));return ka(null,S,k,!0,M)},reactDom_production_min.hydrateRoot=function(S,k,M){if(!ps(S))throw Error(e(405));var ye=M!=null&&M.hydratedSources||null,ve=!1,xe="",Le=Yc;if(M!=null&&(M.unstable_strictMode===!0&&(ve=!0),M.identifierPrefix!==void 0&&(xe=M.identifierPrefix),M.onRecoverableError!==void 0&&(Le=M.onRecoverableError)),k=Kc(k,null,S,1,M??null,ve,!1,xe,Le),S[dr]=k.current,Ki(S),ye)for(S=0;S<ye.length;S++)M=ye[S],ve=M._getVersion,ve=ve(M._source),k.mutableSourceEagerHydrationData==null?k.mutableSourceEagerHydrationData=[M,ve]:k.mutableSourceEagerHydrationData.push(M,ve);return new Ta(k)},reactDom_production_min.render=function(S,k,M){if(!Ca(k))throw Error(e(200));return ka(null,S,k,!1,M)},reactDom_production_min.unmountComponentAtNode=function(S){if(!Ca(S))throw Error(e(40));return S._reactRootContainer?(Zr(function(){ka(null,null,S,!1,function(){S._reactRootContainer=null,S[dr]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=rs,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(S,k,M,ye){if(!Ca(M))throw Error(e(200));if(S==null||S._reactInternals===void 0)throw Error(e(38));return ka(S,k,M,!1,ye)},reactDom_production_min.version="18.3.1-next-f1338f8080-20240426",reactDom_production_min}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}return n(),reactDom.exports=requireReactDom_production_min(),reactDom.exports}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;var n=requireReactDom();return client.createRoot=n.createRoot,client.hydrateRoot=n.hydrateRoot,client}var clientExports=requireClient(),reactFastCompare,hasRequiredReactFastCompare;function requireReactFastCompare(){if(hasRequiredReactFastCompare)return reactFastCompare;hasRequiredReactFastCompare=1;var n=typeof Element<"u",o=typeof Map=="function",e=typeof Set=="function",t=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function c(p,h){if(p===h)return!0;
9if(p&&h&&typeof p=="object"&&typeof h=="object"){if(p.constructor!==h.constructor)return!1;var y,g,$;if(Array.isArray(p)){if(y=p.length,y!=h.length)return!1;for(g=y;g--!==0;)if(!c(p[g],h[g]))return!1;return!0}var E;if(o&&p instanceof Map&&h instanceof Map){if(p.size!==h.size)return!1;for(E=p.entries();!(g=E.next()).done;)if(!h.has(g.value[0]))return!1;for(E=p.entries();!(g=E.next()).done;)if(!c(g.value[1],h.get(g.value[0])))return!1;return!0}if(e&&p instanceof Set&&h instanceof Set){if(p.size!==h.size)return!1;for(E=p.entries();!(g=E.next()).done;)if(!h.has(g.value[0]))return!1;return!0}if(t&&ArrayBuffer.isView(p)&&ArrayBuffer.isView(h)){if(y=p.length,y!=h.length)return!1;for(g=y;g--!==0;)if(p[g]!==h[g])return!1;return!0}if(p.constructor===RegExp)return p.source===h.source&&p.flags===h.flags;if(p.valueOf!==Object.prototype.valueOf&&typeof p.valueOf=="function"&&typeof h.valueOf=="function")return p.valueOf()===h.valueOf();if(p.toString!==Object.prototype.toString&&typeof p.toString=="function"&&typeof h.toString=="function")return p.toString()===h.toString();if($=Object.keys(p),y=$.length,y!==Object.keys(h).length)return!1;for(g=y;g--!==0;)if(!Object.prototype.hasOwnProperty.call(h,$[g]))return!1;if(n&&p instanceof Element)return!1;for(g=y;g--!==0;)if(!(($[g]==="_owner"||$[g]==="__v"||$[g]==="__o")&&p.$$typeof)&&!c(p[$[g]],h[$[g]]))return!1;return!0}return p!==p&&h!==h}return reactFastCompare=function(h,y){try{return c(h,y)}catch(g){if((g.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw g}},reactFastCompare}var reactFastCompareExports=requireReactFastCompare();const fastCompare=getDefaultExportFromCjs(reactFastCompareExports);var browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var n=function(o,e,t,c,p,h,y,g){if(!o){var $;if(e===void 0)$=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var E=[t,c,p,h,y,g],A=0;$=new Error(e.replace(/%s/g,function(){return E[A++]})),$.name="Invariant Violation"}throw $.framesToPop=1,$}};return browser=n,browser}var browserExports=requireBrowser();const invariant=getDefaultExportFromCjs(browserExports);var shallowequal,hasRequiredShallowequal;function requireShallowequal(){return hasRequiredShallowequal||(hasRequiredShallowequal=1,shallowequal=function(o,e,t,c){var p=t?t.call(c,o,e):void 0;if(p!==void 0)return!!p;if(o===e)return!0;if(typeof o!="object"||!o||typeof e!="object"||!e)return!1;var h=Object.keys(o),y=Object.keys(e);if(h.length!==y.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(e),$=0;$<h.length;$++){var E=h[$];if(!g(E))return!1;var A=o[E],N=e[E];if(p=t?t.call(c,A,N,E):void 0,p===!1||p===void 0&&A!==N)return!1}return!0}),shallowequal}var shallowequalExports=requireShallowequal();const shallowEqual=getDefaultExportFromCjs(shallowequalExports);var TAG_NAMES=(n=>(n.BASE="base",n.BODY="body",n.HEAD="head",n.HTML="html",n.LINK="link",n.META="meta",n.NOSCRIPT="noscript",n.SCRIPT="script",n.STYLE="style",n.TITLE="title",n.FRAGMENT="Symbol(react.fragment)",n))(TAG_NAMES||{}),SEO_PRIORITY_TAGS={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},VALID_TAG_NAMES=Object.values(TAG_NAMES),REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},HTML_TAG_MAP=Object.entries(REACT_TAG_MAP).reduce((n,[o,e])=>(n[e]=o,n),{}),HELMET_ATTRIBUTE="data-rh",HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},getInnermostProperty=(n,o)=>{for(let e=n.length-1;e>=0;e-=1){const t=n[e];if(Object.prototype.hasOwnProperty.call(t,o))return t[o]}return null},getTitleFromPropsList=n=>{let o=getInnermostProperty(n,"title");const e=getInnermostProperty(n,HELMET_PROPS.TITLE_TEMPLATE);if(Array.isArray(o)&&(o=o.join("")),e&&o)return e.replace(/%s/g,()=>o);const t=getInnermostProperty(n,HELMET_PROPS.DEFAULT_TITLE);return o||t||void 0},getOnChangeClientState=n=>getInnermostProperty(n,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||(()=>{}),getAttributesFromPropsList=(n,o)=>o.filter(e=>typeof e[n]<"u").map(e=>e[n]).reduce((e,t)=>
9({...e,...t}),{}),getBaseTagFromPropsList=(n,o)=>o.filter(e=>typeof e.base<"u").map(e=>e.base).reverse().reduce((e,t)=>{if(!e.length){const c=Object.keys(t);for(let p=0;p<c.length;p+=1){const y=c[p].toLowerCase();if(n.indexOf(y)!==-1&&t[y])return e.concat(t)}}return e},[]),warn=n=>console&&typeof console.warn=="function"&&console.warn(n),getTagsFromPropsList=(n,o,e)=>{const t={};return e.filter(c=>Array.isArray(c[n])?!0:(typeof c[n]<"u"&&warn(`Helmet: ${n} should be of type "Array". Instead found type "${typeof c[n]}"`),!1)).map(c=>c[n]).reverse().reduce((c,p)=>{const h={};p.filter(g=>{let $;const E=Object.keys(g);for(let N=0;N<E.length;N+=1){const H=E[N],Z=H.toLowerCase();o.indexOf(Z)!==-1&&!($==="rel"&&g[$].toLowerCase()==="canonical")&&!(Z==="rel"&&g[Z].toLowerCase()==="stylesheet")&&($=Z),o.indexOf(H)!==-1&&(H==="innerHTML"||H==="cssText"||H==="itemprop")&&($=H)}if(!$||!g[$])return!1;const A=g[$].toLowerCase();return t[$]||(t[$]={}),h[$]||(h[$]={}),t[$][A]?!1:(h[$][A]=!0,!0)}).reverse().forEach(g=>c.push(g));const y=Object.keys(h);for(let g=0;g<y.length;g+=1){const $=y[g],E={...t[$],...h[$]};t[$]=E}return c},[]).reverse()},getAnyTrueFromPropsList=(n,o)=>{if(Array.isArray(n)&&n.length){for(let e=0;e<n.length;e+=1)if(n[e][o])return!0}return!1},reducePropsToState$1=n=>({baseTag:getBaseTagFromPropsList(["href"],n),bodyAttributes:getAttributesFromPropsList("bodyAttributes",n),defer:getInnermostProperty(n,HELMET_PROPS.DEFER),encode:getInnermostProperty(n,HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:getAttributesFromPropsList("htmlAttributes",n),linkTags:getTagsFromPropsList("link",["rel","href"],n),metaTags:getTagsFromPropsList("meta",["name","charset","http-equiv","property","itemprop"],n),noscriptTags:getTagsFromPropsList("noscript",["innerHTML"],n),onChangeClientState:getOnChangeClientState(n),scriptTags:getTagsFromPropsList("script",["src","innerHTML"],n),styleTags:getTagsFromPropsList("style",["cssText"],n),title:getTitleFromPropsList(n),titleAttributes:getAttributesFromPropsList("titleAttributes",n),prioritizeSeoTags:getAnyTrueFromPropsList(n,HELMET_PROPS.PRIORITIZE_SEO_TAGS)}),flattenArray=n=>Array.isArray(n)?n.join(""):n,checkIfPropsMatch=(n,o)=>{const e=Object.keys(n);for(let t=0;t<e.length;t+=1)if(o[e[t]]&&o[e[t]].includes(n[e[t]]))return!0;return!1},prioritizer=(n,o)=>Array.isArray(n)?n.reduce((e,t)=>(checkIfPropsMatch(t,o)?e.priority.push(t):e.default.push(t),e),{priority:[],default:[]}):{default:n,priority:[]},without=(n,o)=>({...n,[o]:void 0}),SELF_CLOSING_TAGS=["noscript","script","style"],encodeSpecialCharacters=(n,o=!0)=>o===!1?String(n):String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),generateElementAttributesAsString=n=>Object.keys(n).reduce((o,e)=>{const t=typeof n[e]<"u"?`${e}="${n[e]}"`:`${e}`;return o?`${o} ${t}`:t},""),generateTitleAsString=(n,o,e,t)=>{const c=generateElementAttributesAsString(e),p=flattenArray(o);return c?`<${n} ${HELMET_ATTRIBUTE}="true" ${c}>${encodeSpecialCharacters(p,t)}</${n}>`:`<${n} ${HELMET_ATTRIBUTE}="true">${encodeSpecialCharacters(p,t)}</${n}>`},generateTagsAsString=(n,o,e=!0)=>o.reduce((t,c)=>{const p=c,h=Object.keys(p).filter($=>!($==="innerHTML"||$==="cssText")).reduce(($,E)=>{const A=typeof p[E]>"u"?E:`${E}="${encodeSpecialCharacters(p[E],e)}"`;return $?`${$} ${A}`:A},""),y=p.innerHTML||p.cssText||"",g=SELF_CLOSING_TAGS.indexOf(n)===-1;return`${t}<${n} ${HELMET_ATTRIBUTE}="true" ${h}${g?"/>":`>${y}</${n}>`}`},""),convertElementAttributesToReactProps=(n,o={})=>Object.keys(n).reduce((e,t)=>{const c=REACT_TAG_MAP[t];return e[c||t]=n[t],e},o),generateTitleAsReactComponent=(n,o,e)=>{const t={key:o,[HELMET_ATTRIBUTE]:!0},c=convertElementAttributesToReactProps(e,t);return[React.createElement("title",c,o)]},generateTagsAsReactComponent=(n,o)=>o.map((e,t)=>{const c={key:t,[HELMET_ATTRIBUTE]:!0};return Object.keys(e).forEach(p=>{const y=REACT_TAG_MAP[p]||p;if(y==="innerHTML"||y==="cssText"){const g=e.innerHTML||e.cssText;c.dangerouslySetInnerHTML={__html:g}}else c[y]=e[p]}),React.createElement(n,c)}),getMethodsForTag=(n,o,e=!0)=>{switch(n){case"title":return{toComponent:()=>generateTitleAsReactComponent(n,o.title,o.titleAttributes),toString:()=>generateTitleAsString(n,o.title,o.titleAttributes,e)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>convertElementAttributesToReactProps(o),toString:()=>generateElementAttributesAsString(o)};default:return{toComponent:()=>generateTagsAsReactComponent(n,o),toString:()=>generateTagsAsString(n,o,e)}}},getPriorityMethods=({metaTags:n,linkTags:o,scriptTags:e,encode:t})=>{const c=prioritizer(n,SEO_PRIORITY_TAGS.meta),p=prioritizer(o,SEO_PRIORITY_TAGS.link),h=prioritizer(e,SEO_PRIORITY_TAGS.script);return{priorityMethods:{toComponent:()=>[...generateTagsAsReactComponent("meta",c.priority),...generateTagsAsReactComponent("link",p.priority),...generateTagsAsReactComponent("script",h.priority)],toString:()=>`${getMethodsForTag("meta",c.priority,t)} ${getMethodsForTag("link",p.priority,t)} ${getMethodsForTag("script",h.priority,t)}`},metaTags:c.default,linkTags:p.default,scriptTags:h.default}},mapStateOnServer=n=>{const{baseTag:o,bodyAttributes:e,encode:t=!0,htmlAttributes:c,noscriptTags:p,styleTags:h,title:y="",titleAttributes:g,prioritizeSeoTags:$}=n;let{linkTags:E,metaTags:A,scriptTags:N}=n,H={toComponent:()=>{},toString:()=>""};return $&&({priorityMethods:H,linkTags:E,metaTags:A,scriptTags:N}=getPriorityMethods(n)),{priority:H,base:getMethodsForTag("base",o,t),bodyAttributes:getMethodsForTag("bodyAttributes",e,t),htmlAttributes:getMethodsForTag("htmlAttributes",c,t),link:getMethodsForTag("link",E,t),meta:getMethodsForTag("meta",A,t),noscript:getMethodsForTag("noscript",p,t),script:getMethodsForTag("script",N,t),style:getMethodsForTag("style",h,t),title:getMethodsForTag("title",{title:y,titleAttributes:g},t)}},server_default=mapStateOnServer,instances=[],isDocument=!!(typeof window<"u"&&window.document&&window.document.createElement),HelmetData=class{instances=[];canUseDOM=isDocument;context;value={setHelmet:n=>{this.context.helmet=n},helmetInstances:{get:()=>this.canUseDOM?instances:this.instances,add:n=>{(this.canUseDOM?instances:this.instances).push(n)},remove:n=>{const o=(this.canUseDOM?instances:this.instances).indexOf(n);(this.canUseDOM?instances:this.instances).splice(o,1)}}};constructor(n,o){this.context=n,this.canUseDOM=o||!1,o||(n.helmet=server_default({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},defaultValue={},Context=React.createContext(defaultValue),HelmetProvider=class Zc extends reactExports.Component{static canUseDOM=isDocument;helmetData;constructor(o){super(o),this.helmetData=new HelmetData(this.props.context||{},Zc.canUseDOM)}render(){return React.createElement(Context.Provider,{value:this.helmetData.value},this.props.children)}},updateTags=(n,o)=>{const e=document.head||document.querySelector("head"),t=e.querySelectorAll(`${n}[${HELMET_ATTRIBUTE}]`),c=[].slice.call(t),p=[];let h;return o&&o.length&&o.forEach(y=>{const g=document.createElement(n);for(const $ in y)if(Object.prototype.hasOwnProperty.call(y,$))if($==="innerHTML")g.innerHTML=y.innerHTML;else if($==="cssText")g.styleSheet?g.styleSheet.cssText=y.cssText:g.appendChild(document.createTextNode(y.cssText));else{const E=$,A=typeof y[E]>"u"?"":y[E];g.setAttribute($,A)}
9g.setAttribute(HELMET_ATTRIBUTE,"true"),c.some(($,E)=>(h=E,g.isEqualNode($)))?c.splice(h,1):p.push(g)}),c.forEach(y=>y.parentNode?.removeChild(y)),p.forEach(y=>e.appendChild(y)),{oldTags:c,newTags:p}},updateAttributes=(n,o)=>{const e=document.getElementsByTagName(n)[0];if(!e)return;const t=e.getAttribute(HELMET_ATTRIBUTE),c=t?t.split(","):[],p=[...c],h=Object.keys(o);for(const y of h){const g=o[y]||"";e.getAttribute(y)!==g&&e.setAttribute(y,g),c.indexOf(y)===-1&&c.push(y);const $=p.indexOf(y);$!==-1&&p.splice($,1)}for(let y=p.length-1;y>=0;y-=1)e.removeAttribute(p[y]);c.length===p.length?e.removeAttribute(HELMET_ATTRIBUTE):e.getAttribute(HELMET_ATTRIBUTE)!==h.join(",")&&e.setAttribute(HELMET_ATTRIBUTE,h.join(","))},updateTitle=(n,o)=>{typeof n<"u"&&document.title!==n&&(document.title=flattenArray(n)),updateAttributes("title",o)},commitTagChanges=(n,o)=>{const{baseTag:e,bodyAttributes:t,htmlAttributes:c,linkTags:p,metaTags:h,noscriptTags:y,onChangeClientState:g,scriptTags:$,styleTags:E,title:A,titleAttributes:N}=n;updateAttributes("body",t),updateAttributes("html",c),updateTitle(A,N);const H={baseTag:updateTags("base",e),linkTags:updateTags("link",p),metaTags:updateTags("meta",h),noscriptTags:updateTags("noscript",y),scriptTags:updateTags("script",$),styleTags:updateTags("style",E)},Z={},X={};Object.keys(H).forEach(be=>{const{newTags:we,oldTags:$e}=H[be];we.length&&(Z[be]=we),$e.length&&(X[be]=H[be].oldTags)}),o&&o(),g(n,Z,X)},_helmetCallback=null,handleStateChangeOnClient$1=n=>{_helmetCallback&&cancelAnimationFrame(_helmetCallback),n.defer?_helmetCallback=requestAnimationFrame(()=>{commitTagChanges(n,()=>{_helmetCallback=null})}):(commitTagChanges(n),_helmetCallback=null)},client_default=handleStateChangeOnClient$1,HelmetDispatcher=class extends reactExports.Component{rendered=!1;shouldComponentUpdate(n){return!shallowEqual(n,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:n}=this.props.context;n.remove(this),this.emitChange()}emitChange(){const{helmetInstances:n,setHelmet:o}=this.props.context;let e=null;const t=reducePropsToState$1(n.get().map(c=>{const p={...c.props};return delete p.context,p}));HelmetProvider.canUseDOM?client_default(t):server_default&&(e=server_default(t)),o(e)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:n}=this.props.context;n.add(this),this.emitChange()}render(){return this.init(),null}},Helmet=class extends reactExports.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(n){return!fastCompare(without(this.props,"helmetData"),without(n,"helmetData"))}mapNestedChildrenToProps(n,o){if(!o)return null;switch(n.type){case"script":case"noscript":return{innerHTML:o};case"style":return{cssText:o};default:throw new Error(`<${n.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(n,o,e,t){return{...o,[n.type]:[...o[n.type]||[],{...e,...this.mapNestedChildrenToProps(n,t)}]}}mapObjectTypeChildren(n,o,e,t){switch(n.type){case"title":return{...o,[n.type]:t,titleAttributes:{...e}};case"body":return{...o,bodyAttributes:{...e}};case"html":return{...o,htmlAttributes:{...e}};default:return{...o,[n.type]:{...e}}}}mapArrayTypeChildrenToProps(n,o){let e={...o};return Object.keys(n).forEach(t=>{e={...e,[t]:n[t]}}),e}warnOnInvalidChildren(n,o){return invariant(VALID_TAG_NAMES.some(e=>n.type===e),typeof n.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${VALID_TAG_NAMES.join(", ")} are allowed. Helmet does not support rendering <${n.type}> elements. Refer to our API for more information.`),invariant(!o||typeof o=="string"||Array.isArray(o)&&!o.some(e=>typeof e!="string"),`Helmet expects a string as a child of <${n.type}>. Did you forget to wrap your children in braces? ( <${n.type}>{\`\`}</${n.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(n,o){let e={};
9return React.Children.forEach(n,t=>{if(!t||!t.props)return;const{children:c,...p}=t.props,h=Object.keys(p).reduce((g,$)=>(g[HTML_TAG_MAP[$]||$]=p[$],g),{});let{type:y}=t;switch(typeof y=="symbol"?y=y.toString():this.warnOnInvalidChildren(t,c),y){case"Symbol(react.fragment)":o=this.mapChildrenToProps(c,o);break;case"link":case"meta":case"noscript":case"script":case"style":e=this.flattenArrayTypeChildren(t,e,h,c);break;default:o=this.mapObjectTypeChildren(t,o,h,c);break}}),this.mapArrayTypeChildrenToProps(e,o)}render(){const{children:n,...o}=this.props;let e={...o},{helmetData:t}=o;if(n&&(e=this.mapChildrenToProps(n,e)),t&&!(t instanceof HelmetData)){const c=t;t=new HelmetData(c.context,!0),delete e.helmetData}return t?React.createElement(HelmetDispatcher,{...e,context:t.value}):React.createElement(Context.Consumer,null,c=>React.createElement(HelmetDispatcher,{...e,context:c}))}};class SequentialIDGenerator{constructor(o=""){this.prefix=o,this.count=0,this.offset=374,this.msb=1295,this.power=2}next(){const o=this.increment().toString(36);return this.prefix?`${this.prefix}${o}`:o}increment(){const o=this.count+this.offset;return o===this.msb&&(this.offset+=(this.msb+1)*9,this.msb=Math.pow(36,++this.power)-1),this.count++,o}}const minMaxWidth=/(!?\(\s*min(-device-)?-width).+\(\s*max(-device)?-width/i,minWidth=/\(\s*min(-device)?-width/i,maxMinWidth=/(!?\(\s*max(-device)?-width).+\(\s*min(-device)?-width/i,maxWidth=/\(\s*max(-device)?-width/i,isMinWidth=_testQuery(minMaxWidth,maxMinWidth,minWidth),isMaxWidth=_testQuery(maxMinWidth,minMaxWidth,maxWidth),minMaxHeight=/(!?\(\s*min(-device)?-height).+\(\s*max(-device)?-height/i,minHeight=/\(\s*min(-device)?-height/i,maxMinHeight=/(!?\(\s*max(-device)?-height).+\(\s*min(-device)?-height/i,maxHeight=/\(\s*max(-device)?-height/i,isMinHeight=_testQuery(minMaxHeight,maxMinHeight,minHeight),isMaxHeight=_testQuery(maxMinHeight,minMaxHeight,maxHeight),isPrint=/print/i,isPrintOnly=/^print$/i,maxValue=Number.MAX_VALUE;function _getQueryLength(n){const o=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(n);if(o===null)return maxValue;let e=o[1];switch(o[2]){case"ch":e=parseFloat(e)*8.8984375;break;case"em":case"rem":e=parseFloat(e)*16;break;case"ex":e=parseFloat(e)*8.296875;break;case"px":e=parseFloat(e);break}return+e}function _testQuery(n,o,e){return function(t){return n.test(t)?!0:o.test(t)?!1:e.test(t)}}function _testIsPrint(n,o){const e=isPrint.test(n),t=isPrintOnly.test(n),c=isPrint.test(o),p=isPrintOnly.test(o);return e&&c?!t&&p?1:t&&!p?-1:n.localeCompare(o):e?1:c?-1:null}function sortCSSmq(n,o){if(n==="")return-1;if(o==="")return 1;const e=_testIsPrint(n,o);if(e!==null)return e;const t=isMinWidth(n)||isMinHeight(n),c=isMaxWidth(n)||isMaxHeight(n),p=isMinWidth(o)||isMinHeight(o),h=isMaxWidth(o)||isMaxHeight(o);if(t&&h)return-1;if(c&&p)return 1;const y=_getQueryLength(n),g=_getQueryLength(o);return y===maxValue&&g===maxValue?n.localeCompare(o):y===maxValue?1:g===maxValue?-1:y>g?c?-1:1:y<g?c?1:-1:n.localeCompare(o)}class MultiCache{constructor(o,e,t){this.idGenerator=o,this.onNewCache=e,this.onNewValue=t,this.sortedCacheKeys=[],this.caches={}}getCache(o){if(!this.caches[o]){const e=new Cache(this.idGenerator,this.onNewValue);e.key=o,this.sortedCacheKeys.push(o),this.sortedCacheKeys.sort(sortCSSmq);const t=this.sortedCacheKeys.indexOf(o),c=t<this.sortedCacheKeys.length-1?this.sortedCacheKeys[t+1]:void 0;this.caches[o]=e,this.onNewCache(o,e,c)}return this.caches[o]}getSortedCacheKeys(){return this.sortedCacheKeys}}class Cache{constructor(o,e){this.cache={},this.idGenerator=o,this.onNewValue=e}addValue(o,e){const t=this.cache[o];if(t)return t;const c=this.idGenerator.next();return this.cache[o]=c,this.onNewValue(this,c,e),c}}const uppercasePattern$1=/[A-Z]/g,msPattern$1=/^ms-/,cache$2={};function hyphenateStyleName$2(n){return n in cache$2?cache$2[n]:cache$2[n]=n.replace(uppercasePattern$1,"-$&").toLowerCase().replace(msPattern$1,"-ms-")}function capitalizeString(n){return n.charAt(0).toUpperCase()+n.slice(1)}function prefixProperty(n,o,e){if(n.hasOwnProperty(o)){for(var t={},c=n[o],p=capitalizeString(o),h=Object.keys(e),y=0;y<h.length;y++){var g=h[y];if(g===o)for(var $=0;$<c.length;$++)t[c[$]+p]=e[o];t[g]=e[g]}return t}return e}function prefixValue$1(n,o,e,t,c){for(var p=0,h=n.length;p<h;++p){var y=n[p](o,e,t,c);if(y)return y}}function addIfNew(n,o){n.indexOf(o)===-1&&n.push(o)}
9function addNewValuesOnly(n,o){if(Array.isArray(o))for(var e=0,t=o.length;e<t;++e)addIfNew(n,o[e]);else addIfNew(n,o)}function isObject$3(n){return n instanceof Object&&!Array.isArray(n)}function createPrefixer(n){var o=n.prefixMap,e=n.plugins;return function t(c){for(var p in c){var h=c[p];if(isObject$3(h))c[p]=t(h);else if(Array.isArray(h)){for(var y=[],g=0,$=h.length;g<$;++g){var E=prefixValue$1(e,p,h[g],c,o);addNewValuesOnly(y,E||h[g])}y.length>0&&(c[p]=y)}else{var A=prefixValue$1(e,p,h,c,o);A&&(c[p]=A),c=prefixProperty(o,p,c)}}return c}}var w$1=["Webkit"],m$1=["Moz"],ms=["ms"],wm=["Webkit","Moz"],wms=["Webkit","ms"],wmms=["Webkit","Moz","ms"];const data={prefixMap:{appearance:wm,textEmphasisPosition:w$1,textEmphasis:w$1,textEmphasisStyle:w$1,textEmphasisColor:w$1,boxDecorationBreak:w$1,maskImage:w$1,maskMode:w$1,maskRepeat:w$1,maskPosition:w$1,maskClip:w$1,maskOrigin:w$1,maskSize:w$1,maskComposite:w$1,mask:w$1,maskBorderSource:w$1,maskBorderMode:w$1,maskBorderSlice:w$1,maskBorderWidth:w$1,maskBorderOutset:w$1,maskBorderRepeat:w$1,maskBorder:w$1,maskType:w$1,textDecorationStyle:w$1,textDecorationSkip:w$1,textDecorationLine:w$1,textDecorationColor:w$1,userSelect:wmms,backdropFilter:w$1,fontKerning:w$1,scrollSnapType:wms,scrollSnapPointsX:wms,scrollSnapPointsY:wms,scrollSnapDestination:wms,scrollSnapCoordinate:wms,clipPath:w$1,shapeImageThreshold:w$1,shapeImageMargin:w$1,shapeImageOutside:w$1,filter:w$1,hyphens:wms,flowInto:wms,flowFrom:wms,breakBefore:wms,breakAfter:wms,breakInside:wms,regionFragment:wms,writingMode:wms,textOrientation:w$1,tabSize:m$1,fontFeatureSettings:w$1,columnCount:w$1,columnFill:w$1,columnGap:w$1,columnRule:w$1,columnRuleColor:w$1,columnRuleStyle:w$1,columnRuleWidth:w$1,columns:w$1,columnSpan:w$1,columnWidth:w$1,wrapFlow:ms,wrapThrough:ms,wrapMargin:ms,textSizeAdjust:wms}};function backgroundClip(n,o){if(typeof o=="string"&&o==="text")return["-webkit-text","text"]}var prefixes$5=["-webkit-","-moz-",""],values$3={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function cursor(n,o){if(n==="cursor"&&values$3.hasOwnProperty(o))return prefixes$5.map(function(e){return e+o})}var isPrefixedValue$1={exports:{}},hasRequiredIsPrefixedValue;function requireIsPrefixedValue(){return hasRequiredIsPrefixedValue||(hasRequiredIsPrefixedValue=1,function(n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=t;var e=/-webkit-|-moz-|-ms-/;function t(c){return typeof c=="string"&&e.test(c)}n.exports=o.default}(isPrefixedValue$1,isPrefixedValue$1.exports)),isPrefixedValue$1.exports}var isPrefixedValueExports=requireIsPrefixedValue();const isPrefixedValue=getDefaultExportFromCjs(isPrefixedValueExports);var prefixes$4=["-webkit-",""];function crossFade(n,o){if(typeof o=="string"&&!isPrefixedValue(o)&&o.indexOf("cross-fade(")>-1)return prefixes$4.map(function(e){return o.replace(/cross-fade\(/g,e+"cross-fade(")})}var prefixes$3=["-webkit-",""];function filter$1(n,o){if(typeof o=="string"&&!isPrefixedValue(o)&&o.indexOf("filter(")>-1)return prefixes$3.map(function(e){return o.replace(/filter\(/g,e+"filter(")})}var values$2={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function flex(n,o){if(n==="display"&&values$2.hasOwnProperty(o))return values$2[o]}var alternativeValues={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},alternativeProps$1={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function flexboxOld(n,o,e){n==="flexDirection"&&typeof o=="string"&&(o.indexOf("column")>-1?e.WebkitBoxOrient="vertical":e.WebkitBoxOrient="horizontal",o.indexOf("reverse")>-1?e.WebkitBoxDirection="reverse":e.WebkitBoxDirection="normal"),alternativeProps$1.hasOwnProperty(n)&&(e[alternativeProps$1[n]]=alternativeValues[o]||o)}var prefixes$2=["-webkit-","-moz-",""],values$1=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;
9function gradient(n,o){if(typeof o=="string"&&!isPrefixedValue(o)&&values$1.test(o))return prefixes$2.map(function(e){return o.replace(values$1,function(t){return e+t})})}var _slicedToArray$n=function(){function n(o,e){var t=[],c=!0,p=!1,h=void 0;try{for(var y=o[Symbol.iterator](),g;!(c=(g=y.next()).done)&&(t.push(g.value),!(e&&t.length===e));c=!0);}catch($){p=!0,h=$}finally{try{!c&&y.return&&y.return()}finally{if(p)throw h}}return t}return function(o,e){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return n(o,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function isSimplePositionValue(n){return typeof n=="number"&&!isNaN(n)}function isComplexSpanValue(n){return typeof n=="string"&&n.includes("/")}var alignmentValues=["center","end","start","stretch"],displayValues={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},propertyConverters={alignSelf:function(o,e){alignmentValues.indexOf(o)>-1&&(e.msGridRowAlign=o)},gridColumn:function(o,e){if(isSimplePositionValue(o))e.msGridColumn=o;else if(isComplexSpanValue(o)){var t=o.split("/"),c=_slicedToArray$n(t,2),p=c[0],h=c[1];propertyConverters.gridColumnStart(+p,e);var y=h.split(/ ?span /),g=_slicedToArray$n(y,2),$=g[0],E=g[1];$===""?propertyConverters.gridColumnEnd(+p+ +E,e):propertyConverters.gridColumnEnd(+h,e)}else propertyConverters.gridColumnStart(o,e)},gridColumnEnd:function(o,e){var t=e.msGridColumn;isSimplePositionValue(o)&&isSimplePositionValue(t)&&(e.msGridColumnSpan=o-t)},gridColumnStart:function(o,e){isSimplePositionValue(o)&&(e.msGridColumn=o)},gridRow:function(o,e){if(isSimplePositionValue(o))e.msGridRow=o;else if(isComplexSpanValue(o)){var t=o.split("/"),c=_slicedToArray$n(t,2),p=c[0],h=c[1];propertyConverters.gridRowStart(+p,e);var y=h.split(/ ?span /),g=_slicedToArray$n(y,2),$=g[0],E=g[1];$===""?propertyConverters.gridRowEnd(+p+ +E,e):propertyConverters.gridRowEnd(+h,e)}else propertyConverters.gridRowStart(o,e)},gridRowEnd:function(o,e){var t=e.msGridRow;isSimplePositionValue(o)&&isSimplePositionValue(t)&&(e.msGridRowSpan=o-t)},gridRowStart:function(o,e){isSimplePositionValue(o)&&(e.msGridRow=o)},gridTemplateColumns:function(o,e){e.msGridColumns=o},gridTemplateRows:function(o,e){e.msGridRows=o},justifySelf:function(o,e){alignmentValues.indexOf(o)>-1&&(e.msGridColumnAlign=o)}};function grid$1(n,o,e){if(n==="display"&&o in displayValues)return displayValues[o];if(n in propertyConverters){var t=propertyConverters[n];t(o,e)}}var prefixes$1=["-webkit-",""];function imageSet(n,o){if(typeof o=="string"&&!isPrefixedValue(o)&&o.indexOf("image-set(")>-1)return prefixes$1.map(function(e){return o.replace(/image-set\(/g,e+"image-set(")})}var alternativeProps={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function logical(n,o,e){if(Object.prototype.hasOwnProperty.call(alternativeProps,n))for(var t=alternativeProps[n],c=0,p=t.length;c<p;++c)e[t[c]]=o}function position$2(n,o){if(n==="position"&&o==="sticky")return["-webkit-sticky","sticky"]}var prefixes=["-webkit-","-moz-",""],properties$1={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},values={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function sizing$1(n,o){if(properties$1.hasOwnProperty(n)&&values.hasOwnProperty(o))return prefixes.map(function(e){return e+o})}var hyphenateProperty$1={exports:{}},uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache$1={};function toHyphenLower(n){return"-"+n.toLowerCase()}function hyphenateStyleName(n){if(cache$1.hasOwnProperty(n))return cache$1[n];var o=n.replace(uppercasePattern,toHyphenLower);return cache$1[n]=msPattern.test(o)?"-"+o:o}const hyphenateStyleName$1=Object.freeze(Object.defineProperty({__proto__:null,default:hyphenateStyleName},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(hyphenateStyleName$1);var hasRequiredHyphenateProperty;function requireHyphenateProperty(){return hasRequiredHyphenateProperty||(hasRequiredHyphenateProperty=1,function(n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=p;var e=require$$0,t=c(e);function c(h){return h&&h.__esModule?h:{default:h}}function p(h){return(0,t.default)(h)}n.exports=o.default}
9(hyphenateProperty$1,hyphenateProperty$1.exports)),hyphenateProperty$1.exports}var hyphenatePropertyExports=requireHyphenateProperty();const hyphenateProperty=getDefaultExportFromCjs(hyphenatePropertyExports);var properties={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},prefixMapping={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function prefixValue(n,o){if(isPrefixedValue(n))return n;for(var e=n.split(/,(?![^()]*(?:\([^()]*\))?\))/g),t=0,c=e.length;t<c;++t){var p=e[t],h=[p];for(var y in o){var g=hyphenateProperty(y);if(p.indexOf(g)>-1&&g!=="order")for(var $=o[y],E=0,A=$.length;E<A;++E)h.unshift(p.replace(g,prefixMapping[$[E]]+g))}e[t]=h.join(",")}return e.join(",")}function transition(n,o,e,t){if(typeof o=="string"&&properties.hasOwnProperty(n)){var c=prefixValue(o,t),p=c.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(y){return!/-moz-|-ms-/.test(y)}).join(",");if(n.indexOf("Webkit")>-1)return p;var h=c.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(y){return!/-webkit-|-ms-/.test(y)}).join(",");return n.indexOf("Moz")>-1?h:(e["Webkit"+capitalizeString(n)]=p,e["Moz"+capitalizeString(n)]=h,c)}}var plugins$1=[backgroundClip,crossFade,cursor,filter$1,flexboxOld,gradient,grid$1,imageSet,logical,position$2,sizing$1,transition,flex],prefix=createPrefixer({prefixMap:data.prefixMap,plugins:plugins$1});function injectStylePrefixed(n,o,e,t){const c=n.getCache(e);let p="";for(const h in o){const y=o[h];if(y!=null)if(typeof y!="object"){const g=`${hyphenateStyleName$2(h)}:${y}`,$=`${t}${g}`,E=c.cache[$];if(E!==void 0){p+=" "+E;continue}else{let A="";const N=prefix({[h]:y});for(const Z in N){const X=N[Z],be=typeof X;if(be==="string"||be==="number"){const we=`${hyphenateStyleName$2(Z)}:${X}`;we!==g&&(A+=`${we};`)}else if(Array.isArray(X)){const we=hyphenateStyleName$2(Z);for(let $e=0;$e<X.length;$e++){const Ce=`${we}:${X[$e]}`;Ce!==g&&(A+=`${Ce};`)}}}A+=g;const H=c.addValue($,{pseudo:t,block:A});p+=" "+H}}else h[0]===":"?p+=" "+injectStylePrefixed(n,y,e,t+h):h.substring(0,6)==="@media"&&(p+=" "+injectStylePrefixed(n,y,h.substr(7),t))}return p.slice(1)}function atomicSelector(n,o){let e=`.${n}`;return o&&(e+=o),e}function keyframesToBlock(n){let o="";for(const e in n)o+=`${e}{${declarationsToBlock(n[e])}}`;return o}function declarationsToBlock(n){let o="";for(const e in n){const t=n[e];(typeof t=="string"||typeof t=="number")&&(o+=`${hyphenateStyleName$2(e)}:${t};`)}return o.slice(0,-1)}function keyframesBlockToRule(n,o){return`@keyframes ${n}{${o}}`}function fontFaceBlockToRule(n,o){return`@font-face{font-family:${n};${o}}`}function styleBlockToRule(n,o){return`${n}{${o}}`}const insertRuleIntoDevtools=(n,o)=>{const e=n.substring(1,n.indexOf(":")!==-1?n.indexOf(":"):n.length),t={};for(const c of o.split(";"))c.trim()!==""&&!window.__STYLETRON_DEVTOOLS__.atomicMap[e]&&(t[c.substring(0,c.indexOf(":"))]=c.substring(c.indexOf(":")+1,c.length));window.__STYLETRON_DEVTOOLS__.atomicMap[e]=t},STYLES_HYDRATOR=/\.([^{:]+)(:[^{]+)?{(?:[^}]*;)?([^}]*?)}/g,KEYFRAMES_HYRDATOR=/@keyframes ([^{]+){((?:(?:from|to|(?:\d+\.?\d*%))\{(?:[^}])*})*)}/g,FONT_FACE_HYDRATOR=/@font-face\{font-family:([^;]+);([^}]*)\}/g;function hydrateStyles(n,o,e){let t;for(;t=o.exec(e);){const[,c,p,h]=t,y=p?`${p}${h}`:h;n.cache[y]=c,n.idGenerator.increment()}}function hydrate(n,o,e){let t;for(;t=o.exec(e);){const[,c,p]=t;n.cache[p]=c,n.idGenerator.increment()}}class StyletronClient{constructor(o={}){this.styleElements={};const e=new SequentialIDGenerator(o.prefix),t=(c,p,h)=>{const{pseudo:y,block:g}=h,$=this.styleElements[c.key].sheet,E=atomicSelector(p,y),A=styleBlockToRule(E,g);try{$.insertRule(A,$.cssRules.length)}catch{}};if(this.styleCache=new MultiCache(e,(c,p,h)=>{const y=document.createElement("style");if(y.media=c,h===void 0)this.container.appendChild(y);else{const g=findSheetIndexWithMedia(this.container.children,h);this.container.insertBefore(y,this.container.children[g])}this.styleElements[c]=y},t),this.keyframesCache=new Cache(new SequentialIDGenerator(o.prefix),(c,p,h)=>{this.styleCache.getCache("");const y=this.styleElements[""].sheet,g=keyframesBlockToRule(p,keyframesToBlock(h));try{y.insertRule(g,y.cssRules.length)}catch{}}
9),this.fontFaceCache=new Cache(new SequentialIDGenerator(o.prefix),(c,p,h)=>{this.styleCache.getCache("");const y=this.styleElements[""].sheet,g=fontFaceBlockToRule(p,declarationsToBlock(h));try{y.insertRule(g,y.cssRules.length)}catch{}}),o.container&&(this.container=o.container),o.hydrate&&o.hydrate.length>0){if(!this.container){const c=o.hydrate[0].parentElement;c!=null&&(this.container=c)}for(let c=0;c<o.hydrate.length;c++){const p=o.hydrate[c],h=p.getAttribute("data-hydrate");if(h==="font-face"){hydrate(this.fontFaceCache,FONT_FACE_HYDRATOR,p.textContent);continue}if(h==="keyframes"){hydrate(this.keyframesCache,KEYFRAMES_HYRDATOR,p.textContent);continue}const y=p.media?p.media:"";this.styleElements[y]=p;const g=new Cache(e,t);g.key=y,hydrateStyles(g,STYLES_HYDRATOR,p.textContent),this.styleCache.sortedCacheKeys.push(y),this.styleCache.caches[y]=g}}if(!this.container){if(document.head===null)throw new Error("No container provided and `document.head` was null");this.container=document.head}}renderStyle(o){return injectStylePrefixed(this.styleCache,o,"","")}renderFontFace(o){const e=declarationsToBlock(o);return this.fontFaceCache.addValue(e,o)}renderKeyframes(o){const e=keyframesToBlock(o);return this.keyframesCache.addValue(e,o)}}function findSheetIndexWithMedia(n,o){let e=0;for(;e<n.length;e++){const t=n[e];if(t.tagName==="STYLE"&&t.media===o)return e}return-1}function driver(n,o){const e=renderDeclarativeRules(n,o);return o.renderStyle(e)}function getInitialStyle(){return{}}function renderDeclarativeRules(n,o){for(const e in n){const t=n[e];if(e==="animationName"&&typeof t!="string"){n.animationName=o.renderKeyframes(t);continue}if(e==="fontFamily"&&typeof t!="string")if(Array.isArray(t)){let c="";for(const p of t)typeof p=="object"?c+=`${o.renderFontFace(p)},`:typeof p=="string"&&(c+=`${p},`);n.fontFamily=c.slice(0,-1);continue}else{if(t===void 0)continue;n.fontFamily=o.renderFontFace(t);continue}typeof t=="object"&&t!==null&&renderDeclarativeRules(t,o)}return n}function _extends$B(){return _extends$B=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$B.apply(this,arguments)}const noopEngine={renderStyle:()=>"",renderKeyframes:()=>"",renderFontFace:()=>""},StyletronContext=reactExports.createContext(noopEngine),HydrationContext=reactExports.createContext(!1),DebugEngineContext=reactExports.createContext(void 0),Provider$1=StyletronContext.Provider;function checkNoopEngine(n){n===noopEngine&&console.warn("Styletron Provider is not set up. Defaulting to no-op.")}function useStyletron$1(){const n=reactExports.useContext(StyletronContext);return reactExports.useContext(DebugEngineContext),reactExports.useContext(HydrationContext),checkNoopEngine(n),reactExports.useRef(""),reactExports.useRef([]),[function(e){return driver(e,n)}]}function createStyled$1({getInitialStyle:n,driver:o,wrapper:e}){function t(c,p){return createStyledElementComponent(autoComposeShallow({reducers:[],base:c,driver:o,getInitialStyle:n,wrapper:e},p))}return t}const withStyleDeep=(n,o)=>{const e=n.__STYLETRON__;return createStyledElementComponent(autoComposeDeep(e,o))},withStyle$1=withStyleDeep,withWrapper$1=(n,o)=>{const e=n.__STYLETRON__,t={getInitialStyle:e.getInitialStyle,base:e.base,driver:e.driver,wrapper:o,reducers:e.reducers};return createStyledElementComponent(t)};function autoComposeShallow(n,o){return typeof o=="function"?dynamicComposeShallow(n,o):staticComposeShallow(n,o)}function autoComposeDeep(n,o){return typeof o=="function"?dynamicComposeDeep(n,o):staticComposeDeep(n,o)}function staticComposeShallow(n,o){return composeStatic(n,createShallowMergeReducer(o))}function staticComposeDeep(n,o){return composeStatic(n,createDeepMergeReducer(o))}function dynamicComposeShallow(n,o){return composeDynamic(n,(e,t)=>shallowMerge(e,o(t)))}function dynamicComposeDeep(n,o){return composeDynamic(n,(e,t)=>deepMerge$1(e,o(t)))}function createShallowMergeReducer(n){return{reducer:o=>shallowMerge(o,n),assignmentCommutative:!0,factory:createShallowMergeReducer,style:n}}function createDeepMergeReducer(n){return{reducer:o=>
9deepMerge$1(o,n),assignmentCommutative:!0,factory:createDeepMergeReducer,style:n}}function composeStatic(n,o){if(n.reducers.length===0){const e=o.reducer(n.getInitialStyle());return{reducers:n.reducers,base:n.base,driver:n.driver,wrapper:n.wrapper,getInitialStyle:()=>e}}else{const e=n.reducers[0];if(e.assignmentCommutative===!0&&o.assignmentCommutative===!0){const t=o.reducer(e.style);return{getInitialStyle:n.getInitialStyle,base:n.base,driver:n.driver,wrapper:n.wrapper,reducers:[e.factory(t)].concat(n.reducers.slice(1))}}return composeDynamic(n,o.reducer)}}function composeDynamic(n,o){return{getInitialStyle:n.getInitialStyle,base:n.base,driver:n.driver,wrapper:n.wrapper,reducers:[{assignmentCommutative:!1,reducer:o}].concat(n.reducers)}}function createStyledElementComponent(n){const{reducers:o,base:e,driver:t,wrapper:c,getInitialStyle:p,ext:h}=n,g=c(reactExports.forwardRef(($,E)=>{const A=reactExports.useContext(StyletronContext);reactExports.useContext(DebugEngineContext),reactExports.useContext(HydrationContext),checkNoopEngine(A);const N=omitPrefixedKeys($);let H=resolveStyle(p,o,$);$.$style&&(typeof $.$style=="function"?H=deepMerge$1(H,$.$style($)):H=deepMerge$1(H,$.$style));const Z=t(H,A),X=$.$as?$.$as:e;return N.className=$.className?`${$.className} ${Z}`:Z,$.$ref&&console.warn("The prop `$ref` has been deprecated. Use `ref` instead. Refs are now forwarded with React.forwardRef."),reactExports.createElement(X,_extends$B({},N,{ref:E||$.$ref}))}));return g.__STYLETRON__={base:e,reducers:o,driver:t,wrapper:c,getInitialStyle:p},g}function resolveStyle(n,o,e){let t=n(),c=o.length;for(;c--;){const p=o[c].reducer;t=p(t,e)}return t}function isObject$2(n){return typeof n=="object"&&n!==null}function omitPrefixedKeys(n){const o={};for(const e in n)e[0]!=="$"&&(o[e]=n[e]);return o}function deepMerge$1(n,o){const e=assign({},n);for(const t in o){const c=o[t];isObject$2(c)&&isObject$2(n[t])?e[t]=deepMerge$1(n[t],c):e[t]=c}return e}function shallowMerge(n,o){return assign(assign({},n),o)}function assign(n,o){for(const e in o)n[e]=o[e];return n}var jsx=function(o,e){var t=arguments;if(e==null||!hasOwn.call(e,"css"))return reactExports.createElement.apply(void 0,t);var c=t.length,p=new Array(c);p[0]=Emotion$1,p[1]=createEmotionProps(o,e);for(var h=2;h<c;h++)p[h]=t[h];return reactExports.createElement.apply(null,p)};(function(n){var o;o||(o=n.JSX||(n.JSX={}))})(jsx||(jsx={}));var Global=withEmotionCache(function(n,o){var e=n.styles,t=serializeStyles([e],void 0,reactExports.useContext(ThemeContext$2)),c=reactExports.useRef();return useInsertionEffectWithLayoutFallback(function(){var p=o.key+"-global",h=new o.sheet.constructor({key:p,nonce:o.sheet.nonce,container:o.sheet.container,speedy:o.sheet.isSpeedy}),y=!1,g=document.querySelector('style[data-emotion="'+p+" "+t.name+'"]');return o.sheet.tags.length&&(h.before=o.sheet.tags[0]),g!==null&&(y=!0,g.setAttribute("data-emotion",p),h.hydrate([g])),c.current=[h,y],function(){h.flush()}},[o]),useInsertionEffectWithLayoutFallback(function(){var p=c.current,h=p[0],y=p[1];if(y){p[1]=!1;return}if(t.next!==void 0&&insertStyles(o,t.next,!0),h.tags.length){var g=h.tags[h.tags.length-1].nextElementSibling;h.before=g,h.flush()}o.insert("",t,h,!1)},[o,t.name]),null});function css(){for(var n=arguments.length,o=new Array(n),e=0;e<n;e++)o[e]=arguments[e];return serializeStyles(o)}function keyframes(){var n=css.apply(void 0,arguments),o="animation-"+n.name;return{name:o,styles:"@keyframes "+o+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const FontFaceDeclaration=({fontFaces:n})=>{const o=n.map(e=>{const{family:t,weight:c,weightRange:p,url:h,style:y,unicodeRange:g}=e,$=p||c;return` 10 @font-face { 11 font-family: ${t}; 12 src: url(${h}) format("woff2"); 13 font-display: swap; 14 ${y?`font-style: ${y};`:""} 15 ${$?`font-weight: ${$};`:""} 16 ${g?`unicode-range: ${g};`:""} 17 } 18 `});return jsx$1(Global,{styles:[css(o)]})},FontSources=({fontSources:n})=>jsx$1(Helmet,{children:Object.entries(n).map(([o,e])=>jsx$1("link",{id:o,rel:"stylesheet",href:e},o))});typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let n,o;const e=new Promise((t,c)=>{n=t,o=c});return{resolve:n,reject:o,promise:e}});function getCookie(n){const o=document.cookie.match(`\\b${n}=([^;]*)\\b`);return o?o[1]:void 0}function localStorageAvailable(){const n="testData";try{const{localStorage:o}=window;o.setItem(n,n),o.getItem(n),o.removeItem(n)}catch{return!1}return!0}function notNullOrUndefined(n){return n!=null}function isNullOrUndefined(n){return n==null}const isLocalhost=()=>window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1";var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1,aspromise=n;function n(o,e){for(var t=new Array(arguments.length-1),c=0,p=2,h=!0;p<arguments.length;)t[c++]=arguments[p++];return new Promise(function(g,$){t[c]=function(A){if(h)if(h=!1,A)$(A);else{for(var N=new Array(arguments.length-1),H=0;H<N.length;)N[H++]=arguments[H];g.apply(null,N)}};try{o.apply(e||null,t)}catch(E){h&&(h=!1,$(E))}})}return aspromise}var base64={},hasRequiredBase64;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,function(n){var o=n;o.length=function(y){var g=y.length;if(!g)return 0;for(var $=0;--g%4>1&&y.charAt(g)==="=";)++$;return Math.ceil(y.length*3)/4-$};for(var e=new Array(64),t=new Array(123),c=0;c<64;)t[e[c]=c<26?c+65:c<52?c+71:c<62?c-4:c-59|43]=c++;o.encode=function(y,g,$){for(var E=null,A=[],N=0,H=0,Z;g<$;){var X=y[g++];switch(H){case 0:A[N++]=e[X>>2],Z=(X&3)<<4,H=1;break;case 1:A[N++]=e[Z|X>>4],Z=(X&15)<<2,H=2;break;case 2:A[N++]=e[Z|X>>6],A[N++]=e[X&63],H=0;break}N>8191&&((E||(E=[])).push(String.fromCharCode.apply(String,A)),N=0)}return H&&(A[N++]=e[Z],A[N++]=61,H===1&&(A[N++]=61)),E?(N&&E.push(String.fromCharCode.apply(String,A.slice(0,N)
vendor: 22,328 bytes, line 18
18)),E.join("")):String.fromCharCode.apply(String,A.slice(0,N))};var p="invalid encoding";o.decode=function(y,g,$){for(var E=$,A=0,N,H=0;H<y.length;){var Z=y.charCodeAt(H++);if(Z===61&&A>1)break;if((Z=t[Z])===void 0)throw Error(p);switch(A){case 0:N=Z,A=1;break;case 1:g[$++]=N<<2|(Z&48)>>4,N=Z,A=2;break;case 2:g[$++]=(N&15)<<4|(Z&60)>>2,N=Z,A=3;break;case 3:g[$++]=(N&3)<<6|Z,A=0;break}}if(A===1)throw Error(p);return $-E},o.test=function(y){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(y)}}(base64)),base64}var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1,eventemitter=n;function n(){this._listeners={}}return n.prototype.on=function(e,t,c){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:c||this}),this},n.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var c=this._listeners[e],p=0;p<c.length;)c[p].fn===t?c.splice(p,1):++p;return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var c=[],p=1;p<arguments.length;)c.push(arguments[p++]);for(p=0;p<t.length;)t[p].fn.apply(t[p++].ctx,c)}return this},eventemitter}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1,float=n(n);function n(p){return typeof Float32Array<"u"?function(){var h=new Float32Array([-0]),y=new Uint8Array(h.buffer),g=y[3]===128;function $(H,Z,X){h[0]=H,Z[X]=y[0],Z[X+1]=y[1],Z[X+2]=y[2],Z[X+3]=y[3]}function E(H,Z,X){h[0]=H,Z[X]=y[3],Z[X+1]=y[2],Z[X+2]=y[1],Z[X+3]=y[0]}p.writeFloatLE=g?$:E,p.writeFloatBE=g?E:$;function A(H,Z){return y[0]=H[Z],y[1]=H[Z+1],y[2]=H[Z+2],y[3]=H[Z+3],h[0]}function N(H,Z){return y[3]=H[Z],y[2]=H[Z+1],y[1]=H[Z+2],y[0]=H[Z+3],h[0]}p.readFloatLE=g?A:N,p.readFloatBE=g?N:A}():function(){function h(g,$,E,A){var N=$<0?1:0;if(N&&($=-$),$===0)g(1/$>0?0:2147483648,E,A);else if(isNaN($))g(2143289344,E,A);else if($>34028234663852886e22)g((N<<31|2139095040)>>>0,E,A);else if($<11754943508222875e-54)g((N<<31|Math.round($/1401298464324817e-60))>>>0,E,A);else{var H=Math.floor(Math.log($)/Math.LN2),Z=Math.round($*Math.pow(2,-H)*8388608)&8388607;g((N<<31|H+127<<23|Z)>>>0,E,A)}}p.writeFloatLE=h.bind(null,o),p.writeFloatBE=h.bind(null,e);function y(g,$,E){var A=g($,E),N=(A>>31)*2+1,H=A>>>23&255,Z=A&8388607;return H===255?Z?NaN:N*(1/0):H===0?N*1401298464324817e-60*Z:N*Math.pow(2,H-150)*(Z+8388608)}p.readFloatLE=y.bind(null,t),p.readFloatBE=y.bind(null,c)}(),typeof Float64Array<"u"?function(){var h=new Float64Array([-0]),y=new Uint8Array(h.buffer),g=y[7]===128;function $(H,Z,X){h[0]=H,Z[X]=y[0],Z[X+1]=y[1],Z[X+2]=y[2],Z[X+3]=y[3],Z[X+4]=y[4],Z[X+5]=y[5],Z[X+6]=y[6],Z[X+7]=y[7]}function E(H,Z,X){h[0]=H,Z[X]=y[7],Z[X+1]=y[6],Z[X+2]=y[5],Z[X+3]=y[4],Z[X+4]=y[3],Z[X+5]=y[2],Z[X+6]=y[1],Z[X+7]=y[0]}p.writeDoubleLE=g?$:E,p.writeDoubleBE=g?E:$;function A(H,Z){return y[0]=H[Z],y[1]=H[Z+1],y[2]=H[Z+2],y[3]=H[Z+3],y[4]=H[Z+4],y[5]=H[Z+5],y[6]=H[Z+6],y[7]=H[Z+7],h[0]}function N(H,Z){return y[7]=H[Z],y[6]=H[Z+1],y[5]=H[Z+2],y[4]=H[Z+3],y[3]=H[Z+4],y[2]=H[Z+5],y[1]=H[Z+6],y[0]=H[Z+7],h[0]}p.readDoubleLE=g?A:N,p.readDoubleBE=g?N:A}():function(){function h(g,$,E,A,N,H){var Z=A<0?1:0;if(Z&&(A=-A),A===0)g(0,N,H+$),g(1/A>0?0:2147483648,N,H+E);else if(isNaN(A))g(0,N,H+$),g(2146959360,N,H+E);else if(A>17976931348623157e292)g(0,N,H+$),g((Z<<31|2146435072)>>>0,N,H+E);else{var X;if(A<22250738585072014e-324)X=A/5e-324,g(X>>>0,N,H+$),g((Z<<31|X/4294967296)>>>0,N,H+E);else{var be=Math.floor(Math.log(A)/Math.LN2);be===1024&&(be=1023),X=A*Math.pow(2,-be),g(X*4503599627370496>>>0,N,H+$),g((Z<<31|be+1023<<20|X*1048576&1048575)>>>0,N,H+E)}}}p.writeDoubleLE=h.bind(null,o,0,4),p.writeDoubleBE=h.bind(null,e,4,0);function y(g,$,E,A,N){var H=g(A,N+$),Z=g(A,N+E),X=(Z>>31)*2+1,be=Z>>>20&2047,we=4294967296*(Z&1048575)+H;return be===2047?we?NaN:X*(1/0):be===0?X*5e-324*we:X*Math.pow(2,be-1075)*(we+4503599627370496)}p.readDoubleLE=y.bind(null,t,0,4),p.readDoubleBE=y.bind(null,c,4,0)}(),p}function o(p,h,y){h[y]=p&255,h[y+1]=p>>>8&255,h[y+2]=p>>>16&255,h[y+3]=p>>>24}function e(p,h,y){h[y]=p>>>24,h[y+1]=p>>>16&255,h[y+2]=p>>>8&255,h[y+3]=p&255}function t(p,h){return(p[h]|p[h+1]<<8|p[h+2]<<16|p[h+3]<<24)>>>0}function c(p,h){return(p[h]<<24|p[h+1]<<16|p[h+2]<<8|p[h+3])>>>0}return float}var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1,inquire_1=inquire;function inquire(moduleName){if(typeof process>"u"&&typeof document<"u")return null;try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(n){}return null}return inquire_1}var utf8={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(n){var o=n;o.length=function(t){for(var c=0,p=0,h=0;h<t.length;++h)p=t.charCodeAt(h),p<128?c+=1:p<2048?c+=2:(p&64512)===55296&&(t.charCodeAt(h+1)&64512)===56320?(++h,c+=4):c+=3;return c},o.read=function(t,c,p){var h=p-c;if(h<1)return"";for(var y=null,g=[],$=0,E;c<p;)E=t[c++],E<128?g[$++]=E:E>191&&E<224?g[$++]=(E&31)<<6|t[c++]&63:E>239&&E<365?(E=((E&7)<<18|(t[c++]&63)<<12|(t[c++]&63)<<6|t[c++]&63)-65536,g[$++]=55296+(E>>10),g[$++]=56320+(E&1023)):g[$++]=(E&15)<<12|(t[c++]&63)<<6|t[c++]&63,$>8191&&((y||(y=[])).push(String.fromCharCode.apply(String,g)),$=0);return y?($&&y.push(String.fromCharCode.apply(String,g.slice(0,$))),y.join("")):String.fromCharCode.apply(String,g.slice(0,$))},o.write=function(t,c,p){for(var h=p,y,g,$=0;$<t.length;++$)y=t.charCodeAt($),y<128?c[p++]=y:y<2048?(c[p++]=y>>6|192,c[p++]=y&63|128):(y&64512)===55296&&((g=t.charCodeAt($+1))&64512)===56320?(y=65536+((y&1023)<<10)+(g&1023),++$,c[p++]=y>>18|240,c[p++]=y>>12&63|128,c[p++]=y>>6&63|128,c[p++]=y&63|128):(c[p++]=y>>12|224,c[p++]=y>>6&63|128,c[p++]=y&63|128);return p-h}}(utf8)),utf8}var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1,pool_1=n;function n(o,e,t){var c=t||8192,p=c>>>1,h=null,y=c;return function($){if($<1||$>p)return o($);y+$>c&&(h=o(c),y=0);var E=e.call(h,y,y+=$);return y&7&&(y=(y|7)+1),E}}return pool_1}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=o;var n=requireMinimal$1();function o(p,h){this.lo=p>>>0,this.hi=h>>>0}var e=o.zero=new o(0,0);e.toNumber=function(){return 0},e.zzEncode=e.zzDecode=function(){return this},e.length=function(){return 1};var t=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(h){if(h===0)return e;var y=h<0;y&&(h=-h);var g=h>>>0,$=(h-g)/4294967296>>>0;return y&&($=~$>>>0,g=~g>>>0,++g>4294967295&&(g=0,++$>4294967295&&($=0))),new o(g,$)},o.from=function(h){if(typeof h=="number")return o.fromNumber(h);if(n.isString(h))if(n.Long)h=n.Long.fromString(h);else return o.fromNumber(parseInt(h,10));return h.low||h.high?new o(h.low>>>0,h.high>>>0):e},o.prototype.toNumber=function(h){if(!h&&this.hi>>>31){var y=~this.lo+1>>>0,g=~this.hi>>>0;return y||(g=g+1>>>0),-(y+g*4294967296)}return this.lo+this.hi*4294967296},o.prototype.toLong=function(h){return n.Long?new n.Long(this.lo|0,this.hi|0,!!h):{low:this.lo|0,high:this.hi|0,unsigned:!!h}};var c=String.prototype.charCodeAt;return o.fromHash=function(h){return h===t?e:new o((c.call(h,0)|c.call(h,1)<<8|c.call(h,2)<<16|c.call(h,3)<<24)>>>0,(c.call(h,4)|c.call(h,5)<<8|c.call(h,6)<<16|c.call(h,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var h=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^h)>>>0,this.lo=(this.lo<<1^h)>>>0,this},o.prototype.zzDecode=function(){var h=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^h)>>>0,this.hi=(this.hi>>>1^h)>>>0,this},o.prototype.length=function(){var h=this.lo,y=(this.lo>>>28|this.hi<<4)>>>0,g=this.hi>>>24;return g===0?y===0?h<16384?h<128?1:2:h<2097152?3:4:y<16384?y<128?5:6:y<2097152?7:8:g<128?9:10},longbits}var hasRequiredMinimal$1;function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,function(n){var o=n;o.asPromise=requireAspromise(),o.base64=requireBase64(),o.EventEmitter=requireEventemitter(),o.float=requireFloat(),o.inquire=requireInquire(),o.utf8=requireUtf8(),o.pool=requirePool(),o.LongBits=requireLongbits(),o.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),o.global=o.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||minimal$1,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isInteger=Number.isInteger||function(p){return typeof p=="number"&&isFinite(p)&&Math.floor(p)===p},o.isString=function(p){return typeof p=="string"||p instanceof String},o.isObject=function(p){return p&&typeof p=="object"},o.isset=o.isSet=function(p,h){var y=p[h];return y!=null&&p.hasOwnProperty(h)?typeof y!="object"||(Array.isArray(y)?y.length:Object.keys(y).length)>0:!1},o.Buffer=function(){try{var c=o.inquire("buffer").Buffer;return c.prototype.utf8Write?c:null}catch{return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(p){return typeof p=="number"?o.Buffer?o._Buffer_allocUnsafe(p):new o.Array(p):o.Buffer?o._Buffer_from(p):typeof Uint8Array>"u"?p:new Uint8Array(p)},o.Array=typeof Uint8Array<"u"?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(p){return p?o.LongBits.from(p).toHash():o.LongBits.zeroHash},o.longFromHash=function(p,h){var y=o.LongBits.fromHash(p);return o.Long?o.Long.fromBits(y.lo,y.hi,h):y.toNumber(!!h)};function e(c,p,h){for(var y=Object.keys(p),g=0;g<y.length;++g)(c[y[g]]===void 0||!h)&&(c[y[g]]=p[y[g]]);return c}o.merge=e,o.lcFirst=function(p){return p.charAt(0).toLowerCase()+p.substring(1)};function t(c){function p(h,y){if(!(this instanceof p))return new p(h,y);Object.defineProperty(this,"message",{get:function(){return h}}),Error.captureStackTrace?Error.captureStackTrace(this,p):Object.defineProperty(this,"stack",{value:new Error().stack||""}),y&&e(this,y)}return p.prototype=Object.create(Error.prototype,{constructor:{value:p,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return c},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),p}o.newError=t,o.ProtocolError=t("ProtocolError"),o.oneOfGetter=function(p){for(var h={},y=0;y<p.length;++y)h[p[y]]=1;return function(){for(var g=Object.keys(this),$=g.length-1;$>-1;--$)if(h[g[$]]===1&&this[g[$]]!==void 0&&this[g[$]]!==null)return g[$]}},o.oneOfSetter=function(p){return function(h){for(var y=0;y<p.length;++y)p[y]!==h&&delete this[p[y]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},o._configure=function(){var c=o.Buffer;if(!c){o._Buffer_from=o._Buffer_allocUnsafe=null;return}o._Buffer_from=c.from!==Uint8Array.from&&c.from||function(h,y){return new c(h,y)},o._Buffer_allocUnsafe=c.allocUnsafe||function(h){return new c(h)}}}(minimal$1)),minimal$1}var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=g;var n=requireMinimal$1(),o,e=n.LongBits,t=n.base64,c=n.utf8;function p(be,we,$e){this.fn=be,this.len=we,this.next=void 0,this.val=$e}function h(){}function y(be){this.head=be.head,this.tail=be.tail,this.len=be.len,this.next=be.states}function g(){this.len=0,this.head=new p(h,0,0),this.tail=this.head,this.states=null}var $=function(){return n.Buffer?function(){return(g.create=function(){return new o})()}:function(){return new g}};g.create=$(),g.alloc=function(we){return new n.Array(we)},n.Array!==Array&&(g.alloc=n.pool(g.alloc,n.Array.prototype.subarray)),g.prototype._push=function(we,$e,Ce){return this.tail=this.tail.next=new p(we,$e,Ce),this.len+=$e,this};function E(be,we,$e){we[$e]=be&255}function A(be,we,$e){for(;be>127;)we[$e++]=be&127|128,be>>>=7;we[$e]=be}function N(be,we){this.len=be,this.next=void 0,this.val=we}N.prototype=Object.create(p.prototype),N.prototype.fn=A,g.prototype.uint32=function(we){return this.len+=(this.tail=this.tail.next=new N((we=we>>>0)<128?1:we<16384?2:we<2097152?3:we<268435456?4:5,we)).len,this},g.prototype.int32=function(we){return we<0?this._push(H,10,e.fromNumber(we)):this.uint32(we)},g.prototype.sint32=function(we){return this.uint32((we<<1^we>>31)>>>0)};function H(be,we,$e){for(;be.hi;)we[$e++]=be.lo&127|128,be.lo=(be.lo>>>7|be.hi<<25)>>>0,be.hi>>>=7;for(;be.lo>127;)we[$e++]=be.lo&127|128,be.lo=be.lo>>>7;we[$e++]=be.lo}g.prototype.uint64=function(we){var $e=e.from(we);return this._push(H,$e.length(),$e)},g.prototype.int64=g.prototype.uint64,g.prototype.sint64=function(we){var $e=e.from(we).zzEncode();return this._push(H,$e.length(),$e)},g.prototype.bool=function(we){return this._push(E,1,we?1:0)};function Z(be,we,$e){we[$e]=be&255,we[$e+1]=be>>>8&255,we[$e+2]=be>>>16&255,we[$e+3]=be>>>24}g.prototype.fixed32=function(we){return this._push(Z,4,we>>>0)},g.prototype.sfixed32=g.prototype.fixed32,g.prototype.fixed64=function(we){var $e=e.from(we);return this._push(Z,4,$e.lo)._push(Z,4,$e.hi)},g.prototype.sfixed64=g.prototype.fixed64,g.prototype.float=function(we){return this._push(n.float.writeFloatLE,4,we)},g.prototype.double=function(we){return this._push(n.float.writeDoubleLE,8,we)};var X=n.Array.prototype.set?function(we,$e,Ce){$e.set(we,Ce)}:function(we,$e,Ce){for(var Ie=0;Ie<we.length;++Ie)$e[Ce+Ie]=we[Ie]};return g.prototype.bytes=function(we){var $e=we.length>>>0;if(!$e)return this._push(E,1,0);if(n.isString(we)){var Ce=g.alloc($e=t.length(we));t.decode(we,Ce,0),we=Ce}return this.uint32($e)._push(X,$e,we)},g.prototype.string=function(we){var $e=c.length(we);return $e?this.uint32($e)._push(c.write,$e,we):this._push(E,1,0)},g.prototype.fork=function(){return this.states=new y(this),this.head=this.tail=new p(h,0,0),this.len=0,this},g.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new p(h,0,0),this.len=0),this},g.prototype.ldelim=function(){var we=this.head,$e=this.tail,Ce=this.len;return this.reset().uint32(Ce),Ce&&(this.tail.next=we.next,this.tail=$e,this.len+=Ce),this},g.prototype.finish=function(){for(var we=this.head.next,$e=this.constructor.alloc(this.len),Ce=0;we;)we.fn(we.val,$e,Ce),Ce+=we.len,we=we.next;return $e},g._configure=function(be){o=be,g.create=$(),o._configure()},writer}var writer_buffer,hasRequiredWriter_buffer;function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=e;var n=requireWriter();(e.prototype=Object.create(n.prototype)).constructor=e;var o=requireMinimal$1();function e(){n.call(this)}e._configure=function(){e.alloc=o._Buffer_allocUnsafe,e.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&o.Buffer.prototype.set.name==="set"?function(p,h,y){h.set(p,y)}:function(p,h,y){if(p.copy)p.copy(h,y,0,p.length);else for(var g=0;g<p.length;)h[y++]=p[g++]}},e.prototype.bytes=function(p){o.isString(p)&&(p=o._Buffer_from(p,"base64"));var h=p.length>>>0;return this.uint32(h),h&&this._push(e.writeBytesBuffer,h,p),this};function t(c,p,h){c.length<40?o.utf8.write(c,p,h):p.utf8Write?p.utf8Write(c,h):p.write(c,h)}return e.prototype.string=function(p){var h=o.Buffer.byteLength(p);return this.uint32(h),h&&this._push(t,h,p),this},e._configure(),writer_buffer}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=p;var n=requireMinimal$1(),o,e=n.LongBits,t=n.utf8;function c(A,N){return RangeError("index out of range: "+A.pos+" + "+(N||1)+" > "+A.len)}function p(A){this.buf=A,this.pos=0,this.len=A.length}var h=typeof Uint8Array<"u"?function(N){if(N instanceof Uint8Array||Array.isArray(N))return new p(N);throw Error("illegal buffer")}:function(N){if(Array.isArray(N))return new p(N);throw Error("illegal buffer")},y=function(){return n.Buffer?function(H){return(p.create=function(X){return n.Buffer.isBuffer(X)?new o(X):h(X)})(H)}:h};p.create=y(),p.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,p.prototype.uint32=function(){var N=4294967295;return function(){if(N=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(N=(N|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(N=(N|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(N=(N|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(N=(N|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return N;if((this.pos+=5)>this.len)throw this.pos=this.len,c(this,10);return N}}(),p.prototype.int32=function(){return this.uint32()|0},p.prototype.sint32=function(){var N=this.uint32();return N>>>1^-(N&1)|0};function g(){var A=new e(0,0),N=0;if(this.len-this.pos>4){for(;N<4;++N)if(A.lo=(A.lo|(this.buf[this.pos]&127)<<N*7)>>>0,this.buf[this.pos++]<128)return A;if(A.lo=(A.lo|(this.buf[this.pos]&127)<<28)>>>0,A.hi=(A.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return A;N=0}else{for(;N<3;++N){if(this.pos>=this.len)throw c(this);if(A.lo=(A.lo|(this.buf[this.pos]&127)<<N*7)>>>0,this.buf[this.pos++]<128)return A}return A.lo=(A.lo|(this.buf[this.pos++]&127)<<N*7)>>>0,A}if(this.len-this.pos>4){for(;N<5;++N)if(A.hi=(A.hi|(this.buf[this.pos]&127)<<N*7+3)>>>0,this.buf[this.pos++]<128)return A}else for(;N<5;++N){if(this.pos>=this.len)throw c(this);if(A.hi=(A.hi|(this.buf[this.pos]&127)<<N*7+3)>>>0,this.buf[this.pos++]<128)return A}throw Error("invalid varint encoding")}p.prototype.bool=function(){return this.uint32()!==0};function $(A,N){return(A[N-4]|A[N-3]<<8|A[N-2]<<16|A[N-1]<<24)>>>0}p.prototype.fixed32=function(){if(this.pos+4>this.len)throw c(this,4);return $(this.buf,this.pos+=4)},p.prototype.sfixed32=function(){if(this.pos+4>this.len)throw c(this,4);return $(this.buf,this.pos+=4)|0};function E(){if(this.pos+8>this.len)throw c(this,8);return new e($(this.buf,this.pos+=4),$(this.buf,this.pos+=4))}return p.prototype.float=function(){if(this.pos+4>this.len)throw c(this,4);var N=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,N},p.prototype.double=function(){if(this.pos+8>this.len)throw c(this,4);var N=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,N},p.prototype.bytes=function(){var N=this.uint32(),H=this.pos,Z=this.pos+N;if(Z>this.len)throw c(this,N);if(this.pos+=N,Array.isArray(this.buf))return this.buf.slice(H,Z);if(H===Z){var X=n.Buffer;return X?X.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,H,Z)},p.prototype.string=function(){var N=this.bytes();return t.read(N,0,N.length)},p.prototype.skip=function(N){if(typeof N=="number"){if(this.pos+N>this.len)throw c(this,N);this.pos+=N}else do if(this.pos>=this.len)throw c(this);while(this.buf[this.pos++]&128);return this},p.prototype.skipType=function(A){switch(A){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(A=this.uint32()&7)!==4;)this.skipType(A);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+A+" at offset "+this.pos)}return this},p._configure=function(A){o=A,p.create=y(),o._configure();var N=n.Long?"toLong":"toNumber";n.merge(p.prototype,{int64:function(){return g.call(this)[N](!1)},uint64:function(){return g.call(this)[N](!0)},sint64:function(){return g.call(this).zzDecode()[N](!1)},fixed64:function(){return E.call(this)[N](!0)},sfixed64:function(){return E.call(this)[N](!1)}})},reader}var reader_buffer,hasRequiredReader_buffer;function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=e;var n=requireReader();(e.prototype=Object.create(n.prototype)).constructor=e;var o=requireMinimal$1();function e(t){n.call(this,t)}return e._configure=function(){o.Buffer&&(e.prototype._slice=o.Buffer.prototype.slice)},e.prototype.string=function(){var c=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+c,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+c,this.len))},e._configure(),reader_buffer}var rpc={},service$1,hasRequiredService$1;function requireService$1(){if(hasRequiredService$1)return service$1;hasRequiredService$1=1,service$1=o;var n=requireMinimal$1();(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o;function o(e,t,c){if(typeof e!="function")throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!c}return o.prototype.rpcCall=function e(t,c,p,h,y){if(!h)throw TypeError("request must be specified");var g=this;if(!y)return n.asPromise(e,g,t,c,p,h);if(!g.rpcImpl){setTimeout(function(){y(Error("already ended"))},0);return}try{return g.rpcImpl(t,c[g.requestDelimited?"encodeDelimited":"encode"](h).finish(),function(E,A){if(E)return g.emit("error",E,t),y(E);if(A===null){g.end(!0);return}if(!(A instanceof p))try{A=p[g.responseDelimited?"decodeDelimited":"decode"](A)}catch(N){return g.emit("error",N,t),y(N)}return g.emit("data",A,t),y(null,A)})}catch($){g.emit("error",$,t),setTimeout(function(){y($)},0);return}},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service$1}var hasRequiredRpc;function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,function(n){var o=n;o.Service=requireService$1()}(rpc)),rpc}var roots,hasRequiredRoots;function requireRoots(){return hasRequiredRoots||(hasRequiredRoots=1,roots={}),roots}var hasRequiredIndexMinimal;function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,function(n){var o=n;o.build="minimal",o.Writer=requireWriter(),o.BufferWriter=requireWriter_buffer(),o.Reader=requireReader(),o.BufferReader=requireReader_buffer(),o.util=requireMinimal$1(),o.rpc=requireRpc(),o.roots=requireRoots(),o.configure=e;function e(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._
18configure(o.BufferReader)}e()}(indexMinimal)),indexMinimal}var minimal,hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,minimal=requireIndexMinimal()),minimal}var minimalExports=requireMinimal();const $Reader=minimalExports.Reader,$Writer=minimalExports.Writer,$util=minimalExports.util,$root=minimalExports.roots.default||(minimalExports.roots.default={}),Alert=$root.Alert=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.body="",n.prototype.format=0,n.prototype.icon="",n.prototype.widthConfig=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(16).int32(e.format),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(34).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Alert;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.body=e.string();break}case 2:{h.format=e.int32();break}case 3:{h.icon=e.string();break}case 4:{h.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Alert)return e;let t=new $root.Alert;switch(e.body!=null&&(t.body=String(e.body)),e.format){default:if(typeof e.format=="number"){t.format=e.format;break}break;case"UNUSED":case 0:t.format=0;break;case"ERROR":case 1:t.format=1;break;case"WARNING":case 2:t.format=2;break;case"INFO":case 3:t.format=3;break;case"SUCCESS":case 4:t.format=4;break}if(e.icon!=null&&(t.icon=String(e.icon)),e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Alert.widthConfig: object expected");t.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.body="",c.format=t.enums===String?"UNUSED":0,c.icon="",c.widthConfig=null),e.body!=null&&e.hasOwnProperty("body")&&(c.body=e.body),e.format!=null&&e.hasOwnProperty("format")&&(c.format=t.enums===String?$root.Alert.Format[e.format]===void 0?e.format:$root.Alert.Format[e.format]:e.format),e.icon!=null&&e.hasOwnProperty("icon")&&(c.icon=e.icon),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(c.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Alert"},n.Format=function(){const o={},e=Object.create(o);return e[o[0]="UNUSED"]=0,e[o[1]="ERROR"]=1,e[o[2]="WARNING"]=2,e[o[3]="INFO"]=3,e[o[4]="SUCCESS"]=4,e}(),n})(),streamlit=$root.streamlit=(()=>{const n={};return n.WidthConfig=function(){function o(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}o.prototype.useStretch=null,o.prototype.useContent=null,o.prototype.pixelWidth=null,o.prototype.remWidth=null;let e;return Object.defineProperty(o.prototype,"widthSpec",{get:$util.oneOfGetter(e=["useStretch","useContent","pixelWidth","remWidth"]),set:$util.oneOfSetter(e)}),o.create=function(c){return new o(c)},o.encode=function(c,p){return p||(p=$Writer.create()),c.useStretch!=null&&Object.hasOwnProperty.call(c,"useStretch")&&p.uint32(8).bool(c.useStretch),c.useContent!=null&&Object.hasOwnProperty.call(c,"useContent")&&p.uint32(16).bool(c.useContent),c.pixelWidth!=null&&Object.hasOwnProperty.call(c,"pixelWidth")&&p.uint32(24).uint32(c.pixelWidth),c.remWidth!=null&&Object.hasOwnProperty.call(c,"remWidth")&&p.uint32(37).float(c.remWidth),p},o.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.streamlit.WidthConfig;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.useStretch=c.bool();break}case 2:{g.useContent=c.bool();break}case 3:{g.pixelWidth=c.uint32();break}case 4:{g.remWidth=c.float();break}default:c.skipType($&7);break}}return g},o.fromObject=function(c){if(c instanceof $root.streamlit.WidthConfig)return c;let p=new $root.streamlit.WidthConfig;
18return c.useStretch!=null&&(p.useStretch=!!c.useStretch),c.useContent!=null&&(p.useContent=!!c.useContent),c.pixelWidth!=null&&(p.pixelWidth=c.pixelWidth>>>0),c.remWidth!=null&&(p.remWidth=Number(c.remWidth)),p},o.toObject=function(c,p){p||(p={});let h={};return c.useStretch!=null&&c.hasOwnProperty("useStretch")&&(h.useStretch=c.useStretch,p.oneofs&&(h.widthSpec="useStretch")),c.useContent!=null&&c.hasOwnProperty("useContent")&&(h.useContent=c.useContent,p.oneofs&&(h.widthSpec="useContent")),c.pixelWidth!=null&&c.hasOwnProperty("pixelWidth")&&(h.pixelWidth=c.pixelWidth,p.oneofs&&(h.widthSpec="pixelWidth")),c.remWidth!=null&&c.hasOwnProperty("remWidth")&&(h.remWidth=p.json&&!isFinite(c.remWidth)?String(c.remWidth):c.remWidth,p.oneofs&&(h.widthSpec="remWidth")),h},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/streamlit.WidthConfig"},o}(),n.HeightConfig=function(){function o(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}o.prototype.useStretch=null,o.prototype.useContent=null,o.prototype.pixelHeight=null,o.prototype.remHeight=null;let e;return Object.defineProperty(o.prototype,"heightSpec",{get:$util.oneOfGetter(e=["useStretch","useContent","pixelHeight","remHeight"]),set:$util.oneOfSetter(e)}),o.create=function(c){return new o(c)},o.encode=function(c,p){return p||(p=$Writer.create()),c.useStretch!=null&&Object.hasOwnProperty.call(c,"useStretch")&&p.uint32(8).bool(c.useStretch),c.useContent!=null&&Object.hasOwnProperty.call(c,"useContent")&&p.uint32(16).bool(c.useContent),c.pixelHeight!=null&&Object.hasOwnProperty.call(c,"pixelHeight")&&p.uint32(24).uint32(c.pixelHeight),c.remHeight!=null&&Object.hasOwnProperty.call(c,"remHeight")&&p.uint32(37).float(c.remHeight),p},o.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.streamlit.HeightConfig;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.useStretch=c.bool();break}case 2:{g.useContent=c.bool();break}case 3:{g.pixelHeight=c.uint32();break}case 4:{g.remHeight=c.float();break}default:c.skipType($&7);break}}return g},o.fromObject=function(c){if(c instanceof $root.streamlit.HeightConfig)return c;let p=new $root.streamlit.HeightConfig;return c.useStretch!=null&&(p.useStretch=!!c.useStretch),c.useContent!=null&&(p.useContent=!!c.useContent),c.pixelHeight!=null&&(p.pixelHeight=c.pixelHeight>>>0),c.remHeight!=null&&(p.remHeight=Number(c.remHeight)),p},o.toObject=function(c,p){p||(p={});let h={};return c.useStretch!=null&&c.hasOwnProperty("useStretch")&&(h.useStretch=c.useStretch,p.oneofs&&(h.heightSpec="useStretch")),c.useContent!=null&&c.hasOwnProperty("useContent")&&(h.useContent=c.useContent,p.oneofs&&(h.heightSpec="useContent")),c.pixelHeight!=null&&c.hasOwnProperty("pixelHeight")&&(h.pixelHeight=c.pixelHeight,p.oneofs&&(h.heightSpec="pixelHeight")),c.remHeight!=null&&c.hasOwnProperty("remHeight")&&(h.remHeight=p.json&&!isFinite(c.remHeight)?String(c.remHeight):c.remHeight,p.oneofs&&(h.heightSpec="remHeight")),h},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/streamlit.HeightConfig"},o}(),n.GapSize=function(){const o={},e=Object.create(o);return e[o[0]="GAP_UNDEFINED"]=0,e[o[1]="SMALL"]=1,e[o[2]="MEDIUM"]=2,e[o[3]="LARGE"]=3,e[o[4]="NONE"]=4,e}(),n.GapConfig=function(){function o(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}o.prototype.gapSize=null;let e;return Object.defineProperty(o.prototype,"gapSpec",{get:$util.oneOfGetter(e=["gapSize"]),set:$util.oneOfSetter(e)}),o.create=function(c){return new o(c)},o.encode=function(c,p){return p||(p=$Writer.create()),c.gapSize!=null&&Object.hasOwnProperty.call(c,"gapSize")&&p.uint32(8).int32(c.gapSize),p},o.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));
18let y=p===void 0?c.len:c.pos+p,g=new $root.streamlit.GapConfig;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.gapSize=c.int32();break}default:c.skipType($&7);break}}return g},o.fromObject=function(c){if(c instanceof $root.streamlit.GapConfig)return c;let p=new $root.streamlit.GapConfig;switch(c.gapSize){default:if(typeof c.gapSize=="number"){p.gapSize=c.gapSize;break}break;case"GAP_UNDEFINED":case 0:p.gapSize=0;break;case"SMALL":case 1:p.gapSize=1;break;case"MEDIUM":case 2:p.gapSize=2;break;case"LARGE":case 3:p.gapSize=3;break;case"NONE":case 4:p.gapSize=4;break}return p},o.toObject=function(c,p){p||(p={});let h={};return c.gapSize!=null&&c.hasOwnProperty("gapSize")&&(h.gapSize=p.enums===String?$root.streamlit.GapSize[c.gapSize]===void 0?c.gapSize:$root.streamlit.GapSize[c.gapSize]:c.gapSize,p.oneofs&&(h.gapSpec="gapSize")),h},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/streamlit.GapConfig"},o}(),n.TextAlignmentConfig=function(){function o(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}return o.prototype.alignment=0,o.create=function(t){return new o(t)},o.encode=function(t,c){return c||(c=$Writer.create()),t.alignment!=null&&Object.hasOwnProperty.call(t,"alignment")&&c.uint32(8).int32(t.alignment),c},o.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.streamlit.TextAlignmentConfig;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.alignment=t.int32();break}default:t.skipType(g&7);break}}return y},o.fromObject=function(t){if(t instanceof $root.streamlit.TextAlignmentConfig)return t;let c=new $root.streamlit.TextAlignmentConfig;switch(t.alignment){default:if(typeof t.alignment=="number"){c.alignment=t.alignment;break}break;case"UNSPECIFIED":case 0:c.alignment=0;break;case"LEFT":case 1:c.alignment=1;break;case"CENTER":case 2:c.alignment=2;break;case"RIGHT":case 3:c.alignment=3;break;case"JUSTIFY":case 4:c.alignment=4;break}return c},o.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.alignment=c.enums===String?"UNSPECIFIED":0),t.alignment!=null&&t.hasOwnProperty("alignment")&&(p.alignment=c.enums===String?$root.streamlit.TextAlignmentConfig.Alignment[t.alignment]===void 0?t.alignment:$root.streamlit.TextAlignmentConfig.Alignment[t.alignment]:t.alignment),p},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/streamlit.TextAlignmentConfig"},o.Alignment=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="LEFT"]=1,t[e[2]="CENTER"]=2,t[e[3]="RIGHT"]=3,t[e[4]="JUSTIFY"]=4,t}(),o}(),n})();$root.AppPage=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.pageScriptHash="",n.prototype.pageName="",n.prototype.icon="",n.prototype.isDefault=!1,n.prototype.sectionHeader="",n.prototype.urlPathname="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(10).string(e.pageScriptHash),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(18).string(e.pageName),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),e.isDefault!=null&&Object.hasOwnProperty.call(e,"isDefault")&&t.uint32(32).bool(e.isDefault),e.sectionHeader!=null&&Object.hasOwnProperty.call(e,"sectionHeader")&&t.uint32(42).string(e.sectionHeader),e.urlPathname!=null&&Object.hasOwnProperty.call(e,"urlPathname")&&t.uint32(50).string(e.urlPathname),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.AppPage;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.pageScriptHash=e.string();break}case 2:{h.pageName=e.string();break}case 3:{h.icon=e.string();break}case 4:{h.isDefault=e.bool();break}case 5:{h.sectionHeader=e.string();break}case 6:{h.urlPathname=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.AppPage)return e;let t=new $root.AppPage;return e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.pageName!=null&&(t.pageName=String(e.pageName)),e.icon!=null&&(t.icon=String(e.icon)),e.isDefault!=null&&(t.isDefault=!!e.isDefault),e.sectionHeader!=null&&(t.sectionHeader=String(e.sectionHeader)),e.urlPathname!=null&&(t.urlPathname=String(e.urlPathname)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.pageScriptHash="",c.pageName="",c.icon="",c.isDefault=!1,c.sectionHeader="",c.urlPathname=""),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(c.pageScriptHash=e.pageScriptHash),e.pageName!=null&&e.hasOwnProperty("pageName")&&(c.pageName=e.pageName),e.icon!=null&&e.hasOwnProperty("icon")&&(c.icon=e.icon),e.isDefault!=null&&e.hasOwnProperty("isDefault")&&(c.isDefault=e.isDefault),e.sectionHeader!=null&&e.hasOwnProperty("sectionHeader")&&(c.sectionHeader=e.sectionHeader),e.urlPathname!=null&&e.hasOwnProperty("urlPathname")&&(c.urlPathname=e.urlPathname),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/AppPage"},n})();const Arrow$2=$root.Arrow=(()=>{function n(e){if(this.columnOrder=[],this.selectionMode=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.data=$util.newBuffer([]),n.prototype.styler=null,n.prototype.width=0,n.prototype.height=0,n.prototype.useContainerWidth=!1,n.prototype.id="",n.prototype.columns="",n.prototype.editingMode=0,n.prototype.disabled=!1,n.prototype.formId="",n.prototype.columnOrder=$util.emptyArray,n.prototype.selectionMode=$util.emptyArray,n.prototype.rowHeight=null,n.prototype.borderMode=0,n.prototype.placeholder=null;let o;return Object.defineProperty(n.prototype,"_rowHeight",{get:$util.oneOfGetter(o=["rowHeight"]),set:$util.oneOfSetter(o
18)}),Object.defineProperty(n.prototype,"_placeholder",{get:$util.oneOfGetter(o=["placeholder"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){if(c||(c=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&c.uint32(10).bytes(t.data),t.styler!=null&&Object.hasOwnProperty.call(t,"styler")&&$root.Styler.encode(t.styler,c.uint32(18).fork()).ldelim(),t.width!=null&&Object.hasOwnProperty.call(t,"width")&&c.uint32(24).uint32(t.width),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&c.uint32(32).uint32(t.height),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&c.uint32(40).bool(t.useContainerWidth),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(50).string(t.id),t.columns!=null&&Object.hasOwnProperty.call(t,"columns")&&c.uint32(58).string(t.columns),t.editingMode!=null&&Object.hasOwnProperty.call(t,"editingMode")&&c.uint32(64).int32(t.editingMode),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(72).bool(t.disabled),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(82).string(t.formId),t.columnOrder!=null&&t.columnOrder.length)for(let p=0;p<t.columnOrder.length;++p)c.uint32(90).string(t.columnOrder[p]);if(t.selectionMode!=null&&t.selectionMode.length){c.uint32(98).fork();for(let p=0;p<t.selectionMode.length;++p)c.int32(t.selectionMode[p]);c.ldelim()}return t.rowHeight!=null&&Object.hasOwnProperty.call(t,"rowHeight")&&c.uint32(104).uint32(t.rowHeight),t.borderMode!=null&&Object.hasOwnProperty.call(t,"borderMode")&&c.uint32(112).int32(t.borderMode),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&c.uint32(122).string(t.placeholder),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Arrow;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.data=t.bytes();break}case 2:{y.styler=$root.Styler.decode(t,t.uint32());break}case 3:{y.width=t.uint32();break}case 4:{y.height=t.uint32();break}case 5:{y.useContainerWidth=t.bool();break}case 6:{y.id=t.string();break}case 7:{y.columns=t.string();break}case 8:{y.editingMode=t.int32();break}case 9:{y.disabled=t.bool();break}case 10:{y.formId=t.string();break}case 11:{y.columnOrder&&y.columnOrder.length||(y.columnOrder=[]),y.columnOrder.push(t.string());break}case 12:{if(y.selectionMode&&y.selectionMode.length||(y.selectionMode=[]),(g&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)y.selectionMode.push(t.int32())}else y.selectionMode.push(t.int32());break}case 13:{y.rowHeight=t.uint32();break}case 14:{y.borderMode=t.int32();break}case 15:{y.placeholder=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Arrow)return t;let c=new $root.Arrow;if(t.data!=null&&(typeof t.data=="string"?$util.base64.decode(t.data,c.data=$util.newBuffer($util.base64.length(t.data)),0):t.data.length>=0&&(c.data=t.data)),t.styler!=null){if(typeof t.styler!="object")throw TypeError(".Arrow.styler: object expected");c.styler=$root.Styler.fromObject(t.styler)}switch(t.width!=null&&(c.width=t.width>>>0),t.height!=null&&(c.height=t.height>>>0),t.useContainerWidth!=null&&(c.useContainerWidth=!!t.useContainerWidth),t.id!=null&&(c.id=String(t.id)),t.columns!=null&&(c.columns=String(t.columns)),t.editingMode){default:if(typeof t.editingMode=="number"){c.editingMode=t.editingMode;break}break;case"READ_ONLY":case 0:c.editingMode=0;break;case"FIXED":case 1:c.editingMode=1;break;case"DYNAMIC":case 2:c.editingMode=2;break}if(t.disabled!=null&&(c.disabled=!!t.disabled),t.formId!=null&&(c.formId=String(t.formId)),t.columnOrder){if(!Array.isArray(t.columnOrder))throw TypeError(".Arrow.columnOrder: array expected");c.columnOrder=[];for(let p=0;p<t.columnOrder.length;++p)c.columnOrder[p]=String(t.columnOrder[p])}if(t.selectionMode){if(!Array.isArray(t.selectionMode))throw TypeError(".Arrow.selectionMode: array expected");c.selectionMode=[];for(let p=0;p<t.selectionMode.length;++p)switch(t.selectionMode[p]){default:if(typeof t.selectionMode[p]=="number"){c.selectionMode[p]=t.selectionMode[p];break}case"SINGLE_ROW":case 0:c.selectionMode[p]=0;break;case"MULTI_ROW":case 1:c.selectionMode[p]=1;break;case"SINGLE_COLUMN":case 2:c.selectionMode[p]=2;break;case"MULTI_COLUMN":case 3:c.selectionMode[p]=3;break;case"SINGLE_CELL":case 4:c.selectionMode[p]=4;break;case"MULTI_CELL":case 5:c.selectionMode[p]=5;break}}switch(t.rowHeight!=null&&(c.rowHeight=t.rowHeight>>>0),t.borderMode){default:if(typeof t.borderMode=="number"){c.borderMode=t.borderMode;break}break;case"ALL":case 0:c.borderMode=0;break;case"NONE":case 1:c.borderMode=1;break;case"HORIZONTAL":case 2:c.borderMode=2;break}return t.placeholder!=null&&(c.placeholder=String(t.placeholder)),c},n.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.columnOrder=[],p.selectionMode=[]),c.defaults&&(c.bytes===String?p.data="":(p.data=[],c.bytes!==Array&&(p.data=$util.newBuffer(p.data))),p.styler=null,p.width=0,p.height=0,p.useContainerWidth=!1,p.id="",p.columns="",p.editingMode=c.enums===String?"READ_ONLY":0,p.disabled=!1,p.formId="",p.borderMode=c.enums===String?"ALL":0),t.data!=null&&t.hasOwnProperty("data")&&(p.data=c.bytes===String?$util.base64.encode(t.data,0,t.data.length):c.bytes===Array?Array.prototype.slice.call(t.data):t.data),t.styler!=null&&t.hasOwnProperty("styler")&&(p.styler=$root.Styler.toObject(t.styler,c)),t.width!=null&&t.hasOwnProperty("width")&&(p.width=t.width),t.height!=null&&t.hasOwnProperty("height")&&(p.height=t.height),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(p.useContainerWidth=t.useContainerWidth),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.columns!=null&&t.hasOwnProperty("columns")&&(p.columns=t.columns),t.editingMode!=null&&t.hasOwnProperty("editingMode")&&(p.editingMode=c.enums===String?$root.Arrow.EditingMode[t.editingMode]===void 0?t.editingMode:$root.Arrow.EditingMode[t.editingMode]:t.editingMode),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.columnOrder&&t.columnOrder.length){p.columnOrder=[];for(let h=0;h<t.columnOrder.length;++h)p.columnOrder[h]=t.columnOrder[h]}if(t.selectionMode&&t.selectionMode.length){p.selectionMode=[];for(let h=0;h<t.selectionMode.length;++h)p.selectionMode[h]=c.enums===String?$root.Arrow.SelectionMode[t.selectionMode[h]]===void 0?t.selectionMode[h]:$root.Arrow.SelectionMode[t.selectionMode[h]]:t.selectionMode[h]}return t.rowHeight!=null&&t.hasOwnProperty("rowHeight")&&(p.rowHeight=t.rowHeight,c.oneofs&&(p._rowHeight="rowHeight")),t.borderMode!=null&&t.hasOwnProperty("borderMode")&&(p.borderMode=c.enums===String?$root.Arrow.BorderMode[t.borderMode]===void 0?t.borderMode:$root.Arrow.BorderMode[t.borderMode]:t.borderMode),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(p.placeholder=t.placeholder,c.oneofs&&(p._placeholder="placeholder")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Arrow"},n.EditingMode=function(){const e={},t=Object.create(e);return t[e[0]="READ_ONLY"]=0,t[e[1]="FIXED"]=1,t[e[2]="DYNAMIC"]=2,t}(),n.SelectionMode=function(){const e={},t=Object.create(e);return t[e[0]="SINGLE_ROW"]=0,t[e[1]="MULTI_ROW"]=1,t[e[2]="SINGLE_COLUMN"]=2,t[e[3]="MULTI_COLUMN"]=3,t[e[4]="SINGLE_CELL"]=4,t[e[5]="MULTI_CELL"]=5,t}(),n.BorderMode=function(){const e={},t=Object.create(e);return t[e[0]="ALL"]=0,t[e[1]="NONE"]=1,t[e[2]="HORIZONTAL"]=2,t}(),n})();$root.Styler=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.uuid="",n.prototype.caption="",n.prototype.styles="",n.prototype.displayValues=$util.newBuffer([]),n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.uuid!=null&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.styles!=null&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),e.displayValues!=null&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Styler;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.uuid=e.string();break}case 2:{h.caption=e.string();break}case 3:{h.styles=e.string();break}case 4:{h.displayValues=e.bytes();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Styler)return e;let t=new $root.Styler;return e.uuid!=null&&(t.uuid=String(e.uuid)),e.caption!=null&&(t.caption=String(e.caption)),e.styles!=null&&(t.styles=String(e.styles)),e.displayValues!=null&&(typeof e.displayValues=="string"?$util.base64.decode(e.displayValues,t.displayValues=$util.newBuffer($util.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(t.displayValues=e.displayValues)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.uuid="",c.caption="",c.styles="",t.bytes===String?c.displayValues="":(c.displayValues=[],t.bytes!==Array&&(c.displayValues=$util.newBuffer(c.displayValues)))),e.uuid!=null&&e.hasOwnProperty("uuid")&&(c.uuid=e.uuid),e.caption!=null&&e.hasOwnProperty("caption")&&(c.caption=e.caption),e.styles!=null&&e.hasOwnProperty("styles")&&(c.styles=e.styles),e.displayValues!=null&&e.hasOwnProperty("displayValues")&&(c.displayValues=t.bytes===String?$util.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Styler"},n})();$root.ArrowData=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=$util.newBuffer([]),n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ArrowData;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.data=e.bytes();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ArrowData)return e;let t=new $root.ArrowData;
18return e.data!=null&&(typeof e.data=="string"?$util.base64.decode(e.data,t.data=$util.newBuffer($util.base64.length(e.data)),0):e.data.length>=0&&(t.data=e.data)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(t.bytes===String?c.data="":(c.data=[],t.bytes!==Array&&(c.data=$util.newBuffer(c.data)))),e.data!=null&&e.hasOwnProperty("data")&&(c.data=t.bytes===String?$util.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowData"},n})();$root.ArrowNamedDataSet=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.name="",n.prototype.hasName=!1,n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),e.hasName!=null&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ArrowNamedDataSet;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.name=e.string();break}case 3:{h.hasName=e.bool();break}case 2:{h.data=$root.Arrow.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ArrowNamedDataSet)return e;let t=new $root.ArrowNamedDataSet;if(e.name!=null&&(t.name=String(e.name)),e.hasName!=null&&(t.hasName=!!e.hasName),e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowNamedDataSet.data: object expected");t.data=$root.Arrow.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.name="",c.data=null,c.hasName=!1),e.name!=null&&e.hasOwnProperty("name")&&(c.name=e.name),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.Arrow.toObject(e.data,t)),e.hasName!=null&&e.hasOwnProperty("hasName")&&(c.hasName=e.hasName),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowNamedDataSet"},n})();$root.ArrowVegaLiteChart=(()=>{function n(o){if(this.datasets=[],this.selectionMode=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.spec="",n.prototype.data=null,n.prototype.datasets=$util.emptyArray,n.prototype.useContainerWidth=!1,n.prototype.theme="",n.prototype.id="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),e.datasets!=null&&e.datasets.length)for(let c=0;c<e.datasets.length;++c)$root.ArrowNamedDataSet.encode(e.datasets[c],t.uint32(34).fork()).ldelim();if(e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),e.theme!=null&&Object.hasOwnProperty.call(e,"theme")&&t.uint32(50).string(e.theme),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(58).string(e.id),e.selectionMode!=null&&e.selectionMode.length)for(let c=0;c<e.selectionMode.length;++c)t.uint32(66).string(e.selectionMode[c]);return e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(74).string(e.formId),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ArrowVegaLiteChart;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.spec=e.string();break}case 2:{h.data=$root.Arrow.decode(e,e.uint32());break}case 4:{h.datasets&&h.datasets.length||(h.datasets=[]),h.datasets.push($root.ArrowNamedDataSet.decode(e,e.uint32()));break}case 5:{h.useContainerWidth=e.bool();break}case 6:{h.theme=e.string();break}case 7:{h.id=e.string();break}case 8:{h.selectionMode&&h.selectionMode.length||(h.selectionMode=[]),h.selectionMode.push(e.string());break}case 9:{h.formId=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ArrowVegaLiteChart)return e;let t=new $root.ArrowVegaLiteChart;if(e.spec!=null&&(t.spec=String(e.spec)),e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowVegaLiteChart.data: object expected");t.data=$root.Arrow.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".ArrowVegaLiteChart.datasets: array expected");t.datasets=[];for(let c=0;c<e.datasets.length;++c){if(typeof e.datasets[c]!="object")throw TypeError(".ArrowVegaLiteChart.datasets: object expected");t.datasets[c]=$root.ArrowNamedDataSet.fromObject(e.datasets[c])}}if(e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.theme!=null&&(t.theme=String(e.theme)),e.id!=null&&(t.id=String(e.id)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".ArrowVegaLiteChart.selectionMode: array expected");t.selectionMode=[];for(let c=0;c<e.selectionMode.length;++c)t.selectionMode[c]=String(e.selectionMode[c])}return e.formId!=null&&(t.formId=String(e.formId)),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.datasets=[],c.selectionMode=[]),t.defaults&&(c.spec="",c.data=null,c.useContainerWidth=!1,c.theme="",c.id="",c.formId=""),e.spec!=null&&e.hasOwnProperty("spec")&&(c.spec=e.spec),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.Arrow.toObject(e.data,t)),e.datasets&&e.datasets.length){c.datasets=[];for(let p=0;p<e.datasets.length;++p)c.datasets[p]=$root.ArrowNamedDataSet.toObject(e.datasets[p],t)}if(e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(c.useContainerWidth=e.useContainerWidth),e.theme!=null&&e.hasOwnProperty("theme")&&(c.theme=e.theme),e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.selectionMode&&e.selectionMode.length){c.selectionMode=[];for(let p=0;p<e.selectionMode.length;++p)c.selectionMode[p]=e.selectionMode[p]}return e.formId!=null&&e.hasOwnProperty("formId")&&(c.formId=e.formId),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowVegaLiteChart"},n})();$root.Audio=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.url="",n.prototype.startTime=0,n.prototype.endTime=0,n.prototype.loop=!1,n.prototype.autoplay=!1,n.prototype.id="",n.prototype.widthConfig=null;let o;return Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(o=["widthConfig"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.startTime!=null&&Object.hasOwnProperty.call(t,"startTime")&&c.uint32(24).int32(t.startTime),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&c.uint32(42).string(t.url),t.endTime!=null&&Object.hasOwnProperty.call(t,"endTime")&&c.uint32(48).int32(t.endTime),t.loop!=null&&Object.hasOwnProperty.call(t,"loop")&&c.uint32(56).bool(t.loop),t.autoplay!=null&&Object.hasOwnProperty.call(t,"autoplay")&&c.uint32(64).bool(t.autoplay),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(74).string(t.id),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,c.uint32(82).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Audio;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 5:{y.url=t.string();break}case 3:{y.startTime=t.int32();break}case 6:{y.endTime=t.int32();break}case 7:{y.loop=t.bool();break}case 8:{y.autoplay=t.bool();break}case 9:{y.id=t.string();break}case 10:{y.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Audio)return t;let c=new $root.Audio;if(t.url!=null&&(c.url=String(t.url)),t.startTime!=null&&(c.startTime=t.startTime|0),t.endTime!=null&&(c.endTime=t.endTime|0),t.loop!=null&&(c.loop=!!t.loop),t.autoplay!=null&&(c.autoplay=!!t.autoplay),t.id!=null&&(c.id=String(t.id)),t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Audio.widthConfig: object expected");c.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.startTime=0,p.url="",p.endTime=0,p.loop=!1,p.autoplay=!1,p.id=""),t.startTime!=null&&t.hasOwnProperty("startTime")&&(p.startTime=t.startTime),t.url!=null&&t.hasOwnProperty("url")&&(p.url=t.url),t.endTime!=null&&t.hasOwnProperty("endTime")&&(p.endTime=t.endTime),t.loop!=null&&t.hasOwnProperty("loop")&&(p.loop=t.loop),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(p.autoplay=t.autoplay),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(p.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,c),c.oneofs&&(p._widthConfig="widthConfig")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Audio"},n})();$root.AudioInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.sampleRate=null;let o;return Object.defineProperty(n.prototype,"_sampleRate",{get:$util.oneOfGetter(o=["sampleRate"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(18).string(t.label),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(26).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(34).string(t.formId),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(40).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,c.uint32(50).fork()).ldelim(),t.sampleRate!=null&&Object.hasOwnProperty.call(t,"sampleRate")&&c.uint32(56).int32(t.sampleRate),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.AudioInput;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.label=t.string();break}case 3:{y.help=t.string();break}case 4:{y.formId=t.string();break}case 5:{y.disabled=t.bool();break}case 6:{y.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 7:{y.sampleRate=t.int32();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.AudioInput)return t;let c=new $root.AudioInput;if(t.id!=null&&(c.id=String(t.id)),t.label!=null&&(c.label=String(t.label)),t.help!=null&&(c.help=String(t.help)),t.formId!=null&&(c.formId=String(t.formId)),t.disabled!=null&&(c.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".AudioInput.labelVisibility: object expected");c.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.sampleRate!=null&&(c.sampleRate=t.sampleRate|0),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.id="",p.label="",p.help="",p.formId="",p.disabled=!1,p.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(p.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,c)),t.sampleRate!=null&&t.hasOwnProperty("sampleRate")&&(p.sampleRate=t.sampleRate,c.oneofs&&(p._sampleRate="sampleRate")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/AudioInput"},n})();const LabelVisibilityMessage=$root.LabelVisibilityMessage=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.value=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.LabelVisibilityMessage;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.value=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.LabelVisibilityMessage)return e;let t=new $root.LabelVisibilityMessage;switch(e.value){default:if(typeof e.value=="number"){t.value=e.value;break}break;case"VISIBLE":case 0:t.value=0;break;case"HIDDEN":case 1:t.value=1;break;case"COLLAPSED":case 2:t.value=2;break}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.value=t.enums===String?"VISIBLE":0),e.value!=null&&e.hasOwnProperty("value")&&(c.value=t.enums===String?$root.LabelVisibilityMessage.LabelVisibilityOptions[e.value]===void 0?e.value:$root.LabelVisibilityMessage.LabelVisibilityOptions[e.value]:e.value),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/LabelVisibilityMessage"},n.LabelVisibilityOptions=function(){const o={},e=Object.create(o);return e[o[0]="VISIBLE"]=0,e[o[1]="HIDDEN"]=1,e[o[2]="COLLAPSED"]=2,e}(),n})();$root.AuthRedirect=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.AuthRedirect;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.url=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.AuthRedirect)return e;let t=new $root.AuthRedirect;return e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.url=""),e.url!=null&&e.hasOwnProperty("url")&&(c.url=e.url),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/AuthRedirect"},n})();$root.AutoRerun=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.interval=0,n.prototype.fragmentId="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.interval!=null&&Object.hasOwnProperty.call(e,"interval")&&t.uint32(13).float(e.interval),e.fragmentId!=null&&Object.hasOwnProperty.call(e,"fragmentId")&&t.uint32(18).string(e.fragmentId),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.AutoRerun;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.interval=e.float();break}case 2:{h.fragmentId=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.AutoRerun)return e;let t=new $root.AutoRerun;return e.interval!=null&&(t.interval=Number(e.interval)),e.fragmentId!=null&&(t.fragmentId=String(e.fragmentId)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.interval=0,c.fragmentId=""),e.interval!=null&&e.hasOwnProperty("interval")&&(c.interval=t.json&&!isFinite(e.interval)?String(e.interval):e.interval),e.fragmentId!=null&&e.hasOwnProperty("fragmentId")&&(c.fragmentId=e.fragmentId),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/AutoRerun"},n})();const BackMsg=$root.BackMsg=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.clearCache=null,n.prototype.setRunOnSave=null,n.prototype.stopScript=null,n.prototype.rerunScript=null,n.prototype.loadGitInfo=null,n.prototype.debugDisconnectWebsocket=null,n.prototype.debugShutdownRuntime=null,n.prototype.fileUrlsRequest=null,n.prototype.appHeartbeat=null,n.prototype.deferredFileRequest=null,n.prototype.debugLastBackmsgId="";let o;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(o=["clearCache","setRunOnSave","stopScript","rerunScript","loadGitInfo","debugDisconnectWebsocket","debugShutdownRuntime","fileUrlsRequest","appHeartbeat","deferredFileRequest"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.clearCache!=null&&Object.hasOwnProperty.call(t,"clearCache")&&c.uint32(40).bool(t.clearCache),t.setRunOnSave!=null&&Object.hasOwnProperty.call(t,"setRunOnSave")&&c.uint32(48).bool(t.setRunOnSave),t.stopScript!=null&&Object.hasOwnProperty.call(t,"stopScript")&&c.uint32(56).bool(t.stopScript),t.rerunScript!=null&&Object.hasOwnProperty.call(t,"rerunScript")&&$root.ClientState.encode(t.rerunScript,c.uint32(90).fork()).ldelim(),t.loadGitInfo!=null&&Object.hasOwnProperty.call(t,"loadGitInfo")&&c.uint32(96).bool(t.loadGitInfo),t.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(t,"debugLastBackmsgId")&&c.uint32(106).string(t.debugLastBackmsgId),t.debugDisconnectWebsocket!=null&&Object.hasOwnProperty.call(t,"debugDisconnectWebsocket")&&c.uint32(112).bool(t.debugDisconnectWebsocket),t.debugShutdownRuntime!=null&&Object.hasOwnProperty.call(t,"debugShutdownRuntime")&&c.uint32(120).bool(t.debugShutdownRuntime),t.fileUrlsRequest!=null&&Object.hasOwnProperty.call(t,"fileUrlsRequest")&&$root.FileURLsRequest.encode(t.fileUrlsRequest,c.uint32(130).fork()).ldelim(),t.appHeartbeat!=null&&Object.hasOwnProperty.call(t,"appHeartbeat")&&c.uint32(136).bool(t.appHeartbeat),t.deferredFileRequest!=null&&Object.hasOwnProperty.call(t,"deferredFileRequest")&&$root.DeferredFileRequest.encode(t.deferredFileRequest,c.uint32(146).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.BackMsg;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 5:{y.clearCache=t.bool();break}case 6:{y.setRunOnSave=t.bool();break}case 7:{y.stopScript=t.bool();break}case 11:{y.rerunScript=$root.ClientState.decode(t,t.uint32());break}case 12:{y.loadGitInfo=t.bool();break}case 14:{y.debugDisconnectWebsocket=t.bool();break}case 15:{y.debugShutdownRuntime=t.bool();break}case 16:{y.fileUrlsRequest=$root.FileURLsRequest.decode(t,t.uint32());break}case 17:{y.appHeartbeat=t.bool();break}case 18:{y.deferredFileRequest=$root.DeferredFileRequest.decode(t,t.uint32());break}case 13:{y.debugLastBackmsgId=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.BackMsg)return t;let c=new $root.BackMsg;if(t.clearCache!=null&&(c.clearCache=!!t.clearCache),t.setRunOnSave!=null&&(c.setRunOnSave=!!t.setRunOnSave),t.stopScript!=null&&(c.stopScript=!!t.stopScript),t.rerunScript!=null){if(typeof t.rerunScript!="object")throw TypeError(".BackMsg.rerunScript: object expected");c.rerunScript=$root.ClientState.fromObject(t.rerunScript)}if(t.loadGitInfo!=null&&(c.loadGitInfo=!!t.loadGitInfo),t.debugDisconnectWebsocket!=null&&(c.debugDisconnectWebsocket=!!t.debugDisconnectWebsocket),t.debugShutdownRuntime!=null&&(c.debugShutdownRuntime=!!t.debugShutdownRuntime),t.fileUrlsRequest!=null){if(typeof t.fileUrlsRequest!="object")throw TypeError(".BackMsg.fileUrlsRequest: object expected");c.fileUrlsRequest=$root.FileURLsRequest.fromObject(t.fileUrlsRequest)}if(t.appHeartbeat!=null&&(c.appHeartbeat=!!t.appHeartbeat),t.deferredFileRequest!=null){if(typeof t.deferredFileRequest!="object")throw TypeError(".BackMsg.deferredFileRequest: object expected");c.deferredFileRequest=$root.DeferredFileRequest.fromObject(t.deferredFileRequest)}return t.debugLastBackmsgId!=null&&(c.debugLastBackmsgId=String(t.debugLastBackmsgId)),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.debugLastBackmsgId=""),t.clearCache!=null&&t.hasOwnProperty("clearCache")&&(p.clearCache=t.clearCache,c.oneofs&&(p.type="clearCache")),t.setRunOnSave!=null&&t.hasOwnProperty("setRunOnSave")&&(p.setRunOnSave=t.setRunOnSave,c.oneofs&&(p.type="setRunOnSave")),t.stopScript!=null&&t.hasOwnProperty("stopScript")&&(p.stopScript=t.stopScript,c.oneofs&&(p.type="stopScript")),t.rerunScript!=null&&t.hasOwnProperty("rerunScript")&&(p.rerunScript=$root.ClientState.toObject(t.rerunScript,c),c.oneofs&&(p.type="rerunScript")),t.loadGitInfo!=null&&t.hasOwnProperty("loadGitInfo")&&(p.loadGitInfo=t.loadGitInfo,c.oneofs&&(p.type="loadGitInfo")),t.debugLastBackmsgId!=null&&t.hasOwnProperty("debugLastBackmsgId")&&(p.debugLastBackmsgId=t.debugL
18astBackmsgId),t.debugDisconnectWebsocket!=null&&t.hasOwnProperty("debugDisconnectWebsocket")&&(p.debugDisconnectWebsocket=t.debugDisconnectWebsocket,c.oneofs&&(p.type="debugDisconnectWebsocket")),t.debugShutdownRuntime!=null&&t.hasOwnProperty("debugShutdownRuntime")&&(p.debugShutdownRuntime=t.debugShutdownRuntime,c.oneofs&&(p.type="debugShutdownRuntime")),t.fileUrlsRequest!=null&&t.hasOwnProperty("fileUrlsRequest")&&(p.fileUrlsRequest=$root.FileURLsRequest.toObject(t.fileUrlsRequest,c),c.oneofs&&(p.type="fileUrlsRequest")),t.appHeartbeat!=null&&t.hasOwnProperty("appHeartbeat")&&(p.appHeartbeat=t.appHeartbeat,c.oneofs&&(p.type="appHeartbeat")),t.deferredFileRequest!=null&&t.hasOwnProperty("deferredFileRequest")&&(p.deferredFileRequest=$root.DeferredFileRequest.toObject(t.deferredFileRequest,c),c.oneofs&&(p.type="deferredFileRequest")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/BackMsg"},n})();$root.DeferredFileRequest=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.fileId="",n.prototype.sessionId="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(18).string(e.sessionId),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.DeferredFileRequest;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.fileId=e.string();break}case 2:{h.sessionId=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DeferredFileRequest)return e;let t=new $root.DeferredFileRequest;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.sessionId!=null&&(t.sessionId=String(e.sessionId)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.fileId="",c.sessionId=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(c.fileId=e.fileId),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(c.sessionId=e.sessionId),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DeferredFileRequest"},n})();$root.ContextInfo=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.timezone=null,n.prototype.timezoneOffset=null,n.prototype.locale=null,n.prototype.url=null,n.prototype.isEmbedded=null,n.prototype.colorScheme=null;let o;return Object.defineProperty(n.prototype,"_timezone",{get:$util.oneOfGetter(o=["timezone"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_timezoneOffset",{get:$util.oneOfGetter(o=["timezoneOffset"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_locale",{get:$util.oneOfGetter(o=["locale"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_url",{get:$util.oneOfGetter(o=["url"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_isEmbedded",{get:$util.oneOfGetter(o=["isEmbedded"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_colorScheme",{get:$util.oneOfGetter(o=["colorScheme"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.timezone!=null&&Object.hasOwnProperty.call(t,"timezone")&&c.uint32(10).string(t.timezone),t.timezoneOffset!=null&&Object.hasOwnProperty.call(t,"timezoneOffset")&&c.uint32(16).int32(t.timezoneOffset),t.locale!=null&&Object.hasOwnProperty.call(t,"locale")&&c.uint32(26).string(t.locale),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&c.uint32(34).string(t.url),t.isEmbedded!=null&&Object.hasOwnProperty.call(t,"isEmbedded")&&c.uint32(40).bool(t.isEmbedded),t.colorScheme!=null&&Object.hasOwnProperty.call(t,"colorScheme")&&c.uint32(50).string(t.colorScheme),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.ContextInfo;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.timezone=t.string();break}case 2:{y.timezoneOffset=t.int32();break}case 3:{y.locale=t.string();break}case 4:{y.url=t.string();break}case 5:{y.isEmbedded=t.bool();break}case 6:{y.colorScheme=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.ContextInfo)return t;let c=new $root.ContextInfo;return t.timezone!=null&&(c.timezone=String(t.timezone)),t.timezoneOffset!=null&&(c.timezoneOffset=t.timezoneOffset|0),t.locale!=null&&(c.locale=String(t.locale)),t.url!=null&&(c.url=String(t.url)),t.isEmbedded!=null&&(c.isEmbedded=!!t.isEmbedded),t.colorScheme!=null&&(c.colorScheme=String(t.colorScheme)),c},n.toObject=function(t,c){c||(c={});let p={};return t.timezone!=null&&t.hasOwnProperty("timezone")&&(p.timezone=t.timezone,c.oneofs&&(p._timezone="timezone")),t.timezoneOffset!=null&&t.hasOwnProperty("timezoneOffset")&&(p.timezoneOffset=t.timezoneOffset,c.oneofs&&(p._timezoneOffset="timezoneOffset")),t.locale!=null&&t.hasOwnProperty("locale")&&(p.locale=t.locale,c.oneofs&&(p._locale="locale")),t.url!=null&&t.hasOwnProperty("url")&&(p.url=t.url,c.oneofs&&(p._url="url")),t.isEmbedded!=null&&t.hasOwnProperty("isEmbedded")&&(p.isEmbedded=t.isEmbedded,c.oneofs&&(p._isEmbedded="isEmbedded")),t.colorScheme!=null&&t.hasOwnProperty("colorScheme")&&(p.colorScheme=t.colorScheme,c.oneofs&&(p._colorScheme="colorScheme")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ContextInfo"},n})();$root.ClientState=(()=>{function n(o){if(this.cachedMessageHashes=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.queryString="",n.prototype.widgetStates=null,n.prototype.pageScriptHash="",n.prototype.pageName="",n.prototype.fragmentId="",n.prototype.isAutoRerun=!1,n.prototype.cachedMessageHashes=$util.emptyArray,n.prototype.contextInfo=null,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.queryString!=null&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),e.widgetStates!=null&&Object.hasOwnProperty.call(e,"widgetStates")&&$root.WidgetStates.encode(e.widgetStates,t.uint32(18).fork()).ldelim(),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(26).string(e.pageScriptHash),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(34).string(e.pageName),e.fragmentId!=null&&Object.hasOwnProperty.call(e,"fragmentId")&&t.uint32(42).string(e.fragmentId),e.isAutoRerun!=null&&Object.hasOwnProperty.call(e,"isAutoRerun")&&t.uint32(48).bool(e.isAutoRerun),e.cachedMessageHashes!=null&&e.cachedMessageHashes.length)for(let c=0;c<e.cachedMessageHashes.length;++c)t.uint32(58).string(e.cachedMessageHashes[c]);return e.contextInfo!=null&&Object.hasOwnProperty.call(e,"contextInfo")&&$root.ContextInfo.encode(e.contextInfo,t.uint32(66).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ClientState;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.queryString=e.string();break}case 2:{h.widgetStates=$root.WidgetStates.decode(e,e.uint32());break}case 3:{h.pageScriptHash=e.string();break}case 4:{h.pageName=e.string();break}case 5:{h.fragmentId=e.string();break}case 6:{h.isAutoRerun=e.bool();break}case 7:{h.cachedMessageHashes&&h.cachedMessageHashes.length||(h.cachedMessageHashes=[]),h.cachedMessageHashes.push(e.string());break}case 8:{h.contextInfo=$root.ContextInfo.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ClientState)return e;let t=new $root.ClientState;if(e.queryString!=null&&(t.queryString=String(e.queryString)),e.widgetStates!=null){if(typeof e.widgetStates!="object")throw TypeError(".ClientState.widgetStates: object expected");t.widgetStates=$root.WidgetStates.fromObject(e.widgetStates)}if(e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.pageName!=null&&(t.pageName=String(e.pageName)),e.fragmentId!=null&&(t.fragmentId=String(e.fragmentId)),e.isAutoRerun!=null&&(t.isAutoRerun=!!e.isAutoRerun),e.cachedMessageHashes
18){if(!Array.isArray(e.cachedMessageHashes))throw TypeError(".ClientState.cachedMessageHashes: array expected");t.cachedMessageHashes=[];for(let c=0;c<e.cachedMessageHashes.length;++c)t.cachedMessageHashes[c]=String(e.cachedMessageHashes[c])}if(e.contextInfo!=null){if(typeof e.contextInfo!="object")throw TypeError(".ClientState.contextInfo: object expected");t.contextInfo=$root.ContextInfo.fromObject(e.contextInfo)}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.cachedMessageHashes=[]),t.defaults&&(c.queryString="",c.widgetStates=null,c.pageScriptHash="",c.pageName="",c.fragmentId="",c.isAutoRerun=!1,c.contextInfo=null),e.queryString!=null&&e.hasOwnProperty("queryString")&&(c.queryString=e.queryString),e.widgetStates!=null&&e.hasOwnProperty("widgetStates")&&(c.widgetStates=$root.WidgetStates.toObject(e.widgetStates,t)),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(c.pageScriptHash=e.pageScriptHash),e.pageName!=null&&e.hasOwnProperty("pageName")&&(c.pageName=e.pageName),e.fragmentId!=null&&e.hasOwnProperty("fragmentId")&&(c.fragmentId=e.fragmentId),e.isAutoRerun!=null&&e.hasOwnProperty("isAutoRerun")&&(c.isAutoRerun=e.isAutoRerun),e.cachedMessageHashes&&e.cachedMessageHashes.length){c.cachedMessageHashes=[];for(let p=0;p<e.cachedMessageHashes.length;++p)c.cachedMessageHashes[p]=e.cachedMessageHashes[p]}return e.contextInfo!=null&&e.hasOwnProperty("contextInfo")&&(c.contextInfo=$root.ContextInfo.toObject(e.contextInfo,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ClientState"},n})();const WidgetStates=$root.WidgetStates=(()=>{function n(o){if(this.widgets=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.widgets=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.widgets!=null&&e.widgets.length)for(let c=0;c<e.widgets.length;++c)$root.WidgetState.encode(e.widgets[c],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.WidgetStates;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.widgets&&h.widgets.length||(h.widgets=[]),h.widgets.push($root.WidgetState.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.WidgetStates)return e;let t=new $root.WidgetStates;if(e.widgets){if(!Array.isArray(e.widgets))throw TypeError(".WidgetStates.widgets: array expected");t.widgets=[];for(let c=0;c<e.widgets.length;++c){if(typeof e.widgets[c]!="object")throw TypeError(".WidgetStates.widgets: object expected");t.widgets[c]=$root.WidgetState.fromObject(e.widgets[c])}}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.widgets=[]),e.widgets&&e.widgets.length){c.widgets=[];for(let p=0;p<e.widgets.length;++p)c.widgets[p]=$root.WidgetState.toObject(e.widgets[p],t)}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/WidgetStates"},n})(),WidgetState=$root.WidgetState=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.triggerValue=null,n.prototype.boolValue=null,n.prototype.doubleValue=null,n.prototype.intValue=null,n.prototype.stringValue=null,n.prototype.doubleArrayValue=null,n.prototype.intArrayValue=null,n.prototype.stringArrayValue=null,n.prototype.jsonValue=null,n.prototype.arrowValue=null,n.prototype.bytesValue=null,n.prototype.fileUploaderStateValue=null,n.prototype.stringTriggerValue=null,n.prototype.chatInputValue=null,n.prototype.jsonTriggerValue=null;let o;return Object.defineProperty(n.prototype,"value",{get:$util.oneOfGetter(o=["triggerValue","boolValue","doubleValue","intValue","stringValue","doubleArrayValue","intArrayValue","stringArrayValue","jsonValue","arrowValue","bytesValue","fileUploaderStateValue","stringTriggerValue","chatInputValue","jsonTriggerValue"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.triggerValue!=null&&Object.hasOwnProperty.call(t,"triggerValue")&&c.uint32(16).bool(t.triggerValue),t.boolValue!=null&&Object.hasOwnProperty.call(t,"boolValue")&&c.uint32(24).bool(t.boolValue),t.doubleValue!=null&&Object.hasOwnProperty.call(t,"doubleValue")&&c.uint32(33).double(t.doubleValue),t.intValue!=null&&Object.hasOwnProperty.call(t,"intValue")&&c.uint32(40).sint64(t.intValue),t.stringValue!=null&&Object.hasOwnProperty.call(t,"stringValue")&&c.uint32(50).string(t.stringValue),t.doubleArrayValue!=null&&Object.hasOwnProperty.call(t,"doubleArrayValue")&&$root.DoubleArray.encode(t.doubleArrayValue,c.uint32(58).fork()).ldelim(),t.intArrayValue!=null&&Object.hasOwnProperty.call(t,"intArrayValue")&&$root.SInt64Array.encode(t.intArrayValue,c.uint32(66).fork()).ldelim(),t.stringArrayValue!=null&&Object.hasOwnProperty.call(t,"stringArrayValue")&&$root.StringArray.encode(t.stringArrayValue,c.uint32(74).fork()).ldelim(),t.jsonValue!=null&&Object.hasOwnProperty.call(t,"jsonValue")&&c.uint32(82).string(t.jsonValue),t.arrowValue!=null&&Object.hasOwnProperty.call(t,"arrowValue")&&$root.ArrowTable.encode(t.arrowValue,c.uint32(90).fork()).ldelim(),t.bytesValue!=null&&Object.hasOwnProperty.call(t,"bytesValue")&&c.uint32(98).bytes(t.bytesValue),t.fileUploaderStateValue!=null&&Object.hasOwnProperty.call(t,"fileUploaderStateValue")&&$root.FileUploaderState.encode(t.fileUploaderStateValue,c.uint32(106).fork()).ldelim(),t.stringTriggerValue!=null&&Object.hasOwnProperty.call(t,"stringTriggerValue")&&$root.StringTriggerValue.encode(t.stringTriggerValue,c.uint32(114).fork()).ldelim(),t.chatInputValue!=null&&Object.hasOwnProperty.call(t,"chatInputValue")&&$root.ChatInputValue.encode(t.chatInputValue,c.uint32(122).fork()).ldelim(),t.jsonTriggerValue!=null&&Object.hasOwnProperty.call(t,"jsonTriggerValue")&&c.uint32(130).string(t.jsonTriggerValue),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.WidgetState;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.triggerValue=t.bool();break}case 3:{y.boolValue=t.bool();break}case 4:{y.doubleValue=t.double();break}case 5:{y.intValue=t.sint64();break}case 6:{y.stringValue=t.string();break}case 7:{y.doubleArrayValue=$root.DoubleArray.decode(t,t.uint32());break}case 8:{y.intArrayValue=$root.SInt64Array.decode(t,t.uint32());break}case 9:{y.stringArrayValue=$root.StringArray.decode(t,t.uint32());break}case 10:{y.jsonValue=t.string();break}case 11:{y.arrowValue=$root.ArrowTable.decode(t,t.uint32());break}case 12:{y.bytesValue=t.bytes();break}case 13:{y.fileUploaderStateValue=$root.FileUploaderState.decode(t,t.uint32());break}case 14:{y.stringTriggerValue=$root.StringTriggerValue.decode(t,t.uint32());break}case 15:{y.chatInputValue=$root.ChatInputValue.decode(t,t.uint32());break}case 16:{y.jsonTriggerValue=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.WidgetState)return t;let c=new $root.WidgetState;if(t.id!=null&&(c.id=String(t.id)),t.triggerValue!=null&&(c.triggerValue=!!t.triggerValue),t.boolValue!=null&&(c.boolValue=!!t.boolValue),t.doubleValue!=null&&(c.doubleValue=Number(t.doubleValue)),t.intValue!=null&&($util.Long?(c.intValue=$util.Long.fromValue(t.intValue)).unsigned=!1:typeof t.intValue=="string"?c.intValue=parseInt(t.intValue,10):typeof t.intValue=="number"?c.intValue=t.intValue:typeof t.intValue=="object"&&(c.intValue=new $util.LongBits(t.intValue.low>>>0,t.intValue.high>>>0).toNumber())),t.stringValue!=null&&(c.stringValue=String(t.stringValue)),t.doubleArrayValue!=null){if(typeof t.doubleArrayValue!="object")throw TypeError(".WidgetState.doubleArrayValue: object expected");c.doubleArrayValue=$root.DoubleArray.fromObject(t.doubleArrayValue)}if(t.intArrayValue!=null){if(typeof t.intArrayValue!="object")throw TypeError(".WidgetState.intArrayValue: object expected");c.intArrayValue=$root.SInt64Array.fromObject(t.intArrayValue)}if(t.stringArrayValue!=null){if(typeof t.stringArrayValue!="object")throw TypeError(".WidgetState.stringArrayValue: object expected");c.stringArrayValue=$root.StringArray.fromObject(t.stringArrayValue)}if(t.jsonValue!=null&&(c.jsonValue=String(t.jsonValue)),t.arrowValue!=null){if(typeof t.arrowValue!="object")throw TypeError(".WidgetState.arrowValue: object expected");c.arrowValue=$root.ArrowTable.fromObject(t.arrowValue)}if(t.bytesValue!=null&&(typeof t.bytesValue=="string"?$util.base64.decode(t.bytesValue,c.bytesValue=$util.newBuffer($util.base64.length(t.bytesValue)),0):t.bytesValue.length>=0&&(c.bytesValue=t.bytesValue)),t.fileUploaderStateValue!=null){if(typeof t.fileUploaderStateValue!="object")throw TypeError(".WidgetState.fileUploaderStateValue: object expected");c.fileUploaderStateValue=$root.FileUploaderState.fromObject(t.fileUploaderStateValue)}if(t.stringTriggerValue!=null){if(typeof t.stringTriggerValue!="object")throw TypeError(".WidgetState.stringTriggerValue: object expected");c.stringTriggerValue=$root.StringTriggerValue.fromObject(t.stringTriggerValue)}if(t.chatInputValue!=null){if(typeof t.chatInputValue!="object")throw TypeError(".WidgetState.chatInputValue: object expected");c.chatInputValue=$root.ChatInputValue.fromObject(t.chatInputValue)}return t.jsonTriggerValue!=null&&(c.jsonTriggerValue=String(t.jsonTriggerValue)),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.id=""),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.triggerValue!=null&&t.hasOwnProperty("triggerValue")&&(p.triggerValue=t.triggerValue,c.oneofs&&(p.value="triggerValue")),t.boolValue!=null&&t.hasOwnProperty("boolValue")&&(p.boolValue=t.boolValue,c.oneofs&&(p.value="boolValue")),t.doubleValue!=null&&t.hasOwnProperty("doubleValue")&&(p.doubleValue=c.json&&!isFinite(t.doubleValue)?String(t.doubleValue):t.doubleValue,c.oneofs&&(p.value="doubleValue")),t.intValue!=null&&t.hasOwnProperty("intValue")&&(typeof t.intValue=="number"?p.intValue=c.longs===String?String(t.intValue):t.intValue:p.intValue=c.longs===String?$util.Long.prototype.toString.call(t.intValue):c.longs===Number?new $util.LongBits(t.intValue.low>>>0,t.intValue.high>>>0).toNumber():t.intValue,c.oneofs&&(p.value="intValue")),t.stringValue!=null&&t.hasOwnProperty("str
18ingValue")&&(p.stringValue=t.stringValue,c.oneofs&&(p.value="stringValue")),t.doubleArrayValue!=null&&t.hasOwnProperty("doubleArrayValue")&&(p.doubleArrayValue=$root.DoubleArray.toObject(t.doubleArrayValue,c),c.oneofs&&(p.value="doubleArrayValue")),t.intArrayValue!=null&&t.hasOwnProperty("intArrayValue")&&(p.intArrayValue=$root.SInt64Array.toObject(t.intArrayValue,c),c.oneofs&&(p.value="intArrayValue")),t.stringArrayValue!=null&&t.hasOwnProperty("stringArrayValue")&&(p.stringArrayValue=$root.StringArray.toObject(t.stringArrayValue,c),c.oneofs&&(p.value="stringArrayValue")),t.jsonValue!=null&&t.hasOwnProperty("jsonValue")&&(p.jsonValue=t.jsonValue,c.oneofs&&(p.value="jsonValue")),t.arrowValue!=null&&t.hasOwnProperty("arrowValue")&&(p.arrowValue=$root.ArrowTable.toObject(t.arrowValue,c),c.oneofs&&(p.value="arrowValue")),t.bytesValue!=null&&t.hasOwnProperty("bytesValue")&&(p.bytesValue=c.bytes===String?$util.base64.encode(t.bytesValue,0,t.bytesValue.length):c.bytes===Array?Array.prototype.slice.call(t.bytesValue):t.bytesValue,c.oneofs&&(p.value="bytesValue")),t.fileUploaderStateValue!=null&&t.hasOwnProperty("fileUploaderStateValue")&&(p.fileUploaderStateValue=$root.FileUploaderState.toObject(t.fileUploaderStateValue,c),c.oneofs&&(p.value="fileUploaderStateValue")),t.stringTriggerValue!=null&&t.hasOwnProperty("stringTriggerValue")&&(p.stringTriggerValue=$root.StringTriggerValue.toObject(t.stringTriggerValue,c),c.oneofs&&(p.value="stringTriggerValue")),t.chatInputValue!=null&&t.hasOwnProperty("chatInputValue")&&(p.chatInputValue=$root.ChatInputValue.toObject(t.chatInputValue,c),c.oneofs&&(p.value="chatInputValue")),t.jsonTriggerValue!=null&&t.hasOwnProperty("jsonTriggerValue")&&(p.jsonTriggerValue=t.jsonTriggerValue,c.oneofs&&(p.value="jsonTriggerValue")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/WidgetState"},n})(),StringArray=$root.StringArray=(()=>{function n(o){if(this.data=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length)for(let c=0;c<e.data.length;++c)t.uint32(10).string(e.data[c]);return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.StringArray;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.data&&h.data.length||(h.data=[]),h.data.push(e.string());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.StringArray)return e;let t=new $root.StringArray;
18if(e.data){if(!Array.isArray(e.data))throw TypeError(".StringArray.data: array expected");t.data=[];for(let c=0;c<e.data.length;++c)t.data[c]=String(e.data[c])}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.data=[]),e.data&&e.data.length){c.data=[];for(let p=0;p<e.data.length;++p)c.data[p]=e.data[p]}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/StringArray"},n})(),DoubleArray=$root.DoubleArray=(()=>{function n(o){if(this.data=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let c=0;c<e.data.length;++c)t.double(e.data[c]);t.ldelim()}return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.DoubleArray;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{if(h.data&&h.data.length||(h.data=[]),(y&7)===2){let g=e.uint32()+e.pos;for(;e.pos<g;)h.data.push(e.double())}else h.data.push(e.double());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DoubleArray)return e;let t=new $root.DoubleArray;
18if(e.data){if(!Array.isArray(e.data))throw TypeError(".DoubleArray.data: array expected");t.data=[];for(let c=0;c<e.data.length;++c)t.data[c]=Number(e.data[c])}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.data=[]),e.data&&e.data.length){c.data=[];for(let p=0;p<e.data.length;++p)c.data[p]=t.json&&!isFinite(e.data[p])?String(e.data[p]):e.data[p]}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DoubleArray"},n})();$root.Int32Array=(()=>{function n(o){if(this.data=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let c=0;c<e.data.length;++c)t.int32(e.data[c]);t.ldelim()}return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Int32Array;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{if(h.data&&h.data.length||(h.data=[]),(y&7)===2){let g=e.uint32()+e.pos;for(;e.pos<g;)h.data.push(e.int32())}else h.data.push(e.int32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Int32Array)return e;let t=new $root.Int32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int32Array.data: array expected");t.data=[];for(let c=0;c<e.data.length;++c)t.data[c]=e.data[c]|0}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.data=[]),e.data&&e.data.length){c.data=[];for(let p=0;p<e.data.length;++p)c.data[p]=e.data[p]}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Int32Array"},n})();$root.Int64Array=(()=>{function n(o){if(this.data=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let c=0;c<e.data.length;++c)t.int64(e.data[c]);t.ldelim()}return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Int64Array;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{if(h.data&&h.data.length||(h.data=[]),(y&7)===2){let g=e.uint32()+e.pos;for(;e.pos<g;)h.data.push(e.int64())}else h.data.push(e.int64());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Int64Array)return e;let t=new $root.Int64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int64Array.data: array expected");t.data=[];for(let c=0;c<e.data.length;++c)$util.Long?(t.data[c]=$util.Long.fromValue(e.data[c])).unsigned=!1:typeof e.data[c]=="string"?t.data[c]=parseInt(e.data[c],10):typeof e.data[c]=="number"?t.data[c]=e.data[c]:typeof e.data[c]=="object"&&(t.data[c]=new $util.LongBits(e.data[c].low>>>0,e.data[c].high>>>0).toNumber())}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.data=[]),e.data&&e.data.length){c.data=[];for(let p=0;p<e.data.length;++p)typeof e.data[p]=="number"?c.data[p]=t.longs===String?String(e.data[p]):e.data[p]:c.data[p]=t.longs===String?$util.Long.prototype.toString.call(e.data[p]):t.longs===Number?new $util.LongBits(e.data[p].low>>>0,e.data[p].high>>>0).toNumber():e.data[p]}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Int64Array"},n})();const SInt64Array=$root.SInt64Array=(()=>{function n(o){if(this.data=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let c=0;c<e.data.length;++c)t.sint64(e.data[c]);t.ldelim()}return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.SInt64Array;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{if(h.data&&h.data.length||(h.data=[]),(y&7)===2){let g=e.uint32()+e.pos;for(;e.pos<g;)h.data.push(e.sint64())}else h.data.push(e.sint64());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.SInt64Array)return e;let t=new $root.SInt64Array;
18if(e.data){if(!Array.isArray(e.data))throw TypeError(".SInt64Array.data: array expected");t.data=[];for(let c=0;c<e.data.length;++c)$util.Long?(t.data[c]=$util.Long.fromValue(e.data[c])).unsigned=!1:typeof e.data[c]=="string"?t.data[c]=parseInt(e.data[c],10):typeof e.data[c]=="number"?t.data[c]=e.data[c]:typeof e.data[c]=="object"&&(t.data[c]=new $util.LongBits(e.data[c].low>>>0,e.data[c].high>>>0).toNumber())}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.data=[]),e.data&&e.data.length){c.data=[];for(let p=0;p<e.data.length;++p)typeof e.data[p]=="number"?c.data[p]=t.longs===String?String(e.data[p]):e.data[p]:c.data[p]=t.longs===String?$util.Long.prototype.toString.call(e.data[p]):t.longs===Number?new $util.LongBits(e.data[p].low>>>0,e.data[p].high>>>0).toNumber():e.data[p]}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SInt64Array"},n})();$root.UInt32Array=(()=>{function n(o){if(this.data=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let c=0;c<e.data.length;++c)t.uint32(e.data[c]);t.ldelim()}return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.UInt32Array;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{if(h.data&&h.data.length||(h.data=[]),(y&7)===2){let g=e.uint32()+e.pos;for(;e.pos<g;)h.data.push(e.uint32())}else h.data.push(e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.UInt32Array)return e;let t=new $root.UInt32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".UInt32Array.data: array expected");t.data=[];for(let c=0;c<e.data.length;++c)t.data[c]=e.data[c]>>>0}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.data=[]),e.data&&e.data.length){c.data=[];for(let p=0;p<e.data.length;++p)c.data[p]=e.data[p]}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/UInt32Array"},n})();$root.StringTriggerValue=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.data=null;let o;return Object.defineProperty(n.prototype,"_data",{get:$util.oneOfGetter(o=["data"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&c.uint32(10).string(t.data),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.StringTriggerValue;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.data=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.StringTriggerValue)return t;let c=new $root.StringTriggerValue;return t.data!=null&&(c.data=String(t.data)),c},n.toObject=function(t,c){c||(c={});let p={};return t.data!=null&&t.hasOwnProperty("data")&&(p.data=t.data,c.oneofs&&(p._data="data")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/StringTriggerValue"},n})();$root.FileURLsRequest=(()=>{function n(o){if(this.fileNames=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.requestId="",n.prototype.fileNames=$util.emptyArray,n.prototype.sessionId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.requestId!=null&&Object.hasOwnProperty.call(e,"requestId")&&t.uint32(10).string(e.requestId),e.fileNames!=null&&e.fileNames.length)for(let c=0;c<e.fileNames.length;++c)t.uint32(18).string(e.fileNames[c]);return e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(26).string(e.sessionId),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.FileURLsRequest;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.requestId=e.string();break}case 2:{h.fileNames&&h.fileNames.length||(h.fileNames=[]),h.fileNames.push(e.string());break}case 3:{h.sessionId=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.FileURLsRequest)return e;let t=new $root.FileURLsRequest;if(e.requestId!=null&&(t.requestId=String(e.requestId)),e.fileNames){if
18(!Array.isArray(e.fileNames))throw TypeError(".FileURLsRequest.fileNames: array expected");t.fileNames=[];for(let c=0;c<e.fileNames.length;++c)t.fileNames[c]=String(e.fileNames[c])}return e.sessionId!=null&&(t.sessionId=String(e.sessionId)),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.fileNames=[]),t.defaults&&(c.requestId="",c.sessionId=""),e.requestId!=null&&e.hasOwnProperty("requestId")&&(c.requestId=e.requestId),e.fileNames&&e.fileNames.length){c.fileNames=[];for(let p=0;p<e.fileNames.length;++p)c.fileNames[p]=e.fileNames[p]}return e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(c.sessionId=e.sessionId),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileURLsRequest"},n})();$root.FileURLs=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.fileId="",n.prototype.uploadUrl="",n.prototype.deleteUrl="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.uploadUrl!=null&&Object.hasOwnProperty.call(e,"uploadUrl")&&t.uint32(18).string(e.uploadUrl),e.deleteUrl!=null&&Object.hasOwnProperty.call(e,"deleteUrl")&&t.uint32(26).string(e.deleteUrl),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.FileURLs;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.fileId=e.string();break}case 2:{h.uploadUrl=e.string();break}case 3:{h.deleteUrl=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.FileURLs)return e;let t=new $root.FileURLs;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.uploadUrl!=null&&(t.uploadUrl=String(e.uploadUrl)),e.deleteUrl!=null&&(t.deleteUrl=String(e.deleteUrl)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.fileId="",c.uploadUrl="",c.deleteUrl=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(c.fileId=e.fileId),e.uploadUrl!=null&&e.hasOwnProperty("uploadUrl")&&(c.uploadUrl=e.uploadUrl),e.deleteUrl!=null&&e.hasOwnProperty("deleteUrl")&&(c.deleteUrl=e.deleteUrl),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileURLs"},n})();$root.FileURLsResponse=(()=>{function n(o){if(this.fileUrls=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.responseId="",n.prototype.fileUrls=$util.emptyArray,n.prototype.errorMsg="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.responseId!=null&&Object.hasOwnProperty.call(e,"responseId")&&t.uint32(10).string(e.responseId),e.fileUrls!=null&&e.fileUrls.length)for(let c=0;c<e.fileUrls.length;++c)$root.FileURLs.encode(e.fileUrls[c],t.uint32(18).fork()).ldelim();return e.errorMsg!=null&&Object.hasOwnProperty.call(e,"errorMsg")&&t.uint32(26).string(e.errorMsg),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.FileURLsResponse;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.responseId=e.string();break}case 2:{h.fileUrls&&h.fileUrls.length||(h.fileUrls=[]),h.fileUrls.push($root.FileURLs.decode(e,e.uint32()));break}case 3:{h.errorMsg=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.FileURLsResponse)return e;let t=new $root.FileURLsResponse;if(e.responseId!=null&&(t.responseId=String(e.responseId)),e.fileUrls){if(!Array.isArray(e.fileUrls))throw TypeError(".FileURLsResponse.fileUrls: array expected");t.fileUrls=[];for(let c=0;c<e.fileUrls.length;++c){if(typeof e.fileUrls[c]!="object")throw TypeError(".FileURLsResponse.fileUrls: object expected");t.fileUrls[c]=$root.FileURLs.fromObject(e.fileUrls[c])}}return e.errorMsg!=null&&(t.errorMsg=String(e.errorMsg)),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.fileUrls=[]),t.defaults&&(c.responseId="",c.errorMsg=""),e.responseId!=null&&e.hasOwnProperty("responseId")&&(c.responseId=e.responseId),e.fileUrls&&e.fileUrls.length){c.fileUrls=[];for(let p=0;
18p<e.fileUrls.length;++p)c.fileUrls[p]=$root.FileURLs.toObject(e.fileUrls[p],t)}return e.errorMsg!=null&&e.hasOwnProperty("errorMsg")&&(c.errorMsg=e.errorMsg),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileURLsResponse"},n})();const UploadedFileInfo=$root.UploadedFileInfo=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.id=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.name="",n.prototype.size=$util.Long?$util.Long.fromBits(0,0,!0):0,n.prototype.fileId="",n.prototype.fileUrls=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).sint64(e.id),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),e.size!=null&&Object.hasOwnProperty.call(e,"size")&&t.uint32(24).uint64(e.size),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(34).string(e.fileId),e.fileUrls!=null&&Object.hasOwnProperty.call(e,"fileUrls")&&$root.FileURLs.encode(e.fileUrls,t.uint32(42).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.UploadedFileInfo;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.id=e.sint64();break}case 2:{h.name=e.string();break}case 3:{h.size=e.uint64();break}case 4:{h.fileId=e.string();break}case 5:{h.fileUrls=$root.FileURLs.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.UploadedFileInfo)return e;let t=new $root.UploadedFileInfo;if(e.id!=null&&($util.Long?(t.id=$util.Long.fromValue(e.id)).unsigned=!1:typeof e.id=="string"?t.id=parseInt(e.id,10):typeof e.id=="number"?t.id=e.id:typeof e.id=="object"&&(t.id=new $util.LongBits(e.id.low>>>0,e.id.high>>>0).toNumber())),e.name!=null&&(t.name=String(e.name)),e.size!=null&&($util.Long?(t.size=$util.Long.fromValue(e.size)).unsigned=!0:typeof e.size=="string"?t.size=parseInt(e.size,10):typeof e.size=="number"?t.size=e.size:typeof e.size=="object"&&(t.size=new $util.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0))),e.fileId!=null&&(t.fileId=String(e.fileId)),e.fileUrls!=null){if(typeof e.fileUrls!="object")throw TypeError(".UploadedFileInfo.fileUrls: object expected");t.fileUrls=$root.FileURLs.fromObject(e.fileUrls)}return t},n.toObject=function(e,t){t||(t={});let c={};if(t.defaults){if($util.Long){let p=new $util.Long(0,0,!1);c.id=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.id=t.longs===String?"0":0;if(c.name="",$util.Long){let p=new $util.Long(0,0,!0);c.size=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.size=t.longs===String?"0":0;c.fileId="",c.fileUrls=null}return e.id!=null&&e.hasOwnProperty("id")&&(typeof e.id=="number"?c.id=t.longs===String?String(e.id):e.id:c.id=t.longs===String?$util.Long.prototype.toString.call(e.id):t.longs===Number?new $util.LongBits(e.id.low>>>0,e.id.high>>>0).toNumber():e.id),e.name!=null&&e.hasOwnProperty("name")&&(c.name=e.name),e.size!=null&&e.hasOwnProperty("size")&&(typeof e.size=="number"?c.size=t.longs===String?String(e.size):e.size:c.size=t.longs===String?$util.Long.prototype.toString.call(e.size):t.longs===Number?new $util.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0):e.size),e.fileId!=null&&e.hasOwnProperty("fileId")&&(c.fileId=e.fileId),e.fileUrls!=null&&e.hasOwnProperty("fileUrls")&&(c.fileUrls=$root.FileURLs.toObject(e.fileUrls,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/UploadedFileInfo"},n})(),FileUploaderState=$root.FileUploaderState=(()=>{function n(o){if(this.uploadedFileInfo=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.maxFileId=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.uploadedFileInfo=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.maxFileId!=null&&Object.hasOwnProperty.call(e,"maxFileId")&&t.uint32(8).sint64(e.maxFileId),e.uploadedFileInfo!=null&&e.uploadedFileInfo.length)for(let c=0;c<e.uploadedFileInfo.length;++c)$root.UploadedFileInfo.encode(e.uploadedFileInfo[c],t.uint32(18).fork()).ldelim();return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.FileUploaderState;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.maxFileId=e.sint64();break}case 2:{h.uploadedFileInfo&&h.uploadedFileInfo.length||(h.uploadedFileInfo=[]),h.uploadedFileInfo.push($root.UploadedFileInfo.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.FileUploaderState)return e;let t=new $root.FileUploaderState;if(e.maxFileId!=null&&($util.Long?(t.maxFileId=$util.Long.fromValue(e.maxFileId)).unsigned=!1:typeof e.maxFileId=="string"?t.maxFileId=parseInt(e.maxFileId,10):typeof e.maxFileId=="number"?t.maxFileId=e.maxFileId:typeof e.maxFileId=="object"&&(t.maxFileId=new $util.LongBits(e.maxFileId.low>>>0,e.maxFileId.high>>>0).toNumber())),e.uploadedFileInfo){if(!Array.isArray(e.uploadedFileInfo))throw TypeError(".FileUploaderState.uploadedFileInfo: array expected");t.uploadedFileInfo=[];for(let c=0;c<e.uploadedFileInfo.length;++c){if(typeof e.uploadedFileInfo[c]!="object")throw TypeError(".FileUploaderState.uploadedFileInfo: object expected");t.uploadedFileInfo[c]=$root.UploadedFileInfo.fromObject(e.uploadedFileInfo[c])}}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.uploadedFileInfo=[]),t.defaults)if($util.Long){let p=new $util.Long(0,0,!1);c.maxFileId=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.maxFileId=t.longs===String?"0":0;
18if(e.maxFileId!=null&&e.hasOwnProperty("maxFileId")&&(typeof e.maxFileId=="number"?c.maxFileId=t.longs===String?String(e.maxFileId):e.maxFileId:c.maxFileId=t.longs===String?$util.Long.prototype.toString.call(e.maxFileId):t.longs===Number?new $util.LongBits(e.maxFileId.low>>>0,e.maxFileId.high>>>0).toNumber():e.maxFileId),e.uploadedFileInfo&&e.uploadedFileInfo.length){c.uploadedFileInfo=[];for(let p=0;p<e.uploadedFileInfo.length;++p)c.uploadedFileInfo[p]=$root.UploadedFileInfo.toObject(e.uploadedFileInfo[p],t)}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileUploaderState"},n})(),ChatInputValue=$root.ChatInputValue=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.data=null,n.prototype.fileUploaderState=null,n.prototype.audioFileInfo=null;let o;return Object.defineProperty(n.prototype,"_data",{get:$util.oneOfGetter(o=["data"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_fileUploaderState",{get:$util.oneOfGetter(o=["fileUploaderState"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_audioFileInfo",{get:$util.oneOfGetter(o=["audioFileInfo"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&c.uint32(10).string(t.data),t.fileUploaderState!=null&&Object.hasOwnProperty.call(t,"fileUploaderState")&&$root.FileUploaderState.encode(t.fileUploaderState,c.uint32(18).fork()).ldelim(),t.audioFileInfo!=null&&Object.hasOwnProperty.call(t,"audioFileInfo")&&$root.UploadedFileInfo.encode(t.audioFileInfo,c.uint32(26).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.ChatInputValue;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.data=t.string();break}case 2:{y.fileUploaderState=$root.FileUploaderState.decode(t,t.uint32());break}case 3:{y.audioFileInfo=$root.UploadedFileInfo.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.ChatInputValue)return t;let c=new $root.ChatInputValue;if(t.data!=null&&(c.data=String(t.data)),t.fileUploaderState!=null){if(typeof t.fileUploaderState!="object")throw TypeError(".ChatInputValue.fileUploaderState: object expected");c.fileUploaderState=$root.FileUploaderState.fromObject(t.fileUploaderState)}if(t.audioFileInfo!=null){if(typeof t.audioFileInfo!="object")throw TypeError(".ChatInputValue.audioFileInfo: object expected");c.audioFileInfo=$root.UploadedFileInfo.fromObject(t.audioFileInfo)}return c},n.toObject=function(t,c){c||(c={});let p={};return t.data!=null&&t.hasOwnProperty("data")&&(p.data=t.data,c.oneofs&&(p._data="data")),t.fileUploaderState!=null&&t.hasOwnProperty("fileUploaderState")&&(p.fileUploaderState=$root.FileUploaderState.toObject(t.fileUploaderState,c),c.oneofs&&(p._fileUploaderState="fileUploaderState")),t.audioFileInfo!=null&&t.hasOwnProperty("audioFileInfo")&&(p.audioFileInfo=$root.UploadedFileInfo.toObject(t.audioFileInfo,c),c.oneofs&&(p._audioFileInfo="audioFileInfo")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ChatInputValue"},n})();$root.ComponentInstance=(()=>{function n(e){if(this.specialArgs=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.jsonArgs="",n.prototype.specialArgs=$util.emptyArray,n.prototype.componentName="",n.prototype.url="",n.prototype.formId="",n.prototype.tabIndex=null;let o;return Object.defineProperty(n.prototype,"_tabIndex",{get:$util.oneOfGetter(o=["tabIndex"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){if(c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.jsonArgs!=null&&Object.hasOwnProperty.call(t,"jsonArgs")&&c.uint32(18).string(t.jsonArgs),t.specialArgs!=null&&t.specialArgs.length)for(let p=0;p<t.specialArgs.length;++p)$root.SpecialArg.encode(t.specialArgs[p],c.uint32(26).fork()).ldelim();return t.componentName!=null&&Object.hasOwnProperty.call(t,"componentName")&&c.uint32(34).string(t.componentName),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&c.uint32(42).string(t.url),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(50).string(t.formId),t.tabIndex!=null&&Object.hasOwnProperty.call(t,"tabIndex")&&c.uint32(56).int32(t.tabIndex),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.ComponentInstance;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.jsonArgs=t.string();break}case 3:{y.specialArgs&&y.specialArgs.length||(y.specialArgs=[]),y.specialArgs.push($root.SpecialArg.decode(t,t.uint32()));break}case 4:{y.componentName=t.string();break}case 5:{y.url=t.string();break}case 6:{y.formId=t.string();break}case 7:{y.tabIndex=t.int32();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.ComponentInstance)return t;let c=new $root.ComponentInstance;if(t.id!=null&&(c.id=String(t.id)),t.jsonArgs!=null&&(c.jsonArgs=String(t.jsonArgs)),t.specialArgs){if(!Array.isArray(t.specialArgs))throw TypeError(".ComponentInstance.specialArgs: array expected");c.specialArgs=[];for(let p=0;p<t.specialArgs.length;++p){if(typeof t.specialArgs[p]!="object")throw TypeError(".ComponentInstance.specialArgs: object expected");c.specialArgs[p]=$root.SpecialArg.fromObject(t.specialArgs[p])}}return t.componentName!=null&&(c.componentName=String(t.componentName)),t.url!=null&&(c.url=String(t.url)),t.formId!=null&&(c.formId=String(t.formId)),t.tabIndex!=null&&(c.tabIndex=t.tabIndex|0),c},n.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.specialArgs=[]),c.defaults&&(p.id="",p.jsonArgs="",p.componentName="",p.url="",p.formId=""),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.jsonArgs!=null&&t.hasOwnProperty("jsonArgs")&&(p.jsonArgs=t.jsonArgs),t.specialArgs&&t.specialArgs.length){p.specialArgs=[];for(let h=0;h<t.specialArgs.length;++h)p.specialArgs[h]=$root.SpecialArg.toObject(t.specialArgs[h],c)}return t.componentName!=null&&t.hasOwnProperty("componentName")&&(p.componentName=t.componentName),t.url!=null&&t.hasOwnProperty("url")&&(p.url=t.url),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.tabIndex!=null&&t.hasOwnProperty("tabIndex")&&(p.tabIndex=t.tabIndex,c.oneofs&&(p._tabIndex="tabIndex")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ComponentInstance"},n})();$root.SpecialArg=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.key="",n.prototype.arrowDataframe=null,n.prototype.bytes=null;let o;return Object.defineProperty(n.prototype,"value",{get:$util.oneOfGetter(o=["arrowDataframe","bytes"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.key!=null&&Object.hasOwnProperty.call(t,"key")&&c.uint32(10).string(t.key),t.arrowDataframe!=null&&Object.hasOwnProperty.call(t,"arrowDataframe")&&$root.ArrowDataframe.encode(t.arrowDataframe,c.uint32(18).fork()).ldelim(),t.bytes!=null&&Object.hasOwnProperty.call(t,"bytes")&&c.uint32(26).bytes(t.bytes),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.SpecialArg;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.key=t.string();break}case 2:{y.arrowDataframe=$root.ArrowDataframe.decode(t,t.uint32());break}case 3:{y.bytes=t.bytes();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.SpecialArg)return t;let c=new $root.SpecialArg;if(t.key!=null&&(c.key=String(t.key)),t.arrowDataframe!=null){if(typeof t.arrowDataframe!="object")throw TypeError(".SpecialArg.arrowDataframe: object expected");c.arrowDataframe=$root.ArrowDataframe.fromObject(t.arrowDataframe)}return t.bytes!=null&&(typeof t.bytes=="string"?$util.base64.decode(t.bytes,c.bytes=$util.newBuffer($util.base64.length(t.bytes)),0):t.bytes.length>=0&&(c.bytes=t.bytes)),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.key=""),t.key!=null&&t.hasOwnProperty("key")&&(p.key=t.key),t.arrowDataframe!=null&&t.hasOwnProperty("arrowDataframe")&&(p.arrowDataframe=$root.ArrowDataframe.toObject(t.arrowDataframe,c),c.oneofs&&(p.value="arrowDataframe")),t.bytes!=null&&t.hasOwnProperty("bytes")&&(p.bytes=c.bytes===String?$util.base64.encode(t.bytes,0,t.bytes.length):c.bytes===Array?Array.prototype.slice.call(t.bytes):t.bytes,c.oneofs&&(p.value="bytes")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/SpecialArg"},n})();const ArrowDataframe=$root.ArrowDataframe=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=null,n.prototype.height=0,n.prototype.width=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.ArrowTable.encode(e.data,t.uint32(10).fork()).ldelim(),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),e.width!=null&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ArrowDataframe;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.data=$root.ArrowTable.decode(e,e.uint32());break}case 2:{h.height=e.uint32();break}case 3:{h.width=e.uint32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ArrowDataframe)return e;let t=new $root.ArrowDataframe;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowDataframe.data: object expected");t.data=$root.ArrowTable.fromObject(e.data)}return e.height!=null&&(t.height=e.height>>>0),e.width!=null&&(t.width=e.width>>>0),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.data=null,c.height=0,c.width=0),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.ArrowTable.toObject(e.data,t)),e.height!=null&&e.hasOwnProperty("height")&&(c.height=e.height),e.width!=null&&e.hasOwnProperty("width")&&(c.width=e.width),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowDataframe"},n})();$root.ArrowTable=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=$util.newBuffer([]),n.prototype.index=$util.newBuffer([]),n.prototype.columns=$util.newBuffer([]),n.prototype.styler=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),e.index!=null&&Object.hasOwnProperty.call(e,"index")&&t.uint32(18).bytes(e.index),e.columns!=null&&Object.hasOwnProperty.call(e,"columns")&&t.uint32(26).bytes(e.columns),e.styler!=null&&Object.hasOwnProperty.call(e,"styler")&&$root.ArrowTableStyler.encode(e.styler,t.uint32(42).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ArrowTable;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.data=e.bytes();break}case 2:{h.index=e.bytes();break}case 3:{h.columns=e.bytes();break}case 5:{h.styler=$root.ArrowTableStyler.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ArrowTable)return e;let t=new $root.ArrowTable;
18if(e.data!=null&&(typeof e.data=="string"?$util.base64.decode(e.data,t.data=$util.newBuffer($util.base64.length(e.data)),0):e.data.length>=0&&(t.data=e.data)),e.index!=null&&(typeof e.index=="string"?$util.base64.decode(e.index,t.index=$util.newBuffer($util.base64.length(e.index)),0):e.index.length>=0&&(t.index=e.index)),e.columns!=null&&(typeof e.columns=="string"?$util.base64.decode(e.columns,t.columns=$util.newBuffer($util.base64.length(e.columns)),0):e.columns.length>=0&&(t.columns=e.columns)),e.styler!=null){if(typeof e.styler!="object")throw TypeError(".ArrowTable.styler: object expected");t.styler=$root.ArrowTableStyler.fromObject(e.styler)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(t.bytes===String?c.data="":(c.data=[],t.bytes!==Array&&(c.data=$util.newBuffer(c.data))),t.bytes===String?c.index="":(c.index=[],t.bytes!==Array&&(c.index=$util.newBuffer(c.index))),t.bytes===String?c.columns="":(c.columns=[],t.bytes!==Array&&(c.columns=$util.newBuffer(c.columns))),c.styler=null),e.data!=null&&e.hasOwnProperty("data")&&(c.data=t.bytes===String?$util.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),e.index!=null&&e.hasOwnProperty("index")&&(c.index=t.bytes===String?$util.base64.encode(e.index,0,e.index.length):t.bytes===Array?Array.prototype.slice.call(e.index):e.index),e.columns!=null&&e.hasOwnProperty("columns")&&(c.columns=t.bytes===String?$util.base64.encode(e.columns,0,e.columns.length):t.bytes===Array?Array.prototype.slice.call(e.columns):e.columns),e.styler!=null&&e.hasOwnProperty("styler")&&(c.styler=$root.ArrowTableStyler.toObject(e.styler,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowTable"},n})();$root.ArrowTableStyler=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.uuid="",n.prototype.caption="",n.prototype.styles="",n.prototype.displayValues=$util.newBuffer([]),n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.uuid!=null&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.styles!=null&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),e.displayValues!=null&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ArrowTableStyler;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.uuid=e.string();break}case 2:{h.caption=e.string();break}case 3:{h.styles=e.string();break}case 4:{h.displayValues=e.bytes();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ArrowTableStyler)return e;let t=new $root.ArrowTableStyler;return e.uuid!=null&&(t.uuid=String(e.uuid)),e.caption!=null&&(t.caption=String(e.caption)),e.styles!=null&&(t.styles=String(e.styles)),e.displayValues!=null&&(typeof e.displayValues=="string"?$util.base64.decode(e.displayValues,t.displayValues=$util.newBuffer($util.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(t.displayValues=e.displayValues)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.uuid="",c.caption="",c.styles="",t.bytes===String?c.displayValues="":(c.displayValues=[],t.bytes!==Array&&(c.displayValues=$util.newBuffer(c.displayValues)))),e.uuid!=null&&e.hasOwnProperty("uuid")&&(c.uuid=e.uuid),e.caption!=null&&e.hasOwnProperty("caption")&&(c.caption=e.caption),e.styles!=null&&e.hasOwnProperty("styles")&&(c.styles=e.styles),e.displayValues!=null&&e.hasOwnProperty("displayValues")&&(c.displayValues=t.bytes===String?$util.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowTableStyler"},n})();$root.Balloons=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.show=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.show!=null&&Object.hasOwnProperty.call(e,"show")&&t.uint32(24).bool(e.show),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Balloons;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 3:{h.show=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Balloons)return e;let t=new $root.Balloons;return e.show!=null&&(t.show=!!e.show),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.show=!1),e.show!=null&&e.hasOwnProperty("show")&&(c.show=e.show),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Balloons"},n})();$root.MixedData=(()=>{function n(o){if(this.arrowBlobs={},o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.json="",n.prototype.arrowBlobs=$util.emptyObject,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.json!=null&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),e.arrowBlobs!=null&&Object.hasOwnProperty.call(e,"arrowBlobs"))for(let c=Object.keys(e.arrowBlobs),p=0;p<c.length;++p)t.uint32(18).fork().uint32(10).string(c[p]),$root.ArrowData.encode(e.arrowBlobs[c[p]],t.uint32(18).fork()).ldelim().ldelim();return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.MixedData,y,g;for(;e.pos<p;){let $=e.uint32();if($===c)break;switch($>>>3){case 1:{h.json=e.string();break}case 2:{h.arrowBlobs===$util.emptyObject&&(h.arrowBlobs={});let E=e.uint32()+e.pos;for(y="",g=null;e.pos<E;){let A=e.uint32();switch(A>>>3){case 1:y=e.string();break;case 2:g=$root.ArrowData.decode(e,e.uint32());break;default:e.skipType(A&7);break}}h.arrowBlobs[y]=g;break}default:e.skipType($&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.MixedData)return e;let t=new $root.MixedData;if(e.json!=null&&(t.json=String(e.json)),e.arrowBlobs){if(typeof e.arrowBlobs!="object")throw TypeError(".MixedData.arrowBlobs: object expected");t.arrowBlobs={};for(let c=Object.keys(e.arrowBlobs),p=0;p<c.length;++p){if(typeof e.arrowBlobs[c[p]]!="object")throw TypeError(".MixedData.arrowBlobs: object expected");t.arrowBlobs[c[p]]=$root.ArrowData.fromObject(e.arrowBlobs[c[p]])}}return t},n.toObject=function(e,t){t||(t={});let c={};(t.objects||t.defaults)&&(c.arrowBlobs={}),t.defaults&&(c.json=""),e.json!=null&&e.hasOwnProperty("json")&&(c.json=e.json);let p;
18if(e.arrowBlobs&&(p=Object.keys(e.arrowBlobs)).length){c.arrowBlobs={};for(let h=0;h<p.length;++h)c.arrowBlobs[p[h]]=$root.ArrowData.toObject(e.arrowBlobs[p[h]],t)}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/MixedData"},n})();$root.BidiComponent=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.componentName="",n.prototype.jsContent=null,n.prototype.jsSourcePath=null,n.prototype.formId="",n.prototype.htmlContent=null,n.prototype.cssContent=null,n.prototype.cssSourcePath=null,n.prototype.isolateStyles=!1,n.prototype.json=null,n.prototype.arrowData=null,n.prototype.bytes=null,n.prototype.mixed=null;let o;return Object.defineProperty(n.prototype,"_jsContent",{get:$util.oneOfGetter(o=["jsContent"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_jsSourcePath",{get:$util.oneOfGetter(o=["jsSourcePath"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_htmlContent",{get:$util.oneOfGetter(o=["htmlContent"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_cssContent",{get:$util.oneOfGetter(o=["cssContent"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_cssSourcePath",{get:$util.oneOfGetter(o=["cssSourcePath"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"data",{get:$util.oneOfGetter(o=["json","arrowData","bytes","mixed"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.componentName!=null&&Object.hasOwnProperty.call(t,"componentName")&&c.uint32(18).string(t.componentName),t.jsContent!=null&&Object.hasOwnProperty.call(t,"jsContent")&&c.uint32(26).string(t.jsContent),t.jsSourcePath!=null&&Object.hasOwnProperty.call(t,"jsSourcePath")&&c.uint32(34).string(t.jsSourcePath),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(42).string(t.formId),t.htmlContent!=null&&Object.hasOwnProperty.call(t,"htmlContent")&&c.uint32(50).string(t.htmlContent),t.cssContent!=null&&Object.hasOwnProperty.call(t,"cssContent")&&c.uint32(58).string(t.cssContent),t.cssSourcePath!=null&&Object.hasOwnProperty.call(t,"cssSourcePath")&&c.uint32(66).string(t.cssSourcePath),t.isolateStyles!=null&&Object.hasOwnProperty.call(t,"isolateStyles")&&c.uint32(72).bool(t.isolateStyles),t.json!=null&&Object.hasOwnProperty.call(t,"json")&&c.uint32(82).string(t.json),t.arrowData!=null&&Object.hasOwnProperty.call(t,"arrowData")&&$root.ArrowData.encode(t.arrowData,c.uint32(90).fork()).ldelim(),t.bytes!=null&&Object.hasOwnProperty.call(t,"bytes")&&c.uint32(98).bytes(t.bytes),t.mixed!=null&&Object.hasOwnProperty.call(t,"mixed")&&$root.MixedData.encode(t.mixed,c.uint32(106).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.BidiComponent;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.componentName=t.string();break}case 3:{y.jsContent=t.string();break}case 4:{y.jsSourcePath=t.string();break}case 5:{y.formId=t.string();break}case 6:{y.htmlContent=t.string();break}case 7:{y.cssContent=t.string();break}case 8:{y.cssSourcePath=t.string();break}case 9:{y.isolateStyles=t.bool();break}case 10:{y.json=t.string();break}case 11:{y.arrowData=$root.ArrowData.decode(t,t.uint32());break}case 12:{y.bytes=t.bytes();break}case 13:{y.mixed=$root.MixedData.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.BidiComponent)return t;let c=new $root.BidiComponent;if(t.id!=null&&(c.id=String(t.id)),t.componentName!=null&&(c.componentName=String(t.componentName)),t.jsContent!=null&&(c.jsContent=String(t.jsContent)),t.jsSourcePath!=null&&(c.jsSourcePath=String(t.jsSourcePath)),t.formId!=null&&(c.formId=String(t.formId)),t.htmlContent!=null&&(c.htmlContent=String(t.htmlContent)),t.cssContent!=null&&(c.cssContent=String(t.cssContent)),t.cssSourcePath!=null&&(c.cssSourcePath=String(t.cssSourcePath)),t.isolateStyles!=null&&(c.isolateStyles=!!t.
18isolateStyles),t.json!=null&&(c.json=String(t.json)),t.arrowData!=null){if(typeof t.arrowData!="object")throw TypeError(".BidiComponent.arrowData: object expected");c.arrowData=$root.ArrowData.fromObject(t.arrowData)}if(t.bytes!=null&&(typeof t.bytes=="string"?$util.base64.decode(t.bytes,c.bytes=$util.newBuffer($util.base64.length(t.bytes)),0):t.bytes.length>=0&&(c.bytes=t.bytes)),t.mixed!=null){if(typeof t.mixed!="object")throw TypeError(".BidiComponent.mixed: object expected");c.mixed=$root.MixedData.fromObject(t.mixed)}return c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.id="",p.componentName="",p.formId="",p.isolateStyles=!1),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.componentName!=null&&t.hasOwnProperty("componentName")&&(p.componentName=t.componentName),t.jsContent!=null&&t.hasOwnProperty("jsContent")&&(p.jsContent=t.jsContent,c.oneofs&&(p._jsContent="jsContent")),t.jsSourcePath!=null&&t.hasOwnProperty("jsSourcePath")&&(p.jsSourcePath=t.jsSourcePath,c.oneofs&&(p._jsSourcePath="jsSourcePath")),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.htmlContent!=null&&t.hasOwnProperty("htmlContent")&&(p.htmlContent=t.htmlContent,c.oneofs&&(p._htmlContent="htmlContent")),t.cssContent!=null&&t.hasOwnProperty("cssContent")&&(p.cssContent=t.cssContent,c.oneofs&&(p._cssContent="cssContent")),t.cssSourcePath!=null&&t.hasOwnProperty("cssSourcePath")&&(p.cssSourcePath=t.cssSourcePath,c.oneofs&&(p._cssSourcePath="cssSourcePath")),t.isolateStyles!=null&&t.hasOwnProperty("isolateStyles")&&(p.isolateStyles=t.isolateStyles),t.json!=null&&t.hasOwnProperty("json")&&(p.json=t.json,c.oneofs&&(p.data="json")),t.arrowData!=null&&t.hasOwnProperty("arrowData")&&(p.arrowData=$root.ArrowData.toObject(t.arrowData,c),c.oneofs&&(p.data="arrowData")),t.bytes!=null&&t.hasOwnProperty("bytes")&&(p.bytes=c.bytes===String?$util.base64.encode(t.bytes,0,t.bytes.length):c.bytes===Array?Array.prototype.slice.call(t.bytes):t.bytes,c.oneofs&&(p.data="bytes")),t.mixed!=null&&t.hasOwnProperty("mixed")&&(p.mixed=$root.MixedData.toObject(t.mixed,c),c.oneofs&&(p.data="mixed")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/BidiComponent"},n})();const Block$1=$root.Block=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.vertical=null,n.prototype.horizontal=null,n.prototype.column=null,n.prototype.expandable=null,n.prototype.form=null,n.prototype.tabContainer=null,n.prototype.tab=null,n.prototype.chatMessage=null,n.prototype.popover=null,n.prototype.dialog=null,n.prototype.flexContainer=null,n.prototype.allowEmpty=!1,n.prototype.id=null,n.prototype.heightConfig=null,n.prototype.widthConfig=null;let o;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(o=["vertical","horizontal","column","expandable","form","tabContainer","tab","chatMessage","popover","dialog","flexContainer"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_id",{get:$util.oneOfGetter(o=["id"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_heightConfig",{get:$util.oneOfGetter(o=["height
18Config"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(o=["widthConfig"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.vertical!=null&&Object.hasOwnProperty.call(t,"vertical")&&$root.Block.Vertical.encode(t.vertical,c.uint32(10).fork()).ldelim(),t.horizontal!=null&&Object.hasOwnProperty.call(t,"horizontal")&&$root.Block.Horizontal.encode(t.horizontal,c.uint32(18).fork()).ldelim(),t.column!=null&&Object.hasOwnProperty.call(t,"column")&&$root.Block.Column.encode(t.column,c.uint32(26).fork()).ldelim(),t.expandable!=null&&Object.hasOwnProperty.call(t,"expandable")&&$root.Block.Expandable.encode(t.expandable,c.uint32(34).fork()).ldelim(),t.form!=null&&Object.hasOwnProperty.call(t,"form")&&$root.Block.Form.encode(t.form,c.uint32(42).fork()).ldelim(),t.tabContainer!=null&&Object.hasOwnProperty.call(t,"tabContainer")&&$root.Block.TabContainer.encode(t.tabContainer,c.uint32(50).fork()).ldelim(),t.tab!=null&&Object.hasOwnProperty.call(t,"tab")&&$root.Block.Tab.encode(t.tab,c.uint32(58).fork()).ldelim(),t.allowEmpty!=null&&Object.hasOwnProperty.call(t,"allowEmpty")&&c.uint32(64).bool(t.allowEmpty),t.chatMessage!=null&&Object.hasOwnProperty.call(t,"chatMessage")&&$root.Block.ChatMessage.encode(t.chatMessage,c.uint32(74).fork()).ldelim(),t.popover!=null&&Object.hasOwnProperty.call(t,"popover")&&$root.Block.Popover.encode(t.popover,c.uint32(82).fork()).ldelim(),t.dialog!=null&&Object.hasOwnProperty.call(t,"dialog")&&$root.Block.Dialog.encode(t.dialog,c.uint32(90).fork()).ldelim(),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(98).string(t.id),t.flexContainer!=null&&Object.hasOwnProperty.call(t,"flexContainer")&&$root.Block.FlexContainer.encode(t.flexContainer,c.uint32(106).fork()).ldelim(),t.heightConfig!=null&&Object.hasOwnProperty.call(t,"heightConfig")&&$root.streamlit.HeightConfig.encode(t.heightConfig,c.uint32(114).fork()).ldelim(),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,c.uint32(122).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Block;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.vertical=$root.Block.Vertical.decode(t,t.uint32());break}case 2:{y.horizontal=$root.Block.Horizontal.decode(t,t.uint32());break}case 3:{y.column=$root.Block.Column.decode(t,t.uint32());break}case 4:{y.expandable=$root.Block.Expandable.decode(t,t.uint32());break}case 5:{y.form=$root.Block.Form.decode(t,t.uint32());break}case 6:{y.tabContainer=$root.Block.TabContainer.decode(t,t.uint32());break}case 7:{y.tab=$root.Block.Tab.decode(t,t.uint32());break}case 9:{y.chatMessage=$root.Block.ChatMessage.decode(t,t.uint32());break}case 10:{y.popover=$root.Block.Popover.decode(t,t.uint32());break}case 11:{y.dialog=$root.Block.Dialog.decode(t,t.uint32());break}case 13:{y.flexContainer=$root.Block.FlexContainer.decode(t,t.uint32());break}case 8:{y.allowEmpty=t.bool();break}case 12:{y.id=t.string();break}case 14:{y.heightConfig=$root.streamlit.HeightConfig.decode(t,t.uint32());break}case 15:{y.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Block)return t;let c=new $root.Block;if(t.vertical!=null){if(typeof t.vertical!="object")throw TypeError(".Block.vertical: object expected");c.vertical=$root.Block.Vertical.fromObject(t.vertical)}if(t.horizontal!=null){if(typeof t.horizontal!="object")throw TypeError(".Block.horizontal: object expected");c.horizontal=$root.Block.Horizontal.fromObject(t.horizontal)}if(t.column!=null){if(typeof t.column!="object")throw TypeError(".Block.column: object expected");c.column=$root.Block.Column.fromObject(t.column)}if(t.expandable!=null){if(typeof t.expandable!="object")throw TypeError(".Block.expandable: object expected");c.expandable=$root.Block.Expandable.fromObject(t.expandable)}if(t.form!=null){if(typeof t.form!="object")throw TypeError(".Block.form: object expected");c.form=$root.Block.Form.fromObject(t.form)}if(t.tabContainer!=null){if(typeof t.tabContainer!="object")throw TypeError(".Block.tabContainer: object expected");c.tabContainer=$root.Block.TabContainer.fromObject(t.tabContainer)}if(t.tab!=null){if(typeof t.tab!="object")throw TypeError(".Block.tab: object expected");c.tab=$root.Block.Tab.fromObject(t.tab)}if(t.chatMessage!=null){if(typeof t.chatMessage!="object")throw TypeError(".Block.chatMessage: object expected");c.chatMessage=$root.Block.ChatMessage.fromObject(t.chatMessage)}if(t.popover!=null){if(typeof t.popover!="object")throw TypeError(".Block.popover: object expected");c.popover=$root.Block.Popover.fromObject(t.popover)}if(t.dialog!=null){if(typeof t.dialog!="object")throw TypeError(".Block.dialog: object expected");c.dialog=$root.Block.Dialog.fromObject(t.dialog)}if(t.flexContainer!=null){if(typeof t.flexContainer!="object")throw TypeError(".Block.flexContainer: object expected");c.flexContainer=$root.Block.FlexContainer.fromObject(t.flexContainer)}if(t.allowEmpty!=null&&(c.allowEmpty=!!t.allowEmpty),t.id!=null&&(c.id=String(t.id)),t.height
18Config!=null){if(typeof t.heightConfig!="object")throw TypeError(".Block.heightConfig: object expected");c.heightConfig=$root.streamlit.HeightConfig.fromObject(t.heightConfig)}if(t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Block.widthConfig: object expected");c.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.allowEmpty=!1),t.vertical!=null&&t.hasOwnProperty("vertical")&&(p.vertical=$root.Block.Vertical.toObject(t.vertical,c),c.oneofs&&(p.type="vertical")),t.horizontal!=null&&t.hasOwnProperty("horizontal")&&(p.horizontal=$root.Block.Horizontal.toObject(t.horizontal,c),c.oneofs&&(p.type="horizontal")),t.column!=null&&t.hasOwnProperty("column")&&(p.column=$root.Block.Column.toObject(t.column,c),c.oneofs&&(p.type="column")),t.expandable!=null&&t.hasOwnProperty("expandable")&&(p.expandable=$root.Block.Expandable.toObject(t.expandable,c),c.oneofs&&(p.type="expandable")),t.form!=null&&t.hasOwnProperty("form")&&(p.form=$root.Block.Form.toObject(t.form,c),c.oneofs&&(p.type="form")),t.tabContainer!=null&&t.hasOwnProperty("tabContainer")&&(p.tabContainer=$root.Block.TabContainer.toObject(t.tabContainer,c),c.oneofs&&(p.type="tabContainer")),t.tab!=null&&t.hasOwnProperty("tab")&&(p.tab=$root.Block.Tab.toObject(t.tab,c),c.oneofs&&(p.type="tab")),t.allowEmpty!=null&&t.hasOwnProperty("allowEmpty")&&(p.allowEmpty=t.allowEmpty),t.chatMessage!=null&&t.hasOwnProperty("chatMessage")&&(p.chatMessage=$root.Block.ChatMessage.toObject(t.chatMessage,c),c.oneofs&&(p.type="chatMessage")),t.popover!=null&&t.hasOwnProperty("popover")&&(p.popover=$root.Block.Popover.toObject(t.popover,c),c.oneofs&&(p.type="popover")),t.dialog!=null&&t.hasOwnProperty("dialog")&&(p.dialog=$root.Block.Dialog.toObject(t.dialog,c),c.oneofs&&(p.type="dialog")),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id,c.oneofs&&(p._id="id")),t.flexContainer!=null&&t.hasOwnProperty("flexContainer")&&(p.flexContainer=$root.Block.FlexContainer.toObject(t.flexContainer,c),c.oneofs&&(p.type="flexContainer")),t.heightConfig!=null&&t.hasOwnProperty("heightConfig")&&(p.heightConfig=$root.streamlit.HeightConfig.toObject(t.heightConfig,c),c.oneofs&&(p._heightConfig="heightConfig")),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(p.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,c),c.oneofs&&(p._widthConfig="widthConfig")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Block"},n.Vertical=function(){function e(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}return e.prototype.border=!1,e.prototype.height=0,e.create=function(c){return new e(c)},e.encode=function(c,p){return p||(p=$Writer.create()),c.border!=null&&Object.hasOwnProperty.call(c,"border")&&p.uint32(8).bool(c.border),c.height!=null&&Object.hasOwnProperty.call(c,"height")&&p.uint32(16).uint32(c.height),p},e.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.Block.Vertical;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.border=c.bool();break}case 2:{g.height=c.uint32();break}default:c.skipType($&7);break}}return g},e.fromObject=function(c){if(c instanceof $root.Block.Vertical)return c;let p=new $root.Block.Vertical;return c.border!=null&&(p.border=!!c.border),c.height!=null&&(p.height=c.height>>>0),p},e.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.border=!1,h.height=0),c.border!=null&&c.hasOwnProperty("border")&&(h.border=c.border),c.height!=null&&c.hasOwnProperty("height")&&(h.height=c.height),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/Block.Vertical"},e}(),n.Horizontal=function(){function e(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}return e.prototype.gap="",e.create=function(c){return new e(c)},e.encode=function(c,p){return p||(p=$Writer.create()),c.gap!=null&&Object.hasOwnProperty.call(c,"gap")&&p.uint32(10).string(c.gap),p},e.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.Block.Horizontal;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.gap=c.string();break}default:c.skipType($&7);break}}return g},e.fromObject=function(c){if(c instanceof $root.Block.Horizontal)return c;let p=new $root.Block.Horizontal;return c.gap!=null&&(p.gap=String(c.gap)),p},e.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.gap=""),c.gap!=null&&c.hasOwnProperty("gap")&&(h.gap=c.gap),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/Block.Horizontal"},e}(),n.FlexContainer=function(){function e(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}return e.prototype.border=!1,e.prototype.gapConfig=null,e.prototype.scale=0,e.prototype.direction=0,e.prototype.wrap=!1,e.prototype.justify=0,e.prototype.align=0,e.create=function(c){return new e(c)},e.encode=function(c,p){return p||(p=$Writer.create()),c.border!=null&&Object.hasOwnProperty.call(c,"border")&&p.uint32(8).bool(c.border),c.gapConfig!=null&&Object.hasOwnProperty.call(c,"gapConfig")&&$root.streamlit.Ga
18pConfig.encode(c.gapConfig,p.uint32(18).fork()).ldelim(),c.scale!=null&&Object.hasOwnProperty.call(c,"scale")&&p.uint32(29).float(c.scale),c.direction!=null&&Object.hasOwnProperty.call(c,"direction")&&p.uint32(32).int32(c.direction),c.wrap!=null&&Object.hasOwnProperty.call(c,"wrap")&&p.uint32(40).bool(c.wrap),c.justify!=null&&Object.hasOwnProperty.call(c,"justify")&&p.uint32(56).int32(c.justify),c.align!=null&&Object.hasOwnProperty.call(c,"align")&&p.uint32(64).int32(c.align),p},e.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.Block.FlexContainer;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.border=c.bool();break}case 2:{g.gapConfig=$root.streamlit.GapConfig.decode(c,c.uint32());break}case 3:{g.scale=c.float();break}case 4:{g.direction=c.int32();break}case 5:{g.wrap=c.bool();break}case 7:{g.justify=c.int32();break}case 8:{g.align=c.int32();break}default:c.skipType($&7);break}}return g},e.fromObject=function(c){if(c instanceof $root.Block.FlexContainer)return c;let p=new $root.Block.FlexContainer;if(c.border!=null&&(p.border=!!c.border),c.gapConfig!=null){if(typeof c.gapConfig!="object")throw TypeError(".Block.FlexContainer.gapConfig: object expected");p.gapConfig=$root.streamlit.GapConfig.fromObject(c.gapConfig)}switch(c.scale!=null&&(p.scale=Number(c.scale)),c.direction){default:if(typeof c.direction=="number"){p.direction=c.direction;break}break;case"DIRECTION_UNDEFINED":case 0:p.direction=0;break;case"VERTICAL":case 1:p.direction=1;break;case"HORIZONTAL":case 2:p.direction=2;break}switch(c.wrap!=null&&(p.wrap=!!c.wrap),c.justify){default:if(typeof c.justify=="number"){p.justify=c.justify;break}break;case"JUSTIFY_UNDEFINED":case 0:p.justify=0;break;case"JUSTIFY_START":case 1:p.justify=1;break;case"JUSTIFY_END":case 2:p.justify=2;break;case"JUSTIFY_CENTER":case 3:p.justify=3;break;case"SPACE_BETWEEN":case 4:p.justify=4;break}switch(c.align){default:if(typeof c.align=="number"){p.align=c.align;break}break;case"ALIGN_UNDEFINED":case 0:p.align=0;break;case"ALIGN_START":case 1:p.align=1;break;case"ALIGN_END":case 2:p.align=2;break;case"ALIGN_CENTER":case 3:p.align=3;break;case"STRETCH":case 4:p.align=4;break}return p},e.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.border=!1,h.gapConfig=null,h.scale=0,h.direction=p.enums===String?"DIRECTION_UNDEFINED":0,h.wrap=!1,h.justify=p.enums===String?"JUSTIFY_UNDEFINED":0,h.align=p.enums===String?"ALIGN_UNDEFINED":0),c.border!=null&&c.hasOwnProperty("border")&&(h.border=c.border),c.gapConfig!=null&&c.hasOwnProperty("gapConfig")&&(h.gapConfig=$root.streamlit.GapConfig.toObject(c.gapConfig,p)),c.scale!=null&&c.hasOwnProperty("scale")&&(h.scale=p.json&&!isFinite(c.scale)?String(c.scale):c.scale),c.direction!=null&&c.hasOwnProperty("direction")&&(h.direction=p.enums===String?$root.Block.FlexContainer.Direction[c.direction]===void 0?c.direction:$root.Block.FlexContainer.Direction[c.direction]:c.direction),c.wrap!=null&&c.hasOwnProperty("wrap")&&(h.wrap=c.wrap),c.justify!=null&&c.hasOwnProperty("justify")&&(h.justify=p.enums===String?$root.Block.FlexContainer.Justify[c.justify]===void 0?c.justify:$root.Block.FlexContainer.Justify[c.justify]:c.justify),c.align!=null&&c.hasOwnProperty("align")&&(h.align=p.enums===String?$root.Block.FlexContainer.Align[c.align]===void 0?c.align:$root.Block.FlexContainer.Align[c.align]:c.align),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/Block.FlexContainer"},e.Direction=function(){const t={},c=Object.create(t);return c[t[0]="DIRECTION_UNDEFINED"]=0,c[t[1]="VERTICAL"]=1,c[t[2]="HORIZONTAL"]=2,c}(),e.Justify=function(){const t={},c=Object.create(t);return c[t[0]="JUSTIFY_UNDEFINED"]=0,c[t[1]="JUSTIFY_START"]=1,c[t[2]="JUSTIFY_END"]=2,c[t[3]="JUSTIFY_CENTER"]=3,c[t[4]="SPACE_BETWEEN"]=4,c}(),e.Align=function(){const t={},c=Object.create(t);return c[t[0]="ALIGN_UNDEFINED"]=0,c[t[1]="ALIGN_START"]=1,c[t[2]="ALIGN_END"]=2,c[t[3]="ALIGN_CENTER"]=3,c[t[4]="STRETCH"]=4,c}(),e}(),n.Column=function(){function e(c){if(c)for(let p=Object.keys(c),h=0;h<p.length;++h)c[p[h]]!=null&&(this[p[h]]=c[p[h]])}e.prototype.weight=0,e.prototype.gap="",e.prototype.verticalAlignment=0,e.prototype.showBorder=!1,e.prototype.gapConfig=null;let t;return Object.defineProperty(e.prototype,"_gapConfig",{get:$util.oneOfGetter(t=["gapConfig"]),set:$util.oneOfSetter(t)}),e.create=function(p){return new e(p)},e.encode=function(p,h){return h||(h=$Writer.create()),p.weight!=null&&Object.hasOwnProperty.call(p,"weight")&&h.uint32(9).double(p.weight),p.gap!=null&&Object.hasOwnProperty.call(p,"gap")&&h.uint32(18).string(p.gap),p.verticalAlignment!=null&&Object.hasOwnProperty.call(p,"verticalAlignment")&&h.uint32(24).int32(p.verticalAlignment),p.showBorder!=null&&Object.hasOwnProperty.call(p,"showBorder")&&h.uint32(32).bool(p.showBorder),p.gapConfig!=null&&Object.hasOwnProperty.call(p,"gapConfig")&&$root.streamlit.Ga
18pConfig.encode(p.gapConfig,h.uint32(42).fork()).ldelim(),h},e.decode=function(p,h,y){p instanceof $Reader||(p=$Reader.create(p));let g=h===void 0?p.len:p.pos+h,$=new $root.Block.Column;for(;p.pos<g;){let E=p.uint32();if(E===y)break;switch(E>>>3){case 1:{$.weight=p.double();break}case 2:{$.gap=p.string();break}case 3:{$.verticalAlignment=p.int32();break}case 4:{$.showBorder=p.bool();break}case 5:{$.gapConfig=$root.streamlit.GapConfig.decode(p,p.uint32());break}default:p.skipType(E&7);break}}return $},e.fromObject=function(p){if(p instanceof $root.Block.Column)return p;let h=new $root.Block.Column;switch(p.weight!=null&&(h.weight=Number(p.weight)),p.gap!=null&&(h.gap=String(p.gap)),p.verticalAlignment){default:if(typeof p.verticalAlignment=="number"){h.verticalAlignment=p.verticalAlignment;break}break;case"TOP":case 0:h.verticalAlignment=0;break;case"CENTER":case 1:h.verticalAlignment=1;break;case"BOTTOM":case 2:h.verticalAlignment=2;break}if(p.showBorder!=null&&(h.showBorder=!!p.showBorder),p.gapConfig!=null){if(typeof p.gapConfig!="object")throw TypeError(".Block.Column.gapConfig: object expected");h.gapConfig=$root.streamlit.GapConfig.fromObject(p.gapConfig)}return h},e.toObject=function(p,h){h||(h={});let y={};return h.defaults&&(y.weight=0,y.gap="",y.verticalAlignment=h.enums===String?"TOP":0,y.showBorder=!1),p.weight!=null&&p.hasOwnProperty("weight")&&(y.weight=h.json&&!isFinite(p.weight)?String(p.weight):p.weight),p.gap!=null&&p.hasOwnProperty("gap")&&(y.gap=p.gap),p.verticalAlignment!=null&&p.hasOwnProperty("verticalAlignment")&&(y.verticalAlignment=h.enums===String?$root.Block.Column.VerticalAlignment[p.verticalAlignment]===void 0?p.verticalAlignment:$root.Block.Column.VerticalAlignment[p.verticalAlignment]:p.verticalAlignment),p.showBorder!=null&&p.hasOwnProperty("showBorder")&&(y.showBorder=p.showBorder),p.gapConfig!=null&&p.hasOwnProperty("gapConfig")&&(y.gapConfig=$root.streamlit.GapConfig.toObject(p.gapConfig,h),h.oneofs&&(y._gapConfig="gapConfig")),y},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/Block.Column"},e.VerticalAlignment=function(){const c={},p=Object.create(c);return p[c[0]="TOP"]=0,p[c[1]="CENTER"]=1,p[c[2]="BOTTOM"]=2,p}(),e}(),n.Expandable=function(){function e(c){if(c)for(let p=Object.keys(c),h=0;h<p.length;++h)c[p[h]]!=null&&(this[p[h]]=c[p[h]])}e.prototype.label="",e.prototype.expanded=null,e.prototype.icon="";let t;return Object.defineProperty(e.prototype,"_expanded",{get:$util.oneOfGetter(t=["expanded"]),set:$util.oneOfSetter(t)}),e.create=function(p){return new e(p)},e.encode=function(p,h){return h||(h=$Writer.create()),p.label!=null&&Object.hasOwnProperty.call(p,"label")&&h.uint32(10).string(p.label),p.expanded!=null&&Object.hasOwnProperty.call(p,"expanded")&&h.uint32(16).bool(p.expanded),p.icon!=null&&Object.hasOwnProperty.call(p,"icon")&&h.uint32(26).string(p.icon),h},e.decode=function(p,h,y){p instanceof $Reader||(p=$Reader.create(p));let g=h===void 0?p.len:p.pos+h,$=new $root.Block.Expandable;for(;p.pos<g;){let E=p.uint32();if(E===y)break;switch(E>>>3){case 1:{$.label=p.string();break}case 2:{$.expanded=p.bool();break}case 3:{$.icon=p.string();break}default:p.skipType(E&7);break}}return $},e.fromObject=function(p){if(p instanceof $root.Block.Expandable)return p;let h=new $root.Block.Expandable;return p.label!=null&&(h.label=String(p.label)),p.expanded!=null&&(h.expanded=!!p.expanded),p.icon!=null&&(h.icon=String(p.icon)),h},e.toObject=function(p,h){h||(h={});let y={};return h.defaults&&(y.label="",y.icon=""),p.label!=null&&p.hasOwnProperty("label")&&(y.label=p.label),p.expanded!=null&&p.hasOwnProperty("expanded")&&(y.expanded=p.expanded,h.oneofs&&(y._expanded="expanded")),p.icon!=null&&p.hasOwnProperty("icon")&&(y.icon=p.icon),y},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/Block.Expandable"},e}(),n.Dialog=function(){function e(c){if(c)for(let p=Object.keys(c),h=0;h<p.length;++h)c[p[h]]!=null&&(this[p[h]]=c[p[h]])}e.prototype.title="",e.prototype.dismissible=!1,e.prototype.width=0,e.prototype.isOpen=null,e.prototype.id="";let t;return Object.defineProperty(e.prototype,"_isOpen",{get:$util.oneOfGetter(t=["isOpen"]),set:$util.oneOfSetter(t)}),e.create=function(p){return new e(p)},e.encode=function(p,h){return h||(h=$Writer.create()),p.title!=null&&Object.hasOwnProperty.call(p,"title")&&h.uint32(10).string(p.title),p.dismissible!=null&&Object.hasOwnProperty.call(p,"dismissible")&&h.uint32(16).bool(p.dismissible),p.width!=null&&Object.hasOwnProperty.call(p,"width")&&h.uint32(24).int32(p.width),p.isOpen!=null&&Object.hasOwnProperty.call(p,"isOpen")&&h.uint32(32).bool(p.isOpen),p.id!=null&&Object.hasOwnProperty.call(p,"id")&&h.uint32(42).string(p.id),h},e.decode=function(p,h,y){p instanceof $Reader||(p=$Reader.create(p));let g=h===void 0?p.len:p.pos+h,$=new $root.Block.Dialog;
18for(;p.pos<g;){let E=p.uint32();if(E===y)break;switch(E>>>3){case 1:{$.title=p.string();break}case 2:{$.dismissible=p.bool();break}case 3:{$.width=p.int32();break}case 4:{$.isOpen=p.bool();break}case 5:{$.id=p.string();break}default:p.skipType(E&7);break}}return $},e.fromObject=function(p){if(p instanceof $root.Block.Dialog)return p;let h=new $root.Block.Dialog;switch(p.title!=null&&(h.title=String(p.title)),p.dismissible!=null&&(h.dismissible=!!p.dismissible),p.width){default:if(typeof p.width=="number"){h.width=p.width;break}break;case"SMALL":case 0:h.width=0;break;case"LARGE":case 1:h.width=1;break;case"MEDIUM":case 2:h.width=2;break}return p.isOpen!=null&&(h.isOpen=!!p.isOpen),p.id!=null&&(h.id=String(p.id)),h},e.toObject=function(p,h){h||(h={});let y={};return h.defaults&&(y.title="",y.dismissible=!1,y.width=h.enums===String?"SMALL":0,y.id=""),p.title!=null&&p.hasOwnProperty("title")&&(y.title=p.title),p.dismissible!=null&&p.hasOwnProperty("dismissible")&&(y.dismissible=p.dismissible),p.width!=null&&p.hasOwnProperty("width")&&(y.width=h.enums===String?$root.Block.Dialog.DialogWidth[p.width]===void 0?p.width:$root.Block.Dialog.DialogWidth[p.width]:p.width),p.isOpen!=null&&p.hasOwnProperty("isOpen")&&(y.isOpen=p.isOpen,h.oneofs&&(y._isOpen="isOpen")),p.id!=null&&p.hasOwnProperty("id")&&(y.id=p.id),y},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/Block.Dialog"},e.DialogWidth=function(){const c={},p=Object.create(c);return p[c[0]="SMALL"]=0,p[c[1]="LARGE"]=1,p[c[2]="MEDIUM"]=2,p}(),e}(),n.Form=function(){function e(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}return e.prototype.formId="",e.prototype.clearOnSubmit=!1,e.prototype.border=!1,e.prototype.enterToSubmit=!1,e.create=function(c){return new e(c)},e.encode=function(c,p){return p||(p=$Writer.create()),c.formId!=null&&Object.hasOwnProperty.call(c,"formId")&&p.uint32(10).string(c.formId),c.clearOnSubmit!=null&&Object.hasOwnProperty.call(c,"clearOnSubmit")&&p.uint32(16).bool(c.clearOnSubmit),c.border!=null&&Object.hasOwnProperty.call(c,"border")&&p.uint32(24).bool(c.border),c.enterToSubmit!=null&&Object.hasOwnProperty.call(c,"enterToSubmit")&&p.uint32(32).bool(c.enterToSubmit),p},e.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.Block.Form;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.formId=c.string();break}case 2:{g.clearOnSubmit=c.bool();break}case 3:{g.border=c.bool();break}case 4:{g.enterToSubmit=c.bool();break}default:c.skipType($&7);break}}return g},e.fromObject=function(c){if(c instanceof $root.Block.Form)return c;let p=new $root.Block.Form;return c.formId!=null&&(p.formId=String(c.formId)),c.clearOnSubmit!=null&&(p.clearOnSubmit=!!c.clearOnSubmit),c.border!=null&&(p.border=!!c.border),c.enterToSubmit!=null&&(p.enterToSubmit=!!c.enterToSubmit),p},e.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.formId="",h.clearOnSubmit=!1,h.border=!1,h.enterToSubmit=!1),c.formId!=null&&c.hasOwnProperty("formId")&&(h.formId=c.formId),c.clearOnSubmit!=null&&c.hasOwnProperty("clearOnSubmit")&&(h.clearOnSubmit=c.clearOnSubmit),c.border!=null&&c.hasOwnProperty("border")&&(h.border=c.border),c.enterToSubmit!=null&&c.hasOwnProperty("enterToSubmit")&&(h.enterToSubmit=c.enterToSubmit),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/Block.Form"},e}(),n.TabContainer=function(){function e(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}return e.prototype.defaultTabIndex=0,e.create=function(c){return new e(c)},e.encode=function(c,p){return p||(p=$Writer.create()),c.defaultTabIndex!=null&&Object.hasOwnProperty.call(c,"defaultTabIndex")&&p.uint32(8).int32(c.defaultTabIndex),p},e.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.Block.TabContainer;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.defaultTabIndex=c.int32();break}default:c.skipType($&7);break}}return g},e.fromObject=function(c){if(c instanceof $root.Block.TabContainer)return c;let p=new $root.Block.TabContainer;return c.defaultTabIndex!=null&&(p.defaultTabIndex=c.defaultTabIndex|0),p},e.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.defaultTabIndex=0),c.defaultTabIndex!=null&&c.hasOwnProperty("defaultTabIndex")&&(h.defaultTabIndex=c.defaultTabIndex),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/Block.TabContainer"},e}(),n.Tab=function(){function e(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}return e.prototype.label="",e.create=function(c){return new e(c)},e.encode=function(c,p){return p||(p=$Writer.create()),c.label!=null&&Object.hasOwnProperty.call(c,"label")&&p.uint32(10).string(c.label),p},e.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.Block.Tab;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.label=c.string();break}default:c.skipType($&7);break}}return g},e.fromObject=function(c){if(c instanceof $root.Block.Tab)return c;let p=new $root.Block.Tab;return c.label!=null&&(p.label=String(c.label)),p},e.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.label=""),c.label!=null&&c.hasOwnProperty("label")&&(h.label=c.label),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/Block.Tab"},e}(),n.Popover=function(){function e(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}return e.prototype.label="",e.prototype.useContainerWidth=!1,e.prototype.help="",e.prototype.disabled=!1,e.prototype.icon="",e.prototype.type="",e.create=function(c){return new e(c)},e.encode=function(c,p){return p||(p=$Writer.create()),c.label!=null&&Object.hasOwnProperty.call(c,"label")&&p.uint32(10).string(c.label),c.useContainerWidth!=null&&Object.hasOwnProperty.call(c,"useContainerWidth")&&p.uint32(16).bool(c.useContainerWidth),c.help!=null&&Object.hasOwnProperty.call(c,"help")&&p.uint32(26).string(c.help),c.disabled!=null&&Object.hasOwnProperty.call(c,"disabled")&&p.uint32(32).bool(c.disabled),c.icon!=null&&Object.hasOwnProperty.call(c,"icon")&&p.uint32(42).string(c.icon),c.type!=null&&Object.hasOwnProperty.call(c,"type")&&p.uint32(50).string(c.type),p},e.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.Block.Popover;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.label=c.string();break}case 2:{g.useContainerWidth=c.bool();break}case 3:{g.help=c.string();break}case 4:{g.disabled=c.bool();break}case 5:{g.icon=c.string();break}case 6:{g.type=c.string();break}default:c.skipType($&7);break}}return g},e.fromObject=function(c){if(c instanceof $root.Block.Popover)return c;let p=new $root.Block.Popover;return c.label!=null&&(p.label=String(c.label)),c.useContainerWidth!=null&&(p.useContainerWidth=!!c.useContainerWidth),c.help!=null&&(p.help=String(c.help)),c.disabled!=null&&(p.disabled=!!c.disabled),c.icon!=null&&(p.icon=String(c.icon)),c.type!=null&&(p.type=String(c.type)),p},e.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.label="",h.useContainerWidth=!1,h.help="",h.disabled=!1,h.icon="",h.type=""),c.label!=null&&c.hasOwnProperty("label")&&(h.label=c.label),c.useContainerWidth!=null&&c.hasOwnProperty("useContainerWidth")&&(h.useContainerWidth=c.useContainerWidth),c.help!=null&&c.hasOwnProperty("help")&&(h.help=c.help),c.disabled!=null&&c.hasOwnProperty("disabled")&&(h.disabled=c.disabled),c.icon!=null&&c.hasOwnProperty("icon")&&(h.icon=c.icon),c.type!=null&&c.hasOwnProperty("type")&&(h.type=c.type),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/Block.Popover"},e}(),n.ChatMessage=function(){function e(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}return e.prototype.name="",e.prototype.avatar="",e.prototype.avatarType=0,e.create=function(c){return new e(c)},e.encode=function(c,p){return p||(p=$Writer.create()),c.name!=null&&Object.hasOwnProperty.call(c,"name")&&p.uint32(10).string(c.name),c.avatar!=null&&Object.hasOwnProperty.call(c,"avatar")&&p.uint32(18).string(c.avatar),c.avatarType!=null&&Object.hasOwnProperty.call(c,"avatarType")&&p.uint32(24).int32(c.avatarType),p},e.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.Block.ChatMessage;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.name=c.string();break}case 2:{g.avatar=c.string();break}case 3:{g.avatarType=c.int32();break}default:c.skipType($&7);break}}return g},e.fromObject=function(c){if(c instanceof $root.Block.ChatMessage)return c;let p=new $root.Block.ChatMessage;switch(c.name!=null&&(p.name=String(c.name)),c.avatar!=null&&(p.avatar=String(c.avatar)),c.avatarType){default:if(typeof c.avatarType=="number"){p.avatarType=c.avatarType;break}break;case"IMAGE":case 0:p.avatarType=0;break;case"EMOJI":case 1:p.avatarType=1;break;case"ICON":case 2:p.avatarType=2;break}return p},e.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.name="",h.avatar="",h.avatarType=p.enums===String?"IMAGE":0),c.name!=null&&c.hasOwnProperty("name")&&(h.name=c.name),c.avatar!=null&&c.hasOwnProperty("avatar")&&(h.avatar=c.avatar),c.avatarType!=null&&c.hasOwnProperty("avatarType")&&(h.avatarType=p.enums===String?$root.Block.ChatMessage.AvatarType[c.avatarType]===void 0?c.avatarType:$root.Block.ChatMessage.AvatarType[c.avatarType]:c.avatarType),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/Block.ChatMessage"},e.AvatarType=function(){const t={}
18,c=Object.create(t);return c[t[0]="IMAGE"]=0,c[t[1]="EMOJI"]=1,c[t[2]="ICON"]=2,c}(),e}(),n})();$root.BokehChart=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.figure="",n.prototype.useContainerWidth=!1,n.prototype.elementId="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.figure!=null&&Object.hasOwnProperty.call(e,"figure")&&t.uint32(10).string(e.figure),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(16).bool(e.useContainerWidth),e.elementId!=null&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(26).string(e.elementId),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.BokehChart;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.figure=e.string();break}case 2:{h.useContainerWidth=e.bool();break}case 3:{h.elementId=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.BokehChart)return e;let t=new $root.BokehChart;return e.figure!=null&&(t.figure=String(e.figure)),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.elementId!=null&&(t.elementId=String(e.elementId)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.figure="",c.useContainerWidth=!1,c.elementId=""),e.figure!=null&&e.hasOwnProperty("figure")&&(c.figure=e.figure),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(c.useContainerWidth=e.useContainerWidth),e.elementId!=null&&e.hasOwnProperty("elementId")&&(c.elementId=e.elementId),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/BokehChart"},n})();$root.Button=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.isFormSubmitter=!1,n.prototype.type="",n.prototype.disabled=!1,n.prototype.useContainerWidth=!1,n.prototype.icon="",n.prototype.shortcut="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.isFormSubmitter!=null&&Object.hasOwnProperty.call(e,"isFormSubmitter")&&t.uint32(48).bool(e.isFormSubmitter),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(58).string(e.type),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(72).bool(e.useContainerWidth),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(82).string(e.icon),e.shortcut!=null&&Object.hasOwnProperty.call(e,"shortcut")&&t.uint32(90).string(e.shortcut),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Button;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.bool();break}case 4:{h.help=e.string();break}case 5:{h.formId=e.string();break}case 6:{h.isFormSubmitter=e.bool();break}case 7:{h.type=e.string();break}case 8:{h.disabled=e.bool();break}case 9:{h.useContainerWidth=e.bool();break}case 10:{h.icon=e.string();break}case 11:{h.shortcut=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Button)return e;let t=new $root.Button;return e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=!!e.default),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.isFormSubmitter!=null&&(t.isFormSubmitter=!!e.isFormSubmitter),e.type!=null&&(t.type=String(e.type)),e.disabled!=null&&(t.disabled=!!e.disabled),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.icon!=null&&(t.icon=String(e.icon)),e.shortcut!=null&&(t.shortcut=String(e.shortcut)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.id="",c.label="",c.default=!1,c.help="",c.formId="",c.isFormSubmitter=!1,c.type="",c.disabled=!1,c.useContainerWidth=!1,c.icon="",c.shortcut=""),e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(c.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(c.formId=e.formId),e.isFormSubmitter!=null&&e.hasOwnProperty("isFormSubmitter")&&(c.isFormSubmitter=e.isFormSubmitter),e.type!=null&&e.hasOwnProperty("type")&&(c.type=e.type),e.disabled!=null&&e.hasOwnProperty("disabled")&&(c.disabled=e.disabled),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(c.useContainerWidth=e.useContainerWidth),e.icon!=null&&e.hasOwnProperty("icon")&&(c.icon=e.icon),e.shortcut!=null&&e.hasOwnProperty("shortcut")&&(c.shortcut=e.shortcut),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Button"},n})();const ButtonGroup$1=$root.ButtonGroup=(()=>{function n(e){if(this.options=[],this.default=[],this.value=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.options=$util.emptyArray,n.prototype.default=$util.emptyArray,n.prototype.disabled=!1,n.prototype.clickMode=0,n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.selectionVisualization=0,n.prototype.style=0,n.prototype.label="",n.prototype.labelVisibility=null,n.prototype.help=null;let o;return Object.defineProperty(n.prototype,"_help",{get:$util.oneOfGetter(o=["help"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){if(c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.options!=null&&t.options.length)for(let p=0;p<t.options.length;++p)$root.ButtonGroup.Option.encode(t.options[p],c.uint32(18).fork()).ldelim();if(t.default!=null&&t.default.length){c.uint32(26).fork();for(let p=0;p<t.default.length;++p)c.uint32(t.default[p]);c.ldelim()}if(t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(32).bool(t.disabled),t.clickMode!=null&&Object.hasOwnProperty.call(t,"clickMode")&&c.uint32(40).int32(t.clickMode),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(50).string(t.formId),t.value!=null&&t.value.length){c.uint32(58).fork();for(let p=0;p<t.value.length;++p)c.uint32(t.value[p]);c.ldelim()}return t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&c.uint32(64).bool(t.setValue),t.selectionVisualization!=null&&Object.hasOwnProperty.call(t,"selectionVisualization")&&c.uint32(72).int32(t.selectionVisualization),t.style!=null&&Object.hasOwnProperty.call(t,"style")&&c.uint32(80).int32(t.style),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(90).string(t.label),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,c.uint32(98).fork()).ldelim(),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(106).string(t.help),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.ButtonGroup;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.options&&y.options.length||(y.options=[]),y.options.push($root.ButtonGroup.Option.decode(t,t.uint32()));break}case 3:{if(y.default&&y.default.length||(y.default=[]),(g&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)y.default.push(t.uint32())}else y.default.push(t.uint32());break}case 4:{y.disabled=t.bool();break}case 5:{y.clickMode=t.int32();break}case 6:{y.formId=t.string();break}case 7:{if(y.value&&y.value.length||(y.value=[]),(g&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)y.value.push(t.uint32())}else y.value.push(t.uint32());break}case 8:{y.setValue=t.bool();break}case 9:{y.selectionVisualization=t.int32();break}case 10:{y.style=t.int32();break}case 11:{y.label=t.string();break}case 12:{y.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 13:{y.help=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.ButtonGroup)return t;let c=new $root.ButtonGroup;if(t.id!=null&&(c.id=String(t.id)),t.options){if(!Array.isArray(t.options))throw TypeError(".ButtonGroup.options: array expected");c.options=[];for(let p=0;p<t.options.length;++p){if(typeof t.options[p]!="object")throw TypeError(".ButtonGroup.options: object expected");c.options[p]=$root.ButtonGroup.Option.fromObject(t.options[p])}}if(t.default){if(!Array.isArray(t.default))throw TypeError(".ButtonGroup.default: array expected");c.default=[];for(let p=0;p<t.default.length;++p)c.default[p]=t.default[p]>>>0}switch(t.disabled!=null&&(c.disabled=!!t.disabled),t.clickMode){default:if(typeof t.clickMode=="number"){c.clickMode=t.clickMode;break}break;case"SINGLE_SELECT":case 0:c.clickMode=0;break;case"MULTI_SELECT":case 1:c.clickMode=1;break}if(t.formId!=null&&(c.formId=String(t.formId)),t.value){if(!Array.isArray(t.value))throw TypeError(".ButtonGroup.value: array expected");c.value=[];for(let p=0;p<t.value.length;++p)c.value[p]=t.value[p]>>>0}switch(t.setValue!=null&&(c.setValue=!!t.setValue),t.selectionVisualization){default:if(typeof t.selectionVisualization=="number"){c.selectionVisualization=t.selectionVisualization;break}break;case"ONLY_SELECTED":case 0:c.selectionVisualization=0;break;case"ALL_UP_TO_SELECTED":case 1:c.selectionVisualization=1;break}switch(t.style){default:if(typeof t.style=="number"){c.style=t.style;break}break;case"SEGMENTED_CONTROL":case 0:c.style=0;break;case"PILLS":case 1:c.style=1;break;case"BORDERLESS":case 2:c.style=2;break}if(t.label!=null&&(c.label=String(t.label)),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".ButtonGroup.labelVisibility: object expected");c.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.help!=null&&(c.help=String(t.help)),c},n.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.options=[],p.default=[],p.value=[]),c.defaults&&(p.id="",p.disabled=!1,p.clickMode=c.enums===String?"SINGLE_SELECT":0,p.formId="",p.setValue=!1,p.selectionVisualization=c.enums===String?"ONLY_SELECTED":0,p.style=c.enums===String?"SEGMENTED_CONTROL":0,p.label="",p.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.options&&t.options.length){p.options=[];for(let h=0;h<t.options.length;++h)p.options[h]=$root.ButtonGroup.Option.toObject(t.options[h],c)}if(t.default&&t.default.length){p.default=[];for(let h=0;h<t.default.length;++h)p.default[h]=t.default[h]}if(t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.clickMode!=null&&t.hasOwnProperty("clickMode")&&(p.clickMode=c.enums===String?$root.ButtonGroup.ClickMode[t.clickMode]===void 0?t.clickMode:$root.ButtonGroup.ClickMode[t.clickMode]:t.clickMode),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.value&&t.value.length){p.value=[];for(let h=0;h<t.value.length;++h)p.value[h]=t.value[h]}return t.setValue!=null&&t.hasOwnProperty("setValue")&&(p.setValue=t.setValue),t.selectionVisualization!=null&&t.hasOwnProperty("selectionVisualization")&&(p.selectionVisualization=c.enums===String?$root.ButtonGroup.SelectionVisualization[t.selectionVisualization]===void 0?t.selectionVisualization:$root.ButtonGroup.SelectionVisualization[t.selectionVisualization]:t.selectionVisualization),t.style!=null&&t.hasOwnProperty("style")&&(p.style=c.enums===String?$root.ButtonGroup.Style[t.style]===void 0?t.style:$root.ButtonGroup.Style[t.style]:t.style),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(p.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,c)),t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help,c.oneofs&&(p._help="help")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ButtonGroup"},n.ClickMode=function(){const e={},t=Object.create(e);return t[e[0]="SINGLE_SELECT"]=0,t[e[1]="MULTI_SELECT"]=1,t}(),n.Option=function(){function e(c){if(c)for(let p=Object.keys(c),h=0;h<p.length;++h)c[p[h]]!=null&&(this[p[h]]=c[p[h]])}e.prototype.content="",e.prototype.selectedContent=null,e.prototype.contentIcon=null,e.prototype.selectedContentIcon=null;let t;return Object.defineProperty(e.prototype,"_selectedContent",{get:$util.oneOfGetter(t=["selectedContent"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_contentIcon",{get:$util.oneOfGetter(t=["contentIcon"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_selectedContentIcon",{get:$util.oneOfGetter(t=["selectedContentIcon"]),set:$util.oneOfSetter(t)}),e.create=function(p){return new e(p)},e.encode=function(p,h){return h||(h=$Writer.create()),p.content!=null&&Object.hasOwnProperty.call(p,"content")&&h.uint32(10).string(p.content),p.selectedContent!=null&&Object.hasOwnProperty.call(p,"selectedContent")&&h.uint32(18).string(p.selectedContent),p.contentIcon!=null&&Object.hasOwnProperty.call(p,"contentIcon")&&h.uint32(26).string(p.contentIcon),p.selectedContentIcon!=null&&Object.hasOwnProperty.call(p,"selectedContentIcon")&&h.uint32(34).string(p.selectedContentIcon),h},e.decode=function(p,h,y){p instanceof $Reader||(p=$Reader.create(p));let g=h===void 0?p.len:p.pos+h,$=new $root.ButtonGroup.Option;for(;p.pos<g;){let E=p.uint32();if(E===y)break;switch(E>>>3){case 1:{$.content=p.string();break}case 2:{$.selectedContent=p.string();break}case 3:{$.contentIcon=p.string();break}case 4:{$.selectedContentIcon=p.string();break}default:p.skipType(E&7);break}}return $},e.fromObject=function(p){if(p instanceof $root.ButtonGroup.Option)return p;let h=new $root.ButtonGroup.Option;return p.content!=null&&(h.content=String(p.content)),p.selectedContent!=null&&(h.selectedContent=String(p.selectedContent)),p.contentIcon!=null&&(h.contentIcon=String(p.contentIcon)),p.selectedContentIcon!=null&&(h.selectedContentIcon=String(p.selectedContentIcon)),h},e.toObject=function(p,h){h||(h={});let y={};return h.defaults&&(y.content=""),p.content!=null&&p.hasOwnProperty("content")&&(y.content=p.content),p.selectedContent!=null&&p.hasOwnProperty("selectedContent")&&(y.selectedContent=p.selectedContent,h.oneofs&&(y._selectedContent="selectedContent")),p.contentIcon!=null&&p.hasOwnProperty("contentIcon")&&(y.contentIcon=p.contentIcon,h.oneofs&&(y._contentIcon="contentIcon")),p.selectedContentIcon!=null&&p.hasOwnProperty("selectedContentIcon")&&(y.selectedContentIcon=p.selectedContentIcon,h.oneofs&&(y._selectedContentIcon="selectedContentIcon")),y},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/ButtonGroup.Option"},e}(),n.SelectionVisualization=function(){const e={},t=Object.create(e);return t[e[0]="ONLY_SELECTED"]=0,t[e[1]="ALL_UP_TO_SELECTED"]=1,t}(),n.Style=function(){const e={},t=Object.create(e);return t[e[0]="SEGMENTED_CONTROL"]=0,t[e[1]="PILLS"]=1,t[e[2]="BORDERLESS"]=2,t}(),n})();$root.CameraInput=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(26).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(34).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(40).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(50).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.CameraInput;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.help=e.string();break}case 4:{h.formId=e.string();break}case 5:{h.disabled=e.bool();break}case 6:{h.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.CameraInput)return e;let t=new $root.CameraInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".CameraInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.id="",c.label="",c.help="",c.formId="",c.disabled=!1,c.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(c.formId=e.formId),e.disabled!=null&&e.hasOwnProperty("disabled")&&(c.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(c.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/CameraInput"},n})();const ChatInput$1=$root.ChatInput=(()=>{function n(e){if(this.fileType=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.placeholder="",n.prototype.maxChars=0,n.prototype.disabled=!1,n.prototype.value="",n.prototype.setValue=!1,n.prototype.default="",n.prototype.position=0,n.prototype.acceptFile=0,n.prototype.fileType=$util.emptyArray,n.prototype.maxUploadSizeMb=0,n.prototype.acceptAudio=!1,n.prototype.audioSampleRate=null;let o;return Object.defineProperty(n.prototype,"_audioSampleRate",{get:$util.oneOfGetter(o=["audioSampleRate"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){if(c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&c.uint32(18).string(t.placeholder),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&c.uint32(24).uint32(t.maxChars),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(32).bool(t.disabled),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&c.uint32(42).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&c.uint32(48).bool(t.setValue),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&c.uint32(58).string(t.default),t.position!=null&&Object.hasOwnProperty.call(t,"position")&&c.uint32(64).int32(t.position),t.acceptFile!=null&&Object.hasOwnProperty.call(t,"acceptFile")&&c.uint32(72).int32(t.acceptFile),t.fileType!=null&&t.fileType.length)for(let p=0;p<t.fileType.length;++p)c.uint32(82).string(t.fileType[p]);return t.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(t,"maxUploadSizeMb")&&c.uint32(88).int32(t.maxUploadSizeMb),t.acceptAudio!=null&&Object.hasOwnProperty.call(t,"acceptAudio")&&c.uint32(96).bool(t.acceptAudio),t.audioSampleRate!=null&&Object.hasOwnProperty.call(t,"audioSampleRate")&&c.uint32(104).int32(t.audioSampleRate),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.ChatInput;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.placeholder=t.string();break}case 3:{y.maxChars=t.uint32();break}case 4:{y.disabled=t.bool();break}case 5:{y.value=t.string();break}case 6:{y.setValue=t.bool();break}case 7:{y.default=t.string();break}case 8:{y.position=t.int32();break}case 9:{y.acceptFile=t.int32();break}case 10:{y.fileType&&y.fileType.length||(y.fileType=[]),y.fileType.push(t.string());break}case 11:{y.maxUploadSizeMb=t.int32();break}case 12:{y.acceptAudio=t.bool();break}case 13:{y.audioSampleRate=t.int32();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.ChatInput)return t;let c=new $root.ChatInput;switch(t.id!=null&&(c.id=String(t.id)),t.placeholder!=null&&(c.placeholder=String(t.placeholder)),t.maxChars!=null&&(c.maxChars=t.maxChars>>>0),t.disabled!=null&&(c.disabled=!!t.disabled),t.value!=null&&(c.value=String(t.value)),t.setValue!=null&&(c.setValue=!!t.setValue),t.default!=null&&(c.default=String(t.default)),t.position){default:if(typeof t.position=="number"){c.position=t.position;break}break;case"BOTTOM":case 0:c.position=0;break}switch(t.acceptFile){default:if(typeof t.acceptFile=="number"){c.acceptFile=t.acceptFile;break}break;case"NONE":case 0:c.acceptFile=0;break;case"SINGLE":case 1:c.acceptFile=1;break;case"MULTIPLE":case 2:c.acceptFile=2;break;case"DIRECTORY":case 3:c.acceptFile=3;break}if(t.fileType){if(!Array.isArray(t.fileType))throw TypeError(".ChatInput.fileType: array expected");c.fileType=[];for(let p=0;p<t.fileType.length;++p)c.fileType[p]=String(t.fileType[p])}return t.maxUploadSizeMb!=null&&(c.maxUploadSizeMb=t.maxUploadSizeMb|0),t.acceptAudio!=null&&(c.acceptAudio=!!t.acceptAudio),t.audioSampleRate!=null&&(c.audioSampleRate=t.audioSampleRate|0),c},n.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.fileType=[]),c.defaults&&(p.id="",p.placeholder="",p.maxChars=0,p.disabled=!1,p.value="",p.setValue=!1,p.default="",p.position=c.enums===String?"BOTTOM":0,p.acceptFile=c.enums===String?"NONE":0,p.maxUploadSizeMb=0,p.acceptAudio=!1),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(p.placeholder=t.placeholder),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(p.maxChars=t.maxChars),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.value!=null&&t.hasOwnProperty("value")&&(p.value=t.value),t.setValue!=null&&t.hasOwnProperty("setValue")&&(p.setValue=t.setValue),t.default!=null&&t.hasOwnProperty("default")&&(p.default=t.default),t.position!=null&&t.hasOwnProperty("position")&&(p.position=c.enums===String?$root.ChatInput.Position[t.position]===void 0?t.position:$root.ChatInput.Position[t.position]:t.position),t.acceptFile!=null&&t.hasOwnProperty("acceptFile")&&(p.acceptFile=c.enums===String?$root.ChatInput.AcceptFile[t.acceptFile]===void 0?t.acceptFile:$root.ChatInput.AcceptFile[t.acceptFile]:t.acceptFile),t.fileType&&t.fileType.length){p.fileType=[];for(let h=0;h<t.fileType.length;++h)p.fileType[h]=t.fileType[h]}return t.maxUploadSizeMb!=null&&t.hasOwnProperty("maxUploadSizeMb")&&(p.maxUploadSizeMb=t.maxUploadSizeMb),t.acceptAudio!=null&&t.hasOwnProperty("acceptAudio")&&(p.acceptAudio=t.acceptAudio),t.audioSampleRate!=null&&t.hasOwnProperty("audioSampleRate")&&(p.audioSampleRate=t.audioSampleRate,c.oneofs&&(p._audioSampleRate="audioSampleRate")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ChatInput"},n.Position=function(){const e={},t=Object.create(e);return t[e[0]="BOTTOM"]=0,t}(),n.AcceptFile=function(){const e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="SINGLE"]=1,t[e[2]="MULTIPLE"]=2,t[e[3]="DIRECTORY"]=3,t}(),n})(),Checkbox$1=$root.Checkbox=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.value=!1,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.type=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(48).bool(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(80).int32(e.type),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Checkbox;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.bool();break}case 4:{h.help=e.string();break}case 5:{h.formId=e.string();break}case 6:{h.value=e.bool();break}case 7:{h.setValue=e.bool();break}case 8:{h.disabled=e.bool();break}case 9:{h.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 10:{h.type=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Checkbox)return e;let t=new $root.Checkbox;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=!!e.default),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value!=null&&(t.value=!!e.value),e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Checkbox.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}switch(e.type){default:if(typeof e.type=="number"){t.type=e.type;break}break;case"DEFAULT":case 0:t.type=0;break;case"TOGGLE":case 1:t.type=1;break}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.id="",c.label="",c.default=!1,c.help="",c.formId="",c.value=!1,c.setValue=!1,c.disabled=!1,c.labelVisibility=null,c.type=t.enums===String?"DEFAULT":0),e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(c.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(c.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(c.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(c.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(c.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(c.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.type!=null&&e.hasOwnProperty("type")&&(c.type=t.enums===String?$root.Checkbox.StyleType[e.type]===void 0?e.type:$root.Checkbox.StyleType[e.type]:e.type),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Checkbox"},n.StyleType=function(){const o={},e=Object.create(o);return e[o[0]="DEFAULT"]=0,e[o[1]="TOGGLE"]=1,e}(),n})();$root.Code=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.codeText="",n.prototype.language="",n.prototype.showLineNumbers=!1,n.prototype.wrapLines=!1,n.prototype.height=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.codeText!=null&&Object.hasOwnProperty.call(e,"codeText")&&t.uint32(10).string(e.codeText),e.language!=null&&Object.hasOwnProperty.call(e,"language")&&t.uint32(18).string(e.language),e.showLineNumbers!=null&&Object.hasOwnProperty.call(e,"showLineNumbers")&&t.uint32(24).bool(e.showLineNumbers),e.wrapLines!=null&&Object.hasOwnProperty.call(e,"wrapLines")&&t.uint32(32).bool(e.wrapLines),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&t.uint32(40).uint32(e.height),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Code;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.codeText=e.string();break}case 2:{h.language=e.string();break}case 3:{h.showLineNumbers=e.bool();break}case 4:{h.wrapLines=e.bool();break}case 5:{h.height=e.uint32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Code)return e;let t=new $root.Code;return e.codeText!=null&&(t.codeText=String(e.codeText)),e.language!=null&&(t.language=String(e.language)),e.showLineNumbers!=null&&(t.showLineNumbers=!!e.showLineNumbers),e.wrapLines!=null&&(t.wrapLines=!!e.wrapLines),e.height!=null&&(t.height=e.height>>>0),t},n.toObject=function(e,t){t||(t={});let c={};
18return t.defaults&&(c.codeText="",c.language="",c.showLineNumbers=!1,c.wrapLines=!1,c.height=0),e.codeText!=null&&e.hasOwnProperty("codeText")&&(c.codeText=e.codeText),e.language!=null&&e.hasOwnProperty("language")&&(c.language=e.language),e.showLineNumbers!=null&&e.hasOwnProperty("showLineNumbers")&&(c.showLineNumbers=e.showLineNumbers),e.wrapLines!=null&&e.hasOwnProperty("wrapLines")&&(c.wrapLines=e.wrapLines),e.height!=null&&e.hasOwnProperty("height")&&(c.height=e.height),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Code"},n})();$root.ColorPicker=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default="",n.prototype.help="",n.prototype.formId="",n.prototype.value="",n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(50).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ColorPicker;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.string();break}case 4:{h.help=e.string();break}case 5:{h.formId=e.string();break}case 6:{h.value=e.string();break}case 7:{h.setValue=e.bool();break}case 8:{h.disabled=e.bool();break}case 9:{h.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ColorPicker)return e;let t=new $root.ColorPicker;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=String(e.default)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value!=null&&(t.value=String(e.value)),e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".ColorPicker.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.id="",c.label="",c.default="",c.help="",c.formId="",c.value="",c.setValue=!1,c.disabled=!1,c.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(c.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(c.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(c.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(c.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(c.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(c.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ColorPicker"},n})();$root.DataFrame=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=null,n.prototype.index=null,n.prototype.columns=null,n.prototype.style=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Table.encode(e.data,t.uint32(10).fork()).ldelim(),e.index!=null&&Object.hasOwnProperty.call(e,"index")&&$root.Index.encode(e.index,t.uint32(18).fork()).ldelim(),e.columns!=null&&Object.hasOwnProperty.call(e,"columns")&&$root.Index.encode(e.columns,t.uint32(26).fork()).ldelim(),e.style!=null&&Object.hasOwnProperty.call(e,"style")&&$root.TableStyle.encode(e.style,t.uint32(34).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.DataFrame;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.data=$root.Table.decode(e,e.uint32());break}case 2:{h.index=$root.Index.decode(e,e.uint32());break}case 3:{h.columns=$root.Index.decode(e,e.uint32());break}case 4:{h.style=$root.TableStyle.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DataFrame)return e;let t=new $root.DataFrame;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".DataFrame.data: object expected");t.data=$root.Table.fromObject(e.data)}if(e.index!=null){if(typeof e.index!="object")throw TypeError(".DataFrame.index: object expected");t.index=$root.Index.fromObject(e.index)}if(e.columns!=null){if(typeof e.columns!="object")throw TypeError(".DataFrame.columns: object expected");t.columns=$root.Index.fromObject(e.columns)}if(e.style!=null){if(typeof e.style!="object")throw TypeError(".DataFrame.style: object expected");t.style=$root.TableStyle.fromObject(e.style)}
18return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.data=null,c.index=null,c.columns=null,c.style=null),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.Table.toObject(e.data,t)),e.index!=null&&e.hasOwnProperty("index")&&(c.index=$root.Index.toObject(e.index,t)),e.columns!=null&&e.hasOwnProperty("columns")&&(c.columns=$root.Index.toObject(e.columns,t)),e.style!=null&&e.hasOwnProperty("style")&&(c.style=$root.TableStyle.toObject(e.style,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DataFrame"},n})();$root.Index=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.plainIndex=null,n.prototype.rangeIndex=null,n.prototype.multiIndex=null,n.prototype.datetimeIndex=null,n.prototype.timedeltaIndex=null,n.prototype.int_64Index=null,n.prototype.float_64Index=null;let o;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(o=["plainIndex","rangeIndex","multiIndex","datetimeIndex","timedeltaIndex","int_64Index","float_64Index"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.plainIndex!=null&&Object.hasOwnProperty.call(t,"plainIndex")&&$root.PlainIndex.encode(t.plainIndex,c.uint32(10).fork()).ldelim(),t.rangeIndex!=null&&Object.hasOwnProperty.call(t,"rangeIndex")&&$root.RangeIndex.encode(t.rangeIndex,c.uint32(18).fork()).ldelim(),t.multiIndex!=null&&Object.hasOwnProperty.call(t,"multiIndex")&&$root.MultiIndex.encode(t.multiIndex,c.uint32(34).fork()).ldelim(),t.datetimeIndex!=null&&Object.hasOwnProperty.call(t,"datetimeIndex")&&$root.DatetimeIndex.encode(t.datetimeIndex,c.uint32(50).fork()).ldelim(),t.timedeltaIndex!=null&&Object.hasOwnProperty.call(t,"timedeltaIndex")&&$root.TimedeltaIndex.encode(t.timedeltaIndex,c.uint32(58).fork()).ldelim(),t.int_64Index!=null&&Object.hasOwnProperty.call(t,"int_64Index")&&$root.Int64Index.encode(t.int_64Index,c.uint32(74).fork()).ldelim(),t.float_64Index!=null&&Object.hasOwnProperty.call(t,"float_64Index")&&$root.Float64Index.encode(t.float_64Index,c.uint32(90).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Index;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.plainIndex=$root.PlainIndex.decode(t,t.uint32());break}case 2:{y.rangeIndex=$root.RangeIndex.decode(t,t.uint32());break}case 4:{y.multiIndex=$root.MultiIndex.decode(t,t.uint32());break}case 6:{y.datetimeIndex=$root.DatetimeIndex.decode(t,t.uint32());break}case 7:{y.timedeltaIndex=$root.TimedeltaIndex.decode(t,t.uint32());break}case 9:{y.int_64Index=$root.Int64Index.decode(t,t.uint32());break}case 11:{y.float_64Index=$root.Float64Index.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Index)return t;let c=new $root.Index;if(t.plainIndex!=null){if(typeof t.plainIndex!="object")throw TypeError(".Index.plainIndex: object expected");c.plainIndex=$root.PlainIndex.fromObject(t.plainIndex)}if(t.rangeIndex!=null){if(typeof t.rangeIndex!="object")throw TypeError(".Index.rangeIndex: object expected");c.rangeIndex=$root.RangeIndex.fromObject(t.rangeIndex)}if(t.multiIndex!=null){if(typeof t.multiIndex!="object")throw TypeError(".Index.multiIndex: object expected");c.multiIndex=$root.MultiIndex.fromObject(t.multiIndex)}if(t.datetimeIndex!=null){if(typeof t.datetimeIndex!="object")throw TypeError(".Index.datetimeIndex: object expected");c.datetimeIndex=$root.DatetimeIndex.fromObject(t.datetimeIndex)}if(t.timedeltaIndex!=null){if(typeof t.timedeltaIndex!="object")throw TypeError(".Index.timedeltaIndex: object expected");c.timedeltaIndex=$root.TimedeltaIndex.fromObject(t.timedeltaIndex)}if(t.int_64Index!=null){if(typeof t.int_64Index!="object")throw TypeError(".Index.int_64Index: object expected");c.int_64Index=$root.Int64Index.fromObject(t.int_64Index)}if(t.float_64Index!=null){if(typeof t.float_64Index!="object")throw TypeError(".Index.float_64Index: object expected");c.float_64Index=$root.Float64Index.fromObject(t.float_64Index)}return c},n.toObject=function(t,c){c||(c={});let p={};return t.plainIndex!=null&&t.hasOwnProperty("plainIndex")&&(p.plainIndex=$root.PlainIndex.toObject(t.plainIndex,c),c.oneofs&&(p.type="plainIndex")),t.rangeIndex!=null&&t.hasOwnProperty("rangeIndex")&&(p.rangeIndex=$root.RangeIndex.toObject(t.rangeIndex,c),c.oneofs&&(p.type="rangeIndex")),t.multiIndex!=null&&t.hasOwnProperty("multiIndex")&&(p.multiIndex=$root.MultiIndex.toObject(t.multiIndex,c),c.oneofs&&(p.type="multiIndex")),t.datetimeIndex!=null&&t.hasOwnProperty("datetimeIndex")&&(p.datetimeIndex=$root.DatetimeIndex.toObject(t.datetimeIndex,c),c.oneofs&&(p.type="datetimeIndex")),t.timedeltaIndex!=null&&t.hasOwnProperty("timedeltaIndex")&&(p.timedeltaIndex=$root.TimedeltaIndex.toObject(t.timedeltaIndex,c),c.oneofs&&(p.type="timedeltaIndex")),t.int_64Index!=null&&t.hasOwnProperty("int_64Index")&&(p.int_64Index=$root.Int64Index.toObject(t.int_64Index,c),c.oneofs&&(p.type="int_64Index")),t.float_64Index!=null&&t.hasOwnProperty("float_64Index")&&(p.float_64Index=$root.Float64Index.toObject(t.float_64Index,c),c.oneofs&&(p.type="float_64Index")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Index"},n})();$root.PlainIndex=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.AnyArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.PlainIndex;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.data=$root.AnyArray.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.PlainIndex)return e;let t=new $root.PlainIndex;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".PlainIndex.data: object expected");t.data=$root.AnyArray.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.data=null),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.AnyArray.toObject(e.data,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PlainIndex"},n})();$root.RangeIndex=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.start=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.stop=$util.Long?$util.Long.fromBits(0,0,!1):0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.start!=null&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int64(e.start),e.stop!=null&&Object.hasOwnProperty.call(e,"stop")&&t.uint32(16).int64(e.stop),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.RangeIndex;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.start=e.int64();break}case 2:{h.stop=e.int64();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.RangeIndex)return e;let t=new $root.RangeIndex;return e.start!=null&&($util.Long?(t.start=$util.Long.fromValue(e.start)).unsigned=!1:typeof e.start=="string"?t.start=parseInt(e.start,10):typeof e.start=="number"?t.start=e.start:typeof e.start=="object"&&(t.start=new $util.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber())),e.stop!=null&&($util.Long?(t.stop=$util.Long.fromValue(e.stop)).unsigned=!1:typeof e.stop=="string"?t.stop=parseInt(e.stop,10):typeof e.stop=="number"?t.stop=e.stop:typeof e.stop=="object"&&(t.stop=new $util.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber())),t},n.toObject=function(e,t){t||(t={});let c={};if(t.defaults){if($util.Long){let p=new $util.Long(0,0,!1);c.start=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.start=t.longs===String?"0":0;
18if($util.Long){let p=new $util.Long(0,0,!1);c.stop=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.stop=t.longs===String?"0":0}return e.start!=null&&e.hasOwnProperty("start")&&(typeof e.start=="number"?c.start=t.longs===String?String(e.start):e.start:c.start=t.longs===String?$util.Long.prototype.toString.call(e.start):t.longs===Number?new $util.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber():e.start),e.stop!=null&&e.hasOwnProperty("stop")&&(typeof e.stop=="number"?c.stop=t.longs===String?String(e.stop):e.stop:c.stop=t.longs===String?$util.Long.prototype.toString.call(e.stop):t.longs===Number?new $util.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber():e.stop),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/RangeIndex"},n})();$root.MultiIndex=(()=>{function n(o){if(this.levels=[],this.labels=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.levels=$util.emptyArray,n.prototype.labels=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.levels!=null&&e.levels.length)for(let c=0;c<e.levels.length;++c)$root.Index.encode(e.levels[c],t.uint32(10).fork()).ldelim();if(e.labels!=null&&e.labels.length)for(let c=0;c<e.labels.length;++c)$root.Int32Array.encode(e.labels[c],t.uint32(18).fork()).ldelim();return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.MultiIndex;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.levels&&h.levels.length||(h.levels=[]),h.levels.push($root.Index.decode(e,e.uint32()));break}case 2:{h.labels&&h.labels.length||(h.labels=[]),h.labels.push($root.Int32Array.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.MultiIndex)return e;let t=new $root.MultiIndex;if(e.levels){if(!Array.isArray(e.levels))throw TypeError(".MultiIndex.levels: array expected");t.levels=[];for(let c=0;c<e.levels.length;++c){if(typeof e.levels[c]!="object")throw TypeError(".MultiIndex.levels: object expected");t.levels[c]=$root.Index.fromObject(e.levels[c])}}if(e.labels){if(!Array.isArray(e.labels))throw TypeError(".MultiIndex.labels: array expected");t.labels=[];for(let c=0;c<e.labels.length;++c){if(typeof e.labels[c]!="object")throw TypeError(".MultiIndex.labels: object expected");t.labels[c]=$root.Int32Array.fromObject(e.labels[c])}}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.levels=[],c.labels=[]),e.levels&&e.levels.length){c.levels=[];for(let p=0;p<e.levels.length;++p)c.levels[p]=$root.Index.toObject(e.levels[p],t)}if(e.labels&&e.labels.length){c.labels=[];for(let p=0;p<e.labels.length;++p)c.labels[p]=$root.Int32Array.toObject(e.labels[p],t)}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/MultiIndex"},n})();$root.DatetimeIndex=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.StringArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.DatetimeIndex;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.data=$root.StringArray.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DatetimeIndex)return e;let t=new $root.DatetimeIndex;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".DatetimeIndex.data: object expected");t.data=$root.StringArray.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.data=null),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.StringArray.toObject(e.data,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DatetimeIndex"},n})();$root.TimedeltaIndex=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Int64Array.encode(e.data,t.uint32(10).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.TimedeltaIndex;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.data=$root.Int64Array.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.TimedeltaIndex)return e;let t=new $root.TimedeltaIndex;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".TimedeltaIndex.data: object expected");t.data=$root.Int64Array.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.data=null),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.Int64Array.toObject(e.data,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/TimedeltaIndex"},n})();$root.Int64Index=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Int64Array.encode(e.data,t.uint32(10).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Int64Index;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.data=$root.Int64Array.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Int64Index)return e;let t=new $root.Int64Index;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".Int64Index.data: object expected");t.data=$root.Int64Array.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.data=null),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.Int64Array.toObject(e.data,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Int64Index"},n})();$root.Float64Index=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.DoubleArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Float64Index;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.data=$root.DoubleArray.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Float64Index)return e;let t=new $root.Float64Index;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".Float64Index.data: object expected");t.data=$root.DoubleArray.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.data=null),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.DoubleArray.toObject(e.data,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Float64Index"},n})();$root.CSSStyle=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.property="",n.prototype.value="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.property!=null&&Object.hasOwnProperty.call(e,"property")&&t.uint32(10).string(e.property),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.CSSStyle;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.property=e.string();break}case 2:{h.value=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.CSSStyle)return e;let t=new $root.CSSStyle;return e.property!=null&&(t.property=String(e.property)),e.value!=null&&(t.value=String(e.value)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.property="",c.value=""),e.property!=null&&e.hasOwnProperty("property")&&(c.property=e.property),e.value!=null&&e.hasOwnProperty("value")&&(c.value=e.value),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/CSSStyle"},n})();$root.CellStyle=(()=>{function n(o){if(this.css=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.css=$util.emptyArray,n.prototype.displayValue="",n.prototype.hasDisplayValue=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.css!=null&&e.css.length)for(let c=0;c<e.css.length;++c)$root.CSSStyle.encode(e.css[c],t.uint32(10).fork()).ldelim();return e.displayValue!=null&&Object.hasOwnProperty.call(e,"displayValue")&&t.uint32(18).string(e.dis
18playValue),e.hasDisplayValue!=null&&Object.hasOwnProperty.call(e,"hasDisplayValue")&&t.uint32(24).bool(e.hasDisplayValue),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.CellStyle;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.css&&h.css.length||(h.css=[]),h.css.push($root.CSSStyle.decode(e,e.uint32()));break}case 2:{h.displayValue=e.string();break}case 3:{h.hasDisplayValue=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.CellStyle)return e;let t=new $root.CellStyle;if(e.css){if(!Array.isArray(e.css))throw TypeError(".CellStyle.css: array expected");t.css=[];for(let c=0;c<e.css.length;++c){if(typeof e.css[c]!="object")throw TypeError(".CellStyle.css: object expected");t.css[c]=$root.CSSStyle.fromObject(e.css[c])}}return e.displayValue!=null&&(t.displayValue=String(e.displayValue)),e.hasDisplayValue!=null&&(t.hasDisplayValue=!!e.hasDisplayValue),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.css=[]),t.defaults&&(c.displayValue="",c.hasDisplayValue=!1),e.css&&e.css.length){c.css=[];for(let p=0;p<e.css.length;++p)c.css[p]=$root.CSSStyle.toObject(e.css[p],t)}return e.displayValue!=null&&e.hasOwnProperty("displayValue")&&(c.displayValue=e.displayValue),e.hasDisplayValue!=null&&e.hasOwnProperty("hasDisplayValue")&&(c.hasDisplayValue=e.hasDisplayValue),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/CellStyle"},n})();$root.CellStyleArray=(()=>{function n(o){if(this.styles=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.styles=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.styles!=null&&e.styles.length)for(let c=0;c<e.styles.length;++c)$root.CellStyle.encode(e.styles[c],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.CellStyleArray;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.styles&&h.styles.length||(h.styles=[]),h.styles.push($root.CellStyle.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.CellStyleArray)return e;let t=new $root.CellStyleArray;if(e.styles){if(!Array.isArray(e.styles))throw TypeError(".CellStyleArray.styles: array expected");t.styles=[];for(let c=0;c<e.styles.length;++c){if(typeof e.styles[c]!="object")throw TypeError(".CellStyleArray.styles: object expected");t.styles[c]=$root.CellStyle.fromObject(e.styles[c])}}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.styles=[]),e.styles&&e.styles.length){c.styles=[];for(let p=0;p<e.styles.length;++p)c.styles[p]=$root.CellStyle.toObject(e.styles[p],t)}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/CellStyleArray"},n})();$root.AnyArray=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.strings=null,n.prototype.doubles=null,n.prototype.int64s=null,n.prototype.datetimes=null,n.prototype.timedeltas=null;let o;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(o=["strings","doubles","int64s","datetimes","timedeltas"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.strings!=null&&Object.hasOwnProperty.call(t,"strings")&&$root.StringArray.encode(t.strings,c.uint32(10).fork()).ldelim(),t.doubles!=null&&Object.hasOwnProperty.call(t,"doubles")&&$root.DoubleArray.encode(t.doubles,c.uint32(18).fork()).ldelim(),t.int64s!=null&&Object.hasOwnProperty.call(t,"int64s")&&$root.Int64Array.encode(t.int64s,c.uint32(26).fork()).ldelim(),t.datetimes!=null&&Object.hasOwnProperty.call(t,"datetimes")&&$root.StringArray.encode(t.datetimes,c.uint32(34).fork()).ldelim(),t.timedeltas!=null&&Object.hasOwnProperty.call(t,"timedeltas")&&$root.Int64Array.encode(t.timedeltas,c.uint32(42).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.AnyArray;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.strings=$root.StringArray.decode(t,t.uint32());break}case 2:{y.doubles=$root.DoubleArray.decode(t,t.uint32());break}case 3:{y.int64s=$root.Int64Array.decode(t,t.uint32());break}case 4:{y.datetimes=$root.StringArray.decode(t,t.uint32());break}case 5:{y.timedeltas=$root.Int64Array.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.AnyArray)return t;let c=new $root.AnyArray;if(t.strings!=null){if(typeof t.strings!="object")throw TypeError(".AnyArray.strings: object expected");c.strings=$root.StringArray.fromObject(t.strings)}if(t.doubles!=null){if(typeof t.doubles!="object")throw TypeError(".AnyArray.doubles: object expected");c.doubles=$root.DoubleArray.fromObject(t.doubles)}if(t.int64s!=null){if(typeof t.int64s!="object")throw TypeError(".AnyArray.int64s: object expected");c.int64s=$root.Int64Array.fromObject(t.int64s)}if(t.datetimes!=null){if(typeof t.datetimes!="object")throw TypeError(".AnyArray.datetimes: object expected");c.datetimes=$root.StringArray.fromObject(t.datetimes)}if(t.timedeltas!=null){if(typeof t.timedeltas!="object")throw TypeError(".AnyArray.timedeltas: object expected");c.timedeltas=$root.Int64Array.fromObject(t.timedeltas)}return c},n.toObject=function(t,c){c||(c={});let p={};
18return t.strings!=null&&t.hasOwnProperty("strings")&&(p.strings=$root.StringArray.toObject(t.strings,c),c.oneofs&&(p.type="strings")),t.doubles!=null&&t.hasOwnProperty("doubles")&&(p.doubles=$root.DoubleArray.toObject(t.doubles,c),c.oneofs&&(p.type="doubles")),t.int64s!=null&&t.hasOwnProperty("int64s")&&(p.int64s=$root.Int64Array.toObject(t.int64s,c),c.oneofs&&(p.type="int64s")),t.datetimes!=null&&t.hasOwnProperty("datetimes")&&(p.datetimes=$root.StringArray.toObject(t.datetimes,c),c.oneofs&&(p.type="datetimes")),t.timedeltas!=null&&t.hasOwnProperty("timedeltas")&&(p.timedeltas=$root.Int64Array.toObject(t.timedeltas,c),c.oneofs&&(p.type="timedeltas")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/AnyArray"},n})();$root.Table=(()=>{function n(o){if(this.cols=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.cols=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.cols!=null&&e.cols.length)for(let c=0;c<e.cols.length;++c)$root.AnyArray.encode(e.cols[c],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Table;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.cols&&h.cols.length||(h.cols=[]),h.cols.push($root.AnyArray.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Table)return e;let t=new $root.Table;if(e.cols){if(!Array.isArray(e.cols))throw TypeError(".Table.cols: array expected");t.cols=[];for(let c=0;c<e.cols.length;++c){if(typeof e.cols[c]!="object")throw TypeError(".Table.cols: object expected");t.cols[c]=$root.AnyArray.fromObject(e.cols[c])}}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.cols=[]),e.cols&&e.cols.length){c.cols=[];for(let p=0;p<e.cols.length;++p)c.cols[p]=$root.AnyArray.toObject(e.cols[p],t)}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Table"},n})();$root.TableStyle=(()=>{function n(o){if(this.cols=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.cols=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.cols!=null&&e.cols.length)for(let c=0;c<e.cols.length;++c)$root.CellStyleArray.encode(e.cols[c],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.TableStyle;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.cols&&h.cols.length||(h.cols=[]),h.cols.push($root.CellStyleArray.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.TableStyle)return e;let t=new $root.TableStyle;if(e.cols){if(!Array.isArray(e.cols))throw TypeError(".TableStyle.cols: array expected");t.cols=[];for(let c=0;c<e.cols.length;++c){if(typeof e.cols[c]!="object")throw TypeError(".TableStyle.cols: object expected");t.cols[c]=$root.CellStyleArray.fromObject(e.cols[c])}}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.cols=[]),e.cols&&e.cols.length){c.cols=[];for(let p=0;p<e.cols.length;++p)c.cols[p]=$root.CellStyleArray.toObject(e.cols[p],t)}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/TableStyle"},n})();$root.DateInput=(()=>{function n(o){if(this.default=[],this.value=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.min="",n.prototype.max="",n.prototype.isRange=!1,n.prototype.help="",n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.format="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let c=0;c<e.default.length;++c)t.uint32(26).string(e.default[c]);if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),e.isRange!=null&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(48).bool(e.isRange),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),e.value!=null&&e.value.length)for(let c=0;c<e.value.length;++c)t.uint32(74).string(e.value[c]);return e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(80).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(88).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(106).string(e.format),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.DateInput;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default&&h.default.length||(h.default=[]),h.default.push(e.string());break}case 4:{h.min=e.string();break}case 5:{h.max=e.string();break}case 6:{h.isRange=e.bool();break}case 7:{h.help=e.string();break}case 8:{h.formId=e.string();break}case 9:{h.value&&h.value.length||(h.value=[]),h.value.push(e.string());break}case 10:{h.setValue=e.bool();break}case 11:{h.disabled=e.bool();break}case 12:{h.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 13:{h.format=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DateInput)return e;let t=new $root.DateInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateInput.default: array expected");t.default=[];for(let c=0;c<e.default.length;++c)t.default[c]=String(e.default[c])}if(e.min!=null&&(t.min=String(e.min)),e.max!=null&&(t.max=String(e.max)),e.isRange!=null&&(t.isRange=!!e.isRange),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateInput.value: array expected");t.value=[];for(let c=0;c<e.value.length;++c)t.value[c]=String(e.value[c])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".DateInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}return e.format!=null&&(t.format=String(e.format)),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.default=[],c.value=[]),t.defaults&&(c.id="",c.label="",c.min="",c.max="",c.isRange=!1,c.help="",c.formId="",c.setValue=!1,c.disabled=!1,c.labelVisibility=null,c.format=""),e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.default&&e.default.length){c.default=[];for(let p=0;p<e.default.length;++p)c.default[p]=e.default[p]}if(e.min!=null&&e.hasOwnProperty("min")&&(c.min=e.min),e.max!=null&&e.hasOwnProperty("max")&&(c.max=e.max),e.isRange!=null&&e.hasOwnProperty("isRange")&&(c.isRange=e.isRange),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(c.formId=e.formId),e.value&&e.value.length){c.value=[];for(let p=0;p<e.value.length;++p)c.value[p]=e.value[p]}return e.setValue!=null&&e.hasOwnProperty("setValue")&&(c.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(c.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(c.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.format!=null&&e.hasOwnProperty("format")&&(c.format=e.format),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DateInput"},n})();$root.DateTimeInput=(()=>{function n(o){if(this.default=[],this.value=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.min="",n.prototype.max="",n.prototype.help="",n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.format="",n.prototype.step=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.isRange=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let c=0;c<e.default.length;++c)t.uint32(26).string(e.default[c]);if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(58).string(e.formId),e.value!=null&&e.value.length)for(let c=0;c<e.value.length;++c)t.uint32(66).string(e.value[c]);return e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(72).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(80).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(90).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(98).string(e.format),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&t.uint32(104).int64(e.step),e.isRange!=null&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(112).bool(e.isRange),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.DateTimeInput;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default&&h.default.length||(h.default=[]),h.default.push(e.string());break}case 4:{h.min=e.string();break}case 5:{h.max=e.string();break}case 6:{h.help=e.string();break}case 7:{h.formId=e.string();break}case 8:{h.value&&h.value.length||(h.value=[]),h.value.push(e.string());break}case 9:{h.setValue=e.bool();break}case 10:{h.disabled=e.bool();break}case 11:{h.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 12:{h.format=e.string();break}case 13:{h.step=e.int64();break}case 14:{h.isRange=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DateTimeInput)return e;let t=new $root.DateTimeInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateTimeInput.default: array expected");t.default=[];for(let c=0;c<e.default.length;++c)t.default[c]=String(e.default[c])}if(e.min!=null&&(t.min=String(e.min)),e.max!=null&&(t.max=String(e.max)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateTimeInput.value: array expected");t.value=[];for(let c=0;c<e.value.length;++c)t.value[c]=String(e.value[c])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".DateTimeInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}return e.format!=null&&(t.format=String(e.format)),e.step!=null&&($util.Long?(t.step=$util.Long.fromValue(e.step)).unsigned=!1:typeof e.step=="string"?t.step=parseInt(e.step,10):typeof e.step=="number"?t.step=e.step:typeof e.step=="object"&&(t.step=new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber())),e.isRange!=null&&(t.isRange=!!e.isRange),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.default=[],c.value=[]),t.defaults){if(c.id="",c.label="",c.min="",c.max="",c.help="",c.formId="",c.setValue=!1,c.disabled=!1,c.labelVisibility=null,c.format="",$util.Long){let p=new $util.Long(0,0,!1);c.step=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.step=t.longs===String?"0":0;c.isRange=!1}if(e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.default&&e.default.length){c.default=[];for(let p=0;p<e.default.length;++p)c.default[p]=e.default[p]}if(e.min!=null&&e.hasOwnProperty("min")&&(c.min=e.min),e.max!=null&&e.hasOwnProperty("max")&&(c.max=e.max),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(c.formId=e.formId),e.value&&e.value.length){c.value=[];for(let p=0;p<e.value.length;++p)c.value[p]=e.value[p]}return e.setValue!=null&&e.hasOwnProperty("setValue")&&(c.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(c.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(c.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.format!=null&&e.hasOwnProperty("format")&&(c.format=e.format),e.step!=null&&e.hasOwnProperty("step")&&(typeof e.step=="number"?c.step=t.longs===String?String(e.step):e.step:c.step=t.longs===String?$util.Long.prototype.toString.call(e.step):t.longs===Number?new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber():e.step),e.isRange!=null&&e.hasOwnProperty("isRange")&&(c.isRange=e.isRange),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DateTimeInput"},n})();const DeckGlJsonChart$1=$root.DeckGlJsonChart=(()=>{function n(o){if(this.selectionMode=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.json="",n.prototype.tooltip="",n.prototype.useContainerWidth=!1,n.prototype.id="",n.prototype.mapboxToken="",n.prototype.width=0,n.prototype.height=0,n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.json!=null&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),e.tooltip!=null&&Object.hasOwnProperty.call(e,"tooltip")&&t.uint32(18).string(e.tooltip),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(32).bool(e.useContainerWidth),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(42).string(e.id),e.mapboxToken!=null&&Object.hasOwnProperty.call(e,"mapboxToken")&&t.uint32(50).string(e.mapboxToken),e.width!=null&&Object.hasOwnProperty.call(e,"width")&&t.uint32(56).uint32(e.width),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&t.uint32(64).uint32(e.height),e.selectionMode!=null&&e.selectionMode.length){t.uint32(74).fork();for(let c=0;c<e.selectionMode.length;++c)t.int32(e.selectionMode[c]);t.ldelim()}return e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(82).string(e.formId),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.DeckGlJsonChart;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.json=e.string();break}case 2:{h.tooltip=e.string();break}case 4:{h.useContainerWidth=e.bool();brea
18k}case 5:{h.id=e.string();break}case 6:{h.mapboxToken=e.string();break}case 7:{h.width=e.uint32();break}case 8:{h.height=e.uint32();break}case 9:{if(h.selectionMode&&h.selectionMode.length||(h.selectionMode=[]),(y&7)===2){let g=e.uint32()+e.pos;for(;e.pos<g;)h.selectionMode.push(e.int32())}else h.selectionMode.push(e.int32());break}case 10:{h.formId=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DeckGlJsonChart)return e;let t=new $root.DeckGlJsonChart;if(e.json!=null&&(t.json=String(e.json)),e.tooltip!=null&&(t.tooltip=String(e.tooltip)),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.id!=null&&(t.id=String(e.id)),e.mapboxToken!=null&&(t.mapboxToken=String(e.mapboxToken)),e.width!=null&&(t.width=e.width>>>0),e.height!=null&&(t.height=e.height>>>0),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".DeckGlJsonChart.selectionMode: array expected");t.selectionMode=[];for(let c=0;c<e.selectionMode.length;++c)switch(e.selectionMode[c]){default:if(typeof e.selectionMode[c]=="number"){t.selectionMode[c]=e.selectionMode[c];break}case"SINGLE_OBJECT":case 0:t.selectionMode[c]=0;break;case"MULTI_OBJECT":case 1:t.selectionMode[c]=1;break}}return e.formId!=null&&(t.formId=String(e.formId)),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.selectionMode=[]),t.defaults&&(c.json="",c.tooltip="",c.useContainerWidth=!1,c.id="",c.mapboxToken="",c.width=0,c.height=0,c.formId=""),e.json!=null&&e.hasOwnProperty("json")&&(c.json=e.json),e.tooltip!=null&&e.hasOwnProperty("tooltip")&&(c.tooltip=e.tooltip),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(c.useContainerWidth=e.useContainerWidth),e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.mapboxToken!=null&&e.hasOwnProperty("mapboxToken")&&(c.mapboxToken=e.mapboxToken),e.width!=null&&e.hasOwnProperty("width")&&(c.width=e.width),e.height!=null&&e.hasOwnProperty("height")&&(c.height=e.height),e.selectionMode&&e.selectionMode.length){c.selectionMode=[];for(let p=0;p<e.selectionMode.length;++p)c.selectionMode[p]=t.enums===String?$root.DeckGlJsonChart.SelectionMode[e.selectionMode[p]]===void 0?e.selectionMode[p]:$root.DeckGlJsonChart.SelectionMode[e.selectionMode[p]]:e.selectionMode[p]}return e.formId!=null&&e.hasOwnProperty("formId")&&(c.formId=e.formId),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DeckGlJsonChart"},n.SelectionMode=function(){const o={},e=Object.create(o);return e[o[0]="SINGLE_OBJECT"]=0,e[o[1]="MULTI_OBJECT"]=1,e}(),n})();$root.Delta=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.newElement=null,n.prototype.addBlock=null,n.prototype.addRows=null,n.prototype.arrowAddRows=null,n.prototype.fragmentId="";let o;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(o=["newElement","addBlock","addRows","arrowAddRows"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.newElement!=null&&Object.hasOwnProperty.call(t,"newElement")&&$root.Element.encode(t.newElement,c.uint32(26).fork()).ldelim(),t.addRows!=null&&Object.hasOwnProperty.call(t,"addRows")&&$root.NamedDataSet.encode(t.addRows,c.uint32(42).fork()).ldelim(),t.addBlock!=null&&Object.hasOwnProperty.call(t,"addBlock")&&$root.Block.encode(t.addBlock,c.uint32(50).fork()).ldelim(),t.arrowAddRows!=null&&Object.hasOwnProperty.call(t,"arrowAddRows")&&$root.ArrowNamedDataSet.encode(t.arrowAddRows,c.uint32(58).fork()).ldelim(),t.fragmentId!=null&&Object.hasOwnProperty.call(t,"fragmentId")&&c.uint32(66).string(t.fragmentId),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Delta;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 3:{y.newElement=$root.Element.decode(t,t.uint32());break}case 6:{y.addBlock=$root.Block.decode(t,t.uint32());break}case 5:{y.addRows=$root.NamedDataSet.decode(t,t.uint32());break}case 7:{y.arrowAddRows=$root.ArrowNamedDataSet.decode(t,t.uint32());break}case 8:{y.fragmentId=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Delta)return t;let c=new $root.Delta;if(t.newElement!=null){if(typeof t.newElement!="object")throw TypeError(".Delta.newElement: object expected");c.newElement=$root.Element.fromObject(t.newElement)}if(t.addBlock!=null){if(typeof t.addBlock!="object")throw TypeError(".Delta.addBlock: object expected");c.addBlock=$root.Block.fromObject(t.addBlock)}if(t.addRows!=null){if(typeof t.addRows!="object")throw TypeError(".Delta.addRows: object expected");c.addRows=$root.NamedDataSet.fromObject(t.addRows)}if(t.arrowAddRows!=null){if(typeof t.arrowAddRows!="object")throw TypeError(".Delta.arrowAddRows: object expected");c.arrowAddRows=$root.ArrowNamedDataSet.fromObject(t.arrowAddRows)}return t.fragmentId!=null&&(c.fragmentId=String(t.fragmentId)),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.fragmentId=""),t.newElement!=null&&t.hasOwnProperty("newElement")&&(p.newElement=$root.Element.toObject(t.newElement,c),c.oneofs&&(p.type="newElement")),t.addRows!=null&&t.hasOwnProperty("addRows")&&(p.addRows=$root.NamedDataSet.toObject(t.addRows,c),c.oneofs&&(p.type="addRows")),t.addBlock!=null&&t.hasOwnProperty("addBlock")&&(p.addBlock=$root.Block.toObject(t.addBlock,
18c),c.oneofs&&(p.type="addBlock")),t.arrowAddRows!=null&&t.hasOwnProperty("arrowAddRows")&&(p.arrowAddRows=$root.ArrowNamedDataSet.toObject(t.arrowAddRows,c),c.oneofs&&(p.type="arrowAddRows")),t.fragmentId!=null&&t.hasOwnProperty("fragmentId")&&(p.fragmentId=t.fragmentId),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Delta"},n})();const Element$1=$root.Element=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.heightConfig=null,n.prototype.widthConfig=null,n.prototype.textAlignmentConfig=null,n.prototype.alert=null,n.prototype.arrowDataFrame=null,n.prototype.arrowTable=null,n.prototype.arrowVegaLiteChart=null,n.prototype.audio=null,n.prototype.audioInput=null,n.prototype.balloons=null,n.prototype.bidiComponent=null,n.prototype.bokehChart=null,n.prototype.button=null,n.prototype.buttonGroup=null,n.prototype.downloadButton=null,n.prototype.cameraInput=null,n.prototype.chatInput=null,n.prototype.checkbox=null,n.prototype.colorPicker=null,n.prototype.componentInstance=null,n.prototype.dataFrame=null,n.prototype.table=null,n.prototype.dateInput=null,n.prototype.deckGlJsonChart=null,n.prototype.docString=null,n.prototype.empty=null,n.prototype.exception=null,n.prototype.favicon=null,n.prototype.fileUploader=null,n.prototype.graphvizChart=null,n.prototype.html=null,n.prototype.iframe=null,n.prototype.imgs=null,n.prototype.json=null,n.prototype.linkButton=null,n.prototype.markdown=null,n.prototype.metric=null,n.prototype.multiselect=null,n.prototype.numberInput=null,n.prototype.pageLink=null,n.prototype.plotlyChart=null,n.prototype.progress=null,n.prototype.radio=null,n.prototype.selectbox=null,n.prototype.skeleton=null,n.prototype.slider=null,n.prototype.snow=null,n.prototype.space=null,n.prototype.spinner=null,n.prototype.text=null,n.prototype.textArea=null,n.prototype.textInput=null,n.prototype.timeInput=null,n.prototype.dateTimeInput=null,n.prototype.toast=null,n.prototype.vegaLiteChart=null,n.prototype.video=null,n.prototype.heading=null,n.prototype.code=null;let o;return Object.defineProperty(n.prototype,"_heightConfig",{get:$util.oneOfGetter(o=["height
18Config"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(o=["widthConfig"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_textAlignmentConfig",{get:$util.oneOfGetter(o=["textAlignmentConfig"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(o=["alert","arrowDataFrame","arrowTable","arrowVegaLiteChart","audio","audioInput","balloons","bidiComponent","bokehChart","button","buttonGroup","downloadButton","cameraInput","chatInput","checkbox","colorPicker","componentInstance","dataFrame","table","dateInput","deckGlJsonChart","docString","empty","exception","favicon","fileUploader","graphvizChart","html","iframe","imgs","json","linkButton","markdown","metric","multiselect","numberInput","pageLink","plotlyChart","progress","radio","selectbox","skeleton","slider","snow","space","spinner","text","textArea","textInput","timeInput","dateTimeInput","toast","vegaLiteChart","video","heading","code"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.text!=null&&Object.hasOwnProperty.call(t,"text")&&$root.Text.encode(t.text,c.uint32(10).fork()).ldelim(),t.empty!=null&&Object.hasOwnProperty.call(t,"empty")&&$root.Empty.encode(t.empty,c.uint32(18).fork()).ldelim(),t.dataFrame!=null&&Object.hasOwnProperty.call(t,"dataFrame")&&$root.DataFrame.encode(t.dataFrame,c.uint32(26).fork()).ldelim(),t.progress!=null&&Object.hasOwnProperty.call(t,"progress")&&$root.Progress.encode(t.progress,c.uint32(42).fork()).ldelim(),t.imgs!=null&&Object.hasOwnProperty.call(t,"imgs")&&$root.ImageList.encode(t.imgs,c.uint32(50).fork()).ldelim(),t.docString!=null&&Object.hasOwnProperty.call(t,"docString")&&$root.DocString.encode(t.docString,c.uint32(58).fork()).ldelim(),t.exception!=null&&Object.hasOwnProperty.call(t,"exception")&&$root.Exception.encode(t.exception,c.uint32(66).fork()).ldelim(),t.vegaLiteChart!=null&&Object.hasOwnProperty.call(t,"vegaLiteChart")&&$root.VegaLiteChart.encode(t.vegaLiteChart,c.uint32(82).fork()).ldelim(),t.table!=null&&Object.hasOwnProperty.call(t,"table")&&$root.DataFrame.encode(t.table,c.uint32(90).fork()).ldelim(),t.balloons!=null&&Object.hasOwnProperty.call(t,"balloons")&&$root.Balloons.encode(t.balloons,c.uint32(98).fork()).ldelim(),t.audio!=null&&Object.hasOwnProperty.call(t,"audio")&&$root.Audio.encode(t.audio,c.uint32(106).fork()).ldelim(),t.video!=null&&Object.hasOwnProperty.call(t,"video")&&$root.Video.encode(t.video,c.uint32(114).fork()).ldelim(),t.plotlyChart!=null&&Object.hasOwnProperty.call(t,"plotlyChart")&&$root.PlotlyChart.encode(t.plotlyChart,c.uint32(130).fork()).ldelim(),t.bokehChart!=null&&Object.hasOwnProperty.call(t,"bokehChart")&&$root.BokehChart.encode(t.bokehChart,c.uint32(138).fork()).ldelim(),t.graphvizChart!=null&&Object.hasOwnProperty.call(t,"graphvizChart")&&$root.GraphVizChart.encode(t.graphvizChart,c.uint32(146).fork()).ldelim(),t.button!=null&&Object.hasOwnProperty.call(t,"button")&&$root.Button.encode(t.button,c.uint32(154).fork()).ldelim(),t.checkbox!=null&&Object.hasOwnProperty.call(t,"checkbox")&&$root.Checkbox.encode(t.checkbox,c.uint32(162).fork()).ldelim(),t.slider!=null&&Object.hasOwnProperty.call(t,"slider")&&$root.Slider.encode(t.slider,c.uint32(170).fork()).ldelim(),t.textArea!=null&&Object.hasOwnProperty.call(t,"textArea")&&$root.TextArea.encode(t.textArea,c.uint32(178).fork()).ldelim(),t.radio!=null&&Object.hasOwnProperty.call(t,"radio")&&$root.Radio.encode(t.radio,c.uint32(186).fork()).ldelim(),t.textInput!=null&&Object.hasOwnProperty.call(t,"textInput")&&$root.TextInput.encode(t.textInput,c.uint32(194).fork()).ldelim(),t.selectbox!=null&&Object.hasOwnProperty.call(t,"selectbox")&&$root.Selectbox.encode(t.selectbox,c.uint32(202).fork()).ldelim(),t.timeInput!=null&&Object.hasOwnProperty.call(t,"timeInput")&&$root.TimeInput.encode(t.timeInput,c.uint32(210).fork()).ldelim(),t.dateInput!=null&&Object.hasOwnProperty.call(t,"dateInput")&&$root.DateInput.encode(t.dateInput,c.uint32(218).fork()).ldelim(),t.multiselect!=null&&Object.hasOwnProperty.call(t,"multiselect")&&$root.MultiSelect.encode(t.multiselect,c.uint32(226).fork()).ldelim(),t.markdown!=null&&Object.hasOwnProperty.call(t,"markdown")&&$root.Markdown.encode(t.markdown,c.uint32(234).fork()).ldelim(),t.alert!=null&&Object.hasOwnProperty.call(t,"alert")&&$root.Alert.encode(t.alert,c.uint32(242).fork()).ldelim(),t.json!=null&&Object.hasOwnProperty.call(t,"json")&&$root.Json.encode(t.json,c.uint32(250).fork()).ldelim(),t.numberInput!=null&&Object.hasOwnProperty.call(t,"numberInput")&&$root.NumberInput.encode(t.numberInput,c.uint32(258).fork()).ldelim(),t.fileUploader!=null&&Object.hasOwnProperty.call(t,"fileUploader")&&$root.FileUploader.encode(t.fileUploader,c.uint32(266).fork()).ldelim(),t.deckGlJsonChart!=null&&Object.hasOwnProperty.call(t,"deckGlJsonChart")&&$root.DeckGlJsonChart.encode(t.deckGlJsonChart,c.uint32(274).fork()).ldelim(),t.colorPicker!=null&&Object.hasOwnProperty.call(t,"colorPicker")&&$root.ColorPicker.encode(t.colorPicker,c.uint32(282).fork()).ldelim(),t.favicon!=null&&Object.hasOwnProperty.call(t,"favicon")&&$root.Favicon.encode(t.favicon,
18c.uint32(290).fork()).ldelim(),t.componentInstance!=null&&Object.hasOwnProperty.call(t,"componentInstance")&&$root.ComponentInstance.encode(t.componentInstance,c.uint32(298).fork()).ldelim(),t.iframe!=null&&Object.hasOwnProperty.call(t,"iframe")&&$root.IFrame.encode(t.iframe,c.uint32(306).fork()).ldelim(),t.arrowTable!=null&&Object.hasOwnProperty.call(t,"arrowTable")&&$root.Arrow.encode(t.arrowTable,c.uint32(314).fork()).ldelim(),t.arrowDataFrame!=null&&Object.hasOwnProperty.call(t,"arrowDataFrame")&&$root.Arrow.encode(t.arrowDataFrame,c.uint32(322).fork()).ldelim(),t.arrowVegaLiteChart!=null&&Object.hasOwnProperty.call(t,"arrowVegaLiteChart")&&$root.ArrowVegaLiteChart.encode(t.arrowVegaLiteChart,c.uint32(330).fork()).ldelim(),t.metric!=null&&Object.hasOwnProperty.call(t,"metric")&&$root.Metric.encode(t.metric,c.uint32(338).fork()).ldelim(),t.downloadButton!=null&&Object.hasOwnProperty.call(t,"downloadButton")&&$root.DownloadButton.encode(t.downloadButton,c.uint32(346).fork()).ldelim(),t.spinner!=null&&Object.hasOwnProperty.call(t,"spinner")&&$root.Spinner.encode(t.spinner,c.uint32(354).fork()).ldelim(),t.cameraInput!=null&&Object.hasOwnProperty.call(t,"cameraInput")&&$root.CameraInput.encode(t.cameraInput,c.uint32(362).fork()).ldelim(),t.snow!=null&&Object.hasOwnProperty.call(t,"snow")&&$root.Snow.encode(t.snow,c.uint32(370).fork()).ldelim(),t.heading!=null&&Object.hasOwnProperty.call(t,"heading")&&$root.Heading.encode(t.heading,c.uint32(378).fork()).ldelim(),t.code!=null&&Object.hasOwnProperty.call(t,"code")&&$root.Code.encode(t.code,c.uint32(386).fork()).ldelim(),t.chatInput!=null&&Object.hasOwnProperty.call(t,"chatInput")&&$root.ChatInput.encode(t.chatInput,c.uint32(394).fork()).ldelim(),t.toast!=null&&Object.hasOwnProperty.call(t,"toast")&&$root.Toast.encode(t.toast,c.uint32(402).fork()).ldelim(),t.linkButton!=null&&Object.hasOwnProperty.call(t,"linkButton")&&$root.LinkButton.encode(t.linkButton,c.uint32(410).fork()).ldelim(),t.skeleton!=null&&Object.hasOwnProperty.call(t,"skeleton")&&$root.Skeleton.encode(t.skeleton,c.uint32(418).fork()).ldelim(),t.pageLink!=null&&Object.hasOwnProperty.call(t,"pageLink")&&$root.PageLink.encode(t.pageLink,c.uint32(426).fork()).ldelim(),t.html!=null&&Object.hasOwnProperty.call(t,"html")&&$root.Html.encode(t.html,c.uint32(434).fork()).ldelim(),t.buttonGroup!=null&&Object.hasOwnProperty.call(t,"buttonGroup")&&$root.ButtonGroup.encode(t.buttonGroup,c.uint32(442).fork()).ldelim(),t.audioInput!=null&&Object.hasOwnProperty.call(t,"audioInput")&&$root.AudioInput.encode(t.audioInput,c.uint32(450).fork()).ldelim(),t.heightConfig!=null&&Object.hasOwnProperty.call(t,"heightConfig")&&$root.streamlit.HeightConfig.encode(t.heightConfig,c.uint32(458).fork()).ldelim(),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,c.uint32(466).fork()).ldelim(),t.bidiComponent!=null&&Object.hasOwnProperty.call(t,"bidiComponent")&&$root.BidiComponent.encode(t.bidiComponent,c.uint32(474).fork()).ldelim(),t.space!=null&&Object.hasOwnProperty.call(t,"space")&&$root.Space.encode(t.space,c.uint32(482).fork()).ldelim(),t.textAlignmentConfig!=null&&Object.hasOwnProperty.call(t,"textAlignmentConfig")&&$root.streamlit.TextAlignmentConfig.encode(t.textAlignmentConfig,c.uint32(490).fork()).ldelim(),t.dateTimeInput!=null&&Object.hasOwnProperty.call(t,"dateTimeInput")&&$root.DateTimeInput.encode(t.dateTimeInput,c.uint32(498).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Element;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 57:{y.heightConfig=$root.streamlit.HeightConfig.decode(t,t.uint32());break}case 58:{y.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}case 61:{y.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.decode(t,t.uint32());break}case 30:{y.alert=$root.Alert.decode(t,t.uint32());break}case 40:{y.arrowDataFrame=$root.Arrow.decode(t,t.uint32());break}case 39:{y.arrowTable=$root.Arrow.decode(t,t.uint32());break}case 41:{y.arrowVegaLiteChart=$root.ArrowVegaLiteChart.decode(t,t.uint32());break}case 13:{y.audio=$root.Audio.decode(t,t.uint32());break}case 56:{y.audioInput=$root.AudioInput.decode(t,t.uint32());break}case 12:{y.balloons=$root.Balloons.decode(t,t.uint32());break}case 59:{y.bidiComponent=$root.BidiComponent.decode(t,t.uint32());break}case 17:{y.bokehChart=$root.BokehChart.decode(t,t.uint32());break}case 19:{y.button=$root.Button.decode(t,t.uint32());break}case 55:{y.buttonGroup=$root.ButtonGroup.decode(t,t.uint32());break}case 43:{y.downloadButton=$root.DownloadButton.decode(t,t.uint32());break}case 45:{y.cameraInput=$root.CameraInput.decode(t,t.uint32());break}case 49:{y.chatInput=$root.ChatInput.decode(t,t.uint32());break}case 20:{y.checkbox=$root.Checkbox.decode(t,t.uint32());break}case 35:{y.colorPicker=$root.ColorPicker.decode(t,t.uint32());break}case 37:{y.componentInstance=$root.ComponentInstance.decode(t,t.uint32());break}case 3:{y.dataFrame=$root.DataFrame.decode(t,t.uint32());break}case 11:{y.table=$root.DataFrame.decode(t,t.uint32());break}case 27:{y.dateInput=$root.DateInput.decode(t,t.uint32());break}case 34:{y.deckGlJsonChart=$root.DeckGlJsonChart.decode(t,t.uint32());break}case 7:{y.docString=$root.DocString.decode(t,t.uint32());break}case 2:{y.empty=$root.Empty.decode(t,t.uint32());break}case 8:{y.exception=$root.Exception.decode(t,t.uint32());break}case 36:{y.favicon=$root.Favicon.decode(t,t.uint32());break}case 33:{y.fileUploader=$root.FileUploader.decode(t,t.uint32());break}case 18:{y.graphvizChart=$root.GraphVizChart.decode(t,t.uint32());break}case 54:{y.html=$root.Html.decode(t,t.uint32());break}case 38:{y.iframe=$root.IFrame.decode(t,t.uint32());break}case 6:{y.imgs=$root.ImageList.decode(t,t.uint32());break}case 31:{y.json=$root.Json.decode(t,t.uint32());break}case 51:{y.linkButton=$root.LinkButton.decode(t,t.uint32());break}case 29:{y.markdown=$root.Markdown.decode(t,t.uint32());break}case 42:{y.metric=$root.Metric.decode(t,t.uint32());break}case 28:{y.multiselect=$root.MultiSelect.decode(t,t.uint32());break}case 32:{y.numberInput=$root.NumberInput.decode(t,t.uint32());break}case 53:{y.pageLink=$root.PageLink.decode(t,t.uint32());break}
18case 16:{y.plotlyChart=$root.PlotlyChart.decode(t,t.uint32());break}case 5:{y.progress=$root.Progress.decode(t,t.uint32());break}case 23:{y.radio=$root.Radio.decode(t,t.uint32());break}case 25:{y.selectbox=$root.Selectbox.decode(t,t.uint32());break}case 52:{y.skeleton=$root.Skeleton.decode(t,t.uint32());break}case 21:{y.slider=$root.Slider.decode(t,t.uint32());break}case 46:{y.snow=$root.Snow.decode(t,t.uint32());break}case 60:{y.space=$root.Space.decode(t,t.uint32());break}case 44:{y.spinner=$root.Spinner.decode(t,t.uint32());break}case 1:{y.text=$root.Text.decode(t,t.uint32());break}case 22:{y.textArea=$root.TextArea.decode(t,t.uint32());break}case 24:{y.textInput=$root.TextInput.decode(t,t.uint32());break}case 26:{y.timeInput=$root.TimeInput.decode(t,t.uint32());break}case 62:{y.dateTimeInput=$root.DateTimeInput.decode(t,t.uint32());break}case 50:{y.toast=$root.Toast.decode(t,t.uint32());break}case 10:{y.vegaLiteChart=$root.VegaLiteChart.decode(t,t.uint32());break}case 14:{y.video=$root.Video.decode(t,t.uint32());break}case 47:{y.heading=$root.Heading.decode(t,t.uint32());break}case 48:{y.code=$root.Code.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Element)return t;let c=new $root.Element;if(t.heightConfig!=null){if(typeof t.heightConfig!="object")throw TypeError(".Element.heightConfig: object expected");c.heightConfig=$root.streamlit.HeightConfig.fromObject(t.heightConfig)}if(t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Element.widthConfig: object expected");c.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}if(t.textAlignmentConfig!=null){if(typeof t.textAlignmentConfig!="object")throw TypeError(".Element.textAlignmentConfig: object expected");c.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.fromObject(t.textAlignmentConfig)}if(t.alert!=null){if(typeof t.alert!="object")throw TypeError(".Element.alert: object expected");c.alert=$root.Alert.fromObject(t.alert)}if(t.arrowDataFrame!=null){if(typeof t.arrowDataFrame!="object")throw TypeError(".Element.arrowDataFrame: object expected");c.arrowDataFrame=$root.Arrow.fromObject(t.arrowDataFrame)}if(t.arrowTable!=null){if(typeof t.arrowTable!="object")throw TypeError(".Element.arrowTable: object expected");c.arrowTable=$root.Arrow.fromObject(t.arrowTable)}if(t.arrowVegaLiteChart!=null){if(typeof t.arrowVegaLiteChart!="object")throw TypeError(".Element.arrowVegaLiteChart: object expected");c.arrowVegaLiteChart=$root.ArrowVegaLiteChart.fromObject(t.arrowVegaLiteChart)}if(t.audio!=null){if(typeof t.audio!="object")throw TypeError(".Element.audio: object expected");c.audio=$root.Audio.fromObject(t.audio)}if(t.audioInput!=null){if(typeof t.audioInput!="object")throw TypeError(".Element.audioInput: object expected");c.audioInput=$root.AudioInput.fromObject(t.audioInput)}if(t.balloons!=null){if(typeof t.balloons!="object")throw TypeError(".Element.balloons: object expected");c.balloons=$root.Balloons.fromObject(t.balloons)}if(t.bidiComponent!=null){if(typeof t.bidiComponent!="object")throw TypeError(".Element.bidiComponent: object expected");c.bidiComponent=$root.BidiComponent.fromObject(t.bidiComponent)}if(t.bokehChart!=null){if(typeof t.bokehChart!="object")throw TypeError(".Element.bokehChart: object expected");c.bokehChart=$root.BokehChart.fromObject(t.bokehChart)}if(t.button!=null){if(typeof t.button!="object")throw TypeError(".Element.button: object expected");c.button=$root.Button.fromObject(t.button)}if(t.buttonGroup!=null){if(typeof t.buttonGroup!="object")throw TypeError(".Element.buttonGroup: object expected");c.buttonGroup=$root.ButtonGroup.fromObject(t.buttonGroup)}if(t.downloadButton!=null){if(typeof t.downloadButton!="object")throw TypeError(".Element.downloadButton: object expected");c.downloadButton=$root.DownloadButton.fromObject(t.downloadButton)}if(t.cameraInput!=null){if(typeof t.cameraInput!="object")throw TypeError(".Element.cameraInput: object expected");c.cameraInput=$root.CameraInput.fromObject(t.cameraInput)}if(t.chatInput!=null){if(typeof t.chatInput!="object")throw TypeError(".Element.chatInput: object expected");c.chatInput=$root.ChatInput.fromObject(t.chatInput)}if(t.checkbox!=null){if(typeof t.checkbox!="object")throw TypeError(".Element.checkbox: object expected");c.checkbox=$root.Checkbox.fromObject(t.checkbox)}if(t.colorPicker!=null){if(typeof t.colorPicker!="object")throw TypeError(".Element.colorPicker: object expected");c.colorPicker=$root.ColorPicker.fromObject(t.colorPicker)}if(t.componentInstance!=null){if(typeof t.componentInstance!="object")throw TypeError(".Element.componentInstance: object expected");c.componentInstance=$root.ComponentInstance.fromObject(t.componentInstance)}if(t.dataFrame!=null){if(typeof t.dataFrame!="object")throw TypeError(".Element.dataFrame: object expected");c.dataFrame=$root.DataFrame.fromObject(t.dataFrame)}if(t.table!=null){if(typeof t.table!="object")throw TypeError(".Element.table: object expected");c.table=$root.DataFrame.fromObject(t.table)}if(t.dateInput!=null){if(typeof t.dateInput!="object")throw TypeError(".Element.dateInput: object expected");c.dateInput=$root.DateInput.fromObject(t.dateInput)}if(t.deckGlJsonChart!=null){if(typeof t.deckGlJsonChart!="object")throw TypeError(".Element.deckGlJsonChart: object expected");c.deckGlJsonChart=$root.DeckGlJsonChart.fromObject(t.deckGlJsonChart)}if(t.docString!=null){if(typeof t.docString!="object")throw TypeError(".Element.docString: object expected");c.docString=$root.DocString.fromObject(t.docString)}if(t.empty!=null){if(typeof t.empty!="object")throw TypeError(".Element.empty: object expected");c.empty=$root.Empty.fromObject(t.empty)}if(t.exception!=null){if(typeof t.exception!="object")throw TypeError(".Element.exception: object expected");c.exception=$root.Exception.fromObject(t.exception)}if(t.favicon!=null){if(typeof t.favicon!="object")throw TypeError(".Element.favicon: object expected");c.favicon=$root.Favicon.fromObject(t.favicon)}if(t.fileUploader!=null){if(typeof t.fileUploader!="object")throw TypeError(".Element.fileUploader: object expected");c.fileUploader=$root.FileUploader.fromObject(t.fileUploader)}if(t.graphvizChart!=null){if(typeof t.graphvizChart!="object")throw TypeError(".Element.graphvizChart: object expected");c.graphvizChart=$root.GraphVizChart.fromObject(t.graphvizChart)}if(t.html!=null){if(typeof t.html!="object")throw TypeError(".Element.html: object expected");c.html=$root.Html.fromObject(t.html)}if(t.iframe!=null){if(typeof t.iframe!="object")throw TypeError(".Element.iframe: object expected");c.iframe=$root.IFrame.fromObject(t.iframe)}if(t.imgs!=null){if(typeof t.imgs!="object")throw TypeError(".Element.imgs: object expected");c.imgs=$root.ImageList.fromObject(t.imgs)}if(t.json!=null){if(typeof t.json!="object")throw TypeError(".Element.json: object expected");c.json=$root.Json.fromObject(t.json)}if(t.linkButton!=null){if(typeof t.linkButton!="object")throw TypeError(".Element.linkButton: object expected");c.linkButton=$root.LinkButton.fromObject(t.linkButton)}if(t.markdown!=null){if(typeof t.markdown!="object")throw TypeError(".Element.markdown: object expected");c.markdown=$root.Markdown.fromObject(t.markdown)}if(t.metric!=null){if(typeof t.metric!="object")throw TypeError(".Element.metric: object expected");c.metric=$root.Metric.fromObject(t.metric)}if(t.multiselect!=null){if(typeof t.multiselect!="object")throw TypeError(".Element.multiselect: object expected");c.multiselect=$root.MultiSelect.fromObject(t.multiselect)}if(t.numberInput!=null){if(typeof t.numberInput!="object")throw TypeError(".Element.numberInput: object expected");c.numberInput=$root.NumberInput.fromObject(t.numberInput)}if(t.pageLink!=null){if(typeof t.pageLink!="object")throw TypeError(".Element.pageLink: object expected");c.pageLink=$root.PageLink.fromObject(t.pageLink)}if(t.plotlyChart!=null){if(typeof t.plotlyChart!="object")throw TypeError(".Element.plotlyChart: object expected");
18c.plotlyChart=$root.PlotlyChart.fromObject(t.plotlyChart)}if(t.progress!=null){if(typeof t.progress!="object")throw TypeError(".Element.progress: object expected");c.progress=$root.Progress.fromObject(t.progress)}if(t.radio!=null){if(typeof t.radio!="object")throw TypeError(".Element.radio: object expected");c.radio=$root.Radio.fromObject(t.radio)}if(t.selectbox!=null){if(typeof t.selectbox!="object")throw TypeError(".Element.selectbox: object expected");c.selectbox=$root.Selectbox.fromObject(t.selectbox)}if(t.skeleton!=null){if(typeof t.skeleton!="object")throw TypeError(".Element.skeleton: object expected");c.skeleton=$root.Skeleton.fromObject(t.skeleton)}if(t.slider!=null){if(typeof t.slider!="object")throw TypeError(".Element.slider: object expected");c.slider=$root.Slider.fromObject(t.slider)}if(t.snow!=null){if(typeof t.snow!="object")throw TypeError(".Element.snow: object expected");c.snow=$root.Snow.fromObject(t.snow)}if(t.space!=null){if(typeof t.space!="object")throw TypeError(".Element.space: object expected");c.space=$root.Space.fromObject(t.space)}if(t.spinner!=null){if(typeof t.spinner!="object")throw TypeError(".Element.spinner: object expected");c.spinner=$root.Spinner.fromObject(t.spinner)}if(t.text!=null){if(typeof t.text!="object")throw TypeError(".Element.text: object expected");c.text=$root.Text.fromObject(t.text)}if(t.textArea!=null){if(typeof t.textArea!="object")throw TypeError(".Element.textArea: object expected");c.textArea=$root.TextArea.fromObject(t.textArea)}if(t.textInput!=null){if(typeof t.textInput!="object")throw TypeError(".Element.textInput: object expected");c.textInput=$root.TextInput.fromObject(t.textInput)}if(t.timeInput!=null){if(typeof t.timeInput!="object")throw TypeError(".Element.timeInput: object expected");c.timeInput=$root.TimeInput.fromObject(t.timeInput)}if(t.dateTimeInput!=null){if(typeof t.dateTimeInput!="object")throw TypeError(".Element.dateTimeInput: object expected");c.dateTimeInput=$root.DateTimeInput.fromObject(t.dateTimeInput)}if(t.toast!=null){if(typeof t.toast!="object")throw TypeError(".Element.toast: object expected");c.toast=$root.Toast.fromObject(t.toast)}if(t.vegaLiteChart!=null){if(typeof t.vegaLiteChart!="object")throw TypeError(".Element.vegaLiteChart: object expected");c.vegaLiteChart=$root.VegaLiteChart.fromObject(t.vegaLiteChart)}if(t.video!=null){if(typeof t.video!="object")throw TypeError(".Element.video: object expected");c.video=$root.Video.fromObject(t.video)}if(t.heading!=null){if(typeof t.heading!="object")throw TypeError(".Element.heading: object expected");c.heading=$root.Heading.fromObject(t.heading)}if(t.code!=null){if(typeof t.code!="object")throw TypeError(".Element.code: object expected");c.code=$root.Code.fromObject(t.code)}return c},n.toObject=function(t,c){c||(c={});let p={};return t.text!=null&&t.hasOwnProperty("text")&&(p.text=$root.Text.toObject(t.text,c),c.oneofs&&(p.type="text")),t.empty!=null&&t.hasOwnProperty("empty")&&(p.empty=$root.Empty.toObject(t.empty,c),c.oneofs&&(p.type="empty")),t.dataFrame!=null&&t.hasOwnProperty("dataFrame")&&(p.dataFrame=$root.DataFrame.toObject(t.dataFrame,c),c.oneofs&&(p.type="dataFrame")),t.progress!=null&&t.hasOwnProperty("progress")&&(p.progress=$root.Progress.toObject(t.progress,c),c.oneofs&&(p.type="progress")),t.imgs!=null&&t.hasOwnProperty("imgs")&&(p.imgs=$root.ImageList.toObject(t.imgs,c),c.oneofs&&(p.type="imgs")),t.docString!=null&&t.hasOwnProperty("docString")&&(p.docString=$root.DocString.toObject(t.docString,c),c.oneofs&&(p.type="docString")),t.exception!=null&&t.hasOwnProperty("exception")&&(p.exception=$root.Exception.toObject(t.exception,c),c.oneofs&&(p.type="exception")),t.vegaLiteChart!=null&&t.hasOwnProperty("vegaLiteChart")&&(p.vegaLiteChart=$root.VegaLiteChart.toObject(t.vegaLiteChart,c),c.oneofs&&(p.type="vegaLiteChart")),t.table!=null&&t.hasOwnProperty("table")&&(p.table=$root.DataFrame.toObject(t.table,c),c.oneofs&&(p.type="table")),t.balloons!=null&&t.hasOwnProperty("balloons")&&(p.balloons=$root.Balloons.toObject(t.balloons,c),c.oneofs&&(p.type="balloons")),t.audio!=null&&t.hasOwnProperty("audio")&&(p.audio=$root.Audio.toObject(t.audio,c),c.oneofs&&(p.type="audio")),t.video!=null&&t.hasOwnProperty("video")&&(p.video=$root.Video.toObject(t.video,c),c.oneofs&&(p.type="video")),t.plotlyChart!=null&&t.hasOwnProperty("plotlyChart")&&(p.plotlyChart=$root.PlotlyC
18hart.toObject(t.plotlyChart,c),c.oneofs&&(p.type="plotlyChart")),t.bokehChart!=null&&t.hasOwnProperty("bokehChart")&&(p.bokehChart=$root.BokehChart.toObject(t.bokehChart,c),c.oneofs&&(p.type="bokehChart")),t.graphvizChart!=null&&t.hasOwnProperty("graphvizChart")&&(p.graphvizChart=$root.GraphVizChart.toObject(t.graphvizChart,c),c.oneofs&&(p.type="graphvizChart")),t.button!=null&&t.hasOwnProperty("button")&&(p.button=$root.Button.toObject(t.button,c),c.oneofs&&(p.type="button")),t.checkbox!=null&&t.hasOwnProperty("checkbox")&&(p.checkbox=$root.Checkbox.toObject(t.checkbox,c),c.oneofs&&(p.type="checkbox")),t.slider!=null&&t.hasOwnProperty("slider")&&(p.slider=$root.Slider.toObject(t.slider,c),c.oneofs&&(p.type="slider")),t.textArea!=null&&t.hasOwnProperty("textArea")&&(p.textArea=$root.TextArea.toObject(t.textArea,c),c.oneofs&&(p.type="textArea")),t.radio!=null&&t.hasOwnProperty("radio")&&(p.radio=$root.Radio.toObject(t.radio,c),c.oneofs&&(p.type="radio")),t.textInput!=null&&t.hasOwnProperty("textInput")&&(p.textInput=$root.TextInput.toObject(t.textInput,c),c.oneofs&&(p.type="textInput")),t.selectbox!=null&&t.hasOwnProperty("selectbox")&&(p.selectbox=$root.Selectbox.toObject(t.selectbox,c),c.oneofs&&(p.type="selectbox")),t.timeInput!=null&&t.hasOwnProperty("timeInput")&&(p.timeInput=$root.TimeInput.toObject(t.timeInput,c),c.oneofs&&(p.type="timeInput")),t.dateInput!=null&&t.hasOwnProperty("dateInput")&&(p.dateInput=$root.DateInput.toObject(t.dateInput,c),c.oneofs&&(p.type="dateInput")),t.multiselect!=null&&t.hasOwnProperty("multiselect")&&(p.multiselect=$root.MultiSelect.toObject(t.multiselect,c),c.oneofs&&(p.type="multiselect")),t.markdown!=null&&t.hasOwnProperty("markdown")&&(p.markdown=$root.Markdown.toObject(t.markdown,c),c.oneofs&&(p.type="markdown")),t.alert!=null&&t.hasOwnProperty("alert")&&(p.alert=$root.Alert.toObject(t.alert,c),c.oneofs&&(p.type="alert")),t.json!=null&&t.hasOwnProperty("json")&&(p.json=$root.Json.toObject(t.json,c),c.oneofs&&(p.type="json")),t.numberInput!=null&&t.hasOwnProperty("numberInput")&&(p.numberInput=$root.NumberInput.toObject(t.numberInput,c),c.oneofs&&(p.type="numberInput")),t.fileUploader!=null&&t.hasOwnProperty("fileUploader")&&(p.fileUploader=$root.FileUploader.toObject(t.fileUploader,c),c.oneofs&&(p.type="fileUploader")),t.deckGlJsonChart!=null&&t.hasOwnProperty("deckGlJsonChart")&&(p.deckGlJsonChart=$root.DeckGlJsonChart.toObject(t.deckGlJsonChart,c),c.oneofs&&(p.type="deckGlJsonChart")),t.colorPicker!=null&&t.hasOwnProperty("colorPicker")&&(p.colorPicker=$root.ColorPicker.toObject(t.colorPicker,c),c.oneofs&&(p.type="colorPicker")),t.favicon!=null&&t.hasOwnProperty("favicon")&&(p.favicon=$root.Favicon.toObject(t.favicon,c),c.oneofs&&(p.type="favicon")),t.componentInstance!=null&&t.hasOwnProperty("componentInstance")&&(p.componentInstance=$root.ComponentInstance.toObject(t.componentInstance,c),c.oneofs&&(p.type="componentInstance")),t.iframe!=null&&t.hasOwnProperty("iframe")&&(p.iframe=$root.IFrame.toObject(t.iframe,c),c.oneofs&&(p.type="iframe")),t.arrowTable!=null&&t.hasOwnProperty("arrowTable")&&(p.arrowTable=$root.Arrow.toObject(t.arrowTable,c),c.oneofs&&(p.type="arrowTable")),t.arrowDataFrame!=null&&t.hasOwnProperty("arrowDataFrame")&&(p.arrowDataFrame=$root.Arrow.toObject(t.arrowDataFrame,c),c.oneofs&&(p.type="arrowDataFrame")),t.arrowVegaLiteChart!=null&&t.hasOwnProperty("arrowVegaLiteChart")&&(p.arrowVegaLiteChart=$root.ArrowVegaLiteChart.toObject(t.arrowVegaLiteChart,c),c.oneofs&&(p.type="arrowVegaLiteChart")),t.metric!=null&&t.hasOwnProperty("metric")&&(p.metric=$root.Metric.toObject(t.metric,c),c.oneofs&&(p.type="metric")),t.downloadButton!=null&&t.hasOwnProperty("downloadButton")&&(p.downloadButton=$root.DownloadButton.toObject(t.downloadButton,c),c.oneofs&&(p.type="downloadButton")),t.spinner!=null&&t.hasOwnProperty("spinner")&&(p.spinner=$root.Spinner.toObject(t.spinner,c),c.oneofs&&(p.type="spinner")),t.cameraInput!=null&&t.hasOwnProperty("cameraInput")&&(p.cameraInput=$root.CameraInput.toObject(t.cameraInput,c),c.oneofs&&(p.type="cameraInput")),t.snow!=null&&t.hasOwnProperty("snow")&&(p.snow=$root.Snow.toObject(t.snow,c),c.oneofs&&(p.type="snow")),t.heading!=null&&t.hasOwnProperty("heading")&&(p.heading=$root.Heading.toObject(t.heading,c),c.oneofs&&(p.type="heading")),t.code!=null&&t.hasOwnProperty("code")&&(p.code=$root.Code.toObject(t.code,c),c.oneofs&&(p.type="code")),t.chatInput!=null&&t.hasOwnProperty("chatInput")&&(p.chatInput=$root.ChatInput.toObject(t.chatInput,c),c.oneofs&&(p.type="chatInput")),t.toast!=null&&t.hasOwnProperty("toast")&&(p.toast=$root.Toast.toObject(t.toast,c),c.oneofs&&(p.type="toast")),t.linkButton!=null&&t.hasOwnProperty("linkButton")&&(p.linkButton=$root.LinkButton.toObject(t.linkButton,c),c.oneofs&&(p.type="linkButton")),t.skeleton!=null&&t.hasOwnProperty("skeleton")&&(p.skeleton=$root.Skeleton.toObject(t.skeleton,c),c.oneofs&&(p.type="skeleton")),t.pageLink!=null&&t.hasOwnProperty("pageLink")&&(p.pageLink=$root.PageLink.toObject(t.pageLink,c),c.oneofs&&(p.type="pageLink")),t.html!=null&&t.hasOwnProperty("html")&&(p.html=$root.Html.toObject(t.html,c),c.oneofs&&(p.type="html")),t.buttonGroup!=null&&t.hasOwnProperty("buttonGroup")&&(p.buttonGroup=$root.ButtonGroup.toObject(t.buttonGroup,c),c.oneofs&&(p.type="buttonGroup")),t.audio
18Input!=null&&t.hasOwnProperty("audioInput")&&(p.audioInput=$root.AudioInput.toObject(t.audioInput,c),c.oneofs&&(p.type="audioInput")),t.heightConfig!=null&&t.hasOwnProperty("heightConfig")&&(p.heightConfig=$root.streamlit.HeightConfig.toObject(t.heightConfig,c),c.oneofs&&(p._heightConfig="heightConfig")),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(p.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,c),c.oneofs&&(p._widthConfig="widthConfig")),t.bidiComponent!=null&&t.hasOwnProperty("bidiComponent")&&(p.bidiComponent=$root.BidiComponent.toObject(t.bidiComponent,c),c.oneofs&&(p.type="bidiComponent")),t.space!=null&&t.hasOwnProperty("space")&&(p.space=$root.Space.toObject(t.space,c),c.oneofs&&(p.type="space")),t.textAlignmentConfig!=null&&t.hasOwnProperty("textAlignmentConfig")&&(p.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.toObject(t.textAlignmentConfig,c),c.oneofs&&(p._textAlignmentConfig="textAlignmentConfig")),t.dateTimeInput!=null&&t.hasOwnProperty("dateTimeInput")&&(p.dateTimeInput=$root.DateTimeInput.toObject(t.dateTimeInput,c),c.oneofs&&(p.type="dateTimeInput")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Element"},n})();$root.DownloadButton=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.url="",n.prototype.disabled=!1,n.prototype.useContainerWidth=!1,n.prototype.type="",n.prototype.icon="",n.prototype.ignoreRerun=!1,n.prototype.deferredFileId=null,n.prototype.shortcut="";let o;return Object.defineProperty(n.prototype,"_deferredFileId",{get:$util.oneOfGetter(o=["deferredFileId"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&c.uint32(24).bool(t.default),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(34).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(42).string(t.formId),t.url
18!=null&&Object.hasOwnProperty.call(t,"url")&&c.uint32(50).string(t.url),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(56).bool(t.disabled),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&c.uint32(64).bool(t.useContainerWidth),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&c.uint32(74).string(t.type),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&c.uint32(82).string(t.icon),t.ignoreRerun!=null&&Object.hasOwnProperty.call(t,"ignoreRerun")&&c.uint32(88).bool(t.ignoreRerun),t.deferredFileId!=null&&Object.hasOwnProperty.call(t,"deferredFileId")&&c.uint32(98).string(t.deferredFileId),t.shortcut!=null&&Object.hasOwnProperty.call(t,"shortcut")&&c.uint32(106).string(t.shortcut),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.DownloadButton;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.label=t.string();break}case 3:{y.default=t.bool();break}case 4:{y.help=t.string();break}case 5:{y.formId=t.string();break}case 6:{y.url=t.string();break}case 7:{y.disabled=t.bool();break}case 8:{y.useContainerWidth=t.bool();break}case 9:{y.type=t.string();break}case 10:{y.icon=t.string();break}case 11:{y.ignoreRerun=t.bool();break}case 12:{y.deferredFileId=t.string();break}case 13:{y.shortcut=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.DownloadButton)return t;let c=new $root.DownloadButton;return t.id!=null&&(c.id=String(t.id)),t.label!=null&&(c.label=String(t.label)),t.default!=null&&(c.default=!!t.default),t.help!=null&&(c.help=String(t.help)),t.formId!=null&&(c.formId=String(t.formId)),t.url!=null&&(c.url=String(t.url)),t.disabled!=null&&(c.disabled=!!t.disabled),t.useContainerWidth!=null&&(c.useContainerWidth=!!t.useContainerWidth),t.type!=null&&(c.type=String(t.type)),t.icon!=null&&(c.icon=String(t.icon)),t.ignoreRerun!=null&&(c.ignoreRerun=!!t.ignoreRerun),t.deferredFileId!=null&&(c.deferredFileId=String(t.deferredFileId)),t.shortcut!=null&&(c.shortcut=String(t.shortcut)),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.id="",p.label="",p.default=!1,p.help="",p.formId="",p.url="",p.disabled=!1,p.useContainerWidth=!1,p.type="",p.icon="",p.ignoreRerun=!1,p.shortcut=""),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(p.default=t.default),t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.url
18!=null&&t.hasOwnProperty("url")&&(p.url=t.url),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(p.useContainerWidth=t.useContainerWidth),t.type!=null&&t.hasOwnProperty("type")&&(p.type=t.type),t.icon!=null&&t.hasOwnProperty("icon")&&(p.icon=t.icon),t.ignoreRerun!=null&&t.hasOwnProperty("ignoreRerun")&&(p.ignoreRerun=t.ignoreRerun),t.deferredFileId!=null&&t.hasOwnProperty("deferredFileId")&&(p.deferredFileId=t.deferredFileId,c.oneofs&&(p._deferredFileId="deferredFileId")),t.shortcut!=null&&t.hasOwnProperty("shortcut")&&(p.shortcut=t.shortcut),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/DownloadButton"},n})();$root.DocString=(()=>{function n(o){if(this.members=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.docString="",n.prototype.type="",n.prototype.name="",n.prototype.value="",n.prototype.members=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.docString!=null&&Object.hasOwnProperty.call(e,"docString")&&t.uint32(26).string(e.docString),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(34).string(e.type),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(50).string(e.name),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(58).string(e.value),e.members!=null&&e.members.length)for(let c=0;c<e.members.length;++c)$root.Member.encode(e.members[c],t.uint32(66).fork()).ldelim();return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.DocString;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 3:{h.docString=e.string();break}case 4:{h.type=e.string();break}case 6:{h.name=e.string();break}case 7:{h.value=e.string();break}case 8:{h.members&&h.members.length||(h.members=[]),h.members.push($root.Member.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DocString)return e;let t=new $root.DocString;if(e.docString!=null&&(t.docString=String(e.docString)),e.type!=null&&(t.type=String(e.type)),e.name!=null&&(t.name=String(e.name)),e.value!=null&&(t.value=String(e.value)),e.members){if(!Array.isArray(e.members))throw TypeError(".DocString.members: array expected");t.members=[];for(let c=0;c<e.members.length;++c){if(typeof e.members[c]!="object")throw TypeError(".DocString.members: object expected");t.members[c]=$root.Member.fromObject(e.members[c])}}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.members=[]),t.defaults&&(c.docString="",c.type="",c.name="",c.value=""),e.docString!=null&&e.hasOwnProperty("docString")&&(c.docString=e.docString),e.type!=null&&e.hasOwnProperty("type")&&(c.type=e.type),e.name!=null&&e.hasOwnProperty("name")&&(c.name=e.name),e.value!=null&&e.hasOwnProperty("value")&&(c.value=e.value),e.members&&e.members.length){c.members=[];for(let p=0;p<e.members.length;++p)c.members[p]=$root.Member.toObject(e.members[p],t)}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DocString"},n})();$root.Member=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.name="",n.prototype.type="",n.prototype.value=null,n.prototype.docString=null;let o;return Object.defineProperty(n.prototype,"contents",{get:$util.oneOfGetter(o=["value","docString"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&c.uint32(10).string(t.name),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&c.uint32(18).string(t.type),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&c.uint32(26).string(t.value),t.docString!=null&&Object.hasOwnProperty.call(t,"docString")&&c.uint32(34).string(t.docString),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Member;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.name=t.string();break}case 2:{y.type=t.string();break}case 3:{y.value=t.string();break}case 4:{y.docString=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Member)return t;let c=new $root.Member;
18return t.name!=null&&(c.name=String(t.name)),t.type!=null&&(c.type=String(t.type)),t.value!=null&&(c.value=String(t.value)),t.docString!=null&&(c.docString=String(t.docString)),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.name="",p.type=""),t.name!=null&&t.hasOwnProperty("name")&&(p.name=t.name),t.type!=null&&t.hasOwnProperty("type")&&(p.type=t.type),t.value!=null&&t.hasOwnProperty("value")&&(p.value=t.value,c.oneofs&&(p.contents="value")),t.docString!=null&&t.hasOwnProperty("docString")&&(p.docString=t.docString,c.oneofs&&(p.contents="docString")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Member"},n})();$root.Empty=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Empty;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){default:e.skipType(y&7);break}}return h},n.fromObject=function(e){return e instanceof $root.Empty?e:new $root.Empty},n.toObject=function(){return{}},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Empty"},n})();$root.Exception=(()=>{function n(o){if(this.stackTrace=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.type="",n.prototype.message="",n.prototype.messageIsMarkdown=!1,n.prototype.stackTrace=$util.emptyArray,n.prototype.isWarning=!1,n.prototype.widthConfig=null,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),e.message!=null&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),e.stackTrace!=null&&e.stackTrace.length)for(let c=0;c<e.stackTrace.length;++c)t.uint32(26).string(e.stackTrace[c]);return e.messageIsMarkdown!=null&&Object.hasOwnProperty.call(e,"messageIsMarkdown")&&t.uint32(32).bool(e.messageIsMarkdown),e.isWarning!=null&&Object.hasOwnProperty.call(e,"isWarning")&&t.uint32(40).bool(e.isWarning),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(50).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Exception;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.type=e.string();break}case 2:{h.message=e.string();break}case 4:{h.messageIsMarkdown=e.bool();break}case 3:{h.stackTrace&&h.stackTrace.length||(h.stackTrace=[]),h.stackTrace.push(e.string());break}case 5:{h.isWarning=e.bool();break}case 6:{h.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Exception)return e;let t=new $root.Exception;if(e.type!=null&&(t.type=String(e.type)),e.message!=null&&(t.message=String(e.message)),e.messageIsMarkdown!=null&&(t.messageIsMarkdown=!!e.messageIsMarkdown),e.stackTrace){if(!Array.isArray(e.stackTrace))throw TypeError(".Exception.stackTrace: array expected");t.stackTrace=[];for(let c=0;c<e.stackTrace.length;++c)t.stackTrace[c]=String(e.stackTrace[c])}if(e.isWarning!=null&&(t.isWarning=!!e.isWarning),e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Exception.widthConfig: object expected");t.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.stackTrace=[]),t.defaults&&(c.type="",c.message="",c.messageIsMarkdown=!1,c.isWarning=!1,c.widthConfig=null),e.type!=null&&e.hasOwnProperty("type")&&(c.type=e.type),e.message!=null&&e.hasOwnProperty("message")&&(c.message=e.message),e.stackTrace&&e.stackTrace.length){c.stackTrace=[];for(let p=0;p<e.stackTrace.length;++p)c.stackTrace[p]=e.stackTrace[p]}return e.messageIsMarkdown!=null&&e.hasOwnProperty("messageIsMarkdown")&&(c.messageIsMarkdown=e.messageIsMarkdown),e.isWarning!=null&&e.hasOwnProperty("isWarning")&&(c.isWarning=e.isWarning),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(c.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Exception"},n})();$root.Favicon=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Favicon;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.url=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Favicon)return e;let t=new $root.Favicon;return e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.url=""),e.url!=null&&e.hasOwnProperty("url")&&(c.url=e.url),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Favicon"},n})();$root.FileUploader=(()=>
18{function n(o){if(this.type=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.type=$util.emptyArray,n.prototype.maxUploadSizeMb=0,n.prototype.multipleFiles=!1,n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.acceptDirectory=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.type!=null&&e.type.length)for(let c=0;c<e.type.length;++c)t.uint32(26).string(e.type[c]);return e.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(e,"maxUploadSizeMb")&&t.uint32(32).int32(e.maxUploadSizeMb),e.multipleFiles!=null&&Object.hasOwnProperty.call(e,"multipleFiles")&&t.uint32(48).bool(e.multipleFiles),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),e.acceptDirectory!=null&&Object.hasOwnProperty.call(e,"acceptDirectory")&&t.uint32(88).bool(e.acceptDirectory),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.FileUploader;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.type&&h.type.length||(h.type=[]),h.type.push(e.string());break}case 4:{h.maxUploadSizeMb=e.int32();break}case 6:{h.multipleFiles=e.bool();break}case 7:{h.help=e.string();break}case 8:{h.formId=e.string();break}case 9:{h.disabled=e.bool();break}case 10:{h.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 11:{h.acceptDirectory=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.FileUploader)return e;let t=new $root.FileUploader;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.type){if(!Array.isArray(e.type))throw TypeError(".FileUploader.type: array expected");t.type=[];for(let c=0;c<e.type.length;++c)t.type[c]=String(e.type[c])}if(e.maxUploadSizeMb!=null&&(t.maxUploadSizeMb=e.maxUploadSizeMb|0),e.multipleFiles!=null&&(t.multipleFiles=!!e.multipleFiles),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".FileUploader.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}return e.acceptDirectory!=null&&(t.acceptDirectory=!!e.acceptDirectory),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.type=[]),t.defaults&&(c.id="",c.label="",c.maxUploadSizeMb=0,c.multipleFiles=!1,c.help="",c.formId="",c.disabled=!1,c.labelVisibility=null,c.acceptDirectory=!1),e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.type&&e.type.length){c.type=[];for(let p=0;p<e.type.length;++p)c.type[p]=e.type[p]}return e.maxUploadSizeMb!=null&&e.hasOwnProperty("maxUploadSizeMb")&&(c.maxUploadSizeMb=e.maxUploadSizeMb),e.multipleFiles!=null&&e.hasOwnProperty("multipleFiles")&&(c.multipleFiles=e.multipleFiles),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(c.formId=e.formId),e.disabled!=null&&e.hasOwnProperty("disabled")&&(c.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(c.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.acceptDirectory!=null&&e.hasOwnProperty("acceptDirectory")&&(c.acceptDirectory=e.acceptDirectory),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileUploader"},n})();$root.GraphVizChart=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.spec="",n.prototype.useContainerWidth=!1,n.prototype.elementId="",n.prototype.engine="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(32).bool(e.useContainerWidth),e.elementId!=null&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(42).string(e.elementId),e.engine!=null&&Object.hasOwnProperty.call(e,"engine")&&t.uint32(50).string(e.engine),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.GraphVizChart;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.spec=e.string();break}case 4:{h.useContainerWidth=e.bool();break}case 5:{h.elementId=e.string();break}case 6:{h.engine=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.GraphVizChart)return e;let t=new $root.GraphVizChart;return e.spec!=null&&(t.spec=String(e.spec)),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.elementId!=null&&(t.elementId=String(e.elementId)),e.engine!=null&&(t.engine=String(e.engine)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.spec="",c.useContainerWidth=!1,c.elementId="",c.engine=""),e.spec!=null&&e.hasOwnProperty("spec")&&(c.spec=e.spec),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(c.useContainerWidth=e.useContainerWidth),e.elementId!=null&&e.hasOwnProperty("elementId")&&(c.elementId=e.elementId),e.engine!=null&&e.hasOwnProperty("engine")&&(c.engine=e.engine),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/GraphVizChart"},n})();$root.Html=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.body="",n.prototype.unsafeAllowJavascript=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.unsafeAllowJavascript!=null&&Object.hasOwnProperty.call(e,"unsafeAllowJavascript")&&t.uint32(16).bool(e.unsafeAllowJavascript),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Html;
18for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.body=e.string();break}case 2:{h.unsafeAllowJavascript=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Html)return e;let t=new $root.Html;return e.body!=null&&(t.body=String(e.body)),e.unsafeAllowJavascript!=null&&(t.unsafeAllowJavascript=!!e.unsafeAllowJavascript),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.body="",c.unsafeAllowJavascript=!1),e.body!=null&&e.hasOwnProperty("body")&&(c.body=e.body),e.unsafeAllowJavascript!=null&&e.hasOwnProperty("unsafeAllowJavascript")&&(c.unsafeAllowJavascript=e.unsafeAllowJavascript),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Html"},n})();$root.IFrame=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.src=null,n.prototype.srcdoc=null,n.prototype.width=0,n.prototype.hasWidth=!1,n.prototype.height=0,n.prototype.scrolling=!1,n.prototype.tabIndex=null;let o;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(o=["src","srcdoc"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_tabIndex",{get:$util.oneOfGetter(o=["tabIndex"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.src!=null&&Object.hasOwnProperty.call(t,"src")&&c.uint32(10).string(t.src),t.srcdoc!=null&&Object.hasOwnProperty.call(t,"srcdoc")&&c.uint32(18).string(t.srcdoc),t.width!=null&&Object.hasOwnProperty.call(t,"width")&&c.uint32(29).float(t.width),t.hasWidth!=null&&Object.hasOwnProperty.call(t,"hasWidth")&&c.uint32(32).bool(t.hasWidth),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&c.uint32(45).float(t.height),t.scrolling!=null&&Object.hasOwnProperty.call(t,"scrolling")&&c.uint32(56).bool(t.scrolling),t.tabIndex!=null&&Object.hasOwnProperty.call(t,"tabIndex")&&c.uint32(64).int32(t.tabIndex),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.IFrame;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.src=t.string();break}case 2:{y.srcdoc=t.string();break}case 3:{y.width=t.float();break}case 4:{y.hasWidth=t.bool();break}case 5:{y.height=t.float();break}case 7:{y.scrolling=t.bool();break}case 8:{y.tabIndex=t.int32();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.IFrame)return t;let c=new $root.IFrame;return t.src!=null&&(c.src=String(t.src)),t.srcdoc!=null&&(c.srcdoc=String(t.srcdoc)),t.width!=null&&(c.width=Number(t.width)),t.hasWidth!=null&&(c.hasWidth=!!t.hasWidth),t.height!=null&&(c.height=Number(t.height)),t.scrolling!=null&&(c.scrolling=!!t.scrolling),t.tabIndex!=null&&(c.tabIndex=t.tabIndex|0),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.width=0,p.hasWidth=!1,p.height=0,p.scrolling=!1),t.src!=null&&t.hasOwnProperty("src")&&(p.src=t.src,c.oneofs&&(p.type="src")),t.srcdoc!=null&&t.hasOwnProperty("srcdoc")&&(p.srcdoc=t.srcdoc,c.oneofs&&(p.type="srcdoc")),t.width!=null&&t.hasOwnProperty("width")&&(p.width=c.json&&!isFinite(t.width)?String(t.width):t.width),t.hasWidth!=null&&t.hasOwnProperty("hasWidth")&&(p.hasWidth=t.hasWidth),t.height!=null&&t.hasOwnProperty("height")&&(p.height=c.json&&!isFinite(t.height)?String(t.height):t.height),t.scrolling!=null&&t.hasOwnProperty("scrolling")&&(p.scrolling=t.scrolling),t.tabIndex!=null&&t.hasOwnProperty("tabIndex")&&(p.tabIndex=t.tabIndex,c.oneofs&&(p._tabIndex="tabIndex")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/IFrame"},n})();$root.Image=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.url="",n.prototype.caption="",n.prototype.markup="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(26).string(e.url),e.markup!=null&&Object.hasOwnProperty.call(e,"markup")&&t.uint32(34).string(e.markup),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Image;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 3:{h.url=e.string();break}case 2:{h.caption=e.string();break}case 4:{h.markup=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Image)return e;let t=new $root.Image;return e.url!=null&&(t.url=String(e.url)),e.caption!=null&&(t.caption=String(e.caption)),e.markup!=null&&(t.markup=String(e.markup)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.caption="",c.url="",c.markup=""),e.caption!=null&&e.hasOwnProperty("caption")&&(c.caption=e.caption),e.url!=null&&e.hasOwnProperty("url")&&(c.url=e.url),e.markup!=null&&e.hasOwnProperty("markup")&&(c.markup=e.markup),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Image"},n})();$root.ImageList=(()=>{function n(o){if(this.imgs=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.imgs=$util.emptyArray,n.prototype.width=0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.imgs!=null&&e.imgs.length)for(let c=0;c<e.imgs.length;++c)$root.Image.encode(e.imgs[c],t.uint32(10).fork()).ldelim();return e.width!=null&&Object.hasOwnProperty.call(e,"width")&&t.uint32(16).int32(e.width),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ImageList;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.imgs&&h.imgs.length||(h.imgs=[]),h.imgs.push($root.Image.decode(e,e.uint32()));break}case 2:{h.width=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ImageList)return e;let t=new $root.ImageList;if(e.imgs){if(!Array.isArray(e.imgs))throw TypeError(".ImageList.imgs: array expected");t.imgs=[];for(let c=0;c<e.imgs.length;++c){if(typeof e.imgs[c]!="object")throw TypeError(".ImageList.imgs: object expected");t.imgs[c]=$root.Image.fromObject(e.imgs[c])}}return e.width!=null&&(t.width=e.width|0),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.imgs=[]),t.defaults&&(c.width=0),e.imgs&&e.imgs.length){c.imgs=[];for(let p=0;p<e.imgs.length;++p)c.imgs[p]=$root.Image.toObject(e.imgs[p],t)}return e.width!=null&&e.hasOwnProperty("width")&&(c.width=e.width),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ImageList"},n})();$root.Json=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.body="",n.prototype.expanded=!1,n.prototype.maxExpandDepth=null;let o;return Object.defineProperty(n.prototype,"_maxExpandDepth",{get:$util.oneOfGetter(o=["maxExpandDepth"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&c.uint32(10).string(t.body),t.expanded!=null&&Object.hasOwnProperty.call(t,"expanded")&&c.uint32(16).bool(t.expanded),t.maxExpandDepth!=null&&Object.hasOwnProperty.call(t,"maxExpandDepth")&&c.uint32(24).int32(t.maxExpandDepth),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Json;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.body=t.string();break}case 2:{y.expanded=t.bool();break}case 3:{y.maxExpandDepth=t.int32();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Json)return t;let c=new $root.Json;return t.body!=null&&(c.body=String(t.body)),t.expanded!=null&&(c.expanded=!!t.expanded),t.maxExpandDepth!=null&&(c.maxExpandDepth=t.maxExpandDepth|0),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.body="",p.expanded=!1),t.body!=null&&t.hasOwnProperty("body")&&(p.body=t.body),t.expanded!=null&&t.hasOwnProperty("expanded")&&(p.expanded=t.expanded),t.maxExpandDepth!=null&&t.hasOwnProperty("maxExpandDepth")&&(p.maxExpandDepth=t.maxExpandDepth,c.oneofs&&(p._maxExpandDepth="maxExpandDepth")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Json"},n})();$root.LinkButton=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.url="",n.prototype.disabled=!1,n.prototype.useContainerWidth=!1,n.prototype.type="",n.prototype.icon="",n.prototype.shortcut="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(50).string(e.url),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(56).bool(e.disabled),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(64).bool(e.useContainerWidth),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(74).string(e.type),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(82).string(e.icon),e.shortcut!=null&&Object.hasOwnProperty.call(e,"shortcut")&&t.uint32(90).string(e.shortcut),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.LinkButton;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 4:{h.help=e.string();break}case 6:{h.url=e.string();break}case 7:{h.disabled=e.bool();break}case 8:{h.useContainerWidth=e.bool();break}case 9:{h.type=e.string();break}case 10:{h.icon=e.string();break}case 11:{h.shortcut=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.LinkButton)return e;let t=new $root.LinkButton;return e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.help!=null&&(t.help=String(e.help)),e.url!=null&&(t.url=String(e.url)),e.disabled!=null&&(t.disabled=!!e.disabled),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.type!=null&&(t.type=String(e.type)),e.icon!=null&&(t.icon=String(e.icon)),e.shortcut!=null&&(t.shortcut=String(e.shortcut)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.id="",c.label="",c.help="",c.url="",c.disabled=!1,c.useContainerWidth=!1,c.type="",c.icon="",c.shortcut=""),e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.url!=null&&e.hasOwnProperty("url")&&(c.url=e.url),e.disabled!=null&&e.hasOwnProperty("disabled")&&(c.disabled=e.disabled),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(c.useContainerWidth=e.useContainerWidth),e.type!=null&&e.hasOwnProperty("type")&&(c.type=e.type),e.icon!=null&&e.hasOwnProperty("icon")&&(c.icon=e.icon),e.shortcut!=null&&e.hasOwnProperty("shortcut")&&(c.shortcut=e.shortcut),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/LinkButton"},n})();const NumberInput$1=$root.NumberInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.label="",n.prototype.formId="",n.prototype.format="",n.prototype.hasMin=!1,n.prototype.hasMax=!1,n.prototype.dataType=0,n.prototype.default=null,n.prototype.step=0,n.prototype.min=0,n.prototype.max=0,n.prototype.help="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.placeholder="",n.prototype.icon="";let o;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(o=["default"]),set:$util.oneOfSetter(o
18)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(o=["value"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(18).string(t.label),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(26).string(t.formId),t.format!=null&&Object.hasOwnProperty.call(t,"format")&&c.uint32(66).string(t.format),t.hasMin!=null&&Object.hasOwnProperty.call(t,"hasMin")&&c.uint32(88).bool(t.hasMin),t.hasMax!=null&&Object.hasOwnProperty.call(t,"hasMax")&&c.uint32(96).bool(t.hasMax),t.dataType!=null&&Object.hasOwnProperty.call(t,"dataType")&&c.uint32(104).int32(t.dataType),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&c.uint32(113).double(t.default),t.step!=null&&Object.hasOwnProperty.call(t,"step")&&c.uint32(121).double(t.step),t.min!=null&&Object.hasOwnProperty.call(t,"min")&&c.uint32(129).double(t.min),t.max!=null&&Object.hasOwnProperty.call(t,"max")&&c.uint32(137).double(t.max),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(146).string(t.help),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&c.uint32(153).double(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&c.uint32(160).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(168).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,c.uint32(178).fork()).ldelim(),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&c.uint32(186).string(t.placeholder),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&c.uint32(194).string(t.icon),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.NumberInput;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.label=t.string();break}case 3:{y.formId=t.string();break}case 8:{y.format=t.string();break}case 11:{y.hasMin=t.bool();break}case 12:{y.hasMax=t.bool();break}case 13:{y.dataType=t.int32();break}case 14:{y.default=t.double();break}case 15:{y.step=t.double();break}case 16:{y.min=t.double();break}case 17:{y.max=t.double();break}case 18:{y.help=t.string();break}case 19:{y.value=t.double();break}case 20:{y.setValue=t.bool();break}case 21:{y.disabled=t.bool();break}case 22:{y.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 23:{y.placeholder=t.string();break}case 24:{y.icon=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.NumberInput)return t;let c=new $root.NumberInput;switch(t.id!=null&&(c.id=String(t.id)),t.label!=null&&(c.label=String(t.label)),t.formId!=null&&(c.formId=String(t.formId)),t.format!=null&&(c.format=String(t.format)),t.hasMin!=null&&(c.hasMin=!!t.hasMin),t.hasMax!=null&&(c.hasMax=!!t.hasMax),t.dataType){default:if(typeof t.dataType=="number"){c.dataType=t.dataType;break}break;case"INT":case 0:c.dataType=0;break;case"FLOAT":case 1:c.dataType=1;break}if(t.default!=null&&(c.default=Number(t.default)),t.step!=null&&(c.step=Number(t.step)),t.min!=null&&(c.min=Number(t.min)),t.max!=null&&(c.max=Number(t.max)),t.help!=null&&(c.help=String(t.help)),t.value!=null&&(c.value=Number(t.value)),t.setValue!=null&&(c.setValue=!!t.setValue),t.disabled!=null&&(c.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".NumberInput.labelVisibility: object expected");c.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.placeholder!=null&&(c.placeholder=String(t.placeholder)),t.icon!=null&&(c.icon=String(t.icon)),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.id="",p.label="",p.formId="",p.format="",p.hasMin=!1,p.hasMax=!1,p.dataType=c.enums===String?"INT":0,p.step=0,p.min=0,p.max=0,p.help="",p.setValue=!1,p.disabled=!1,p.labelVisibility=null,p.placeholder="",p.icon=""),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.format!=null&&t.hasOwnProperty("format")&&(p.format=t.format),t.hasMin!=null&&t.hasOwnProperty("hasMin")&&(p.hasMin=t.hasMin),t.hasMax!=null&&t.hasOwnProperty("hasMax")&&(p.hasMax=t.hasMax),t.dataType!=null&&t.hasOwnProperty("dataType")&&(p.dataType=c.enums===String?$root.NumberInput.DataType[t.dataType]===void 0?t.dataType:$root.NumberInput.DataType[t.dataType]:t.dataType),t.default!=null&&t.hasOwnProperty("default")&&(p.default=c.json&&!isFinite(t.default)?String(t.default):t.default,c.oneofs&&(p._default="default")),t.step!=null&&t.hasOwnProperty("step")&&(p.step=c.json&&!isFinite(t.step)?String(t.step):t.step),t.min!=null&&t.hasOwnProperty("min")&&(p.min=c.json&&!isFinite(t.min)?String(t.min):t.min),t.max!=null&&t.hasOwnProperty("max")&&(p.max=c.json&&!isFinite(t.max)?String(t.max):t.max),t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.value!=null&&t.hasOwnProperty("value")&&(p.value=c.json&&!isFinite(t.value)?String(t.value):t.value,c.oneofs&&(p._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(p.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(p.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,c)),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(p.placeholder=t.placeholder),t.icon!=null&&t.hasOwnProperty("icon")&&(p.icon=t.icon),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/NumberInput"},n.DataType=function(){const e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t}(),n})(),Markdown$3=$root.Markdown=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.body="",n.prototype.allowHtml=!1,n.prototype.isCaption=!1,n.prototype.elementType=0,n.prototype.help="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.allowHtml!=null&&Object.hasOwnProperty.call(e,"allowHtml")&&t.uint32(16).bool(e.allowHtml),e.isCaption!=null&&Object.hasOwnProperty.call(e,"isCaption")&&t.uint32(24).bool(e.isCaption),e.elementType!=null&&Object.hasOwnProperty.call(e,"elementType")&&t.uint32(32).int32(e.elementType),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Markdown;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.body=e.string();break}case 2:{h.allowHtml=e.bool();break}case 3:{h.isCaption=e.bool();break}case 4:{h.elementType=e.int32();break}case 5:{h.help=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Markdown)return e;let t=new $root.Markdown;switch(e.body!=null&&(t.body=String(e.body)),e.allowHtml!=null&&(t.allowHtml=!!e.allowHtml),e.isCaption!=null&&(t.isCaption=!!e.isCaption),e.elementType){default:if(typeof e.elementType=="number"){t.elementType=e.elementType;break}break;case"UNSPECIFIED":case 0:t.elementType=0;break;case"NATIVE":case 1:t.elementType=1;break;case"CAPTION":case 2:t.elementType=2;break;case"CODE":case 3:t.elementType=3;break;case"LATEX":case 4:t.elementType=4;break;case"DIVIDER":case 5:t.elementType=5;break}return e.help!=null&&(t.help=String(e.help)),t},n.toObject=function(e,t){t||(t={});let c={};
18return t.defaults&&(c.body="",c.allowHtml=!1,c.isCaption=!1,c.elementType=t.enums===String?"UNSPECIFIED":0,c.help=""),e.body!=null&&e.hasOwnProperty("body")&&(c.body=e.body),e.allowHtml!=null&&e.hasOwnProperty("allowHtml")&&(c.allowHtml=e.allowHtml),e.isCaption!=null&&e.hasOwnProperty("isCaption")&&(c.isCaption=e.isCaption),e.elementType!=null&&e.hasOwnProperty("elementType")&&(c.elementType=t.enums===String?$root.Markdown.Type[e.elementType]===void 0?e.elementType:$root.Markdown.Type[e.elementType]:e.elementType),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Markdown"},n.Type=function(){const o={},e=Object.create(o);return e[o[0]="UNSPECIFIED"]=0,e[o[1]="NATIVE"]=1,e[o[2]="CAPTION"]=2,e[o[3]="CODE"]=3,e[o[4]="LATEX"]=4,e[o[5]="DIVIDER"]=5,e}(),n})(),Metric$1=$root.Metric=(()=>{function n(o){if(this.chartData=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.label="",n.prototype.body="",n.prototype.delta="",n.prototype.direction=0,n.prototype.color=0,n.prototype.help="",n.prototype.labelVisibility=null,n.prototype.showBorder=!1,n.prototype.chartData=$util.emptyArray,n.prototype.chartType=0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(18).string(e.body),e.delta!=null&&Object.hasOwnProperty.call(e,"delta")&&t.uint32(26).string(e.delta),e.direction!=null&&Object.hasOwnProperty.call(e,"direction")&&t.uint32(32).int32(e.direction),e.color!=null&&Object.hasOwnProperty.call(e,"color")&&t.uint32(40).int32(e.color),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(58).fork()).ldelim(),e.showBorder!=null&&Object.hasOwnProperty.call(e,"showBorder")&&t.uint32(64).bool(e.showBorder),e.chartData!=null&&e.chartData.length){t.uint32(74).fork();for(let c=0;c<e.chartData.length;++c)t.double(e.chartData[c]);t.ldelim()}return e.chartType!=null&&Object.hasOwnProperty.call(e,"chartType")&&t.uint32(80).int32(e.chartType),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Metric;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.label=e.string();break}case 2:{h.body=e.string();break}case 3:{h.delta=e.string();break}case 4:{h.direction=e.int32();break}case 5:{h.color=e.int32();break}case 6:{h.help=e.string();break}case 7:{h.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 8:{h.showBorder=e.bool();break}case 9:{if(h.chartData&&h.chartData.length||(h.chartData=[]),(y&7)===2){let g=e.uint32()+e.pos;for(;e.pos<g;)h.chartData.push(e.double())}else h.chartData.push(e.double());break}case 10:{h.chartType=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Metric)return e;let t=new $root.Metric;switch(e.label!=null&&(t.label=String(e.label)),e.body!=null&&(t.body=String(e.body)),e.delta!=null&&(t.delta=String(e.delta)),e.direction){default:if(typeof e.direction=="number"){t.direction=e.direction;break}break;case"DOWN":case 0:t.direction=0;break;case"UP":case 1:t.direction=1;break;case"NONE":case 2:t.direction=2;break}switch(e.color){default:if(typeof e.color=="number"){t.color=e.color;break}break;case"RED":case 0:t.color=0;break;case"GREEN":case 1:t.color=1;break;case"GRAY":case 2:t.color=2;break}if(e.help!=null&&(t.help=String(e.help)),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Metric.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}if(e.showBorder!=null&&(t.showBorder=!!e.showBorder),e.chartData){if(!Array.isArray(e.chartData))throw TypeError(".Metric.chartData: array expected");t.chartData=[];for(let c=0;c<e.chartData.length;++c)t.chartData[c]=Number(e.chartData[c])}switch(e.chartType){default:if(typeof e.chartType=="number"){t.chartType=e.chartType;break}break;case"LINE":case 0:t.chartType=0;break;case"BAR":case 1:t.chartType=1;break;case"AREA":case 2:t.chartType=2;break}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.chartData=[]),t.defaults&&(c.label="",c.body="",c.delta="",c.direction=t.enums===String?"DOWN":0,c.color=t.enums===String?"RED":0,c.help="",c.labelVisibility=null,c.showBorder=!1,c.chartType=t.enums===String?"LINE":0),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.body!=null&&e.hasOwnProperty("body")&&(c.body=e.body),e.delta!=null&&e.hasOwnProperty("delta")&&(c.delta=e.delta),e.direction!=null&&e.hasOwnProperty("direction")&&(c.direction=t.enums===String?$root.Metric.MetricDirection[e.direction]===void 0?e.direction:$root.Metric.MetricDirection[e.direction]:e.direction),e.color!=null&&e.hasOwnProperty("color")&&(c.color=t.enums===String?$root.Metric.MetricColor[e.color]===void 0?e.color:$root.Metric.MetricColor[e.color]:e.color),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(c.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.showBorder!=null&&e.hasOwnProperty("showBorder")&&(c.showBorder=e.showBorder),e.chartData&&e.chartData.length){c.chartData=[];for(let p=0;p<e.chartData.length;++p)c.chartData[p]=t.json&&!isFinite(e.chartData[p])?String(e.chartData[p]):e.chartData[p]}return e.chartType!=null&&e.hasOwnProperty("chartType")&&(c.chartType=t.enums===String?$root.Metric.ChartType[e.chartType]===void 0?e.chartType:$root.Metric.ChartType[e.chartType]:e.chartType),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Metric"},n.MetricDirection=function(){const o={},e=Object.create(o);return e[o[0]="DOWN"]=0,e[o[1]="UP"]=1,e[o[2]="NONE"]=2,e}(),n.MetricColor=function(){const o={},e=Object.create(o);return e[o[0]="RED"]=0,e[o[1]="GREEN"]=1,e[o[2]="GRAY"]=2,e}(),n.ChartType=function(){const o={},e=Object.create(o);return e[o[0]="LINE"]=0,e[o[1]="BAR"]=1,e[o[2]="AREA"]=2,e}(),n})();$root.MultiSelect=(()=>{function n(e){if(this.default=[],this.options=[],this.value=[],this.rawValues=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.rawValues=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.maxSelections=0,n.prototype.placeholder="",n.prototype.acceptNewOptions=null;let o;return Object.defineProperty(n.prototype,"_acceptNewOptions",{get:$util.oneOfGetter(o=["acceptNewOptions"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){if(c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(18).string(t.label),t.default!=null&&t.default.length){c.uint32(26).fork();for(let p=0;p<t.default.length;++p)c.int32(t.default[p]);c.ldelim()}if(t.options!=null&&t.options.length)for(let p=0;p<t.options.length;++p)c.uint32(34).string(t.options[p]);if(t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(50).string(t.formId),t.value!=null&&t.value.length){c.uint32(58).fork();for(let p=0;p<t.value.length;++p)c.int32(t.value[p]);c.ldelim()}if(t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&c.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(72).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,c.uint32(82).fork()).ldelim(),t.maxSelections!=null&&Object.hasOwnProperty.call(t,"maxSelections")&&c.uint32(88).int32(t.maxSelections),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&c.uint32(98).string(t.placeholder),t.acceptNewOptions!=null&&Object.hasOwnProperty.call(t,"acceptNewOptions")&&c.uint32(104).bool(t.acceptNewOptions),t.rawValues!=null&&t.rawValues.length)for(let p=0;p<t.rawValues.length;++p)c.uint32(114).string(t.rawValues[p]);return c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.MultiSelect;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.label=t.string();break}case 3:{if(y.default&&y.default.length||(y.default=[]),(g&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)y.default.push(t.int32())}else y.default.push(t.int32());break}case 4:{y.options&&y.options.length||(y.options=[]),y.options.push(t.string());break}case 5:{y.help=t.string();break}case 6:{y.formId=t.string();break}case 7:{if(y.value&&y.value.length||(y.value=[]),(g&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)y.value.push(t.int32())}else y.value.push(t.int32());break}case 14:{y.rawValues&&y.rawValues.length||(y.rawValues=[]),y.rawValues.push(t.string());break}case 8:{y.setValue=t.bool();break}case 9:{y.disabled=t.bool();break}case 10:{y.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 11:{y.maxSelections=t.int32();break}case 12:{y.placeholder=t.string();break}case 13:{y.acceptNewOptions=t.bool();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.MultiSelect)return t;let c=new $root.MultiSelect;if(t.id!=null&&(c.id=String(t.id)),t.label!=null&&(c.label=String(t.label)),t.default){if(!Array.isArray(t.default))throw TypeError(".MultiSelect.default: array expected");c.default=[];for(let p=0;p<t.default.length;++p)c.default[p]=t.default[p]|0}if(t.options){if(!Array.isArray(t.options))throw TypeError(".MultiSelect.options: array expected");c.options=[];for(let p=0;p<t.options.length;++p)c.options[p]=String(t.options[p])}if(t.help!=null&&(c.help=String(t.help)),t.formId!=null&&(c.formId=String(t.formId)),t.value){if(!Array.isArray(t.value))throw TypeError(".MultiSelect.value: array expected");c.value=[];for(let p=0;p<t.value.length;++p)c.value[p]=t.value[p]|0}if(t.rawValues){if(!Array.isArray(t.rawValues))throw TypeError(".MultiSelect.rawValues: array expected");c.rawValues=[];for(let p=0;p<t.rawValues.length;++p)c.rawValues[p]=String(t.rawValues[p])}if(t.setValue!=null&&(c.setValue=!!t.setValue),t.disabled!=null&&(c.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".MultiSelect.labelVisibility: object expected");c.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.maxSelections!=null&&(c.maxSelections=t.maxSelections|0),t.placeholder!=null&&(c.placeholder=String(t.placeholder)),t.acceptNewOptions!=null&&(c.acceptNewOptions=!!t.acceptNewOptions),c},n.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.default=[],p.options=[],p.value=[],p.rawValues=[]),c.defaults&&(p.id="",p.label="",p.help="",p.formId="",p.setValue=!1,p.disabled=!1,p.labelVisibility=null,p.maxSelections=0,p.placeholder=""),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.default&&t.default.length){p.default=[];for(let h=0;h<t.default.length;++h)p.default[h]=t.default[h]}if(t.options&&t.options.length){p.options=[];for(let h=0;h<t.options.length;++h)p.options[h]=t.options[h]}if(t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.value&&t.value.length){p.value=[];for(let h=0;h<t.value.length;++h)p.value[h]=t.value[h]}if(t.setValue!=null&&t.hasOwnProperty("setValue")&&(p.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(p.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,c)),t.maxSelections!=null&&t.hasOwnProperty("maxSelections")&&(p.maxSelections=t.maxSelections),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(p.placeholder=t.placeholder),t.acceptNewOptions!=null&&t.hasOwnProperty("acceptNewOptions")&&(p.acceptNewOptions=t.acceptNewOptions,c.oneofs&&(p._acceptNewOptions="acceptNewOptions")),t.rawValues&&t.rawValues.length){p.rawValues=[];for(let h=0;h<t.rawValues.length;++h)p.rawValues[h]=t.rawValues[h]}return p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/MultiSelect"},n})();$root.PageLink=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.page="",n.prototype.label="",n.prototype.icon="",n.prototype.pageScriptHash="",n.prototype.help="",n.prototype.useContainerWidth=null,n.prototype.disabled=!1,n.prototype.external=!1,n.prototype.queryString="";let o;return Object.defineProperty(n.prototype,"_useContainerWidth",{get:$util.oneOfGetter(o=["useContainerWidth"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.page!=null&&Object.hasOwnProperty.call(t,"page")&&c.uint32(10).string(t.page),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(18).string(t.label),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&c.uint32(26).string(t.icon),t.pageScriptHash!=null&&Object.hasOwnProperty.call(t,"pageScriptHash")&&c.uint32(34).string(t.pageScriptHash),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(42).string(t.help),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&c.uint32(48).bool(t.useContainerWidth),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(56).bool(t.disabled),t.external!=null&&Object.hasOwnProperty.call(t,"external")&&c.uint32(64).bool(t.external),t.queryString!=null&&Object.hasOwnProperty.call(t,"queryString")&&c.uint32(74).string(t.queryString),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.PageLink;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.page=t.string();break}case 2:{y.label=t.string();break}case 3:{y.icon=t.string();break}case 4:{y.pageScriptHash=t.string();break}case 5:{y.help=t.string();break}case 6:{y.useContainerWidth=t.bool();break}case 7:{y.disabled=t.bool();break}case 8:{y.external=t.bool();break}case 9:{y.queryString=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.PageLink)return t;let c=new $root.PageLink;return t.page!=null&&(c.page=String(t.page)),t.label!=null&&(c.label=String(t.label)),t.icon!=null&&(c.icon=String(t.icon)),t.pageScriptHash!=null&&(c.pageScriptHash=String(t.pageScriptHash)),t.help!=null&&(c.help=String(t.help)),t.useContainerWidth!=null&&(c.useContainerWidth=!!t.useContainerWidth),t.disabled!=null&&(c.disabled=!!t.disabled),t.external!=null&&(c.external=!!t.external),t.queryString!=null&&(c.queryString=String(t.queryString)),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.page="",p.label="",p.icon="",p.pageScriptHash="",p.help="",p.disabled=!1,p.external=!1,p.queryString=""),t.page!=null&&t.hasOwnProperty("page")&&(p.page=t.page),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.icon!=null&&t.hasOwnProperty("icon")&&(p.icon=t.icon),t.pageScriptHash!=null&&t.hasOwnProperty("pageScriptHash")&&(p.pageScriptHash=t.pageScriptHash),t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(p.useContainerWidth=t.useContainerWidth,c.oneofs&&(p._useContainerWidth="useContainerWidth")),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.external!=null&&t.hasOwnProperty("external")&&(p.external=t.external),t.queryString!=null&&t.hasOwnProperty("queryString")&&(p.queryString=t.queryString),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PageLink"},n})();const PlotlyChart$1=$root.PlotlyChart=(()=>{function n(e){if(this.selectionMode=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.useContainerWidth=!1,n.prototype.theme="",n.prototype.id="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.prototype.spec="",n.prototype.config="",n.prototype.url=null,n.prototype.figure=null;let o;return Object.defineProperty(n.prototype,"chart",{get:$util.oneOfGetter(o=["url","figure"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){if(c||(c=$Writer.create()),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&c.uint32(10).string(t.url),t.figure!=null&&Object.hasOwnProperty.call(t,"figure")&&$root.Figure.encode(t.figure,c.uint32(18).fork()).ldelim(),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&c.uint32(40).bool(t.useContainerWidth),t.theme!=null&&Object.hasOwnProperty.call(t,"theme")&&c.uint32(50).string(t.theme),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(58).string(t.id),t.selectionMode!=null&&t.selectionMode.length){c.uint32(66).fork();for(let p=0;p<t.selectionMode.length;++p)c.int32(t.selectionMode[p]);c.ldelim()}return t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(74).string(t.formId),t.spec!=null&&Object.hasOwnProperty.call(t,"spec")&&c.uint32(82).string(t.spec),t.config!=null&&Object.hasOwnProperty.call(t,"config")&&c.uint32(90).string(t.config),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));
18let h=c===void 0?t.len:t.pos+c,y=new $root.PlotlyChart;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 5:{y.useContainerWidth=t.bool();break}case 6:{y.theme=t.string();break}case 7:{y.id=t.string();break}case 8:{if(y.selectionMode&&y.selectionMode.length||(y.selectionMode=[]),(g&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)y.selectionMode.push(t.int32())}else y.selectionMode.push(t.int32());break}case 9:{y.formId=t.string();break}case 10:{y.spec=t.string();break}case 11:{y.config=t.string();break}case 1:{y.url=t.string();break}case 2:{y.figure=$root.Figure.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.PlotlyChart)return t;let c=new $root.PlotlyChart;if(t.useContainerWidth!=null&&(c.useContainerWidth=!!t.useContainerWidth),t.theme!=null&&(c.theme=String(t.theme)),t.id!=null&&(c.id=String(t.id)),t.selectionMode){if(!Array.isArray(t.selectionMode))throw TypeError(".PlotlyChart.selectionMode: array expected");c.selectionMode=[];for(let p=0;p<t.selectionMode.length;++p)switch(t.selectionMode[p]){default:if(typeof t.selectionMode[p]=="number"){c.selectionMode[p]=t.selectionMode[p];break}case"POINTS":case 0:c.selectionMode[p]=0;break;case"BOX":case 1:c.selectionMode[p]=1;break;case"LASSO":case 2:c.selectionMode[p]=2;break}}if(t.formId!=null&&(c.formId=String(t.formId)),t.spec!=null&&(c.spec=String(t.spec)),t.config!=null&&(c.config=String(t.config)),t.url!=null&&(c.url=String(t.url)),t.figure!=null){if(typeof t.figure!="object")throw TypeError(".PlotlyChart.figure: object expected");c.figure=$root.Figure.fromObject(t.figure)}return c},n.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.selectionMode=[]),c.defaults&&(p.useContainerWidth=!1,p.theme="",p.id="",p.formId="",p.spec="",p.config=""),t.url!=null&&t.hasOwnProperty("url")&&(p.url=t.url,c.oneofs&&(p.chart="url")),t.figure!=null&&t.hasOwnProperty("figure")&&(p.figure=$root.Figure.toObject(t.figure,c),c.oneofs&&(p.chart="figure")),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(p.useContainerWidth=t.useContainerWidth),t.theme!=null&&t.hasOwnProperty("theme")&&(p.theme=t.theme),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.selectionMode&&t.selectionMode.length){p.selectionMode=[];for(let h=0;h<t.selectionMode.length;++h)p.selectionMode[h]=c.enums===String?$root.PlotlyChart.SelectionMode[t.selectionMode[h]]===void 0?t.selectionMode[h]:$root.PlotlyChart.SelectionMode[t.selectionMode[h]]:t.selectionMode[h]}return t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.spec!=null&&t.hasOwnProperty("spec")&&(p.spec=t.spec),t.config!=null&&t.hasOwnProperty("config")&&(p.config=t.config),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PlotlyChart"},n.SelectionMode=function(){const e={},t=Object.create(e);return t[e[0]="POINTS"]=0,t[e[1]="BOX"]=1,t[e[2]="LASSO"]=2,t}(),n})();$root.Figure=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.spec="",n.prototype.config="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.config!=null&&Object.hasOwnProperty.call(e,"config")&&t.uint32(18).string(e.config),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Figure;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.spec=e.string();break}case 2:{h.config=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Figure)return e;let t=new $root.Figure;return e.spec!=null&&(t.spec=String(e.spec)),e.config!=null&&(t.config=String(e.config)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.spec="",c.config=""),e.spec!=null&&e.hasOwnProperty("spec")&&(c.spec=e.spec),e.config!=null&&e.hasOwnProperty("config")&&(c.config=e.config),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Figure"},n})();$root.Progress=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.value=0,n.prototype.text="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),e.text!=null&&Object.hasOwnProperty.call(e,"text")&&t.uint32(18).string(e.text),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Progress;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.value=e.uint32();break}case 2:{h.text=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Progress)return e;let t=new $root.Progress;return e.value!=null&&(t.value=e.value>>>0),e.text!=null&&(t.text=String(e.text)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.value=0,c.text=""),e.value!=null&&e.hasOwnProperty("value")&&(c.value=e.value),e.text!=null&&e.hasOwnProperty("text")&&(c.text=e.text),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Progress"},n})();$root.Snow=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.show=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.show!=null&&Object.hasOwnProperty.call(e,"show")&&t.uint32(8).bool(e.show),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Snow;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.show=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Snow)return e;let t=new $root.Snow;return e.show!=null&&(t.show=!!e.show),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.show=!1),e.show!=null&&e.hasOwnProperty("show")&&(c.show=e.show),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Snow"},n})();$root.Spinner=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.text="",n.prototype.cache=!1,n.prototype.showTime=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.text!=null&&Object.hasOwnProperty.call(e,"text")&&t.uint32(10).string(e.text),e.cache!=null&&Object.hasOwnProperty.call(e,"cache")&&t.uint32(16).bool(e.cache),e.showTime!=null&&Object.hasOwnProperty.call(e,"showTime")&&t.uint32(24).bool(e.showTime),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Spinner;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.text=e.string();break}case 2:{h.cache=e.bool();break}case 3:{h.showTime=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Spinner)return e;let t=new $root.Spinner;return e.text!=null&&(t.text=String(e.text)),e.cache!=null&&(t.cache=!!e.cache),e.showTime!=null&&(t.showTime=!!e.showTime),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.text="",c.cache=!1,c.showTime=!1),e.text!=null&&e.hasOwnProperty("text")&&(c.text=e.text),e.cache!=null&&e.hasOwnProperty("cache")&&(c.cache=e.cache),e.showTime!=null&&e.hasOwnProperty("showTime")&&(c.showTime=e.showTime),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Spinner"},n})();$root.Radio=(()=>{function n(e){if(this.options=[],this.captions=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.horizontal=!1,n.prototype.labelVisibility=null,n.prototype.captions=$util.emptyArray;let o;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(o=["default"]),set:$util.oneOfSetter(o
18)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(o=["value"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){if(c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&c.uint32(24).int32(t.default),t.options!=null&&t.options.length)for(let p=0;p<t.options.length;++p)c.uint32(34).string(t.options[p]);if(t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(50).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&c.uint32(56).int32(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&c.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(72).bool(t.disabled),t.horizontal!=null&&Object.hasOwnProperty.call(t,"horizontal")&&c.uint32(80).bool(t.horizontal),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,c.uint32(90).fork()).ldelim(),t.captions!=null&&t.captions.length)for(let p=0;p<t.captions.length;++p)c.uint32(98).string(t.captions[p]);return c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Radio;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.label=t.string();break}case 3:{y.default=t.int32();break}case 4:{y.options&&y.options.length||(y.options=[]),y.options.push(t.string());break}case 5:{y.help=t.string();break}case 6:{y.formId=t.string();break}case 7:{y.value=t.int32();break}case 8:{y.setValue=t.bool();break}case 9:{y.disabled=t.bool();break}case 10:{y.horizontal=t.bool();break}case 11:{y.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 12:{y.captions&&y.captions.length||(y.captions=[]),y.captions.push(t.string());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Radio)return t;let c=new $root.Radio;if(t.id!=null&&(c.id=String(t.id)),t.label!=null&&(c.label=String(t.label)),t.default!=null&&(c.default=t.default|0),t.options){if(!Array.isArray(t.options))throw TypeError(".Radio.options: array expected");c.options=[];for(let p=0;p<t.options.length;++p)c.options[p]=String(t.options[p])}if(t.help!=null&&(c.help=String(t.help)),t.formId!=null&&(c.formId=String(t.formId)),t.value!=null&&(c.value=t.value|0),t.setValue!=null&&(c.setValue=!!t.setValue),t.disabled!=null&&(c.disabled=!!t.disabled),t.horizontal!=null&&(c.horizontal=!!t.horizontal),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".Radio.labelVisibility: object expected");c.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}if(t.captions){if(!Array.isArray(t.captions))throw TypeError(".Radio.captions: array expected");c.captions=[];for(let p=0;p<t.captions.length;++p)c.captions[p]=String(t.captions[p])}return c},n.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.options=[],p.captions=[]),c.defaults&&(p.id="",p.label="",p.help="",p.formId="",p.setValue=!1,p.disabled=!1,p.horizontal=!1,p.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(p.default=t.default,c.oneofs&&(p._default="default")),t.options&&t.options.length){p.options=[];for(let h=0;h<t.options.length;++h)p.options[h]=t.options[h]}if(t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(p.value=t.value,c.oneofs&&(p._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(p.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.horizontal!=null&&t.hasOwnProperty("horizontal")&&(p.horizontal=t.horizontal),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(p.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,c)),t.captions&&t.captions.length){p.captions=[];for(let h=0;h<t.captions.length;++h)p.captions[h]=t.captions[h]}return p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Radio"},n})();$root.Selectbox=(()=>{function n(e){if(this.options=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.rawValue=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.placeholder="",n.prototype.acceptNewOptions=null;let o;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(o=["default"]),set:$util.oneOfSetter(o
18)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(o=["value"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_rawValue",{get:$util.oneOfGetter(o=["rawValue"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_acceptNewOptions",{get:$util.oneOfGetter(o=["acceptNewOptions"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){if(c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&c.uint32(24).int32(t.default),t.options!=null&&t.options.length)for(let p=0;p<t.options.length;++p)c.uint32(34).string(t.options[p]);return t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(50).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&c.uint32(56).int32(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&c.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(72).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,c.uint32(82).fork()).ldelim(),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&c.uint32(90).string(t.placeholder),t.acceptNewOptions!=null&&Object.hasOwnProperty.call(t,"acceptNewOptions")&&c.uint32(96).bool(t.acceptNewOptions),t.rawValue!=null&&Object.hasOwnProperty.call(t,"rawValue")&&c.uint32(106).string(t.rawValue),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Selectbox;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.label=t.string();break}case 3:{y.default=t.int32();break}case 4:{y.options&&y.options.length||(y.options=[]),y.options.push(t.string());break}case 5:{y.help=t.string();break}case 6:{y.formId=t.string();break}case 7:{y.value=t.int32();break}case 13:{y.rawValue=t.string();break}case 8:{y.setValue=t.bool();break}case 9:{y.disabled=t.bool();break}case 10:{y.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 11:{y.placeholder=t.string();break}case 12:{y.acceptNewOptions=t.bool();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Selectbox)return t;let c=new $root.Selectbox;if(t.id!=null&&(c.id=String(t.id)),t.label!=null&&(c.label=String(t.label)),t.default!=null&&(c.default=t.default|0),t.options){if(!Array.isArray(t.options))throw TypeError(".Selectbox.options: array expected");c.options=[];for(let p=0;p<t.options.length;++p)c.options[p]=String(t.options[p])}if(t.help!=null&&(c.help=String(t.help)),t.formId!=null&&(c.formId=String(t.formId)),t.value!=null&&(c.value=t.value|0),t.rawValue!=null&&(c.rawValue=String(t.rawValue)),t.setValue!=null&&(c.setValue=!!t.setValue),t.disabled!=null&&(c.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".Selectbox.labelVisibility: object expected");c.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.placeholder!=null&&(c.placeholder=String(t.placeholder)),t.acceptNewOptions!=null&&(c.acceptNewOptions=!!t.acceptNewOptions),c},n.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.options=[]),c.defaults&&(p.id="",p.label="",p.help="",p.formId="",p.setValue=!1,p.disabled=!1,p.labelVisibility=null,p.placeholder=""),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(p.default=t.default,c.oneofs&&(p._default="default")),t.options&&t.options.length){p.options=[];for(let h=0;h<t.options.length;++h)p.options[h]=t.options[h]}return t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(p.value=t.value,c.oneofs&&(p._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(p.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(p.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,c)),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(p.placeholder=t.placeholder),t.acceptNewOptions!=null&&t.hasOwnProperty("acceptNewOptions")&&(p.acceptNewOptions=t.acceptNewOptions,c.oneofs&&(p._acceptNewOptions="acceptNewOptions")),t.rawValue!=null&&t.hasOwnProperty("rawValue")&&(p.rawValue=t.rawValue,c.oneofs&&(p._rawValue="rawValue")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Selectbox"},n})();const Skeleton$1=$root.Skeleton=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.style=0,n.prototype.height=null;let o;return Object.defineProperty(n.prototype,"_height",{get:$util.oneOfGetter(o=["height"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.style!=null&&Object.hasOwnProperty.call(t,"style")&&c.uint32(8).int32(t.style),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&c.uint32(16).int32(t.height),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Skeleton;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.style=t.int32();break}case 2:{y.height=t.int32();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Skeleton)return t;let c=new $root.Skeleton;switch(t.style){default:if(typeof t.style=="number"){c.style=t.style;break}break;case"ELEMENT":case 0:c.style=0;break;case"APP":case 1:c.style=1;break}return t.height!=null&&(c.height=t.height|0),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.style=c.enums===String?"ELEMENT":0),t.style!=null&&t.hasOwnProperty("style")&&(p.style=c.enums===String?$root.Skeleton.SkeletonStyle[t.style]===void 0?t.style:$root.Skeleton.SkeletonStyle[t.style]:t.style),t.height!=null&&t.hasOwnProperty("height")&&(p.height=t.height,c.oneofs&&(p._height="height")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Skeleton"},n.SkeletonStyle=function(){const e={},t=Object.create(e);return t[e[0]="ELEMENT"]=0,t[e[1]="APP"]=1,t}(),n})(),Slider$1=$root.Slider=(()=>{function n(o){if(this.default=[],this.value=[],this.options=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.id="",n.prototype.formId="",n.prototype.label="",n.prototype.format="",n.prototype.dataType=0,n.prototype.default=$util.emptyArray,n.prototype.min=0,n.prototype.max=0,n.prototype.step=0,n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.type=0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(18).string(e.formId),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(26).string(e.label),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(34).string(e.format),e.dataType!=null&&Object.hasOwnProperty.call(e,"dataType")&&t.uint32(40).int32(e.dataType),e.default!=null&&e.default.length){t.uint32(50).fork();for(let c=0;c<e.default.length;++c)t.double(e.default[c]);t.ldelim()}if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(57).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(65).double(e.max),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&t.uint32(73).double(e.step),e.value!=null&&e.value.length){t.uint32(82).fork();for(let c=0;c<e.value.length;++c)t.double(e.value[c]);t.ldelim()}if(e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(88).bool(e.setValue),e.options!=null&&e.options.length)for(let c=0;c<e.options.length;++c)t.uint32(106).string(e.options[c]);return e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(114).string(e.help),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(120).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(130).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(136).int32(e.type),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Slider;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.formId=e.string();break}case 3:{h.label=e.string();break}case 4:{h.format=e.string();break}case 5:{h.dataType=e.int32();break}case 6:{if(h.default&&h.default.length||(h.default=[]),(y&7)===2){let g=e.uint32()+e.pos;for(;e.pos<g;)h.default.push(e.double())}else h.default.push(e.double());break}case 7:{h.min=e.double();break}case 8:{h.max=e.double();break}case 9:{h.step=e.double();break}case 10:{if(h.value&&h.value.length||(h.value=[]),(y&7)===2){let g=e.uint32()+e.pos;for(;e.pos<g;)h.value.push(e.double())}else h.value.push(e.double());break}case 11:{h.setValue=e.bool();break}case 13:{h.options&&h.options.length||(h.options=[]),h.options.push(e.string());break}case 14:{h.help=e.string();break}case 15:{h.disabled=e.bool();break}case 16:{h.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 17:{h.type=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Slider)return e;let t=new $root.Slider;switch(e.id!=null&&(t.id=String(e.id)),e.formId!=null&&(t.formId=String(e.formId)),e.label!=null&&(t.label=String(e.label)),e.format!=null&&(t.format=String(e.format)),e.dataType){default:if(typeof e.dataType=="number"){t.dataType=e.dataType;break}break;case"INT":case 0:t.dataType=0;break;case"FLOAT":case 1:t.dataType=1;break;case"DATETIME":case 2:t.dataType=2;break;case"DATE":case 3:t.dataType=3;break;case"TIME":case 4:t.dataType=4;break}if(e.default){if(!Array.isArray(e.default))throw TypeError(".Slider.default: array expected");t.default=[];for(let c=0;c<e.default.length;++c)t.default[c]=Number(e.default[c])}if(e.min!=null&&(t.min=Number(e.min)),e.max!=null&&(t.max=Number(e.max)),e.step!=null&&(t.step=Number(e.step)),e.value){if(!Array.isArray(e.value))throw TypeError(".Slider.value: array expected");t.value=[];for(let c=0;c<e.value.length;++c)t.value[c]=Number(e.value[c])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.options){if(!Array.isArray(e.options))throw TypeError(".Slider.options: array expected");t.options=[];for(let c=0;c<e.options.length;++c)t.options[c]=String(e.options[c])}if(e.help!=null&&(t.help=String(e.help)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Slider.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}switch(e.type){default:if(typeof e.type=="number"){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"SLIDER":case 1:t.type=1;break;case"SELECT_SLIDER":case 2:t.type=2;break}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.default=[],c.value=[],c.options=[]),t.defaults&&(c.id="",c.formId="",c.label="",c.format="",c.dataType=t.enums===String?"INT":0,c.min=0,c.max=0,c.step=0,c.setValue=!1,c.help="",c.disabled=!1,c.labelVisibility=null,c.type=t.enums===String?"UNSPECIFIED":0),e.id!=null&&e.hasOwnProperty("id")&&(c.id=e.id),e.formId!=null&&e.hasOwnProperty("formId")&&(c.formId=e.formId),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.format!=null&&e.hasOwnProperty("format")&&(c.format=e.format),e.dataType!=null&&e.hasOwnProperty("dataType")&&(c.dataType=t.enums===String?$root.Slider.DataType[e.dataType]===void 0?e.dataType:$root.Slider.DataType[e.dataType]:e.dataType),e.default&&e.default.length){c.default=[];for(let p=0;p<e.default.length;++p)c.default[p]=t.json&&!isFinite(e.default[p])?String(e.default[p]):e.default[p]}if(e.min!=null&&e.hasOwnProperty("min")&&(c.min=t.json&&!isFinite(e.min)?String(e.min):e.min),e.max!=null&&e.hasOwnProperty("max")&&(c.max=t.json&&!isFinite(e.max)?String(e.max):e.max),e.step!=null&&e.hasOwnProperty("step")&&(c.step=t.json&&!isFinite(e.step)?String(e.step):e.step),e.value&&e.value.length){c.value=[];for(let p=0;p<e.value.length;++p)c.value[p]=t.json&&!isFinite(e.value[p])?String(e.value[p]):e.value[p]}if(e.setValue!=null&&e.hasOwnProperty("setValue")&&(c.setValue=e.setValue),e.options&&e.options.length){c.options=[];for(let p=0;p<e.options.length;++p)c.options[p]=e.options[p]}return e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.disabled!=null&&e.hasOwnProperty("disabled")&&(c.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(c.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.type!=null&&e.hasOwnProperty("type")&&(c.type=t.enums===String?$root.Slider.Type[e.type]===void 0?e.type:$root.Slider.Type[e.type]:e.type),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Slider"},n.DataType=function(){const o={},e=Object.create(o);return e[o[0]="INT"]=0,e[o[1]="FLOAT"]=1,e[o[2]="DATETIME"]=2,e[o[3]="DATE"]=3,e[o[4]="TIME"]=4,e}(),n.Type=function(){const o={},e=Object.create(o);return e[o[0]="UNSPECIFIED"]=0,e[o[1]="SLIDER"]=1,e[o[2]="SELECT_SLIDER"]=2,e}(),n})();$root.Space=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Space;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){default:e.skipType(y&7);break}}return h},n.fromObject=function(e){return e instanceof $root.Space?e:new $root.Space},n.toObject=function(){return{}},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Space"},n})();$root.Text=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.body="",n.prototype.help="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(18).string(e.help),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Text;
18for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.body=e.string();break}case 2:{h.help=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Text)return e;let t=new $root.Text;return e.body!=null&&(t.body=String(e.body)),e.help!=null&&(t.help=String(e.help)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.body="",c.help=""),e.body!=null&&e.hasOwnProperty("body")&&(c.body=e.body),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Text"},n})();$root.TextArea=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.height=0,n.prototype.maxChars=0,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.placeholder="",n.prototype.disabled=!1,n.prototype.labelVisibility=null;let o;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(o=["default"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(o=["value"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&c.uint32(26).string(t.default),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&c.uint32(32).uint32(t.height),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&c.uint32(40).uint32(t.maxChars),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(50).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(58).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&c.uint32(66).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&c.uint32(72).bool(t.setValue),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&c.uint32(82).string(t.placeholder),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(88).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,c.uint32(98).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.TextArea;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.label=t.string();break}case 3:{y.default=t.string();break}case 4:{y.height=t.uint32();break}case 5:{y.maxChars=t.uint32();break}case 6:{y.help=t.string();break}case 7:{y.formId=t.string();break}case 8:{y.value=t.string();break}case 9:{y.setValue=t.bool();break}case 10:{y.placeholder=t.string();break}case 11:{y.disabled=t.bool();break}case 12:{y.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.TextArea)return t;let c=new $root.TextArea;if(t.id!=null&&(c.id=String(t.id)),t.label!=null&&(c.label=String(t.label)),t.default!=null&&(c.default=String(t.default)),t.height!=null&&(c.height=t.height>>>0),t.maxChars!=null&&(c.maxChars=t.maxChars>>>0),t.help!=null&&(c.help=String(t.help)),t.formId!=null&&(c.formId=String(t.formId)),t.value!=null&&(c.value=String(t.value)),t.setValue!=null&&(c.setValue=!!t.setValue),t.placeholder!=null&&(c.placeholder=String(t.placeholder)),t.disabled!=null&&(c.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TextArea.labelVisibility: object expected");c.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.id="",p.label="",p.height=0,p.maxChars=0,p.help="",p.formId="",p.setValue=!1,p.placeholder="",p.disabled=!1,p.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(p.default=t.default,c.oneofs&&(p._default="default")),t.height!=null&&t.hasOwnProperty("height")&&(p.height=t.height),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(p.maxChars=t.maxChars),t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(p.value=t.value,c.oneofs&&(p._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(p.setValue=t.setValue),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(p.placeholder=t.placeholder),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(p.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,c)),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/TextArea"},n})();const TextInput$1=$root.TextInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.type=0,n.prototype.maxChars=0,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.autocomplete="",n.prototype.placeholder="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.icon="";let o;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(o=["default"]),set:$util.oneOfSetter(o
18)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(o=["value"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&c.uint32(26).string(t.default),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&c.uint32(32).int32(t.type),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&c.uint32(40).uint32(t.maxChars),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(50).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(58).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&c.uint32(66).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&c.uint32(72).bool(t.setValue),t.autocomplete!=null&&Object.hasOwnProperty.call(t,"autocomplete")&&c.uint32(82).string(t.autocomplete),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&c.uint32(90).string(t.placeholder),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(96).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,c.uint32(106).fork()).ldelim(),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&c.uint32(114).string(t.icon),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.TextInput;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.label=t.string();break}case 3:{y.default=t.string();break}case 4:{y.type=t.int32();break}case 5:{y.maxChars=t.uint32();break}case 6:{y.help=t.string();break}case 7:{y.formId=t.string();break}case 8:{y.value=t.string();break}case 9:{y.setValue=t.bool();break}case 10:{y.autocomplete=t.string();break}case 11:{y.placeholder=t.string();break}case 12:{y.disabled=t.bool();break}case 13:{y.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 14:{y.icon=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.TextInput)return t;let c=new $root.TextInput;switch(t.id!=null&&(c.id=String(t.id)),t.label!=null&&(c.label=String(t.label)),t.default!=null&&(c.default=String(t.default)),t.type){default:if(typeof t.type=="number"){c.type=t.type;break}break;case"DEFAULT":case 0:c.type=0;break;case"PASSWORD":case 1:c.type=1;break}if(t.maxChars!=null&&(c.maxChars=t.maxChars>>>0),t.help!=null&&(c.help=String(t.help)),t.formId!=null&&(c.formId=String(t.formId)),t.value!=null&&(c.value=String(t.value)),t.setValue!=null&&(c.setValue=!!t.setValue),t.autocomplete!=null&&(c.autocomplete=String(t.autocomplete)),t.placeholder!=null&&(c.placeholder=String(t.placeholder)),t.disabled!=null&&(c.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TextInput.labelVisibility: object expected");c.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.icon!=null&&(c.icon=String(t.icon)),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.id="",p.label="",p.type=c.enums===String?"DEFAULT":0,p.maxChars=0,p.help="",p.formId="",p.setValue=!1,p.autocomplete="",p.placeholder="",p.disabled=!1,p.labelVisibility=null,p.icon=""),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(p.default=t.default,c.oneofs&&(p._default="default")),t.type!=null&&t.hasOwnProperty("type")&&(p.type=c.enums===String?$root.TextInput.Type[t.type]===void 0?t.type:$root.TextInput.Type[t.type]:t.type),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(p.maxChars=t.maxChars),t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(p.value=t.value,c.oneofs&&(p._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(p.setValue=t.setValue),t.autocomplete!=null&&t.hasOwnProperty("autocomplete")&&(p.autocomplete=t.autocomplete),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(p.placeholder=t.placeholder),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(p.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,c)),t.icon!=null&&t.hasOwnProperty("icon")&&(p.icon=t.icon),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/TextInput"},n.Type=function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="PASSWORD"]=1,t}(),n})();$root.TimeInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.step=$util.Long?$util.Long.fromBits(0,0,!1):0;let o;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(o=["default"]),set:$util.oneOfSetter(o
18)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(o=["value"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&c.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&c.uint32(26).string(t.default),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(34).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&c.uint32(42).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&c.uint32(50).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&c.uint32(56).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&c.uint32(64).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,c.uint32(74).fork()).ldelim(),t.step!=null&&Object.hasOwnProperty.call(t,"step")&&c.uint32(80).int64(t.step),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.TimeInput;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.id=t.string();break}case 2:{y.label=t.string();break}case 3:{y.default=t.string();break}case 4:{y.help=t.string();break}case 5:{y.formId=t.string();break}case 6:{y.value=t.string();break}case 7:{y.setValue=t.bool();break}case 8:{y.disabled=t.bool();break}case 9:{y.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 10:{y.step=t.int64();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.TimeInput)return t;let c=new $root.TimeInput;if(t.id!=null&&(c.id=String(t.id)),t.label!=null&&(c.label=String(t.label)),t.default!=null&&(c.default=String(t.default)),t.help!=null&&(c.help=String(t.help)),t.formId!=null&&(c.formId=String(t.formId)),t.value!=null&&(c.value=String(t.value)),t.setValue!=null&&(c.setValue=!!t.setValue),t.disabled!=null&&(c.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TimeInput.labelVisibility: object expected");c.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.step!=null&&($util.Long?(c.step=$util.Long.fromValue(t.step)).unsigned=!1:typeof t.step=="string"?c.step=parseInt(t.step,10):typeof t.step=="number"?c.step=t.step:typeof t.step=="object"&&(c.step=new $util.LongBits(t.step.low>>>0,t.step.high>>>0).toNumber())),c},n.toObject=function(t,c){c||(c={});let p={};if(c.defaults)if(p.id="",p.label="",p.help="",p.formId="",p.setValue=!1,p.disabled=!1,p.labelVisibility=null,$util.Long){let h=new $util.Long(0,0,!1);p.step=c.longs===String?h.toString():c.longs===Number?h.toNumber():h}else p.step=c.longs===String?"0":0;return t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(p.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(p.default=t.default,c.oneofs&&(p._default="default")),t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(p.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(p.value=t.value,c.oneofs&&(p._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(p.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(p.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(p.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,c)),t.step!=null&&t.hasOwnProperty("step")&&(typeof t.step=="number"?p.step=c.longs===String?String(t.step):t.step:p.step=c.longs===String?$util.Long.prototype.toString.call(t.step):c.longs===Number?new $util.LongBits(t.step.low>>>0,t.step.high>>>0).toNumber():t.step),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/TimeInput"},n})();$root.Toast=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.body="",n.prototype.icon="",n.prototype.duration=null;let o;return Object.defineProperty(n.prototype,"_duration",{get:$util.oneOfGetter(o=["duration"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&c.uint32(10).string(t.body),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&c.uint32(18).string(t.icon),t.duration!=null&&Object.hasOwnProperty.call(t,"duration")&&c.uint32(24).int32(t.duration),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Toast;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.body=t.string();break}case 2:{y.icon=t.string();break}case 3:{y.duration=t.int32();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Toast)return t;let c=new $root.Toast;return t.body!=null&&(c.body=String(t.body)),t.icon!=null&&(c.icon=String(t.icon)),t.duration!=null&&(c.duration=t.duration|0),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.body="",p.icon=""),t.body!=null&&t.hasOwnProperty("body")&&(p.body=t.body),t.icon!=null&&t.hasOwnProperty("icon")&&(p.icon=t.icon),t.duration!=null&&t.hasOwnProperty("duration")&&(p.duration=t.duration,c.oneofs&&(p._duration="duration")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Toast"},n})();$root.VegaLiteChart=(()=>{function n(o){if(this.datasets=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.spec="",n.prototype.data=null,n.prototype.datasets=$util.emptyArray,n.prototype.useContainerWidth=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.DataFrame.encode(e.data,t.uint32(18).fork()).ldelim(),e.datasets!=null&&e.datasets.length)for(let c=0;c<e.datasets.length;++c)$root.NamedDataSet.encode(e.datasets[c],t.uint32(34).fork()).ldelim();return e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.VegaLiteChart;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.spec=e.string();break}case 2:{h.data=$root.DataFrame.decode(e,e.uint32());break}case 4:{h.datasets&&h.datasets.length||(h.datasets=[]),h.datasets.push($root.NamedDataSet.decode(e,e.uint32()));break}case 5:{h.useContainerWidth=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.VegaLiteChart)return e;let t=new $root.VegaLiteChart;if(e.spec!=null&&(t.spec=String(e.spec)),e.data!=null){if(typeof e.data!="object")throw TypeError(".VegaLiteChart.data: object expected");t.data=$root.DataFrame.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".VegaLiteChart.datasets: array expected");t.datasets=[];for(let c=0;c<e.datasets.length;++c){if(typeof e.datasets[c]!="object")throw TypeError(".VegaLiteChart.datasets: object expected");t.datasets[c]=$root.NamedDataSet.fromObject(e.datasets[c])}}return e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.datasets=[]),t.defaults&&(c.spec="",c.data=null,c.useContainerWidth=!1),e.spec!=null&&e.hasOwnProperty("spec")&&(c.spec=e.spec),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.DataFrame.toObject(e.data,t)),e.datasets&&e.datasets.length){c.datasets=[];for(let p=0;p<e.datasets.length;++p)c.datasets[p]=$root.NamedDataSet.toObject(e.datasets[p],t)}return e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(c.useContainerWidth=e.useContainerWidth),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/VegaLiteChart"},n})();$root.NamedDataSet=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.name="",n.prototype.hasName=!1,n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.DataFrame.encode(e.data,t.uint32(18).fork()).ldelim(),e.hasName!=null&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.NamedDataSet;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.name=e.string();break}case 3:{h.hasName=e.bool();break}case 2:{h.data=$root.DataFrame.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.NamedDataSet)return e;let t=new $root.NamedDataSet;if(e.name!=null&&(t.name=String(e.name)),e.hasName!=null&&(t.hasName=!!e.hasName),e.data!=null){if(typeof e.data!="object")throw TypeError(".NamedDataSet.data: object expected");t.data=$root.DataFrame.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.name="",c.data=null,c.hasName=!1),e.name!=null&&e.hasOwnProperty("name")&&(c.name=e.name),e.data!=null&&e.hasOwnProperty("data")&&(c.data=$root.DataFrame.toObject(e.data,t)),e.hasName!=null&&e.hasOwnProperty("hasName")&&(c.hasName=e.hasName),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/NamedDataSet"},n})();$root.SubtitleTrack=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.label="",n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.SubtitleTrack;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.label=e.string();break}case 2:{h.url=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.SubtitleTrack)return e;let t=new $root.SubtitleTrack;return e.label!=null&&(t.label=String(e.label)),e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.label="",c.url=""),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.url!=null&&e.hasOwnProperty("url")&&(c.url=e.url),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SubtitleTrack"},n})();const Video$1=$root.Video=(()=>{function n(e){if(this.subtitles=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.url="",n.prototype.startTime=0,n.prototype.type=0,n.prototype.subtitles=$util.emptyArray,n.prototype.endTime=0,n.prototype.loop=!1,n.prototype.autoplay=!1,n.prototype.muted=!1,n.prototype.id="",n.prototype.widthConfig=null;let o;return Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(o=["widthConfig"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){if(c||(c=$Writer.create()),t.startTime!=null&&Object.hasOwnProperty.call(t,"startTime")&&c.uint32(24).int32(t.startTime),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&c.uint32(40).int32(t.type),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&c.uint32(50).string(t.url),t.subtitles!=null&&t.subtitles.length)for(let p=0;p<t.subtitles.length;++p)$root.SubtitleTrack.encode(t.subtitles[p],c.uint32(58).fork()).ldelim();return t.endTime!=null&&Object.hasOwnProperty.call(t,"endTime")&&c.uint32(64).int32(t.endTime),t.loop!=null&&Object.hasOwnProperty.call(t,"loop")&&c.uint32(72).bool(t.loop),t.autoplay!=null&&Object.hasOwnProperty.call(t,"autoplay")&&c.uint32(80).bool(t.autoplay),t.muted!=null&&Object.hasOwnProperty.call(t,"muted")&&c.uint32(88).bool(t.muted),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&c.uint32(98).string(t.id),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,c.uint32(106).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.Video;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 6:{y.url=t.string();break}case 3:{y.startTime=t.int32();break}case 5:{y.type=t.int32();break}case 7:{y.subtitles&&y.subtitles.length||(y.subtitles=[]),y.subtitles.push($root.SubtitleTrack.decode(t,t.uint32()));break}case 8:{y.endTime=t.int32();break}case 9:{y.loop=t.bool();break}case 10:{y.autoplay=t.bool();break}case 11:{y.muted=t.bool();break}case 12:{y.id=t.string();break}case 13:{y.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.Video)return t;let c=new $root.Video;switch(t.url!=null&&(c.url=String(t.url)),t.startTime!=null&&(c.startTime=t.startTime|0),t.type){default:if(typeof t.type=="number"){c.type=t.type;break}break;case"UNUSED":case 0:c.type=0;break;case"NATIVE":case 1:c.type=1;break;case"YOUTUBE_IFRAME":case 2:c.type=2;break}if(t.subtitles){if(!Array.isArray(t.subtitles))throw TypeError(".Video.subtitles: array expected");c.subtitles=[];for(let p=0;p<t.subtitles.length;++p){if(typeof t.subtitles[p]!="object")throw TypeError(".Video.subtitles: object expected");c.subtitles[p]=$root.SubtitleTrack.fromObject(t.subtitles[p])}}if(t.endTime!=null&&(c.endTime=t.endTime|0),t.loop!=null&&(c.loop=!!t.loop),t.autoplay!=null&&(c.autoplay=!!t.autoplay),t.muted!=null&&(c.muted=!!t.muted),t.id!=null&&(c.id=String(t.id)),t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Video.widthConfig: object expected");c.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return c},n.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.subtitles=[]),c.defaults&&(p.startTime=0,p.type=c.enums===String?"UNUSED":0,p.url="",p.endTime=0,p.loop=!1,p.autoplay=!1,p.muted=!1,p.id=""),t.startTime!=null&&t.hasOwnProperty("startTime")&&(p.startTime=t.startTime),t.type!=null&&t.hasOwnProperty("type")&&(p.type=c.enums===String?$root.Video.Type[t.type]===void 0?t.type:$root.Video.Type[t.type]:t.type),t.url!=null&&t.hasOwnProperty("url")&&(p.url=t.url),t.subtitles&&t.subtitles.length){p.subtitles=[];for(let h=0;h<t.subtitles.length;++h)p.subtitles[h]=$root.SubtitleTrack.toObject(t.subtitles[h],c)}return t.endTime!=null&&t.hasOwnProperty("endTime")&&(p.endTime=t.endTime),t.loop!=null&&t.hasOwnProperty("loop")&&(p.loop=t.loop),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(p.autoplay=t.autoplay),t.muted!=null&&t.hasOwnProperty("muted")&&(p.muted=t.muted),t.id!=null&&t.hasOwnProperty("id")&&(p.id=t.id),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(p.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,c),c.oneofs&&(p._widthConfig="widthConfig")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Video"},n.Type=function(){const e={},t=Object.create(e);return t[e[0]="UNUSED"]=0,t[e[1]="NATIVE"]=1,t[e[2]="YOUTUBE_IFRAME"]=2,t}(),n})();$root.Heading=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.tag="",n.prototype.anchor="",n.prototype.body="",n.prototype.help="",n.prototype.hideAnchor=!1,n.prototype.divider="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.tag!=null&&Object.hasOwnProperty.call(e,"tag")&&t.uint32(10).string(e.tag),e.anchor!=null&&Object.hasOwnProperty.call(e,"anchor")&&t.uint32(18).string(e.anchor),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(26).string(e.body),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.hideAnchor!=null&&Object.hasOwnProperty.call(e,"hideAnchor")&&t.uint32(40).bool(e.hideAnchor),e.divider!=null&&Object.hasOwnProperty.call(e,"divider")&&t.uint32(50).string(e.divider),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Heading;
18for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.tag=e.string();break}case 2:{h.anchor=e.string();break}case 3:{h.body=e.string();break}case 4:{h.help=e.string();break}case 5:{h.hideAnchor=e.bool();break}case 6:{h.divider=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Heading)return e;let t=new $root.Heading;return e.tag!=null&&(t.tag=String(e.tag)),e.anchor!=null&&(t.anchor=String(e.anchor)),e.body!=null&&(t.body=String(e.body)),e.help!=null&&(t.help=String(e.help)),e.hideAnchor!=null&&(t.hideAnchor=!!e.hideAnchor),e.divider!=null&&(t.divider=String(e.divider)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.tag="",c.anchor="",c.body="",c.help="",c.hideAnchor=!1,c.divider=""),e.tag!=null&&e.hasOwnProperty("tag")&&(c.tag=e.tag),e.anchor!=null&&e.hasOwnProperty("anchor")&&(c.anchor=e.anchor),e.body!=null&&e.hasOwnProperty("body")&&(c.body=e.body),e.help!=null&&e.hasOwnProperty("help")&&(c.help=e.help),e.hideAnchor!=null&&e.hasOwnProperty("hideAnchor")&&(c.hideAnchor=e.hideAnchor),e.divider!=null&&e.hasOwnProperty("divider")&&(c.divider=e.divider),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Heading"},n})();const ForwardMsg=$root.ForwardMsg=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.hash="",n.prototype.metadata=null,n.prototype.newSession=null,n.prototype.delta=null,n.prototype.pageInfoChanged=null,n.prototype.pageConfigChanged=null,n.prototype.scriptFinished=null,n.prototype.gitInfoChanged=null,n.prototype.pageProfile=null,n.prototype.sessionStatusChanged=null,n.prototype.sessionEvent=null,n.prototype.navigation=null,n.prototype.pageNotFound=null,n.prototype.pagesChanged=null,n.prototype.fileUrlsResponse=null,n.prototype.autoRerun=null,n.prototype.logo=null,n.prototype.authRedirect=null,n.prototype.parentMessage=null,n.prototype.refHash=null,n.prototype.deferredFileResponse=null,n.prototype.debugLastBackmsgId="";let o;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(o=["newSession","delta","pageInfoChanged","pageConfigChanged","scriptFinished","gitInfoChanged","pageProfile","sessionStatusChanged","sessionEvent","navigation","pageNotFound","pagesChanged","fileUrlsResponse","autoRerun","logo","authRedirect","parentMessage","refHash","deferredFileResponse"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.hash!=null&&Object.hasOwnProperty.call(t,"hash")&&c.uint32(10).string(t.hash),t.metadata!=null&&Object.hasOwnProperty.call(t,"metadata")&&$root.ForwardMsgMetadata.encode(t.metadata,c.uint32(18).fork()).ldelim(),t.newSession!=null&&Object.hasOwnProperty.call(t,"newSession")&&$root.NewSession.encode(t.newSession,c.uint32(34).fork()).ldelim(),t.delta!=null&&Object.hasOwnProperty.call(t,"delta")&&$root.Delta.encode(t.delta,c.uint32(42).fork()).ldelim(),t.scriptFinished!=null&&Object.hasOwnProperty.call(t,"scriptFinished")&&c.uint32(48).int32(t.scriptFinished),t.sessionStatusChanged!=null&&Object.hasOwnProperty.call(t,"sessionStatusChanged")&&$root.SessionStatus.encode(t.sessionStatusChanged,c.uint32(74).fork()).ldelim(),t.sessionEvent!=null&&Object.hasOwnProperty.call(t,"sessionEvent")&&$root.SessionEvent.encode(t.sessionEvent,c.uint32(82).fork()).ldelim(),t.refHash!=null&&Object.hasOwnProperty.call(t,"refHash")&&c.uint32(90).string(t.refHash),t.pageInfoChanged!=null&&Object.hasOwnProperty.call(t,"pageInfoChanged")&&$root.PageInfo.encode(t.pageInfoChanged,c.uint32(98).fork()).ldelim(),t.pageConfigChanged!=null&&Object.hasOwnProperty.call(t,"pageConfigChanged")&&$root.PageConfig.encode(t.pageConfigChanged,c.uint32(106).fork()).ldelim(),t.gitInfoChanged!=null&&Object.hasOwnProperty.call(t,"gitInfoChanged")&&$root.GitInfo.encode(t.gitInfoChanged,c.uint32(114).fork()).ldelim(),t.pageNotFound!=null&&Object.hasOwnProperty.call(t,"pageNotFound")&&$root.PageNotFound.encode(t.pageNotFound,c.uint32(122).fork()).ldelim(),t.pagesChanged!=null&&Object.hasOwnProperty.call(t,"pagesChanged")&&$root.PagesChanged.encode(t.pagesChanged,c.uint32(130).fork()).ldelim(),t.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(t,"debugL
18astBackmsgId")&&c.uint32(138).string(t.debugLastBackmsgId),t.pageProfile!=null&&Object.hasOwnProperty.call(t,"pageProfile")&&$root.PageProfile.encode(t.pageProfile,c.uint32(146).fork()).ldelim(),t.fileUrlsResponse!=null&&Object.hasOwnProperty.call(t,"fileUrlsResponse")&&$root.FileURLsResponse.encode(t.fileUrlsResponse,c.uint32(154).fork()).ldelim(),t.parentMessage!=null&&Object.hasOwnProperty.call(t,"parentMessage")&&$root.ParentMessage.encode(t.parentMessage,c.uint32(162).fork()).ldelim(),t.autoRerun!=null&&Object.hasOwnProperty.call(t,"autoRerun")&&$root.AutoRerun.encode(t.autoRerun,c.uint32(170).fork()).ldelim(),t.logo!=null&&Object.hasOwnProperty.call(t,"logo")&&$root.Logo.encode(t.logo,c.uint32(178).fork()).ldelim(),t.navigation!=null&&Object.hasOwnProperty.call(t,"navigation")&&$root.Navigation.encode(t.navigation,c.uint32(186).fork()).ldelim(),t.authRedirect!=null&&Object.hasOwnProperty.call(t,"authRedirect")&&$root.AuthRedirect.encode(t.authRedirect,c.uint32(194).fork()).ldelim(),t.deferredFileResponse!=null&&Object.hasOwnProperty.call(t,"deferredFileResponse")&&$root.DeferredFileResponse.encode(t.deferredFileResponse,c.uint32(202).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.ForwardMsg;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.hash=t.string();break}case 2:{y.metadata=$root.ForwardMsgMetadata.decode(t,t.uint32());break}case 4:{y.newSession=$root.NewSession.decode(t,t.uint32());break}case 5:{y.delta=$root.Delta.decode(t,t.uint32());break}case 12:{y.pageInfoChanged=$root.PageInfo.decode(t,t.uint32());break}case 13:{y.pageConfigChanged=$root.PageConfig.decode(t,t.uint32());break}case 6:{y.scriptFinished=t.int32();break}case 14:{y.gitInfoChanged=$root.GitInfo.decode(t,t.uint32());break}case 18:{y.pageProfile=$root.PageProfile.decode(t,t.uint32());break}case 9:{y.sessionStatusChanged=$root.SessionStatus.decode(t,t.uint32());break}case 10:{y.sessionEvent=$root.SessionEvent.decode(t,t.uint32());break}case 23:{y.navigation=$root.Navigation.decode(t,t.uint32());break}case 15:{y.pageNotFound=$root.PageNotFound.decode(t,t.uint32());break}case 16:{y.pagesChanged=$root.PagesChanged.decode(t,t.uint32());break}case 19:{y.fileUrlsResponse=$root.FileURLsResponse.decode(t,t.uint32());break}case 21:{y.autoRerun=$root.AutoRerun.decode(t,t.uint32());break}case 22:{y.logo=$root.Logo.decode(t,t.uint32());break}case 24:{y.authRedirect=$root.AuthRedirect.decode(t,t.uint32());break}case 20:{y.parentMessage=$root.ParentMessage.decode(t,t.uint32());break}case 11:{y.refHash=t.string();break}case 25:{y.deferredFileResponse=$root.DeferredFileResponse.decode(t,t.uint32());break}case 17:{y.debugLastBackmsgId=t.string();break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.ForwardMsg)return t;let c=new $root.ForwardMsg;if(t.hash!=null&&(c.hash=String(t.hash)),t.metadata!=null){if(typeof t.metadata!="object")throw TypeError(".ForwardMsg.metadata: object expected");c.metadata=$root.ForwardMsgMetadata.fromObject(t.metadata)}if(t.newSession!=null){if(typeof t.newSession!="object")throw TypeError(".ForwardMsg.newSession: object expected");c.newSession=$root.NewSession.fromObject(t.newSession)}if(t.delta!=null){if(typeof t.delta!="object")throw TypeError(".ForwardMsg.delta: object expected");c.delta=$root.Delta.fromObject(t.delta)}if(t.pageInfoChanged!=null){if(typeof t.pageInfoChanged!="object")throw TypeError(".ForwardMsg.pageInfoChanged: object expected");c.pageInfoChanged=$root.PageInfo.fromObject(t.pageInfoChanged)}if(t.pageConfigChanged!=null){if(typeof t.pageConfigChanged!="object")throw TypeError(".ForwardMsg.pageConfigChanged: object expected");c.pageConfigChanged=$root.PageConfig.fromObject(t.pageConfigChanged)}switch(t.scriptFinished){default:if(typeof t.scriptFinished=="number"){c.scriptFinished=t.scriptFinished;break}break;case"FINISHED_SUCCESSFULLY":case 0:c.scriptFinished=0;break;case"FINISHED_WITH_COMPILE_ERROR":case 1:c.scriptFinished=1;break;case"FINISHED_EARLY_FOR_RERUN":case 2:c.scriptFinished=2;break;case"FINISHED_FRAGMENT_RUN_SUCCESSFULLY":case 3:c.scriptFinished=3;break}if(t.gitInfoChanged!=null){if(typeof t.gitInfoChanged!="object")throw TypeError(".ForwardMsg.gitInfoChanged: object expected");c.gitInfoChanged=$root.GitInfo.fromObject(t.gitInfoChanged)}if(t.pageProfile!=null){if(typeof t.pageProfile!="object")throw TypeError(".ForwardMsg.pageProfile: object expected");c.pageProfile=$root.PageProfile.fromObject(t.pageProfile)}if(t.sessionStatusChanged!=null){if(typeof t.sessionStatusChanged!="object")throw TypeError(".ForwardMsg.sessionStatusChanged: object expected");c.sessionStatusChanged=$root.SessionStatus.fromObject(t.sessionStatusChanged)}if(t.sessionEvent!=null){if(typeof t.sessionEvent!="object")throw TypeError(".ForwardMsg.sessionEvent: object expected");c.sessionEvent=$root.SessionEvent.fromObject(t.sessionEvent)}if(t.navigation!=null){if(typeof t.navigation!="object")throw TypeError(".ForwardMsg.navigation: object expected");c.navigation=$root.Navigation.fromObject(t.navigation)}if(t.pageNotFound!=null){if(typeof t.pageNotFound!="object")throw TypeError(".ForwardMsg.pageNotFound: object expected");c.pageNotFound=$root.PageNotFound.fromObject(t.pageNotFound)}if(t.pagesChanged!=null){if(typeof t.pagesChanged!="object")throw TypeError(".ForwardMsg.pagesChanged: object expected");c.pagesChanged=$root.PagesChanged.fromObject(t.pagesChanged)}if(t.fileUrlsResponse!=null){if(typeof t.fileUrlsResponse!="object")throw TypeError(".ForwardMsg.fileUrlsResponse: object expected");c.fileUrlsResponse=$root.FileURLsResponse.fromObject(t.fileUrlsResponse)}if(t.autoRerun!=null){if(typeof t.autoRerun!="object")throw TypeError(".ForwardMsg.autoRerun: object expected");c.autoRerun=$root.AutoRerun.fromObject(t.autoRerun)}if(t.logo!=null){if(typeof t.logo!="object")throw TypeError(".ForwardMsg.logo: object expected");c.logo=$root.Logo.fromObject(t.logo)}if(t.authRedirect!=null){if(typeof t.authRedirect!="object")throw TypeError(".ForwardMsg.authRedirect: object expected");c.authRedirect=$root.AuthRedirect.fromObject(t.authRedirect)}if(t.parentMessage!=null){if(typeof t.parentMessage!="object")throw TypeError(".ForwardMsg.parentMessage: object expected");c.parentMessage=$root.ParentMessage.fromObject(t.parentMessage)}if(t.refHash!=null&&(c.refHash=String(t.refHash)),t.deferredFileResponse!=null){if(typeof t.deferredFileResponse!="object")throw TypeError(".ForwardMsg.deferredFileResponse: object expected");c.deferredFileResponse=$root.DeferredFileResponse.fromObject(t.deferredFileResponse)}return t.debugLastBackmsgId!=null&&(c.debugLastBackmsgId=String(t.debugL
18astBackmsgId)),c},n.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.hash="",p.metadata=null,p.debugLastBackmsgId=""),t.hash!=null&&t.hasOwnProperty("hash")&&(p.hash=t.hash),t.metadata!=null&&t.hasOwnProperty("metadata")&&(p.metadata=$root.ForwardMsgMetadata.toObject(t.metadata,c)),t.newSession!=null&&t.hasOwnProperty("newSession")&&(p.newSession=$root.NewSession.toObject(t.newSession,c),c.oneofs&&(p.type="newSession")),t.delta!=null&&t.hasOwnProperty("delta")&&(p.delta=$root.Delta.toObject(t.delta,c),c.oneofs&&(p.type="delta")),t.scriptFinished!=null&&t.hasOwnProperty("scriptFinished")&&(p.scriptFinished=c.enums===String?$root.ForwardMsg.ScriptFinishedStatus[t.scriptFinished]===void 0?t.scriptFinished:$root.ForwardMsg.ScriptFinishedStatus[t.scriptFinished]:t.scriptFinished,c.oneofs&&(p.type="scriptFinished")),t.sessionStatusChanged!=null&&t.hasOwnProperty("sessionStatusChanged")&&(p.sessionStatusChanged=$root.SessionStatus.toObject(t.sessionStatusChanged,c),c.oneofs&&(p.type="sessionStatusChanged")),t.sessionEvent!=null&&t.hasOwnProperty("sessionEvent")&&(p.sessionEvent=$root.SessionEvent.toObject(t.sessionEvent,c),c.oneofs&&(p.type="sessionEvent")),t.refHash!=null&&t.hasOwnProperty("refHash")&&(p.refHash=t.refHash,c.oneofs&&(p.type="refHash")),t.pageInfoChanged!=null&&t.hasOwnProperty("pageInfoChanged")&&(p.pageInfoChanged=$root.PageInfo.toObject(t.pageInfoChanged,c),c.oneofs&&(p.type="pageInfoChanged")),t.pageConfigChanged!=null&&t.hasOwnProperty("pageConfigChanged")&&(p.pageConfigChanged=$root.PageConfig.toObject(t.pageConfigChanged,c),c.oneofs&&(p.type="pageConfigChanged")),t.gitInfoChanged!=null&&t.hasOwnProperty("gitInfoChanged")&&(p.gitInfoChanged=$root.GitInfo.toObject(t.gitInfoChanged,c),c.oneofs&&(p.type="gitInfoChanged")),t.pageNotFound!=null&&t.hasOwnProperty("pageNotFound")&&(p.pageNotFound=$root.PageNotFound.toObject(t.pageNotFound,c),c.oneofs&&(p.type="pageNotFound")),t.pagesChanged!=null&&t.hasOwnProperty("pagesChanged")&&(p.pagesChanged=$root.PagesChanged.toObject(t.pagesChanged,c),c.oneofs&&(p.type="pagesChanged")),t.debugLastBackmsgId!=null&&t.hasOwnProperty("debugLastBackmsgId")&&(p.debugLastBackmsgId=t.debugLastBackmsgId),t.pageProfile!=null&&t.hasOwnProperty("pageProfile")&&(p.pageProfile=$root.PageProfile.toObject(t.pageProfile,c),c.oneofs&&(p.type="pageProfile")),t.fileUrlsResponse!=null&&t.hasOwnProperty("fileUrlsResponse")&&(p.fileUrlsResponse=$root.FileURLsResponse.toObject(t.fileUrlsResponse,c),c.oneofs&&(p.type="fileUrlsResponse")),t.parentMessage!=null&&t.hasOwnProperty("parentMessage")&&(p.parentMessage=$root.ParentMessage.toObject(t.parentMessage,c),c.oneofs&&(p.type="parentMessage")),t.autoRerun!=null&&t.hasOwnProperty("autoRerun")&&(p.autoRerun=$root.AutoRerun.toObject(t.autoRerun,c),c.oneofs&&(p.type="autoRerun")),t.logo!=null&&t.hasOwnProperty("logo")&&(p.logo=$root.Logo.toObject(t.logo,c),c.oneofs&&(p.type="logo")),t.navigation!=null&&t.hasOwnProperty("navigation")&&(p.navigation=$root.Navigation.toObject(t.navigation,c),c.oneofs&&(p.type="navigation")),t.authRedirect!=null&&t.hasOwnProperty("authRedirect")&&(p.authRedirect=$root.AuthRedirect.toObject(t.authRedirect,c),c.oneofs&&(p.type="authRedirect")),t.deferredFileResponse!=null&&t.hasOwnProperty("deferredFileResponse")&&(p.deferredFileResponse=$root.DeferredFileResponse.toObject(t.deferredFileResponse,c),c.oneofs&&(p.type="deferredFileResponse")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ForwardMsg"},n.ScriptFinishedStatus=function(){const e={},t=Object.create(e);return t[e[0]="FINISHED_SUCCESSFULLY"]=0,t[e[1]="FINISHED_WITH_COMPILE_ERROR"]=1,t[e[2]="FINISHED_EARLY_FOR_RERUN"]=2,t[e[3]="FINISHED_FRAGMENT_RUN_SUCCESSFULLY"]=3,t}(),n})();$root.DeferredFileResponse=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.fileId="",n.prototype.url="",n.prototype.errorMsg="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),e.errorMsg!=null&&Object.hasOwnProperty.call(e,"errorMsg")&&t.uint32(26).string(e.errorMsg),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.DeferredFileResponse;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.fileId=e.string();break}case 2:{h.url=e.string();break}case 3:{h.errorMsg=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DeferredFileResponse)return e;let t=new $root.DeferredFileResponse;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.url!=null&&(t.url=String(e.url)),e.errorMsg!=null&&(t.errorMsg=String(e.errorMsg)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.fileId="",c.url="",c.errorMsg=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(c.fileId=e.fileId),e.url!=null&&e.hasOwnProperty("url")&&(c.url=e.url),e.errorMsg!=null&&e.hasOwnProperty("errorMsg")&&(c.errorMsg=e.errorMsg),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DeferredFileResponse"},n})();const ForwardMsgMetadata=$root.ForwardMsgMetadata=(()=>{function n(o){if(this.deltaPath=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.cacheable=!1,n.prototype.deltaPath=$util.emptyArray,n.prototype.elementDimensionSpec=null,n.prototype.activeScriptHash="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.cacheable!=null&&Object.hasOwnProperty.call(e,"cacheable")&&t.uint32(8).bool(e.cacheable),e.deltaPath!=null&&e.deltaPath.length){t.uint32(18).fork();for(let c=0;c<e.deltaPath.length;++c)t.uint32(e.deltaPath[c]);t.ldelim()}return e.elementDimensionSpec!=null&&Object.hasOwnProperty.call(e,"elementDimensionSpec")&&$root.ElementDimensionSpec.encode(e.elementDimensionSpec,t.uint32(26).fork()).ldelim(),e.activeScriptHash!=null&&Object.hasOwnProperty.call(e,"activeScriptHash")&&t.uint32(34).string(e.activeScriptHash),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ForwardMsgMetadata;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.cacheable=e.bool();break}case 2:{if(h.deltaPath&&h.deltaPath.length||(h.deltaPath=[]),(y&7)===2){let g=e.uint32()+e.pos;for(;e.pos<g;)h.deltaPath.push(e.uint32())}else h.deltaPath.push(e.uint32());break}case 3:{h.elementDimensionSpec=$root.ElementDimensionSpec.decode(e,e.uint32());break}case 4:{h.activeScriptHash=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ForwardMsgMetadata)return e;let t=new $root.ForwardMsgMetadata;
18if(e.cacheable!=null&&(t.cacheable=!!e.cacheable),e.deltaPath){if(!Array.isArray(e.deltaPath))throw TypeError(".ForwardMsgMetadata.deltaPath: array expected");t.deltaPath=[];for(let c=0;c<e.deltaPath.length;++c)t.deltaPath[c]=e.deltaPath[c]>>>0}if(e.elementDimensionSpec!=null){if(typeof e.elementDimensionSpec!="object")throw TypeError(".ForwardMsgMetadata.elementDimensionSpec: object expected");t.elementDimensionSpec=$root.ElementDimensionSpec.fromObject(e.elementDimensionSpec)}return e.activeScriptHash!=null&&(t.activeScriptHash=String(e.activeScriptHash)),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.deltaPath=[]),t.defaults&&(c.cacheable=!1,c.elementDimensionSpec=null,c.activeScriptHash=""),e.cacheable!=null&&e.hasOwnProperty("cacheable")&&(c.cacheable=e.cacheable),e.deltaPath&&e.deltaPath.length){c.deltaPath=[];for(let p=0;p<e.deltaPath.length;++p)c.deltaPath[p]=e.deltaPath[p]}return e.elementDimensionSpec!=null&&e.hasOwnProperty("elementDimensionSpec")&&(c.elementDimensionSpec=$root.ElementDimensionSpec.toObject(e.elementDimensionSpec,t)),e.activeScriptHash!=null&&e.hasOwnProperty("activeScriptHash")&&(c.activeScriptHash=e.activeScriptHash),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ForwardMsgMetadata"},n})();$root.ElementDimensionSpec=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.width=0,n.prototype.height=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.width!=null&&Object.hasOwnProperty.call(e,"width")&&t.uint32(8).uint32(e.width),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ElementDimensionSpec;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.width=e.uint32();break}case 2:{h.height=e.uint32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ElementDimensionSpec)return e;let t=new $root.ElementDimensionSpec;return e.width!=null&&(t.width=e.width>>>0),e.height!=null&&(t.height=e.height>>>0),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.width=0,c.height=0),e.width!=null&&e.hasOwnProperty("width")&&(c.width=e.width),e.height!=null&&e.hasOwnProperty("height")&&(c.height=e.height),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ElementDimensionSpec"},n})();const ForwardMsgList=$root.ForwardMsgList=(()=>{function n(o){if(this.messages=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.messages=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.messages!=null&&e.messages.length)for(let c=0;c<e.messages.length;++c)$root.ForwardMsg.encode(e.messages[c],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ForwardMsgList;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.messages&&h.messages.length||(h.messages=[]),h.messages.push($root.ForwardMsg.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ForwardMsgList)return e;let t=new $root.ForwardMsgList;if(e.messages){if(!Array.isArray(e.messages))throw TypeError(".ForwardMsgList.messages: array expected");t.messages=[];for(let c=0;c<e.messages.length;++c){if(typeof e.messages[c]!="object")throw TypeError(".ForwardMsgList.messages: object expected");t.messages[c]=$root.ForwardMsg.fromObject(e.messages[c])}}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.messages=[]),e.messages&&e.messages.length){c.messages=[];for(let p=0;p<e.messages.length;++p)c.messages[p]=$root.ForwardMsg.toObject(e.messages[p],t)}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ForwardMsgList"},n})(),GitInfo=$root.GitInfo=(()=>{function n(o){if(this.untrackedFiles=[],this.uncommittedFiles=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.repository="",n.prototype.branch="",n.prototype.module="",n.prototype.untrackedFiles=$util.emptyArray,n.prototype.uncommittedFiles=$util.emptyArray,n.prototype.state=0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.repository!=null&&Object.hasOwnProperty.call(e,"repository")&&t.uint32(10).string(e.repository),e.branch!=null&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(18).string(e.branch),e.module!=null&&Object.hasOwnProperty.call(e,"module")&&t.uint32(26).string(e.module),e.untrackedFiles!=null&&e.untrackedFiles.length)for(let c=0;c<e.untrackedFiles.length;++c)t.uint32(34).string(e.untrackedFiles[c]);if(e.uncommittedFiles!=null&&e.uncommittedFiles.length)for(let c=0;c<e.uncommittedFiles.length;++c)t.uint32(42).string(e.uncommittedFiles[c]);return e.state!=null&&Object.hasOwnProperty.call(e,"state")&&t.uint32(48).int32(e.state),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.GitInfo;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.repository=e.string();break}case 2:{h.branch=e.string();break}case 3:{h.module=e.string();break}case 4:{h.untrackedFiles&&h.untrackedFiles.length||(h.untrackedFiles=[]),h.untrackedFiles.push(e.string());break}case 5:{h.uncommittedFiles&&h.uncommittedFiles.length||(h.uncommittedFiles=[]),h.uncommittedFiles.push(e.string());break}case 6:{h.state=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.GitInfo)return e;let t=new $root.GitInfo;
18if(e.repository!=null&&(t.repository=String(e.repository)),e.branch!=null&&(t.branch=String(e.branch)),e.module!=null&&(t.module=String(e.module)),e.untrackedFiles){if(!Array.isArray(e.untrackedFiles))throw TypeError(".GitInfo.untrackedFiles: array expected");t.untrackedFiles=[];for(let c=0;c<e.untrackedFiles.length;++c)t.untrackedFiles[c]=String(e.untrackedFiles[c])}if(e.uncommittedFiles){if(!Array.isArray(e.uncommittedFiles))throw TypeError(".GitInfo.uncommittedFiles: array expected");t.uncommittedFiles=[];for(let c=0;c<e.uncommittedFiles.length;++c)t.uncommittedFiles[c]=String(e.uncommittedFiles[c])}switch(e.state){default:if(typeof e.state=="number"){t.state=e.state;break}break;case"DEFAULT":case 0:t.state=0;break;case"HEAD_DETACHED":case 1:t.state=1;break;case"AHEAD_OF_REMOTE":case 2:t.state=2;break}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.untrackedFiles=[],c.uncommittedFiles=[]),t.defaults&&(c.repository="",c.branch="",c.module="",c.state=t.enums===String?"DEFAULT":0),e.repository!=null&&e.hasOwnProperty("repository")&&(c.repository=e.repository),e.branch!=null&&e.hasOwnProperty("branch")&&(c.branch=e.branch),e.module!=null&&e.hasOwnProperty("module")&&(c.module=e.module),e.untrackedFiles&&e.untrackedFiles.length){c.untrackedFiles=[];for(let p=0;p<e.untrackedFiles.length;++p)c.untrackedFiles[p]=e.untrackedFiles[p]}if(e.uncommittedFiles&&e.uncommittedFiles.length){c.uncommittedFiles=[];for(let p=0;p<e.uncommittedFiles.length;++p)c.uncommittedFiles[p]=e.uncommittedFiles[p]}return e.state!=null&&e.hasOwnProperty("state")&&(c.state=t.enums===String?$root.GitInfo.GitStates[e.state]===void 0?e.state:$root.GitInfo.GitStates[e.state]:e.state),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/GitInfo"},n.GitStates=function(){const o={},e=Object.create(o);return e[o[0]="DEFAULT"]=0,e[o[1]="HEAD_DETACHED"]=1,e[o[2]="AHEAD_OF_REMOTE"]=2,e}(),n})();$root.Logo=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.image="",n.prototype.link="",n.prototype.iconImage="",n.prototype.size="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.image!=null&&Object.hasOwnProperty.call(e,"image")&&t.uint32(10).string(e.image),e.link!=null&&Object.hasOwnProperty.call(e,"link")&&t.uint32(18).string(e.link),e.iconImage!=null&&Object.hasOwnProperty.call(e,"iconImage")&&t.uint32(26).string(e.iconImage),e.size!=null&&Object.hasOwnProperty.call(e,"size")&&t.uint32(34).string(e.size),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Logo;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.image=e.string();break}case 2:{h.link=e.string();break}case 3:{h.iconImage=e.string();break}case 4:{h.size=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Logo)return e;let t=new $root.Logo;return e.image!=null&&(t.image=String(e.image)),e.link!=null&&(t.link=String(e.link)),e.iconImage!=null&&(t.iconImage=String(e.iconImage)),e.size!=null&&(t.size=String(e.size)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.image="",c.link="",c.iconImage="",c.size=""),e.image!=null&&e.hasOwnProperty("image")&&(c.image=e.image),e.link!=null&&e.hasOwnProperty("link")&&(c.link=e.link),e.iconImage!=null&&e.hasOwnProperty("iconImage")&&(c.iconImage=e.iconImage),e.size!=null&&e.hasOwnProperty("size")&&(c.size=e.size),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Logo"},n})();const Navigation=$root.Navigation=(()=>{function n(o){if(this.sections=[],this.appPages=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.sections=$util.emptyArray,n.prototype.appPages=$util.emptyArray,n.prototype.position=0,n.prototype.pageScriptHash="",n.prototype.expanded=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.sections!=null&&e.sections.length)for(let c=0;c<e.sections.length;++c)t.uint32(10).string(e.sections[c]);if(e.appPages!=null&&e.appPages.length)for(let c=0;c<e.appPages.length;++c)$root.AppPage.encode(e.appPages[c],t.uint32(18).fork()).ldelim();return e.position!=null&&Object.hasOwnProperty.call(e,"position")&&t.uint32(24).int32(e.position),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(34).string(e.pageScriptHash),e.expanded!=null&&Object.hasOwnProperty.call(e,"expanded")&&t.uint32(40).bool(e.expanded),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Navigation;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.sections&&h.sections.length||(h.sections=[]),h.sections.push(e.string());break}case 2:{h.appPages&&h.appPages.length||(h.appPages=[]),h.appPages.push($root.AppPage.decode(e,e.uint32()));break}case 3:{h.position=e.int32();break}case 4:{h.pageScriptHash=e.string();break}case 5:{h.expanded=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Navigation)return e;let t=new $root.Navigation;if(e.sections){if(!Array.isArray(e.sections))throw TypeError(".Navigation.sections: array expected");t.sections=[];for(let c=0;c<e.sections.length;++c)t.sections[c]=String(e.sections[c])}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".Navigation.appPages: array expected");t.appPages=[];for(let c=0;c<e.appPages.length;++c){if(typeof e.appPages[c]!="object")throw TypeError(".Navigation.appPages: object expected");t.appPages[c]=$root.AppPage.fromObject(e.appPages[c])}}switch(e.position){default:if(typeof e.position=="number"){t.position=e.position;break}break;case"HIDDEN":case 0:t.position=0;break;case"SIDEBAR":case 1:t.position=1;break;case"TOP":case 2:t.position=2;break}return e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.expanded!=null&&(t.expanded=!!e.expanded),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.sections=[],c.appPages=[]),t.defaults&&(c.position=t.enums===String?"HIDDEN":0,c.pageScriptHash="",c.expanded=!1),e.sections&&e.sections.length){c.sections=[];for(let p=0;p<e.sections.length;++p)c.sections[p]=e.sections[p]}if(e.appPages&&e.appPages.length){c.appPages=[];for(let p=0;p<e.appPages.length;++p)c.appPages[p]=$root.AppPage.toObject(e.appPages[p],t)}return e.position!=null&&e.hasOwnProperty("position")&&(c.position=t.enums===String?$root.Navigation.Position[e.position]===void 0?e.position:$root.Navigation.Position[e.position]:e.position),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(c.pageScriptHash=e.pageScriptHash),e.expanded!=null&&e.hasOwnProperty("expanded")&&(c.expanded=e.expanded),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Navigation"},n.Position=function(){const o={},e=Object.create(o);return e[o[0]="HIDDEN"]=0,e[o[1]="SIDEBAR"]=1,e[o[2]="TOP"]=2,e}(),n})();$root.NewSession=(()=>{function n(o){if(this.appPages=[],this.fragmentIdsThisRun=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.initialize=null,n.prototype.scriptRunId="",n.prototype.name="",n.prototype.mainScriptPath="",n.prototype.config=null,n.prototype.customTheme=null,n.prototype.appPages=$util.emptyArray,n.prototype.pageScriptHash="",n.prototype.fragmentIdsThisRun=$util.emptyArray,n.prototype.mainScriptHash="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.initialize!=null&&Object.hasOwnProperty.call(e,"initialize")&&$root.Initialize.encode(e.initialize,t.uint32(10).fork()).ldelim(),e.scriptRunId!=null&&Object.hasOwnProperty.call(e,"scriptRunId")&&t.uint32(18).string(e.scriptRunId),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),e.mainScriptPath!=null&&Object.hasOwnProperty.call(e,"mainScriptPath")&&t.uint32(34).string(e.mainScriptPath),e.config!=null&&Object.hasOwnProperty.call(e,"config")&&$root.Config.encode(e.config,t.uint32(50).fork()).ldelim(),e.customTheme!=null&&Object.hasOwnProperty.call(e,"customTheme")&&$root.CustomThemeConfig.encode(e.customTheme,t.uint32(58).fork()).ldelim(),e.appPages!=null&&e.appPages.length)for(let c=0;c<e.appPages.length;++c)$root.AppPage.encode(e.appPages[c],t.uint32(66).fork()).ldelim();if(e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(74).string(e.pageScriptHash),e.fragmentIdsThisRun!=null&&e.fragmentIdsThisRun.length)for(let c=0;c<e.fragmentIdsThisRun.length;++c)t.uint32(82).string(e.fragmentIdsThisRun[c]);return e.mainScriptHash!=null&&Object.hasOwnProperty.call(e,"mainScriptHash")&&t.uint32(90).string(e.mainScriptHash),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.NewSession;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.initialize=$root.Initialize.decode(e,e.uint32());break}case 2:{h.scriptRunId=e.string();break}case 3:{h.name=e.string();break}case 4:{h.mainScriptPath=e.string();break}case 6:{h.config=$root.Config.decode(e,e.uint32());break}case 7:{h.customTheme=$root.CustomThemeConfig.decode(e,e.uint32());break}case 8:{h.appPages&&h.appPages.length||(h.appPages=[]),h.appPages.push($root.AppPage.decode(e,e.uint32()));break}case 9:{h.pageScriptHash=e.string();break}case 10:{h.fragmentIdsThisRun&&h.fragmentIdsThisRun.length||(h.fragmentIdsThisRun=[]),h.fragmentIdsThisRun.push(e.string());break}case 11:{h.mainScriptHash=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.NewSession)return e;let t=new $root.NewSession;if(e.initialize!=null){if(typeof e.initialize!="object")throw TypeError(".NewSession.initialize: object expected");t.initialize=$root.Initialize.fromObject(e.initialize)}if(e.scriptRunId!=null&&(t.scriptRunId=String(e.scriptRunId)),e.name!=null&&(t.name=String(e.name)),e.mainScriptPath!=null&&(t.mainScriptPath=String(e.mainScriptPath)),e.config!=null){if(typeof e.config!="object")throw TypeError(".NewSession.config: object expected");t.config=$root.Config.fromObject(e.config)}if(e.customTheme!=null){if(typeof e.customTheme!="object")throw TypeError(".NewSession.customTheme: object expected");t.customTheme=$root.CustomThemeConfig.fromObject(e.customTheme)}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".NewSession.appPages: array expected");t.appPages=[];for(let c=0;c<e.appPages.length;++c){if(typeof e.appPages[c]!="object")throw TypeError(".NewSession.appPages: object expected");t.appPages[c]=$root.AppPage.fromObject(e.appPages[c])}}if(e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.fragmentIdsThisRun){if(!Array.isArray(e.fragmentIdsThisRun))throw TypeError(".NewSession.fragmentIdsThisRun: array expected");t.fragmentIdsThisRun=[];for(let c=0;c<e.fragmentIdsThisRun.length;++c)t.fragmentIdsThisRun[c]=String(e.fragmentIdsThisRun[c])}return e.mainScriptHash!=null&&(t.mainScriptHash=String(e.mainScriptHash)),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.appPages=[],c.fragmentIdsThisRun=[]),t.defaults&&(c.initialize=null,c.scriptRunId="",c.name="",c.mainScriptPath="",c.config=null,c.customTheme=null,c.pageScriptHash="",c.mainScriptHash=""),e.initialize!=null&&e.hasOwnProperty("initialize")&&(c.initialize=$root.Initialize.toObject(e.initialize,t)),e.scriptRunId!=null&&e.hasOwnProperty("scriptRunId")&&(c.scriptRunId=e.scriptRunId),e.name!=null&&e.hasOwnProperty("name")&&(c.name=e.name),e.mainScriptPath!=null&&e.hasOwnProperty("mainScriptPath")&&(c.mainScriptPath=e.mainScriptPath),e.config!=null&&e.hasOwnProperty("config")&&(c.config=$root.Config.toObject(e.config,t)),e.customTheme!=null&&e.hasOwnProperty("customTheme")&&(c.customTheme=$root.CustomThemeConfig.toObject(e.customTheme,t)),e.appPages&&e.appPages.length){c.appPages=[];for(let p=0;p<e.appPages.length;++p)c.appPages[p]=$root.AppPage.toObject(e.appPages[p],t)}if(e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(c.pageScriptHash=e.pageScriptHash),e.fragmentIdsThisRun&&e.fragmentIdsThisRun.length){c.fragmentIdsThisRun=[];for(let p=0;p<e.fragmentIdsThisRun.length;++p)c.fragmentIdsThisRun[p]=e.fragmentIdsThisRun[p]}return e.mainScriptHash!=null&&e.hasOwnProperty("mainScriptHash")&&(c.mainScriptHash=e.mainScriptHash),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/NewSession"},n})();$root.Initialize=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.userInfo=null,n.prototype.environmentInfo=null,n.prototype.sessionStatus=null,n.prototype.commandLine="",n.prototype.sessionId="",n.prototype.isHello=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.userInfo!=null&&Object.hasOwnProperty.call(e,"userInfo")&&$root.UserInfo.encode(e.userInfo,t.uint32(10).fork()).ldelim(),e.environmentInfo!=null&&Object.hasOwnProperty.call(e,"environmentInfo")&&$root.EnvironmentInfo.encode(e.environmentInfo,t.uint32(26).fork()).ldelim(),e.sessionStatus!=null&&Object.hasOwnProperty.call(e,"sessionStatus")&&$root.SessionStatus.encode(e.sessionStatus,t.uint32(34).fork()).ldelim(),e.commandLine!=null&&Object.hasOwnProperty.call(e,"commandLine")&&t.uint32(42).string(e.commandLine),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(50).string(e.sessionId),e.isHello!=null&&Object.hasOwnProperty.call(e,"isHello")&&t.uint32(56).bool(e.isHello),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Initialize;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.userInfo=$root.UserInfo.decode(e,e.uint32());break}case 3:{h.environmentInfo=$root.EnvironmentInfo.decode(e,e.uint32());break}case 4:{h.sessionStatus=$root.SessionStatus.decode(e,e.uint32());break}case 5:{h.commandLine=e.string();break}case 6:{h.sessionId=e.string();break}case 7:{h.isHello=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Initialize)return e;let t=new $root.Initialize;if(e.userInfo!=null){if(typeof e.userInfo!="object")throw TypeError(".Initialize.userInfo: object expected");t.userInfo=$root.UserInfo.fromObject(e.userInfo)}if(e.environmentInfo!=null){if(typeof e.environmentInfo!="object")throw TypeError(".Initialize.environmentInfo: object expected");t.environmentInfo=$root.EnvironmentInfo.fromObject(e.environmentInfo)}if(e.sessionStatus!=null){if(typeof e.sessionStatus!="object")throw TypeError(".Initialize.sessionStatus: object expected");t.sessionStatus=$root.SessionStatus.fromObject(e.sessionStatus)}return e.commandLine!=null&&(t.commandLine=String(e.commandLine)),e.sessionId!=null&&(t.sessionId=String(e.sessionId)),e.isHello!=null&&(t.isHello=!!e.isHello),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.userInfo=null,c.environmentInfo=null,c.sessionStatus=null,c.commandLine="",c.sessionId="",c.isHello=!1),e.userInfo!=null&&e.hasOwnProperty("userInfo")&&(c.userInfo=$root.UserInfo.toObject(e.userInfo,t)),e.environmentInfo!=null&&e.hasOwnProperty("environmentInfo")&&(c.environmentInfo=$root.EnvironmentInfo.toObject(e.environmentInfo,t)),e.sessionStatus!=null&&e.hasOwnProperty("sessionStatus")&&(c.sessionStatus=$root.SessionStatus.toObject(e.sessionStatus,t)),e.commandLine!=null&&e.hasOwnProperty("commandLine")&&(c.commandLine=e.commandLine),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(c.sessionId=e.sessionId),e.isHello!=null&&e.hasOwnProperty("isHello")&&(c.isHello=e.isHello),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Initialize"},n})();const
18Config=$root.Config=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.gatherUsageStats=!1,n.prototype.maxCachedMessageAge=0,n.prototype.mapboxToken="",n.prototype.allowRunOnSave=!1,n.prototype.hideTopBar=!1,n.prototype.hideSidebarNav=!1,n.prototype.toolbarMode=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.gatherUsageStats!=null&&Object.hasOwnProperty.call(e,"gatherUsageStats")&&t.uint32(16).bool(e.gatherUsageStats),e.maxCachedMessageAge!=null&&Object.hasOwnProperty.call(e,"maxCachedMessageAge")&&t.uint32(24).int32(e.maxCachedMessageAge),e.mapboxToken!=null&&Object.hasOwnProperty.call(e,"mapboxToken")&&t.uint32(34).string(e.mapboxToken),e.allowRunOnSave!=null&&Object.hasOwnProperty.call(e,"allowRunOnSave")&&t.uint32(40).bool(e.allowRunOnSave),e.hideTopBar!=null&&Object.hasOwnProperty.call(e,"hideTopBar")&&t.uint32(48).bool(e.hideTopBar),e.hideSidebarNav!=null&&Object.hasOwnProperty.call(e,"hideSidebarNav")&&t.uint32(56).bool(e.hideSidebarNav),e.toolbarMode!=null&&Object.hasOwnProperty.call(e,"toolbarMode")&&t.uint32(64).int32(e.toolbarMode),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Config;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 2:{h.gatherUsageStats=e.bool();break}case 3:{h.maxCachedMessageAge=e.int32();break}case 4:{h.mapboxToken=e.string();break}case 5:{h.allowRunOnSave=e.bool();break}case 6:{h.hideTopBar=e.bool();break}case 7:{h.hideSidebarNav=e.bool();break}case 8:{h.toolbarMode=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Config)return e;let t=new $root.Config;switch(e.gatherUsageStats!=null&&(t.gatherUsageStats=!!e.gatherUsageStats),e.maxCachedMessageAge!=null&&(t.maxCachedMessageAge=e.maxCachedMessageAge|0),e.mapboxToken!=null&&(t.mapboxToken=String(e.mapboxToken)),e.allowRunOnSave!=null&&(t.allowRunOnSave=!!e.allowRunOnSave),e.hideTopBar!=null&&(t.hideTopBar=!!e.hideTopBar),e.hideSidebarNav!=null&&(t.hideSidebarNav=!!e.hideSidebarNav),e.toolbarMode){default:if(typeof e.toolbarMode=="number"){t.toolbarMode=e.toolbarMode;break}break;case"AUTO":case 0:t.toolbarMode=0;break;case"DEVELOPER":case 1:t.toolbarMode=1;break;case"VIEWER":case 2:t.toolbarMode=2;break;case"MINIMAL":case 3:t.toolbarMode=3;break}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.gatherUsageStats=!1,c.maxCachedMessageAge=0,c.mapboxToken="",c.allowRunOnSave=!1,c.hideTopBar=!1,c.hideSidebarNav=!1,c.toolbarMode=t.enums===String?"AUTO":0),e.gatherUsageStats!=null&&e.hasOwnProperty("gatherUsageStats")&&(c.gatherUsageStats=e.gatherUsageStats),e.maxCachedMessageAge!=null&&e.hasOwnProperty("maxCachedMessageAge")&&(c.maxCachedMessageAge=e.maxCachedMessageAge),e.mapboxToken!=null&&e.hasOwnProperty("mapboxToken")&&(c.mapboxToken=e.mapboxToken),e.allowRunOnSave!=null&&e.hasOwnProperty("allowRunOnSave")&&(c.allowRunOnSave=e.allowRunOnSave),e.hideTopBar!=null&&e.hasOwnProperty("hideTopBar")&&(c.hideTopBar=e.hideTopBar),e.hideSidebarNav!=null&&e.hasOwnProperty("hideSidebarNav")&&(c.hideSidebarNav=e.hideSidebarNav),e.toolbarMode!=null&&e.hasOwnProperty("toolbarMode")&&(c.toolbarMode=t.enums===String?$root.Config.ToolbarMode[e.toolbarMode]===void 0?e.toolbarMode:$root.Config.ToolbarMode[e.toolbarMode]:e.toolbarMode),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Config"},n.ToolbarMode=function(){const o={},e=Object.create(o);return e[o[0]="AUTO"]=0,e[o[1]="DEVELOPER"]=1,e[o[2]="VIEWER"]=2,e[o[3]="MINIMAL"]=3,e}(),n})(),CustomThemeConfig=$root.CustomThemeConfig=(()=>{function n(e){if(this.fontFaces=[],this.fontSources=[],this.headingFontSizes=[],this.headingFontWeights=[],this.chartCategoricalColors=[],this.chartSequentialColors=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}
18n.prototype.primaryColor="",n.prototype.secondaryBackgroundColor="",n.prototype.backgroundColor="",n.prototype.textColor="",n.prototype.font=0,n.prototype.base=0,n.prototype.widgetBackgroundColor="",n.prototype.widgetBorderColor="",n.prototype.radii=null,n.prototype.headingFont="",n.prototype.bodyFont="",n.prototype.codeFont="",n.prototype.fontFaces=$util.emptyArray,n.prototype.fontSources=$util.emptyArray,n.prototype.fontSizes=null,n.prototype.skeletonBackgroundColor="",n.prototype.baseRadius=null,n.prototype.buttonRadius=null,n.prototype.borderColor=null,n.prototype.dataframeBorderColor=null,n.prototype.showWidgetBorder=null,n.prototype.linkColor=null,n.prototype.linkUnderline=null,n.prototype.baseFontSize=null,n.prototype.baseFontWeight=null,n.prototype.codeFontWeight=null,n.prototype.codeFontSize=null,n.prototype.headingFontSizes=$util.emptyArray,n.prototype.headingFontWeights=$util.emptyArray,n.prototype.showSidebarBorder=null,n.prototype.codeTextColor=null,n.prototype.codeBackgroundColor=null,n.prototype.dataframeHeaderBackgroundColor=null,n.prototype.chartCategoricalColors=$util.emptyArray,n.prototype.chartSequentialColors=$util.emptyArray,n.prototype.redColor=null,n.prototype.orangeColor=null,n.prototype.yellowColor=null,n.prototype.blueColor=null,n.prototype.greenColor=null,n.prototype.violetColor=null,n.prototype.grayColor=null,n.prototype.redBackgroundColor=null,n.prototype.orangeBackgroundColor=null,n.prototype.yellowBackgroundColor=null,n.prototype.blueBackgroundColor=null,n.prototype.greenBackgroundColor=null,n.prototype.violetBackgroundColor=null,n.prototype.grayBackgroundColor=null,n.prototype.redTextColor=null,n.prototype.orangeTextColor=null,n.prototype.yellowTextColor=null,n.prototype.blueTextColor=null,n.prototype.greenTextColor=null,n.prototype.violetTextColor=null,n.prototype.grayTextColor=null,n.prototype.sidebar=null,n.prototype.light=null,n.prototype.dark=null;let o;return Object.defineProperty(n.prototype,"_baseRadius",{get:$util.oneOfGetter(o=["baseRadius"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_buttonRadius",{get:$util.oneOfGetter(o=["buttonRadius"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_borderColor",{get:$util.oneOfGetter(o=["borderColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_dataframeBorderColor",{get:$util.oneOfGetter(o=["dataframeBorderColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_showWidgetBorder",{get:$util.oneOfGetter(o=["showWidgetBorder"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_linkColor",{get:$util.oneOfGetter(o=["linkColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_linkUnderline",{get:$util.oneOfGetter(o=["linkUnderline"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_baseFontSize",{get:$util.oneOfGetter(o=["baseFontSize"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_baseFontWeight",{get:$util.oneOfGetter(o=["baseFontWeight"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_codeFontWeight",{get:$util.oneOfGetter(o=["codeFontWeight"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_codeFontSize",{get:$util.oneOfGetter(o=["codeFontSize"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_showSidebarBorder",{get:$util.oneOfGetter(o=["showSidebarBorder"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_codeTextColor",{get:$util.oneOfGetter(o=["codeTextColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_codeBackgroundColor",{get:$util.oneOfGetter(o=["codeBackgroundColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_dataframeHeaderBackgroundColor",{get:$util.oneOfGetter(o=["dataframeHeaderBackgroundColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_redColor",{get:$util.oneOfGetter(o=["redColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_orangeColor",{get:$util.oneOfGetter(o=["orangeColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_yellowColor",{get:$util.oneOfGetter(o=["yellowColor"]),set:$util.oneOfSetter(o
vendor: 4,241 bytes, line 18
18)}),Object.defineProperty(n.prototype,"_blueColor",{get:$util.oneOfGetter(o=["blueColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_greenColor",{get:$util.oneOfGetter(o=["greenColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_violetColor",{get:$util.oneOfGetter(o=["violetColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_grayColor",{get:$util.oneOfGetter(o=["grayColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_redBackgroundColor",{get:$util.oneOfGetter(o=["redBackgroundColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_orangeBackgroundColor",{get:$util.oneOfGetter(o=["orangeBackgroundColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_yellowBackgroundColor",{get:$util.oneOfGetter(o=["yellowBackgroundColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_blueBackgroundColor",{get:$util.oneOfGetter(o=["blueBackgroundColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_greenBackgroundColor",{get:$util.oneOfGetter(o=["greenBackgroundColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_violetBackgroundColor",{get:$util.oneOfGetter(o=["violetBackgroundColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_grayBackgroundColor",{get:$util.oneOfGetter(o=["grayBackgroundColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_redTextColor",{get:$util.oneOfGetter(o=["redTextColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_orangeTextColor",{get:$util.oneOfGetter(o=["orangeTextColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_yellowTextColor",{get:$util.oneOfGetter(o=["yellowTextColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_blueTextColor",{get:$util.oneOfGetter(o=["blueTextColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_greenTextColor",{get:$util.oneOfGetter(o=["greenTextColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_violetTextColor",{get:$util.oneOfGetter(o=["violetTextColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_grayTextColor",{get:$util.oneOfGetter(o=["grayTextColor"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_sidebar",{get:$util.oneOfGetter(o=["sidebar"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_light",{get:$util.oneOfGetter(o=["light"]),set:$util.oneOfSetter(o)}),Object.defineProperty(n.prototype,"_dark",{get:$util.oneOfGetter(o=["dark"]),set:$util.oneOfSetter(o)}),n.create=function(t){return new n(t)},n.encode=function(t,c){if(c||(c=$Writer.create()),t.primaryColor!=null&&Object.hasOwnProperty.call(t,"primaryColor")&&c.uint32(10).string(t.primaryColor),t.secondaryBackgroundColor!=null&&Object.hasOwnProperty.call(t,"secondaryBackgroundColor")&&c.uint32(18).string(t.secondaryBackgroundColor),t.backgroundColor!=null&&Object.hasOwnProperty.call(t,"backgroundColor")&&c.uint32(26).string(t.backgroundColor),t.textColor!=null&&Object.hasOwnProperty.call(t,"textColor")&&c.uint32(34).string(t.textColor),t.font!=null&&Object.hasOwnProperty.call(t,"font")&&c.uint32(40).int32(t.font),t.base!=null&&Object.hasOwnProperty.call(t,"base")&&c.uint32(48).int32(t.base),t.widgetBackgroundColor!=null&&Object.hasOwnProperty.call(t,"widgetBackgroundColor")&&c.uint32(58).string(t.widgetBackgroundColor),t.widgetBorderColor!=null&&Object.hasOwnProperty.call(t,"widgetBorderColor")&&c.uint32(66).string(t.widgetBorderColor),t.radii!=null&&Object.hasOwnProperty.call(t,"radii")&&$root.Radii.encode(t.radii,c.uint32(74).fork()).ldelim(),t.headingFont!=null&&Object.hasOwnProperty.call(t,"headingFont")&&c.uint32(98).string(t.headingFont),t.bodyFont!=null&&Object.hasOwnProperty.call(t,"bodyFont")&&c.uint32(106).string(t.bodyFont),t.codeFont!=null&&Object.hasOwnProperty.call(t,"codeFont")&&c.uint32(114).string(t.codeFont),t.fontFaces!=null&&t.fontFaces.length)for(let p=0;p<t.fontFaces.length;++p)$root.FontFace.encode(t.fontFaces[p],c.uint32(122).fork()).ldelim();if(t.fontSizes!=null&&Object.hasOwnProperty.call(t,"fontSizes")&&$root.FontSizes.encode(t.fontSizes,c.uint32(130).fork()).ldelim(),t.skeletonBackgroun
18dColor!=null&&Object.hasOwnProperty.call(t,"skeletonBackgroundColor")&&c.uint32(138).string(t.skeletonBackgroundColor),t.baseRadius!=null&&Object.hasOwnProperty.call(t,"baseRadius")&&c.uint32(146).string(t.baseRadius),t.borderColor!=null&&Object.hasOwnProperty.call(t,"borderColor")&&c.uint32(154).string(t.borderColor),t.showWidgetBorder!=null&&Object.hasOwnProperty.call(t,"showWidgetBorder")&&c.uint32(160).bool(t.showWidgetBorder),t.linkColor!=null&&Object.hasOwnProperty.call(t,"linkColor")&&c.uint32(170).string(t.linkColor),t.baseFontSize!=null&&Object.hasOwnProperty.call(t,"baseFontSize")&&c.uint32(176).int32(t.baseFontSize),t.showSidebarBorder!=null&&Object.hasOwnProperty.call(t,"showSidebarBorder")&&c.uint32(184).bool(t.showSidebarBorder),t.sidebar!=null&&Object.hasOwnProperty.call(t,"sidebar")&&$root.CustomThemeConfig.encode(t.sidebar,c.uint32(194).fork()).ldelim(),t.codeBackgroundColor!=null&&Object.hasOwnProperty.call(t,"codeBackgroundColor")&&c.uint32(202).string(t.codeBackgroundColor),t.buttonRadius!=null&&Object.hasOwnProperty.call(t,"buttonRadius")&&c.uint32(210).string(t.buttonRadius),t.dataframeBorderColor!=null&&Object.hasOwnProperty.call(t,"dataframeBorderColor")&&c.uint32(218).string(t.dataframeBorderColor),t.codeFontSize!=null&&Object.hasOwnProperty.call(t,"codeFontSize")&&c.uint32(226).string(t.codeFontSize),t.linkUnderline!=null&&Object.hasOwnProperty.call(t,"linkUnderline")&&c.uint32(232).bool(t.linkUnderline),t.baseFontWeight!=null&&Object.hasOwnProperty.call(t,"baseFontWeight")&&c.uint32(240).int32(t.baseFontWeight),t.dataframeHeaderBackgroundColor!=null&&Object.hasOwnProperty.call(t,"dataframeHeaderBackgroundColor")&&c.uint32(250).string(t.dataframeHeaderBackgroundColor),t.codeFontWeight!=null&&Object.hasOwnProperty.call(t,"codeFontWeight")&&c.uint32(256).int32(t.codeFontWeight),t.chartCategoricalColors!=null&&t.chartCategoricalColors.length)for(let p=0;p<t.chartCategoricalColors.length;++p)c.uint32(266).string(t.chartCategoricalColors[p]);if(t.headingFontWeights!=null&&t.headingFontWeights.length){c.uint32(274).fork();for(let p=0;p<t.headingFontWeights.length;++p)c.int32(t.headingFontWeights[p]);c.ldelim()}if(t.headingFontSizes!=null&&t.headingFontSizes.length)for(let p=0;p<t.headingFontSizes.length;++p)c.uint32(282).string(t.headingFontSizes[p]);if(t.chartSequentialColors!=null&&t.chartSequentialColors.length)for(let p=0;p<t.chartSequentialColors.length;++p)c.uint32(290).string(t.chartSequentialColors[p]);if(t.fontSources!=null&&t.fontSources.length)for(let p=0;p<t.fontSources.length;++p)$root.FontSource.encode(t.fontSources[p],c.uint32(298).fork()).ldelim();return t.redColor!=null&&Object.hasOwnProperty.call(t,"redColor")&&c.uint32(306).string(t.redColor),t.orangeColor!=null&&Object.hasOwnProperty.call(t,"orangeColor")&&c.uint32(314).string(t.orangeColor),t.yellowColor!=null&&Object.hasOwnProperty.call(t,"yellowColor")&&c.uint32(322).string(t.yellowColor),t.blueColor!=null&&Object.hasOwnProperty.call(t,"blueColor")&&c.uint32(330).string(t.blueColor),t.greenColor!=null&&Object.hasOwnProperty.call(t,"greenColor")&&c.uint32(338).string(t.greenColor),t.violetColor!=null&&Object.hasOwnProperty.call(t,"violetColor")&&c.uint32(346).string(t.violetColor),t.grayColor!=null&&Object.hasOwnProperty.call(t,"grayColor")&&c.uint32(354).string(t.grayColor),t.redBackgroundColor!=null&&Object.hasOwnProperty.call(t,"redBackgroundColor")&&c.uint32(362).string(t.redBackgroundColor),t.orangeBackgroundColor!=null&&Object.hasOwnProperty.call(t,"orangeBackgroundColor")&&c.uint32(370).string(t.orangeBackgroundColor),t.yellowBackgroundColor!=null&&Object.hasOwnProperty.call(t,"yellowBackgroundColor")&&c.uint32(378).string(t.yellowBackgroundColor),t.blueBackgroundColor!=null&&Object.hasOwnProperty.call(t,"blueBackgroundColor")&&c.uint32(386).string(t.blueBackgroundColor),t.greenBackgroundColor!=null&&Object.hasOwnProperty.call(t,"greenBackgroundColor")&&c.uint32(394).string(t.greenBackgroundColor),t.violetBackgroundColor!=null&&Object.hasOwnProperty.call(t,"violetBackgroundColor")&&c.uint32(402).string(t.violetBackgroundColor),t.grayBackgroun
18dColor!=null&&Object.hasOwnProperty.call(t,"grayBackgroundColor")&&c.uint32(410).string(t.grayBackgroundColor),t.redTextColor!=null&&Object.hasOwnProperty.call(t,"redTextColor")&&c.uint32(418).string(t.redTextColor),t.orangeTextColor!=null&&Object.hasOwnProperty.call(t,"orangeTextColor")&&c.uint32(426).string(t.orangeTextColor),t.yellowTextColor!=null&&Object.hasOwnProperty.call(t,"yellowTextColor")&&c.uint32(434).string(t.yellowTextColor),t.blueTextColor!=null&&Object.hasOwnProperty.call(t,"blueTextColor")&&c.uint32(442).string(t.blueTextColor),t.greenTextColor!=null&&Object.hasOwnProperty.call(t,"greenTextColor")&&c.uint32(450).string(t.greenTextColor),t.violetTextColor!=null&&Object.hasOwnProperty.call(t,"violetTextColor")&&c.uint32(458).string(t.violetTextColor),t.grayTextColor!=null&&Object.hasOwnProperty.call(t,"grayTextColor")&&c.uint32(466).string(t.grayTextColor),t.codeTextColor!=null&&Object.hasOwnProperty.call(t,"codeTextColor")&&c.uint32(474).string(t.codeTextColor),t.light!=null&&Object.hasOwnProperty.call(t,"light")&&$root.CustomThemeConfig.encode(t.light,c.uint32(482).fork()).ldelim(),t.dark!=null&&Object.hasOwnProperty.call(t,"dark")&&$root.CustomThemeConfig.encode(t.dark,c.uint32(490).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.CustomThemeConfig;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.primaryColor=t.string();break}case 2:{y.secondaryBackgroundColor=t.string();break}case 3:{y.backgroundColor=t.string();break}case 4:{y.textColor=t.string();break}case 5:{y.font=t.int32();break}case 6:{y.base=t.int32();break}case 7:{y.widgetBackgroundColor=t.string();break}case 8:{y.widgetBorderColor=t.string();break}case 9:{y.radii=$root.Radii.decode(t,t.uint32());break}case 12:{y.headingFont=t.string();break}case 13:{y.bodyFont=t.string();break}case 14:{y.codeFont=t.string();break}case 15:{y.fontFaces&&y.fontFaces.length||(y.fontFaces=[]),y.fontFaces.push($root.FontFace.decode(t,t.uint32()));break}case 37:{y.fontSources&&y.fontSources.length||(y.fontSources=[]),y.fontSources.push($root.FontSource.decode(t,t.uint32()));break}case 16:{y.fontSizes=$root.FontSizes.decode(t,t.uint32());break}case 17:{y.skeletonBackgroundColor=t.string();break}case 18:{y.baseRadius=t.string();break}case 26:{y.buttonRadius=t.string();break}case 19:{y.borderColor=t.string();break}case 27:{y.dataframeBorderColor=t.string();break}case 20:{y.showWidgetBorder=t.bool();break}case 21:{y.linkColor=t.string();break}case 29:{y.linkUnderline=t.bool();break}case 22:{y.baseFontSize=t.int32();break}case 30:{y.baseFontWeight=t.int32();break}case 32:{y.codeFontWeight=t.int32();break}case 28:{y.codeFontSize=t.string();break}case 35:{y.headingFontSizes&&y.headingFontSizes.length||(y.headingFontSizes=[]),y.headingFontSizes.push(t.string());break}case 34:{if(y.headingFontWeights&&y.headingFontWeights.length||(y.headingFontWeights=[]),(g&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)y.headingFontWeights.push(t.int32())}else y.headingFontWeights.push(t.int32());break}case 23:{y.showSidebarBorder=t.bool();break}case 59:{y.codeTextColor=t.string();break}case 25:{y.codeBackgroundColor=t.string();break}case 31:{y.dataframeHeaderBackgroundColor=t.string();break}case 33:{y.chartCategoricalColors&&y.chartCategoricalColors.length||(y.chartCategoricalColors=[]),y.chartCategoricalColors.push(t.string());break}case 36:{y.chartSequentialColors&&y.chartSequentialColors.length||(y.chartSequentialColors=[]),y.chartSequentialColors.push(t.string());break}case 38:{y.redColor=t.string();break}case 39:{y.orangeColor=t.string();break}case 40:{y.yellowColor=t.string();break}case 41:{y.blueColor=t.string();break}case 42:{y.greenColor=t.string();break}case 43:{y.violetColor=t.string();break}case 44:{y.grayColor=t.string();break}case 45:{y.redBackgroundColor=t.string();break}case 46:{y.orangeBackgroundColor=t.string();break}case 47:{y.yellowBackgroundColor=t.string();break}case 48:{y.blueBackgroundColor=t.string();break}case 49:{y.greenBackgroundColor=t.string();break}
18case 50:{y.violetBackgroundColor=t.string();break}case 51:{y.grayBackgroundColor=t.string();break}case 52:{y.redTextColor=t.string();break}case 53:{y.orangeTextColor=t.string();break}case 54:{y.yellowTextColor=t.string();break}case 55:{y.blueTextColor=t.string();break}case 56:{y.greenTextColor=t.string();break}case 57:{y.violetTextColor=t.string();break}case 58:{y.grayTextColor=t.string();break}case 24:{y.sidebar=$root.CustomThemeConfig.decode(t,t.uint32());break}case 60:{y.light=$root.CustomThemeConfig.decode(t,t.uint32());break}case 61:{y.dark=$root.CustomThemeConfig.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.CustomThemeConfig)return t;let c=new $root.CustomThemeConfig;switch(t.primaryColor!=null&&(c.primaryColor=String(t.primaryColor)),t.secondaryBackgroundColor!=null&&(c.secondaryBackgroundColor=String(t.secondaryBackgroundColor)),t.backgroundColor!=null&&(c.backgroundColor=String(t.backgroundColor)),t.textColor!=null&&(c.textColor=String(t.textColor)),t.font){default:if(typeof t.font=="number"){c.font=t.font;break}break;case"SANS_SERIF":case 0:c.font=0;break;case"SERIF":case 1:c.font=1;break;case"MONOSPACE":case 2:c.font=2;break}switch(t.base){default:if(typeof t.base=="number"){c.base=t.base;break}break;case"LIGHT":case 0:c.base=0;break;case"DARK":case 1:c.base=1;break}if(t.widgetBackgroundColor!=null&&(c.widgetBackgroundColor=String(t.widgetBackgroundColor)),t.widgetBorderColor!=null&&(c.widgetBorderColor=String(t.widgetBorderColor)),t.radii!=null){if(typeof t.radii!="object")throw TypeError(".CustomThemeConfig.radii: object expected");c.radii=$root.Radii.fromObject(t.radii)}if(t.headingFont!=null&&(c.headingFont=String(t.headingFont)),t.bodyFont!=null&&(c.bodyFont=String(t.bodyFont)),t.codeFont!=null&&(c.codeFont=String(t.codeFont)),t.fontFaces){if(!Array.isArray(t.fontFaces))throw TypeError(".CustomThemeConfig.fontFaces: array expected");c.fontFaces=[];for(let p=0;p<t.fontFaces.length;++p){if(typeof t.fontFaces[p]!="object")throw TypeError(".CustomThemeConfig.fontFaces: object expected");c.fontFaces[p]=$root.FontFace.fromObject(t.fontFaces[p])}}if(t.fontSources){if(!Array.isArray(t.fontSources))throw TypeError(".CustomThemeConfig.fontSources: array expected");c.fontSources=[];for(let p=0;p<t.fontSources.length;++p){if(typeof t.fontSources[p]!="object")throw TypeError(".CustomThemeConfig.fontSources: object expected");c.fontSources[p]=$root.FontSource.fromObject(t.fontSources[p])}}if(t.fontSizes!=null){if(typeof t.fontSizes!="object")throw TypeError(".CustomThemeConfig.fontSizes: object expected");c.fontSizes=$root.FontSizes.fromObject(t.fontSizes)}if(t.skeletonBackgroundColor!=null&&(c.skeletonBackgroundColor=String(t.skeletonBackgroundColor)),t.baseRadius!=null&&(c.baseRadius=String(t.baseRadius)),t.buttonRadius!=null&&(c.buttonRadius=String(t.buttonRadius)),t.borderColor!=null&&(c.borderColor=String(t.borderColor)),t.dataframeBorderColor!=null&&(c.dataframeBorderColor=String(t.dataframeBorderColor)),t.showWidgetBorder!=null&&(c.showWidgetBorder=!!t.showWidgetBorder),t.linkColor!=null&&(c.linkColor=String(t.linkColor)),t.linkUnderline!=null&&(c.linkUnderline=!!t.linkUnderline),t.baseFontSize!=null&&(c.baseFontSize=t.baseFontSize|0),t.baseFontWeight!=null&&(c.baseFontWeight=t.baseFontWeight|0),t.codeFontWeight!=null&&(c.codeFontWeight=t.codeFontWeight|0),t.codeFontSize!=null&&(c.codeFontSize=String(t.codeFontSize)),t.headingFontSizes){if(!Array.isArray(t.headingFontSizes))throw TypeError(".CustomThemeConfig.headingFontSizes: array expected");c.headingFontSizes=[];for(let p=0;p<t.headingFontSizes.length;++p)c.headingFontSizes[p]=String(t.headingFontSizes[p])}if(t.headingFontWeights){if(!Array.isArray(t.headingFontWeights))throw TypeError(".CustomThemeConfig.headingFontWeights: array expected");c.headingFontWeights=[];for(let p=0;p<t.headingFontWeights.length;++p)c.headingFontWeights[p]=t.headingFontWeights[p]|0}if(t.showSidebarBorder!=null&&(c.showSidebarBorder=!!t.showSidebarBorder),t.codeTextColor!=null&&(c.codeTextColor=String(t.codeTextColor)),t.codeBackgroun
18dColor!=null&&(c.codeBackgroundColor=String(t.codeBackgroundColor)),t.dataframeHeaderBackgroundColor!=null&&(c.dataframeHeaderBackgroundColor=String(t.dataframeHeaderBackgroundColor)),t.chartCategoricalColors){if(!Array.isArray(t.chartCategoricalColors))throw TypeError(".CustomThemeConfig.chartCategoricalColors: array expected");c.chartCategoricalColors=[];for(let p=0;p<t.chartCategoricalColors.length;++p)c.chartCategoricalColors[p]=String(t.chartCategoricalColors[p])}if(t.chartSequentialColors){if(!Array.isArray(t.chartSequentialColors))throw TypeError(".CustomThemeConfig.chartSequentialColors: array expected");c.chartSequentialColors=[];for(let p=0;p<t.chartSequentialColors.length;++p)c.chartSequentialColors[p]=String(t.chartSequentialColors[p])}if(t.redColor!=null&&(c.redColor=String(t.redColor)),t.orangeColor!=null&&(c.orangeColor=String(t.orangeColor)),t.yellowColor!=null&&(c.yellowColor=String(t.yellowColor)),t.blueColor!=null&&(c.blueColor=String(t.blueColor)),t.greenColor!=null&&(c.greenColor=String(t.greenColor)),t.violetColor!=null&&(c.violetColor=String(t.violetColor)),t.grayColor!=null&&(c.grayColor=String(t.grayColor)),t.redBackgroundColor!=null&&(c.redBackgroundColor=String(t.redBackgroundColor)),t.orangeBackgroundColor!=null&&(c.orangeBackgroundColor=String(t.orangeBackgroundColor)),t.yellowBackgroundColor!=null&&(c.yellowBackgroundColor=String(t.yellowBackgroundColor)),t.blueBackgroundColor!=null&&(c.blueBackgroundColor=String(t.blueBackgroundColor)),t.greenBackgroundColor!=null&&(c.greenBackgroundColor=String(t.greenBackgroundColor)),t.violetBackgroundColor!=null&&(c.violetBackgroundColor=String(t.violetBackgroundColor)),t.grayBackgroundColor!=null&&(c.grayBackgroundColor=String(t.grayBackgroundColor)),t.redTextColor!=null&&(c.redTextColor=String(t.redTextColor)),t.orangeTextColor!=null&&(c.orangeTextColor=String(t.orangeTextColor)),t.yellowTextColor!=null&&(c.yellowTextColor=String(t.yellowTextColor)),t.blueTextColor!=null&&(c.blueTextColor=String(t.blueTextColor)),t.greenTextColor!=null&&(c.greenTextColor=String(t.greenTextColor)),t.violetTextColor!=null&&(c.violetTextColor=String(t.violetTextColor)),t.grayTextColor!=null&&(c.grayTextColor=String(t.grayTextColor)),t.sidebar!=null){if(typeof t.sidebar!="object")throw TypeError(".CustomThemeConfig.sidebar: object expected");c.sidebar=$root.CustomThemeConfig.fromObject(t.sidebar)}if(t.light!=null){if(typeof t.light!="object")throw TypeError(".CustomThemeConfig.light: object expected");c.light=$root.CustomThemeConfig.fromObject(t.light)}if(t.dark!=null){if(typeof t.dark!="object")throw TypeError(".CustomThemeConfig.dark: object expected");c.dark=$root.CustomThemeConfig.fromObject(t.dark)}return c},n.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.fontFaces=[],p.chartCategoricalColors=[],p.headingFontWeights=[],p.headingFontSizes=[],p.chartSequentialColors=[],p.fontSources=[]),c.defaults&&(p.primaryColor="",p.secondaryBackgroundColor="",p.backgroundColor="",p.textColor="",p.font=c.enums===String?"SANS_SERIF":0,p.base=c.enums===String?"LIGHT":0,p.widgetBackgroundColor="",p.widgetBorderColor="",p.radii=null,p.headingFont="",p.bodyFont="",p.codeFont="",p.fontSizes=null,p.skeletonBackgroundColor=""),t.primaryColor!=null&&t.hasOwnProperty("primaryColor")&&(p.primaryColor=t.primaryColor),t.secondaryBackgroundColor!=null&&t.hasOwnProperty("secondaryBackgroundColor")&&(p.secondaryBackgroundColor=t.secondaryBackgroundColor),t.backgroundColor!=null&&t.hasOwnProperty("backgroundColor")&&(p.backgroundColor=t.backgroundColor),t.textColor!=null&&t.hasOwnProperty("textColor")&&(p.textColor=t.textColor),t.font!=null&&t.hasOwnProperty("font")&&(p.font=c.enums===String?$root.CustomThemeConfig.FontFamily[t.font]===void 0?t.font:$root.CustomThemeConfig.FontFamily[t.font]:t.font),t.base!=null&&t.hasOwnProperty("base")&&(p.base=c.enums===String?$root.CustomThemeConfig.BaseTheme[t.base]===void 0?t.base:$root.CustomThemeConfig.BaseTheme[t.base]:t.base),t.widgetBackgroundColor!=null&&t.hasOwnProperty("widgetBackgroundColor")&&(p.widgetBackgroundColor=t.widgetBackgroun
vendor: 4,748 bytes, line 18
18dColor),t.widgetBorderColor!=null&&t.hasOwnProperty("widgetBorderColor")&&(p.widgetBorderColor=t.widgetBorderColor),t.radii!=null&&t.hasOwnProperty("radii")&&(p.radii=$root.Radii.toObject(t.radii,c)),t.headingFont!=null&&t.hasOwnProperty("headingFont")&&(p.headingFont=t.headingFont),t.bodyFont!=null&&t.hasOwnProperty("bodyFont")&&(p.bodyFont=t.bodyFont),t.codeFont!=null&&t.hasOwnProperty("codeFont")&&(p.codeFont=t.codeFont),t.fontFaces&&t.fontFaces.length){p.fontFaces=[];for(let h=0;h<t.fontFaces.length;++h)p.fontFaces[h]=$root.FontFace.toObject(t.fontFaces[h],c)}if(t.fontSizes!=null&&t.hasOwnProperty("fontSizes")&&(p.fontSizes=$root.FontSizes.toObject(t.fontSizes,c)),t.skeletonBackgroundColor!=null&&t.hasOwnProperty("skeletonBackgroundColor")&&(p.skeletonBackgroundColor=t.skeletonBackgroundColor),t.baseRadius!=null&&t.hasOwnProperty("baseRadius")&&(p.baseRadius=t.baseRadius,c.oneofs&&(p._baseRadius="baseRadius")),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(p.borderColor=t.borderColor,c.oneofs&&(p._borderColor="borderColor")),t.showWidgetBorder!=null&&t.hasOwnProperty("showWidgetBorder")&&(p.showWidgetBorder=t.showWidgetBorder,c.oneofs&&(p._showWidgetBorder="showWidgetBorder")),t.linkColor!=null&&t.hasOwnProperty("linkColor")&&(p.linkColor=t.linkColor,c.oneofs&&(p._linkColor="linkColor")),t.baseFontSize!=null&&t.hasOwnProperty("baseFontSize")&&(p.baseFontSize=t.baseFontSize,c.oneofs&&(p._baseFontSize="baseFontSize")),t.showSidebarBorder!=null&&t.hasOwnProperty("showSidebarBorder")&&(p.showSidebarBorder=t.showSidebarBorder,c.oneofs&&(p._showSidebarBorder="showSidebarBorder")),t.sidebar!=null&&t.hasOwnProperty("sidebar")&&(p.sidebar=$root.CustomThemeConfig.toObject(t.sidebar,c),c.oneofs&&(p._sidebar="sidebar")),t.codeBackgroundColor!=null&&t.hasOwnProperty("codeBackgroundColor")&&(p.codeBackgroundColor=t.codeBackgroundColor,c.oneofs&&(p._codeBackgroundColor="codeBackgroundColor")),t.buttonRadius!=null&&t.hasOwnProperty("buttonRadius")&&(p.buttonRadius=t.buttonRadius,c.oneofs&&(p._buttonRadius="buttonRadius")),t.dataframeBorderColor!=null&&t.hasOwnProperty("dataframeBorderColor")&&(p.dataframeBorderColor=t.dataframeBorderColor,c.oneofs&&(p._dataframeBorderColor="dataframeBorderColor")),t.codeFontSize!=null&&t.hasOwnProperty("codeFontSize")&&(p.codeFontSize=t.codeFontSize,c.oneofs&&(p._codeFontSize="codeFontSize")),t.linkUnderline!=null&&t.hasOwnProperty("linkUnderline")&&(p.linkUnderline=t.linkUnderline,c.oneofs&&(p._linkUnderline="linkUnderline")),t.baseFontWeight!=null&&t.hasOwnProperty("baseFontWeight")&&(p.baseFontWeight=t.baseFontWeight,c.oneofs&&(p._baseFontWeight="baseFontWeight")),t.dataframeHeaderBackgroundColor!=null&&t.hasOwnProperty("dataframeHeaderBackgroundColor")&&(p.dataframeHeaderBackgroundColor=t.dataframeHeaderBackgroundColor,c.oneofs&&(p._dataframeHeaderBackgroundColor="dataframeHeaderBackgroundColor")),t.codeFontWeight!=null&&t.hasOwnProperty("codeFontWeight")&&(p.codeFontWeight=t.codeFontWeight,c.oneofs&&(p._codeFontWeight="codeFontWeight")),t.chartCategoricalColors&&t.chartCategoricalColors.length){p.chartCategoricalColors=[];for(let h=0;h<t.chartCategoricalColors.length;++h)p.chartCategoricalColors[h]=t.chartCategoricalColors[h]}if(t.headingFontWeights&&t.headingFontWeights.length){p.headingFontWeights=[];for(let h=0;h<t.headingFontWeights.length;++h)p.headingFontWeights[h]=t.headingFontWeights[h]}if(t.headingFontSizes&&t.headingFontSizes.length){p.headingFontSizes=[];for(let h=0;h<t.headingFontSizes.length;++h)p.headingFontSizes[h]=t.headingFontSizes[h]}if(t.chartSequentialColors&&t.chartSequentialColors.length){p.chartSequentialColors=[];for(let h=0;h<t.chartSequentialColors.length;++h)p.chartSequentialColors[h]=t.chartSequentialColors[h]}if(t.fontSources&&t.fontSources.length){p.fontSources=[];for(let h=0;h<t.fontSources.length;++h)p.fontSources[h]=$root.FontSource.toObject(t.fontSources[h],c)}return t.redColor!=null&&t.hasOwnProperty("redColor")&&(p.redColor=t.redColor,c.oneofs&&(p._redColor="redColor")),t.orangeColor!=null&&t.hasOwnProperty("orangeColor")&&(p.orangeColor=t.orangeColor,c.oneofs&&(p._orangeColor="orangeColor")),t.yellowColor!=null&&t.hasOwnProperty("yellowColor")&&(p.yellowColor=t.yellowColor,c.oneofs&&(p._yellowColor="yellowColor")),t.blueColor!=null&&t.hasOwnProperty("blueColor")&&(p.blueColor=t.blueColor,c.oneofs&&(p._blueColor="blueColor")),t.greenColor!=null&&t.hasOwnProperty("greenColor")&&(p.greenColor=t.greenColor,c.oneofs&&(p._greenColor="greenColor")),t.violetColor!=null&&t.hasOwnProperty("violetColor")&&(p.violetColor=t.violetColor,c.oneofs&&(p._violetColor="violetColor")),t.grayColor!=null&&t.hasOwnProperty("grayColor")&&(p.grayColor=t.grayColor,c.oneofs&&(p._grayColor="grayColor")),t.redBackgroun
18dColor!=null&&t.hasOwnProperty("redBackgroundColor")&&(p.redBackgroundColor=t.redBackgroundColor,c.oneofs&&(p._redBackgroundColor="redBackgroundColor")),t.orangeBackgroundColor!=null&&t.hasOwnProperty("orangeBackgroundColor")&&(p.orangeBackgroundColor=t.orangeBackgroundColor,c.oneofs&&(p._orangeBackgroundColor="orangeBackgroundColor")),t.yellowBackgroundColor!=null&&t.hasOwnProperty("yellowBackgroundColor")&&(p.yellowBackgroundColor=t.yellowBackgroundColor,c.oneofs&&(p._yellowBackgroundColor="yellowBackgroundColor")),t.blueBackgroundColor!=null&&t.hasOwnProperty("blueBackgroundColor")&&(p.blueBackgroundColor=t.blueBackgroundColor,c.oneofs&&(p._blueBackgroundColor="blueBackgroundColor")),t.greenBackgroundColor!=null&&t.hasOwnProperty("greenBackgroundColor")&&(p.greenBackgroundColor=t.greenBackgroundColor,c.oneofs&&(p._greenBackgroundColor="greenBackgroundColor")),t.violetBackgroundColor!=null&&t.hasOwnProperty("violetBackgroundColor")&&(p.violetBackgroundColor=t.violetBackgroundColor,c.oneofs&&(p._violetBackgroundColor="violetBackgroundColor")),t.grayBackgroundColor!=null&&t.hasOwnProperty("grayBackgroundColor")&&(p.grayBackgroundColor=t.grayBackgroundColor,c.oneofs&&(p._grayBackgroundColor="grayBackgroundColor")),t.redTextColor!=null&&t.hasOwnProperty("redTextColor")&&(p.redTextColor=t.redTextColor,c.oneofs&&(p._redTextColor="redTextColor")),t.orangeTextColor!=null&&t.hasOwnProperty("orangeTextColor")&&(p.orangeTextColor=t.orangeTextColor,c.oneofs&&(p._orangeTextColor="orangeTextColor")),t.yellowTextColor!=null&&t.hasOwnProperty("yellowTextColor")&&(p.yellowTextColor=t.yellowTextColor,c.oneofs&&(p._yellowTextColor="yellowTextColor")),t.blueTextColor!=null&&t.hasOwnProperty("blueTextColor")&&(p.blueTextColor=t.blueTextColor,c.oneofs&&(p._blueTextColor="blueTextColor")),t.greenTextColor!=null&&t.hasOwnProperty("greenTextColor")&&(p.greenTextColor=t.greenTextColor,c.oneofs&&(p._greenTextColor="greenTextColor")),t.violetTextColor!=null&&t.hasOwnProperty("violetTextColor")&&(p.violetTextColor=t.violetTextColor,c.oneofs&&(p._violetTextColor="violetTextColor")),t.grayTextColor!=null&&t.hasOwnProperty("grayTextColor")&&(p.grayTextColor=t.grayTextColor,c.oneofs&&(p._grayTextColor="grayTextColor")),t.codeTextColor!=null&&t.hasOwnProperty("codeTextColor")&&(p.codeTextColor=t.codeTextColor,c.oneofs&&(p._codeTextColor="codeTextColor")),t.light!=null&&t.hasOwnProperty("light")&&(p.light=$root.CustomThemeConfig.toObject(t.light,c),c.oneofs&&(p._light="light")),t.dark!=null&&t.hasOwnProperty("dark")&&(p.dark=$root.CustomThemeConfig.toObject(t.dark,c),c.oneofs&&(p._dark="dark")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/CustomThemeConfig"},n.BaseTheme=function(){const e={},t=Object.create(e);return t[e[0]="LIGHT"]=0,t[e[1]="DARK"]=1,t}(),n.FontFamily=function(){const e={},t=Object.create(e);return t[e[0]="SANS_SERIF"]=0,t[e[1]="SERIF"]=1,t[e[2]="MONOSPACE"]=2,t}(),n})();$root.FontFace=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.url="",n.prototype.family="",n.prototype.weight=0,n.prototype.weightRange="",n.prototype.style="",n.prototype.unicodeRange="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),e.family!=null&&Object.hasOwnProperty.call(e,"family")&&t.uint32(18).string(e.family),e.weight!=null&&Object.hasOwnProperty.call(e,"weight")&&t.uint32(24).int32(e.weight),e.style!=null&&Object.hasOwnProperty.call(e,"style")&&t.uint32(34).string(e.style),e.weightRange!=null&&Object.hasOwnProperty.call(e,"weightRange")&&t.uint32(42).string(e.weightRange),e.unicodeRange!=null&&Object.hasOwnProperty.call(e,"unicodeRange")&&t.uint32(50).string(e.unicodeRange),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.FontFace;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.url=e.string();break}case 2:{h.family=e.string();break}case 3:{h.weight=e.int32();break}case 5:{h.weightRange=e.string();break}case 4:{h.style=e.string();break}case 6:{h.unicodeRange=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.FontFace)return e;let t=new $root.FontFace;return e.url!=null&&(t.url=String(e.url)),e.family!=null&&(t.family=String(e.family)),e.weight!=null&&(t.weight=e.weight|0),e.weightRange!=null&&(t.weightRange=String(e.weightRange)),e.style!=null&&(t.style=String(e.style)),e.unicodeRange!=null&&(t.unicodeRange=String(e.unicodeRange)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.url="",c.family="",c.weight=0,c.style="",c.weightRange="",c.unicodeRange=""),e.url!=null&&e.hasOwnProperty("url")&&(c.url=e.url),e.fam
18ily!=null&&e.hasOwnProperty("family")&&(c.family=e.family),e.weight!=null&&e.hasOwnProperty("weight")&&(c.weight=e.weight),e.style!=null&&e.hasOwnProperty("style")&&(c.style=e.style),e.weightRange!=null&&e.hasOwnProperty("weightRange")&&(c.weightRange=e.weightRange),e.unicodeRange!=null&&e.hasOwnProperty("unicodeRange")&&(c.unicodeRange=e.unicodeRange),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FontFace"},n})();$root.FontSource=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.configName="",n.prototype.sourceUrl="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.configName!=null&&Object.hasOwnProperty.call(e,"configName")&&t.uint32(10).string(e.configName),e.sourceUrl!=null&&Object.hasOwnProperty.call(e,"sourceUrl")&&t.uint32(18).string(e.sourceUrl),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.FontSource;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.configName=e.string();break}case 2:{h.sourceUrl=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.FontSource)return e;let t=new $root.FontSource;return e.configName!=null&&(t.configName=String(e.configName)),e.sourceUrl!=null&&(t.sourceUrl=String(e.sourceUrl)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.configName="",c.sourceUrl=""),e.configName!=null&&e.hasOwnProperty("configName")&&(c.configName=e.configName),e.sourceUrl!=null&&e.hasOwnProperty("sourceUrl")&&(c.sourceUrl=e.sourceUrl),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FontSource"},n})();$root.Radii=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.baseWidgetRadius=0,n.prototype.checkboxRadius=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.baseWidgetRadius!=null&&Object.hasOwnProperty.call(e,"baseWidgetRadius")&&t.uint32(8).int32(e.baseWidgetRadius),e.checkboxRadius!=null&&Object.hasOwnProperty.call(e,"checkboxRadius")&&t.uint32(16).int32(e.checkboxRadius),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Radii;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.baseWidgetRadius=e.int32();break}case 2:{h.checkboxRadius=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Radii)return e;let t=new $root.Radii;return e.baseWidgetRadius!=null&&(t.baseWidgetRadius=e.baseWidgetRadius|0),e.checkboxRadius!=null&&(t.checkboxRadius=e.checkboxRadius|0),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.baseWidgetRadius=0,c.checkboxRadius=0),e.baseWidgetRadius!=null&&e.hasOwnProperty("baseWidgetRadius")&&(c.baseWidgetRadius=e.baseWidgetRadius),e.checkboxRadius!=null&&e.hasOwnProperty("checkboxRadius")&&(c.checkboxRadius=e.checkboxRadius),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Radii"},n})();$root.FontSizes=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.tinyFontSize=0,n.prototype.smallFontSize=0,n.prototype.baseFontSize=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.tinyFontSize!=null&&Object.hasOwnProperty.call(e,"tinyFontSize")&&t.uint32(8).int32(e.tinyFontSize),e.smallFontSize!=null&&Object.hasOwnProperty.call(e,"smallFontSize")&&t.uint32(16).int32(e.smallFontSize),e.baseFontSize!=null&&Object.hasOwnProperty.call(e,"baseFontSize")&&t.uint32(24).int32(e.baseFontSize),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.FontSizes;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.tinyFontSize=e.int32();break}case 2:{h.smallFontSize=e.int32();break}case 3:{h.baseFontSize=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.FontSizes)return e;let t=new $root.FontSizes;return e.tinyFontSize!=null&&(t.tinyFontSize=e.tinyFontSize|0),e.smallFontSize!=null&&(t.smallFontSize=e.smallFontSize|0),e.baseFontSize!=null&&(t.baseFontSize=e.baseFontSize|0),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.tinyFontSize=0,c.smallFontSize=0,c.baseFontSize=0),e.tinyFontSize!=null&&e.hasOwnProperty("tinyFontSize")&&(c.tinyFontSize=e.tinyFontSize),e.smallFontSize!=null&&e.hasOwnProperty("smallFontSize")&&(c.smallFontSize=e.smallFontSize),e.baseFontSize!=null&&e.hasOwnProperty("baseFontSize")&&(c.baseFontSize=e.baseFontSize),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FontSizes"},n})();$root.UserInfo=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.installationId="",n.prototype.installationIdV3="",n.prototype.installationIdV4="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.installationId!=null&&Object.hasOwnProperty.call(e,"installationId")&&t.uint32(10).string(e.installationId),e.installationIdV3!=null&&Object.hasOwnProperty.call(e,"installationIdV3")&&t.uint32(42).string(e.installationIdV3),e.installationIdV4!=null&&Object.hasOwnProperty.call(e,"installationIdV4")&&t.uint32(50).string(e.installationIdV4),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.UserInfo;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.installationId=e.string();break}case 5:{h.installationIdV3=e.string();break}case 6:{h.installationIdV4=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.UserInfo)return e;let t=new $root.UserInfo;return e.installationId!=null&&(t.installationId=String(e.installationId)),e.installationIdV3!=null&&(t.installationIdV3=String(e.installationIdV3)),e.installationIdV4!=null&&(t.installationIdV4=String(e.installationIdV4)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.installationId="",c.installationIdV3="",c.installationIdV4=""),e.installationId!=null&&e.hasOwnProperty("installationId")&&(c.installationId=e.installationId),e.installationIdV3!=null&&e.hasOwnProperty("installationIdV3")&&(c.installationIdV3=e.installationIdV3),e.installationIdV4!=null&&e.hasOwnProperty("installationIdV4")&&(c.installationIdV4=e.installationIdV4),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/UserInfo"},n})();$root.EnvironmentInfo=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.streamlitVersion="",n.prototype.pythonVersion="",n.prototype.serverOs="",n.prototype.hasDisplay=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.streamlitVersion!=null&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(10).string(e.streamlitVersion),e.pythonVersion!=null&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(18).string(e.pythonVersion),e.serverOs!=null&&Object.hasOwnProperty.call(e,"serverOs")&&t.uint32(26).string(e.serverOs),e.hasDisplay!=null&&Object.hasOwnProperty.call(e,"hasDisplay")&&t.uint32(32).bool(e.hasDisplay),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.EnvironmentInfo;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.streamlitVersion=e.string();break}case 2:{h.pythonVersion=e.string();break}case 3:{h.serverOs=e.string();break}case 4:{h.hasDisplay=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.EnvironmentInfo)return e;let t=new $root.EnvironmentInfo;return e.streamlitVersion!=null&&(t.streamlitVersion=String(e.streamlitVersion)),e.pythonVersion!=null&&(t.pythonVersion=String(e.pythonVersion)),e.serverOs!=null&&(t.serverOs=String(e.serverOs)),e.hasDisplay!=null&&(t.hasDisplay=!!e.hasDisplay),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.streamlitVersion="",c.pythonVersion="",c.serverOs="",c.hasDisplay=!1),e.streamlitVersion!=null&&e.hasOwnProperty("streamlitVersion")&&(c.streamlitVersion=e.streamlitVersion),e.pythonVersion!=null&&e.hasOwnProperty("pythonVersion")&&(c.pythonVersion=e.pythonVersion),e.serverOs!=null&&e.hasOwnProperty("serverOs")&&(c.serverOs=e.serverOs),e.hasDisplay!=null&&e.hasOwnProperty("hasDisplay")&&(c.hasDisplay=e.hasDisplay),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/EnvironmentInfo"},n})();$root.SessionStatus=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.runOnSave=!1,n.prototype.scriptIsRunning=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.runOnSave!=null&&Object.hasOwnProperty.call(e,"runOnSave")&&t.uint32(8).bool(e.runOnSave),e.scriptIsRunning!=null&&Object.hasOwnProperty.call(e,"scriptIsRunning")&&t.uint32(16).bool(e.scriptIsRunning),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.SessionStatus;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.runOnSave=e.bool();break}case 2:{h.scriptIsRunning=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.SessionStatus)return e;let t=new $root.SessionStatus;return e.runOnSave!=null&&(t.runOnSave=!!e.runOnSave),e.scriptIsRunning!=null&&(t.scriptIsRunning=!!e.scriptIsRunning),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.runOnSave=!1,c.scriptIsRunning=!1),e.runOnSave!=null&&e.hasOwnProperty("runOnSave")&&(c.runOnSave=e.runOnSave),e.scriptIsRunning!=null&&e.hasOwnProperty("scriptIsRunning")&&(c.scriptIsRunning=e.scriptIsRunning),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SessionStatus"},n})();const PageConfig=$root.PageConfig=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.title="",n.prototype.favicon="",n.prototype.layout=0,n.prototype.initialSidebarState=0,n.prototype.menuItems=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.title!=null&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),e.favicon!=null&&Object.hasOwnProperty.call(e,"favicon")&&t.uint32(18).string(e.favicon),e.layout!=null&&Object.hasOwnProperty.call(e,"layout")&&t.uint32(24).int32(e.layout),e.initialSidebarState!=null&&Object.hasOwnProperty.call(e,"initialSidebarState")&&t.uint32(32).int32(e.initialSidebarState),e.menuItems!=null&&Object.hasOwnProperty.call(e,"menuItems")&&$root.PageConfig.MenuItems.encode(e.menuItems,t.uint32(42).fork()).ldelim(),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.PageConfig;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.title=e.string();break}case 2:{h.favicon=e.string();break}case 3:{h.layout=e.int32();break}case 4:{h.initialSidebarState=e.int32();break}case 5:{h.menuItems=$root.PageConfig.MenuItems.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.PageConfig)return e;let t=new $root.PageConfig;switch(e.title!=null&&(t.title=String(e.title)),e.favicon!=null&&(t.favicon=String(e.favicon)),e.layout){default:if(typeof e.layout=="number"){t.layout=e.layout;break}break;case"CENTERED":case 0:t.layout=0;break;case"WIDE":case 1:t.layout=1;break;case"LAYOUT_UNSET":case 2:t.layout=2;break}switch(e.initialSidebarState){default:if(typeof e.initialSidebarState=="number"){t.initialSidebarState=e.initialSidebarState;break}break;case"AUTO":case 0:t.initialSidebarState=0;break;case"EXPANDED":case 1:t.initialSidebarState=1;break;case"COLLAPSED":case 2:t.initialSidebarState=2;break;case"SIDEBAR_UNSET":case 3:t.initialSidebarState=3;break}if(e.menuItems!=null){if(typeof e.menuItems!="object")throw TypeError(".PageConfig.menuItems: object expected");t.menuItems=$root.PageConfig.MenuItems.fromObject(e.menuItems)}return t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.title="",c.favicon="",c.layout=t.enums===String?"CENTERED":0,c.initialSidebarState=t.enums===String?"AUTO":0,c.menuItems=null),e.title!=null&&e.hasOwnProperty("title")&&(c.title=e.title),e.favicon!=null&&e.hasOwnProperty("favicon")&&(c.favicon=e.favicon),e.layout!=null&&e.hasOwnProperty("layout")&&(c.layout=t.enums===String?$root.PageConfig.Layout[e.layout]===void 0?e.layout:$root.PageConfig.Layout[e.layout]:e.layout),e.initialSidebarState!=null&&e.hasOwnProperty("initialSidebarState")&&(c.initialSidebarState=t.enums===String?$root.PageConfig.SidebarState[e.initialSidebarState]===void 0?e.initialSidebarState:$root.PageConfig.SidebarState[e.initialSidebarState]:e.initialSidebarState),e.menuItems!=null&&e.hasOwnProperty("menuItems")&&(c.menuItems=$root.PageConfig.MenuItems.toObject(e.menuItems,t)),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageConfig"},n.MenuItems=function(){function o(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}return o.prototype.getHelpUrl="",o.prototype.hideGetHelp=!1,o.prototype.reportABugUrl="",o.prototype.hideReportABug=!1,o.prototype.aboutSectionMd="",o.prototype.clearAboutMd=!1,o.create=function(t){return new o(t)},o.encode=function(t,c){return c||(c=$Writer.create()),t.getHelpUrl!=null&&Object.hasOwnProperty.call(t,"getHelpUrl")&&c.uint32(10).string(t.getHelpUrl),t.hideGetHelp!=null&&Object.hasOwnProperty.call(t,"hideGetHelp")&&c.uint32(16).bool(t.hideGetHelp),t.reportABugUrl!=null&&Object.hasOwnProperty.call(t,"reportABugUrl")&&c.uint32(26).string(t.reportABugUrl),t.hideReportABug!=null&&Object.hasOwnProperty.call(t,"hideReportABug")&&c.uint32(32).bool(t.hideReportABug),t.aboutSectionMd!=null&&Object.hasOwnProperty.call(t,"aboutSectionMd")&&c.uint32(42).string(t.aboutSectionMd),t.clearAboutMd!=null&&Object.hasOwnProperty.call(t,"clearAboutMd")&&c.uint32(48).bool(t.clearAboutMd),c},o.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.PageConfig.MenuItems;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.getHelpUrl=t.string();break}case 2:{y.hideGetHelp=t.bool();break}case 3:{y.reportABugUrl=t.string();break}case 4:{y.hideReportABug=t.bool();break}case 5:{y.aboutSectionMd=t.string();break}case 6:{y.clearAboutMd=t.bool();break}default:t.skipType(g&7);break}}return y},o.fromObject=function(t){if(t instanceof $root.PageConfig.MenuItems)return t;let c=new $root.PageConfig.MenuItems;return t.getHelpUrl!=null&&(c.getHelpUrl=String(t.getHelpUrl)),t.hideGetHelp!=null&&(c.hideGetHelp=!!t.hideGetHelp),t.reportABugUrl!=null&&(c.reportABugUrl=String(t.reportABugUrl)),t.hideReportABug!=null&&(c.hideReportABug=!!t.hideReportABug),t.aboutSectionMd!=null&&(c.aboutSectionMd=String(t.aboutSectionMd)),t.clearAboutMd!=null&&(c.clearAboutMd=!!t.clearAboutMd),c},o.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.getHelpUrl="",p.hideGetHelp=!1,p.reportABugUrl="",p.hideReportABug=!1
18,p.aboutSectionMd="",p.clearAboutMd=!1),t.getHelpUrl!=null&&t.hasOwnProperty("getHelpUrl")&&(p.getHelpUrl=t.getHelpUrl),t.hideGetHelp!=null&&t.hasOwnProperty("hideGetHelp")&&(p.hideGetHelp=t.hideGetHelp),t.reportABugUrl!=null&&t.hasOwnProperty("reportABugUrl")&&(p.reportABugUrl=t.reportABugUrl),t.hideReportABug!=null&&t.hasOwnProperty("hideReportABug")&&(p.hideReportABug=t.hideReportABug),t.aboutSectionMd!=null&&t.hasOwnProperty("aboutSectionMd")&&(p.aboutSectionMd=t.aboutSectionMd),t.clearAboutMd!=null&&t.hasOwnProperty("clearAboutMd")&&(p.clearAboutMd=t.clearAboutMd),p},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PageConfig.MenuItems"},o}(),n.Layout=function(){const o={},e=Object.create(o);return e[o[0]="CENTERED"]=0,e[o[1]="WIDE"]=1,e[o[2]="LAYOUT_UNSET"]=2,e}(),n.SidebarState=function(){const o={},e=Object.create(o);return e[o[0]="AUTO"]=0,e[o[1]="EXPANDED"]=1,e[o[2]="COLLAPSED"]=2,e[o[3]="SIDEBAR_UNSET"]=3,e}(),n})();$root.PageInfo=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.queryString="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.queryString!=null&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.PageInfo;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.queryString=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.PageInfo)return e;let t=new $root.PageInfo;return e.queryString!=null&&(t.queryString=String(e.queryString)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.queryString=""),e.queryString!=null&&e.hasOwnProperty("queryString")&&(c.queryString=e.queryString),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageInfo"},n})();const PageProfile=$root.PageProfile=(()=>{function n(o){if(this.commands=[],this.config=[],this.attributions=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.commands=$util.emptyArray,n.prototype.execTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.prepTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.config=$util.emptyArray,n.prototype.uncaughtException="",n.prototype.attributions=$util.emptyArray,n.prototype.os="",n.prototype.timezone="",n.prototype.headless=!1,n.prototype.isFragmentRun=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.commands!=null&&e.commands.length)for(let c=0;c<e.commands.length;++c)$root.Command.encode(e.commands[c],t.uint32(10).fork()).ldelim();if(e.execTime!=null&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(16).int64(e.execTime),e.prepTime!=null&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(24).int64(e.prepTime),e.config!=null&&e.config.length)for(let c=0;c<e.config.length;++c)t.uint32(42).string(e.config[c]);if(e.uncaughtException!=null&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(50).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let c=0;c<e.attributions.length;++c)t.uint32(58).string(e.attributions[c]);return e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(66).string(e.os),e.timezone!=null&&Object.hasOwnProperty.call(e,"timezone")&&t.uint32(74).string(e.timezone),e.headless!=null&&Object.hasOwnProperty.call(e,"headless")&&t.uint32(80).bool(e.headless),e.isFragmentRun!=null&&Object.hasOwnProperty.call(e,"isFragmentRun")&&t.uint32(88).bool(e.isFragmentRun),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.PageProfile;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.commands&&h.commands.length||(h.commands=[]),h.commands.push($root.Command.decode(e,e.uint32()));break}case 2:{h.execTime=e.int64();break}case 3:{h.prepTime=e.int64();break}case 5:{h.config&&h.config.length||(h.config=[]),h.config.push(e.string());break}case 6:{h.uncaughtException=e.string();break}case 7:{h.attributions&&h.attributions.length||(h.attributions=[]),h.attributions.push(e.string());break}case 8:{h.os=e.string();break}case 9:{h.timezone=e.string();break}case 10:{h.headless=e.bool();break}case 11:{h.isFragmentRun=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.PageProfile)return e;let t=new $root.PageProfile;if(e.commands){if(!Array.isArray(e.commands))throw TypeError(".PageProfile.commands: array expected");t.commands=[];for(let c=0;c<e.commands.length;++c){if(typeof e.commands[c]!="object")throw TypeError(".PageProfile.commands: object expected");t.commands[c]=$root.Command.fromObject(e.commands[c])}}if(e.execTime!=null&&($util.Long?(t.execTime=$util.Long.fromValue(e.execTime)).unsigned=!1:typeof e.execTime=="string"?t.execTime=parseInt(e.execTime,10):typeof e.execTime=="number"?t.execTime=e.execTime:typeof e.execTime=="object"&&(t.execTime=new $util.LongBits(e.execTime.low>>>0,e.execTime.high>
18>>0).toNumber())),e.prepTime!=null&&($util.Long?(t.prepTime=$util.Long.fromValue(e.prepTime)).unsigned=!1:typeof e.prepTime=="string"?t.prepTime=parseInt(e.prepTime,10):typeof e.prepTime=="number"?t.prepTime=e.prepTime:typeof e.prepTime=="object"&&(t.prepTime=new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!Array.isArray(e.config))throw TypeError(".PageProfile.config: array expected");t.config=[];for(let c=0;c<e.config.length;++c)t.config[c]=String(e.config[c])}if(e.uncaughtException!=null&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".PageProfile.attributions: array expected");t.attributions=[];for(let c=0;c<e.attributions.length;++c)t.attributions[c]=String(e.attributions[c])}return e.os!=null&&(t.os=String(e.os)),e.timezone!=null&&(t.timezone=String(e.timezone)),e.headless!=null&&(t.headless=!!e.headless),e.isFragmentRun!=null&&(t.isFragmentRun=!!e.isFragmentRun),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.commands=[],c.config=[],c.attributions=[]),t.defaults){if($util.Long){let p=new $util.Long(0,0,!1);c.execTime=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.execTime=t.longs===String?"0":0;if($util.Long){let p=new $util.Long(0,0,!1);c.prepTime=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.prepTime=t.longs===String?"0":0;c.uncaughtException="",c.os="",c.timezone="",c.headless=!1,c.isFragmentRun=!1}if(e.commands&&e.commands.length){c.commands=[];for(let p=0;p<e.commands.length;++p)c.commands[p]=$root.Command.toObject(e.commands[p],t)}if(e.execTime!=null&&e.hasOwnProperty("execTime")&&(typeof e.execTime=="number"?c.execTime=t.longs===String?String(e.execTime):e.execTime:c.execTime=t.longs===String?$util.Long.prototype.toString.call(e.execTime):t.longs===Number?new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),e.prepTime!=null&&e.hasOwnProperty("prepTime")&&(typeof e.prepTime=="number"?c.prepTime=t.longs===String?String(e.prepTime):e.prepTime:c.prepTime=t.longs===String?$util.Long.prototype.toString.call(e.prepTime):t.longs===Number?new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){c.config=[];for(let p=0;p<e.config.length;++p)c.config[p]=e.config[p]}if(e.uncaughtException!=null&&e.hasOwnProperty("uncaughtException")&&(c.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){c.attributions=[];for(let p=0;p<e.attributions.length;++p)c.attributions[p]=e.attributions[p]}return e.os!=null&&e.hasOwnProperty("os")&&(c.os=e.os),e.timezone!=null&&e.hasOwnProperty("timezone")&&(c.timezone=e.timezone),e.headless!=null&&e.hasOwnProperty("headless")&&(c.headless=e.headless),e.isFragmentRun!=null&&e.hasOwnProperty("isFragmentRun")&&(c.isFragmentRun=e.isFragmentRun),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageProfile"},n})();$root.Argument=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.k="",n.prototype.t="",n.prototype.m="",n.prototype.p=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.k!=null&&Object.hasOwnProperty.call(e,"k")&&t.uint32(10).string(e.k),e.t!=null&&Object.hasOwnProperty.call(e,"t")&&t.uint32(18).string(e.t),e.m!=null&&Object.hasOwnProperty.call(e,"m")&&t.uint32(26).string(e.m),e.p!=null&&Object.hasOwnProperty.call(e,"p")&&t.uint32(40).int32(e.p),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Argument;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.k=e.string();break}case 2:{h.t=e.string();break}case 3:{h.m=e.string();break}case 5:{h.p=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Argument)return e;let t=new $root.Argument;return e.k!=null&&(t.k=String(e.k)),e.t!=null&&(t.t=String(e.t)),e.m!=null&&(t.m=String(e.m)),e.p!=null&&(t.p=e.p|0),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.k="",c.t="",c.m="",c.p=0),e.k!=null&&e.hasOwnProperty("k")&&(c.k=e.k),e.t!=null&&e.hasOwnProperty("t")&&(c.t=e.t),e.m!=null&&e.hasOwnProperty("m")&&(c.m=e.m),e.p!=null&&e.hasOwnProperty("p")&&(c.p=e.p),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Argument"},n})();$root.Command=(()=>{function n(o){if(this.args=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.name="",n.prototype.args=$util.emptyArray,n.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),e.args!=null&&e.args.length)for(let c=0;c<e.args.length;++c)$root.Argument.encode(e.args[c],t.uint32(18).fork()).ldelim();return e.time!=null&&Object.hasOwnProperty.call(e,"time")&&t.uint32(32).int64(e.time),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.Command;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.name=e.string();break}case 2:{h.args&&h.args.length||(h.args=[]),h.args.push($root.Argument.decode(e,e.uint32()));break}case 4:{h.time=e.int64();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Command)return e;let t=new $root.Command;if(e.name!=null&&(t.name=String(e.name)),e.args){if(!Array.isArray(e.args))throw TypeError(".Command.args: array expected");t.args=[];for(let c=0;c<e.args.length;++c){if(typeof e.args[c]!="object")throw TypeError(".Command.args: object expected");t.args[c]=$root.Argument.fromObject(e.args[c])}}return e.time!=null&&($util.Long?(t.time=$util.Long.fromValue(e.time)).unsigned=!1:typeof e.time=="string"?t.time=parseInt(e.time,10):typeof e.time=="number"?t.time=e.time:typeof e.time=="object"&&(t.time=new $util.LongBits(e.time.low>>>0,e.time.high>
18>>0).toNumber())),t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.args=[]),t.defaults)if(c.name="",$util.Long){let p=new $util.Long(0,0,!1);c.time=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.time=t.longs===String?"0":0;if(e.name!=null&&e.hasOwnProperty("name")&&(c.name=e.name),e.args&&e.args.length){c.args=[];for(let p=0;p<e.args.length;++p)c.args[p]=$root.Argument.toObject(e.args[p],t)}return e.time!=null&&e.hasOwnProperty("time")&&(typeof e.time=="number"?c.time=t.longs===String?String(e.time):e.time:c.time=t.longs===String?$util.Long.prototype.toString.call(e.time):t.longs===Number?new $util.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber():e.time),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Command"},n})();$root.PageNotFound=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.pageName="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(10).string(e.pageName),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.PageNotFound;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.pageName=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.PageNotFound)return e;let t=new $root.PageNotFound;return e.pageName!=null&&(t.pageName=String(e.pageName)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.pageName=""),e.pageName!=null&&e.hasOwnProperty("pageName")&&(c.pageName=e.pageName),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageNotFound"},n})();$root.PagesChanged=(()=>{function n(o){if(this.appPages=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.appPages=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.appPages!=null&&e.appPages.length)for(let c=0;c<e.appPages.length;++c)$root.AppPage.encode(e.appPages[c],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.PagesChanged;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.appPages&&h.appPages.length||(h.appPages=[]),h.appPages.push($root.AppPage.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.PagesChanged)return e;let t=new $root.PagesChanged;if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".PagesChanged.appPages: array expected");t.appPages=[];for(let c=0;c<e.appPages.length;++c){if(typeof e.appPages[c]!="object")throw TypeError(".PagesChanged.appPages: object expected");t.appPages[c]=$root.AppPage.fromObject(e.appPages[c])}}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.appPages=[]),e.appPages&&e.appPages.length){c.appPages=[];for(let p=0;p<e.appPages.length;++p)c.appPages[p]=$root.AppPage.toObject(e.appPages[p],t)}return c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PagesChanged"},n})();$root.ParentMessage=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.message="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.message!=null&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).string(e.message),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.ParentMessage;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.message=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ParentMessage)return e;let t=new $root.ParentMessage;return e.message!=null&&(t.message=String(e.message)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.message=""),e.message!=null&&e.hasOwnProperty("message")&&(c.message=e.message),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ParentMessage"},n})();$root.SessionEvent=(()=>{function n(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}n.prototype.scriptChangedOnDisk=null,n.prototype.scriptWasManuallyStopped=null,n.prototype.scriptCompilationException=null;let o;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(o=["scriptChangedOnDisk","scriptWasManuallyStopped","scriptCompilationException"]),set:$util.oneOfSetter(o
18)}),n.create=function(t){return new n(t)},n.encode=function(t,c){return c||(c=$Writer.create()),t.scriptChangedOnDisk!=null&&Object.hasOwnProperty.call(t,"scriptChangedOnDisk")&&c.uint32(8).bool(t.scriptChangedOnDisk),t.scriptWasManuallyStopped!=null&&Object.hasOwnProperty.call(t,"scriptWasManuallyStopped")&&c.uint32(16).bool(t.scriptWasManuallyStopped),t.scriptCompilationException!=null&&Object.hasOwnProperty.call(t,"scriptCompilationException")&&$root.Exception.encode(t.scriptCompilationException,c.uint32(26).fork()).ldelim(),c},n.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.SessionEvent;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.scriptChangedOnDisk=t.bool();break}case 2:{y.scriptWasManuallyStopped=t.bool();break}case 3:{y.scriptCompilationException=$root.Exception.decode(t,t.uint32());break}default:t.skipType(g&7);break}}return y},n.fromObject=function(t){if(t instanceof $root.SessionEvent)return t;let c=new $root.SessionEvent;if(t.scriptChangedOnDisk!=null&&(c.scriptChangedOnDisk=!!t.scriptChangedOnDisk),t.scriptWasManuallyStopped!=null&&(c.scriptWasManuallyStopped=!!t.scriptWasManuallyStopped),t.scriptCompilationException!=null){if(typeof t.scriptCompilationException!="object")throw TypeError(".SessionEvent.scriptCompilationException: object expected");c.scriptCompilationException=$root.Exception.fromObject(t.scriptCompilationException)}return c},n.toObject=function(t,c){c||(c={});let p={};return t.scriptChangedOnDisk!=null&&t.hasOwnProperty("scriptChangedOnDisk")&&(p.scriptChangedOnDisk=t.scriptChangedOnDisk,c.oneofs&&(p.type="scriptChangedOnDisk")),t.scriptWasManuallyStopped!=null&&t.hasOwnProperty("scriptWasManuallyStopped")&&(p.scriptWasManuallyStopped=t.scriptWasManuallyStopped,c.oneofs&&(p.type="scriptWasManuallyStopped")),t.scriptCompilationException!=null&&t.hasOwnProperty("scriptCompilationException")&&(p.scriptCompilationException=$root.Exception.toObject(t.scriptCompilationException,c),c.oneofs&&(p.type="scriptCompilationException")),p},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/SessionEvent"},n})();const MetricsEvent=$root.MetricsEvent=(()=>{function n(o){if(this.commands=[],this.config=[],this.attributions=[],o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.event="",n.prototype.anonymousId="",n.prototype.machineIdV3="",n.prototype.machineIdV4="",n.prototype.reportHash="",n.prototype.dev=!1,n.prototype.source="",n.prototype.streamlitVersion="",n.prototype.isHello=!1,n.prototype.appId="",n.prototype.sessionId="",n.prototype.pythonVersion="",n.prototype.serverOs="",n.prototype.hasDisplay=!1,n.prototype.isWebdriver=!1,n.prototype.hostedAt="",n.prototype.owner="",n.prototype.repo="",n.prototype.branch="",n.prototype.mainModule="",n.prototype.creatorId="",n.prototype.contextPageUrl="",n.prototype.contextPageTitle="",n.prototype.contextPagePath="",n.prototype.contextPageReferrer="",n.prototype.contextPageSearch="",n.prototype.contextLocale="",n.prototype.contextUserAgent="",n.prototype.label="",n.prototype.commands=$util.emptyArray,n.prototype.execTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.prepTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.config=$util.emptyArray,n.prototype.uncaughtException="",n.prototype.attributions=$util.emptyArray,n.prototype.os="",n.prototype.timezone="",n.prototype.headless=!1,n.prototype.isFragmentRun=!1,n.prototype.numPages=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.pageScriptHash="",n.prototype.activeTheme="",n.prototype.totalLoadTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.browserInfo=null,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.event!=null&&Object.hasOwnProperty.call(e,"event")&&t.uint32(10).string(e.event),e.anonymousId!=null&&Object.hasOwnProperty.call(e,"anonymousId")&&t.uint32(18).string(e.anonymousId),e.machineIdV3!=null&&Object.hasOwnProperty.call(e,"machineIdV3")&&t.uint32(26).string(e.machineIdV3),e.reportHash!=null&&Object.hasOwnProperty.call(e,"reportHash")&&t.uint32(34).string(e.reportHash),e.dev!=null&&Object.hasOwnProperty.call(e,"dev")&&t.uint32(40).bool(e.dev),e.source!=null&&Object.hasOwnProperty.call(e,"source")&&t.uint32(50).string(e.source),e.streamlitVersion!=null&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(58).string(e.streamlitVersion),e.isHello!=null&&Object.hasOwnProperty.call(e,"isHello")&&t.uint32(64).bool(e.isHello),e.hostedAt!=null&&Object.hasOwnProperty.call(e,"hostedAt")&&t.uint32(74).string(e.hostedAt),e.owner!=null&&Object.hasOwnProperty.call(e,"owner")&&t.uint32(82).string(e.owner),e.repo!=null&&Object.hasOwnProperty.call(e,"repo")&&t.uint32(90).string(e.repo),e.branch!=null&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(98).string(e.branch),e.mainModule!=null&&Object.hasOwnProperty.call(e,"mainModule")&&t.uint32(106).string(e.mainModule),e.creatorId!=null&&Object.hasOwnProperty.call(e,"creatorId")&&t.uint32(114).string(e.creatorId),e.contextPageUrl!=null&&Object.hasOwnProperty.call(e,"contextPageUrl")&&t.uint32(122).string(e.contextPageUrl),e.contextPageTitle!=null&&Object.hasOwnProperty.call(e,"contextPageTitle")&&t.uint32(130).string(e.contextPageTitle),e.contextPagePath!=null&&Object.hasOwnProperty.call(e,"contextPagePath")&&t.uint32(138).string(e.contextPagePath),e.contextPageReferrer!=null&&Object.hasOwnProperty.call(e,"contextPageReferrer")&&t.uint32(146).string(e.contextPageReferrer),e.contextPageSearch!=null&&Object.hasOwnProperty.call(e,"contextPageSearch")&&t.uint32(154).string(e.contextPageSearch),e.contextLocale!=null&&Object.hasOwnProperty.call(e,"contextLocale")&&t.uint32(162).string(e.contextLocale),e.contextUserAgent!=null&&Object.hasOwnProperty.call(e,"contextUserAgent")&&t.uint32(170).string(e.contextUserAgent),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(178).string(e.label),e.commands!=null&&e.commands.length)for(let c=0;c<e.commands.length;++c)$root.Command.encode(e.commands[c],t.uint32(186).fork()).ldelim();if(e.execTime!=null&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(192).int64(e.execTime),e.prepTime!=null&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(200).int64(e.prepTime),e.config!=null&&e.config.length)for(let c=0;c<e.config.length;++c)t.uint32(210).string(e.config[c]);if(e.uncaughtException!=null&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(218).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let c=0;c<e.attributions.length;++c)t.uint32(226).string(e.attributions[c]);return e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(234).string(e.os),e.t
18imezone!=null&&Object.hasOwnProperty.call(e,"timezone")&&t.uint32(242).string(e.timezone),e.headless!=null&&Object.hasOwnProperty.call(e,"headless")&&t.uint32(248).bool(e.headless),e.isFragmentRun!=null&&Object.hasOwnProperty.call(e,"isFragmentRun")&&t.uint32(256).bool(e.isFragmentRun),e.appId!=null&&Object.hasOwnProperty.call(e,"appId")&&t.uint32(266).string(e.appId),e.numPages!=null&&Object.hasOwnProperty.call(e,"numPages")&&t.uint32(272).int64(e.numPages),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(282).string(e.sessionId),e.pythonVersion!=null&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(290).string(e.pythonVersion),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(298).string(e.pageScriptHash),e.activeTheme!=null&&Object.hasOwnProperty.call(e,"activeTheme")&&t.uint32(306).string(e.activeTheme),e.totalLoadTime!=null&&Object.hasOwnProperty.call(e,"totalLoadTime")&&t.uint32(312).int64(e.totalLoadTime),e.browserInfo!=null&&Object.hasOwnProperty.call(e,"browserInfo")&&$root.BrowserInfo.encode(e.browserInfo,t.uint32(322).fork()).ldelim(),e.machineIdV4!=null&&Object.hasOwnProperty.call(e,"machineIdV4")&&t.uint32(330).string(e.machineIdV4),e.serverOs!=null&&Object.hasOwnProperty.call(e,"serverOs")&&t.uint32(338).string(e.serverOs),e.hasDisplay!=null&&Object.hasOwnProperty.call(e,"hasDisplay")&&t.uint32(344).bool(e.hasDisplay),e.isWebdriver!=null&&Object.hasOwnProperty.call(e,"isWebdriver")&&t.uint32(352).bool(e.isWebdriver),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.MetricsEvent;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.event=e.string();break}case 2:{h.anonymousId=e.string();break}case 3:{h.machineIdV3=e.string();break}case 41:{h.machineIdV4=e.string();break}case 4:{h.reportHash=e.string();break}case 5:{h.dev=e.bool();break}case 6:{h.source=e.string();break}case 7:{h.streamlitVersion=e.string();break}case 8:{h.isHello=e.bool();break}case 33:{h.appId=e.string();break}case 35:{h.sessionId=e.string();break}case 36:{h.pythonVersion=e.string();break}case 42:{h.serverOs=e.string();break}case 43:{h.hasDisplay=e.bool();break}case 44:{h.isWebdriver=e.bool();break}case 9:{h.hostedAt=e.string();break}case 10:{h.owner=e.string();break}case 11:{h.repo=e.string();break}case 12:{h.branch=e.string();break}case 13:{h.mainModule=e.string();break}case 14:{h.creatorId=e.string();break}case 15:{h.contextPageUrl=e.string();break}case 16:{h.contextPageTitle=e.string();break}case 17:{h.contextPagePath=e.string();break}case 18:{h.contextPageReferrer=e.string();break}case 19:{h.contextPageSearch=e.string();break}case 20:{h.contextLocale=e.string();break}case 21:{h.contextUserAgent=e.string();break}case 22:{h.label=e.string();break}case 23:{h.commands&&h.commands.length||(h.commands=[]),h.commands.push($root.Command.decode(e,e.uint32()));break}case 24:{h.execTime=e.int64();break}case 25:{h.prepTime=e.int64();break}case 26:{h.config&&h.config.length||(h.config=[]),h.config.push(e.string());break}case 27:{h.uncaughtException=e.string();break}case 28:{h.attributions&&h.attributions.length||(h.attributions=[]),h.attributions.push(e.string());break}case 29:{h.os=e.string();break}case 30:{h.timezone=e.string();break}case 31:{h.headless=e.bool();break}case 32:{h.isFragmentRun=e.bool();break}case 34:{h.numPages=e.int64();break}case 37:{h.pageScriptHash=e.string();break}case 38:{h.activeTheme=e.string();break}case 39:{h.totalLoadTime=e.int64();break}case 40:{h.browserInfo=$root.BrowserInfo.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.MetricsEvent)return e;let t=new $root.MetricsEvent;if(e.event!=null&&(t.event=String(e.event)),e.anonymousId!=null&&(t.anonymousId=String(e.anonymousId)),e.machineIdV3!=null&&(t.machineIdV3=String(e.machineIdV3)),e.machineIdV4!=null&&(t.machineIdV4=String(e.machineIdV4)),e.reportHash!=null&&(t.reportHash=String(e.reportHash)),e.dev!=null&&(t.dev=!!e.dev),e.source!=null&&(t.source=String(e.source)),e.streamlitVersion!=null&&(t.streamlitVersion=String(e.streamlitVersion)),e.isHello!=null&&(t.isHello=!!e.isHello),e.appId!=null&&(t.appId=String(e.appId)),e.sessionId!=null&&(t.sessionId=String(e.sessionId)),e.pythonVersion!=null&&(t.pythonVersion=String(e.pythonVersion)),e.serverOs!=null&&(t.serverOs=String(e.serverOs)),e.hasDisplay!=null&&(t.hasDisplay=!!e.hasDisplay),e.isWebdriver!=null&&(t.isWebdriver=!!e.isWebdriver),e.hostedAt!=null&&(t.hostedAt=String(e.hostedAt)),e.owner!=null&&(t.owner=String(e.owner)),e.repo!=null&&(t.repo=String(e.repo)),e.branch!=null&&(t.branch=String(e.branch)),e.mainModule!=null&&(t.mainModule=String(e.mainModule)),e.creatorId!=null&&(t.creatorId=String(e.creatorId)),e.contextPageUrl!=null&&(t.contextPageUrl=String(e.contextPageUrl)),e.contextPageTitle!=null&&(t.contextPageTitle=String(e.contextPageTitle)),e.contextPagePath!=null&&(t.contextPagePath=String(e.contextPagePath)),e.contextPageReferrer!=null&&(t.contextPageReferrer=String(e.contextPageReferrer)),e.contextPageSearch!=null&&(t.contextPageSearch=String(e.contextPageSearch)),e.contextLocale!=null&&(t.contextLocale=String(e.contextLocale)),e.contextUserAgent!=null&&(t.contextUserAgent=String(e.contextUserAgent)),e.label!=null&&(t.label=String(e.label)),e.commands){if(!Array.isArray(e.commands))throw TypeError(".MetricsEvent.commands: array expected");t.commands=[];for(let c=0;c<e.commands.length;++c){if(typeof e.commands[c]!="object")throw TypeError(".MetricsEvent.commands: object expected");t.commands[c]=$root.Command.fromObject(e.commands[c])}}if(e.execTime!=null&&($util.Long?(t.execTime=$util.Long.fromValue(e.execTime)).unsigned=!1:typeof e.execTime=="string"?t.execTime=parseInt(e.execTime,10):typeof e.execTime=="number"?t.execTime=e.execTime:typeof e.execTime=="object"&&(t.execTime=new $util.LongBits(e.execTime.low>>>0,e.execTime.high>
18>>0).toNumber())),e.prepTime!=null&&($util.Long?(t.prepTime=$util.Long.fromValue(e.prepTime)).unsigned=!1:typeof e.prepTime=="string"?t.prepTime=parseInt(e.prepTime,10):typeof e.prepTime=="number"?t.prepTime=e.prepTime:typeof e.prepTime=="object"&&(t.prepTime=new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!Array.isArray(e.config))throw TypeError(".MetricsEvent.config: array expected");t.config=[];for(let c=0;c<e.config.length;++c)t.config[c]=String(e.config[c])}if(e.uncaughtException!=null&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".MetricsEvent.attributions: array expected");t.attributions=[];for(let c=0;c<e.attributions.length;++c)t.attributions[c]=String(e.attributions[c])}if(e.os!=null&&(t.os=String(e.os)),e.timezone!=null&&(t.timezone=String(e.timezone)),e.headless!=null&&(t.headless=!!e.headless),e.isFragmentRun!=null&&(t.isFragmentRun=!!e.isFragmentRun),e.numPages!=null&&($util.Long?(t.numPages=$util.Long.fromValue(e.numPages)).unsigned=!1:typeof e.numPages=="string"?t.numPages=parseInt(e.numPages,10):typeof e.numPages=="number"?t.numPages=e.numPages:typeof e.numPages=="object"&&(t.numPages=new $util.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber())),e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.activeTheme!=null&&(t.activeTheme=String(e.activeTheme)),e.totalLoadTime!=null&&($util.Long?(t.totalLoadTime=$util.Long.fromValue(e.totalLoadTime)).unsigned=!1:typeof e.totalLoadTime=="string"?t.totalLoadTime=parseInt(e.totalLoadTime,10):typeof e.totalLoadTime=="number"?t.totalLoadTime=e.totalLoadTime:typeof e.totalLoadTime=="object"&&(t.totalLoadTime=new $util.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber())),e.browserInfo!=null){if(typeof e.browserInfo!="object")throw TypeError(".MetricsEvent.browserInfo: object expected");t.browserInfo=$root.BrowserInfo.fromObject(e.browserInfo)}return t},n.toObject=function(e,t){t||(t={});let c={};if((t.arrays||t.defaults)&&(c.commands=[],c.config=[],c.attributions=[]),t.defaults){if(c.event="",c.anonymousId="",c.machineIdV3="",c.reportHash="",c.dev=!1,c.source="",c.streamlitVersion="",c.isHello=!1,c.hostedAt="",c.owner="",c.repo="",c.branch="",c.mainModule="",c.creatorId="",c.contextPageUrl="",c.contextPageTitle="",c.contextPagePath="",c.contextPageReferrer="",c.contextPageSearch="",c.contextLocale="",c.contextUserAgent="",c.label="",$util.Long){let p=new $util.Long(0,0,!1);c.execTime=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.execTime=t.longs===String?"0":0;if($util.Long){let p=new $util.Long(0,0,!1);c.prepTime=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.prepTime=t.longs===String?"0":0;if(c.uncaughtException="",c.os="",c.timezone="",c.headless=!1,c.isFragmentRun=!1,c.appId="",$util.Long){let p=new $util.Long(0,0,!1);c.numPages=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.numPages=t.longs===String?"0":0;if(c.sessionId="",c.pythonVersion="",c.pageScriptHash="",c.activeTheme="",$util.Long){let p=new $util.Long(0,0,!1);c.totalLoadTime=t.longs===String?p.toString():t.longs===Number?p.toNumber():p}else c.totalLoadTime=t.longs===String?"0":0;c.browserInfo=null,c.machineIdV4="",c.serverOs="",c.hasDisplay=!1,c.isWebdriver=!1}if(e.event!=null&&e.hasOwnProperty("event")&&(c.event=e.event),e.anonymousId!=null&&e.hasOwnProperty("anonymousId")&&(c.anonymousId=e.anonymousId),e.machineIdV3!=null&&e.hasOwnProperty("machineIdV3")&&(c.machineIdV3=e.machineIdV3),e.reportHash!=null&&e.hasOwnProperty("reportHash")&&(c.reportHash=e.reportHash),e.dev!=null&&e.hasOwnProperty("dev")&&(c.dev=e.dev),e.source!=null&&e.hasOwnProperty("source")&&(c.source=e.source),e.streamlitVersion!=null&&e.hasOwnProperty("streamlitVersion")&&(c.streamlitVersion=e.streamlitVersion),e.isHello!=null&&e.hasOwnProperty("isHello")&&(c.isHello=e.isHello),e.hostedAt!=null&&e.hasOwnProperty("hostedAt")&&(c.hostedAt=e.hostedAt),e.owner!=null&&e.hasOwnProperty("owner")&&(c.owner=e.owner),e.repo!=null&&e.hasOwnProperty("repo")&&(c.repo=e.repo),e.branch!=null&&e.hasOwnProperty("branch")&&(c.branch=e.branch),e.mainModule!=null&&e.hasOwnProperty("mainModule")&&(c.mainModule=e.mainModule),e.creatorId!=null&&e.hasOwnProperty("creatorId")&&(c.creatorId=e.creatorId),e.contextPageUrl!=null&&e.hasOwnProperty("contextPageUrl")&&(c.contextPageUrl=e.contextPageUrl),e.contextPageTitle!=null&&e.hasOwnProperty("contextPageTitle")&&(c.contextPageTitle=e.contextPageTitle),e.contextPagePath!=null&&e.hasOwnProperty("contextPagePath")&&(c.contextPagePath=e.contextPagePath),e.contextPageReferrer!=null&&e.hasOwnProperty("contextPageReferrer")&&(c.contextPageReferrer=e.contextPageReferrer),e.contextPageSearch!=null&&e.hasOwnProperty("contextPageSearch")&&(c.contextPageSearch=e.contextPageSearch),e.contextLocale!=null&&e.hasOwnProperty("contextLocale")&&(c.contextLocale=e.contextLocale),e.contextUserAgent!=null&&e.hasOwnProperty("contextUserAgent")&&(c.contextUserAgent=e.contextUserAgent),e.label!=null&&e.hasOwnProperty("label")&&(c.label=e.label),e.commands&&e.commands.length){c.commands=[];for(let p=0;p<e.commands.length;++p)c.commands[p]=$root.Command.toObject(e.commands[p],t)}if(e.execTime!=null&&e.hasOwnProperty("execTime")&&(typeof e.execTime=="number"?c.execTime=t.longs===String?String(e.execTime):e.execTime:c.execTime=t.longs===String?$util.Long.prototype.toString.call(e.execTime):t.longs===Number?new $util.LongBits(e.execTime.low>>>0,e.execTime.high>
18>>0).toNumber():e.execTime),e.prepTime!=null&&e.hasOwnProperty("prepTime")&&(typeof e.prepTime=="number"?c.prepTime=t.longs===String?String(e.prepTime):e.prepTime:c.prepTime=t.longs===String?$util.Long.prototype.toString.call(e.prepTime):t.longs===Number?new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){c.config=[];for(let p=0;p<e.config.length;++p)c.config[p]=e.config[p]}if(e.uncaughtException!=null&&e.hasOwnProperty("uncaughtException")&&(c.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){c.attributions=[];for(let p=0;p<e.attributions.length;++p)c.attributions[p]=e.attributions[p]}return e.os!=null&&e.hasOwnProperty("os")&&(c.os=e.os),e.timezone!=null&&e.hasOwnProperty("timezone")&&(c.timezone=e.timezone),e.headless!=null&&e.hasOwnProperty("headless")&&(c.headless=e.headless),e.isFragmentRun!=null&&e.hasOwnProperty("isFragmentRun")&&(c.isFragmentRun=e.isFragmentRun),e.appId!=null&&e.hasOwnProperty("appId")&&(c.appId=e.appId),e.numPages!=null&&e.hasOwnProperty("numPages")&&(typeof e.numPages=="number"?c.numPages=t.longs===String?String(e.numPages):e.numPages:c.numPages=t.longs===String?$util.Long.prototype.toString.call(e.numPages):t.longs===Number?new $util.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber():e.numPages),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(c.sessionId=e.sessionId),e.pythonVersion!=null&&e.hasOwnProperty("pythonVersion")&&(c.pythonVersion=e.pythonVersion),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(c.pageScriptHash=e.pageScriptHash),e.activeTheme!=null&&e.hasOwnProperty("activeTheme")&&(c.activeTheme=e.activeTheme),e.totalLoadTime!=null&&e.hasOwnProperty("totalLoadTime")&&(typeof e.totalLoadTime=="number"?c.totalLoadTime=t.longs===String?String(e.totalLoadTime):e.totalLoadTime:c.totalLoadTime=t.longs===String?$util.Long.prototype.toString.call(e.totalLoadTime):t.longs===Number?new $util.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber():e.totalLoadTime),e.browserInfo!=null&&e.hasOwnProperty("browserInfo")&&(c.browserInfo=$root.BrowserInfo.toObject(e.browserInfo,t)),e.machineIdV4!=null&&e.hasOwnProperty("machineIdV4")&&(c.machineIdV4=e.machineIdV4),e.serverOs!=null&&e.hasOwnProperty("serverOs")&&(c.serverOs=e.serverOs),e.hasDisplay!=null&&e.hasOwnProperty("hasDisplay")&&(c.hasDisplay=e.hasDisplay),e.isWebdriver!=null&&e.hasOwnProperty("isWebdriver")&&(c.isWebdriver=e.isWebdriver),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/MetricsEvent"},n})();$root.BrowserInfo=(()=>{function n(o){if(o)for(let e=Object.keys(o),t=0;t<e.length;++t)o[e[t]]!=null&&(this[e[t]]=o[e[t]])}return n.prototype.browserName="",n.prototype.browserVersion="",n.prototype.deviceType="",n.prototype.os="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.browserName!=null&&Object.hasOwnProperty.call(e,"browserName")&&t.uint32(10).string(e.browserName),e.browserVersion!=null&&Object.hasOwnProperty.call(e,"browserVersion")&&t.uint32(18).string(e.browserVersion),e.deviceType!=null&&Object.hasOwnProperty.call(e,"deviceType")&&t.uint32(26).string(e.deviceType),e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(34).string(e.os),t},n.decode=function(e,t,c){e instanceof $Reader||(e=$Reader.create(e));let p=t===void 0?e.len:e.pos+t,h=new $root.BrowserInfo;for(;e.pos<p;){let y=e.uint32();if(y===c)break;switch(y>>>3){case 1:{h.browserName=e.string();break}case 2:{h.browserVersion=e.string();break}case 3:{h.deviceType=e.string();break}case 4:{h.os=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.BrowserInfo)return e;let t=new $root.BrowserInfo;return e.browserName!=null&&(t.browserName=String(e.browserName)),e.browserVersion!=null&&(t.browserVersion=String(e.browserVersion)),e.deviceType!=null&&(t.deviceType=String(e.deviceType)),e.os!=null&&(t.os=String(e.os)),t},n.toObject=function(e,t){t||(t={});let c={};return t.defaults&&(c.browserName="",c.browserVersion="",c.deviceType="",c.os=""),e.browserName!=null&&e.hasOwnProperty("browserName")&&(c.browserName=e.browserName),e.browserVersion!=null&&e.hasOwnProperty("browserVersion")&&(c.browserVersion=e.browserVersion),e.deviceType!=null&&e.hasOwnProperty("deviceType")&&(c.deviceType=e.deviceType),e.os!=null&&e.hasOwnProperty("os")&&(c.os=e.os),c},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/BrowserInfo"},n})();$root.openmetrics=(()=>{const n={};return n.MetricSet=function(){function o(e){if(this.metricFamilies=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}return o.prototype.metricFamilies=$util.emptyArray,o.create=function(t){return new o(t)},o.encode=function(t,c){if(c||(c=$Writer.create()),t.metricFamilies!=null&&t.metricFamilies.length)for(let p=0;p<t.metricFamilies.length;++p)$root.openmetrics.MetricFamily.encode(t.metricFamilies[p],c.uint32(10).fork()).ldelim();return c},o.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.openmetrics.MetricSet;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.metricFamilies&&y.metricFamilies.length||(y.metricFamilies=[]),y.metricFamilies.push($root.openmetrics.MetricFamily.decode(t,t.uint32()));break}default:t.skipType(g&7);break}}return y},o.fromObject=function(t){if(t instanceof $root.openmetrics.MetricSet)return t;let c=new $root.openmetrics.MetricSet;
18if(t.metricFamilies){if(!Array.isArray(t.metricFamilies))throw TypeError(".openmetrics.MetricSet.metricFamilies: array expected");c.metricFamilies=[];for(let p=0;p<t.metricFamilies.length;++p){if(typeof t.metricFamilies[p]!="object")throw TypeError(".openmetrics.MetricSet.metricFamilies: object expected");c.metricFamilies[p]=$root.openmetrics.MetricFamily.fromObject(t.metricFamilies[p])}}return c},o.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.metricFamilies=[]),t.metricFamilies&&t.metricFamilies.length){p.metricFamilies=[];for(let h=0;h<t.metricFamilies.length;++h)p.metricFamilies[h]=$root.openmetrics.MetricFamily.toObject(t.metricFamilies[h],c)}return p},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.MetricSet"},o}(),n.MetricFamily=function(){function o(e){if(this.metrics=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}return o.prototype.name="",o.prototype.type=0,o.prototype.unit="",o.prototype.help="",o.prototype.metrics=$util.emptyArray,o.create=function(t){return new o(t)},o.encode=function(t,c){if(c||(c=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&c.uint32(10).string(t.name),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&c.uint32(16).int32(t.type),t.unit!=null&&Object.hasOwnProperty.call(t,"unit")&&c.uint32(26).string(t.unit),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&c.uint32(34).string(t.help),t.metrics!=null&&t.metrics.length)for(let p=0;p<t.metrics.length;++p)$root.Metric.encode(t.metrics[p],c.uint32(42).fork()).ldelim();return c},o.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.openmetrics.MetricFamily;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.name=t.string();break}case 2:{y.type=t.int32();break}case 3:{y.unit=t.string();break}case 4:{y.help=t.string();break}case 5:{y.metrics&&y.metrics.length||(y.metrics=[]),y.metrics.push($root.Metric.decode(t,t.uint32()));break}default:t.skipType(g&7);break}}return y},o.fromObject=function(t){if(t instanceof $root.openmetrics.MetricFamily)return t;let c=new $root.openmetrics.MetricFamily;switch(t.name!=null&&(c.name=String(t.name)),t.type){default:if(typeof t.type=="number"){c.type=t.type;break}break;case"UNKNOWN":case 0:c.type=0;break;case"GAUGE":case 1:c.type=1;break;case"COUNTER":case 2:c.type=2;break;case"STATE_SET":case 3:c.type=3;break;case"INFO":case 4:c.type=4;break;case"HISTOGRAM":case 5:c.type=5;break;case"GAUGE_HISTOGRAM":case 6:c.type=6;break;case"SUMMARY":case 7:c.type=7;break}if(t.unit!=null&&(c.unit=String(t.unit)),t.help!=null&&(c.help=String(t.help)),t.metrics){if(!Array.isArray(t.metrics))throw TypeError(".openmetrics.MetricFamily.metrics: array expected");c.metrics=[];for(let p=0;p<t.metrics.length;++p){if(typeof t.metrics[p]!="object")throw TypeError(".openmetrics.MetricFamily.metrics: object expected");c.metrics[p]=$root.Metric.fromObject(t.metrics[p])}}return c},o.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.metrics=[]),c.defaults&&(p.name="",p.type=c.enums===String?"UNKNOWN":0,p.unit="",p.help=""),t.name!=null&&t.hasOwnProperty("name")&&(p.name=t.name),t.type!=null&&t.hasOwnProperty("type")&&(p.type=c.enums===String?$root.openmetrics.MetricType[t.type]===void 0?t.type:$root.openmetrics.MetricType[t.type]:t.type),t.unit!=null&&t.hasOwnProperty("unit")&&(p.unit=t.unit),t.help!=null&&t.hasOwnProperty("help")&&(p.help=t.help),t.metrics&&t.metrics.length){p.metrics=[];for(let h=0;h<t.metrics.length;++h)p.metrics[h]=$root.Metric.toObject(t.metrics[h],c)}return p},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.MetricFamily"},o}(),n.MetricType=function(){const o={},e=Object.create(o);return e[o[0]="UNKNOWN"]=0,e[o[1]="GAUGE"]=1,e[o[2]="COUNTER"]=2,e[o[3]="STATE_SET"]=3,e[o[4]="INFO"]=4,e[o[5]="HISTOGRAM"]=5,e[o[6]="GAUGE_HISTOGRAM"]=6,e[o[7]="SUMMARY"]=7,e}(),n.Metric=function(){function o(e){if(this.labels=[],this.metricPoints=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}return o.prototype.labels=$util.emptyArray,o.prototype.metricPoints=$util.emptyArray,o.create=function(t){return new o(t)},o.encode=function(t,c){if(c||(c=$Writer.create()),t.labels!=null&&t.labels.length)for(let p=0;p<t.labels.length;++p)$root.openmetrics.Label.encode(t.labels[p],c.uint32(10).fork()).ldelim();if(t.metricPoints!=null&&t.metricPoints.length)for(let p=0;p<t.metricPoints.length;++p)$root.openmetrics.MetricPoint.encode(t.metricPoints[p],c.uint32(18).fork()).ldelim();return c},o.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.openmetrics.Metric;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.labels&&y.labels.length||(y.labels=[]),y.labels.push($root.openmetrics.Label.decode(t,t.uint32()));break}case 2:{y.metricPoints&&y.metricPoints.length||(y.metricPoints=[]),y.metricPoints.push($root.openmetrics.MetricPoint.decode(t,t.uint32()));break}default:t.skipType(g&7);break}}return y},o.fromObject=function(t){if(t instanceof $root.openmetrics.Metric)return t;let c=new $root.openmetrics.Metric;if(t.labels){if(!Array.isArray(t.labels))throw TypeError(".openmetrics.Metric.labels: array expected");c.labels=[];for(let p=0;p<t.labels.length;++p){if(typeof t.labels[p]!="object")throw TypeError(".openmetrics.Metric.labels: object expected");c.labels[p]=$root.openmetrics.Label.fromObject(t.labels[p])}}if(t.metricPoints){if(!Array.isArray(t.metricPoints))throw TypeError(".openmetrics.Metric.metricPoints: array expected");c.metricPoints=[];for(let p=0;p<t.metricPoints.length;++p){if(typeof t.metricPoints[p]!="object")throw TypeError(".openmetrics.Metric.metricPoints: object expected");c.metricPoints[p]=$root.openmetrics.MetricPoint.fromObject(t.metricPoints[p])}}return c},o.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.labels=[],p.metricPoints=[]),t.labels&&t.labels.length){p.labels=[];for(let h=0;h<t.labels.length;++h)p.labels[h]=$root.openmetrics.Label.toObject(t.labels[h],c)}if(t.metricPoints&&t.metricPoints.length){p.metricPoints=[];for(let h=0;h<t.metricPoints.length;++h)p.metricPoints[h]=$root.openmetrics.MetricPoint.toObject(t.metricPoints[h],c)}return p},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Metric"},o}(),n.Label=function(){function o(e){if(e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}return o.prototype.name="",o.prototype.value="",o.create=function(t){return new o(t)},o.encode=function(t,c){return c||(c=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&c.uint32(10).string(t.name),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&c.uint32(18).string(t.value),c},o.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.openmetrics.Label;
vendor: 16,384 bytes, line 18
18for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.name=t.string();break}case 2:{y.value=t.string();break}default:t.skipType(g&7);break}}return y},o.fromObject=function(t){if(t instanceof $root.openmetrics.Label)return t;let c=new $root.openmetrics.Label;return t.name!=null&&(c.name=String(t.name)),t.value!=null&&(c.value=String(t.value)),c},o.toObject=function(t,c){c||(c={});let p={};return c.defaults&&(p.name="",p.value=""),t.name!=null&&t.hasOwnProperty("name")&&(p.name=t.name),t.value!=null&&t.hasOwnProperty("value")&&(p.value=t.value),p},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Label"},o}(),n.MetricPoint=function(){function o(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}o.prototype.unknownValue=null,o.prototype.gaugeValue=null,o.prototype.counterValue=null,o.prototype.histogramValue=null,o.prototype.stateSetValue=null,o.prototype.infoValue=null,o.prototype.summaryValue=null,o.prototype.timestamp=null;let e;return Object.defineProperty(o.prototype,"value",{get:$util.oneOfGetter(e=["unknownValue","gaugeValue","counterValue","histogramValue","stateSetValue","infoValue","summaryValue"]),set:$util.oneOfSetter(e)}),o.create=function(c){return new o(c)},o.encode=function(c,p){return p||(p=$Writer.create()),c.unknownValue!=null&&Object.hasOwnProperty.call(c,"unknownValue")&&$root.openmetrics.UnknownValue.encode(c.unknownValue,p.uint32(10).fork()).ldelim(),c.gaugeValue!=null&&Object.hasOwnProperty.call(c,"gaugeValue")&&$root.openmetrics.GaugeValue.encode(c.gaugeValue,p.uint32(18).fork()).ldelim(),c.counterValue!=null&&Object.hasOwnProperty.call(c,"counterValue")&&$root.openmetrics.CounterValue.encode(c.counterValue,p.uint32(26).fork()).ldelim(),c.histogramValue!=null&&Object.hasOwnProperty.call(c,"histogramValue")&&$root.openmetrics.HistogramValue.encode(c.histogramValue,p.uint32(34).fork()).ldelim(),c.stateSetValue!=null&&Object.hasOwnProperty.call(c,"stateSetValue")&&$root.openmetrics.StateSetValue.encode(c.stateSetValue,p.uint32(42).fork()).ldelim(),c.infoValue!=null&&Object.hasOwnProperty.call(c,"infoValue")&&$root.openmetrics.InfoValue.encode(c.infoValue,p.uint32(50).fork()).ldelim(),c.summaryValue!=null&&Object.hasOwnProperty.call(c,"summaryValue")&&$root.openmetrics.SummaryValue.encode(c.summaryValue,p.uint32(58).fork()).ldelim(),c.timestamp!=null&&Object.hasOwnProperty.call(c,"timestamp")&&$root.google.protobuf.Timestamp.encode(c.timestamp,p.uint32(66).fork()).ldelim(),p},o.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.openmetrics.MetricPoint;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.unknownValue=$root.openmetrics.UnknownValue.decode(c,c.uint32());break}case 2:{g.gaugeValue=$root.openmetrics.GaugeValue.decode(c,c.uint32());break}case 3:{g.counterValue=$root.openmetrics.CounterValue.decode(c,c.uint32());break}case 4:{g.histogramValue=$root.openmetrics.HistogramValue.decode(c,c.uint32());break}case 5:{g.stateSetValue=$root.openmetrics.StateSetValue.decode(c,c.uint32());break}case 6:{g.infoValue=$root.openmetrics.InfoValue.decode(c,c.uint32());break}case 7:{g.summaryValue=$root.openmetrics.SummaryValue.decode(c,c.uint32());break}case 8:{g.timestamp=$root.google.protobuf.Timestamp.decode(c,c.uint32());break}default:c.skipType($&7);break}}return g},o.fromObject=function(c){if(c instanceof $root.openmetrics.MetricPoint)return c;let p=new $root.openmetrics.MetricPoint;if(c.unknownValue!=null){if(typeof c.unknownValue!="object")throw TypeError(".openmetrics.MetricPoint.unknownValue: object expected");p.unknownValue=$root.openmetrics.UnknownValue.fromObject(c.unknownValue)}if(c.gaugeValue!=null){if(typeof c.gaugeValue!="object")throw TypeError(".openmetrics.MetricPoint.gaugeValue: object expected");p.gaugeValue=$root.openmetrics.GaugeValue.fromObject(c.gaugeValue)}if(c.counterValue!=null){if(typeof c.counterValue!="object")throw TypeError(".openmetrics.MetricPoint.counterValue: object expected");p.counterValue=$root.openmetrics.CounterValue.fromObject(c.counterValue)}if(c.histogramValue!=null){if(typeof c.histogramValue!="object")throw TypeError(".openmetrics.MetricPoint.histogramValue: object expected");p.histogramValue=$root.openmetrics.HistogramValue.fromObject(c.histogramValue)}if(c.stateSetValue!=null){if(typeof c.stateSetValue!="object")throw TypeError(".openmetrics.MetricPoint.stateSetValue: object expected");p.stateSetValue=$root.openmetrics.StateSetValue.fromObject(c.stateSetValue)}if(c.infoValue!=null){if(typeof c.infoValue!="object")throw TypeError(".openmetrics.MetricPoint.infoValue: object expected");p.infoValue=$root.openmetrics.InfoValue.fromObject(c.infoValue)}if(c.summaryValue!=null){if(typeof c.summaryValue!="object")throw TypeError(".openmetrics.MetricPoint.summaryValue: object expected");p.summaryValue=$root.openmetrics.SummaryValue.fromObject(c.summaryValue)}if(c.timestamp!=null){if(typeof c.timestamp!="object")throw TypeError(".openmetrics.MetricPoint.timestamp: object expected");p.timestamp=$root.google.protobuf.Timestamp.fromObject(c.timestamp)}return p},o.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.timestamp=null),c.unknownValue!=null&&c.hasOwnProperty("unknownValue")&&(h.unknownValue=$root.openmetrics.UnknownValue.toObject(c.unknownValue,p),p.oneofs&&(h.value="unknownValue")),c.gaugeValue!=null&&c.hasOwnProperty("gaugeValue")&&(h.gaugeValue=$root.openmetrics.GaugeValue.toObject(c.gaugeValue,p),p.oneofs&&(h.value="gaugeValue")),c.counterValue!=null&&c.hasOwnProperty("counterValue")&&(h.counterValue=$root.openmetrics.CounterValue.toObject(c.counterValue,p),p.oneofs&&(h.value="counterValue")),c.histogramValue!=null&&c.hasOwnProperty("histogramValue")&&(h.histogramValue=$root.openmetrics.HistogramValue.toObject(c.histogramValue,p),p.oneofs&&(h.value="histogramValue")),c.stateSetValue!=null&&c.hasOwnProperty("stateSetValue")&&(h.stateSetValue=$root.openmetrics.StateSetValue.toObject(c.stateSetValue,p),p.oneofs&&(h.value="stateSetValue")),c.infoValue!=null&&c.hasOwnProperty("infoValue")&&(h.infoValue=$root.openmetrics.InfoValue.toObject(c.infoValue,p),p.oneofs&&(h.value="infoValue")),c.summaryValue!=null&&c.hasOwnProperty("summaryValue")&&(h.summaryValue=$root.openmetrics.SummaryValue.toObject(c.summaryValue,p),p.oneofs&&(h.value="summaryValue")),c.timestamp!=null&&c.hasOwnProperty("timestamp")&&(h.timestamp=$root.google.protobuf.Timestamp.toObject(c.timestamp,p)),h},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/openmetrics.MetricPoint"},o}(),n.UnknownValue=function(){function o(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}o.prototype.doubleValue=null,o.prototype.intValue=null;let e;return Object.defineProperty(o.prototype,"value",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),o.create=function(c){return new o(c)},o.encode=function(c,p){return p||(p=$Writer.create()),c.doubleValue!=null&&Object.hasOwnProperty.call(c,"doubleValue")&&p.uint32(9).double(c.doubleValue),c.intValue!=null&&Object.hasOwnProperty.call(c,"intValue")&&p.uint32(16).int64(c.intValue),p},o.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.openmetrics.UnknownValue;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.doubleValue=c.double();break}case 2:{g.intValue=c.int64();break}default:c.skipType($&7);break}}return g},o.fromObject=function(c){if(c instanceof $root.openmetrics.UnknownValue)return c;let p=new $root.openmetrics.UnknownValue;return c.doubleValue!=null&&(p.doubleValue=Number(c.doubleValue)),c.intValue!=null&&($util.Long?(p.intValue=$util.Long.fromValue(c.intValue)).unsigned=!1:typeof c.intValue=="string"?p.intValue=parseInt(c.intValue,10):typeof c.intValue=="number"?p.intValue=c.intValue:typeof c.intValue=="object"&&(p.intValue=new $util.LongBits(c.intValue.low>>>0,c.intValue.high>>>0).toNumber())),p},o.toObject=function(c,p){p||(p={});let h={};return c.doubleValue!=null&&c.hasOwnProperty("doubleValue")&&(h.doubleValue=p.json&&!isFinite(c.doubleValue)?String(c.doubleValue):c.doubleValue,p.oneofs&&(h.value="doubleValue")),c.intValue!=null&&c.hasOwnProperty("intValue")&&(typeof c.intValue=="number"?h.intValue=p.longs===String?String(c.intValue):c.intValue:h.intValue=p.longs===String?$util.Long.prototype.toString.call(c.intValue):p.longs===Number?new $util.LongBits(c.intValue.low>>>0,c.intValue.high>>>0).toNumber():c.intValue,p.oneofs&&(h.value="intValue")),h},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/openmetrics.UnknownValue"},o}(),n.GaugeValue=function(){function o(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}o.prototype.doubleValue=null,o.prototype.intValue=null;let e;return Object.defineProperty(o.prototype,"value",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),o.create=function(c){return new o(c)},o.encode=function(c,p){return p||(p=$Writer.create()),c.doubleValue!=null&&Object.hasOwnProperty.call(c,"doubleValue")&&p.uint32(9).double(c.doubleValue),c.intValue!=null&&Object.hasOwnProperty.call(c,"intValue")&&p.uint32(16).int64(c.intValue),p},o.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.openmetrics.GaugeValue;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.doubleValue=c.double();break}case 2:{g.intValue=c.int64();break}default:c.skipType($&7);break}}return g},o.fromObject=function(c){if(c instanceof $root.openmetrics.GaugeValue)return c;let p=new $root.openmetrics.GaugeValue;return c.doubleValue!=null&&(p.doubleValue=Number(c.doubleValue)),c.intValue!=null&&($util.Long?(p.intValue=$util.Long.fromValue(c.intValue)).unsigned=!1:typeof c.intValue=="string"?p.intValue=parseInt(c.intValue,10):typeof c.intValue=="number"?p.intValue=c.intValue:typeof c.intValue=="object"&&(p.intValue=new $util.LongBits(c.intValue.low>>>0,c.intValue.high>>>0).toNumber())),p},o.toObject=function(c,p){p||(p={});let h={};return c.doubleValue!=null&&c.hasOwnProperty("doubleValue")&&(h.doubleValue=p.json&&!isFinite(c.doubleValue)?String(c.doubleValue):c.doubleValue,p.oneofs&&(h.value="doubleValue")),c.intValue!=null&&c.hasOwnProperty("intValue")&&(typeof c.intValue=="number"?h.intValue=p.longs===String?String(c.intValue):c.intValue:h.intValue=p.longs===String?$util.Long.prototype.toString.call(c.intValue):p.longs===Number?new $util.LongBits(c.intValue.low>>>0,c.intValue.high>>>0).toNumber():c.intValue,p.oneofs&&(h.value="intValue")),h},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/openmetrics.GaugeValue"},o}(),n.CounterValue=function(){function o(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}o.prototype.doubleValue=null,o.prototype.intValue=null,o.prototype.created=null,o.prototype.exemplar=null;let e;return Object.defineProperty(o.prototype,"total",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),o.create=function(c){return new o(c)},o.encode=function(c,p){return p||(p=$Writer.create()),c.doubleValue!=null&&Object.hasOwnProperty.call(c,"doubleValue")&&p.uint32(9).double(c.doubleValue),c.intValue!=null&&Object.hasOwnProperty.call(c,"intValue")&&p.uint32(16).uint64(c.intValue),c.created!=null&&Object.hasOwnProperty.call(c,"created")&&$root.google.protobuf.Timestamp.encode(c.created,p.uint32(26).fork()).ldelim(),c.exemplar!=null&&Object.hasOwnProperty.call(c,"exemplar")&&$root.openmetrics.Exemplar.encode(c.exemplar,p.uint32(34).fork()).ldelim(),p},o.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.openmetrics.CounterValue;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.doubleValue=c.double();break}case 2:{g.intValue=c.uint64();break}case 3:{g.created=$root.google.protobuf.Timestamp.decode(c,c.uint32());break}case 4:{g.exemplar=$root.openmetrics.Exemplar.decode(c,c.uint32());break}default:c.skipType($&7);break}}return g},o.fromObject=function(c){if(c instanceof $root.openmetrics.CounterValue)return c;let p=new $root.openmetrics.CounterValue;if(c.doubleValue!=null&&(p.doubleValue=Number(c.doubleValue)),c.intValue!=null&&($util.Long?(p.intValue=$util.Long.fromValue(c.intValue)).unsigned=!0:typeof c.intValue=="string"?p.intValue=parseInt(c.intValue,10):typeof c.intValue=="number"?p.intValue=c.intValue:typeof c.intValue=="object"&&(p.intValue=new $util.LongBits(c.intValue.low>>>0,c.intValue.high>>>0).toNumber(!0))),c.created!=null){if(typeof c.created!="object")throw TypeError(".openmetrics.CounterValue.created: object expected");p.created=$root.google.protobuf.Timestamp.fromObject(c.created)}if(c.exemplar!=null){if(typeof c.exemplar!="object")throw TypeError(".openmetrics.CounterValue.exemplar: object expected");p.exemplar=$root.openmetrics.Exemplar.fromObject(c.exemplar)}return p},o.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.created=null,h.exemplar=null),c.doubleValue!=null&&c.hasOwnProperty("doubleValue")&&(h.doubleValue=p.json&&!isFinite(c.doubleValue)?String(c.doubleValue):c.doubleValue,p.oneofs&&(h.total="doubleValue")),c.intValue!=null&&c.hasOwnProperty("intValue")&&(typeof c.intValue=="number"?h.intValue=p.longs===String?String(c.intValue):c.intValue:h.intValue=p.longs===String?$util.Long.prototype.toString.call(c.intValue):p.longs===Number?new $util.LongBits(c.intValue.low>>>0,c.intValue.high>>>0).toNumber(!0):c.intValue,p.oneofs&&(h.total="intValue")),c.created!=null&&c.hasOwnProperty("created")&&(h.created=$root.google.protobuf.Timestamp.toObject(c.created,p)),c.exemplar!=null&&c.hasOwnProperty("exemplar")&&(h.exemplar=$root.openmetrics.Exemplar.toObject(c.exemplar,p)),h},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/openmetrics.CounterValue"},o}(),n.HistogramValue=function(){function o(t){if(this.buckets=[],t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}o.prototype.doubleValue=null,o.prototype.intValue=null,o.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,o.prototype.created=null,o.prototype.buckets=$util.emptyArray;let e;return Object.defineProperty(o.prototype,"sum",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),o.create=function(c){return new o(c)},o.encode=function(c,p){if(p||(p=$Writer.create()),c.doubleValue!=null&&Object.hasOwnProperty.call(c,"doubleValue")&&p.uint32(9).double(c.doubleValue),c.intValue!=null&&Object.hasOwnProperty.call(c,"intValue")&&p.uint32(16).int64(c.intValue),c.count!=null&&Object.hasOwnProperty.call(c,"count")&&p.uint32(24).uint64(c.count),c.created!=null&&Object.hasOwnProperty.call(c,"created")&&$root.google.protobuf.Timestamp.encode(c.created,p.uint32(34).fork()).ldelim(),c.buckets!=null&&c.buckets.length)for(let h=0;h<c.buckets.length;++h)$root.openmetrics.HistogramValue.Bucket.encode(c.buckets[h],p.uint32(42).fork()).ldelim();return p},o.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.openmetrics.HistogramValue;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.doubleValue=c.double();break}case 2:{g.intValue=c.int64();break}case 3:{g.count=c.uint64();break}case 4:{g.created=$root.google.protobuf.Timestamp.decode(c,c.uint32());break}case 5:{g.buckets&&g.buckets.length||(g.buckets=[]),g.buckets.push($root.openmetrics.HistogramValue.Bucket.decode(c,c.uint32()));break}default:c.skipType($&7);break}}return g},o.fromObject=function(c){if(c instanceof $root.openmetrics.HistogramValue)return c;let p=new $root.openmetrics.HistogramValue;if(c.doubleValue!=null&&(p.doubleValue=Number(c.do
18ubleValue)),c.intValue!=null&&($util.Long?(p.intValue=$util.Long.fromValue(c.intValue)).unsigned=!1:typeof c.intValue=="string"?p.intValue=parseInt(c.intValue,10):typeof c.intValue=="number"?p.intValue=c.intValue:typeof c.intValue=="object"&&(p.intValue=new $util.LongBits(c.intValue.low>>>0,c.intValue.high>>>0).toNumber())),c.count!=null&&($util.Long?(p.count=$util.Long.fromValue(c.count)).unsigned=!0:typeof c.count=="string"?p.count=parseInt(c.count,10):typeof c.count=="number"?p.count=c.count:typeof c.count=="object"&&(p.count=new $util.LongBits(c.count.low>>>0,c.count.high>>>0).toNumber(!0))),c.created!=null){if(typeof c.created!="object")throw TypeError(".openmetrics.HistogramValue.created: object expected");p.created=$root.google.protobuf.Timestamp.fromObject(c.created)}if(c.buckets){if(!Array.isArray(c.buckets))throw TypeError(".openmetrics.HistogramValue.buckets: array expected");p.buckets=[];for(let h=0;h<c.buckets.length;++h){if(typeof c.buckets[h]!="object")throw TypeError(".openmetrics.HistogramValue.buckets: object expected");p.buckets[h]=$root.openmetrics.HistogramValue.Bucket.fromObject(c.buckets[h])}}return p},o.toObject=function(c,p){p||(p={});let h={};if((p.arrays||p.defaults)&&(h.buckets=[]),p.defaults){if($util.Long){let y=new $util.Long(0,0,!0);h.count=p.longs===String?y.toString():p.longs===Number?y.toNumber():y}else h.count=p.longs===String?"0":0;h.created=null}if(c.doubleValue!=null&&c.hasOwnProperty("doubleValue")&&(h.doubleValue=p.json&&!isFinite(c.doubleValue)?String(c.doubleValue):c.doubleValue,p.oneofs&&(h.sum="doubleValue")),c.intValue!=null&&c.hasOwnProperty("intValue")&&(typeof c.intValue=="number"?h.intValue=p.longs===String?String(c.intValue):c.intValue:h.intValue=p.longs===String?$util.Long.prototype.toString.call(c.intValue):p.longs===Number?new $util.LongBits(c.intValue.low>>>0,c.intValue.high>>>0).toNumber():c.intValue,p.oneofs&&(h.sum="intValue")),c.count!=null&&c.hasOwnProperty("count")&&(typeof c.count=="number"?h.count=p.longs===String?String(c.count):c.count:h.count=p.longs===String?$util.Long.prototype.toString.call(c.count):p.longs===Number?new $util.LongBits(c.count.low>>>0,c.count.high>>>0).toNumber(!0):c.count),c.created!=null&&c.hasOwnProperty("created")&&(h.created=$root.google.protobuf.Timestamp.toObject(c.created,p)),c.buckets&&c.buckets.length){h.buckets=[];for(let y=0;y<c.buckets.length;++y)h.buckets[y]=$root.openmetrics.HistogramValue.Bucket.toObject(c.buckets[y],p)}return h},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/openmetrics.HistogramValue"},o.Bucket=function(){function t(c){if(c)for(let p=Object.keys(c),h=0;h<p.length;++h)c[p[h]]!=null&&(this[p[h]]=c[p[h]])}return t.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,t.prototype.upperBound=0,t.prototype.exemplar=null,t.create=function(p){return new t(p)},t.encode=function(p,h){return h||(h=$Writer.create()),p.count!=null&&Object.hasOwnProperty.call(p,"count")&&h.uint32(8).uint64(p.count),p.upperBound!=null&&Object.hasOwnProperty.call(p,"upperBound")&&h.uint32(17).double(p.upperBound),p.exemplar!=null&&Object.hasOwnProperty.call(p,"exemplar")&&$root.openmetrics.Exemplar.encode(p.exemplar,h.uint32(26).fork()).ldelim(),h},t.decode=function(p,h,y){p instanceof $Reader||(p=$Reader.create(p));let g=h===void 0?p.len:p.pos+h,$=new $root.openmetrics.HistogramValue.Bucket;for(;p.pos<g;){let E=p.uint32();if(E===y)break;switch(E>>>3){case 1:{$.count=p.uint64();break}case 2:{$.upperBound=p.double();break}case 3:{$.exemplar=$root.openmetrics.Exemplar.decode(p,p.uint32());break}default:p.skipType(E&7);break}}return $},t.fromObject=function(p){if(p instanceof $root.openmetrics.HistogramValue.Bucket)return p;let h=new $root.openmetrics.HistogramValue.Bucket;if(p.count!=null&&($util.Long?(h.count=$util.Long.fromValue(p.count)).unsigned=!0:typeof p.count=="string"?h.count=parseInt(p.count,10):typeof p.count=="number"?h.count=p.count:typeof p.count=="object"&&(h.count=new $util.LongBits(p.count.low>>>
180,p.count.high>>>0).toNumber(!0))),p.upperBound!=null&&(h.upperBound=Number(p.upperBound)),p.exemplar!=null){if(typeof p.exemplar!="object")throw TypeError(".openmetrics.HistogramValue.Bucket.exemplar: object expected");h.exemplar=$root.openmetrics.Exemplar.fromObject(p.exemplar)}return h},t.toObject=function(p,h){h||(h={});let y={};if(h.defaults){if($util.Long){let g=new $util.Long(0,0,!0);y.count=h.longs===String?g.toString():h.longs===Number?g.toNumber():g}else y.count=h.longs===String?"0":0;y.upperBound=0,y.exemplar=null}return p.count!=null&&p.hasOwnProperty("count")&&(typeof p.count=="number"?y.count=h.longs===String?String(p.count):p.count:y.count=h.longs===String?$util.Long.prototype.toString.call(p.count):h.longs===Number?new $util.LongBits(p.count.low>>>0,p.count.high>>>0).toNumber(!0):p.count),p.upperBound!=null&&p.hasOwnProperty("upperBound")&&(y.upperBound=h.json&&!isFinite(p.upperBound)?String(p.upperBound):p.upperBound),p.exemplar!=null&&p.hasOwnProperty("exemplar")&&(y.exemplar=$root.openmetrics.Exemplar.toObject(p.exemplar,h)),y},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/openmetrics.HistogramValue.Bucket"},t}(),o}(),n.Exemplar=function(){function o(e){if(this.label=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}return o.prototype.value=0,o.prototype.timestamp=null,o.prototype.label=$util.emptyArray,o.create=function(t){return new o(t)},o.encode=function(t,c){if(c||(c=$Writer.create()),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&c.uint32(9).double(t.value),t.timestamp!=null&&Object.hasOwnProperty.call(t,"timestamp")&&$root.google.protobuf.Timestamp.encode(t.timestamp,c.uint32(18).fork()).ldelim(),t.label!=null&&t.label.length)for(let p=0;p<t.label.length;++p)$root.openmetrics.Label.encode(t.label[p],c.uint32(26).fork()).ldelim();return c},o.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.openmetrics.Exemplar;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.value=t.double();break}case 2:{y.timestamp=$root.google.protobuf.Timestamp.decode(t,t.uint32());break}case 3:{y.label&&y.label.length||(y.label=[]),y.label.push($root.openmetrics.Label.decode(t,t.uint32()));break}default:t.skipType(g&7);break}}return y},o.fromObject=function(t){if(t instanceof $root.openmetrics.Exemplar)return t;let c=new $root.openmetrics.Exemplar;if(t.value!=null&&(c.value=Number(t.value)),t.timestamp!=null){if(typeof t.timestamp!="object")throw TypeError(".openmetrics.Exemplar.timestamp: object expected");c.timestamp=$root.google.protobuf.Timestamp.fromObject(t.timestamp)}if(t.label){if(!Array.isArray(t.label))throw TypeError(".openmetrics.Exemplar.label: array expected");c.label=[];for(let p=0;p<t.label.length;++p){if(typeof t.label[p]!="object")throw TypeError(".openmetrics.Exemplar.label: object expected");c.label[p]=$root.openmetrics.Label.fromObject(t.label[p])}}return c},o.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.label=[]),c.defaults&&(p.value=0,p.timestamp=null),t.value!=null&&t.hasOwnProperty("value")&&(p.value=c.json&&!isFinite(t.value)?String(t.value):t.value),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(p.timestamp=$root.google.protobuf.Timestamp.toObject(t.timestamp,c)),t.label&&t.label.length){p.label=[];for(let h=0;h<t.label.length;++h)p.label[h]=$root.openmetrics.Label.toObject(t.label[h],c)}return p},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Exemplar"},o}(),n.StateSetValue=function(){function o(e){if(this.states=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}return o.prototype.states=$util.emptyArray,o.create=function(t){return new o(t)},o.encode=function(t,c){if(c||(c=$Writer.create()),t.states!=null&&t.states.length)for(let p=0;p<t.states.length;++p)$root.openmetrics.StateSetValue.State.encode(t.states[p],c.uint32(10).fork()).ldelim();return c},o.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.openmetrics.StateSetValue;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.states&&y.states.length||(y.states=[]),y.states.push($root.openmetrics.StateSetValue.State.decode(t,t.uint32()));break}default:t.skipType(g&7);break}}return y},o.fromObject=function(t){if(t instanceof $root.openmetrics.StateSetValue)return t;let c=new $root.openmetrics.StateSetValue;if(t.states){if(!Array.isArray(t.states))throw TypeError(".openmetrics.StateSetValue.states: array expected");c.states=[];for(let p=0;p<t.states.length;++p){if(typeof t.states[p]!="object")throw TypeError(".openmetrics.StateSetValue.states: object expected");c.states[p]=$root.openmetrics.StateSetValue.State.fromObject(t.states[p])}}return c},o.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.states=[]),t.states&&t.states.length){p.states=[];for(let h=0;h<t.states.length;++h)p.states[h]=$root.openmetrics.StateSetValue.State.toObject(t.states[h],c)}return p},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.StateSetValue"},o.State=function(){function e(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}return e.prototype.enabled=!1,e.prototype.name="",e.create=function(c){return new e(c)},e.encode=function(c,p){return p||(p=$Writer.create()),c.enabled!=null&&Object.hasOwnProperty.call(c,"enabled")&&p.uint32(8).bool(c.enabled),c.name!=null&&Object.hasOwnProperty.call(c,"name")&&p.uint32(18).string(c.name),p},e.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.openmetrics.StateSetValue.State;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.enabled=c.bool();break}case 2:{g.name=c.string();break}default:c.skipType($&7);break}}return g},e.fromObject=function(c){if(c instanceof $root.openmetrics.StateSetValue.State)return c;let p=new $root.openmetrics.StateSetValue.State;return c.enabled!=null&&(p.enabled=!!c.enabled),c.name!=null&&(p.name=String(c.name)),p},e.toObject=function(c,p){p||(p={});let h={};return p.defaults&&(h.enabled=!1,h.name=""),c.enabled!=null&&c.hasOwnProperty("enabled")&&(h.enabled=c.enabled),c.name!=null&&c.hasOwnProperty("name")&&(h.name=c.name),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/openmetrics.StateSetValue.State"},e}(),o}(),n.InfoValue=function(){function o(e){if(this.info=[],e)for(let t=Object.keys(e),c=0;c<t.length;++c)e[t[c]]!=null&&(this[t[c]]=e[t[c]])}return o.prototype.info=$util.emptyArray,o.create=function(t){return new o(t)},o.encode=function(t,c){if(c||(c=$Writer.create()),t.info!=null&&t.info.length)for(let p=0;p<t.info.length;++p)$root.openmetrics.Label.encode(t.info[p],c.uint32(10).fork()).ldelim();return c},o.decode=function(t,c,p){t instanceof $Reader||(t=$Reader.create(t));let h=c===void 0?t.len:t.pos+c,y=new $root.openmetrics.InfoValue;for(;t.pos<h;){let g=t.uint32();if(g===p)break;switch(g>>>3){case 1:{y.info&&y.info.length||(y.info=[]),y.info.push($root.openmetrics.Label.decode(t,t.uint32()));break}default:t.skipType(g&7);break}}return y},o.fromObject=function(t){if(t instanceof $root.openmetrics.InfoValue)return t;let c=new $root.openmetrics.InfoValue;if(t.info){if(!Array.isArray(t.info))throw TypeError(".openmetrics.InfoValue.info: array expected");c.info=[];for(let p=0;p<t.info.length;++p){if(typeof t.info[p]!="object")throw TypeError(".openmetrics.InfoValue.info: object expected");c.info[p]=$root.openmetrics.Label.fromObject(t.info[p])}}return c},o.toObject=function(t,c){c||(c={});let p={};if((c.arrays||c.defaults)&&(p.info=[]),t.info&&t.info.length){p.info=[];for(let h=0;h<t.info.length;++h)p.info[h]=$root.openmetrics.Label.toObject(t.info[h],c)}return p},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.InfoValue"},o}(),n.SummaryValue=function(){function o(t){if(this.quantile=[],t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}o.prototype.doubleValue=null,o.prototype.intValue=null,o.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,o.prototype.created=null,o.prototype.quantile=$util.emptyArray;let e;return Object.defineProperty(o.prototype,"sum",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),o.create=function(c){return new o(c)},o.encode=function(c,p){if(p||(p=$Writer.create()),c.doubleValue!=null&&Object.hasOwnProperty.call(c,"doubleValue")&&p.uint32(9).double(c.doubleValue),c.intValue!=null&&Object.hasOwnProperty.call(c,"intValue")&&p.uint32(16).int64(c.intValue),c.count!=null&&Object.hasOwnProperty.call(c,"count")&&p.uint32(24).uint64(c.count),c.created!=null&&Object.hasOwnProperty.call(c,"created")&&$root.google.protobuf.Timestamp.encode(c.created,p.uint32(34).fork()).ldelim(),c.quantile!=null&&c.quantile.length)for(let h=0;h<c.quantile.length;++h)$root.openmetrics.SummaryValue.Quantile.encode(c.quantile[h],p.uint32(42).fork()).ldelim();return p},o.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.openmetrics.SummaryValue;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.doubleValue=c.double();break}case 2:{g.intValue=c.int64();break}case 3:{g.count=c.uint64();break}case 4:{g.created=$root.google.protobuf.Timestamp.decode(c,c.uint32());break}case 5:{g.quantile&&g.quantile.length||(g.quantile=[]),g.quantile.push($root.openmetrics.SummaryValue.Quantile.decode(c,c.uint32()));break}default:c.skipType($&7);break}}return g},o.fromObject=function(c){if(c instanceof $root.openmetrics.SummaryValue)return c;let p=new $root.openmetrics.SummaryValue;if(c.doubleValue!=null&&(p.doubleValue=Number(c.doubleValue)),c.intValue!=null&&($util.Long?(p.intValue=$util.Long.fromValue(c.intValue)).unsigned=!1:typeof c.intValue=="string"?p.intValue=parseInt(c.intValue,10):typeof c.intValue=="number"?p.intValue=c.intValue:typeof c.intValue=="object"&&(p.intValue=new $util.LongBits(c.intValue.low>>>0,c.intValue.high>>>0).toNumber())),c.count!=null&&($util.Long?(p.count=$util.Long.fromValue(c.count)).unsigned=!0:typeof c.count=="string"?p.count=parseInt(c.count,10):typeof c.count=="number"?p.count=c.count:typeof c.count=="object"&&(p.count=new $util.LongBits(c.count.low>>>0,c.count.high>
18>>0).toNumber(!0))),c.created!=null){if(typeof c.created!="object")throw TypeError(".openmetrics.SummaryValue.created: object expected");p.created=$root.google.protobuf.Timestamp.fromObject(c.created)}if(c.quantile){if(!Array.isArray(c.quantile))throw TypeError(".openmetrics.SummaryValue.quantile: array expected");p.quantile=[];for(let h=0;h<c.quantile.length;++h){if(typeof c.quantile[h]!="object")throw TypeError(".openmetrics.SummaryValue.quantile: object expected");p.quantile[h]=$root.openmetrics.SummaryValue.Quantile.fromObject(c.quantile[h])}}return p},o.toObject=function(c,p){p||(p={});let h={};if((p.arrays||p.defaults)&&(h.quantile=[]),p.defaults){if($util.Long){let y=new $util.Long(0,0,!0);h.count=p.longs===String?y.toString():p.longs===Number?y.toNumber():y}else h.count=p.longs===String?"0":0;h.created=null}if(c.doubleValue!=null&&c.hasOwnProperty("doubleValue")&&(h.doubleValue=p.json&&!isFinite(c.doubleValue)?String(c.doubleValue):c.doubleValue,p.oneofs&&(h.sum="doubleValue")),c.intValue!=null&&c.hasOwnProperty("intValue")&&(typeof c.intValue=="number"?h.intValue=p.longs===String?String(c.intValue):c.intValue:h.intValue=p.longs===String?$util.Long.prototype.toString.call(c.intValue):p.longs===Number?new $util.LongBits(c.intValue.low>>>0,c.intValue.high>>>0).toNumber():c.intValue,p.oneofs&&(h.sum="intValue")),c.count!=null&&c.hasOwnProperty("count")&&(typeof c.count=="number"?h.count=p.longs===String?String(c.count):c.count:h.count=p.longs===String?$util.Long.prototype.toString.call(c.count):p.longs===Number?new $util.LongBits(c.count.low>>>0,c.count.high>>>0).toNumber(!0):c.count),c.created!=null&&c.hasOwnProperty("created")&&(h.created=$root.google.protobuf.Timestamp.toObject(c.created,p)),c.quantile&&c.quantile.length){h.quantile=[];for(let y=0;y<c.quantile.length;++y)h.quantile[y]=$root.openmetrics.SummaryValue.Quantile.toObject(c.quantile[y],p)}return h},o.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},o.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/openmetrics.SummaryValue"},o.Quantile=function(){function t(c){if(c)for(let p=Object.keys(c),h=0;h<p.length;++h)c[p[h]]!=null&&(this[p[h]]=c[p[h]])}return t.prototype.quantile=0,t.prototype.value=0,t.create=function(p){return new t(p)},t.encode=function(p,h){return h||(h=$Writer.create()),p.quantile!=null&&Object.hasOwnProperty.call(p,"quantile")&&h.uint32(9).double(p.quantile),p.value!=null&&Object.hasOwnProperty.call(p,"value")&&h.uint32(17).double(p.value),h},t.decode=function(p,h,y){p instanceof $Reader||(p=$Reader.create(p));let g=h===void 0?p.len:p.pos+h,$=new $root.openmetrics.SummaryValue.Quantile;for(;p.pos<g;){let E=p.uint32();if(E===y)break;switch(E>>>3){case 1:{$.quantile=p.double();break}case 2:{$.value=p.double();break}default:p.skipType(E&7);break}}return $},t.fromObject=function(p){if(p instanceof $root.openmetrics.SummaryValue.Quantile)return p;let h=new $root.openmetrics.SummaryValue.Quantile;return p.quantile!=null&&(h.quantile=Number(p.quantile)),p.value!=null&&(h.value=Number(p.value)),h},t.toObject=function(p,h){h||(h={});let y={};return h.defaults&&(y.quantile=0,y.value=0),p.quantile!=null&&p.hasOwnProperty("quantile")&&(y.quantile=h.json&&!isFinite(p.quantile)?String(p.quantile):p.quantile),p.value!=null&&p.hasOwnProperty("value")&&(y.value=h.json&&!isFinite(p.value)?String(p.value):p.value),y},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/openmetrics.SummaryValue.Quantile"},t}(),o}(),n})();$root.google=(()=>{const n={};return n.protobuf=function(){const o={};return o.Timestamp=function(){function e(t){if(t)for(let c=Object.keys(t),p=0;p<c.length;++p)t[c[p]]!=null&&(this[c[p]]=t[c[p]])}return e.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(c){return new e(c)},e.encode=function(c,p){return p||(p=$Writer.create()),c.seconds!=null&&Object.hasOwnProperty.call(c,"seconds")&&p.uint32(8).int64(c.seconds),c.nanos!=null&&Object.hasOwnProperty.call(c,"nanos")&&p.uint32(16).int32(c.nanos),p},e.decode=function(c,p,h){c instanceof $Reader||(c=$Reader.create(c));let y=p===void 0?c.len:c.pos+p,g=new $root.google.protobuf.Timestamp;for(;c.pos<y;){let $=c.uint32();if($===h)break;switch($>>>3){case 1:{g.seconds=c.int64();break}case 2:{g.nanos=c.int32();break}default:c.skipType($&7);break}}return g},e.fromObject=function(c){if(c instanceof $root.google.protobuf.Timestamp)return c;let p=new $root.google.protobuf.Timestamp;return c.seconds!=null&&($util.Long?(p.seconds=$util.Long.fromValue(c.seconds)).unsigned=!1:typeof c.seconds=="str
18ing"?p.seconds=parseInt(c.seconds,10):typeof c.seconds=="number"?p.seconds=c.seconds:typeof c.seconds=="object"&&(p.seconds=new $util.LongBits(c.seconds.low>>>0,c.seconds.high>>>0).toNumber())),c.nanos!=null&&(p.nanos=c.nanos|0),p},e.toObject=function(c,p){p||(p={});let h={};if(p.defaults){if($util.Long){let y=new $util.Long(0,0,!1);h.seconds=p.longs===String?y.toString():p.longs===Number?y.toNumber():y}else h.seconds=p.longs===String?"0":0;h.nanos=0}return c.seconds!=null&&c.hasOwnProperty("seconds")&&(typeof c.seconds=="number"?h.seconds=p.longs===String?String(c.seconds):c.seconds:h.seconds=p.longs===String?$util.Long.prototype.toString.call(c.seconds):p.longs===Number?new $util.LongBits(c.seconds.low>>>0,c.seconds.high>>>0).toNumber():c.seconds),c.nanos!=null&&c.hasOwnProperty("nanos")&&(h.nanos=c.nanos),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/google.protobuf.Timestamp"},e}(),o}(),n})();$root.RootContainer=(()=>{const n={},o=Object.create(n);return o[n[0]="MAIN"]=0,o[n[1]="SIDEBAR"]=1,o[n[2]="EVENT"]=2,o[n[3]="BOTTOM"]=3,o})();function ensureError(n){return n instanceof Error?n:new Error(`${n}`)}const handlePreserveConsecutiveUppercase=(n,o)=>(n=n.replace(new RegExp("((?<![\\p{Uppercase_Letter}\\d])[\\p{Uppercase_Letter}\\d](?![\\p{Uppercase_Letter}\\d]))","gu"),e=>e.toLowerCase()),n.replace(new RegExp("(?<!\\p{Uppercase_Letter})(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(e,t,c)=>t+o+c.toLowerCase()));function decamelize$1(n,{separator:o="_",preserveConsecutiveUppercase:e=!1}={}){if(!(typeof n=="string"&&typeof o=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(n.length<2)return e?n:n.toLowerCase();const t=`$1${o}$2`,c=n.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),t);return e?handlePreserveConsecutiveUppercase(c,o):c.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),t).toLowerCase()}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$4=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root$4.Symbol,objectProto$g=Object.prototype,hasOwnProperty$e=objectProto$g.hasOwnProperty,nativeObjectToString$1=objectProto$g.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(n){var o=hasOwnProperty$e.call(n,symToStringTag$1),e=n[symToStringTag$1];try{n[symToStringTag$1]=void 0;var t=!0}catch{}var c=nativeObjectToString$1.call(n);return t&&(o?n[symToStringTag$1]=e:delete n[symToStringTag$1]),c}var objectProto$f=Object.prototype,nativeObjectToString=objectProto$f.toString;function objectToString(n){return nativeObjectToString.call(n)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(n){return n==null?n===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(n)?getRawTag(n):objectToString(n)}function isObjectLike(n){return n!=null&&typeof n=="object"}var symbolTag$3="[object Symbol]";function isSymbol(n){return typeof n=="symbol"||isObjectLike(n)&&baseGetTag(n)==symbolTag$3}function arrayMap(n,o){for(var e=-1,t=n==null?0:n.length,c=Array(t);++e<t;)c[e]=o(n[e],e,n);return c}var isArray=Array.isArray,symbolProto$2=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString(n){if(typeof n=="string")return n;if(isArray(n))return arrayMap(n,baseToString)+"";if(isSymbol(n))return symbolToString?symbolToString.call(n):"";var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}var reWhitespace=/\s/;function trimmedEndIndex(n){for(var o=n.length;o--&&reWhitespace.test(n.charAt(o)););return o}var reTrimStart=/^\s+/;function baseTrim(n){return n&&n.slice(0,trimmedEndIndex(n)+1).replace(reTrimStart,"")}function isObject$1(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(n){if(typeof n=="number")return n;if(isSymbol(n))return NAN;if(isObject$1(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=isObject$1(o)?o+"":o}
vendor: 14,628 bytes, line 18
18if(typeof n!="string")return n===0?n:+n;n=baseTrim(n);var e=reIsBinary.test(n);return e||reIsOctal.test(n)?freeParseInt(n.slice(2),e?2:8):reIsBadHex.test(n)?NAN:+n}var INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(n){if(!n)return n===0?n:0;if(n=toNumber(n),n===INFINITY||n===-INFINITY){var o=n<0?-1:1;return o*MAX_INTEGER}return n===n?n:0}function toInteger(n){var o=toFinite(n),e=o%1;return o===o?e?o-e:o:0}function identity(n){return n}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(n){if(!isObject$1(n))return!1;var o=baseGetTag(n);return o==funcTag$2||o==genTag$1||o==asyncTag||o==proxyTag}var coreJsData=root$4["__core-js_shared__"],maskSrcKey=function(){var n=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function isMasked(n){return!!maskSrcKey&&maskSrcKey in n}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(n){if(n!=null){try{return funcToString$2.call(n)}catch{}try{return n+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$e=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$d=objectProto$e.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(n){if(!isObject$1(n)||isMasked(n))return!1;var o=isFunction$2(n)?reIsNative:reIsHostCtor;return o.test(toSource(n))}function getValue(n,o){return n?.[o]}function getNative(n,o){var e=getValue(n,o);return baseIsNative(e)?e:void 0}var WeakMap$1=getNative(root$4,"WeakMap"),objectCreate=Object.create,baseCreate=function(){function n(){}return function(o){if(!isObject$1(o))return{};if(objectCreate)return objectCreate(o);n.prototype=o;var e=new n;return n.prototype=void 0,e}}();function apply(n,o,e){switch(e.length){case 0:return n.call(o);case 1:return n.call(o,e[0]);case 2:return n.call(o,e[0],e[1]);case 3:return n.call(o,e[0],e[1],e[2])}return n.apply(o,e)}function copyArray(n,o){var e=-1,t=n.length;for(o||(o=Array(t));++e<t;)o[e]=n[e];return o}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(n){var o=0,e=0;return function(){var t=nativeNow(),c=HOT_SPAN-(t-e);if(e=t,c>0){if(++o>=HOT_COUNT)return arguments[0]}else o=0;return n.apply(void 0,arguments)}}function constant(n){return function(){return n}}var defineProperty$1=function(){try{var n=getNative(Object,"defineProperty");return n({},"",{}),n}catch{}}(),baseSetToString=defineProperty$1?function(n,o){return defineProperty$1(n,"toString",{configurable:!0,enumerable:!1,value:constant(o),writable:!0})}:identity,setToString=shortOut(baseSetToString);function arrayEach(n,o){for(var e=-1,t=n==null?0:n.length;++e<t&&o(n[e],e,n)!==!1;);return n}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(n,o){var e=typeof n;return o=o??MAX_SAFE_INTEGER$1,!!o&&(e=="number"||e!="symbol"&&reIsUint.test(n))&&n>-1&&n%1==0&&n<o}function baseAssignValue(n,o,e){o=="__proto__"&&defineProperty$1?defineProperty$1(n,o,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[o]=e}function eq(n,o){return n===o||n!==n&&o!==o}var objectProto$d=Object.prototype,hasOwnProperty$c=objectProto$d.hasOwnProperty;function assignValue(n,o,e){var t=n[o];(!(hasOwnProperty$c.call(n,o)&&eq(t,e))||e===void 0&&!(o in n))&&baseAssignValue(n,o,e)}function copyObject(n,o,e,t){var c=!e;e||(e={});for(var p=-1,h=o.length;++p<h;){var y=o[p],g=void 0;g===void 0&&(g=n[y]),c?baseAssignValue(e,y,g):assignValue(e,y,g)}return e}var nativeMax$2=Math.max;function overRest(n,o,e){return o=nativeMax$2(o===void 0?n.length-1:o,0),function(){for(var t=arguments,c=-1,p=nativeMax$2(t.length-o,0),h=Array(p);++c<p;)h[c]=t[o+c];c=-1;for(var y=Array(o+1);++c<o;)y[c]=t[c];return y[o]=e(h),apply(n,this,y)}}function baseRest(n,o){return setToString(overRest(n,o,identity),n+"")}var MAX_SAFE_INTEGER=9007199254740991;function isLength(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=MAX_SAFE_INTEGER}function isArrayLike(n){return n!=null&&isLength(n.length)&&!isFunction$2(n)}function isIterateeCall(n,o,e){if(!isObject$1(e))return!1;var t=typeof o;return(t=="number"?isArrayLike(e)&&isIndex(o,e.length):t=="string"&&o in e)?eq(e[o],n):!1}function createAssigner(n){return baseRest(function(o,e){var t=-1,c=e.length,p=c>1?e[c-1]:void 0,h=c>2?e[2]:void 0;for(p=n.length>3&&typeof p=="function"?(c--,p):void 0,h&&isIterateeCall(e[0],e[1],h)&&(p=c<3?void 0:p,c=1),o=Object(o);++t<c;){var y=e[t];y&&n(o,y,t,p)}return o})}var objectProto$c=Object.prototype;function isPrototype(n){var o=n&&n.constructor,e=typeof o=="function"&&o.prototype||objectProto$c;return n===e}function baseTimes(n,o){for(var e=-1,t=Array(n);++e<n;)t[e]=o(e);return t}var argsTag$3="[object Arguments]";function baseIsArguments(n){return isObjectLike(n)&&baseGetTag(n)==argsTag$3}var objectProto$b=Object.prototype,hasOwnProperty$b=objectProto$b.hasOwnProperty,propertyIsEnumerable$1=objectProto$b.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(n){return isObjectLike(n)&&hasOwnProperty$b.call(n,"callee")&&!propertyIsEnumerable$1.call(n,"callee")};function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$3=moduleExports$2?root$4.Buffer:void 0,nativeIsBuffer=Buffer$3?Buffer$3.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(n){return isObjectLike(n)&&isLength(n.length)&&!!typedArrayTags[baseGetTag(n)]}function baseUnary(n){return function(o){return n(o)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal.process,nodeUtil=function(){try{var n=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return n||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$a=Object.prototype,hasOwnProperty$a=objectProto$a.hasOwnProperty;function arrayLikeKeys(n,o){var e=isArray(n),t=!e&&isArguments(n),c=!e&&!t&&isBuffer(n),p=!e&&!t&&!c&&isTypedArray(n),h=e||t||c||p,y=h?baseTimes(n.length,String):[],g=y.length;for(var $ in n)(o||hasOwnProperty$a.call(n,$))&&!(h&&($=="length"||c&&($=="offset"||$=="parent")||p&&($=="buffer"||$=="byteLength"||$=="byteOffset")||isIndex($,g)))&&y.push($);return y}function overArg(n,o){return function(e){return n(o(e))}}var nativeKeys=overArg(Object.keys,Object),objectProto$9=Object.prototype,hasOwnProperty$9=objectProto$9.hasOwnProperty;function baseKeys(n){if(!isPrototype(n))return nativeKeys(n);var o=[];for(var e in Object(n))hasOwnProperty$9.call(n,e)&&e!="constructor"&&o.push(e);return o}function keys$1(n){return isArrayLike(n)?arrayLikeKeys(n):baseKeys(n)}function nativeKeysIn(n){var o=[];if(n!=null)for(var e in Object(n))o.push(e);return o}var objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function baseKeysIn(n){if(!isObject$1(n))return nativeKeysIn(n);var o=isPrototype(n),e=[];for(var t in n)t=="constructor"&&(o||!hasOwnProperty$8.call(n,t))||e.push(t);return e}function keysIn(n){return isArrayLike(n)?arrayLikeKeys(n,!0):baseKeysIn(n)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(n,o){if(isArray(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||isSymbol(n)?!0:reIsPlainProp.test(n)||!reIsDeepProp.test(n)||o!=null&&n in Object(o)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$7=Object.prototype,hasOwnProperty$7=objectProto$7.hasOwnProperty;function hashGet(n){var o=this.__data__;if(nativeCreate){var e=o[n];return e===HASH_UNDEFINED$2?void 0:e}return hasOwnProperty$7.call(o,n)?o[n]:void 0}var objectProto$6=Object.prototype,hasOwnProperty$6=objectProto$6.hasOwnProperty;function hashHas(n){var o=this.__data__;return nativeCreate?o[n]!==void 0:hasOwnProperty$6.call(o,n)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(n,o){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=nativeCreate&&o===void 0?HASH_UNDEFINED$1:o,this}function Hash(n){var o=-1,e=n==null?0:n.length;for(this.clear();++o<e;){var t=n[o];this.set(t[0],t[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(n,o){for(var e=n.length;e--;)if(eq(n[e][0],o))return e;return-1}var arrayProto=Array.prototype,splice$1=arrayProto.splice;function listCacheDelete(n){var o=this.__data__,e=assocIndexOf(o,n);if(e<0)return!1;var t=o.length-1;return e==t?o.pop():splice$1.call(o,e,1),--this.size,!0}function listCacheGet(n){var o=this.__data__,e=assocIndexOf(o,n);return e<0?void 0:o[e][1]}function listCacheHas(n){return assocIndexOf(this.__data__,n)>-1}function listCacheSet(n,o){var e=this.__data__,t=assocIndexOf(e,n);return t<0?(++this.size,e.push([n,o])):e[t][1]=o,this}function ListCache(n){var o=-1,e=n==null?0:n.length;for(this.clear();++o<e;){var t=n[o];this.set(t[0],t[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$2=getNative(root$4,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function getMapData(n,o){var e=n.__data__;return isKeyable(o)?e[typeof o=="string"?"string":"hash"]:e.map}function mapCacheDelete(n){var o=getMapData(this,n).delete(n);return this.size-=o?1:0,o}function mapCacheGet(n){return getMapData(this,n).get(n)}function mapCacheHas(n){return getMapData(this,n).has(n)}function mapCacheSet(n,o){var e=getMapData(this,n),t=e.size;return e.set(n,o),this.size+=e.size==t?0:1,this}function MapCache(n){var o=-1,e=n==null?0:n.length;for(this.clear();++o<e;){var t=n[o];this.set(t[0],t[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$1="Expected a function";function memoize(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var e=function(){var t=arguments,c=o?o.apply(this,t):t[0],p=e.cache;if(p.has(c))return p.get(c);var h=n.apply(this,t);return e.cache=p.set(c,h)||p,h};return e.cache=new(memoize.Cache||MapCache),e}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(n){var o=memoize(n,function(t){return e.size===MAX_MEMOIZE_SIZE&&e.clear(),t}),e=o.cache;return o}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(rePropName,function(e,t,c,p){o.push(c?p.replace(reEscapeChar,"$1"):t||e)}),o});function toString$2(n){return n==null?"":baseToString(n)}function castPath(n,o){return isArray(n)?n:isKey(n,o)?[n]:stringToPath(toString$2(n))}function toKey(n){if(typeof n=="string"||isSymbol(n))return n;var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function baseGet(n,o){o=castPath(o,n);for(var e=0,t=o.length;n!=null&&e<t;)n=n[toKey(o[e++])];return e&&e==t?n:void 0}function get$1(n,o,e){var t=n==null?void 0:baseGet(n,o);return t===void 0?e:t}function arrayPush(n,o){for(var e=-1,t=o.length,c=n.length;++e<t;)n[c+e]=o[e];return n}var spreadableSymbol=Symbol$1?Symbol$1.isConcatSpreadable:void 0;function isFlattenable(n){return isArray(n)||isArguments(n)||!!(spreadableSymbol&&n&&n[spreadableSymbol])}function baseFlatten(n,o,e,t,c){var p=-1,h=n.length;for(e||(e=isFlattenable),c||(c=[]);++p<h;){var y=n[p];e(y)?arrayPush(c,y):c[c.length]=y}return c}function flatten(n){var o=n==null?0:n.length;return o?baseFlatten(n):[]}function flatRest(n){return setToString(overRest(n,void 0,flatten),n+"")}var getPrototype=overArg(Object.getPrototypeOf,Object),objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$5=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$5=objectProto$5.hasOwnProperty,objectCtorStr
18ing$1=funcToString.call(Object);function isPlainObject$2(n){if(!isObjectLike(n)||baseGetTag(n)!=objectTag$3)return!1;var o=getPrototype(n);if(o===null)return!0;var e=hasOwnProperty$5.call(o,"constructor")&&o.constructor;return typeof e=="function"&&e instanceof e&&funcToString.call(e)==objectCtorString$1}const isPlainObject$3=Object.freeze(Object.defineProperty({__proto__:null,default:isPlainObject$2},Symbol.toStringTag,{value:"Module"}));var FUNC_ERROR_TEXT="Expected a function";function before(n,o){var e;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){return--n>0&&(e=o.apply(this,arguments)),n<=1&&(o=void 0),e}}function baseSlice(n,o,e){var t=-1,c=n.length;o<0&&(o=-o>c?0:c+o),e=e>c?c:e,e<0&&(e+=c),c=o>e?0:e-o>>>0,o>>>=0;for(var p=Array(c);++t<c;)p[t]=n[t+o];return p}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(n){var o=this.__data__,e=o.delete(n);return this.size=o.size,e}function stackGet(n){return this.__data__.get(n)}function stackHas(n){return this.__data__.has(n)}var LARGE_ARRAY_SIZE=200;function stackSet(n,o){var e=this.__data__;if(e instanceof ListCache){var t=e.__data__;if(!Map$2||t.length<LARGE_ARRAY_SIZE-1)return t.push([n,o]),this.size=++e.size,this;e=this.__data__=new MapCache(t)}return e.set(n,o),this.size=e.size,this}function Stack(n){var o=this.__data__=new ListCache(n);this.size=o.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(n,o){return n&©Object(o,keys$1(o),n)}function baseAssignIn(n,o){return n&©Object(o,keysIn(o),n)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$2=moduleExports?root$4.Buffer:void 0,allocUnsafe=Buffer$2?Buffer$2.allocUnsafe:void 0;function cloneBuffer(n,o){if(o)return n.slice();var e=n.length,t=allocUnsafe?allocUnsafe(e):new n.constructor(e);return n.copy(t),t}function arrayFilter(n,o){for(var e=-1,t=n==null?0:n.length,c=0,p=[];++e<t;){var h=n[e];o(h,e,n)&&(p[c++]=h)}return p}function stubArray(){return[]}var objectProto$4=Object.prototype,propertyIsEnumerable=objectProto$4.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(n){return n==null?[]:(n=Object(n),arrayFilter(nativeGetSymbols$1(n),function(o){return propertyIsEnumerable.call(n,o)}))}:stubArray;function copySymbols(n,o){return copyObject(n,getSymbols(n),o)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(n){for(var o=[];n;)arrayPush(o,getSymbols(n)),n=getPrototype(n);return o}:stubArray;function copySymbolsIn(n,o){return copyObject(n,getSymbolsIn(n),o)}function baseGetAllKeys(n,o,e){var t=o(n);return isArray(n)?t:arrayPush(t,e(n))}function getAllKeys(n){return baseGetAllKeys(n,keys$1,getSymbols)}function getAllKeysIn(n){return baseGetAllKeys(n,keysIn,getSymbolsIn)}var DataView$1=getNative(root$4,"DataView"),Promise$1=getNative(root$4,"Promise"),Set$1=getNative(root$4,"Set"),mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$2&&getTag(new Map$2)!=mapTag$4||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(n){var o=baseGetTag(n),e=o==objectTag$2?n.constructor:void 0,t=e?toSource(e):"";if(t)switch(t){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return o}
vendor: 4,442 bytes, line 18
18);var objectProto$3=Object.prototype,hasOwnProperty$4=objectProto$3.hasOwnProperty;function initCloneArray(n){var o=n.length,e=new n.constructor(o);return o&&typeof n[0]=="string"&&hasOwnProperty$4.call(n,"index")&&(e.index=n.index,e.input=n.input),e}var Uint8Array$1=root$4.Uint8Array;function cloneArrayBuffer(n){var o=new n.constructor(n.byteLength);return new Uint8Array$1(o).set(new Uint8Array$1(n)),o}function cloneDataView(n,o){var e=o?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}var reFlags=/\w*$/;function cloneRegExp(n){var o=new n.constructor(n.source,reFlags.exec(n));return o.lastIndex=n.lastIndex,o}var symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(n){return symbolValueOf$1?Object(symbolValueOf$1.call(n)):{}}function cloneTypedArray(n,o){var e=o?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(n,o,e){var t=n.constructor;switch(o){case arrayBufferTag$2:return cloneArrayBuffer(n);case boolTag$2:case dateTag$2:return new t(+n);case dataViewTag$2:return cloneDataView(n,e);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(n,e);case mapTag$3:return new t;case numberTag$2:case stringTag$2:return new t(n);case regexpTag$2:return cloneRegExp(n);case setTag$3:return new t;case symbolTag$2:return cloneSymbol(n)}}function initCloneObject(n){return typeof n.constructor=="function"&&!isPrototype(n)?baseCreate(getPrototype(n)):{}}var mapTag$2="[object Map]";function baseIsMap(n){return isObjectLike(n)&&getTag(n)==mapTag$2}var nodeIsMap=nodeUtil&&nodeUtil.isMap,isMap$1=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,setTag$2="[object Set]";function baseIsSet(n){return isObjectLike(n)&&getTag(n)==setTag$2}var nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(n,o,e,t,c,p){var h,y=o&CLONE_DEEP_FLAG$2,g=o&CLONE_FLAT_FLAG$1,$=o&CLONE_SYMBOLS_FLAG$2;if(e&&(h=c?e(n,t,c,p):e(n)),h!==void 0)return h;if(!isObject$1(n))return n;var E=isArray(n);if(E){if(h=initCloneArray(n),!y)return copyArray(n,h)}
vendor: 4,932 bytes, line 18
18else{var A=getTag(n),N=A==funcTag||A==genTag;if(isBuffer(n))return cloneBuffer(n,y);if(A==objectTag$1||A==argsTag$1||N&&!c){if(h=g||N?{}:initCloneObject(n),!y)return g?copySymbolsIn(n,baseAssignIn(h,n)):copySymbols(n,baseAssign(h,n))}else{if(!cloneableTags[A])return c?n:{};h=initCloneByTag(n,A,y)}}p||(p=new Stack);var H=p.get(n);if(H)return H;p.set(n,h),isSet$1(n)?n.forEach(function(be){h.add(baseClone(be,o,e,be,n,p))}):isMap$1(n)&&n.forEach(function(be,we){h.set(we,baseClone(be,o,e,we,n,p))});var Z=$?g?getAllKeysIn:getAllKeys:g?keysIn:keys$1,X=E?void 0:Z(n);return arrayEach(X||n,function(be,we){X&&(we=be,be=n[we]),assignValue(h,we,baseClone(be,o,e,we,n,p))}),h}var CLONE_DEEP_FLAG$1=1,CLONE_SYMBOLS_FLAG$1=4;function cloneDeep(n){return baseClone(n,CLONE_DEEP_FLAG$1|CLONE_SYMBOLS_FLAG$1)}const cloneDeep$1=Object.freeze(Object.defineProperty({__proto__:null,default:cloneDeep},Symbol.toStringTag,{value:"Module"}));var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(n){return this.__data__.set(n,HASH_UNDEFINED),this}function setCacheHas(n){return this.__data__.has(n)}function SetCache(n){var o=-1,e=n==null?0:n.length;for(this.__data__=new MapCache;++o<e;)this.add(n[o])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(n,o){for(var e=-1,t=n==null?0:n.length;++e<t;)if(o(n[e],e,n))return!0;return!1}function cacheHas(n,o){return n.has(o)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(n,o,e,t,c,p){var h=e&COMPARE_PARTIAL_FLAG$5,y=n.length,g=o.length;if(y!=g&&!(h&&g>y))return!1;var $=p.get(n),E=p.get(o);if($&&E)return $==o&&E==n;var A=-1,N=!0,H=e&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(p.set(n,o),p.set(o,n);++A<y;){var Z=n[A],X=o[A];if(t)var be=h?t(X,Z,A,o,n,p):t(Z,X,A,n,o,p);if(be!==void 0){if(be)continue;N=!1;break}if(H){if(!arraySome(o,function(we,$e){if(!cacheHas(H,$e)&&(Z===we||c(Z,we,e,t,p)))return H.push($e)})){N=!1;break}}else if(!(Z===X||c(Z,X,e,t,p))){N=!1;break}}return p.delete(n),p.delete(o),N}function mapToArray(n){var o=-1,e=Array(n.size);return n.forEach(function(t,c){e[++o]=[c,t]}),e}function setToArray(n){var o=-1,e=Array(n.size);return n.forEach(function(t){e[++o]=t}),e}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(n,o,e,t,c,p,h){switch(e){case dataViewTag:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case arrayBufferTag:return!(n.byteLength!=o.byteLength||!p(new Uint8Array$1(n),new Uint8Array$1(o)));case boolTag:case dateTag:case numberTag:return eq(+n,+o);case errorTag:return n.name==o.name&&n.message==o.message;case regexpTag:case stringTag:return n==o+"";case mapTag:var y=mapToArray;case setTag:var g=t&COMPARE_PARTIAL_FLAG$4;if(y||(y=setToArray),n.size!=o.size&&!g)return!1;var $=h.get(n);if($)return $==o;t|=COMPARE_UNORDERED_FLAG$2,h.set(n,o);var E=equalArrays(y(n),y(o),t,c,p,h);return h.delete(n),E;case symbolTag:if(symbolValueOf)return symbolValueOf.call(n)==symbolValueOf.call(o)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function equalObjects(n,o,e,t,c,p){var h=e&COMPARE_PARTIAL_FLAG$3,y=getAllKeys(n),g=y.length,$=getAllKeys(o),E=$.length;if(g!=E&&!h)return!1;for(var A=g;A--;){var N=y[A];if(!(h?N in o:hasOwnProperty$3.call(o,N)))return!1}var H=p.get(n),Z=p.get(o);if(H&&Z)return H==o&&Z==n;var X=!0;p.set(n,o),p.set(o,n);for(var be=h;++A<g;){N=y[A];var we=n[N],$e=o[N];if(t)var Ce=h?t($e,we,N,o,n,p):t(we,$e,N,n,o,p);if(!(Ce===void 0?we===$e||c(we,$e,e,t,p):Ce)){X=!1;break}be||(be=N=="constructor")}if(X&&!be){var Ie=n.constructor,Ne=o.constructor;Ie!=Ne&&"constructor"in n&&"constructor"in o&&!(typeof Ie=="function"&&Ie instanceof Ie&&typeof Ne=="function"&&Ne instanceof Ne)&&(X=!1)}return p.delete(n),p.delete(o),X}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function baseIsEqualDeep(n,o,e,t,c,p){var h=isArray(n),y=isArray(o),g=h?arrayTag:getTag(n),$=y?arrayTag:getTag(o);g=g==argsTag?objectTag:g,$=$==argsTag?objectTag:$;var E=g==objectTag,A=$==objectTag,N=g==$;if(N&&isBuffer(n)){if(!isBuffer(o))return!1;h=!0,E=!1}if(N&&!E)return p||(p=new Stack),h||isTypedArray(n)?equalArrays(n,o,e,t,c,p):equalByTag(n,o,g,e,t,c,p);if(!(e&COMPARE_PARTIAL_FLAG$2)){var H=E&&hasOwnProperty$2.call(n,"__wrapped__"),Z=A&&hasOwnProperty$2.call(o,"__wrapped__");
18if(H||Z){var X=H?n.value():n,be=Z?o.value():o;return p||(p=new Stack),c(X,be,e,t,p)}}return N?(p||(p=new Stack),equalObjects(n,o,e,t,c,p)):!1}function baseIsEqual(n,o,e,t,c){return n===o?!0:n==null||o==null||!isObjectLike(n)&&!isObjectLike(o)?n!==n&&o!==o:baseIsEqualDeep(n,o,e,t,baseIsEqual,c)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(n,o,e,t){var c=e.length,p=c;if(n==null)return!p;for(n=Object(n);c--;){var h=e[c];if(h[2]?h[1]!==n[h[0]]:!(h[0]in n))return!1}for(;++c<p;){h=e[c];var y=h[0],g=n[y],$=h[1];if(h[2]){if(g===void 0&&!(y in n))return!1}else{var E=new Stack,A;if(!(A===void 0?baseIsEqual($,g,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,t,E):A))return!1}}return!0}function isStrictComparable(n){return n===n&&!isObject$1(n)}function getMatchData(n){for(var o=keys$1(n),e=o.length;e--;){var t=o[e],c=n[t];o[e]=[t,c,isStrictComparable(c)]}return o}function matchesStrictComparable(n,o){return function(e){return e==null?!1:e[n]===o&&(o!==void 0||n in Object(e))}}function baseMatches(n){var o=getMatchData(n);return o.length==1&&o[0][2]?matchesStrictComparable(o[0][0],o[0][1]):function(e){return e===n||baseIsMatch(e,n,o)}}function baseHasIn(n,o){return n!=null&&o in Object(n)}function hasPath(n,o,e){o=castPath(o,n);for(var t=-1,c=o.length,p=!1;++t<c;){var h=toKey(o[t]);if(!(p=n!=null&&e(n,h)))break;n=n[h]}return p||++t!=c?p:(c=n==null?0:n.length,!!c&&isLength(c)&&isIndex(h,c)&&(isArray(n)||isArguments(n)))}function hasIn(n,o){return n!=null&&hasPath(n,o,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(n,o){return isKey(n)&&isStrictComparable(o)?matchesStrictComparable(toKey(n),o):function(e){var t=get$1(e,n);return t===void 0&&t===o?hasIn(e,n):baseIsEqual(o,t,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(n){return function(o){return o?.[n]}}function basePropertyDeep(n){return function(o){return baseGet(o,n)}}function property(n){return isKey(n)?baseProperty(toKey(n)):basePropertyDeep(n)}function baseIteratee(n){return typeof n=="function"?n:n==null?identity:typeof n=="object"?isArray(n)?baseMatchesProperty(n[0],n[1]):baseMatches(n):property(n)}function arrayAggregator(n,o,e,t){for(var c=-1,p=n==null?0:n.length;++c<p;){var h=n[c];o(t,h,e(h),n)}return t}function createBaseFor(n){return function(o,e,t){for(var c=-1,p=Object(o),h=t(o),y=h.length;y--;){var g=h[++c];if(e(p[g],g,p)===!1)break}return o}}var baseFor=createBaseFor();function baseForOwn(n,o){return n&&baseFor(n,o,keys$1)}function createBaseEach(n,o){return function(e,t){if(e==null)return e;if(!isArrayLike(e))return n(e,t);for(var c=e.length,p=-1,h=Object(e);++p<c&&t(h[p],p,h)!==!1;);return e}}var baseEach=createBaseEach(baseForOwn);function baseAggregator(n,o,e,t){return baseEach(n,function(c,p,h){o(t,c,e(c),h)}),t}function createAggregator(n,o){return function(e,t){var c=isArray(e)?arrayAggregator:baseAggregator,p=o?o():{};return c(e,n,baseIteratee(t),p)}}function assignMergeValue(n,o,e){(e!==void 0&&!eq(n[o],e)||e===void 0&&!(o in n))&&baseAssignValue(n,o,e)}function isArrayLikeObject(n){return isObjectLike(n)&&isArrayLike(n)}function safeGet(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}function toPlainObject(n){return copyObject(n,keysIn(n))}function baseMergeDeep(n,o,e,t,c,p,h){var y=safeGet(n,e),g=safeGet(o,e),$=h.get(g);if($){assignMergeValue(n,e,$);return}var E=p?p(y,g,e+"",n,o,h):void 0,A=E===void 0;if(A){var N=isArray(g),H=!N&&isBuffer(g),Z=!N&&!H&&isTypedArray(g);E=g,N||H||Z?isArray(y)?E=y:isArrayLikeObject(y)?E=copyArray(y):H?(A=!1,E=cloneBuffer(g,!0)):Z?(A=!1,E=cloneTypedArray(g,!0)):E=[]:isPlainObject$2(g)||isArguments(g)?(E=y,isArguments(y)?E=toPlainObject(y):(!isObject$1(y)||isFunction$2(y))&&(E=initCloneObject(g))):A=!1}A&&(h.set(g,E),c(E,g,t,p,h),h.delete(g)),assignMergeValue(n,e,E)}function baseMerge(n,o,e,t,c){n!==o&&baseFor(o,function(p,h){if(c||(c=new Stack),isObject$1(p))baseMergeDeep(n,o,h,e,baseMerge,t,c);else{var y=t?t(safeGet(n,h),p,h+"",n,o,c):void 0;y===void 0&&(y=p),assignMergeValue(n,h,y)}},keysIn)}var mergeWith=createAssigner(function(n,o,e,t){baseMerge(n,o,e,t)});function last(n){var o=n==null?0:n.length;return o?n[o-1]:void 0}function baseMap(n,o){var e=-1,t=isArrayLike(n)?Array(n.length):[];return baseEach(n,function(c,p,h){t[++e]=o(c,p,h)}),t}var objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty,groupBy=createAggregator(function(n,o,e){hasOwnProperty$1.call(n,e)?n[e].push(o):baseAssignValue(n,e,[o])});function parent(n,o){return o.length<2?n:baseGet(n,baseSlice(o,0,-1))}function isEqual$1(n,o){return baseIsEqual(n,o)}var merge$1=createAssigner(function(n,o,e){baseMerge(n,o,e)});function baseUnset(n,o){return o=castPath(o,n),n=parent(n,o),n==null||delete n[toKey(last(o))]}function customOmitClone(n){return isPlainObject$2(n)?void 0:n}var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest(function(n,o){var e={};if(n==null)return e;var t=!1;o=arrayMap(o,function(p){return p=castPath(p,n),t||(t=p.length>1),p}),copyObject(n,getAllKeysIn(n),e),t&&(e=baseClone(e,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var c=o.length;c--;)baseUnset(e,o[c]);return e});function baseSet(n,o,e,t){if(!isObject$1(n))return n;o=castPath(o,n);for(var c=-1,p=o.length,h=p-1,y=n;y!=null&&++c<p;){var g=toKey(o[c]),$=e;if(g==="__proto__"||g==="constructor"||g==="prototype")return n;if(c!=h){var E=y[g];$=void 0,$===void 0&&($=isObject$1(E)?E:isIndex(o[c+1])?[]:{})}assignValue(y,g,$),y=y[g]}return n}function basePickBy(n,o,e){for(var t=-1,c=o.length,p={};++t<c;){var h=o[t],y=baseGet(n,h);e(y,h)&&baseSet(p,castPath(h,n),y)}return p}function once(n){return before(2,n)}function baseSortBy(n,o){var e=n.length;for(n.sort(o);e--;)n[e]=n[e].value;return n}function compareAscending(n,o){if(n!==o){var e=n!==void 0,t=n===null,c=n===n,p=isSymbol(n),h=o!==void 0,y=o===null,g=o===o,$=isSymbol(o);if(!y&&!$&&!p&&n>o||p&&h&&g&&!y&&!$||t&&h&&g||!e&&g||!c)return 1;if(!t&&!p&&!$&&n<o||$&&e&&c&&!t&&!p||y&&e&&c||!h&&c||!g)return-1}return 0}function compareMultiple(n,o,e){for(var t=-1,c=n.criteria,p=o.criteria,h=c.length,y=e.length;++t<h;){var g=compareAscending(c[t],p[t]);if(g){if(t>=y)return g;var $=e[t];return g*($=="desc"?-1:1)}}return n.index-o.index}function baseOrderBy(n,o,e){o.length?o=arrayMap(o,function(p){return isArray(p)?function(h){return baseGet(h,p.length===1?p[0]:p)}:p}):o=[identity];var t=-1;o=arrayMap(o,baseUnary(baseIteratee));var c=baseMap(n,function(p,h,y){var g=arrayMap(o,function($){return $(p)});return{criteria:g,index:++t,value:p}});return baseSortBy(c,function(p,h){return compareMultiple(p,h,e)})}function basePick(n,o){return basePickBy(n,o,function(e,t){return hasIn(n,t)})}var pick$1=flatRest(function(n,o){return n==null?{}:basePick(n,o)}),nativeCeil=Math.ceil,nativeMax$1=Math.max;function baseRange(n,o,e,t){for(var c=-1,p=nativeMax$1(nativeCeil((o-n)/(e||1)),0),h=Array(p);p--;)h[++c]=n,n+=e;return h}function createRange(n){return function(o,e,t){return t&&typeof t!="number"&&isIterateeCall(o,e,t)&&(e=t=void 0),o=toFinite(o),e===void 0?(e=o,o=0):e=toFinite(e),t=t===void 0?o<e?1:-1:toFinite(t),baseRange(o,e,t)}}var range=createRange(),sortBy=baseRest(function(n,o){if(n==null)return[];var e=o.length;return e>1&&isIterateeCall(n,o[0],o[1])?o=[]:e>2&&isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),baseOrderBy(n,baseFlatten(o),[])}),nativeMax=Math.max;function unzip(n){if(!(n&&n.length))return[];var o=0;return n=arrayFilter(n,function(e){if(isArrayLikeObject(e))return o=nativeMax(e.length,o),!0}),baseTimes(o,function(e){return arrayMap(n,baseProperty(e))})}var zip=baseRest(unzip),cuint={}
18,uint32$1={exports:{}},uint32=uint32$1.exports,hasRequiredUint32;function requireUint32(){return hasRequiredUint32||(hasRequiredUint32=1,function(n){(function(o){e(Math.pow(36,5)),e(Math.pow(16,7)),e(Math.pow(10,9)),e(Math.pow(2,30)),e(36),e(16),e(10),e(2);function e(h,y){if(!(this instanceof e))return new e(h,y);if(this._low=0,this._high=0,this.remainder=null,typeof y>"u")return c.call(this,h);if(typeof h=="string")return p.call(this,h,y);t.call(this,h,y)}function t(h,y){return this._low=h|0,this._high=y|0,this}e.prototype.fromBits=t;function c(h){return this._low=h&65535,this._high=h>>>16,this}e.prototype.fromNumber=c;function p(h,y){var g=parseInt(h,y||10);return this._low=g&65535,this._high=g>>>16,this}e.prototype.fromString=p,e.prototype.toNumber=function(){return this._high*65536+this._low},e.prototype.toString=function(h){return this.toNumber().toString(h||10)},e.prototype.add=function(h){var y=this._low+h._low,g=y>>>16;return g+=this._high+h._high,this._low=y&65535,this._high=g&65535,this},e.prototype.subtract=function(h){return this.add(h.clone().negate())},e.prototype.multiply=function(h){var y=this._high,g=this._low,$=h._high,E=h._low,A,N;return N=g*E,A=N>>>16,A+=y*E,A&=65535,A+=g*$,this._low=N&65535,this._high=A&65535,this},e.prototype.div=function(h){if(h._low==0&&h._high==0)throw Error("division by zero");if(h._high==0&&h._low==1)return this.remainder=new e(0),this;if(h.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(h))return this.remainder=new e(0),this._low=1,this._high=0,this;for(var y=h.clone(),g=-1;!this.lt(y);)y.shiftLeft(1,!0),g++;for(this.remainder=this.clone(),this._low=0,this._high=0;g>=0;g--)y.shiftRight(1),this.remainder.lt(y)||(this.remainder.subtract(y),g>=16?this._high|=1<<g-16:this._low|=1<<g);return this},e.prototype.negate=function(){var h=(~this._low&65535)+1;return this._low=h&65535,this._high=~this._high+(h>>>16)&65535,this},e.prototype.equals=e.prototype.eq=function(h){return this._low==h._low&&this._high==h._high},e.prototype.greaterThan=e.prototype.gt=function(h){return this._high>h._high?!0:this._high<h._high?!1:this._low>h._low},e.prototype.lessThan=e.prototype.lt=function(h){return this._high<h._high?!0:this._high>h._high?!1:this._low<h._low},e.prototype.or=function(h){return this._low|=h._low,this._high|=h._high,this},e.prototype.and=function(h){return this._low&=h._low,this._high&=h._high,this},e.prototype.not=function(){return this._low=~this._low&65535,this._high=~this._high&65535,this},e.prototype.xor=function(h){return this._low^=h._low,this._high^=h._high,this},e.prototype.shiftRight=e.prototype.shiftr=function(h){return h>16?(this._low=this._high>>h-16,this._high=0):h==16?(this._low=this._high,this._high=0):(this._low=this._low>>h|this._high<<16-h&65535,this._high>>=h),this},e.prototype.shiftLeft=e.prototype.shiftl=function(h,y){return h>16?(this._high=this._low<<h-16,this._low=0,y||(this._high&=65535)):h==16?(this._high=this._low,this._low=0):(this._high=this._high<<h|this._low>>16-h,this._low=this._low<<h&65535,y||(this._high&=65535)),this},e.prototype.rotateLeft=e.prototype.rotl=function(h){var y=this._high<<16|this._low;return y=y<<h|y>>>32-h,this._low=y&65535,this._high=y>>>16,this},e.prototype.rotateRight=e.prototype.rotr=function(h){var y=this._high<<16|this._low;return y=y>>>h|y<<32-h,this._low=y&65535,this._high=y>>>16,this},e.prototype.clone=function(){return new e(this._low,this._high)},n.exports?n.exports=e:o.UINT32=e})(uint32)}(uint32$1)),uint32$1.exports}var uint64$1={exports:{}},uint64=uint64$1.exports,hasRequiredUint64;function requireUint64(){return hasRequiredUint64||(hasRequiredUint64=1,function(n){(function(o){var e={16:c(Math.pow(16,5)),10:c(Math.pow(10,5)),2:c(Math.pow(2,5))},t={16:c(16),10:c(10),2:c(2)};function c(g,$,E,A){if(!(this instanceof c))return new c(g,$,E,A);if(this.remainder=null,typeof g=="string")return y.call(this,g,$);if(typeof $>"u")return h.call(this,g);p.apply(this,arguments)}function p(g,$,E,A){return typeof E>"u"?(this._a00=g&65535,this._a16=g>>>16,this._a32=$&65535,this._a48=$>>>16,this):(this._a00=g|0,this._a16=$|0,this._a32=E|0,this._a48=A|0,this)}c.prototype.fromBits=p;function h(g){return this._a00=g&65535,this._a16=g>>>16,this._a32=0,this._a48=0,this}c.prototype.fromNumber=h;function y(g,$){$=$||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var E=e[$]||new c(Math.pow($,5)),A=0,N=g.length;A<N;A+=5){var H=Math.min(5,N-A),Z=parseInt(g.slice(A,A+H),$);this.multiply(H<5?new c(Math.pow($,H)):E).add(new c(Z))}return this}c.prototype.fromString=y,c.prototype.toNumber=function(){return this._a16*65536+this._a00},c.prototype.toString=function(g){g=g||10;var $=t[g]||new c(g);if(!this.gt($))return this.toNumber().toString(g);for(var E=this.clone(),A=new Array(64),N=63;N>=0&&(E.div($),A[N]=E.remainder.toNumber().toString(g),!!E.gt($));N--);return A[N-1]=E.toNumber().toString(g),A.join("")},c.prototype.add=function(g){var $=this._a00+g._a00,E=$>>>16;E+=this._a16+g._a16;var A=E>>>16;A+=this._a32+g._a32;var N=A>>>16;return N+=this._a48+g._a48,this._a00=$&65535,this._a16=E&65535,this._a32=A&65535,this._a48=N&65535,this},c.prototype.subtract=function(g){return this.add(g.clone().negate())},c.prototype.multiply=function(g){var $=this._a00,E=this._a16,A=this._a32,N=this._a48,H=g._a00,Z=g._a16,X=g._a32,be=g._a48,we=$*H,$e=we>>>16;$e+=$*Z;var Ce=$e>>>16;$e&=65535,$e+=E*H,Ce+=$e>>>16,Ce+=$*X;var Ie=Ce>>>16;return Ce&=65535,Ce+=E*Z,Ie+=Ce>>>16,Ce&=65535,Ce+=A*H,Ie+=Ce>>>16,Ie+=$*be,Ie&=65535,Ie+=E*X,Ie&=65535,Ie+=A*Z,Ie&=65535,Ie+=N*H,this._a00=we&65535,this._a16=$e&65535,this._a32=Ce&65535,this._a48=Ie&65535,this},c.prototype.div=function(g){if(g._a16==0&&g._a32==0&&g._a48==0){if(g._a00==0)throw Error("division by zero");if(g._a00==1)return this.remainder=new c(0),this}if(g.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(g))return this.remainder=new c(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var $=g.clone(),E=-1;!this.lt($);)$.shiftLeft(1,!0),E++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;E>=0;E--)$.shiftRight(1),this.remainder.lt($)||(this.remainder.subtract($),E>=48?this._a48|=1<<E-48:E>=32?this._a32|=1<<E-32:E>=16?this._a16|=1<<E-16:this._a00|=1<<E);return this},c.prototype.negate=function(){var g=(~this._a00&65535)+1;return this._a00=g&65535,g=(~this._a16&65535)+(g>>>16),this._a16=g&65535,g=(~this._a32&65535)+(g>>>16),this._a32=g&65535,this._a48=~this._a48+(g>>>16)&65535,this},c.prototype.equals=c.prototype.eq=function(g){return this._a48==g._a48&&this._a00==g._a00&&this._a32==g._a32&&this._a16==g._a16},c.prototype.greaterThan=c.prototype.gt=function(g){return this._a48>g._a48?!0:this._a48<g._a48?!1:this._a32>g._a32?!0:this._a32<g._a32?!1:this._a16>g._a16?!0:this._a16<g._a16?!1:this._a00>g._a00},c.prototype.lessThan=c.prototype.lt=function(g){return this._a48<g._a48?!0:this._a48>g._a48?!1:this._a32<g._a32?!0:this._a32>g._a32?!1:this._a16<g._a16?!0:this._a16>g._a16?!1:this._a00<g._a00},c.prototype.or=function(g){return this._a00|=g._a00,this._a16|=g._a16,this._a32|=g._a32,this._a48|=g._a48,this},c.prototype.and=function(g){return this._a00&=g._a00,this._a16&=g._a16,this._a32&=g._a32,this._a48&=g._a48,this},c.prototype.xor=function(g){return this._a00^=g._a00,this._a16^=g._a16,this._a32^=g._a32,this._a48^=g._a48,this},c.prototype.not=function(){return this._a00=~this._a00&65535,this._a16=~this._a16&65535,this._a32=~this._a32&65535,this._a48=~this._a48&65535,this},c.prototype.shiftRight=c.prototype.shiftr=function(g){return g%=64,g>=48?(this._a00=this._a48>>g-48,this._a16=0,this._a32=0,this._a48=0):g>=32?(g-=32,this._a00=(this._a32>>g|this._a48<<16-g)&65535,this._a16=this._a48>>g&65535,this._a32=0,this._a48=0):g>=16?(g-=16,this._a00=(this._a16>>g|this._a32<<16-g)&65535,this._a16=(this._a32>>g|this._a48<<16-g)&65535,this._a32=this._a48>>g&65535,this._a48=0):(this._a00=(this._a00>>g|this._a16<<16-g)&65535,this._a16=(this._a16>>g|this._a32<<16-g)&65535,this._a32=(this._a32>>g|this._a48<<16-g)&65535,this._a48=this._a48>>g&65535),this},c.prototype.shiftLeft=c.prototype.shiftl=function(g,$){return g%=64,g>=48?(this._a48=this._a00<<g-48,this._a32=0,this._a16=0,this._a00=0):g>=32?(g-=32,this._a48=this._a16<<g|this._a00>>16-g,this._a32=this._a00<<g&65535,this._a16=0,this._a00=0):g>=16?(g-=16,this._a48=this._a32<<g|this._a16>>16-g,this._a32=(this._a16<<g|this._a00>>16-g)&65535,this._a16=this._a00<<g&65535,this._a00=0):(this._a48=this._a48<<g|this._a32>>16-g,this._a32=(this._a32<<g|this._a16>>16-g)&65535,this._a16=(this._a16<<g|this._a00>>16-g)&65535,this._a00=this._a00<<g&65535),$||(this._a48&=65535),this},c.prototype.rotateLeft=c.prototype.rotl=function(g){if(g%=64,g==0)return this;if(g>=32){var $=this._a00;if(this._a00=this._a32,this._a32=$,$=this._a48,this._a48=this._a16,this._a16=$,g==32)return this;g-=32}var E=this._a48<<16|this._a32,A=this._a16<<16|this._a00,N=E<<g|A>>>32-g,H=A<<g|E>>>32-g;return this._a00=H&65535,this._a16=H>>>16,this._a32=N&65535,this._a48=N>>>16,this},c.prototype.rotateRight=c.prototype.rotr=function(g){if(g%=64,g==0)return this;if(g>=32){var $=this._a00;if(this._a00=this._a32,this._a32=$,$=this._a48,this._a48=this._a16,this._a16=$,g==32)return this;g-=32}var E=this._a48<<16|this._a32,A=this._a16<<16|this._a00,N=E>>>g|A<<32-g,H=A>>>g|E<<32-g;return this._a00=H&65535,this._a16=H>>>16,this._a32=N&65535,this._a48=N>>>16,this},c.prototype.clone=function(){return new c(this._a00,this._a16,this._a32,this._a48)},n.exports?n.exports=c:o.UINT64=c})(uint64)}(uint64$1)),uint64$1.exports}var hasRequiredCuint;function requireCuint(){return hasRequiredCuint||(hasRequiredCuint=1,cuint.UINT32=requireUint32(),cuint.UINT64=requireUint64()),cuint}var xxhash$1,hasRequiredXxhash;
18function requireXxhash(){if(hasRequiredXxhash)return xxhash$1;hasRequiredXxhash=1;var n=requireCuint().UINT32;n.prototype.xxh_update=function($,E){var A=e._low,N=e._high,H,Z;Z=$*A,H=Z>>>16,H+=E*A,H&=65535,H+=$*N;var X=this._low+(Z&65535),be=X>>>16;be+=this._high+(H&65535);var we=be<<16|X&65535;we=we<<13|we>>>19,X=we&65535,be=we>>>16,A=o._low,N=o._high,Z=X*A,H=Z>>>16,H+=be*A,H&=65535,H+=X*N,this._low=Z&65535,this._high=H&65535};var o=n("2654435761"),e=n("2246822519"),t=n("3266489917"),c=n("668265263"),p=n("374761393");function h($){for(var E=[],A=0,N=$.length;A<N;A++){var H=$.charCodeAt(A);H<128?E.push(H):H<2048?E.push(192|H>>6,128|H&63):H<55296||H>=57344?E.push(224|H>>12,128|H>>6&63,128|H&63):(A++,H=65536+((H&1023)<<10|$.charCodeAt(A)&1023),E.push(240|H>>18,128|H>>12&63,128|H>>6&63,128|H&63))}return new Uint8Array(E)}function y(){if(arguments.length==2)return new y(arguments[1]).update(arguments[0]).digest();if(!(this instanceof y))return new y(arguments[0]);g.call(this,arguments[0])}function g($){return this.seed=$ instanceof n?$.clone():n($),this.v1=this.seed.clone().add(o).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(o),this.total_len=0,this.memsize=0,this.memory=null,this}return y.prototype.init=g,y.prototype.update=function($){var E=typeof $=="string",A;E&&($=h($),E=!1,A=!0),typeof ArrayBuffer<"u"&&$ instanceof ArrayBuffer&&(A=!0,$=new Uint8Array($));var N=0,H=$.length,Z=N+H;if(H==0)return this;if(this.total_len+=H,this.memsize==0&&(E?this.memory="":A?this.memory=new Uint8Array(16):this.memory=new Buffer(16)),this.memsize+H<16)return E?this.memory+=$:A?this.memory.set($.subarray(0,H),this.memsize):$.copy(this.memory,this.memsize,0,H),this.memsize+=H,this;if(this.memsize>0){E?this.memory+=$.slice(0,16-this.memsize):A?this.memory.set($.subarray(0,16-this.memsize),this.memsize):$.copy(this.memory,this.memsize,0,16-this.memsize);var X=0;E?(this.v1.xxh_update(this.memory.charCodeAt(X+1)<<8|this.memory.charCodeAt(X),this.memory.charCodeAt(X+3)<<8|this.memory.charCodeAt(X+2)),X+=4,this.v2.xxh_update(this.memory.charCodeAt(X+1)<<8|this.memory.charCodeAt(X),this.memory.charCodeAt(X+3)<<8|this.memory.charCodeAt(X+2)),X+=4,this.v3.xxh_update(this.memory.charCodeAt(X+1)<<8|this.memory.charCodeAt(X),this.memory.charCodeAt(X+3)<<8|this.memory.charCodeAt(X+2)),X+=4,this.v4.xxh_update(this.memory.charCodeAt(X+1)<<8|this.memory.charCodeAt(X),this.memory.charCodeAt(X+3)<<8|this.memory.charCodeAt(X+2))):(this.v1.xxh_update(this.memory[X+1]<<8|this.memory[X],this.memory[X+3]<<8|this.memory[X+2]),X+=4,this.v2.xxh_update(this.memory[X+1]<<8|this.memory[X],this.memory[X+3]<<8|this.memory[X+2]),X+=4,this.v3.xxh_update(this.memory[X+1]<<8|this.memory[X],this.memory[X+3]<<8|this.memory[X+2]),X+=4,this.v4.xxh_update(this.memory[X+1]<<8|this.memory[X],this.memory[X+3]<<8|this.memory[X+2])),N+=16-this.memsize,this.memsize=0,E&&(this.memory="")}if(N<=Z-16){var be=Z-16;do E?(this.v1.xxh_update($.charCodeAt(N+1)<<8|$.charCodeAt(N),$.charCodeAt(N+3)<<8|$.charCodeAt(N+2)),N+=4,this.v2.xxh_update($.charCodeAt(N+1)<<8|$.charCodeAt(N),$.charCodeAt(N+3)<<8|$.charCodeAt(N+2)),N+=4,this.v3.xxh_update($.charCodeAt(N+1)<<8|$.charCodeAt(N),$.charCodeAt(N+3)<<8|$.charCodeAt(N+2)),N+=4,this.v4.xxh_update($.charCodeAt(N+1)<<8|$.charCodeAt(N),$.charCodeAt(N+3)<<8|$.charCodeAt(N+2))):(this.v1.xxh_update($[N+1]<<8|$[N],$[N+3]<<8|$[N+2]),N+=4,this.v2.xxh_update($[N+1]<<8|$[N],$[N+3]<<8|$[N+2]),N+=4,this.v3.xxh_update($[N+1]<<8|$[N],$[N+3]<<8|$[N+2]),N+=4,this.v4.xxh_update($[N+1]<<8|$[N],$[N+3]<<8|$[N+2])),N+=4;while(N<=be)}return N<Z&&(E?this.memory+=$.slice(N):A?this.memory.set($.subarray(N,Z),this.memsize):$.copy(this.memory,this.memsize,N,Z),this.memsize=Z-N),this},y.prototype.digest=function(){var $=this.memory,E=typeof $=="string",A=0,N=this.memsize,H,Z,X=new n;for(this.total_len>=16?H=this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):H=this.seed.clone().add(p),H.add(X.fromNumber(this.total_len));A<=N-4;)E?X.fromBits($.charCodeAt(A+1)<<8|$.charCodeAt(A),$.charCodeAt(A+3)<<8|$.charCodeAt(A+2)):X.fromBits($[A+1]<<8|$[A],$[A+3]<<8|$[A+2]),H.add(X.multiply(t)).rotl(17).multiply(c),A+=4;for(;A<N;
18)X.fromBits(E?$.charCodeAt(A++):$[A++],0),H.add(X.multiply(p)).rotl(11).multiply(o);return Z=H.clone().shiftRight(15),H.xor(Z).multiply(e),Z=H.clone().shiftRight(13),H.xor(Z).multiply(t),Z=H.clone().shiftRight(16),H.xor(Z),this.init(this.seed),H},xxhash$1=y,xxhash$1}var xxhash64,hasRequiredXxhash64;function requireXxhash64(){if(hasRequiredXxhash64)return xxhash64;hasRequiredXxhash64=1;var n=requireCuint().UINT64,o=n("11400714785074694791"),e=n("14029467366897019727"),t=n("1609587929392839161"),c=n("9650029242287828579"),p=n("2870177450012600261");function h($){for(var E=[],A=0,N=$.length;A<N;A++){var H=$.charCodeAt(A);H<128?E.push(H):H<2048?E.push(192|H>>6,128|H&63):H<55296||H>=57344?E.push(224|H>>12,128|H>>6&63,128|H&63):(A++,H=65536+((H&1023)<<10|$.charCodeAt(A)&1023),E.push(240|H>>18,128|H>>12&63,128|H>>6&63,128|H&63))}return new Uint8Array(E)}function y(){if(arguments.length==2)return new y(arguments[1]).update(arguments[0]).digest();if(!(this instanceof y))return new y(arguments[0]);g.call(this,arguments[0])}function g($){return this.seed=$ instanceof n?$.clone():n($),this.v1=this.seed.clone().add(o).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(o),this.total_len=0,this.memsize=0,this.memory=null,this}return y.prototype.init=g,y.prototype.update=function($){var E=typeof $=="string",A;E&&($=h($),E=!1,A=!0),typeof ArrayBuffer<"u"&&$ instanceof ArrayBuffer&&(A=!0,$=new Uint8Array($));var N=0,H=$.length,Z=N+H;if(H==0)return this;if(this.total_len+=H,this.memsize==0&&(E?this.memory="":A?this.memory=new Uint8Array(32):this.memory=new Buffer(32)),this.memsize+H<32)return E?this.memory+=$:A?this.memory.set($.subarray(0,H),this.memsize):$.copy(this.memory,this.memsize,0,H),this.memsize+=H,this;if(this.memsize>0){E?this.memory+=$.slice(0,32-this.memsize):A?this.memory.set($.subarray(0,32-this.memsize),this.memsize):$.copy(this.memory,this.memsize,0,32-this.memsize);var X=0;if(E){var be;be=n(this.memory.charCodeAt(X+1)<<8|this.memory.charCodeAt(X),this.memory.charCodeAt(X+3)<<8|this.memory.charCodeAt(X+2),this.memory.charCodeAt(X+5)<<8|this.memory.charCodeAt(X+4),this.memory.charCodeAt(X+7)<<8|this.memory.charCodeAt(X+6)),this.v1.add(be.multiply(e)).rotl(31).multiply(o),X+=8,be=n(this.memory.charCodeAt(X+1)<<8|this.memory.charCodeAt(X),this.memory.charCodeAt(X+3)<<8|this.memory.charCodeAt(X+2),this.memory.charCodeAt(X+5)<<8|this.memory.charCodeAt(X+4),this.memory.charCodeAt(X+7)<<8|this.memory.charCodeAt(X+6)),this.v2.add(be.multiply(e)).rotl(31).multiply(o),X+=8,be=n(this.memory.charCodeAt(X+1)<<8|this.memory.charCodeAt(X),this.memory.charCodeAt(X+3)<<8|this.memory.charCodeAt(X+2),this.memory.charCodeAt(X+5)<<8|this.memory.charCodeAt(X+4),this.memory.charCodeAt(X+7)<<8|this.memory.charCodeAt(X+6)),this.v3.add(be.multiply(e)).rotl(31).multiply(o),X+=8,be=n(this.memory.charCodeAt(X+1)<<8|this.memory.charCodeAt(X),this.memory.charCodeAt(X+3)<<8|this.memory.charCodeAt(X+2),this.memory.charCodeAt(X+5)<<8|this.memory.charCodeAt(X+4),this.memory.charCodeAt(X+7)<<8|this.memory.charCodeAt(X+6)),this.v4.add(be.multiply(e)).rotl(31).multiply(o)}else{var be;be=n(this.memory[X+1]<<8|this.memory[X],this.memory[X+3]<<8|this.memory[X+2],this.memory[X+5]<<8|this.memory[X+4],this.memory[X+7]<<8|this.memory[X+6]),this.v1.add(be.multiply(e)).rotl(31).multiply(o),X+=8,be=n(this.memory[X+1]<<8|this.memory[X],this.memory[X+3]<<8|this.memory[X+2],this.memory[X+5]<<8|this.memory[X+4],this.memory[X+7]<<8|this.memory[X+6]),this.v2.add(be.multiply(e)).rotl(31).multiply(o),X+=8,be=n(this.memory[X+1]<<8|this.memory[X],this.memory[X+3]<<8|this.memory[X+2],this.memory[X+5]<<8|this.memory[X+4],this.memory[X+7]<<8|this.memory[X+6]),this.v3.add(be.multiply(e)).rotl(31).multiply(o),X+=8,be=n(this.memory[X+1]<<8|this.memory[X],this.memory[X+3]<<8|this.memory[X+2],this.memory[X+5]<<8|this.memory[X+4],this.memory[X+7]<<8|this.memory[X+6]),this.v4.add(be.multiply(e)).rotl(31).multiply(o)}N+=32-this.memsize,this.memsize=0,E&&(this.memory="")}if(N<=Z-32){var we=Z-32;do{if(E){var be;be=n($.charCodeAt(N+1)<<8|$.charCodeAt(N),$.charCodeAt(N+3)<<8|$.charCodeAt(N+2),$.charCodeAt(N+5)<<8|$.charCodeAt(N+4),$.charCodeAt(N+7)<<8|$.charCodeAt(N+6)),this.v1.add(be.multiply(e)).rotl(31).multiply(o),N+=8,be=n($.charCodeAt(N+1)<<8|$.charCodeAt(N),$.charCodeAt(N+3)<<8|$.charCodeAt(N+2),$.charCodeAt(N+5)<<8|$.charCodeAt(N+4),$.charCodeAt(N+7)<<8|$.charCodeAt(N+6)),this.v2.add(be.multiply(e)).rotl(31).multiply(o),N+=8,be=n($.charCodeAt(N+1)<<8|$.charCodeAt(N),$.charCodeAt(N+3)<<8|$.charCodeAt(N+2),$.charCodeAt(N+5)<<8|$.charCodeAt(N+4),$.charCodeAt(N+7)<<8|$.charCodeAt(N+6)),this.v3.add(be.multiply(e)).rotl(31).multiply(o),N+=8,be=n($.charCodeAt(N+1)<<8|$.charCodeAt(N),$.charCodeAt(N+3)<<8|$.charCodeAt(N+2),$.charCodeAt(N+5)<<8|$.charCodeAt(N+4),$.charCodeAt(N+7)<<8|$.charCodeAt(N+6)),this.v4.add(be.multiply(e)).rotl(31).multiply(o)}else{var be;
18be=n($[N+1]<<8|$[N],$[N+3]<<8|$[N+2],$[N+5]<<8|$[N+4],$[N+7]<<8|$[N+6]),this.v1.add(be.multiply(e)).rotl(31).multiply(o),N+=8,be=n($[N+1]<<8|$[N],$[N+3]<<8|$[N+2],$[N+5]<<8|$[N+4],$[N+7]<<8|$[N+6]),this.v2.add(be.multiply(e)).rotl(31).multiply(o),N+=8,be=n($[N+1]<<8|$[N],$[N+3]<<8|$[N+2],$[N+5]<<8|$[N+4],$[N+7]<<8|$[N+6]),this.v3.add(be.multiply(e)).rotl(31).multiply(o),N+=8,be=n($[N+1]<<8|$[N],$[N+3]<<8|$[N+2],$[N+5]<<8|$[N+4],$[N+7]<<8|$[N+6]),this.v4.add(be.multiply(e)).rotl(31).multiply(o)}N+=8}while(N<=we)}return N<Z&&(E?this.memory+=$.slice(N):A?this.memory.set($.subarray(N,Z),this.memsize):$.copy(this.memory,this.memsize,N,Z),this.memsize=Z-N),this},y.prototype.digest=function(){var $=this.memory,E=typeof $=="string",A=0,N=this.memsize,H,Z,X=new n;for(this.total_len>=32?(H=this.v1.clone().rotl(1),H.add(this.v2.clone().rotl(7)),H.add(this.v3.clone().rotl(12)),H.add(this.v4.clone().rotl(18)),H.xor(this.v1.multiply(e).rotl(31).multiply(o)),H.multiply(o).add(c),H.xor(this.v2.multiply(e).rotl(31).multiply(o)),H.multiply(o).add(c),H.xor(this.v3.multiply(e).rotl(31).multiply(o)),H.multiply(o).add(c),H.xor(this.v4.multiply(e).rotl(31).multiply(o)),H.multiply(o).add(c)):H=this.seed.clone().add(p),H.add(X.fromNumber(this.total_len));A<=N-8;)E?X.fromBits($.charCodeAt(A+1)<<8|$.charCodeAt(A),$.charCodeAt(A+3)<<8|$.charCodeAt(A+2),$.charCodeAt(A+5)<<8|$.charCodeAt(A+4),$.charCodeAt(A+7)<<8|$.charCodeAt(A+6)):X.fromBits($[A+1]<<8|$[A],$[A+3]<<8|$[A+2],$[A+5]<<8|$[A+4],$[A+7]<<8|$[A+6]),X.multiply(e).rotl(31).multiply(o),H.xor(X).rotl(27).multiply(o).add(c),A+=8;for(A+4<=N&&(E?X.fromBits($.charCodeAt(A+1)<<8|$.charCodeAt(A),$.charCodeAt(A+3)<<8|$.charCodeAt(A+2),0,0):X.fromBits($[A+1]<<8|$[A],$[A+3]<<8|$[A+2],0,0),H.xor(X.multiply(o)).rotl(23).multiply(e).add(t),A+=4);A<N;)X.fromBits(E?$.charCodeAt(A++):$[A++],0,0,0),H.xor(X.multiply(p)).rotl(11).multiply(o);return Z=H.clone().shiftRight(33),H.xor(Z).multiply(e),Z=H.clone().shiftRight(29),H.xor(Z).multiply(t),Z=H.clone().shiftRight(32),H.xor(Z),this.init(this.seed),H},xxhash64=y,xxhash64}var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={h32:requireXxhash(),h64:requireXxhash64()}),lib}var libExports=requireLib();const xxhash=getDefaultExportFromCjs(libExports),assertNever=n=>{throw new Error(`Reached a branch with non-exhaustive item: ${n}`)},GENERATED_ELEMENT_ID_PREFIX="$$ID";function debounce$2(n,o){let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout(()=>{o(...t),e=null},n)}}const EMBED_QUERY_PARAM_KEY="embed",EMBED_OPTIONS_QUERY_PARAM_KEY="embed_options",EMBED_SHOW_TOOLBAR="show_toolbar",EMBED_SHOW_PADDING="show_padding",EMBED_DISABLE_SCROLLING="disable_scrolling",EMBED_LIGHT_THEME="light_theme",EMBED_DARK_THEME="dark_theme",EMBED_TRUE="true",EMBED_HIDE_LOADING_SCREEN="hide_loading_screen",EMBED_SHOW_LOADING_SCREEN_V1="show_loading_screen_v1",EMBED_SHOW_LOADING_SCREEN_V2="show_loading_screen_v2",EMBED_QUERY_PARAM_VALUES=[EMBED_SHOW_TOOLBAR,EMBED_SHOW_PADDING,EMBED_DISABLE_SCROLLING,EMBED_LIGHT_THEME,EMBED_DARK_THEME,EMBED_HIDE_LOADING_SCREEN,EMBED_SHOW_LOADING_SCREEN_V1,EMBED_SHOW_LOADING_SCREEN_V2,EMBED_TRUE];var LoadingScreenType=function(n){return n[n.NONE=0]="NONE",n[n.V1=1]="V1",n[n.V2=2]="V2",n}({});function getEmbedUrlParams(n){const o=new Set;return new URLSearchParams(window.location.search).forEach((t,c)=>{c=c.toString().toLowerCase(),t=t.toString().toLowerCase(),c===n&&EMBED_QUERY_PARAM_VALUES.includes(t)&&o.add(t)}),o}function preserveEmbedQueryParams(){if(!isEmbed())return"";const n=new URLSearchParams(window.location.search).getAll(EMBED_OPTIONS_QUERY_PARAM_KEY),o=[];return o.push([EMBED_QUERY_PARAM_KEY,EMBED_TRUE]),n.forEach(e=>{o.push([EMBED_OPTIONS_QUERY_PARAM_KEY,e])}),new URLSearchParams(o).toString()}function getQueryString(n,o){return n!==void 0?o?n?`${o}&${n}`:o:n:o}function isEmbed(){return getEmbedUrlParams(EMBED_QUERY_PARAM_KEY).has(EMBED_TRUE)}function isToolbarDisplayed(){return isEmbed()&&getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_SHOW_TOOLBAR)}function isScrollingHidden(){return isEmbed()&&getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_DISABLE_SCROLLING)}function isPaddingDisplayed(){return isEmbed()&&getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_SHOW_PADDING)}function isLightThemeInQueryParams(){return getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_LIGHT_THEME)}function isDarkThemeInQueryParams(){return getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_DARK_THEME)}function isInChildFrame(){return window.parent!==window}function getUrl(){let n;try{isInChildFrame()&&window.top?n=window.top.location.href:n=document.location.href}catch{n=document.location.href}const o=new URL(n);return o.search="",o.hash="",o.toString()}function getScreencastTimestamp(){const n=new Date,o=n.getFullYear(),e=String(n.getMonth()+1).padStart(2,"0"),t=String(n.getDate()).padStart(2,"0"),c=String(n.getHours()).padStart(2,"0"),p=String(n.getMinutes()).padStart(2,"0"),h=String(n.getSeconds()).padStart(2,"0");return`${o}-${e}-${t}-${c}-${p}-${h}`}function getTimezone$1(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function getTimezoneOffset(){return new Date().getTimezoneOffset()}function getLocaleLanguage(){return navigator.language}function getLoadingScreenType(){const n=getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY);return n.has(EMBED_HIDE_LOADING_SCREEN)?0:n.has(EMBED_SHOW_LOADING_SCREEN_V1)?1:2}function makeElementWithInfoText(n){return new Element$1({alert:{body:n,format:Alert.Format.INFO}})}function makeElementWithErrorText(n){return new Element$1({alert:{body:n,format:Alert.Format.ERROR}})}function makeAppSkeletonElement(){return new Element$1({skeleton:{style:Skeleton$1.SkeletonStyle.APP}})}function hashString(n){return xxhash.h32(n,3735928559).toString(16)}function requireNonNull(n){if(isNullOrUndefined(n))throw new Error("value is null");return n}function notUndefined(n){return n!==void 0}function isFromMac(){return/Mac/i.test(navigator.platform)}function isFromWindows(){return/^Win/i.test(navigator.platform)}function setCookie(n,o,e){const t=o?e:new Date,c=t?`expires=${t.toUTCString()};`:"";document.cookie=`${n}=${o};${c}path=/`}function isValidElementId(n){return n?n.startsWith(GENERATED_ELEMENT_ID_PREFIX)&&n.split("-").length>=3:!1}function getElementId(n){const o=get$1(n,[requireNonNull(n.type),"id"]);if(o&&isValidElementId(o))return o}function isValidFormId(n){return notNullOrUndefined(n)&&n.length>0}function isInForm(n){return isValidFormId(n.formId)}function getSelectPlaceholder(n,o,e,t=!1){let c=!1;return n!==""?{placeholder:n,shouldDisable:c}:(o.length===0?e?n=t?"Add options":"Add an option":(n="No options to select",c=!0):e?n=t?"Choose or add options":"Cho
18ose or add an option":n=t?"Choose options":"Choose an option",{placeholder:n,shouldDisable:c})}var LabelVisibilityOptions=function(n){return n[n.Visible=0]="Visible",n[n.Hidden=1]="Hidden",n[n.Collapsed=2]="Collapsed",n}({});function labelVisibilityProtoValueToEnum(n){switch(n){case LabelVisibilityMessage.LabelVisibilityOptions.VISIBLE:return 0;case LabelVisibilityMessage.LabelVisibilityOptions.HIDDEN:return 1;case LabelVisibilityMessage.LabelVisibilityOptions.COLLAPSED:return 2;default:return 0}}var AcceptFileValue=function(n){return n[n.None=0]="None",n[n.Single=1]="Single",n[n.Multiple=2]="Multiple",n[n.Directory=3]="Directory",n}({});function chatInputAcceptFileProtoValueToEnum(n){switch(n){case ChatInput$1.AcceptFile.NONE:return 0;case ChatInput$1.AcceptFile.SINGLE:return 1;case ChatInput$1.AcceptFile.MULTIPLE:return 2;case ChatInput$1.AcceptFile.DIRECTORY:return 3;default:return assertNever(n),0}}function findAnIFrameWithClassName(n,o){for(let e=0;e<n.length;e++){const t=n[e].contentDocument;if(t&&t.getElementsByClassName(o).length>0)return n[e]}return null}function canAccessIFrame(n){try{if(n.contentWindow===null)return!1;const e=(n.contentDocument||n.contentWindow.document).body.innerHTML;return e!==null&&e!==""}catch{return!1}}function getIFrameEnclosingApp(n){if(!isInChildFrame())return null;const o=getEmbeddingIdClassName(n),e='iframe[title="streamlitApp"]';let t=window.document.querySelectorAll(e),c=findAnIFrameWithClassName(t,o);if(c&&!canAccessIFrame(c))return null;if(c)return c;if(window.parent&&(t=window.parent.document.querySelectorAll(e)),c=findAnIFrameWithClassName(t,o),c&&!canAccessIFrame(c))return null;if(c)return c;let p=window.document.getElementsByTagName("iframe");return c=findAnIFrameWithClassName(p,o),c&&!canAccessIFrame(c)?null:c||(window.parent&&(p=window.parent.document.getElementsByTagName("iframe")),c=findAnIFrameWithClassName(p,o),c&&!canAccessIFrame(c)?null:c)}function generateUID$2(){return Math.floor(Date.now()/1e3).toString(36)+Math.random().toString(36).slice(-6)}function getEmbeddingIdClassName(n){return`stAppEmbeddingId-${n}`}function extractPageNameFromPathName(n,o){return decodeURIComponent(n.replace(o,"").replace(new RegExp("^/?"),"").replace(new RegExp("/$"),""))}function keysToSnakeCase(n){return Object.keys(n).reduce((o,e)=>{const t=decamelize$1(e,{preserveConsecutiveUppercase:!0}).replace(".","_");let c=n[e];return c&&typeof c=="object"&&!Array.isArray(c)&&(c=keysToSnakeCase(c)),Array.isArray(c)&&(c=c.map(p=>p!==null&&typeof p=="object"?keysToSnakeCase(p):p)),o[t]=c,o},{})}const NO_SCRIPT_RUN_ID="NO_SCRIPT_RUN_ID",MAX_HASH_LENGTH=6;class DebugVisitor{constructor(o="",e=!0){this.prefix=o,this.isLast=e}visitBlockNode(o){const e=this.isLast?"âââ ":"âââ ",t=this.prefix+(this.isLast?" ":"â ");let c=`${this.prefix}${e}BlockNode [${o.children.length} children]`;return o.scriptRunId!==NO_SCRIPT_RUN_ID&&(c+=` (run: ${o.scriptRunId.substring(0,MAX_HASH_LENGTH)})`),c+=` 19`,o.children.forEach((p,h)=>{const y=h===o.children.length-1,g=new DebugVisitor(t,y);c+=p.accept(g)}),c}visitElementNode(o){const e=this.isLast?"âââ ":"âââ ";let t=`${this.prefix}${e}ElementNode [${o.element.type}]`;if(o.element.type==="text"&&o.element.text?.body){const c=o.element.text.body.length>30?`${o.element.text.body.slice(0,30)}...`:o.element.text.body;t+=` "${c}"`}return o.scriptRunId!==NO_SCRIPT_RUN_ID&&(t+=` (run: ${o.scriptRunId.substring(0,MAX_HASH_LENGTH)})`),o.fragmentId&&(t+=` (fragment: ${o.fragmentId.substring(0,MAX_HASH_LENGTH)})`),t+=` (activeScriptHash: ${o.activeScriptHash.substring(0,MAX_HASH_LENGTH)})`,t+=` 20`,t}static generateDebugString(o,e="",t=!0){const c=new DebugVisitor(e,t);return o.accept(c)}}class BlockNode{constructor(o,e,t,c,p,h){this.activeScriptHash=o,this.children=e??[],this.deltaBlock=t??new Block$1({}),this.scriptRunId=c??NO_SCRIPT_RUN_ID,this.fragmentId=p,this.deltaMsgReceivedAt=h}get isEmpty(){return this.children.length===0}accept(o){return o.visitBlockNode(this)}debug(){return this.accept(new DebugVisitor)}}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(n,...o){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(n){return!!n&&!!n[DRAFT_STATE]}function isDraftable(n){return n?isPlainObject$1(n)||Array.isArray(n)||
20!!n[DRAFTABLE]||!!n.constructor?.[DRAFTABLE]||isMap(n)||isSet(n):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject$1(n){if(!n||typeof n!="object")return!1;const o=getPrototypeOf(n);if(o===null)return!0;const e=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return e===Object?!0:typeof e=="function"&&Function.toString.call(e)===objectCtorString}function each(n,o){getArchtype(n)===0?Reflect.ownKeys(n).forEach(e=>{o(e,n[e],n)}):n.forEach((e,t)=>o(t,e,n))}function getArchtype(n){const o=n[DRAFT_STATE];return o?o.type_:Array.isArray(n)?1:isMap(n)?2:isSet(n)?3:0}function has(n,o){return getArchtype(n)===2?n.has(o):Object.prototype.hasOwnProperty.call(n,o)}function get(n,o){return getArchtype(n)===2?n.get(o):n[o]}function set(n,o,e){const t=getArchtype(n);t===2?n.set(o,e):t===3?n.add(e):n[o]=e}function is(n,o){return n===o?n!==0||1/n===1/o:n!==n&&o!==o}function isMap(n){return n instanceof Map}function isSet(n){return n instanceof Set}function latest(n){return n.copy_||n.base_}function shallowCopy(n,o){if(isMap(n))return new Map(n);if(isSet(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const e=isPlainObject$1(n);if(o===!0||o==="class_only"&&!e){const t=Object.getOwnPropertyDescriptors(n);delete t[DRAFT_STATE];let c=Reflect.ownKeys(t);for(let p=0;p<c.length;p++){const h=c[p],y=t[h];y.writable===!1&&(y.writable=!0,y.configurable=!0),(y.get||y.set)&&(t[h]={configurable:!0,writable:!0,enumerable:y.enumerable,value:n[h]})}return Object.create(getPrototypeOf(n),t)}else{const t=getPrototypeOf(n);if(t!==null&&e)return{...n};const c=Object.create(t);return Object.assign(c,n)}}function freeze(n,o=!1){return isFrozen(n)||isDraft(n)||!isDraftable(n)||(getArchtype(n)>1&&Object.defineProperties(n,{set:{value:dontMutateFrozenCollections}
20,add:{value:dontMutateFrozenCollections},clear:{value:dontMutateFrozenCollections},delete:{value:dontMutateFrozenCollections}}),Object.freeze(n),o&&Object.values(n).forEach(e=>freeze(e,!0))),n}function dontMutateFrozenCollections(){die(2)}function isFrozen(n){return Object.isFrozen(n)}var plugins={};function getPlugin(n){const o=plugins[n];return o||die(0,n),o}function loadPlugin(n,o){plugins[n]||(plugins[n]=o)}var currentScope;function getCurrentScope(){return currentScope}function createScope(n,o){return{drafts_:[],parent_:n,immer_:o,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(n,o){o&&(getPlugin("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=o)}function revokeScope(n){leaveScope(n),n.drafts_.forEach(revokeDraft),n.drafts_=null}function leaveScope(n){n===currentScope&&(currentScope=n.parent_)}function enterScope(n){return currentScope=createScope(currentScope,n)}function revokeDraft(n){const o=n[DRAFT_STATE];o.type_===0||o.type_===1?o.revoke_():o.revoked_=!0}function processResult(n,o){o.unfinalizedDrafts_=o.drafts_.length;const e=o.drafts_[0];return n!==void 0&&n!==e?(e[DRAFT_STATE].modified_&&(revokeScope(o),die(4)),isDraftable(n)&&(n=finalize(o,n),o.parent_||maybeFreeze(o,n)),o.patches_&&getPlugin("Patches").generateReplacementPatches_(e[DRAFT_STATE].base_,n,o.patches_,o.inversePatches_)):n=finalize(o,e,[]),revokeScope(o),o.patches_&&o.patchListener_(o.patches_,o.inversePatches_),n!==NOTHING?n:void 0}function finalize(n,o,e){if(isFrozen(o))return o;const t=o[DRAFT_STATE];if(!t)return each(o,(c,p)=>finalizeProperty(n,t,o,c,p,e)),o;if(t.scope_!==n)return o;if(!t.modified_)return maybeFreeze(n,t.base_,!0),t.base_;if(!t.finalized_){t.finalized_=!0,t.scope_.unfinalizedDrafts_--;const c=t.copy_;let p=c,h=!1;t.type_===3&&(p=new Set(c),c.clear(),h=!0),each(p,(y,g)=>finalizeProperty(n,t,c,y,g,e,h)),maybeFreeze(n,c,!1),e&&n.patches_&&getPlugin("Patches").generatePatches_(t,e,n.patches_,n.inversePatches_)}return t.copy_}function finalizeProperty(n,o,e,t,c,p,h){if(isDraft(c)){const y=p&&o&&o.type_!==3&&!has(o.assigned_,t)?p.concat(t):void 0,g=finalize(n,c,y);if(set(e,t,g),isDraft(g))n.canAutoFreeze_=!1;else return}else h&&e.add(c);if(isDraftable(c)&&!isFrozen(c)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;finalize(n,c),(!o||!o.scope_.parent_)&&typeof t!="symbol"&&(isMap(e)?e.has(t):Object.prototype.propertyIsEnumerable.call(e,t))&&maybeFreeze(n,c)}}function maybeFreeze(n,o,e=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&freeze(o,e)}function createProxyProxy(n,o){const e=Array.isArray(n),t={type_:e?1:0,scope_:o?o.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:o,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let c=t,p=objectTraps;e&&(c=[t],p=arrayTraps);const{revoke:h,proxy:y}=Proxy.revocable(c,p);return t.draft_=y,t.revoke_=h,y}var objectTraps={get(n,o){if(o===DRAFT_STATE)return n;const e=latest(n);if(!has(e,o))return readPropFromProto(n,e,o);const t=e[o];return n.finalized_||!isDraftable(t)?t:t===peek(n.base_,o)?(prepareCopy(n),n.copy_[o]=createProxy(t,n)):t},has(n,o){return o in latest(n)},ownKeys(n){return Reflect.ownKeys(latest(n))},set(n,o,e){const t=getDescriptorFromProto(latest(n),o);if(t?.set)return t.set.call(n.draft_,e),!0;if(!n.modified_){const c=peek(latest(n),o),p=c?.[DRAFT_STATE];if(p&&p.base_===e)return n.copy_[o]=e,n.assigned_[o]=!1,!0;if(is(e,c)&&(e!==void 0||has(n.base_,o)))return!0;prepareCopy(n),markChanged(n)}return n.copy_[o]===e&&(e!==void 0||o in n.copy_)||Number.isNaN(e)&&Number.isNaN(n.copy_[o])||(n.copy_[o]=e,n.assigned_[o]=!0),!0},deleteProperty(n,o){return peek(n.base_,o)!==void 0||o in n.base_?(n.assigned_[o]=!1,prepareCopy(n),markChanged(n)):delete n.assigned_[o],n.copy_&&delete n.copy_[o],!0},getOwnPropertyDescriptor(n,o){const e=latest(n),t=Reflect.getOwnPropertyDescriptor(e,o);return t&&{writable:!0,configurable:n.type_!==1||o!=="length",enumerable:t.enumerable,value:e[o]}},defineProperty(){die(11)},getPrototypeOf(n){return getPrototypeOf(n.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(n,o)=>{arrayTraps[n]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}});arrayTraps.deleteProperty=function(n,o){return arrayTraps.set.call(this,n,o,void 0)};arrayTraps.set=function(n,o,e){return objectTraps.set.call(this,n[0],o,e,n[0])};function peek(n,o){const e=n[DRAFT_STATE];return(e?latest(e):n)[o]}
20function readPropFromProto(n,o,e){const t=getDescriptorFromProto(o,e);return t?"value"in t?t.value:t.get?.call(n.draft_):void 0}function getDescriptorFromProto(n,o){if(!(o in n))return;let e=getPrototypeOf(n);for(;e;){const t=Object.getOwnPropertyDescriptor(e,o);if(t)return t;e=getPrototypeOf(e)}}function markChanged(n){n.modified_||(n.modified_=!0,n.parent_&&markChanged(n.parent_))}function prepareCopy(n){n.copy_||(n.copy_=shallowCopy(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(o,e,t)=>{if(typeof o=="function"&&typeof e!="function"){const p=e;e=o;const h=this;return function(g=p,...$){return h.produce(g,E=>e.call(this,E,...$))}}typeof e!="function"&&die(6),t!==void 0&&typeof t!="function"&&die(7);let c;if(isDraftable(o)){const p=enterScope(this),h=createProxy(o,void 0);let y=!0;try{c=e(h),y=!1}finally{y?revokeScope(p):leaveScope(p)}return usePatchesInScope(p,t),processResult(c,p)}else if(!o||typeof o!="object"){if(c=e(o),c===void 0&&(c=o),c===NOTHING&&(c=void 0),this.autoFreeze_&&freeze(c,!0),t){const p=[],h=[];getPlugin("Patches").generateReplacementPatches_(o,c,p,h),t(p,h)}return c}else die(1,o)},this.produceWithPatches=(o,e)=>{if(typeof o=="function")return(h,...y)=>this.produceWithPatches(h,g=>o(g,...y));let t,c;return[this.produce(o,e,(h,y)=>{t=h,c=y}),t,c]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){isDraftable(n)||die(8),isDraft(n)&&(n=current(n));const o=enterScope(this),e=createProxy(n,void 0);return e[DRAFT_STATE].isManual_=!0,leaveScope(o),e}finishDraft(n,o){const e=n&&n[DRAFT_STATE];(!e||!e.isManual_)&&die(9);const{scope_:t}=e;return usePatchesInScope(t,o),processResult(void 0,t)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,o){let e;for(e=o.length-1;e>=0;e--){const c=o[e];if(c.path.length===0&&c.op==="replace"){n=c.value;break}}e>-1&&(o=o.slice(e+1));const t=getPlugin("Patches").applyPatches_;return isDraft(n)?t(n,o):this.produce(n,c=>t(c,o))}};function createProxy(n,o){const e=isMap(n)?getPlugin("MapSet").proxyMap_(n,o):isSet(n)?getPlugin("MapSet").proxySet_(n,o):createProxyProxy(n,o);return(o?o.scope_:getCurrentScope()).drafts_.push(e),e}function current(n){return isDraft(n)||die(10,n),currentImpl(n)}function currentImpl(n){if(!isDraftable(n)||isFrozen(n))return n;const o=n[DRAFT_STATE];let e;if(o){if(!o.modified_)return o.base_;o.finalized_=!0,e=shallowCopy(n,o.scope_.immer_.useStrictShallowCopy_)}else e=shallowCopy(n,!0);return each(e,(t,c)=>{set(e,t,currentImpl(c))}),o&&(o.finalized_=!1),e}function enablePatches(){const o="replace",e="add",t="remove";function c(N,H,Z,X){switch(N.type_){case 0:case 2:return h(N,H,Z,X);case 1:return p(N,H,Z,X);case 3:return y(N,H,Z,X)}}function p(N,H,Z,X){let{base_:be,assigned_:we}=N,$e=N.copy_;$e.length<be.length&&([be,$e]=[$e,be],[Z,X]=[X,Z]);for(let Ce=0;Ce<be.length;Ce++)if(we[Ce]&&$e[Ce]!==be[Ce]){const Ie=H.concat([Ce]);Z.push({op:o,path:Ie,value:A($e[Ce])}),X.push({op:o,path:Ie,value:A(be[Ce])})}for(let Ce=be.length;Ce<$e.length;Ce++){const Ie=H.concat([Ce]);Z.push({op:e,path:Ie,value:A($e[Ce])})}for(let Ce=$e.length-1;be.length<=Ce;--Ce){const Ie=H.concat([Ce]);X.push({op:t,path:Ie})}}function h(N,H,Z,X){const{base_:be,copy_:we}=N;each(N.assigned_,($e,Ce)=>{const Ie=get(be,$e),Ne=get(we,$e),Fe=Ce?has(be,$e)?o:e:t;if(Ie===Ne&&Fe===o)return;const Be=H.concat($e);Z.push(Fe===t?{op:Fe,path:Be}:{op:Fe,path:Be,value:Ne}),X.push(Fe===e?{op:t,path:Be}:Fe===t?{op:e,path:Be,value:A(Ie)}:{op:o,path:Be,value:A(Ie)})})}function y(N,H,Z,X){let{base_:be,copy_:we}=N,$e=0;be.forEach(Ce=>{if(!we.has(Ce)){const Ie=H.concat([$e]);Z.push({op:t,path:Ie,value:Ce}),X.unshift({op:e,path:Ie,value:Ce})}$e++}),$e=0,we.forEach(Ce=>{if(!be.has(Ce)){const Ie=H.concat([$e]);Z.push({op:e,path:Ie,value:Ce}),X.unshift({op:t,path:Ie,value:Ce})}$e++})}function g(N,H,Z,X){Z.push({op:o,path:[],value:H===NOTHING?void 0:H}),X.push({op:o,path:[],value:N})}function $(N,H){return H.forEach(Z=>{const{path:X,op:be}=Z;let we=N;for(let Ne=0;Ne<X.length-1;Ne++){const Fe=getArchtype(we);let Be=X[Ne];typeof Be!="string"&&typeof Be!="number"&&(Be=""+Be),(Fe===0||Fe===1)&&(Be==="__proto__"||Be==="constructor")&&die(19),typeof we=="function"&&Be==="prototype"&&die(19),we=get(we,Be),typeof we!="object"&&die(18,X.join("/"))}const $e=getArchtype(we),Ce=E(Z.value),Ie=X[X.length-1];switch(be){case o:switch($e){case 2:return we.set(Ie,Ce);case 3:die(16);default:return we[Ie]=Ce}case e:switch($e){case 1:return Ie==="-"?we.push(Ce):we.splice(Ie,0,Ce);case 2:return we.set(Ie,Ce);case 3:return we.add(Ce);default:return we[Ie]=Ce}case t:switch($e){case 1:return we.splice(Ie,1);case 2:return we.delete(Ie);case 3:return we.delete(Z.value);default:return delete we[Ie]}default:die(17,be)}}),N}function E(N){if(!isDraftable(N))return N;if(Array.isArray(N))return N.map(E);if(isMap(N))return new Map(Array.from(N.entries()).map(([Z,X])=>[Z,E(X)]));if(isSet(N))return new Set(Array.from(N).map(E));const H=Object.create(getPrototypeOf(N));for(const Z in N)H[Z]=E(N[Z]);return has(N,DRAFTABLE)&&(H[DRAFTABLE]=N[DRAFTABLE]),H}function A(N){return isDraft(N)?E(N):N}loadPlugin("Patches",{applyPatches_:$,generatePatches_:c,generateReplacementPatches_:g})}function enableMapSet(){class n extends Map{constructor(g,$){super(),this[DRAFT_STATE]={type_:2,parent_:$,scope_:$?$.scope_:getCurrentScope(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:g,draft_:this,isManual_:!1,revoked_:!1}}get size(){return latest(this[DRAFT_STATE]).size}has(g){return latest(this[DRAFT_STATE]).has(g)}set(g,$){const E=this[DRAFT_STATE];
20return h(E),(!latest(E).has(g)||latest(E).get(g)!==$)&&(e(E),markChanged(E),E.assigned_.set(g,!0),E.copy_.set(g,$),E.assigned_.set(g,!0)),this}delete(g){if(!this.has(g))return!1;const $=this[DRAFT_STATE];return h($),e($),markChanged($),$.base_.has(g)?$.assigned_.set(g,!1):$.assigned_.delete(g),$.copy_.delete(g),!0}clear(){const g=this[DRAFT_STATE];h(g),latest(g).size&&(e(g),markChanged(g),g.assigned_=new Map,each(g.base_,$=>{g.assigned_.set($,!1)}),g.copy_.clear())}forEach(g,$){const E=this[DRAFT_STATE];latest(E).forEach((A,N,H)=>{g.call($,this.get(N),N,this)})}get(g){const $=this[DRAFT_STATE];h($);const E=latest($).get(g);if($.finalized_||!isDraftable(E)||E!==$.base_.get(g))return E;const A=createProxy(E,$);return e($),$.copy_.set(g,A),A}keys(){return latest(this[DRAFT_STATE]).keys()}values(){const g=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const $=g.next();return $.done?$:{done:!1,value:this.get($.value)}}}}entries(){const g=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const $=g.next();if($.done)return $;const E=this.get($.value);return{done:!1,value:[$.value,E]}}}}[Symbol.iterator](){return this.entries()}}function o(y,g){return new n(y,g)}function e(y){y.copy_||(y.assigned_=new Map,y.copy_=new Map(y.base_))}class t extends Set{constructor(g,$){super(),this[DRAFT_STATE]={type_:3,parent_:$,scope_:$?$.scope_:getCurrentScope(),modified_:!1,finalized_:!1,copy_:void 0,base_:g,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return latest(this[DRAFT_STATE]).size}has(g){const $=this[DRAFT_STATE];return h($),$.copy_?!!($.copy_.has(g)||$.drafts_.has(g)&&$.copy_.has($.drafts_.get(g))):$.base_.has(g)}add(g){const $=this[DRAFT_STATE];return h($),this.has(g)||(p($),markChanged($),$.copy_.add(g)),this}delete(g){if(!this.has(g))return!1;const $=this[DRAFT_STATE];return h($),p($),markChanged($),$.copy_.delete(g)||($.drafts_.has(g)?$.copy_.delete($.drafts_.get(g)):!1)}clear(){const g=this[DRAFT_STATE];h(g),latest(g).size&&(p(g),markChanged(g),g.copy_.clear())}values(){const g=this[DRAFT_STATE];return h(g),p(g),g.copy_.values()}entries(){const g=this[DRAFT_STATE];return h(g),p(g),g.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(g,$){const E=this.values();let A=E.next();for(;!A.done;)g.call($,A.value,A.value,this),A=E.next()}}function c(y,g){return new t(y,g)}function p(y){y.copy_||(y.copy_=new Set,y.base_.forEach(g=>{if(isDraftable(g)){const $=createProxy(g,y);y.drafts_.set(g,$),y.copy_.add($)}else y.copy_.add(g)}))}
20function h(y){y.revoked_&&die(3,JSON.stringify(latest(y)))}loadPlugin("MapSet",{proxyMap_:o,proxySet_:c})}var immer=new Immer2,produce=immer.produce,__assign$2=function(){return __assign$2=Object.assign||function(o){for(var e,t=1,c=arguments.length;t<c;t++){e=arguments[t];for(var p in e)Object.prototype.hasOwnProperty.call(e,p)&&(o[p]=e[p])}return o},__assign$2.apply(this,arguments)};function __awaiter(n,o,e,t){function c(p){return p instanceof e?p:new e(function(h){h(p)})}return new(e||(e=Promise))(function(p,h){function y(E){try{$(t.next(E))}catch(A){h(A)}}function g(E){try{$(t.throw(E))}catch(A){h(A)}}function $(E){E.done?p(E.value):c(E.value).then(y,g)}$((t=t.apply(n,o||[])).next())})}function __values(n){var o=typeof Symbol=="function"&&Symbol.iterator,e=o&&n[o],t=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function __await(n){return this instanceof __await?(this.v=n,this):new __await(n)}function __asyncGenerator(n,o,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e.apply(n,o||[]),c,p=[];return c=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),y("next"),y("throw"),y("return",h),c[Symbol.asyncIterator]=function(){return this},c;function h(H){return function(Z){return Promise.resolve(Z).then(H,A)}}function y(H,Z){t[H]&&(c[H]=function(X){return new Promise(function(be,we){p.push([H,X,be,we])>1||g(H,X)})},Z&&(c[H]=Z(c[H])))}function g(H,Z){try{$(t[H](Z))}catch(X){N(p[0][3],X)}}function $(H){H.value instanceof __await?Promise.resolve(H.value.v).then(E,A):N(p[0][2],H)}function E(H){g("next",H)}function A(H){g("throw",H)}function N(H,Z){H(Z),p.shift(),p.length&&g(p[0][0],p[0][1])}}function __asyncDelegator(n){var o,e;return o={},t("next"),t("throw",function(c){throw c}),t("return"),o[Symbol.iterator]=function(){return this},o;function t(c,p){o[c]=n[c]?function(h){return(e=!e)?{value:__await(n[c](h)),done:!1}:p?p(h):h}:p}}function __asyncValues(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n[Symbol.asyncIterator],e;return o?o.call(n):(n=typeof __values=="function"?__values(n):n[Symbol.iterator](),e={},t("next"),t("throw"),t("return"),e[Symbol.asyncIterator]=function(){return this},e);function t(p){e[p]=n[p]&&function(h){return new Promise(function(y,g){h=n[p](h),c(y,g,h.done,h.value)})}}function c(p,h,y,g){Promise.resolve(g).then(function($){p({value:$,done:y})},h)}}typeof SuppressedError=="function"&&SuppressedError;const decoder=new TextDecoder("utf-8"),decodeUtf8=n=>decoder.decode(n),encoder=new TextEncoder,encodeUtf8=n=>encoder.encode(n),isNumber=n=>typeof n=="number",isBoolean=n=>typeof n=="boolean",isFunction$1=n=>typeof n=="function",isObject=n=>n!=null&&Object(n)===n,isPromise=n=>isObject(n)&&isFunction$1(n.then),isIterable=n=>isObject(n)&&isFunction$1(n[Symbol.iterator]),isAsyncIterable=n=>isObject(n)&&isFunction$1(n[Symbol.asyncIterator]),isArrowJSON=n=>isObject(n)&&isObject(n.schema),isIteratorResult=n=>isObject(n)&&"done"in n&&"value"in n,isFileHandle=n=>isObject(n)&&isFunction$1(n.stat)&&isNumber(n.fd),isFetchResponse=n=>isObject(n)&&isReadableDOMStream(n.body),isReadableInterop=n=>"_getDOMStream"in n&&"_getNodeStream"in n,isReadableDOMStream=n=>isObject(n)&&isFunction$1(n.cancel)&&isFunction$1(n.getReader)&&!isReadableInterop(n),isReadableNodeStream=n=>isObject(n)&&isFunction$1(n.read)&&isFunction$1(n.pipe)&&isBoolean(n.readable)&&!isReadableInterop(n),isFlatbuffersByteBuffer=n=>isObject(n)&&isFunction$1(n.clear)&&isFunction$1(n.bytes)&&isFunction$1(n.position)&&isFunction$1(n.setPosition)&&isFunction$1(n.capacity)&&isFunction$1(n.getBufferIdentifier)&&isFunction$1(n.createLong),SharedArrayBuf=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function collapseContiguousByteRanges(n){const o=n[0]?[n[0]]:[];let e,t,c,p;for(let h,y,g=0,$=0,E=n.length;++g<E;){if(h=o[$],y=n[g],!h||!y||h.buffer!==y.buffer||y.byteOffset<h.byteOffset){y&&(o[++$]=y);continue}if({byteOffset:e,byteLength:c}=h,{byteOffset:t,byteLength:p}=y,e+c<t||t+p<e){y&&(o[++$]=y);continue}o[$]=new Uint8Array(h.buffer,e,t-e+p)}return o}function memcpy(n,o,e=0,t=o.byteLength){const c=n.byteLength,p=new Uint8Array(n.buffer,n.byteOffset,c),h=new Uint8Array(o.buffer,o.byteOffset,Math.min(t,c));return p.set(h,e),n}function joinUint8Arrays(n,o){const e=collapseContiguousByteRanges(n),t=e.reduce((E,A)=>E+A.byteLength,0);let c,p,h,y=0,g=-1;const $=Math.min(o||Number.POSITIVE_INFINITY,t);for(const E=e.length;++g<E;){if(c=e[g],p=c.subarray(0,Math.min(c.length,$-y)),$<=y+p.length){p.length<c.length?e[g]=c.subarray(p.length):p.length===c.length&&g++,h?memcpy(h,p,y):h=p;break}memcpy(h||(h=new Uint8Array($)),p,y),y+=p.length}return[h||new Uint8Array(0),e.slice(g),t-(h?h.byteLength:0)]}function toArrayBufferView(n,o){let e=isIteratorResult(o)?o.value:o;return e instanceof n?n===Uint8Array?new n(e.buffer,e.byteOffset,e.byteLength):e:e?(typeof e=="string"&&(e=encodeUtf8(e)),e instanceof ArrayBuffer?new n(e):e instanceof SharedArrayBuf?new n(e):isFlatbuffersByteBuffer(e)?toArrayBufferView(n,e.bytes()):ArrayBuffer.isView(e)?e.byteLength<=0?new n(0):new n(e.buffer,e.byteOffset,e.byteLength/n.BYTES_PER_ELEMENT):n.from(e)):new n(0)}const toInt8Array=n=>toArrayBufferView(Int8Array,n),toInt16Array=n=>toArrayBufferView(Int16Array,n),toInt32Array=n=>toArrayBufferView(Int32Array,n),toBigInt64Array=n=>toArrayBufferView(BigInt64Array,n),toUint8Array=n=>toArrayBufferView(Uint8Array,n),toUint16Array=n=>toArrayBufferView(Uint16Array,n),toUint32Array=n=>toArrayBufferView(Uint32Array,n),toBigUint64Array=n=>toArrayBufferView(BigUint64Array,n),toFloat32Array=n=>toArrayBufferView(Float32Array,n),toFloat64Array=n=>toArrayBufferView(Float64Array,n),toUint8ClampedArray=n=>toArrayBufferView(Uint8ClampedArray,n),pump$1=n=>(n.next(),n);function*toArrayBufferViewIterator(n,o){const e=function*(c){yield c}
20,t=typeof o=="string"||ArrayBuffer.isView(o)||o instanceof ArrayBuffer||o instanceof SharedArrayBuf?e(o):isIterable(o)?o:e(o);return yield*pump$1(function*(c){let p=null;do p=c.next(yield toArrayBufferView(n,p));while(!p.done)}(t[Symbol.iterator]())),new n}const toInt8ArrayIterator=n=>toArrayBufferViewIterator(Int8Array,n),toInt16ArrayIterator=n=>toArrayBufferViewIterator(Int16Array,n),toInt32ArrayIterator=n=>toArrayBufferViewIterator(Int32Array,n),toUint8ArrayIterator=n=>toArrayBufferViewIterator(Uint8Array,n),toUint16ArrayIterator=n=>toArrayBufferViewIterator(Uint16Array,n),toUint32ArrayIterator=n=>toArrayBufferViewIterator(Uint32Array,n),toFloat32ArrayIterator=n=>toArrayBufferViewIterator(Float32Array,n),toFloat64ArrayIterator=n=>toArrayBufferViewIterator(Float64Array,n),toUint8ClampedArrayIterator=n=>toArrayBufferViewIterator(Uint8ClampedArray,n);function toArrayBufferViewAsyncIterator(n,o){return __asyncGenerator(this,arguments,function*(){if(isPromise(o))return yield __await(yield __await(yield*__asyncDelegator(__asyncValues(toArrayBufferViewAsyncIterator(n,yield __await(o))))));const t=function(h){return __asyncGenerator(this,arguments,function*(){yield yield __await(yield __await(h))})},c=function(h){return __asyncGenerator(this,arguments,function*(){yield __await(yield*__asyncDelegator(__asyncValues(pump$1(function*(y){let g=null;do g=y.next(yield g?.value);while(!g.done)}(h[Symbol.iterator]())))))})},p=typeof o=="string"||ArrayBuffer.isView(o)||o instanceof ArrayBuffer||o instanceof SharedArrayBuf?t(o):isIterable(o)?c(o):isAsyncIterable(o)?o:t(o);return yield __await(yield*__asyncDelegator(__asyncValues(pump$1(function(h){return __asyncGenerator(this,arguments,function*(){let y=null;do y=yield __await(h.next(yield yield __await(toArrayBufferView(n,y))));while(!y.done)})}(p[Symbol.asyncIterator]()))))),yield __await(new n)})}const toInt8ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Int8Array,n),toInt16ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Int16Array,n),toInt32ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Int32Array,n),toUint8ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Uint8Array,n),toUint16ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Uint16Array,n),toUint32ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Uint32Array,n),toFloat32ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Float32Array,n),toFloat64ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Float64Array,n),toUint8ClampedArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Uint8ClampedArray,n);function rebaseValueOffsets(n,o,e){if(n!==0){e=e.slice(0,o);for(let t=-1,c=e.length;++t<c;)e[t]+=n}return e.subarray(0,o)}function compareArrayLike(n,o){let e=0;const t=n.length;if(t!==o.length)return!1;if(t>0)do if(n[e]!==o[e])return!1;while(++e<t);return!0}const util_buffer_=Object.freeze(Object.defineProperty({__proto__:null,compareArrayLike,joinUint8Arrays,memcpy,rebaseValueOffsets,toArrayBufferView,toArrayBufferViewAsyncIterator,toArrayBufferViewIterator,toBigInt64Array,toBigUint64Array,toFloat32Array,toFloat32ArrayAsyncIterator,toFloat32ArrayIterator,toFloat64Array,toFloat64ArrayAsyncIterator,toFloat64ArrayIterator,toInt16Array,toInt16ArrayAsyncIterator,toInt16ArrayIterator,toInt32Array,toInt32ArrayAsyncIterator,toInt32ArrayIterator,toInt8Array,toInt8ArrayAsyncIterator,toInt8ArrayIterator,toUint16Array,toUint16ArrayAsyncIterator,toUint16ArrayIterator,toUint32Array,toUint32ArrayAsyncIterator,toUint32ArrayIterator,toUint8Array,toUint8ArrayAsyncIterator,toUint8ArrayIterator,toUint8ClampedArray,toUint8ClampedArrayAsyncIterator,toUint8ClampedArrayIterator},Symbol.toStringTag,{value:"Module"})),streamAdapters={fromIterable(n){return pump(fromIterable(n))},fromAsyncIterable(n){return pump(fromAsyncIterable(n))},fromDOMStream(n){return pump(fromDOMStream(n))},fromNodeStream(n){return pump(fromNodeStream(n))},toDOMStream(n,o){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(n,o){throw new Error('"toNodeStream" not available in this environment')}},pump=n=>(n.next(),n);function*fromIterable(n){let o,e=!1,t=[],c,p,h,y=0;function g(){return p==="peek"?joinUint8Arrays(t,h)[0]:([c,t,y]=joinUint8Arrays(t,h),c)}({cmd:p,size:h}=(yield null)||{cmd:"read",size:0});const $=toUint8ArrayIterator(n)[Symbol.iterator]();try{do if({done:o,value:c}=Number.isNaN(h-y)?$.next():$.next(h-y),!o&&c.byteLength>0&&(t.push(c),y+=c.byteLength),o||h<=y)do({cmd:p,size:h}=yield g());while(h<y);while(!o)}catch(E){e=!0,typeof $.throw=="function"&&$.throw(E)}finally{e===!1&&typeof $.return=="function"&&$.return(null)}return null}function fromAsyncIterable(n){return __asyncGenerator(this,arguments,function*(){let e,t=!1,c=[],p,h,y,g=0;function $(){return h==="peek"?joinUint8Arrays(c,y)[0]:([p,c,g]=joinUint8Arrays(c,y),p)}({cmd:h,size:y}=(yield yield __await(null))||{cmd:"read",size:0});const E=toUint8ArrayAsyncIterator(n)[Symbol.asyncIterator]();try{do if({done:e,value:p}=Number.isNaN(y-g)?yield __await(E.next()):yield __await(E.next(y-g)),!e&&p.byteLength>
200&&(c.push(p),g+=p.byteLength),e||y<=g)do({cmd:h,size:y}=yield yield __await($()));while(y<g);while(!e)}catch(A){t=!0,typeof E.throw=="function"&&(yield __await(E.throw(A)))}finally{t===!1&&typeof E.return=="function"&&(yield __await(E.return(new Uint8Array(0))))}return yield __await(null)})}function fromDOMStream(n){return __asyncGenerator(this,arguments,function*(){let e=!1,t=!1,c=[],p,h,y,g=0;function $(){return h==="peek"?joinUint8Arrays(c,y)[0]:([p,c,g]=joinUint8Arrays(c,y),p)}({cmd:h,size:y}=(yield yield __await(null))||{cmd:"read",size:0});const E=new AdaptiveByteReader(n);try{do if({done:e,value:p}=Number.isNaN(y-g)?yield __await(E.read()):yield __await(E.read(y-g)),!e&&p.byteLength>0&&(c.push(toUint8Array(p)),g+=p.byteLength),e||y<=g)do({cmd:h,size:y}=yield yield __await($()));while(y<g);while(!e)}catch(A){t=!0,yield __await(E.cancel(A))}finally{t===!1?yield __await(E.cancel()):n.locked&&E.releaseLock()}return yield __await(null)})}class AdaptiveByteReader{constructor(o){this.source=o,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(o){return __awaiter(this,void 0,void 0,function*(){const{reader:e,source:t}=this;e&&(yield e.cancel(o).catch(()=>{})),t&&t.locked&&this.releaseLock()})}read(o){return __awaiter(this,void 0,void 0,function*(){if(o===0)return{done:this.reader==null,value:new Uint8Array(0)};const e=yield this.reader.read();return!e.done&&(e.value=toUint8Array(e)),e})}}const onEvent=(n,o)=>{const e=c=>t([o,c]);let t;return[o,e,new Promise(c=>(t=c)&&n.once(o,e))]};function fromNodeStream(n){return __asyncGenerator(this,arguments,function*(){const e=[];let t="error",c=!1,p=null,h,y,g=0,$=[],E;function A(){return h==="peek"?joinUint8Arrays($,y)[0]:([E,$,g]=joinUint8Arrays($,y),E)}if({cmd:h,size:y}=(yield yield __await(null))||{cmd:"read",size:0},n.isTTY)return yield yield __await(new Uint8Array(0)),yield __await(null);try{e[0]=onEvent(n,"end"),e[1]=onEvent(n,"error");do{if(e[2]=onEvent(n,"readable"),[t,p]=yield __await(Promise.race(e.map(H=>H[2]))),t==="error")break;if((c=t==="end")||(Number.isFinite(y-g)?(E=toUint8Array(n.read(y-g)),E.byteLength<y-g&&(E=toUint8Array(n.read()))):E=toUint8Array(n.read()),E.byteLength>0&&($.push(E),g+=E.byteLength)),c||y<=g)do({cmd:h,size:y}=yield yield __await(A()));while(y<g)}while(!c)}finally{yield __await(N(e,t==="error"?p:null))}return yield __await(null);function N(H,Z){return E=$=null,new Promise((X,be)=>{for(const[we,$e]of H)n.off(we,$e);try{const we=n.destroy;we&&we.call(n,Z),Z=void 0}catch(we){Z=we||Z}finally{Z!=null?be(Z):X()}})}})}var MetadataVersion;(function(n){n[n.V1=0]="V1",n[n.V2=1]="V2",n[n.V3=2]="V3",n[n.V4=3]="V4",n[n.V5=4]="V5"})(MetadataVersion||(MetadataVersion={}));var UnionMode;(function(n){n[n.Sparse=0]="Sparse",n[n.Dense=1]="Dense"})(UnionMode||(UnionMode={}));var Precision;(function(n){n[n.HALF=0]="HALF",n[n.SINGLE=1]="SINGLE",n[n.DOUBLE=2]="DOUBLE"})(Precision||(Precision={}));var DateUnit;(function(n){n[n.DAY=0]="DAY",n[n.MILLISECOND=1]="MILLISECOND"})(DateUnit||(DateUnit={}));var TimeUnit;(function(n){n[n.SECOND=0]="SECOND",n[n.MILLISECOND=1]="MILLISECOND",n[n.MICROSECOND=2]="MICROSECOND",n[n.NANOSECOND=3]="NANOSECOND"})(TimeUnit||(TimeUnit={}));var IntervalUnit;(function(n){n[n.YEAR_MONTH=0]="YEAR_MONTH",n[n.DAY_TIME=1]="DAY_TIME",n[n.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(IntervalUnit||(IntervalUnit={}));const SIZEOF_SHORT=2,SIZEOF_INT=4,FILE_IDENTIFIER_LENGTH=4,SIZE_PREFIX_LENGTH=4,int32=new Int32Array(2),float32=new Float32Array(int32.buffer),float64=new Float64Array(int32.buffer),isLittleEndian=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Encoding;(function(n){n[n.UTF8_BYTES=1]="UTF8_BYTES",n[n.UTF16_STRING=2]="UTF16_STRING"})(Encoding||(Encoding={}));let ByteBuffer$2=class Qc{constructor(o){this.bytes_=o,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(o){return new Qc(new Uint8Array(o))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(o){this.position_=o}capacity(){return this.bytes_.length}readInt8(o){return this.readUint8(o)<<24>>24}readUint8(o){return this.bytes_[o]}readInt16(o){return this.readUint16(o)<<16>>16}readUint16(o){return this.bytes_[o]|this.bytes_[o+1]<<8}readInt32(o){return this.bytes_[o]|this.bytes_[o+1]<<8|this.bytes_[o+2]<<16|this.bytes_[o+3]<<24}readUint32(o){return this.readInt32(o)>>>0}readInt64(o){return BigInt.asIntN(64,BigInt(this.readUint32(o))+(BigInt(this.readUint32(o+4))<<BigInt(32)))}readUint64(o){return BigInt.asUintN(64,BigInt(this.readUint32(o))+(BigInt(this.readUint32(o+4))<<BigInt(32)))}readFloat32(o){return int32[0]=this.readInt32(o),float32[0]}readFloat64(o){return int32[isLittleEndian?0:1]=this.readInt32(o),int32[isLittleEndian?1:0]=this.readInt32(o+4),float64[0]}writeInt8(o,e){this.bytes_[o]=e}writeUint8(o,e){this.bytes_[o]=e}writeInt16(o,e){this.bytes_[o]=e,this.bytes_[o+1]=e>>8}writeUint16(o,e){this.bytes_[o]=e,this.bytes_[o+1]=e>>8}writeInt32(o,e){this.bytes_[o]=e,this.bytes_[o+1]=e>>8,this.bytes_[o+2]=e>>16,this.bytes_[o+3]=e>>24}writeUint32(o,e){this.bytes_[o]=e,this.bytes_[o+1]=e>>8,this.bytes_[o+2]=e>>16,this.bytes_[o+3]=e>>24}writeInt64(o,e){this.writeInt32(o,Number(BigInt.asIntN(32,e))),this.writeInt32(o+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(o,e){this.writeUint32(o,Number(BigInt.asUintN(32,e))),this.writeUint32(o+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(o,e){float32[0]=e,this.writeInt32(o,int32[0])}writeFloat64(o,e){float64[0]=e,this.writeInt32(o,int32[isLittleEndian?0:1]),this.writeInt32(o+4,int32[isLittleEndian?1:0])}
20getBufferIdentifier(){if(this.bytes_.length<this.position_+SIZEOF_INT+FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let o="";for(let e=0;e<FILE_IDENTIFIER_LENGTH;e++)o+=String.fromCharCode(this.readInt8(this.position_+SIZEOF_INT+e));return o}__offset(o,e){const t=o-this.readInt32(o);return e<this.readInt16(t)?this.readInt16(t+e):0}__union(o,e){return o.bb_pos=e+this.readInt32(e),o.bb=this,o}__string(o,e){o+=this.readInt32(o);const t=this.readInt32(o);o+=SIZEOF_INT;const c=this.bytes_.subarray(o,o+t);return e===Encoding.UTF8_BYTES?c:this.text_decoder_.decode(c)}__union_with_string(o,e){return typeof o=="string"?this.__string(e):this.__union(o,e)}__indirect(o){return o+this.readInt32(o)}__vector(o){return o+this.readInt32(o)+SIZEOF_INT}__vector_len(o){return this.readInt32(o+this.readInt32(o))}__has_identifier(o){if(o.length!=FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+FILE_IDENTIFIER_LENGTH);for(let e=0;e<FILE_IDENTIFIER_LENGTH;e++)if(o.charCodeAt(e)!=this.readInt8(this.position()+SIZEOF_INT+e))return!1;return!0}createScalarList(o,e){const t=[];for(let c=0;c<e;++c){const p=o(c);p!==null&&t.push(p)}return t}createObjList(o,e){const t=[];for(let c=0;c<e;++c){const p=o(c);p!==null&&t.push(p.unpack())}return t}},Builder$2=class ed{constructor(o){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let e;o?e=o:e=1024,this.bb=ByteBuffer$2.allocate(e),this.space=e}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(o){this.force_defaults=o}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(o,e){o>this.minalign&&(this.minalign=o);const t=~(this.bb.capacity()-this.space+e)+1&o-1;for(;this.space<t+o+e;){const c=this.bb.capacity();this.bb=ed.growByteBuffer(this.bb),this.space+=this.bb.capacity()-c}this.pad(t)}pad(o){for(let e=0;e<o;e++)this.bb.writeInt8(--this.space,0)}writeInt8(o){this.bb.writeInt8(this.space-=1,o)}writeInt16(o){this.bb.writeInt16(this.space-=2,o)}writeInt32(o){this.bb.writeInt32(this.space-=4,o)}writeInt64(o){this.bb.writeInt64(this.space-=8,o)}writeFloat32(o){this.bb.writeFloat32(this.space-=4,o)}writeFloat64(o){this.bb.writeFloat64(this.space-=8,o)}addInt8(o){this.prep(1,0),this.writeInt8(o)}addInt16(o){this.prep(2,0),this.writeInt16(o)}addInt32(o){this.prep(4,0),this.writeInt32(o)}addInt64(o){this.prep(8,0),this.writeInt64(o)}addFloat32(o){this.prep(4,0),this.writeFloat32(o)}addFloat64(o){this.prep(8,0),this.writeFloat64(o)}addFieldInt8(o,e,t){(this.force_defaults||e!=t)&&(this.addInt8(e),this.slot(o))}addFieldInt16(o,e,t){(this.force_defaults||e!=t)&&(this.addInt16(e),this.slot(o))}addFieldInt32(o,e,t){(this.force_defaults||e!=t)&&(this.addInt32(e),this.slot(o))}addFieldInt64(o,e,t){(this.force_defaults||e!==t)&&(this.addInt64(e),this.slot(o))}addFieldFloat32(o,e,t){(this.force_defaults||e!=t)&&(this.addFloat32(e),this.slot(o))}addFieldFloat64(o,e,t){(this.force_defaults||e!=t)&&(this.addFloat64(e),this.slot(o))}addFieldOffset(o,e,t){(this.force_defaults||e!=t)&&(this.addOffset(e),this.slot(o))}addFieldStruct(o,e,t){e!=t&&(this.nested(e),this.slot(o))}nested(o){if(o!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(o){this.vtable!==null&&(this.vtable[o]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(o){const e=o.capacity();if(e&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const t=e<<1,c=ByteBuffer$2.allocate(t);return c.setPosition(t-e),c.bytes().set(o.bytes(),t-e),c}addOffset(o){this.prep(SIZEOF_INT,0),this.writeInt32(this.offset()-o+SIZEOF_INT)}startObject(o){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=o;for(let e=0;e<o;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const o=this.offset();let e=this.vtable_in_use-1;for(;e>=0&&this.vtable[e]==0;e--);const t=e+1;for(;e>=0;e--)this.addInt16(this.vtable[e]!=0?o-this.vtable[e]:0);const c=2;this.addInt16(o-this.object_start);const p=(t+c)*SIZEOF_SHORT;this.addInt16(p);let h=0;const y=this.space;e:for(e=0;e<this.vtables.length;e++){const g=this.bb.capacity()-this.vtables[e];if(p==this.bb.readInt16(g)){for(let $=SIZEOF_SHORT;$<p;$+=SIZEOF_SHORT)if(this.bb.readInt16(y+$)!=this.bb.readInt16(g+$))continue e;h=this.vtables[e];break}}return h?(this.space=this.bb.capacity()-o,this.bb.writeInt32(this.space,h-o)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-o,this.offset()-o)),this.isNested=!1,o}finish(o,e,t){const c=t?SIZE_PREFIX_LENGTH:0;
20if(e){const p=e;if(this.prep(this.minalign,SIZEOF_INT+FILE_IDENTIFIER_LENGTH+c),p.length!=FILE_IDENTIFIER_LENGTH)throw new TypeError("FlatBuffers: file identifier must be length "+FILE_IDENTIFIER_LENGTH);for(let h=FILE_IDENTIFIER_LENGTH-1;h>=0;h--)this.writeInt8(p.charCodeAt(h))}this.prep(this.minalign,SIZEOF_INT+c),this.addOffset(o),c&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(o,e){this.finish(o,e,!0)}requiredField(o,e){const t=this.bb.capacity()-o,c=t-this.bb.readInt32(t);if(!(e<this.bb.readInt16(c)&&this.bb.readInt16(c+e)!=0))throw new TypeError("FlatBuffers: field "+e+" must be set")}startVector(o,e,t){this.notNested(),this.vector_num_elems=e,this.prep(SIZEOF_INT,o*e),this.prep(t,o*e)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(o){if(!o)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(o))return this.string_maps.get(o);const e=this.createString(o);return this.string_maps.set(o,e),e}createString(o){if(o==null)return 0;let e;return o instanceof Uint8Array?e=o:e=this.text_encoder.encode(o),this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,this.space),this.endVector()}createByteVector(o){return o==null?0:(this.startVector(1,o.length,1),this.bb.setPosition(this.space-=o.length),this.bb.bytes().set(o,this.space),this.endVector())}createObjectOffset(o){return o===null?0:typeof o=="string"?this.createString(o):o.pack(this)}createObjectOffsetList(o){const e=[];for(let t=0;t<o.length;++t){const c=o[t];if(c!==null)e.push(this.createObjectOffset(c));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return e}createStructOffsetList(o,e){return e(this,o.length),this.createObjectOffsetList(o.slice().reverse()),this.endVector()}};var BodyCompressionMethod;(function(n){n[n.BUFFER=0]="BUFFER"})(BodyCompressionMethod||(BodyCompressionMethod={}));var CompressionType;(function(n){n[n.LZ4_FRAME=0]="LZ4_FRAME",n[n.ZSTD=1]="ZSTD"})(CompressionType||(CompressionType={}));class BodyCompression{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsBodyCompression(o,e){return(e||new BodyCompression).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsBodyCompression(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new BodyCompression).__init(o.readInt32(o.position())+o.position(),o)}codec(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt8(this.bb_pos+o):CompressionType.LZ4_FRAME}method(){const o=this.bb.__offset(this.bb_pos,6);return o?this.bb.readInt8(this.bb_pos+o):BodyCompressionMethod.BUFFER}static startBodyCompression(o){o.startObject(2)}static addCodec(o,e){o.addFieldInt8(0,e,CompressionType.LZ4_FRAME)}static addMethod(o,e){o.addFieldInt8(1,e,BodyCompressionMethod.BUFFER)}static endBodyCompression(o){return o.endObject()}static createBodyCompression(o,e,t){return BodyCompression.startBodyCompression(o),BodyCompression.addCodec(o,e),BodyCompression.addMethod(o,t),BodyCompression.endBodyCompression(o)}}let Buffer$1=class{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(o,e,t){return o.prep(8,16),o.writeInt64(BigInt(t??0)),o.writeInt64(BigInt(e??0)),o.offset()}},FieldNode$1=class{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(o,e,t){return o.prep(8,16),o.writeInt64(BigInt(t??0)),o.writeInt64(BigInt(e??0)),o.offset()}},RecordBatch$2=class hs{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsRecordBatch(o,e){return(e||new hs).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsRecordBatch(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new hs).__init(o.readInt32(o.position())+o.position(),o)}length(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt64(this.bb_pos+o):BigInt("0")}nodes(o,e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new FieldNode$1).__init(this.bb.__vector(this.bb_pos+t)+o*16,this.bb):null}nodesLength(){const o=this.bb.__offset(this.bb_pos,6);return o?this.bb.__vector_len(this.bb_pos+o):0}buffers(o,e){const t=this.bb.__offset(this.bb_pos,8);return t?(e||new Buffer$1).__init(this.bb.__vector(this.bb_pos+t)+o*16,this.bb):null}buffersLength(){const o=this.bb.__offset(this.bb_pos,8);return o?this.bb.__vector_len(this.bb_pos+o):0}compression(o){const e=this.bb.__offset(this.bb_pos,10);return e?(o||new BodyCompression).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(o){o.startObject(4)}static addLength(o,e){o.addFieldInt64(0,e,BigInt("0"))}static addNodes(o,e){o.addFieldOffset(1,e,0)}static startNodesVector(o,e){o.startVector(16,e,8)}
20static addBuffers(o,e){o.addFieldOffset(2,e,0)}static startBuffersVector(o,e){o.startVector(16,e,8)}static addCompression(o,e){o.addFieldOffset(3,e,0)}static endRecordBatch(o){return o.endObject()}},DictionaryBatch$1=class ys{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsDictionaryBatch(o,e){return(e||new ys).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsDictionaryBatch(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new ys).__init(o.readInt32(o.position())+o.position(),o)}id(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt64(this.bb_pos+o):BigInt("0")}data(o){const e=this.bb.__offset(this.bb_pos,6);return e?(o||new RecordBatch$2).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){const o=this.bb.__offset(this.bb_pos,8);return o?!!this.bb.readInt8(this.bb_pos+o):!1}static startDictionaryBatch(o){o.startObject(3)}static addId(o,e){o.addFieldInt64(0,e,BigInt("0"))}static addData(o,e){o.addFieldOffset(1,e,0)}static addIsDelta(o,e){o.addFieldInt8(2,+e,0)}static endDictionaryBatch(o){return o.endObject()}};var Endianness;(function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"})(Endianness||(Endianness={}));var DictionaryKind;(function(n){n[n.DenseArray=0]="DenseArray"})(DictionaryKind||(DictionaryKind={}));class Int{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsInt(o,e){return(e||new Int).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsInt(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Int).__init(o.readInt32(o.position())+o.position(),o)}bitWidth(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt32(this.bb_pos+o):0}isSigned(){const o=this.bb.__offset(this.bb_pos,6);return o?!!this.bb.readInt8(this.bb_pos+o):!1}static startInt(o){o.startObject(2)}static addBitWidth(o,e){o.addFieldInt32(0,e,0)}static addIsSigned(o,e){o.addFieldInt8(1,+e,0)}static endInt(o){return o.endObject()}static createInt(o,e,t){return Int.startInt(o),Int.addBitWidth(o,e),Int.addIsSigned(o,t),Int.endInt(o)}}class DictionaryEncoding{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsDictionaryEncoding(o,e){return(e||new DictionaryEncoding).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsDictionaryEncoding(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new DictionaryEncoding).__init(o.readInt32(o.position())+o.position(),o)}id(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt64(this.bb_pos+o):BigInt("0")}indexType(o){const e=this.bb.__offset(this.bb_pos,6);return e?(o||new Int).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isOrdered(){const o=this.bb.__offset(this.bb_pos,8);return o?!!this.bb.readInt8(this.bb_pos+o):!1}dictionaryKind(){const o=this.bb.__offset(this.bb_pos,10);return o?this.bb.readInt16(this.bb_pos+o):DictionaryKind.DenseArray}static startDictionaryEncoding(o){o.startObject(4)}static addId(o,e){o.addFieldInt64(0,e,BigInt("0"))}static addIndexType(o,e){o.addFieldOffset(1,e,0)}static addIsOrdered(o,e){o.addFieldInt8(2,+e,0)}static addDictionaryKind(o,e){o.addFieldInt16(3,e,DictionaryKind.DenseArray)}static endDictionaryEncoding(o){return o.endObject()}}class KeyValue{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsKeyValue(o,e){return(e||new KeyValue).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsKeyValue(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new KeyValue).__init(o.readInt32(o.position())+o.position(),o)}key(o){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,o):null}value(o){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,o):null}static startKeyValue(o){o.startObject(2)}static addKey(o,e){o.addFieldOffset(0,e,0)}static addValue(o,e){o.addFieldOffset(1,e,0)}static endKeyValue(o){return o.endObject()}static createKeyValue(o,e,t){return KeyValue.startKeyValue(o),KeyValue.addKey(o,e),KeyValue.addValue(o,t),KeyValue.endKeyValue(o)}}let Binary$1=class po{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsBinary(o,e){return(e||new po).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsBinary(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new po).__init(o.readInt32(o.position())+o.position(),o)}static startBinary(o){o.startObject(0)}static endBinary(o){return o.endObject()}static createBinary(o){return po.startBinary(o),po.endBinary(o)}},Bool$1=class ho{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsBool(o,e){return(e||new ho).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsBool(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new ho).__init(o.readInt32(o.position())+o.position(),o)}static startBool(o){o.startObject(0)}static endBool(o){return o.endObject()}static createBool(o){return ho.startBool(o),ho.endBool(o)}},Date$1=class xi{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsDate(o,e){return(e||new xi).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsDate(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new xi).__init(o.readInt32(o.position())+o.position(),o)}unit(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):DateUnit.MILLISECOND}static startDate(o){o.startObject(1)}static addUnit(o,e){o.addFieldInt16(0,e,DateUnit.MILLISECOND)}static endDate(o){return o.endObject()}static createDate(o,e){return xi.startDate(o),xi.addUnit(o,e),xi.endDate(o)}},Decimal$1=class Vr{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsDecimal(o,e){return(e||new Vr).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsDecimal(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Vr).__init(o.readInt32(o.position())+o.position(),o)}precision(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt32(this.bb_pos+o):0}scale(){const o=this.bb.__offset(this.bb_pos,6);return o?this.bb.readInt32(this.bb_pos+o):0}bitWidth(){const o=this.bb.__offset(this.bb_pos,8);return o?this.bb.readInt32(this.bb_pos+o):128}static startDecimal(o){o.startObject(3)}static addPrecision(o,e){o.addFieldInt32(0,e,0)}static addScale(o,e){o.addFieldInt32(1,e,0)}static addBitWidth(o,e){o.addFieldInt32(2,e,128)}static endDecimal(o){return o.endObject()}static createDecimal(o,e,t,c){return Vr.startDecimal(o),Vr.addPrecision(o,e),Vr.addScale(o,t),
vendor: 10,601 bytes, line 20
20Vr.addBitWidth(o,c),Vr.endDecimal(o)}},Duration$1=class Ti{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsDuration(o,e){return(e||new Ti).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsDuration(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Ti).__init(o.readInt32(o.position())+o.position(),o)}unit(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):TimeUnit.MILLISECOND}static startDuration(o){o.startObject(1)}static addUnit(o,e){o.addFieldInt16(0,e,TimeUnit.MILLISECOND)}static endDuration(o){return o.endObject()}static createDuration(o,e){return Ti.startDuration(o),Ti.addUnit(o,e),Ti.endDuration(o)}},FixedSizeBinary$1=class Ci{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsFixedSizeBinary(o,e){return(e||new Ci).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsFixedSizeBinary(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Ci).__init(o.readInt32(o.position())+o.position(),o)}byteWidth(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt32(this.bb_pos+o):0}static startFixedSizeBinary(o){o.startObject(1)}static addByteWidth(o,e){o.addFieldInt32(0,e,0)}static endFixedSizeBinary(o){return o.endObject()}static createFixedSizeBinary(o,e){return Ci.startFixedSizeBinary(o),Ci.addByteWidth(o,e),Ci.endFixedSizeBinary(o)}},FixedSizeList$2=class ki{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsFixedSizeList(o,e){return(e||new ki).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsFixedSizeList(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new ki).__init(o.readInt32(o.position())+o.position(),o)}listSize(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt32(this.bb_pos+o):0}static startFixedSizeList(o){o.startObject(1)}static addListSize(o,e){o.addFieldInt32(0,e,0)}static endFixedSizeList(o){return o.endObject()}static createFixedSizeList(o,e){return ki.startFixedSizeList(o),ki.addListSize(o,e),ki.endFixedSizeList(o)}};class FloatingPoint{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsFloatingPoint(o,e){return(e||new FloatingPoint).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsFloatingPoint(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new FloatingPoint).__init(o.readInt32(o.position())+o.position(),o)}precision(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):Precision.HALF}static startFloatingPoint(o){o.startObject(1)}static addPrecision(o,e){o.addFieldInt16(0,e,Precision.HALF)}static endFloatingPoint(o){return o.endObject()}static createFloatingPoint(o,e){return FloatingPoint.startFloatingPoint(o),FloatingPoint.addPrecision(o,e),FloatingPoint.endFloatingPoint(o)}}class Interval{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsInterval(o,e){return(e||new Interval).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsInterval(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Interval).__init(o.readInt32(o.position())+o.position(),o)}unit(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):IntervalUnit.YEAR_MONTH}static startInterval(o){o.startObject(1)}static addUnit(o,e){o.addFieldInt16(0,e,IntervalUnit.YEAR_MONTH)}static endInterval(o){return o.endObject()}static createInterval(o,e){return Interval.startInterval(o),Interval.addUnit(o,e),Interval.endInterval(o)}}let LargeBinary$1=class yo{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsLargeBinary(o,e){return(e||new yo).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsLargeBinary(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new yo).__init(o.readInt32(o.position())+o.position(),o)}static startLargeBinary(o){o.startObject(0)}static endLargeBinary(o){return o.endObject()}static createLargeBinary(o){return yo.startLargeBinary(o),yo.endLargeBinary(o)}},LargeUtf8$1=class go{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsLargeUtf8(o,e){return(e||new go).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsLargeUtf8(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new go).__init(o.readInt32(o.position())+o.position(),o)}static startLargeUtf8(o){o.startObject(0)}static endLargeUtf8(o){return o.endObject()}static createLargeUtf8(o){return go.startLargeUtf8(o),go.endLargeUtf8(o)}},List$1=class mo{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsList(o,e){return(e||new mo).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsList(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new mo).__init(o.readInt32(o.position())+o.position(),o)}static startList(o){o.startObject(0)}static endList(o){return o.endObject()}static createList(o){return mo.startList(o),mo.endList(o)}},Map$1=class Ei{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsMap(o,e){return(e||new Ei).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsMap(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Ei).__init(o.readInt32(o.position())+o.position(),o)}keysSorted(){const o=this.bb.__offset(this.bb_pos,4);return o?!!this.bb.readInt8(this.bb_pos+o):!1}static startMap(o){o.startObject(1)}static addKeysSorted(o,e){o.addFieldInt8(0,+e,0)}static endMap(o){return o.endObject()}static createMap(o,e){return Ei.startMap(o),Ei.addKeysSorted(o,e),Ei.endMap(o)}},Null$1=class bo{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsNull(o,e){return(e||new bo).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsNull(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new bo).__init(o.readInt32(o.position())+o.position(),o)}static startNull(o){o.startObject(0)}static endNull(o){return o.endObject()}static createNull(o){return bo.startNull(o),bo.endNull(o)}};class Struct_{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsStruct_(o,e){return(e||new Struct_).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsStruct_(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Struct_).__init(o.readInt32(o.position())+o.position(),o)}static startStruct_(o){o.startObject(0)}static endStruct_(o){return o.endObject()}static createStruct_(o){return Struct_.startStruct_(o),Struct_.endStruct_(o)}}class Time{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsTime(o,e){return(e||new Time).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsTime(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Time).__init(o.readInt32(o.position())+o.position(),o)}unit(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):TimeUnit.MILLISECOND}bitWidth(){const o=this.bb.__offset(this.bb_pos,6);return o?this.bb.readInt32(this.bb_pos+o):32}static startTime(o){o.startObject(2)}static addUnit(o,e){o.addFieldInt16(0,e,TimeUnit.MILLISECOND)}static addBitWidth(o,e){o.addFieldInt32(1,e,32)}static endTime(o){return o.endObject()}static createTime(o,e,t){return Time.startTime(o),Time.addUnit(o,e),Time.addBitWidth(o,t),Time.endTime(o)}}class Timestamp{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsTimestamp(o,e){return(e||new Timestamp).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsTimestamp(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Timestamp).__init(o.readInt32(o.position())+o.position(),o)}unit(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):TimeUnit.SECOND}timezone(o){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,o):null}static startTimestamp(o){o.startObject(2)}static addUnit(o,e){o.addFieldInt16(0,e,TimeUnit.SECOND)}static addTimezone(o,e){o.addFieldOffset(1,e,0)}static endTimestamp(o){return o.endObject()}static createTimestamp(o,e,t){return Timestamp.startTimestamp(o),Timestamp.addUnit(o,e),Timestamp.addTimezone(o,t),Timestamp.endTimestamp(o)}}class Union{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsUnion(o,e){return(e||new Union).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsUnion(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Union).__init(o.readInt32(o.position())+o.position(),o)}mode(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):UnionMode.Sparse}typeIds(o){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+o*4):0}typeIdsLength(){const o=this.bb.__offset(this.bb_pos,6);return o?this.bb.__vector_len(this.bb_pos+o):0}typeIdsArray(){const o=this.bb.__offset(this.bb_pos,6);return o?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+o),this.bb.__vector_len(this.bb_pos+o)):null}static startUnion(o){o.startObject(2)}static addMode(o,e){o.addFieldInt16(0,e,UnionMode.Sparse)}static addTypeIds(o,e){o.addFieldOffset(1,e,0)}static createTypeIdsVector(o,e){o.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)o.addInt32(e[t]);return o.endVector()}static startTypeIdsVector(o,e){o.startVector(4,e,4)}static endUnion(o){return o.endObject()}static createUnion(o,e,t){return Union.startUnion(o),Union.addMode(o,e),Union.addTypeIds(o,t),Union.endUnion(o)}}let Utf8$1=class vo{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsUtf8(o,e){return(e||new vo).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsUtf8(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new vo).__init(o.readInt32(o.position())+o.position(),o)}static startUtf8(o){o.startObject(0)}static endUtf8(o){return o.endObject()}static createUtf8(o){return vo.startUtf8(o),vo.endUtf8(o)}};var Type$1;
20(function(n){n[n.NONE=0]="NONE",n[n.Null=1]="Null",n[n.Int=2]="Int",n[n.FloatingPoint=3]="FloatingPoint",n[n.Binary=4]="Binary",n[n.Utf8=5]="Utf8",n[n.Bool=6]="Bool",n[n.Decimal=7]="Decimal",n[n.Date=8]="Date",n[n.Time=9]="Time",n[n.Timestamp=10]="Timestamp",n[n.Interval=11]="Interval",n[n.List=12]="List",n[n.Struct_=13]="Struct_",n[n.Union=14]="Union",n[n.FixedSizeBinary=15]="FixedSizeBinary",n[n.FixedSizeList=16]="FixedSizeList",n[n.Map=17]="Map",n[n.Duration=18]="Duration",n[n.LargeBinary=19]="LargeBinary",n[n.LargeUtf8=20]="LargeUtf8",n[n.LargeList=21]="LargeList",n[n.RunEndEncoded=22]="RunEndEncoded"})(Type$1||(Type$1={}));let Field$1=class Ia{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsField(o,e){return(e||new Ia).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsField(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Ia).__init(o.readInt32(o.position())+o.position(),o)}name(o){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,o):null}nullable(){const o=this.bb.__offset(this.bb_pos,6);return o?!!this.bb.readInt8(this.bb_pos+o):!1}typeType(){const o=this.bb.__offset(this.bb_pos,8);return o?this.bb.readUint8(this.bb_pos+o):Type$1.NONE}type(o){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(o,this.bb_pos+e):null}dictionary(o){const e=this.bb.__offset(this.bb_pos,12);return e?(o||new DictionaryEncoding).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(o,e){const t=this.bb.__offset(this.bb_pos,14);return t?(e||new Ia).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+o*4),this.bb):null}childrenLength(){const o=this.bb.__offset(this.bb_pos,14);return o?this.bb.__vector_len(this.bb_pos+o):0}customMetadata(o,e){const t=this.bb.__offset(this.bb_pos,16);return t?(e||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+o*4),this.bb):null}customMetadataLength(){const o=this.bb.__offset(this.bb_pos,16);return o?this.bb.__vector_len(this.bb_pos+o):0}static startField(o){o.startObject(7)}static addName(o,e){o.addFieldOffset(0,e,0)}static addNullable(o,e){o.addFieldInt8(1,+e,0)}static addTypeType(o,e){o.addFieldInt8(2,e,Type$1.NONE)}static addType(o,e){o.addFieldOffset(3,e,0)}static addDictionary(o,e){o.addFieldOffset(4,e,0)}static addChildren(o,e){o.addFieldOffset(5,e,0)}static createChildrenVector(o,e){o.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)o.addOffset(e[t]);return o.endVector()}static startChildrenVector(o,e){o.startVector(4,e,4)}static addCustomMetadata(o,e){o.addFieldOffset(6,e,0)}static createCustomMetadataVector(o,e){o.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)o.addOffset(e[t]);return o.endVector()}static startCustomMetadataVector(o,e){o.startVector(4,e,4)}static endField(o){return o.endObject()}},Schema$2=class vr{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsSchema(o,e){return(e||new vr).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsSchema(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new vr).__init(o.readInt32(o.position())+o.position(),o)}endianness(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):Endianness.Little}fields(o,e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new Field$1).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+o*4),this.bb):null}fieldsLength(){const o=this.bb.__offset(this.bb_pos,6);return o?this.bb.__vector_len(this.bb_pos+o):0}customMetadata(o,e){const t=this.bb.__offset(this.bb_pos,8);return t?(e||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+o*4),this.bb):null}customMetadataLength(){const o=this.bb.__offset(this.bb_pos,8);return o?this.bb.__vector_len(this.bb_pos+o):0}features(o){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+o*8):BigInt(0)}featuresLength(){const o=this.bb.__offset(this.bb_pos,10);return o?this.bb.__vector_len(this.bb_pos+o):0}static startSchema(o){o.startObject(4)}static addEndianness(o,e){o.addFieldInt16(0,e,Endianness.Little)}static addFields(o,e){o.addFieldOffset(1,e,0)}static createFieldsVector(o,e){o.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)o.addOffset(e[t]);return o.endVector()}static startFieldsVector(o,e){o.startVector(4,e,4)}static addCustomMetadata(o,e){o.addFieldOffset(2,e,0)}static createCustomMetadataVector(o,e){o.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)o.addOffset(e[t]);return o.endVector()}static startCustomMetadataVector(o,e){o.startVector(4,e,4)}static addFeatures(o,e){o.addFieldOffset(3,e,0)}static createFeaturesVector(o,e){o.startVector(8,e.length,8);for(let t=e.length-1;t>=0;t--)o.addInt64(e[t]);return o.endVector()}static startFeaturesVector(o,e){o.startVector(8,e,8)}static endSchema(o){return o.endObject()}static finishSchemaBuffer(o,e){o.finish(e)}static finishSizePrefixedSchemaBuffer(o,e){o.finish(e,void 0,!0)}static createSchema(o,e,t,c,p){return vr.startSchema(o),vr.addEndianness(o,e),vr.addFields(o,t),vr.addCustomMetadata(o,c
20),vr.addFeatures(o,p),vr.endSchema(o)}};var MessageHeader;(function(n){n[n.NONE=0]="NONE",n[n.Schema=1]="Schema",n[n.DictionaryBatch=2]="DictionaryBatch",n[n.RecordBatch=3]="RecordBatch",n[n.Tensor=4]="Tensor",n[n.SparseTensor=5]="SparseTensor"})(MessageHeader||(MessageHeader={}));var Type;(function(n){n[n.NONE=0]="NONE",n[n.Null=1]="Null",n[n.Int=2]="Int",n[n.Float=3]="Float",n[n.Binary=4]="Binary",n[n.Utf8=5]="Utf8",n[n.Bool=6]="Bool",n[n.Decimal=7]="Decimal",n[n.Date=8]="Date",n[n.Time=9]="Time",n[n.Timestamp=10]="Timestamp",n[n.Interval=11]="Interval",n[n.List=12]="List",n[n.Struct=13]="Struct",n[n.Union=14]="Union",n[n.FixedSizeBinary=15]="FixedSizeBinary",n[n.FixedSizeList=16]="FixedSizeList",n[n.Map=17]="Map",n[n.Duration=18]="Duration",n[n.LargeBinary=19]="LargeBinary",n[n.LargeUtf8=20]="LargeUtf8",n[n.Dictionary=-1]="Dictionary",n[n.Int8=-2]="Int8",n[n.Int16=-3]="Int16",n[n.Int32=-4]="Int32",n[n.Int64=-5]="Int64",n[n.Uint8=-6]="Uint8",n[n.Uint16=-7]="Uint16",n[n.Uint32=-8]="Uint32",n[n.Uint64=-9]="Uint64",n[n.Float16=-10]="Float16",n[n.Float32=-11]="Float32",n[n.Float64=-12]="Float64",n[n.DateDay=-13]="DateDay",n[n.DateMillisecond=-14]="DateMillisecond",n[n.TimestampSecond=-15]="TimestampSecond",n[n.TimestampMillisecond=-16]="TimestampMillisecond",n[n.TimestampMicrosecond=-17]="TimestampMicrosecond",n[n.TimestampNanosecond=-18]="TimestampNanosecond",n[n.TimeSecond=-19]="TimeSecond",n[n.TimeMillisecond=-20]="TimeMillisecond",n[n.TimeMicrosecond=-21]="TimeMicrosecond",n[n.TimeNanosecond=-22]="TimeNanosecond",n[n.DenseUnion=-23]="DenseUnion",n[n.SparseUnion=-24]="SparseUnion",n[n.IntervalDayTime=-25]="IntervalDayTime",n[n.IntervalYearMonth=-26]="IntervalYearMonth",n[n.DurationSecond=-27]="DurationSecond",n[n.DurationMillisecond=-28]="DurationMillisecond",n[n.DurationMicrosecond=-29]="DurationMicrosecond",n[n.DurationNanosecond=-30]="DurationNanosecond",n[n.IntervalMonthDayNano=-31]="IntervalMonthDayNano"})(Type||(Type={}));var BufferType;(function(n){n[n.OFFSET=0]="OFFSET",n[n.DATA=1]="DATA",n[n.VALIDITY=2]="VALIDITY",n[n.TYPE=3]="TYPE"})(BufferType||(BufferType={}));const undf=void 0;function valueToString(n){if(n===null)return"null";if(n===undf)return"undefined";switch(typeof n){case"number":return`${n}`;case"bigint":return`${n}`;case"string":return`"${n}"`}return typeof n[Symbol.toPrimitive]=="function"?n[Symbol.toPrimitive]("string"):ArrayBuffer.isView(n)?n instanceof BigInt64Array||n instanceof BigUint64Array?`[${[...n].map(o=>valueToString(o))}]`:`[${n}]`:ArrayBuffer.isView(n)?`[${n}]`:JSON.stringify(n,(o,e)=>typeof e=="bigint"?`${e}`:e)}const util_pretty_=Object.freeze(Object.defineProperty({__proto__:null,valueToString},Symbol.toStringTag,{value:"Module"}));function bigIntToNumber(n){if(typeof n=="bigint"&&(n<Number.MIN_SAFE_INTEGER||n>Number.MAX_SAFE_INTEGER))throw new TypeError(`${n} is not safe to convert to a number.`);return Number(n)}function divideBigInts(n,o){return bigIntToNumber(n/o)+bigIntToNumber(n%o)/bigIntToNumber(o)}const isArrowBigNumSymbol=Symbol.for("isArrowBigNum");function BigNum(n,...o){return o.length===0?Object.setPrototypeOf(toArrayBufferView(this.TypedArray,n),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(n,...o),this.constructor.prototype)}BigNum.prototype[isArrowBigNumSymbol]=!0;BigNum.prototype.toJSON=function(){return`"${bigNumToString(this)}"`};BigNum.prototype.valueOf=function(n){return bigNumToNumber(this,n)};BigNum.prototype.toString=function(){return bigNumToString(this)};BigNum.prototype[Symbol.toPrimitive]=function(n="default"){switch(n){case"number":return bigNumToNumber(this);case"string":return bigNumToString(this);case"default":return bigNumToBigInt(this)}return bigNumToString(this)};function SignedBigNum(...n){return BigNum.apply(this,n)}function UnsignedBigNum(...n){return BigNum.apply(this,n)}function DecimalBigNum(...n){return BigNum.apply(this,n)}Object.setPrototypeOf(SignedBigNum.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(UnsignedBigNum.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(DecimalBigNum.prototype,Object.create(Uint32Array.prototype));Object.assign(SignedBigNum.prototype,BigNum.prototype,{constructor:SignedBigNum,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(UnsignedBigNum.prototype,BigNum.prototype,{constructor:UnsignedBigNum,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(DecimalBigNum.prototype,BigNum.prototype,{constructor:DecimalBigNum,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const TWO_TO_THE_64=BigInt(4294967296)*BigInt(4294967296),TWO_TO_THE_64_MINUS_1=TWO_TO_THE_64-BigInt(1);function bigNumToNumber(n,o){const{buffer:e,byteOffset:t,byteLength:c,signed:p}=n,h=new BigUint64Array(e,t,c/8),y=p&&h.at(-1)&BigInt(1)<<BigInt(63);let g=BigInt(0),$=0;if(y){for(const E of h)g|=(E^TWO_TO_THE_64_MINUS_1)*(BigInt(1)<<BigInt(64*$++));g*=BigInt(-1),g-=BigInt(1)}else for(const E of h)g|=E*(BigInt(1)<<BigInt(64*$++));if(typeof o=="number"&&o>0){const E=BigInt("1".padEnd(o+1,"0")),A=g/E,N=y?-(g%E):g%E,H=bigIntToNumber(A),Z=`${N}`.padStart(o,"0");return+`${y&&H===0?"-":""}${H}.${Z}`}return bigIntToNumber(g)}function bigNumToString(n){if(n.byteLength===8)return`${new n.BigIntArray(n.buffer,n.byteOffset,1)[0]}`;if(!n.signed)return unsignedBigNumToString(n);let o=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);if(new Int16Array([o.at(-1)])[0]>=0)return unsignedBigNumToString(n);o=o.slice();let t=1;for(let p=0;p<o.length;p++){const h=o[p],y=~h+t;o[p]=y,t&=h===0?1:0}return`-${unsignedBigNumToString(o)}`}function bigNumToBigInt(n){return n.byteLength===8?new n.BigIntArray(n.buffer,n.byteOffset,1)[0]:bigNumToString(n)}function unsignedBigNumToString(n){let o="";const e=new Uint32Array(2);let t=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);const c=new Uint32Array((t=new Uint16Array(t).reverse()).buffer);let p=-1;const h=t.length-1;do{for(e[0]=t[p=0];p<h;)t[p++]=e[1]=e[0]/10,e[0]=(e[0]-e[1]*10<<16)+t[p];t[p]=e[1]=e[0]/10,e[0]=e[0]-e[1]*10,o=`${e[0]}${o}`}while(c[0]||c[1]||c[2]||c[3]);return o??"0"}class BN{static new(o,e){switch(e){case!0:return new SignedBigNum(o);case!1:return new UnsignedBigNum(o)}switch(o.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new SignedBigNum(o)}return o.byteLength===16?new DecimalBigNum(o):new UnsignedBigNum(o)}static signed(o){return new SignedBigNum(o)}static unsigned(o){return new UnsignedBigNum(o)}static decimal(o){return new DecimalBigNum(o)}constructor(o,e){return BN.new(o,e)}}const util_bn_=Object.freeze(Object.defineProperty({__proto__:null,BN,bigNumToBigInt,bigNumToNumber,bigNumToString,isArrowBigNumSymbol},Symbol.toStringTag,{value:"Module"}));var _a$4,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t,_u,_v,_w,_x;class DataType{static isNull(o){return o?.typeId===Type.Null}static isInt(o){return o?.typeId===Type.Int}static isFloat(o){return o?.typeId===Type.Float}static isBinary(o){return o?.typeId===Type.Binary}static isLargeBinary(o){return o?.typeId===Type.LargeBinary}static isUtf8(o){return o?.typeId===Type.Utf8}static isLargeUtf8(o){return o?.typeId===Type.LargeUtf8}static isBool(o){return o?.typeId===Type.Bool}static isDecimal(o){return o?.typeId===Type.Decimal}static isDate(o){return o?.typeId===Type.Date}static isTime(o){return o?.typeId===Type.Time}static isTimestamp(o){return o?.typeId===Type.Timestamp}static isInterval(o){return o?.typeId===Type.Interval}static isDuration(o){return o?.typeId===Type.Duration}static isList(o){return o?.typeId===Type.List}static isStruct(o){return o?.typeId===Type.Struct}static isUnion(o){return o?.typeId===Type.Union}static isFixedSizeBinary(o){return o?.typeId===Type.FixedSizeBinary}static isFixedSizeList(o){return o?.typeId===Type.FixedSizeList}static isMap(o){return o?.typeId===Type.Map}static isDictionary(o){return o?.typeId===Type.Dictionary}static isDenseUnion(o){return DataType.isUnion(o)&&o.mode===UnionMode.Dense}static isSparseUnion(o){return DataType.isUnion(o)&&o.mode===UnionMode.Sparse}constructor(o){this.typeId=o}}_a$4=Symbol.toStringTag;DataType[_a$4]=(n=>(n.children=null,n.ArrayType=Array,n.OffsetArrayType=Int32Array,n[Symbol.toStringTag]="DataType"))(DataType.prototype);class Null extends DataType{constructor(){super(Type.Null)}toString(){return"Null"}}_b=Symbol.toStringTag;Null[_b]=(n=>n[Symbol.toStringTag]="Null")(Null.prototype);class Int_ extends DataType{constructor(o,e){super(Type.Int),this.isSigned=o,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}_c=Symbol.toStringTag;Int_[_c]=(n=>(n.isSigned=null,n.bitWidth=null,n[Symbol.toStringTag]="Int"))(Int_.prototype);class Int32 extends Int_{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(Int32.prototype,"ArrayType",{value:Int32Array});class Float extends DataType{constructor(o){super(Type.Float),this.precision=o}get ArrayType(){switch(this.precision){case Precision.HALF:return Uint16Array;
20case Precision.SINGLE:return Float32Array;case Precision.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}_d=Symbol.toStringTag;Float[_d]=(n=>(n.precision=null,n[Symbol.toStringTag]="Float"))(Float.prototype);class Binary extends DataType{constructor(){super(Type.Binary)}toString(){return"Binary"}}_e=Symbol.toStringTag;Binary[_e]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Binary"))(Binary.prototype);class LargeBinary extends DataType{constructor(){super(Type.LargeBinary)}toString(){return"LargeBinary"}}_f=Symbol.toStringTag;LargeBinary[_f]=(n=>(n.ArrayType=Uint8Array,n.OffsetArrayType=BigInt64Array,n[Symbol.toStringTag]="LargeBinary"))(LargeBinary.prototype);class Utf8 extends DataType{constructor(){super(Type.Utf8)}toString(){return"Utf8"}}_g=Symbol.toStringTag;Utf8[_g]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Utf8"))(Utf8.prototype);class LargeUtf8 extends DataType{constructor(){super(Type.LargeUtf8)}toString(){return"LargeUtf8"}}_h=Symbol.toStringTag;LargeUtf8[_h]=(n=>(n.ArrayType=Uint8Array,n.OffsetArrayType=BigInt64Array,n[Symbol.toStringTag]="LargeUtf8"))(LargeUtf8.prototype);class Bool extends DataType{constructor(){super(Type.Bool)}toString(){return"Bool"}}_j=Symbol.toStringTag;Bool[_j]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Bool"))(Bool.prototype);class Decimal extends DataType{constructor(o,e,t=128){super(Type.Decimal),this.scale=o,this.precision=e,this.bitWidth=t}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}_k=Symbol.toStringTag;Decimal[_k]=(n=>(n.scale=null,n.precision=null,n.ArrayType=Uint32Array,n[Symbol.toStringTag]="Decimal"))(Decimal.prototype);class Date_ extends DataType{constructor(o){super(Type.Date),this.unit=o}toString(){return`Date${(this.unit+1)*32}<${DateUnit[this.unit]}>`}get ArrayType(){return this.unit===DateUnit.DAY?Int32Array:BigInt64Array}}_l=Symbol.toStringTag;Date_[_l]=(n=>(n.unit=null,n[Symbol.toStringTag]="Date"))(Date_.prototype);class Time_ extends DataType{constructor(o,e){super(Type.Time),this.unit=o,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${TimeUnit[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}_m=Symbol.toStringTag;Time_[_m]=(n=>(n.unit=null,n.bitWidth=null,n[Symbol.toStringTag]="Time"))(Time_.prototype);class Timestamp_ extends DataType{constructor(o,e){super(Type.Timestamp),this.unit=o,this.timezone=e}toString(){return`Timestamp<${TimeUnit[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}_o=Symbol.toStringTag;Timestamp_[_o]=(n=>(n.unit=null,n.timezone=null,n.ArrayType=BigInt64Array,n[Symbol.toStringTag]="Timestamp"))(Timestamp_.prototype);class Interval_ extends DataType{constructor(o){super(Type.Interval),this.unit=o}toString(){return`Interval<${IntervalUnit[this.unit]}>`}}_p=Symbol.toStringTag;Interval_[_p]=(n=>(n.unit=null,n.ArrayType=Int32Array,n[Symbol.toStringTag]="Interval"))(Interval_.prototype);class Duration extends DataType{constructor(o){super(Type.Duration),this.unit=o}toString(){return`Duration<${TimeUnit[this.unit]}>`}}_q=Symbol.toStringTag;Duration[_q]=(n=>(n.unit=null,n.ArrayType=BigInt64Array,n[Symbol.toStringTag]="Duration"))(Duration.prototype);class List extends DataType{constructor(o){super(Type.List),this.children=[o]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}_r=Symbol.toStringTag;List[_r]=(n=>(n.children=null,n[Symbol.toStringTag]="List"))(List.prototype);class Struct extends DataType{constructor(o){super(Type.Struct),this.children=o}toString(){return`Struct<{${this.children.map(o=>`${o.name}:${o.type}`).join(", ")}}>`}}_s=Symbol.toStringTag;Struct[_s]=(n=>(n.children=null,n[Symbol.toStringTag]="Struct"))(Struct.prototype);class Union_ extends DataType{constructor(o,e,t){super(Type.Union),this.mode=o,this.children=t,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce((c,p,h)=>(c[p]=h)&&c||c,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(o=>`${o.type}`).join(" | ")}>`}}_t=Symbol.toStringTag;Union_[_t]=(n=>(n.mode=null,n.typeIds=null,n.children=null,n.typeIdToChildIndex=null,n.ArrayType=Int8Array,n[Symbol.toStringTag]="Union"))(Union_.prototype);class FixedSizeBinary extends DataType{constructor(o){super(Type.FixedSizeBinary),this.byteWidth=o}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}_u=Symbol.toStringTag;FixedSizeBinary[_u]=(n=>(n.byteWidth=null,n.ArrayType=Uint8Array,n[Symbol.toStringTag]="FixedSizeBinary"))(FixedSizeBinary.prototype);let FixedSizeList$1=class extends DataType{constructor(o,e){super(Type.FixedSizeList),this.listSize=o,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};_v=Symbol.toStringTag;FixedSizeList$1[_v]=(n=>(n.children=null,n.listSize=null,n[Symbol.toStringTag]="FixedSizeList"))(FixedSizeList$1.prototype);class Map_ extends DataType{constructor(o,e=!1){var t,c,p;if(super(Type.Map),this.children=[o],this.keysSorted=e,o&&(o.name="entries",!((t=o?.type)===null||t===void 0)&&t.children)){const h=(c=o?.type)===null||c===void 0?void 0:c.children[0];h&&(h.name="key");const y=(p=o?.type)===null||p===void 0?void 0:p.children[1];y&&(y.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(o=>`${o.name}:${o.type}`).join(", ")}}>`}}_w=Symbol.toStringTag;Map_[_w]=(n=>(n.children=null,n.keysSorted=null,n[Symbol.toStringTag]="Map_"))(Map_.prototype);const getId$1=(n=>()=>++n)(-1);class Dictionary extends DataType{constructor(o,e,t,c){super(Type.Dictionary),this.indices=e,this.dictionary=o,this.isOrdered=c||!1,this.id=t==null?getId$1():bigIntToNumber(t)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}_x=Symbol.toStringTag;Dictionary[_x]=(n=>(n.id=null,n.indices=null,n.isOrdered=null,n.dictionary=null,n[Symbol.toStringTag]="Dictionary"))(Dictionary.prototype);function strideForType(n){const o=n;
20switch(n.typeId){case Type.Decimal:return n.bitWidth/32;case Type.Interval:return o.unit===IntervalUnit.MONTH_DAY_NANO?4:1+o.unit;case Type.FixedSizeList:return o.listSize;case Type.FixedSizeBinary:return o.byteWidth;default:return 1}}class Visitor{visitMany(o,...e){return o.map((t,c)=>this.visit(t,...e.map(p=>p[c])))}visit(...o){return this.getVisitFn(o[0],!1).apply(this,o)}getVisitFn(o,e=!0){return getVisitFn(this,o,e)}getVisitFnByTypeId(o,e=!0){return getVisitFnByTypeId(this,o,e)}visitNull(o,...e){return null}visitBool(o,...e){return null}visitInt(o,...e){return null}visitFloat(o,...e){return null}visitUtf8(o,...e){return null}visitLargeUtf8(o,...e){return null}visitBinary(o,...e){return null}visitLargeBinary(o,...e){return null}visitFixedSizeBinary(o,...e){return null}visitDate(o,...e){return null}visitTimestamp(o,...e){return null}visitTime(o,...e){return null}visitDecimal(o,...e){return null}visitList(o,...e){return null}visitStruct(o,...e){return null}visitUnion(o,...e){return null}visitDictionary(o,...e){return null}visitInterval(o,...e){return null}visitDuration(o,...e){return null}visitFixedSizeList(o,...e){return null}visitMap(o,...e){return null}}function getVisitFn(n,o,e=!0){return typeof o=="number"?getVisitFnByTypeId(n,o,e):typeof o=="string"&&o in Type?getVisitFnByTypeId(n,Type[o],e):o&&o instanceof DataType?getVisitFnByTypeId(n,inferDType(o),e):o?.type&&o.type instanceof DataType?getVisitFnByTypeId(n,inferDType(o.type),e):getVisitFnByTypeId(n,Type.NONE,e)}function getVisitFnByTypeId(n,o,e=!0){let t=null;switch(o){case Type.Null:t=n.visitNull;break;case Type.Bool:t=n.visitBool;break;case Type.Int:t=n.visitInt;break;case Type.Int8:t=n.visitInt8||n.visitInt;break;case Type.Int16:t=n.visitInt16||n.visitInt;break;case Type.Int32:t=n.visitInt32||n.visitInt;break;case Type.Int64:t=n.visitInt64||n.visitInt;break;case Type.Uint8:t=n.visitUint8||n.visitInt;break;case Type.Uint16:t=n.visitUint16||n.visitInt;break;case Type.Uint32:t=n.visitUint32||n.visitInt;break;case Type.Uint64:t=n.visitUint64||n.visitInt;break;case Type.Float:t=n.visitFloat;break;case Type.Float16:t=n.visitFloat16||n.visitFloat;break;case Type.Float32:t=n.visitFloat32||n.visitFloat;break;case Type.Float64:t=n.visitFloat64||n.visitFloat;break;case Type.Utf8:t=n.visitUtf8;break;case Type.LargeUtf8:t=n.visitLargeUtf8;break;case Type.Binary:t=n.visitBinary;break;case Type.LargeBinary:t=n.visitLargeBinary;break;case Type.FixedSizeBinary:t=n.visitFixedSizeBinary;break;case Type.Date:t=n.visitDate;break;case Type.DateDay:t=n.visitDateDay||n.visitDate;break;case Type.DateMillisecond:t=n.visitDateMillisecond||n.visitDate;break;case Type.Timestamp:t=n.visitTimestamp;break;case Type.TimestampSecond:t=n.visitTimestampSecond||n.visitTimestamp;break;case Type.TimestampMillisecond:t=n.visitTimestampMillisecond||n.visitTimestamp;break;case Type.TimestampMicrosecond:t=n.visitTimestampMicrosecond||n.visitTimestamp;break;case Type.TimestampNanosecond:t=n.visitTimestampNanosecond||n.visitTimestamp;break;case Type.Time:t=n.visitTime;break;case Type.TimeSecond:t=n.visitTimeSecond||n.visitTime;break;case Type.TimeMillisecond:t=n.visitTimeMillisecond||n.visitTime;break;case Type.TimeMicrosecond:t=n.visitTimeMicrosecond||n.visitTime;break;case Type.TimeNanosecond:t=n.visitTimeNanosecond||n.visitTime;break;case Type.Decimal:t=n.visitDecimal;break;case Type.List:t=n.visitList;break;case Type.Struct:t=n.visitStruct;break;case Type.Union:t=n.visitUnion;break;case Type.DenseUnion:t=n.visitDenseUnion||n.visitUnion;break;case Type.SparseUnion:t=n.visitSparseUnion||n.visitUnion;break;case Type.Dictionary:t=n.visitDictionary;break;case Type.Interval:t=n.visitInterval;break;case Type.IntervalDayTime:t=n.visitIntervalDayTime||n.visitInterval;break;case Type.IntervalYearMonth:t=n.visitIntervalYearMonth||n.visitInterval;break;case Type.IntervalMonthDayNano:t=n.visitIntervalMonthDayNano||n.visitInterval;break;case Type.Duration:t=n.visitDuration;break;case Type.DurationSecond:t=n.visitDurationSecond||n.visitDuration;break;case Type.DurationMillisecond:t=n.visitDurationMillisecond||n.visitDuration;break;case Type.DurationMicrosecond:t=n.visitDurationMicrosecond||n.visitDuration;break;case Type.DurationNanosecond:t=n.visitDurationNanosecond||n.visitDuration;break;case Type.FixedSizeList:t=n.visitFixedSizeList;break;case Type.Map:t=n.visitMap;break}if(typeof t=="function")return t;if(!e)return()=>null;throw new Error(`Unrecognized type '${Type[o]}'`)}function inferDType(n){switch(n.typeId){case Type.Null:return Type.
20Null;case Type.Int:{const{bitWidth:o,isSigned:e}=n;switch(o){case 8:return e?Type.Int8:Type.Uint8;case 16:return e?Type.Int16:Type.Uint16;case 32:return e?Type.Int32:Type.Uint32;case 64:return e?Type.Int64:Type.Uint64}return Type.Int}case Type.Float:switch(n.precision){case Precision.HALF:return Type.Float16;case Precision.SINGLE:return Type.Float32;case Precision.DOUBLE:return Type.Float64}return Type.Float;case Type.Binary:return Type.Binary;case Type.LargeBinary:return Type.LargeBinary;case Type.Utf8:return Type.Utf8;case Type.LargeUtf8:return Type.LargeUtf8;case Type.Bool:return Type.Bool;case Type.Decimal:return Type.Decimal;case Type.Time:switch(n.unit){case TimeUnit.SECOND:return Type.TimeSecond;case TimeUnit.MILLISECOND:return Type.TimeMillisecond;case TimeUnit.MICROSECOND:return Type.TimeMicrosecond;case TimeUnit.NANOSECOND:return Type.TimeNanosecond}return Type.Time;case Type.Timestamp:switch(n.unit){case TimeUnit.SECOND:return Type.TimestampSecond;case TimeUnit.MILLISECOND:return Type.TimestampMillisecond;case TimeUnit.MICROSECOND:return Type.TimestampMicrosecond;case TimeUnit.NANOSECOND:return Type.TimestampNanosecond}return Type.Timestamp;case Type.Date:switch(n.unit){case DateUnit.DAY:return Type.DateDay;case DateUnit.MILLISECOND:return Type.DateMillisecond}return Type.Date;case Type.Interval:switch(n.unit){case IntervalUnit.DAY_TIME:return Type.IntervalDayTime;case IntervalUnit.YEAR_MONTH:return Type.IntervalYearMonth;case IntervalUnit.MONTH_DAY_NANO:return Type.IntervalMonthDayNano}return Type.Interval;case Type.Duration:switch(n.unit){case TimeUnit.SECOND:return Type.DurationSecond;case TimeUnit.MILLISECOND:return Type.DurationMillisecond;case TimeUnit.MICROSECOND:return Type.DurationMicrosecond;case TimeUnit.NANOSECOND:return Type.DurationNanosecond}return Type.Duration;case Type.Map:return Type.Map;case Type.List:return Type.List;case Type.Struct:return Type.Struct;case Type.Union:switch(n.mode){case UnionMode.Dense:return Type.DenseUnion;case UnionMode.Sparse:return Type.SparseUnion}return Type.Union;case Type.FixedSizeBinary:return Type.FixedSizeBinary;case Type.FixedSizeList:return Type.FixedSizeList;case Type.Dictionary:return Type.Dictionary}throw new Error(`Unrecognized type '${Type[n.typeId]}'`)}Visitor.prototype.visitInt8=null;Visitor.prototype.visitInt16=null;Visitor.prototype.visitInt32=null;Visitor.prototype.visitInt64=null;Visitor.prototype.visitUint8=null;Visitor.prototype.visitUint16=null;Visitor.prototype.visitUint32=null;Visitor.prototype.visitUint64=null;Visitor.prototype.visitFloat16=null;Visitor.prototype.visitFloat32=null;Visitor.prototype.visitFloat64=null;Visitor.prototype.visitDateDay=null;Visitor.prototype.visitDateMillisecond=null;Visitor.prototype.visitTimestampSecond=null;Visitor.prototype.visitTimestampMillisecond=null;Visitor.prototype.visitTimestampMicrosecond=null;Visitor.prototype.visitTimestampNanosecond=null;Visitor.prototype.visitTimeSecond=null;Visitor.prototype.visitTimeMillisecond=null;Visitor.prototype.visitTimeMicrosecond=null;Visitor.prototype.visitTimeNanosecond=null;Visitor.prototype.visitDenseUnion=null;Visitor.prototype.visitSparseUnion=null;Visitor.prototype.visitIntervalDayTime=null;Visitor.prototype.visitIntervalYearMonth=null;Visitor.prototype.visitIntervalMonthDayNano=null;Visitor.prototype.visitDuration=null;Visitor.prototype.visitDurationSecond=null;Visitor.prototype.visitDurationMillisecond=null;Visitor.prototype.visitDurationMicrosecond=null;Visitor.prototype.visitDurationNanosecond=null;const f64=new Float64Array(1),u32=new Uint32Array(f64.buffer);function uint16ToFloat64(n){const o=(n&31744)>>10,e=(n&1023)/1024,t=Math.pow(-1,(n&32768)>>15);switch(o){case 31:return t*(e?Number.NaN:1/0);case 0:return t*(e?6103515625e-14*e:0)}return t*Math.pow(2,o-15)*(1+e)}function float64ToUint16(n){if(n!==n)return 32256;f64[0]=n;const o=(u32[1]&2147483648)>>16&65535;let e=u32[1]&2146435072,t=0;return e>=1089470464?u32[0]>0?e=31744:(e=(e&2080374784)>>16,t=(u32[1]&1048575)>>10):e<=1056964608?(t=1048576+(u32[1]&1048575),t=1048576+(t<<(e>>20)-998)>>21,e=0):(e=e-1056964608>>10,t=(u32[1]&1048575)+512>>10),o|e|t&65535}const util_math_=Object.freeze(Object.defineProperty({__proto__:null,float64ToUint16,uint16ToFloat64},Symbol.toStringTag,{value:"Module"}));class SetVisitor extends Visitor{}function wrapSet(n){return(o,e,t)=>{if(o.setValid(e,t!=null))return n(o,e,t)}}const setEpochMsToDays=(n,o,e)=>{n[o]=Math.floor(e/864e5)},setVariableWidthBytes=(n,o,e,t)=>{if(e+1<o.length){const c=bigIntToNumber(o[e]),p=bigIntToNumber(o[e+1]);n.set(t.subarray(0,p-c),c)}},setBool$1=({offset:n,values:o},e,t)=>{const c=n+e;t?o[c>>3]|=1<<c%8:o[c>>3]&=~(1<<c%8)},setInt=({values:n},o,e)=>{n[o]=e},setFloat=({values:n},o,e)=>{n[o]=e},setFloat16=({values:n},o,e)=>{n[o]=float64ToUint16(e)},setAnyFloat=(n,o,e)=>{switch(n.type.precision){case Precision.HALF:return setFloat16(n,o,e);
vendor: 7,117 bytes, line 20
20case Precision.SINGLE:case Precision.DOUBLE:return setFloat(n,o,e)}},setDateDay=({values:n},o,e)=>{setEpochMsToDays(n,o,e.valueOf())},setDateMillisecond=({values:n},o,e)=>{n[o]=BigInt(e)},setFixedSizeBinary=({stride:n,values:o},e,t)=>{o.set(t.subarray(0,n),n*e)},setBinary=({values:n,valueOffsets:o},e,t)=>setVariableWidthBytes(n,o,e,t),setUtf8=({values:n,valueOffsets:o},e,t)=>setVariableWidthBytes(n,o,e,encodeUtf8(t)),setDate=(n,o,e)=>{n.type.unit===DateUnit.DAY?setDateDay(n,o,e):setDateMillisecond(n,o,e)},setTimestampSecond=({values:n},o,e)=>{n[o]=BigInt(e/1e3)},setTimestampMillisecond=({values:n},o,e)=>{n[o]=BigInt(e)},setTimestampMicrosecond=({values:n},o,e)=>{n[o]=BigInt(e*1e3)},setTimestampNanosecond=({values:n},o,e)=>{n[o]=BigInt(e*1e6)},setTimestamp=(n,o,e)=>{switch(n.type.unit){case TimeUnit.SECOND:return setTimestampSecond(n,o,e);case TimeUnit.MILLISECOND:return setTimestampMillisecond(n,o,e);case TimeUnit.MICROSECOND:return setTimestampMicrosecond(n,o,e);case TimeUnit.NANOSECOND:return setTimestampNanosecond(n,o,e)}},setTimeSecond=({values:n},o,e)=>{n[o]=e},setTimeMillisecond=({values:n},o,e)=>{n[o]=e},setTimeMicrosecond=({values:n},o,e)=>{n[o]=e},setTimeNanosecond=({values:n},o,e)=>{n[o]=e},setTime=(n,o,e)=>{switch(n.type.unit){case TimeUnit.SECOND:return setTimeSecond(n,o,e);case TimeUnit.MILLISECOND:return setTimeMillisecond(n,o,e);case TimeUnit.MICROSECOND:return setTimeMicrosecond(n,o,e);case TimeUnit.NANOSECOND:return setTimeNanosecond(n,o,e)}},setDecimal=({values:n,stride:o},e,t)=>{n.set(t.subarray(0,o),o*e)},setList=(n,o,e)=>{const t=n.children[0],c=n.valueOffsets,p=instance$5.getVisitFn(t);if(Array.isArray(e))for(let h=-1,y=c[o],g=c[o+1];y<g;)p(t,y++,e[++h]);else for(let h=-1,y=c[o],g=c[o+1];y<g;)p(t,y++,e.get(++h))},setMap=(n,o,e)=>{const t=n.children[0],{valueOffsets:c}=n,p=instance$5.getVisitFn(t);let{[o]:h,[o+1]:y}=c;const g=e instanceof Map?e.entries():Object.entries(e);for(const $ of g)if(p(t,h,$),++h>=y)break},_setStructArrayValue=(n,o)=>(e,t,c,p)=>t&&e(t,n,o[p]),_setStructVectorValue=(n,o)=>(e,t,c,p)=>t&&e(t,n,o.get(p)),_setStructMapValue=(n,o)=>(e,t,c,p)=>t&&e(t,n,o.get(c.name)),_setStructObjectValue=(n,o)=>(e,t,c,p)=>t&&e(t,n,o[c.name]),setStruct=(n,o,e)=>{const t=n.type.children.map(p=>instance$5.getVisitFn(p.type)),c=e instanceof Map?_setStructMapValue(o,e):e instanceof Vector?_setStructVectorValue(o,e):Array.isArray(e)?_setStructArrayValue(o,e):_setStructObjectValue(o,e);n.type.children.forEach((p,h)=>c(t[h],n.children[h],p,h))},setUnion=(n,o,e)=>{n.type.mode===UnionMode.Dense?setDenseUnion(n,o,e):setSparseUnion(n,o,e)},setDenseUnion=(n,o,e)=>{const t=n.type.typeIdToChildIndex[n.typeIds[o]],c=n.children[t];instance$5.visit(c,n.valueOffsets[o],e)},setSparseUnion=(n,o,e)=>{const t=n.type.typeIdToChildIndex[n.typeIds[o]],c=n.children[t];instance$5.visit(c,o,e)},setDictionary=(n,o,e)=>{var t;(t=n.dictionary)===null||t===void 0||t.set(n.values[o],e)},setIntervalValue=(n,o,e)=>{switch(n.type.unit){case IntervalUnit.YEAR_MONTH:return setIntervalYearMonth(n,o,e);case IntervalUnit.DAY_TIME:return setIntervalDayTime(n,o,e);case IntervalUnit.MONTH_DAY_NANO:return setIntervalMonthDayNano(n,o,e)}},setIntervalDayTime=({values:n},o,e)=>{n.set(e.subarray(0,2),2*o)},setIntervalYearMonth=({values:n},o,e)=>{n[o]=e[0]*12+e[1]%12},setIntervalMonthDayNano=({values:n,stride:o},e,t)=>{n.set(t.subarray(0,o),o*e)},setDurationSecond=({values:n},o,e)=>{n[o]=e},setDurationMillisecond=({values:n},o,e)=>{n[o]=e},setDurationMicrosecond=({values:n},o,e)=>{n[o]=e},setDurationNanosecond=({values:n},o,e)=>{n[o]=e},setDuration=(n,o,e)=>{switch(n.type.unit){case TimeUnit.SECOND:return setDurationSecond(n,o,e);case TimeUnit.MILLISECOND:return setDurationMillisecond(n,o,e);case TimeUnit.MICROSECOND:return setDurationMicrosecond(n,o,e);case TimeUnit.NANOSECOND:return setDurationNanosecond(n,o,e)}},setFixedSizeList=(n,o,e)=>{const{stride:t}=n,c=n.children[0],p=instance$5.getVisitFn(c);if(Array.isArray(e))for(let h=-1,y=o*t;++h<t;)p(c,y+h,e[h]);else for(let h=-1,y=o*t;++h<t;)p(c,y+h,e.get(h))};SetVisitor.prototype.visitBool=wrapSet(setBool$1);SetVisitor.prototype.visitInt=wrapSet(setInt);SetVisitor.prototype.visitInt8=wrapSet(setInt);SetVisitor.prototype.visitInt16=wrapSet(setInt);SetVisitor.prototype.visitInt32=wrapSet(setInt);SetVisitor.prototype.visitInt64=wrapSet(setInt);SetVisitor.prototype.visitUint8=wrapSet(setInt);SetVisitor.prototype.visitUint16=wrapSet(setInt);SetVisitor.prototype.visitUint32=wrapSet(setInt);SetVisitor.prototype.visitUint64=wrapSet(setInt);SetVisitor.prototype.visitFloat=wrapSet(setAnyFloat);SetVisitor.prototype.visitFloat16=wrapSet(setFloat16);SetVisitor.prototype.visitFloat32=wrapSet(setFloat);SetVisitor.prototype.visitFloat64=wrapSet(setFloat);SetVisitor.prototype.visitUtf8=wrapSet(setUtf8);SetVisitor.prototype.visitLargeUtf8=wrapSet(setUtf8);SetVisitor.prototype.visitBinary=wrapSet(setBinary);SetVisitor.prototype.visitLargeBinary=wrapSet(setBinary);SetVisitor.prototype.visitFixedSizeBinary=wrapSet(setFixedSizeBinary);SetVisitor.prototype.visitDate=wrapSet(setDate);SetVisitor.prototype.visitDateDay=wrapSet(setDateDay);SetVisitor.prototype.visitDateMillisecond=wrapSet(setDateMillisecond);SetVisitor.prototype.visitTimestamp=wrapSet(setTimestamp);SetVisitor.prototype.visitTimestampSecond=wrapSet(setTimestampSecond);SetVisitor.prototype.visitTimestampMillisecond=wrapSet(setTimestampMillisecond);SetVisitor.prototype.visitTimestampMicrosecond=wrapSet(setTimestampMicrosecond);SetVisitor.prototype.visitTimestampNanosecond=wrapSet(setTimestampNanosecond);SetVisitor.prototype.visitTime=wrapSet(setTime);SetVisitor.prototype.visitTimeSecond=wrapSet(setTimeSecond);SetVisitor.prototype.visitTimeMillisecond=wrapSet(setTimeMillisecond);SetVisitor.prototype.visitTimeMicrosecond=wrapSet(setTimeMicrosecond);SetVisitor.prototype.visitTimeNanosecond=wrapSet(setTimeNanosecond);SetVisitor.prototype.visitDecimal=wrapSet(setDecimal);SetVisitor.prototype.visitList=wrapSet(setList);SetVisitor.prototype.visitStruct=wrapSet(setStruct);SetVisitor.prototype.visitUnion=wrapSet(setUnion);SetVisitor.prototype.visitDenseUnion=wrapSet(setDenseUnion);SetVisitor.prototype.visitSparseUnion=wrapSet(setSparseUnion);SetVisitor.prototype.visitDictionary=wrapSet(setDictionary);SetVisitor.prototype.visitInterval=wrapSet(setIntervalValue);SetVisitor.prototype.visitIntervalDayTime=wrapSet(setIntervalDayTime);SetVisitor.prototype.visitIntervalYearMonth=wrapSet(setIntervalYearMonth);SetVisitor.prototype.visitIntervalMonthDayNano=wrapSet(setIntervalMonthDayNano);SetVisitor.prototype.visitDuration=wrapSet(setDuration);SetVisitor.prototype.visitDurationSecond=wrapSet(setDurationSecond);SetVisitor.prototype.visitDurationMillisecond=wrapSet(setDurationMillisecond);SetVisitor.prototype.visitDurationMicrosecond=wrapSet(setDurationMicrosecond);SetVisitor.prototype.visitDurationNanosecond=wrapSet(setDurationNanosecond);SetVisitor.prototype.visitFixedSizeList=wrapSet(setFixedSizeList);SetVisitor.prototype.visitMap=wrapSet(setMap);const instance$5=new SetVisitor,kParent=Symbol.for("parent"),kRowIndex=Symbol.for("rowIndex");
20class StructRow{constructor(o,e){return this[kParent]=o,this[kRowIndex]=e,new Proxy(this,structRowProxyHandler)}toArray(){return Object.values(this.toJSON())}toJSON(){const o=this[kRowIndex],e=this[kParent],t=e.type.children,c={};for(let p=-1,h=t.length;++p<h;)c[t[p].name]=instance$4.visit(e.children[p],o);return c}toString(){return`{${[...this].map(([o,e])=>`${valueToString(o)}: ${valueToString(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new StructRowIterator(this[kParent],this[kRowIndex])}}class StructRowIterator{constructor(o,e){this.childIndex=0,this.children=o.children,this.rowIndex=e,this.childFields=o.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const o=this.childIndex;return o<this.numChildren?(this.childIndex=o+1,{done:!1,value:[this.childFields[o].name,instance$4.visit(this.children[o],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(StructRow.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[kParent]:{writable:!0,enumerable:!1,configurable:!1,value:null},[kRowIndex]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class StructRowProxyHandler{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(o){return o[kParent].type.children.map(e=>e.name)}has(o,e){return o[kParent].type.children.some(t=>t.name===e)}getOwnPropertyDescriptor(o,e){if(o[kParent].type.children.some(t=>t.name===e))return{writable:!0,enumerable:!0,configurable:!0}}get(o,e){if(Reflect.has(o,e))return o[e];const t=o[kParent].type.children.findIndex(c=>c.name===e);if(t!==-1){const c=instance$4.visit(o[kParent].children[t],o[kRowIndex]);return Reflect.set(o,e,c),c}}set(o,e,t){const c=o[kParent].type.children.findIndex(p=>p.name===e);return c!==-1?(instance$5.visit(o[kParent].children[c],o[kRowIndex],t),Reflect.set(o,e,t)):Reflect.has(o,e)||typeof e=="symbol"?Reflect.set(o,e,t):!1}}const structRowProxyHandler=new StructRowProxyHandler;class GetVisitor extends Visitor{}function wrapGet(n){return(o,e)=>o.getValid(e)?n(o,e):null}const epochDaysToMs=(n,o)=>864e5*n[o],getNull=(n,o)=>null,getVariableWidthBytes=(n,o,e)=>{if(e+1>=o.length)return null;const t=bigIntToNumber(o[e]),c=bigIntToNumber(o[e+1]);return n.subarray(t,c)},getBool$1=({offset:n,values:o},e)=>{const t=n+e;return(o[t>>3]&1<<t%8)!==0},getDateDay=({values:n},o)=>epochDaysToMs(n,o),getDateMillisecond=({values:n},o)=>bigIntToNumber(n[o]),getNumeric=({stride:n,values:o},e)=>o[n*e],getFloat16=({stride:n,values:o},e)=>uint16ToFloat64(o[n*e]),getBigInts=({values:n},o)=>n[o],getFixedSizeBinary=({stride:n,values:o},e)=>o.subarray(n*e,n*(e+1)),getBinary=({values:n,valueOffsets:o},e)=>getVariableWidthBytes(n,o,e),getUtf8=({values:n,valueOffsets:o},e)=>{const t=getVariableWidthBytes(n,o,e);return t!==null?decodeUtf8(t):null},getInt=({values:n},o)=>n[o],getFloat=({type:n,values:o},e)=>n.precision!==Precision.HALF?o[e]:uint16ToFloat64(o[e]),getDate=(n,o)=>n.type.unit===DateUnit.DAY?getDateDay(n,o):getDateMillisecond(n,o),getTimestampSecond=({values:n},o)=>1e3*bigIntToNumber(n[o]),getTimestampMillisecond=({values:n},o)=>bigIntToNumber(n[o]),getTimestampMicrosecond=({values:n},o)=>divideBigInts(n[o],BigInt(1e3)),getTimestampNanosecond=({values:n},o)=>divideBigInts(n[o],BigInt(1e6)),getTimestamp=(n,o)=>{switch(n.type.unit){case TimeUnit.SECOND:return getTimestampSecond(n,o);case TimeUnit.MILLISECOND:return getTimestampMillisecond(n,o);case TimeUnit.MICROSECOND:return getTimestampMicrosecond(n,o);case TimeUnit.NANOSECOND:return getTimestampNanosecond(n,o)}},getTimeSecond=({values:n},o)=>n[o],getTimeMillisecond=({values:n},o)=>n[o],getTimeMicrosecond=({values:n},o)=>n[o],getTimeNanosecond=({values:n},o)=>n[o],getTime=(n,o)=>{switch(n.type.unit){case TimeUnit.SECOND:return getTimeSecond(n,o);case TimeUnit.MILLISECOND:return getTimeMillisecond(n,o);case TimeUnit.MICROSECOND:return getTimeMicrosecond(n,o);case TimeUnit.NANOSECOND:return getTimeNanosecond(n,o)}},getDecimal=({values:n,stride:o},e)=>BN.decimal(n.subarray(o*e,o*(e+1))),getList=(n,o)=>{const{valueOffsets:e,stride:t,children:c}=n,{[o*t]:p,[o*t+1]:h}=e,g=c[0].slice(p,h-p);return new Vector([g])},getMap=(n,o)=>{const{valueOffsets:e,children:t}=n,{[o]:c,[o+1]:p}=e,h=t[0];return new MapRow(h.slice(c,p-c))},getStruct=(n,o)=>new StructRow(n,o),getUnion=(n,o)=>n.type.mode===UnionMode.Dense?getDenseUnion(n,o):getSparseUnion(n,o),getDenseUnion=(n,o)=>{const e=n.type.typeIdToChildIndex[n.typeIds[o]],t=n.children[e];return instance$4.visit(t,n.valueOffsets[o])},getSparseUnion=(n,o)=>{const e=n.type.typeIdToChildIndex[n.typeIds[o]],t=n.children[e];return instance$4.visit(t,o)},getDictionary=(n,o)=>{var e;return(e=n.dictionary)===null||e===void 0?void 0:e.get(n.values[o])},getInterval=(n,o)=>n.type.unit===IntervalUnit.MONTH_DAY_NANO?getIntervalMonthDayNano(n,o):n.type.unit===IntervalUnit.DAY_TIME?getIntervalDayTime(n,o):getIntervalYearMonth(n,o),getIntervalDayTime=({values:n},o)=>n.subarray(2*o,2*(o+1)),getIntervalYearMonth=({values:n},o)=>{const e=n[o],t=new Int32Array(2);return t[0]=Math.trunc(e/12),t[1]=Math.trunc(e%12),t},getIntervalMonthDayNano=({values:n},o)=>n.subarray(4*o,4*(o+1)),getDurationSecond=({values:n},o)=>n[o],getDurationMillisecond=({values:n},o)=>n[o],getDurationMicrosecond=({values:n},o)=>n[o],getDurationNanosecond=({values:n},o)=>n[o],getDuration=(n,o)=>{switch(n.type.unit){case TimeUnit.SECOND:return getDurationSecond(n,o);case TimeUnit.MILLISECOND:return getDurationMillisecond(n,o);case TimeUnit.MICROSECOND:return getDurationMicrosecond(n,o);case TimeUnit.NANOSECOND:return getDurationNanosecond(n,o)}},getFixedSizeList=(n,o)=>{const{stride:e,children:t}=n,p=t[0].slice(o*e,e);return new Vector([p])};GetVisitor.prototype.visitNull=wrapGet(getNull);GetVisitor.prototype.visitBool=wrapGet(getBool$1);GetVisitor.prototype.visitInt=wrapGet(getInt);GetVisitor.prototype.visitInt8=wrapGet(getNumeric);GetVisitor.prototype.visitInt16=wrapGet(getNumeric);GetVisitor.prototype.visitInt32=wrapGet(getNumeric);GetVisitor.prototype.visitInt64=wrapGet(getBigInts);GetVisitor.prototype.visitUint8=wrapGet(getNumeric);GetVisitor.prototype.visitUint16=wrapGet(getNumeric);GetVisitor.prototype.visitUint32=wrapGet(getNumeric);GetVisitor.prototype.visitUint64=wrapGet(getBigInts);GetVisitor.prototype.visitFloat=wrapGet(getFloat);GetVisitor.prototype.visitFloat16=wrapGet(getFloat16);GetVisitor.prototype.visitFloat32=wrapGet(getNumeric);GetVisitor.prototype.visitFloat64=wrapGet(getNumeric);GetVisitor.prototype.visitUtf8=wrapGet(getUtf8);GetVisitor.prototype.visitLargeUtf8=wrapGet(getUtf8);GetVisitor.prototype.visitBinary=wrapGet(getBinary);GetVisitor.prototype.visitLargeBinary=wrapGet(getBinary);GetVisitor.prototype.visitFixedSizeBinary=wrapGet(getFixedSizeBinary);GetVisitor.prototype.visitDate=wrapGet(getDate);GetVisitor.prototype.visitDateDay=wrapGet(getDateDay);GetVisitor.prototype.visitDateMillisecond=wrapGet(getDateMillisecond);GetVisitor.prototype.visitTimestamp=wrapGet(getTimestamp);GetVisitor.prototype.visitTimestampSecond=wrapGet(getTimestampSecond);GetVisitor.prototype.visitTimestampMillisecond=wrapGet(getTimestampMillisecond);GetVisitor.prototype.visitTimestampMicrosecond=wrapGet(getTimestampMicrosecond);GetVisitor.prototype.visitTimestampNanosecond=wrapGet(getTimestampNanosecond);GetVisitor.prototype.visitTime=wrapGet(getTime);GetVisitor.prototype.visitTimeSecond=wrapGet(getTimeSecond);GetVisitor.prototype.visitTimeMillisecond=wrapGet(getTimeMillisecond);GetVisitor.prototype.visitTimeMicrosecond=wrapGet(getTimeMicrosecond);GetVisitor.prototype.visitTimeNanosecond=wrapGet(getTimeNanosecond);GetVisitor.prototype.visitDecimal=wrapGet(getDecimal);GetVisitor.prototype.visitList=wrapGet(getList);GetVisitor.prototype.visitStruct=wrapGet(getStruct);GetVisitor.prototype.visitUnion=wrapGet(getUnion);GetVisitor.prototype.visitDenseUnion=wrapGet(getDenseUnion);GetVisitor.prototype.visitSparseUnion=wrapGet(getSparseUnion);GetVisitor.prototype.visitDictionary=wrapGet(getDictionary);GetVisitor.prototype.visitInterval=wrapGet(getInterval);GetVisitor.prototype.visitIntervalDayTime=wrapGet(getIntervalDayTime);GetVisitor.prototype.visitIntervalYearMonth=wrapGet(getIntervalYearMonth);GetVisitor.prototype.visitIntervalMonthDayNano=wrapGet(getIntervalMonthDayNano);GetVisitor.prototype.visitDuration=wrapGet(getDuration);GetVisitor.prototype.visitDurationSecond=wrapGet(getDurationSecond);GetVisitor.prototype.visitDurationMillisecond=wrapGet(getDurationMillisecond);GetVisitor.prototype.visitDurationMicrosecond=wrapGet(getDurationMicrosecond);GetVisitor.prototype.visitDurationNanosecond=wrapGet(getDurationNanosecond);GetVisitor.prototype.visitFixedSizeList=wrapGet(getFixedSizeList);GetVisitor.prototype.visitMap=wrapGet(getMap);const instance$4=new GetVisitor,kKeys=Symbol.for("keys"),kVals=Symbol.for("vals"),kKeysAsStrings=Symbol.for("kKeysAsStrings"),_kKeysAsStrings=Symbol.for("_kKeysAsStrings");class MapRow{constructor(o){return this[kKeys]=new Vector([o.children[0]]).memoize(),this[kVals]=o.children[1],new Proxy(this,new MapRowProxyHandler)}get[kKeysAsStrings](){return this[_kKeysAsStrings]||(this[_kKeysAsStrings]=Array.from(this[kKeys].toArray(),String))}[Symbol.iterator](){return new MapRowIterator(this[kKeys],this[kVals])}get size(){return this[kKeys].length}toArray(){return Object.values(this.toJSON())}toJSON(){const o=this[kKeys],e=this[kVals],t={};for(let c=-1,p=o.length;++c<p;)t[o.get(c)]=instance$4.visit(e,c);return t}toString(){return`{${[...this].map(([o,e])=>`${valueToString(o)}: ${valueToString(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class MapRowIterator{constructor(o,e){this.keys=o,this.vals=e,this.keyIndex=0,this.numKe
20ys=o.length}[Symbol.iterator](){return this}next(){const o=this.keyIndex;return o===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(o),instance$4.visit(this.vals,o)]})}}class MapRowProxyHandler{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(o){return o[kKeysAsStrings]}has(o,e){return o[kKeysAsStrings].includes(e)}getOwnPropertyDescriptor(o,e){if(o[kKeysAsStrings].indexOf(e)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(o,e){if(Reflect.has(o,e))return o[e];const t=o[kKeysAsStrings].indexOf(e);if(t!==-1){const c=instance$4.visit(Reflect.get(o,kVals),t);return Reflect.set(o,e,c),c}}set(o,e,t){const c=o[kKeysAsStrings].indexOf(e);return c!==-1?(instance$5.visit(Reflect.get(o,kVals),c,t),Reflect.set(o,e,t)):Reflect.has(o,e)?Reflect.set(o,e,t):!1}}Object.defineProperties(MapRow.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[kKeys]:{writable:!0,enumerable:!1,configurable:!1,value:null},[kVals]:{writable:!0,enumerable:!1,configurable:!1,value:null},[_kKeysAsStrings]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let tmp;function clampRange(n,o,e,t){const{length:c=0}=n;let p=typeof o!="number"?0:o,h=typeof e!="number"?c:e;return p<0&&(p=(p%c+c)%c),h<0&&(h=(h%c+c)%c),h<p&&(tmp=p,p=h,h=tmp),h>c&&(h=c),t?t(n,p,h):[p,h]}const wrapIndex=(n,o)=>n<0?o+n:n,isNaNFast=n=>n!==n;function createElementComparator(n){if(typeof n!=="object"||n===null)return isNaNFast(n)?isNaNFast:e=>e===n;if(n instanceof Date){const e=n.valueOf();return t=>t instanceof Date?t.valueOf()===e:!1}return ArrayBuffer.isView(n)?e=>e?compareArrayLike(n,e):!1:n instanceof Map?createMapComparator(n):Array.isArray(n)?createArrayLikeComparator(n):n instanceof Vector?createVectorComparator(n):createObjectComparator(n,!0)}function createArrayLikeComparator(n){const o=[];for(let e=-1,t=n.length;++e<t;)o[e]=createElementComparator(n[e]);return createSubElementsComparator(o)}function createMapComparator(n){let o=-1;const e=[];for(const t of n.values())e[++o]=createElementComparator(t);return createSubElementsComparator(e)}function createVectorComparator(n){const o=[];for(let e=-1,t=n.length;++e<t;)o[e]=createElementComparator(n.get(e));return createSubElementsComparator(o)}function createObjectComparator(n,o=!1){const e=Object.keys(n);if(!o&&e.length===0)return()=>!1;const t=[];for(let c=-1,p=e.length;++c<p;)t[c]=createElementComparator(n[e[c]]);return createSubElementsComparator(t,e)}function createSubElementsComparator(n,o){return e=>{if(!e||typeof e!="object")return!1;switch(e.constructor){case Array:return compareArray$1(n,e);case Map:return compareObject(n,e,e.keys());case MapRow:case StructRow:case Object:case void 0:return compareObject(n,e,o||Object.keys(e))}return e instanceof Vector?compareVector(n,e):!1}}function compareArray$1(n,o){const e=n.length;if(o.length!==e)return!1;for(let t=-1;++t<e;)if(!n[t](o[t]))return!1;return!0}function compareVector(n,o){const e=n.length;if(o.length!==e)return!1;for(let t=-1;++t<e;)if(!n[t](o.get(t)))return!1;return!0}function compareObject(n,o,e){const t=e[Symbol.iterator](),c=o instanceof Map?o.keys():Object.keys(o)[Symbol.iterator](),p=o instanceof Map?o.values():Object.values(o)[Symbol.iterator]();let h=0;const y=n.length;let g=p.next(),$=t.next(),E=c.next();for(;h<y&&!$.done&&!E.done&&!g.done&&!($.value!==E.value||!n[h](g.value));++h,$=t.next(),E=c.next(),g=p.next());return h===y&&$.done&&E.done&&g.done?!0:(t.return&&t.return(),c.return&&c.return(),p.return&&p.return(),!1)}const util_vector_=Object.freeze(Object.defineProperty({__proto__:null,clampRange,createElementComparator,wrapIndex},Symbol.toStringTag,{value:"Module"}));function getBool(n,o,e,t){return(e&1<<t)!==0}function getBit(n,o,e,t){return(e&1<<t)>>t}function setBool(n,o,e){return e?!!(n[o>>3]|=1<<o%8)||!0:!(n[o>>3]&=~(1<<o%8))&&!1}function truncateBitmap(n,o,e){const t=e.byteLength+7&-8;if(n>0||e.byteLength<t){const c=new Uint8Array(t);return c.set(n%8===0?e.subarray(n>>3):packBools(new BitIterator(e,n,o,null,getBool)).subarray(0,t)),c}return e}function packBools(n){const o=[];let e=0,t=0,c=0;for(const h of n)h&&(c|=1<<t),++t===8&&(o[e++]=c,c=t=0);(e===0||t>0)&&(o[e++]=c);const p=new Uint8Array(o.length+7&-8);return p.set(o),p}class BitIterator{constructor(o,e,t,c,p){this.bytes=o,this.length=t,this.context=c,this.get=p,this.bit=e%8,this.byteIndex=e>>3,this.byte=o[this.byteIndex++],this.index=0}
20next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function popcnt_bit_range(n,o,e){if(e-o<=0)return 0;if(e-o<8){let p=0;for(const h of new BitIterator(n,o,e-o,n,getBit))p+=h;return p}const t=e>>3<<3,c=o+(o%8===0?0:8-o%8);return popcnt_bit_range(n,o,c)+popcnt_bit_range(n,t,e)+popcnt_array(n,c>>3,t-c>>3)}function popcnt_array(n,o,e){let t=0,c=Math.trunc(o);const p=new DataView(n.buffer,n.byteOffset,n.byteLength),h=e===void 0?n.byteLength:c+e;for(;h-c>=4;)t+=popcnt_uint32(p.getUint32(c)),c+=4;for(;h-c>=2;)t+=popcnt_uint32(p.getUint16(c)),c+=2;for(;h-c>=1;)t+=popcnt_uint32(p.getUint8(c)),c+=1;return t}function popcnt_uint32(n){let o=Math.trunc(n);return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24}const util_bit_=Object.freeze(Object.defineProperty({__proto__:null,BitIterator,getBit,getBool,packBools,popcnt_array,popcnt_bit_range,popcnt_uint32,setBool,truncateBitmap},Symbol.toStringTag,{value:"Module"})),kUnknownNullCount=-1;class Data{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){const{type:o}=this;return DataType.isSparseUnion(o)?this.children.some(e=>e.nullable):DataType.isDenseUnion(o)?this.children.some(e=>e.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let o=0;const{valueOffsets:e,values:t,nullBitmap:c,typeIds:p}=this;return e&&(o+=e.byteLength),t&&(o+=t.byteLength),c&&(o+=c.byteLength),p&&(o+=p.byteLength),this.children.reduce((h,y)=>h+y.byteLength,o)}get nullCount(){if(DataType.isUnion(this.type))return this.children.reduce((t,c)=>t+c.nullCount,0);let o=this._nullCount,e;return o<=kUnknownNullCount&&(e=this.nullBitmap)&&(this._nullCount=o=e.length===0?0:this.length-popcnt_bit_range(e,this.offset,this.offset+this.length)),o}constructor(o,e,t,c,p,h=[],y){this.type=o,this.children=h,this.dictionary=y,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(t||0,0)),this._nullCount=Math.floor(Math.max(c||0,-1));let g;p instanceof Data?(this.stride=p.stride,this.values=p.values,this.typeIds=p.typeIds,this.nullBitmap=p.nullBitmap,this.valueOffsets=p.valueOffsets):(this.stride=strideForType(o),p&&((g=p[0])&&(this.valueOffsets=g),(g=p[1])&&(this.values=g),(g=p[2])&&(this.nullBitmap=g),(g=p[3])&&(this.typeIds=g)))}getValid(o){const{type:e}=this;if(DataType.isUnion(e)){const t=e,c=this.children[t.typeIdToChildIndex[this.typeIds[o]]],p=t.mode===UnionMode.Dense?this.valueOffsets[o]:o;return c.getValid(p)}if(this.nullable&&this.nullCount>0){const t=this.offset+o;return(this.nullBitmap[t>>3]&1<<t%8)!==0}return!0}setValid(o,e){let t;const{type:c}=this;if(DataType.isUnion(c)){const p=c,h=this.children[p.typeIdToChildIndex[this.typeIds[o]]],y=p.mode===UnionMode.Dense?this.valueOffsets[o]:o;t=h.getValid(y),h.setValid(y,e)}else{let{nullBitmap:p}=this;const{offset:h,length:y}=this,g=h+o,$=1<<g%8,E=g>>3;(!p||p.byteLength<=E)&&(p=new Uint8Array((h+y+63&-64)>>3).fill(255),this.nullCount>0?(p.set(truncateBitmap(h,y,this.nullBitmap),0),Object.assign(this,{nullBitmap:p})):Object.assign(this,{nullBitmap:p,_nullCount:0}));const A=p[E];t=(A&$)!==0,p[E]=e?A|$:A&~$}return t!==!!e&&(this._nullCount=this.nullCount+(e?-1:1)),e}clone(o=this.type,e=this.offset,t=this.length,c=this._nullCount,p=this,h=this.children){return new Data(o,e,t,c,p,h,this.dictionary)}slice(o,e){const{stride:t,typeId:c,children:p}=this,h=+(this._nullCount===0)-1,y=c===16?t:1,g=this._sliceBuffers(o,e,t,c);return this.clone(this.type,this.offset+o,e,h,g,p.length===0||this.valueOffsets?p:this._sliceChildren(p,y*o,y*e))}_changeLengthAndBackfillNullBitmap(o){if(this.typeId===Type.Null)return this.clone(this.type,0,o,0);const{length:e,nullCount:t}=this,c=new Uint8Array((o+63&-64)>>3).fill(255,0,e>>3);c[e>>3]=(1<<e-(e&-8))-1,t>0&&c.set(truncateBitmap(this.offset,e,this.nullBitmap),0);const p=this.buffers;return p[BufferType.VALIDITY]=c,this.clone(this.type,0,o,t+(o-e),p)}_sliceBuffers(o,e,t,c){let p;const{buffers:h}=this;return(p=h[BufferType.TYPE])&&(h[BufferType.TYPE]=p.subarray(o,o+e)),(p=h[BufferType.OFFSET])&&(h[BufferType.OFFSET]=p.subarray(o,o+e+1))||(p=h[BufferType.DATA])&&(h[BufferType.DATA]=c===6?p:p.subarray(t*o,t*(o+e))),h}_sliceChildren(o,e,t){return o.map(c=>c.slice(e,t))}}Data.prototype.children=Object.freeze([]);class MakeDataVisitor extends Visitor{visit(o){return this.getVisitFn(o.type).call(this,o)}visitNull(o){const{["type"]:e,["offset"]:t=0,["length"]:c=0}=o;return new Data(e,t,c,c)}visitBool(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.ArrayType,o.data),{["length"]:h=p.length>>3,["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,p,c])}visitInt(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.ArrayType,o.data),{["length"]:h=p.length,["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,p,c])}visitFloat(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.ArrayType,o.data),{["length"]:h=p.length,["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,p,c])}visitUtf8(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.data),p=toUint8Array(o.nullBitmap),h=toInt32Array(o.valueOffsets),{["length"]:y=h.length-1,["nullCount"]:g=o.nullBitmap?-1:0}=o;return new Data(e,t,y,g,[h,c,p])}visitLargeUtf8(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.data),p=toUint8Array(o.nullBitmap),h=toBigInt64Array(o.valueOffsets),{["length"]:y=h.length-1,["nullCount"]:g=o.nullBitmap?-1:0}=o;return new Data(e,t,y,g,[h,c,p])}visitBinary(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.data),p=toUint8Array(o.nullBitmap),h=toInt32Array(o.valueOffsets),{["length"]:y=h.length-1,["nullCount"]:g=o.nullBitmap?-1:0}=o;return new Data(e,t,y,g,[h,c,p])}visitLargeBinary(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.data),p=toUint8Array(o.nullBitmap),h=toBigInt64Array(o.valueOffsets),{["length"]:y=h.length-1,["nullCount"]:g=o.nullBitmap?-1:0}=o;return new Data(e,t,y,g,[h,c,p])}visitFixedSizeBinary(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.ArrayType,o.data),{["length"]:h=p.length/strideForType(e),["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,p,c])}visitDate(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.ArrayType,o.data),{["length"]:h=p.length/strideForType(e),["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,p,c])}visitTimestamp(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.ArrayType,o.data),{["length"]:h=p.length/strideForType(e),["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,p,c])}visitTime(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.ArrayType,o.data),{["length"]:h=p.length/strideForType(e),["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,p,c])}visitDecimal(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.ArrayType,o.data),{["length"]:h=p.length/strideForType(e),["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,p,c])}visitList(o){const{["type"]:e,["offset"]:t=0,["child"]:c}=o,p=toUint8Array(o.nullBitmap),h=toInt32Array(o.valueOffsets),{["length"]:y=h.length-1,["nullCount"]:g=o.nullBitmap?-1:0}=o;return new Data(e,t,y,g,[h,void 0,p],[c])}visitStruct(o){const{["type"]:e,["offset"]:t=0,["children"]:c=[]}=o,p=toUint8Array(o.nullBitmap),{length:h=c.reduce((g,{length:$})=>Math.max(g,$),0),nullCount:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,void 0,p],c)}visitUnion(o){const{["type"]:e,["offset"]:t=0,["children"]:c=[]}=o,p=toArrayBufferView(e.ArrayType,o.typeIds),{["length"]:h=p.length,["nullCount"]:y=-1}=o;if(DataType.isSparseUnion(e))return new Data(e,t,h,y,[void 0,void 0,void 0,p],c);const g=toInt32Array(o.valueOffsets);return new Data(e,t,h,y,[g,void 0,void 0,p],c)}visitDictionary(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.indices.ArrayType,o.data),{["dictionary"]:h=new Vector([new MakeDataVisitor().visit({type:e.dictionary})])}=o,{["length"]:y=p.length,["nullCount"]:g=o.nullBitmap?-1:0}=o;return new Data(e,t,y,g,[void 0,p,c],[],h)}visitInterval(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.ArrayType,o.data),{["length"]:h=p.length/strideForType(e),["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,p,c])}visitDuration(o){const{["type"]:e,["offset"]:t=0}=o,c=toUint8Array(o.nullBitmap),p=toArrayBufferView(e.ArrayType,o.data),{["length"]:h=p.length,["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,p,c])}visitFixedSizeList(o){const{["type"]:e,["offset"]:t=0,["child"]:c=new MakeDataVisitor().visit({type:e.valueType})}=o,p=toUint8Array(o.nullBitmap),{["length"]:h=c.length/strideForType(e),["nullCount"]:y=o.nullBitmap?-1:0}=o;return new Data(e,t,h,y,[void 0,void 0,p],[c])}visitMap(o){const{["type"]:e,["offset"]:t=0,["child"]:c=new MakeDataVisitor().visit({type:e.childType})}=o,p=toUint8Array(o.nullBitmap),h=toInt32Array(o.valueOffsets),{["length"]:y=h.length-1,["nullCount"]:g=o.nullBitmap?-1:0}=o;return new Data(e,t,y,g,[h,void 0,p],[c])}}const makeDataVisitor=new MakeDataVisitor;function makeData(n){return makeDataVisitor.visit(n)}class ChunkedIterator{constructor(o=0,e){this.numChunks=o,this.getChunkIterator=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const o=this.chunkIterator.next();if(!o.done)return o;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function computeChunkNullable(n){return n.some(o=>o.nullable)}function computeChunkNullCounts(n){return n.reduce((o,e)=>o+e.nullCount,0)}function computeChunkOffsets(n){return n.reduce((o,e,t)=>(o[t+1]=o[t]+e.length,o),new Uint32Array(n.length+1))}function sliceChunks$1(n,o,e,t){const c=[];for(let p=-1,h=n.length;++p<h;){const y=n[p],g=o[p],{length:$}=y;if(g>=t)break;
20if(e>=g+$)continue;if(g>=e&&g+$<=t){c.push(y);continue}const E=Math.max(0,e-g),A=Math.min(t-g,$);c.push(y.slice(E,A-E))}return c.length===0&&c.push(n[0].slice(0,0)),c}function binarySearch(n,o,e,t){let c=0,p=0,h=o.length-1;do{if(c>=h-1)return e<o[h]?t(n,c,e-o[c]):null;p=c+Math.trunc((h-c)*.5),e<o[p]?h=p:c=p}while(c<h)}function isChunkedValid(n,o){return n.getValid(o)}function wrapChunkedCall1(n){function o(e,t,c){return n(e[t],c)}return function(e){const t=this.data;return binarySearch(t,this._offsets,e,o)}}function wrapChunkedCall2(n){let o;function e(t,c,p){return n(t[c],p,o)}return function(t,c){const p=this.data;o=c;const h=binarySearch(p,this._offsets,t,e);return o=void 0,h}}function wrapChunkedIndexOf(n){let o;function e(t,c,p){let h=p,y=0,g=0;for(let $=c-1,E=t.length;++$<E;){const A=t[$];if(~(y=n(A,o,h)))return g+y;h=0,g+=A.length}return-1}return function(t,c){o=t;const p=this.data,h=typeof c!="number"?e(p,0,0):binarySearch(p,this._offsets,c,e);return o=void 0,h}}class IndexOfVisitor extends Visitor{}function nullIndexOf(n,o){return o===null&&n.length>0?0:-1}function indexOfNull(n,o){const{nullBitmap:e}=n;if(!e||n.nullCount<=0)return-1;let t=0;for(const c of new BitIterator(e,n.offset+(o||0),n.length,e,getBool)){if(!c)return t;++t}return-1}function indexOfValue(n,o,e){if(o===void 0)return-1;if(o===null)switch(n.typeId){case Type.Union:break;case Type.Dictionary:break;default:return indexOfNull(n,e)}const t=instance$4.getVisitFn(n),c=createElementComparator(o);for(let p=(e||0)-1,h=n.length;++p<h;)if(c(t(n,p)))return p;return-1}function indexOfUnion(n,o,e){const t=instance$4.getVisitFn(n),c=createElementComparator(o);for(let p=(e||0)-1,h=n.length;++p<h;)if(c(t(n,p)))return p;return-1}IndexOfVisitor.prototype.visitNull=nullIndexOf;IndexOfVisitor.prototype.visitBool=indexOfValue;IndexOfVisitor.prototype.visitInt=indexOfValue;IndexOfVisitor.prototype.visitInt8=indexOfValue;IndexOfVisitor.prototype.visitInt16=indexOfValue;IndexOfVisitor.prototype.visitInt32=indexOfValue;IndexOfVisitor.prototype.visitInt64=indexOfValue;IndexOfVisitor.prototype.visitUint8=indexOfValue;IndexOfVisitor.prototype.visitUint16=indexOfValue;IndexOfVisitor.prototype.visitUint32=indexOfValue;IndexOfVisitor.prototype.visitUint64=indexOfValue;IndexOfVisitor.prototype.visitFloat=indexOfValue;IndexOfVisitor.prototype.visitFloat16=indexOfValue;IndexOfVisitor.prototype.visitFloat32=indexOfValue;IndexOfVisitor.prototype.visitFloat64=indexOfValue;IndexOfVisitor.prototype.visitUtf8=indexOfValue;IndexOfVisitor.prototype.visitLargeUtf8=indexOfValue;IndexOfVisitor.prototype.visitBinary=indexOfValue;IndexOfVisitor.prototype.visitLargeBinary=indexOfValue;IndexOfVisitor.prototype.visitFixedSizeBinary=indexOfValue;IndexOfVisitor.prototype.visitDate=indexOfValue;IndexOfVisitor.prototype.visitDateDay=indexOfValue;IndexOfVisitor.prototype.visitDateMillisecond=indexOfValue;IndexOfVisitor.prototype.visitTimestamp=indexOfValue;IndexOfVisitor.prototype.visitTimestampSecond=indexOfValue;IndexOfVisitor.prototype.visitTimestampMillisecond=indexOfValue;IndexOfVisitor.prototype.visitTimestampMicrosecond=indexOfValue;IndexOfVisitor.prototype.visitTimestampNanosecond=indexOfValue;IndexOfVisitor.prototype.visitTime=indexOfValue;IndexOfVisitor.prototype.visitTimeSecond=indexOfValue;IndexOfVisitor.prototype.visitTimeMillisecond=indexOfValue;IndexOfVisitor.prototype.visitTimeMicrosecond=indexOfValue;IndexOfVisitor.prototype.visitTimeNanosecond=indexOfValue;IndexOfVisitor.prototype.visitDecimal=indexOfValue;IndexOfVisitor.prototype.visitList=indexOfValue;IndexOfVisitor.prototype.visitStruct=indexOfValue;IndexOfVisitor.prototype.visitUnion=indexOfValue;IndexOfVisitor.prototype.visitDenseUnion=indexOfUnion;IndexOfVisitor.prototype.visitSparseUnion=indexOfUnion;IndexOfVisitor.prototype.visitDictionary=indexOfValue;IndexOfVisitor.prototype.visitInterval=indexOfValue;IndexOfVisitor.prototype.visitIntervalDayTime=indexOfValue;IndexOfVisitor.prototype.visitIntervalYearMonth=indexOfValue;IndexOfVisitor.prototype.visitIntervalMonthDayNano=indexOfValue;IndexOfVisitor.prototype.visitDuration=indexOfValue;IndexOfVisitor.prototype.visitDurationSecond=indexOfValue;IndexOfVisitor.prototype.visitDurationMillisecond=indexOfValue;IndexOfVisitor.prototype.visitDurationMicrosecond=indexOfValue;IndexOfVisitor.prototype.visitDurationNanosecond=indexOfValue;IndexOfVisitor.prototype.visitFixedSizeList=indexOfValue;IndexOfVisitor.prototype.visitMap=indexOfValue;
20const instance$3=new IndexOfVisitor;class IteratorVisitor extends Visitor{}function vectorIterator(n){const{type:o}=n;if(n.nullCount===0&&n.stride===1&&(DataType.isInt(o)&&o.bitWidth!==64||DataType.isTime(o)&&o.bitWidth!==64||DataType.isFloat(o)&&o.precision!==Precision.HALF))return new ChunkedIterator(n.data.length,t=>{const c=n.data[t];return c.values.subarray(0,c.length)[Symbol.iterator]()});let e=0;return new ChunkedIterator(n.data.length,t=>{const p=n.data[t].length,h=n.slice(e,e+p);return e+=p,new VectorIterator(h)})}class VectorIterator{constructor(o){this.vector=o,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}IteratorVisitor.prototype.visitNull=vectorIterator;IteratorVisitor.prototype.visitBool=vectorIterator;IteratorVisitor.prototype.visitInt=vectorIterator;IteratorVisitor.prototype.visitInt8=vectorIterator;IteratorVisitor.prototype.visitInt16=vectorIterator;IteratorVisitor.prototype.visitInt32=vectorIterator;IteratorVisitor.prototype.visitInt64=vectorIterator;IteratorVisitor.prototype.visitUint8=vectorIterator;IteratorVisitor.prototype.visitUint16=vectorIterator;IteratorVisitor.prototype.visitUint32=vectorIterator;IteratorVisitor.prototype.visitUint64=vectorIterator;IteratorVisitor.prototype.visitFloat=vectorIterator;IteratorVisitor.prototype.visitFloat16=vectorIterator;IteratorVisitor.prototype.visitFloat32=vectorIterator;IteratorVisitor.prototype.visitFloat64=vectorIterator;IteratorVisitor.prototype.visitUtf8=vectorIterator;IteratorVisitor.prototype.visitLargeUtf8=vectorIterator;IteratorVisitor.prototype.visitBinary=vectorIterator;IteratorVisitor.prototype.visitLargeBinary=vectorIterator;IteratorVisitor.prototype.visitFixedSizeBinary=vectorIterator;IteratorVisitor.prototype.visitDate=vectorIterator;IteratorVisitor.prototype.visitDateDay=vectorIterator;IteratorVisitor.prototype.visitDateMillisecond=vectorIterator;IteratorVisitor.prototype.visitTimestamp=vectorIterator;IteratorVisitor.prototype.visitTimestampSecond=vectorIterator;IteratorVisitor.prototype.visitTimestampMillisecond=vectorIterator;IteratorVisitor.prototype.visitTimestampMicrosecond=vectorIterator;IteratorVisitor.prototype.visitTimestampNanosecond=vectorIterator;IteratorVisitor.prototype.visitTime=vectorIterator;IteratorVisitor.prototype.visitTimeSecond=vectorIterator;IteratorVisitor.prototype.visitTimeMillisecond=vectorIterator;IteratorVisitor.prototype.visitTimeMicrosecond=vectorIterator;IteratorVisitor.prototype.visitTimeNanosecond=vectorIterator;IteratorVisitor.prototype.visitDecimal=vectorIterator;IteratorVisitor.prototype.visitList=vectorIterator;IteratorVisitor.prototype.visitStruct=vectorIterator;IteratorVisitor.prototype.visitUnion=vectorIterator;IteratorVisitor.prototype.visitDenseUnion=vectorIterator;IteratorVisitor.prototype.visitSparseUnion=vectorIterator;IteratorVisitor.prototype.visitDictionary=vectorIterator;IteratorVisitor.prototype.visitInterval=vectorIterator;IteratorVisitor.prototype.visitIntervalDayTime=vectorIterator;IteratorVisitor.prototype.visitIntervalYearMonth=vectorIterator;IteratorVisitor.prototype.visitIntervalMonthDayNano=vectorIterator;IteratorVisitor.prototype.visitDuration=vectorIterator;IteratorVisitor.prototype.visitDurationSecond=vectorIterator;IteratorVisitor.prototype.visitDurationMillisecond=vectorIterator;IteratorVisitor.prototype.visitDurationMicrosecond=vectorIterator;IteratorVisitor.prototype.visitDurationNanosecond=vectorIterator;IteratorVisitor.prototype.visitFixedSizeList=vectorIterator;IteratorVisitor.prototype.visitMap=vectorIterator;const instance$2=new IteratorVisitor;var _a$3;const visitorsByTypeId={},vectorPrototypesByTypeId={};class Vector{constructor(o){var e,t,c;const p=o[0]instanceof Vector?o.flatMap(y=>y.data):o;if(p.length===0||p.some(y=>!(y instanceof Data)))throw new TypeError("Vector constructor expects an Array of Data instances.");const h=(e=p[0])===null||e===void 0?void 0:e.type;switch(p.length){case 0:this._offsets=[0];break;case 1:{const{get:y,set:g,indexOf:$}=visitorsByTypeId[h.typeId],E=p[0];this.isValid=A=>isChunkedValid(E,A),this.get=A=>y(E,A),this.set=(A,N)=>g(E,A,N),this.indexOf=A=>$(E,A),this._offsets=[0,E.length];break}default:Object.setPrototypeOf(this,vectorPrototypesByTypeId[h.typeId]),this._offsets=computeChunkOffsets(
20p);break}this.data=p,this.type=h,this.stride=strideForType(h),this.numChildren=(c=(t=h.children)===null||t===void 0?void 0:t.length)!==null&&c!==void 0?c:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((o,e)=>o+e.byteLength,0)}get nullable(){return computeChunkNullable(this.data)}get nullCount(){return computeChunkNullCounts(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${Type[this.type.typeId]}Vector`}isValid(o){return!1}get(o){return null}at(o){return this.get(wrapIndex(o,this.length))}set(o,e){}indexOf(o,e){return-1}includes(o,e){return this.indexOf(o,e)>-1}[Symbol.iterator](){return instance$2.visit(this)}concat(...o){return new Vector(this.data.concat(o.flatMap(e=>e.data).flat(Number.POSITIVE_INFINITY)))}slice(o,e){return new Vector(clampRange(this,o,e,({data:t,_offsets:c},p,h)=>sliceChunks$1(t,c,p,h)))}toJSON(){return[...this]}toArray(){const{type:o,data:e,length:t,stride:c,ArrayType:p}=this;switch(o.typeId){case Type.Int:case Type.Float:case Type.Decimal:case Type.Time:case Type.Timestamp:switch(e.length){case 0:return new p;case 1:return e[0].values.subarray(0,t*c);default:return e.reduce((h,{values:y,length:g})=>(h.array.set(y.subarray(0,g*c),h.offset),h.offset+=g*c,h),{array:new p(t*c),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(o){var e;return this.getChildAt((e=this.type.children)===null||e===void 0?void 0:e.findIndex(t=>t.name===o))}getChildAt(o){return o>-1&&o<this.numChildren?new Vector(this.data.map(({children:e})=>e[o])):null}get isMemoized(){return DataType.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(DataType.isDictionary(this.type)){const o=new MemoizedVector(this.data[0].dictionary),e=this.data.map(t=>{const c=t.clone();return c.dictionary=o,c});return new Vector(e)}return new MemoizedVector(this)}unmemoize(){if(DataType.isDictionary(this.type)&&this.isMemoized){const o=this.data[0].dictionary.unmemoize(),e=this.data.map(t=>{const c=t.clone();return c.dictionary=o,c});return new Vector(e)}return this}}_a$3=Symbol.toStringTag;Vector[_a$3]=(n=>{n.type=DataType.prototype,n.data=[],n.length=0,n.stride=1,n.numChildren=0,n._offsets=new Uint32Array([0]),n[Symbol.isConcatSpreadable]=!0;const o=Object.keys(Type).map(e=>Type[e]).filter(e=>typeof e=="number"&&e!==Type.NONE);for(const e of o){const t=instance$4.getVisitFnByTypeId(e),c=instance$5.getVisitFnByTypeId(e),p=instance$3.getVisitFnByTypeId(e);visitorsByTypeId[e]={get:t,set:c,indexOf:p},vectorPrototypesByTypeId[e]=Object.create(n,{isValid:{value:wrapChunkedCall1(isChunkedValid)},get:{value:wrapChunkedCall1(instance$4.getVisitFnByTypeId(e))},set:{value:wrapChunkedCall2(instance$5.getVisitFnByTypeId(e))},indexOf:{value:wrapChunkedIndexOf(instance$3.getVisitFnByTypeId(e))}})}return"Vector"})(Vector.prototype);class MemoizedVector extends Vector{constructor(o){super(o.data);const e=this.get,t=this.set,c=this.slice,p=new Array(this.length);Object.defineProperty(this,"get",{value(h){const y=p[h];if(y!==void 0)return y;const g=e.call(this,h);return p[h]=g,g}}),Object.defineProperty(this,"set",{value(h,y){t.call(this,h,y),p[h]=y}}),Object.defineProperty(this,"slice",{value:(h,y)=>new MemoizedVector(c.call(this,h,y))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new Vector(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class Block{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(o,e,t,c){return o.prep(8,24),o.writeInt64(BigInt(c??0)),o.pad(4),o.writeInt32(t),o.writeInt64(BigInt(e??0)),o.offset()}}class Footer{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsFooter(o,e){return(e||new Footer).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsFooter(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new Footer).__init(o.readInt32(o.position())+o.position(),o)}version(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):MetadataVersion.V1}schema(o){const e=this.bb.__offset(this.bb_pos,6);return e?(o||new Schema$2).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(o,e){const t=this.bb.__offset(this.bb_pos,8);return t?(e||new Block).__init(this.bb.__vector(this.bb_pos+t)+o*24,this.bb):null}dictionariesLength(){const o=this.bb.__offset(this.bb_pos,8);return o?this.bb.__vector_len(this.bb_pos+o):0}recordBatches(o,e){const t=this.bb.__offset(this.bb_pos,10);return t?(e||new Block).__init(this.bb.__vector(this.bb_pos+t)+o*24,this.bb):null}recordBatchesLength(){const o=this.bb.__offset(this.bb_pos,10);return o?this.bb.__vector_len(this.bb_pos+o):0}customMetadata(o,e){const t=this.bb.__offset(this.bb_pos,12);return t?(e||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+o*4),this.bb):null}customMetadataLength(){const o=this.bb.__offset(this.bb_pos,12);return o?this.bb.__vector_len(this.bb_pos+o):0}static startFooter(o){o.startObject(5)}static addVersion(o,e){o.addFieldInt16(0,e,MetadataVersion.V1)}static addSchema(o,e){o.addFieldOffset(1,e,0)}static addDictionaries(o,e){o.addFieldOffset(2,e,0)}static startDictionariesVector(o,e){o.startVector(24,e,8)}static addRecordBatches(o,e){o.addFieldOffset(3,e,0)}static startRecordBatchesVector(o,e){o.startVector(24,e,8)}static addCustomMetadata(o,e){o.addFieldOffset(4,e,0)}static createCustomMetadataVector(o,e){o.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)o.addOffset(e[t]);return o.endVector()}static startCustomMetadataVector(o,e){o.startVector(4,e,4)}static endFooter(o){return o.endObject()}static finishFooterBuffer(o,e){o.finish(e)}static finishSizePrefixedFooterBuffer(o,e){o.finish(e,void 0,!0)}}let Schema$1=class ni{constructor(o=[],e,t,c=MetadataVersion.V5){this.fields=o||[],this.metadata=e||new Map,t||(t=generateDictionaryMap(this.fields)),this.dictionaries=t,this.metadataVersion=c}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(o=>o.name)}toString(){return`Schema<{ ${this.fields.map((o,e)=>`${e}: ${o}`).join(", ")} }>`}select(o){const e=new Set(o),t=this.fields.filter(c=>e.has(c.name));return new ni(t,this.metadata)}selectAt(o){const e=o.map(t=>
20this.fields[t]).filter(Boolean);return new ni(e,this.metadata)}assign(...o){const e=o[0]instanceof ni?o[0]:Array.isArray(o[0])?new ni(o[0]):new ni(o),t=[...this.fields],c=mergeMaps(mergeMaps(new Map,this.metadata),e.metadata),p=e.fields.filter(y=>{const g=t.findIndex($=>$.name===y.name);return~g?(t[g]=y.clone({metadata:mergeMaps(mergeMaps(new Map,t[g].metadata),y.metadata)}))&&!1:!0}),h=generateDictionaryMap(p,new Map);return new ni([...t,...p],c,new Map([...this.dictionaries,...h]))}};Schema$1.prototype.fields=null;Schema$1.prototype.metadata=null;Schema$1.prototype.dictionaries=null;class Field{static new(...o){let[e,t,c,p]=o;return o[0]&&typeof o[0]=="object"&&({name:e}=o[0],t===void 0&&(t=o[0].type),c===void 0&&(c=o[0].nullable),p===void 0&&(p=o[0].metadata)),new Field(`${e}`,t,c,p)}constructor(o,e,t=!1,c){this.name=o,this.type=e,this.nullable=t,this.metadata=c||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...o){let[e,t,c,p]=o;return!o[0]||typeof o[0]!="object"?[e=this.name,t=this.type,c=this.nullable,p=this.metadata]=o:{name:e=this.name,type:t=this.type,nullable:c=this.nullable,metadata:p=this.metadata}=o[0],Field.new(e,t,c,p)}}Field.prototype.type=null;Field.prototype.name=null;Field.prototype.nullable=null;Field.prototype.metadata=null;function mergeMaps(n,o){return new Map([...n||new Map,...o||new Map])}function generateDictionaryMap(n,o=new Map){for(let e=-1,t=n.length;++e<t;){const p=n[e].type;if(DataType.isDictionary(p)){if(!o.has(p.id))o.set(p.id,p.dictionary);else if(o.get(p.id)!==p.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}p.children&&p.children.length>0&&generateDictionaryMap(p.children,o)}return o}var Builder$1=Builder$2,ByteBuffer$1=ByteBuffer$2;class Footer_{static decode(o){o=new ByteBuffer$1(toUint8Array(o));const e=Footer.getRootAsFooter(o),t=Schema$1.decode(e.schema(),new Map,e.version());return new OffHeapFooter(t,e)}static encode(o){const e=new Builder$1,t=Schema$1.encode(e,o.schema);Footer.startRecordBatchesVector(e,o.numRecordBatches);for(const h of[...o.recordBatches()].slice().reverse())FileBlock.encode(e,h);const c=e.endVector();Footer.startDictionariesVector(e,o.numDictionaries);for(const h of[...o.dictionaryBatches()].slice().reverse())FileBlock.encode(e,h);const p=e.endVector();return Footer.startFooter(e),Footer.addSchema(e,t),Footer.addVersion(e,MetadataVersion.V5),Footer.addRecordBatches(e,c),Footer.addDictionaries(e,p),Footer.finishFooterBuffer(e,Footer.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(o,e=MetadataVersion.V5,t,c){this.schema=o,this.version=e,t&&(this._recordBatches=t),c&&(this._dictionaryBatches=c)}*recordBatches(){for(let o,e=-1,t=this.numRecordBatches;++e<t;)(o=this.getRecordBatch(e))&&(yield o)}*dictionaryBatches(){for(let o,e=-1,t=this.numDictionaries;++e<t;)(o=this.getDictionaryBatch(e))&&(yield o)}getRecordBatch(o){return o>=0&&o<this.numRecordBatches&&this._recordBatches[o]||null}getDictionaryBatch(o){return o>=0&&o<this.numDictionaries&&this._dictionaryBatches[o]||null}}class OffHeapFooter extends Footer_{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(o,e){super(o,e.version()),this._footer=e}getRecordBatch(o){if(o>=0&&o<this.numRecordBatches){const e=this._footer.recordBatches(o);if(e)return FileBlock.decode(e)}return null}getDictionaryBatch(o){if(o>=0&&o<this.numDictionaries){const e=this._footer.dictionaries(o);if(e)return FileBlock.decode(e)}return null}}class FileBlock{static decode(o){return new FileBlock(o.metaDataLength(),o.bodyLength(),o.offset())}static encode(o,e){const{metaDataLength:t}=e,c=BigInt(e.offset),p=BigInt(e.bodyLength);return Block.createBlock(o,c,t,p)}constructor(o,e,t){this.metaDataLength=o,this.offset=bigIntToNumber(t),this.bodyLength=bigIntToNumber(e)}}const ITERATOR_DONE=Object.freeze({done:!0,value:void 0});class ArrowJSON{constructor(o){this._json=o}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class ReadableInterop{tee(){return this._getDOMStream().tee()}pipe(o,e){return this._getNodeStream().pipe(o,e)}pipeTo(o,e){return this._getDOMStream().pipeTo(o,e)}pipeThrough(o,e){return this._getDOMStream().pipeThrough(o,e)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class AsyncQueue extends ReadableInterop{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(o=>this._closedPromiseResolve=o)}get closed(){return this._closedPromise}cancel(o){return __awaiter(this,void 0,void 0,function*(){yield this.return(o)})}write(o){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(o):this.resolvers.shift().resolve({done:!1,value:o}))}abort(o){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:o}:this.resolvers.shift().reject({done:!0,value:o}))}close(){if(this._closedPromiseResolve){const{resolvers:o}=this;for(;o.length>0;)o.shift().resolve(ITERATOR_DONE);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(o){return streamAdapters.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,o)}toNodeStream(o){return streamAdapters.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,o)}throw(o){return __awaiter(this,void 0,void 0,function*(){return yield this.abort(o),ITERATOR_DONE})}return(o){return __awaiter(this,void 0,void 0,function*(){return yield this.close(),ITERATOR_DONE})}read(o){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(o,"read")).value})}peek(o){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(o,"peek")).value})}next(...o){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((e,t)=>
20{this.resolvers.push({resolve:e,reject:t})}):Promise.resolve(ITERATOR_DONE)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class AsyncByteQueue extends AsyncQueue{write(o){if((o=toUint8Array(o)).byteLength>0)return super.write(o)}toString(o=!1){return o?decodeUtf8(this.toUint8Array(!0)):this.toUint8Array(!1).then(decodeUtf8)}toUint8Array(o=!1){return o?joinUint8Arrays(this._values)[0]:__awaiter(this,void 0,void 0,function*(){var e,t,c,p;const h=[];let y=0;try{for(var g=!0,$=__asyncValues(this),E;E=yield $.next(),e=E.done,!e;g=!0){p=E.value,g=!1;const A=p;h.push(A),y+=A.byteLength}}catch(A){t={error:A}}finally{try{!g&&!e&&(c=$.return)&&(yield c.call($))}finally{if(t)throw t.error}}return joinUint8Arrays(h,y)[0]})}}class ByteStream{constructor(o){o&&(this.source=new ByteStreamSource(streamAdapters.fromIterable(o)))}[Symbol.iterator](){return this}next(o){return this.source.next(o)}throw(o){return this.source.throw(o)}return(o){return this.source.return(o)}peek(o){return this.source.peek(o)}read(o){return this.source.read(o)}}class AsyncByteStream{constructor(o){o instanceof AsyncByteStream?this.source=o.source:o instanceof AsyncByteQueue?this.source=new AsyncByteStreamSource(streamAdapters.fromAsyncIterable(o)):isReadableNodeStream(o)?this.source=new AsyncByteStreamSource(streamAdapters.fromNodeStream(o)):isReadableDOMStream(o)?this.source=new AsyncByteStreamSource(streamAdapters.fromDOMStream(o)):isFetchResponse(o)?this.source=new AsyncByteStreamSource(streamAdapters.fromDOMStream(o.body)):isIterable(o)?this.source=new AsyncByteStreamSource(streamAdapters.fromIterable(o)):isPromise(o)?this.source=new AsyncByteStreamSource(streamAdapters.fromAsyncIterable(o)):isAsyncIterable(o)&&(this.source=new AsyncByteStreamSource(streamAdapters.fromAsyncIterable(o)))}[Symbol.asyncIterator](){return this}next(o){return this.source.next(o)}throw(o){return this.source.throw(o)}return(o){return this.source.return(o)}get closed(){return this.source.closed}cancel(o){return this.source.cancel(o)}peek(o){return this.source.peek(o)}read(o){return this.source.read(o)}}class ByteStreamSource{constructor(o){this.source=o}cancel(o){this.return(o)}peek(o){return this.next(o,"peek").value}read(o){return this.next(o,"read").value}next(o,e="read"){return this.source.next({cmd:e,size:o})}throw(o){return Object.create(this.source.throw&&this.source.throw(o)||ITERATOR_DONE)}return(o){return Object.create(this.source.return&&this.source.return(o)||ITERATOR_DONE)}}class AsyncByteStreamSource{constructor(o){this.source=o,this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}cancel(o){return __awaiter(this,void 0,void 0,function*(){yield this.return(o)})}get closed(){return this._closedPromise}read(o){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(o,"read")).value})}peek(o){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(o,"peek")).value})}next(o){return __awaiter(this,arguments,void 0,function*(e,t="read"){return yield this.source.next({cmd:t,size:e})})}throw(o){return __awaiter(this,void 0,void 0,function*(){const e=this.source.throw&&(yield this.source.throw(o))||ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}return(o){return __awaiter(this,void 0,void 0,function*(){const e=this.source.return&&(yield this.source.return(o))||ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}}class RandomAccessFile extends ByteStream{constructor(o,e){super(),this.position=0,this.buffer=toUint8Array(o),this.size=e===void 0?this.buffer.byteLength:e}readInt32(o){const{buffer:e,byteOffset:t}=this.readAt(o,4);return new DataView(e,t).getInt32(0,!0)}seek(o){return this.position=Math.min(o,this.size),o<this.size}read(o){const{buffer:e,size:t,position:c}=this;return e&&c<t?(typeof o!="number"&&(o=Number.POSITIVE_INFINITY),this.position=Math.min(t,c+Math.min(t-c,o)),e.subarray(c,this.position)):null}readAt(o,e){const t=this.buffer,c=Math.min(this.size,o+e);return t?t.subarray(o,c):new Uint8Array(e)}close(){this.buffer&&(this.buffer=null)}throw(o){return this.close(),{done:!0,value:o}}return(o){return this.close(),{done:!0,value:o}}}class AsyncRandomAccessFile extends AsyncByteStream{constructor(o,e){super(),this.position=0,this._handle=o,typeof e=="number"?this.size=e:this._pe
20nding=__awaiter(this,void 0,void 0,function*(){this.size=(yield o.stat()).size,delete this._pending})}readInt32(o){return __awaiter(this,void 0,void 0,function*(){const{buffer:e,byteOffset:t}=yield this.readAt(o,4);return new DataView(e,t).getInt32(0,!0)})}seek(o){return __awaiter(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(o,this.size),o<this.size})}read(o){return __awaiter(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:e,size:t,position:c}=this;if(e&&c<t){typeof o!="number"&&(o=Number.POSITIVE_INFINITY);let p=c,h=0,y=0;const g=Math.min(t,p+Math.min(t-p,o)),$=new Uint8Array(Math.max(0,(this.position=g)-p));for(;(p+=y)<g&&(h+=y)<$.byteLength;)({bytesRead:y}=yield e.read($,h,$.byteLength-h,p));return $}return null})}readAt(o,e){return __awaiter(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:t,size:c}=this;if(t&&o+e<c){const p=Math.min(c,o+e),h=new Uint8Array(p-o);return(yield t.read(h,0,e,o)).buffer}return new Uint8Array(e)})}close(){return __awaiter(this,void 0,void 0,function*(){const o=this._handle;this._handle=null,o&&(yield o.close())})}throw(o){return __awaiter(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:o}})}return(o){return __awaiter(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:o}})}}const carryBit16=65536;function intAsHex(n){return n<0&&(n=4294967295+n+1),`0x${n.toString(16)}`}const kInt32DecimalDigits=8,kPowersOfTen=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class BaseInt64{constructor(o){this.buffer=o}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(o){const e=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),t=new Uint32Array([o.buffer[1]>>>16,o.buffer[1]&65535,o.buffer[0]>>>16,o.buffer[0]&65535]);let c=e[3]*t[3];this.buffer[0]=c&65535;let p=c>>>16;return c=e[2]*t[3],p+=c,c=e[3]*t[2]>>>0,p+=c,this.buffer[0]+=p<<16,this.buffer[1]=p>>>0<c?carryBit16:0,this.buffer[1]+=p>>>16,this.buffer[1]+=e[1]*t[3]+e[2]*t[2]+e[3]*t[1],this.buffer[1]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0]<<16,this}_plus(o){const e=this.buffer[0]+o.buffer[0]>>>0;this.buffer[1]+=o.buffer[1],e<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(o){return this.buffer[1]<o.buffer[1]||this.buffer[1]===o.buffer[1]&&this.buffer[0]<o.buffer[0]}equals(o){return this.buffer[1]===o.buffer[1]&&this.buffer[0]==o.buffer[0]}greaterThan(o){return o.lessThan(this)}hex(){return`${intAsHex(this.buffer[1])} ${intAsHex(this.buffer[0])}`}}class Uint64 extends BaseInt64{times(o){return this._times(o),this}plus(o){return this._plus(o),this}static from(o,e=new Uint32Array(2)){return Uint64.fromString(typeof o=="string"?o:o.toString(),e)}static fromNumber(o,e=new Uint32Array(2)){return Uint64.fromString(o.toString(),e)}static fromString(o,e=new Uint32Array(2)){const t=o.length,c=new Uint64(e);for(let p=0;p<t;){const h=kInt32DecimalDigits<t-p?kInt32DecimalDigits:t-p,y=new Uint64(new Uint32Array([Number.parseInt(o.slice(p,p+h),10),0])),g=new Uint64(new Uint32Array([kPowersOfTen[h],0]));c.times(g),c.plus(y),p+=h}return c}static convertArray(o){const e=new Uint32Array(o.length*2);for(let t=-1,c=o.length;++t<c;)Uint64.from(o[t],new Uint32Array(e.buffer,e.byteOffset+2*t*4,2));return e}static multiply(o,e){return new Uint64(new Uint32Array(o.buffer)).times(e)}static add(o,e){return new Uint64(new Uint32Array(o.buffer)).plus(e)}}class Int64 extends BaseInt64{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(o){return this._times(o),this}plus(o){return this._plus(o),this}lessThan(o){const e=this.buffer[1]<<0,t=o.buffer[1]<<0;return e<t||e===t&&this.buffer[0]<o.buffer[0]}static from(o,e=new Uint32Array(2)){return Int64.fromString(typeof o=="string"?o:o.toString(),e)}static fromNumber(o,e=new Uint32Array(2)){return Int64.fromString(o.toString(),e)}static fromString(o,e=new Uint32Array(2)){const t=o.startsWith("-"),c=o.length,p=new Int64(e);for(let h=t?1:0;h<c;){const y=kInt32DecimalDigits<c-h?kInt32DecimalDigits:c-h,g=new Int64(new Uint32Array([Number.parseInt(o.slice(h,h+y),10),0])),$=new Int64(new Uint32Array([kPowersOfTen[y],0]));p.times($),p.plus(g),h+=y}return t?p.negate():p}static convertArray(o){const e=new Uint32Array(o.length*2);for(let t=-1,c=o.length;++t<c;)Int64.from(o[t],new Uint32Array(e.buffer,e.byteOffset+2*t*4,2));return e}static multiply(o,e){return new Int64(new Uint32Array(o.buffer)).times(e)}static add(o,e){return new Int64(new Uint32Array(o.buffer)).plus(e)}}class Int128{constructor(o){this.buffer=o}high(){return new Int64(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Int64(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(o){const e=new Uint64(new Uint32Array([this.buffer[3],0])),t=new Uint64(new Uint32Array([this.buffer[2],0])),c=new Uint64(new Uint32Array([this.buffer[1],0])),p=new Uint64(new Uint32Array([this.buffer[0],0])),h=new Uint64(new Uint32Array([o.buffer[3],0])),y=new Uint64(new Uint32Array([o.buffer[2],0])),g=new Uint64(new Uint32Array([o.buffer[1],0])),$=new Uint64(new Uint32Array([o.buffer[0],0]));
20let E=Uint64.multiply(p,$);this.buffer[0]=E.low();const A=new Uint64(new Uint32Array([E.high(),0]));return E=Uint64.multiply(c,$),A.plus(E),E=Uint64.multiply(p,g),A.plus(E),this.buffer[1]=A.low(),this.buffer[3]=A.lessThan(E)?1:0,this.buffer[2]=A.high(),new Uint64(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(Uint64.multiply(t,$)).plus(Uint64.multiply(c,g)).plus(Uint64.multiply(p,y)),this.buffer[3]+=Uint64.multiply(e,$).plus(Uint64.multiply(t,g)).plus(Uint64.multiply(c,y)).plus(Uint64.multiply(p,h)).low(),this}plus(o){const e=new Uint32Array(4);return e[3]=this.buffer[3]+o.buffer[3]>>>0,e[2]=this.buffer[2]+o.buffer[2]>>>0,e[1]=this.buffer[1]+o.buffer[1]>>>0,e[0]=this.buffer[0]+o.buffer[0]>>>0,e[0]<this.buffer[0]>>>0&&++e[1],e[1]<this.buffer[1]>>>0&&++e[2],e[2]<this.buffer[2]>>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${intAsHex(this.buffer[3])} ${intAsHex(this.buffer[2])} ${intAsHex(this.buffer[1])} ${intAsHex(this.buffer[0])}`}static multiply(o,e){return new Int128(new Uint32Array(o.buffer)).times(e)}static add(o,e){return new Int128(new Uint32Array(o.buffer)).plus(e)}static from(o,e=new Uint32Array(4)){return Int128.fromString(typeof o=="string"?o:o.toString(),e)}static fromNumber(o,e=new Uint32Array(4)){return Int128.fromString(o.toString(),e)}static fromString(o,e=new Uint32Array(4)){const t=o.startsWith("-"),c=o.length,p=new Int128(e);for(let h=t?1:0;h<c;){const y=kInt32DecimalDigits<c-h?kInt32DecimalDigits:c-h,g=new Int128(new Uint32Array([Number.parseInt(o.slice(h,h+y),10),0,0,0])),$=new Int128(new Uint32Array([kPowersOfTen[y],0,0,0]));p.times($),p.plus(g),h+=y}return t?p.negate():p}static convertArray(o){const e=new Uint32Array(o.length*4);for(let t=-1,c=o.length;++t<c;)Int128.from(o[t],new Uint32Array(e.buffer,e.byteOffset+4*4*t,4));return e}}const util_int_=Object.freeze(Object.defineProperty({__proto__:null,BaseInt64,Int128,Int64,Uint64},Symbol.toStringTag,{value:"Module"}));function toIntervalDayTimeInt32Array(n){var o,e;const t=n.length,c=new Int32Array(t*2);for(let p=0,h=0;p<t;p++){const y=n[p];c[h++]=(o=y.days)!==null&&o!==void 0?o:0,c[h++]=(e=y.milliseconds)!==null&&e!==void 0?e:0}return c}function toIntervalMonthDayNanoInt32Array(n){var o,e;const t=n.length,c=new Int32Array(t*4);for(let p=0,h=0;p<t;p++){const y=n[p];c[h++]=(o=y.months)!==null&&o!==void 0?o:0,c[h++]=(e=y.days)!==null&&e!==void 0?e:0;const g=y.nanoseconds;g?(c[h++]=Number(BigInt(g)&BigInt(4294967295)),c[h++]=Number(BigInt(g)>>BigInt(32))):h+=2}return c}function toIntervalDayTimeObjects(n){const o=n.length,e=new Array(o/2);for(let t=0,c=0;t<o;t+=2)e[c++]={days:n[t],milliseconds:n[t+1]};return e}function toIntervalMonthDayNanoObjects(n,o){const e=n.length,t=new Array(e/4);for(let c=0,p=0;c<e;c+=4){const h=BigInt(n[c+3])<<BigInt(32)|BigInt(n[c+2]>>>0);t[p++]={months:n[c],days:n[c+1],nanoseconds:o?`${h}`:h}}return t}const util_interval_=Object.freeze(Object.defineProperty({__proto__:null,toIntervalDayTimeInt32Array,toIntervalDayTimeObjects,toIntervalMonthDayNanoInt32Array,toIntervalMonthDayNanoObjects},Symbol.toStringTag,{value:"Module"}));class VectorLoader extends Visitor{constructor(o,e,t,c,p=MetadataVersion.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=o,this.nodes=e,this.buffers=t,this.dictionaries=c,this.metadataVersion=p}visit(o){return super.visit(o instanceof Field?o.type:o)}visitNull(o,{length:e}=this.nextFieldNode()){return makeData({type:o,length:e})}visitBool(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o)})}visitInt(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o)})}visitFloat(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o)})}visitUtf8(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),valueOffsets:this.readOffsets(o),data:this.readData(o)})}visitLargeUtf8(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),valueOffsets:this.readOffsets(o),data:this.readData(o)})}visitBinary(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),valueOffsets:this.readOffsets(o),data:this.readData(o)})}visitLargeBinary(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),valueOffsets:this.readOffsets(o),data:this.readData(o)})}visitFixedSizeBinary(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o)})}visitDate(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o)})}visitTimestamp(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o)})}visitTime(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o)})}visitDecimal(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o)})}visitList(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),valueOffsets:this.readOffsets(o),child:this.visit(o.children[0])})}visitStruct(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),children:this.visitMany(o.children)})}visitUnion(o,{length:e,nullCount:t}=this.nextFieldNode()){return this.metadataVersion<MetadataVersion.V5&&this.readNullBitmap(o,t),o.mode===UnionMode.Sparse?this.visitSparseUnion(o,{length:e,nullCount:t}):this.visitDenseUnion(o,{length:e,nullCount:t})}visitDenseUnion(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,typeIds:this.readTypeIds(o),valueOffsets:this.readOffsets(o),children:this.visitMany(o.children)})}visitSparseUnion(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,typeIds:this.readTypeIds(o),children:this.visitMany(o.children)})}visitDictionary(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o.indices),dictionary:this.readDictionary(o)})}visitInterval(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o)})}visitDuration(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),data:this.readData(o)})}visitFixedSizeList(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),child:this.visit(o.children[0])})}visitMap(o,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:o,length:e,nullCount:t,nullBitmap:this.readNullBitmap(o,t),valueOffsets:this.readOffsets(o),child:this.visit(o.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(o,e,t=this.nextBufferRange()){return e>0&&this.readData(o,t)||new Uint8Array(0)}readOffsets(o,e){return this.readData(o,e)}readTypeIds(o,e){return this.readData(o,e)}readData(o,{length:e,offset:t}=this.nextBufferRange()){return this.bytes.subarray(t,t+e)}readDictionary(o){return this.dictionaries.get(o.id)}}class JSONVectorLoader extends VectorLoader{constructor(o,e,t,c,p){super(new Uint8Array(0),e,t,c,p),this.sources=o}readNullBitmap(o,e,{offset:t}=this.nextBufferRange()){return e<=0?new Uint8Array(0):packBools(this.sources[t])}readOffsets(o,{offset:e}=this.nextBufferRange()){return toArrayBufferView(Uint8Array,toArrayBufferView(o.OffsetArrayType,this.sources[e]))}readTypeIds(o,{offset:e}=this.nextBufferRange()){return toArrayBufferView(Uint8Array,toArrayBufferView(o.ArrayType,this.sources[e]))}readData(o,{offset:e}=this.nextBufferRange()){const{sources:t}=this;if(DataType.isTimestamp(o))return toArrayBufferView(Uint8Array,Int64.convertArray(t[e]));if((DataType.isInt(o)||DataType.isTime(o))&&o.bitWidth===64||DataType.isDuration(o))return toArrayBufferView(Uint8Array,Int64.convertArray(t[e]));if(DataType.isDate(o)&&o.unit===DateUnit.MILLISECOND)return toArrayBufferView(Uint8Array,Int64.convertArray(t[e]));if(DataType.isDecimal(o))return toArrayBufferView(Uint8Array,Int128.convertArray(t[e]));if(DataType.isBinary(o)||DataType.isLargeBinary(o)||DataType.isFixedSizeBinary(o))return binaryDataFromJSON(t[e]);if(DataType.isBool(o))return packBools(t[e]);if(DataType.isUtf8(o)||DataType.isLargeUtf8(o))return encodeUtf8(t[e].join(""));if(DataType.isInterval(o))switch(o.unit){case IntervalUnit.DAY_TIME:return toIntervalDayTimeInt32Array(t[e]);case IntervalUnit.MONTH_DAY_NANO:return toIntervalMonthDayNanoInt32Array(t[e])}return toArrayBufferView(Uint8Array,toArrayBufferView(o.ArrayType,t[e].map(c=>+c)))}}function binaryDataFromJSON(n){const o=n.join(""),e=new Uint8Array(o.length/2);for(let t=0;t<o.length;t+=2)e[t>>1]=Number.parseInt(o.slice(t,t+2),16);return e}class TypeComparator extends Visitor{compareSchemas(o,e){return o===e||e instanceof o.constructor&&this.compareManyFields(o.fields,e.fields)}compareManyFields(o,e){return o===e||Array.isArray(o)&&Array.isArray(e)&&o.length===e.length&&o.every((t,c)=>
20this.compareFields(t,e[c]))}compareFields(o,e){return o===e||e instanceof o.constructor&&o.name===e.name&&o.nullable===e.nullable&&this.visit(o.type,e.type)}}function compareConstructor(n,o){return o instanceof n.constructor}function compareAny(n,o){return n===o||compareConstructor(n,o)}function compareInt(n,o){return n===o||compareConstructor(n,o)&&n.bitWidth===o.bitWidth&&n.isSigned===o.isSigned}function compareFloat(n,o){return n===o||compareConstructor(n,o)&&n.precision===o.precision}function compareFixedSizeBinary(n,o){return n===o||compareConstructor(n,o)&&n.byteWidth===o.byteWidth}function compareDate(n,o){return n===o||compareConstructor(n,o)&&n.unit===o.unit}function compareTimestamp(n,o){return n===o||compareConstructor(n,o)&&n.unit===o.unit&&n.timezone===o.timezone}function compareTime(n,o){return n===o||compareConstructor(n,o)&&n.unit===o.unit&&n.bitWidth===o.bitWidth}function compareList(n,o){return n===o||compareConstructor(n,o)&&n.children.length===o.children.length&&instance$1.compareManyFields(n.children,o.children)}function compareStruct(n,o){return n===o||compareConstructor(n,o)&&n.children.length===o.children.length&&instance$1.compareManyFields(n.children,o.children)}function compareUnion(n,o){return n===o||compareConstructor(n,o)&&n.mode===o.mode&&n.typeIds.every((e,t)=>e===o.typeIds[t])&&instance$1.compareManyFields(n.children,o.children)}function compareDictionary(n,o){return n===o||compareConstructor(n,o)&&n.id===o.id&&n.isOrdered===o.isOrdered&&instance$1.visit(n.indices,o.indices)&&instance$1.visit(n.dictionary,o.dictionary)}function compareInterval(n,o){return n===o||compareConstructor(n,o)&&n.unit===o.unit}function compareDuration(n,o){return n===o||compareConstructor(n,o)&&n.unit===o.unit}function compareFixedSizeList(n,o){return n===o||compareConstructor(n,o)&&n.listSize===o.listSize&&n.children.length===o.children.length&&instance$1.compareManyFields(n.children,o.children)}function compareMap(n,o){return n===o||compareConstructor(n,o)&&n.keysSorted===o.keysSorted&&n.children.length===o.children.length&&instance$1.compareManyFields(n.children,o.children)}TypeComparator.prototype.visitNull=compareAny;TypeComparator.prototype.visitBool=compareAny;TypeComparator.prototype.visitInt=compareInt;TypeComparator.prototype.visitInt8=compareInt;TypeComparator.prototype.visitInt16=compareInt;TypeComparator.prototype.visitInt32=compareInt;TypeComparator.prototype.visitInt64=compareInt;TypeComparator.prototype.visitUint8=compareInt;TypeComparator.prototype.visitUint16=compareInt;TypeComparator.prototype.visitUint32=compareInt;TypeComparator.prototype.visitUint64=compareInt;TypeComparator.prototype.visitFloat=compareFloat;TypeComparator.prototype.visitFloat16=compareFloat;TypeComparator.prototype.visitFloat32=compareFloat;TypeComparator.prototype.visitFloat64=compareFloat;TypeComparator.prototype.visitUtf8=compareAny;TypeComparator.prototype.visitLargeUtf8=compareAny;TypeComparator.prototype.visitBinary=compareAny;TypeComparator.prototype.visitLargeBinary=compareAny;TypeComparator.prototype.visitFixedSizeBinary=compareFixedSizeBinary;TypeComparator.prototype.visitDate=compareDate;TypeComparator.prototype.visitDateDay=compareDate;TypeComparator.prototype.visitDateMillisecond=compareDate;TypeComparator.prototype.visitTimestamp=compareTimestamp;TypeComparator.prototype.visitTimestampSecond=compareTimestamp;TypeComparator.prototype.visitTimestampMillisecond=compareTimestamp;TypeComparator.prototype.visitTimestampMicrosecond=compareTimestamp;TypeComparator.prototype.visitTimestampNanosecond=compareTimestamp;TypeComparator.prototype.visitTime=compareTime;TypeComparator.prototype.visitTimeSecond=compareTime;TypeComparator.prototype.visitTimeMillisecond=compareTime;TypeComparator.prototype.visitTimeMicrosecond=compareTime;TypeComparator.prototype.visitTimeNanosecond=compareTime;TypeComparator.prototype.visitDecimal=compareAny;TypeComparator.prototype.visitList=compareList;TypeComparator.prototype.visitStruct=compareStruct;TypeComparator.prototype.visitUnion=compareUnion;TypeComparator.prototype.visitDenseUnion=compareUnion;TypeComparator.prototype.visitSparseUnion=compareUnion;TypeComparator.prototype.visitDictionary=compareDictionary;TypeComparator.prototype.visitInterval=compareInterval;TypeComparator.prototype.visitIntervalDayTime=compareInterval;TypeComparator.prototype.visitIntervalYearMonth=compareInterval;TypeComparator.prototype.visitIntervalMonthDayNano=compareInterval;TypeComparator.prototype.visitDuration=compareDuration;TypeComparator.prototype.visitDurationSecond=compareDuration;TypeComparator.prototype.visitDurationMillisecond=compareDuration;TypeComparator.prototype.visitDurationMicrosecond=compareDuration;TypeComparator.prototype.visitDurationNanosecond=compareDuration;TypeComparator.prototype.visitFixedSizeList=compareFixedSizeList;TypeComparator.prototype.visitMap=compareMap;const instance$1=new TypeComparator;function compareSchemas(n,o){return instance$1.compareSchemas(n,o)}function compareFields(n,o){return instance$1.compareFields(n,o)}function compareTypes(n,o){return instance$1.visit(n,o)}function distributeVectorsIntoRecordBatches(n,o){return uniformlyDistributeChunksAcrossRecordBatches(n,o.map(e=>e.data.concat()))}function uniformlyDistributeChunksAcrossRecordBatches(n,o){const e=[...n.fields],t=[],c={numBatches:o.reduce((A,N)=>Math.max(A,N.length),0)};let p=0,h=0,y=-1;const g=o.length;let $,E=[];for(;c.numBatches-- >0;){for(h=Number.POSITIVE_INFINITY,y=-1;++y<g;)E[y]=$=o[y].shift(),h=Math.min(h,$?$.length:h);Number.isFinite(h)&&(E=distributeChildren(e,h,E,o,c),h>0&&(t[p++]=makeData({type:new Struct(e),length:h,nullCount:0,children:E.slice()})))}return[n=n.assign(e),t.map(A=>
20new RecordBatch$1(n,A))]}function distributeChildren(n,o,e,t,c){var p;const h=(o+63&-64)>>3;for(let y=-1,g=t.length;++y<g;){const $=e[y],E=$?.length;if(E>=o)E===o?e[y]=$:(e[y]=$.slice(0,o),c.numBatches=Math.max(c.numBatches,t[y].unshift($.slice(o,E-o))));else{const A=n[y];n[y]=A.clone({nullable:!0}),e[y]=(p=$?._changeLengthAndBackfillNullBitmap(o))!==null&&p!==void 0?p:makeData({type:A.type,length:o,nullCount:o,nullBitmap:new Uint8Array(h)})}}return e}var _a$2;class Table{constructor(...o){var e,t;if(o.length===0)return this.batches=[],this.schema=new Schema$1([]),this._offsets=[0],this;let c,p;o[0]instanceof Schema$1&&(c=o.shift()),o.at(-1)instanceof Uint32Array&&(p=o.pop());const h=g=>{if(g){if(g instanceof RecordBatch$1)return[g];if(g instanceof Table)return g.batches;if(g instanceof Data){if(g.type instanceof Struct)return[new RecordBatch$1(new Schema$1(g.type.children),g)]}else{if(Array.isArray(g))return g.flatMap($=>h($));if(typeof g[Symbol.iterator]=="function")return[...g].flatMap($=>h($));if(typeof g=="object"){const $=Object.keys(g),E=$.map(H=>new Vector([g[H]])),A=c??new Schema$1($.map((H,Z)=>new Field(String(H),E[Z].type,E[Z].nullable))),[,N]=distributeVectorsIntoRecordBatches(A,E);return N.length===0?[new RecordBatch$1(g)]:N}}}return[]},y=o.flatMap(g=>h(g));if(c=(t=c??((e=y[0])===null||e===void 0?void 0:e.schema))!==null&&t!==void 0?t:new Schema$1([]),!(c
vendor: 5,954 bytes, lines 20-23
20instanceof Schema$1))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const g of y){if(!(g instanceof RecordBatch$1))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!compareSchemas(c,g.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=c,this.batches=y,this._offsets=p??computeChunkOffsets(this.data)}get data(){return this.batches.map(({data:o})=>o)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((o,e)=>o+e.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=computeChunkNullCounts(this.data)),this._nullCount}isValid(o){return!1}get(o){return null}at(o){return this.get(wrapIndex(o,this.numRows))}set(o,e){}indexOf(o,e){return-1}[Symbol.iterator](){return this.batches.length>0?instance$2.visit(new Vector(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[ 21 ${this.toArray().join(`, 22 `)} 23]`}concat(...o){const e=this.schema,t=this.data.concat(o.flatMap(({data:c})=>c));return new Table(e,t.map(c=>new RecordBatch$1(e,c)))}slice(o,e){const t=this.schema;[o,e]=clampRange({length:this.numRows},o,e);const c=sliceChunks$1(this.data,this._offsets,o,e);return new Table(t,c.map(p=>new RecordBatch$1(t,p)))}getChild(o){return this.getChildAt(this.schema.fields.findIndex(e=>e.name===o))}getChildAt(o){if(o>-1&&o<this.schema.fields.length){const e=this.data.map(t=>t.children[o]);if(e.length===0){const{type:t}=this.schema.fields[o],c=makeData({type:t,length:0,nullCount:0});e.push(c._changeLengthAndBackfillNullBitmap(this.numRows))}return new Vector(e)}return null}setChild(o,e){var t;return this.setChildAt((t=this.schema.fields)===null||t===void 0?void 0:t.findIndex(c=>c.name===o),e)}setChildAt(o,e){let t=this.schema,c=[...this.batches];if(o>-1&&o<this.numCols){e||(e=new Vector([makeData({type:new Null,length:this.numRows})]));const p=t.fields.slice(),h=p[o].clone({type:e.type}),y=this.schema.fields.map((g,$)=>this.getChildAt($));[p[o],y[o]]=[h,e],[t,c]=distributeVectorsIntoRecordBatches(t,y)}return new Table(t,c)}select(o){const e=this.schema.fields.reduce((t,c,p)=>t.set(c.name,p),new Map);return this.selectAt(o.map(t=>e.get(t)).filter(t=>t>-1))}selectAt(o){const e=this.schema.selectAt(o),t=this.batches.map(c=>c.selectAt(o));return new Table(e,t)}assign(o){const e=this.schema.fields,[t,c]=o.schema.fields.reduce((y,g,$)=>{const[E,A]=y,N=e.findIndex(H=>H.name===g.name);return~N?A[N]=$:E.push($),y},[[],[]]),p=this.schema.assign(o.schema),h=[...e.map((y,g)=>[g,c[g]]).map(([y,g])=>g===void 0?this.getChildAt(y):o.getChildAt(g)),...t.map(y=>o.getChildAt(y))].filter(Boolean);return new Table(...distributeVectorsIntoRecordBatches(p,h))}}_a$2=Symbol.toStringTag;Table[_a$2]=(n=>(n.schema=null,n.batches=[],n._offsets=new Uint32Array([0]),n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,n.isValid=wrapChunkedCall1(isChunkedValid),n.get=wrapChunkedCall1(instance$4.getVisitFn(Type.Struct)),n.set=wrapChunkedCall2(instance$5.getVisitFn(Type.Struct)),n.indexOf=wrapChunkedIndexOf(instance$3.getVisitFn(Type.Struct)),"Table"))(Table.prototype);var _a$1;let RecordBatch$1=class So{constructor(...o){switch(o.length){case 2:{if([this.schema]=o,!(this.schema instanceof Schema$1))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=makeData({nullCount:0,type:new Struct(this.schema.fields),children:this.schema.fields.map(e=>makeData({type:e.type,nullCount:0}))})]=o,!(this.data instanceof Data))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=ensureSameLengthData(this.schema,this.data.children);break}case 1:{const[e]=o,{fields:t,children:c,length:p}=Object.keys(e).reduce((g,$,E)=>(g.children[E]=e[$],g.length=Math.max(g.length,e[$].length),g.fields[E]=Field.new({name:$,type:e[$].type,nullable:!0}),g),{length:0,fields:new Array,children:new Array}),h=new Schema$1(t),y=makeData({type:new Struct(t),length:p,children:c,nullCount:0});[this.schema,this.data]=ensureSameLengthData(h,y.children,p);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=collectDictionaries(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(o){return this.data.getValid(o)}get(o){return instance$4.visit(this.data,o)}at(o){return this.get(wrapIndex(o,this.numRows))}set(o,e){return instance$5.visit(this.data,o,e)}indexOf(o,e){return instance$3.visit(this.data,o,e)}[Symbol.iterator](){return instance$2.visit(new Vector([this.data]))}toArray(){return[...this]}concat(...o){return new Table(this.schema,[this,...o])}slice(o,e){const[t]=new Vector([this.data]).slice(o,e).data;return new So(this.schema,t)}getChild(o){var e;return this.getChildAt((e=this.schema.fields)===null||e===void 0?void 0:e.findIndex(t=>t.name===o))}getChildAt(o){return o>-1&&o<this.schema.fields.length?new Vector([this.data.children[o]]):null}setChild(o,e){var t;return this.setChildAt((t=this.schema.fields)===null||t===void 0?void 0:t.findIndex(c=>c.name===o),e)}setChildAt(o,e){let t=this.schema,c=this.data;if(o>-1&&o<this.numCols){e||(e=new Vector([makeData({type:new Null,length:this.numRows})]));const p=t.fields.slice(),h=c.children.slice(),y=p[o].clone({type:e.type});[p[o],h[o]]=[y,e.data[0]],t=new Schema$1(p,new Map(this.schema.metadata)),c=makeData({type:new Struct(p),children:h})}return new So(t,c)}select(o){const e=this.schema.select(o),t=new Struct(e.fields),c=[];for(const p of o){const h=this.schema.fields.findIndex(y=>y.name===p);~h&&(c[h]=this.data.children[h])}return new So(e,makeData({type:t,length:this.numRows,children:c}))}selectAt(o){const e=this.schema.selectAt(o),t=o.map(p=>
23this.data.children[p]).filter(Boolean),c=makeData({type:new Struct(e.fields),length:this.numRows,children:t});return new So(e,c)}};_a$1=Symbol.toStringTag;RecordBatch$1[_a$1]=(n=>(n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(RecordBatch$1.prototype);function ensureSameLengthData(n,o,e=o.reduce((t,c)=>Math.max(t,c.length),0)){var t;const c=[...n.fields],p=[...o],h=(e+63&-64)>>3;for(const[y,g]of n.fields.entries()){const $=o[y];(!$||$.length!==e)&&(c[y]=g.clone({nullable:!0}),p[y]=(t=$?._changeLengthAndBackfillNullBitmap(e))!==null&&t!==void 0?t:makeData({type:g.type,length:e,nullCount:e,nullBitmap:new Uint8Array(h)}))}return[n.assign(c),makeData({type:new Struct(c),length:e,children:p})]}function collectDictionaries(n,o,e=new Map){var t,c;if(((t=n?.length)!==null&&t!==void 0?t:0)>0&&n?.length===o?.length)for(let p=-1,h=n.length;++p<h;){const{type:y}=n[p],g=o[p];for(const $ of[g,...((c=g?.dictionary)===null||c===void 0?void 0:c.data)||[]])collectDictionaries(y.children,$?.children,e);if(DataType.isDictionary(y)){const{id:$}=y;if(!e.has($))g?.dictionary&&e.set($,g.dictionary);else if(e.get($)!==g.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return e}class _InternalEmptyPlaceholderRecordBatch extends RecordBatch$1{constructor(o){const e=o.fields.map(c=>makeData({type:c.type})),t=makeData({type:new Struct(o.fields),nullCount:0,children:e});super(o,t)}}let Message$1=class ur{constructor(){this.bb=null,this.bb_pos=0}__init(o,e){return this.bb_pos=o,this.bb=e,this}static getRootAsMessage(o,e){return(e||new ur).__init(o.readInt32(o.position())+o.position(),o)}static getSizePrefixedRootAsMessage(o,e){return o.setPosition(o.position()+SIZE_PREFIX_LENGTH),(e||new ur).__init(o.readInt32(o.position())+o.position(),o)}version(){const o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):MetadataVersion.V1}headerType(){const o=this.bb.__offset(this.bb_pos,6);return o?this.bb.readUint8(this.bb_pos+o):MessageHeader.NONE}header(o){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(o,this.bb_pos+e):null}bodyLength(){const o=this.bb.__offset(this.bb_pos,10);return o?this.bb.readInt64(this.bb_pos+o):BigInt("0")}customMetadata(o,e){const t=this.bb.__offset(this.bb_pos,12);return t?(e||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+o*4),this.bb):null}customMetadataLength(){const o=this.bb.__offset(this.bb_pos,12);return o?this.bb.__vector_len(this.bb_pos+o):0}static startMessage(o){o.startObject(5)}static addVersion(o,e){o.addFieldInt16(0,e,MetadataVersion.V1)}static addHeaderType(o,e){o.addFieldInt8(1,e,MessageHeader.NONE)}static addHeader(o,e){o.addFieldOffset(2,e,0)}static addBodyLength(o,e){o.addFieldInt64(3,e,BigInt("0"))}static addCustomMetadata(o,e){o.addFieldOffset(4,e,0)}static createCustomMetadataVector(o,e){o.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)o.addOffset(e[t]);return o.endVector()}static startCustomMetadataVector(o,e){o.startVector(4,e,4)}static endMessage(o){return o.endObject()}static finishMessageBuffer(o,e){o.finish(e)}static finishSizePrefixedMessageBuffer(o,e){o.finish(e,void 0,!0)}static createMessage(o,e,t,c,p,h){return ur.startMessage(o),ur.addVersion(o,e),ur.addHeaderType(o,t),ur.addHeader(o,c),ur.addBodyLength(o,p),ur.addCustomMetadata(o,h),ur.endMessage(o)}};class TypeAssembler extends Visitor{visit(o,e){return o==null||e==null?void 0:super.visit(o,e)}visitNull(o,e){return Null$1.startNull(e),Null$1.endNull(e)}visitInt(o,e){return Int.startInt(e),Int.addBitWidth(e,o.bitWidth),Int.addIsSigned(e,o.isSigned),Int.endInt(e)}visitFloat(o,e){return FloatingPoint.startFloatingPoint(e),FloatingPoint.addPrecision(e,o.precision),FloatingPoint.endFloatingPoint(e)}visitBinary(o,e){return Binary$1.startBinary(e),Binary$1.endBinary(e)}visitLargeBinary(o,e){return LargeBinary$1.startLargeBinary(e),LargeBinary$1.endLargeBinary(e)}visitBool(o,e){return Bool$1.startBool(e),Bool$1.endBool(e)}visitUtf8(o,e){return Utf8$1.startUtf8(e),Utf8$1.endUtf8(e)}visitLargeUtf8(o,e){return LargeUtf8$1.startLargeUtf8(e),LargeUtf8$1.endLargeUtf8(e)}visitDecimal(o,e){return Decimal$1.startDecimal(e),Decimal$1.addScale(e,o.scale),Decimal$1.addPrecision(e,o.precision),Decimal$1.addBitWidth(e,o.bitWidth),Decimal$1.endDecimal(e)}visitDate(o,e){return Date$1.startDate(e),Date$1.addUnit(e,o.unit),Date$1.endDate(e)}visitTime(o,e){return Time.startTime(e),Time.addUnit(e,o.unit),Time.addBitWidth(e,o.bitWidth),Time.endTime(e)}visitTimestamp(o,e){const t=o.timezone&&e.createString(o.timezone)||void 0;return Timestamp.startTimestamp(e),Timestamp.addUnit(e,o.unit),t!==void 0&&Timestamp.addTimezone(e,t),Timestamp.endTimestamp(e)}visitInterval(o,e){return Interval.startInterval(e),Interval.addUnit(e,o.unit),Interval.endInterval(e)}visitDuration(o,e){return Duration$1.startDuration(e),Duration$1.addUnit(e,o.unit),Duration$1.endDuration(e)}visitList(o,e){return List$1.startList(e),List$1.endList(e)}visitStruct(o,e){return Struct_.startStruct_(e),Struct_.endStruct_(e)}visitUnion(o,e){Union.startTypeIdsVector(e,o.typeIds.length);const t=Union.createTypeIdsVector(e,o.typeIds);return Union.startUnion(e),Union.addMode(e,o.mode),Union.addTypeIds(e,t),Union.endUnion(e)}visitDictionary(o,e){const t=this.visit(o.indices,e);return DictionaryEncoding.startDictionaryEncoding(e),DictionaryEncoding.addId(e,BigInt(o.id)),DictionaryEncoding.addIsOrdered(e,o.isOrdered),t!==void 0&&DictionaryEncoding.addIndexType(e,t),DictionaryEncoding.endDictionaryEncoding(e)}visitFixedSizeBinary(o,e){return FixedSizeBinary$1.startFixedSizeBinary(e),FixedSizeBinary$1.addByteWidth(e,o.byteWidth),FixedSizeBinary$1.endFixedSizeBinary(e)}visitFixedSizeList(o,e){return FixedSizeList$2.startFixedSizeList(e),FixedSizeList$2.addListSize(e,o.listSize),FixedSizeList$2.endFixedSizeList(e)}visitMap(o,e){return Map$1.startMap(e),Map$1.addKeysSorted(e,o.keysSorted),Map$1.endMap(e)}}const instance=new TypeAssembler;function schemaFromJSON(n,o=new Map){return new Schema$1(schemaFieldsFromJSON(n,o),customMetadataFromJSON(n.metadata),o)}function recordBatchFromJSON(n){return new RecordBatch(n.count,fieldNodesFromJSON(n.columns),buffersFromJSON(n.columns))}function dictionaryBatchFromJSON(n){return new DictionaryBatch(recordBatchFromJSON(n.data),n.id,n.isDelta)}
23function schemaFieldsFromJSON(n,o){return(n.fields||[]).filter(Boolean).map(e=>Field.fromJSON(e,o))}function fieldChildrenFromJSON(n,o){return(n.children||[]).filter(Boolean).map(e=>Field.fromJSON(e,o))}function fieldNodesFromJSON(n){return(n||[]).reduce((o,e)=>[...o,new FieldNode(e.count,nullCountFromJSON(e.VALIDITY)),...fieldNodesFromJSON(e.children)],[])}function buffersFromJSON(n,o=[]){for(let e=-1,t=(n||[]).length;++e<t;){const c=n[e];c.VALIDITY&&o.push(new BufferRegion(o.length,c.VALIDITY.length)),c.TYPE_ID&&o.push(new BufferRegion(o.length,c.TYPE_ID.length)),c.OFFSET&&o.push(new BufferRegion(o.length,c.OFFSET.length)),c.DATA&&o.push(new BufferRegion(o.length,c.DATA.length)),o=buffersFromJSON(c.children,o)}return o}function nullCountFromJSON(n){return(n||[]).reduce((o,e)=>o+ +(e===0),0)}function fieldFromJSON(n,o){let e,t,c,p,h,y;return!o||!(p=n.dictionary)?(h=typeFromJSON(n,fieldChildrenFromJSON(n,o)),c=new Field(n.name,h,n.nullable,customMetadataFromJSON(n.metadata))):o.has(e=p.id)?(t=(t=p.indexType)?indexTypeFromJSON(t):new Int32,y=new Dictionary(o.get(e),t,e,p.isOrdered),c=new Field(n.name,y,n.nullable,customMetadataFromJSON(n.metadata))):(t=(t=p.indexType)?indexTypeFromJSON(t):new Int32,o.set(e,h=typeFromJSON(n,fieldChildrenFromJSON(n,o))),y=new Dictionary(h,t,e,p.isOrdered),c=new Field(n.name,y,n.nullable,customMetadataFromJSON(n.metadata))),c||null}function customMetadataFromJSON(n=[]){return new Map(n.map(({key:o,value:e})=>[o,e]))}function indexTypeFromJSON(n){return new Int_(n.isSigned,n.bitWidth)}function typeFromJSON(n,o){const e=n.type.name;switch(e){case"NONE":return new Null;case"null":return new Null;case"binary":return new Binary;case"largebinary":return new LargeBinary;case"utf8":return new Utf8;case"largeutf8":return new LargeUtf8;case"bool":return new Bool;case"list":return new List((o||[])[0]);case"struct":return new Struct(o||[]);case"struct_":return new Struct(o||[])}switch(e){case"int":{const t=n.type;return new Int_(t.isSigned,t.bitWidth)}case"floatingpoint":{const t=n.type;return new Float(Precision[t.precision])}case"decimal":{const t=n.type;return new Decimal(t.scale,t.precision,t.bitWidth)}case"date":{const t=n.type;return new Date_(DateUnit[t.unit])}case"time":{const t=n.type;return new Time_(TimeUnit[t.unit],t.bitWidth)}case"timestamp":{const t=n.type;return new Timestamp_(TimeUnit[t.unit],t.timezone)}case"interval":{const t=n.type;return new Interval_(IntervalUnit[t.unit])}case"duration":{const t=n.type;return new Duration(TimeUnit[t.unit])}case"union":{const t=n.type,[c,...p]=(t.mode+"").toLowerCase(),h=c.toUpperCase()+p.join("");return new Union_(UnionMode[h],t.typeIds||[],o||[])}case"fixedsizebinary":{const t=n.type;return new FixedSizeBinary(t.byteWidth)}case"fixedsizelist":{const t=n.type;return new FixedSizeList$1(t.listSize,(o||[])[0])}case"map":{const t=n.type;return new Map_((o||[])[0],t.keysSorted)}}throw new Error(`Unrecognized type: "${e}"`)}var Builder=Builder$2,ByteBuffer=ByteBuffer$2;class Message{static fromJSON(o,e){const t=new Message(0,MetadataVersion.V5,e);return t._createHeader=messageHeaderFromJSON(o,e),t}static decode(o){o=new ByteBuffer(toUint8Array(o));const e=Message$1.getRootAsMessage(o),t=e.bodyLength(),c=e.version(),p=e.headerType(),h=new Message(t,c,p);return h._createHeader=decodeMessageHeader(e,p),h}static encode(o){const e=new Builder;let t=-1;return o.isSchema()?t=Schema$1.encode(e,o.header()):o.isRecordBatch()?t=RecordBatch.encode(e,o.header()):o.isDictionaryBatch()&&(t=DictionaryBatch.encode(e,o.header())),Message$1.startMessage(e),Message$1.addVersion(e,MetadataVersion.V5),Message$1.addHeader(e,t),Message$1.addHeaderType(e,o.headerType),Message$1.addBodyLength(e,BigInt(o.bodyLength)),Message$1.finishMessageBuffer(e,Message$1.endMessage(e)),e.asUint8Array()}static from(o,e=0){if(o instanceof Schema$1)return new Message(0,MetadataVersion.V5,MessageHeader.Schema,o);if(o instanceof RecordBatch)return new Message(e,MetadataVersion.V5,MessageHeader.RecordBatch,o);if(o instanceof DictionaryBatch)return new Message(e,MetadataVersion.V5,MessageHeader.DictionaryBatch,o);throw new Error(`Unrecognized Message header: ${o}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===MessageHeader.Schema}isRecordBatch(){return this.headerType===MessageHeader.RecordBatch}isDictionaryBatch(){return this.headerType===MessageHeader.DictionaryBatch}constructor(o,e,t,c){this._version=e,this._headerType=t,this.body=new Uint8Array(0),c&&(this._createHeader=()=>c),this._bodyLength=bigIntToNumber(o)}}class RecordBatch{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(o,e,t){this._nodes=e,this._buffers=t,this._length=bigIntToNumber(o)}}class DictionaryBatch{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(o,e,t=!1){this._data=o,this._isDelta=t,this._id=bigIntToNumber(e)}}class BufferRegion{constructor(o,e){this.offset=bigIntToNumber(o),this.length=bigIntToNumber(e)}}
23class FieldNode{constructor(o,e){this.length=bigIntToNumber(o),this.nullCount=bigIntToNumber(e)}}function messageHeaderFromJSON(n,o){return()=>{switch(o){case MessageHeader.Schema:return Schema$1.fromJSON(n);case MessageHeader.RecordBatch:return RecordBatch.fromJSON(n);case MessageHeader.DictionaryBatch:return DictionaryBatch.fromJSON(n)}throw new Error(`Unrecognized Message type: { name: ${MessageHeader[o]}, type: ${o} }`)}}function decodeMessageHeader(n,o){return()=>{switch(o){case MessageHeader.Schema:return Schema$1.decode(n.header(new Schema$2),new Map,n.version());case MessageHeader.RecordBatch:return RecordBatch.decode(n.header(new RecordBatch$2),n.version());case MessageHeader.DictionaryBatch:return DictionaryBatch.decode(n.header(new DictionaryBatch$1),n.version())}throw new Error(`Unrecognized Message type: { name: ${MessageHeader[o]}, type: ${o} }`)}}Field.encode=encodeField;Field.decode=decodeField;Field.fromJSON=fieldFromJSON;Schema$1.encode=encodeSchema;Schema$1.decode=decodeSchema;Schema$1.fromJSON=schemaFromJSON;RecordBatch.encode=encodeRecordBatch;RecordBatch.decode=decodeRecordBatch;RecordBatch.fromJSON=recordBatchFromJSON;DictionaryBatch.encode=encodeDictionaryBatch;DictionaryBatch.decode=decodeDictionaryBatch;DictionaryBatch.fromJSON=dictionaryBatchFromJSON;FieldNode.encode=encodeFieldNode;FieldNode.decode=decodeFieldNode;BufferRegion.encode=encodeBufferRegion;BufferRegion.decode=decodeBufferRegion;function decodeSchema(n,o=new Map,e=MetadataVersion.V5){const t=decodeSchemaFields(n,o);return new Schema$1(t,decodeCustomMetadata(n),o,e)}function decodeRecordBatch(n,o=MetadataVersion.V5){if(n.compression()!==null)throw new Error("Record batch compression not implemented");return new RecordBatch(n.length(),decodeFieldNodes(n),decodeBuffers(n,o))}function decodeDictionaryBatch(n,o=MetadataVersion.V5){return new DictionaryBatch(RecordBatch.decode(n.data(),o),n.id(),n.isDelta())}function decodeBufferRegion(n){return new BufferRegion(n.offset(),n.length())}function decodeFieldNode(n){return new FieldNode(n.length(),n.nullCount())}function decodeFieldNodes(n){const o=[];for(let e,t=-1,c=-1,p=n.nodesLength();++t<p;)(e=n.nodes(t))&&(o[++c]=FieldNode.decode(e));return o}function decodeBuffers(n,o){const e=[];for(let t,c=-1,p=-1,h=n.buffersLength();++c<h;)(t=n.buffers(c))&&(o<MetadataVersion.V4&&(t.bb_pos+=8*(c+1)),e[++p]=BufferRegion.decode(t));return e}function decodeSchemaFields(n,o){const e=[];for(let t,c=-1,p=-1,h=n.fieldsLength();++c<h;)(t=n.fields(c))&&(e[++p]=Field.decode(t,o));return e}function decodeFieldChildren(n,o){const e=[];for(let t,c=-1,p=-1,h=n.childrenLength();++c<h;)(t=n.children(c))&&(e[++p]=Field.decode(t,o));return e}function decodeField(n,o){let e,t,c,p,h,y;return!o||!(y=n.dictionary())?(c=decodeFieldType(n,decodeFieldChildren(n,o)),t=new Field(n.name(),c,n.nullable(),decodeCustomMetadata(n))):o.has(e=bigIntToNumber(y.id()))?(p=(p=y.indexType())?decodeIndexType(p):new Int32,h=new Dictionary(o.get(e),p,e,y.isOrdered()),t=new Field(n.name(),h,n.nullable(),decodeCustomMetadata(n))):(p=(p=y.indexType())?decodeIndexType(p):new Int32,o.set(e,c=decodeFieldType(n,decodeFieldChildren(n,o))),h=new Dictionary(c,p,e,y.isOrdered()),t=new Field(n.name(),h,n.nullable(),decodeCustomMetadata(n))),t||null}function decodeCustomMetadata(n){const o=new Map;if(n)for(let e,t,c=-1,p=Math.trunc(n.customMetadataLength());++c<p;)(e=n.customMetadata(c))&&(t=e.key())!=null&&o.set(t,e.value());return o}function decodeIndexType(n){return new Int_(n.isSigned(),n.bitWidth())}function decodeFieldType(n,o){const e=n.typeType();switch(e){case Type$1.NONE:return new Null;case Type$1.Null:return new Null;case Type$1.Binary:return new Binary;case Type$1.LargeBinary:return new LargeBinary;case Type$1.Utf8:return new Utf8;case Type$1.LargeUtf8:return new LargeUtf8;case Type$1.Bool:return new Bool;case Type$1.List:return new List((o||[])[0]);case Type$1.Struct_:return new Struct(o||[])}switch(e){case Type$1.Int:{const t=n.type(new Int);return new Int_(t.isSigned(),t.bitWidth())}case Type$1.FloatingPoint:{const t=n.type(new FloatingPoint);return new Float(t.precision())}
23case Type$1.Decimal:{const t=n.type(new Decimal$1);return new Decimal(t.scale(),t.precision(),t.bitWidth())}case Type$1.Date:{const t=n.type(new Date$1);return new Date_(t.unit())}case Type$1.Time:{const t=n.type(new Time);return new Time_(t.unit(),t.bitWidth())}case Type$1.Timestamp:{const t=n.type(new Timestamp);return new Timestamp_(t.unit(),t.timezone())}case Type$1.Interval:{const t=n.type(new Interval);return new Interval_(t.unit())}case Type$1.Duration:{const t=n.type(new Duration$1);return new Duration(t.unit())}case Type$1.Union:{const t=n.type(new Union);return new Union_(t.mode(),t.typeIdsArray()||[],o||[])}case Type$1.FixedSizeBinary:{const t=n.type(new FixedSizeBinary$1);return new FixedSizeBinary(t.byteWidth())}case Type$1.FixedSizeList:{const t=n.type(new FixedSizeList$2);return new FixedSizeList$1(t.listSize(),(o||[])[0])}case Type$1.Map:{const t=n.type(new Map$1);return new Map_((o||[])[0],t.keysSorted())}}throw new Error(`Unrecognized type: "${Type$1[e]}" (${e})`)}function encodeSchema(n,o){const e=o.fields.map(p=>Field.encode(n,p));Schema$2.startFieldsVector(n,e.length);const t=Schema$2.createFieldsVector(n,e),c=o.metadata&&o.metadata.size>0?Schema$2.createCustomMetadataVector(n,[...o.metadata].map(([p,h])=>{const y=n.createString(`${p}`),g=n.createString(`${h}`);return KeyValue.startKeyValue(n),KeyValue.addKey(n,y),KeyValue.addValue(n,g),KeyValue.endKeyValue(n)})):-1;return Schema$2.startSchema(n),Schema$2.addFields(n,t),Schema$2.addEndianness(n,platformIsLittleEndian?Endianness.Little:Endianness.Big),c!==-1&&Schema$2.addCustomMetadata(n,c),Schema$2.endSchema(n)}function encodeField(n,o){let e=-1,t=-1,c=-1;const p=o.type;let h=o.typeId;DataType.isDictionary(p)?(h=p.dictionary.typeId,c=instance.visit(p,n),t=instance.visit(p.dictionary,n)):t=instance.visit(p,n);const y=(p.children||[]).map(E=>Field.encode(n,E)),g=Field$1.createChildrenVector(n,y),$=o.metadata&&o.metadata.size>0?Field$1.createCustomMetadataVector(n,[...o.metadata].map(([E,A])=>{const N=n.createString(`${E}`),H=n.createString(`${A}`);return KeyValue.startKeyValue(n),KeyValue.addKey(n,N),KeyValue.addValue(n,H),KeyValue.endKeyValue(n)})):-1;return o.name&&(e=n.createString(o.name)),Field$1.startField(n),Field$1.addType(n,t),Field$1.addTypeType(n,h),Field$1.addChildren(n,g),Field$1.addNullable(n,!!o.nullable),e!==-1&&Field$1.addName(n,e),c!==-1&&Field$1.addDictionary(n,c),$!==-1&&Field$1.addCustomMetadata(n,$),Field$1.endField(n)}function encodeRecordBatch(n,o){const e=o.nodes||[],t=o.buffers||[];RecordBatch$2.startNodesVector(n,e.length);for(const h of e.slice().reverse())FieldNode.encode(n,h);const c=n.endVector();RecordBatch$2.startBuffersVector(n,t.length);for(const h of t.slice().reverse())BufferRegion.encode(n,h);const p=n.endVector();return RecordBatch$2.startRecordBatch(n),RecordBatch$2.addLength(n,BigInt(o.length)),RecordBatch$2.addNodes(n,c),RecordBatch$2.addBuffers(n,p),RecordBatch$2.endRecordBatch(n)}function encodeDictionaryBatch(n,o){const e=RecordBatch.encode(n,o.data);return DictionaryBatch$1.startDictionaryBatch(n),DictionaryBatch$1.addId(n,BigInt(o.id)),DictionaryBatch$1.addIsDelta(n,o.isDelta),DictionaryBatch$1.addData(n,e),DictionaryBatch$1.endDictionaryBatch(n)}function encodeFieldNode(n,o){return FieldNode$1.createFieldNode(n,BigInt(o.length),BigInt(o.nullCount))}function encodeBufferRegion(n,o){return Buffer$1.createBuffer(n,BigInt(o.offset),BigInt(o.length))}const platformIsLittleEndian=(()=>{const n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256})(),invalidMessageType=n=>`Expected ${MessageHeader[n]} Message in stream, but was null or length 0.`,nullMessage=n=>`Header pointer of flatbuffer-encoded ${MessageHeader[n]} Message is null or length 0.`,invalidMessageMetadata=(n,o)=>`Expected to read ${n} metadata bytes, but only read ${o}.`,invalidMessageBodyLength=(n,o)=>`Expected to read ${n} bytes for message body, but only read ${o}.`;class MessageReader{constructor(o){this.source=o instanceof ByteStream?o:new ByteStream(o)}[Symbol.iterator](){return this}next(){let o;return(o=this.readMetadataLength()).done||o.value===-1&&(o=this.readMetadataLength()).done||(o=this.readMetadata(o.value)).done?ITERATOR_DONE:o}throw(o){return this.source.throw(o)}return(o){return this.source.return(o)}readMessage(o){let e;if((e=this.next()).done)return null;if(o!=null&&e.value.headerType!==o)throw new Error(invalidMessageType(o));return e.value}
23readMessageBody(o){if(o<=0)return new Uint8Array(0);const e=toUint8Array(this.source.read(o));if(e.byteLength<o)throw new Error(invalidMessageBodyLength(o,e.byteLength));return e.byteOffset%8===0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}readSchema(o=!1){const e=MessageHeader.Schema,t=this.readMessage(e),c=t?.header();if(o&&!c)throw new Error(nullMessage(e));return c}readMetadataLength(){const o=this.source.read(PADDING),e=o&&new ByteBuffer$2(o),t=e?.readInt32(0)||0;return{done:t===0,value:t}}readMetadata(o){const e=this.source.read(o);if(!e)return ITERATOR_DONE;if(e.byteLength<o)throw new Error(invalidMessageMetadata(o,e.byteLength));return{done:!1,value:Message.decode(e)}}}class AsyncMessageReader{constructor(o,e){this.source=o instanceof AsyncByteStream?o:isFileHandle(o)?new AsyncRandomAccessFile(o,e):new AsyncByteStream(o)}[Symbol.asyncIterator](){return this}next(){return __awaiter(this,void 0,void 0,function*(){let o;return(o=yield this.readMetadataLength()).done||o.value===-1&&(o=yield this.readMetadataLength()).done||(o=yield this.readMetadata(o.value)).done?ITERATOR_DONE:o})}throw(o){return __awaiter(this,void 0,void 0,function*(){return yield this.source.throw(o)})}return(o){return __awaiter(this,void 0,void 0,function*(){return yield this.source.return(o)})}readMessage(o){return __awaiter(this,void 0,void 0,function*(){let e;if((e=yield this.next()).done)return null;if(o!=null&&e.value.headerType!==o)throw new Error(invalidMessageType(o));return e.value})}readMessageBody(o){return __awaiter(this,void 0,void 0,function*(){if(o<=0)return new Uint8Array(0);const e=toUint8Array(yield this.source.read(o));if(e.byteLength<o)throw new Error(invalidMessageBodyLength(o,e.byteLength));return e.byteOffset%8===0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()})}readSchema(){return __awaiter(this,arguments,void 0,function*(o=!1){const e=MessageHeader.Schema,t=yield this.readMessage(e),c=t?.header();if(o&&!c)throw new Error(nullMessage(e));return c})}readMetadataLength(){return __awaiter(this,void 0,void 0,function*(){const o=yield this.source.read(PADDING),e=o&&new ByteBuffer$2(o),t=e?.readInt32(0)||0;return{done:t===0,value:t}})}readMetadata(o){return __awaiter(this,void 0,void 0,function*(){const e=yield this.source.read(o);if(!e)return ITERATOR_DONE;if(e.byteLength<o)throw new Error(invalidMessageMetadata(o,e.byteLength));return{done:!1,value:Message.decode(e)}})}}class JSONMessageReader extends MessageReader{constructor(o){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=o instanceof ArrowJSON?o:new ArrowJSON(o)}next(){const{_json:o}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Message.fromJSON(o.schema,MessageHeader.Schema)};if(this._dictionaryIndex<o.dictionaries.length){const e=o.dictionaries[this._dictionaryIndex++];return this._body=e.data.columns,{done:!1,value:Message.fromJSON(e,MessageHeader.DictionaryBatch)}}if(this._batchIndex<o.batches.length){const e=o.batches[this._batchIndex++];return this._body=e.columns,{done:!1,value:Message.fromJSON(e,MessageHeader.RecordBatch)}}return this._body=[],ITERATOR_DONE}readMessageBody(o){return e(this._body);function e(t){return(t||[]).reduce((c,p)=>[...c,...p.VALIDITY&&[p.VALIDITY]||[],...p.TYPE_ID&&[p.TYPE_ID]||[],...p.OFFSET&&[p.OFFSET]||[],...p.DATA&&[p.DATA]||[],...e(p.children)],[])}}readMessage(o){let e;if((e=this.next()).done)return null;if(o!=null&&e.value.headerType!==o)throw new Error(invalidMessageType(o));return e.value}readSchema(){const o=MessageHeader.Schema,e=this.readMessage(o),t=e?.header();if(!e||!t)throw new Error(nullMessage(o));return t}}const PADDING=4,MAGIC_STR="ARROW1",MAGIC=new Uint8Array(MAGIC_STR.length);for(let n=0;n<MAGIC_STR.length;n+=1)MAGIC[n]=MAGIC_STR.codePointAt(n);function checkForMagicArrowString(n,o=0){for(let e=-1,t=MAGIC.length;++e<t;)if(MAGIC[e]!==n[o+e])return!1;return!0}const magicLength=MAGIC.length,magicAndPadding=magicLength+PADDING,magicX2AndPadding=magicLength*2+PADDING;class RecordBatchReader extends ReadableInterop{constructor(o){super(),this._impl=o}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(o){return this._impl.throw(o)}return(o){return this._impl.return(o)}cancel(){return this._impl.cancel()}reset(o){return this._impl.reset(o),this._DOMStream=void 0,this._nodeStream=void 0,this}open(o){const e=this._impl.open(o);return isPromise(e)?e.then(()=>this):this}readRecordBatch(o){return this._impl.isFile()?this._impl.readRecordBatch(o):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return streamAdapters.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return streamAdapters.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(o){throw new Error('"throughNode" not available in this environment')}static throughDOM(o,e){throw new Error('"throughDOM" not available in this environment')}static from(o){return o instanceof RecordBatchReader?o:isArrowJSON(o)?fromArrowJSON(o):isFileHandle(o)?fromFileHandle(o):isPromise(o)?__awaiter(this,void 0,void 0,function*(){return yield RecordBatchReader.from(yield o)}):isFetchResponse(o)||isReadableDOMStream(o)||isReadableNodeStream(o)||isA
23syncIterable(o)?fromAsyncByteStream(new AsyncByteStream(o)):fromByteStream(new ByteStream(o))}static readAll(o){return o instanceof RecordBatchReader?o.isSync()?readAllSync(o):readAllAsync(o):isArrowJSON(o)||ArrayBuffer.isView(o)||isIterable(o)||isIteratorResult(o)?readAllSync(o):readAllAsync(o)}}class RecordBatchStreamReader extends RecordBatchReader{constructor(o){super(o),this._impl=o}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return __asyncGenerator(this,arguments,function*(){yield __await(yield*__asyncDelegator(__asyncValues(this[Symbol.iterator]())))})}}class AsyncRecordBatchStreamReader extends RecordBatchReader{constructor(o){super(o),this._impl=o}readAll(){return __awaiter(this,void 0,void 0,function*(){var o,e,t,c;const p=new Array;try{for(var h=!0,y=__asyncValues(this),g;g=yield y.next(),o=g.done,!o;h=!0){c=g.value,h=!1;const $=c;p.push($)}}catch($){e={error:$}}finally{try{!h&&!o&&(t=y.return)&&(yield t.call(y))}finally{if(e)throw e.error}}return p})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class RecordBatchFileReader extends RecordBatchStreamReader{constructor(o){super(o),this._impl=o}}class AsyncRecordBatchFileReader extends AsyncRecordBatchStreamReader{constructor(o){super(o),this._impl=o}}class RecordBatchReaderImpl{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(o=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=o}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(o){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=o,this.dictionaries=new Map,this}_loadRecordBatch(o,e){const t=this._loadVectors(o,e,this.schema.fields),c=makeData({type:new Struct(this.schema.fields),length:o.length,children:t});return new RecordBatch$1(this.schema,c)}_loadDictionaryBatch(o,e){const{id:t,isDelta:c}=o,{dictionaries:p,schema:h}=this,y=p.get(t),g=h.dictionaries.get(t),$=this._loadVectors(o.data,e,[g]);return(y&&c?y.concat(new Vector($)):new Vector($)).memoize()}_loadVectors(o,e,t){return new VectorLoader(e,o.nodes,o.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(t)}}class RecordBatchStreamReaderImpl extends RecordBatchReaderImpl{constructor(o,e){super(e),this._reader=isArrowJSON(o)?new JSONMessageReader(this._handle=o):new MessageReader(this._handle=o)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(o){return this.closed||(this.autoDestroy=shouldAutoDestroy(this,o),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(o){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(o):ITERATOR_DONE}return(o){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(o):ITERATOR_DONE}next(){if(this.closed)return ITERATOR_DONE;let o;const{_reader:e}=this;for(;o=this._readNextMessageAndValidate();)if(o.isSchema())this.reset(o.header());else if(o.isRecordBatch()){this._recordBatchIndex++;const t=o.header(),c=e.readMessageBody(o.bodyLength);return{done:!1,value:this._loadRecordBatch(t,c)}}else if(o.isDictionaryBatch()){this._dictionaryIndex++;const t=o.header(),c=e.readMessageBody(o.bodyLength),p=this._loadDictionaryBatch(t,c);this.dictionaries.set(t.id,p)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new _InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(o){return this._reader.readMessage(o)}}class AsyncRecordBatchStreamReaderImpl extends RecordBatchReaderImpl{constructor(o,e){super(e),this._reader=new AsyncMessageReader(this._handle=o)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return __awaiter(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(o){return __awaiter(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=shouldAutoDestroy(this,o),this.schema||(this.schema=yield this._reader.readSchema())||
23(yield this.cancel())),this})}throw(o){return __awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(o):ITERATOR_DONE})}return(o){return __awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(o):ITERATOR_DONE})}next(){return __awaiter(this,void 0,void 0,function*(){if(this.closed)return ITERATOR_DONE;let o;const{_reader:e}=this;for(;o=yield this._readNextMessageAndValidate();)if(o.isSchema())yield this.reset(o.header());else if(o.isRecordBatch()){this._recordBatchIndex++;const t=o.header(),c=yield e.readMessageBody(o.bodyLength);return{done:!1,value:this._loadRecordBatch(t,c)}}else if(o.isDictionaryBatch()){this._dictionaryIndex++;const t=o.header(),c=yield e.readMessageBody(o.bodyLength),p=this._loadDictionaryBatch(t,c);this.dictionaries.set(t.id,p)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new _InternalEmptyPlaceholderRecordBatch(this.schema)}):yield this.return()})}_readNextMessageAndValidate(o){return __awaiter(this,void 0,void 0,function*(){return yield this._reader.readMessage(o)})}}class RecordBatchFileReaderImpl extends RecordBatchStreamReaderImpl{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(o,e){super(o instanceof RandomAccessFile?o:new RandomAccessFile(o),e)}isSync(){return!0}isFile(){return!0}open(o){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(o)}readRecordBatch(o){var e;if(this.closed)return null;this._footer||this.open();const t=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(o);if(t&&this._handle.seek(t.offset)){const c=this._reader.readMessage(MessageHeader.RecordBatch);if(c?.isRecordBatch()){const p=c.header(),h=this._reader.readMessageBody(c.bodyLength);return this._loadRecordBatch(p,h)}}return null}_readDictionaryBatch(o){var e;const t=(e=this._footer)===null||e===void 0?void 0:e.getDictionaryBatch(o);if(t&&this._handle.seek(t.offset)){const c=this._reader.readMessage(MessageHeader.DictionaryBatch);if(c?.isDictionaryBatch()){const p=c.header(),h=this._reader.readMessageBody(c.bodyLength),y=this._loadDictionaryBatch(p,h);this.dictionaries.set(p.id,y)}}}_readFooter(){const{_handle:o}=this,e=o.size-magicAndPadding,t=o.readInt32(e),c=o.readAt(e-t,t);return Footer_.decode(c)}_readNextMessageAndValidate(o){var e;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const t=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(o)}return null}}class AsyncRecordBatchFileReaderImpl extends AsyncRecordBatchStreamReaderImpl{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(o,...e){const t=typeof e[0]!="number"?e.shift():void 0,c=e[0]instanceof Map?e.shift():void 0;super(o instanceof AsyncRandomAccessFile?o:new AsyncRandomAccessFile(o,t),c)}isFile(){return!0}isAsync(){return!0}open(o){const e=Object.create(null,{open:{get:()=>super.open}});return __awaiter(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const t of this._footer.dictionaryBatches())t&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield e.open.call(this,o)})}readRecordBatch(o){return __awaiter(this,void 0,void 0,function*(){var e;if(this.closed)return null;this._footer||(yield this.open());const t=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(o);if(t&&(yield this._handle.seek(t.offset))){const c=yield this._reader.readMessage(MessageHeader.RecordBatch);if(c?.isRecordBatch()){const p=c.header(),h=yield this._reader.readMessageBody(c.bodyLength);return this._loadRecordBatch(p,h)}}return null})}_readDictionaryBatch(o){return __awaiter(this,void 0,void 0,function*(){var e;const t=(e=this._footer)===null||e===void 0?void 0:e.getDictionaryBatch(o);if(t&&(yield this._handle.seek(t.offset))){const c=yield this._reader.readMessage(MessageHeader.DictionaryBatch);if(c?.isDictionaryBatch()){const p=c.header(),h=yield this._reader.readMessageBody(c.bodyLength),y=this._loadDictionaryBatch(p,h);this.dictionaries.set(p.id,y)}}})}_readFooter(){return __awaiter(this,void 0,void 0,function*(){const{_handle:o}=this;
23o._pending&&(yield o._pending);const e=o.size-magicAndPadding,t=yield o.readInt32(e),c=yield o.readAt(e-t,t);return Footer_.decode(c)})}_readNextMessageAndValidate(o){return __awaiter(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const e=this._footer.getRecordBatch(this._recordBatchIndex);if(e&&(yield this._handle.seek(e.offset)))return yield this._reader.readMessage(o)}return null})}}class RecordBatchJSONReaderImpl extends RecordBatchStreamReaderImpl{constructor(o,e){super(o,e)}_loadVectors(o,e,t){return new JSONVectorLoader(e,o.nodes,o.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(t)}}function shouldAutoDestroy(n,o){return o&&typeof o.autoDestroy=="boolean"?o.autoDestroy:n.autoDestroy}function*readAllSync(n){const o=RecordBatchReader.from(n);try{if(!o.open({autoDestroy:!1}).closed)do yield o;while(!o.reset().open().closed)}finally{o.cancel()}}function readAllAsync(n){return __asyncGenerator(this,arguments,function*(){const e=yield __await(RecordBatchReader.from(n));try{if(!(yield __await(e.open({autoDestroy:!1}))).closed)do yield yield __await(e);while(!(yield __await(e.reset().open())).closed)}finally{yield __await(e.cancel())}})}function fromArrowJSON(n){return new RecordBatchStreamReader(new RecordBatchJSONReaderImpl(n))}function fromByteStream(n){const o=n.peek(magicLength+7&-8);return o&&o.byteLength>=4?checkForMagicArrowString(o)?new RecordBatchFileReader(new RecordBatchFileReaderImpl(n.read())):new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(n)):new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(function*(){}()))}function fromAsyncByteStream(n){return __awaiter(this,void 0,void 0,function*(){const o=yield n.peek(magicLength+7&-8);return o&&o.byteLength>=4?checkForMagicArrowString(o)?new RecordBatchFileReader(new RecordBatchFileReaderImpl(yield n.read())):new AsyncRecordBatchStreamReader(new AsyncRecordBatchStreamReaderImpl(n)):new AsyncRecordBatchStreamReader(new AsyncRecordBatchStreamReaderImpl(function(){return __asyncGenerator(this,arguments,function*(){})}()))})}function fromFileHandle(n){return __awaiter(this,void 0,void 0,function*(){const{size:o}=yield n.stat(),e=new AsyncRandomAccessFile(n,o);return o>=magicX2AndPadding&&checkForMagicArrowString(yield e.readAt(0,magicLength+7&-8))?new AsyncRecordBatchFileReader(new AsyncRecordBatchFileReaderImpl(e)):new AsyncRecordBatchStreamReader(new AsyncRecordBatchStreamReaderImpl(e))})}function tableFromIPC(n){const o=RecordBatchReader.from(n);return isPromise(o)?o.then(e=>tableFromIPC(e)):o.isAsync()?o.readAll().then(e=>new Table(e)):new Table(o.readAll())}const PandasRangeIndexType="range";var DataFrameCellType=function(n){return n.INDEX="index",n.DATA="data",n}({});function convertVectorToList(n){const o=[];for(let e=0;e<n.length;e++)o.push(n.get(e));return o}function getPandasTypeName(n){if(!isNullOrUndefined(n.pandasType))return n.pandasType.pandas_type==="object"?n.pandasType.numpy_type:n.pandasType.pandas_type}function getTimezone(n){return n.arrowField?.type?.timezone??n.pandasType?.metadata?.timezone}function isIntegerType(n){if(isNullOrUndefined(n))return!1;const o=getPandasTypeName(n)??"";return DataType.isInt(n.arrowField.type)&&!isPeriodType(n)||o.startsWith("int")&&!isIntervalType(n)||isRangeIndexType(n)||isUnsignedIntegerType(n)}function isUnsignedIntegerType(n){return isNullOrUndefined(n)?!1:DataType.isInt(n.arrowField.type)&&n.arrowField.type.isSigned===!1||(getPandasTypeName(n)?.startsWith("uint")??!1)}function isFloatType(n){return isNullOrUndefined(n)?!1:(DataType.isFloat(n.arrowField.type)||getPandasTypeName(n)?.startsWith("float"))??!1}function isDecimalType(n){return isNullOrUndefined(n)?!1:DataType.isDecimal(n.arrowField.type)||getPandasTypeName(n)==="decimal"}function isNumericType(n){return isNullOrUndefined(n)?!1:isIntegerType(n)||isFloatType(n)||isDecimalType(n)}function isBooleanType(n){return isNullOrUndefined(n)?!1:DataType.isBool(n.arrowField.type)||getPandasTypeName(n)==="bool"}function isDurationType(n){return isNullOrUndefined(n)?!1:DataType.isDuration(n.arrowField.type)||(getPandasTypeName(n)?.startsWith("timedelta")??!1)}function isPeriodType(n){return isNullOrUndefined(n)?!1:DataType.isInt(n.arrowField.type)&&n.arrowField.metadata.get("ARROW:extension:name")==="period"||(getPandasTypeName(n)?.startsWith("period")??!1)}function isDatetimeType(n){return isNullOrUndefined(n)?!1:DataType.isTimestamp(n.arrowField.type)||(getPandasTypeName(n)?.startsWith("datetime")??!1)}function isDateType(n){return isNullOrUndefined(n)?!1:DataType.isDate(n.arrowField.type)||getPandasTypeName(n)==="date"}function isTimeType(n){return isNullOrUndefined(n)?!1:DataType.isTime(n.arrowField.type)||getPandasTypeName(n)==="time"}function isCategoricalType(n){return isNullOrUndefined(n)?!1:DataType.isDictionary(n.arrowField.type)||getPandasTypeName(n)==="categorical"}function isListType(n){return isNullOrUndefined(n)?!1:DataType.isList(n.arrowField.type)||DataType.isFixedSizeList(n.arrowField.type)||(getPandasTypeName(n)?.startsWith("list")??!1)}function isObjectType(n){return isNullOrUndefined(n)?!1:DataType.isStruct(n.arrowField.type)||DataType.isMap(n.arrowField.type)||getPandasTypeName(n)==="object"}function isBytesType(n){return isNullOrUndefined(n)?!1:DataType.isBinary(n.arrowField.type)||DataType.isLargeBinary(n.arrowField.type)||getPandasTypeName(n)==="bytes"}function isStringType(n){return isNullOrUndefined(n)?!1:DataType.isUtf8(n.arrowField.type)||DataType.isLargeUtf8(n.arrowField.type)||["unicode","large_string[pyarrow]"].includes(getPandasTypeName(n)??"")}function isEmptyType(n){return isNullOrUndefined(n)?!1:DataType.isNull(n.arrowField.type)||getPandasTypeName(n)==="empty"}function isIntervalType(n){return isNullOrUndefined(n)?!1:DataType.isStruct(n.arrowField.type)&&n.arrowField.metadata.get("ARROW:extension:name")==="interval"||(getPandasTypeName(n)?.startsWith("interval")??!1)}function isRangeIndexType(n){return isNullOrUndefined(n)?!1:getPandasTypeName(n)===PandasRangeIndexType}function sameDataTypes(n,o){return n.every((e,t)=>e.pandasType?.pandas_type===o[t]?.pandasType?.pandas_type)}function sameIndexTypes(n,o){return n.length!==o.length?!1:n.every((e,t)=>t<o.length&&getPandasTypeName(e)===getPandasTypeName(o[t]))}function concatIndexes(n,o,e,t){if(e.length===0)return n;if(n.length===0)return e;if(!sameIndexTypes(o,t)){const p=t.map(y=>getPandasTypeName(y)),h=o.map(y=>getPandasTypeName(y));throw new Error(` 24Unsupported operation. The data passed into \`add_rows()\` must have the same 25index signature as the original data. 26 27In this case, \`add_rows()\` received \`${JSON.stringify(p)}\` 28but was expecting \`${JSON.stringify(h)}\`. 29`)}if(o.length===0)throw new Error("There was an error while parsing index types.");if(isRangeIndexType(o[0])){const{step:p,stop:h}=o[0].pandasType?.metadata;e=[range(h,h+e[0].length*p,p)]}return zip(n,e).map(p=>p[0].concat(p[1]))}function concatData(n,o,e,t){if(e.numCols===0)return n;if(n.numCols===0)return e;if(!sameDataTypes(o,t)){const p=t.map(y=>y.pandasType?.pandas_type),h=o.map(y=>y.pandasType?.pandas_type);throw new Error(` 30Unsupported operation. The data passed into \`add_rows()\` must have the same 31data signature as the original data. 32 33In this case, \`add_rows()\` received \`${JSON.stringify(p)}\` 34but was expecting \`${JSON.stringify(h)}\`. 35`)}const c=e.selectAt(range(0,n.numCols));return n.concat(c)}function concatTypes(n,o,e,t){const c=concatIndexTypes(n,e),p=concatDataTypes(o,t);return{indexTypes:c,dataTypes:p}}function concatIndexTypes(n,o){if(o.length===0)return n;if(n.length===0)return o;if(!sameIndexTypes(n,o)){const e=o.map(c=>getPandasTypeName(c)),t=n.map(c=>getPandasTypeName(c));throw new Error(` 36Unsupported operation. The data passed into \`add_rows()\` must have the same 37index signature as the original data. 38 39In this case, \`add_rows()\` received \`${JSON.stringify(e)}\` 40but was expecting \`${JSON.stringify(t)}\`. 41`)}return n.map(e=>{if(isRangeIndexType(e)&&e.pandasType){const{stop:t,step:c}=e.pandasType.metadata,{start:p,stop:h,step:y}=o[0].pandasType?.metadata,g=(h-p)/y,$=t+g*c;return{...e,pandasType:{...e.pandasType,metadata:{...e.pandasType.metadata,stop:$}}}}return e})}function concatDataTypes(n,o){return n.length===0?o:n}function concat(n,o,e,t,c,p,h,y){const g=concatIndexes(e,o,h,p),$=concatData(t,n,y,c),{indexTypes:E,dataTypes:A}=concatTypes(o,n,p,c);return{index:g,data:$,indexTypes:E,dataTypes:A}}function isPandasRangeIndex(n){return typeof n=="object"&&n.kind==="range"}function parsePandasSchema(n){const o=n.schema.metadata.get("pandas");if(!isNullOrUndefined(o))return JSON.parse(o)}function parsePandasIndexData(n,o){return o?o.index_columns.map(e=>{if(isPandasRangeIndex(e)){const{start:c,stop:p,step:h}=e;return range(c,p,h)}const t=n.getChild(e);return t instanceof Vector&&t.type instanceof Null?null:t}).filter(e=>e!==null):[]}function parseHeaderName(n,o){if(o===1)return[n];try{return JSON.parse(n.trim().replace(/^\(/,"[").replace(/\)$/,"]").replace(/'/g,'"'))}catch{return[...Array(o-1).fill(""),n]}}function parseColumnNames(n,o,e){const t=o.concat(n);return unzip(t.map(c=>
41c.arrowField.name.startsWith("__index_level_")?"":c.arrowField.name).map(c=>parseHeaderName(c,e?.column_indexes.length??1)))}function parseData(n,o){const e=n.numRows,t=o.length;if(e===0||t===0)return n.select([]);const c=o.map(p=>p.arrowField.name);return n.select(c)}function parsePandasIndexColumnTypes(n,o,e){return o?o.index_columns.map(c=>{if(isPandasRangeIndex(c)){const h=c.name||"";return{type:DataFrameCellType.INDEX,arrowField:new Field(h,new Int_(!0,64),!0),pandasType:{field_name:h,name:h,pandas_type:PandasRangeIndexType,numpy_type:PandasRangeIndexType,metadata:c}}}const p=n.fields.find(h=>h.name===c);if(!p)throw new Error(`Index field ${c} not found in arrow schema`);return{type:DataFrameCellType.INDEX,arrowField:p,pandasType:o.columns.find(h=>h.field_name===c),categoricalOptions:e[p.name]}}):[]}function parseDataColumnTypes(n,o,e){return n.fields.filter(p=>o?!o.index_columns.includes(p.name):!0).map(p=>({type:DataFrameCellType.DATA,arrowField:p,pandasType:o?.columns.find(h=>h.field_name===p.name),categoricalOptions:e[p.name]}))}function parseCategoricalOptionsForColumns(n){const o={};return n.schema.fields.forEach((e,t)=>{if(e.type instanceof Dictionary){const c=n.getChildAt(t)?.data[0]?.dictionary;notNullOrUndefined(c)&&(o[e.name]=convertVectorToList(c))}}),o}function parseArrowIpcBytes(n){const o=tableFromIPC(n),e=o.schema,t=parsePandasSchema(o),c=parseCategoricalOptionsForColumns(o),p=parsePandasIndexColumnTypes(e,t,c),h=parseDataColumnTypes(e,t,c),y=parseData(o,h),g=parsePandasIndexData(o,t),$=parseColumnNames(h,p,t);return{pandasIndexData:g,data:y,columnNames:$,pandasIndexColumnTypes:p,dataColumnTypes:h}}var _a;_a=DRAFTABLE;class Quiver{constructor(o){this[_a]=!0;const{pandasIndexData:e,columnNames:t,data:c,dataColumnTypes:p,pandasIndexColumnTypes:h}=parseArrowIpcBytes(o.data),y=o.styler?parseStyler(o.styler):void 0;this._pandasIndexData=e,this._columnNames=t,this._data=c,this._dataColumnTypes=p,this._pandasIndexColumnTypes=h,this._styler=y,this._num_bytes=o.data?.length??0,this._columnTypes=this._pandasIndexColumnTypes.concat(this._dataColumnTypes)}get columnNames(){return this._columnNames}get columnTypes(){return this._columnTypes}get styler(){return this._styler}get dimensions(){const o=this._pandasIndexColumnTypes.length||0,e=this._columnNames.length||1,t=this._data.numRows||0,c=this._dataColumnTypes.length||0,p=e+t,h=o+c;return{numHeaderRows:e,numIndexColumns:o,numDataRows:t,numDataColumns:c,numRows:p,numColumns:h}}get hash(){const o=[this.dimensions.numColumns,this.dimensions.numDataColumns,this.dimensions.numDataRows,this.dimensions.numIndexColumns,this.dimensions.numHeaderRows,this.dimensions.numRows,this._num_bytes,this._columnNames];return hashString(o.join("-"))}getCell(o,e){const{numIndexColumns:t,numDataRows:c,numColumns:p}=this.dimensions;if(o<0||o>=c)throw new Error(`Row index is out of range: ${o}`);if(e<0||e>=p)throw new Error(`Column index is out of range: ${e}`);if(e<t){const E=this._pandasIndexColumnTypes[e],A=this.getIndexValue(o,e);return{type:DataFrameCellType.INDEX,content:A,contentType:E,field:E.arrowField}}const y=e-t,g=this._dataColumnTypes[y],$=this.getDataValue(o,y);return{type:DataFrameCellType.DATA,content:$,contentType:g,field:g.arrowField}}getIndexValue(o,e){const t=this._pandasIndexData[e];return t instanceof Vector?t.get(o):t[o]}getDataValue(o,e){return this._data.getChildAt(e)?.get(o)}addRows(o){if(this.styler||o.styler)throw new Error("\nUnsupported operation. `add_rows()` does not support Pandas Styler objects.\n\nIf you do not need the Styler's styles, try passing the `.data` attribute of\nthe Styler object instead to concatenate just the underlying dataframe.\n\nFor example:\n```\nst.add_rows(my_styler.data)\n```\n");if(o.dimensions.numDataRows===0)return produce(this,h=>h);if(this.dimensions.numDataRows===0)return produce(o,h=>h);const{index:e,data:t,indexTypes:c,dataTypes:p}=concat(this._dataColumnTypes,this._pandasIndexColumnTypes,this._pandasIndexData,this._data,o._dataColumnTypes,o._pandasIndexColumnTypes,o._pandasIndexData,o._data);return produce(this,h=>{h._pandasIndexData=e,h._data=t,h._pandasIndexColumnTypes=c,h._dataColumnTypes=p,h._columnTypes=c.concat(p)})}}function parseStyler(n){return{uuid:n.uuid,caption:n.caption,cssStyles:n.styles,cssId:n.uuid?`T_${n.uuid}`:void 0,displayValues:new Quiver({data:n.displayValues})}}class ElementNode{constructor(o,e,t,c,p){this.element=o,this.metadata=e,this.scriptRunId=t,this.activeScriptHash=c,this.fragmentId=p}get quiverElement(){if(this.lazyQuiverElement!==void 0)return this.lazyQuiverElement;if(this.element.type!=="arrowTable"&&this.element.type!=="arrowDataFrame")throw new Error(`elementType '${this.element.type}' is not a valid Quiver element!`);const o=new Quiver(this.element[this.element.type]);return this.lazyQuiverElement=o,o}get vegaLiteChartElement(){if(this.lazyVegaLiteChartElement!==void 0)return this.lazyVegaLiteChartElement;if(this.element.type!=="arrowVegaLiteChart")throw new Error(`elementType '${this.element.type}' is not a valid VegaLiteChartElement!`);const o=this.element.arrowVegaLiteChart,e=o.data?new Quiver(o.data):null,t=o.datasets.length>0?wrapDatasets(o.datasets):[],c={data:e,spec:o.spec,datasets:t,useContainerWidth:o.useContainerWidth,vegaLiteTheme:o.theme,id:o.id,selectionMode:o.selectionMode,formId:o.formId};return this.lazyVegaLiteChartElement=c,c}arrowAddRows(o,e){const t=this.element.type,c=new ElementNode(this.element,this.metadata,e,this.activeScriptHash,this.fragmentId);switch(t){case"arrowTable":case"arrowDataFrame":{c.lazyQuiverElement=ElementNode.quiverAddRowsHelper(this.quiverElement,o);break}case"arrowVegaLiteChart":{c.lazyVegaLiteChartElement=ElementNode.vegaLiteChartAddRowsHelper(this.vegaLiteChartElement,o);break}default:throw new Error(`elementType '${this.element.type}' is not a valid arrowAddRows target!`)}return c}static quiverAddRowsHelper(o,e){if(e.hasName)throw new Error("Add rows cannot be used with a named dataset for this element.");const t=new Quiver(e.data);return o.addRows(t)}static vegaLiteChartAddRowsHelper(o,e){const t=e.hasName?e.name:null,c=new Quiver(e.data);return produce(o,p=>{const h=getNamedDataSet(p.datasets,t);h?h.data=h.data.addRows(c):p.data=p.data?p.data.addRows(c):c})}accept(o){return o.visitElementNode(this)}debug(){return this.accept(new DebugVisitor)}}function getNamedDataSet(n,o){return n.length===1?n[0]:n.find(e=>e.hasName&&e.name===o)}function wrapDatasets(n){return n.map(o=>({hasName:o.hasName,name:o.name,data:new Quiver(o.data)}))}class ClearStaleNodeVisitor{constructor(o,e,t){this.currentScriptRunId=o,this.fragmentIdsThisRun=e??[],this.fragmentIdOfBlock=t}get isFragmentRun(){return this.fragmentIdsThisRun.length>0}visitBlockNode(o){let e=null;if(this.isFragmentRun){if(this.fragmentIdOfBlock&&o.scriptRunId!==this.currentScriptRunId)return;o.fragmentId&&this.fragmentIdsThisRun.includes(o.fragmentId)&&o.scriptRunId===this.currentScriptRunId&&
41(e=new ClearStaleNodeVisitor(this.currentScriptRunId,this.fragmentIdsThisRun,o.fragmentId))}else if(o.scriptRunId!==this.currentScriptRunId)return;const t=[];let c=!1;return o.children.forEach(p=>{const h=p.accept(e??this);h!==p&&(c=!0),h!==void 0&&t.push(h)}),c?new BlockNode(o.activeScriptHash,t,o.deltaBlock,this.currentScriptRunId,o.fragmentId,o.deltaMsgReceivedAt):o}visitElementNode(o){return this.isFragmentRun&&(!o.fragmentId||!this.fragmentIdOfBlock||o.scriptRunId===this.currentScriptRunId)||o.scriptRunId===this.currentScriptRunId?o:void 0}}class ElementsSetVisitor{constructor(){this.elements=new Set}visitElementNode(o){return this.elements.add(o.element),this.elements}visitBlockNode(o){for(const e of o.children)e.accept(this);return this.elements}static collectElements(o){const e=new ElementsSetVisitor;return o.accept(e),e.elements}}class FilterMainScriptElementsVisitor{constructor(o){this.mainScriptHash=o}visitElementNode(o){if(o.activeScriptHash===this.mainScriptHash)return o}visitBlockNode(o){if(o.activeScriptHash!==this.mainScriptHash)return;let e=!1;const t=[];for(const c of o.children){const p=c.accept(this);p!==c&&(e=!0),p!==void 0&&t.push(p)}return e?new BlockNode(o.activeScriptHash,t,o.deltaBlock,o.scriptRunId,o.fragmentId,o.deltaMsgReceivedAt):o}static filterNode(o,e){const t=new FilterMainScriptElementsVisitor(e);return o.accept(t)}}class GetNodeByDeltaPathVisitor{constructor(o){this.deltaPath=o}visitElementNode(o){}visitBlockNode(o){if(this.deltaPath.length===0)return;const[e,...t]=this.deltaPath;if(e<0||e>=o.children.length)return;if(t.length===0)return o.children[e];const c=new GetNodeByDeltaPathVisitor(t);return o.children[e].accept(c)}static getNodeAtPath(o,e){const t=new GetNodeByDeltaPathVisitor(e);return o.accept(t)}}class SetNodeByDeltaPathVisitor{constructor(o,e,t){if(o.length===0)throw new Error("deltaPath cannot be empty");this.deltaPath=o,this.nodeToSet=e,this.scriptRunId=t}visitElementNode(o){throw new Error("'SetNodeByDeltaPathVisitor' cannot visit an ElementNode")}visitBlockNode(o){const[e,...t]=this.deltaPath;if(e<0||e>o.children.length)throw new Error(`Bad delta path index ${e} (should be between [0, ${o.children.length}])`);const c=o.children.slice();if(t.length===0)c[e]=this.nodeToSet;else{const p=new SetNodeByDeltaPathVisitor(t,this.nodeToSet,this.scriptRunId);c[e]=c[e].accept(p)}return new BlockNode(o.activeScriptHash,c,o.deltaBlock,this.scriptRunId,o.fragmentId,o.deltaMsgReceivedAt)}static setNodeAtPath(o,e,t,c){const p=new SetNodeByDeltaPathVisitor(e,t,c);return o.accept(p)}}class AppRoot{static empty(o="",e=!0,t,c){const p=[];let h;switch(getLoadingScreenType()){case LoadingScreenType.NONE:break;case LoadingScreenType.V1:e&&(h=makeElementWithInfoText("Please wait..."));break;default:h=makeAppSkeletonElement()}h&&p.push(new ElementNode(h,ForwardMsgMetadata.create({}),NO_SCRIPT_RUN_ID,o));const y=new BlockNode(o,p,new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),g=t||new BlockNode(o,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),$=new BlockNode(o,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),E=new BlockNode(o,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),A=c?{logo:c,activeScriptHash:o,scriptRunId:NO_SCRIPT_RUN_ID}:null;return new AppRoot(o,new BlockNode(o,[y,g,$,E]),A)}constructor(o,e,t=null){if(this.mainScriptHash=o,this.root=e,this.appLogo=t,this.root.children.length!==4||isNullOrUndefined(this.main)||isNullOrUndefined(this.sidebar)||isNullOrUndefined(this.event)||isNullOrUndefined(this.bottom))throw new Error(`Invalid root node children! ${e}`)}get main(){const[o]=this.root.children;return o}get sidebar(){const[,o]=this.root.children;return o}get event(){const[,,o]=this.root.children;return o}get bottom(){const[,,,o]=this.root.children;return o}get logo(){return this.appLogo?.logo??null}appRootWithLogo(o,e){return new AppRoot(this.mainScriptHash,this.root,{logo:o,...e})}applyDelta(o,e,t){const{deltaPath:c,activeScriptHash:p}=t;switch(e.type){case"newElement":{const h=e.newElement;return this.addElement(c,o,h,t,p,e.fragmentId)}case"addBlock":{const h=Date.now();return this.addBlock(c,e.addBlock,o,p,e.fragmentId,h)}case"arrowAddRows":try{return this.arrowAddRows(c,e.arrowAddRows,o)}catch(h){const y=makeElementWithErrorText(ensureError(h).message);return this.addElement(c,o,y,t,p)}default:throw new Error(`Unrecognized deltaType: '${e.type}'`)}}ensureBlockNode(o,e=this.mainScriptHash){return o??new BlockNode(e)}filterMainScriptElements(o){const e=this.main.scriptRunId,t=new FilterMainScriptElementsVisitor(o),c=this.root.children.map(h=>this.ensureBlockNode(h.accept(t),o)),p=this.appLogo?.activeScriptHash===o?this.appLogo:null;return new AppRoot(o,new BlockNode(o,c,new Block$1({allowEmpty:!0}),e),p)}clearStaleNodes(o,e){const t=new ClearStaleNodeVisitor(o,e),c=this.root.children.map(y=>this.ensureBlockNode(y.accept(t))),h=e&&e.length>0||this.appLogo?.scriptRunId===o?this.appLogo:null;return new AppRoot(this.mainScriptHash,new BlockNode(this.mainScriptHash,c,new Block$1({allowEmpty:!0}),o),h)}getElements(){const o=new ElementsSetVisitor;return this.main.accept(o),this.sidebar.accept(o),this.event.accept(o),this.bottom.accept(o),o.elements}
41addElement(o,e,t,c,p,h){const y=new ElementNode(t,c,e,p,h);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,o,y,e),this.appLogo)}addBlock(o,e,t,c,p,h){const y=GetNodeByDeltaPathVisitor.getNodeAtPath(this.root,o);let g=[];y instanceof BlockNode&&y.deltaBlock.type===e.type&&(g=y.children);const $=new BlockNode(c,g,e,t,p,h);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,o,$,t),this.appLogo)}arrowAddRows(o,e,t){const c=GetNodeByDeltaPathVisitor.getNodeAtPath(this.root,o);if(isNullOrUndefined(c)||!(c instanceof ElementNode))throw new Error(`Can't arrowAddRows: invalid deltaPath: ${o}`);const p=c.arrowAddRows(e,t);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,o,p,t),this.appLogo)}getChildName(o){switch(o){case this.main:return"main";case this.sidebar:return"sidebar";case this.event:return"event";case this.bottom:return"bottom";default:return"unknown"}}debug(){let o=`AppRoot 42`;return this.root.children.forEach((e,t)=>{const c=t===this.root.children.length-1,p=this.getChildName(e),h=c?"âââ ":"âââ ",y=c?" ":"â ";o+=`${h}${p}: 43`;const g=new DebugVisitor(y,!0);o+=e.accept(g)}),o}}var classnames={exports:{}};var hasRequiredClassnames;function requireClassnames(){return hasRequiredClassnames||(hasRequiredClassnames=1,function(n){(function(){var o={}.hasOwnProperty;function e(){for(var p="",h=0;h<arguments.length;h++){var y=arguments[h];y&&(p=c(p,t(y)))}return p}function t(p){if(typeof p=="string"||typeof p=="number")return p;if(typeof p!="object")return"";if(Array.isArray(p))return e.apply(null,p);if(p.toString!==Object.prototype.toString&&!p.toString.toString().includes("[native code]"))return p.toString();var h="";for(var y in p)o.call(p,y)&&p[y]&&(h=c(h,y));return h}function c(p,h){return h?p?p+" "+h:p+h:p}n.exports?(e.default=e,n.exports=e):window.classNames=e})()}(classnames)),classnames.exports}var classnamesExports=requireClassnames();const classNames=getDefaultExportFromCjs(classnamesExports);var Direction=function(n){return n.HORIZONTAL="row",n.VERTICAL="column",n}({});function getDirectionOfBlock(n){return n.flexContainer?n.flexContainer.direction==Block$1.FlexContainer.Direction.HORIZONTAL?"row":"column":n.vertical?"column":n.horizontal?"row":"column"}function shouldWidthStretch(n){return!!(n?.useStretch||n?.pixelWidth)}function shouldHeightStretch(n){return!!(n?.useStretch||n?.pixelHeight)}const alignmentMap={[streamlit.TextAlignmentConfig.Alignment.LEFT]:"left",[streamlit.TextAlignmentConfig.Alignment.CENTER]:"center",[streamlit.TextAlignmentConfig.Alignment.RIGHT]:"right",[streamlit.TextAlignmentConfig.Alignment.JUSTIFY]:"justify",[streamlit.TextAlignmentConfig.Alignment.UNSPECIFIED]:"left"};function getTextAlignmentStyle(n){if(n?.alignment)return alignmentMap[n.alignment]||"left"}const FlexContext=reactExports.createContext(null);FlexContext.displayName="FlexContext";const FlexContextProvider=({children:n,direction:o,isRoot:e,parentWidth:t,hasContentWidth:c=!1,hasFixedWidth:p=!1,parentContext:h=null})=>{const y=reactExports.useMemo(()=>{const g=o===Direction.HORIZONTAL;let $;return c?$=!0:p?$=!1:$=h?.isInContentWidthContainer??!1,{direction:o,isInHorizontalLayout:g,isInRoot:e??!1,parentWidth:t,isInContentWidthContainer:$}},[o,e,t,c,p,h]);return jsx$1(FlexContext.Provider,{value:y,children:n})};function guard(n,o,e){return Math.min(Math.max(n,e),o)}class ColorError extends Error{constructor(o){super(`Failed to parse color: "${o}"`)}}var ColorError$1=ColorError;function parseToRgba(n){if(typeof n!="string")throw new ColorError$1(n);if(n.trim().toLowerCase()==="transparent")return[0,0,0,0];let o=n.trim();o=namedColorRegex.test(n)?nameToHex(n):n;const e=reducedHexRegex.exec(o);if(e){const h=Array.from(e).slice(1);return[...h.slice(0,3).map(y=>parseInt(r(y,2),16)),parseInt(r(h[3]||"f",2),16)/255]}const t=hexRegex.exec(o);if(t){const h=Array.from(t).slice(1);return[...h.slice(0,3).map(y=>parseInt(y,16)),parseInt(h[3]||"ff",16)/255]}const c=rgbaRegex.exec(o);if(c){const h=Array.from(c).slice(1);return[...h.slice(0,3).map(y=>parseInt(y,10)),parseFloat(h[3]||"1")]}const p=hslaRegex.exec(o);if(p){const[h,y,g,$]=Array.from(p).slice(1).map(parseFloat);if(guard(0,100,y)!==y)throw new ColorError$1(n);if(guard(0,100,g)!==g)throw new ColorError$1(n);return[...hslToRgb(h,y,g),Number.isNaN($)?1:$]}throw new ColorError$1(n)}function hash(n){let o=5381,e=n.length;for(;e;
43)o=o*33^n.charCodeAt(--e);return(o>>>0)%2341}const colorToInt=n=>parseInt(n.replace(/_/g,""),36),compressedColorMap="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((n,o)=>{const e=colorToInt(o.substring(0,3)),t=colorToInt(o.substring(3)).toString(16);let c="";for(let p=0;p<6-t.length;p++)c+="0";return n[e]=`${c}${t}`,n},{});function nameToHex(n){const o=n.toLowerCase().trim(),e=compressedColorMap[hash(o)];if(!e)throw new ColorError$1(n);return`#${e}`}const r=(n,o)=>Array.from(Array(o)).map(()=>n).join(""),reducedHexRegex=new RegExp(`^#${r("([a-f0-9])",3)}([a-f0-9])?$`,"i"),hexRegex=new RegExp(`^#${r("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rgbaRegex=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hslaRegex=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,namedColorRegex=/^[a-z]+$/i,roundColor=n=>Math.round(n*255),hslToRgb=(n,o,e)=>{let t=e/100;if(o===0)return[t,t,t].map(roundColor);const c=(n%360+360)%360/60,p=(1-Math.abs(2*t-1))*(o/100),h=p*(1-Math.abs(c%2-1));let y=0,g=0,$=0;c>=0&&c<1?(y=p,g=h):c>=1&&c<2?(y=h,g=p):c>=2&&c<3?(g=p,$=h):c>=3&&c<4?(g=h,$=p):c>=4&&c<5?(y=h,$=p):c>=5&&c<6&&(y=p,$=h);const E=t-p/2,A=y+E,N=g+E,H=$+E;return[A,N,H].map(roundColor)};function parseToHsla(n){const[o,e,t,c]=parseToRgba(n).map((A,N)=>N===3?A:A/255),p=Math.max(o,e,t),h=Math.min(o,e,t),y=(p+h)/2;if(p===h)return[0,0,y,c];const g=p-h,$=y>.5?g/(2-p-h):g/(p+h);return[60*(o===p?(e-t)/g+(e<t?6:0):e===p?(t-o)/g+2:(o-e)/g+4),$,y,c]}function hsla(n,o,e,t){return`hsla(${(n%360).toFixed()}, ${guard(0,100,o*100).toFixed()}%, ${guard(0,100,e*100).toFixed()}%, ${parseFloat(guard(0,1,t).toFixed(3))})`}function darken(n,o){const[e,t,c,p]=parseToHsla(n);return hsla(e,t,c-o,p)}function getLuminance(n){if(n==="transparent")return 0;function o(p){const h=p/255;return h<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}const[e,t,c]=parseToRgba(n);return .2126*o(e)+.7152*o(t)+.0722*o(c)}function rgba$1(n,o,e,t){return`rgba(${guard(0,255,n).toFixed()}, ${guard(0,255,o).toFixed()}, ${guard(0,255,e).toFixed()}, ${parseFloat(guard(0,1,t).toFixed(3))})`}function mix$1(n,o,e){const t=(Ne,Fe)=>Fe===3?Ne:Ne/255,[c,p,h,y]=parseToRgba(n).map(t),[g,$,E,A]=parseToRgba(o).map(t),N=A-y,H=e*2-1,X=((H*N===-1?H:H+N/(1+H*N))+1)/2,be=1-X,we=(c*be+g*X)*255,$e=(p*be+$*X)*255,Ce=(h*be+E*X)*255,Ie=A*e+y*(1-e);return rgba$1(we,$e,Ce,Ie)}function lighten(n,o){return darken(n,-o)}function transparentize(n,o){const[e,t,c,p]=parseToRgba(n);return rgba$1(e,t,c,p-o)}function toHex(n){const[o,e,t,c]=parseToRgba(n);let p=h=>{const y=guard(0,255,h).toString(16);return y.length===1?`0${y}`:y};return`#${p(o)}${p(e)}${p(t)}${c<1?p(Math.round(c*255)):""}`}var colors$1={white:"#FFFFFF",gray50:"#F6F6F6",gray100:"#EEEEEE",gray200:"#E2E2E2",gray300:"#CBCBCB",gray400:"#AFAFAF",gray500:"#6B6B6B",gray600:"#545454",gray700:"#333333",gray800:"#1F1F1F",gray900:"#141414",black:"#000000",platinum400:"#8EA3AD",red50:"#FFEFED",red100:"#FED7D2",red200:"#F1998E",red300:"#E85C4A",red400:"#E11900",red500:"#AB1300",red600:"#870F00",red700:"#5A0A00",orange200:"#FABDA5",orange300:"#FA9269",orange400:"#FF6937",orange500:"#C14F29",orange600:"#9A3F21",orange700:"#672A16",yellow50:"#FFFAF0",yellow100:"#FFF2D9",yellow200:"#FFE3AC",yellow300:"#FFCF70",yellow400:"#FFC043",yellow500:"#BC8B2C",yellow600:"#996F00",yellow700:"#674D1B",green50:"#E6F2ED",green100:"#ADDEC9",green200:"#66D19E",green300:"#06C167",green400:"#048848",green500:"#03703C",green600:"#03582F",green700:"#10462D",blue50:"#EFF3FE",blue100:"#D4E2FC",blue200:"#A0BFF8",blue300:"#5B91F5",blue400:"#276EF1",blue500:"#1E54B7",blue600:"#174291",blue700:"#102C60",cobalt400:"#0E1FC1",purple200:"#C1B4E2",purple300:"#957FCE",purple400:"#7356BF",purple500:"#574191",purple600:"#453473",purple700:"#2E224C",brown200:"#D2BBB0",brown300:"#B18977",brown400:"#99644C",brown500:"#744C3A",brown600:"#5C3C2E",brown700:"#3D281E"},lightColorTokens={primaryA:colors$1.black,primaryB:colors$1.white,primary:colors$1.black,primary50:colors$1.gray50,primary100:colors$1.gray100,primary200:colors$1.gray200,primary300:colors$1.gray300,primary400:colors$1.gray400,primary500:colors$1.gray500,primary600:colors$1.gray600,primary700:colors$1.gray700,accent:colors$1.blue400,accent50:colors$1.blue50,accent100:colors$1.blue100,accent200:colors$1.blue200,accent300:colors$1.blue300,accent400:colors$1.blue400,accent500:colors$1.blue500,accent600:colors$1.blue600,accent700:colors$1.blue700,negative:colors$1.red400,negative50:colors$1.red50,negative100:colors$1.red100,negative200:colors$1.red200,negative300:colors$1.red300,negative400:colors$1.red400,negative500:colors$1.red500,negative600:colors$1.red600,negative700:colors$1.red700,warning:colors$1.yellow400,warning50:colors$1.yellow50,warning100:colors$1.yellow100,warning200:colors$1.yellow200,warning300:colors$1.yellow300,warning400:colors$1.yellow400,warning500:colors$1.yellow500,warning600:colors$1.yellow600,warning700:colors$1.yellow700,positive:colors$1.green500,positive50:colors$1.green50,positive100:colors$1.green100,positive200:colors$1.green200,positive300:colors$1.green300,positive400:colors$1.green400,positive500:colors$1.green500,positive600:colors$1.green600,positive700:colors$1.green700,white:colors$1.white,black:colors$1.black,mono100:colors$1.white,mono200:colors$1.gray50,mono300:colors$1.gray100,mono400:colors$1.gray200,mono500:colors$1.gray300,mono600:colors$1.gray400,mono700:colors$1.gray500,mono800:colors$1.gray600,mono900:colors$1.gray700,mono1000:colors$1.black,ratingInactiveFill:colors$1.gray100,ratingStroke:colors$1.gray300};function hexToRgb(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"1",e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;n=n.replace(e,function(c,p,h,y){return p+p+h+h+y+y});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return t?"rgba(".concat(parseInt(t[1],16),", ").concat(parseInt(t[2],16),", ").concat(parseInt(t[3],16),", ").concat(o,")"):null}var ellipsisText={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"};function expandBorderStyles(n){return{borderTopWidth:n.borderWidth,borderTopStyle:n.borderStyle,borderTopColor:n.borderColor,borderBottomWidth:n.borderWidth,borderBottomStyle:n.borderStyle,borderBottomColor:n.borderColor,borderLeftWidth:n.borderWidth,borderLeftStyle:n.borderStyle,borderLeftColor:n.borderColor,borderRightWidth:n.borderWidth,borderRightStyle:n.borderStyle,borderRightColor:n.borderColor}}function ownKeys$y(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$w(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};
43o%2?ownKeys$y(Object(e),!0).forEach(function(t){_defineProperty$F(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$y(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$F(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}const getSemanticColorTokens=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lightColorTokens,o={backgroundPrimary:n.primaryB,backgroundSecondary:colors$1.gray50,backgroundTertiary:colors$1.gray100,backgroundInversePrimary:n.primaryA,backgroundInverseSecondary:colors$1.gray800,contentPrimary:n.primaryA,contentSecondary:colors$1.gray600,contentTertiary:colors$1.gray500,contentInversePrimary:n.primaryB,contentInverseSecondary:colors$1.gray300,contentInverseTertiary:colors$1.gray400,borderOpaque:colors$1.gray200,borderTransparent:hexToRgb(n.primaryA,"0.08"),borderSelected:n.primaryA,borderInverseOpaque:colors$1.gray700,borderInverseTransparent:hexToRgb(n.primaryB,"0.2"),borderInverseSelected:n.primaryB},e={backgroundStateDisabled:colors$1.gray50,backgroundOverlayDark:hexToRgb(colors$1.black,"0.3"),backgroundOverlayLight:hexToRgb(colors$1.black,"0.08"),backgroundOverlayArt:hexToRgb(colors$1.black,"0.00"),backgroundAccent:n.accent,backgroundNegative:n.negative,backgroundWarning:n.warning,backgroundPositive:colors$1.green400,backgroundLightAccent:colors$1.blue50,backgroundLightNegative:colors$1.red50,backgroundLightWarning:colors$1.yellow50,backgroundLightPositive:colors$1.green50,backgroundAlwaysDark:colors$1.black,backgroundAlwaysLight:colors$1.white,contentStateDisabled:colors$1.gray400,contentAccent:n.accent,contentOnColor:colors$1.white,contentOnColorInverse:colors$1.black,contentNegative:n.negative,contentWarning:colors$1.yellow600,contentPositive:colors$1.green400,borderStateDisabled:colors$1.gray50,borderAccent:colors$1.blue400,borderAccentLight:colors$1.blue200,borderNegative:colors$1.red200,borderWarning:colors$1.yellow200,borderPositive:colors$1.green200,safety:colors$1.blue400,eatsGreen400:colors$1.green400,freightBlue400:colors$1.cobalt400,jumpRed400:colors$1.red400,rewardsTier1:colors$1.blue400,rewardsTier2:colors$1.yellow400,rewardsTier3:colors$1.platinum400,rewardsTier4:colors$1.black,membership:colors$1.yellow600};return _objectSpread$w(_objectSpread$w({},o),e)};var tagHoverBackground="rgba(0, 0, 0, 0.08)";const getComponentColorTokens=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lightColorTokens;return{bannerActionLowInfo:n.accent100,bannerActionLowNegative:n.negative100,bannerActionLowPositive:n.positive100,bannerActionLowWarning:n.warning200,bannerActionHighInfo:n.accent500,bannerActionHighNegative:n.negative500,bannerActionHighPositive:n.positive500,bannerActionHighWarning:n.warning200,buttonPrimaryFill:n.primary,buttonPrimaryText:n.white,buttonPrimaryHover:n.primary700,buttonPrimaryActive:n.primary600,buttonPrimarySelectedFill:n.primary600,buttonPrimarySelectedText:n.white,buttonPrimarySpinnerForeground:n.accent,buttonPrimarySpinnerBackground:n.primaryB,buttonSecondaryFill:n.primary100,buttonSecondaryText:n.primary,buttonSecondaryHover:n.primary200,buttonSecondaryActive:n.primary300,buttonSecondarySelectedFill:n.primary300,buttonSecondarySelectedText:n.primary,buttonSecondarySpinnerForeground:n.accent,buttonSecondarySpinnerBackground:n.primaryB,buttonTertiaryFill:"transparent",buttonTertiaryText:n.primary,buttonTertiaryHover:n.primary50,buttonTertiaryActive:n.primary100,buttonTertiarySelectedFill:n.primary100,buttonTertiarySelectedText:n.primary,buttonTertiaryDisabledActiveFill:n.primary50,buttonTertiaryDisabledActiveText:n.mono600,buttonTertiarySpinnerForeground:n.accent,buttonTertiarySpinnerBackground:n.primary100,buttonDisabledFill:n.mono200,buttonDisabledText:n.mono600,buttonDisabledActiveFill:n.mono700,buttonDisabledActiveText:n.mono100,buttonDisabledSpinnerForeground:n.mono600,buttonDisabledSpinnerBackground:n.mono400,breadcrumbsText:n.black,breadcrumbsSeparatorFill:n.mono700,calendarBackgroun
43d:n.mono100,calendarForeground:n.mono1000,calendarForegroundDisabled:n.mono500,calendarHeaderBackground:n.white,calendarHeaderForeground:n.primary,calendarHeaderBackgroundActive:n.primary700,calendarHeaderForegroundDisabled:n.primary500,calendarDayForegroundPseudoSelected:n.mono1000,calendarDayBackgroundPseudoSelectedHighlighted:n.primary200,calendarDayForegroundPseudoSelectedHighlighted:n.mono1000,calendarDayBackgroundSelected:n.primary,calendarDayForegroundSelected:n.white,calendarDayBackgroundSelectedHighlighted:n.primary,calendarDayForegroundSelectedHighlighted:n.white,comboboxListItemFocus:n.mono200,comboboxListItemHover:n.mono300,fileUploaderBackgroundColor:n.mono200,fileUploaderBackgroundColorActive:n.primary50,fileUploaderBorderColorActive:n.primary,fileUploaderBorderColorDefault:n.mono500,fileUploaderMessageColor:n.mono800,linkText:n.primary,linkVisited:n.primary700,linkHover:n.primary600,linkActive:n.primary500,listHeaderFill:n.white,listBodyFill:n.white,progressStepsCompletedText:n.white,progressStepsCompletedFill:n.primary,progressStepsActiveText:n.white,progressStepsActiveFill:n.primary,toggleFill:n.white,toggleFillChecked:n.primary,toggleFillDisabled:n.mono600,toggleTrackFill:n.mono400,toggleTrackFillDisabled:n.mono300,tickFill:n.mono100,tickFillHover:n.mono200,tickFillActive:n.mono300,tickFillSelected:n.primary,tickFillSelectedHover:n.primary700,tickFillSelectedHoverActive:n.primary600,tickFillError:n.negative50,tickFillErrorHover:n.negative100,tickFillErrorHoverActive:n.negative200,tickFillErrorSelected:n.negative400,tickFillErrorSelectedHover:n.negative500,tickFillErrorSelectedHoverActive:n.negative600,tickFillDisabled:n.mono600,tickBorder:n.mono700,tickBorderError:n.negative400,tickMarkFill:n.white,tickMarkFillError:n.white,tickMarkFillDisabled:n.mono100,sliderTrackFill:"transparent",sliderHandleFill:n.primaryA,sliderHandleFillDisabled:n.primary400,sliderHandleInnerFill:n.primaryA,sliderTrackFillHover:n.mono500,sliderTrackFillActive:n.mono600,sliderTrackFillDisabled:n.mono300,sliderHandleInnerFillDisabled:n.mono400,sliderHandleInnerFillSelectedHover:n.primary,sliderHandleInnerFillSelectedActive:n.primary500,inputBorder:n.mono300,inputFill:n.mono300,inputFillError:n.negative50,inputFillDisabled:n.mono200,inputFillActive:n.mono200,inputFillPositive:n.positive50,inputTextDisabled:n.mono600,inputBorderError:n.negative200,inputBorderPositive:n.positive200,inputEnhancerFill:n.mono300,inputEnhancerFillDisabled:n.mono300,inputEnhancerTextDisabled:n.mono600,inputPlaceholder:n.mono700,inputPlaceholderDisabled:n.mono600,menuFill:n.mono100,menuFillHover:n.mono200,menuFontDefault:n.mono800,menuFontDisabled:n.mono500,menuFontHighlighted:n.mono1000,menuFontSelected:n.mono1000,modalCloseColor:n.mono1000,modalCloseColorHover:n.mono800,modalCloseColorFocus:n.mono800,tabBarFill:n.mono200,tabColor:n.mono800,notificationInfoBackground:n.accent50,notificationInfoText:n.primaryA,notificationPositiveBackground:n.positive50,notificationPositiveText:n.primaryA,notificationWarningBackground:n.warning50,notificationWarningText:n.primaryA,notificationNegativeBackground:n.negative50,notificationNegativeText:n.primaryA,tagFontDisabledRampUnit:"100",tagSolidFontRampUnit:"0",tagSolidRampUnit:"400",tagOutlinedFontRampUnit:"400",tagOutlinedRampUnit:"200",tagSolidHoverRampUnit:"50",tagSolidActiveRampUnit:"100",tagSolidDisabledRampUnit:"50",tagSolidFontHoverRampUnit:"500",tagLightRampUnit:"50",tagLightHoverRampUnit:"100",tagLightActiveRampUnit:"100",tagLightFontRampUnit:"500",tagLightFontHoverRampUnit:"500",tagOutlinedHoverRampUnit:"50",tagOutlinedActiveRampUnit:"0",tagOutlinedFontHoverRampUnit:"400",tagNeutralFontDisabled:n.mono600,tagNeutralOutlinedDisabled:n.mono400,tagNeutralSolidFont:n.white,tagNeutralSolidBackground:n.black,tagNeutralOutlinedBackground:n.mono600,tagNeutralOutlinedFont:n.black,tagNeutralSolidHover:n.mono300,tagNeutralSolidActive:n.mono400,tagNeutralSolidDisabled:n.mono200,tagNeutralSolidFontHover:n.mono900,tagNeutralLightBackgroun
43d:n.mono300,tagNeutralLightHover:n.mono300,tagNeutralLightActive:n.mono400,tagNeutralLightDisabled:n.mono200,tagNeutralLightFont:n.mono900,tagNeutralLightFontHover:n.mono900,tagNeutralOutlinedActive:n.mono900,tagNeutralOutlinedFontHover:n.mono800,tagNeutralOutlinedHover:tagHoverBackground,tagPrimaryFontDisabled:n.primary400,tagPrimaryOutlinedDisabled:n.primary200,tagPrimarySolidFont:n.white,tagPrimarySolidBackground:n.primary,tagPrimaryOutlinedFontHover:n.primary,tagPrimaryOutlinedFont:n.primary,tagPrimarySolidHover:n.primary100,tagPrimarySolidActive:n.primary200,tagPrimarySolidDisabled:n.primary50,tagPrimarySolidFontHover:n.primary700,tagPrimaryLightBackground:n.primary50,tagPrimaryLightHover:n.primary100,tagPrimaryLightActive:n.primary100,tagPrimaryLightDisabled:n.primary50,tagPrimaryLightFont:n.primary500,tagPrimaryLightFontHover:n.primary500,tagPrimaryOutlinedActive:n.primary600,tagPrimaryOutlinedHover:tagHoverBackground,tagPrimaryOutlinedBackground:n.primary400,tagAccentFontDisabled:n.accent200,tagAccentOutlinedDisabled:n.accent200,tagAccentSolidFont:n.white,tagAccentSolidBackground:n.accent400,tagAccentOutlinedBackground:n.accent200,tagAccentOutlinedFont:n.accent400,tagAccentSolidHover:n.accent50,tagAccentSolidActive:n.accent100,tagAccentSolidDisabled:n.accent50,tagAccentSolidFontHover:n.accent500,tagAccentLightBackgroun
43d:n.accent50,tagAccentLightHover:n.accent100,tagAccentLightActive:n.accent100,tagAccentLightDisabled:n.accent50,tagAccentLightFont:n.accent500,tagAccentLightFontHover:n.accent500,tagAccentOutlinedActive:n.accent600,tagAccentOutlinedFontHover:n.accent400,tagAccentOutlinedHover:tagHoverBackground,tagPositiveFontDisabled:n.positive200,tagPositiveOutlinedDisabled:n.positive200,tagPositiveSolidFont:n.white,tagPositiveSolidBackground:n.positive400,tagPositiveOutlinedBackground:n.positive200,tagPositiveOutlinedFont:n.positive400,tagPositiveSolidHover:n.positive50,tagPositiveSolidActive:n.positive100,tagPositiveSolidDisabled:n.positive50,tagPositiveSolidFontHover:n.positive500,tagPositiveLightBackground:n.positive50,tagPositiveLightHover:n.positive100,tagPositiveLightActive:n.positive100,tagPositiveLightDisabled:n.positive50,tagPositiveLightFont:n.positive500,tagPositiveLightFontHover:n.positive500,tagPositiveOutlinedActive:n.positive600,tagPositiveOutlinedFontHover:n.positive400,tagPositiveOutlinedHover:tagHoverBackground,tagWarningFontDisabled:n.warning300,tagWarningOutlinedDisabled:n.warning300,tagWarningSolidFont:n.warning700,tagWarningSolidBackground:n.warning400,tagWarningOutlinedBackground:n.warning300,tagWarningOutlinedFont:n.warning600,tagWarningSolidHover:n.warning50,tagWarningSolidActive:n.warning100,tagWarningSolidDisabled:n.warning50,tagWarningSolidFontHover:n.warning500,tagWarningLightBackgroun
43d:n.warning50,tagWarningLightHover:n.warning100,tagWarningLightActive:n.warning100,tagWarningLightDisabled:n.warning50,tagWarningLightFont:n.warning500,tagWarningLightFontHover:n.warning500,tagWarningOutlinedActive:n.warning600,tagWarningOutlinedFontHover:n.warning600,tagWarningOutlinedHover:tagHoverBackground,tagNegativeFontDisabled:n.negative200,tagNegativeOutlinedDisabled:n.negative200,tagNegativeSolidFont:n.white,tagNegativeSolidBackground:n.negative400,tagNegativeOutlinedBackground:n.negative200,tagNegativeOutlinedFont:n.negative400,tagNegativeSolidHover:n.negative50,tagNegativeSolidActive:n.negative100,tagNegativeSolidDisabled:n.negative50,tagNegativeSolidFontHover:n.negative500,tagNegativeLightBackground:n.negative50,tagNegativeLightHover:n.negative100,tagNegativeLightActive:n.negative100,tagNegativeLightDisabled:n.negative50,tagNegativeLightFont:n.negative500,tagNegativeLightFontHover:n.negative500,tagNegativeOutlinedActive:n.negative600,tagNegativeOutlinedFontHover:n.negative400,tagNegativeOutlinedHover:tagHoverBackground,tableHeadBackgroundColor:n.mono100,tableBackground:n.mono100,tableStripedBackground:n.mono200,tableFilter:n.mono600,tableFilterHeading:n.mono700,tableFilterBackground:n.mono100,tableFilterFooterBackground:n.mono200,toastText:n.white,toastPrimaryText:n.white,toastInfoBackground:n.accent400,toastInfoText:n.white,toastPositiveBackground:n.positive400,toastPositiveText:n.white,toastWarningBackground:n.warning400,toastWarningText:n.black,toastNegativeBackground:n.negative400,toastNegativeText:n.white,spinnerTrackFill:n.mono900,progressbarTrackFill:n.mono900,tooltipBackground:n.mono900,tooltipText:n.mono100}};var borders={border100:{borderColor:"hsla(0, 0%, 0%, 0.04)",borderStyle:"solid",borderWidth:"1px"},border200:{borderColor:"hsla(0, 0%, 0%, 0.08)",borderStyle:"solid",borderWidth:"1px"},border300:{borderColor:"hsla(0, 0%, 0%, 0.12)",borderStyle:"solid",borderWidth:"1px"},border400:{borderColor:"hsla(0, 0%, 0%, 0.16)",borderStyle:"solid",borderWidth:"1px"},border500:{borderColor:"hsla(0, 0%, 0%, 0.2)",borderStyle:"solid",borderWidth:"1px"},border600:{borderColor:"hsla(0, 0%, 0%, 0.24)",borderStyle:"solid",borderWidth:"1px"},radius100:"2px",radius200:"4px",radius300:"8px",radius400:"12px",radius500:"16px",useRoundedCorners:!0,buttonBorderRadiusMini:"4px",buttonBorderRadius:"8px",checkboxBorderRadius:"0px",inputBorderRadiusMini:"4px",inputBorderRadius:"8px",popoverBorderRadius:"8px",surfaceBorderRadius:"0px",tagBorderRadius:"24px"},lighting={shadow400:"0 1px 4px hsla(0, 0%, 0%, 0.16)",shadow500:"0 2px 8px hsla(0, 0%, 0%, 0.16)",shadow600:"0 4px 16px hsla(0, 0%, 0%, 0.16)",shadow700:"0 8px 24px hsla(0, 0%, 0%, 0.16)",overlay0:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0)",overlay100:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.04)",overlay200:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.08)",overlay300:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.12)",overlay400:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.16)",overlay500:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.2)",overlay600:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)",shallowAbove:"0px -4px 16px rgba(0, 0, 0, 0.12)",shallowBelow:"0px 4px 16px rgba(0, 0, 0, 0.12)",deepAbove:"0px -16px 48px rgba(0, 0, 0, 0.22)",deepBelow:"0px 16px 48px rgba(0, 0, 0, 0.22)"};function ownKeys$x(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$v(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$x(Object(e),!0).forEach(function(t){_defineProperty$E(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$x(Object(e)).forEac
43h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$E(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var defaultFontTokens={primaryFontFamily:'system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif'},monoFontFamily='"Lucida Console", Monaco, monospace';const getTypography=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultFontTokens,o={fontFamily:n.primaryFontFamily,fontSize:"12px",fontWeight:"normal",lineHeight:"20px"},e={fontFamily:n.primaryFontFamily,fontSize:"12px",fontWeight:500,lineHeight:"16px"},t={fontFamily:n.primaryFontFamily,fontSize:"14px",fontWeight:"normal",lineHeight:"20px"},c={fontFamily:n.primaryFontFamily,fontSize:"14px",fontWeight:500,lineHeight:"16px"},p={fontFamily:n.primaryFontFamily,fontSize:"16px",fontWeight:"normal",lineHeight:"24px"},h={fontFamily:n.primaryFontFamily,fontSize:"16px",fontWeight:500,lineHeight:"20px"},y={fontFamily:n.primaryFontFamily,fontSize:"18px",fontWeight:"normal",lineHeight:"28px"},g={fontFamily:n.primaryFontFamily,fontSize:"18px",fontWeight:500,lineHeight:"24px"},$={fontFamily:n.primaryFontFamily,fontSize:"20px",fontWeight:700,lineHeight:"28px"},E={fontFamily:n.primaryFontFamily,fontSize:"24px",fontWeight:700,lineHeight:"32px"},A={fontFamily:n.primaryFontFamily,fontSize:"28px",fontWeight:700,lineHeight:"36px"},N={fontFamily:n.primaryFontFamily,fontSize:"32px",fontWeight:700,lineHeight:"40px"},H={fontFamily:n.primaryFontFamily,fontSize:"36px",fontWeight:700,lineHeight:"44px"},Z={fontFamily:n.primaryFontFamily,fontSize:"40px",fontWeight:700,lineHeight:"52px"},X={fontFamily:n.primaryFontFamily,fontSize:"36px",fontWeight:700,lineHeight:"44px"},be={fontFamily:n.primaryFontFamily,fontSize:"44px",fontWeight:700,lineHeight:"52px"},we={fontFamily:n.primaryFontFamily,fontSize:"52px",fontWeight:700,lineHeight:"64px"},$e={fontFamily:n.primaryFontFamily,fontSize:"96px",fontWeight:700,lineHeight:"112px"};return{font100:o,font150:e,font200:t,font250:c,font300:p,font350:h,font400:y,font450:g,font550:$,font650:E,font750:A,font850:N,font950:H,font1050:Z,font1150:X,font1250:be,font1350:we,font1450:$e,ParagraphXSmall:o,ParagraphSmall:t,ParagraphMedium:p,ParagraphLarge:y,LabelXSmall:e,LabelSmall:c,LabelMedium:h,LabelLarge:g,HeadingXSmall:$,HeadingSmall:E,HeadingMedium:A,HeadingLarge:N,HeadingXLarge:H,HeadingXXLarge:Z,DisplayXSmall:X,DisplaySmall:be,DisplayMedium:we,DisplayLarge:$e,MonoParagraphXSmall:_objectSpread$v(_objectSpread$v({},o),{},{fontFamily:monoFontFamily}),MonoParagraphSmall:_objectSpread$v(_objectSpread$v({},t),{},{fontFamily:monoFontFamily}),MonoParagraphMedium:_objectSpread$v(_objectSpread$v({},p),{},{fontFamily:monoFontFamily}),MonoParagraphLarge:_objectSpread$v(_objectSpread$v({},y),{},{fontFamily:monoFontFamily}),MonoLabelXSmall:_objectSpread$v(_objectSpread$v({},e),{},{fontFamily:monoFontFamily}),MonoLabelSmall:_objectSpread$v(_objectSpread$v({},c),{},{fontFamily:monoFontFamily}),MonoLabelMedium:_objectSpread$v(_objectSpread$v({},h),{},{fontFamily:monoFontFamily}),MonoLabelLarge:_objectSpread$v(_objectSpread$v({},g),{},{fontFamily:monoFontFamily}),MonoHeadingXSmall:_objectSpread$v(_objectSpread$v({},$),{},{fontFamily:monoFontFamily}),MonoHeadingSmall:_objectSpread$v(_objectSpread$v({},E),{},{fontFamily:monoFontFamily}),MonoHeadingMedium:_objectSpread$v(_objectSpread$v({},A),{},{fontFamily:monoFontFamily}),MonoHeadingLarge:_objectSpread$v(_objectSpread$v({},N),{},{fontFamily:monoFontFamily}),MonoHeadingXLarge:_objectSpread$v(_objectSpread$v({},H),{},{fontFamily:monoFontFamily}),MonoHeadingXXLarge:_objectSpread$v(_objectSpread$v({},Z),{},{fontFamily:monoFontFamily}),MonoDisplayXSmall:_objectSpread$v(_objectSpread$v({},X),{},{fontFamily:monoFontFamily}),MonoDisplaySmall:_objectSpread$v(_objectSpread$v({},be),{},{fontFamily:monoFontFamily}),MonoDisplayMedium:_objectSpread$v(_objectSpread$v({},we),{},{fontFamily:monoFontFamily}),MonoDisplayLarge:_objectSpread$v(_objectSpread$v({},$e),{},{fontFamily:monoFontFamily})}};var animation={timing100:"100ms",timing200:"200ms",timing300:"300ms",timing400:"400ms",timing500:"500ms",timing600:"600ms",timing700:"700ms",timing800:"800ms",timing900:"900ms",timing1000:"1000ms",easeInCurve:"cubic-bezier(.8, .2, .6, 1
43)",easeOutCurve:"cubic-bezier(.2, .8, .4, 1)",easeInOutCurve:"cubic-bezier(0.4, 0, 0.2, 1)",easeInQuinticCurve:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuinticCurve:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuinticCurve:"cubic-bezier(0.86, 0, 0.07, 1)",linearCurve:"cubic-bezier(0, 0, 1, 1)"},breakpoints$1={small:320,medium:600,large:1136},grid={columns:[4,8,12],gutters:[16,36,36],margins:[16,36,64],gaps:0,unit:"px",maxWidth:1280},getMediaQuery=function n(o){return"@media screen and (min-width: ".concat(o,"px)")},mediaQuery={small:getMediaQuery(breakpoints$1.small),medium:getMediaQuery(breakpoints$1.medium),large:getMediaQuery(breakpoints$1.large)},sizing={scale0:"2px",scale100:"4px",scale200:"6px",scale300:"8px",scale400:"10px",scale500:"12px",scale550:"14px",scale600:"16px",scale650:"18px",scale700:"20px",scale750:"22px",scale800:"24px",scale850:"28px",scale900:"32px",scale950:"36px",scale1000:"40px",scale1200:"48px",scale1400:"56px",scale1600:"64px",scale2400:"96px",scale3200:"128px",scale4800:"192px"};function ownKeys$w(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$u(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$w(Object(e),!0).forEach(function(t){_defineProperty$D(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$w(Object(e)).forEac
43h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$D(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var LightTheme={name:"light-theme",colors:_objectSpread$u(_objectSpread$u(_objectSpread$u({},lightColorTokens),getComponentColorTokens()),getSemanticColorTokens()),animation,breakpoints:breakpoints$1,borders,direction:"auto",grid,lighting,mediaQuery,sizing,typography:getTypography(),zIndex:{modal:2e3}};function _typeof$l(n){"@babel/helpers - typeof";return _typeof$l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$l(n)}function deepMerge(n){n=n||{};for(var o=arguments.length<=1?0:arguments.length-1,e,t,c=0;c<o;c++){e=(c+1<1||arguments.length<=c+1?void 0:arguments[c+1])||{};for(var p in e)_typeof$l(e[p])!==void 0&&(t=e[p],isCloneable(t)?n[p]=deepMerge(n[p]||Array.isArray(t)&&[]||{},t):n[p]=t)}return n}function isCloneable(n){return Array.isArray(n)||{}.toString.call(n)=="[object Object]"}var darkColorTokens={primaryA:colors$1.gray200,primaryB:colors$1.gray900,primary:colors$1.white,primary50:colors$1.gray50,primary100:colors$1.gray100,primary200:colors$1.gray200,primary300:colors$1.gray300,primary400:colors$1.gray400,primary500:colors$1.gray500,primary600:colors$1.gray600,primary700:colors$1.gray700,accent:colors$1.blue400,accent50:colors$1.blue50,accent100:colors$1.blue100,accent200:colors$1.blue200,accent300:colors$1.blue300,accent400:colors$1.blue400,accent500:colors$1.blue500,accent600:colors$1.blue600,accent700:colors$1.blue700,negative:colors$1.red500,negative50:colors$1.red50,negative100:colors$1.red100,negative200:colors$1.red200,negative300:colors$1.red300,negative400:colors$1.red400,negative500:colors$1.red500,negative600:colors$1.red600,negative700:colors$1.red700,warning:colors$1.yellow500,warning50:colors$1.yellow50,warning100:colors$1.yellow100,warning200:colors$1.yellow200,warning300:colors$1.yellow300,warning400:colors$1.yellow400,warning500:colors$1.yellow500,warning600:colors$1.yellow600,warning700:colors$1.yellow700,positive:colors$1.green400,positive50:colors$1.green50,positive100:colors$1.green100,positive200:colors$1.green200,positive300:colors$1.green300,positive400:colors$1.green400,positive500:colors$1.green500,positive600:colors$1.green600,positive700:colors$1.green700,white:colors$1.white,black:colors$1.black,mono100:colors$1.gray300,mono200:colors$1.gray400,mono300:colors$1.gray500,mono400:colors$1.gray600,mono500:colors$1.gray700,mono600:"#292929",mono700:"#1F1F1F",mono800:"#141414",mono900:"#111111",mono1000:colors$1.black,ratingInactiveFill:colors$1.gray500,ratingStroke:colors$1.gray700},_excluded$q=["primaryFontFamily"];function ownKeys$v(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$t(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$v(Object(e),!0).forEach(function(t){_defineProperty$C(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$v(Object(e)).forEac
43h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$C(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function _objectWithoutProperties$s(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$s(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$s(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function createLightTheme(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,e=n.primaryFontFamily,t=_objectWithoutProperties$s(n,_excluded$q),c=_objectSpread$t(_objectSpread$t({},lightColorTokens),t),p={animation,borders,breakpoints:breakpoints$1,colors:_objectSpread$t(_objectSpread$t(_objectSpread$t({},c),getComponentColorTokens(c)),getSemanticColorTokens(c)),direction:"auto",grid,lighting,mediaQuery,sizing,typography:e?getTypography({primaryFontFamily:e}):getTypography(),zIndex:{modal:2e3}};return deepMerge(p,o)}function ownKeys$u(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$s(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$u(Object(e),!0).forEach(function(t){_defineProperty$B(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$u(Object(e)).forEac
43h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$B(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var primitives$1=_objectSpread$s(_objectSpread$s({},darkColorTokens),defaultFontTokens);function ownKeys$t(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$r(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$t(Object(e),!0).forEach(function(t){_defineProperty$A(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$t(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$A(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var primitives=_objectSpread$r(_objectSpread$r({},lightColorTokens),defaultFontTokens),ThemeContext$1=reactExports.createContext(LightTheme),ThemeProvider$1=function n(o){var e=o.theme,t=o.children;return reactExports.createElement(ThemeContext$1.Provider,{value:e},t)};function ownKeys$s(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$q(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$s(Object(e),!0).forEach(function(t){_defineProperty$z(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$s(Object(e)).forEac
43h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$z(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function _slicedToArray$m(n,o){return _arrayWithHoles$m(n)||_iterableToArrayLimit$m(n,o)||_unsupportedIterableToArray$m(n,o)||_nonIterableRest$m()}function _nonIterableRest$m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$m(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$m(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$m(n,o)}}function _arrayLikeToArray$m(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$m(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$m(n){if(Array.isArray(n))return n}function _extends$A(){return _extends$A=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$A.apply(this,arguments)}var wrapper=function n(o){return reactExports.forwardRef(function(e,t){return reactExports.createElement(ThemeContext$1.Consumer,null,function(c){return reactExports.createElement(o,_extends$A({ref:t},e,{$theme:c}))})})};function createThemedStyled(){return createStyled$1({wrapper,getInitialStyle,driver})}var styled$1=createThemedStyled();function createThemedWithStyle(){return withStyle$1}var withStyle=createThemedWithStyle();function createThemedUseStyletron(){return function(){var n=reactExports.useContext(ThemeContext$1),o=useStyletron$1(),e=_slicedToArray$m(o,1),t=e[0];return[t,n]}}var useStyletron=createThemedUseStyletron();function withWrapper(n,o){return withWrapper$1(n,function(e){return reactExports.forwardRef(function(t,c){return reactExports.createElement(ThemeContext$1.Consumer,null,function(p){return o(e)(_objectSpread$q(_objectSpread$q({ref:c},t),{},{$theme:p}))})})})}var locale$b={collapse:"Collapse",expand:"Expand"},locale$a={ariaLabel:"Breadcrumbs navigation"},locale$9={ariaLabel:"Select a date.",ariaLabelRange:"Select a date range.",ariaLabelCalendar:"Calendar.",ariaRoleDescriptionCalendarMonth:"Calendar month",previousMonth:"Previous month.",nextMonth:"Next month.",pastWeek:"Past Week",pastMonth:"Past Month",pastThreeMonths:"Past 3 Months",pastSixMonths:"Past 6 Months",pastYear:"Past Year",pastTwoYears:"Past 2 Years",screenReaderMessageInput:"Press the down arrow key to interact with the calendar and select a date. Press the escape button to close the calendar.",selectedDate:"Selected date is ${date}.",selectedDateRange:"Selected date range is from ${startDate} to ${endDate}.",selectSecondDatePrompt:"Select the second date.",quickSelectLabel:"Choose a date range",quickSelectAriaLabel:"Choose a date range",quickSelectPlaceholder:"None",timeSelectEndLabel:"End time",timeSelectStartLabel:"Start time",timePickerAriaLabel12Hour:"Select a time, 12-hour format.",timePickerAriaLabel24Hour:"Select a time, 24-hour format.",timezonePickerAriaLabel:"Select a timezone.",selectedStartDateLabel:"Selected start date.",selectedEndDateLabel:"Selected end date.",dateNotAvailableLabel:"Not available.",dateAvailableLabel:"It's available.",selectedLabel:"Selected.",chooseLabel:"Choose"},locale$8={emptyState:"No rows match the filter criteria defined. Please remove one or more filters to view more data.",loadingState:"Loading rows.",searchAriaLabel:"Search by text",filterAdd:"Add Filter",filterExclude:"Exclude",filterApply:"Apply",filterExcludeRange:"Exclude range",filterExcludeValue:"Exclude value",filterAppliedTo:"filter applied to",optionsLabel:"Select column to filter by",optionsSearch:"Search for a column to filter by...",optionsEmpty:"No columns available.",categoricalFilterSelectAll:"Select All",categoricalFilterSelectClear:"Clear",categoricalFilterEmpty:"No categories found",datetimeFilterRange:"Range",datetimeFilterRangeDatetime:"Date, Time",datetimeFilterRangeDate:"Date",datetimeFilterRangeTime:"Time",datetimeFilterCategorical:"Categorical",datetimeFilterCategoricalWeekday:"Weekday",datetimeFilterCategoricalMonth:"Month",datetimeFilterCategoricalQuarter:"Quarter",datetimeFilterCategoricalHalf:"Half",datetimeFilterCategoricalFirstHalf:"H1",datetimeFilterCategorical
44SecondHalf:"H2",datetimeFilterCategoricalYear:"Year",numericalFilterRange:"Range",numericalFilterSingleValue:"Single Value",booleanFilterTrue:"true",booleanFilterFalse:"false",booleanColumnTrueShort:"T",booleanColumnFalseShort:"F",selectRow:"Select row",selectAllRows:"Select all rows"},locale$7={ariaLabel:"button group"},locale$6={dropFilesToUpload:"Drop files here to upload...",or:"",browseFiles:"Browse files",retry:"Retry Upload",cancel:"Cancel"},locale$5={noResultsMsg:"No results",parentMenuItemAriaLabel:"You are currently at an item that opens a nested listbox. Press right arrow to enter that element and left arrow to return."},locale$4={close:"Close"},locale$3={close:"Close"},locale$2={prev:"Prev",next:"Next",preposition:"of"},locale$1={noResultsMsg:"No results found",placeholder:"Select...",create:"Create"},locale={close:"Close"},en_US={accordion:locale$b,breadcrumbs:locale$a,datepicker:locale$9,datatable:locale$8,buttongroup:locale$7,fileuploader:locale$6,menu:locale$5,modal:locale$4,drawer:locale$3,pagination:locale$2,select:locale$1,toast:locale},LocaleContext=reactExports.createContext(en_US),generateUID$1=function(){var n=1,o=new WeakMap,e=function(t,c){return typeof t=="number"||typeof t=="string"?c?"idx-".concat(c):"val-".concat(t):o.has(t)?"uid"+o.get(t):(o.set(t,n++),e(t))};return e},createSource=function(n){return n===void 0&&(n=""),{value:1,prefix:n,uid:generateUID$1()}},counter=createSource(),source=reactExports.createContext(createSource()),getId=function(n){return n.value++},getPrefix=function(n){return n?n.prefix:""}
44,__extends$1=function(){var n=function(o,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,c){t.__proto__=c}||function(t,c){for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(t[p]=c[p])},n(o,e)};return function(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),prefixId=function(n,o,e){var t=o+n;return String(e?e(t):t)},UID=function(n){__extends$1(o,n);function o(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={quartz:e.props.idSource||counter,prefix:getPrefix(e.props.idSource),id:getId(e.props.idSource||counter)},e.uid=function(t){return prefixId(e.state.id+"-"+e.state.quartz.uid(t),e.state.prefix,e.props.name)},e}return o.prototype.render=function(){var e=this.props,t=e.children,c=e.name,p=this.state,h=p.id,y=p.prefix;return t(prefixId(h,y,c),this.uid)},o}(reactExports.Component),generateUID=function(n){var o=n||counter,e=getPrefix(o),t=getId(o),c=e+t,p=function(h){return c+o.uid(h)};return{uid:c,gen:p}},useUIDState=function(){var n=reactExports.useContext(source),o=reactExports.useState(function(){return generateUID(n)})[0];return o},useUID=function(){var n=useUIDState().uid;return n},useUIDSeed=function(){var n=useUIDState().gen;return n},UIDReset=function(n){var o=n.children,e=n.prefix,t=e===void 0?"":e,c=reactExports.useState(function(){return createSource(t)})[0];return reactExports.createElement(source.Provider,{value:c},o)},UIDConsumer=function(n){var o=n.name,e=n.children;return reactExports.createElement(source.Consumer,null,function(t){return reactExports.createElement(UID,{name:o,idSource:t,children:e})})},reactIsExports$1=requireReactIs$1();function _extends$z(){return _extends$z=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$z.apply(this,arguments)}function ownKeys$r(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$p(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$r(Object(e),!0).forEach(function(t){_defineProperty$y(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$r(Object(e)).forEac
44h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$y(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function _typeof$k(n){"@babel/helpers - typeof";return _typeof$k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$k(n)}function getOverride(n){return reactIsExports$1.isValidElementType(n)?n:n&&_typeof$k(n)==="object"?n.component:n}function getOverrideProps(n){return n&&_typeof$k(n)==="object"?_typeof$k(n.props)==="object"?_objectSpread$p(_objectSpread$p({},n.props),{},{$style:n.style}):{$style:n.style}:{}}function toObjectOverride(n){return reactIsExports$1.isValidElementType(n)?{component:n}:n||{}}function getOverrides(n,o){var e=getOverride(n)||o;if(n&&_typeof$k(n)==="object"&&typeof n.props=="function"){var t=reactExports.forwardRef(function(p,h){var y=n.props(p),g=getOverrideProps(_objectSpread$p(_objectSpread$p({},n),{},{props:y}));return reactExports.createElement(e,_extends$z({ref:h},g))});return t.displayName=e.displayName,[t,{}]}var c=getOverrideProps(n);return[e,c]}function mergeOverrides(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=Object.assign({},n,o),t=Object.keys(e);return t.reduce(function(c,p){return c[p]=mergeOverride(toObjectOverride(n[p]),toObjectOverride(o[p])),c},{})}function mergeOverride(n,o){var e=_objectSpread$p(_objectSpread$p({},n),o);return n.props&&o.props&&(e.props=mergeConfigurationOverrides(n.props,o.props)),n.style&&o.style&&(e.style=mergeConfigurationOverrides(n.style,o.style)),e}function mergeConfigurationOverrides(n,o){return _typeof$k(n)==="object"&&_typeof$k(o)==="object"?deepMerge({},n,o):function(){return deepMerge({},typeof n=="function"?n.apply(void 0,arguments):n,typeof o=="function"?o.apply(void 0,arguments):o)}}var initialized=!1,hadKeyboardEvent=!0,inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(n){var o=n.type,e=n.tagName;return!!(e==="INPUT"&&inputTypesWhitelist[o]&&!n.readOnly||e==="TEXTAREA"&&!n.readOnly||n.isContentEditable)}function handleKeyDown(n){n.metaKey||n.altKey||n.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState}function prepare(n){n.addEventListener("keydown",handleKeyDown,!0),n.addEventListener("mousedown",handlePointerDown,!0),n.addEventListener("pointerdown",handlePointerDown,!0),n.addEventListener("touchstart",handlePointerDown,!0),n.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(n){try{return n.target.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(n.target)}function initFocusVisible(n){!initialized&&n!=null&&(initialized=!0,prepare(n.ownerDocument))}var forkFocus=function n(o,e){return function(t){typeof o.onFocus=="function"&&o.onFocus(t),e(t)}},forkBlur=function n(o,e){return function(t){typeof o.onBlur=="function"&&o.onBlur(t),e(t)}};function _typeof$j(n){"@babel/helpers - typeof";return _typeof$j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$j(n)}function _extends$y(){return _extends$y=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$y.apply(this,arguments)}function _slicedToArray$l(n,o){return _arrayWithHoles$l(n)||_iterableToArrayLimit$l(n,o)||_unsupportedIterableToArray$l(n,o)||_nonIterableRest$l()}function _nonIterableRest$l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit$l(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$l(n){if(Array.isArray(n))return n}function _toConsumableArray$3(n){return _arrayWithoutHoles$3(n)||_iterableToArray$3(n)||_unsupportedIterableToArray$l(n)||_nonIterableSpread$3()}function _nonIterableSpread$3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$l(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$l(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);
46if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$l(n,o)}}function _iterableToArray$3(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles$3(n){if(Array.isArray(n))return _arrayLikeToArray$l(n)}function _arrayLikeToArray$l(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _classCallCheck$g(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$g(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$g(n,o,e){return o&&_defineProperties$g(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$g(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$h(n,o)}function _setPrototypeOf$h(n,o){return _setPrototypeOf$h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$h(n,o)}function _createSuper$g(n){var o=_isNativeReflectConstruct$g();return function(){var t=_getPrototypeOf$g(n),c;if(o){var p=_getPrototypeOf$g(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$g(this,c)}}function _possibleConstructorReturn$g(n,o){if(o&&(_typeof$j(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$h(n)}function _assertThisInitialized$h(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$g(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$g(n){return _getPrototypeOf$g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$g(n)}function _defineProperty$x(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var StyledAppContainer=styled$1("div",{});StyledAppContainer.displayName="StyledAppContainer";var StyledLayersContainer=styled$1("div",{});StyledLayersContainer.displayName="StyledLayersContainer";function defaultEventHandlerFn(){}var LayersContext=reactExports.createContext({addEscapeHandler:defaultEventHandlerFn,removeEscapeHandler:defaultEventHandlerFn,addKeyDownHandler:defaultEventHandlerFn,removeKeyDownHandler:defaultEventHandlerFn,addKeyUpHandler:defaultEventHandlerFn,removeKeyUpHandler:defaultEventHandlerFn,addKeyPressHandler:defaultEventHandlerFn,removeKeyPressHandler:defaultEventHandlerFn,addDocClickHandler:defaultEventHandlerFn,removeDocClickHandler:defaultEventHandlerFn,host:void 0,zIndex:void 0}),Provider=LayersContext.Provider,Consumer=LayersContext.Consumer,LayersManager=function(n){_inherits$g(e,n);var o=_createSuper$g(e);function e(t){var c;return _classCallCheck$g(this,e),c=o.call(this,t),_defineProperty$x(_assertThisInitialized$h(c),"host",reactExports.createRef()),_defineProperty$x(_assertThisInitialized$h(c),"containerRef",reactExports.createRef()),_defineProperty$x(_assertThisInitialized$h(c),"onDocumentClick",function(p){var h=c.state.docClickHandlers[c.state.docClickHandlers.length-1];h&&h(p)}),_defineProperty$x(_assertThisInitialized$h(c),"onKeyDown",function(p){var h=c.state.keyDownHandlers[c.state.keyDownHandlers.length-1];h&&h(p)}),_defineProperty$x(_assertThisInitialized$h(c),"onKeyUp",function(p){if(p.key==="Escape"){var h=c.state.escapeKeyHandlers[c.state.escapeKeyHandlers.length-1];h&&h()}var y=c.state.keyUpHandlers[c.state.keyUpHandlers.length-1];y&&y(p)}),_defineProperty$x(_assertThisInitialized$h(c),"onKeyPress",function(p){var h=c.state.keyPressHandlers[c.state.keyPressHandlers.length-1];h&&h(p)}),_defineProperty$x(_assertThisInitialized$h(c),"onAddEscapeHandler",function(p){c.setState(function(h){return{escapeKeyHandlers:[].concat(_toConsumableArray$3(h.escapeKeyHandlers),[p])}})}),_defineProperty$x(_assertThisInitialized$h(c),"onRemoveEscapeHandler",function(p){c.setState(function(h){return{escapeKeyHandlers:h.escapeKeyHandlers.filter(function(y){return y!==p})}})}),_defineProperty$x(_assertThisInitialized$h(c),"onAddKeyDownHandler",function(p){c.setState(function(h){return{keyDownHandlers:[].concat(_toConsumableArray$3(h.keyDownHandlers),[p])}})}),_defineProperty$x(_assertThisInitialized$h(c),"onRemoveKeyDownHandler",function(p){c.setState(function(h){return{keyDownHandlers:h.keyDownHandlers.filter(function(y){return y!==p})}})}),_defineProperty$x(_assertThisInitialized$h(c),"onAddKeyUpHandler",function(p){c.setState(function(h){return{keyUpHandlers:[].concat(_toConsumableArray$3(h.keyUpHandlers),[p])}})}),_defineProperty$x(_assertThisInitialized$h(c),"onRemoveKeyUpHandler",function(p){c.setState(function(h){return{keyUpHandlers:h.keyUpHandlers.filter(function(y){return y!==p})}})}),_defineProperty$x(_assertThisInitialized$h(c),"onAddKeyPressHandler",function(p){c.setState(function(h){return{keyPressHandlers:[].concat(_toConsumableArray$3(h.keyPressHandlers),[p])}})}),_defineProperty$x(_assertThisInitialized$h(c),"onRemoveKeyPressHandler",function(p){c.setState(function(h){return{keyPressHandlers:h.keyPressHandlers.filter(function(y){return y!==p})}})}),_defineProperty$x(_assertThisInitialized$h(c),"onAddDocClickHandler",function(p){c.setState(function(h){return{docClickHandlers:[].concat(_toConsumableArray$3(h.docClickHandlers),[p])}})}),_defineProperty$x(_assertThisInitialized$h(c),"onRemoveDocClickHandler",function(p){c.setState(function(h){return{docClickHandlers:h.docClickHandlers.filter(function(y){return y!==p})}})}),c.state={escapeKeyHandlers:[],keyDownHandlers:[],keyUpHandlers:[],keyPressHandlers:[],docClickHandlers:[]},c}
46return _createClass$g(e,[{key:"componentDidMount",value:function(){this.forceUpdate(),initFocusVisible(this.containerRef.current),typeof document<"u"&&(document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp),document.addEventListener("keypress",this.onKeyPress),document.addEventListener("mousedown",this.onDocumentClick))}},{key:"componentWillUnmount",value:function(){typeof document<"u"&&(document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("keypress",this.onKeyPress),document.removeEventListener("mousedown",this.onDocumentClick))}},{key:"render",value:function(){var c=this,p=this.props.overrides,h=p===void 0?{}:p,y=getOverrides(h.AppContainer,StyledAppContainer),g=_slicedToArray$l(y,2),$=g[0],E=g[1],A=getOverrides(h.LayersContainer,StyledLayersContainer),N=_slicedToArray$l(A,2),H=N[0],Z=N[1];return reactExports.createElement(Consumer,null,function(X){var be=X.host;return reactExports.createElement(Provider,{value:{host:be||c.host.current,zIndex:c.props.zIndex,addEscapeHandler:c.onAddEscapeHandler,removeEscapeHandler:c.onRemoveEscapeHandler,addKeyDownHandler:c.onAddKeyDownHandler,removeKeyDownHandler:c.onRemoveKeyDownHandler,addKeyUpHandler:c.onAddKeyUpHandler,removeKeyUpHandler:c.onRemoveKeyUpHandler,addKeyPressHandler:c.onAddKeyPressHandler,removeKeyPressHandler:c.onRemoveKeyPressHandler,addDocClickHandler:c.onAddDocClickHandler,removeDocClickHandler:c.onRemoveDocClickHandler}},reactExports.createElement($,_extends$y({},E,{ref:c.containerRef}),c.props.children),reactExports.createElement(H,_extends$y({},Z,{ref:c.host})))})}}]),e}(reactExports.Component),reactDomExports=requireReactDom();const ReactDOM=getDefaultExportFromCjs(reactDomExports);function _typeof$i(n){"@babel/helpers - typeof";return _typeof$i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$i(n)}function _extends$x(){return _extends$x=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$x.apply(this,arguments)}function _classCallCheck$f(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$f(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$f(n,o,e){return o&&_defineProperties$f(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$f(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$g(n,o)}function _setPrototypeOf$g(n,o){return _setPrototypeOf$g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$g(n,o)}function _createSuper$f(n){var o=_isNativeReflectConstruct$f();return function(){var t=_getPrototypeOf$f(n),c;if(o){var p=_getPrototypeOf$f(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$f(this,c)}}function _possibleConstructorReturn$f(n,o){if(o&&(_typeof$i(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$g(n)}function _assertThisInitialized$g(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$f(n){return _getPrototypeOf$f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$f(n)}function _defineProperty$w(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var Container=styled$1("div",function(n){var o=n.$zIndex;return{position:"absolute",top:0,left:0,right:0,zIndex:o||null}});
46Container.displayName="Container";var LayerComponent=function(n){_inherits$f(e,n);var o=_createSuper$f(e);function e(){var t;_classCallCheck$f(this,e);for(var c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];return t=o.call.apply(o,[this].concat(p)),_defineProperty$w(_assertThisInitialized$g(t),"state",{container:null}),_defineProperty$w(_assertThisInitialized$g(t),"onEscape",function(){t.props.onEscape&&t.props.onEscape()}),_defineProperty$w(_assertThisInitialized$g(t),"onKeyDown",function(y){t.props.onKeyDown&&t.props.onKeyDown(y)}),_defineProperty$w(_assertThisInitialized$g(t),"onKeyUp",function(y){t.props.onKeyUp&&t.props.onKeyUp(y)}),_defineProperty$w(_assertThisInitialized$g(t),"onKeyPress",function(y){t.props.onKeyPress&&t.props.onKeyPress(y)}),_defineProperty$w(_assertThisInitialized$g(t),"onDocumentClick",function(y){t.props.onDocumentClick&&t.props.onDocumentClick(y)}),t}return _createClass$f(e,[{key:"componentDidMount",value:function(){this.context.addEscapeHandler(this.onEscape),this.context.addKeyDownHandler(this.onKeyDown),this.context.addKeyUpHandler(this.onKeyUp),this.context.addKeyPressHandler(this.onKeyPress),this.props.isHoverLayer||this.context.addDocClickHandler(this.onDocumentClick);var c=this.props,p=c.onMount,h=c.mountNode,y=c.host;if(h){p&&p();return}var g=y!==void 0,$=g?y:document.body;$&&this.addContainer($)}},{key:"componentDidUpdate",value:function(c){var p=this.props,h=p.host,y=p.mountNode;y||(h&&h!==c.host&&c.host===null&&this.addContainer(h),c.isHoverLayer!=this.props.isHoverLayer&&(this.props.isHoverLayer?this.context.removeDocClickHandler(this.onDocumentClick):this.context.addDocClickHandler(this.onDocumentClick)))}},{key:"componentWillUnmount",value:function(){this.context.removeEscapeHandler(this.onEscape),this.context.removeKeyDownHandler(this.onKeyDown),this.context.removeKeyUpHandler(this.onKeyUp),this.context.removeKeyPressHandler(this.onKeyPress),this.context.removeDocClickHandler(this.onDocumentClick),this.props.onUnmount&&this.props.onUnmount();var c=this.props.host,p=this.state.container;c&&p&&c.contains(p)&&c.removeChild(p)}},{key:"addContainer",value:function(c){var p=this.props,h=p.index,y=p.mountNode,g=p.onMount;if(!y&&c){var $=c.ownerDocument.createElement("div"),E=typeof h=="number"?c.children[h]:null;E?c.insertBefore($,E):c.appendChild($),this.setState({container:$},function(){g&&g()})}}},{key:"render",value:function(){var c=this.state.container,p=this.props,h=p.children,y=p.mountNode,g=p.zIndex,$=g?reactExports.createElement(Container,{$zIndex:g},h):h;return typeof document<"u"?y?ReactDOM.createPortal($,y):c?ReactDOM.createPortal($,c):null:null}}]),e}(reactExports.Component);_defineProperty$w(LayerComponent,"contextType",LayersContext);function Layer(n){return reactExports.createElement(Consumer,null,function(o){var e=o.host,t=o.zIndex;return reactExports.createElement(LayerComponent,_extends$x({},n,{host:e,zIndex:t}))})}var isBrowser$1=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",timeoutDuration=function(){for(var n=["Edge","Trident","Firefox"],o=0;o<n.length;o+=1)if(isBrowser$1&&navigator.userAgent.indexOf(n[o])>=0)return 1;return 0}();function microtaskDebounce(n){var o=!1;return function(){o||(o=!0,window.Promise.resolve().then(function(){o=!1,n()}))}}function taskDebounce(n){var o=!1;return function(){o||(o=!0,setTimeout(function(){o=!1,n()},timeoutDuration))}}var supportsMicroTasks=isBrowser$1&&window.Promise,debounce$1=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction(n){var o={};return n&&o.toString.call(n)==="[object Function]"}function getStyleComputedProperty(n,o){if(n.nodeType!==1)return[];var e=n.ownerDocument.defaultView,t=e.getComputedStyle(n,null);return o?t[o]:t}function getParentNode$1(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function getScrollParent(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var o=getStyleComputedProperty(n),e=o.overflow,t=o.overflowX,c=o.overflowY;return/(auto|scroll|overlay)/.test(e+c+t)?n:getScrollParent(getParentNode$1(n))}function getReferenceNode(n){return n&&n.referenceNode?n.referenceNode:n}var isIE11=isBrowser$1&&!!(window.MSInputMethodContext&&document.documentMode),isIE10=isBrowser$1&&/MSIE 10/.test(navigator.userAgent);function isIE(n){return n===11?isIE11:n===10?isIE10:isIE11||isIE10}function getOffsetParent(n){if(!n)return document.documentElement;for(var o=isIE(10)?document.body:null,e=n.offsetParent||null;e===o&&n.nextElementSibling;)e=(n=n.nextElementSibling).offsetParent;var t=e&&e.nodeName;return!t||t==="BODY"||t==="HTML"?n?n.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(e.nodeName)!==-1&&getStyleComputedProperty(e,"position")==="static"?getOffsetParent(e):e}function isOffsetContainer(n){var o=n.nodeName;return o==="BODY"?!1:o==="HTML"||getOffsetParent(n.firstElementChild)===n}function getRoot(n){return n.parentNode!==null?getRoot(n.parentNode):n}function findCommonOffsetParent(n,o){if(!n||!n.nodeType||!o||!o.nodeType)return document.documentElement;var e=n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING,t=e?n:o,c=e?o:n,p=document.createRange();p.setStart(t,0),p.setEnd(c,0);var h=p.commonAncestorContainer;if(n!==h&&o!==h||t.contains(c))return isOffsetContainer(h)?h:getOffsetParent(h);var y=getRoot(n);return y.host?findCommonOffsetParent(y.host,o):findCommonOffsetParent(n,getRoot(o).host)}function getScroll(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",e=o==="top"?"scrollTop":"scrollLeft",t=n.nodeName;if(t==="BODY"||t==="HTML"){var c=n.ownerDocument.documentElement,p=n.ownerDocument.scrollingElement||c;return p[e]}return n[e]}function includeScroll(n,o){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,t=getScroll(o,"top"),c=getScroll(o,"left"),p=e?-1:1;return n.top+=t*p,n.bottom+=t*p,n.left+=c*p,n.right+=c*p,n}function getBordersSize$1(n,o){var e=o==="x"?"Left":"Top",t=e==="Left"?"Right":"Bottom";return parseFloat(n["border"+e+"Width"])+parseFloat(n["border"+t+"Width"])}function getSize(n,o,e,t){return Math.max(o["offset"+n],o["scroll"+n],e["client"+n],e["offset"+n],e["scroll"+n],isIE(10)?parseInt(e["offset"+n])+parseInt(t["margin"+(n==="Height"?"Top":"Left")])+parseInt(t["margin"+(n==="Height"?"Bottom":"Right")]):0)}function getWindowSizes(n){var o=n.body,e=n.documentElement,t=isIE(10)&&getComputedStyle(e);return{height:getSize("Height",o,e,t),width:getSize("Width",o,e,t)}}var classCallCheck=function(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")},createClass=function(){function n(o,e){for(var t=0;t<e.length;t++){var c=e[t];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}return function(o,e,t){return e&&n(o.prototype,e),t&&n(o,t),o}}(),defineProperty=function(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n},_extends$w=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n};function getClientRect(n){return _extends$w({},n,{right:n.left+n.width,bottom:n.top+n.height})}function getBoundingClientRect(n){var o={};try{if(isIE(10)){o=n.getBoundingClientRect();var e=getScroll(n,"top"),t=getScroll(n,"left");o.top+=e,o.left+=t,o.bottom+=e,o.right+=t}else o=n.getBoundingClientRect()}catch{}var c={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},p=n.nodeName==="HTML"?getWindowSizes(n.ownerDocument):{},h=p.width||n.clientWidth||c.width,y=p.height||n.clientHeight||c.height,g=n.offsetWidth-h,$=n.offsetHeight-y;if(g||$){var E=getStyleComputedProperty(n);g-=getBordersSize$1(E,"x"),$-=getBordersSize$1(E,"y"),c.width-=g,c.height-=$}return getClientRect(c)}function getOffsetRectRelativeToArbitraryNode(n,o){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,t=isIE(10),c=o.nodeName==="HTML",p=getBoundingClientRect(n),h=getBoundingClientRect(o),y=getScrollParent(n),g=getStyleComputedProperty(o),$=parseFloat(g.borderTopWidth),E=parseFloat(g.borderLeftWidth);e&&c&&(h.top=Math.max(h.top,0),h.left=Math.max(h.left,0));var A=getClientRect({top:p.top-h.top-$,left:p.left-h.left-E,width:p.width,height:p.height});
vendor: 19,074 bytes, line 46
46if(A.marginTop=0,A.marginLeft=0,!t&&c){var N=parseFloat(g.marginTop),H=parseFloat(g.marginLeft);A.top-=$-N,A.bottom-=$-N,A.left-=E-H,A.right-=E-H,A.marginTop=N,A.marginLeft=H}return(t&&!e?o.contains(y):o===y&&y.nodeName!=="BODY")&&(A=includeScroll(A,o)),A}function getViewportOffsetRectRelativeToArtbitraryNode(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=n.ownerDocument.documentElement,t=getOffsetRectRelativeToArbitraryNode(n,e),c=Math.max(e.clientWidth,window.innerWidth||0),p=Math.max(e.clientHeight,window.innerHeight||0),h=o?0:getScroll(e),y=o?0:getScroll(e,"left"),g={top:h-t.top+t.marginTop,left:y-t.left+t.marginLeft,width:c,height:p};return getClientRect(g)}function isFixed$1(n){var o=n.nodeName;if(o==="BODY"||o==="HTML")return!1;if(getStyleComputedProperty(n,"position")==="fixed")return!0;var e=getParentNode$1(n);return e?isFixed$1(e):!1}function getFixedPositionOffsetParent(n){if(!n||!n.parentElement||isIE())return document.documentElement;for(var o=n.parentElement;o&&getStyleComputedProperty(o,"transform")==="none";)o=o.parentElement;return o||document.documentElement}function getBoundaries(n,o,e,t){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,p={top:0,left:0},h=c?getFixedPositionOffsetParent(n):findCommonOffsetParent(n,getReferenceNode(o));if(t==="viewport")p=getViewportOffsetRectRelativeToArtbitraryNode(h,c);else{var y=void 0;t==="scrollParent"?(y=getScrollParent(getParentNode$1(o)),y.nodeName==="BODY"&&(y=n.ownerDocument.documentElement)):t==="window"?y=n.ownerDocument.documentElement:y=t;var g=getOffsetRectRelativeToArbitraryNode(y,h,c);if(y.nodeName==="HTML"&&!isFixed$1(h)){var $=getWindowSizes(n.ownerDocument),E=$.height,A=$.width;p.top+=g.top-g.marginTop,p.bottom=E+g.top,p.left+=g.left-g.marginLeft,p.right=A+g.left}else p=g}e=e||0;var N=typeof e=="number";return p.left+=N?e:e.left||0,p.top+=N?e:e.top||0,p.right-=N?e:e.right||0,p.bottom-=N?e:e.bottom||0,p}function getArea(n){var o=n.width,e=n.height;return o*e}function computeAutoPlacement(n,o,e,t,c){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(n.indexOf("auto")===-1)return n;var h=getBoundaries(e,t,p,c),y={top:{width:h.width,height:o.top-h.top},right:{width:h.right-o.right,height:h.height},bottom:{width:h.width,height:h.bottom-o.bottom},left:{width:o.left-h.left,height:h.height}},g=Object.keys(y).map(function(N){return _extends$w({key:N},y[N],{area:getArea(y[N])})}).sort(function(N,H){return H.area-N.area}),$=g.filter(function(N){var H=N.width,Z=N.height;return H>=e.clientWidth&&Z>=e.clientHeight}),E=$.length>0?$[0].key:g[0].key,A=n.split("-")[1];return E+(A?"-"+A:"")}function getReferenceOffsets(n,o,e){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,c=t?getFixedPositionOffsetParent(o):findCommonOffsetParent(o,getReferenceNode(e));return getOffsetRectRelativeToArbitraryNode(e,c,t)}function getOuterSizes(n){var o=n.ownerDocument.defaultView,e=o.getComputedStyle(n),t=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),c=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0),p={width:n.offsetWidth+c,height:n.offsetHeight+t};return p}function getOppositePlacement(n){var o={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(e){return o[e]})}function getPopperOffsets(n,o,e){e=e.split("-")[0];var t=getOuterSizes(n),c={width:t.width,height:t.height},p=["right","left"].indexOf(e)!==-1,h=p?"top":"left",y=p?"left":"top",g=p?"height":"width",$=p?"width":"height";return c[h]=o[h]+o[g]/2-t[g]/2,e===y?c[y]=o[y]-t[$]:c[y]=o[getOppositePlacement(y)],c}function find$1(n,o){return Array.prototype.find?n.find(o):n.filter(o)[0]}function findIndex(n,o,e){if(Array.prototype.findIndex)return n.findIndex(function(c){return c[o]===e});var t=find$1(n,function(c){return c[o]===e});return n.indexOf(t)}function runModifiers(n,o,e){var t=e===void 0?n:n.slice(0,findIndex(n,"name",e));return t.forEach(function(c){c.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var p=c.function||c.fn;c.enabled&&isFunction(p)&&(o.offsets.popper=getClientRect(o.offsets.popper),o.offsets.reference=getClientRect(o.offsets.reference),o=p(o,c))}),o}function update(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=computeAutoPlacement(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=getPopperOffsets(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=runModifiers(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function isModifierEnabled(n,o){return n.some(function(e){var t=e.name,c=e.enabled;return c&&t===o})}function getSupportedPropertyName(n){for(var o=[!1,"ms","Webkit","Moz","O"],e=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<o.length;t++){var c=o[t],p=c?""+c+e:n;if(typeof document.body.style[p]<"u")return p}return null}function destroy(){return this.state.isDestroyed=!0,isModifierEnabled(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[getSupportedPropertyName("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function getWindow(n){var o=n.ownerDocument;return o?o.defaultView:window}function attachToScrollParents(n,o,e,t){var c=n.nodeName==="BODY",p=c?n.ownerDocument.defaultView:n;p.addEventListener(o,e,{passive:!0}),c||attachToScrollParents(getScrollParent(p.parentNode),o,e,t),t.push(p)}function setupEventListeners(n,o,e,t){e.updateBound=t,getWindow(n).addEventListener("resize",e.updateBound,{passive:!0});var c=getScrollParent(n);return attachToScrollParents(c,"scroll",e.updateBound,e.scrollParents),e.scrollElement=c,e.eventsEnabled=!0,e}function enableEventListeners(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}function removeEventListeners(n,o){return getWindow(n).removeEventListener("resize",o.updateBound),o.scrollParents.forEach(function(e){e.removeEventListener("scroll",o.updateBound)}),o.updateBound=null,o.scrollParents=[],o.scrollElement=null,o.eventsEnabled=!1,o}function disableEventListeners(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function isNumeric(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function setStyles(n,o){Object.keys(o).forEach(function(e){var t="";["width","height","top","right","bottom","left"].indexOf(e)!==-1&&isNumeric(o[e])&&(t="px"),n.style[e]=o[e]+t})}function setAttributes(n,o){Object.keys(o).forEach(function(e){var t=o[e];t!==!1?n.setAttribute(e,o[e]):n.removeAttribute(e)})}function applyStyle(n){return setStyles(n.instance.popper,n.styles),setAttributes(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&setStyles(n.arrowElement,n.arrowStyles),n}function applyStyleOnLoad(n,o,e,t,c){var p=getReferenceOffsets(c,o,n,e.positionFixed),h=computeAutoPlacement(e.placement,p,o,n,e.modifiers.flip.boundariesElement,e.modifiers.flip.padding);return o.setAttribute("x-placement",h),setStyles(o,{position:e.positionFixed?"fixed":"absolute"}),e}function getRoundedOffsets(n,o){var e=n.offsets,t=e.popper,c=e.reference,p=Math.round,h=Math.floor,y=function(we){return we},g=p(c.width),$=p(t.width),E=["left","right"].indexOf(n.placement)!==-1,A=n.placement.indexOf("-")!==-1,N=g%2===$%2,H=g%2===1&&$%2===1,Z=o?E||A||N?p:h:y,X=o?p:y;return{left:Z(H&&!A&&o?t.left-1:t.left),top:X(t.top),bottom:X(t.bottom),right:Z(t.right)}}var isFirefox=isBrowser$1&&/Firefox/i.test(navigator.userAgent);function computeStyle(n,o){var e=o.x,t=o.y,c=n.offsets.popper,p=find$1(n.instance.modifiers,function(Ce){return Ce.name==="applyStyle"}).gpuAcceleration;p!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var h=p!==void 0?p:o.gpuAcceleration,y=getOffsetParent(n.instance.popper),g=getBoundingClientRect(y),$={position:c.position},E=getRoundedOffsets(n,window.devicePixelRatio<2||!isFirefox),A=e==="bottom"?"top":"bottom",N=t==="right"?"left":"right",H=getSupportedPropertyName("transform"),Z=void 0,X=void 0;if(A==="bottom"?y.nodeName==="HTML"?X=-y.clientHeight+E.bottom:X=-g.height+E.bottom:X=E.top,N==="right"?y.nodeName==="HTML"?Z=-y.clientWidth+E.right:Z=-g.width+E.right:Z=E.left,h&&H)$[H]="translate3d("+Z+"px, "+X+"px, 0)",$[A]=0,$[N]=0,$.willChange="transform";else{var be=A==="bottom"?-1:1,we=N==="right"?-1:1;$[A]=X*be,$[N]=Z*we,$.willChange=A+", "+N}var $e={"x-placement":n.placement};return n.attributes=_extends$w({},$e,n.attributes),n.styles=_extends$w({},$,n.styles),n.arrowStyles=_extends$w({},n.offsets.arrow,n.arrowStyles),n}function isModifierRequired(n,o,e){var t=find$1(n,function(y){var g=y.name;return g===o}),c=!!t&&n.some(function(y){return y.name===e&&y.enabled&&y.order<t.order});if(!c){var p="`"+o+"`",h="`"+e+"`";console.warn(h+" modifier is required by "+p+" modifier in order to work, be sure to include it before "+p+"!")}return c}function arrow(n,o){var e;if(!isModifierRequired(n.instance.modifiers,"arrow","keepTogether"))return n;var t=o.element;if(typeof t=="string"){if(t=n.instance.popper.querySelector(t),!t)return n}else if(!n.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var c=n.placement.split("-")[0],p=n.offsets,h=p.popper,y=p.reference,g=["left","right"].indexOf(c)!==-1,$=g?"height":"width",E=g?"Top":"Left",A=E.toLowerCase(),N=g?"left":"top",H=g?"bottom":"right",Z=getOuterSizes(t)[$];y[H]-Z<h[A]&&(n.offsets.popper[A]-=h[A]-(y[H]-Z)),y[A]+Z>h[H]&&(n.offsets.popper[A]+=y[A]+Z-h[H]),n.offsets.popper=getClientRect(n.offsets.popper);var X=y[A]+y[$]/2-Z/2,be=getStyleComputedProperty(n.instance.popper),we=parseFloat(be["margin"+E]),$e=parseFloat(be["border"+E+"Width"]),Ce=X-n.offsets.popper[A]-we-$e;return Ce=Math.max(Math.min(h[$]-Z,Ce),0),n.arrowElement=t,n.offsets.arrow=(e={},defineProperty(e,A,Math.round(Ce)),defineProperty(e,N,""),e),n}function getOppositeVariation(n){return n==="end"?"start":n==="start"?"end":n}var placements=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],validPlacements=placements.slice(3);function clockwise(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=validPlacements.indexOf(n),t=validPlacements.slice(e+1).concat(validPlacements.slice(0,e));return o?t.reverse():t}var BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip(n,o){if(isModifierEnabled(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var e=getBoundaries(n.instance.popper,n.instance.reference,o.padding,o.boundariesElement,n.positionFixed),t=n.placement.split("-")[0],c=getOppositePlacement(t),p=n.placement.split("-")[1]||"",h=[];switch(o.behavior){case BEHAVIORS.FLIP:h=[t,c];break;case BEHAVIORS.CLOCKWISE:h=clockwise(t);break;case BEHAVIORS.COUNTERCLOCKWISE:h=clockwise(t,!0);break;default:h=o.behavior}return h.forEach(function(y,g){if(t!==y||h.length===g+1)return n;t=n.placement.split("-")[0],c=getOppositePlacement(t);var $=n.offsets.popper,E=n.offsets.reference,A=Math.floor,N=t==="left"&&A($.right)>A(E.left)||t==="right"&&A($.left)<A(E.right)||t==="top"&&A($.bottom)>A(E.top)||t==="bottom"&&A($.top)<A(E.bottom),H=A($.left)<A(e.left),Z=A($.right)>A(e.right),X=A($.top)<A(e.top),be=A($.bottom)>A(e.bottom),we=t==="left"&&H||t==="right"&&Z||t==="top"&&X||t==="bottom"&&be,$e=["top","bottom"].indexOf(t)!==-1,Ce=!!o.flipVariations&&($e&&p==="start"&&H||$e&&p==="end"&&Z||!$e&&p==="start"&&X||!$e&&p==="end"&&be),Ie=!!o.flipVariationsByContent&&($e&&p==="start"&&Z||$e&&p==="end"&&H||!$e&&p==="start"&&be||!$e&&p==="end"&&X),Ne=Ce||Ie;(N||we||Ne)&&(n.flipped=!0,(N||we)&&(t=h[g+1]),Ne&&(p=getOppositeVariation(p)),n.placement=t+(p?"-"+p:""),n.offsets.popper=_extends$w({},n.offsets.popper,getPopperOffsets(n.instance.popper,n.offsets.reference,n.placement)),n=runModifiers(n.instance.modifiers,n,"flip"))}),n}function keepTogether(n){var o=n.offsets,e=o.popper,t=o.reference,c=n.placement.split("-")[0],p=Math.floor,h=["top","bottom"].indexOf(c)!==-1,y=h?"right":"bottom",g=h?"left":"top",$=h?"width":"height";return e[y]<p(t[g])&&(n.offsets.popper[g]=p(t[g])-e[$]),e[g]>p(t[y])&&(n.offsets.popper[g]=p(t[y])),n}function toValue(n,o,e,t){var c=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),p=+c[1],h=c[2];if(!p)return n;if(h.indexOf("%")===0){var y=void 0;switch(h){case"%p":y=e;break;case"%":case"%r":default:y=t}var g=getClientRect(y);return g[o]/100*p}else if(h==="vh"||h==="vw"){var $=void 0;return h==="vh"?$=Math.max(document.documentElement.clientHeight,window.innerHeight||0):$=Math.max(document.documentElement.clientWidth,window.innerWidth||0),$/100*p}else return p}function parseOffset(n,o,e,t){var c=[0,0],p=["right","left"].indexOf(t)!==-1,h=n.split(/(\+|\-)/).map(function(E){return E.trim()}),y=h.indexOf(find$1(h,function(E){return E.search(/,|\s/)!==-1}));h[y]&&h[y].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var g=/\s*,\s*|\s+/,$=y!==-1?[h.slice(0,y).concat([h[y].split(g)[0]]),[h[y].split(g)[1]].concat(h.slice(y+1))]:[h];return $=$.map(function(E,A){var N=(A===1?!p:p)?"height":"width",H=!1;return E.reduce(function(Z,X){return Z[Z.length-1]===""&&["+","-"].indexOf(X)!==-1?(Z[Z.length-1]=X,H=!0,Z):H?(Z[Z.length-1]+=X,H=!1,Z):Z.concat(X)},[]).map(function(Z){return toValue(Z,N,o,e)})}),$.forEach(function(E,A){E.forEach(function(N,H){isNumeric(N)&&(c[A]+=N*(E[H-1]==="-"?-1:1))})}),c}function offset(n,o){var e=o.offset,t=n.placement,c=n.offsets,p=c.popper,h=c.reference,y=t.split("-")[0],g=void 0;return isNumeric(+e)?g=[+e,0]:g=parseOffset(e,p,h,y),y==="left"?(p.top+=g[0],p.left-=g[1]):y==="right"?(p.top+=g[0],p.left+=g[1]):y==="top"?(p.left+=g[0],p.top-=g[1]):y==="bottom"&&(p.left+=g[0],p.top+=g[1]),n.popper=p,n}function preventOverflow(n,o){var e=o.boundariesElement||getOffsetParent(n.instance.popper);n.instance.reference===e&&(e=getOffsetParent(e));var t=getSupportedPropertyName("transform"),c=n.instance.popper.style,p=c.top,h=c.left,y=c[t];c.top="",c.left="",c[t]="";var g=getBoundaries(n.instance.popper,n.instance.reference,o.padding,e,n.positionFixed);c.top=p,c.left=h,c[t]=y,o.boundaries=g;var $=o.priority,E=n.offsets.popper,A={primary:function(H){var Z=E[H];return E[H]<g[H]&&!o.escapeWithReference&&(Z=Math.max(E[H],g[H])),defineProperty({},H,Z)},secondary:function(H){var Z=H==="right"?"left":"top",X=E[Z];return E[H]>g[H]&&!o.escapeWithReference&&(X=Math.min(E[Z],g[H]-(H==="right"?E.width:E.height))),defineProperty({},Z,X)}};return $.forEach(function(N){var H=["left","top"].indexOf(N)!==-1?"primary":"secondary";E=_extends$w({},E,A[H](N))}),n.offsets.popper=E,n}function shift(n){var o=n.placement,e=o.split("-")[0],t=o.split("-")[1];if(t){var c=n.offsets,p=c.reference,h=c.popper,y=["bottom","top"].indexOf(e)!==-1,g=y?"left":"top",$=y?"width":"height",E={start:defineProperty({},g,p[g]),end:defineProperty({},g,p[g]+p[$]-h[$])};n.offsets.popper=_extends$w({},h,E[t])}return n}function hide(n){if(!isModifierRequired(n.instance.modifiers,"hide","preventOverflow"))return n;var o=n.offsets.reference,e=find$1(n.instance.modifiers,function(t){return t.name==="preventOverflow"}).boundaries;if(o.bottom<e.top||o.left>e.right||o.top>e.bottom||o.right<e.left){if(n.hide===!0)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(n.hide===!1)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}function inner(n){var o=n.placement,e=o.split("-")[0],t=n.offsets,c=t.popper,p=t.reference,h=["left","right"].indexOf(e)!==-1,y=["top","left"].indexOf(e)===-1;return c[h?"left":"top"]=p[e]-(y?c[h?"width":"height"]:0),n.placement=getOppositePlacement(o),n.offsets.popper=getClientRect(c),n}var modifiers={shift:{order:100,enabled:!0,fn:shift},offset:{order:200,enabled:!0,fn:offset,offset:0},preventOverflow:{order:300,enabled:!0,fn:preventOverflow,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:keepTogether},arrow:{order:500,enabled:!0,fn:arrow,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:flip,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:inner},hide:{order:800,enabled:!0,fn:hide},computeStyle:{order:850,enabled:!0,fn:computeStyle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:void 0}},Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function n(){},onUpdate:function n(){},modifiers},Popper=function(){function n(o,e){var t=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};classCallCheck(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(t.update)},this.update=debounce$1(this.update.bind(this)),this.options=_extends$w({},n.Defaults,c),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(_extends$w({},n.Defaults.modifiers,c.modifiers)).forEach(function(h){t.options.modifiers[h]=_extends$w({},n.Defaults.modifiers[h]||{},c.modifiers?c.modifiers[h]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(h){return _extends$w({name:h},t.options.modifiers[h])}).sort(function(h,y){return h.order-y.order}),this.modifiers.forEach(function(h){h.enabled&&isFunction(h.onLoad)&&h.onLoad(t.reference,t.popper,t.options,h,t.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return createClass(n,[{key:"update",value:function(){return update.call(this)}},{key:"destroy",value:function(){return destroy.call(this)}},{key:"enableEventListeners",value:function(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function(){return disableEventListeners.call(this)}}]),n}();Popper.Utils=(typeof window<"u"?window:global).PopperUtils;Popper.placements=placements;Popper.Defaults=Defaults;function toPopperPlacement(n){return n.replace(/(Top|Left)$/,"-start").replace(/(Right|Bottom)$/,"-end")}function parsePopperOffset(n){return{top:Math.floor(n.top||0),left
46:Math.floor(n.left||0)}}var TETHER_PLACEMENT={auto:"auto"};function _typeof$h(n){"@babel/helpers - typeof";return _typeof$h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$h(n)}var _excluded$p=["modifiers"];function ownKeys$q(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$o(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$q(Object(e),!0).forEach(function(t){_defineProperty$v(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$q(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _objectWithoutProperties$r(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$r(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$r(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _classCallCheck$e(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$e(n,o,e){return o&&_defineProperties$e(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$e(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$f(n,o)}function _setPrototypeOf$f(n,o){return _setPrototypeOf$f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$f(n,o)}function _createSuper$e(n){var o=_isNativeReflectConstruct$e();return function(){var t=_getPrototypeOf$e(n),c;if(o){var p=_getPrototypeOf$e(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$e(this,c)}}function _possibleConstructorReturn$e(n,o){if(o&&(_typeof$h(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$f(n)}function _assertThisInitialized$f(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$e(n){return _getPrototypeOf$e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$e(n)}function _defineProperty$v(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var Tether=function(n){_inherits$e(e,n);var o=_createSuper$e(e);function e(){var t;_classCallCheck$e(this,e);for(var c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];return t=o.call.apply(o,[this].concat(p)),_defineProperty$v(_assertThisInitialized$f(t),"popper",void 0),_defineProperty$v(_assertThisInitialized$f(t),"popperHeight",0),_defineProperty$v(_assertThisInitialized$f(t),"popperWidth",0),_defineProperty$v(_assertThisInitialized$f(t),"anchorHeight",0),_defineProperty$v(_assertThisInitialized$f(t),"anchorWidth",0),_defineProperty$v(_assertThisInitialized$f(t),"state",{isMounted:!1}),_defineProperty$v(_assertThisInitialized$f(t),"onPopperUpdate",function(y){var g={popper:parsePopperOffset(y.offsets.popper),arrow:y.offsets.arrow?parsePopperOffset(y.offsets.arrow):{top:0,left:0}};t.props.onPopperUpdate(g,y)}),t}
46return _createClass$e(e,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"componentDidUpdate",value:function(c,p){if(this.props.anchorRef){var h=this.props.anchorRef.getBoundingClientRect(),y=h.height,g=h.width;(this.anchorHeight!==y||this.anchorWidth!==g)&&(this.anchorHeight=y,this.anchorWidth=g,this.popper&&this.popper.scheduleUpdate())}if(this.props.popperRef){var $=this.props.popperRef.getBoundingClientRect(),E=$.height,A=$.width;(this.popperHeight!==E||this.popperWidth!==A)&&(this.popperHeight=E,this.popperWidth=A,this.popper&&this.popper.scheduleUpdate()),this.state.isMounted!==p.isMounted&&this.props.anchorRef&&this.initializePopper()}}},{key:"componentWillUnmount",value:function(){this.destroyPopover()}},{key:"initializePopper",value:function(){var c=this.props,p=c.placement,h=c.popperOptions,y=h.modifiers,g=_objectWithoutProperties$r(h,_excluded$p);!this.props.anchorRef||!this.props.popperRef||(this.popper=new Popper(this.props.anchorRef,this.props.popperRef,_objectSpread$o({placement:toPopperPlacement(p),modifiers:_objectSpread$o({arrow:{element:this.props.arrowRef,enabled:!!this.props.arrowRef},computeStyle:{gpuAcceleration:!1},applyStyle:{enabled:!1},applyReactStyle:{enabled:!0,fn:this.onPopperUpdate,order:900},preventOverflow:{enabled:!0}},y)},g)))}},{key:"destroyPopover",value:function(){this.popper&&(this.popper.destroy(),delete this.popper)}},{key:"render",value:function(){return this.props.children||null}}]),e}(reactExports.Component);_defineProperty$v(Tether,"defaultProps",{anchorRef:null,onPopperUpdate:function n(){return null},placement:TETHER_PLACEMENT.auto,popperRef:null,popperOptions:{}});var BaseProvider=function n(o){var e=o.children,t=o.overrides,c=o.theme,p=o.zIndex;return reactExports.createElement(LayersManager,{zIndex:p,overrides:t},reactExports.createElement(UIDReset,{prefix:"bui"},reactExports.createElement(ThemeProvider$1,{theme:c},e)))};const createBaseUiThemePrimitives=(n,o)=>{const{colors:e,genericFonts:t}=o;return{...n,primaryFontFamily:t.bodyFont,primary100:e.primary,primary200:e.primary,primary300:e.primary,primary400:e.primary,primary500:e.primary,primary600:e.primary,primary700:e.primary,mono100:e.bgColor,mono200:e.secondaryBg,mono300:e.gray30,mono400:e.gray30,mono500:e.gray60,mono600:e.fadedText40,mono700:e.gray60,mono800:e.bodyText,mono900:e.bodyText,mono1000:e.black}},createBaseUiThemeOverrides=n=>{const{inSidebar:o,colors:e,genericFonts:t,fontSizes:c,lineHeights:p,radii:h}=n,y={fontFamily:t.bodyFont,fontSize:c.md,fontSizeSm:c.sm,fontWeight:"normal",lineHeight:p.base,lineHeightTight:p.tight},g=e.secondaryBg,$=o?e.secondaryBg:e.bgColor,E=o?e.bgColor:e.secondaryBg;
46return{borders:{radius100:h.default,radius200:h.default,radius300:h.default,radius400:h.default,radius500:h.default,useRoundedCorners:!0,buttonBorderRadiusMini:h.md,buttonBorderRadius:h.default,checkboxBorderRadius:`min(${h.md}, ${h.maxCheckbox})`,inputBorderRadiusMini:h.md,inputBorderRadius:h.default,popoverBorderRadius:h.default,surfaceBorderRadius:h.default,tagBorderRadius:h.md},typography:{font100:{},font150:{...y},font200:{},font250:{},font300:{...y},font350:{...y},font400:{...y},font450:{...y},font460:{...y},font470:{...y},font500:{...y},font600:{},LabelXSmall:{...y},LabelSmall:{...y},LabelMedium:{...y},LabelLarge:{...y},ParagraphSmall:{...y}},colors:{white:e.white,black:e.black,primary:e.primary,primaryA:e.primary,backgroundPrimary:e.bgColor,backgroundSecondary:g,backgroundTertiary:e.bgColor,borderOpaque:e.darkenedBgMix25,accent:transparentize(e.primary,.5),tagPrimarySolidBackground:e.primary,tagPrimaryFontDisabled:e.fadedText40,tagPrimaryOutlinedDisabled:e.transparent,borderSelected:e.primary,contentPrimary:e.bodyText,inputPlaceholder:e.fadedText60,tickFillDisabled:e.fadedText40,tickMarkFill:e.gray20,tickFillSelected:e.primary,datepickerBackground:$,calendarBackgroun
46d:$,calendarForeground:e.bodyText,calendarDayForegroundPseudoSelected:e.bodyText,calendarHeaderBackground:E,calendarHeaderBackgroundActive:E,calendarHeaderForeground:e.bodyText,calendarHeaderForegroundDisabled:e.gray40,calendarDayBackgroundSelected:e.primary,calendarDayBackgroundSelectedHighlighted:e.primary,calendarDayForegroundSelected:e.white,calendarDayForegroundSelectedHighlighted:e.white,calendarDayForegroundPseudoSelectedHighlighted:e.bodyText,menuFontHighlighted:e.bodyText,menuFontSelected:e.bodyText,modalCloseColor:e.bodyText,notificationInfoBackground:e.blueBackgroundColor,notificationInfoText:e.blueTextColor,notificationPositiveBackground:e.greenBackgroundColor,notificationPositiveText:e.greenTextColor,notificationWarningBackground:e.yellowBackgroundColor,notificationWarningText:e.yellowTextColor,notificationNegativeBackground:e.redBackgroundColor,notificationNegativeText:e.redTextColor,progressbarTrackFill:g,tickFill:e.lightenedBg05,tickMarkFillDisabled:e.lightenedBg05,menuFill:$,buttonDisabledFill:e.lightenedBg05,tickFillHover:g,inputFillDisabled:g,inputFillActive:g,toggleTrackFillDisabled:g,tickFillActive:g,sliderTrackFillDisabled:g,inputBorder:e.widgetBorderColor||g,inputFill:g,inputEnhanceFill:g,inputEnhancerFillDisabled:g,buttonDisabledSpinnerBackground:e.gray40,toggleTrackFill:e.gray40,sliderTrackFill:e.gray40,sliderHandleInnerFill:e.gray40,sliderHandleInnerFillDisabled:e.gray40}}},createBaseUiTheme=(n,o=primitives)=>createLightTheme(createBaseUiThemePrimitives(o,n),createBaseUiThemeOverrides(n)),computeDerivedColors=n=>{const{bodyText:o,secondaryBg:e,bgColor:t}=n,c=getLuminance(t)>.5,p=transparentize(o,.9),h=transparentize(o,.8),y=transparentize(o,.7),g=transparentize(o,.6),$=transparentize(o,.4),E=mix$1(t,e,.5),A=c?darken(E,.3):lighten(E,.6),N=transparentize(A,.75),H=transparentize(A,.85),Z=lighten(t,.025);return{fadedText05:p,fadedText10:h,fadedText20:y,fadedText40:g,fadedText60:$,bgMix:E,darkenedBgMix100:A,darkenedBgMix25:N,darkenedBgMix15:H,lightenedBg05:Z}};
46function _isLightBackground(n){return getLuminance(n)>.5}function hasLightBackgroundColor(n){return _isLightBackground(n.colors.bgColor)}const createEmotionColors=n=>{const o=computeDerivedColors(n),e=defaultCategoricalColorsArray(n),t=defaultSequentialColorsArray(n);return{...n,...o,link:n.blueTextColor,codeTextColor:n.greenTextColor,codeBackgroundColor:o.bgMix,borderColor:o.fadedText10,borderColorLight:o.fadedText05,dataframeBorderColor:o.fadedText05,dataframeHeaderBackgroundColor:o.bgMix,headingColor:n.bodyText,chartCategoricalColors:e,chartSequentialColors:t}};function getDividerColors(n){const{redColor:o,orangeColor:e,yellowColor:t,blueColor:c,greenColor:p,violetColor:h,grayColor:y}=n.colors;return{red:o,orange:e,yellow:t,blue:c,green:p,violet:h,gray:y,grey:y,rainbow:`linear-gradient(to right, ${o}, ${e}, ${t}, ${p}, ${c}, ${h})`}}function getMetricColor(n,o){switch(o){case Metric$1.MetricColor.RED:return n.colors.redColor;case Metric$1.MetricColor.GREEN:return n.colors.greenColor;default:return n.colors.grayColor}}
46function getMarkdownBgColors(n){const o=hasLightBackgroundColor(n),e=n.colors;return{redbg:e.redBackgroundColor,orangebg:e.orangeBackgroundColor,yellowbg:e.yellowBackgroundColor,bluebg:e.blueBackgroundColor,greenbg:e.greenBackgroundColor,violetbg:e.violetBackgroundColor,purplebg:transparentize(e[o?"purple90":"purple80"],o?.9:.7),graybg:e.grayBackgroundColor,primarybg:transparentize(e.primary,o?.9:.7)}}function getMetricBackgroundColor(n,o){switch(o){case Metric$1.MetricColor.RED:return n.colors.redBackgroundColor;case Metric$1.MetricColor.GREEN:return n.colors.greenBackgroundColor;default:return n.colors.grayBackgroundColor}}function getMarkdownTextColors(n){const o=hasLightBackgroundColor(n),e=n.colors,t=e.primary,c=e.redTextColor,p=e.orangeTextColor,h=e.yellowTextColor,y=e.blueTextColor,g=e.greenTextColor,$=e.violetTextColor,E=o?e.purple100:e.purple80,A=e.grayTextColor;return{red:c,orange:p,yellow:h,green:g,blue:y,violet:$,purple:E,gray:A,primary:t}}function getMetricTextColor(n,o){switch(o){case Metric$1.MetricColor.RED:return n.colors.redTextColor;case Metric$1.MetricColor.GREEN:return n.colors.greenTextColor;default:return n.colors.grayTextColor}}
46function getGray70(n){return hasLightBackgroundColor(n)?n.colors.gray70:n.colors.gray30}function getGray30(n){return hasLightBackgroundColor(n)?n.colors.gray30:n.colors.gray85}function getGray90(n){return hasLightBackgroundColor(n)?n.colors.gray90:n.colors.gray10}function getBlue80(n){return hasLightBackgroundColor(n)?n.colors.blue80:n.colors.blue40}function getBlueArrayAsc(n){return[n.blue10,n.blue20,n.blue30,n.blue40,n.blue50,n.blue60,n.blue70,n.blue80,n.blue90,n.blue100]}function getBlueArrayDesc(n){return[n.blue100,n.blue90,n.blue80,n.blue70,n.blue60,n.blue50,n.blue40,n.blue30,n.blue20,n.blue10]}function getDivergingColorsArray(n){const{colors:o}=n;return[o.red100,o.red90,o.red70,o.red50,o.red30,o.blue30,o.blue50,o.blue70,o.blue90,o.blue100]}function defaultSequentialColorsArray(n){return _isLightBackground(n.bgColor)?getBlueArrayAsc(n):getBlueArrayDesc(n)}function defaultCategoricalColorsArray(n){return _isLightBackground(n.bgColor)?[n.blue80,n.blue40,n.red80,n.red40,n.blueGreen80,n.green40,n.orange80,n.orange50,n.purple80,n.gray40]:[n.blue40,n.blue80,n.red40,n.red80,n.green40,n.blueGreen80,n.orange50,n.orange80,n.purple80,n.gray40]}
46function getDecreasingRed(n){return hasLightBackgroundColor(n)?n.colors.red80:n.colors.red40}function getIncreasingGreen(n){return hasLightBackgroundColor(n)?n.colors.blueGreen80:n.colors.green40}const breakpoints={hideWidgetDetails:180,hideNumberInputControls:120,sm:"576px",columns:"640px",md:"768px"},colors={transparent:"transparent",black:"#000000",white:"#ffffff",gray10:"#fafafa",gray20:"#f0f2f6",gray30:"#e6eaf1",gray40:"#d5dae5",gray50:"#bfc5d3",gray60:"#a3a8b8",gray70:"#808495",gray80:"#555867",gray85:"#31333F",gray90:"#262730",gray100:"#0e1117",red10:"#fff0f0",red20:"#ffdede",red30:"#ffc7c7",red40:"#ffabab",red50:"#ff8c8c",red60:"#ff6c6c",red70:"#ff4b4b",red80:"#ff2b2b",red90:"#bd4043",red100:"#7d353b",orange10:"#fffae8",orange20:"#fff6d0",orange30:"#ffecb0",orange40:"#ffe08e",orange50:"#ffd16a",orange60:"#ffbd45",orange70:"#ffa421",orange80:"#ff8700",orange90:"#ed6f13",orange95:"#e2660c",orange100:"#d95a00",yellow10:"#ffffe1",yellow20:"#ffffc2",yellow30:"#ffffa0",yellow40:"#ffff7d",yellow50:"#ffff59",yellow60:"#fff835",yellow65:"#ffff12",yellow70:"#ffe312",yellow80:"#faca2b",yellow90:"#edbb16",yellow100:"#dea816",yellow110:"#916e10",yellow115:"#926c05",green10:"#dffde9",green20:"#c0fcd3",green30:"#9ef6bb",green40:"#7defa1",green50:"#5ce488",green60:"#3dd56d",green70:"#21c354",green80:"#09ab3b",green90:"#158237",green100:"#177233",blueGreen10:"#dcfffb",blueGreen20:"#bafff7",blueGreen30:"#93ffee",blueGreen40:"#6bfde3",blueGreen50:"#45f4d5",blueGreen60:"#20e7c5",blueGreen70:"#00d4b1",blueGreen80:"#29b09d",blueGreen90:"#2c867c",blueGreen100:"#246e69",lightBlue10:"#e0feff",lightBlue20:"#bffdff",lightBlue30:"#9af8ff",lightBlue40:"#73efff",lightBlue50:"#4be4ff",lightBlue60:"#24d4ff",lightBlue70:"#00c0f2",lightBlue80:"#00a4d4",lightBlue90:"#0d8cb5",lightBlue100:"#15799e",blue10:"#e4f5ff",blue20:"#c7ebff",blue30:"#a6dcff",blue40:"#83c9ff",blue50:"#60b4ff",blue60:"#3d9df3",blue65:"#1c83ff",blue70:"#1c83e1",blue80:"#0068c9",blue90:"#0054a3",blue100:"#004280",purple10:"#f5ebff",purple20:"#ebd6ff",purple30:"#dbbbff",purple40:"#c89dff",purple50:"#b27eff",purple60:"#9a5dff",purple70:"#803df5",purple80:"#6d3fc0",purple90:"#583f84",purple100:"#3f3163"},iconSizes={xs:"0.5rem",sm:"0.75rem",md:"0.9rem",base:"1rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.8rem",threeXL:"2.3rem"},radii={md:"0.25rem",default:"0.5rem",xl:"0.75rem",xxl:"1rem",button:"0.5rem",chatInput:"1.25rem",full:"9999px",maxCheckbox:"0.35rem"},sizes={full:"100%",headerHeight:"3.75rem",fullScreenHeaderHeight:"2.875rem",sidebarTopSpace:"6rem",toastWidth:"21rem",contentMaxWidth:"736px",maxChartTooltipWidth:"30rem",checkbox:"1rem",borderWidth:"1px",smallElementHeight:"1.5rem",minElementHeight:"2.5rem",largestElementHeight:"4.25rem",smallLogoHeight:"1.25rem",defaultLogoHeight:"1.5rem",largeLogoHeight:"2rem",sliderThumb:"0.75rem",wideSidePadding:"5rem",headerDecorationHeight:"0.125rem",appRunningMen:"1.6rem",appStatusMaxWidth:"20rem",spinnerSize:"1.375rem",spinnerThickness:"0.125rem",tabHeight:"2.5rem",minPopupWidth:"20rem",maxTooltipHeight:"18.75rem",chatAvatarSize:"2rem",clearIconSize:"1.5em",numberInputControlsWidth:"2rem",emptyDropdownHeight:"5.625rem",dropdownItemHeight:"2.5rem",maxDropdownHeight:"18.75rem",appDefaultBottomPadding:"3.5rem",defaultMapHeight:"31.25rem",defaultChartHeight:"21.875rem",defaultChartWidth:"25rem",minMenuWidth:"8rem",minChatInputFileListHeight:"3rem",headerItemHeight:"1.75rem",headerRightContentMaxWidth:"12.5rem"},spacing={px:"1px",none:"0",threeXS:"0.125rem",twoXS:"0.25rem",xs:"0.375rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.25rem",twoXL:"1.5rem",threeXL:"2rem",fourXL:"4rem"},fonts={sansSerif:'"Source Sans", sans-serif',monospace:'"Source Code Pro", monospace',serif:'"Source Serif", serif',materialIcons:"Material Symbols Rounded"},genericFonts={bodyFont:fonts.sansSerif,codeFont:fonts.monospace,headingFont:fonts.sansSerif,iconFont:fonts.materialIcons},fontSizes={baseFontSize:16,twoSm:"0.75rem",sm:"0.875rem",md:"1rem",mdLg:"1.125rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.75rem",threeXL:"2.25rem",fourXL:"2.75rem",codeFontSize:"0.875rem",inlineCodeFontSize:"0.75em",h1FontSize:"2.75rem",h2FontSize:"2.25rem",h3FontSize:"1.75rem",h4FontSize:"1.5rem",h5FontSize:"1.25rem",h6FontSize:"1rem"},fontWeights={normal:400,semiBold:500,bold:600,extrabold:700,code:400,codeBold:600,codeExtraBold:700,h1FontWeight:700,h2FontWeight:600,h3FontWeight:600,h4FontWeight:600,h5FontWeight:600,h6FontWeight:600}
46,lineHeights={none:1,headings:1.2,tight:1.25,inputWidget:1.4,small:1.5,base:1.6,menuItem:2},sidebar=100,menuButton=sidebar+10,balloons=1e6,header=balloons-10,bottom=sidebar-1,sidebarMobile=balloons-5,fullscreenWrapper=balloons+50,headerDecoration=balloons-1,popup=fullscreenWrapper+10,tablePortal=fullscreenWrapper+60,cacheSpinner=sidebar+1,toast=popup+1,zIndices={hide:-1,auto:"auto",base:0,priority:1,sidebar,menuButton,balloons,header,sidebarMobile,popup,fullscreenWrapper,tablePortal,bottom,cacheSpinner,toast,headerDecoration},requiredThemeColors={bgColor:colors.white,secondaryBg:colors.gray20,bodyText:colors.gray85,primary:colors.red70,secondary:colors.blue70,redColor:colors.red70,orangeColor:colors.orange70,yellowColor:colors.yellow80,blueColor:colors.blue70,greenColor:colors.green70,violetColor:colors.purple70,grayColor:colors.gray60,redBackgroundColor:transparentize(colors.red80,.9),orangeBackgroundColor:transparentize(colors.orange70,.9),yellowBackgroundColor:transparentize(colors.yellow65,.9),blueBackgroundColor:transparentize(colors.blue65,.9),greenBackgroundColor:transparentize(colors.green70,.9),violetBackgroundColor:transparentize(colors.purple60,.9),grayBackgroundColor:transparentize(colors.gray85,.9),redTextColor:colors.red90,orangeTextColor:colors.orange95,yellowTextColor:colors.yellow115,blueTextColor:colors.blue90,greenTextColor:colors.green90,violetTextColor:colors.purple90,grayTextColor:transparentize(colors.gray85,.4)},optionalThemeColors={},themeColors={...colors,...requiredThemeColors,...optionalThemeColors},emotionBaseTheme={inSidebar:!1,showSidebarBorder:!1,linkUnderline:!0,breakpoints,colors:createEmotionColors(themeColors),fonts,fontSizes,fontWeights,genericFonts,iconSizes,lineHeights,radii,sizes,spacing,zIndices},genericColors$1={...colors,bgColor:colors.gray100,bodyText:colors.gray10,primary:colors.red70,secondaryBg:colors.gray90,redColor:colors.red80,orangeColor:colors.orange80,yellowColor:colors.yellow70,blueColor:colors.blue80,greenColor:colors.green80,violetColor:colors.purple70,grayColor:colors.gray80,redBackgroundColor:transparentize(colors.red60,.8),orangeBackgroundColor:transparentize(colors.orange80,.8),yellowBackgroundColor:transparentize(colors.yellow65,.8),blueBackgroundColor:transparentize(colors.blue60,.8),greenBackgroundColor:transparentize(colors.green60,.8),violetBackgroundColor:transparentize(colors.purple60,.8),grayBackgroundColor:transparentize(colors.gray70,.8),redTextColor:colors.red60,orangeTextColor:colors.orange60,yellowTextColor:colors.yellow20,blueTextColor:colors.blue60,greenTextColor:colors.green50,violetTextColor:colors.purple50,grayTextColor:transparentize(colors.gray10,.4)},emotionDarkTheme={...emotionBaseTheme,inSidebar:!1,colors:createEmotionColors({...emotionBaseTheme.colors,...genericColors$1})},genericColors={...colors},emotionLightTheme={...emotionBaseTheme,inSidebar:!1,colors:createEmotionColors({...emotionBaseTheme.colors,...genericColors})},baseuiLightTheme=createBaseUiTheme(emotionLightTheme,primitives),baseuiDarkTheme=createBaseUiTheme(emotionDarkTheme,primitives$1),globalStyles=n=>css("html{font-size:",n.fontSizes.baseFontSize,"px;}@media print{html{height:100%;print-color-adjust:exact;-webkit-print-color-adjust:exact;}}*,*::before,*::after{box-sizing:border-box;}body{margin:0;font-family:",n.genericFonts.bodyFont,";font-weight:",n.fontWeights.normal,";line-height:",n.lineHeights.base,";color:",n.colors.bodyText,";background-color:",n.colors.bgColor,";-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:",transparentize(n.colors.black,1),';-webkit-font-smoothing:auto;}body.embedded{overflow:hidden;}body.embedded:hover{overflow:auto;}[tabindex="-1"]:focus:not(:focus-visible){outline:0 !important;}p,ol,ul,dl{margin:0 0 1rem 0;padding:0;font-size:1rem;font-weight:',n.fontWeights.normal,';}ol ol,ul ul,ol ul,ul ol{margin-bottom:0;}a:not([href]):not([class]){&,&:hover{color:inherit;text-decoration:none;}}img,svg{vertical-align:middle;}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit;font-size:inherit;}button,input{overflow:visible;}button,[role="button"]{&:not(:disabled){cursor:pointer;}}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button;}[hidden]{display:none !important;}@supports (scrollbar-color:transparent transparent){*{scrollbar-width:thin;scrollbar-color:transparent transparent;}*:hover{scrollbar-color:',n.colors.fadedText40," transparent;}}@supports not (scrollbar-color:transparent transparent){::-webkit-scrollbar{background:transparent;border-radius:",n.radii.full,";height:6px;width:6px;}::-webkit-scrollbar:active{background:",n.colors.fadedText10,";}:hover::-webkit-scrollbar-thumb:vertical,:hover::-webkit-scrollbar-thumb:horizontal{background:",n.colors.fadedText40,";border-radius:",n.radii.full,";}}"),baseTheme={name:"base",emotion:emotionBaseTheme,basewebTheme:baseuiLightTheme,primitives},darkTheme={name:"Dark",emotion:emotionDarkTheme,basewebTheme:baseuiDarkTheme,primitives:primitives$1},lightTheme={name:"Light",emotion:emotionLightTheme,basewebTheme:baseuiLightTheme,primitives},STALE_TRANSITION_PARAMS="1s ease-in 0.5s",STALE_STYLES={opacity:.33,transition:`opacity ${STALE_TRANSITION_PARAMS}`},CACHED_THEME_VERSION=1,CACHED_THEME_BASE_KEY=`stActiveTheme-${window.location.pathname}`,LocalStore={CACHED_THEME_VERSION,CACHED_THEME_BASE_KEY,ACTIVE_THEME:`${CACHED_THEME_BASE_KEY}-v${CACHED_THEME_VERSION}`},AUTO_THEME_NAME="Use system setting",CUSTOM_THEME_NAME="Custom Theme",CUSTOM_THEME_LIGHT_NAME="Custom Theme Light",CUSTOM_THEME_DARK_NAME="Custom Theme Dark",CUSTOM_THEME_AUTO_NAME="Custom Theme Auto",LOG$h=loglevelExports.getLogger("theme:utils");function sortThemeInputKeys(n){if(n==null)return n;if(Array.isArray(n))return n.map(o=>sortThemeInputKeys(o));if(typeof n=="object"){const o={};
46return Object.keys(n).sort().forEach(e=>{o[e]=sortThemeInputKeys(n[e])}),o}return n}function mergeTheme(n,o){if(o&&isObject$1(o)){const e=new CustomThemeConfig(o);return createTheme(n.name,e,n)}return n}const getMergedLightTheme=once(()=>mergeTheme(lightTheme,window.__streamlit?.LIGHT_THEME)),getMergedDarkTheme=once(()=>mergeTheme(darkTheme,window.__streamlit?.DARK_THEME)),getSystemThemePreference=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",getSystemTheme=()=>getSystemThemePreference()==="dark"?getMergedDarkTheme():getMergedLightTheme(),createAutoTheme=()=>({...getSystemTheme(),name:AUTO_THEME_NAME}),createPresetThemes=()=>[createAutoTheme(),getMergedLightTheme(),getMergedDarkTheme()],isPresetTheme=n=>createPresetThemes().map(e=>e.name).includes(n.name),bgColorToBaseString=n=>n===void 0||getLuminance(n)>.5?"light":"dark",isColor=n=>{const o=new Option().style;return o.color=n,o.color!==""},roundFontSizeToNearestEighth=n=>Math.round(n*8)/8,parseFont=(n,o=fonts.sansSerif)=>{const e=n.trim();if(!e)return o;const t={"sans-serif":fonts.sansSerif,serif:fonts.serif,monospace:fonts.monospace},c=e.toLowerCase().replaceAll(" ","-");return c in t?t[c]:`${e}, ${o}`},parseColor=(n,o,e=!1)=>{if(isColor(n))return n;if(isColor(`#${n}`))return`#${n}`;if(o.toLowerCase().includes("color")){const c=e?"theme.sidebar":"theme";LOG$h.warn(`Invalid color passed for ${o} in ${c}: "${n}"`)}},resolveBgColor=(n,o,e,t)=>n||(o?transparentize(o,t?.9:.8):e),resolveTextColor=(n,o,e,t)=>n||(o?t?darken(o,.15):lighten(o,.15):e),setBackgroundColors=(n,o)=>{const e={...n},t={redBackgroundColor:{main:o.redColor,background:o.redBackgroundColor},orangeBackgroundColor:{main:o.orangeColor,background:o.orangeBackgroundColor},yellowBackgroundColor:{main:o.yellowColor,background:o.yellowBackgroundColor},blueBackgroundColor:{main:o.blueColor,background:o.blueBackgroundColor},greenBackgroundColor:{main:o.greenColor,background:o.greenBackgroundColor},violetBackgroundColor:{main:o.violetColor,background:o.violetBackgroundColor},grayBackgroundColor:{main:o.grayColor,background:o.grayBackgroundColor}},c=getLuminance(e.bgColor)>.5;return Object.entries(t).forEach(([p,{main:h,background:y}])=>{const g=p;e[g]=resolveBgColor(y,h,n[g],c)}),e},setTextColors=(n,o)=>{const e={...n},t={redTextColor:{main:o.redColor,text:o.redTextColor},orangeTextColor:{main:o.orangeColor,text:o.orangeTextColor},yellowTextColor:{main:o.yellowColor,text:o.yellowTextColor},blueTextColor:{main:o.blueColor,text:o.blueTextColor},greenTextColor:{main:o.greenColor,text:o.greenTextColor},violetTextColor:{main:o.violetColor,text:o.violetTextColor},grayTextColor:{main:o.grayColor,text:o.grayTextColor}},c=getLuminance(e.bgColor)>.5;return Object.entries(t).forEach(([p,{main:h,text:y}])=>{const g=p;e[g]=resolveTextColor(y,h,n[g],c)}),e},parseRadius=n=>{let o="rem",e;const t=n.trim().toLowerCase();return t==="none"?e=0:t==="small"?e=.35:t==="medium"?e=.5:t==="large"?e=1:t==="full"?e=1.4:t.endsWith("rem")?e=parseFloat(t):t.endsWith("px")?(e=parseFloat(t),o="px"):isNaN(parseFloat(t))||(e=parseFloat(t),o="px"),[e,o]},parseFontSize=(n,o,e)=>{const t=e?"theme.sidebar":"theme";if(typeof o=="string"){const c=o.trim().toLowerCase(),p=parseFloat(c);if(p&&(c.endsWith("rem")||c.endsWith("px")))return c;if(p.toString()===c)return`${c}px`}LOG$h.warn(`Invalid size passed for ${n} in ${t}: ${o}. Falling back to default ${n}.`)},isValidFontWeight=(n,o,e,t,c)=>{const p=c?"theme.sidebar":"theme";if(notNullOrUndefined(o)){const h=Number.isInteger(o),y=o%100===0,g=o>=e&&o<=t;return!h||!y||!g?(LOG$h.warn(`Invalid ${n}: ${o} in ${p}. The ${n} must be an integer ${e}-${t}, and an increment of 100. Falling back to default font weight.`),!1):!0}return!1},convertHeadingFontSizeToRem=(n,o,e,t)=>{const c=parseFontSize(n,o,t);if(c?.endsWith("rem"))return c;if(c?.endsWith("px"))return`${parseFloat(c)/e}rem`},setHeadingFontSizes=(n,o,e,t)=>{const c={...n};return t&&t.forEach((p,h)=>{const y=`h${h+1}FontSize`,g=convertHeadingFontSizeToRem(`${y} in headingFontSizes`,p,e,o);g&&(c[y]=g)}),c},setFontWeights=(n,o,e,t,c)=>{const p={...n,h1FontWeight:o?600:n.h1FontWeight};return e&&isValidFontWeight("baseFontWeight",e,100,600)&&(p.normal=e,p.semiBold=e+100,p.bold=e+200,p.extrabold=e+300,p.code=e,p.codeBold=e+200,p.codeExtraBold=e+300),t&&isValidFontWeight("codeFontWeight",t,100,600)&&(p.code=t,p.codeBold=t+200,p.codeExtraBold=t+300),c&&c.forEac
46h((h,y)=>{const g=`h${y+1}FontWeight`;isValidFontWeight(`${g} in headingFontWeights`,h,100,900,o)&&(p[g]=h)}),p},validateChartColors=(n,o)=>o.map(e=>parseColor(e,n)).filter(e=>e!==void 0),createEmotionTheme=(n,o=baseTheme)=>{const{colors:e,genericFonts:t,inSidebar:c}=o.emotion,{baseFontSize:p,baseFontWeight:h,baseRadius:y,buttonRadius:g,codeFontSize:$,codeFontWeight:E,showWidgetBorder:A,headingFont:N,headingFontSizes:H,headingFontWeights:Z,bodyFont:X,codeFont:be,showSidebarBorder:we,linkUnderline:$e,chartCategoricalColors:Ce,chartSequentialColors:Ie,...Ne}=n,Fe=Object.entries(Ne).reduce((pt,[wt,Ft])=>{const Ht=parseColor(Ft,wt,c);return Ht&&(pt[wt]=Ht),pt},{}),{secondaryBackgroundColor:Be,backgroundColor:Ge,primaryColor:je,textColor:De,dataframeBorderColor:Ue,dataframeHeaderBackgroundColor:Je,widgetBorderColor:Xe,borderColor:Ke,linkColor:ze,codeTextColor:nt,codeBackgroundColor:ct,redColor:at,orangeColor:dt,yellowColor:Me,blueColor:We,greenColor:tt,violetColor:Ve,grayColor:vt}=Fe,xt={...e,primary:je??e.primary,bodyText:De??e.bodyText,secondaryBg:Be??e.secondaryBg,bgColor:Ge??e.bgColor,redColor:at??e.redColor,orangeColor:dt??e.orangeColor,yellowColor:Me??e.yellowColor,blueColor:We??e.blueColor,greenColor:tt??e.greenColor,violetColor:Ve??e.violetColor,grayColor:vt??e.grayColor,secondary:je??e.primary},Qe={colors:{...createEmotionColors(xt)},showSidebarBorder:we??o.emotion.showSidebarBorder,linkUnderline:$e??o.emotion.linkUnderline,radii:{...o.emotion.radii},fontSizes:{...o.emotion.fontSizes},fontWeights:{...o.emotion.fontWeights}};if(Qe.colors.codeBackgroundColor=ct??e.codeBackgroundColor,Qe.colors.dataframeHeaderBackgroundColor=Je??e.dataframeHeaderBackgroundColor,notNullOrUndefined(Ke)){Qe.colors.borderColor=Ke;const pt=transparentize(Ke,.55);Qe.colors.borderColorLight=pt,Qe.colors.dataframeBorderColor=pt}if(notNullOrUndefined(Ue)&&(Qe.colors.dataframeBorderColor=Ue),(A||Xe)&&(Qe.colors.widgetBorderColor=Xe||Qe.colors.borderColor),Qe.colors=setBackgroundColors(Qe.colors,Fe),Qe.colors=setTextColors(Qe.colors,Fe),Qe.colors.link=ze??Qe.colors.blueTextColor,Qe.colors.codeTextColor=nt??Qe.colors.greenTextColor,notNullOrUndefined(Ce)&&Ce.length>0){const pt=validateChartColors("chartCategoricalColors",Ce);pt.length>0&&(Qe.colors.chartCategoricalColors=pt)}if(notNullOrUndefined(Ie)&&Ie.length>0){const pt=validateChartColors("chartSequentialColors",Ie);pt.length===10?Qe.colors.chartSequentialColors=pt:LOG$h.warn(`Invalid chartSequentialColors: ${Ie.toString()}. Falling back to default chartSequentialColors.`)}if(notNullOrUndefined(y)){const[pt,wt]=parseRadius(y);if(notNullOrUndefined(pt)&&!isNaN(pt)){const Ft=addCssUnit(pt,wt);Qe.radii.default=Ft,Qe.radii.button=Ft,Qe.radii.md=addCssUnit(roundToTwoDecimals(pt*.5),wt),Qe.radii.xl=addCssUnit(roundToTwoDecimals(pt*1.5),wt),Qe.radii.xxl=addCssUnit(roundToTwoDecimals(pt*2),wt)}else LOG$h.warn(`Invalid base radius: ${y}. Falling back to default base radius.`)}if(notNullOrUndefined(g)){const[pt,wt]=parseRadius(g);notNullOrUndefined(pt)&&!isNaN(pt)?Qe.radii.button=addCssUnit(pt,wt):LOG$h.warn(`Invalid button radius: ${g}. Falling back to default button radius.`)}if(p&&p>0&&(Qe.fontSizes.baseFontSize=p),$){const pt=parseFontSize("codeFontSize",$,c);pt&&(Qe.fontSizes.codeFontSize=pt)}Qe.fontSizes=setHeadingFontSizes(Qe.fontSizes,c,Qe.fontSizes.baseFontSize,H),Qe.fontWeights=setFontWeights(o.emotion.fontWeights,c,h,E,Z);const St={...t,bodyFont:X?parseFont(X,fonts.sansSerif):t.bodyFont,codeFont:be?parseFont(be,fonts.monospace):t.codeFont,headingFont:N?parseFont(N,fonts.sansSerif):t.headingFont};return X&&!N&&(St.headingFont=parseFont(X,fonts.sansSerif)),{...o.emotion,genericFonts:St,...Qe}},toThemeInput=n=>{const{colors:o}=n;return{primaryColor:o.primary,backgroundColor:o.bgColor,secondaryBackgroundColor:o.secondaryBg,textColor:o.bodyText,bodyFont:n.genericFonts.bodyFont}},toExportedTheme=n=>{const{colors:o}=n,e=toThemeInput(n);return{primaryColor:e.primaryColor,backgroundColor:e.backgroundColor,secondaryBackgroundColor:e.secondaryBackgroundColor,textColor:e.textColor,bodyFont:e.bodyFont,base:bgColorToBaseString(e.backgroundColor),...computeDerivedColors(o)}},completeThemeInput=(n,o)=>new CustomThemeConfig({...toThemeInput(o.emotion),...n}),createTheme=(n,o,e,t=!1)=>{let c;e?c=completeThemeInput(o,e):o.base===CustomThemeConfig.BaseTheme.DARK?c=completeThemeInput(o,darkTheme):c=completeThemeInput(o,lightTheme);const p=c.backgroundColor,h=merge$1(cloneDeep(e||(getLuminance(p)>.5?lightTheme:darkTheme)),{emotion:{inSidebar:t}}),y=createEmotionTheme(c,h),g=cloneDeep(createBaseUiTheme(y,h.primitives));return{...h,name:n,emotion:y,basewebTheme:g,themeInput:o}},getCachedTheme=()=>{if(!localStorageAvailable())return null;const n=window.localStorage.getItem(LocalStore.ACTIVE_THEME);if(!n)return null;const{name:o,themeInput:e}=JSON.parse(n);switch(o){case lightTheme.name:return getMergedLightTheme();case darkTheme.name:return getMergedDarkTheme();case CUSTOM_THEME_LIGHT_NAME:return{...createTheme(o,e),displayName:"Light"};case CUSTOM_THEME_DARK_NAME:return{...createTheme(o,e),displayName:"Dark"};default:return createTheme(o,e)}},deleteOldCachedThemes=()=>{const{CACHED_THEME_VERSION:n,CACHED_THEME_BASE_KEY:o}=LocalStore,{localStorage:e}=window;e.removeItem("stActiveTheme"),e.removeItem(o);for(let t=1;t<=n;t++)e.removeItem(`${o}-v${t}`)},setCachedTheme=n=>{if(!localStorageAvailable()||(deleteOldCachedThemes(),isLightThemeInQueryParams()||isDarkThemeInQueryParams()))return;const o={name:n.name,...!isPresetTheme(n)&&{themeInput:toThemeInput(n.emotion)}};window.localStorage.setItem(LocalStore.ACTIVE_THEME,JSON.stringify(o))},removeCachedTheme=()=>{localStorageAvailable()&&window.localStorage.removeItem(LocalStore.ACTIVE_THEME)},getHostSpecifiedTheme=()=>isLightThemeInQueryParams()?getMergedLightTheme():isDarkThemeInQueryParams()?getMergedDarkTheme():createAutoTheme(),getDefaultTheme=()=>{const n=getCachedTheme();return n&&n.name!==AUTO_THEME_NAME?n:getHostSpecifiedTheme()},whiteSpace=/\s+/;function computeSpacingStyle(n,o){return n===""?"":n.split(whiteSpace).map(e=>e==="0"?o.spacing.none:e in o.spacing?o.spacing[e]:(LOG$h.error(`Invalid spacing value: ${e}`),o.spacing.none)).join(" ")}function addCssUnit(n,o){return`${n}${o}`}function roundToTwoDecimals(n){return parseFloat(n.toFixed(2))}function blend(n,o){if(o===void 0)return n;const[e,t,c,p]=parseToRgba(n);if(p===1)return n;const[h,y,g,$]=parseToRgba(o),E=p+$*(1-p),A=Math.round((p*e+$*h*(1-p))/E),N=Math.round((p*t+$*y*(1-p))/E),H=Math.round((p*c+$*g*(1-
46p))/E);return toHex(`rgba(${A}, ${N}, ${H}, ${E})`)}const convertRemToPx=n=>parseFloat(n.replace(/rem$/,""))*(parseFloat(getComputedStyle(document.documentElement).fontSize)||16),skipProtobufDefaults=(n,o)=>{if(o===""||o===null||Array.isArray(o)&&o.length===0)return n},handleSectionInheritance=(n,o)=>{const e=o==="light",t=e?CustomThemeConfig.BaseTheme.LIGHT:CustomThemeConfig.BaseTheme.DARK,{light:c,dark:p,sidebar:h,...y}=n,g=e?c:p,{sidebar:$,...E}=g||{},A=mergeWith({},y,E,{base:t},skipProtobufDefaults);return(h||$)&&(A.sidebar=mergeWith({},h,$,skipProtobufDefaults)),A},hasThemeSectionConfigs=n=>{if(!n)return!1;const o=e=>e==null?!1:Array.isArray(e)?e.length>0:typeof e=="object"?Object.values(e).some(o):!0;return Object.values(n).some(o)},createCustomThemes=n=>{const o=hasThemeSectionConfigs(n.light),e=hasThemeSectionConfigs(n.dark),t=[];if(o||e){const c=handleSectionInheritance(n,"light"),p={...createTheme(CUSTOM_THEME_LIGHT_NAME,c),displayName:"Light"},h=handleSectionInheritance(n,"dark"),y={...createTheme(CUSTOM_THEME_DARK_NAME,h),displayName:"Dark"},$={...getSystemThemePreference()==="dark"?y:p,displayName:AUTO_THEME_NAME,name:CUSTOM_THEME_AUTO_NAME};t.push(p,y,$)}else{const c=createTheme(CUSTOM_THEME_NAME,n);t.push(c)}return t},setSidebarHeadingFontSizes=n=>merge$1([],["1.5rem","1.25rem","1.125rem","1rem","0.875rem","0.75rem"],n||[]),createSidebarTheme=n=>{const o=n.themeInput?.sidebar,{bgColor:e,secondaryBg:t}=n.emotion.colors,c=o?.backgroundColor||t,p=o?.secondaryBackgroundColor||e,h=setSidebarHeadingFontSizes(o?.headingFontSizes);let y=getLuminance(c)>.5?CustomThemeConfig.BaseTheme.LIGHT:CustomThemeConfig.BaseTheme.DARK;n.name===CUSTOM_THEME_LIGHT_NAME?y=CustomThemeConfig.BaseTheme.LIGHT:n.name===CUSTOM_THEME_DARK_NAME&&(y=CustomThemeConfig.BaseTheme.DARK);const g=mergeWith({},n.themeInput,o,{base:y,backgroundColor:c,secondaryBackgroundColor:p,headingFontSizes:h},skipProtobufDefaults);return createTheme("Sidebar",g,void 0,!0)},THEME_MAPPING={[lightTheme.name]:CUSTOM_THEME_LIGHT_NAME,[darkTheme.name]:CUSTOM_THEME_DARK_NAME,[CUSTOM_THEME_LIGHT_NAME]:lightTheme.name,[CUSTOM_THEME_DARK_NAME]:darkTheme.name},mapCachedThemeToAvailableTheme=(n,o)=>{if(!n)return null;const e=o.find(c=>c.name===n.name);if(e)return e;const t=THEME_MAPPING[n.name];return t?o.find(c=>c.name===t)??null:null},isPositiveNumber=n=>typeof n=="number"&&n>=0&&!isNaN(n),isNonZeroPositiveNumber=n=>typeof n=="number"&&n>0&&!isNaN(n),getWidth=(n,o)=>{if(o?.useContainerWidth)return{type:"stretch"};const e=n.widthConfig?.useStretch||o?.widthConfig?.useStretch,t=n?.widthConfig?.useContent||o?.widthConfig?.useContent,c=n?.widthConfig?.pixelWidth||o?.widthConfig?.pixelWidth||n.widthConfig?.pixelWidth===0,p=n.widthConfig?.remWidth;return e?{type:"stretch"}:t?{type:"content"}:p&&isPositiveNumber(n.widthConfig?.remWidth)?{type:"rem",rem:n.widthConfig.remWidth}:c&&isPositiveNumber(n.widthConfig?.pixelWidth)?{type:"pixel",pixels:n.widthConfig.pixelWidth}:c&&isPositiveNumber(o?.widthConfig?.pixelWidth)?{type:"pixel",pixels:o.widthConfig.pixelWidth}:isNonZeroPositiveNumber(o?.width)&&!n.widthConfig?{type:"pixel",pixels:o.width}:{type:"auto"}},getHeight=(n,o)=>{const e=!!n.heightConfig?.useStretch,t=!!n.heightConfig?.useContent,c=!!n.heightConfig?.pixelHeight||n.heightConfig?.pixelHeight===0,p=n.heightConfig?.remHeight;return e?{type:"stretch"}:t?{type:"content"}:p&&isPositiveNumber(n.heightConfig?.remHeight)?{type:"rem",rem:n.heightConfig.remHeight}:c&&isPositiveNumber(n.heightConfig?.pixelHeight)?{type:"pixel",pixels:n.heightConfig.pixelHeight}:isNonZeroPositiveNumber(o?.height)&&!n.heightConfig?{type:"pixel",pixels:o.height}:{type:"auto"}},getFlex=(n,o,e,t)=>{if(e===Direction.HORIZONTAL)switch(n.type){case"pixel":return`0 0 ${n.pixels}px`;case"rem":return`0 0 ${n.rem}rem`;case"content":return"0 0 fit-content";case"stretch":return`1 1 ${t??"fit-content"}`;case"auto":return;default:assertNever(n)}else if(e===Direction.VERTICAL)switch(o.type){case"pixel":return`0 0 ${o.pixels}px`;case"rem":return`0 0 ${o.rem}rem`;case"content":case"stretch":case"auto":return;default:assertNever(o)}},getDirection=n=>n?.direction,calculateMinWidthWithParentConstraint=(n,o,e=32)=>{if(o===void 0||n===void 0||n==="fit-content")return n;const t=convertRemToPx(n);return o<t&&o>e?`${o-e}px`:n},useLayoutStyles=({element:n,subElement:o,styleOverrides:e,minStretchBehavior:t})=>{const c=reactExports.useContext(FlexContext);return reactExports.useMemo(()=>
46{if(!n)return{width:"auto",height:"auto",overflow:"visible"};const h=getWidth(n,o);let y,g;switch(h.type){case"stretch":y="100%";break;case"rem":y=`${h.rem}rem`;break;case"pixel":y=`${h.pixels}px`;break;case"content":y="fit-content";break;case"auto":y="auto";break;default:assertNever(h)}const $=getDirection(c);c?.isInContentWidthContainer&&h.type==="stretch"&&t!==void 0&&(g=calculateMinWidthWithParentConstraint(t,c?.parentWidth));const E=getHeight(n,o);let A,N="visible";switch(E.type){case"stretch":A="100%";break;case"content":A="auto";break;case"rem":A=`${E.rem}rem`;break;case"pixel":A=`${E.pixels}px`,N="auto";break;case"auto":A="auto";break;default:assertNever(E)}const H=getFlex(h,E,$,t),Z=getTextAlignmentStyle("textAlignmentConfig"in n?n.textAlignmentConfig:void 0);return{...{width:y,height:A,overflow:N,flex:H,minWidth:g,textAlign:Z},...e}},[n,o,e,c,t])};var ScriptRunState=function(n){return n.NOT_RUNNING="notRunning",n.RUNNING="running",n.RERUN_REQUESTED="rerunRequested",n.STOP_REQUESTED="stopRequested",n.COMPILATION_ERROR="compilationError",n}({});const ScriptRunContext=reactExports.createContext({scriptRunState:ScriptRunState.NOT_RUNNING,scriptRunId:"<null>",fragmentIdsThisRun:[]});ScriptRunContext.displayName="ScriptRunContext";var reactPropsRegex$1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid$1=memoize$1(function(n){return reactPropsRegex$1.test(n)||n.charCo
46deAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$1(function(n){return reactPropsRegex.test(n)||n.charCo
46deAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function n(o){return o!=="theme"},getDefaultShouldForwardProp=function n(o){return typeof o=="string"&&o.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function n(o,e,t){var c;if(e){var p=e.shouldForwardProp;c=o.__emotion_forwardProp&&p?function(h){return o.__emotion_forwardProp(h)&&p(h)}:p}return typeof c!="function"&&t&&(c=o.__emotion_forwardProp),c},Insertion=function n(o){var e=o.cache,t=o.serialized,c=o.isStringTag;return registerStyles(e,t,c),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(e,t,c)}),null},createStyled=function n(o,e){var t=o.__emotion_real===o,c=t&&o.__emotion_base||o,p,h;e!==void 0&&(p=e.label,h=e.target);var y=composeShouldForwardProps(o,e,t),g=y||getDefaultShouldForwardProp(c),$=!g("as");return function(){var E=arguments,A=t&&o.__emotion_styles!==void 0?o.__emotion_styles.slice(0):[];if(p!==void 0&&A.push("label:"+p+";"),E[0]==null||E[0].raw===void 0)A.push.apply(A,E);else{var N=E[0];A.push(N[0]);for(var H=E.length,Z=1;Z<H;Z++)A.push(E[Z],N[Z])}var X=withEmotionCache(function(be,we,$e){var Ce=$&&be.as||c,Ie="",Ne=[],Fe=be;if(be.theme==null){Fe={};for(var Be in be)Fe[Be]=be[Be];Fe.theme=reactExports.useContext(ThemeContext$2)}typeof be.className=="string"?Ie=getRegisteredStyles(we.registered,Ne,be.className):be.className!=null&&(Ie=be.className+" ");var Ge=serializeStyles(A.concat(Ne),we.registered,Fe);Ie+=we.key+"-"+Ge.name,h!==void 0&&(Ie+=" "+h);var je=$&&y===void 0?getDefaultShouldForwardProp(Ce):g,De={};for(var Ue in be)$&&Ue==="as"||je(Ue)&&(De[Ue]=be[Ue]);return De.className=Ie,$e&&(De.ref=$e),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion,{cache:we,serialized:Ge,isStringTag:typeof Ce=="string"}),reactExports.createElement(Ce,De))});return X.displayName=p!==void 0?p:"Styled("+(typeof c=="string"?c:c.displayName||c.name||"Component")+")",X.defaultProps=o.defaultProps,X.__emotion_real=X,X.__emotion_base=c,X.__emotion_styles=A,X.__emotion_forwardProp=y,Object.defineProperty(X,"toString",{value:function(){return"."+h}}),X.withComponent=function(be,we){var $e=n(be,_extends$C({},e,we,{shouldForwardProp:composeShouldForwardProps(X,we,!0)}));return $e.apply(void 0,A)},X}},tags=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],styled=createStyled.bind(null);tags.forEach(function(n){styled[n]=styled(n)});var SIZE$3={medium:"medium"},spin={from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},StyledSpinner=styled$1("i",function(n){var o=n.$theme,e=n.$color,t=e===void 0?o.colors.contentAccent:e,c=n.$borderWidth,p=n.$size,h=p===void 0?SIZE$3.medium:p,y={large:o.sizing.scale300,medium:o.sizing.scale100,small:o.sizing.scale0}[c||h],g={large:o.sizing.scale1000,medium:o.sizing.scale900,small:o.sizing.scale800}[h];return y||(y=o.sizing[c],y||(y="".concat(parseInt(c),"px"))),g||(g=o.sizing[h],g||(g="".concat(parseInt(h),"px"))),{display:"block",animationName:spin,animationDuration:o.animation.timing1000,animationIterationCount:"infinite",animationTimingFunction:"linear",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderRadius:"50%",borderTopColor:t,borderRightColor:o.colors.backgroundTertiary,borderBottomColor:o.colors.backgroundTertiary,borderLeftColor:o.colors.backgroundTertiary,borderLeftWidth:y,borderRightWidth:y,borderTopWidth:y,borderBottomWidth:y,width:g,height:g,cursor:"wait"}});
46StyledSpinner.displayName="StyledSpinner";StyledSpinner.displayName="StyledSpinner";const StyledSpinnerIcon=styled(StyledSpinner,{shouldForwardProp:n=>isPropValid$1(n)&&!["size"].includes(n),target:"e1ob5mq00"})(({size:n="lg",margin:o="",padding:e="",theme:t})=>{const c=`calc(${t.iconSizes[n]} * 0.80)`;return{width:c,height:c,fontSize:c,justifyContents:"center",margin:computeSpacingStyle(o,t),padding:computeSpacingStyle(e,t),borderColor:t.colors.fadedText10,borderTopColor:t.colors.bodyText,borderWidth:t.sizes.spinnerThickness,flexGrow:0,flexShrink:0}}),StyledIcon=styled("span",{shouldForwardProp:n=>isPropValid$1(n)&&!["size","as"].includes(n),target:"e1ob5mq01"})(({color:n,size:o,margin:e,padding:t,theme:c})=>({color:n||"inherit",fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:c.iconSizes[o],width:c.iconSizes[o],height:c.iconSizes[o],margin:computeSpacingStyle(e,c),padding:computeSpacingStyle(t,c),flexShrink:0})),StyledDynamicIcon=styled("span",{target:"e1ob5mq02"})(({size:n="lg",margin:o="",padding:e="",theme:t})=>({fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:t.iconSizes[n],width:t.iconSizes[n],height:t.iconSizes[n],margin:computeSpacingStyle(o,t),padding:computeSpacingStyle(e,t),flexShrink:0})),StyledImageIcon=styled("img",{target:"e1ob5mq03"})({width:"100%",height:"100%"}),StyledEmojiIcon=styled("span",{target:"e1ob5mq04"})(({size:n,margin:o,padding:e,theme:t,color:c})=>{const p=`calc(${t.iconSizes[n]} * 0.90)`;return{display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:p,width:p,height:p,margin:computeSpacingStyle(o,t),padding:computeSpacingStyle(e,t),color:c}}),getDefaultProps$1=({size:n,margin:o,padding:e,color:t})=>({size:n||"md",margin:o||"",padding:e||"",color:t||void 0}),Icon$2=({content:n,color:o,size:e,margin:t,padding:c,testid:p})=>jsx$1(StyledIcon,{as:n,"aria-hidden":"true","data-testid":p,...getDefaultProps$1({size:e,margin:t,padding:c,color:o})}),EmojiIcon=({size:n,margin:o,padding:e,children:t,color:c,testid:p})=>(typeof t=="string"&&(t=t.replace(/^emoji:/,"")),jsx$1(StyledEmojiIcon,{"data-testid":p||"stIconEmoji","aria-hidden":"true",...getDefaultProps$1({size:n,margin:o,padding:e,color:c}),children:t})),StyledMaterialIcon=styled("span",{target:"ejhh0er0"})(({size:n,margin:o,padding:e,theme:t,color:c})=>({display:"inline-flex",alignItems:"center",justifyContents:"center",color:c,fontSize:t.iconSizes[n],width:t.iconSizes[n],height:t.iconSizes[n],margin:computeSpacingStyle(o,t),padding:computeSpacingStyle(e,t),userSelect:"none",fontFamily:t.genericFonts.iconFont,fontWeight:t.fontWeights.normal,fontStyle:"normal",lineHeight:t.lineHeights.none,letterSpacing:"normal",textTransform:"none",whiteSpace:"nowrap",wordWrap:"normal",direction:"ltr",fontFeatureSettings:"liga",MozFontFeatureSettings:"liga",WebkitFontFeatureSettings:"liga",WebkitFontSmoothing:"antialiased"})),getDefaultProps=({size:n,margin:o,padding:e,color:t})=>({size:n||"md",margin:o||"",padding:e||"",color:t||"inherit"}),MaterialFontIcon=({iconName:n,...o})=>jsx$1(StyledMaterialIcon,{...getDefaultProps(o),"data-testid":o.testid||"stIconMaterial",translate:"no",children:n});function parseIconPackEntry(n){const o=n.match(/^:(.+)\/(.+):$/);if(o===null)return{pack:"emoji",icon:n};const e=o[1],t=o[2];return{pack:e,icon:t}}function isMaterialIcon(n){if(!n)return!1;const o=parseIconPackEntry(n);return o.pack==="material"&&o.icon!==""}function getFilledStarIconSrc(){return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg2MF84NDMpIj48cGF0aCBkPSJNOS45OTk5NCAxNC4zOTE2TDEzLjQ1ODMgMTYuNDgzM0MxNC4wOTE2IDE2Ljg2NjYgMTQuODY2NiAxNi4zIDE0LjY5OTkgMTUuNTgzM0wxMy43ODMzIDExLjY1TDE2Ljg0MTYgOC45OTk5N0MxNy4zOTk5IDguNTE2NjMgMTcuMDk5OSA3LjU5OTk3IDE2LjM2NjYgNy41NDE2M0wxMi4zNDE2IDcuMTk5OTdMMTAuNzY2NiAzLjQ4MzNDMTAuNDgzMyAyLjgwODMgOS41MTY2MSAyLjgwODMgOS4yMzMyNyAzLjQ4MzNMNy42NTgyNyA3LjE5MTYzTDMuNjMzMjcgNy41MzMzQzIuODk5OTQgNy41OTE2MyAyLjU5OTk0IDguNTA4MyAzLjE1ODI3IDguOTkxNjNMNi4yMTY2MSAxMS42NDE2TDUuMjk5OTQgMTUuNTc1QzUuMTMzMjcgMTYuMjkxNiA1LjkwODI3IDE2Ljg1ODMgNi41NDE2MSAxNi40NzVMOS45OTk5NCAxNC4zOTE2WiIgZmlsbD0iI0ZBQ0EyQiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwXzE4NjBfODQzIj48cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+"}const DynamicIconDispatcher=({iconValue:n,...o})=>{if(n==="spinner")return jsx$1(StyledDynamicIcon,{...o,children:jsx$1(StyledSpinnerIcon,{"data-testid":o.testid||"stSpinnerIcon",...o})});const{pack:e,icon:t}=parseIconPackEntry(n);switch(e){case"material":switch(t){case"star_filled":return jsx$1(StyledDynamicIcon,{...o,children:jsx$1(StyledImageIcon,{src:getFilledStarIconSrc(),"data-testid":o.testid||"stImageIcon"})});default:return jsx$1(StyledDynamicIcon,{...o,children:jsx$1(MaterialFontIcon,{pack:e,iconName:t,...o}
vendor: 4,890 bytes, line 46
46)})}case"emoji":default:return jsx$1(StyledDynamicIcon,{...o,children:jsx$1(EmojiIcon,{...o,children:t})})}},DynamicIcon=n=>jsx$1(reactExports.Suspense,{fallback:jsx$1(StyledDynamicIcon,{...n,children:jsx$1(EmojiIcon,{...n,children:"Â "})}),children:jsx$1(DynamicIconDispatcher,{...n})},n.iconValue),LibConfigContext=reactExports.createContext({locale:window.navigator.language,mapboxToken:void 0,enforceDownloadInNewTab:void 0,resourceCrossOriginMode:void 0});LibConfigContext.displayName="LibConfigContext";var Pe=Object.defineProperty,a$1=(n,o)=>Pe(n,"name",{value:o,configurable:!0}),P=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(n,o,e,t,c,p){this.type=n,this.name=o,this.prefix=e,this.value=t,this.suffix=c,this.modifier=p}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};a$1(P,"Part");var Re=/[$_\p{ID_Start}]/u,Ee=/[$_\u200C\u200D\p{ID_Continue}]/u,v=".*";function Oe(n,o){return(o?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(n)}a$1(Oe,"isASCII");function D(n,o=!1){let e=[],t=0;for(;t<n.length;){let c=n[t],p=a$1(function(h){if(!o)throw new TypeError(h);e.push({type:"INVALID_CHAR",index:t,value:n[t++]})},"ErrorOrInvalid");if(c==="*"){e.push({type:"ASTERISK",index:t,value:n[t++]});continue}if(c==="+"||c==="?"){e.push({type:"OTHER_MODIFIER",index:t,value:n[t++]});continue}if(c==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:n[t++]});continue}if(c==="{"){e.push({type:"OPEN",index:t,value:n[t++]});continue}if(c==="}"){e.push({type:"CLOSE",index:t,value:n[t++]});continue}if(c===":"){let h="",y=t+1;for(;y<n.length;){let g=n.substr(y,1);if(y===t+1&&Re.test(g)||y!==t+1&&Ee.test(g)){h+=n[y++];continue}break}if(!h){p(`Missing parameter name at ${t}`);continue}e.push({type:"NAME",index:t,value:h}),t=y;continue}if(c==="("){let h=1,y="",g=t+1,$=!1;if(n[g]==="?"){p(`Pattern cannot start with "?" at ${g}`);continue}for(;g<n.length;){if(!Oe(n[g],!1)){p(`Invalid character '${n[g]}' at ${g}.`),$=!0;break}if(n[g]==="\\"){y+=n[g++]+n[g++];continue}if(n[g]===")"){if(h--,h===0){g++;break}}else if(n[g]==="("&&(h++,n[g+1]!=="?")){p(`Capturing groups are not allowed at ${g}`),$=!0;break}y+=n[g++]}if($)continue;if(h){p(`Unbalanced pattern at ${t}`);continue}if(!y){p(`Missing pattern at ${t}`);continue}e.push({type:"REGEX",index:t,value:y}),t=g;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}a$1(D,"lexer");function F(n,o={}){let e=D(n);o.delimiter??="/#?",o.prefixes??="./";let t=`[^${x(o.delimiter)}]+?`,c=[],p=0,h=0,y=new Set,g=a$1($e=>{if(h<e.length&&e[h].type===$e)return e[h++].value},"tryConsume"),$=a$1(()=>g("OTHER_MODIFIER")??g("ASTERISK"),"tryConsumeModifier"),E=a$1($e=>{let Ce=g($e);if(Ce!==void 0)return Ce;let{type:Ie,index:Ne}=e[h];throw new TypeError(`Unexpected ${Ie} at ${Ne}, expected ${$e}`)},"mustConsume"),A=a$1(()=>{let $e="",Ce;for(;Ce=g("CHAR")??g("ESCAPED_CHAR");)$e+=Ce;return $e},"consumeText"),N=a$1($e=>$e,"DefaultEncodePart"),H=o.encodePart||N,Z="",X=a$1($e=>{Z+=$e},"appendToPendingFixedValue"),be=a$1(()=>{Z.length&&(c.push(new P(3,"","",H(Z),"",3)),Z="")},"maybeAddPartFromPendingFixedValue"),we=a$1(($e,Ce,Ie,Ne,Fe)=>{let Be=3;switch(Fe){case"?":Be=1;break;case"*":Be=0;break;case"+":Be=2;break}if(!Ce&&!Ie&&Be===3){X($e);return}if(be(),!Ce&&!Ie){if(!$e)return;c.push(new P(3,"","",H($e),"",Be));return}let Ge;Ie?Ie==="*"?Ge=v:Ge=Ie:Ge=t;let je=2;Ge===t?(je=1,Ge=""):Ge===v&&(je=0,Ge="");let De;if(Ce?De=Ce:Ie&&(De=p++),y.has(De))throw new TypeError(`Duplicate name '${De}'.`);y.add(De),c.push(new P(je,De,H($e),Ge,H(Ne),Be))},"addPart");for(;h<e.length;){let $e=g("CHAR"),Ce=g("NAME"),Ie=g("REGEX");if(!Ce&&!Ie&&(Ie=g("ASTERISK")),Ce||Ie){let Fe=$e??"";o.prefixes.indexOf(Fe)===-1&&(X(Fe),Fe=""),be();let Be=$();we(Fe,Ce,Ie,"",Be);continue}let Ne=$e??g("ESCAPED_CHAR");if(Ne){X(Ne);continue}if(g("OPEN")){let Fe=A(),Be=g("NAME"),Ge=g("REGEX");!Be&&!Ge&&(Ge=g("ASTERISK"));let je=A();E("CLOSE");let De=$();we(Fe,Be,Ge,je,De);continue}be(),E("END")}return c}a$1(F,"parse");function x(n){return n.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}a$1(x,"escapeString");function B(n){return n&&n.ignoreCase?"ui":"u"}a$1(B,"flags");function q(n,o,e){return W(F(n,e),o,e)}a$1(q,"stringToRegexp");function T(n){switch(n){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}a$1(T,"modifierToString");function W(n,o,e={}){e.delimiter??="/#?",e.prefixes??="./",e.sensitive??=!1,e.strict??=!1,e.end??=!0,e.start??=!0,e.endsWith="";let t=e.start?"^":"";for(let y of n){if(y.type===3){y.modifier===3?t+=x(y.value):t+=`(?:${x(y.value)})${T(y.modifier)}`;continue}o&&o.push(y.name);let g=`[^${x(e.delimiter)}]+?`,$=y.value;if(y.type===1?$=g:y.type===0&&($=v),!y.prefix.length&&!y.suffix.length){y.modifier===3||y.modifier===1?t+=`(${$})${T(y.modifier)}`:t+=`((?:${$})${T(y.modifier)})`;continue}if(y.modifier===3||y.modifier===1){t+=`(?:${x(y.prefix)}(${$}
46)${x(y.suffix)})`,t+=T(y.modifier);continue}t+=`(?:${x(y.prefix)}`,t+=`((?:${$})(?:`,t+=x(y.suffix),t+=x(y.prefix),t+=`(?:${$}))*)${x(y.suffix)})`,y.modifier===0&&(t+="?")}let c=`[${x(e.endsWith)}]|$`,p=`[${x(e.delimiter)}]`;if(e.end)return e.strict||(t+=`${p}?`),e.endsWith.length?t+=`(?=${c})`:t+="$",new RegExp(t,B(e));e.strict||(t+=`(?:${p}(?=${c}))?`);let h=!1;if(n.length){let y=n[n.length-1];y.type===3&&y.modifier===3&&(h=e.delimiter.indexOf(y)>-1)}return h||(t+=`(?=${p}|${c})`),new RegExp(t,B(e))}a$1(W,"partsToRegexp");var b={delimiter:"",prefixes:"",sensitive:!0,strict:!0},J={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Q={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function ee(n,o){return n.length?n[0]==="/"?!0:!o||n.length<2?!1:(n[0]=="\\"||n[0]=="{")&&n[1]=="/":!1}a$1(ee,"isAbsolutePathname");function te(n,o){return n.startsWith(o)?n.substring(o.length,n.length):n}a$1(te,"maybeStripPrefix");function ke(n,o){return n.endsWith(o)?n.substr(0,n.length-o.length):n}a$1(ke,"maybeStripSuffix");function _(n){return!n||n.length<2?!1:n[0]==="["||(n[0]==="\\"||n[0]==="{")&&n[1]==="["}a$1(_,"treatAsIPv6Hostname");var re$1=["ftp","file","http","https","ws","wss"];function U(n){if(!n)return!0;for(let o of re$1)if(n.test(o))return!0;return!1}a$1(U,"isSpecialScheme");function ne(n,o){if(n=te(n,"#"),o||n==="")return n;let e=new URL("https://example.com");return e.hash=n,e.hash?e.hash.substring(1,e.hash.length):""}a$1(ne,"canonicalizeHash");function se(n,o){if(n=te(n,"?"),o||n==="")return n;let e=new URL("https://example.com");return e.search=n,e.search?e.search.substring(1,e.search.length):""}a$1(se,"canonicalizeSearch");function ie(n,o){return o||n===""?n:_(n)?K(n):j(n)}a$1(ie,"canonicalizeHostname");function ae(n,o){if(o||n==="")return n;let e=new URL("https://example.com");return e.password=n,e.password}a$1(ae,"canonicalizePassword");function oe(n,o){if(o||n==="")return n;let e=new URL("https://example.com");return e.username=n,e.username}a$1(oe,"canonicalizeUsername");function ce(n,o,e){if(e||n==="")return n;if(o&&!re$1.includes(o))return new URL(`${o}:${n}`).pathname;let t=n[0]=="/";return n=new URL(t?n:"/-"+n,"https://example.com").pathname,t||(n=n.substring(2,n.length)),n}a$1(ce,"canonicalizePathname");function le(n,o,e){return z(o)===n&&(n=""),e||n===""?n:G(n)}a$1(le,"canonicalizePort");function fe(n,o){return n=ke(n,":"),o||n===""?n:w(n)}a$1(fe,"canonicalizeProtocol");function z(n){switch(n){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}a$1(z,"defaultPortForProtocol");function w(n){if(n==="")return n;if(/^[-+.A-Za-z0-9]*$/.test(n))return n.toLowerCase();throw new TypeError(`Invalid protocol '${n}'.`)}a$1(w,"protocolEncodeCallback");function he(n){if(n==="")return n;let o=new URL("https://example.com");return o.username=n,o.username}a$1(he,"usernameEncodeCallback");function ue(n){if(n==="")return n;let o=new URL("https://example.com");return o.password=n,o.password}a$1(ue,"passwordEncodeCallback");
vendor: 9,438 bytes, line 46
46function j(n){if(n==="")return n;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(n))throw new TypeError(`Invalid hostname '${n}'`);let o=new URL("https://example.com");return o.hostname=n,o.hostname}a$1(j,"hostnameEncodeCallback");function K(n){if(n==="")return n;if(/[^0-9a-fA-F[\]:]/g.test(n))throw new TypeError(`Invalid IPv6 hostname '${n}'`);return n.toLowerCase()}a$1(K,"ipv6HostnameEncodeCallback");function G(n){if(n===""||/^[0-9]*$/.test(n)&&parseInt(n)<=65535)return n;throw new TypeError(`Invalid port '${n}'.`)}a$1(G,"portEncodeCallback");function de(n){if(n==="")return n;let o=new URL("https://example.com");return o.pathname=n[0]!=="/"?"/-"+n:n,n[0]!=="/"?o.pathname.substring(2,o.pathname.length):o.pathname}a$1(de,"standardURLPathnameEncodeCallback");function pe(n){return n===""?n:new URL(`data:${n}`).pathname}a$1(pe,"pathURLPathnameEncodeCallback");function ge(n){if(n==="")return n;let o=new URL("https://example.com");return o.search=n,o.search.substring(1,o.search.length)}a$1(ge,"searchEncodeCallback");function me(n){if(n==="")return n;let o=new URL("https://example.com");return o.hash=n,o.hash.substring(1,o.hash.length)}a$1(me,"hashEncodeCallback");var C=class{#o;#r=[];#t={};#e=0;#i=1;#u=0;#l=0;#p=0;#h=0;#y=!1;constructor(n){this.#o=n}get result(){return this.#t}parse(){for(this.#r=D(this.#o,!0);this.#e<this.#r.length;this.#e+=this.#i){if(this.#i=1,this.#r[this.#e].type==="END"){if(this.#l===0){this.#v(),this.#c()?this.#n(9,1):this.#d()?this.#n(8,1):this.#n(7,0);continue}else if(this.#l===2){this.#f(5);continue}this.#n(10,0);break}if(this.#p>0)if(this.#T())this.#p-=1;else continue;if(this.#x()){this.#p+=1;continue}switch(this.#l){case 0:this.#S()&&this.#f(1);break;case 1:if(this.#S()){this.#E();let n=7,o=1;this.#w()?(n=2,o=3):this.#y&&(n=2),this.#n(n,o)}break;case 2:this.#m()?this.#f(3):(this.#b()||this.#d()||this.#c())&&this.#f(5);break;case 3:this.#_()?this.#n(4,1):this.#m()&&this.#n(5,1);break;case 4:this.#m()&&this.#n(5,1);break;case 5:this.#C()?this.#h+=1:this.#k()&&(this.#h-=1),this.#$()&&!this.#h?this.#n(6,1):this.#b()?this.#n(7,0):this.#d()?this.#n(8,1):this.#c()&&this.#n(9,1);break;case 6:this.#b()?this.#n(7,0):this.#d()?this.#n(8,1):this.#c()&&this.#n(9,1);break;case 7:this.#d()?this.#n(8,1):this.#c()&&this.#n(9,1);break;case 8:this.#c()&&this.#n(9,1);break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#n(n,o){switch(this.#l){case 0:break;case 1:this.#t.protocol=this.#s();break;case 2:break;case 3:this.#t.username=this.#s();break;case 4:this.#t.password=this.#s();break;case 5:this.#t.hostname=this.#s();break;case 6:this.#t.port=this.#s();break;case 7:this.#t.pathname=this.#s();break;case 8:this.#t.search=this.#s();break;case 9:this.#t.hash=this.#s();break}this.#l!==0&&n!==10&&([1,2,3,4].includes(this.#l)&&[6,7,8,9].includes(n)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#l)&&[8,9].includes(n)&&(this.#t.pathname??=this.#y?"/":""),[1,2,3,4,5,6,7].includes(this.#l)&&n===9&&(this.#t.search??="")),this.#O(n,o)}#O(n,o){this.#l=n,this.#u=this.#e+o,this.#e+=o,this.#i=0}#v(){this.#e=this.#u,this.#i=0}#f(n){this.#v(),this.#l=n}#g(n){return n<0&&(n=this.#r.length-n),n<this.#r.length?this.#r[n]:this.#r[this.#r.length-1]}#a(n,o){let e=this.#g(n);return e.value===o&&(e.type==="CHAR"||e.type==="ESCAPED_CHAR"||e.type==="INVALID_CHAR")}#S(){return this.#a(this.#e,":")}#w(){return this.#a(this.#e+1,"/")&&this.#a(this.#e+2,"/")}#m(){return this.#a(this.#e,"@")}#_(){return this.#a(this.#e,":")}#$(){return this.#a(this.#e,":")}#b(){return this.#a(this.#e,"/")}#d(){if(this.#a(this.#e,"?"))return!0;if(this.#r[this.#e].value!=="?")return!1;let n=this.#g(this.#e-1);return n.type!=="NAME"&&n.type!=="REGEX"&&n.type!=="CLOSE"&&n.type!=="ASTERISK"}#c(){return this.#a(this.#e,"#")}#x(){return this.#r[this.#e].type=="OPEN"}#T(){return this.#r[this.#e].type=="CLOSE"}#C(){return this.#a(this.#e,"[")}#k(){return this.#a(this.#e,"]")}#s(){let n=this.#r[this.#e],o=this.#g(this.#u).index;return this.#o.substring(o,n.index)}#E(){let n={};Object.assign(n,b),n.encodePart=w;let o=q(this.#s(),void 0,n);this.#y=U(o)}};a$1(C,"Parser");var V=["protocol","username","password","hostname","port","pathname","search","hash"],O="*";function Se(n,o){if(typeof n!="string")throw new TypeError("parameter 1 is not of type 'string'.");let e=new URL(n,o);return{protocol:e.protocol.substring(0,e.protocol.length-1),username:e.username,password:e.password,hostname:e.hostname,port:e.port,pathname:e.pathname,search:e.search!==""?e.search.substring(1,e.search.length):void 0,hash:e.hash!==""?e.hash.substring(1,e.hash.length):void 0}}a$1(Se,"extractValues");function R(n,o){return o?I(n):n}a$1(R,"processBaseURLString");function L(n,o,e){let t;if(typeof o.baseURL=="string")try{t=new URL(o.baseURL),o.protocol===void 0&&(n.protocol=R(t.protocol.substring(0,t.protocol.length-1),e)),!e&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&(n.username=R(t.username,e)),!e&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&o.password===void 0&&(n.password=R(t.password,e)),o.protocol===void 0&&o.hostname===void 0&&(n.hostname=R(t.hostname,e)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&(n.port=R(t.port,e)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&(n.pathname=R(t.pathname,e)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&(n.search=R(t.search.substring(1,t.search.length),e)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&o.hash===void 0&&(n.hash=R(t.hash.substring(1,t.hash.length),e))}catch{throw new TypeError(`invalid baseURL '${o.baseURL}'.`)}if(typeof o.protocol=="string"&&(n.protocol=fe(o.protocol,e)),typeof o.username=="string"&&(n.username=oe(o.username,e)),typeof o.password=="string"&&(n.password=ae(o.password,e)),typeof o.hostname=="string"&&(n.hostname=ie(o.hostname,e)),typeof o.port=="string"&&(n.port=le(o.port,n.protocol,e)),typeof o.pathname=="string"){if(n.pathname=o.pathname,t&&!ee(n.pathname,e)){let c=t.pathname.lastIndexOf("/");c>=0&&(n.pathname=R(t.pathname.substring(0,c+1),e)+n.pathname)}n.pathname=ce(n.pathname,n.protocol,e)}return typeof o.search=="string"&&(n.search=se(o.search,e)),typeof o.hash=="string"&&(n.hash=ne(o.hash,e)),n}a$1(L,"applyInit");function I(n){return n.replace(/([+*?:{}()\\])/g,"\\$1")}a$1(I,"escapePatternString");function Te(n){return n.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}a$1(Te,"escapeRegexpString");function Ae(n,o){o.delimiter??="/#?",o.prefixes??="./",o.sensitive??=!1,o.strict??=!1,o.end??=!0,o.start??=!0,o.endsWith="";let e=".*",t=`[^${Te(o.delimiter)}]+?`,c=/[$_\u200C\u200D\p{ID_Continue}]/u,p="";for(let h=0;h<n.length;++h){let y=n[h];if(y.type===3){if(y.modifier===3){p+=I(y.value);continue}p+=`{${I(y.value)}}${T(y.modifier)}`;continue}let g=y.hasCustomName(),$=!!y.suffix.length||!!y.prefix.length&&(y.prefix.length!==1||!o.prefixes.includes(y.prefix)),E=h>0?n[h-1]:null,A=h<n.length-1?n[h+1]:null;if(!$&&g&&y.type===1&&y.modifier===3&&A&&!A.prefix.length&&!A.suffix.length)if(A.type===3){let N=A.value.length>0?A.value[0]:"";$=c.test(N)}else $=!A.hasCustomName();if(!$&&!y.prefix.length&&E&&E.type===3){let N=E.value[E.value.length-1];$=o.prefixes.includes(N)}$&&(p+="{"),p+=I(y.prefix),g&&(p+=`:${y.name}`),y.type===2?p+=`(${y.value})`:y.type===1?g||(p+=`(${t})`):y.type===0&&(!g&&(!E||E.type===3||E.modifier!==3||$||y.prefix!=="")?p+="*":p+=`(${e})`),y.type===1&&g&&y.suffix.length&&c.test(y.suffix[0])&&(p+="\\"),p+=I(y.suffix),$&&(p+="}"),y.modifier!==3&&(p+=T(y.modifier))}return p}a$1(Ae,"partsToPattern");var Y=class{#o;#r={};#t={};#e={};#i={};#u=!1;constructor(n={},o,e){try{let t;if(typeof o=="string"?t=o:e=o,typeof n=="string"){let y=new C(n);if(y.parse(),n=y.result,t===void 0&&typeof n.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");n.baseURL=t}else{if(!n||typeof n!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(t)throw new TypeError("parameter 1 is not of type 'string'.")}typeof e>"u"&&(e={ignoreCase:!1});let c={ignoreCase:e.ignoreCase===!0},p={pathname:O,protocol:O,username:O,password:O,hostname:O,port:O,search:O,hash:O};this.#o=L(p,n,!0),z(this.#o.protocol)===this.#o.port&&(this.#o.port="");let h;for(h of V){if(!(h in this.#o))continue;let y={},g=this.#o[h];switch(this.#t[h]=[],h){case"protocol":Object.assign(y,b),y.encodePart=w;break;case"username":Object.assign(y,b),y.encodePart=he;break;case"password":Object.assign(y,b),y.encodePart=ue;break;case"hostname":Object.assign(y,J),_(g)?y.encodePart=K:y.encodePart=j;break;case"port":Object.assign(y,b),y.encodePart=G;break;case"pathname":U(this.#r.protocol)?(Object.assign(y,Q,c),y.encodePart=de):(Object.assign(y,b,c),y.encodePart=pe);break;case"search":Object.assign(y,b,c),y.encodePart=ge;break;case"hash":Object.assign(y,b,c),y.encodePart=me;break}try{this.#i[h]=F(g,y),this.#r[h]=W(this.#i[h],this.#t[h],y),this.#e[h]=Ae(this.#i[h],y),this.#u=this.#u||this.#i[h].some($=>$.type===2)}catch{throw new TypeError(`invalid ${h} pattern '${this.#o[h]}'.`)}}}catch(t){throw new TypeError(`Failed to construct 'URLPattern': ${t.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(n={},o){let e={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};
46if(typeof n!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof n>"u")return!1;try{typeof n=="object"?e=L(e,n,!1):e=L(e,Se(n,o),!1)}catch{return!1}let t;for(t of V)if(!this.#r[t].exec(e[t]))return!1;return!0}exec(n={},o){let e={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof n!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof n>"u")return;try{typeof n=="object"?e=L(e,n,!1):e=L(e,Se(n,o),!1)}catch{return null}let t={};o?t.inputs=[n,o]:t.inputs=[n];let c;for(c of V){let p=this.#r[c].exec(e[c]);if(!p)return null;let h={};for(let[y,g]of this.#t[c].entries())if(typeof g=="string"||typeof g=="number"){let $=p[y+1];h[g]=$}t[c]={input:e[c]??"",groups:h}}return t}static compareComponent(n,o,e){let t=a$1((y,g)=>{for(let $ of["type","modifier","prefix","value","suffix"]){if(y[$]<g[$])return-1;if(y[$]!==g[$])return 1}return 0},"comparePart"),c=new P(3,"","","","",3),p=new P(0,"","","","",3),h=a$1((y,g)=>{let $=0;for(;$<Math.min(y.length,g.length);++$){let E=t(y[$],g[$]);if(E)return E}return y.length===g.length?0:t(y[$]??c,g[$]??c)},"comparePartList");return!o.#e[n]&&!e.#e[n]?0:o.#e[n]&&!e.#e[n]?h(o.#i[n],[p]):!o.#e[n]&&e.#e[n]?h([p],e.#i[n]):h(o.#i[n],e.#i[n])}get protocol(){return this.#e.protocol}get username(){return this.#e.username}get password(){return this.#e.password}get hostname(){return this.#e.hostname}get port(){return this.#e.port}get pathname(){return this.#e.pathname}get search(){return this.#e.search}get hash(){return this.#e.hash}get hasRegExpGroups(){return this.#u}};a$1(Y,"URLPattern");globalThis.URLPattern||(globalThis.URLPattern=Y);function isValidOrigin(n,o){let e,t,c;try{e=new URLPattern(n),t=new URLPattern({protocol:e.protocol,hostname:e.hostname}),c=new URL(o)}catch{return!1}return c.hostname==="localhost"&&t.test(c)?!0:e.test(c)}function getCrossOriginAttribute(n,o){if(o)try{const e=new URL(o);return window.__streamlit?.BACKEND_BASE_URL&&e.origin===new URL(window.__streamlit?.BACKEND_BASE_URL).origin?n:void 0}catch{return window.__streamlit?.BACKEND_BASE_URL?n:void 0}}const useCrossOriginAttribute=n=>{const{resourceCrossOriginMode:o}=reactExports.useContext(LibConfigContext);if(n)return getCrossOriginAttribute(o,n)},useEmotionTheme=()=>useTheme(),StyledChatMessageContainer=styled("div",{target:"e1ypd8m70"})(({theme:n,background:o})=>
46{const e=hasLightBackgroundColor(n);return{width:"100%",display:"flex",alignItems:"flex-start",gap:n.spacing.sm,padding:n.spacing.lg,paddingRight:o?n.spacing.lg:0,borderRadius:n.radii.default,...o?{backgroundColor:transparentize(e?n.colors.gray20:n.colors.gray90,.5)}:{}}}),StyledMessageContent=styled("div",{target:"e1ypd8m71"})(({theme:n})=>({color:n.colors.bodyText,margin:"auto",flexGrow:1,minWidth:0})),StyledAvatarBackground=styled("div",{target:"e1ypd8m72"})(({theme:n})=>{const o=hasLightBackgroundColor(n);return{display:"flex",border:`${n.sizes.borderWidth} solid ${o?n.colors.gray40:n.colors.gray85}`,backgroundColor:o?n.colors.white:n.colors.gray100,color:o?n.colors.gray90:n.colors.white,lineHeight:n.lineHeights.none,fontSize:n.fontSizes.md,flexShrink:0,width:n.sizes.chatAvatarSize,height:n.sizes.chatAvatarSize,borderRadius:n.radii.default,alignItems:"center",justifyContent:"center"}}),StyledAvatarIcon=styled("div",{target:"e1ypd8m73"})(({theme:n,background:o})=>{const e=hasLightBackgroundColor(n);return{display:"flex",width:n.sizes.chatAvatarSize,height:n.sizes.chatAvatarSize,flexShrink:0,borderRadius:n.radii.default,alignItems:"center",justifyContent:"center",backgroundColor:o,color:e?n.colors.white:n.colors.gray100}}),StyledAvatarImage=styled("img",{target:"e1ypd8m74"})(({theme:n})=>({width:n.sizes.chatAvatarSize,height:n.sizes.chatAvatarSize,flexShrink:0,borderRadius:n.radii.default,objectFit:"cover",display:"flex"}));function ChatMessageAvatar(n){const{avatar:o,avatarType:e,name:t,endpoints:c}=n,p=useEmotionTheme(),h=useCrossOriginAttribute(o);if(o)switch(e){case Block$1.ChatMessage.AvatarType.IMAGE:return jsx$1(StyledAvatarImage,{src:c.buildMediaURL(o),alt:`${t} avatar`,crossOrigin:h});case Block$1.ChatMessage.AvatarType.EMOJI:return jsx$1(StyledAvatarBackground,{children:o});case Block$1.ChatMessage.AvatarType.ICON:if(o==="user")return jsx$1(StyledAvatarIcon,{"data-testid":"stChatMessageAvatarUser",background:p.colors.redColor,children:jsx$1(DynamicIcon,{size:"lg",iconValue:":material/face:"})});if(o==="assistant")return jsx$1(StyledAvatarIcon,{"data-testid":"stChatMessageAvatarAssistant",background:p.colors.orangeColor,children:jsx$1(DynamicIcon,{size:"lg",iconValue:":material/smart_toy:"})});if(o.startsWith(":material"))return jsx$1(StyledAvatarBackground,{"data-testid":"stChatMessageAvatarCustom",children:jsx$1(DynamicIcon,{size:"lg",iconValue:o,color:p.colors.bodyText})})}return jsx$1(StyledAvatarBackground,{children:t?t.charAt(0).toUpperCase():"ð§âð»"})}const ChatMessage=({endpoints:n,element:o,children:e})=>{const{avatar:t,avatarType:c,name:p}=o;return jsxs(StyledChatMessageContainer,{className:"stChatMessage","data-testid":"stChatMessage",background:["user","human"].includes(p.toLowerCase()),children:[jsx$1(ChatMessageAvatar,{name:p,avatar:t,avatarType:c,endpoints:n}),jsx$1(StyledMessageContent,{"data-testid":"stChatMessageContent","aria-label":`Chat message from ${p}`,children:e})]})},ChatMessage$1=reactExports.memo(ChatMessage),IsDialogContext=reactExports.createContext(!1);IsDialogContext.displayName="IsDialogContext";function _objectWithoutPropertiesLoose$q(n,o){if(n==null)return{};var e={};for(var t in n)if({}.hasOwnProperty.call(n,t)){if(o.indexOf(t)!==-1)continue;e[t]=n[t]}return e}var propTypes={exports:{}},ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ReactPropTypesSecret_1=n,ReactPropTypesSecret_1}var factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var n=requireReactPropTypesSecret();function o(){}function e(){}return e.resetWarningCache=o,factoryWithThrowingShims=function(){function t(h,y,g,$,E,A){if(A!==n){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}}t.isRequired=t;function c(){return t}var p={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:c,element:t,elementType:t,instanceOf:c,node:t,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:e,resetWarningCache:o};return p.PropTypes=p,p},factoryWithThrowingShims}var hasRequiredPropTypes;
46function requirePropTypes(){return hasRequiredPropTypes||(hasRequiredPropTypes=1,propTypes.exports=requireFactoryWithThrowingShims()()),propTypes.exports}var propTypesExports=requirePropTypes();const PropTypes=getDefaultExportFromCjs(propTypesExports);var FOCUS_GROUP="data-focus-lock",FOCUS_DISABLED="data-focus-lock-disabled",FOCUS_ALLOW="data-no-focus-lock",FOCUS_AUTO="data-autofocus-inside",FOCUS_NO_AUTOFOCUS="data-no-autofocus";function assignRef(n,o){return typeof n=="function"?n(o):n&&(n.current=o),n}function useCallbackRef(n,o){var e=reactExports.useState(function(){return{value:n,callback:o,facade:{get current(){return e.value},set current(t){var c=e.value;c!==t&&(e.value=t,e.callback(t,c))}}}})[0];return e.callback=o,e.facade}var useIsomorphicLayoutEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,currentValues=new WeakMap;function useMergeRefs(n,o){var e=useCallbackRef(null,function(t){return n.forEach(function(c){return assignRef(c,t)})});return useIsomorphicLayoutEffect(function(){var t=currentValues.get(e);if(t){var c=new Set(t),p=new Set(n),h=e.current;c.forEach(function(y){p.has(y)||assignRef(y,null)}),p.forEach(function(y){c.has(y)||assignRef(y,h)})}currentValues.set(e,n)},[n]),e}var hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function ItoI(n){return n}function innerCreateMedium(n,o){o===void 0&&(o=ItoI);var e=[],t=!1,c={read:function(){if(t)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return e.length?e[e.length-1]:n},useMedium:function(p){var h=o(p,t);return e.push(h),function(){e=e.filter(function(y){return y!==h})}},assignSyncMedium:function(p){for(t=!0;e.length;){var h=e;e=[],h.forEach(p)}e={push:function(y){return p(y)},filter:function(){return e}}},assignMedium:function(p){t=!0;var h=[];if(e.length){var y=e;e=[],y.forEach(p),h=e}var g=function(){var E=h;h=[],E.forEach(p)},$=function(){return Promise.resolve().then(g)};$(),e={push:function(E){h.push(E),$()},filter:function(E){return h=h.filter(E),e}}}};return c}function createMedium(n,o){return o===void 0&&(o=ItoI),innerCreateMedium(n,o)}function createSidecarMedium(n){n===void 0&&(n={});var o=innerCreateMedium(null);return o.options=__assign$2({async:!0,ssr:!1},n),o}var mediumFocus=createMedium({},function(n){var o=n.target,e=n.currentTarget;return{target:o,currentTarget:e}}),mediumBlur=createMedium(),mediumEffect=createMedium(),mediumSidecar=createSidecarMedium({async:!0,ssr:typeof document<"u"}),focusScope=reactExports.createContext(void 0),emptyArray=[],FocusLock=reactExports.forwardRef(function n(o,e){var t,c=reactExports.useState(),p=c[0],h=c[1],y=reactExports.useRef(),g=reactExports.useRef(!1),$=reactExports.useRef(null),E=reactExports.useState({}),A=E[1],N=o.children,H=o.disabled,Z=H===void 0?!1:H,X=o.noFocusGuards,be=X===void 0?!1:X,we=o.persistentFocus,$e=we===void 0?!1:we,Ce=o.crossFrame,Ie=Ce===void 0?!0:Ce,Ne=o.autoFocus,Fe=Ne===void 0?!0:Ne;o.allowTextSelection;var Be=o.group,Ge=o.className,je=o.whiteList,De=o.hasPositiveIndices,Ue=o.shards,Je=Ue===void 0?emptyArray:Ue,Xe=o.as,Ke=Xe===void 0?"div":Xe,ze=o.lockProps,nt=ze===void 0?{}:ze,ct=o.sideCar,at=o.returnFocus,dt=at===void 0?!1:at,Me=o.focusOptions,We=o.onActivation,tt=o.onDeactivation,Ve=reactExports.useState({}),vt=Ve[0],xt=reactExports.useCallback(function(qt){var zt=qt.captureFocusRestore;if(!$.current){var Jt,jt=(Jt=document)==null?void 0:Jt.activeElement;$.current=jt,jt!==document.body&&($.current=zt(jt))}y.current&&We&&We(y.current),g.current=!0,A()},[We]),Qe=reactExports.useCallback(function(){g.current=!1,tt&&tt(y.current),A()},[tt]),St=reactExports.useCallback(function(qt){var zt=$.current;if(zt){var Jt=(typeof zt=="function"?zt():zt)||document.body,jt=typeof dt=="function"?dt(Jt):dt;if(jt){var Yt=typeof jt=="object"?jt:void 0;$.current=null,qt?Promise.resolve().then(function(){return Jt.focus(Yt)}):Jt.focus(Yt)}}},[dt]),pt=reactExports.useCallback(function(qt){g.current&&mediumFocus.useMedium(qt)},[]),wt=mediumBlur.useMedium,Ft=reactExports.useCallback(function(qt){y.current!==qt&&(y.current=qt,h(qt))},[]),Ht=_extends$C((t={},t[FOCUS_DISABLED]=Z&&"disabled",t[FOCUS_GROUP]=Be,t),nt),on=be!==!0,en=on&&be!=="tail",Wt=useMergeRefs([e,Ft]),an=reactExports.useMemo(function(){return{observed:y,shards:Je,enabled:!Z,active:g.current}},[Z,g.current,Je,p]);return reactExports.createElement(reactExports.Fragment,null,on&&[reactExports.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:Z?-1:0,style:hiddenGuard}),De?reactExports.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:Z?-1:1,style:hiddenGuard}):null],!Z&&reactExports.createElement(ct,{id:vt,sideCar:mediumSidecar,observed:p,disabled:Z,persistentFocus:$e,crossFrame:Ie,autoFocus:
46Fe,whiteList:je,shards:Je,onActivation:xt,onDeactivation:Qe,returnFocus:St,focusOptions:Me,noFocusGuards:be}),reactExports.createElement(Ke,_extends$C({ref:Wt},Ht,{className:Ge,onBlur:wt,onFocus:pt}),reactExports.createElement(focusScope.Provider,{value:an},N)),en&&reactExports.createElement("div",{"data-focus-guard":!0,tabIndex:Z?-1:0,style:hiddenGuard}))});FocusLock.propTypes={};function _setPrototypeOf$e(n,o){return _setPrototypeOf$e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf$e(n,o)}function _inheritsLoose(n,o){n.prototype=Object.create(o.prototype),n.prototype.constructor=n,_setPrototypeOf$e(n,o)}function _typeof$g(n){"@babel/helpers - typeof";return _typeof$g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$g(n)}function toPrimitive$2(n,o){if(_typeof$g(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,o);if(_typeof$g(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(n)}function toPropertyKey$2(n){var o=toPrimitive$2(n,"string");return _typeof$g(o)=="symbol"?o:o+""}function _defineProperty$u(n,o,e){return(o=toPropertyKey$2(o))in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function withSideEffect(n,o){function e(t){return t.displayName||t.name||"Component"}return function(c){var p=[],h;function y(){h=n(p.map(function($){return $.props})),o(h)}var g=function($){_inheritsLoose(E,$);function E(){return $.apply(this,arguments)||this}E.peek=function(){return h};var A=E.prototype;return A.componentDidMount=function(){p.push(this),y()},A.componentDidUpdate=function(){y()},A.componentWillUnmount=function(){var H=p.indexOf(this);p.splice(H,1),y()},A.render=function(){return React.createElement(c,this.props)},E}(reactExports.PureComponent);return _defineProperty$u(g,"displayName","SideEffect("+e(c)+")"),g}}var toArray$1=function(n){for(var o=Array(n.length),e=0;e<n.length;++e)o[e]=n[e];return o},asArray=function(n){return Array.isArray(n)?n:[n]},getFirst=function(n){return Array.isArray(n)?n[0]:n},isElementHidden=function(n){if(n.nodeType!==Node.ELEMENT_NODE)return!1;var o=window.getComputedStyle(n,null);return!o||!o.getPropertyValue?!1:o.getPropertyValue("display")==="none"||o.getPropertyValue("visibility")==="hidden"},getParentNode=function(n){return n.parentNode&&n.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n.parentNode.host:n.parentNode},isTopNode=function(n){return n===document||n&&n.nodeType===Node.DOCUMENT_NODE},isInert=function(n){return n.hasAttribute("inert")},isVisibleUncached=function(n,o){return!n||isTopNode(n)||!isElementHidden(n)&&!isInert(n)&&o(getParentNode(n))},isVisibleCached=function(n,o){var e=n.get(o);if(e!==void 0)return e;var t=isVisibleUncached(o,isVisibleCached.bind(void 0,n));return n.set(o,t),t},isAutoFocusAllowedUncached=function(n,o){return n&&!isTopNode(n)?isAutoFocusAllowed(n)?o(getParentNode(n)):!1:!0},isAutoFocusAllowedCached=function(n,o){var e=n.get(o);if(e!==void 0)return e;var t=isAutoFocusAllowedUncached(o,isAutoFocusAllowedCached.bind(void 0,n));return n.set(o,t),t},getDataset=function(n){return n.dataset},isHTMLButtonElement=function(n){return n.tagName==="BUTTON"},isHTMLInputElement=function(n){return n.tagName==="INPUT"},isRadioElement=function(n){return isHTMLInputElement(n)&&n.type==="radio"},notHiddenInput=function(n){return!((isHTMLInputElement(n)||isHTMLButtonElement(n))&&(n.type==="hidden"||n.disabled))},isAutoFocusAllowed=function(n){var o=n.getAttribute(FOCUS_NO_AUTOFOCUS);return![!0,"true",""].includes(o)},isGuard=function(n){var o;return!!(n&&(!((o=getDataset(n))===null||o===void 0)&&o.focusGuard))},isNotAGuard=function(n){return!isGuard(n)},isDefined=function(n){return!!n},tabSort=function(n,o){var e=Math.max(0,n.tabIndex),t=Math.max(0,o.tabIndex),c=e-t,p=n.index-o.index;if(c){if(!e)return 1;if(!t)return-1}return c||p},getTabIndex=function(n){return n.tabIndex<0&&!n.hasAttribute("tabindex")?0:n.tabIndex},orderByTabIndex=function(n,o,e){return toArray$1(n).map(function(t,c){var p=getTabIndex(t);return{node:t,index:c,tabIndex:e&&p===-1?(t.dataset||{}).focusGuard?0:-1:p}}).filter(function(t){return!o||t.tabIndex>=0}).sort(tabSort)},tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],queryTabbables=tabbables.join(","),queryGuardTabbables="".concat(queryTabbables,", [data-focus-guard]"),getFocusablesWithShadowDom=function(n,o){return toArray$1((n.shadowRoot||n).children).reduce(function(e,t){return e.concat(t.matches(o?queryGuardTabbables:queryTabbables)?[t]:[],getFocusablesWithShadowDom(t))},[])},getFocusablesWithIFrame=function(n,o){var e;return n instanceof HTMLIFrameElement&&(!((e=n.contentDocument)===null||e===void 0)&&e.body)?getFocusables([n.contentDocument.body],o):[n]},getFocusables=function(n,o){return n.reduce(function(e,t){var c,p=getFocusablesWithShadowDom(t,o),h=(c=[]).concat.apply(c,p.map(function(y){return getFocusablesWithIFrame(y,o)}));return e.concat(h,t.parentNode?toArray$1(t.parentNode.querySelectorAll(queryTabbables)).filter(function(y){return y===t}):[])},[])},getParentAutofocusables=function(n){var o=n.querySelectorAll("[".concat(FOCUS_AUTO,"]"));return toArray$1(o).map(function(e){return getFocusables([e])}).reduce(function(e,t){return e.concat(t)},[])},filterFocusable=function(n,o){return toArray$1(n).filter(function(e){return isVisibleCached(o,e)}).filter(function(e){return notHiddenInput(e)})},filterAutoFocusable=function(n,o){return o===void 0&&(o=new Map),toArray$1(n).filter(function(e){return isAutoFocusAllowedCached(o,e)})},getTabbableNodes=function(n,o,e){return orderByTabIndex(filterFocusable(getFocusables(n,e),o),!0,e)},getFocusableNodes=function(n,o){return orderByTabIndex(filterFocusable(getFocusables(n),o),!1)},parentAutofocusables=function(n,o){return filterFocusable(getParentAutofocusables(n),o)},contains=function(n,o){return n.shadowRoot?contains(n.shadowRoot,o):Object.getPrototypeOf(n).contains!==void 0&&Object.getPrototypeOf(n).contains.call(n,o)?!0:toArray$1(n.children).some(function(e){var t;if(e instanceof HTMLIFrameElement){var c=(t=e.contentDocument)===null||t===void 0?void 0:t.body;return c?contains(c,o):!1}return contains(e,o)})},filterNested=function(n){for(var o=new Set,e=n.length,t=0;t<e;t+=1)for(var c=t+1;c<e;c+=1){var p=n[t].compareDocumentPosition(n[c]);(p&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&o.add(c),(p&Node.DOCUMENT_POSITION_CONTAINS)>0&&o.add(t)}return n.filter(function(h,y){return!o.has(y)})},getTopParent=function(n){return n.parentNode?getTopParent(n.parentNode):n},getAllAffectedNodes=function(n){var o=asArray(n);
46return o.filter(Boolean).reduce(function(e,t){var c=t.getAttribute(FOCUS_GROUP);return e.push.apply(e,c?filterNested(toArray$1(getTopParent(t).querySelectorAll("[".concat(FOCUS_GROUP,'="').concat(c,'"]:not([').concat(FOCUS_DISABLED,'="disabled"])')))):[t]),e},[])},safeProbe=function(n){try{return n()}catch{return}},getActiveElement=function(n){if(n===void 0&&(n=document),!(!n||!n.activeElement)){var o=n.activeElement;return o.shadowRoot?getActiveElement(o.shadowRoot):o instanceof HTMLIFrameElement&&safeProbe(function(){return o.contentWindow.document})?getActiveElement(o.contentWindow.document):o}},focusInFrame=function(n,o){return n===o},focusInsideIframe=function(n,o){return!!toArray$1(n.querySelectorAll("iframe")).some(function(e){return focusInFrame(e,o)})},focusInside=function(n,o){return o===void 0&&(o=getActiveElement(getFirst(n).ownerDocument)),!o||o.dataset&&o.dataset.focusGuard?!1:getAllAffectedNodes(n).some(function(e){return contains(e,o)||focusInsideIframe(e,o)})},focusIsHidden=function(n){n===void 0&&(n=document);var o=getActiveElement(n);return o?toArray$1(n.querySelectorAll("[".concat(FOCUS_ALLOW,"]"))).some(function(e){return contains(e,o)}):!1},findSelectedRadio=function(n,o){return o.filter(isRadioElement).filter(function(e){return e.name===n.name}).filter(function(e){return e.checked})[0]||n},correctNode=function(n,o){return isRadioElement(n)&&n.name?findSelectedRadio(n,o):n},correctNodes=function(n){var o=new Set;return n.forEach(function(e){return o.add(correctNode(e,n))}),n.filter(function(e){return o.has(e)})},pickFirstFocus=function(n){return n[0]&&n.length>1?correctNode(n[0],n):n[0]},pickFocusable=function(n,o){return n.indexOf(correctNode(o,n))},NEW_FOCUS="NEW_FOCUS",newFocus=function(n,o,e,t,c){var p=n.length,h=n[0],y=n[p-1],g=isGuard(t);if(!(t&&n.indexOf(t)>=0)){var $=t!==void 0?e.indexOf(t):-1,E=c?e.indexOf(c):$,A=c?n.indexOf(c):-1;if($===-1)return A!==-1?A:NEW_FOCUS;if(A===-1)return NEW_FOCUS;var N=$-E,H=e.indexOf(h),Z=e.indexOf(y),X=correctNodes(e),be=t!==void 0?X.indexOf(t):-1,we=be-(c?X.indexOf(c):$);if(!N&&A>=0||o.length===0)return A;var $e=pickFocusable(n,o[0]),Ce=pickFocusable(n,o[o.length-1]);if($<=H&&g&&Math.abs(N)>1)return Ce;if($>=Z&&g&&Math.abs(N)>1)return $e;if(N&&Math.abs(we)>1)return A;if($<=H)return Ce;if($>Z)return $e;if(N)return Math.abs(N)>1?A:(p+A+N)%p}},findAutoFocused=function(n){return function(o){var e,t=(e=getDataset(o))===null||e===void 0?void 0:e.autofocus;return o.autofocus||t!==void 0&&t!=="false"||n.indexOf(o)>=0}},pickAutofocus=function(n,o,e){var t=n.map(function(p){var h=p.node;return h}),c=filterAutoFocusable(t.filter(findAutoFocused(e)));return c&&c.length?pickFirstFocus(c):pickFirstFocus(filterAutoFocusable(o))},getParents=function(n,o){return o===void 0&&(o=[]),o.push(n),n.parentNode&&getParents(n.parentNode.host||n.parentNode,o),o},getCommonParent=function(n,o){for(var e=getParents(n),t=getParents(o),c=0;c<e.length;c+=1){var p=e[c];if(t.indexOf(p)>=0)return p}return!1},getTopCommonParent=function(n,o,e){var t=asArray(n),c=asArray(o),p=t[0],h=!1;return c.filter(Boolean).forEach(function(y){h=getCommonParent(h||y,y)||h,e.filter(Boolean).forEach(function(g){var $=getCommonParent(p,g);$&&(!h||contains($,h)?h=$:h=getCommonParent($,h))})}),h},allParentAutofocusables=function(n,o){return n.reduce(function(e,t){return e.concat(parentAutofocusables(t,o))},[])},reorderNodes=function(n,o){var e=new Map;return o.forEach(function(t){return e.set(t.node,t)}),n.map(function(t){return e.get(t)}).filter(isDefined)},focusSolver=function(n,o){var e=getActiveElement(asArray(n).length>0?document:getFirst(n).ownerDocument),t=getAllAffectedNodes(n).filter(isNotAGuard),c=getTopCommonParent(e||n,n,t),p=new Map,h=getFocusableNodes(t,p),y=h.filter(function(Z){var X=Z.node;return isNotAGuard(X)});if(y[0]){var g=getFocusableNodes([c],p).map(function(Z){var X=Z.node;return X}),$=reorderNodes(g,y),E=$.map(function(Z){var X=Z.node;return X}),A=$.filter(function(Z){var X=Z.tabIndex;return X>=0}).map(function(Z){var X=Z.node;return X}),N=newFocus(E,A,g,e,o);if(N===NEW_FOCUS){var H=pickAutofocus(h,A,allParentAutofocusables(t,p))||pickAutofocus(h,E,allParentAutofocusables(t,p));if(H)return{node:H};console.warn("focus-lock: cannot find any node to move focus into");return}return N===void 0?N:$[N]}},expandFocusableNodes=function(n){var o=getAllAffectedNodes(n).filter(isNotAGuard),e=getTopCommonParent(n,n,o),t=orderByTabIndex(getFocusables([e],!0),!0,!0),c=getFocusables(o,!1);
46return t.map(function(p){var h=p.node,y=p.index;return{node:h,index:y,lockItem:c.indexOf(h)>=0,guard:isGuard(h)}})},focusOn=function(n,o){n&&("focus"in n&&n.focus(o),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus())},guardCount=0,lockDisabled=!1,moveFocusInside=function(n,o,e){e===void 0&&(e={});var t=focusSolver(n,o);if(!lockDisabled&&t){if(guardCount>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,setTimeout(function(){lockDisabled=!1},1);return}guardCount++,focusOn(t.node,e.focusOptions),guardCount--}};function weakRef(n){if(!n)return null;if(typeof WeakRef>"u")return function(){return n||null};var o=n?new WeakRef(n):null;return function(){return o?.deref()||null}}var recordElementLocation=function(n){if(!n)return null;for(var o=[],e=n;e&&e!==document.body;)o.push({current:weakRef(e),parent:weakRef(e.parentElement),left:weakRef(e.previousElementSibling),right:weakRef(e.nextElementSibling)}),e=e.parentElement;return{element:weakRef(n),stack:o,ownerDocument:n.ownerDocument}},restoreFocusTo=function(n){var o,e,t,c,p;if(n)for(var h=n.stack,y=n.ownerDocument,g=new Map,$=0,E=h;$<E.length;$++){var A=E[$],N=(o=A.parent)===null||o===void 0?void 0:o.call(A);if(N&&y.contains(N)){for(var H=(e=A.left)===null||e===void 0?void 0:e.call(A),Z=A.current(),X=N.contains(Z)?Z:void 0,be=(t=A.right)===null||t===void 0?void 0:t.call(A),we=getTabbableNodes([N],g),$e=(p=(c=X??H?.nextElementSibling)!==null&&c!==void 0?c:be)!==null&&p!==void 0?p:H;$e;){for(var Ce=0,Ie=we;Ce<Ie.length;Ce++){var Ne=Ie[Ce];if($e?.contains(Ne.node))return Ne.node}$e=$e.nextElementSibling}if(we.length)return we[0].node}}},captureFocusRestore=function(n){var o=recordElementLocation(n);return function(){return restoreFocusTo(o)}},getRelativeFocusable=function(n,o,e){if(!n||!o)return console.error("no element or scope given"),{};var t=asArray(o);if(t.every(function(h){return!contains(h,n)}))return console.error("Active element is not contained in the scope"),{};var c=e?getTabbableNodes(t,new Map):getFocusableNodes(t,new Map),p=c.findIndex(function(h){var y=h.node;return y===n});if(p!==-1)return{prev:c[p-1],next:c[p+1],first:c[0],last:c[c.length-1]}},getBoundary=function(n,o){var e=o?getTabbableNodes(asArray(n),new Map):getFocusableNodes(asArray(n),new Map);return{first:e[0],last:e[e.length-1]}},defaultOptions=function(n){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},n)},moveFocus=function(n,o,e){o===void 0&&(o={});var t=defaultOptions(o),c=getRelativeFocusable(n,t.scope,t.onlyTabbable);if(c){var p=e(c,t.cycle);p&&focusOn(p.node,t.focusOptions)}},focusNextElement=function(n,o){o===void 0&&(o={}),moveFocus(n,o,function(e,t){var c=e.next,p=e.first;return c||t&&p})},focusPrevElement=function(n,o){o===void 0&&(o={}),moveFocus(n,o,function(e,t){var c=e.prev,p=e.last;return c||t&&p})},pickBoundary=function(n,o,e){var t,c=getBoundary(n,(t=o.onlyTabbable)!==null&&t!==void 0?t:!0),p=c[e];p&&focusOn(p.node,o.focusOptions)},focusFirstElement=function(n,o){o===void 0&&(o={}),pickBoundary(n,o,"first")},focusLastElement=function(n,o){o===void 0&&(o={}),pickBoundary(n,o,"last")};function deferAction(n){setTimeout(n,1)}var inlineProp=function n(o,e){var t={};return t[o]=e,t},extractRef=function n(o){return o&&"current"in o?o.current:o},focusOnBody=function n(){return document&&document.activeElement===document.body},isFreeFocus=function n(){return focusOnBody()||focusIsHidden()},lastActiveTrap=null,lastActiveFocus=null,tryRestoreFocus=function n(){return null},lastPortaledElement=null,focusWasOutsideWindow=!1,windowFocused=!1,defaultWhitelist=function n(){return!0},focusWhitelisted=function n(o){return(lastActiveTrap.whiteList||defaultWhitelist)(o)},recordPortal=function n(o,e){lastPortaledElement={observerNode:o,portaledElement:e}},focusIsPortaledPair=function n(o){return lastPortaledElement&&lastPortaledElement.portaledElement===o};function autoGuard(n,o,e,t){var c=null,p=n;do{var h=t[p];if(h.guard)h.node.dataset.focusAutoGuard&&(c=h);else if(h.lockItem){if(p!==n)return;c=null}else break}while((p+=e)!==o);c&&(c.node.tabIndex=0)}var focusWasOutside=function n(o){return o?!!focusWasOutsideWindow:focusWasOutsideWindow==="meanwhile"},checkInHost=function n(o,e,t){return e&&(e.host===o&&(!e.activeElement||t.contains(e.activeElement))||e.parentNode&&n(o,e.parentNode,t))},withinHost=function n(o,e){return e.some(function(t){return checkInHost(o,t,t)})},getNodeFocusables=function n(o){return getFocusableNodes(o,new Map)},isNotFocusable=function n(o){return!getNodeFocusables([o.parentNode]).some(function(e){return e.no
46de===o})},activateTrap=function n(){var o=!1;if(lastActiveTrap){var e=lastActiveTrap,t=e.observed,c=e.persistentFocus,p=e.autoFocus,h=e.shards,y=e.crossFrame,g=e.focusOptions,$=e.noFocusGuards,E=t||lastPortaledElement&&lastPortaledElement.portaledElement;if(focusOnBody()&&lastActiveFocus&&(!document.body.contains(lastActiveFocus)||isNotFocusable(lastActiveFocus))){lastActiveFocus=null;var A=tryRestoreFocus();A&&A.focus()}var N=document&&document.activeElement;if(E){var H=[E].concat(h.map(extractRef).filter(Boolean)),Z=function(){if(!focusWasOutside(y)||!$||!lastActiveFocus||windowFocused)return!1;var Ce=getNodeFocusables(H),Ie=Ce.findIndex(function(Ne){var Fe=Ne.node;return Fe===lastActiveFocus});return Ie===0||Ie===Ce.length-1};if((!N||focusWhitelisted(N))&&(c||Z()||!isFreeFocus()||!lastActiveFocus&&p)&&(E&&!(focusInside(H)||N&&withinHost(N,H)||focusIsPortaledPair(N))&&(document&&!lastActiveFocus&&N&&!p?(N.blur&&N.blur(),document.body.focus()):(o=moveFocusInside(H,lastActiveFocus,{focusOptions:g}),lastPortaledElement={})),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement,tryRestoreFocus=captureFocusRestore(lastActiveFocus)),document&&N!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var X=document&&document.activeElement,be=expandFocusableNodes(H),we=be.map(function($e){var Ce=$e.node;return Ce}).indexOf(X);we>-1&&(be.filter(function($e){var Ce=$e.guard,Ie=$e.node;return Ce&&Ie.dataset.focusAutoGuard}).forEach(function($e){var Ce=$e.node;return Ce.removeAttribute("tabIndex")}),autoGuard(we,be.length,1,be),autoGuard(we,-1,-1,be))}}}return o},onTrap=function n(o){activateTrap()&&o&&(o.stopPropagation(),o.preventDefault())},onBlur=function n(){return deferAction(activateTrap)},onFocus=function n(o){var e=o.target,t=o.currentTarget;t.contains(e)||recordPortal(t,e)},FocusWatcher=function n(){return null},onWindowFocus=function n(){windowFocused=!0},onWindowBlur=function n(){windowFocused=!1,focusWasOutsideWindow="just",deferAction(function(){focusWasOutsideWindow="meanwhile"})},attachHandler=function n(){document.addEventListener("focusin",onTrap),document.addEventListener("focusout",onBlur),window.addEventListener("focus",onWindowFocus),window.addEventListener("blur",onWindowBlur)},detachHandler=function n(){document.removeEventListener("focusin",onTrap),document.removeEventListener("focusout",onBlur),window.removeEventListener("focus",onWindowFocus),window.removeEventListener("blur",onWindowBlur)};function reducePropsToState(n){return n.filter(function(o){var e=o.disabled;return!e})}var focusLockAPI={moveFocusInside,focusInside,focusNextElement,focusPrevElement,focusFirstElement,focusLastElement,captureFocusRestore};function handleStateChangeOnClient(n){var o=n.slice(-1)[0];o&&!lastActiveTrap&&attachHandler();var e=lastActiveTrap,t=e&&o&&o.id===e.id;lastActiveTrap=o,e&&!t&&(e.onDeactivation(),n.filter(function(c){var p=c.id;return p===e.id}).length||e.returnFocus(!o)),o?(lastActiveFocus=null,(!t||e.observed!==o.observed)&&o.onActivation(focusLockAPI),activateTrap(),deferAction(activateTrap)):(detachHandler(),lastActiveFocus=null)}mediumFocus.assignSyncMedium(onFocus);mediumBlur.assignMedium(onBlur);mediumEffect.assignMedium(function(n){return n(focusLockAPI)});const FocusTrap=withSideEffect(reducePropsToState,handleStateChangeOnClient)(FocusWatcher);var FocusLockCombination=reactExports.forwardRef(function n(o,e){return reactExports.createElement(FocusLock,_extends$C({sideCar:FocusTrap,ref:e},o))}),_ref=FocusLock.propTypes||{};_ref.sideCar;_objectWithoutPropertiesLoose$q(_ref,["sideCar"]);FocusLockCombination.propTypes={};var useFocusInside=function n(o){reactExports.useEffect(function(){var e=!0;return mediumEffect.useMedium(function(t){var c=o&&o.current;e&&c&&(t.focusInside(c)||t.moveFocusInside(c,null))}),function(){e=!1}},[o])};function MoveFocusInside(n){var o=n.disabled,e=o===void 0?!1:o,t=n.className,c=n.children,p=reactExports.useRef(null);return useFocusInside(e?void 0:p),reactExports.createElement("div",_extends$C({}
46,inlineProp(FOCUS_AUTO,!e),{ref:p,className:t}),c)}MoveFocusInside.propTypes={};var SIZE$2={default:"default",full:"full",auto:"auto"},SIZE_WIDTHS={default:"500px",full:"100%",auto:"auto"},ROLE={dialog:"dialog"},CLOSE_SOURCE={closeButton:"closeButton",backdrop:"backdrop",escape:"escape"};function ownKeys$p(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$n(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$p(Object(e),!0).forEach(function(t){_defineProperty$t(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$p(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$t(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function getSizeStyles(n){var o={maxWidth:"100%",width:null};return typeof n=="number"?o.width="".concat(n,"px"):SIZE$2[n]?o.width=SIZE_WIDTHS[n]:typeof n=="string"&&(o.width=n),n===SIZE$2.full&&(o.alignSelf="stretch"),o}var Root$3=styled$1("div",function(n){var o=n.$isOpen;return{position:"fixed",overflow:"auto",right:0,bottom:0,top:0,left:0,pointerEvents:o?"auto":"none"}});Root$3.displayName="Root";Root$3.displayName="Root";var DialogContainer=styled$1("div",function(n){var o=n.$animate,e=n.$isOpen,t=n.$isVisible,c=n.$theme,p={transitionProperty:"opacity",transitionDuration:c.animation.timing400,transitionTimingFunction:c.animation.easeOutCurve};return _objectSpread$n({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",minHeight:"100%",userSelect:"none",pointerEvents:"auto",backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",opacity:t&&e?1:0},o?p:null)});DialogContainer.displayName="DialogContainer";DialogContainer.displayName="DialogContainer";var Dialog$2=styled$1("div",function(n){var o=n.$animate,e=n.$isOpen,t=n.$isVisible,c=n.$size,p=n.$theme;return _objectSpread$n(_objectSpread$n(_objectSpread$n({position:"relative",backgroundColor:p.colors.backgroundPrimary,borderTopLeftRadius:p.borders.radius500,borderTopRightRadius:p.borders.radius500,borderBottomRightRadius:p.borders.radius500,borderBottomLeftRadius:p.borders.radius500,marginLeft:p.sizing.scale600,marginTop:p.sizing.scale600,marginRight:p.sizing.scale600,marginBottom:p.sizing.scale600},getSizeStyles(c)),{},{opacity:t&&e?1:0,transform:t?"translateY(0)":"translateY(20px)"},o?{transitionProperty:"opacity, transform",transitionDuration:p.animation.timing400,transitionTimingFunction:p.animation.easeOutCurve}:null),{},{userSelect:"text",pointerEvents:e?"all":"none",":focus":{outline:"none"}})});Dialog$2.displayName="Dialog";Dialog$2.displayName="Dialog";var Close=styled$1("button",function(n){var o,e=n.$theme,t=n.$isFocusVisible,c=e.direction==="rtl"?"left":"right";return o={background:"transparent",outline:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,color:e.colors.modalCloseColor,transitionProperty:"color, border-color",transitionDuration:e.animation.timing200,borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftColor:"transparent",borderRightColor:"transparent",borderTopColor:"transparent",borderBottomColor:"transparent",":hover":{color:e.colors.modalCloseColorHover},":focus":{outline:t?"3px solid ".concat(e.colors.accent):"none"},position:"absolute",top:e.sizing.scale500},_defineProperty$t(o,c,e.sizing.scale500),_defineProperty$t(o,"width",e.sizing.scale800),_defineProperty$t(o,"height",e.sizing.scale800),_defineProperty$t(o,"display","flex"),_defineProperty$t(o,"justifyContent","center"),_defineProperty$t(o,"alignItems","center"),_defineProperty$t(o,"cursor","pointer"),o});Close.displayName="Close";Close.displayName="Close";var ModalHeader$1=styled$1("div",function(n){var o,e=n.$theme,t=e.direction==="rtl"?"marginRight":"marginLeft",c=e.direction==="rtl"?"marginLeft":"marginRight";return _objectSpread$n(_objectSpread$n({},e.typography.font550),{},(o={color:e.colors.contentPrimary,marginTop:e.sizing.scale900,marginBottom:e.sizing.scale600},_defineProperty$t(o,t,e.sizing.scale800),_defineProperty$t(o,c,e.sizing.scale900),o))});ModalHeader$1.displayName="ModalHeader";ModalHeader$1.displayName="ModalHeader";var ModalBody$2=styled$1("div",function(n){var o=n.$theme;return _objectSpread$n(_objectSpread$n({},o.typography.font200),{},{color:o.colors.contentSecondary,marginTop:o.sizing.scale600,marginLeft:o.sizing.scale800,marginRight:o.sizing.scale800,marginBottom:o.sizing.scale700})});
46ModalBody$2.displayName="ModalBody";ModalBody$2.displayName="ModalBody";var ModalFooter$1=styled$1("div",function(n){var o=n.$theme;return _objectSpread$n(_objectSpread$n({},o.typography.font200),{},{marginTop:o.sizing.scale700,marginLeft:o.sizing.scale800,marginRight:o.sizing.scale800,paddingTop:o.sizing.scale500,paddingBottom:o.sizing.scale500,textAlign:o.direction==="rtl"?"left":"right"})});ModalFooter$1.displayName="ModalFooter";ModalFooter$1.displayName="ModalFooter";function CloseIcon(){return reactExports.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10",style:{stroke:"currentColor"},xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("path",{d:"M9 1L5 5M1 9L5 5M5 5L1 1M5 5L9 9",strokeWidth:"2",strokeLinecap:"round"}))}function _typeof$f(n){"@babel/helpers - typeof";return _typeof$f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$f(n)}function _extends$v(){return _extends$v=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$v.apply(this,arguments)}function _slicedToArray$k(n,o){return _arrayWithHoles$k(n)||_iterableToArrayLimit$k(n,o)||_unsupportedIterableToArray$k(n,o)||_nonIterableRest$k()}function _nonIterableRest$k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 47In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$k(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$k(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$k(n,o)}}function _arrayLikeToArray$k(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$k(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$k(n){if(Array.isArray(n))return n}function _classCallCheck$d(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$d(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$d(n,o,e){return o&&_defineProperties$d(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$d(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$d(n,o)}function _setPrototypeOf$d(n,o){return _setPrototypeOf$d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$d(n,o)}function _createSuper$d(n){var o=_isNativeReflectConstruct$d();return function(){var t=_getPrototypeOf$d(n),c;if(o){var p=_getPrototypeOf$d(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$d(this,c)}}function _possibleConstructorReturn$d(n,o){if(o&&(_typeof$f(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$e(n)}function _assertThisInitialized$e(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}
47function _getPrototypeOf$d(n){return _getPrototypeOf$d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$d(n)}function _defineProperty$s(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var Modal$1=function(n){_inherits$d(e,n);var o=_createSuper$d(e);function e(){var t;_classCallCheck$d(this,e);for(var c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];return t=o.call.apply(o,[this].concat(p)),_defineProperty$s(_assertThisInitialized$e(t),"animateOutTimer",void 0),_defineProperty$s(_assertThisInitialized$e(t),"animateStartTimer",void 0),_defineProperty$s(_assertThisInitialized$e(t),"dialogContainerRef",reactExports.createRef()),_defineProperty$s(_assertThisInitialized$e(t),"lastFocus",null),_defineProperty$s(_assertThisInitialized$e(t),"lastMountNodeOverflowStyle",null),_defineProperty$s(_assertThisInitialized$e(t),"rootRef",reactExports.createRef()),_defineProperty$s(_assertThisInitialized$e(t),"state",{isVisible:!1,mounted:!1,isFocusVisible:!1}),_defineProperty$s(_assertThisInitialized$e(t),"handleFocus",function(y){isFocusVisible(y)&&t.setState({isFocusVisible:!0})}),_defineProperty$s(_assertThisInitialized$e(t),"handleBlur",function(y){t.state.isFocusVisible!==!1&&t.setState({isFocusVisible:!1})}),_defineProperty$s(_assertThisInitialized$e(t),"onEscape",function(){t.props.closeable&&t.triggerClose(CLOSE_SOURCE.escape)}),_defineProperty$s(_assertThisInitialized$e(t),"onDocumentClick",function(y){y.target&&y.target instanceof HTMLElement&&y.target.contains(t.dialogContainerRef.current)&&t.onBackdropClick()}),_defineProperty$s(_assertThisInitialized$e(t),"onBackdropClick",function(){t.props.closeable&&t.triggerClose(CLOSE_SOURCE.backdrop)}),_defineProperty$s(_assertThisInitialized$e(t),"onCloseClick",function(){t.triggerClose(CLOSE_SOURCE.closeButton)}),_defineProperty$s(_assertThisInitialized$e(t),"animateOutComplete",function(){t.setState({isVisible:!1})}),t}return _createClass$d(e,[{key:"componentDidMount",value:function(){this.setState({mounted:!0})}},{key:"componentWillUnmount",value:function(){this.resetMountNodeScroll(),this.clearTimers()}},{key:"componentDidUpdate",value:function(c,p){var h=this.props.isOpen;(h!==c.isOpen||h&&this.state.mounted&&!p.mounted)&&(h?this.didOpen():this.didClose())}},{key:"disableMountNodeScroll",value:function(){var c=this.getMountNode();this.lastMountNodeOverflowStyle=c.style.overflow||"",c.style.overflow="hidden"}},{key:"resetMountNodeScroll",value:function(){var c=this.getMountNode(),p=this.lastMountNodeOverflowStyle;c&&p!==null&&(c.style.overflow==="hidden"&&(c.style.overflow=p||""),this.lastMountNodeOverflowStyle=null)}},{key:"clearTimers",value:function(){this.animateOutTimer&&clearTimeout(this.animateOutTimer),this.animateStartTimer&&cancelAnimationFrame(this.animateStartTimer)}},{key:"didOpen",value:function(){var c=this,p=this.rootRef.current;p&&(p.scrollTop=0),this.clearTimers(),this.disableMountNodeScroll(),this.animateStartTimer=requestAnimationFrame(function(){c.setState({isVisible:!0})})}},{key:"didClose",value:function(){this.resetMountNodeScroll(),this.animateOutTimer=setTimeout(this.animateOutComplete,500)}},{key:"triggerClose",value:function(c){this.props.onClose&&c&&this.props.onClose({closeSource:c})}},{key:"getSharedProps",value:function(){var c=this.props,p=c.animate,h=c.isOpen,y=c.size,g=c.role,$=c.closeable;return{$animate:p,$isVisible:this.state.isVisible,$isOpen:!!h,$size:y,$role:g,$closeable:!!$,$isFocusVisible:this.state.isFocusVisible}}},{key:"getMountNode",value:function(){var c=this.props.mountNode;return c||document.body}},{key:"getChildren",value:function(){var c=this.props.children;return typeof c=="function"?c():c}},{key:"renderModal",value:function(){var c=this,p=this.props,h=p.overrides,y=h===void 0?{}:h,g=p.closeable,$=p.role,E=p.autoFocus,A=p.focusLock,N=p.returnFocus,H=y.Root,Z=y.Dialog,X=y.DialogContainer,be=y.Close,we=getOverrides(H,Root$3),$e=_slicedToArray$k(we,2),Ce=$e[0],Ie=$e[1],Ne=getOverrides(X,DialogContainer),Fe=_slicedToArray$k(Ne,2),Be=Fe[0],Ge=Fe[1],je=getOverrides(Z,Dialog$2),De=_slicedToArray$k(je,2),Ue=De[0],Je=De[1],Xe=getOverrides(be,Close),Ke=_slicedToArray$k(Xe,2),ze=Ke[0],nt=Ke[1],ct=this.getSharedProps(),at=this.getChildren();return reactExports.createElement(LocaleContext.Consumer,null,function(dt){return reactExports.createElement(FocusLockCombination,{disabled:!A,crossFrame:!1,returnFocus:N,autoFocus:E},reactExports.createElement(Ce,_extends$v({"data-baseweb":"modal",ref:c.rootRef}
47,ct,Ie),reactExports.createElement(Be,_extends$v({ref:c.dialogContainerRef},ct,Ge),reactExports.createElement(Ue,_extends$v({tabIndex:-1,"aria-modal":!0,"aria-label":"dialog",role:$},ct,Je),at,g?reactExports.createElement(ze,_extends$v({"aria-label":dt.modal.close,onClick:c.onCloseClick},ct,nt,{onFocus:forkFocus(nt,c.handleFocus),onBlur:forkBlur(nt,c.handleBlur)}),reactExports.createElement(CloseIcon,null)):null))))})}},{key:"render",value:function(){return!this.state.mounted||!this.props.isOpen&&!this.state.isVisible?null:reactExports.createElement(Layer,{onEscape:this.onEscape,onDocumentClick:this.onDocumentClick,mountNode:this.props.mountNode},this.renderModal())}}]),e}(reactExports.Component);_defineProperty$s(Modal$1,"defaultProps",{animate:!0,autoFocus:!0,focusLock:!0,returnFocus:!0,closeable:!0,name:"dialog",isOpen:!1,overrides:{},role:ROLE.dialog,size:SIZE$2.default});const scriptRel="modulepreload",assetsURL=function(n,o){return new URL(n,o).href},seen={},__vitePreload=function n(o,e,t){let c=Promise.resolve();if(e&&e.length>0){let $=function(E){return Promise.all(E.map(A=>Promise.resolve(A).then(N=>({status:"fulfilled",value:N}),N=>({status:"rejected",reason:N}))))};const h=document.getElementsByTagName("link"),y=document.querySelector("meta[property=csp-nonce]"),g=y?.nonce||y?.getAttribute("nonce");c=$(e.map(E=>{if(E=assetsURL(E,t),E in seen)return;seen[E]=!0;const A=E.endsWith(".css"),N=A?'[rel="stylesheet"]':"";if(t)for(let Z=h.length-1;Z>=0;Z--){const X=h[Z];if(X.href===E&&(!A||X.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${E}"]${N}`))return;const H=document.createElement("link");if(H.rel=A?"stylesheet":scriptRel,A||(H.as="script"),H.crossOrigin="",H.href=E,g&&H.setAttribute("nonce",g),document.head.appendChild(H),A)return new Promise((Z,X)=>{H.addEventListener("load",Z),H.addEventListener("error",()=>X(new Error(`Unable to preload CSS for ${E}`)))})}))}function p(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return c.then(h=>{for(const y of h||[])y.status==="rejected"&&p(y.reason);return o().catch(p)})};function escapeStringRegexp$1(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const replacements=[["Ã","ss"],["áº","Ss"],["ä","ae"],["Ã","Ae"],["ö","oe"],["Ã","Oe"],["ü","ue"],["Ã","Ue"],["Ã","A"],["Ã","A"],["Ã","A"],["Ã","A"],["Ã","Ae"],["Ã
","A"],["Ã","AE"],["Ã","C"],["Ã","E"],["Ã","E"],["Ã","E"],["Ã","E"],["Æ","A"],["Ã","I"],["Ã","I"],["Ã","I"],["Ã","I"],["Ã","D"],["Ã","N"],["Ã","O"],["Ã","O"],["Ã","O"],["Ã","O"],["Ã","Oe"],["Å","O"],["Å","O"],["Ã","O"],["Å","OE"],["Ã","U"],["Ã","U"],["Ã","U"],["Ã","Ue"],["Ű","U"],["Ã","Y"],["Ã","TH"],["Ã","ss"],["à ","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["Ã¥","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["É","a"],["ì","i"],["Ã","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["Å","o"],["Å","o"],["ø","o"],["Å","oe"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["à ","a"],["Ã","A"],["á","a"],["Ã","A"],["â","a"],["Ã","A"],["ã","a"],["Ã","A"],["è","e"],["Ã","E"],["é","e"],["Ã","E"],["ê","e"],["Ã","E"],["ì","i"],["Ã","I"],["Ã","i"],["Ã","I"],["ò","o"],["Ã","O"],["ó","o"],["Ã","O"],["ô","o"],["Ã","O"],["õ","o"],["Ã","O"],["ù","u"],["Ã","U"],["ú","u"],["Ã","U"],["ý","y"],["Ã","Y"],["Ä","a"],["Ä","A"],["Ä","D"],["Ä","d"],["Ä©","i"],["Ĩ","I"],["Å©","u"],["Ũ","U"],["Æ¡","o"],["Æ ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["áº","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","
47E"],["á»","e"],["á»","E"],["á»","e"],["á»","E"],["á»
","e"],["á»","E"],["á»","e"],["á»","E"],["á»","i"],["á»","I"],["á»","i"],["á»","I"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["ỡ","o"],["á» ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["á»§","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["á»","u"],["Ử","U"],["ữ","u"],["á»®","U"],["á»±","u"],["á»°","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["á»´","Y"],["á»·","y"],["á»¶","Y"],["ỹ","y"],["Ỹ","Y"],["Ø¡","e"],["Ø¢","a"],["Ø£","a"],["ؤ","w"],["Ø¥","a"],["ئ","y"],["ا","a"],["ب","b"],["Ø©","t"],["ت","t"],["Ø«","th"],["ج","j"],["Ø","h"],["Ø®","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["Ø´","sh"],["ص","s"],["ض","d"],["Ø·","t"],["ظ","z"],["ع","e"],["غ","gh"],["Ù","_"],["Ù","f"],["Ù","q"],["Ù","k"],["Ù","l"],["Ù
","m"],["Ù","n"],["Ù","h"],["Ù","w"],["Ù","a"],["Ù","y"],["Ùâ","a"],["Ù","u"],["Ùâ","i"],["Ù ","0"],["Ù¡","1"],["Ù¢","2"],["Ù£","3"],["Ù¤","4"],["Ù¥","5"],["Ù¦","6"],["Ù§","7"],["Ù¨","8"],["Ù©","9"],["Ú","ch"],["Ú©","k"],["Ú¯","g"],["Ù¾","p"],["Ú","zh"],["Û","y"],["Û°","0"],["Û±","1"],["Û²","2"],["Û³","3"],["Û´","4"],["Ûµ","5"],["Û¶","6"],["Û·","7"],["Û¸","8"],["Û¹","9"],["Ù¼","p"],["Ú","z"],["Ú
","c"],["Ú","d"],["ﺫ","d"],["ïº","r"],["Ú","r"],["ﺯ","z"],["Ú","g"],["Ú","x"],["Ú«","g"],["Ú¼","n"],["Û","e"],["Û","e"],["Û","ai"],["Ù¹","t"],["Ú","d"],["Ú","r"],["Úº","n"],["Û","h"],["Ú¾","h"],["Û","e"],["Ð","A"],["а","a"],["Ð","B"],["б","b"],["Ð","V"],["в","v"],["Ð","G"],["г","g"],["Ð","D"],["д","d"],["Ñе","ye"],["Ъе","Ye"],["ÑÐ","yE"],["ЪÐ","YE"],["Ð","E"],["е","e"],["Ð","Yo"],["Ñ","yo"],["Ð","Zh"],["ж","zh"],["Ð","Z"],["з","z"],["Ð","I"],["и","i"],["Ñй","iy"],["Ый","Iy"],["ЫÐ","IY"],["ÑÐ","iY"],["Ð","Y"],["й","y"],["Ð","K"],["к","k"],["Ð","L"],["л","l"],["Ð","M"],["м","m"],["Ð","N"],["н","n"],["Ð","O"],["о","o"],["Ð","P"],["п","p"],["Ð ","R"],["Ñ","r"],["С","S"],["Ñ","s"],["Т","T"],["Ñ","t"],["У","U"],["Ñ","u"],["Ф","F"],["Ñ","f"],["Ð¥","Kh"],["Ñ
","kh"],["Ц","Ts"],["Ñ","ts"],["Ч","Ch"],["Ñ","ch"],["Ш","Sh"],["Ñ","sh"],["Щ","Sch"],["Ñ","sch"],["Ъ",""],["Ñ",""],["Ы","Y"],["Ñ","y"],["Ь",""],["Ñ",""],["Ð","E"],["Ñ","e"],["Ю","Yu"],["Ñ","yu"],["Я","Ya"],["Ñ","ya"],["Ä","a"],["Ä","A"],["È","s"],["È","S"],["È","t"],["È","T"],["Å£","t"],["Å¢","T"],["Å","s"],["Å","S"],["ç","c"],["Ã","C"],["Ä","g"],["Ä","G"],["ı","i"],["İ","I"],["Õ¡","a"],["Ô±","A"],["Õ¢","b"],["Ô²","B"],["Õ£","g"],["Ô³","G"],["Õ¤","d"],["Ô´","D"],["Õ¥","ye"],["Ôµ","Ye"],["Õ¦","z"],["Ô¶","Z"],["Õ§","e"],["Ô·","E"],["Õ¨","y"],["Ô¸","Y"],["Õ©","t"],["Ô¹","T"],["Õª","zh"],["Ôº","Zh"],["Õ«","i"],["Ô»","I"],["Õ¬","l"],["Ô¼","L"],["Õ","kh"],["Ô½","Kh"],["Õ®","ts"],["Ô¾","Ts"],["Õ¯","k"],["Ô¿","K"],["Õ°","h"],["Õ","H"],["Õ±","dz"],["Õ","Dz"],["Õ²","gh"],["Õ","Gh"],["Õ³","tch"],["Õ","Tch"],["Õ´","m"],["Õ","M"],["Õµ","y"],["Õ
","Y"],["Õ¶","n"],["Õ","N"],["Õ·","sh"],["Õ","Sh"],["Õ¸Ö","u"],["ÕÕ","U"],["ÕÖ","U"],["Õ¸","vo"],["Õ","Vo"],["Õ¹","ch"],["Õ","Ch"],["Õº","p"],["Õ","P"],["Õ»","j"],["Õ","J"],["Õ¼","r"],["Õ","R"],["Õ½","s"],["Õ","S"],["Õ¾","v"],["Õ","V"],["Õ¿","t"],["Õ","T"],["Ö","r"],["Õ","R"],["Ö","c"],["Õ","C"],["Ö","p"],["Õ","P"],["Ö","q"],["Õ","Q"],["Ö
","o"],["Õ","O"],["Ö","f"],["Õ","F"],["Ö","yev"],["á","a"],["á","b"],["á","g"],["á","d"],["á","e"],["á","v"],["á","z"],["á","t"],["á","i"],["á","k"],["á","l"],["á","m"],["á","n"],["á","o"],["á","p"],["á","zh"],["á ","r"],["á¡","s"],["á¢","t"],["á£","u"],["á¤","ph"],["á¥","q"],["á¦","gh"],["á§","k"],["á¨","sh"],["á©","ch"],["áª","ts"],["á«","dz"],["á¬","ts"],["á","tch"],["á®","kh"],["á¯","j"],["á°","h"],["Ä","c"],["Ä","d"],["Ä","e"],["Å","n"],["Å","r"],["Å¡","s"],["Å¥","t"],["ů","u"],["ž","z"],["Ä","C"],["Ä","D"],["Ä","E"],["Å","N"],["Å","R"],["Å ","S"],["Ť","T"],["Å®","U"],["Ž","Z"],["Þ","h"],["Þ","sh"],["Þ","
47n"],["Þ","r"],["Þ","b"],["Þ
","lh"],["Þ","k"],["Þ","a"],["Þ","v"],["Þ","m"],["Þ","f"],["Þ","dh"],["Þ","th"],["Þ","l"],["Þ","g"],["Þ","gn"],["Þ","s"],["Þ","d"],["Þ","z"],["Þ","t"],["Þ","y"],["Þ","p"],["Þ","j"],["Þ","ch"],["Þ","tt"],["Þ","hh"],["Þ","kh"],["Þ","th"],["Þ","z"],["Þ","sh"],["Þ","s"],["Þ","d"],["Þ ","t"],["Þ¡","z"],["Þ¢","a"],["Þ£","gh"],["Þ¤","q"],["Þ¥","w"],["Þ¦","a"],["Þ§","aa"],["Þ¨","i"],["Þ©","ee"],["Þª","u"],["Þ«","oo"],["Þ¬","e"],["Þ","ey"],["Þ®","o"],["Þ¯","oa"],["Þ°",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["Ï","p"],["Ï","r"],["Ï","s"],["Ï","t"],["Ï
","y"],["Ï","f"],["Ï","x"],["Ï","ps"],["Ï","o"],["ά","a"],["Î","e"],["ί","i"],["Ï","o"],["Ï","y"],["ή","i"],["Ï","o"],["Ï","s"],["Ï","i"],["ΰ","y"],["Ï","y"],["Î","i"],["Î","A"],["Î","B"],["Î","G"],["Î","D"],["Î","E"],["Î","Z"],["Î","I"],["Î","TH"],["Î","I"],["Î","K"],["Î","L"],["Î","M"],["Î","N"],["Î","KS"],["Î","O"],["Î ","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Î¥","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Î","A"],["Î","E"],["Î","I"],["Î","O"],["Î","Y"],["Î","I"],["Î","O"],["Ϊ","I"],["Ϋ","Y"],["Ä","a"],["Ä","e"],["Ä£","g"],["Ä«","i"],["Ä·","k"],["ļ","l"],["Å","n"],["Å«","u"],["Ä","A"],["Ä","E"],["Ä¢","G"],["Ī","I"],["Ķ","K"],["Ä»","L"],["Å
","N"],["Ū","U"],["Ä","c"],["Å¡","s"],["ž","z"],["Ä","C"],["Å ","S"],["Ž","Z"],["Ä
","a"],["Ä","c"],["Ä","e"],["Ä","e"],["į","i"],["Å¡","s"],["ų","u"],["Å«","u"],["ž","z"],["Ä","A"],["Ä","C"],["Ä","E"],["Ä","E"],["Ä®","I"],["Å ","S"],["Ų","U"],["Ū","U"],["Ð","Kj"],["Ñ","kj"],["Ð","Lj"],["Ñ","lj"],["Ð","Nj"],["Ñ","nj"],["ТÑ","Ts"],["ÑÑ","ts"],["Ä
","a"],["Ä","c"],["Ä","e"],["Å","l"],["Å","n"],["Å","s"],["ź","z"],["ż","z"],["Ä","A"],["Ä","C"],["Ä","E"],["Å","L"],["Å","N"],["Å","S"],["Ź","Z"],["Å»","Z"],["Ð","Ye"],["Ð","I"],["Ð","Yi"],["Ò","G"],["Ñ","ye"],["Ñ","i"],["Ñ","yi"],["Ò","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["Â¥","Y"],["ß¿","b"],["à§³","t"],["૱","Bo"],["฿","B"],["â ","CE"],["â¡","C"],["â¢","Cr"],["â£","F"],["â¥","m"],["â¦","N"],["â§","Pt"],["â¨","Rs"],["â©","W"],["â«","s"],["â¬","E"],["â","K"],["â®","T"],["â¯","Dp"],["â°","S"],["â±","P"],["â²","G"],["â³","A"],["â´","S"],["âµ","C"],["â¶","tt"],["â·","S"],["â¸","T"],["â¹","R"],["âº","L"],["â½","P"],["â¿","B"],["﹩","$"],["ï¿ ","c"],["ï¿¥","Y"],["₩","W"],["ð","A"],["ð","B"],["ð","C"],["ð","D"],["ð","E"],["ð
","F"],["ð","G"],["ð","H"],["ð","I"],["ð","J"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð","Q"],["ð","R"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","Z"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð ","g"],["ð¡","h"],["ð¢","i"],["ð£","j"],["ð¤","k"],["ð¥","l"],["ð¦","m"],["ð§","n"],["ð¨","o"],["ð©","p"],["ðª","q"],["ð«","r"],["ð¬","s"],["ð","t"],["ð®","u"],["ð¯","v"],["ð°","w"],["ð±","x"],["ð²","y"],["ð³","z"],["ð´","A"],["ðµ","B"],["ð¶","C"],["ð·","D"],["ð¸","E"],["ð¹","F"],["ðº","G"],["ð»","H"],["ð¼","I"],["ð½","J"],["ð¾","K"],["ð¿","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð","Q"],["ð
","R"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","Z"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð","g"],["ð","i"],["ð","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð","o"],["ð","p"],["ð","q"],["ð","r"],["ð ","s"],["ð¡","t"],["ð¢","u"],["ð£","v"],["ð¤","w"],["ð¥","x"],["ð¦","y"],["ð§","z"],["ð¨","A"],["ð©","B"],["ðª","C"],["ð«","D"],["ð¬","E"],["ð","F"],["ð®","G"],["ð¯","H"],["ð°","I"],["ð±","J"],["ð²","K"],["ð³","L"],["ð´","M"],["ðµ","N"],["ð¶","O"],["ð·","P"],["ð¸","Q"],["ð¹","R"],["ðº","S"],["ð»","T"],["ð¼","U"],["ð½","V"],["ð¾","W"],["ð¿","X"],["ð","Y"],["ð","Z"],["ð","a"],["ð","b"],["ð","c"],["ð
","d"],["ð","e"],["ð","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð","o"],["ð","p"],["ð","q"],["ð","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð","w"],["ð","x"],["ð","y"],["ð","z"],["ð","A"],["ð","C"],["ð","D"],["ð¢","g"],["ð¥","J"],["ð¦","K"],["ð©","N"],["ðª","O"],["ð«","P"],["ð¬","Q"],["ð®","S"],["ð¯","T"],["ð°","U"],["ð±","V"],["ð²","W"],["ð³","X"],["ð´","Y"],["ðµ","Z"],["ð¶","a"],["ð·","b"],["ð¸","c"],["ð¹","d"],["ð»","f"],["ð½","h"],["ð¾","i"],["ð¿","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð
","p"],["ð","q"],["ð","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð","w"],["ð","x"],["ð","y"],["ð","z"],["ð","A"],["ð","B"],["ð","C"],["ð","D"],["ð","E"],["ð","F"],["ð","G"],["ð","H"],["ð","I"],["ð","J"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð ","Q"],["ð¡","R"],["ð¢","S"],["ð£","T"],["ð¤","U"],["ð¥","V"],["ð¦","W"],["ð§","X"],["ð¨","Y"],["ð©","Z"],["ðª","a"],["ð«","b"],["ð¬","c"],["ð","d"],["ð®","e"],["ð¯","f"],["ð°","g"],["ð±","h"],["ð²","i"],["ð³","j"],["ð´","k"],["ðµ","l"],["ð¶","m"],["ð·","n"],["ð¸","o"],["ð¹","p"],["ðº","q"],["ð»","r"],["ð¼","s"],["ð½","t"],["ð¾","u"],["ð¿","v"],["ð","
47w"],["ð","x"],["ð","y"],["ð","z"],["ð","A"],["ð
","B"],["ð","D"],["ð","E"],["ð","F"],["ð","G"],["ð","J"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð","Q"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","a"],["ð","b"],["ð ","c"],["ð¡","d"],["ð¢","e"],["ð£","f"],["ð¤","g"],["ð¥","h"],["ð¦","i"],["ð§","j"],["ð¨","k"],["ð©","l"],["ðª","m"],["ð«","n"],["ð¬","o"],["ð","p"],["ð®","q"],["ð¯","r"],["ð°","s"],["ð±","t"],["ð²","u"],["ð³","v"],["ð´","w"],["ðµ","x"],["ð¶","y"],["ð·","z"],["ð¸","A"],["ð¹","B"],["ð»","D"],["ð¼","E"],["ð½","F"],["ð¾","G"],["ð","I"],["ð","J"],["ð","K"],["ð","L"],["ð","M"],["ð","O"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð ","o"],["ð¡","p"],["ð¢","q"],["ð£","r"],["ð¤","s"],["ð¥","t"],["ð¦","u"],["ð§","v"],["ð¨","w"],["ð©","x"],["ðª","y"],["ð«","z"],["ð¬","A"],["ð","B"],["ð®","C"],["ð¯","D"],["ð°","E"],["ð±","F"],["ð²","G"],["ð³","H"],["ð´","I"],["ðµ","J"],["ð¶","K"],["ð·","L"],["ð¸","M"],["ð¹","N"],["ðº","O"],["ð»","P"],["ð¼","Q"],["ð½","R"],["ð¾","S"],["ð¿","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð
","Z"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð","o"],["ð","p"],["ð","q"],["ð","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð","w"],["ð","x"],["ð","y"],["ð","z"],["ð ","A"],["ð¡","B"],["ð¢","C"],["ð£","D"],["ð¤","E"],["ð¥","F"],["ð¦","G"],["ð§","H"],["ð¨","I"],["ð©","J"],["ðª","K"],["ð«","L"],["ð¬","M"],["ð","N"],["ð®","O"],["ð¯","P"],["ð°","Q"],["ð±","R"],["ð²","S"],["ð³","T"],["ð´","U"],["ðµ","V"],["ð¶","W"],["ð·","X"],["ð¸","Y"],["ð¹","Z"],["ðº","a"],["ð»","b"],["ð¼","c"],["ð½","d"],["ð¾","e"],["ð¿","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð","k"],["ð
","l"],["ð","m"],["ð","n"],["ð","o"],["ð","p"],["ð","q"],["ð","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð","w"],["ð","x"],["ð","y"],["ð","z"],["ð","A"],["ð","B"],["ð","C"],["ð","D"],["ð","E"],["ð","F"],["ð","G"],["ð","H"],["ð","I"],["ð","J"],["ð","K"],["ð","L"],["ð ","M"],["ð¡","N"],["ð¢","O"],["ð£","P"],["ð¤","Q"],["ð¥","R"],["ð¦","S"],["ð§","T"],["ð¨","U"],["ð©","V"],["ðª","W"],["ð«","X"],["ð¬","Y"],["ð","Z"],["ð®","a"],["ð¯","b"],["ð°","c"],["ð±","d"],["ð²","e"],["ð³","f"],["ð´","g"],["ðµ","h"],["ð¶","i"],["ð·","j"],["ð¸","k"],["ð¹","l"],["ðº","m"],["ð»","n"],["ð¼","o"],["ð½","p"],["ð¾","q"],["ð¿","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð","w"],["ð
","x"],["ð","y"],["ð","z"],["ð","A"],["ð","B"],["ð","C"],["ð","D"],["ð","E"],["ð","F"],["ð","G"],["ð","H"],["ð","I"],["ð","J"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð","Q"],["ð","R"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð ","Y"],["ð¡","Z"],["ð¢","a"],["ð£","b"],["ð¤","c"],["ð¥","d"],["ð¦","e"],["ð§","f"],["ð¨","g"],["ð©","h"],["ðª","i"],["ð«","j"],["ð¬","k"],["ð","l"],["ð®","m"],["ð¯","n"],["ð°","o"],["ð±","p"],["ð²","q"],["ð³","r"],["ð´","s"],["ðµ","t"],["ð¶","u"],["ð·","v"],["ð¸","w"],["ð¹","x"],["ðº","y"],["ð»","z"],["ð¼","A"],["ð½","B"],["ð¾","C"],["ð¿","D"],["ð","E"],["ð","F"],["ð","G"],["ð","H"],["ð","I"],["ð
","J"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð","Q"],["ð","R"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","Z"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð ","k"],["ð¡","l"],["ð¢","m"],["ð£","n"],["ð¤","o"],["ð¥","p"],["ð¦","q"],["ð§","r"],["ð¨","s"],["ð©","t"],["ðª","u"],["ð«","v"],["ð¬","w"],["ð","x"],["ð®","y"],["ð¯","z"],["ð°","A"],["ð±","B"],["ð²","C"],["ð³","D"],["ð´","E"],["ðµ","F"],["ð¶","G"],["ð·","H"],["ð¸","I"],["ð¹","J"],["ðº","K"],["ð»","L"],["ð¼","M"],["ð½","N"],["ð¾","O"],["ð¿","P"],["ð","Q"],["ð","R"],["ð","S"],["ð","T"],["ð","U"],["ð
","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","Z"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð","o"],["ð","p"],["ð","q"],["ð","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð ","w"],["ð¡","x"],["ð¢","y"],["ð£","z"],["ð¤","l"],["ð¥","j"],["ð¢","A"],["ð£","B"],["ð¤","G"],["ð¥","D"],["ð¦","E"],["ð§","Z"],["ð¨","I"],["ð©","TH"],["ðª","I"],["ð«","K"],["ð¬","L"],["ð","M"],["ð®","N"],["ð¯","KS"],["ð°","O"],["ð±","P"],["ð²","R"],["ð³","TH"],["ð´","S"],["ðµ","T"],["ð¶","Y"],["ð·","F"],["ð¸","x"],["ð¹","PS"],["ðº","O"],["ð»","D"],["ð¼","a"],["ð½","b"],["ð¾","g"],["ð¿","d"],["ð","e"],["ð","z"],["ð","i"],["ð","th"],["ð","i"],["ð
","k"],["ð","l"],["ð","m"],["ð","n"],["ð","ks"],["ð","o"],["ð","p"],["ð","r"],["ð","s"],["ð","s"],["ð","t"],["ð","y"],["ð","f"],["ð","x"],["ð","ps"],["ð","o"],["ð","d"],["ð","E"],["ð","TH"],["ð","K"],["ð","f"],["ð","r"],["ð","p"],["ð","A"],["ð","V"],["ð","G"],["ð","D"],["ð ","E"],["ð¡","Z"],["ð¢","I"],["ð£","TH"],["ð¤","I"],["ð¥","K"],["ð¦","L"],["ð§","M"],["ð¨","N"],["ð©","KS"],["ðª","O"],["ð«","P"],["ð¬","S"],["ð","TH"],["ð®","S"],["ð¯","T"],["ð°","Y"],["ð±","F"],["ð²","X"],["ð³","PS"],["ð´","O"],["ðµ","D"],["ð¶","a"],["ð·","v"],["ð¸","g"],["ð¹","d"],["ðº","e"],["ð»","z"],["ð¼","i"],["ð½","th"],["ð¾","i"],["ð¿","k"],["ð","l"],["ð","m"],["ð","n"],["ð","ks"],["ð","o"],["ð
","p"],["ð","r"],["ð","s"],["ð","s"],["ð","t"],["ð","y"],["ð","f"],["ð","x"],["ð","ps"],["ð","o"],["ð","a"],["ð","e"],["ð","i"],["ð","k"],["ð","f"],["ð","r"],["ð","p"],["ð","A"],["ð","B"],["ð","G"],["ð","D"],["ð","E"],["ð","Z"],["ð","I"],["ð","TH"],["ð","I"],["ð","K"],["ð ","L"],["ð¡","M"],["ð¢","N"],["ð£","KS"],["ð¤","O"],["ð¥","P"],["ð¦","R"],["ð§","TH"],["ð¨","S"],["ð©","T"],["ðª","Y"],["ð«","F"],["ð¬","X"],["ð","PS"],["ð®","O"],["ð¯","D"],["ð°","a"],["ð±","v"],["ð²","g"],["ð³","d"],["ð´","e"],["ðµ","z"],["ð¶","i"],["ð·","th"],["ð¸","i"],["ð¹","k"],["ðº","l"],["ð»","m"],["ð¼","n"],["ð½","ks"],["ð¾","o"],["ð¿","p"],["ð","r"],["ð","s"],["ð","s"],["ð","t"],["ð","y"],["ð
","f"],["ð","x"],["ð","ps"],["ð","o"],["ð","a"],["ð","e"],["ð","i"],["ð","k"],["ð","f"],["ð","r"],["ð","p"],["ð","A"],["ð","V"],["ð","G"],["ð","D"],["ð","E"],["ð","Z"],["ð","I"],["ð","TH"],["ð","I"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","KS"],["ð","O"],["ð","P"],["ð ","S"],["ð¡","TH"],["ð¢","S"],["ð£","T"],["ð¤","Y"],["ð¥","F"],["ð¦","X"],["ð§","PS"],["ð¨","O"],["ð©","D"],["ðª","av"],["ð«","g"],["ð¬","d"],["ð","e"],["ð®","z"],["ð¯","i"],["ð°","i"],["ð±","th"],["ð²","i"],["ð³","k"],["ð´","l"],["ðµ","m"],["ð¶","n"],["ð·","ks"],["ð¸","o"],["ð¹","p"],["ðº","r"],["ð»","s"],["ð¼","s"],["ð½","t"],["ð¾","y"],["ð¿","f"],["ð","x"],["ð","ps"],["ð","o"],["ð","a"],["ð","e"],["ð
","i"],["ð","k"],["ð","f"],["ð","r"],["ð","p"],["ð","F"],["ð","f"],["â","(a)"],["â","(b)"],["â","(c)"],["â","(d)"],["â ","(e)"],["â¡","(f)"],["â¢","(g)"],["â£","(h)"],["â¤","(i)"],["â¥","(j)"],["â¦","(k)"],["â§","(l)"],["â¨","(m)"],["â©","(n)"],["âª","(o)"],["â«","(p)"],["â¬","(q)"],["â","(r)"],["â®","(s)"],["â¯","(t)"],["â°","(u)"],["â±","(v)"],["â²","(w)"],["â³","(x)"],["â´","(y)"],["âµ","(z)"],["â¶","(A)"],["â·","(B)"],["â¸","(C)"],["â¹","(D)"],["âº","(E)"],["â»","(F)"],["â¼","(G)"],["â½","(H)"],["â¾","(I)"],["â¿","(J)"],["â","(K)"],["â","(L)"],["â","(N)"],["â","(O)"],["â
","(P)"],["â","(Q)"],["â","(R)"],["â","(S)"],["â","(T)"],["â","(U)"],["â","(V)"],["â","(W)"],["â","(X)"],["â","(Y)"],["â","(Z)"],["â","(a)"],["â","(b)"],["â","(c)"],["â","(d)"],["â","(e)"],["â","(f)"],["â","(g)"],["â","(h)"],["â","(i)"],["â","(j)"],["â","(k)"],["â","(l)"],["â","(m)"],["â","(n)"],["â","(o)"],["â","(p)"],["â ","(q)"],["â¡","(r)"],["â¢","(s)"],["â£","(t)"],["â¤","(u)"],["â¥","(v)"],["â¦","(w)"],["â§","(x)"],["â¨","(y)"],["â©","(z)"],["Ä","C"],["Ä","c"],["Ä ","G"],["Ä¡","g"],["Ħ","H"],["ħ","h"],["Å»","Z"],["ż","z"],["ð","0"],["ð","1"],["ð","2"],["ð","3"],["ð","4"],["ð","5"],["ð","6"],["ð","7"],["ð","8"],["ð","9"],["ð","0"],["ð","1"],["ð","2"],["ð","3"],["ð","4"],["ð","5"],["ð","6"],["ð","7"],["ð ","8"],["ð¡","9"],["ð¢","0"],["ð£","1"],["ð¤","2"],["ð¥","3"],["ð¦","4"],["ð§","5"],["ð¨","6"],["ð©","7"],["ðª","8"],["ð«","9"],["ð¬","0"],["ð","1"],["ð®","2"],["ð¯","3"],["ð°","4"],["ð±","5"],["ð²","6"],["ð³","7"],["ð´","8"],["ðµ","9"],["ð¶","0"],["ð·","1"],["ð¸","2"],["ð¹","3"],["ðº","4"],["ð»","5"],["ð¼","6"],["ð½","7"],["ð¾","8"],["ð¿","9"],["â ","1"],["â¡","2"],["â¢","3"],["â£","4"],["â¤","5"],["â¥","6"],["â¦","7"],["â§","8"],["â¨","9"],["â©","10"],["âª","11"],["â«","12"],["â¬","13"],["â","14"],["â®","15"],["â¯","16"],["â°","17"],["â±","18"],["â²","19"],["â³","20"],["â´","1"],["âµ","2"],["â¶","3"],["â·","4"],["â¸","5"],["â¹","6"],["âº","7"],["â»","8"],["â¼","9"],["â½","10"],["â¾","11"],["â¿","12"],["â","13"],["â","14"],["â","15"],["â","16"],["â","17"],["â
","18"],["â","19"],["â","20"],["â","1."],["â","2."],["â","3."],["â","4."],["â","5."],["â","6."],["â","7."],["â","8."],["â","9."],["â","10."],["â","11."],["â","12."],["â","13."],["â","14."],["â","15."],["â","16."],["â","17."],["â","18."],["â","19."],["â","20."],["âª","0"],["â«","11"],["â¬","12"],["â","13"],["â®","14"],["â¯","15"],["â°","16"],["â±","17"],["â²","18"],["â³","19"],["â´","20"],["âµ","1"],["â¶","2"],["â·","3"],["â¸","4"],["â¹","5"],["âº","6"],["â
47»","7"],["â¼","8"],["â½","9"],["â¾","10"],["â¿","0"],["ð°","&"],["ð±","&"],["ð²","&"],["ð³","&"],["ð´","&"],["ðµ","&"],["ð¶",'"'],["ð·",'"'],["ð¸",'"'],["â½","?!"],["ð¹","?!"],["ðº","?!"],["ð»","?!"],["ð¼","/"],["ð½","\\"],["ð","AR"],["ð","V"],["ð","V"],["ð","VR"],["ð
","VF"],["ð©","2"],["ðª","5"],["ð¡","f"],["ð¢","W"],["ð£","U"],["ð§","V"],["ð¨","T"],["ðª","V"],["ð«","MB"],["ð¬","VB"],["ð²","3B"],["ð³","3B"],["ð¯","100"],["ð","BACK"],["ð","END"],["ð","ON!"],["ð","SOON"],["ð","TOP"],["ð","18"],["ð¤","abc"],["ð ","ABCD"],["ð¡","abcd"],["ð¢","1234"],["ð£","T&@%"],["#ï¸â£","#"],["*ï¸â£","*"],["0ï¸â£","0"],["1ï¸â£","1"],["2ï¸â£","2"],["3ï¸â£","3"],["4ï¸â£","4"],["5ï¸â£","5"],["6ï¸â£","6"],["7ï¸â£","7"],["8ï¸â£","8"],["9ï¸â£","9"],["ð","10"],["ð
°ï¸","A"],["ð
±ï¸","B"],["ð","AB"],["ð","CL"],["ð
¾ï¸","O"],["ð
¿","P"],["ð","SOS"],["ð
²","C"],["ð
³","D"],["ð
´","E"],["ð
µ","F"],["ð
¶","G"],["ð
·","H"],["ð
¸","I"],["ð
¹","J"],["ð
º","K"],["ð
»","L"],["ð
¼","M"],["ð
½","N"],["ð","Q"],["ð","R"],["ð","S"],["ð","T"],["ð","U"],["ð
","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","Z"],["â","-"],["â","-"]],danishNorwegianReplacements=[["æ","ae"],["Ã","Ae"],["ø","oe"],["Ã","Oe"],["Ã¥","aa"],["Ã
","Aa"]],localeReplacements={sv:[["ä","a"],["Ã","A"],["ö","o"],["Ã","O"],["Ã¥","a"],["Ã
","A"]],da:danishNorwegianReplacements,nb:danishNorwegianReplacements,de:[["ä","ae"],["Ã","Ae"],["ö","oe"],["Ã","Oe"],["ü","ue"],["Ã","Ue"],["Ã","ss"],["áº","Ss"]],tr:[["â","a"],["Ã","A"],["ö","o"],["Ã","O"],["ü","u"],["Ã","U"]],hu:[["ű","u"],["Ű","U"],["ö","o"],["Ã","O"],["ü","u"],["Ã","U"],["á","a"],["Ã","A"],["é","e"],["Ã","E"],["Ã","i"],["Ã","I"],["ó","o"],["Ã","O"],["ú","u"],["Ã","U"]],sr:[["Ñ","dj"],["Ð","Dj"],["Ñ","dz"],["Ð","Dz"],["Ñ","lj"],["Ð","Lj"],["Ñ","nj"],["Ð","Nj"],["Ñ","c"],["Ð","C"],["Ñ","ch"],["Ч","Ch"],["Ñ","sh"],["Ш","Sh"],["ж","zh"],["Ð","Zh"]]},doCustomReplacements=(n,o)=>{for(const[e,t]of o)n=n.replaceAll(e,t);return n},getLocaleReplacements=n=>{if(!n)return[];const o=n.toLowerCase().replace(/^no(-|$)/,"nb$1");return localeReplacements[o]||localeReplacements[o.split("-")[0]]||[]};function transliterate(n,o){if(typeof n!="string")throw new TypeError(`Expected a string, got \`${typeof n}\``);o={customReplacements:[],...o};const e=getLocaleReplacements(o.locale),t=new Map([...replacements,...e,...o.customReplacements]);return n=n.normalize(),n=doCustomReplacements(n,t),n=n.normalize("NFD").replaceAll(new RegExp("\\p{Diacritic}","gu"),"").normalize(),n=n.replaceAll(new RegExp("\\p{Dash_Punctuation}","gu"),"-"),n}const overridableReplacements=[["&"," and "],["ð¦"," unicorn "],["â¥"," love "]],decamelize=n=>n.replaceAll(/([A-Z]{2,})(\d+)/g,"$1 $2").replaceAll(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replaceAll(/([a-z\d])([A-Z])/g,"$1 $2").replaceAll(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),removeMootSeparators=(n,o)=>{const e=escapeStringRegexp$1(o);return n.replaceAll(new RegExp(`(?:${e}){2,}`,"g"),o).replaceAll(new RegExp(`^(?:${e})|(?:${e})$`,"g"),"")},buildPatternSlug=n=>{let o=String.raw`a-z\d`;if(o+=n.lowercase?"":"A-Z",n.transliterate===!1&&(o+=String.raw`\p{L}\p{N}`),n.preserveCharacters.length>0)for(const t of n.preserveCharacters){if(t===n.separator)throw new Error(`The separator character \`${n.separator}\` cannot be included in preserved characters: ${n.preserveCharacters}`);o+=escapeStringRegexp$1(t)}const e=n.transliterate?"g":"gu";return new RegExp(`[^${o}]+`,e)};function slugify(n,o){if(typeof n!="string")throw new TypeError(`Expected a string, got \`${typeof n}\``);o={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],transliterate:!0,...o};const e=o.preserveLeadingUnderscore&&n.startsWith("_"),t=o.preserveTrailingDash&&n.endsWith("-");if(o.transliterate){const p=new Map([...overridableReplacements,...o.customReplacements]);n=transliterate(n,{customReplacements:p,locale:o.locale})}else if(o.customReplacements.length>0)for(const[p,h]of o.customReplacements)n=n.replaceAll(p,h);o.decamelize&&(n=decamelize(n));const c=buildPatternSlug(o);return o.lowercase&&(n=o.locale?n.toLocaleLowerCase(o.locale):n.toLowerCase()),n=n.replaceAll(/([a-zA-Z\d]+)['\u2019]([ts])(\s|$)/g,"$1$2$3"),n=n.replace(c,o.separator),n=n.replaceAll("\\",""),o.separator&&(n=removeMootSeparators(n,o.separator)),e&&(n=`_${n}`),t&&(n=`${n}-`),n}
vendor: 4,337 bytes, line 47
47function escapeStringRegexp(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const convert=function(n){if(n==null)return ok$1;if(typeof n=="function")return castFactory(n);if(typeof n=="object")return Array.isArray(n)?anyFactory(n):propsFactory(n);if(typeof n=="string")return typeFactory(n);throw new Error("Expected function, string, or object as test")};function anyFactory(n){const o=[];let e=-1;for(;++e<n.length;)o[e]=convert(n[e]);return castFactory(t);function t(...c){let p=-1;for(;++p<o.length;)if(o[p].apply(this,c))return!0;return!1}}function propsFactory(n){const o=n;return castFactory(e);function e(t){const c=t;let p;for(p in n)if(c[p]!==o[p])return!1;return!0}}function typeFactory(n){return castFactory(o);function o(e){return e&&e.type===n}}function castFactory(n){return o;function o(e,t,c){return!!(looksLikeANode(e)&&n.call(this,e,typeof t=="number"?t:void 0,c||void 0))}}function ok$1(){return!0}function looksLikeANode(n){return n!==null&&typeof n=="object"&&"type"in n}function color(n){return n}const empty$1=[],CONTINUE=!0,EXIT=!1,SKIP="skip";function visitParents(n,o,e,t){let c;typeof o=="function"&&typeof e!="function"?(t=e,e=o):c=o;const p=convert(c),h=t?-1:1;y(n,void 0,[])();function y(g,$,E){const A=g&&typeof g=="object"?g:{};if(typeof A.type=="string"){const H=typeof A.tagName=="string"?A.tagName:typeof A.name=="string"?A.name:void 0;Object.defineProperty(N,"name",{value:"node ("+(g.type+(H?"<"+H+">":""))+")"})}return N;function N(){let H=empty$1,Z,X,be;if((!o||p(g,$,E[E.length-1]||void 0))&&(H=toResult(e(g,E)),H[0]===EXIT))return H;if("children"in g&&g.children){const we=g;if(we.children&&H[0]!==SKIP)for(X=(t?we.children.length:-1)+h,be=E.concat(we);X>-1&&X<we.children.length;){const $e=we.children[X];if(Z=y($e,X,be)(),Z[0]===EXIT)return Z;X=typeof Z[1]=="number"?Z[1]:X+h}}return H}}}function toResult(n){return Array.isArray(n)?n:typeof n=="number"?[CONTINUE,n]:n==null?empty$1:[n]}function findAndReplace(n,o,e){const c=convert((e||{}).ignore||[]),p=toPairs(o);let h=-1;for(;++h<p.length;)visitParents(n,"text",y);function y($,E){let A=-1,N;for(;++A<E.length;){const H=E[A],Z=N?N.children:void 0;if(c(H,Z?Z.indexOf(H):void 0,N))return;N=H}if(N)return g($,E)}function g($,E){const A=E[E.length-1],N=p[h][0],H=p[h][1];let Z=0;const be=A.children.indexOf($);let we=!1,$e=[];N.lastIndex=0;let Ce=N.exec($.value);for(;Ce;){const Ie=Ce.index,Ne={index:Ce.index,input:Ce.input,stack:[...E,$]};let Fe=H(...Ce,Ne);if(typeof Fe=="string"&&(Fe=Fe.length>0?{type:"text",value:Fe}:void 0),Fe===!1?N.lastIndex=Ie+1:(Z!==Ie&&$e.push({type:"text",value:$.value.slice(Z,Ie)}),Array.isArray(Fe)?$e.push(...Fe):Fe&&$e.push(Fe),Z=Ie+Ce[0].length,we=!0),!N.global)break;Ce=N.exec($.value)}return we?(Z<$.value.length&&$e.push({type:"text",value:$.value.slice(Z)}),A.children.splice(be,1,...$e)):$e=[$],be+$e.length}}function toPairs(n){const o=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const e=!n[0]||Array.isArray(n[0])?n:[n];let t=-1;for(;++t<e.length;){const c=e[t];o.push([toExpression(c[0]),toFunction(c[1])])}return o}function toExpression(n){return typeof n=="string"?new RegExp(escapeStringRegexp(n),"g"):n}function toFunction(n){return typeof n=="function"?n:function(){return n}}function _extends$u(){return _extends$u=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$u.apply(this,arguments)}function _objectWithoutProperties$q(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$p(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$p(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}var Check=reactExports.forwardRef(function(n,o){var e=n.color,t=e===void 0?"currentColor":e,c=n.size,p=c===void 0?24:c,h=_objectWithoutProperties$q(n,["color","size"]);return React.createElement("svg",_extends$u({ref:o,xmlns:"http://www.w3.org/2000/svg",width:p,height:p,viewB
47ox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},h),React.createElement("polyline",{points:"20 6 9 17 4 12"}))});Check.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number])};Check.displayName="Check";function _extends$t(){return _extends$t=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$t.apply(this,arguments)}function _objectWithoutProperties$p(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$o(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$o(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}var Copy=reactExports.forwardRef(function(n,o){var e=n.color,t=e===void 0?"currentColor":e,c=n.size,p=c===void 0?24:c,h=_objectWithoutProperties$p(n,["color","size"]);return React.createElement("svg",_extends$t({ref:o,xmlns:"http://www.w3.org/2000/svg",width:p,height:p,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},h),React.createElement("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),React.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}))});Copy.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number])};Copy.displayName="Copy";function _extends$s(){return _extends$s=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$s.apply(this,arguments)}function _objectWithoutProperties$o(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$n(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$n(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}var HelpCircle=reactExports.forwardRef(function(n,o){var e=n.color,t=e===void 0?"currentColor":e,c=n.size,p=c===void 0?24:c,h=_objectWithoutProperties$o(n,["color","size"]);return React.createElement("svg",_extends$s({ref:o,xmlns:"http://www.w3.org/2000/svg",width:p,height:p,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},h),React.createElement("circle",{cx:"12",cy:"12",r:"10"}),React.createElement("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),React.createElement("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}))});HelpCircle.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number])};HelpCircle.displayName="HelpCircle";function _extends$r(){return _extends$r=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$r.apply(this,arguments)}function _objectWithoutProperties$n(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$m(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$m(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}var Link2=reactExports.forwardRef(function(n,o){var e=n.color,t=e===void 0?"currentColor":e,c=n.size,p=c===void 0?24:c,h=_objectWithoutProperties$n(n,["color","size"]);return React.createElement("svg",_extends$r({ref:o,xmlns:"http://www.w3.org/2000/svg",width:p,height:p,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},h),React.createElement("path",{d:"M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"}),React.createElement("line",{x1:"8",y1:"12",x2:"16",y2:"12"}))});
vendor: 4,110 bytes, line 47
47Link2.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number])};Link2.displayName="Link2";function ok(){}function unreachable(){}function parse$2(n){const o=[],e=String(n||"");let t=e.indexOf(","),c=0,p=!1;for(;!p;){t===-1&&(t=e.length,p=!0);const h=e.slice(c,t).trim();(h||!p)&&o.push(h),c=t+1,t=e.indexOf(",",c)}return o}function stringify$1(n,o){const e={};return(n[n.length-1]===""?[...n,""]:n).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}const nameRe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nameReJsx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,emptyOptions$5={};function name(n,o){return(emptyOptions$5.jsx?nameReJsx:nameRe).test(n)}const re=/[ \t\n\f\r]/g;function whitespace(n){return typeof n=="object"?n.type==="text"?empty(n.value):!1:empty(n)}function empty(n){return n.replace(re,"")===""}class Schema{constructor(o,e,t){this.normal=e,this.property=o,t&&(this.space=t)}}Schema.prototype.normal={};Schema.prototype.property={};Schema.prototype.space=void 0;function merge(n,o){const e={},t={};for(const c of n)Object.assign(e,c.property),Object.assign(t,c.normal);return new Schema(e,t,o)}function normalize$1(n){return n.toLowerCase()}class Info{constructor(o,e){this.attribute=e,this.property=o}}Info.prototype.attribute="";Info.prototype.booleanish=!1;Info.prototype.boolean=!1;Info.prototype.commaOrSpaceSeparated=!1;Info.prototype.commaSeparated=!1;Info.prototype.defined=!1;Info.prototype.mustUseProperty=!1;Info.prototype.number=!1;Info.prototype.overloadedBoolean=!1;Info.prototype.property="";Info.prototype.spaceSeparated=!1;Info.prototype.space=void 0;let powers=0;const boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const types$1=Object.freeze(Object.defineProperty({__proto__:null,boolean,booleanish,commaOrSpaceSeparated,commaSeparated,number,overloadedBoolean,spaceSeparated},Symbol.toStringTag,{value:"Module"})),checks=Object.keys(types$1);class DefinedInfo extends Info{constructor(o,e,t,c){let p=-1;if(super(o,e),mark$1(this,"space",c),typeof t=="number")for(;++p<checks.length;){const h=checks[p];mark$1(this,checks[p],(t&types$1[h])===types$1[h])}}}DefinedInfo.prototype.defined=!0;function mark$1(n,o,e){e&&(n[o]=e)}function create(n){const o={},e={};for(const[t,c]of Object.entries(n.properties)){const p=new DefinedInfo(t,n.transform(n.attributes||{},t),c,n.space);n.mustUseProperty&&n.mustUseProperty.includes(t)&&(p.mustUseProperty=!0),o[t]=p,e[normalize$1(t)]=t,e[normalize$1(p.attribute)]=t}return new Schema(o,e,n.space)}const aria=create({properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number,ariaColIndex:number,ariaColSpan:number,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number,ariaRowIndex:number,ariaRowSpan:number,ariaSelected:booleanish,ariaSetSize:number,ariaSort:null,ariaValueMax:number,ariaValueMin:number,ariaValueNow:number,ariaValueText:null,role:null},transform(n,o){return o==="role"?o:"aria-"+o.slice(4).toLowerCase()}});function caseSensitiveTransform(n,o){return o in n?n[o]:o}function caseInsensitiveTransform(n,o){return caseSensitiveTransform(n,o.toLowerCase())}const html$3=create({attributes:{acceptcharset:"accept-charset",classname:"
47class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:boolean,allowPaymentRequest:boolean,allowUserMedia:boolean,alt:null,as:null,async:boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:boolean,autoPlay:boolean,blocking:spaceSeparated,capture:null,charSet:null,checked:boolean,cite:null,className:spaceSeparated,cols:number,colSpan:null,content:null,contentEditable:booleanish,controls:boolean,controlsList:spaceSeparated,coords:number|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean,defer:boolean,dir:null,dirName:null,disabled:boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean,formTarget:null,headers:spaceSeparated,height:number,hidden:overloadedBoolean,high:number,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:boolean,inputMode:null,integrity:null,is:null,isMap:boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean,low:number,manifest:null,max:null,maxLength:number,media:null,method:null,min:null,minLength:number,multiple:boolean,muted:boolean,name:null,nonce:null,noModule:boolean,noValidate:boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:boolean,optimum:number,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:boolean,referrerPolicy:null,rel:spaceSeparated,required:boolean,reversed:boolean,rows:number,rowSpan:number,sandbox:spaceSeparated,scope:null,scoped:boolean,seamless:boolean,selected:boolean,shadowRootClonable:boolean,shadowRootDelegatesFocus:boolean,shadowRootMode:null,shape:null,size:number,sizes:null,slot:null,span:number,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number,step:null,style:null,tabIndex:number,target:null,title:null,translate:null,type:null,typeMustMatch:boolean,useMap:null,value:booleanish,width:number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:spaceSeparated,axis:null,background:null,bgColor:null,border:number,borderColor:null,bottomMargin:number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:boolean,declare:boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:number,leftMargin:number,link:null,longDesc:null,lowSrc:null,marginHeight:number,marginWidth:number,noResize:boolean,noHref:boolean,noShade:boolean,noWrap:boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:number,rules:null,scheme:null,scrolling:booleanish,standby:null,summary:null,text:null,topMargin:number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean,disableRemotePlayback:boolean,prefix:null,property:null,results:number,security:null,unselectable:null},space:"html",transform:caseInsensitiveTransform}),svg$1=create({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
47dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:commaOrSpaceSeparated,accentHeight:number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number,amplitude:number,arabicForm:null,ascent:number,attributeName:null,attributeType:null,azimuth:number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number,by:null,calcMode:null,capHeight:number,className:spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
47dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:number,diffuseConstant:number,direction:null,display:null,dur:null,divisor:number,dominantBaseline:null,download:boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number,enableBackground:null,end:null,event:null,exponent:number,externalResourcesRequired:null,fill:null,fillOpacity:number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number,horizOriginX:number,horizOriginY:number,id:null,ideographic:number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number,k:number,k1:number,k2:number,k3:number,k4:number,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:number,overlineThickness:number,paintOrder:null,panose1:null,path:null,pathLength:number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number,pointsAtY:number,pointsAtZ:number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:number,specularExponent:number,spreadMethod:null,
vendor: 9,511 bytes, lines 47-48
47spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number,strikethroughThickness:number,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number,strokeOpacity:number,strokeWidth:null,style:null,surfaceScale:number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number,tableValues:null,target:null,targetX:number,targetY:number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number,underlineThickness:number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number,values:null,vAlphabetic:number,vMathematical:number,vectorEffect:null,vHanging:number,vIdeographic:number,version:null,vertAdvY:number,vertOriginX:number,vertOriginY:number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:caseSensitiveTransform}),xlink=create({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,o){return"xlink:"+o.slice(5).toLowerCase()}}),xmlns=create({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:caseInsensitiveTransform}),xml=create({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,o){return"xml:"+o.slice(3).toLowerCase()}}),hastToReact={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},cap$1=/[A-Z]/g,dash=/-[a-z]/g,valid=/^data[-\w.:]+$/i;function find(n,o){const e=normalize$1(o);let t=o,c=Info;if(e in n.normal)return n.property[n.normal[e]];if(e.length>4&&e.slice(0,4)==="data"&&valid.test(o)){if(o.charAt(4)==="-"){const p=o.slice(5).replace(dash,camelcase);t="data"+p.charAt(0).toUpperCase()+p.slice(1)}else{const p=o.slice(4);if(!dash.test(p)){let h=p.replace(cap$1,kebab);h.charAt(0)!=="-"&&(h="-"+h),o="data"+h}}c=DefinedInfo}return new c(t,o)}function kebab(n){return"-"+n.toLowerCase()}function camelcase(n){return n.charAt(1).toUpperCase()}const html$2=merge([aria,html$3,xlink,xmlns,xml],"html"),svg=merge([aria,svg$1,xlink,xmlns,xml],"svg");function parse$1(n){const o=String(n||"").trim();return o?o.split(/[ \t\n\r\f]+/g):[]}function stringify(n){return n.join(" ").trim()}var cjs$1={},inlineStyleParser,hasRequiredInlineStyleParser;function requireInlineStyleParser(){if(hasRequiredInlineStyleParser)return inlineStyleParser;hasRequiredInlineStyleParser=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,o=/\n/g,e=/^\s*/,t=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,c=/^:\s*/,p=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,h=/^[;\s]*/,y=/^\s+|\s+$/g,g=` 48`,$="/",E="*",A="",N="comment",H="declaration";inlineStyleParser=function(X,be){if(typeof X!="string")throw new TypeError("First argument must be a string");if(!X)return[];be=be||{};var we=1,$e=1;function Ce(Xe){var Ke=Xe.match(o);Ke&&(we+=Ke.length);var ze=Xe.lastIndexOf(g);$e=~ze?Xe.length-ze:$e+Xe.length}function Ie(){var Xe={line:we,column:$e};return function(Ke){return Ke.position=new Ne(Xe),Ge(),Ke}}function Ne(Xe){this.start=Xe,this.end={line:we,column:$e},this.source=be.source}Ne.prototype.content=X;function Fe(Xe){var Ke=new Error(be.source+":"+we+":"+$e+": "+Xe);if(Ke.reason=Xe,Ke.filename=be.source,Ke.line=we,Ke.column=$e,Ke.source=X,!be.silent)throw Ke}function Be(Xe){var Ke=Xe.exec(X);if(Ke){var ze=Ke[0];return Ce(ze),X=X.slice(ze.length),Ke}}function Ge(){Be(e)}function je(Xe){var Ke;for(Xe=Xe||[];Ke=De();)Ke!==!1&&Xe.push(Ke);return Xe}function De(){var Xe=Ie();if(!($!=X.charAt(0)||E!=X.charAt(1))){for(var Ke=2;A!=X.charAt(Ke)&&(E!=X.charAt(Ke)||$!=X.charAt(Ke+1));)++Ke;if(Ke+=2,A===X.charAt(Ke-1))return Fe("End of comment missing");var ze=X.slice(2,Ke-2);return $e+=2,Ce(ze),X=X.slice(Ke),$e+=2,Xe({type:N,comment:ze})}}function Ue(){var Xe=Ie(),Ke=Be(t);if(Ke){if(De(),!Be(c))return Fe("property missing ':'");var ze=Be(p),nt=Xe({type:H,property:Z(Ke[0].replace(n,A)),value:ze?Z(ze[0].replace(n,A)):A});return Be(h),nt}}function Je(){var Xe=[];je(Xe);for(var Ke;Ke=Ue();)Ke!==!1&&(Xe.push(Ke),je(Xe));return Xe}return Ge(),Je()};function Z(X){return X?X.replace(y,A):A}return inlineStyleParser}var hasRequiredCjs$1;function requireCjs$1(){if(hasRequiredCjs$1)return cjs$1;hasRequiredCjs$1=1;var n=cjs$1&&cjs$1.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cjs$1,"__esModule",{value:!0}),cjs$1.default=e;var o=n(requireInlineStyleParser());function e(t,c){var p=null;if(!t||typeof t!="string")return p;var h=(0,o.default)(t),y=typeof c=="function";return h.forEach(function(g){if(g.type==="declaration"){var $=g.property,E=g.value;y?c($,E,g):E&&(p=p||{},p[$]=E)}}),p}return cjs$1}var utilities={},hasRequiredUtilities;function requireUtilities(){if(hasRequiredUtilities)return utilities;hasRequiredUtilities=1,Object.defineProperty(utilities,"__esModule",{value:!0}),utilities.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,o=/-([a-z])/g,e=/^[^-]+$/,t=/^-(webkit|moz|ms|o|khtml)-/,c=/^-(ms)-/,p=function($){return!$||e.test($)||n.test($)},h=function($,E){return E.toUpperCase()},y=function($,E){return"".concat(E,"-")},g=function($,E){return E===void 0&&(E={}),p($)?$:($=$.toLowerCase(),E.reactCompat?$=$.replace(c,y):$=$.replace(t,y),$.replace(o,h))};return utilities.camelCase=g,utilities}var cjs,hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var n=cjs&&cjs.__importDefault||function(c){return c&&c.__esModule?c:{default:c}},o=n(requireCjs$1()),e=requireUtilities();function t(c,p){var h={};return!c||typeof c!="string"||(0,o.default)(c,function(y,g){y&&g&&(h[(0,e.camelCase)(y,p)]=g)}),h}return t.default=t,cjs=t,cjs}var cjsExports=requireCjs();const styleToJs=getDefaultExportFromCjs(cjsExports),pointEnd=point$2("end"),pointStart=point$2("start");function point$2(n){return o;function o(e){const t=e&&e.position&&e.position[n]||{};if(typeof t.line=="number"&&t.line>0&&typeof t.column=="number"&&t.column>0)return{line:t.line,column:t.column,offset:typeof t.offset=="number"&&t.offset>-1?t.offset:void 0}}}function position$1(n){const o=pointStart(n),e=pointEnd(n);if(o&&e)return{start:o,end:e}}function stringifyPosition(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?position(n.position):"start"in n||"end"in n?position(n):"line"in n||"column"in n?point$1(n):""}function point$1(n){return index$1(n&&n.line)+":"+index$1(n&&n.column)}function position(n){return point$1(n&&n.start)+"-"+point$1(n&&n.end)}function index$1(n){return n&&typeof n=="number"?n:1}class VFileMessage extends Error{constructor(o,e,t){super(),typeof e=="string"&&(t=e,e=void 0);let c="",p={},h=!1;if(e&&("line"in e&&"column"in e?p={place:e}:"start"in e&&"end"in e?p={place:e}:"type"in e?p={ancestors:[e],place:e.position}:p={...e}),typeof o=="string"?c=o:!p.cause&&o&&(h=!0,c=o.message,p.cause=o),!p.ruleId&&!p.source&&typeof t=="string"){const g=t.indexOf(":");g===-1?p.ruleId=t:(p.source=t.slice(0,g),p.ruleId=t.slice(g+1))}if(!p.place&&p.ancestors&&p.ancestors){const g=p.ancestors[p.ancestors.length-1];g&&(p.place=g.position)}const y=p.place&&"start"in p.place?p.place.start:p.place;this.ancestors=p.ancestors||void 0,this.cause=p.cause||void 0,this.column=y?y.column:void 0,this.fatal=void 0,this.file,this.message=c,this.line=y?y.line:void 0,this.name=stringifyPosition(p.place)||"1:1",this.place=p.place||void 0,this.reason=this.message,this.ruleId=p.ruleId||void 0,this.source=p.source||void 0,this.stack=h&&p.cause&&typeof p.cause.stack=="string"?p.cause.stack:"",this.actual,this.expected,this.note,this.url}}VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.column=void 0;VFileMessage.prototype.line=void 0;VFileMessage.prototype.ancestors=void 0;VFileMessage.prototype.cause=void 0;VFileMessage.prototype.fatal=void 0;VFileMessage.prototype.place=void 0;VFileMessage.prototype.ruleId=void 0;VFileMessage.prototype.source=void 0;const own$4={}.hasOwnProperty,emptyMap=new Map,cap=/[A-Z]/g,tableElements=new Set(["table","tbody","thead","tfoot","tr"]),tableCellElement=new Set(["td","th"]),docs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function toJsxRuntime(n,o){if(!o||o.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const e=o.filePath||void 0;let t;if(o.development){if(typeof o.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");t=developmentCreate(e,o.jsxDEV)}else{if(typeof o.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 4,387 bytes, line 48
48if(typeof o.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");t=productionCreate(e,o.jsx,o.jsxs)}const c={Fragment:o.Fragment,ancestors:[],components:o.components||{},create:t,elementAttributeNameCase:o.elementAttributeNameCase||"react",evaluater:o.createEvaluater?o.createEvaluater():void 0,filePath:e,ignoreInvalidStyle:o.ignoreInvalidStyle||!1,passKeys:o.passKeys!==!1,passNode:o.passNode||!1,schema:o.space==="svg"?svg:html$2,stylePropertyNameCase:o.stylePropertyNameCase||"dom",tableCellAlignToStyle:o.tableCellAlignToStyle!==!1},p=one$1(c,n,void 0);return p&&typeof p!="string"?p:c.create(n,c.Fragment,{children:p||void 0},void 0)}function one$1(n,o,e){if(o.type==="element")return element$1(n,o,e);if(o.type==="mdxFlowExpression"||o.type==="mdxTextExpression")return mdxExpression(n,o);if(o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement")return mdxJsxElement(n,o,e);if(o.type==="mdxjsEsm")return mdxEsm(n,o);if(o.type==="root")return root$3(n,o,e);if(o.type==="text")return text$5(n,o)}function element$1(n,o,e){const t=n.schema;let c=t;o.tagName.toLowerCase()==="svg"&&t.space==="html"&&(c=svg,n.schema=c),n.ancestors.push(o);const p=findComponentFromName(n,o.tagName,!1),h=createElementProps(n,o);let y=createChildren(n,o);return tableElements.has(o.tagName)&&(y=y.filter(function(g){return typeof g=="string"?!whitespace(g):!0})),addNode(n,h,p,o),addChildren(h,y),n.ancestors.pop(),n.schema=t,n.create(o,p,h,e)}function mdxExpression(n,o){if(o.data&&o.data.estree&&n.evaluater){const t=o.data.estree.body[0];return t.type,n.evaluater.evaluateExpression(t.expression)}crashEstree(n,o.position)}function mdxEsm(n,o){if(o.data&&o.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(o.data.estree);crashEstree(n,o.position)}function mdxJsxElement(n,o,e){const t=n.schema;let c=t;o.name==="svg"&&t.space==="html"&&(c=svg,n.schema=c),n.ancestors.push(o);const p=o.name===null?n.Fragment:findComponentFromName(n,o.name,!0),h=createJsxElementProps(n,o),y=createChildren(n,o);return addNode(n,h,p,o),addChildren(h,y),n.ancestors.pop(),n.schema=t,n.create(o,p,h,e)}function root$3(n,o,e){const t={};return addChildren(t,createChildren(n,o)),n.create(o,n.Fragment,t,e)}function text$5(n,o){return o.value}function addNode(n,o,e,t){typeof e!="string"&&e!==n.Fragment&&n.passNode&&(o.node=t)}function addChildren(n,o){if(o.length>0){const e=o.length>1?o:o[0];e&&(n.children=e)}}function productionCreate(n,o,e){return t;function t(c,p,h,y){const $=Array.isArray(h.children)?e:o;return y?$(p,h,y):$(p,h)}}function developmentCreate(n,o){return e;function e(t,c,p,h){const y=Array.isArray(p.children),g=pointStart(t);return o(c,p,h,y,{columnNumber:g?g.column-1:void 0,fileName:n,lineNumber:g?g.line:void 0},void 0)}}function createElementProps(n,o){const e={};let t,c;for(c in o.properties)if(c!=="children"&&own$4.call(o.properties,c)){const p=createProperty(n,c,o.properties[c]);if(p){const[h,y]=p;n.tableCellAlignToStyle&&h==="align"&&typeof y=="string"&&tableCellElement.has(o.tagName)?t=y:e[h]=y}}if(t){const p=e.style||(e.style={});p[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=t}return e}function createJsxElementProps(n,o){const e={};for(const t of o.attributes)if(t.type==="mdxJsxExpressionAttribute")if(t.data&&t.data.estree&&n.evaluater){const p=t.data.estree.body[0];p.type;const h=p.expression;h.type;const y=h.properties[0];y.type,Object.assign(e,n.evaluater.evaluateExpression(y.argument))}else crashEstree(n,o.position);else{const c=t.name;let p;if(t.value&&typeof t.value=="object")if(t.value.data&&t.value.data.estree&&n.evaluater){const y=t.value.data.estree.body[0];y.type,p=n.evaluater.evaluateExpression(y.expression)}else crashEstree(n,o.position);else p=t.value===null?!0:t.value;e[c]=p}return e}function createChildren(n,o){const e=[];let t=-1;const c=n.passKeys?new Map:emptyMap;for(;++t<o.children.length;){const p=o.children[t];let h;if(n.passKeys){const g=p.type==="element"?p.tagName:p.type==="mdxJsxFlowElement"||p.type==="mdxJsxTextElement"?p.name:void 0;if(g){const $=c.get(g)||0;h=g+"-"+$,c.set(g,$+1)}}const y=one$1(n,p,h);y!==void 0&&e.push(y)}return e}function createProperty(n,o,e){const t=find(n.schema,o);if(!(e==null||typeof e=="number"&&Number.isNaN(e))){if(Array.isArray(e)&&(e=t.commaSeparated?stringify$1(e):stringify(e)),t.property==="style"){let c=typeof e=="object"?e:parseStyle(n,Str
vendor: 5,100 bytes, line 48
48ing(e));return n.stylePropertyNameCase==="css"&&(c=transformStylesToCssCasing(c)),["style",c]}return[n.elementAttributeNameCase==="react"&&t.space?hastToReact[t.property]||t.property:t.attribute,e]}}function parseStyle(n,o){try{return styleToJs(o,{reactCompat:!0})}catch(e){if(n.ignoreInvalidStyle)return{};const t=e,c=new VFileMessage("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=n.filePath||void 0,c.url=docs+"#cannot-parse-style-attribute",c}}function findComponentFromName(n,o,e){let t;if(!e)t={type:"Literal",value:o};else if(o.includes(".")){const c=o.split(".");let p=-1,h;for(;++p<c.length;){const y=name(c[p])?{type:"Identifier",name:c[p]}:{type:"Literal",value:c[p]};h=h?{type:"MemberExpression",object:h,property:y,computed:!!(p&&y.type==="Literal"),optional:!1}:y}t=h}else t=name(o)&&!/^[a-z]/.test(o)?{type:"Identifier",name:o}:{type:"Literal",value:o};if(t.type==="Literal"){const c=t.value;return own$4.call(n.components,c)?n.components[c]:c}if(n.evaluater)return n.evaluater.evaluateExpression(t);crashEstree(n)}function crashEstree(n,o){const e=new VFileMessage("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:o,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw e.file=n.filePath||void 0,e.url=docs+"#cannot-handle-mdx-estrees-without-createevaluater",e}function transformStylesToCssCasing(n){const o={};let e;for(e in n)own$4.call(n,e)&&(o[transformStyleToCssCasing(e)]=n[e]);return o}function transformStyleToCssCasing(n){let o=n.replace(cap,toDash);return o.slice(0,3)==="ms-"&&(o="-"+o),o}function toDash(n){return"-"+n.toLowerCase()}const urlAttributes={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},emptyOptions$4={};function toString$1(n,o){const e=emptyOptions$4,t=typeof e.includeImageAlt=="boolean"?e.includeImageAlt:!0,c=typeof e.includeHtml=="boolean"?e.includeHtml:!0;return one(n,t,c)}function one(n,o,e){if(node(n)){if("value"in n)return n.type==="html"&&!e?"":n.value;if(o&&"alt"in n&&n.alt)return n.alt;if("children"in n)return all(n.children,o,e)}return Array.isArray(n)?all(n,o,e):""}function all(n,o,e){const t=[];let c=-1;for(;++c<n.length;)t[c]=one(n[c],o,e);return t.join("")}function node(n){return!!(n&&typeof n=="object")}const element=document.createElement("i");function decodeNamedCharacterReference(n){const o="&"+n+";";element.innerHTML=o;const e=element.textContent;return e.charCodeAt(e.length-1)===59&&n!=="semi"||e===o?!1:e}function splice(n,o,e,t){const c=n.length;let p=0,h;if(o<0?o=-o>c?0:c+o:o=o>c?c:o,e=e>0?e:0,t.length<1e4)h=Array.from(t),h.unshift(o,e),n.splice(...h);else for(e&&n.splice(o,e);p<t.length;)h=t.slice(p,p+1e4),h.unshift(o,0),n.splice(...h),p+=1e4,o+=1e4}function push(n,o){return n.length>0?(splice(n,n.length,0,o),n):o}const hasOwnProperty={}.hasOwnProperty;function combineExtensions(n){const o={};let e=-1;for(;++e<n.length;)syntaxExtension(o,n[e]);return o}function syntaxExtension(n,o){let e;for(e in o){const c=(hasOwnProperty.call(n,e)?n[e]:void 0)||(n[e]={}),p=o[e];let h;if(p)for(h in p){hasOwnProperty.call(c,h)||(c[h]=[]);const y=p[h];constructs(c[h],Array.isArray(y)?y:y?[y]:[])}}}function constructs(n,o){let e=-1;const t=[];for(;++e<o.length;)(o[e].add==="after"?n:t).push(o[e]);splice(n,0,0,t)}function decodeNumericCharacterReference(n,o){const e=Number.parseInt(n,o);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"�":String.fromCodePoint(e)}function normalizeIdentifier(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(n){return n!==null&&(n<32||n===127)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(n){return n!==null&&n<-2}function markdownLineEndingOrSpace(n){return n!==null&&(n<0||n===32)}function markdownSpace(n){return n===-2||n===-1||n===32}const unicodePunctuation=regexCheck(new RegExp("\\p{P}|\\p{S}","u")),unicodeWhitespace=regexCheck(/\s/);function regexCheck(n){return o;function o(e){return e!==null&&e>-1&&n.test(String.fromCharCode(e))}}function normalizeUri(n){const o=[];let e=-1,t=0,c=0;for(;++e<n.length;){const p=n.charCodeAt(e);let h="";if(p===37&&asciiAlphanumeric(n.charCodeAt(e+1))&&asciiAlphanumeric(n.charCodeAt(e+2)))c=2;else if(p<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(p))||(h=String.fromCharCode(p));else if(p>55295&&p<57344){const y=n.charCodeAt(e+1);p<56320&&y>56319&&y<57344?(h=String.fromCharCode(p,y),c=1):h="�"}else h=String.fromCharCode(p);h&&(o.push(n.slice(t,e),encodeURIComponent(h)),t=e+c+1,h=""),c&&
vendor: 40,884 bytes, line 48
48(e+=c,c=0)}return o.join("")+n.slice(t)}function factorySpace(n,o,e,t){const c=t?t-1:Number.POSITIVE_INFINITY;let p=0;return h;function h(g){return markdownSpace(g)?(n.enter(e),y(g)):o(g)}function y(g){return markdownSpace(g)&&p++<c?(n.consume(g),y):(n.exit(e),o(g))}}const content$1={tokenize:initializeContent};function initializeContent(n){const o=n.attempt(this.parser.constructs.contentInitial,t,c);let e;return o;function t(y){if(y===null){n.consume(y);return}return n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),factorySpace(n,o,"linePrefix")}function c(y){return n.enter("paragraph"),p(y)}function p(y){const g=n.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=g),e=g,h(y)}function h(y){if(y===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(y);return}return markdownLineEnding(y)?(n.consume(y),n.exit("chunkText"),p):(n.consume(y),h)}}const document$2={tokenize:initializeDocument},containerConstruct={tokenize:tokenizeContainer};function initializeDocument(n){const o=this,e=[];let t=0,c,p,h;return y;function y(Ce){if(t<e.length){const Ie=e[t];return o.containerState=Ie[1],n.attempt(Ie[0].continuation,g,$)(Ce)}return $(Ce)}function g(Ce){if(t++,o.containerState._closeFlow){o.containerState._closeFlow=void 0,c&&$e();const Ie=o.events.length;let Ne=Ie,Fe;for(;Ne--;)if(o.events[Ne][0]==="exit"&&o.events[Ne][1].type==="chunkFlow"){Fe=o.events[Ne][1].end;break}we(t);let Be=Ie;for(;Be<o.events.length;)o.events[Be][1].end={...Fe},Be++;return splice(o.events,Ne+1,0,o.events.slice(Ie)),o.events.length=Be,$(Ce)}return y(Ce)}function $(Ce){if(t===e.length){if(!c)return N(Ce);if(c.currentConstruct&&c.currentConstruct.concrete)return Z(Ce);o.interrupt=!!(c.currentConstruct&&!c._gfmTableDynamicInterruptHack)}return o.containerState={},n.check(containerConstruct,E,A)(Ce)}function E(Ce){return c&&$e(),we(t),N(Ce)}function A(Ce){return o.parser.lazy[o.now().line]=t!==e.length,h=o.now().offset,Z(Ce)}function N(Ce){return o.containerState={},n.attempt(containerConstruct,H,Z)(Ce)}function H(Ce){return t++,e.push([o.currentConstruct,o.containerState]),N(Ce)}function Z(Ce){if(Ce===null){c&&$e(),we(0),n.consume(Ce);return}return c=c||o.parser.flow(o.now()),n.enter("chunkFlow",{_tokenizer:c,contentType:"flow",previous:p}),X(Ce)}function X(Ce){if(Ce===null){be(n.exit("chunkFlow"),!0),we(0),n.consume(Ce);return}return markdownLineEnding(Ce)?(n.consume(Ce),be(n.exit("chunkFlow")),t=0,o.interrupt=void 0,y):(n.consume(Ce),X)}function be(Ce,Ie){const Ne=o.sliceStream(Ce);if(Ie&&Ne.push(null),Ce.previous=p,p&&(p.next=Ce),p=Ce,c.defineSkip(Ce.start),c.write(Ne),o.parser.lazy[Ce.start.line]){let Fe=c.events.length;for(;Fe--;)if(c.events[Fe][1].start.offset<h&&(!c.events[Fe][1].end||c.events[Fe][1].end.offset>h))return;const Be=o.events.length;let Ge=Be,je,De;for(;Ge--;)if(o.events[Ge][0]==="exit"&&o.events[Ge][1].type==="chunkFlow"){if(je){De=o.events[Ge][1].end;break}je=!0}for(we(t),Fe=Be;Fe<o.events.length;)o.events[Fe][1].end={...De},Fe++;splice(o.events,Ge+1,0,o.events.slice(Be)),o.events.length=Fe}}function we(Ce){let Ie=e.length;for(;Ie-- >Ce;){const Ne=e[Ie];o.containerState=Ne[1],Ne[0].exit.call(o,n)}e.length=Ce}function $e(){c.write([null]),p=void 0,c=void 0,o.containerState._closeFlow=void 0}}function tokenizeContainer(n,o,e){return factorySpace(n,n.attempt(this.parser.constructs.document,o,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(n){if(n===null||markdownLineEndingOrSpace(n)||unicodeWhitespace(n))return 1;if(unicodePunctuation(n))return 2}function resolveAll(n,o,e){const t=[];let c=-1;for(;++c<n.length;){const p=n[c].resolveAll;p&&!t.includes(p)&&(o=p(o,e),t.push(p))}return o}const attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(n,o){let e=-1,t,c,p,h,y,g,$,E;for(;++e<n.length;)if(n[e][0]==="enter"&&n[e][1].type==="attentionSequence"&&n[e][1]._close){for(t=e;t--;)if(n[t][0]==="exit"&&n[t][1].type==="attentionSequence"&&n[t][1]._open&&o.sliceSerialize(n[t][1]).charCodeAt(0)===o.sliceSerialize(n[e][1]).charCodeAt(0)){if((n[t][1]._close||n[e][1]._open)&&(n[e][1].end.offset-n[e][1].start.offset)%3&&!((n[t][1].end.offset-n[t][1].start.offset+n[e][1].end.offset-n[e][1].start.offset)%3))continue;g=n[t][1].end.offset-n[t][1].start.offset>1&&n[e][1].end.offset-n[e][1].start.offset>1?2:1;const A={...n[t][1].end},N={...n[e][1].start};movePoint(A,-g),movePoint(N,g),h={type:g>1?"strongSequence":"emphasisSequence",start:A,end:{...n[t][1].end}},y={type:g>1?"strongSequence":"emphasisSequence",start:{...n[e][1].start},end:N},p={type:g>1?"strongText":"emphasisText",start:{...n[t][1].end},end:{...n[e][1].start}},c={type:g>1?"strong":"emphasis",start:{...h.start},end:{...y.end}},n[t][1].end={...h.start},n[e][1].start={...y.end},$=[],n[t][1].end.offset-n[t][1].start.offset&&($=push($,[["enter",n[t][1],o],["exit",n[t][1],o]])),$=push($,[["enter",c,o],["enter",h,o],["exit",h,o],["enter",p,o]]),$=push($,resolveAll(o.parser.constructs.insideSpan.null,n.slice(t+1,e),o)),$=push($,[["exit",p,o],["enter",y,o],["exit",y,o],["exit",c,o]]),n[e][1].end.offset-n[e][1].start.offset?(E=2,$=push($,[["enter",n[e][1],o],["exit",n[e][1],o]])):E=0,splice(n,t-1,e-t+3,$),e=t+$.length-E-2;break}}for(e=-1;++e<n.length;)n[e][1].type==="attentionSequence"&&(n[e][1].type="data");return n}function tokenizeAttention(n,o){const e=this.parser.constructs.attentionMarkers.null,t=this.previous,c=classifyCharacter(t);let p;return h;function h(g){return p=g,n.enter("attentionSequence"),y(g)}function y(g){if(g===p)return n.consume(g),y;const $=n.exit("attentionSequence"),E=classifyCharacter(g),A=!E||E===2&&c||e.includes(g),N=!c||c===2&&E||e.includes(t);return $._open=!!(p===42?A:A&&(c||!N)),$._close=!!(p===42?N:N&&(E||!A)),o(g)}}function movePoint(n,o){n.column+=o,n.offset+=o,n._bufferIndex+=o}const autolink={name:"autolink",tokenize:tokenizeAutolink};function tokenizeAutolink(n,o,e){let t=0;return c;function c(H){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(H),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),p}function p(H){return asciiAlpha(H)?(n.consume(H),h):H===64?e(H):$(H)}function h(H){return H===43||H===45||H===46||asciiAlphanumeric(H)?(t=1,y(H)):$(H)}function y(H){return H===58?(n.consume(H),t=0,g):(H===43||H===45||H===46||asciiAlphanumeric(H))&&t++<32?(n.consume(H),y):(t=0,$(H))}function g(H){return H===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(H),n.exit("autolinkMarker"),n.exit("autolink"),o):H===null||H===32||H===60||asciiControl(H)?e(H):(n.consume(H),g)}function $(H){return H===64?(n.consume(H),E):asciiAtext(H)?(n.consume(H),$):e(H)}function E(H){return asciiAlphanumeric(H)?A(H):e(H)}function A(H){return H===46?(n.consume(H),t=0,E):H===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(H),n.exit("autolinkMarker"),n.exit("autolink"),o):N(H)}function N(H){if((H===45||asciiAlphanumeric(H))&&t++<63){const Z=H===45?N:A;return n.consume(H),Z}return e(H)}}const blankLine={partial:!0,tokenize:tokenizeBlankLine};function tokenizeBlankLine(n,o,e){return t;function t(p){return markdownSpace(p)?factorySpace(n,c,"linePrefix")(p):c(p)}function c(p){return p===null||markdownLineEnding(p)?o(p):e(p)}}const blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit:exit$2,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(n,o,e){const t=this;return c;function c(h){if(h===62){const y=t.containerState;return y.open||(n.enter("blockQuote",{_container:!0}),y.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(h),n.exit("blockQuoteMarker"),p}return e(h)}function p(h){return markdownSpace(h)?(n.enter("blockQuotePrefixWhitespace"),n.consume(h),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),o):(n.exit("blockQuotePrefix"),o(h))}}function tokenizeBlockQuoteContinuation(n,o,e){const t=this;return c;function c(h){return markdownSpace(h)?factorySpace(n,p,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):p(h)}function p(h){return n.attempt(blockQuote,o,e)(h)}}function exit$2(n){n.exit("blockQuote")}const characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(n,o,e){return t;function t(p){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(p),n.exit("escapeMarker"),c}function c(p){return asciiPunctuation(p)?(n.enter("characterEscapeValue"),n.consume(p),n.exit("characterEscapeValue"),n.exit("characterEscape"),o):e(p)}}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(n,o,e){const t=this;let c=0,p,h;return y;function y(A){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(A),n.exit("characterReferenceMarker"),g}function g(A){return A===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(A),n.exit("characterReferenceMarkerNumeric"),$):(n.enter("characterReferenceValue"),p=31,h=asciiAlphanumeric,E(A))}function $(A){return A===88||A===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(A),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),p=6,h=asciiHexDigit,E):(n.enter("characterReferenceValue"),p=7,h=asciiDigit,E(A))}function E(A){if(A===59&&c){const N=n.exit("characterReferenceValue");return h===asciiAlphanumeric&&!decodeNamedCharacterReference(t.sliceSerialize(N))?e(A):(n.enter("characterReferenceMarker"),n.consume(A),n.exit("characterReferenceMarker"),n.exit("characterReference"),o)}return h(A)&&c++<p?(n.consume(A),E):e(A)}}const nonLazyContinuation$1={partial:!0,tokenize:tokenizeNonLazyContinuation$1},codeFenced={concrete:!0,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(n,o,e){const t=this,c={partial:!0,tokenize:Ne};let p=0,h=0,y;return g;function g(Fe){return $(Fe)}function $(Fe){const Be=t.events[t.events.length-1];return p=Be&&Be[1].type==="linePrefix"?Be[2].sliceSerialize(Be[1],!0).length:0,y=Fe,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),E(Fe)}function E(Fe){return Fe===y?(h++,n.consume(Fe),E):h<3?e(Fe):(n.exit("codeFencedFenceSequence"),markdownSpace(Fe)?factorySpace(n,A,"whitespace")(Fe):A(Fe))}function A(Fe){return Fe===null||markdownLineEnding(Fe)?(n.exit("codeFencedFence"),t.interrupt?o(Fe):n.check(nonLazyContinuation$1,X,Ie)(Fe)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),N(Fe))}function N(Fe){return Fe===null||markdownLineEnding(Fe)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),A(Fe)):markdownSpace(Fe)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),factorySpace(n,H,"whitespace")(Fe)):Fe===96&&Fe===y?e(Fe):(n.consume(Fe),N)}function H(Fe){return Fe===null||markdownLineEnding(Fe)?A(Fe):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),Z(Fe))}function Z(Fe){return Fe===null||markdownLineEnding(Fe)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),A(Fe)):Fe===96&&Fe===y?e(Fe):(n.consume(Fe),Z)}function X(Fe){return n.attempt(c,Ie,be)(Fe)}function be(Fe){return n.enter("lineEnding"),n.consume(Fe),n.exit("lineEnding"),we}function we(Fe){return p>0&&markdownSpace(Fe)?factorySpace(n,$e,"linePrefix",p+1)(Fe):$e(Fe)}function $e(Fe){return Fe===null||markdownLineEnding(Fe)?n.check(nonLazyContinuation$1,X,Ie)(Fe):(n.enter("codeFlowValue"),Ce(Fe))}function Ce(Fe){return Fe===null||markdownLineEnding(Fe)?(n.exit("codeFlowValue"),$e(Fe)):(n.consume(Fe),Ce)}function Ie(Fe){return n.exit("codeFenced"),o(Fe)}function Ne(Fe,Be,Ge){let je=0;return De;function De(ze){return Fe.enter("lineEnding"),Fe.consume(ze),Fe.exit("lineEnding"),Ue}function Ue(ze){return Fe.enter("codeFencedFence"),markdownSpace(ze)?factorySpace(Fe,Je,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ze):Je(ze)}function Je(ze){return ze===y?(Fe.enter("codeFencedFenceSequence"),Xe(ze)):Ge(ze)}function Xe(ze){return ze===y?(je++,Fe.consume(ze),Xe):je>=h?(Fe.exit("codeFencedFenceSequence"),markdownSpace(ze)?factorySpace(Fe,Ke,"whitespace")(ze):Ke(ze)):Ge(ze)}function Ke(ze){return ze===null||markdownLineEnding(ze)?(Fe.exit("codeFencedFence"),Be(ze)):Ge(ze)}}}function tokenizeNonLazyContinuation$1(n,o,e){const t=this;return c;function c(h){return h===null?e(h):(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p)}function p(h){return t.parser.lazy[t.now().line]?e(h):o(h)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(n,o,e){const t=this;return c;function c($){return n.enter("codeIndented"),factorySpace(n,p,"linePrefix",5)($)}function p($){const E=t.events[t.events.length-1];return E&&E[1].type==="linePrefix"&&E[2].sliceSerialize(E[1],!0).length>=4?h($):e($)}function h($){return $===null?g($):markdownLineEnding($)?n.attempt(furtherStart,h,g)($):(n.enter("codeFlowValue"),y($))}function y($){return $===null||markdownLineEnding($)?(n.exit("codeFlowValue"),h($)):(n.consume($),y)}function g($){return n.exit("codeIndented"),o($)}}function tokenizeFurtherStart(n,o,e){const t=this;return c;function c(h){return t.parser.lazy[t.now().line]?e(h):markdownLineEnding(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),c):factorySpace(n,p,"linePrefix",5)(h)}function p(h){const y=t.events[t.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?o(h):markdownLineEnding(h)?c(h):e(h)}}const codeText={name:"codeText",previous:previous$3,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(n){let o=n.length-4,e=3,t,c;if((n[e][1].type==="lineEnding"||n[e][1].type==="space")&&(n[o][1].type==="lineEnding"||n[o][1].type==="space")){for(t=e;++t<o;)if(n[t][1].type==="codeTextData"){n[e][1].type="codeTextPadding",n[o][1].type="codeTextPadding",e+=2,o-=2;break}}for(t=e-1,o++;++t<=o;)c===void 0?t!==o&&n[t][1].type!=="lineEnding"&&(c=t):(t===o||n[t][1].type==="lineEnding")&&(n[c][1].type="codeTextData",t!==c+2&&(n[c][1].end=n[t-1][1].end,n.splice(c+2,t-c-2),o-=t-c-2,t=c+2),c=void 0);return n}function previous$3(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeCodeText(n,o,e){let t=0,c,p;return h;function h(A){return n.enter("codeText"),n.enter("codeTextSequence"),y(A)}function y(A){return A===96?(n.consume(A),t++,y):(n.exit("codeTextSequence"),g(A))}function g(A){return A===null?e(A):A===32?(n.enter("space"),n.consume(A),n.exit("space"),g):A===96?(p=n.enter("codeTextSequence"),c=0,E(A)):markdownLineEnding(A)?(n.enter("lineEnding"),n.consume(A),n.exit("lineEnding"),g):(n.enter("codeTextData"),$(A))}function $(A){return A===null||A===32||A===96||markdownLineEnding(A)?(n.exit("codeTextData"),g(A)):(n.consume(A),$)}function E(A){return A===96?(n.consume(A),c++,E):c===t?(n.exit("codeTextSequence"),n.exit("codeText"),o(A)):(p.type="codeTextData",$(A))}}class SpliceBuffer{constructor(o){this.left=o?[...o]:[],this.right=[]}get(o){if(o<0||o>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+o+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return o<this.left.length?this.left[o]:this.right[this.right.length-o+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(o,e){const t=e??Number.POSITIVE_INFINITY;return t<this.left.length?this.left.slice(o,t):o>this.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-o+this.left.length).reverse():this.left.slice(o).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(o,e,t){const c=e||0;this.setCursor(Math.trunc(o));const p=this.right.splice(this.right.length-c,Number.POSITIVE_INFINITY);return t&&chunkedPush(this.left,t),p.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(o){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(o)}pushMany(o){this.setCursor(Number.POSITIVE_INFINITY),chunkedPush(this.left,o)}unshift(o){this.setCursor(0),this.right.push(o)}unshiftMany(o){this.setCursor(0),chunkedPush(this.right,o.reverse())}setCursor(o){if(!(o===this.left.length||o>this.left.length&&this.right.length===0||o<0&&this.left.length===0))if(o<this.left.length){const e=this.left.splice(o,Number.POSITIVE_INFINITY);chunkedPush(this.right,e.reverse())}else{const e=this.right.splice(this.left.length+this.right.length-o,Number.POSITIVE_INFINITY);chunkedPush(this.left,e.reverse())}}}function chunkedPush(n,o){let e=0;if(o.length<1e4)n.push(...o);else for(;e<o.length;)n.push(...o.slice(e,e+1e4)),e+=1e4}function subtokenize(n){const o={};let e=-1,t,c,p,h,y,g,$;const E=new SpliceBuffer(n);for(;++e<E.length;){for(;e in o;)e=o[e];if(t=E.get(e),e&&t[1].type==="chunkFlow"&&E.get(e-1)[1].type==="listItemPrefix"&&(g=t[1]._tokenizer.events,p=0,p<g.length&&g[p][1].type==="lineEndingBlank"&&(p+=2),p<g.length&&g[p][1].type==="content"))for(;++p<g.length&&g[p][1].type!=="content";)g[p][1].type==="chunkText"&&(g[p][1]._isInFirstContentOfListItem=!0,p++);if(t[0]==="enter")t[1].contentType&&(Object.assign(o,subcontent(E,e)),e=o[e],$=!0);else if(t[1]._container){for(p=e,c=void 0;p--;)if(h=E.get(p),h[1].type==="lineEnding"||h[1].type==="lineEndingBlank")h[0]==="enter"&&(c&&(E.get(c)[1].type="lineEndingBlank"),h[1].type="lineEnding",c=p);else if(h[1].type!=="linePrefix")break;c&&(t[1].end={...E.get(c)[1].start},y=E.slice(c,e),y.unshift(t),E.splice(c,e-c+1,y))}}return splice(n,0,Number.POSITIVE_INFINITY,E.slice(0)),!$}function subcontent(n,o){const e=n.get(o)[1],t=n.get(o)[2];let c=o-1;const p=[],h=e._tokenizer||t.parser[e.contentType](e.start),y=h.events,g=[],$={};let E,A,N=-1,H=e,Z=0,X=0;const be=[X];for(;H;){for(;n.get(++c)[1]!==H;);p.push(c),H._tokenizer||(E=t.sliceStream(H),H.next||E.push(null),A&&h.defineSkip(H.start),H._isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=!0),h.write(E),H._isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=void 0)),A=H,H=H.next}for(H=e;++N<y.length;)y[N][0]==="exit"&&y[N-1][0]==="enter"&&y[N][1].type===y[N-1][1].type&&y[N][1].start.line!==y[N][1].end.line&&(X=N+1,be.push(X),H._tokenizer=void 0,H.previous=void 0,H=H.next);for(h.events=[],H?(H._tokenizer=void 0,H.previous=void 0):be.pop(),N=be.length;N--;){const we=y.slice(be[N],be[N+1]),$e=p.pop();g.push([$e,$e+we.length-1]),n.splice($e,2,we)}for(g.reverse(),N=-1;++N<g.length;)$[Z+g[N][0]]=Z+g[N][1],Z+=g[N][1]-g[N][0]-1;return $}const content={resolve:resolveContent,tokenize:tokenizeContent},continuationConstruct={partial:!0,tokenize:tokenizeContinuation};function resolveContent(n){return subtokenize(n),n}function tokenizeContent(n,o){let e;return t;function t(y){return n.enter("content"),e=n.enter("chunkContent",{contentType:"content"}),c(y)}function c(y){return y===null?p(y):markdownLineEnding(y)?n.check(continuationConstruct,h,p)(y):(n.consume(y),c)}function p(y){return n.exit("chunkContent"),n.exit("content"),o(y)}function h(y){return n.consume(y),n.exit("chunkContent"),e.next=n.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,c}}function tokenizeContinuation(n,o,e){const t=this;return c;function c(h){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),factorySpace(n,p,"linePrefix")}function p(h){if(h===null||markdownLineEnding(h))return e(h);const y=t.events[t.events.length-1];return!t.parser.constructs.disable.null.includes("codeIndented")&&y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?o(h):n.interrupt(t.parser.constructs.flow,e,o)(h)}}function factoryDestination(n,o,e,t,c,p,h,y,g){const $=g||Number.POSITIVE_INFINITY;let E=0;return A;function A(we){return we===60?(n.enter(t),n.enter(c),n.enter(p),n.consume(we),n.exit(p),N):we===null||we===32||we===41||asciiControl(we)?e(we):(n.enter(t),n.enter(h),n.enter(y),n.enter("chunkString",{contentType:"string"}),X(we))}function N(we){return we===62?(n.enter(p),n.consume(we),n.exit(p),n.exit(c),n.exit(t),o):(n.enter(y),n.enter("chunkString",{contentType:"string"}),H(we))}function H(we){return we===62?(n.exit("chunkString"),n.exit(y),N(we)):we===null||we===60||markdownLineEnding(we)?e(we):(n.consume(we),we===92?Z:H)}function Z(we){return we===60||we===62||we===92?(n.consume(we),H):H(we)}function X(we){return!E&&(we===null||we===41||markdownLineEndingOrSpace(we))?(n.exit("chunkString"),n.exit(y),n.exit(h),n.exit(t),o(we)):E<$&&we===40?(n.consume(we),E++,X):we===41?(n.consume(we),E--,X):we===null||we===32||we===40||asciiControl(we)?e(we):(n.consume(we),we===92?be:X)}function be(we){return we===40||we===41||we===92?(n.consume(we),X):X(we)}}function factoryLabel$1(n,o,e,t,c,p){const h=this;let y=0,g;return $;function $(H){return n.enter(t),n.enter(c),n.consume(H),n.exit(c),n.enter(p),E}function E(H){return y>999||H===null||H===91||H===93&&!g||H===94&&!y&&"_hiddenFootnoteSupport"in h.parser.constructs?e(H):H===93?(n.exit(p),n.enter(c),n.consume(H),n.exit(c),n.exit(t),o):markdownLineEnding(H)?(n.enter("lineEnding"),n.consume(H),n.exit("lineEnding"),E):(n.enter("chunkString",{contentType:"string"}),A(H))}function A(H){return H===null||H===91||H===93||markdownLineEnding(H)||y++>999?(n.exit("chunkString"),E(H)):(n.consume(H),g||(g=!markdownSpace(H)),H===92?N:A)}function N(H){return H===91||H===92||H===93?(n.consume(H),y++,A):A(H)}}function factoryTitle(n,o,e,t,c,p){let h;return y;function y(N){return N===34||N===39||N===40?(n.enter(t),n.enter(c),n.consume(N),n.exit(c),h=N===40?41:N,g):e(N)}function g(N){return N===h?(n.enter(c),n.consume(N),n.exit(c),n.exit(t),o):(n.enter(p),$(N))}function $(N){return N===h?(n.exit(p),g(h)):N===null?e(N):markdownLineEnding(N)?(n.enter("lineEnding"),n.consume(N),n.exit("lineEnding"),factorySpace(n,$,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),E(N))}function E(N){return N===h||N===null||markdownLineEnding(N)?(n.exit("chunkString"),$(N)):(n.consume(N),N===92?A:E)}function A(N){return N===h||N===92?(n.consume(N),E):E(N)}}function factoryWhitespace(n,o){let e;return t;function t(c){return markdownLineEnding(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),e=!0,t):markdownSpace(c)?factorySpace(n,t,e?"linePrefix":"lineSuffix")(c):o(c)}}const definition$1={name:"definition",tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(n,o,e){const t=this;let c;return p;function p(H){return n.enter("definition"),h(H)}function h(H){return factoryLabel$1.call(t,n,y,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(H)}function y(H){return c=normalizeIdentifier(t.sliceSerialize(t.events[t.events.length-1][1]).slice(1,-1)),H===58?(n.enter("definitionMarker"),n.consume(H),n.exit("definitionMarker"),g):e(H)}function g(H){return markdownLineEndingOrSpace(H)?factoryWhitespace(n,$)(H):$(H)}function $(H){return factoryDestination(n,E,e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(H)}function E(H){return n.attempt(titleBefore,A,A)(H)}function A(H){return markdownSpace(H)?factorySpace(n,N,"whitespace")(H):N(H)}function N(H){return H===null||markdownLineEnding(H)?(n.exit("definition"),t.parser.defined.push(c),o(H)):e(H)}}function tokenizeTitleBefore(n,o,e){return t;function t(y){return markdownLineEndingOrSpace(y)?factoryWhitespace(n,c)(y):e(y)}function c(y){return factoryTitle(n,p,e,"definitionTitle","definitionTitleMarker","definitionTitleString")(y)}function p(y){return markdownSpace(y)?factorySpace(n,h,"whitespace")(y):h(y)}function h(y){return y===null||markdownLineEnding(y)?o(y):e(y)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(n,o,e){return t;function t(p){return n.enter("hardBreakEscape"),n.consume(p),c}function c(p){return markdownLineEnding(p)?(n.exit("hardBreakEscape"),o(p)):e(p)}}const headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(n,o){let e=n.length-2,t=3,c,p;return n[t][1].type==="whitespace"&&(t+=2),e-2>t&&n[e][1].type==="whitespace"&&(e-=2),n[e][1].type==="atxHeadingSequence"&&(t===e-1||e-4>t&&n[e-2][1].type==="whitespace")&&(e-=t+1===e?2:4),e>t&&(c={type:"atxHeadingText",start:n[t][1].start,end:n[e][1].end},p={type:"chunkText",start:n[t][1].start,end:n[e][1].end,contentType:"text"},splice(n,t,e-t+1,[["enter",c,o],["enter",p,o],["exit",p,o],["exit",c,o]])),n}function tokenizeHeadingAtx(n,o,e){let t=0;return c;function c(E){return n.enter("atxHeading"),p(E)}function p(E){return n.enter("atxHeadingSequence"),h(E)}function h(E){return E===35&&t++<6?(n.consume(E),h):E===null||markdownLineEndingOrSpace(E)?(n.exit("atxHeadingSequence"),y(E)):e(E)}function y(E){return E===35?(n.enter("atxHeadingSequence"),g(E)):E===null||markdownLineEnding(E)?(n.exit("atxHeading"),o(E)):markdownSpace(E)?factorySpace(n,y,"whitespace")(E):(n.enter("atxHeadingText"),$(E))}function g(E){return E===35?(n.consume(E),g):(n.exit("atxHeadingSequence"),y(E))}function $(E){return E===null||E===35||markdownLineEndingOrSpace(E)?(n.exit("atxHeadingText"),y(E)):(n.consume(E),$)}}const htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={concrete:!0,name:"htmlFlow",resolveTo:resolveToHtmlFlow,tokenize:tokenizeHtmlFlow},blankLineBefore={partial:!0,tokenize:tokenizeBlankLineBefore},nonLazyContinuationStart={partial:!0,tokenize:tokenizeNonLazyContinuationStart};function resolveToHtmlFlow(n){let o=n.length;for(;o--&&!(n[o][0]==="enter"&&n[o][1].type==="htmlFlow"););return o>1&&n[o-2][1].type==="linePrefix"&&(n[o][1].start=n[o-2][1].start,n[o+1][1].start=n[o-2][1].start,n.splice(o-2,2)),n}function tokenizeHtmlFlow(n,o,e){const t=this;let c,p,h,y,g;return $;function $(Ve){return E(Ve)}function E(Ve){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(Ve),A}function A(Ve){return Ve===33?(n.consume(Ve),N):Ve===47?(n.consume(Ve),p=!0,X):Ve===63?(n.consume(Ve),c=3,t.interrupt?o:Me):asciiAlpha(Ve)?(n.consume(Ve),h=String.fromCharCode(Ve),be):e(Ve)}function N(Ve){return Ve===45?(n.consume(Ve),c=2,H):Ve===91?(n.consume(Ve),c=5,y=0,Z):asciiAlpha(Ve)?(n.consume(Ve),c=4,t.interrupt?o:Me):e(Ve)}function H(Ve){return Ve===45?(n.consume(Ve),t.interrupt?o:Me):e(Ve)}function Z(Ve){const vt="CDATA[";return Ve===vt.charCodeAt(y++)?(n.consume(Ve),y===vt.length?t.interrupt?o:Je:Z):e(Ve)}function X(Ve){return asciiAlpha(Ve)?(n.consume(Ve),h=String.fromCharCode(Ve),be):e(Ve)}function be(Ve){if(Ve===null||Ve===47||Ve===62||markdownLineEndingOrSpace(Ve)){const vt=Ve===47,xt=h.toLowerCase();return!vt&&!p&&htmlRawNames.includes(xt)?(c=1,t.interrupt?o(Ve):Je(Ve)):htmlBlockNames.includes(h.toLowerCase())?(c=6,vt?(n.consume(Ve),we):t.interrupt?o(Ve):Je(Ve)):(c=7,t.interrupt&&!t.parser.lazy[t.now().line]?e(Ve):p?$e(Ve):Ce(Ve))}return Ve===45||asciiAlphanumeric(Ve)?(n.consume(Ve),h+=String.fromCharCode(Ve),be):e(Ve)}function we(Ve){return Ve===62?(n.consume(Ve),t.interrupt?o:Je):e(Ve)}function $e(Ve){return markdownSpace(Ve)?(n.consume(Ve),$e):De(Ve)}function Ce(Ve){return Ve===47?(n.consume(Ve),De):Ve===58||Ve===95||asciiAlpha(Ve)?(n.consume(Ve),Ie):markdownSpace(Ve)?(n.consume(Ve),Ce):De(Ve)}function Ie(Ve){return Ve===45||Ve===46||Ve===58||Ve===95||asciiAlphanumeric(Ve)?(n.consume(Ve),Ie):Ne(Ve)}function Ne(Ve){return Ve===61?(n.consume(Ve),Fe):markdownSpace(Ve)?(n.consume(Ve),Ne):Ce(Ve)}function Fe(Ve){return Ve===null||Ve===60||Ve===61||Ve===62||Ve===96?e(Ve):Ve===34||Ve===39?(n.consume(Ve),g=Ve,Be):markdownSpace(Ve)?(n.consume(Ve),Fe):Ge(Ve)}function Be(Ve){return Ve===g?(n.consume(Ve),g=null,je):Ve===null||markdownLineEnding(Ve)?e(Ve):(n.consume(Ve),Be)}function Ge(Ve){return Ve===null||Ve===34||Ve===39||Ve===47||Ve===60||Ve===61||Ve===62||Ve===96||markdownLineEndingOrSpace(Ve)?Ne(Ve):(n.consume(Ve),Ge)}function je(Ve){return Ve===47||Ve===62||markdownSpace(Ve)?Ce(Ve):e(Ve)}function De(Ve){return Ve===62?(n.consume(Ve),Ue):e(Ve)}function Ue(Ve){return Ve===null||markdownLineEnding(Ve)?Je(Ve):markdownSpace(Ve)?(n.consume(Ve),Ue):e(Ve)}function Je(Ve){return Ve===45&&c===2?(n.consume(Ve),nt):Ve===60&&c===1?(n.consume(Ve),ct):Ve===62&&c===4?(n.consume(Ve),We):Ve===63&&c===3?(n.consume(Ve),Me):Ve===93&&c===5?(n.consume(Ve),dt):markdownLineEnding(Ve)&&(c===6||c===7)?(n.exit("htmlFlowData"),n.check(blankLineBefore,tt,Xe)(Ve)):Ve===null||markdownLineEnding(Ve)?(n.exit("htmlFlowData"),Xe(Ve)):(n.consume(Ve),Je)}function Xe(Ve){return n.check(nonLazyContinuationStart,Ke,tt)(Ve)}function Ke(Ve){return n.enter("lineEnding"),n.consume(Ve),n.exit("lineEnding"),ze}function ze(Ve){return Ve===null||markdownLineEnding(Ve)?Xe(Ve):(n.enter("htmlFlowData"),Je(Ve))}function nt(Ve){return Ve===45?(n.consume(Ve),Me):Je(Ve)}function ct(Ve){return Ve===47?(n.consume(Ve),h="",at):Je(Ve)}function at(Ve){if(Ve===62){const vt=h.toLowerCase();return htmlRawNames.includes(vt)?(n.consume(Ve),We):Je(Ve)}return asciiAlpha(Ve)&&h.length<8?(n.consume(Ve),h+=String.fromCharCode(Ve),at):Je(Ve)}function dt(Ve){return Ve===93?(n.consume(Ve),Me):Je(Ve)}function Me(Ve){return Ve===62?(n.consume(Ve),We):Ve===45&&c===2?(n.consume(Ve),Me):Je(Ve)}function We(Ve){return Ve===null||markdownLineEnding(Ve)?(n.exit("htmlFlowData"),tt(Ve)):(n.consume(Ve),We)}function tt(Ve){return n.exit("htmlFlow"),o(Ve)}}function tokenizeNonLazyContinuationStart(n,o,e){const t=this;return c;function c(h){return markdownLineEnding(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):e(h)}function p(h){return t.parser.lazy[t.now().line]?e(h):o(h)}}function tokenizeBlankLineBefore(n,o,e){return t;function t(c){return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),n.attempt(blankLine,o,e)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(n,o,e){const t=this;let c,p,h;return y;function y(Me){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(Me),g}function g(Me){return Me===33?(n.consume(Me),$):Me===47?(n.consume(Me),Ne):Me===63?(n.consume(Me),Ce):asciiAlpha(Me)?(n.consume(Me),Ge):e(Me)}function $(Me){return Me===45?(n.consume(Me),E):Me===91?(n.consume(Me),p=0,Z):asciiAlpha(Me)?(n.consume(Me),$e):e(Me)}function E(Me){return Me===45?(n.consume(Me),H):e(Me)}function A(Me){return Me===null?e(Me):Me===45?(n.consume(Me),N):markdownLineEnding(Me)?(h=A,ct(Me)):(n.consume(Me),A)}function N(Me){return Me===45?(n.consume(Me),H):A(Me)}function H(Me){return Me===62?nt(Me):Me===45?N(Me):A(Me)}function Z(Me){const We="CDATA[";return Me===We.charCodeAt(p++)?(n.consume(Me),p===We.length?X:Z):e(Me)}function X(Me){return Me===null?e(Me):Me===93?(n.consume(Me),be):markdownLineEnding(Me)?(h=X,ct(Me)):(n.consume(Me),X)}function be(Me){return Me===93?(n.consume(Me),we):X(Me)}function we(Me){return Me===62?nt(Me):Me===93?(n.consume(Me),we):X(Me)}function $e(Me){return Me===null||Me===62?nt(Me):markdownLineEnding(Me)?(h=$e,ct(Me)):(n.consume(Me),$e)}function Ce(Me){return Me===null?e(Me):Me===63?(n.consume(Me),Ie):markdownLineEnding(Me)?(h=Ce,ct(Me)):(n.consume(Me),Ce)}function Ie(Me){return Me===62?nt(Me):Ce(Me)}function Ne(Me){return asciiAlpha(Me)?(n.consume(Me),Fe):e(Me)}function Fe(Me){return Me===45||asciiAlphanumeric(Me)?(n.consume(Me),Fe):Be(Me)}function Be(Me){return markdownLineEnding(Me)?(h=Be,ct(Me)):markdownSpace(Me)?(n.consume(Me),Be):nt(Me)}function Ge(Me){return Me===45||asciiAlphanumeric(Me)?(n.consume(Me),Ge):Me===47||Me===62||markdownLineEndingOrSpace(Me)?je(Me):e(Me)}function je(Me){return Me===47?(n.consume(Me),nt):Me===58||Me===95||asciiAlpha(Me)?(n.consume(Me),De):markdownLineEnding(Me)?(h=je,ct(Me)):markdownSpace(Me)?(n.consume(Me),je):nt(Me)}function De(Me){return Me===45||Me===46||Me===58||Me===95||asciiAlphanumeric(Me)?(n.consume(Me),De):Ue(Me)}function Ue(Me){return Me===61?(n.consume(Me),Je):markdownLineEnding(Me)?(h=Ue,ct(Me)):markdownSpace(Me)?(n.consume(Me),Ue):je(Me)}function Je(Me){return Me===null||Me===60||Me===61||Me===62||Me===96?e(Me):Me===34||Me===39?(n.consume(Me),c=Me,Xe):markdownLineEnding(Me)?(h=Je,ct(Me)):markdownSpace(Me)?(n.consume(Me),Je):(n.consume(Me),Ke)}function Xe(Me){return Me===c?(n.consume(Me),c=void 0,ze):Me===null?e(Me):markdownLineEnding(Me)?(h=Xe,ct(Me)):(n.consume(Me),Xe)}function Ke(Me){return Me===null||Me===34||Me===39||Me===60||Me===61||Me===96?e(Me):Me===47||Me===62||markdownLineEndingOrSpace(Me)?je(Me):(n.consume(Me),Ke)}function ze(Me){return Me===47||Me===62||markdownLineEndingOrSpace(Me)?je(Me):e(Me)}function nt(Me){return Me===62?(n.consume(Me),n.exit("htmlTextData"),n.exit("htmlText"),o):e(Me)}function ct(Me){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(Me),n.exit("lineEnding"),at}function at(Me){return markdownSpace(Me)?factorySpace(n,dt,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Me):dt(Me)}function dt(Me){return n.enter("htmlTextData"),h(Me)}}const labelEnd={name:"labelEnd",resolveAll:resolveAllLabelEnd,resolveTo:resolveToLabelEnd,tokenize:tokenizeLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(n){let o=-1;const e=[];for(;++o<n.length;){const t=n[o][1];if(e.push(n[o]),t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd"){const c=t.type==="labelImage"?4:2;t.type="data",o+=c}}return n.length!==e.length&&splice(n,0,n.length,e),n}function resolveToLabelEnd(n,o){let e=n.length,t=0,c,p,h,y;for(;e--;)if(c=n[e][1],p){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;n[e][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(h){if(n[e][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(p=e,c.type!=="labelLink")){t=2;break}}else c.type==="labelEnd"&&(h=e);const g={type:n[p][1].type==="labelLink"?"link":"image",start:{...n[p][1].start},end:{...n[n.length-1][1].end}},$={type:"label",start:{...n[p][1].start},end:{...n[h][1].end}},E={type:"labelText",start:{...n[p+t+2][1].end},end:{...n[h-2][1].start}};return y=[["enter",g,o],["enter",$,o]],y=push(y,n.slice(p+1,p+t+3)),y=push(y,[["enter",E,o]]),y=push(y,resolveAll(o.parser.constructs.insideSpan.null,n.slice(p+t+4,h-3),o)),y=push(y,[["exit",E,o],n[h-2],n[h-1],["exit",$,o]]),y=push(y,n.slice(h+1)),y=push(y,[["exit",g,o]]),splice(n,p,n.length,y),n}function tokenizeLabelEnd(n,o,e){const t=this;let c=t.events.length,p,h;for(;c--;)if((t.events[c][1].type==="labelImage"||t.events[c][1].type==="labelLink")&&!t.events[c][1]._balanced){p=t.events[c][1];break}return y;function y(N){return p?p._inactive?A(N):(h=t.parser.defined.includes(normalizeIdentifier(t.sliceSerialize({start:p.end,end:t.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(N),n.exit("labelMarker"),n.exit("labelEnd"),g):e(N)}function g(N){return N===40?n.attempt(resourceConstruct,E,h?E:A)(N):N===91?n.attempt(referenceFullConstruct,E,h?$:A)(N):h?E(N):A(N)}function $(N){return n.attempt(referenceCollapsedConstruct,E,A)(N)}function E(N){return o(N)}function A(N){return p._balanced=!0,e(N)}}function tokenizeResource(n,o,e){return t;function t(A){return n.enter("resource"),n.enter("resourceMarker"),n.consume(A),n.exit("resourceMarker"),c}function c(A){return markdownLineEndingOrSpace(A)?factoryWhitespace(n,p)(A):p(A)}function p(A){return A===41?E(A):factoryDestination(n,h,y,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(A)}function h(A){return markdownLineEndingOrSpace(A)?factoryWhitespace(n,g)(A):E(A)}function y(A){return e(A)}function g(A){return A===34||A===39||A===40?factoryTitle(n,$,e,"resourceTitle","resourceTitleMarker","resourceTitleString")(A):E(A)}function $(A){return markdownLineEndingOrSpace(A)?factoryWhitespace(n,E)(A):E(A)}function E(A){return A===41?(n.enter("resourceMarker"),n.consume(A),n.exit("resourceMarker"),n.exit("resource"),o):e(A)}}function tokenizeReferenceFull(n,o,e){const t=this;return c;function c(y){return factoryLabel$1.call(t,n,p,h,"reference","referenceMarker","referenceString")(y)}function p(y){return t.parser.defined.includes(normalizeIdentifier(t.sliceSerialize(t.events[t.events.length-1][1]).slice(1,-1)))?o(y):e(y)}function h(y){return e(y)}}function tokenizeReferenceCollapsed(n,o,e){return t;function t(p){return n.enter("reference"),n.enter("referenceMarker"),n.consume(p),n.exit("referenceMarker"),c}function c(p){return p===93?(n.enter("referenceMarker"),n.consume(p),n.exit("referenceMarker"),n.exit("reference"),o):e(p)}}const labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(n,o,e){const t=this;return c;function c(y){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(y),n.exit("labelImageMarker"),p}function p(y){return y===91?(n.enter("labelMarker"),n.consume(y),n.exit("labelMarker"),n.exit("labelImage"),h):e(y)}function h(y){return y===94&&"_hiddenFootnoteSupport"in t.parser.constructs?e(y):o(y)}}const labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(n,o,e){const t=this;return c;function c(h){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(h),n.exit("labelMarker"),n.exit("labelLink"),p}function p(h){return h===94&&"_hiddenFootnoteSupport"in t.parser.constructs?e(h):o(h)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(n,o){return e;function e(t){return n.enter("lineEnding"),n.consume(t),n.exit("lineEnding"),factorySpace(n,o,"linePrefix")}}const thematicBreak$2={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(n,o,e){let t=0,c;return p;function p($){return n.enter("thematicBreak"),h($)}function h($){return c=$,y($)}function y($){return $===c?(n.enter("thematicBreakSequence"),g($)):t>=3&&($===null||markdownLineEnding($))?(n.exit("thematicBreak"),o($)):e($)}function g($){return $===c?(n.consume($),t++,g):(n.exit("thematicBreakSequence"),markdownSpace($)?factorySpace(n,y,"whitespace")($):y($))}}const list$2={continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd,name:"list",tokenize:tokenizeListStart},listItemPrefixWhitespaceConstruct={partial:!0,tokenize:tokenizeListItemPrefixWhitespace},indentConstruct={partial:!0,tokenize:tokenizeIndent$1};function tokenizeListStart(n,o,e){const t=this,c=t.events[t.events.length-1];let p=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,h=0;return y;function y(H){const Z=t.containerState.type||(H===42||H===43||H===45?"listUnordered":"listOrdered");if(Z==="listUnordered"?!t.containerState.marker||H===t.containerState.marker:asciiDigit(H)){if(t.containerState.type||(t.containerState.type=Z,n.enter(Z,{_container:!0})),Z==="listUnordered")return n.enter("listItemPrefix"),H===42||H===45?n.check(thematicBreak$2,e,$)(H):$(H);if(!t.interrupt||H===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),g(H)}return e(H)}function g(H){return asciiDigit(H)&&++h<10?(n.consume(H),g):(!t.interrupt||h<2)&&(t.containerState.marker?H===t.containerState.marker:H===41||H===46)?(n.exit("listItemValue"),$(H)):e(H)}function $(H){return n.enter("listItemMarker"),n.consume(H),n.exit("listItemMarker"),t.containerState.marker=t.containerState.marker||H,n.check(blankLine,t.interrupt?e:E,n.attempt(listItemPrefixWhitespaceConstruct,N,A))}function E(H){return t.containerState.initialBlankLine=!0,p++,N(H)}function A(H){return markdownSpace(H)?(n.enter("listItemPrefixWhitespace"),n.consume(H),n.exit("listItemPrefixWhitespace"),N):e(H)}function N(H){return t.containerState.size=p+t.sliceSerialize(n.exit("listItemPrefix"),!0).length,o(H)}}function tokenizeListContinuation(n,o,e){const t=this;return t.containerState._closeFlow=void 0,n.check(blankLine,c,p);function c(y){return t.containerState.furtherBlankLines=t.containerState.furtherBlankLines||t.containerState.initialBlankLine,factorySpace(n,o,"listItemIndent",t.containerState.size+1)(y)}function p(y){return t.containerState.furtherBlankLines||!markdownSpace(y)?(t.containerState.furtherBlankLines=void 0,t.containerState.initialBlankLine
vendor: 5,501 bytes, line 48
48=void 0,h(y)):(t.containerState.furtherBlankLines=void 0,t.containerState.initialBlankLine=void 0,n.attempt(indentConstruct,o,h)(y))}function h(y){return t.containerState._closeFlow=!0,t.interrupt=void 0,factorySpace(n,n.attempt(list$2,o,e),"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y)}}function tokenizeIndent$1(n,o,e){const t=this;return factorySpace(n,c,"listItemIndent",t.containerState.size+1);function c(p){const h=t.events[t.events.length-1];return h&&h[1].type==="listItemIndent"&&h[2].sliceSerialize(h[1],!0).length===t.containerState.size?o(p):e(p)}}function tokenizeListEnd(n){n.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(n,o,e){const t=this;return factorySpace(n,c,"listItemPrefixWhitespace",t.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(p){const h=t.events[t.events.length-1];return!markdownSpace(p)&&h&&h[1].type==="listItemPrefixWhitespace"?o(p):e(p)}}const setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(n,o){let e=n.length,t,c,p;for(;e--;)if(n[e][0]==="enter"){if(n[e][1].type==="content"){t=e;break}n[e][1].type==="paragraph"&&(c=e)}else n[e][1].type==="content"&&n.splice(e,1),!p&&n[e][1].type==="definition"&&(p=e);const h={type:"setextHeading",start:{...n[c][1].start},end:{...n[n.length-1][1].end}};return n[c][1].type="setextHeadingText",p?(n.splice(c,0,["enter",h,o]),n.splice(p+1,0,["exit",n[t][1],o]),n[t][1].end={...n[p][1].end}):n[t][1]=h,n.push(["exit",h,o]),n}function tokenizeSetextUnderline(n,o,e){const t=this;let c;return p;function p($){let E=t.events.length,A;for(;E--;)if(t.events[E][1].type!=="lineEnding"&&t.events[E][1].type!=="linePrefix"&&t.events[E][1].type!=="content"){A=t.events[E][1].type==="paragraph";break}return!t.parser.lazy[t.now().line]&&(t.interrupt||A)?(n.enter("setextHeadingLine"),c=$,h($)):e($)}function h($){return n.enter("setextHeadingLineSequence"),y($)}function y($){return $===c?(n.consume($),y):(n.exit("setextHeadingLineSequence"),markdownSpace($)?factorySpace(n,g,"lineSuffix")($):g($))}function g($){return $===null||markdownLineEnding($)?(n.exit("setextHeadingLine"),o($)):e($)}}const flow$1={tokenize:initializeFlow};function initializeFlow(n){const o=this,e=n.attempt(blankLine,t,n.attempt(this.parser.constructs.flowInitial,c,factorySpace(n,n.attempt(this.parser.constructs.flow,c,n.attempt(content,c)),"linePrefix")));return e;function t(p){if(p===null){n.consume(p);return}return n.enter("lineEndingBlank"),n.consume(p),n.exit("lineEndingBlank"),o.currentConstruct=void 0,e}function c(p){if(p===null){n.consume(p);return}return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),o.currentConstruct=void 0,e}}const resolver={resolveAll:createResolver()},string$1=initializeFactory("string"),text$4=initializeFactory("text");function initializeFactory(n){return{resolveAll:createResolver(n==="text"?resolveAllLineSuffixes:void 0),tokenize:o};function o(e){const t=this,c=this.parser.constructs[n],p=e.attempt(c,h,y);return h;function h(E){return $(E)?p(E):y(E)}function y(E){if(E===null){e.consume(E);return}return e.enter("data"),e.consume(E),g}function g(E){return $(E)?(e.exit("data"),p(E)):(e.consume(E),g)}function $(E){if(E===null)return!0;const A=c[E];let N=-1;if(A)for(;++N<A.length;){const H=A[N];if(!H.previous||H.previous.call(t,t.previous))return!0}return!1}}}function createResolver(n){return o;function o(e,t){let c=-1,p;for(;++c<=e.length;)p===void 0?e[c]&&e[c][1].type==="data"&&(p=c,c++):(!e[c]||e[c][1].type!=="data")&&(c!==p+2&&(e[p][1].end=e[c-1][1].end,e.splice(p+2,c-p-2),c=p+2),p=void 0);return n?n(e,t):e}}function resolveAllLineSuffixes(n,o){let e=0;for(;++e<=n.length;)if((e===n.length||n[e][1].type==="lineEnding")&&n[e-1][1].type==="data"){const t=n[e-1][1],c=o.sliceStream(t);let p=c.length,h=-1,y=0,g;for(;p--;){const $=c[p];if(typeof $=="string"){for(h=$.length;$.charCodeAt(h-1)===32;)y++,h--;if(h)break;h=-1}else if($===-2)g=!0,y++;else if($!==-1){p++;break}}if(y){const $={type:e===n.length||g||y<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:p?h:t.start._bufferIndex+h,_index:t.start._index+p,line:t.end.line,column:t.end.column-y,offset:t.end.offset-y},end:{...t.end}};t.end={...$.start},t.start.offset===t.end.offset?Object.assign(t,$):(n.splice(e,0,["enter",$,o],["exit",$,o]),e+=2)}e++}return n}const document$1={42:list$2,43:list$2,45:list$2,48:list$2,49:list$2,50:list$2,51:list$2,52:list$2,53:list$2,54:list$2,55:list$2,56:list$2,57:list$2,62:blockQuote},contentInitial={91:definition$1},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},flow={35:headingAtx,42:thematicBreak$2,45:[setextUnderline,thematicBreak$2],60:htmlFlow,61:setextUnderline,95:thematicBreak$2,96:codeFenced,126:codeFenced},string={38:characterReference,92:characterEscape},text$3={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]},defaultConstructs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers,contentInitial,disable,document:document$1,flow,flowInitial,insideSpan,string,text:text$3},Symbol.toStringTag,{value:"Module"}));function createTokenizer(n,o,e){let t={_bufferIndex:-1,_index:0,line:e&&e.line||1,c
vendor: 23,296 bytes, lines 48-54
48olumn:e&&e.column||1,offset:e&&e.offset||0};const c={},p=[];let h=[],y=[];const g={attempt:Be(Ne),check:Be(Fe),consume:$e,enter:Ce,exit:Ie,interrupt:Be(Fe,{interrupt:!0})},$={code:null,containerState:{},defineSkip:X,events:[],now:Z,parser:n,previous:null,sliceSerialize:N,sliceStream:H,write:A};let E=o.tokenize.call($,g);return o.resolveAll&&p.push(o),$;function A(Ue){return h=push(h,Ue),be(),h[h.length-1]!==null?[]:(Ge(o,0),$.events=resolveAll(p,$.events,$),$.events)}function N(Ue,Je){return serializeChunks(H(Ue),Je)}function H(Ue){return sliceChunks(h,Ue)}function Z(){const{_bufferIndex:Ue,_index:Je,line:Xe,column:Ke,offset:ze}=t;return{_bufferIndex:Ue,_index:Je,line:Xe,column:Ke,offset:ze}}function X(Ue){c[Ue.line]=Ue.column,De()}function be(){let Ue;for(;t._index<h.length;){const Je=h[t._index];if(typeof Je=="string")for(Ue=t._index,t._bufferIndex<0&&(t._bufferIndex=0);t._index===Ue&&t._bufferIndex<Je.length;)we(Je.charCodeAt(t._bufferIndex));else we(Je)}}function we(Ue){E=E(Ue)}function $e(Ue){markdownLineEnding(Ue)?(t.line++,t.column=1,t.offset+=Ue===-3?2:1,De()):Ue!==-1&&(t.column++,t.offset++),t._bufferIndex<0?t._index++:(t._bufferIndex++,t._bufferIndex===h[t._index].length&&(t._bufferIndex=-1,t._index++)),$.previous=Ue}function Ce(Ue,Je){const Xe=Je||{};return Xe.type=Ue,Xe.start=Z(),$.events.push(["enter",Xe,$]),y.push(Xe),Xe}function Ie(Ue){const Je=y.pop();return Je.end=Z(),$.events.push(["exit",Je,$]),Je}function Ne(Ue,Je){Ge(Ue,Je.from)}function Fe(Ue,Je){Je.restore()}function Be(Ue,Je){return Xe;function Xe(Ke,ze,nt){let ct,at,dt,Me;return Array.isArray(Ke)?tt(Ke):"tokenize"in Ke?tt([Ke]):We(Ke);function We(Qe){return St;function St(pt){const wt=pt!==null&&Qe[pt],Ft=pt!==null&&Qe.null,Ht=[...Array.isArray(wt)?wt:wt?[wt]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return tt(Ht)(pt)}}function tt(Qe){return ct=Qe,at=0,Qe.length===0?nt:Ve(Qe[at])}function Ve(Qe){return St;function St(pt){return Me=je(),dt=Qe,Qe.partial||($.currentConstruct=Qe),Qe.name&&$.parser.constructs.disable.null.includes(Qe.name)?xt():Qe.tokenize.call(Je?Object.assign(Object.create($),Je):$,g,vt,xt)(pt)}}function vt(Qe){return Ue(dt,Me),ze}function xt(Qe){return Me.restore(),++at<ct.length?Ve(ct[at]):nt}}}function Ge(Ue,Je){Ue.resolveAll&&!p.includes(Ue)&&p.push(Ue),Ue.resolve&&splice($.events,Je,$.events.length-Je,Ue.resolve($.events.slice(Je),$)),Ue.resolveTo&&($.events=Ue.resolveTo($.events,$))}function je(){const Ue=Z(),Je=$.previous,Xe=$.currentConstruct,Ke=$.events.length,ze=Array.from(y);return{from:Ke,restore:nt};function nt(){t=Ue,$.previous=Je,$.currentConstruct=Xe,$.events.length=Ke,y=ze,De()}}function De(){t.line in c&&t.column<2&&(t.column=c[t.line],t.offset+=c[t.line]-1)}}function sliceChunks(n,o){const e=o.start._index,t=o.start._bufferIndex,c=o.end._index,p=o.end._bufferIndex;let h;if(e===c)h=[n[e].slice(t,p)];else{if(h=n.slice(e,c),t>-1){const y=h[0];typeof y=="string"?h[0]=y.slice(t):h.shift()}p>0&&h.push(n[c].slice(0,p))}return h}function serializeChunks(n,o){let e=-1;const t=[];let c;for(;++e<n.length;){const p=n[e];let h;if(typeof p=="string")h=p;else switch(p){case-5:{h="\r";break}case-4:{h=` 49`;break}case-3:{h=`\r 50`;break}case-2:{h=o?" ":" ";break}case-1:{if(!o&&c)continue;h=" ";break}default:h=String.fromCharCode(p)}c=p===-2,t.push(h)}return t.join("")}function parse(n){const t={constructs:combineExtensions([defaultConstructs,...(n||{}).extensions||[]]),content:c(content$1),defined:[],document:c(document$2),flow:c(flow$1),lazy:{},string:c(string$1),text:c(text$4)};return t;function c(p){return h;function h(y){return createTokenizer(t,p,y)}}}function postprocess(n){for(;!subtokenize(n););return n}const search=/[\0\t\n\r]/g;function preprocess(){let n=1,o="",e=!0,t;return c;function c(p,h,y){const g=[];let $,E,A,N,H;for(p=o+(typeof p=="string"?p.toString():new TextDecoder(h||void 0).decode(p)),A=0,o="",e&&(p.charCodeAt(0)===65279&&A++,e=void 0);A<p.length;){if(search.lastIndex=A,$=search.exec(p),N=$&&$.index!==void 0?$.index:p.length,H=p.charCodeAt(N),!$){o=p.slice(A);break}if(H===10&&A===N&&t)g.push(-3),t=void 0;else switch(t&&(g.push(-5),t=void 0),A<N&&(g.push(p.slice(A,N)),n+=N-A),H){case 0:{g.push(65533),n++;break}case 9:{for(E=Math.ceil(n/4)*4,g.push(-2);n++<E;)g.push(-1);break}case 10:{g.push(-4),n=1;break}default:t=!0,n=1}A=N+1}return y&&(t&&g.push(-5),o&&g.push(o),g.push(null)),g}}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(n){return n.replace(characterEscapeOrReference,decode)}function decode(n,o,e){if(o)return o;if(e.charCodeAt(0)===35){const c=e.charCodeAt(1),p=c===120||c===88;return decodeNumericCharacterReference(e.slice(p?2:1),p?16:10)}return decodeNamedCharacterReference(e)||n}const own$3={}.hasOwnProperty;function fromMarkdown(n,o,e){return typeof o!="string"&&(e=o,o=void 0),compiler(e)(postprocess(parse(e).document().write(preprocess()(n,o,!0))))}function compiler(n){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:p(jt),autolinkProtocol:je,autolinkEmail:je,atxHeading:p(an),blockQuote:p(Ft),characterEscape:je,characterReference:je,codeFenced:p(Ht),codeFencedFenceInfo:h,codeFencedFenceMeta:h,codeIndented:p(Ht,h),codeText:p(on,h),codeTextData:je,data:je,codeFlowValue:je,definition:p(en),definitionDestinationString:h,definitionLabelString:h,definitionTitleString:h,emphasis:p(Wt),hardBreakEscape:p(qt),hardBreakTrailing:p(qt),htmlFlow:p(zt,h),htmlFlowData:je,htmlText:p(zt,h),htmlTextData:je,image:p(Jt),label:h,link:p(jt),listItem:p(yn),listItemValue:N,listOrdered:p(Yt,A),listUnordered:p(Yt),paragraph:p(vn),reference:Ve,referenceString:h,resourceDestinationString:h,resourceTitleString:h,setextHeading:p(an),strong:p(nn),thematicBreak:p(Ut)},exit:{atxHeading:g(),atxHeadingSequence:Ne,autolink:g(),autolinkEmail:wt,autolinkProtocol:pt,blockQuote:g(),characterEscapeValue:De,characterReferenceMarkerHexadecimal:xt,characterReferenceMarkerNumeric:xt,characterReferenceValue:Qe,characterReference:St,codeFenced:g(be),codeFencedFence:X,codeFencedFenceInfo:H,codeFencedFenceMeta:Z,codeFlowValue:De,codeIndented:g(we),codeText:g(ze),codeTextData:De,data:De,definition:g(),definitionDestinationString:Ie,definitionLabelString:$e,definitionTitleString:Ce,emphasis:g(),hardBreakEscape:g(Je),hardBreakTrailing:g(Je),htmlFlow:g(Xe),htmlFlowData:De,htmlText:g(Ke),htmlTextData:De,image:g(ct),label:dt,labelText:at,lineEnding:Ue,link:g(nt),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:vt,resourceDestinationString:Me,resourceTitleString:We,resource:tt,setextHeading:g(Ge),setextHeadingLineSequence:Be,setextHeadingText:Fe,strong:g(),thematicBreak:g()}};configure(o,(n||{}).mdastExtensions||[]);const e={};return t;function t(it){let gt={type:"root",children:[]};const Tt={stack:[gt],tokenStack:[],config:o,enter:y,exit:$,buffer:h,resume:E,data:e},Et=[];let Nt=-1;for(;++Nt<it.length;)if(it[Nt][1].type==="listOrdered"||it[Nt][1].type==="listUnordered")if(it[Nt][0]==="enter")Et.push(Nt);else{const Ct=Et.pop();Nt=c(it,Ct,Nt)}for(Nt=-1;++Nt<it.length;){const Ct=o[it[Nt][0]];own$3.call(Ct,it[Nt][1].type)&&Ct[it[Nt][1].type].call(Object.assign({sliceSerialize:it[Nt][2].sliceSerialize},Tt),it[Nt][1])}if(Tt.tokenStack.length>0){const Ct=Tt.tokenStack[Tt.tokenStack.length-1];(Ct[1]||defaultOnError).call(Tt,void 0,Ct[0])}for(gt.position={start:point(it.length>0?it[0][1].start:{line:1,column:1,offset:0}),end:point(it.length>0?it[it.length-2][1].end:{line:1,column:1,offset:0})},Nt=-1;++Nt<o.transforms.length;)gt=o.transforms[Nt](gt)||gt;return gt}function c(it,gt,Tt){let Et=gt-1,Nt=-1,Ct=!1,Bt,Ot,ot,lt;for(;++Et<=Tt;){const st=it[Et];switch(st[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{st[0]==="enter"?Nt++:Nt--,lt=void 0;break}case"lineEndingBlank":{st[0]==="enter"&&(Bt&&!lt&&!Nt&&!ot&&(ot=Et),lt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:lt=void 0}if(!Nt&&st[0]==="enter"&&st[1].type==="listItemPrefix"||Nt===-1&&st[0]==="exit"&&(st[1].type==="listUnordered"||st[1].type==="listOrdered")){if(Bt){let ft=Et;for(Ot=void 0;ft--;){const ut=it[ft];if(ut[1].type==="lineEnding"||ut[1].type==="lineEndingBlank"){if(ut[0]==="exit")continue;Ot&&(it[Ot][1].type="lineEndingBlank",Ct=!0),ut[1].type="lineEnding",Ot=ft}else if(!(ut[1].type==="linePrefix"||ut[1].type==="blockQuotePrefix"||ut[1].type==="blockQuotePrefixWhitespace"||ut[1].type==="blockQuoteMarker"||ut[1].type==="listItemIndent"))break}ot&&(!Ot||ot<Ot)&&(Bt._spread=!0),Bt.end=Object.assign({},Ot?it[Ot][1].start:st[1].end),it.splice(Ot||Et,0,["exit",Bt,st[2]]),Et++,Tt++}if(st[1].type==="listItemPrefix"){const ft={type:"listItem",_spread:!1,start:Object.assign({},st[1].start),end:void 0};Bt=ft,it.splice(Et,0,["enter",ft,st[2]]),Et++,Tt++,ot=void 0,lt=!0}}}return it[gt][1]._spread=Ct,Tt}function p(it,gt){return Tt;function Tt(Et){y.call(this,it(Et),Et),gt&>.call(this,Et)}}function h(){this.stack.push({type:"fragment",children:[]})}function y(it,gt,Tt){this.stack[this.stack.length-1].children.push(it),this.stack.push(it),this.tokenStack.push([gt,Tt||void 0]),it.position={start:point(gt.start),end:void 0}}function g(it){return gt;function gt(Tt){it&&it.call(this,Tt),$.call(this,Tt)}}function $(it,gt){const Tt=this.stack.pop(),Et=this.tokenStack.pop();if(Et)Et[0].type!==it.type&&(gt?gt.call(this,it,Et[0]):(Et[1]||defaultOnError).call(this,it,Et[0]));else throw new Error("Cannot close `"+it.type+"` ("+stringifyPosition({start:it.start,end:it.end})+"): itâs not open");Tt.position.end=point(it.end)}function E(){return toString$1(this.stack.pop())}function A(){this.data.expectingFirstListItemValue=!0}function N(it){if(this.data.expectingFirstListItemValue){const gt=this.stack[this.stack.length-2];gt.start=Number.parseInt(this.sliceSerialize(it),10),this.data.expectingFirstListItemValue=void 0}}function H(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.lang=it}function Z(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.meta=it}function X(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function be(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.value=it.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function we(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.value=it.replace(/(\r?\n|\r)$/g,"")}function $e(it){const gt=this.resume(),Tt=this.stack[this.stack.length-1];Tt.label=gt,Tt.identifier=normalizeIdentifier(this.sliceSerialize(it)).toLowerCase()}function Ce(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.title=it}function Ie(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.url=it}function Ne(it){const gt=this.stack[this.stack.length-1];if(!gt.depth){const Tt=this.sliceSerialize(it).length;gt.depth=Tt}}function Fe(){this.data.setextHeadingSlurpLineEnding=!0}function Be(it){const gt=this.stack[this.stack.length-1];gt.depth=this.sliceSerialize(it).codePointAt(0)===61?1:2}function Ge(){this.data.setextHeadingSlurpLineEnding=void 0}function je(it){const Tt=this.stack[this.stack.length-1].children;let Et=Tt[Tt.length-1];(!Et||Et.type!=="text")&&(Et=pn(),Et.position={start:point(it.start),end:void 0},Tt.push(Et)),this.stack.push(Et)}function De(it){const gt=this.stack.pop();gt.value+=this.sliceSerialize(it),gt.position.end=point(it.end)}function Ue(it){const gt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Tt=gt.children[gt.children.length-1];Tt.position.end=point(it.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(gt.type)&&(je.call(this,it),De.call(this,it))}function Je(){this.data.atHardBreak=!0}function Xe(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.value=it}function Ke(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.value=it}function ze(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.value=it}function nt(){const it=this.stack[this.stack.length-1];if(this.data.inReference){const gt=this.data.referenceType||"shortcut";it.type+="Reference",it.referenceType=gt,delete it.url,delete it.title}else delete it.identifier,delete it.label;this.data.referenceType=void 0}function ct(){const it=this.stack[this.stack.length-1];if(this.data.inReference){const gt=this.data.referenceType||"shortcut";it.type+="Reference",it.referenceType=gt,delete it.url,delete it.title}else delete it.identifier,delete it.label;this.data.referenceType=void 0}function at(it){const gt=this.sliceSerialize(it),Tt=this.stack[this.stack.length-2];Tt.label=decodeString(gt),Tt.identifier=normalizeIdentifier(gt).toLowerCase()}function dt(){const it=this.stack[this.stack.length-1],gt=this.resume(),Tt=this.stack[this.stack.length-1];if(this.data.inReference=!0,Tt.type==="link"){const Et=it.children;Tt.children=Et}else Tt.alt=gt}function Me(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.url=it}function We(){const it=this.resume(),gt=this.stack[this.stack.length-1];gt.title=it}function tt(){this.data.inReference=void 0}function Ve(){this.data.referenceType="collapsed"}function vt(it){const gt=this.resume(),Tt=this.stack[this.stack.length-1];Tt.label=gt,Tt.identifier=normalizeIdentifier(this.sliceSerialize(it)).toLowerCase(),this.data.referenceType="full"}function xt(it){this.data.characterReferenceType=it.type}function Qe(it){const gt=this.sliceSerialize(it),Tt=this.data.characterReferenceType;let Et;Tt?(Et=decodeNumericCharacterReference(gt,Tt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Et=decodeNamedCharacterReference(gt);const Nt=this.stack[this.stack.length-1];Nt.value+=Et}function St(it){const gt=this.stack.pop();gt.position.end=point(it.end)}function pt(it){De.call(this,it);const gt=this.stack[this.stack.length-1];gt.url=this.sliceSerialize(it)}function wt(it){De.call(this,it);const gt=this.stack[this.stack.length-1];gt.url="mailto:"+this.sliceSerialize(it)}function Ft(){return{type:"blockquote",children:[]}}function Ht(){return{type:"code",lang:null,meta:null,value:""}}function on(){return{type:"inlineCode",value:""}}function en(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Wt(){return{type:"emphasis",children:[]}}function an(){return{type:"heading",depth:0,children:[]}}function qt(){return{type:"break"}}function zt(){return{type:"html",value:""}}function Jt(){return{type:"image",title:null,url:"",alt:null}}function jt(){return{type:"link",title:null,url:"",children:[]}}function Yt(it){return{type:"list",ordered:it.type==="listOrdered",start:null,spread:it._spread,children:[]}}function yn(it){return{type:"listItem",spread:it._spread,checked:null,children:[]}}function vn(){return{type:"paragraph",children:[]}}function nn(){return{type:"strong",children:[]}}function pn(){return{type:"text",value:""}}function Ut(){return{type:"thematicBreak"}}}function point(n){return{line:n.line,column:n.column,offset:n.offset}}function configure(n,o){let e=-1;for(;++e<o.length;){const t=o[e];Array.isArray(t)?configure(n,t):extension(n,t)}}function extension(n,o){let e;for(e in o)if(own$3.call(o,e))switch(e){case"canContainEols":{const t=o[e];t&&n[e].push(...t);break}case"transforms":{const t=o[e];t&&n[e].push(...t);break}case"enter":case"exit":{const t=o[e];t&&Object.assign(n[e],t);break}}}function defaultOnError(n,o){throw n?new Error("Cannot close `"+n.type+"` ("+stringifyPosition({start:n.start,end:n.end})+"): a different token (`"+o.type+"`, "+stringifyPosition({start:o.start,end:o.end})+") is open"):new Error("Cannot close document, a token (`"+o.type+"`, "+stringifyPosition({start:o.start,end:o.end})+") is still open")}function remarkParse(n){const o=this;o.parser=e;function e(t){return fromMarkdown(t,{...o.data("settings"),...n,extensions:o.data("micromarkExtensions")||[],mdastExtensions:o.data("fromMarkdownExtensions")||[]})}}function blockquote$1(n,o){const e={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(o),!0)};return n.patch(o,e),n.applyData(o,e)}function hardBreak$1(n,o){const e={type:"element",tagName:"br",properties:{},children:[]};return n.patch(o,e),[n.applyData(o,e),{type:"text",value:` 51`}]}function code$3(n,o){const e=o.value?o.value+` 52`:"",t={};o.lang&&(t.className=["language-"+o.lang]);let c={type:"element",tagName:"code",properties:t,children:[{type:"text",value:e}]};return o.meta&&(c.data={meta:o.meta}),n.patch(o,c),c=n.applyData(o,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(o,c),c}function strikethrough(n,o){const e={type:"element",tagName:"del",properties:{},children:n.all(o)};return n.patch(o,e),n.applyData(o,e)}function emphasis$1(n,o){const e={type:"element",tagName:"em",properties:{},children:n.all(o)};return n.patch(o,e),n.applyData(o,e)}function footnoteReference$1(n,o){const e=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",t=String(o.identifier).toUpperCase(),c=normalizeUri(t.toLowerCase()),p=n.footnoteOrder.indexOf(t);let h,y=n.footnoteCounts.get(t);y===void 0?(y=0,n.footnoteOrder.push(t),h=n.footnoteOrder.length):h=p+1,y+=1,n.footnoteCounts.set(t,y);const g={type:"element",tagName:"a",properties:{href:"#"+e+"fn-"+c,id:e+"fnref-"+c+(y>1?"-"+y:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(h)}]};n.patch(o,g);const $={type:"element",tagName:"sup",properties:{},children:[g]};return n.patch(o,$),n.applyData(o,$)}function heading$1(n,o){const e={type:"element",tagName:"h"+o.depth,properties:{},children:n.all(o)};return n.patch(o,e),n.applyData(o,e)}function html$1(n,o){if(n.options.allowDangerousHtml){const e={type:"raw",value:o.value};return n.patch(o,e),n.applyData(o,e)}}function revert(n,o){const e=o.referenceType;let t="]";if(e==="collapsed"?t+="[]":e==="full"&&(t+="["+(o.label||o.identifier)+"]"),o.type==="imageReference")return[{type:"text",value:"!["+o.alt+t}];const c=n.all(o),p=c[0];p&&p.type==="text"?p.value="["+p.value:c.unshift({type:"text",value:"["});const h=c[c.length-1];return h&&h.type==="text"?h.value+=t:c.push({type:"text",value:t}),c}function imageReference$1(n,o){const e=String(o.identifier).toUpperCase(),t=n.definitionById.get(e);if(!t)return revert(n,o);const c={src:normalizeUri(t.url||""),alt:o.alt};t.title!==null&&t.title!==void 0&&(c.title=t.title);const p={type:"element",tagName:"img",properties:c,children:[]};return n.patch(o,p),n.applyData(o,p)}function image$1(n,o){const e={src:normalizeUri(o.url)};o.alt!==null&&o.alt!==void 0&&(e.alt=o.alt),o.title!==null&&o.title!==void 0&&(e.title=o.title);const t={type:"element",tagName:"img",properties:e,children:[]};return n.patch(o,t),n.applyData(o,t)}function inlineCode$1(n,o){const e={type:"text",value:o.value.replace(/\r?\n|\r/g," ")};n.patch(o,e);const t={type:"element",tagName:"code",properties:{},children:[e]};return n.patch(o,t),n.applyData(o,t)}function linkReference$1(n,o){const e=String(o.identifier).toUpperCase(),t=n.definitionById.get(e);if(!t)return revert(n,o);const c={href:normalizeUri(t.url||"")};t.title!==null&&t.title!==void 0&&(c.title=t.title);const p={type:"element",tagName:"a",properties:c,children:n.all(o)};return n.patch(o,p),n.applyData(o,p)}function link$1(n,o){const e={href:normalizeUri(o.url)};o.title!==null&&o.title!==void 0&&(e.title=o.title);const t={type:"element",tagName:"a",properties:e,children:n.all(o)};return n.patch(o,t),n.applyData(o,t)}function listItem$1(n,o,e){const t=n.all(o),c=e?listLoose(e):listItemLoose(o),p={},h=[];if(typeof o.checked=="boolean"){const E=t[0];let A;E&&E.type==="element"&&E.tagName==="p"?A=E:(A={type:"element",tagName:"p",properties:{},children:[]},t.unshift(A)),A.children.length>0&&A.children.unshift({type:"text",value:" "}),A.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:o.checked,disabled:!0},children:[]}),p.className=["task-list-item"]}let y=-1;for(;++y<t.length;){const E=t[y];(c||y!==0||E.type!=="element"||E.tagName!=="p")&&h.push({type:"text",value:` 53`}),E.type==="element"&&E.tagName==="p"&&!c?h.push(...E.children):h.push(E)}const g=t[t.length-1];g&&(c||g.type!=="element"||g.tagName!=="p")&&h.push({type:"text",value:` 54`});const $={type:"element",tagName:"li",properties:p,children:h};return n.patch(o,$),n.applyData(o,$)}function listLoose(n){let o=!1;if(n.type==="list"){o=n.spread||!1;const e=n.children;let t=-1;for(;!o&&++t<e.length;)o=listItemLoose(e[t])}return o}function listItemLoose(n){const o=n.spread;return o??n.children.length>1}function list$1(n,o){const e={},t=n.all(o);let c=-1;for(typeof o.start=="number"&&o.start!==1&&(e.start=o.start);++c<t.length;){const h=t[c];if(h.type==="element"&&h.tagName==="li"&&h.properties&&Array.isArray(h.properties.className)&&h.properties.className.includes("task-list-item")){e.className=["contains-task-list"];break}}const p={type:"element",tagName:o.ordered?"ol":"ul",properties:e,children:n.wrap(t,!0)};return n.patch(o,p),n.applyData(o,p)}function paragraph$1(n,o){const e={type:"element",tagName:"p",properties:{},children:n.all(o)};return n.patch(o,e),n.applyData(o,e)}function root$2(n,o){const e={type:"root",children:n.wrap(n.all(o))};return n.patch(o,e),n.applyData(o,e)}function strong$1(n,o){const e={type:"element",tagName:"strong",properties:{},children:n.all(o)};return n.patch(o,e),n.applyData(o,e)}function table(n,o){const e=n.all(o),t=e.shift(),c=[];if(t){const h={type:"element",tagName:"thead",properties:{},children:n.wrap([t],!0)};n.patch(o.children[0],h),c.push(h)}if(e.length>0){const h={type:"element",tagName:"tbody",properties:{},children:n.wrap(e,!0)},y=pointStart(o.children[1]),g=pointEnd(o.children[o.children.length-1]);y&&g&&(h.position={start:y,end:g}),c.push(h)}const p={type:"element",tagName:"table",properties:{},children:n.wrap(c,!0)};return n.patch(o,p),n.applyData(o,p)}function tableRow(n,o,e){const t=e?e.children:void 0,p=(t?t.indexOf(o):1)===0?"th":"td",h=e&&e.type==="table"?e.align:void 0,y=h?h.length:o.children.length;let g=-1;const $=[];for(;++g<y;){const A=o.children[g],N={},H=h?h[g]:void 0;H&&(N.align=H);let Z={type:"element",tagName:p,properties:N,children:[]};A&&(Z.children=n.all(A),n.patch(A,Z),Z=n.applyData(A,Z)),$.push(Z)}const E={type:"element",tagName:"tr",properties:{},children:n.wrap($,!0)};return n.patch(o,E),n.applyData(o,E)}function tableCell(n,o){const e={type:"element",tagName:"td",properties:{},children:n.all(o)};return n.patch(o,e),n.applyData(o,e)}const tab=9,space=32;function trimLines(n){const o=String(n),e=/\r?\n|\r/g;let t=e.exec(o),c=0;const p=[];for(;t;)p.push(trimLine(o.slice(c,t.index),c>0,!0),t[0]),c=t.index+t[0].length,t=e.exec(o);return p.push(trimLine(o.slice(c),c>0,!1)),p.join("")}function trimLine(n,o,e){let t=0,c=n.length;if(o){let p=n.codePointAt(t);for(;p===tab||p===space;)t++,p=n.codePointAt(t)}if(e){let p=n.codePointAt(c-1);for(;p===tab||p===space;)c--,p=n.codePointAt(c-1)}return c>t?n.slice(t,c):""}function text$2(n,o){const e={type:"text",value:trimLines(String(o.value))};return n.patch(o,e),n.applyData(o,e)}function thematicBreak$1(n,o){const e={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(o,e),n.applyData(o,e)}
vendor: 9,891 bytes, lines 54-60
54const handlers={blockquote:blockquote$1,break:hardBreak$1,code:code$3,delete:strikethrough,emphasis:emphasis$1,footnoteReference:footnoteReference$1,heading:heading$1,html:html$1,imageReference:imageReference$1,image:image$1,inlineCode:inlineCode$1,linkReference:linkReference$1,link:link$1,listItem:listItem$1,list:list$1,paragraph:paragraph$1,root:root$2,strong:strong$1,table,tableCell,tableRow,text:text$2,thematicBreak:thematicBreak$1,toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){}const VOID=-1,PRIMITIVE=0,ARRAY=1,OBJECT=2,DATE=3,REGEXP=4,MAP=5,SET=6,ERROR=7,BIGINT=8,env=typeof self=="object"?self:globalThis,deserializer=(n,o)=>{const e=(c,p)=>(n.set(p,c),c),t=c=>{if(n.has(c))return n.get(c);const[p,h]=o[c];switch(p){case PRIMITIVE:case VOID:return e(h,c);case ARRAY:{const y=e([],c);for(const g of h)y.push(t(g));return y}case OBJECT:{const y=e({},c);for(const[g,$]of h)y[t(g)]=t($);return y}case DATE:return e(new Date(h),c);case REGEXP:{const{source:y,flags:g}=h;return e(new RegExp(y,g),c)}case MAP:{const y=e(new Map,c);for(const[g,$]of h)y.set(t(g),t($));return y}case SET:{const y=e(new Set,c);for(const g of h)y.add(t(g));return y}case ERROR:{const{name:y,message:g}=h;return e(new env[y](g),c)}case BIGINT:return e(BigInt(h),c);case"BigInt":return e(Object(BigInt(h)),c);case"ArrayBuffer":return e(new Uint8Array(h).buffer,h);case"DataView":{const{buffer:y}=new Uint8Array(h);return e(new DataView(y),h)}}return e(new env[p](h),c)};return t},deserialize=n=>deserializer(new Map,n)(0),EMPTY="",{toString}={},{keys}=Object,typeOf=n=>{const o=typeof n;if(o!=="object"||!n)return[PRIMITIVE,o];const e=toString.call(n).slice(8,-1);switch(e){case"Array":return[ARRAY,EMPTY];case"Object":return[OBJECT,EMPTY];case"Date":return[DATE,EMPTY];case"RegExp":return[REGEXP,EMPTY];case"Map":return[MAP,EMPTY];case"Set":return[SET,EMPTY];case"DataView":return[ARRAY,e]}return e.includes("Array")?[ARRAY,e]:e.includes("Error")?[ERROR,e]:[OBJECT,e]},shouldSkip=([n,o])=>n===PRIMITIVE&&(o==="function"||o==="symbol"),serializer=(n,o,e,t)=>{const c=(h,y)=>{const g=t.push(h)-1;return e.set(y,g),g},p=h=>{if(e.has(h))return e.get(h);let[y,g]=typeOf(h);switch(y){case PRIMITIVE:{let E=h;switch(g){case"bigint":y=BIGINT,E=h.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+g);E=null;break;case"undefined":return c([VOID],h)}return c([y,E],h)}case ARRAY:{if(g){let N=h;return g==="DataView"?N=new Uint8Array(h.buffer):g==="ArrayBuffer"&&(N=new Uint8Array(h)),c([g,[...N]],h)}const E=[],A=c([y,E],h);for(const N of h)E.push(p(N));return A}case OBJECT:{if(g)switch(g){case"BigInt":return c([g,h.toString()],h);case"Boolean":case"Number":case"String":return c([g,h.valueOf()],h)}if(o&&"toJSON"in h)return p(h.toJSON());const E=[],A=c([y,E],h);for(const N of keys(h))(n||!shouldSkip(typeOf(h[N])))&&E.push([p(N),p(h[N])]);return A}case DATE:return c([y,h.toISOString()],h);case REGEXP:{const{source:E,flags:A}=h;return c([y,{source:E,flags:A}],h)}case MAP:{const E=[],A=c([y,E],h);for(const[N,H]of h)(n||!(shouldSkip(typeOf(N))||shouldSkip(typeOf(H))))&&E.push([p(N),p(H)]);return A}case SET:{const E=[],A=c([y,E],h);for(const N of h)(n||!shouldSkip(typeOf(N)))&&E.push(p(N));return A}}const{message:$}=h;return c([y,{name:g,message:$}],h)};return p},serialize$1=(n,{json:o,lossy:e}={})=>{const t=[];return serializer(!(o||e),!!o,new Map,t)(n),t},structuredClone$1=typeof structuredClone=="function"?(n,o)=>o&&("json"in o||"lossy"in o)?deserialize(serialize$1(n,o)):structuredClone(n):(n,o)=>deserialize(serialize$1(n,o));function defaultFootnoteBackContent(n,o){const e=[{type:"text",value:"â©"}];return o>1&&e.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(o)}]}),e}function defaultFootnoteBackLabel(n,o){return"Back to reference "+(n+1)+(o>1?"-"+o:"")}function footer(n){const o=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",e=n.options.footnoteBackContent||defaultFootnoteBackContent,t=n.options.footnoteBackLabel||defaultFootnoteBackLabel,c=n.options.footnoteLabel||"Footnotes",p=n.options.footnoteLabelTagName||"h2",h=n.options.footnoteLabelProperties||{className:["sr-only"]},y=[];let g=-1;for(;++g<n.footnoteOrder.length;){const $=n.footnoteById.get(n.footnoteOrder[g]);if(!$)continue;const E=n.all($),A=String($.identifier).toUpperCase(),N=normalizeUri(A.toLowerCase());let H=0;const Z=[],X=n.footnoteCounts.get(A);for(;X!==void 0&&++H<=X;){Z.length>0&&Z.push({type:"text",value:" "});let $e=typeof e=="string"?e:e(g,H);typeof $e=="string"&&($e={type:"text",value:$e}),Z.push({type:"element",tagName:"a",properties:{href:"#"+o+"fnref-"+N+(H>1?"-"+H:""),dataFootnoteBackref:"",ariaLabel:typeof t=="string"?t:t(g,H),className:["data-footnote-backref"]},children:Array.isArray($e)?$e:[$e]})}const be=E[E.length-1];if(be&&be.type==="element"&&be.tagName==="p"){const $e=be.children[be.children.length-1];$e&&$e.type==="text"?$e.value+=" ":be.children.push({type:"text",value:" "}),be.children.push(...Z)}else E.push(...Z);const we={type:"element",tagName:"li",properties:{id:o+"fn-"+N},children:n.wrap(E,!0)};n.patch($,we),y.push(we)}if(y.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:p,properties:{...structuredClone$1(h),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:` 55`},{type:"element",tagName:"ol",properties:{},children:n.wrap(y,!0)},{type:"text",value:` 56`}]}}function visit(n,o,e,t){let c,p,h;typeof o=="function"&&typeof e!="function"?(p=void 0,h=o,c=e):(p=o,h=e,c=t),visitParents(n,p,y,c);function y(g,$){const E=$[$.length-1],A=E?E.children.indexOf(g):void 0;return h(g,A,E)}}const own$2={}.hasOwnProperty,emptyOptions$3={};function createState(n,o){const e=o||emptyOptions$3,t=new Map,c=new Map,p=new Map,h={...handlers,...e.handlers},y={all:$,applyData,definitionById:t,footnoteById:c,footnoteCounts:p,footnoteOrder:[],handlers:h,one:g,options:e,patch,wrap:wrap$1};return visit(n,function(E){if(E.type==="definition"||E.type==="footnoteDefinition"){const A=E.type==="definition"?t:c,N=String(E.identifier).toUpperCase();A.has(N)||A.set(N,E)}}),y;function g(E,A){const N=E.type,H=y.handlers[N];if(own$2.call(y.handlers,N)&&H)return H(y,E,A);if(y.options.passThrough&&y.options.passThrough.includes(N)){if("children"in E){const{children:X,...be}=E,we=structuredClone$1(be);return we.children=y.all(E),we}return structuredClone$1(E)}return(y.options.unknownHandler||defaultUnknownHandler)(y,E,A)}function $(E){const A=[];if("children"in E){const N=E.children;let H=-1;for(;++H<N.length;){const Z=y.one(N[H],E);if(Z){if(H&&N[H-1].type==="break"&&(!Array.isArray(Z)&&Z.type==="text"&&(Z.value=trimMarkdownSpaceStart(Z.value)),!Array.isArray(Z)&&Z.type==="element")){const X=Z.children[0];X&&X.type==="text"&&(X.value=trimMarkdownSpaceStart(X.value))}Array.isArray(Z)?A.push(...Z):A.push(Z)}}}return A}}function patch(n,o){n.position&&(o.position=position$1(n))}function applyData(n,o){let e=o;if(n&&n.data){const t=n.data.hName,c=n.data.hChildren,p=n.data.hProperties;if(typeof t=="string")if(e.type==="element")e.tagName=t;else{const h="children"in e?e.children:[e];e={type:"element",tagName:t,properties:{},children:h}}e.type==="element"&&p&&Object.assign(e.properties,structuredClone$1(p)),"children"in e&&e.children&&c!==null&&c!==void 0&&(e.children=c)}return e}function defaultUnknownHandler(n,o){const e=o.data||{},t="value"in o&&!(own$2.call(e,"hProperties")||own$2.call(e,"hChildren"))?{type:"text",value:o.value}:{type:"element",tagName:"div",properties:{},children:n.all(o)};return n.patch(o,t),n.applyData(o,t)}function wrap$1(n,o){const e=[];let t=-1;for(o&&e.push({type:"text",value:` 57`});++t<n.length;)t&&e.push({type:"text",value:` 58`}),e.push(n[t]);return o&&n.length>0&&e.push({type:"text",value:` 59`}),e}function trimMarkdownSpaceStart(n){let o=0,e=n.charCodeAt(o);for(;e===9||e===32;)o++,e=n.charCodeAt(o);return n.slice(o)}function toHast(n,o){const e=createState(n,o),t=e.one(n,void 0),c=footer(e),p=Array.isArray(t)?{type:"root",children:t}:t||{type:"root",children:[]};return c&&p.children.push({type:"text",value:` 60`},c),p}function remarkRehype(n,o){return n&&"run"in n?async function(e,t){const c=toHast(e,{file:t,...o});await n.run(c,t)}:function(e,t){return toHast(e,{file:t,...n||o})}}function bail(n){if(n)throw n}var extend$1,hasRequiredExtend;function requireExtend(){if(hasRequiredExtend)return extend$1;hasRequiredExtend=1;var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,c=function($){return typeof Array.isArray=="function"?Array.isArray($):o.call($)==="[object Array]"},p=function($){if(!$||o.call($)!=="[object Object]")return!1;var E=n.call($,"constructor"),A=$.constructor&&$.constructor.prototype&&n.call($.constructor.prototype,"isPrototypeOf");if($.constructor&&!E&&!A)return!1;var N;for(N in $);return typeof N>"u"||n.call($,N)},h=function($,E){e&&E.name==="__proto__"?e($,E.name,{enumerable:!0,configurable:!0,value:E.newValue,writable:!0}):$[E.name]=E.newValue},y=function($,E){if(E==="__proto__")if(n.call($,E)){if(t)return t($,E).value}else return;return $[E]};return extend$1=function g(){var $,E,A,N,H,Z,X=arguments[0],be=1,we=arguments.length,$e=!1;for(typeof X=="boolean"&&($e=X,X=arguments[1]||{},be=2),(X==null||typeof X!="object"&&typeof X!="function")&&(X={});be<we;++be)if($=arguments[be],$!=null)for(E in $)A=y(X,E),N=y($,E),X!==N&&($e&&N&&(p(N)||(H=c(N)))?(H?(H=!1,Z=A&&c(A)?A:[]):Z=A&&p(A)?A:{},h(X,{name:E,newValue:g($e,Z,N)})):typeof N<"u"&&h(X,{name:E,newValue:N}));return X},extend$1}var extendExports=requireExtend();const extend=getDefaultExportFromCjs(extendExports);function isPlainObject(n){if(typeof n!="object"||n===null)return!1;const o=Object.getPrototypeOf(n);
vendor: 15,092 bytes, line 60
60return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function trough(){const n=[],o={run:e,use:t};return o;function e(...c){let p=-1;const h=c.pop();if(typeof h!="function")throw new TypeError("Expected function as last argument, not "+h);y(null,...c);function y(g,...$){const E=n[++p];let A=-1;if(g){h(g);return}for(;++A<c.length;)($[A]===null||$[A]===void 0)&&($[A]=c[A]);c=$,E?wrap(E,y)(...$):h(null,...$)}}function t(c){if(typeof c!="function")throw new TypeError("Expected `middelware` to be a function, not "+c);return n.push(c),o}}function wrap(n,o){let e;return t;function t(...h){const y=n.length>h.length;let g;y&&h.push(c);try{g=n.apply(this,h)}catch($){const E=$;if(y&&e)throw E;return c(E)}y||(g&&g.then&&typeof g.then=="function"?g.then(p,c):g instanceof Error?c(g):p(g))}function c(h,...y){e||(e=!0,o(h,...y))}function p(h){c(null,h)}}const minpath={basename,dirname,extname,join,sep:"/"};function basename(n,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');assertPath$1(n);let e=0,t=-1,c=n.length,p;if(o===void 0||o.length===0||o.length>n.length){for(;c--;)if(n.codePointAt(c)===47){if(p){e=c+1;break}}else t<0&&(p=!0,t=c+1);return t<0?"":n.slice(e,t)}if(o===n)return"";let h=-1,y=o.length-1;for(;c--;)if(n.codePointAt(c)===47){if(p){e=c+1;break}}else h<0&&(p=!0,h=c+1),y>-1&&(n.codePointAt(c)===o.codePointAt(y--)?y<0&&(t=c):(y=-1,t=h));return e===t?t=h:t<0&&(t=n.length),n.slice(e,t)}function dirname(n){if(assertPath$1(n),n.length===0)return".";let o=-1,e=n.length,t;for(;--e;)if(n.codePointAt(e)===47){if(t){o=e;break}}else t||(t=!0);return o<0?n.codePointAt(0)===47?"/":".":o===1&&n.codePointAt(0)===47?"//":n.slice(0,o)}function extname(n){assertPath$1(n);let o=n.length,e=-1,t=0,c=-1,p=0,h;for(;o--;){const y=n.codePointAt(o);if(y===47){if(h){t=o+1;break}continue}e<0&&(h=!0,e=o+1),y===46?c<0?c=o:p!==1&&(p=1):c>-1&&(p=-1)}return c<0||e<0||p===0||p===1&&c===e-1&&c===t+1?"":n.slice(c,e)}function join(...n){let o=-1,e;for(;++o<n.length;)assertPath$1(n[o]),n[o]&&(e=e===void 0?n[o]:e+"/"+n[o]);return e===void 0?".":normalize(e)}function normalize(n){assertPath$1(n);const o=n.codePointAt(0)===47;let e=normalizeString(n,!o);return e.length===0&&!o&&(e="."),e.length>0&&n.codePointAt(n.length-1)===47&&(e+="/"),o?"/"+e:e}function normalizeString(n,o){let e="",t=0,c=-1,p=0,h=-1,y,g;for(;++h<=n.length;){if(h<n.length)y=n.codePointAt(h);else{if(y===47)break;y=47}if(y===47){if(!(c===h-1||p===1))if(c!==h-1&&p===2){if(e.length<2||t!==2||e.codePointAt(e.length-1)!==46||e.codePointAt(e.length-2)!==46){if(e.length>2){if(g=e.lastIndexOf("/"),g!==e.length-1){g<0?(e="",t=0):(e=e.slice(0,g),t=e.length-1-e.lastIndexOf("/")),c=h,p=0;continue}}else if(e.length>0){e="",t=0,c=h,p=0;continue}}o&&(e=e.length>0?e+"/..":"..",t=2)}else e.length>0?e+="/"+n.slice(c+1,h):e=n.slice(c+1,h),t=h-c-1;c=h,p=0}else y===46&&p>-1?p++:p=-1}return e}function assertPath$1(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const minproc={cwd};function cwd(){return"/"}function isUrl(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function urlToPath(n){if(typeof n=="string")n=new URL(n);else if(!isUrl(n)){const o=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw o.code="ERR_INVALID_ARG_TYPE",o}if(n.protocol!=="file:"){const o=new TypeError("The URL must be of scheme file");throw o.code="ERR_INVALID_URL_SCHEME",o}return getPathFromURLPosix(n)}function getPathFromURLPosix(n){if(n.hostname!==""){const t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}const o=n.pathname;let e=-1;for(;++e<o.length;)if(o.codePointAt(e)===37&&o.codePointAt(e+1)===50){const t=o.codePointAt(e+2);if(t===70||t===102){const c=new TypeError("File URL path must not include encoded / characters");throw c.code="ERR_INVALID_FILE_URL_PATH",c}}return decodeURIComponent(o)}const order=["history","path","basename","stem","extname","dirname"];class VFile{constructor(o){let e;o?isUrl(o)?e={path:o}:typeof o=="string"||isUint8Array$1(o)?e={value:o}:e=o:e={},this.cwd="cwd"in e?"":minproc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let t=-1;for(;++t<order.length;){const p=order[t];p in e&&e[p]!==void 0&&e[p]!==null&&(this[p]=p==="history"?[...e[p]]:e[p])}let c;for(c in e)order.includes(c)||(this[c]=e[c])}get basename(){return typeof this.path=="string"?minpath.basename(this.path):void 0}set basename(o){assertNonEmpty(o,"basename"),assertPart(o,"basename"),this.path=minpath.join(this.dirname||"",o)}get dirname(){return typeof this.path=="string"?minpath.dirname(this.path):void 0}set dirname(o){assertPath(this.basename,"dirname"),this.path=minpath.join(o||"",this.basename)}get extname(){return typeof this.path=="string"?minpath.extname(this.path):void 0}set extname(o){if(assertPart(o,"extname"),assertPath(this.dirname,"extname"),o){if(o.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(o.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=minpath.join(this.dirname,this.stem+(o||""))}get path(){return this.history[this.history.length-1]}set path(o){isUrl(o)&&(o=urlToPath(o)),assertNonEmpty(o,"path"),this.path!==o&&this.history.push(o)}get stem(){return typeof this.path=="string"?minpath.basename(this.path,this.extname):void 0}set stem(o){assertNonEmpty(o,"stem"),assertPart(o,"stem"),this.path=minpath.join(this.dirname||"",o+(this.extname||""))}fail(o,e,t){const c=this.message(o,e,t);throw c.fatal=!0,c}info(o,e,t){const c=this.message(o,e,t);return c.fatal=void 0,c}message(o,e,t){const c=new VFileMessage(o,e,t);return this.path&&(c.name=this.path+":"+c.name,c.file=this.path),c.fatal=!1,this.messages.push(c),c}toString(o){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(o||void 0).decode(this.value)}}function assertPart(n,o){if(n&&n.includes(minpath.sep))throw new Error("`"+o+"` cannot be a path: did not expect `"+minpath.sep+"`")}function assertNonEmpty(n,o){if(!n)throw new Error("`"+o+"` cannot be empty")}function assertPath(n,o){if(!n)throw new Error("Setting `"+o+"` requires `path` to be set too")}function isUint8Array$1(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const CallableInstance=function(n){const t=this.constructor.prototype,c=t[n],p=function(){return c.apply(p,arguments)};return Object.setPrototypeOf(p,t),p},own$1={}.hasOwnProperty;class Processor extends CallableInstance{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=trough()}copy(){const o=new Processor;let e=-1;for(;++e<this.attachers.length;){const t=this.attachers[e];o.use(...t)}return o.data(extend(!0,{},this.namespace)),o}data(o,e){return typeof o=="string"?arguments.length===2?(assertUnfrozen("data",this.frozen),this.namespace[o]=e,this):own$1.call(this.namespace,o)&&this.namespace[o]||void 0:o?(assertUnfrozen("data",this.frozen),this.namespace=o,this):this.namespace}freeze(){if(this.frozen)return this;const o=this;for(;++this.freezeIndex<this.attachers.length;){const[e,...t]=this.attachers[this.freezeIndex];if(t[0]===!1)continue;t[0]===!0&&(t[0]=void 0);const c=e.call(o,...t);typeof c=="function"&&this.transformers.use(c)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(o){this.freeze();const e=vfile(o),t=this.parser||this.Parser;return assertParser("parse",t),t(String(e),e)}process(o,e){const t=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),e?c(void 0,e):new Promise(c);function c(p,h){const y=vfile(o),g=t.parse(y);t.run(g,y,function(E,A,N){if(E||!A||!N)return $(E);const H=A,Z=t.stringify(H,N);looksLikeAValue(Z)?N.value=Z:N.result=Z,$(E,N)});function $(E,A){E||!A?h(E):p?p(A):e(void 0,A)}}}processSync(o){let e=!1,t;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(o,c),assertDone("processSync","process",e),t;function c(p,h){e=!0,bail(p),t=h}}run(o,e,t){assertNode(o),this.freeze();const c=this.transformers;return!t&&typeof e=="function"&&(t=e,e=void 0),t?p(void 0,t):new Promise(p);function p(h,y){const g=vfile(e);c.run(o,g,$);function $(E,A,N){const H=A||o;E?y(E):h?h(H):t(void 0,H,N)}}}runSync(o,e){let t=!1,c;return this.run(o,e,p),assertDone("runSync","run",t),c;function p(h,y){bail(h),c=y,t=!0}}stringify(o,e){this.freeze();const t=vfile(e),c=this.compiler||this.Compiler;return assertCompiler("stringify",c),assertNode(o),c(o,t)}use(o,...e){const t=this.attachers,c=this.namespace;if(assertUnfrozen("use",this.frozen),o!=null)if(typeof o=="function")g(o,e);else if(typeof o=="object")Array.isArray(o)?y(o):h(o);else throw new TypeError("Expected usable value, not `"+o+"`");return this;function p($){if(typeof $=="function")g($,[]);else if(typeof $=="object")if(Array.isArray($)){const[E,...A]=$;g(E,A)}else h($);else throw new TypeError("Expected usable value, not `"+$+"`")}function h($){if(!("plugins"in $)&&!("settings"in $))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");y($.plugins),$.settings&&(c.settings=extend(!0,c.settings,$.settings))}function y($){let E=-1;if($!=null)if(Array.isArray($))for(;++E<$.length;){const A=$[E];p(A)}else throw new TypeError("Expected a list of plugins, not `"+$+"`")}function g($,E){let A=-1,N=-1;for(;++A<t.length;)if(t[A][0]===$){N=A;break}if(N===-1)t.push([$,...E]);else if(E.length>0){let[H,...Z]=E;const X=t[N][1];isPlainObject(X)&&isPlainObject(H)&&(H=extend(!0,X,H)),t[N]=[$,H,...Z]}}}}const unified=new Processor().freeze();function assertParser(n,o){if(typeof o!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function assertCompiler(n,o){if(typeof o!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function assertUnfrozen(n,o){if(o)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(n){if(!isPlainObject(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function assertDone(n,o,e){if(!e)throw new Error("`"+n+"` finished async. Use `"+o+"` instead")}function vfile(n){return looksLikeAVFile(n)?n:new VFile(n)}function looksLikeAVFile(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function looksLikeAValue(n){return typeof n=="string"||isUint8Array(n)}function isUint8Array(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",emptyPlugins=[],emptyRemarkRehypeOptions={allowDangerousHtml:!0},safeProtocol=/^(https?|ircs?|mailto|xmpp)$/i,deprecations=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Markdown$2(n){const o=createProcessor(n),e=createFile(n);return post(o.runSync(o.parse(e),e),n)}function createProcessor(n){const o=n.rehypePlugins||emptyPlugins,e=n.remarkPlugins||emptyPlugins,t=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions;return unified().use(remarkParse).use(e).use(remarkRehype,t).use(o)}function createFile(n){const o=n.children||"",e=new VFile;return typeof o=="string"&&(e.value=o),e}function post(n,o){const e=o.allowedElements,t=o.allowElement,c=o.components,p=o.disallowedElements,h=o.skipHtml,y=o.unwrapDisallowed,g=o.urlTransform||defaultUrlTransform;for(const E of deprecations)Object.hasOwn(o,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+changelog+E.id,void 0);return visit(n,$),toJsxRuntime(n,{Fragment:jsxRuntimeExports.Fragment,components:c,ignoreInvalidStyle:!0,jsx:jsxRuntimeExports.jsx,jsxs:jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function $(E,A,N){if(E.type==="raw"&&N&&typeof A=="number")return h?N.children.splice(A,1):N.children[A]={type:"text",value:E.value},A;if(E.type==="element"){let H;for(H in urlAttributes)if(Object.hasOwn(urlAttributes,H)&&Object.hasOwn(E.properties,H)){const Z=E.properties[H],X=urlAttributes[H];(X===null||X.includes(E.tagName))&&(E.properties[H]=g(String(Z||""),H,E))}}if(E.type==="element"){let H=e?!e.includes(E.tagName):p?p.includes(E.tagName):!1;if(!H&&t&&typeof A=="number"&&(H=!t(E,A,N)),H&&N&&typeof A=="number")return y&&E.children?N.children.splice(A,1,...E.children):N.children.splice(A,1),A}}}function defaultUrlTransform(n){const o=n.indexOf(":"),e=n.indexOf("?"),t=n.indexOf("#"),c=n.indexOf("/");return o===-1||c!==-1&&o>c||e!==-1&&o>e||t!==-1&&o>t||safeProtocol.test(n.slice(0,o))?n:""}function ccount(n,o){const e=String(n);if(typeof o!="string")throw new TypeError("Expected character");let t=0,c=e.indexOf(o);for(;c!==-1;)t++,c=e.indexOf(o,c+o.length);return t}const characterEntitiesLegacy=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
60sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],characterReferenceInvalid={0:"�",128:"â¬",130:"â",131:"Æ",132:"â",133:"â¦",134:"â ",135:"â¡",136:"Ë",137:"â°",138:"Å ",139:"â¹",140:"Å",142:"Ž",145:"â",146:"â",147:"â",148:"â",149:"â¢",150:"â",151:"â",152:"Ë",153:"â¢",154:"Å¡",155:"âº",156:"Å",158:"ž",159:"Ÿ"};function isDecimal(n){const o=typeof n=="string"?n.charCodeAt(0):n;return o>=48&&o<=57}function isHexadecimal(n){const o=typeof n=="string"?n.charCodeAt(0):n;return o>=97&&o<=102||o>=65&&o<=70||o>=48&&o<=57}function isAlphabetical(n){const o=typeof n=="string"?n.charCodeAt(0):n;return o>=97&&o<=122||o>=65&&o<=90}function isAlphanumerical(n){return isAlphabetical(n)||isDecimal(n)}const fromCharCode=String.fromCharCode,messages=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function parseEntities(n,o={}){const e=typeof o.additional=="string"?o.additional.charCodeAt(0):o.additional,t=[];let c=0,p=-1,h="",y,g;o.position&&("start"in o.position||"indent"in o.position?(g=o.position.indent,y=o.position.start):y=o.position);let $=(y?y.line:0)||1,E=(y?y.column:0)||1,A=H(),N;for(c--;++c<=n.length;)if(N===10&&(E=(g?g[p]:0)||1),N=n.charCodeAt(c),N===38){const be=n.charCodeAt(c+1);if(be===9||be===10||be===12||be===32||be===38||be===60||Number.isNaN(be)||e&&be===e){h+=fromCharCode(N),E++;continue}const we=c+1;let $e=we,Ce=we,Ie;if(be===35){Ce=++$e;const Je=n.charCodeAt(Ce);Je===88||Je===120?(Ie="hexadecimal",Ce=++$e):Ie="decimal"}else Ie="named";let Ne="",Fe="",Be="";const Ge=Ie==="named"?isAlphanumerical:Ie==="decimal"?isDecimal:isHexadecimal;for(Ce--;++Ce<=n.length;){const Je=n.charCodeAt(Ce);if(!Ge(Je))break;Be+=fromCharCode(Je),Ie==="named"&&characterEntitiesLegacy.includes(Be)&&(Ne=Be,Fe=decodeNamedCharacterReference(Be))}let je=n.charCodeAt(Ce)===59;if(je){Ce++;const Je=Ie==="named"?decodeNamedCharacterReference(Be):!1;Je&&(Ne=Be,Fe=Je)}let De=1+Ce-we,Ue="";if(!(!je&&o.nonTerminated===!1))if(!Be)Ie!=="named"&&Z(4,De);else if(Ie==="named"){if(je&&!Fe)Z(5,1);else if(Ne!==Be&&(Ce=$e+Ne.length,De=1+Ce-$e,je=!1),!je){const Je=Ne?1:3;if(o.attribute){const Xe=n.charCodeAt(Ce);Xe===61?(Z(Je,De),Fe=""):isAlphanumerical(Xe)?Fe="":Z(Je,De)}else Z(Je,De)}Ue=Fe}else{je||Z(2,De);let Je=Number.parseInt(Be,Ie==="hexadecimal"?16:10);if(prohibited(Je))Z(7,De),Ue=fromCharCode(65533);else if(Je in characterReferenceInvalid)Z(6,De),Ue=characterReferenceInvalid[Je];else{let Xe="";disallowed(Je)&&Z(6,De),Je>65535&&(Je-=65536,Xe+=fromCharCode(Je>>>10|55296),Je=56320|Je&1023),Ue=Xe+fromCharCode(Je)}}if(Ue){X(),A=H(),c=Ce-1,E+=Ce-we+1,t.push(Ue);const Je=H();Je.offset++,o.reference&&o.reference.call(o.referenceContext,Ue,{start:A,end:Je},n.slice(we-1,Ce)),A=Je}else Be=n.slice(we-1,Ce),h+=Be,E+=Be.length,c=Ce-1}else N===10&&($++,p++,E=0),Number.isNaN(N)?X():(h+=fromCharCode(N),E++);return t.join("");function H(){return{line:$,column:E,offset:c+((y?y.offset:0)||0)}}function Z(be,we){let $e;o.warning&&($e=H(),$e.column+=we,$e.offset+=we,o.warning.call(o.warningContext,messages[be],$e,be))}function X(){h&&(t.push(h),o.text&&o.text.call(o.textContext,h,{start:A,end:H()}),h="")}}function prohibited(n){return n>=55296&&n<=57343||n>1114111}function disallowed(n){return n>=1&&n<=8||n===11||n>=13&&n<=31||n>=127&&n<=159||n>=64976&&n<=65007||(n&65535)===65535||(n&65535)===65534}const defaultSubsetRegex=/["&'<>`]/g,surrogatePairsRegex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,controlCharactersRegex=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,regexEscapeRegex=/[|\\{}()[\]^$+*?.]/g,subsetToRegexCache=new WeakMap;function core(n,o){if(n=n.replace(o.subset?charactersToExpressionCached(o.subset):defaultSubsetRegex,t),o.subset||o.escapeOnly)return n;return n.replace(surrogatePairsRegex,e).replace(controlCharactersRegex,t);function e(c,p,h){return o.format((c.charCodeAt(0)-55296)*1024+c.charCodeAt(1)-56320+65536,h.charCodeAt(p+2),o)}function t(c,p,h){return o.format(c.charCodeAt(0),h.charCodeAt(p+1),o)}}function charactersToExpressionCached(n){let o=subsetToRegexCache.get(n);return o||(o=charactersToExpression(n),subsetToRegexCache.set(n,o)),o}function charactersToExpression(n){const o=[];let e=-1;for(;++e<n.length;)o.push(n[e].replace(regexEscapeRegex,"\\$&"));return new RegExp("(?:"+o.join("|")+")","g")}function formatBasic(n){return"&#x"+n.toString(16).toUpperCase()+";"}function stringifyEntitiesLight(n,o){return core(n,Object.assign({format:formatBasic},o))}const own={}.hasOwnProperty,emptyOptions$2={},shortcut=/^[^\t\n\r "#'.<=>`}]+$/,unquoted=/^[^\t\n\r "'<=>`}]+$/;function directiveFromMarkdown(){return{canContainEols:["textDirective"],enter
60:{directiveContainer:enterContainer,directiveContainerAttributes:enterAttributes,directiveContainerLabel:enterContainerLabel,directiveLeaf:enterLeaf,directiveLeafAttributes:enterAttributes,directiveText:enterText,directiveTextAttributes:enterAttributes},exit:{directiveContainer:exit$1,directiveContainerAttributeClassValue:exitAttributeClassValue,directiveContainerAttributeIdValue:exitAttributeIdValue,directiveContainerAttributeName:exitAttributeName,directiveContainerAttributeValue:exitAttributeValue,directiveContainerAttributes:exitAttributes,directiveContainerLabel:exitContainerLabel,directiveContainerName:exitName,directiveLeaf:exit$1,directiveLeafAttributeClassValue:exitAttributeClassValue,directiveLeafAttributeIdValue:exitAttributeIdValue,directiveLeafAttributeName:exitAttributeName,directiveLeafAttributeValue:exitAttributeValue,directiveLeafAttributes:exitAttributes,directiveLeafName:exitName,directiveText:exit$1,directiveTextAttributeClassValue:exitAttributeClassValue,directiveTextAttributeIdValue:exitAttributeIdValue,directiveTextAttributeName:exitAttributeName,directiveTextAttributeValue:exitAttributeValue,directiveTextAttributes:exitAttributes,directiveTextName:exitName}}}function directiveToMarkdown(n){const o=emptyOptions$2;if(o.quote!=='"'&&o.quote!=="'"&&o.quote!==null&&o.quote!==void 0)throw new Error("Invalid quote `"+o.quote+"`, expected `'` or `\"`");return e.peek=peekDirective,{handlers:{containerDirective:e,leafDirective:e,textDirective:e},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:` 61`,inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}]};function e(p,h,y,g){const $=y.createTracker(g),E=fence(p),A=y.enter(p.type);let N=$.move(E+(p.name||"")),H;if(p.type==="containerDirective"){const Z=(p.children||[])[0];H=inlineDirectiveLabel(Z)?Z:void 0}else H=p;if(H&&H.children&&H.children.length>0){const Z=y.enter("label"),X=`${p.type}Label`,be=y.enter(X);N+=$.move("["),N+=$.move(y.containerPhrasing(H,{...$.current(),before:N,after:"]"})),N+=$.move("]"),be(),Z()}if(N+=$.move(t(p,y)),p.type==="containerDirective"){const Z=(p.children||[])[0];let X=p;inlineDirectiveLabel(Z)&&(X=Object.assign({},p,{children:p.children.slice(1)})),X&&X.children&&X.children.length>0&&(N+=$.move(` 62`),N+=$.move(y.containerFlow(X,$.current()))),N+=$.move(` 63`+E)}return A(),N}function t(p,h){const y=p.attributes||{},g=[];let $,E,A,N;for(N in y)if(own.call(y,N)&&y[N]!==void 0&&y[N]!==null){const H=String(y[N]);if(N==="id")A=o.preferShortcut!==!1&&shortcut.test(H)?"#"+H:c("id",H,p,h);else if(N==="class"){const Z=H.split(/[\t\n\r ]+/g),X=[],be=[];let we=-1;for(;++we<Z.length;)(o.preferShortcut!==!1&&shortcut.test(Z[we])?be:X).push(Z[we]);$=X.length>0?c("class",X.join(" "),p,h):"",E=be.length>0?"."+be.join("."):""}else g.push(c(N,H,p,h))}return $&&g.unshift($),E&&g.unshift(E),A&&g.unshift(A),g.length>0?"{"+g.join(" ")+"}":""}function c(p,h,y,g){if(o.collapseEmptyAttributes!==!1&&!h)return p;if(o.preferUnquoted&&unquoted.test(h))return p+"="+h;const $=o.quote||g.options.quote||'"',E=$==='"'?"'":'"',A=o.quoteSmart&&ccount(h,$)>ccount(h,E)?E:$,N=y.type==="textDirective"?[A]:[A,` 64`,"\r"];return p+"="+A+stringifyEntitiesLight(h,{subset:N})+A}}function enterContainer(n){enter.call(this,"containerDirective",n)}function enterLeaf(n){enter.call(this,"leafDirective",n)}function enterText(n){enter.call(this,"textDirective",n)}function enter(n,o){this.enter({type:n,name:"",attributes:{},children:[]},o)}function exitName(n){const o=this.stack[this.stack.length-1];o.type==="containerDirective"||o.type==="leafDirective"||o.type,o.name=this.sliceSerialize(n)}function enterContainerLabel(n){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},n)}function exitContainerLabel(n){this.exit(n)}function enterAttributes(){this.data.directiveAttributes=[],this.buffer()}function exitAttributeIdValue(n){this.data.directiveAttributes.push(["id",parseEntities(this.sliceSerialize(n),{attribute:!0})])}function exitAttributeClassValue(n){this.data.directiveAttributes.push(["class",parseEntities(this.sliceSerialize(n),{attribute:!0})])}function exitAttributeValue(n){const o=this.data.directiveAttributes;o[o.length-1][1]=parseEntities(this.sliceSerialize(n),{attribute:!0})}function exitAttributeName(n){this.data.directiveAttributes.push([this.sliceSerialize(n),""])}function exitAttributes(){const n=this.data.directiveAttributes,o={};let e=-1;for(;++e<n.length;){const c=n[e];c[0]==="class"&&o.class?o.class+=" "+c[1]:o[c[0]]=c[1]}this.data.directiveAttributes=void 0,this.resume();const t=this.stack[this.stack.length-1];t.type==="containerDirective"||t.type==="leafDirective"||t.type,t.attributes=o}function exit$1(n){this.exit(n)}function peekDirective(){return":"}function inlineDirectiveLabel(n){return!!(n&&n.type==="paragraph"&&n.data&&n.data.directiveLabel)}function fence(n){let o=0;return n.type==="containerDirective"?(visitParents(n,function(e,t){if(e.type==="containerDirective"){let c=t.length,p=0;for(;c--;)t[c].type==="containerDirective"&&p++;p>o&&(o=p)}}
64),o+=3):n.type==="leafDirective"?o=2:o=1,":".repeat(o)}function factoryAttributes(n,o,e,t,c,p,h,y,g,$,E,A,N,H,Z){let X,be;return we;function we(ze){return n.enter(t),n.enter(c),n.consume(ze),n.exit(c),$e}function $e(ze){return ze===35?(X=h,Ce(ze)):ze===46?(X=y,Ce(ze)):Z&&markdownSpace(ze)?factorySpace(n,$e,"whitespace")(ze):!Z&&markdownLineEndingOrSpace(ze)?factoryWhitespace(n,$e)(ze):ze===null||markdownLineEnding(ze)||unicodeWhitespace(ze)||unicodePunctuation(ze)&&ze!==45&&ze!==95?Ke(ze):(n.enter(p),n.enter(g),n.consume(ze),Fe)}function Ce(ze){const nt=X+"Marker";return n.enter(p),n.enter(X),n.enter(nt),n.consume(ze),n.exit(nt),Ie}function Ie(ze){if(ze===null||ze===34||ze===35||ze===39||ze===46||ze===60||ze===61||ze===62||ze===96||ze===125||markdownLineEndingOrSpace(ze))return e(ze);const nt=X+"Value";return n.enter(nt),n.consume(ze),Ne}function Ne(ze){if(ze===null||ze===34||ze===39||ze===60||ze===61||ze===62||ze===96)return e(ze);if(ze===35||ze===46||ze===125||markdownLineEndingOrSpace(ze)){const nt=X+"Value";return n.exit(nt),n.exit(X),n.exit(p),$e(ze)}return n.consume(ze),Ne}function Fe(ze){return ze===null||markdownLineEnding(ze)||unicodeWhitespace(ze)||unicodePunctuation(ze)&&ze!==45&&ze!==46&&ze!==58&&ze!==95?(n.exit(g),Z&&markdownSpace(ze)?factorySpace(n,Be,"whitespace")(ze):!Z&&markdownLineEndingOrSpace(ze)?factoryWhitespace(n,Be)(ze):Be(ze)):(n.consume(ze),Fe)}function Be(ze){return ze===61?(n.enter($),n.consume(ze),n.exit($),Ge):(n.exit(p),$e(ze))}function Ge(ze){return ze===null||ze===60||ze===61||ze===62||ze===96||ze===125||Z&&markdownLineEnding(ze)?e(ze):ze===34||ze===39?(n.enter(E),n.enter(N),n.consume(ze),n.exit(N),be=ze,De):Z&&markdownSpace(ze)?factorySpace(n,Ge,"whitespace")(ze):!Z&&markdownLineEndingOrSpace(ze)?factoryWhitespace(n,Ge)(ze):(n.enter(A),n.enter(H),n.consume(ze),be=void 0,je)}function je(ze){return ze===null||ze===34||ze===39||ze===60||ze===61||ze===62||ze===96?e(ze):ze===125||markdownLineEndingOrSpace(ze)?(n.exit(H),n.exit(A),n.exit(p),$e(ze)):(n.consume(ze),je)}function De(ze){return ze===be?(n.enter(N),n.consume(ze),n.exit(N),n.exit(E),n.exit(p),Xe):(n.enter(A),Ue(ze))}function Ue(ze){return ze===be?(n.exit(A),De(ze)):ze===null?e(ze):markdownLineEnding(ze)?Z?e(ze):factoryWhitespace(n,Ue)(ze):(n.enter(H),n.consume(ze),Je)}function Je(ze){return ze===be||ze===null||markdownLineEnding(ze)?(n.exit(H),Ue(ze)):(n.consume(ze),Je)}function Xe(ze){return ze===125||markdownLineEndingOrSpace(ze)?$e(ze):Ke(ze)}function Ke(ze){return ze===125?(n.enter(c),n.consume(ze),n.exit(c),n.exit(t),o):e(ze)}}function factoryLabel(n,o,e,t,c,p,h){let y=0,g=0,$;return E;function E(be){return n.enter(t),n.enter(c),n.consume(be),n.exit(c),A}function A(be){return be===93?(n.enter(c),n.consume(be),n.exit(c),n.exit(t),o):(n.enter(p),N(be))}function N(be){if(be===93&&!g)return X(be);const we=n.enter("chunkText",{_contentTypeTextTrailing:!0,contentType:"text",previous:$});return $&&($.next=we),$=we,H(be)}function H(be){return be===null||y>999||be===91&&++g>32?e(be):be===93&&!g--?(n.exit("chunkText"),X(be)):markdownLineEnding(be)?h?e(be):(n.consume(be),n.exit("chunkText"),N):(n.consume(be),be===92?Z:H)}function Z(be){return be===91||be===92||be===93?(n.consume(be),y++,H):H(be)}function X(be){return n.exit(p),n.enter(c),n.consume(be),n.exit(c),n.exit(t),o}}function factoryName(n,o,e,t){const c=this;return p;function p(y){return y===null||markdownLineEnding(y)||unicodePunctuation(y)||unicodeWhitespace(y)?e(y):(n.enter(t),n.consume(y),h)}function h(y){return y===null||markdownLineEnding(y)||unicodeWhitespace(y)||unicodePunctuation(y)&&y!==45&&y!==95?(n.exit(t),c.previous===45||c.previous===95?e(y):o(y)):(n.consume(y),h)}}const directiveContainer={tokenize:tokenizeDirectiveContainer,concrete:!0},label$2={tokenize:tokenizeLabel$2,partial:!0},attributes$2={tokenize:tokenizeAttributes$2,partial:!0},nonLazyLine={tokenize:tokenizeNonLazyLine,partial:!0};function tokenizeDirectiveContainer(n,o,e){const t=this,c=t.events[t.events.length-1],p=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0;let h=0,y;return g;function g(je){return n.enter("directiveContainer"),n.enter("directiveContainerFence"),n.enter("directiveContainerSequence"),$(je)}function $(je){return je===58?(n.consume(je),h++,$):h<3?e(je):(n.exit("directiveContainerSequence"),factoryName.call(t,n,E,e,"directiveContainerName")(je))}function E(je){return je===91?n.attempt(label$2,A,A)(je):A(je)}function A(je){return je===123?n.attempt(attributes$2,N,N)(je):N(je)}function N(je){return factorySpace(n,H,"whitespace")(je)}function H(je){return n.exit("directiveContainerFence"),je===null?Be(je):markdownLineEnding(je)?t.interrupt?o(je):n.attempt(nonLazyLine,Z,Be)(je):e(je)}function Z(je){return je===null?Be(je):markdownLineEnding(je)?n.check(nonLazyLine,Ce,Be)(je):(n.enter("directiveContainerContent"),X(je))}function X(je){return n.attempt({tokenize:Ge,partial:!0},Fe,p?factorySpace(n,be,"linePrefix",p+1):be)(je)}function be(je){return je===null?Fe(je):markdownLineEnding(je)?n.check(nonLazyLine,$e,Fe)(je):$e(je)}function we(je){if(je===null){const De=n.exit("chunkDocument");return t.parser.lazy[De.start.line]=!1,Fe(je)}return markdownLineEnding(je)?n.check(nonLazyLine,Ie,Ne)(je):(n.consume(je),we)}function $e(je){const De=n.enter("chunkDocument",{contentType:"document",previous:y});return y&&(y.next=De),y=De,we(je)}function Ce(je){return n.enter("directiveContainerContent"),X(je)}function Ie(je){n.consume(je);const De=n.exit("chunkDocument");return t.parser.lazy[De.start.line]=!1,X}function Ne(je){const De=n.exit("chunkDocument");return t.parser.lazy[De.start.line]=!1,Fe(je)}function Fe(je){return n.exit("directiveContainerContent"),Be(je)}function Be(je){return n.exit("directiveContainer"),o(je)}function Ge(je,De,Ue){let Je=0;return factorySpace(je,Xe,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Xe(nt){return je.enter("directiveContainerFence"),je.enter("directiveContainerSequence"),Ke(nt)}function Ke(nt){return nt===58?(je.consume(nt),Je++,Ke):Je<h?Ue(nt):(je.exit("directiveContainerSequence"),factorySpace(je,ze,"whitespace")(nt))}function ze(nt){return nt===null||markdownLineEnding(nt)?(je.exit("directiveContainerFence"),De(nt)):Ue(nt)}}}function tokenizeLabel$2(n,o,e){return factoryLabel(n,o,e,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function tokenizeAttributes$2(n,o,e){return factoryAttributes(n,o,e,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function tokenizeNonLazyLine(n,o,e){const t=this;return c;function c(h){return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p}function p(h){return t.parser.lazy[t.now().line]?e(h):o(h)}}const directiveLeaf={tokenize:tokenizeDirectiveLeaf},label$1={tokenize:tokenizeLabel$1,partial:!0},attributes$1={tokenize:tokenizeAttributes$1,partial:!0};function tokenizeDirectiveLeaf(n,o,e){const t=this;return c;function c(E){return n.enter("directiveLeaf"),n.enter("directiveLeafSequence"),n.consume(E),p}function p(E){return E===58?(n.consume(E),n.exit("directiveLeafSequence"),factoryName.call(t,n,h,e,"directiveLeafName")):e(E)}function h(E){return E===91?n.attempt(label$1,y,y)(E):y(E)}function y(E){return E===123?n.attempt(attributes$1,g,g)(E):g(E)}function g(E){return factorySpace(n,$,"whitespace")(E)}function $(E){return E===null||markdownLineEnding(E)?(n.exit("directiveLeaf"),o(E)):e(E)}}function tokenizeLabel$1(n,o,e){return factoryLabel(n,o,e,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function tokenizeAttributes$1(n,o,e){return factoryAttributes(n,o,e,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}const directiveText={tokenize:tokenizeDirectiveText,previous:previous$2},label={tokenize:tokenizeLabel,partial:!0},attributes={tokenize:tokenizeAttributes,partial:!0};function previous$2(n){return n!==58||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeDirectiveText(n,o,e){const t=this;return c;function c(g){return n.enter("directiveText"),n.enter("directiveTextMarker"),n.consume(g),n.exit("directiveTextMarker"),factoryName.call(t,n,p,e,"directiveTextName")}function p(g){return g===58?e(g):g===91?n.attempt(label,h,h)(g):h(g)}function h(g){return g===123?n.attempt(attributes,y,y)(g):y(g)}function y(g){return n.exit("directiveText"),o(g)}}function tokenizeLabel(n,o,e){return factoryLabel(n,o,e,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function tokenizeAttributes(n,o,e){return factoryAttributes(n,o,e,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}function directive(){return{text:{58:directiveText},flow:{58:[directiveContainer,directiveLeaf]}}}function remarkDirective(){const o=this.data(),e=o.micromarkExtensions||(o.micromarkExtensions=[]),t=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),c=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);e.push(directive()),t.push(directiveFromMarkdown()),c.push(directiveToMarkdown())}const inConstruct="phrasing",notInConstruct=["autolink","link","image","label"];function gfmAutolinkLiteralFromMarkdown(){return{transforms:[transformGfmAutolinkLiterals],enter:{literalAutolink:enterLiteralAutolink,literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:exitLiteralAutolink,literalAutolinkEmail:exitLiteralAutolinkEmail,literalAutolinkHttp:exitLiteralAutolinkHttp,literalAutolinkWww:exitLiteralAutolinkWww}}}function gfmAutolinkLiteralToMarkdown(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:":",before:"[ps]",after:"\\/",inConstruct,notInConstruct}]}}function enterLiteralAutolink(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function enterLiteralAutolinkValue(n){this.config.enter.autolinkProtocol.call(this,n)}function exitLiteralAutolinkHttp(n){this.config.exit.autolinkProtocol.call(this,n)}function exitLiteralAutolinkWww(n){this.config.exit.data.call(this,n);const o=this.stack[this.stack.length-1];o.type,o.url="http://"+this.sliceSerialize(n)}function exitLiteralAutolinkEmail(n){this.config.exit.autolinkEmail.call(this,n)}function exitLiteralAutolink(n){this.exit(n)}function transformGfmAutolinkLiterals(n){findAndReplace(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S}
64)([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),findEmail]],{ignore:["link","linkReference"]})}function findUrl(n,o,e,t,c){let p="";if(!previous$1(c)||(/^w/i.test(o)&&(e=o+e,o="",p="http://"),!isCorrectDomain(e)))return!1;const h=splitUrl(e+t);if(!h[0])return!1;const y={type:"link",title:null,url:p+o+h[0],children:[{type:"text",value:o+h[0]}]};return h[1]?[y,{type:"text",value:h[1]}]:y}function findEmail(n,o,e,t){return!previous$1(t,!0)||/[-\d_]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+o+"@"+e,children:[{type:"text",value:o+"@"+e}]}}function isCorrectDomain(n){const o=n.split(".");return!(o.length<2||o[o.length-1]&&(/_/.test(o[o.length-1])||!/[a-zA-Z\d]/.test(o[o.length-1]))||o[o.length-2]&&(/_/.test(o[o.length-2])||!/[a-zA-Z\d]/.test(o[o.length-2])))}function splitUrl(n){const o=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!o)return[n,void 0];n=n.slice(0,o.index);let e=o[0],t=e.indexOf(")");const c=ccount(n,"(");let p=ccount(n,")");for(;t!==-1&&c>p;)n+=e.slice(0,t+1),e=e.slice(t+1),t=e.indexOf(")"),p++;return[n,e]}function previous$1(n,o){const e=n.input.charCodeAt(n.index-1);return(n.index===0||unicodeWhitespace(e)||unicodePunctuation(e))&&(!o||e!==47)}footnoteReference.peek=footnoteReferencePeek;function enterFootnoteCallString(){this.buffer()}function enterFootnoteCall(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function enterFootnoteDefinitionLabelString(){this.buffer()}function enterFootnoteDefinition(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function exitFootnoteCallString(n){const o=this.resume(),e=this.stack[this.stack.length-1];e.type,e.identifier=normalizeIdentifier(this.sliceSerialize(n)).toLowerCase(),e.label=o}function exitFootnoteCall(n){this.exit(n)}function exitFootnoteDefinitionLabelString(n){const o=this.resume(),e=this.stack[this.stack.length-1];e.type,e.identifier=normalizeIdentifier(this.sliceSerialize(n)).toLowerCase(),e.label=o}function exitFootnoteDefinition(n){this.exit(n)}function footnoteReferencePeek(){return"["}function footnoteReference(n,o,e,t){const c=e.createTracker(t);let p=c.move("[^");const h=e.enter("footnoteReference"),y=e.enter("reference");return p+=c.move(e.safe(e.associationId(n),{after:"]",before:p})),y(),h(),p+=c.move("]"),p}function gfmFootnoteFromMarkdown(){return{enter:{gfmFootnoteCallString:enterFootnoteCallString,gfmFootnoteCall:enterFootnoteCall,gfmFootnoteDefinitionLabelString:enterFootnoteDefinitionLabelString,gfmFootnoteDefinition:enterFootnoteDefinition},exit:{gfmFootnoteCallString:exitFootnoteCallString,gfmFootnoteCall:exitFootnoteCall,gfmFootnoteDefinitionLabelString:exitFootnoteDefinitionLabelString,gfmFootnoteDefinition:exitFootnoteDefinition}}}function gfmFootnoteToMarkdown(n){let o=!1;return n&&n.firstLineBlank&&(o=!0),{handlers:{footnoteDefinition:e,footnoteReference},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function e(t,c,p,h){const y=p.createTracker(h);let g=y.move("[^");const $=p.enter("footnoteDefinition"),E=p.enter("label");return g+=y.move(p.safe(p.associationId(t),{before:g,after:"]"})),E(),g+=y.move("]:"),t.children&&t.children.length>0&&(y.shift(4),g+=y.move((o?` 65`:" ")+p.indentLines(p.containerFlow(t,y.current()),o?mapAll:mapExceptFirst))),$(),g}}function mapExceptFirst(n,o,e){return o===0?n:mapAll(n,o,e)}function mapAll(n,o,e){return(e?"":" ")+n}const constructsWithoutStrikethrough=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];handleDelete.peek=peekDelete;function gfmStrikethroughFromMarkdown(){return{canContainEols:["delete"],enter:{strikethrough:enterStrikethrough},exit:{strikethrough:exitStrikethrough}}}function gfmStrikethroughToMarkdown(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:constructsWithoutStrikethrough}],handlers:{delete:handleDelete}}}function enterStrikethrough(n){this.enter({type:"delete",children:[]},n)}function exitStrikethrough(n){this.exit(n)}function handleDelete(n,o,e,t){const c=e.createTracker(t),p=e.enter("strikethrough");let h=c.move("~~");return h+=e.containerPhrasing(n,{...c.current(),before:h,after:"~"}),h+=c.move("~~"),p(),h}function peekDelete(){return"~"}function markdownTable(n,o={}
vendor: 4,500 bytes, lines 65-72
65){const e=(o.align||[]).concat(),t=o.stringLength||defaultStringLength,c=[],p=[],h=[],y=[];let g=0,$=-1;for(;++$<n.length;){const Z=[],X=[];let be=-1;for(n[$].length>g&&(g=n[$].length);++be<n[$].length;){const we=serialize(n[$][be]);if(o.alignDelimiters!==!1){const $e=t(we);X[be]=$e,(y[be]===void 0||$e>y[be])&&(y[be]=$e)}Z.push(we)}p[$]=Z,h[$]=X}let E=-1;if(typeof e=="object"&&"length"in e)for(;++E<g;)c[E]=toAlignment(e[E]);else{const Z=toAlignment(e);for(;++E<g;)c[E]=Z}E=-1;const A=[],N=[];for(;++E<g;){const Z=c[E];let X="",be="";Z===99?(X=":",be=":"):Z===108?X=":":Z===114&&(be=":");let we=o.alignDelimiters===!1?1:Math.max(1,y[E]-X.length-be.length);const $e=X+"-".repeat(we)+be;o.alignDelimiters!==!1&&(we=X.length+we+be.length,we>y[E]&&(y[E]=we),N[E]=we),A[E]=$e}p.splice(1,0,A),h.splice(1,0,N),$=-1;const H=[];for(;++$<p.length;){const Z=p[$],X=h[$];E=-1;const be=[];for(;++E<g;){const we=Z[E]||"";let $e="",Ce="";if(o.alignDelimiters!==!1){const Ie=y[E]-(X[E]||0),Ne=c[E];Ne===114?$e=" ".repeat(Ie):Ne===99?Ie%2?($e=" ".repeat(Ie/2+.5),Ce=" ".repeat(Ie/2-.5)):($e=" ".repeat(Ie/2),Ce=$e):Ce=" ".repeat(Ie)}o.delimiterStart!==!1&&!E&&be.push("|"),o.padding!==!1&&!(o.alignDelimiters===!1&&we==="")&&(o.delimiterStart!==!1||E)&&be.push(" "),o.alignDelimiters!==!1&&be.push($e),be.push(we),o.alignDelimiters!==!1&&be.push(Ce),o.padding!==!1&&be.push(" "),(o.delimiterEnd!==!1||E!==g-1)&&be.push("|")}H.push(o.delimiterEnd===!1?be.join("").replace(/ +$/,""):be.join(""))}return H.join(` 66`)}function serialize(n){return n==null?"":String(n)}function defaultStringLength(n){return n.length}function toAlignment(n){const o=typeof n=="string"?n.codePointAt(0):0;return o===67||o===99?99:o===76||o===108?108:o===82||o===114?114:0}function blockquote(n,o,e,t){const c=e.enter("blockquote"),p=e.createTracker(t);p.move("> "),p.shift(2);const h=e.indentLines(e.containerFlow(n,p.current()),map$1);return c(),h}function map$1(n,o,e){return">"+(e?"":" ")+n}function patternInScope(n,o){return listInScope(n,o.inConstruct,!0)&&!listInScope(n,o.notInConstruct,!1)}function listInScope(n,o,e){if(typeof o=="string"&&(o=[o]),!o||o.length===0)return e;let t=-1;for(;++t<o.length;)if(n.includes(o[t]))return!0;return!1}function hardBreak(n,o,e,t){let c=-1;for(;++c<e.unsafe.length;)if(e.unsafe[c].character===` 67`&&patternInScope(e.stack,e.unsafe[c]))return/[ \t]/.test(t.before)?"":" ";return`\\ 68`}function longestStreak(n,o){const e=String(n);let t=e.indexOf(o),c=t,p=0,h=0;if(typeof o!="string")throw new TypeError("Expected substring");for(;t!==-1;)t===c?++p>h&&(h=p):p=1,c=t+o.length,t=e.indexOf(o,c);return h}function formatCodeAsIndented(n,o){return!!(o.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function checkFence(n){const o=n.options.fence||"`";if(o!=="`"&&o!=="~")throw new Error("Cannot serialize code with `"+o+"` for `options.fence`, expected `` ` `` or `~`");return o}function code$2(n,o,e,t){const c=checkFence(e),p=n.value||"",h=c==="`"?"GraveAccent":"Tilde";if(formatCodeAsIndented(n,e)){const A=e.enter("codeIndented"),N=e.indentLines(p,map);return A(),N}const y=e.createTracker(t),g=c.repeat(Math.max(longestStreak(p,c)+1,3)),$=e.enter("codeFenced");let E=y.move(g);if(n.lang){const A=e.enter(`codeFencedLang${h}`);E+=y.move(e.safe(n.lang,{before:E,after:" ",encode:["`"],...y.current()})),A()}if(n.lang&&n.meta){const A=e.enter(`codeFencedMeta${h}`);E+=y.move(" "),E+=y.move(e.safe(n.meta,{before:E,after:` 69`,encode:["`"],...y.current()})),A()}return E+=y.move(` 70`),p&&(E+=y.move(p+` 71`)),E+=y.move(g),$(),E}function map(n,o,e){return(e?"":" ")+n}function checkQuote(n){const o=n.options.quote||'"';if(o!=='"'&&o!=="'")throw new Error("Cannot serialize title with `"+o+"` for `options.quote`, expected `\"`, or `'`");return o}function definition(n,o,e,t){const c=checkQuote(e),p=c==='"'?"Quote":"Apostrophe",h=e.enter("definition");let y=e.enter("label");const g=e.createTracker(t);let $=g.move("[");return $+=g.move(e.safe(e.associationId(n),{before:$,after:"]",...g.current()})),$+=g.move("]: "),y(),!n.url||/[\0- \u007F]/.test(n.url)?(y=e.enter("destinationLiteral"),$+=g.move("<"),$+=g.move(e.safe(n.url,{before:$,after:">",...g.current()})),$+=g.move(">")):(y=e.enter("destinationRaw"),$+=g.move(e.safe(n.url,{before:$,after:n.title?" ":` 72`,...g.current()}))),y(),n.title&&(y=e.enter(`title${p}`),$+=g.move(" "+c),$+=g.move(e.safe(n.title,{before:$,after:c,...g.current()})),$+=g.move(c),y()),h(),$}
vendor: 14,692 bytes, lines 72-79
72function checkEmphasis(n){const o=n.options.emphasis||"*";if(o!=="*"&&o!=="_")throw new Error("Cannot serialize emphasis with `"+o+"` for `options.emphasis`, expected `*`, or `_`");return o}function encodeCharacterReference(n){return"&#x"+n.toString(16).toUpperCase()+";"}function encodeInfo(n,o,e){const t=classifyCharacter(n),c=classifyCharacter(o);return t===void 0?c===void 0?e==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:c===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:t===1?c===void 0?{inside:!1,outside:!1}:c===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:c===void 0?{inside:!1,outside:!1}:c===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}emphasis.peek=emphasisPeek;function emphasis(n,o,e,t){const c=checkEmphasis(e),p=e.enter("emphasis"),h=e.createTracker(t),y=h.move(c);let g=h.move(e.containerPhrasing(n,{after:c,before:y,...h.current()}));const $=g.charCodeAt(0),E=encodeInfo(t.before.charCodeAt(t.before.length-1),$,c);E.inside&&(g=encodeCharacterReference($)+g.slice(1));const A=g.charCodeAt(g.length-1),N=encodeInfo(t.after.charCodeAt(0),A,c);N.inside&&(g=g.slice(0,-1)+encodeCharacterReference(A));const H=h.move(c);return p(),e.attentionEncodeSurroundingInfo={after:N.outside,before:E.outside},y+g+H}function emphasisPeek(n,o,e){return e.options.emphasis||"*"}function formatHeadingAsSetext(n,o){let e=!1;return visit(n,function(t){if("value"in t&&/\r?\n|\r/.test(t.value)||t.type==="break")return e=!0,EXIT}),!!((!n.depth||n.depth<3)&&toString$1(n)&&(o.options.setext||e))}function heading(n,o,e,t){const c=Math.max(Math.min(6,n.depth||1),1),p=e.createTracker(t);if(formatHeadingAsSetext(n,e)){const E=e.enter("headingSetext"),A=e.enter("phrasing"),N=e.containerPhrasing(n,{...p.current(),before:` 73`,after:` 74`});return A(),E(),N+` 75`+(c===1?"=":"-").repeat(N.length-(Math.max(N.lastIndexOf("\r"),N.lastIndexOf(` 76`))+1))}const h="#".repeat(c),y=e.enter("headingAtx"),g=e.enter("phrasing");p.move(h+" ");let $=e.containerPhrasing(n,{before:"# ",after:` 77`,...p.current()});return/^[\t ]/.test($)&&($=encodeCharacterReference($.charCodeAt(0))+$.slice(1)),$=$?h+" "+$:h,e.options.closeAtx&&($+=" "+h),g(),y(),$}html.peek=htmlPeek;function html(n){return n.value||""}function htmlPeek(){return"<"}image.peek=imagePeek;function image(n,o,e,t){const c=checkQuote(e),p=c==='"'?"Quote":"Apostrophe",h=e.enter("image");let y=e.enter("label");const g=e.createTracker(t);let $=g.move("![");return $+=g.move(e.safe(n.alt,{before:$,after:"]",...g.current()})),$+=g.move("]("),y(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(y=e.enter("destinationLiteral"),$+=g.move("<"),$+=g.move(e.safe(n.url,{before:$,after:">",...g.current()})),$+=g.move(">")):(y=e.enter("destinationRaw"),$+=g.move(e.safe(n.url,{before:$,after:n.title?" ":")",...g.current()}))),y(),n.title&&(y=e.enter(`title${p}`),$+=g.move(" "+c),$+=g.move(e.safe(n.title,{before:$,after:c,...g.current()})),$+=g.move(c),y()),$+=g.move(")"),h(),$}function imagePeek(){return"!"}imageReference.peek=imageReferencePeek;function imageReference(n,o,e,t){const c=n.referenceType,p=e.enter("imageReference");let h=e.enter("label");const y=e.createTracker(t);let g=y.move("![");const $=e.safe(n.alt,{before:g,after:"]",...y.current()});g+=y.move($+"]["),h();const E=e.stack;e.stack=[],h=e.enter("reference");const A=e.safe(e.associationId(n),{before:g,after:"]",...y.current()});return h(),e.stack=E,p(),c==="full"||!$||$!==A?g+=y.move(A+"]"):c==="shortcut"?g=g.slice(0,-1):g+=y.move("]"),g}function imageReferencePeek(){return"!"}inlineCode.peek=inlineCodePeek;function inlineCode(n,o,e){let t=n.value||"",c="`",p=-1;for(;new RegExp("(^|[^`])"+c+"([^`]|$)").test(t);)c+="`";for(/[^ \r\n]/.test(t)&&(/^[ \r\n]/.test(t)&&/[ \r\n]$/.test(t)||/^`|`$/.test(t))&&(t=" "+t+" ");++p<e.unsafe.length;){const h=e.unsafe[p],y=e.compilePattern(h);let g;if(h.atBreak)for(;g=y.exec(t);){let $=g.index;t.charCodeAt($)===10&&t.charCodeAt($-1)===13&&$--,t=t.slice(0,$)+" "+t.slice(g.index+1)}}return c+t+c}function inlineCodePeek(){return"`"}function formatLinkAsAutolink(n,o){const e=toString$1(n);return!!(!o.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(e===n.url||"mailto:"+e===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}link.peek=linkPeek;function link(n,o,e,t){const c=checkQuote(e),p=c==='"'?"Quote":"Apostrophe",h=e.createTracker(t);let y,g;if(formatLinkAsAutolink(n,e)){const E=e.stack;e.stack=[],y=e.enter("autolink");let A=h.move("<");return A+=h.move(e.containerPhrasing(n,{before:A,after:">",...h.current()})),A+=h.move(">"),y(),e.stack=E,A}y=e.enter("link"),g=e.enter("label");let $=h.move("[");return $+=h.move(e.containerPhrasing(n,{before:$,after:"](",...h.current()})),$+=h.move("]("),g(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(g=e.enter("destinationLiteral"),$+=h.move("<"),$+=h.move(e.safe(n.url,{before:$,after:">",...h.current()})),$+=h.move(">")):(g=e.enter("destinationRaw"),$+=h.move(e.safe(n.url,{before:$,after:n.title?" ":")",...h.current()}))),g(),n.title&&(g=e.enter(`title${p}`),$+=h.move(" "+c),$+=h.move(e.safe(n.title,{before:$,after:c,...h.current()})),$+=h.move(c),g()),$+=h.move(")"),y(),$}function linkPeek(n,o,e){return formatLinkAsAutolink(n,e)?"<":"["}linkReference.peek=linkReferencePeek;function linkReference(n,o,e,t){const c=n.referenceType,p=e.enter("linkReference");let h=e.enter("label");const y=e.createTracker(t);let g=y.move("[");const $=e.containerPhrasing(n,{before:g,after:"]",...y.current()});g+=y.move($+"]["),h();const E=e.stack;e.stack=[],h=e.enter("reference");const A=e.safe(e.associationId(n),{before:g,after:"]",...y.current()});return h(),e.stack=E,p(),c==="full"||!$||$!==A?g+=y.move(A+"]"):c==="shortcut"?g=g.slice(0,-1):g+=y.move("]"),g}function linkReferencePeek(){return"["}function checkBullet(n){const o=n.options.bullet||"*";if(o!=="*"&&o!=="+"&&o!=="-")throw new Error("Cannot serialize items with `"+o+"` for `options.bullet`, expected `*`, `+`, or `-`");return o}function checkBulletOther(n){const o=checkBullet(n),e=n.options.bulletOther;if(!e)return o==="*"?"-":"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(e===o)throw new Error("Expected `bullet` (`"+o+"`) and `bulletOther` (`"+e+"`) to be different");return e}function checkBulletOrdered(n){const o=n.options.bulletOrdered||".";if(o!=="."&&o!==")")throw new Error("Cannot serialize items with `"+o+"` for `options.bulletOrdered`, expected `.` or `)`");return o}function checkRule(n){const o=n.options.rule||"*";if(o!=="*"&&o!=="-"&&o!=="_")throw new Error("Cannot serialize rules with `"+o+"` for `options.rule`, expected `*`, `-`, or `_`");return o}function list(n,o,e,t){const c=e.enter("list"),p=e.bulletCurrent;let h=n.ordered?checkBulletOrdered(e):checkBullet(e);const y=n.ordered?h==="."?")":".":checkBulletOther(e);let g=o&&e.bulletLastUsed?h===e.bulletLastUsed:!1;if(!n.ordered){const E=n.children?n.children[0]:void 0;if((h==="*"||h==="-")&&E&&(!E.children||!E.children[0])&&e.stack[e.stack.length-1]==="list"&&e.stack[e.stack.length-2]==="listItem"&&e.stack[e.stack.length-3]==="list"&&e.stack[e.stack.length-4]==="listItem"&&e.indexStack[e.indexStack.length-1]===0&&e.indexStack[e.indexStack.length-2]===0&&e.indexStack[e.indexStack.length-3]===0&&(g=!0),checkRule(e)===h&&E){let A=-1;for(;++A<n.children.length;){const N=n.children[A];if(N&&N.type==="listItem"&&N.children&&N.children[0]&&N.children[0].type==="thematicBreak"){g=!0;break}}}}g&&(h=y),e.bulletCurrent=h;const $=e.containerFlow(n,t);return e.bulletLastUsed=h,e.bulletCurrent=p,c(),$}function checkListItemIndent(n){const o=n.options.listItemIndent||"one";if(o!=="tab"&&o!=="one"&&o!=="mixed")throw new Error("Cannot serialize items with `"+o+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return o}function listItem(n,o,e,t){const c=checkListItemIndent(e);let p=e.bulletCurrent||checkBullet(e);o&&o.type==="list"&&o.ordered&&(p=(typeof o.start=="number"&&o.start>-1?o.start:1)+(e.options.incrementListMarker===!1?0:o.children.indexOf(n))+p);let h=p.length+1;(c==="tab"||c==="mixed"&&(o&&o.type==="list"&&o.spread||n.spread))&&(h=Math.ceil(h/4)*4);const y=e.createTracker(t);y.move(p+" ".repeat(h-p.length)),y.shift(h);const g=e.enter("listItem"),$=e.indentLines(e.containerFlow(n,y.current()),E);return g(),$;function E(A,N,H){return N?(H?"":" ".repeat(h))+A:(H?p:p+" ".repeat(h-p.length))+A}}function paragraph(n,o,e,t){const c=e.enter("paragraph"),p=e.enter("phrasing"),h=e.containerPhrasing(n,t);return p(),c(),h}const phrasing=convert(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function root$1(n,o,e,t){return(n.children.some(function(h){return phrasing(h)})?e.containerPhrasing:e.containerFlow).call(e,n,t)}function checkStrong(n){const o=n.options.strong||"*";if(o!=="*"&&o!=="_")throw new Error("Cannot serialize strong with `"+o+"` for `options.strong`, expected `*`, or `_`");return o}strong.peek=strongPeek;function strong(n,o,e,t){const c=checkStrong(e),p=e.enter("strong"),h=e.createTracker(t),y=h.move(c+c);let g=h.move(e.containerPhrasing(n,{after:c,before:y,...h.current()}));const $=g.charCodeAt(0),E=encodeInfo(t.before.charCodeAt(t.before.length-1),$,c);E.inside&&(g=encodeCharacterReference($)+g.slice(1));const A=g.charCodeAt(g.length-1),N=encodeInfo(t.after.charCodeAt(0),A,c);N.inside&&(g=g.slice(0,-1)+encodeCharacterReference(A));const H=h.move(c+c);return p(),e.attentionEncodeSurroundingInfo={after:N.outside,before:E.outside},y+g+H}function strongPeek(n,o,e){return e.options.strong||"*"}function text$1(n,o,e,t){return e.safe(n.value,t)}function checkRuleRepetition(n){const o=n.options.ruleRepetition||3;if(o<3)throw new Error("Cannot serialize rules with repetition `"+o+"` for `options.ruleRepetition`, expected `3` or more");return o}function thematicBreak(n,o,e){const t=(checkRule(e)+(e.options.ruleSpaces?" ":"")).repeat(checkRuleRepetition(e));return e.options.ruleSpaces?t.slice(0,-1):t}const handle={blockquote,break:hardBreak,code:code$2,definition,emphasis,hardBreak,heading,html,image,imageReference,inlineCode,link,linkReference,list,listItem,paragraph,root:root$1,strong,text:text$1,thematicBreak};function gfmTableFromMarkdown(){return{enter:{table:enterTable,tableData:enterCell,tableHeader:enterCell,tableRow:enterRow},exit:{codeText:exitCodeText,table:exitTable,tableData:exit,tableHeader:exit,tableRow:exit}}}function enterTable(n){const o=n._align;this.enter({type:"table",align:o.map(function(e){return e==="none"?null:e}),children:[]},n),this.data.inTable=!0}function exitTable(n){this.exit(n),this.data.inTable=void 0}function enterRow(n){this.enter({type:"tableRow",children:[]},n)}function exit(n){this.exit(n)}function enterCell(n){this.enter({type:"tableCell",children:[]},n)}function exitCodeText(n){let o=this.resume();this.data.inTable&&(o=o.replace(/\\([\\|])/g,replace));const e=this.stack[this.stack.length-1];e.type,e.value=o,this.exit(n)}function replace(n,o){return o==="|"?o:n}function gfmTableToMarkdown(n){const o=n||{},e=o.tableCellPadding,t=o.tablePipeAlign,c=o.stringLength,p=e?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 78`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:N,table:h,tableCell:g,tableRow:y}};function h(H,Z,X,be){return $(E(H,X,be),H.align)}function y(H,Z,X,be){const we=A(H,X,be),$e=$([we]);return $e.slice(0,$e.indexOf(` 79`))}function g(H,Z,X,be){const we=X.enter("tableCell"),$e=X.enter("phrasing"),Ce=X.containerPhrasing(H,{...be,before:p,after:p});return $e(),we(),Ce}function $(H,Z){return markdownTable(H,{align:Z,alignDelimiters:t,padding:e,stringLength:c})}function E(H,Z,X){const be=H.children;let we=-1;const $e=[],Ce=Z.enter("table");for(;++we<be.length;)$e[we]=A(be[we],Z,X);return Ce(),$e}function A(H,Z,X){const be=H.children;let we=-1;const $e=[],Ce=Z.enter("tableRow");for(;++we<be.length;)$e[we]=g(be[we],H,Z,X);return Ce(),$e}function N(H,Z,X){let be=handle.inlineCode(H,Z,X);return X.stack.includes("tableCell")&&(be=be.replace(/\|/g,"\\$&")),be}}function gfmTaskListItemFromMarkdown(){return{exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}}}function gfmTaskListItemToMarkdown(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}}}function exitCheck(n){const o=this.stack[this.stack.length-2];o.type,o.checked=n.type==="taskListCheckValueChecked"}function exitParagraphWithTaskListItem(n){const o=this.stack[this.stack.length-2];if(o&&o.type==="listItem"&&typeof o.checked=="boolean"){const e=this.stack[this.stack.length-1];e.type;const t=e.children[0];if(t&&t.type==="text"){const c=o.children;let p=-1,h;for(;++p<c.length;){const y=c[p];if(y.type==="paragraph"){h=y;break}}h===e&&(t.value=t.value.slice(1),t.value.length===0?e.children.shift():e.position&&t.position&&typeof t.position.start.offset=="number"&&(t.position.start.column++,t.position.start.offset++,e.position.start=Object.assign({},t.position.start)))}}this.exit(n)}function listItemWithTaskListItem(n,o,e,t){const c=n.children[0],p=typeof n.checked=="boolean"&&c&&c.type==="paragraph",h="["+(n.checked?"x":" ")+"] ",y=e.createTracker(t);p&&y.move(h);let g=handle.listItem(n,o,e,{...t,...y.current()});return p&&(g=g.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,$)),g;function $(E){return E+h}}function gfmFromMarkdown(){return[gfmAutolinkLiteralFromMarkdown(),gfmFootnoteFromMarkdown(),gfmStrikethroughFromMarkdown(),gfmTableFromMarkdown(),gfmTaskListItemFromMarkdown()]}function gfmToMarkdown(n){return{extensions:[gfmAutolinkLiteralToMarkdown(),gfmFootnoteToMarkdown(n),gfmStrikethroughToMarkdown(),gfmTableToMarkdown(n),gfmTaskListItemToMarkdown()]}}const wwwPrefix={tokenize:tokenizeWwwPrefix,partial:!0},domain={tokenize:tokenizeDomain,partial:!0},path$1={tokenize:tokenizePath,partial:!0},trail={tokenize:tokenizeTrail,partial:!0},emailDomainDotTrail={tokenize:tokenizeEmailDomainDotTrail,partial:!0},wwwAutolink={name:"wwwAutolink",tokenize:tokenizeWwwAutolink,previous:previousWww},protocolAutolink={name:"protocolAutolink",tokenize:tokenizeProtocolAutolink,previous:previousProtocol},emailAutolink={name:"emailAutolink",tokenize:tokenizeEmailAutolink,previous:previousEmail},text={};function gfmAutolinkLiteral(){return{text}}let code$1=48;for(;code$1<123;
vendor: 7,039 bytes, line 79
79)text[code$1]=emailAutolink,code$1++,code$1===58?code$1=65:code$1===91&&(code$1=97);text[43]=emailAutolink;text[45]=emailAutolink;text[46]=emailAutolink;text[95]=emailAutolink;text[72]=[emailAutolink,protocolAutolink];text[104]=[emailAutolink,protocolAutolink];text[87]=[emailAutolink,wwwAutolink];text[119]=[emailAutolink,wwwAutolink];function tokenizeEmailAutolink(n,o,e){const t=this;let c,p;return h;function h(A){return!gfmAtext(A)||!previousEmail.call(t,t.previous)||previousUnbalanced(t.events)?e(A):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),y(A))}function y(A){return gfmAtext(A)?(n.consume(A),y):A===64?(n.consume(A),g):e(A)}function g(A){return A===46?n.check(emailDomainDotTrail,E,$)(A):A===45||A===95||asciiAlphanumeric(A)?(p=!0,n.consume(A),g):E(A)}function $(A){return n.consume(A),c=!0,g}function E(A){return p&&c&&asciiAlpha(t.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),o(A)):e(A)}}function tokenizeWwwAutolink(n,o,e){const t=this;return c;function c(h){return h!==87&&h!==119||!previousWww.call(t,t.previous)||previousUnbalanced(t.events)?e(h):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(wwwPrefix,n.attempt(domain,n.attempt(path$1,p),e),e)(h))}function p(h){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),o(h)}}function tokenizeProtocolAutolink(n,o,e){const t=this;let c="",p=!1;return h;function h(A){return(A===72||A===104)&&previousProtocol.call(t,t.previous)&&!previousUnbalanced(t.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),c+=String.fromCodePoint(A),n.consume(A),y):e(A)}function y(A){if(asciiAlpha(A)&&c.length<5)return c+=String.fromCodePoint(A),n.consume(A),y;if(A===58){const N=c.toLowerCase();if(N==="http"||N==="https")return n.consume(A),g}return e(A)}function g(A){return A===47?(n.consume(A),p?$:(p=!0,g)):e(A)}function $(A){return A===null||asciiControl(A)||markdownLineEndingOrSpace(A)||unicodeWhitespace(A)||unicodePunctuation(A)?e(A):n.attempt(domain,n.attempt(path$1,E),e)(A)}function E(A){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),o(A)}}function tokenizeWwwPrefix(n,o,e){let t=0;return c;function c(h){return(h===87||h===119)&&t<3?(t++,n.consume(h),c):h===46&&t===3?(n.consume(h),p):e(h)}function p(h){return h===null?e(h):o(h)}}function tokenizeDomain(n,o,e){let t,c,p;return h;function h($){return $===46||$===95?n.check(trail,g,y)($):$===null||markdownLineEndingOrSpace($)||unicodeWhitespace($)||$!==45&&unicodePunctuation($)?g($):(p=!0,n.consume($),h)}function y($){return $===95?t=!0:(c=t,t=void 0),n.consume($),h}function g($){return c||t||!p?e($):o($)}}function tokenizePath(n,o){let e=0,t=0;return c;function c(h){return h===40?(e++,n.consume(h),c):h===41&&t<e?p(h):h===33||h===34||h===38||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===60||h===63||h===93||h===95||h===126?n.check(trail,o,p)(h):h===null||markdownLineEndingOrSpace(h)||unicodeWhitespace(h)?o(h):(n.consume(h),c)}function p(h){return h===41&&t++,n.consume(h),c}}function tokenizeTrail(n,o,e){return t;function t(y){return y===33||y===34||y===39||y===41||y===42||y===44||y===46||y===58||y===59||y===63||y===95||y===126?(n.consume(y),t):y===38?(n.consume(y),p):y===93?(n.consume(y),c):y===60||y===null||markdownLineEndingOrSpace(y)||unicodeWhitespace(y)?o(y):e(y)}function c(y){return y===null||y===40||y===91||markdownLineEndingOrSpace(y)||unicodeWhitespace(y)?o(y):t(y)}function p(y){return asciiAlpha(y)?h(y):e(y)}function h(y){return y===59?(n.consume(y),t):asciiAlpha(y)?(n.consume(y),h):e(y)}}function tokenizeEmailDomainDotTrail(n,o,e){return t;function t(p){return n.consume(p),c}function c(p){return asciiAlphanumeric(p)?e(p):o(p)}}function previousWww(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||markdownLineEndingOrSpace(n)}function previousProtocol(n){return!asciiAlpha(n)}function previousEmail(n){return!(n===47||gfmAtext(n))}function gfmAtext(n){return n===43||n===45||n===46||n===95||asciiAlphanumeric(n)}function previousUnbalanced(n){let o=n.length,e=!1;for(;o--;){const t=n[o][1];if((t.type==="labelLink"||t.type==="labelImage")&&!t._balanced){e=!0;break}if(t._gfmAutolinkLiteralWalkedInto){e=!1;break}}return n.length>0&&!e&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}const indent={tokenize:tokenizeIndent,partial:!0};function gfmFootnote(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{91:{name:"gfmFootnoteCall",tokenize:tokenizeGfmFootnoteCall},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(n,o,e){const t=this;let c=t.events.length;const p=t.parser.gfmFootnotes||(t.parser.gfmFootnotes=[]);let h;for(;c--;){const g=t.events[c][1];if(g.type==="labelImage"){h=g;break}if(g.type==="gfmFootnoteCall"||g.type==="labelLink"||g.type==="label"||g.type==="image"||g.type==="link")break}return y;function y(g){if(!h||!h._balanced)return e(g);const $=normalizeIdentifier(t.sliceSerialize({start:h.end,end:t.now()}));return $.codePointAt(0)!==94||!p.includes($.slice(1))?e(g):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),o(g))}}function resolveToPotentialGfmFootnoteCall(n,o){let e=n.length;for(;e--;)if(n[e][1].type==="labelImage"&&n[e][0]==="enter"){n[e][1];break}n[e+1][1].type="data",n[e+3][1].type="gfmFootnoteCallLabelMarker";const t={type:"gfmFootnoteCall",start:Object.assign({},n[e+3][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"gfmFootnoteCallMarker",start:Object.assign({},n[e+3][1].end),end:Object.assign({},n[e+3][1].end)};c.end.column++,c.end.offset++,c.end._bufferIndex++;const p={type:"gfmFootnoteCallString",start:Object.assign({},c.end),end:Object.assign({},n[n.length-1][1].start)},h={type:"chunkString",contentType:"string",start:Object.assign({},p.start),end:Object.assign({},p.end)},y=[n[e+1],n[e+2],["enter",t,o],n[e+3],n[e+4],["enter",c,o],["exit",c,o],["enter",p,o],["enter",h,o],["exit",h,o],["exit",p,o],n[n.length-2],n[n.length-1],["exit",t,o]];return n.splice(e,n.length-e+1,...y),n}function tokenizeGfmFootnoteCall(n,o,e){const t=this,c=t.parser.gfmFootnotes||(t.parser.gfmFootnotes=[]);let p=0,h;return y;function y(A){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(A),n.exit("gfmFootnoteCallLabelMarker"),g}function g(A){return A!==94?e(A):(n.enter("gfmFootnoteCallMarker"),n.consume(A),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",$)}function $(A){if(p>999||A===93&&!h||A===null||A===91||markdownLineEndingOrSpace(A))return e(A);if(A===93){n.exit("chunkString");const N=n.exit("gfmFootnoteCallString");return c.includes(normalizeIdentifier(t.sliceSerialize(N)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(A),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),o):e(A)}
vendor: 4,254 bytes, line 79
79return markdownLineEndingOrSpace(A)||(h=!0),p++,n.consume(A),A===92?E:$}function E(A){return A===91||A===92||A===93?(n.consume(A),p++,$):$(A)}}function tokenizeDefinitionStart(n,o,e){const t=this,c=t.parser.gfmFootnotes||(t.parser.gfmFootnotes=[]);let p,h=0,y;return g;function g(Z){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(Z),n.exit("gfmFootnoteDefinitionLabelMarker"),$}function $(Z){return Z===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(Z),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",E):e(Z)}function E(Z){if(h>999||Z===93&&!y||Z===null||Z===91||markdownLineEndingOrSpace(Z))return e(Z);if(Z===93){n.exit("chunkString");const X=n.exit("gfmFootnoteDefinitionLabelString");return p=normalizeIdentifier(t.sliceSerialize(X)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(Z),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),N}return markdownLineEndingOrSpace(Z)||(y=!0),h++,n.consume(Z),Z===92?A:E}function A(Z){return Z===91||Z===92||Z===93?(n.consume(Z),h++,E):E(Z)}function N(Z){return Z===58?(n.enter("definitionMarker"),n.consume(Z),n.exit("definitionMarker"),c.includes(p)||c.push(p),factorySpace(n,H,"gfmFootnoteDefinitionWhitespace")):e(Z)}function H(Z){return o(Z)}}function tokenizeDefinitionContinuation(n,o,e){return n.check(blankLine,o,n.attempt(indent,o,e))}function gfmFootnoteDefinitionEnd(n){n.exit("gfmFootnoteDefinition")}function tokenizeIndent(n,o,e){const t=this;return factorySpace(n,c,"gfmFootnoteDefinitionIndent",5);function c(p){const h=t.events[t.events.length-1];return h&&h[1].type==="gfmFootnoteDefinitionIndent"&&h[2].sliceSerialize(h[1],!0).length===4?o(p):e(p)}}function gfmStrikethrough(n){let e=(n||{}).singleTilde;const t={name:"strikethrough",tokenize:p,resolveAll:c};return e==null&&(e=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}};function c(h,y){let g=-1;for(;++g<h.length;)if(h[g][0]==="enter"&&h[g][1].type==="strikethroughSequenceTemporary"&&h[g][1]._close){let $=g;for(;$--;)if(h[$][0]==="exit"&&h[$][1].type==="strikethroughSequenceTemporary"&&h[$][1]._open&&h[g][1].end.offset-h[g][1].start.offset===h[$][1].end.offset-h[$][1].start.offset){h[g][1].type="strikethroughSequence",h[$][1].type="strikethroughSequence";const E={type:"strikethrough",start:Object.assign({},h[$][1].start),end:Object.assign({},h[g][1].end)},A={type:"strikethroughText",start:Object.assign({},h[$][1].end),end:Object.assign({},h[g][1].start)},N=[["enter",E,y],["enter",h[$][1],y],["exit",h[$][1],y],["enter",A,y]],H=y.parser.constructs.insideSpan.null;H&&splice(N,N.length,0,resolveAll(H,h.slice($+1,g),y)),splice(N,N.length,0,[["exit",A,y],["enter",h[g][1],y],["exit",h[g][1],y],["exit",E,y]]),splice(h,$-1,g-$+3,N),g=$+N.length-2;break}}for(g=-1;++g<h.length;)h[g][1].type==="strikethroughSequenceTemporary"&&(h[g][1].type="data");return h}function p(h,y,g){const $=this.previous,E=this.events;let A=0;return N;function N(Z){return $===126&&E[E.length-1][1].type!=="characterEscape"?g(Z):(h.enter("strikethroughSequenceTemporary"),H(Z))}function H(Z){const X=classifyCharacter($);if(Z===126)return A>1?g(Z):(h.consume(Z),A++,H);if(A<2&&!e)return g(Z);const be=h.exit("strikethroughSequenceTemporary"),we=classifyCharacter(Z);return be._open=!we||we===2&&!!X,be._close=!X||X===2&&!!we,y(Z)}}}class EditMap{constructor(){this.map=[]}add(o,e,t){addImplementation(this,o,e,t)}consume(o){if(this.map.sort(function(p,h){return p[0]-h[0]}),this.map.length===0)return;let e=this.map.length;const t=[];for(;e>0;)e-=1,t.push(o.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),o.length=this.map[e][0];t.push(o.slice()),o.length=0;let c=t.pop();for(;c;){for(const p of c)o.push(p);c=t.pop()}this.map.length=0}}function addImplementation(n,o,e,t){let c=0;if(!(e===0&&t.length===0)){for(;c<n.map.length;){if(n.map[c][0]===o){n.map[c][1]+=e,n.map[c][2].push(...t);return}c+=1}n.map.push([o,e,t])}}function gfmTableAlign(n,o){let e=!1;const t=[];for(;o<n.length;){const c=n[o];if(e){if(c[0]==="enter")c[1].type==="tableContent"&&t.push(n[o+1][1].type==="tableDelimiterMarker"?"left"
vendor: 4,977 bytes, line 79
79:"none");else if(c[1].type==="tableContent"){if(n[o-1][1].type==="tableDelimiterMarker"){const p=t.length-1;t[p]=t[p]==="left"?"center":"right"}}else if(c[1].type==="tableDelimiterRow")break}else c[0]==="enter"&&c[1].type==="tableDelimiterRow"&&(e=!0);o+=1}return t}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(n,o,e){const t=this;let c=0,p=0,h;return y;function y(De){let Ue=t.events.length-1;for(;Ue>-1;){const Ke=t.events[Ue][1].type;if(Ke==="lineEnding"||Ke==="linePrefix")Ue--;else break}const Je=Ue>-1?t.events[Ue][1].type:null,Xe=Je==="tableHead"||Je==="tableRow"?Fe:g;return Xe===Fe&&t.parser.lazy[t.now().line]?e(De):Xe(De)}function g(De){return n.enter("tableHead"),n.enter("tableRow"),$(De)}function $(De){return De===124||(h=!0,p+=1),E(De)}function E(De){return De===null?e(De):markdownLineEnding(De)?p>1?(p=0,t.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(De),n.exit("lineEnding"),H):e(De):markdownSpace(De)?factorySpace(n,E,"whitespace")(De):(p+=1,h&&(h=!1,c+=1),De===124?(n.enter("tableCellDivider"),n.consume(De),n.exit("tableCellDivider"),h=!0,E):(n.enter("data"),A(De)))}function A(De){return De===null||De===124||markdownLineEndingOrSpace(De)?(n.exit("data"),E(De)):(n.consume(De),De===92?N:A)}function N(De){return De===92||De===124?(n.consume(De),A):A(De)}function H(De){return t.interrupt=!1,t.parser.lazy[t.now().line]?e(De):(n.enter("tableDelimiterRow"),h=!1,markdownSpace(De)?factorySpace(n,Z,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(De):Z(De))}function Z(De){return De===45||De===58?be(De):De===124?(h=!0,n.enter("tableCellDivider"),n.consume(De),n.exit("tableCellDivider"),X):Ne(De)}function X(De){return markdownSpace(De)?factorySpace(n,be,"whitespace")(De):be(De)}function be(De){return De===58?(p+=1,h=!0,n.enter("tableDelimiterMarker"),n.consume(De),n.exit("tableDelimiterMarker"),we):De===45?(p+=1,we(De)):De===null||markdownLineEnding(De)?Ie(De):Ne(De)}function we(De){return De===45?(n.enter("tableDelimiterFiller"),$e(De)):Ne(De)}function $e(De){return De===45?(n.consume(De),$e):De===58?(h=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(De),n.exit("tableDelimiterMarker"),Ce):(n.exit("tableDelimiterFiller"),Ce(De))}function Ce(De){return markdownSpace(De)?factorySpace(n,Ie,"whitespace")(De):Ie(De)}function Ie(De){return De===124?Z(De):De===null||markdownLineEnding(De)?!h||c!==p?Ne(De):(n.exit("tableDelimiterRow"),n.exit("tableHead"),o(De)):Ne(De)}function Ne(De){return e(De)}function Fe(De){return n.enter("tableRow"),Be(De)}function Be(De){return De===124?(n.enter("tableCellDivider"),n.consume(De),n.exit("tableCellDivider"),Be):De===null||markdownLineEnding(De)?(n.exit("tableRow"),o(De)):markdownSpace(De)?factorySpace(n,Be,"whitespace")(De):(n.enter("data"),Ge(De))}function Ge(De){return De===null||De===124||markdownLineEndingOrSpace(De)?(n.exit("data"),Be(De)):(n.consume(De),De===92?je:Ge)}function je(De){return De===92||De===124?(n.consume(De),Ge):Ge(De)}}function resolveTable(n,o){let e=-1,t=!0,c=0,p=[0,0,0,0],h=[0,0,0,0],y=!1,g=0,$,E,A;const N=new EditMap;for(;++e<n.length;){const H=n[e],Z=H[1];H[0]==="enter"?Z.type==="tableHead"?(y=!1,g!==0&&(flushTableEnd(N,o,g,$,E),E=void 0,g=0),$={type:"table",start:Object.assign({},Z.start),end:Object.assign({},Z.end)},N.add(e,0,[["enter",$,o]])):Z.type==="tableRow"||Z.type==="tableDelimiterRow"?(t=!0,A=void 0,p=[0,0,0,0],h=[0,e+1,0,0],y&&(y=!1,E={type:"tableBody",start:Object.assign({},Z.start),end:Object.assign({},Z.end)},N.add(e,0,[["enter",E,o]])),c=Z.type==="tableDelimiterRow"?2:E?3:1):c&&(Z.type==="data"||Z.type==="tableDelimiterMarker"||Z.type==="tableDelimiterFiller")?(t=!1,h[2]===0&&(p[1]!==0&&(h[0]=h[1],A=flushCell(N,o,p,c,void 0,A),p=[0,0,0,0]),h[2]=e)):Z.type==="tableCellDivider"&&(t?t=!1:(p[1]!==0&&(h[0]=h[1],A=flushCell(N,o,p,c,void 0,A)),p=h,h=[p[1],e,0,0])):Z.type==="tableHead"?(y=!0,g=e):Z.type==="tableRow"||Z.type==="tableDelimiterRow"?(g=e,p[1]!==0?(h[0]=h[1],A=flushCell(N,o,p,c,e,A)):h[1]!==0&&(A=flushCell(N,o,h,c,e,A)),c=0):c&&(Z.type==="data"||Z.type==="tableDelimiterMarker"||Z.type==="tableDelimiterFiller")&&(h[3]=e)}for(g!==0&&flushTableEnd(N,o,g,$,E),N.consume(o.events),e=-1;++e<o.events.length;){const H=o.events[e];H[0]==="enter"&&H[1].type==="table"&&(H[1]._align=gfmTableAlign(o.events,e))}return n}function flushCell(n,o,e,t,c,p){const h=t===1?"tableHeader":t===2?"tableDelimiter":"tableData",y="tableContent";e[0]!==0&&(p.end=Object.assign({},getPoint(o.events,e[0])),n.add(e[0],0,[["exit",p,o]]));const g=getPoint(o.events,e[1]);if(p={type:h,start:Object.assign({},g),end:Object.assign({},g)},n.add(e[1],0,[["enter",p,o]]),e[2]!==0){const $=getPoint(o.events,e[2]),E=getPoint(o.events,e[3]),A={type:y,start:Object.assign({},$),end:Object.assign({},E)};if(n.add(e[2],0,[["enter",A,o]]),t!==2){const N=o.events[e[2]],H=o.events[e[3]];if(N[1].end=Object.assign({}
vendor: 8,623 bytes, lines 79-83
79,H[1].end),N[1].type="chunkText",N[1].contentType="text",e[3]>e[2]+1){const Z=e[2]+1,X=e[3]-e[2]-1;n.add(Z,X,[])}}n.add(e[3]+1,0,[["exit",A,o]])}return c!==void 0&&(p.end=Object.assign({},getPoint(o.events,c)),n.add(c,0,[["exit",p,o]]),p=void 0),p}function flushTableEnd(n,o,e,t,c){const p=[],h=getPoint(o.events,e);c&&(c.end=Object.assign({},h),p.push(["exit",c,o])),t.end=Object.assign({},h),p.push(["exit",t,o]),n.add(e+1,0,p)}function getPoint(n,o){const e=n[o],t=e[0]==="enter"?"start":"end";return e[1][t]}const tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:tasklistCheck}}}function tokenizeTasklistCheck(n,o,e){const t=this;return c;function c(g){return t.previous!==null||!t._gfmTasklistFirstContentOfListItem?e(g):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(g),n.exit("taskListCheckMarker"),p)}function p(g){return markdownLineEndingOrSpace(g)?(n.enter("taskListCheckValueUnchecked"),n.consume(g),n.exit("taskListCheckValueUnchecked"),h):g===88||g===120?(n.enter("taskListCheckValueChecked"),n.consume(g),n.exit("taskListCheckValueChecked"),h):e(g)}function h(g){return g===93?(n.enter("taskListCheckMarker"),n.consume(g),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),y):e(g)}function y(g){return markdownLineEnding(g)?o(g):markdownSpace(g)?n.check({tokenize:spaceThenNonSpace},o,e)(g):e(g)}}function spaceThenNonSpace(n,o,e){return factorySpace(n,t,"whitespace");function t(c){return c===null?e(c):o(c)}}function gfm(n){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(n),gfmTable(),gfmTaskListItem()])}const emptyOptions$1={};function remarkGfm(n){const o=this,e=n||emptyOptions$1,t=o.data(),c=t.micromarkExtensions||(t.micromarkExtensions=[]),p=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),h=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);c.push(gfm(e)),p.push(gfmFromMarkdown()),h.push(gfmToMarkdown(e))}function mathFromMarkdown(){return{enter:{mathFlow:n,mathFlowFenceMeta:o,mathText:p},exit:{mathFlow:c,mathFlowFence:t,mathFlowFenceMeta:e,mathFlowValue:y,mathText:h,mathTextData:y}};function n(g){const $={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[$]}},g)}function o(){this.buffer()}function e(){const g=this.resume(),$=this.stack[this.stack.length-1];$.type,$.meta=g}function t(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function c(g){const $=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),E=this.stack[this.stack.length-1];E.type,this.exit(g),E.value=$;const A=E.data.hChildren[0];A.type,A.tagName,A.children.push({type:"text",value:$}),this.data.mathFlowInside=void 0}function p(g){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},g),this.buffer()}function h(g){const $=this.resume(),E=this.stack[this.stack.length-1];E.type,this.exit(g),E.value=$,E.data.hChildren.push({type:"text",value:$})}function y(g){this.config.enter.data.call(this,g),this.config.exit.data.call(this,g)}}function mathToMarkdown(n){let o=(n||{}).singleDollarTextMath;return o==null&&(o=!0),t.peek=c,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 80`,inConstruct:"mathFlowMeta"},{character:"$",after:o?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:e,inlineMath:t}};function e(p,h,y,g){const $=p.value||"",E=y.createTracker(g),A="$".repeat(Math.max(longestStreak($,"$")+1,2)),N=y.enter("mathFlow");let H=E.move(A);if(p.meta){const Z=y.enter("mathFlowMeta");H+=E.move(y.safe(p.meta,{after:` 81`,before:H,encode:["$"],...E.current()})),Z()}return H+=E.move(` 82`),$&&(H+=E.move($+` 83`)),H+=E.move(A),N(),H}function t(p,h,y){let g=p.value||"",$=1;for(o||$++;new RegExp("(^|[^$])"+"\\$".repeat($)+"([^$]|$)").test(g);)$++;const E="$".repeat($);/[^ \r\n]/.test(g)&&(/^[ \r\n]/.test(g)&&/[ \r\n]$/.test(g)||/^\$|\$$/.test(g))&&(g=" "+g+" ");let A=-1;for(;++A<y.unsafe.length;){const N=y.unsafe[A];if(!N.atBreak)continue;const H=y.compilePattern(N);let Z;for(;Z=H.exec(g);){let X=Z.index;g.codePointAt(X)===10&&g.codePointAt(X-1)===13&&X--,g=g.slice(0,X)+" "+g.slice(Z.index+1)}}return E+g+E}function c(){return"$"}}const mathFlow={tokenize:tokenizeMathFenced,concrete:!0,name:"mathFlow"},nonLazyContinuation={tokenize:tokenizeNonLazyContinuation,partial:!0};function tokenizeMathFenced(n,o,e){const t=this,c=t.events[t.events.length-1],p=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0;let h=0;return y;function y($e){return n.enter("mathFlow"),n.enter("mathFlowFence"),n.enter("mathFlowFenceSequence"),g($e)}function g($e){return $e===36?(n.consume($e),h++,g):h<2?e($e):(n.exit("mathFlowFenceSequence"),factorySpace(n,$,"whitespace")($e))}function $($e){return $e===null||markdownLineEnding($e)?A($e):(n.enter("mathFlowFenceMeta"),n.enter("chunkString",{contentType:"string"}),E($e))}function E($e){return $e===null||markdownLineEnding($e)?(n.exit("chunkString"),n.exit("mathFlowFenceMeta"),A($e)):$e===36?e($e):(n.consume($e),E)}function A($e){return n.exit("mathFlowFence"),t.interrupt?o($e):n.attempt(nonLazyContinuation,N,be)($e)}function N($e){return n.attempt({tokenize:we,partial:!0},be,H)($e)}function H($e){return(p?factorySpace(n,Z,"linePrefix",p+1):Z)($e)}function Z($e){return $e===null?be($e):markdownLineEnding($e)?n.attempt(nonLazyContinuation,N,be)($e):(n.enter("mathFlowValue"),X($e))}function X($e){return $e===null||markdownLineEnding($e)?(n.exit("mathFlowValue"),Z($e)):(n.consume($e),X)}function be($e){return n.exit("mathFlow"),o($e)}function we($e,Ce,Ie){let Ne=0;return factorySpace($e,Fe,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Fe(je){return $e.enter("mathFlowFence"),$e.enter("mathFlowFenceSequence"),Be(je)}function Be(je){return je===36?(Ne++,$e.consume(je),Be):Ne<h?Ie(je):($e.exit("mathFlowFenceSequence"),factorySpace($e,Ge,"whitespace")(je))}function Ge(je){return je===null||markdownLineEnding(je)?($e.exit("mathFlowFence"),Ce(je)):Ie(je)}}}function tokenizeNonLazyContinuation(n,o,e){const t=this;return c;function c(h){return h===null?o(h):(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p)}function p(h){return t.parser.lazy[t.now().line]?e(h):o(h)}}function mathText(n){let e=(n||{}).singleDollarTextMath;return e==null&&(e=!0),{tokenize:t,resolve:resolveMathText,previous,name:"mathText"};function t(c,p,h){let y=0,g,$;return E;function E(X){return c.enter("mathText"),c.enter("mathTextSequence"),A(X)}function A(X){return X===36?(c.consume(X),y++,A):y<2&&!e?h(X):(c.exit("mathTextSequence"),N(X))}function N(X){return X===null?h(X):X===36?($=c.enter("mathTextSequence"),g=0,Z(X)):X===32?(c.enter("space"),c.consume(X),c.exit("space"),N):markdownLineEnding(X)?(c.enter("lineEnding"),c.consume(X),c.exit("lineEnding"),N):(c.enter("mathTextData"),H(X))}function H(X){return X===null||X===32||X===36||markdownLineEnding(X)?(c.exit("mathTextData"),N(X)):(c.consume(X),H)}function Z(X){return X===36?(c.consume(X),g++,Z):g===y?(c.exit("mathTextSequence"),c.exit("mathText"),p(X)):($.type="mathTextData",H(X))}}}function resolveMathText(n){let o=n.length-4,e=3,t,c;if((n[e][1].type==="lineEnding"||n[e][1].type==="space")&&(n[o][1].type==="lineEnding"||n[o][1].type==="space")){for(t=e;++t<o;)if(n[t][1].type==="mathTextData"){n[o][1].type="mathTextPadding",n[e][1].type="mathTextPadding",e+=2,o-=2;break}}for(t=e-1,o++;++t<=o;)c===void 0?t!==o&&n[t][1].type!=="lineEnding"&&(c=t):(t===o||n[t][1].type==="lineEnding")&&(n[c][1].type="mathTextData",t!==c+2&&(n[c][1].end=n[t-1][1].end,n.splice(c+2,t-c-2),o-=t-c-2,t=c+2),c=void 0);return n}function previous(n){return n!==36||this.events[this.events.length-1][1].type==="characterEscape"}function math(n){return{flow:{36:mathFlow},text:{36:mathText(n)}}}const emptyOptions={};function remarkMath(n){const o=this,e=n||emptyOptions,t=o.data(),c=t.micromarkExtensions||(t.micromarkExtensions=[]),p=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),h=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);c.push(math(e)),p.push(mathFromMarkdown()),h.push(mathToMarkdown(e))}const streamlitLogo="data:image/svg+xml,%3csvg%20width='301'%20height='165'%20viewBox='0%200%20301%20165'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M150.731%20101.547L98.1387%2073.7471L6.84674%2025.4969C6.7634%2025.4136%206.59674%2025.4136%206.51341%2025.4136C3.18007%2023.8303%20-0.236608%2027.
831636%201.0134%2030.497L47.5302%20149.139L47.5385%20149.164C47.5885%20149.281%2047.6302%20149.397%2047.6802%20149.514C49.5885%20153.939%2053.7552%20156.672%2058.2886%20157.747C58.6719%20157.831%2058.9461%20157.906%2059.4064%20157.998C59.8645%20158.1%2060.5052%20158.239%2061.0552%20158.281C61.1469%20158.289%2061.2302%20158.289%2061.3219%20158.297H61.3886C61.4552%20158.306%2061.5219%20158.306%2061.5886%20158.314H61.6802C61.7386%20158.322%2061.8052%20158.322%2061.8636%20158.322H61.9719C62.0386%20158.331%2062.1052%20158.331%2062.1719%20158.331V158.331C121.084%20164.754%20180.519%20164.754%20239.431%20158.331V158.331C240.139%20158.331%20240.831%20158.297%20241.497%20158.231C241.714%20158.206%20241.922%20158.181%20242.131%20158.156C242.156%20158.147%20242.189%20158.147%20242.214%20158.139C242.356%20158.122%20242.497%20158.097%20242.639%20158.072C242.847%20158.047%20243.056%20158.006%20243.264%20157.964C243.681%20157.872%20243.87%20157.806%20244.436%20157.611C245.001%20157.417%20245.94%20157.077%20246.527%20156.794C247.115%20156.511%20247.522%20156.239%20248.014%20155.931C248.622%20155.547%20249.201%20155.155%20249.788%20154.715C250.041%20154.521%20250.214%20154.397%20250.397%20154.222L250.297%20154.164L150.731%20101.547Z'%20fill='%23FF4B4B'/%3e%3cpath%20d='M294.766%2025.4981H294.683L203.357%2073.7483L254.124%20149.357L300.524%2030.4981V30.3315C301.691%2026.8314%20298.108%2023.6648%20294.766%2025.4981'%20fill='%237D353B'/%3e%3cpath%20d='M155.598%202.55572C153.264%20-0.852624%20148.181%20-0.852624%20145.931%202.55572L98.1389%2073.7477L150.731%20101.548L250.398%20154.222C251.024%20153.609%20251.526%20153.012%20252.056%20152.381C252.806%20151.456%20253.506%20150.465%20254.123%20149.356L203.356%2073.7477L155.598%202.55572Z'%20fill='%23BD4043'/%3e%3c/svg%3e",IsSidebarContext=reactExports.createContext(!1);IsSidebarContext.displayName="IsSidebarContext";const codeLink={"a > &":{color:"inherit"}},StyledInlineCode=styled("code",{target:"e1gryr920"})(({theme:n})=>({padding:"0.2em 0.4em",overflowWrap:"break-word",whiteSpace:"pre-wrap",margin:0,borderRadius:n.radii.md,background:n.colors.codeBackgroundColor,color:n.colors.codeTextColor,fontFamily:n.genericFonts.codeFont,fontSize:n.fontSizes.inlineCodeFontSize,fontWeight:n.fontWeights.code,...codeLink})),codeBlockStyle=(n,o)=>({background:"transparent",border:0,color:"inherit",display:"inline",fontFamily:n.genericFonts.codeFont,fontSize:n.fontSizes.codeFontSize,fontWeight:n.fontWeights.code,lineHeight:"inherit",margin:0,overflowX:"auto",padding:0,whiteSpace:o?"pre-wrap":"pre",overflowWrap:o?"break-word":"normal",...codeLink}),StyledCode=styled("code",{target:"e1gryr921"})(({theme:n,wrapLines:o})=>({...codeBlockStyle(n,o)})),StyledPre=styled("pre",{target:"e1gryr922"})(({theme:n,wrapLines:o})=>({height:"100%",background:n.colors.codeBackgroundColor,borderRadius:n.radii.default,color:n.colors.bodyText,fontSize:n.fontSizes.twoSm,fontFamily:n.genericFonts.codeFont,display:"block",margin:0,msOverflowStyle:"scrollbar",overflow:"auto",padding:n.spacing.lg,paddingRight:n.iconSizes.threeXL,code:{...codeBlockStyle(n,o)},".comment.linenumber":{color:n.colors.fadedText40,fontSize:n.fontSizes.twoSm,alignSelf:"center",minWidth:`${n.spacing.threeXL} !important`},".token.comment, .token.prolog, .token.doctype, .token.cdata":{color:n.colors.gray70},".token.punctuation":{color:n.colors.gray70},".namespace":{opacity:.7},".token.attr-name, .token.property, .token.variable":{color:n.colors.lightBlue80},".token.boolean, .token.constant, .token.symbol":{color:n.colors.green70},".token.number, .token.regex":{color:n.colors.blueGreen80},".token.string, .token.char, .token.attr-value":{color:n.colors.green80},".token.operator, .token.entity":{color:n.colors.orange90},".token.url":{color:n.colors.purple80},".token.decorator, .token.atrule":{color:n.colors.orange90},".token.keyword, .token.tag":{color:n.colors.blue70},".token.function, .token.class-name, .token.selector":{color:n.colors.blue70,fontWeight:n.fontWeights.codeExtraBold},".token.important":{color:n.colors.red70,fontWeight:n.fontWeights.codeExtraBold},".token.comment":{color:n.colors.gray70,fontStyle:"italic"},".token.italic":{fontStyle:"italic"},".token.entity":{cursor:"help"},".token.deleted.line, .token.deleted.prefix":{color:n.colors.red70},".token.inserted.line, .token.inserted.prefix":{color:n.colors.green70},".token.unchanged.line":{color:n.colors.gray70}})),StyledCopyButtonContainer=styled("div",{target:"e1gryr923"})(({theme:n})=>({opacity:0,padding:`${n.spacing.sm} ${n.spacing.sm} 0 0`,top:0,right:0,position:"absolute",width:"100%",height:"100%",backgroundColor:n.colors.transparent,zIndex:n.zIndices.sidebar+1,display:"flex",justifyContent:"flex-end",alignItems:"flex-start",transition:"opacity 300ms 150ms",pointerEvents:"none"})),StyledCodeBlock=styled("div",{target:"e1gryr924"})(({theme:n})=>({height:"100%",position:"relative",marginLeft:n.spacing.none,marginRight:n.spacing.none,marginTop:n.spacing.none,marginBottom:void 0,"&:hover":{[`${StyledCopyButtonContainer}`]:{opacity:1}}})),StyledCopyButton=styled("button",{target:"e1gryr925"})(({theme:n})=>({pointerEvents:"auto",height:n.iconSizes.threeXL,width:n.iconSizes.threeXL,padding:n.spacing.none,border:"none",backgroundColor:n.colors.transparent,color:n.colors.fadedText60,transform:"scale(0)",top:0,right:0,[`${StyledCodeBlock}:hover &`]:{opacity:1,transform:"scale(1)",outline:"none",transition:"none"},"&:hover, &:focus, &:active, &:focus-visible":{opacity:1,transform:"scale(1)",outline:"none",transition:"none",borderRadius:n.radii.md},"&:hover":{color:n.colors.bodyText,backgroundColor:n.colors.darkenedBgMix15},"&:active":{color:n.colors.bodyText,backgroundColor:n.colors.darkenedBgMix25},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${n.colors.darkenedBgMix25}`}})),pulseAnimation=keyframes("0%,100%{opacity:0.5;}50%{opacity:1;}
83"),ANIMATION_STYLES={animationDuration:"750ms",animationName:pulseAnimation,animationTimingFunction:"ease-in",animationDirection:"normal",animationIterationCount:"infinite"},StyledSkeleton=styled("div",{target:"eu9v5nf0"})(({theme:n})=>({display:"flex",flexDirection:"column",gap:n.spacing.lg})),TitleSkeleton=styled("div",{target:"eu9v5nf1"})(({theme:n})=>({height:n.fontSizes.fourXL,width:`calc(${n.sizes.contentMaxWidth} * 0.37)`,maxWidth:"75%",background:n.colors.darkenedBgMix15,borderRadius:n.radii.default,...ANIMATION_STYLES})),ParagraphSkeleton=styled("div",{target:"eu9v5nf2"})(({theme:n})=>({display:"flex",flexDirection:"column",gap:n.spacing.sm})),TextLineSkeleton=styled("div",{target:"eu9v5nf3"})(({theme:n,width:o})=>({height:n.fontSizes.md,width:o,background:n.colors.darkenedBgMix15,borderRadius:n.radii.default,...ANIMATION_STYLES})),SquareSkeleton=styled("div",{target:"eu9v5nf4"})(({theme:n,height:o,width:e})=>({height:o??n.fontSizes.fourXL,width:e??"100%",background:n.colors.darkenedBgMix15,borderRadius:n.radii.default,...ANIMATION_STYLES})),SHOW_DELAY_MS=500,RawAppSkeleton=()=>{const[n,o]=reactExports.useState(!1);return reactExports.useEffect(()=>{const e=setTimeout(()=>{o(!0)},SHOW_DELAY_MS);return()=>{clearTimeout(e)}},[]),n?jsxs(StyledSkeleton,{className:"stAppSkeleton","data-testid":"stAppSkeleton",children:[jsx$1(TitleSkeleton,{}),jsxs(ParagraphSkeleton,{children:[jsx$1(TextLineSkeleton,{width:"98%"}),jsx$1(TextLineSkeleton,{width:"100%"}),jsx$1(TextLineSkeleton,{width:"96%"}),jsx$1(TextLineSkeleton,{width:"65%"})]}),jsx$1(SquareSkeleton,{width:"75%",height:"9rem"})]}):jsx$1(Fragment,{})},AppSkeleton=reactExports.memo(RawAppSkeleton),RawSkeleton=({element:n})=>n.style==Skeleton$1.SkeletonStyle.APP?jsx$1(AppSkeleton,{}):jsx$1(SquareSkeleton,{className:"stSkeleton","data-testid":"stSkeleton",height:n?.height?n.height+"px":void 0}),Skeleton=reactExports.memo(RawSkeleton);var KIND$1=Object.freeze({info:"info",positive:"positive",warning:"warning",negative:"negative"}),TYPE$1=Object.freeze({inline:"inline",toast:"toast"}),PLACEMENT$1=Object.freeze({topLeft:"topLeft",top:"top",topRight:"topRight",bottomRight:"bottomRight",bottom:"bottom",bottomLeft:"bottomLeft"});function getSvgStyles$1(n){var o=n.$theme,e=n.$size,t=n.$color,c=o.sizing.scale600;e&&(o.sizing[e]?c=o.sizing[e]:typeof e=="number"?c="".concat(e,"px"):c=e);var p="currentColor";return t&&(o.colors[t]?p=o.colors[t]:p=t),{display:"inline-block",fill:p,color:p,height:c,width:c}}var Svg=styled$1("svg",getSvgStyles$1);Svg.displayName="Svg";Svg.displayName="Svg";function _objectDestructuringEmpty(n){if(n==null)throw new TypeError("Cannot destructure undefined")}function ownKeys$o(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$m(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$o(Object(e),!0).forEach(function(t){_defineProperty$r(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$o(Object(e)).forEac
83h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$r(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function getBackgroundColor$1(n,o,e){var t,c=o===TYPE$1.inline;return(t={},_defineProperty$r(t,KIND$1.info,c?e.colors.notificationInfoBackground:e.colors.toastInfoBackground),_defineProperty$r(t,KIND$1.positive,c?e.colors.notificationPositiveBackground:e.colors.toastPositiveBackground),_defineProperty$r(t,KIND$1.warning,c?e.colors.notificationWarningBackground:e.colors.toastWarningBackground),_defineProperty$r(t,KIND$1.negative,c?e.colors.notificationNegativeBackground:e.colors.toastNegativeBackground),t)[n]}function getFontColor$1(n,o,e){var t,c=o===TYPE$1.inline;if(c){var p;return(p={},_defineProperty$r(p,KIND$1.info,e.colors.notificationInfoText),_defineProperty$r(p,KIND$1.positive,e.colors.notificationPositiveText),_defineProperty$r(p,KIND$1.warning,e.colors.notificationWarningText),_defineProperty$r(p,KIND$1.negative,e.colors.notificationNegativeText),p)[n]}return(t={},_defineProperty$r(t,KIND$1.info,e.colors.toastInfoText),_defineProperty$r(t,KIND$1.positive,e.colors.toastPositiveText),_defineProperty$r(t,KIND$1.warning,e.colors.toastWarningText),_defineProperty$r(t,KIND$1.negative,e.colors.toastNegativeText),t)[n]}function getPlacement(n){switch(n){case PLACEMENT$1.topLeft:return{top:0,alignItems:"flex-start",justifyContent:"flex-start",flexDirection:"column"};case PLACEMENT$1.top:return{top:0,alignItems:"center",justifyContent:"flex-start",flexDirection:"column"};case PLACEMENT$1.topRight:return{top:0,alignItems:"flex-end",justifyContent:"flex-start",flexDirection:"column"};case PLACEMENT$1.bottomRight:return{bottom:0,alignItems:"flex-end",justifyContent:"flex-end",flexDirection:"column-reverse"};case PLACEMENT$1.bottom:return{bottom:0,alignItems:"center",justifyContent:"flex-end",flexDirection:"column-reverse"};case PLACEMENT$1.bottomLeft:return{bottom:0,alignItems:"flex-start",justifyContent:"flex-end",flexDirection:"column-reverse"}}}var Root$2=styled$1("div",function(n){var o=n.$placement,e=n.$theme;return _objectSpread$m({pointerEvents:"none",position:"fixed",right:0,left:0,display:"flex",marginTop:e.sizing.scale300,marginBottom:e.sizing.scale300,marginLeft:e.sizing.scale600,marginRight:e.sizing.scale600},getPlacement(o))});Root$2.displayName="Root";Root$2.displayName="Root";var InnerContainer=styled$1("div",function(n){return _objectDestructuringEmpty(n),{}});InnerContainer.displayName="InnerContainer";InnerContainer.displayName="InnerContainer";var Body$3=styled$1("div",function(n){var o=n.$isVisible,e=n.$kind,t=n.$type,c=n.$theme,p=t===TYPE$1.inline;return _objectSpread$m(_objectSpread$m({},c.typography.font300),{},{pointerEvents:"auto",color:getFontColor$1(e,t,c),height:"auto",width:"288px",paddingTop:c.sizing.scale600,paddingRight:c.sizing.scale600,paddingBottom:c.sizing.scale600,paddingLeft:c.sizing.scale600,marginTop:c.sizing.scale300,marginBottom:c.sizing.scale300,backgroundColor:getBackgroundColor$1(e,t,c)||c.colors.accent,borderTopLeftRadius:c.borders.radius400,borderTopRightRadius:c.borders.radius400,borderBottomRightRadius:c.borders.radius400,borderBottomLeftRadius:c.borders.radius400,boxShadow:p?"none":c.lighting.shadow600,opacity:o?1:0,transitionProperty:"all",transitionDuration:c.animation.timing200,transitionTimingFunction:c.animation.easeInOutCurve,display:"flex",justifyContent:"space-between"})});Body$3.displayName="Body";Body$3.displayName="Body";var CloseIconSvg=styled$1("svg",function(n){var o=n.$theme,e=n.$size,t=n.$color,c=n.$isFocusVisible;return _objectSpread$m(_objectSpread$m({},getSvgStyles$1({$theme:o,$size:e,$color:t})),{},{cursor:"pointer",width:e||"16px",flexShrink:0,outline:c?"3px solid ".concat(o.colors.accent):"none"})});CloseIconSvg.displayName="CloseIconSvg";CloseIconSvg.displayName="CloseIconSvg";function omitDollarPrefixedKeys(n){var o={};for(var e in n)e[0]!=="$"&&(o[e]=n[e]);return o}var _excluded$o=["children","title","size","color","overrides"];function _extends$q(){return _extends$q=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$q.apply(this,arguments)}function ownKeys$n(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$l(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};
83o%2?ownKeys$n(Object(e),!0).forEach(function(t){_defineProperty$q(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$n(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$q(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function _slicedToArray$j(n,o){return _arrayWithHoles$j(n)||_iterableToArrayLimit$j(n,o)||_unsupportedIterableToArray$j(n,o)||_nonIterableRest$j()}function _nonIterableRest$j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 84In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$j(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$j(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$j(n,o)}}function _arrayLikeToArray$j(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$j(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$j(n){if(Array.isArray(n))return n}function _objectWithoutProperties$m(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$l(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$l(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}var Icon=function n(o,e){var t=o.children,c=o.title,p=o.size,h=o.color,y=o.overrides,g=y===void 0?{}:y,$=_objectWithoutProperties$m(o,_excluded$o),E=getOverrides(g.Svg,Svg),A=_slicedToArray$j(E,2),N=A[0],H=A[1],Z=N.__STYLETRON__?_objectSpread$l(_objectSpread$l({title:c,$color:h,$size:p},$),H):_objectSpread$l(_objectSpread$l({title:c,color:h,size:p},omitDollarPrefixedKeys($)),omitDollarPrefixedKeys(H));return reactExports.createElement(N,_extends$q({"data-baseweb":"icon",ref:e},Z),c?reactExports.createElement("title",null,c):null,t)};const Icon$1=reactExports.forwardRef(Icon);var _excluded$n=["title","size","color","overrides"];function _extends$p(){return _extends$p=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$p.apply(this,arguments)}function _objectWithoutProperties$l(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$k(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$k(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _slicedToArray$i(n,o){return _arrayWithHoles$i(n)||_iterableToArrayLimit$i(n,o)||_unsupportedIterableToArray$i(n,o)||_nonIterableRest$i()}function _nonIterableRest$i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 85In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$i(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$i(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$i(n,o)}}function _arrayLikeToArray$i(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$i(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$i(n){if(Array.isArray(n))return n}function Delete(n,o){var e=useStyletron(),t=_slicedToArray$i(e,2),c=t[1],p=n.title,h=p===void 0?"Delete":p,y=n.size,g=n.color,$=n.overrides,E=$===void 0?{}:$,A=_objectWithoutProperties$l(n,_excluded$n),N=mergeOverride({component:c.icons&&c.icons.Delete?c.icons.Delete:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$p({viewBox:"0 0 24 24",ref:o,title:h,size:y,color:g,overrides:{Svg:N}},A),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.29289 7.29289C7.68342 6.90237 8.31658 6.90237 8.70711 7.29289L12 10.5858L15.2929 7.29289C15.6834 6.90237 16.3166 6.90237 16.7071 7.29289C17.0976 7.68342 17.0976 8.31658 16.7071 8.70711L13.4142 12L16.7071 15.2929C17.0976 15.6834 17.0976 16.3166 16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071L12 13.4142L8.70711 16.7071C8.31658 17.0976 7.68342 17.0976 7.29289 16.7071C6.90237 16.3166 6.90237 15.6834 7.29289 15.2929L10.5858 12L7.29289 8.70711C6.90237 8.31658 6.90237 7.68342 7.29289 7.29289Z"}))}const DeleteIcon=reactExports.forwardRef(Delete);function _typeof$e(n){"@babel/helpers - typeof";return _typeof$e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$e(n)}function _extends$o(){return _extends$o=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$o.apply(this,arguments)}function _slicedToArray$h(n,o){return _arrayWithHoles$h(n)||_iterableToArrayLimit$h(n,o)||_unsupportedIterableToArray$h(n,o)||_nonIterableRest$h()}function _nonIterableRest$h(){throw new TypeError(`Invalid attempt to de
85structure non-iterable instance. 86In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$h(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$h(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$h(n,o)}}function _arrayLikeToArray$h(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$h(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$h(n){if(Array.isArray(n))return n}function _classCallCheck$c(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$c(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$c(n,o,e){return o&&_defineProperties$c(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$c(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$c(n,o)}function _setPrototypeOf$c(n,o){return _setPrototypeOf$c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$c(n,o)}function _createSuper$c(n){var o=_isNativeReflectConstruct$c();return function(){var t=_getPrototypeOf$c(n),c;if(o){var p=_getPrototypeOf$c(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$c(this,c)}}function _possibleConstructorReturn$c(n,o){if(o&&(_typeof$e(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$d(n)}function _assertThisInitialized$d(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$c(n){return _getPrototypeOf$c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$c(n)}function _defineProperty$p(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var Toast$1=function(n){_inherits$c(e,n);var o=_createSuper$c(e);function e(t){var c;return _classCallCheck$c(this,e),c=o.call(this,t),_defineProperty$p(_assertThisInitialized$d(c),"autoHideTimeout",void 0),_defineProperty$p(_assertThisInitialized$d(c),"animateInTimer",void 0),_defineProperty$p(_assertThisInitialized$d(c),"animateOutCompleteTimer",void 0),_defineProperty$p(_assertThisInitialized$d(c),"closeRef",void 0),_defineProperty$p(_assertThisInitialized$d(c),"previouslyFocusedElement",void 0),_defineProperty$p(_assertThisInitialized$d(c),"state",{isVisible:!1,isRendered:!0,isFocusVisible:!1}),_defineProperty$p(_assertThisInitialized$d(c),"handleFocus",function(p){isFocusVisible(p)&&c.setState({isFocusVisible:!0})}),_defineProperty$p(_assertThisInitialized$d(c),"handleBlur",function(p){c.state.isFocusVisible!==!1&&c.setState({isFocusVisible:!1})}),_defineProperty$p(_assertThisInitialized$d(c),"animateIn",function(){c.animateInTimer=setTimeout(function(){c.setState({isVisible:!0})},0)}),_defineProperty$p(_assertThisInitialized$d(c),"animateOut",function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};c.setState({isVisible:!1}),c.animateOutCompleteTimer=setTimeout(function(){c.setState({isRendered:!1}),p()},600)}),_defineProperty$p(_assertThisInitialized$d(c),"dismiss",function(){c.animateOut(c.props.onClose),c.props.autoFocus&&c.previouslyFocusedElement&&c.previouslyFocusedElement.focus()}),_defineProperty$p(_assertThisInitialized$d(c),"onFocus",function(p){c.state.isVisible&&(clearTimeout(c.autoHideTimeout),clearTimeout(c.animateOutCompleteTimer),typeof c.props.onFocus=="function"&&c.props.onFocus(p))}),_defineProperty$p(_assertThisInitialized$d(c),"onMouseEnter",function(p){c.state.isVisible&&(clearTimeout(c.autoHideTimeout),clearTimeout(c.animateOutCompleteTimer),typeof c.props.onMouseEnter=="function"&&c.props.onMouseEnter(p))}),_defineProperty$p(_assertThisInitialized$d(c),"onBlur",function(p){c.startTimeout(),typeof c.props.onBlur=="function"&&c.props.onBlur(p)}),_defineProperty$p(_assertThisInitialized$d(c),"onMouseLeave",function(p){c.startTimeout(),typeof c.props.onMouseLeave=="function"&&c.props.onMouseLeave(p)}),c.closeRef=reactExports.createRef(),c.previouslyFocusedElement=null,c}
86return _createClass$c(e,[{key:"componentDidMount",value:function(){this.animateIn(),this.startTimeout(),typeof document<"u"&&this.props.autoFocus&&this.closeRef&&this.closeRef.current&&this.closeRef.current.focus&&typeof this.closeRef.current.focus=="function"&&(this.previouslyFocusedElement=document.activeElement,this.closeRef.current.focus(),this.setState({isFocusVisible:!0}))}},{key:"componentDidUpdate",value:function(c){(this.props.autoHideDuration!==c.autoHideDuration||this.props.__updated!==c.__updated)&&this.startTimeout()}},{key:"componentWillUnmount",value:function(){this.clearTimeout()}},{key:"startTimeout",value:function(){this.props.autoHideDuration&&(this.autoHideTimeout&&clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(this.dismiss,this.props.autoHideDuration))}},{key:"clearTimeout",value:function(t){function c(){return t.apply(this,arguments)}return c.toString=function(){return t.toString()},c}(function(){[this.autoHideTimeout,this.animateInTimer,this.animateOutCompleteTimer].forEach(function(t){t&&clearTimeout(t)})})},{key:"getSharedProps",value:function(){var c=this.props,p=c.kind,h=c.notificationType,y=c.closeable,g=this.state,$=g.isRendered,E=g.isVisible;return{$kind:p,$type:h,$closeable:y,$isRendered:$,$isVisible:E}}},{key:"render",value:function(){var c=this,p=this.props,h=p.children,y=p.closeable,g=this.state.isRendered,$=this.props.overrides,E=$.Body,A=$.CloseIcon,N=$.InnerContainer,H=getOverrides(E,Body$3),Z=_slicedToArray$h(H,2),X=Z[0],be=Z[1],we=getOverrides(N,InnerContainer),$e=_slicedToArray$h(we,2),Ce=$e[0],Ie=$e[1],Ne=getOverrides(A,CloseIconSvg),Fe=_slicedToArray$h(Ne,2),Be=Fe[0],Ge=Fe[1],je=mergeOverrides({Svg:{component:Be}},{Svg:A}),De=this.getSharedProps();return g?reactExports.createElement(LocaleContext.Consumer,null,function(Ue){return reactExports.createElement(X,_extends$o({role:"alert","data-baseweb":c.props["data-baseweb"]||"toast"},De,be,{onBlur:c.onBlur,onFocus:c.onFocus,onMouseEnter:c.onMouseEnter,onMouseLeave:c.onMouseLeave}),reactExports.createElement(Ce,_extends$o({},De,Ie),typeof h=="function"?h({dismiss:c.dismiss}):h),y?reactExports.createElement(DeleteIcon,_extends$o({ref:c.closeRef,role:"button",tabIndex:0,$isFocusVisible:c.state.isFocusVisible,onClick:c.dismiss,onKeyPress:function(Xe){Xe.key==="Enter"&&c.dismiss()},title:Ue.toast.close},De,Ge,{onFocus:forkFocus(Ge,c.handleFocus),onBlur:forkBlur(Ge,c.handleBlur),overrides:je})):null)}):null}}]),e}(reactExports.Component);_defineProperty$p(Toast$1,"defaultProps",{autoFocus:!1,autoHideDuration:0,closeable:!0,kind:KIND$1.info,notificationType:TYPE$1.toast,onClose:function n(){},onBlur:function n(){},onFocus:function n(){},onMouseEnter:function n(){},onMouseLeave:function n(){},overrides:{}});function _typeof$d(n){"@babel/helpers - typeof";return _typeof$d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$d(n)}var _excluded$m=["onClose","children","key"];function _slicedToArray$g(n,o){return _arrayWithHoles$g(n)||_iterableToArrayLimit$g(n,o)||_unsupportedIterableToArray$g(n,o)||_nonIterableRest$g()}function _nonIterableRest$g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 87In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit$g(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$g(n){if(Array.isArray(n))return n}function _extends$n(){return _extends$n=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$n.apply(this,arguments)}function _objectWithoutProperties$k(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$j(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$j(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _toConsumableArray$2(n){return _arrayWithoutHoles$2(n)||_iterableToArray$2(n)||_unsupportedIterableToArray$g(n)||_nonIterableSpread$2()}function _nonIterableSpread$2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 88In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$g(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$g(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);
88if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$g(n,o)}}function _iterableToArray$2(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles$2(n){if(Array.isArray(n))return _arrayLikeToArray$g(n)}function _arrayLikeToArray$g(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function ownKeys$m(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$k(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$m(Object(e),!0).forEach(function(t){_defineProperty$o(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$m(Object(e)).forEac
88h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _classCallCheck$b(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$b(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$b(n,o,e){return o&&_defineProperties$b(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$b(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$b(n,o)}function _setPrototypeOf$b(n,o){return _setPrototypeOf$b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$b(n,o)}function _createSuper$b(n){var o=_isNativeReflectConstruct$b();return function(){var t=_getPrototypeOf$b(n),c;if(o){var p=_getPrototypeOf$b(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$b(this,c)}}function _possibleConstructorReturn$b(n,o){if(o&&(_typeof$d(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$c(n)}function _assertThisInitialized$c(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$b(n){return _getPrototypeOf$b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$b(n)}function _defineProperty$o(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var toasterRef,ToasterContainer=function(n){_inherits$b(e,n);var o=_createSuper$b(e);function e(t){var c;return _classCallCheck$b(this,e),c=o.call(this,t),_defineProperty$o(_assertThisInitialized$c(c),"state",{isMounted:!1,toasts:[]}),_defineProperty$o(_assertThisInitialized$c(c),"dismissHandlers",{}),_defineProperty$o(_assertThisInitialized$c(c),"toastId",0),_defineProperty$o(_assertThisInitialized$c(c),"getToastProps",function(p){var h=c.props,y=h.autoFocus,g=h.autoHideDuration,$=h.closeable,E=p.key||"toast-".concat(c.toastId++);return _objectSpread$k(_objectSpread$k({autoFocus:y,autoHideDuration:g,closeable:$},p),{},{key:E})}),_defineProperty$o(_assertThisInitialized$c(c),"show",function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(c.state.toasts.map(function(y){return y.key}).includes(p.key))return c.update(p.key,p),p.key;var h=c.getToastProps(p);return c.setState(function(y){var g=y.toasts;return{toasts:[].concat(_toConsumableArray$2(g),[h])}}),h.key}),_defineProperty$o(_assertThisInitialized$c(c),"update",function(p,h){c.setState(function(y){var g=y.toasts,$=g.map(function(E){if(E.key===p){var A=_objectSpread$k(_objectSpread$k(_objectSpread$k({},E),c.getToastProps(_objectSpread$k({autoHideDuration:E.autoHideDuration},h))),{},{key:p},c.props.resetAutoHideTimerOnUpdate?{__updated:(+E.__updated||0)+1}:{});return A}return E});return{toasts:$}})}),_defineProperty$o(_assertThisInitialized$c(c),"dismiss",function(p){c.dismissHandlers[p]&&c.dismissHandlers[p]()}),_defineProperty$o(_assertThisInitialized$c(c),"clearAll",function(){Object.keys(c.dismissHandlers).forEach(function(p){c.dismissHandlers[p]()})}),_defineProperty$o(_assertThisInitialized$c(c),"clear",function(p){p===void 0?c.clearAll():c.dismiss(p)}),_defineProperty$o(_assertThisInitialized$c(c),"internalOnClose",function(p){delete c.dismissHandlers[p],c.setState(function(h){var y=h.toasts;return{toasts:y.filter(function(g){return g.key!==p})}})}),_defineProperty$o(_assertThisInitialized$c(c),"getOnCloseHandler",function(p,h){return function(){c.internalOnClose(p),typeof h=="function"&&h()}}),_defineProperty$o(_assertThisInitialized$c(c),"renderToast",function(p){var h=p.onClose,y=p.children,g=p.key,$=_objectWithoutProperties$k(p,_excluded$m),E=c.props.overrides,A=E.ToastBody,N=E.ToastCloseIcon,H=E.ToastInnerContainer,Z=mergeOverrides({Body:Body$3,CloseIcon:CloseIconSvg,InnerContainer},{Body:A||{},CloseIcon:N||{},InnerContainer:H||{}}),X=mergeOverrides(Z,p.overrides);return reactExports.createElement(Toast$1,_extends$n({},$,{overrides:X,key:g,onClose:c.getOnCloseHandler(g,h)}),function(be){var we=be.dismiss;return c.dismissHandlers[g]=we,y})}),_defineProperty$o(_assertThisInitialized$c(c),"getSharedProps",function(){var p=c.props.placement;return{$placement:p}}),toasterRef=_assertThisInitialized$c(c),c}
88return _createClass$b(e,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"render",value:function(){for(var c=this.getSharedProps(),p=this.props.overrides.Root,h=getOverrides(p,Root$2),y=_slicedToArray$g(h,2),g=y[0],$=y[1],E=this.state.toasts.length,A=[],N=E-1;N>=0;N--)A.push(this.renderToast(this.state.toasts[N]));var H=reactExports.createElement(g,_extends$n({"data-baseweb":"toaster"},c,$),A);return this.state.isMounted?reactExports.createElement(reactExports.Fragment,null,this.props.usePortal&&typeof document<"u"&&document.body?ReactDOM.createPortal(H,document.body):H,this.props.children):reactExports.createElement(reactExports.Fragment,null,this.props.children)}}]),e}(reactExports.Component);_defineProperty$o(ToasterContainer,"defaultProps",{autoFocus:!1,autoHideDuration:0,children:null,closeable:!0,overrides:{},placement:PLACEMENT$1.top,resetAutoHideTimerOnUpdate:!0,usePortal:!0});var toaster={getRef:function n(){return toasterRef},show:function n(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=this.getRef();if(t)return t.show(_objectSpread$k(_objectSpread$k({},e),{},{children:o}))},info:function n(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(o,_objectSpread$k(_objectSpread$k({},e),{},{kind:KIND$1.info}))},positive:function n(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(o,_objectSpread$k(_objectSpread$k({},e),{},{kind:KIND$1.positive}))},warning:function n(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(o,_objectSpread$k(_objectSpread$k({},e),{},{kind:KIND$1.warning}))},negative:function n(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(o,_objectSpread$k(_objectSpread$k({},e),{},{kind:KIND$1.negative}))},update:function n(o,e){var t=this.getRef();t&&t.update(o,e)},clear:function n(o){var e=this.getRef();e&&e.clear(o)}};function _typeof$c(n){"@babel/helpers - typeof";return _typeof$c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$c(n)}function _extends$m(){return _extends$m=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$m.apply(this,arguments)}function _classCallCheck$a(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$a(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$a(n,o,e){return o&&_defineProperties$a(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$a(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$a(n,o)}function _setPrototypeOf$a(n,o){return _setPrototypeOf$a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$a(n,o)}function _createSuper$a(n){var o=_isNativeReflectConstruct$a();return function(){var t=_getPrototypeOf$a(n),c;if(o){var p=_getPrototypeOf$a(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$a(this,c)}}function _possibleConstructorReturn$a(n,o){if(o&&(_typeof$c(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$b(n)}function _assertThisInitialized$b(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}
88function _getPrototypeOf$a(n){return _getPrototypeOf$a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$a(n)}function _defineProperty$n(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var Notification=function(n){_inherits$a(e,n);var o=_createSuper$a(e);function e(){return _classCallCheck$a(this,e),o.apply(this,arguments)}return _createClass$a(e,[{key:"render",value:function(){var c=mergeOverrides({Body:{style:function(h){var y=h.$theme;return{marginTop:y.sizing.scale600,marginRight:y.sizing.scale600,marginBottom:y.sizing.scale600,marginLeft:y.sizing.scale600}}}},this.props.overrides);return reactExports.createElement(Toast$1,_extends$m({"data-baseweb":"notification"},this.props,{overrides:c}))}}]),e}(reactExports.Component);_defineProperty$n(Notification,"defaultProps",{notificationType:TYPE$1.inline,closeable:!1});const StyledAlertContent$1=styled("div",{target:"en1c6do0"})(({theme:n})=>({pre:{backgroundColor:n.colors.transparent,paddingTop:n.spacing.lg,paddingBottom:n.spacing.lg,paddingRight:n.spacing.lg,paddingLeft:n.spacing.lg,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,"pre, code":{backgroundColor:n.colors.transparent,color:"inherit"}},code:{backgroundColor:n.colors.transparent,padding:n.spacing.none},"pre, code":{color:"inherit"},a:{color:"inherit",textDecoration:"underline"}}));var Kind=function(n){return n.ERROR="error",n.INFO="info",n.SUCCESS="success",n.WARNING="warning",n}({});function getNotificationKind(n){switch(n){case"error":return KIND$1.negative;case"info":return KIND$1.info;case"success":return KIND$1.positive;case"warning":return KIND$1.warning;default:throw new Error(`Unexpected alert type: ${n}`)}}function AlertContainer({kind:n,width:o,children:e}){const t=useEmotionTheme(),c=n.charAt(0).toUpperCase()+n.slice(1);return jsx$1(Notification,{kind:getNotificationKind(n),overrides:{Body:{style:{fontWeight:t.fontWeights.normal,marginTop:t.spacing.none,marginBottom:t.spacing.none,marginLeft:t.spacing.none,marginRight:t.spacing.none,width:o?o.toString():void 0,border:0,borderTopRightRadius:t.radii.default,borderBottomRightRadius:t.radii.default,borderTopLeftRadius:t.radii.default,borderBottomLeftRadius:t.radii.default,paddingTop:t.spacing.lg,paddingBottom:t.spacing.lg,paddingRight:t.spacing.lg,paddingLeft:t.spacing.lg},props:{"data-testid":"stAlertContainer",className:"stAlertContainer"}},InnerContainer:{style:{width:"100%",lineHeight:t.lineHeights.small}}},children:jsx$1(StyledAlertContent$1,{"data-testid":`stAlertContent${c}`,children:e})})}const StyledStackTrace=styled("pre",{target:"e1t0zwa40"})(({theme:n})=>({whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:n.fontSizes.codeFontSize,fontFamily:n.genericFonts.codeFont,fontWeight:n.fontWeights.code,backgroundColor:n.colors.transparent,overflowX:"auto",margin:0,borderRadius:n.radii.default,padding:n.spacing.lg,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),StyledErrorName=styled("strong",{target:"e1t0zwa41"})(({theme:n})=>({fontWeight:n.fontWeights.codeBold}));function ErrorElement(n){const{name:o,message:e,stack:t,width:c}=n,p=t?t.split(` 89`):[];p.shift();const h=p.map(y=>y.trim()).join(` 90`);return jsxs(AlertContainer,{kind:Kind.ERROR,width:c,children:[jsxs(StyledErrorName,{children:[o,": "]}),e,t?jsx$1(StyledStackTrace,{"data-testid":"stErrorElementStack",children:jsx$1(StyledCode,{wrapLines:!1,children:h})}):null]})}const LOG$g=loglevelExports.getLogger("ErrorBoundary"),gs=class gs extends reactExports.PureComponent{constructor(){super(...arguments),this.state={error:null},this.componentDidCatch=o=>{LOG$g.error(`${o.name}: ${o.message} 91${o.stack}`)}}render(){const{error:o}=this.state;return o?o.name==="ChunkLoadError"?jsx$1(ErrorElement,{width:this.props.width,name:"Network issue",message:jsxs("p",{children:["Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.",jsx$1("br",{}),"To fix this, simply reload this app by pressing"," ",jsx$1(StyledInlineCode,{children:"F5"}),","," ",jsx$1(StyledInlineCode,{children:"Ctrl+R"}),", or"," ",jsx$1(StyledInlineCode,{children:"Cmd+R"}),".",jsx$1("br",{}
91),"If the error persists, try force-clearing your browser's cache as described"," ",jsx$1("a",{href:"https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling",rel:"noopener noreferrer",target:"_blank",children:"here"})]})}):jsx$1(ErrorElement,{width:this.props.width,name:o.name,message:o.message,stack:o.stack}):this.props.children}};gs.getDerivedStateFromError=o=>({error:o});let ErrorBoundary=gs;const StyledTooltipIconWrapper=styled("div",{target:"eoo3rg90"})(({isLatex:n,theme:o})=>({display:"flex",alignItems:"center",marginTop:n?o.spacing.md:"0","& .stTooltipHoverTarget > svg":{stroke:o.colors.fadedText60,strokeWidth:2.25}})),StyledLabelHelpWrapper=styled("div",{target:"eoo3rg91"})(({isLatex:n})=>({display:"flex",flexDirection:"row",alignItems:"center",visibility:"visible",width:n?"fit-content":"100%",...n?{maxWidth:"100%",marginInline:"auto"}:{}})),StyledLabelHelpInline=styled("label",{target:"eoo3rg92"})(({theme:n})=>({marginLeft:n.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}));var PLACEMENT={auto:"auto",topLeft:"topLeft",top:"top",topRight:"topRight",rightTop:"rightTop",right:"right",rightBottom:"rightBottom",bottomRight:"bottomRight",bottom:"bottom",bottomLeft:"bottomLeft",leftBottom:"leftBottom",left:"left",leftTop:"leftTop"},TRIGGER_TYPE={click:"click",hover:"hover"},STATE_CHANGE_TYPE$1={open:"open",close:"close"},ACCESSIBILITY_TYPE={none:"none",menu:"menu",tooltip:"tooltip"},POPOVER_MARGIN=8,ARROW_SIZE=6,ANIMATE_OUT_TIME=0,ANIMATE_IN_TIME=20,ARROW_WIDTH=Math.ceil(Math.sqrt(Math.pow(ARROW_SIZE*2,2)/2));function _typeof$b(n){"@babel/helpers - typeof";return _typeof$b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$b(n)}function ownKeys$l(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$j(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$l(Object(e),!0).forEach(function(t){_defineProperty$m(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$l(Object(e)).forEac
91h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _classCallCheck$9(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$9(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$9(n,o,e){return o&&_defineProperties$9(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$9(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$9(n,o)}function _setPrototypeOf$9(n,o){return _setPrototypeOf$9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$9(n,o)}function _createSuper$9(n){var o=_isNativeReflectConstruct$9();return function(){var t=_getPrototypeOf$9(n),c;if(o){var p=_getPrototypeOf$9(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$9(this,c)}}function _possibleConstructorReturn$9(n,o){if(o&&(_typeof$b(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$a(n)}function _assertThisInitialized$a(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$9(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$9(n){return _getPrototypeOf$9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$9(n)}function _defineProperty$m(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var defaultStateReducer=function n(o,e){return e},StatefulContainer$1=function(n){_inherits$9(e,n);var o=_createSuper$9(e);function e(){var t;_classCallCheck$9(this,e);for(var c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];return t=o.call.apply(o,[this].concat(p)),_defineProperty$m(_assertThisInitialized$a(t),"state",_objectSpread$j({isOpen:!1},t.props.initialState)),_defineProperty$m(_assertThisInitialized$a(t),"onBlur",function(y){t.props.onBlur&&t.props.onBlur(y),!(t.props.focusLock||t.props.autoFocus)&&t.close()}),_defineProperty$m(_assertThisInitialized$a(t),"onClick",function(y){t.props.onClick&&t.props.onClick(y),t.state.isOpen?t.close():t.open()}),_defineProperty$m(_assertThisInitialized$a(t),"onClickOutside",function(){t.close()}),_defineProperty$m(_assertThisInitialized$a(t),"onEsc",function(){t.close()}),_defineProperty$m(_assertThisInitialized$a(t),"onFocus",function(y){t.props.onFocus&&t.props.onFocus(y),isFocusVisible(y)&&t.open()}),_defineProperty$m(_assertThisInitialized$a(t),"onMouseEnter",function(y){t.props.onMouseEnter&&t.props.onMouseEnter(y),t.open()}),_defineProperty$m(_assertThisInitialized$a(t),"onMouseLeave",function(y){t.props.onMouseLeave&&t.props.onMouseLeave(y),t.close()}),_defineProperty$m(_assertThisInitialized$a(t),"onContentClose",function(){t.close()}),_defineProperty$m(_assertThisInitialized$a(t),"renderContent",function(){var y=t.props.content;return typeof y=="function"?y({close:t.onContentClose}):y}),t}return _createClass$9(e,[{key:"open",value:function(){this.internalSetState(STATE_CHANGE_TYPE$1.open,{isOpen:!0}),this.props.onOpen&&this.props.onOpen()}},{key:"close",value:function(){this.internalSetState(STATE_CHANGE_TYPE$1.close,{isOpen:!1}),this.props.onClose&&this.props.onClose()}},{key:"internalSetState",value:function(c,p){var h=this.props.stateReducer;if(typeof h!="function"){this.setState(p);return}this.setState(function(y){return h(c,p,y)})}},{key:"render",value:function(){var c=this.props,p=c.accessibilityType,h=c.autoFocus,y=c.animateOutTime,g=c.dismissOnClickOutside,$=c.dismissOnEsc,E=c.focusLock,A=c.ignoreBoundary,N=c.mountNode,H=c.onBlur,Z=c.onClick,X=c.onFocus,be=c.onMouseEnter,we=c.onMouseLeave,$e=c.onMouseEnterDelay,Ce=c.onMouseLeaveDelay,Ie=c.overrides,Ne=c.placement,Fe=c.popperOptions,Be=c.renderAll,Ge=c.returnFocus,je=c.showArrow,De=c.triggerType,Ue=c.popoverMargin,Je=c.focusOptions,Xe={accessibilityType:p,animateOutTime:y,autoFocus:h,content:this.renderContent,focusLock:E,ignoreBoundary:A,isOpen:this.state.isOpen,mountNode:N,onBlur:H,onClick:Z,onFocus:X,onMouseEnter:be,onMouseLeave:we,onMouseEnterDelay:$e,onMouseLeaveDelay:Ce,overrides:Ie,placement:Ne,popperOptions:Fe,renderAll:Be,returnFocus:Ge,showArrow:je,triggerType:De,popoverMargin:Ue,focu
91sOptions:Je};return g&&(Xe.onClickOutside=this.onClickOutside),$&&(Xe.onEsc=this.onEsc),De===TRIGGER_TYPE.hover?(Xe.onBlur=this.onBlur,Xe.onFocus=this.onFocus,Xe.onMouseEnter=this.onMouseEnter,Xe.onMouseLeave=this.onMouseLeave):Xe.onClick=this.onClick,this.props.children(Xe)}}]),e}(reactExports.Component);_defineProperty$m(StatefulContainer$1,"defaultProps",{accessibilityType:ACCESSIBILITY_TYPE.menu,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:PLACEMENT.auto,popperOptions:{},showArrow:!1,triggerType:TRIGGER_TYPE.click,dismissOnClickOutside:!0,dismissOnEsc:!0,stateReducer:defaultStateReducer,popoverMargin:POPOVER_MARGIN});function ownKeys$k(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$i(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$k(Object(e),!0).forEach(function(t){_defineProperty$l(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$k(Object(e)).forEac
91h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$l(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function _slicedToArray$f(n,o){return _arrayWithHoles$f(n)||_iterableToArrayLimit$f(n,o)||_unsupportedIterableToArray$f(n,o)||_nonIterableRest$f()}function _nonIterableRest$f(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 92In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$f(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$f(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$f(n,o)}}function _arrayLikeToArray$f(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$f(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$f(n){if(Array.isArray(n))return n}var OPPOSITE_POSITIONS={top:"bottom",bottom:"top",right:"left",left:"right"};function getOppositePosition(n){return OPPOSITE_POSITIONS[n]}function isVerticalPosition(n){return n==="top"||n==="bottom"}function capitalize(n){return n.charAt(0).toUpperCase()+n.slice(1)}function fromPopperPlacement(n){var o=n.replace(/(top|bottom)-start$/,"$1Left").replace(/(top|bottom)-end$/,"$1Right").replace(/(left|right)-start$/,"$1Top").replace(/(left|right)-end$/,"$1Bottom");return PLACEMENT[o]||null}function splitPlacement(n){var o=n.match(/^([a-z]+)([A-Z][a-z]+)?/)||[];return o.slice(1,3).filter(Boolean).map(function(e){return e.toLowerCase()})}function getPopoverMarginStyles(n,o,e){var t=splitPlacement(o),c=_slicedToArray$f(t,1),p=c[0],h=getOppositePosition(p);if(!h)return null;var y="margin".concat(capitalize(h));return _defineProperty$l({},y,"".concat(n+e,"px"))}function getStartPosition(n,o,e,t){n=_objectSpread$i({},n);var c=splitPlacement(o),p=_slicedToArray$f(c,1),h=p[0],y=(e>0?e:t)*2;return isVerticalPosition(h)?n.top+=h==="top"?y:-y:n.left+=h==="left"?y:-y,"translate3d(".concat(n.left,"px, ").concat(n.top,"px, 0)")}function getEndPosition(n){return"translate3d(".concat(n.left,"px, ").concat(n.top,"px, 0)")}function getArrowPositionStyles(n,o){var e,t=splitPlacement(o),c=_slicedToArray$f(t,1),p=c[0],h=getOppositePosition(p);if(!h)return null;var y=isVerticalPosition(p)?"left":"top";return e={},_defineProperty$l(e,y,"".concat(n[y],"px")),_defineProperty$l(e,h,"-".concat(ARROW_SIZE-2,"px")),e}function ownKeys$j(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$h(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$j(Object(e),!0).forEach(function(t){_defineProperty$k(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$j(Object(e)).forEac
92h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$k(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function getBodyStyles(n){var o=n.$animationDuration,e=n.$isOpen,t=n.$isAnimating,c=n.$placement,p=n.$popoverOffset,h=n.$showArrow,y=n.$theme,g=n.$popoverMargin,$=n.$isHoverTrigger;return _objectSpread$h(_objectSpread$h({position:"absolute",top:0,left:0,backgroundColor:y.colors.backgroundTertiary,borderTopLeftRadius:y.borders.popoverBorderRadius,borderTopRightRadius:y.borders.popoverBorderRadius,borderBottomRightRadius:y.borders.popoverBorderRadius,borderBottomLeftRadius:y.borders.popoverBorderRadius,boxShadow:y.lighting.shadow600,transitionProperty:"opacity,transform",transitionDuration:t?e?"0.1s":"".concat(o,"ms"):"0s",transitionTimingFunction:e?y.animation.easeOutCurve:y.animation.easeInCurve,opacity:t&&e?1:0,transform:t&&e?getEndPosition(p):getStartPosition(p,c,h?ARROW_SIZE:0,g)},getPopoverMarginStyles(h?ARROW_SIZE:0,c,g)),$?{animationDuration:".1s",animationName:{"0%":{pointerEvents:"none"},"99%":{pointerEvents:"none"},"100%":{pointerEvents:"auto"}}}:{})}var Body$2=styled$1("div",getBodyStyles);Body$2.displayName="Body";Body$2.displayName="Body";function getArrowStyles(n){var o=n.$arrowOffset,e=n.$placement,t=n.$theme;return _objectSpread$h({backgroundColor:t.colors.backgroundTertiary,boxShadow:t.lighting.shadow600,width:"".concat(ARROW_WIDTH,"px"),height:"".concat(ARROW_WIDTH,"px"),transform:"rotate(45deg)",position:"absolute"},getArrowPositionStyles(o,e))}var Arrow$1=styled$1("div",getArrowStyles);Arrow$1.displayName="Arrow";Arrow$1.displayName="Arrow";function getInnerStyles(n){var o=n.$theme;return{backgroundColor:o.colors.backgroundTertiary,borderTopLeftRadius:o.borders.popoverBorderRadius,borderTopRightRadius:o.borders.popoverBorderRadius,borderBottomRightRadius:o.borders.popoverBorderRadius,borderBottomLeftRadius:o.borders.popoverBorderRadius,color:o.colors.contentPrimary,position:"relative"}}var Inner$1=styled$1("div",getInnerStyles);Inner$1.displayName="Inner";Inner$1.displayName="Inner";var Padding=styled$1("div",{paddingLeft:"12px",paddingTop:"12px",paddingRight:"12px",paddingBottom:"12px"});Padding.displayName="Padding";Padding.displayName="Padding";var Hidden=styled$1("div",{display:"none"});Hidden.displayName="Hidden";Hidden.displayName="Hidden";var baseDefaultProps$1={accessibilityType:ACCESSIBILITY_TYPE.menu,focusLock:!1,autoFocus:!0,returnFocus:!0,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:PLACEMENT.auto,showArrow:!1,triggerType:TRIGGER_TYPE.click,renderAll:!1};function ownKeys$i(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$g(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$i(Object(e),!0).forEach(function(t){_defineProperty$j(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$i(Object(e)).forEac
92h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _extends$l(){return _extends$l=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$l.apply(this,arguments)}function _typeof$a(n){"@babel/helpers - typeof";return _typeof$a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$a(n)}function _classCallCheck$8(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$8(n,o,e){return o&&_defineProperties$8(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$8(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$8(n,o)}function _setPrototypeOf$8(n,o){return _setPrototypeOf$8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$8(n,o)}function _createSuper$8(n){var o=_isNativeReflectConstruct$8();return function(){var t=_getPrototypeOf$8(n),c;if(o){var p=_getPrototypeOf$8(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$8(this,c)}}function _possibleConstructorReturn$8(n,o){if(o&&(_typeof$a(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$9(n)}function _assertThisInitialized$9(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$8(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$8(n){return _getPrototypeOf$8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$8(n)}function _defineProperty$j(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var PopoverInner=function(n){_inherits$8(e,n);var o=_createSuper$8(e);function e(){var t;_classCallCheck$8(this,e);for(var c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];return t=o.call.apply(o,[this].concat(p)),_defineProperty$j(_assertThisInitialized$9(t),"animateInTimer",void 0),_defineProperty$j(_assertThisInitialized$9(t),"animateOutTimer",void 0),_defineProperty$j(_assertThisInitialized$9(t),"animateOutCompleteTimer",void 0),_defineProperty$j(_assertThisInitialized$9(t),"onMouseEnterTimer",void 0),_defineProperty$j(_assertThisInitialized$9(t),"onMouseLeaveTimer",void 0),_defineProperty$j(_assertThisInitialized$9(t),"anchorRef",reactExports.createRef()),_defineProperty$j(_assertThisInitialized$9(t),"popperRef",reactExports.createRef()),_defineProperty$j(_assertThisInitialized$9(t),"arrowRef",reactExports.createRef()),_defineProperty$j(_assertThisInitialized$9(t),"state",t.getDefaultState(t.props)),_defineProperty$j(_assertThisInitialized$9(t),"animateIn",function(){t.props.isOpen&&t.setState({isAnimating:!0})}),_defineProperty$j(_assertThisInitialized$9(t),"animateOut",function(){t.props.isOpen||(t.setState({isAnimating:!0}),t.animateOutCompleteTimer=setTimeout(function(){t.setState({isAnimating:!1,placement:t.props.placement})},t.props.animateOutTime||ANIMATE_OUT_TIME))}),_defineProperty$j(_assertThisInitialized$9(t),"onAnchorClick",function(y){t.props.onClick&&t.props.onClick(y)}),_defineProperty$j(_assertThisInitialized$9(t),"onAnchorMouseEnter",function(y){t.onMouseLeaveTimer&&clearTimeout(t.onMouseLeaveTimer),t.triggerOnM
92ouseEnterWithDelay(y)}),_defineProperty$j(_assertThisInitialized$9(t),"onAnchorMouseLeave",function(y){t.onMouseEnterTimer&&clearTimeout(t.onMouseEnterTimer),t.triggerOnMouseLeaveWithDelay(y)}),_defineProperty$j(_assertThisInitialized$9(t),"onPopoverMouseEnter",function(){t.onMouseLeaveTimer&&clearTimeout(t.onMouseLeaveTimer)}),_defineProperty$j(_assertThisInitialized$9(t),"onPopoverMouseLeave",function(y){t.triggerOnMouseLeaveWithDelay(y)}),_defineProperty$j(_assertThisInitialized$9(t),"onPopperUpdate",function(y,g){var $=fromPopperPlacement(g.placement)||PLACEMENT.top;return t.setState({arrowOffset:y.arrow,popoverOffset:y.popper,placement:$}),t.animateInTimer=setTimeout(t.animateIn,ANIMATE_IN_TIME),g}),_defineProperty$j(_assertThisInitialized$9(t),"triggerOnMouseLeave",function(y){t.props.onMouseLeave&&t.props.onMouseLeave(y)}),_defineProperty$j(_assertThisInitialized$9(t),"triggerOnMouseEnter",function(y){t.props.onMouseEnter&&t.props.onMouseEnter(y)}),_defineProperty$j(_assertThisInitialized$9(t),"onDocumentClick",function(y){var g=y.composedPath?y.composedPath()[0]:y.target,$=t.popperRef.current,E=t.anchorRef.current;!$||$===g||g instanceof Node&&$.contains(g)||!E||E===g||g instanceof Node&&E.contains(g)||t.props.onClickOutside&&t.props.onClickOutside(y)}),t}return _createClass$8(e,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"componentDidUpdate",value:function(c,p){this.init(c,p),this.props.accessibilityType!==ACCESSIBILITY_TYPE.tooltip&&this.props.autoFocus&&!this.state.autoFocusAfterPositioning&&this.popperRef.current!==null&&this.popperRef.current.getBoundingClientRect().top>0&&this.setState({autoFocusAfterPositioning:!0})}},{key:"init",value:function(c,p){if(this.props.isOpen!==c.isOpen||this.state.isMounted!==p.isMounted||this.state.isLayerMounted!==p.isLayerMounted){if(this.props.isOpen&&this.state.isLayerMounted){this.clearTimers();return}if(!this.props.isOpen&&c.isOpen){this.animateOutTimer=setTimeout(this.animateOut,20);return}}}},{key:"componentWillUnmount",value:function(){this.clearTimers()}},{key:"getDefaultState",value:function(c){return{isAnimating:!1,arrowOffset:{left:0,top:0},popoverOffset:{left:0,top:0},placement:c.placement,isMounted:!1,isLayerMounted:!1,autoFocusAfterPositioning:!1}}},{key:"clearTimers",value:function(){[this.animateInTimer,this.animateOutTimer,this.animateOutCompleteTimer,this.onMouseEnterTimer,this.onMouseLeaveTimer].forEach(function(c){c&&clearTimeout(c)})}},{key:"triggerOnMouseLeaveWithDelay",value:function(c){var p=this,h=this.props.onMouseLeaveDelay;if(h){this.onMouseLeaveTimer=setTimeout(function(){return p.triggerOnMouseLeave(c)},h);return}this.triggerOnMouseLeave(c)}},{key:"triggerOnMouseEnterWithDelay",value:function(c){var p=this,h=this.props.onMouseEnterDelay;if(h){this.onMouseEnterTimer=setTimeout(function(){return p.triggerOnMouseEnter(c)},h);return}this.triggerOnMouseEnter(c)}},{key:"isClickTrigger",value:function(){return this.props.triggerType===TRIGGER_TYPE.click}},{key:"isHoverTrigger",value:function(){return this.props.triggerType===TRIGGER_TYPE.hover}},{key:"isAccessibilityTypeMenu",value:function(){return this.props.accessibilityType===ACCESSIBILITY_TYPE.menu}},{key:"isAccessibilityTypeTooltip",value:function(){return this.props.accessibilityType===ACCESSIBILITY_TYPE.tooltip}},{key:"getAnchorIdAttr",value:function(){var c=this.getPopoverIdAttr();return c?"".concat(c,"__anchor"):null}},{key:"getPopoverIdAttr",value:function(){return this.props.id||null}},{key:"getAnchorProps",value:function(){var c=this.props.isOpen,p={ref:this.anchorRef},h=this.getPopoverIdAttr();if(this.isAccessibilityTypeMenu()){var y=this.isClickTrigger()?"aria-controls":"aria-owns";p[y]=c?h:null,p["aria-haspopup"]=!0,p["aria-expanded"]=!!c}else this.isAccessibilityTypeTooltip()&&(p.id=this.getAnchorIdAttr(),p["aria-describedby"]=c?h:null);return this.isHoverTrigger()?(p.onMouseEnter=this.onAnchorMouseEnter,p.onMouseLeave=this.onAnchorMouseLeave,p.onBlur=this.props.onBlur,p.onFocus=this.props.onFocus):p.onClick=this.onAnchorClick,p}},{key:"getPopoverBodyProps",value:function(){var c={},p=this.getPopoverIdAttr();return this.isAccessibilityTypeMenu()?c.id=p:this.isAccessibilityTypeTooltip()&&(c.id=p,c.role="tooltip"),this.isHoverTrigger()&&(c.onMouseEnter=this.onPopoverMouseEnter,c.onMouseLeave=this.onPopoverMouseLeave),c}},{key:"getSharedProps",value:function(){var c=this.props,p=c.isOpen,h=c.showArrow,y=c.popoverMargin,g=y===void 0?POPOVER_MARGIN:y,$=this.state,E=$.isAnimating,A=$.arrowOffset,
92N=$.popoverOffset,H=$.placement;return{$showArrow:!!h,$arrowOffset:A,$popoverOffset:N,$placement:H,$isAnimating:E,$animationDuration:this.props.animateOutTime||ANIMATE_OUT_TIME,$isOpen:p,$popoverMargin:g,$isHoverTrigger:this.isHoverTrigger()}}},{key:"getAnchorFromChildren",value:function(){var c=this.props.children,p=reactExports.Children.toArray(c);return p.length!==1&&console.error("[baseui] Exactly 1 child must be passed to Popover/Tooltip, found ".concat(p.length," children")),p[0]}},{key:"renderAnchor",value:function(){var c=this.getAnchorFromChildren();if(!c)return null;var p=reactExports.isValidElement(c),h=this.getAnchorProps();return _typeof$a(c)==="object"&&p?reactExports.cloneElement(c,h):reactExports.createElement("span",_extends$l({key:"popover-anchor"},h),c)}},{key:"renderPopover",value:function(c){var p=this.props,h=p.showArrow,y=p.overrides,g=y===void 0?{}:y,$=g.Arrow,E=g.Body,A=g.Inner,N=getOverride($)||Arrow$1,H=getOverride(E)||Body$2,Z=getOverride(A)||Inner$1,X=this.getSharedProps(),be=this.getPopoverBodyProps();return reactExports.createElement(H,_extends$l({key:"popover-body",ref:this.popperRef,"data-baseweb":this.props["data-baseweb"]||"popover"},be,X,getOverrideProps(E)),h?reactExports.createElement(N,_extends$l({key:"popover-arrow",ref:this.arrowRef},X,getOverrideProps($))):null,reactExports.createElement(Z,_extends$l({},X,getOverrideProps(A)),c))}},{key:"renderContent",value:function(){var c=this.props.content;return typeof c=="function"?c():c}},{key:"render",value:function(){var c=this,p=this.state.isMounted&&(this.props.isOpen||this.state.isAnimating),h=[this.renderAnchor()],y=p||this.props.renderAll?this.renderContent():null,g={modifiers:{preventOverflow:{enabled:!this.props.ignoreBoundary,padding:0}}};return y&&(p?h.push(reactExports.createElement(Layer,{key:"new-layer",mountNode:this.props.mountNode,onEscape:this.props.onEsc,onDocumentClick:this.isHoverTrigger()?void 0:this.onDocumentClick,isHoverLayer:this.isHoverTrigger(),onMount:function(){return c.setState({isLayerMounted:!0})},onUnmount:function(){return c.setState({isLayerMounted:!1})}},reactExports.createElement(Tether,{anchorRef:this.anchorRef.current,arrowRef:this.arrowRef.current,popperRef:this.popperRef.current,popperOptions:_objectSpread$g(_objectSpread$g({},g),this.props.popperOptions),onPopperUpdate:this.onPopperUpdate,placement:this.state.placement},this.props.focusLock&&this.props.accessibilityType!==ACCESSIBILITY_TYPE.tooltip?reactExports.createElement(FocusLockCombination,{disabled:!this.props.focusLock,noFocusGuards:!1,returnFocus:!this.isHoverTrigger()&&this.props.returnFocus,autoFocus:this.state.autoFocusAfterPositioning,crossFrame:!1,focusOptions:this.props.focusOptions},this.renderPopover(y)):reactExports.createElement(MoveFocusInside,{disabled:!this.props.autoFocus||!this.state.autoFocusAfterPositioning},this.renderPopover(y))))):h.push(reactExports.createElement(Hidden,{key:"hidden-layer"},y))),h}}]),e}(reactExports.Component);_defineProperty$j(PopoverInner,"defaultProps",baseDefaultProps$1);var Popover$2=function n(o){var e=o.innerRef,t=useUID();return reactExports.createElement(PopoverInner,_extends$l({id:o.id||t,ref:e},o))};Popover$2.defaultProps=baseDefaultProps$1;var _excluded$l=["children"];function _objectWithoutProperties$j(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$i(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$i(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function StatefulPopover(n){var o=n.children,e=_objectWithoutProperties$j(n,_excluded$l);return reactExports.createElement(StatefulContainer$1,e,function(t){return reactExports.createElement(Popover$2,t,o)})}StatefulPopover.defaultProps={accessibilityType:ACCESSIBILITY_TYPE.menu,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:PLACEMENT.auto,showArrow:!1,triggerType:TRIGGER_TYPE.click,dismissOnClickOutside:!0,dismissOnEsc:!0,stateReducer:function n(o,e){return e},popoverMargin:POPOVER_MARGIN};var baseDefaultProps={accessibilityType:ACCESSIBILITY_TYPE.tooltip,focusLock:!1,autoFocus:!1,returnFocus:!1,onMouseEnterDelay:200,onMouseLeaveDelay:200,overrides:{},placement:PLACEMENT.auto,popoverMargin:0,showArrow:!1,triggerType:TRIGGER_TYPE.hover,renderAll:!1};function _typeof$9(n){"@babel/helpers - typeof";return _typeof$9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$9(n)}function ownKeys$h(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$f(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};
92o%2?ownKeys$h(Object(e),!0).forEach(function(t){_defineProperty$i(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$h(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _classCallCheck$7(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$7(n,o,e){return o&&_defineProperties$7(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$7(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$7(n,o)}function _setPrototypeOf$7(n,o){return _setPrototypeOf$7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$7(n,o)}function _createSuper$7(n){var o=_isNativeReflectConstruct$7();return function(){var t=_getPrototypeOf$7(n),c;if(o){var p=_getPrototypeOf$7(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$7(this,c)}}function _possibleConstructorReturn$7(n,o){if(o&&(_typeof$9(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$8(n)}function _assertThisInitialized$8(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$7(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$7(n){return _getPrototypeOf$7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$7(n)}function _defineProperty$i(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var StatefulContainer=function(n){_inherits$7(e,n);var o=_createSuper$7(e);function e(){return _classCallCheck$7(this,e),o.apply(this,arguments)}return _createClass$7(e,[{key:"render",value:function(){return reactExports.createElement(StatefulContainer$1,this.props)}}]),e}(reactExports.Component);_defineProperty$i(StatefulContainer,"defaultProps",_objectSpread$f({},baseDefaultProps));function ownKeys$g(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$e(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$g(Object(e),!0).forEach(function(t){_defineProperty$h(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$g(Object(e)).forEac
92h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$h(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var Body$1=styled$1("div",function(n){return _objectSpread$e(_objectSpread$e({},getBodyStyles(n)),{},{backgroundColor:n.$theme.colors.tooltipBackground,borderTopLeftRadius:n.$theme.borders.radius300,borderTopRightRadius:n.$theme.borders.radius300,borderBottomRightRadius:n.$theme.borders.radius300,borderBottomLeftRadius:n.$theme.borders.radius300,boxShadow:n.$theme.lighting.shadow400,color:n.$theme.colors.tooltipText,transitionProperty:"opacity",transform:getEndPosition(n.$popoverOffset)})});Body$1.displayName="Body";Body$1.displayName="Body";var Inner=styled$1("div",function(n){return _objectSpread$e(_objectSpread$e(_objectSpread$e({},getInnerStyles(n)),{},{backgroundColor:n.$theme.colors.tooltipBackground,borderTopLeftRadius:n.$theme.borders.radius300,borderTopRightRadius:n.$theme.borders.radius300,borderBottomRightRadius:n.$theme.borders.radius300,borderBottomLeftRadius:n.$theme.borders.radius300,paddingTop:n.$theme.sizing.scale300,paddingBottom:n.$theme.sizing.scale300,paddingLeft:n.$theme.sizing.scale600,paddingRight:n.$theme.sizing.scale600},n.$theme.typography.font150),{},{color:n.$theme.colors.tooltipText})});Inner.displayName="Inner";Inner.displayName="Inner";var Arrow=styled$1("div",function(n){return _objectSpread$e(_objectSpread$e({},getArrowStyles(n)),{},{backgroundColor:n.$theme.colors.tooltipBackground})});Arrow.displayName="Arrow";Arrow.displayName="Arrow";function _typeof$8(n){"@babel/helpers - typeof";return _typeof$8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$8(n)}function ownKeys$f(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$d(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$f(Object(e),!0).forEach(function(t){_defineProperty$g(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$f(Object(e)).forEac
92h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _extends$k(){return _extends$k=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$k.apply(this,arguments)}function _classCallCheck$6(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$6(n,o,e){return o&&_defineProperties$6(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$6(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$6(n,o)}function _setPrototypeOf$6(n,o){return _setPrototypeOf$6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$6(n,o)}function _createSuper$6(n){var o=_isNativeReflectConstruct$6();return function(){var t=_getPrototypeOf$6(n),c;if(o){var p=_getPrototypeOf$6(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$6(this,c)}}function _possibleConstructorReturn$6(n,o){if(o&&(_typeof$8(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$7(n)}function _assertThisInitialized$7(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$6(n){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$6(n)}function _defineProperty$g(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var Tooltip$2=function(n){_inherits$6(e,n);var o=_createSuper$6(e);function e(){return _classCallCheck$6(this,e),o.apply(this,arguments)}return _createClass$6(e,[{key:"render",value:function(){var c=mergeOverrides({Arrow,Body:Body$1,Inner},this.props.overrides);return reactExports.createElement(Popover$2,_extends$k({autoFocus:!1,"data-baseweb":"tooltip"},this.props,{overrides:c}))}}]),e}(reactExports.Component);_defineProperty$g(Tooltip$2,"defaultProps",_objectSpread$d({},baseDefaultProps));var _excluded$k=["children"];function _objectWithoutProperties$i(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$h(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$h(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function StatefulTooltip(n){var o=n.children,e=_objectWithoutProperties$i(n,_excluded$k);return reactExports.createElement(StatefulContainer,e,function(t){return reactExports.createElement(Tooltip$2,t,o)})}StatefulTooltip.defaultProps=StatefulContainer.defaultProps;const StyledWrapper=styled("div",{target:"etx0m6x0"})({display:"table",tableLayout:"fixed",width:"100%"}),StyledEllipsizedDiv=styled("div",{target:"etx0m6x1"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell"}),StyledTooltipContentWrapper=styled("div",{target:"etx0m6x2"})(({theme:n})=>({boxSizing:"border-box",fontSize:`${n.fontSizes.sm}`,maxWidth:`calc(${n.sizes.contentMaxWidth} - 2 * ${n.spacing.threeXL})`,maxHeight:n.sizes.maxTooltipHeight,overflow:"auto",padding:`${n.spacing.xs} ${n.spacing.md}`,[`@media (max-width: ${n.breakpoints.sm})`]:{maxWidth:`calc(100% - ${n.spacing.threeXL})`},img:{maxWidth:"100%"},"*":{fontSize:n.fontSizes.sm}}
92));function useTooltipMeasurementSideEffect(n,o){const{innerWidth:e}=useWindowDimensionsContext();reactExports.useEffect(()=>{const t=n?.parentElement;if(!t)return;(async()=>{const p=()=>{const N=t.getBoundingClientRect();return N.x!==0||N.y!==0?N:null};let h=null,y=0;const g=5;for(;!h&&y<g;)h=p(),h||(y++,await new Promise(N=>requestAnimationFrame(N)));h||(h=t.getBoundingClientRect());const $=h.x,E=$+h.width-e,A=t.parentElement;if(E>0&&A){const N=new DOMMatrix(window.getComputedStyle(A)?.transform);A.style.transform=`translate3d(${N.e-E}px, ${N.f}px, 0px)`}$<0&&(t.style.left=`${-$}px`)})()},[n,o,e])}var Placement=function(n){return n.AUTO="auto",n.TOP_LEFT="topLeft",n.TOP="top",n.TOP_RIGHT="topRight",n.RIGHT_TOP="rightTop",n.RIGHT="right",n.RIGHT_BOTTOM="rightBottom",n.BOTTOM_RIGHT="bottomRight",n.BOTTOM="bottom",n.BOTTOM_LEFT="bottomLeft",n.LEFT_BOTTOM="leftBottom",n.LEFT="left",n.LEFT_TOP="leftTop",n}({});const generateDefaultTooltipOverrides=(n,o)=>{const{colors:e,fontSizes:t,radii:c,fontWeights:p}=n;return{Body:{style:{borderTopLeftRadius:c.default,borderTopRightRadius:c.default,borderBottomLeftRadius:c.default,borderBottomRightRadius:c.default,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}}
92,Inner:{style:{backgroundColor:hasLightBackgroundColor(n)?e.bgColor:e.secondaryBg,color:e.bodyText,fontSize:t.sm,fontWeight:p.normal,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"},...o}}};function Tooltip({content:n,placement:o,children:e,inline:t,style:c,onMouseEnterDelay:p,overrides:h,containerWidth:y,error:g}){const $=useEmotionTheme(),[E,A]=reactExports.useState(null),[N,H]=reactExports.useState(!1),Z=reactExports.useCallback(()=>{H(!0)},[]),X=reactExports.useCallback(()=>{H(!1)},[]);useTooltipMeasurementSideEffect(E,N);const be=generateDefaultTooltipOverrides($,h);return jsx$1(StatefulTooltip,{onOpen:Z,onClose:X,content:n?jsx$1(StyledTooltipContentWrapper,{className:g?"stTooltipErrorContent":"stTooltipContent","data-testid":g?"stTooltipErrorContent":"stTooltipContent",ref:A,children:n}):null,placement:PLACEMENT[o],accessibilityType:ACCESSIBILITY_TYPE.tooltip,showArrow:!1,popoverMargin:10,onMouseEnterDelay:p,overrides:be,children:jsx$1("div",{style:{display:"flex",flexDirection:"row",justifyContent:t?"flex-end":"",width:y?"100%":"auto",...c},"data-testid":g?"stTooltipErrorHoverTarget":"stTooltipHoverTarget",className:g?"stTooltipErrorHoverTarget":"stTooltipHoverTarget",children:e})})}const Tooltip$1=reactExports.memo(Tooltip);function OverflowTooltip({content:n,placement:o,children:e,inline:t,style:c}){const p=React.useRef(null),[h,y]=reactExports.useState(!1);return React.useEffect(()=>{const g=p?.current?p.current.offsetWidth<p.current.scrollWidth:!1;g!==h&&y(g)},[e,h]),jsx$1(Tooltip$1,{content:h?n:"",placement:o,inline:t,children:jsx$1(StyledWrapper,{children:jsx$1(StyledEllipsizedDiv,{ref:p,style:c,children:e})})})}function TooltipIcon({placement:n=Placement.AUTO,isLatex:o=!1,content:e,children:t,markdownProps:c,onMouseEnterDelay:p,containerWidth:h=!1}){const y=useEmotionTheme();return jsx$1(StyledTooltipIconWrapper,{className:"stTooltipIcon","data-testid":"stTooltipIcon",isLatex:o,children:jsx$1(Tooltip$1,{content:jsx$1(StreamlitMarkdown$1,{style:{fontSize:y.fontSizes.sm},source:e,allowHTML:!1,...c||{}}),placement:n,onMouseEnterDelay:p,inline:!0,containerWidth:h,children:t||jsx$1(HelpCircle,{className:"icon",size:convertRemToPx(y.iconSizes.base)})})})}const InlineTooltipIcon=({placement:n=Placement.TOP_RIGHT,isLatex:o=!1,content:e,children:t,markdownProps:c})=>jsx$1(StyledLabelHelpInline,{children:jsx$1(TooltipIcon,{placement:n,isLatex:o,content:e,markdownProps:c,children:t})});function convertRemToEm(n){return n.replace(/rem$/,"em")}function sharedMarkdownStyle(n){return{a:{color:n.colors.link,textDecoration:n.linkUnderline?"underline":"none"}}}function convertFontSizes(n,o,e){if(o){const t=roundFontSizeToNearestEighth(parseFloat(n)*.65),c=`${Math.max(t,.75)}rem`;return e?convertRemToEm(c):c}return e?convertRemToEm(n):n}function getMarkdownHeadingDefinitions(n,o,e){return{"h1, h2, h3, h4, h5, h6":{fontFamily:n.genericFonts.headingFont,lineHeight:n.lineHeights.headings,margin:0,color:"inherit"},h1:{fontSize:convertFontSizes(n.fontSizes.h1FontSize,o,e),fontWeight:n.fontWeights.h1FontWeight,padding:`${n.spacing.xl} 0 ${n.spacing.lg} 0`},"h1 b, h1 strong":{fontWeight:n.fontWeights.h1FontWeight},"h2, h3":{letterSpacing:"-0.005em"},h2:{fontSize:convertFontSizes(n.fontSizes.h2FontSize,o,e),fontWeight:n.fontWeights.h2FontWeight,padding:`${n.spacing.lg} 0 ${n.spacing.lg} 0`},h3:{fontSize:convertFontSizes(n.fontSizes.h3FontSize,o,e),fontWeight:n.fontWeights.h3FontWeight,padding:`${n.spacing.md} 0 ${n.spacing.lg} 0`},h4:{fontSize:convertFontSizes(n.fontSizes.h4FontSize,o,e),fontWeight:n.fontWeights.h4FontWeight,padding:`${n.spacing.sm} 0 ${n.spacing.lg} 0`},h5:{fontSize:convertFontSizes(n.fontSizes.h5FontSize,o,e),fontWeight:n.fontWeights.h5FontWeight,padding:`${n.spacing.xs} 0 ${n.spacing.lg} 0`},h6:{fontSize:convertFontSizes(n.fontSizes.h6FontSize,o,e),fontWeight:n.fontWeights.h6FontWeight,padding:`${n.spacing.twoXS} 0 ${n.spacing.lg} 0`}}}const StyledStreamlitMarkdown=styled("div",{target:"eqpbrs00"})(({theme:n,isCaption:o,isInDialog:e,isLabel:t,inheritFont:c,boldLabel:p,largerLabel:h,isToast:y})=>{const g=t&&!h||y||o;return{fontFamily:c?"inherit":n.genericFonts.bodyFont,fontSize:c?"inherit":g?n.fontSizes.sm:n.fontSizes.md,marginBottom:t?"":`-${n.spacing.lg}`,opacity:o?.6:void 0,color:"inherit",maxWidth:"100%",width:t?"":"100%",overflowWrap:"break-word",...sharedMarkdownStyle(n),...getMarkdownHeadingDefinitions(n,e,o),"&:has(.k
92atex-display)":{overflowX:"hidden"},p:{wordBreak:"break-word",marginBottom:t?n.spacing.none:"",fontWeight:c?"inherit":p?n.fontWeights.bold:"",marginTop:n.spacing.none,marginLeft:n.spacing.none,marginRight:n.spacing.none},img:{maxWidth:"100%",maxHeight:t?"1em":void 0,verticalAlign:"middle",objectFit:"scale-down"},li:{margin:"0.2em 0 0.2em 1.15em",padding:"0 0 0 0.3em"},"li.task-list-item":{listStyleType:"none",padding:"0",marginLeft:"0","input[type='checkbox']":{verticalAlign:"middle",margin:"0 0.35em 0.1em 0"}},blockquote:{margin:"1em 0 1em 0",padding:"0 0 0 0.75em",borderLeft:`0.15em solid ${n.colors.borderColor}`,opacity:.6},"b, strong":{fontWeight:n.fontWeights.bold},"b code, strong code":{fontWeight:n.fontWeights.codeBold},hr:{margin:"2em 0",padding:0,color:"inherit",backgroundColor:"transparent",border:"none",borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,"&:not([size])":{height:n.sizes.borderWidth}},table:{display:"table",borderCollapse:"collapse",marginBottom:n.spacing.lg},tr:{borderTop:`${n.sizes.borderWidth} solid ${n.colors.dataframeBorderColor}`},th:{textAlign:"inherit"},"th, td":{padding:`${n.spacing.xs} ${n.spacing.md}`,border:`${n.sizes.borderWidth} solid ${n.colors.dataframeBorderColor}`},"span.stMarkdownColoredBackground":{borderRadius:n.radii.md,padding:`${n.spacing.threeXS} ${n.spacing.twoXS}`,margin:n.spacing.none,boxDecorationBreak:"clone"},"span.stMarkdownBadge":{borderRadius:n.radii.md,padding:`0 ${n.spacing.twoXS}`,margin:`0 ${n.spacing.px}`,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",display:"inline-block",verticalAlign:"middle"},"p, ol, ul, dl, li":{fontSize:"inherit"},"& > ul, & > ol":{display:"block",width:"fit-content",textAlign:"left"},"li > ul, li > ol":{display:"block"},".katex-display":{overflowX:"auto",overflowY:"hidden"},".katex":{fontWeight:n.fontWeights.normal}}}),StyledLinkIcon=styled("a",{target:"eqpbrs01"})(({theme:n})=>({lineHeight:0,display:"inline-flex",alignItems:"center",justifyContent:"center",svg:{stroke:n.colors.fadedText60,strokeWidth:2.25},"&:hover svg":{stroke:n.colors.bodyText}})),StyledHeadingWithActionElements=styled("div",{target:"eqpbrs02"})(({theme:n})=>({"h1, h2, h3, h4, h5, h6, span":{scrollMarginTop:n.sizes.headerHeight},...sharedMarkdownStyle(n),wordBreak:"break-word",textWrap:"pretty",[StyledLinkIcon]:{visibility:"hidden"},"&:hover":{[StyledLinkIcon]:{visibility:"visible"}}})),StyledHeadingActionElements=styled("span",{target:"eqpbrs03"})(({theme:n})=>({marginLeft:n.spacing.sm,display:"inline-flex",gap:n.spacing.sm,verticalAlign:"middle","& > *":{marginLeft:"0 !important"}})),StyledHeaderDivider=styled("hr",{target:"eqpbrs04"})(({theme:n,rainbow:o,color:e})=>({height:`${n.spacing.threeXS} !important`,marginTop:n.spacing.sm,marginBottom:n.spacing.none,border:"none",borderRadius:n.radii.full,...o?{background:e}:{backgroundColor:e}})),StyledPreWrapper=styled("div",{target:"eqpbrs05"})(({theme:n})=>({marginBottom:n.spacing.lg})),StyledHelpIconWrapper=styled("span",{target:"eqpbrs06"})({display:"inline-block",verticalAlign:"middle",transform:"translateY(-0.1em)"}),LOAD_FAILED=Symbol("plugin_load_failed"),pluginCache={katex:null,raw:null,emoji:null},loadingPromises={katex:null,raw:null,emoji:null},loadKatexPlugin=()=>__vitePreload(()=>import("./index.Dou8UoAD.js"),__vite__mapDeps([0,1]),import.meta.url),loadKatexStyles=once(()=>{__vitePreload(()=>Promise.resolve().then(()=>katex_min),void 0,import.meta.url)}),loadRehypeRaw=()=>__vitePreload(()=>import("./index.DRgFBrOW.js"),__vite__mapDeps([2,1]),import.meta.url),loadRemarkEmoji=()=>__vitePreload(()=>import("./index.CinPJsaI.js"),__vite__mapDeps([3,4]),import.meta.url);function isLoadedPlugin(n){return n!==null&&n!==LOAD_FAILED}function extractPlugin(n,o){const e=[];let t=n,c=0;for(;t&&typeof t=="object"&&"default"in t&&c<5;){const p=t.default;if(e.push(p),p===t)break;t=p,c+=1}e.push(n);for(const p of e)if(typeof p=="function")return p;return console.warn(`[StreamlitMarkdown] Failed to load ${o} plugin`),LOAD_FAILED}function wrapRehypePlugin(n,o){return e=>{const t=n(e);return(c,p)=>{if(!c)return c;try{return t(c,p)}catch(h){return console.error(`[StreamlitMarkdown] ${o} crashed while transforming`,h),c}}}}function wrapRemarkPlugin(n,o){return e=>{const t=n(e);return(c,p)=>{if(!c)return c;try{return t(c,p)}catch(h){return console.error(`[StreamlitMarkdown] ${o} crashed while transforming`,h),c}}}}function useLazyPlugin(n){const{key:o,needed:e,load:t,pluginName:c,onBeforeLoad:p}=n,h=e?pluginCache[o]:null,[y,g]=reactExports.useState(null);return reactExports.useEffect(()=>{if(!e||h||y)return;const $=loadingPromises[o];if($){let N=!1;return $.then(H=>{N||g(()=>H)}),()=>{N=!0}}p?.();let E=!1;const A=t().then(N=>extractPlugin(N,c)).then(N=>(pluginCache[o]=N,E||g(()=>N),N)).catch(()=>{const N=LOAD_FAILED;return pluginCache[o]=N,E||g(()=>N),N}).finally(()=>{loadingPromises[o]=null});return loadingPromises[o]=A,()=>{E=!0}},[e,h,y,o,t,c,p]),e?h??y:null}const StreamlitSyntaxHighlighter$1=reactExports.lazy(()=>__vitePreload(()=>import("./StreamlitSyntaxHighlighter.DU42g8NY.js"),[],import.meta.url));function containsEmojiShortcodes(n){return/:(?!material\/|streamlit:)[\w+-][\w_+-]*:/.test(n)}function containsMathSyntax(n){return new RegExp("\\$\\$[\\s\\S]+?\\$\\$|\\$(?!\\s)[^$\\n]+?(?<!\\s)\\$").test(n)}var Tags=function(n){return n.H1="h1",n.H2="h2",n.H3="h3",n}({});function rehypeSetCodeInlineProperty(){return n=>{visit(n,"element",(o,e,t)=>{o.tagName==="code"&&(t?.type==="element"&&t.tagName==="pre"?o.properties={...o.properties,inline:!1}:o.properties={...o.properties,inline:!0})})}}function createAnchorFromText(n){if(!n)return"";const o=slugify(n);return o.length>0?o:xxhash.h32(n,43981).toString(16)}function transformLinkUri(n){return n}const scrollNodeIntoView=once(n=>{n.scrollIntoView(!0)}),HeaderActionElements=({elementId:n,help:o,hideAnchor:e})=>{const t=useEmotionTheme();return!o&&e?jsx$1(Fragment,{}):jsxs(StyledHeadingActionElements,{"data-testid":"stHeaderActionElements",children:[o&&jsx$1(InlineTooltipIcon,{content:o}),n&&!e&&jsx$1(StyledLinkIcon,{href:`#${n}
92`,children:jsx$1(Link2,{size:convertRemToPx(t.iconSizes.base)})})]})},HeadingWithActionElements=({tag:n,anchor:o,help:e,hideAnchor:t,children:c,tagProps:p})=>{const h=reactExports.useContext(IsSidebarContext),y=reactExports.useContext(IsDialogContext),[g,$]=reactExports.useState(o),E=reactExports.useCallback(be=>{if(be===null)return;const we=o||createAnchorFromText(be.textContent);$(we);const $e=window.location.hash.slice(1);$e&&$e===we&&scrollNodeIntoView(be)},[o]),A=h||y,X=jsxs(n,{...p,...A?{}:{ref:E,id:g},children:[c,jsx$1(HeaderActionElements,{elementId:g,help:e,hideAnchor:t||A})]});return A?X:jsx$1(StyledHeadingWithActionElements,{"data-testid":"stHeadingWithActionElements",children:X})},CustomHeading=({node:n,children:o,...e})=>{const t=e["data-anchor"];return jsx$1(HeadingWithActionElements,{tag:n.tagName,anchor:t,tagProps:e,children:o})},CustomCodeTag=({inline:n,className:o,children:e,...t})=>{const c=/language-(\w+)/.exec(o||""),p=String(e??"").replace(/^\n/,"").replace(/\n$/,""),h=c?.[1]||"";return n?jsx$1(StyledInlineCode,{className:o,...omit(t,"node"),children:e}):jsx$1(ErrorBoundary,{children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsx$1(StreamlitSyntaxHighlighter$1,{language:h,showLineNumbers:!1,children:p})})})},CustomPreTag=({children:n})=>jsx$1(StyledPreWrapper,{"data-testid":"stMarkdownPre",children:n}),CustomMediaTag=({node:n,...o})=>{const e=useCrossOriginAttribute(o.src),t=n.tagName,c={...o,crossOrigin:e};return jsx$1(t,{...c})},HelpTextContext=React.createContext(void 0);HelpTextContext.displayName="HelpTextContext";const CustomHelpIcon=({children:n})=>{const e=reactExports.useContext(HelpTextContext)||(typeof n=="string"?n:"");return jsx$1(StyledHelpIconWrapper,{children:jsx$1(InlineTooltipIcon,{content:e})})},BASE_RENDERERS={pre:CustomPreTag,code:CustomCodeTag,h1:CustomHeading,h2:CustomHeading,h3:CustomHeading,h4:CustomHeading,h5:CustomHeading,h6:CustomHeading,img:CustomMediaTag,video:CustomMediaTag,audio:CustomMediaTag,"streamlit-help-icon":CustomHelpIcon};function createColorMapping(n){const{red:o,orange:e,yellow:t,green:c,blue:p,violet:h,purple:y,gray:g,primary:$}=getMarkdownTextColors(n),{redbg:E,orangebg:A,yellowbg:N,greenbg:H,bluebg:Z,violetbg:X,purplebg:be,graybg:we,primarybg:$e}=getMarkdownBgColors(n);return new Map(Object.entries({red:`color: ${o}`,orange:`color: ${e}`,yellow:`color: ${t}`,blue:`color: ${p}`,green:`color: ${c}`,violet:`color: ${h}`,gray:`color: ${g}`,grey:`color: ${g}`,primary:`color: ${$}`,rainbow:`color: transparent; background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(to right, 93 ${o}, ${e}, ${t}, ${c}, ${p}, ${h}, ${y});`,"red-background":`background-color: ${E}`,"orange-background":`background-color: ${A}`,"yellow-background":`background-color: ${N}`,"blue-background":`background-color: ${Z}`,"green-background":`background-color: ${H}`,"violet-background":`background-color: ${X}`,"gray-background":`background-color: ${we}`,"grey-background":`background-color: ${we}`,"primary-background":`background-color: ${$e}`,"rainbow-background":`background: linear-gradient(to right, 94 ${E}, ${A}, ${N}, ${H}, ${Z}, ${X}, ${be});`}))}function createRemarkHelpIcon(){return()=>n=>(visit(n,"textDirective",(o,e,t)=>{if(String(o.name)==="help"){const p=o.data||(o.data={});p.hName="streamlit-help-icon",p.hProperties=p.hProperties||{};return}}),n)}function createRemarkColoringAndSmall(n,o){return()=>e=>(visit(e,"textDirective",(t,c,p)=>{const h=String(t.name);if(h==="small"){const g=t.data||(t.data={});g.hName="span",g.hProperties=g.hProperties||{},g.hProperties.style=`font-size: ${n.fontSizes.sm};`;return}const y=h.match(/^(.+)-badge$/);if(y&&o.has(y[1])){const g=y[1];if(g==="rainbow")return;const $=o.get(g),E=o.get(`${g}-background`);if($&&E){const A=t.data||(t.data={});A.hName="span",A.hProperties=A.hProperties||{},A.hProperties.className="stMarkdownBadge",A.hProperties.style=`${E}; ${$}; font-size: ${n.fontSizes.sm};`;return}}if(o.has(h)){const g=t.data||(t.data={}),$=o.get(h);g.hName="span",g.hProperties=g.hProperties||{},g.hProperties.style=$,g.hProperties.className="stMarkdownColoredText",$&&(/background-color:/.test($)||/background:/.test($))&&(g.hProperties.className="stMarkdownColoredBackgroun
94d");return}t.data?.hName||(t.type="text",t.value=`:${h}`,t.data={})}),e)}function createRemarkMaterialIcons(n){return()=>o=>{function e(t,c){return{type:"text",value:t,data:{hName:"span",hProperties:{role:"img",ariaLabel:c+" icon",translate:"no",style:` 95 display: inline-block; 96 font-family: ${n.genericFonts.iconFont}; 97 font-weight: ${n.fontWeights.normal}; 98 user-select: none; 99 vertical-align: bottom; 100 white-space: nowrap; 101 word-wrap: normal; 102 `},hChildren:[{type:"text",value:c}]}}}return findAndReplace(o,[[/:material_(\w+):/g,e]]),o}}function createRemarkStreamlitLogo(){return()=>n=>{function o(){return{type:"text",value:"",data:{hName:"img",hProperties:{src:streamlitLogo,alt:"Streamlit logo",style:"display: inline-block; user-select: none; height: 0.75em; vertical-align: baseline; margin-bottom: -0.05ex;"}}}}return findAndReplace(n,[[/:streamlit:/g,o]]),n}}function createRemarkTypographicalSymbols(){return()=>n=>(visit(n,(o,e,t)=>{if(!(t&&(t.type==="link"||t.type==="linkReference"))&&o.type==="text"&&o.value){const c=[[/(^|\s)<->(\s|$)/g,"$1â$2"],[/(^|\s)->(\s|$)/g,"$1â$2"],[/(^|\s)<-(\s|$)/g,"$1â$2"],[/(^|\s)--(\s|$)/g,"$1â$2"],[/(^|\s)>=(\s|$)/g,"$1â¥$2"],[/(^|\s)<=(\s|$)/g,"$1â¤$2"],[/(^|\s)~=(\s|$)/g,"$1â$2"]];let p=o.value;for(const[h,y]of c)p=p.replace(h,y);p!==o.value&&(o.value=p)}}),n)}const BASE_REMARK_PLUGINS=[remarkMath,remarkGfm,remarkDirective,createRemarkHelpIcon(),createRemarkStreamlitLogo(),createRemarkTypographicalSymbols()],LABEL_DISALLOWED_ELEMENTS=["table","thead","tbody","tr","th","td","h1","h2","h3","h4","h5","h6","ul","ol","li","input","hr","blockquote"],LINKS_DISALLOWED_ELEMENTS=[...LABEL_DISALLOWED_ELEMENTS,"a"];function LinkWithTargetBlank(n){const{href:o}=n;if(o?.startsWith("#")){const{children:y,...g}=n;return jsx$1("a",{...omit(g,"node"),children:y})}const{title:e,children:t,target:c,rel:p,...h}=n;return jsx$1("a",{href:o,title:e,target:c||"_blank",rel:p||"noopener noreferrer",...omit(h,"node"),children:t})}const RenderedMarkdown=reactExports.memo(function n({allowHTML:o,source:e,overrideComponents:t,isLabel:c,disableLinks:p,helpText:h}){const y=useEmotionTheme(),g=reactExports.useMemo(()=>containsMathSyntax(e),[e]),$=reactExports.useMemo(()=>containsEmojiShortcodes(e),[e]),E=useLazyPlugin({key:"katex",needed:g,load:loadKatexPlugin,pluginName:"rehype-katex",onBeforeLoad:loadKatexStyles}),A=useLazyPlugin({key:"raw",needed:o,load:loadRehypeRaw,pluginName:"rehype-raw"}),N=useLazyPlugin({key:"emoji",needed:$,load:loadRemarkEmoji,pluginName:"remark-emoji"}),H=reactExports.useMemo(()=>createColorMapping(y),[y]),Z=reactExports.useMemo(()=>isLoadedPlugin(E)?wrapRehypePlugin(E,"rehype-katex"):null,[E]),X=reactExports.useMemo(()=>isLoadedPlugin(A)?wrapRehypePlugin(A,"rehype-raw"):null,[A]),be=reactExports.useMemo(()=>isLoadedPlugin(N)?wrapRemarkPlugin(N,"remark-emoji"):null,[N]),we=reactExports.useMemo(()=>{const Be=[...BASE_REMARK_PLUGINS,createRemarkColoringAndSmall(y,H),createRemarkMaterialIcons(y)];return $&&be&&Be.push(be),Be},[y,H,$,be]),$e=reactExports.useMemo(()=>{const Be=[];return g&&Z&&Be.push(Z),o&&X&&Be.push(X),Be.push(rehypeSetCodeInlineProperty),Be},[o,g,Z,X]),Ce=reactExports.useMemo(()=>({...BASE_RENDERERS,a:LinkWithTargetBlank,...t||{}}),[t]),Ie=reactExports.useMemo(()=>e.replaceAll(":material/",":material_"),[e]),Ne=reactExports.useMemo(()=>c?p?LINKS_DISALLOWED_ELEMENTS:LABEL_DISALLOWED_ELEMENTS:[],[c,p]);return g&&E===null||o&&A===null||$&&N===null?jsx$1(ErrorBoundary,{children:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})})}):jsx$1(HelpTextContext.Provider,{value:h,children:jsx$1(ErrorBoundary,{children:jsx$1(Markdown$2,{remarkPlugins:we,rehypePlugins:$e,components:Ce,urlTransform:transformLinkUri,disallowedElements:Ne,unwrapDisallowed:!0,children:Ie})})})}),StreamlitMarkdown=({source:n,allowHTML:o,style:e,isCaption:t,isLabel:c,boldLabel:p,largerLabel:h,disableLinks:y,isToast:g,inheritFont:$,helpText:E})=>{const A=reactExports.useContext(IsDialogContext);return jsx$1(StyledStreamlitMarkdown,{isCaption:!!t,isInDialog:A,isLabel:c,inheritFont:$,boldLabel:p,largerLabel:h,isToast:g,style:e,"data-testid":t?"stCaptionContainer":"stMarkdownContainer",children:jsx$1(RenderedMarkdown,{source:n,allowHTML:o,isLabel:c,disableLinks:y,helpText:E})})},StreamlitMarkdown$1=reactExports.memo(StreamlitMarkdown),isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent(n,o,e,t){n.addEventListener?n.addEventListener(o,e,t):n.attachEvent&&n.attachEvent("on".concat(o),e)}function removeEvent(n,o,e,t){n.removeEventListener?n.removeEventListener(o,e,t):n.detachEvent&&n.detachEvent("on".concat(o),e)}function getMods(n,o){const e=o.slice(0,o.length-1);for(let t=0;t<e.length;t++)e[t]=n[e[t].toLowerCase()];return e}
102function getKeys(n){typeof n!="string"&&(n=""),n=n.replace(/\s/g,"");const o=n.split(",");let e=o.lastIndexOf("");for(;e>=0;)o[e-1]+=",",o.splice(e,1),e=o.lastIndexOf("");return o}function compareArray(n,o){const e=n.length>=o.length?n:o,t=n.length>=o.length?o:n;let c=!0;for(let p=0;p<e.length;p++)t.indexOf(e[p])===-1&&(c=!1);return c}const _keyMap={backspace:8,"â«":8,tab:9,clear:12,enter:13,"â©":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"âª":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"â§":16,shift:16,"â¥":18,alt:18,option:18,"â":17,ctrl:17,control:17,"â":91,cmd:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={};for(let n=1;n<20;n++)_keyMap["f".concat(n)]=111+n;let _downKeys=[],winListendFocus=null,_scope="all";const elementEventMap=new Map,code=n=>_keyMap[n.toLowerCase()]||_modifier[n.toLowerCase()]||n.toUpperCase().charCodeAt(0),getKey=n=>Object.keys(_keyMap).find(o=>_keyMap[o]===n),getModifier=n=>Object.keys(_modifier).find(o=>_modifier[o]===n);function setScope(n){_scope=n||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map(n=>getKey(n)||getModifier(n)||String.fromCharCode(n))}function getAllKeyCodes(){const n=[];return Object.keys(_handlers).forEach(o=>{_handlers[o].forEach(e=>{let{key:t,scope:c,mods:p,shortcut:h}=e;n.push({scope:c,shortcut:h,mods:p,keys:t.split("+").map(y=>code(y))})})}),n}function filter(n){const o=n.target||n.srcElement,{tagName:e}=o;let t=!0;const c=e==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(o.type);return(o.isContentEditable||(c||e==="TEXTAREA"||e==="SELECT")&&!o.readOnly)&&(t=!1),t}function isPressed(n){return typeof n=="string"&&(n=code(n)),_downKeys.indexOf(n)!==-1}function deleteScope(n,o){let e,t;n||(n=getScope());for(const c in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,c))for(e=_handlers[c],t=0;t<e.length;)e[t].scope===n?e.splice(t,1).forEach(h=>{let{element:y}=h;return removeKeyEvent(y)}):t++;getScope()===n&&setScope(o||"all")}function clearModifier(n){let o=n.keyCode||n.which||n.charCode;const e=_downKeys.indexOf(o);if(e>=0&&_downKeys.splice(e,1),n.key&&n.key.toLowerCase()==="meta"&&_downKeys.splice(0,_downKeys.length),(o===93||o===224)&&(o=91),o in _mods){_mods[o]=!1;for(const t in _modifier)_modifier[t]===o&&(hotkeys[t]=!1)}}function unbind(n){if(typeof n>"u")Object.keys(_handlers).forEach(c=>{Array.isArray(_handlers[c])&&_handlers[c].forEach(p=>eachUnbind(p)),delete _handlers[c]}),removeKeyEvent(null);else if(Array.isArray(n))n.forEach(c=>{c.key&&eachUnbind(c)});else if(typeof n=="object")n.key&&eachUnbind(n);else if(typeof n=="string"){for(var o=arguments.length,e=new Array(o>1?o-1:0),t=1;t<o;t++)e[t-1]=arguments[t];let[c,p]=e;typeof c=="function"&&(p=c,c=""),eachUnbind({key:n,scope:c,method:p,splitKey:"+"})}}const eachUnbind=n=>{let{key:o,scope:e,method:t,splitKey:c="+"}=n;getKeys(o).forEach(h=>{const y=h.split(c),g=y.length,$=y[g-1],E=$==="*"?"*":code($);if(!_handlers[E])return;e||(e=getScope());const A=g>1?getMods(_modifier,y):[],N=[];_handlers[E]=_handlers[E].filter(H=>{const X=(t?H.method===t:!0)&&H.scope===e&&compareArray(H.mods,A);return X&&N.push(H.element),!X}),N.forEach(H=>removeKeyEvent(H))})};function eventHandler(n,o,e,t){if(o.element!==t)return;let c;if(o.scope===e||o.scope==="all"){c=o.mods.length>0;for(const p in _mods)Object.prototype.hasOwnProperty.call(_mods,p)&&(!_mods[p]&&o.mods.indexOf(+p)>-1||_mods[p]&&o.mods.indexOf(+p)===-1)&&(c=!1);(o.mods.length===0&&!_mods[16]&&!_mods[18]&&!_mods[17]&&!_mods[91]||c||o.shortcut==="*")&&(o.keys=[],o.keys=o.keys.concat(_downKeys),o.method(n,o)===!1&&(n.preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation&&n.stopPropagation(),n.cancelBubble&&(n.cancelBubble=!0)))}}function dispatch(n,o){const e=_handlers["*"];
102let t=n.keyCode||n.which||n.charCode;if(!hotkeys.filter.call(this,n))return;if((t===93||t===224)&&(t=91),_downKeys.indexOf(t)===-1&&t!==229&&_downKeys.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach(y=>{const g=modifierMap[y];n[y]&&_downKeys.indexOf(g)===-1?_downKeys.push(g):!n[y]&&_downKeys.indexOf(g)>-1?_downKeys.splice(_downKeys.indexOf(g),1):y==="metaKey"&&n[y]&&_downKeys.length===3&&(n.ctrlKey||n.shiftKey||n.altKey||(_downKeys=_downKeys.slice(_downKeys.indexOf(g))))}),t in _mods){_mods[t]=!0;for(const y in _modifier)_modifier[y]===t&&(hotkeys[y]=!0);if(!e)return}for(const y in _mods)Object.prototype.hasOwnProperty.call(_mods,y)&&(_mods[y]=n[modifierMap[y]]);n.getModifierState&&!(n.altKey&&!n.ctrlKey)&&n.getModifierState("AltGraph")&&(_downKeys.indexOf(17)===-1&&_downKeys.push(17),_downKeys.indexOf(18)===-1&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);const c=getScope();if(e)for(let y=0;y<e.length;y++)e[y].scope===c&&(n.type==="keydown"&&e[y].keydown||n.type==="keyup"&&e[y].keyup)&&eventHandler(n,e[y],c,o);if(!(t in _handlers))return;const p=_handlers[t],h=p.length;for(let y=0;y<h;y++)if((n.type==="keydown"&&p[y].keydown||n.type==="keyup"&&p[y].keyup)&&p[y].key){const g=p[y],{splitKey:$}=g,E=g.key.split($),A=[];for(let N=0;N<E.length;N++)A.push(code(E[N]));A.sort().join("")===_downKeys.sort().join("")&&eventHandler(n,g,c,o)}}function hotkeys(n,o,e){_downKeys=[];const t=getKeys(n);let c=[],p="all",h=document,y=0,g=!1,$=!0,E="+",A=!1,N=!1;for(e===void 0&&typeof o=="function"&&(e=o),Object.prototype.toString.call(o)==="[object Object]"&&(o.scope&&(p=o.scope),o.element&&(h=o.element),o.keyup&&(g=o.keyup),o.keydown!==void 0&&($=o.keydown),o.capture!==void 0&&(A=o.capture),typeof o.splitKey=="string"&&(E=o.splitKey),o.single===!0&&(N=!0)),typeof o=="string"&&(p=o),N&&unbind(n,p);y<t.length;y++)n=t[y].split(E),c=[],n.length>1&&(c=getMods(_modifier,n)),n=n[n.length-1],n=n==="*"?"*":code(n),n in _handlers||(_handlers[n]=[]),_handlers[n].push({keyup:g,keydown:$,scope:p,mods:c,shortcut:t[y],method:e,key:t[y],splitKey:E,element:h});if(typeof h<"u"&&window){if(!elementEventMap.has(h)){const H=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(X,h)},Z=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(X,h),clearModifier(X)};elementEventMap.set(h,{keydownListener:H,keyupListenr:Z,capture:A}),addEvent(h,"keydown",H,A),addEvent(h,"keyup",Z,A)}if(!winListendFocus){const H=()=>{_downKeys=[]};winListendFocus={listener:H,capture:A},addEvent(window,"focus",H,A)}}}function trigger(n){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(_handlers).forEach(e=>{_handlers[e].filter(c=>c.scope===o&&c.shortcut===n).forEach(c=>{c&&c.method&&c.method()})})}function removeKeyEvent(n){const o=Object.values(_handlers).flat();if(o.findIndex(t=>{let{element:c}=t;return c===n})<0){const{keydownListener:t,keyupListenr:c,capture:p}=elementEventMap.get(n)||{};t&&c&&(removeEvent(n,"keyup",c,p),removeEvent(n,"keydown",t,p),elementEventMap.delete(n))}if((o.length<=0||elementEventMap.size<=0)&&(Object.keys(elementEventMap).forEach(c=>{const{keydownListener:p,keyupListenr:h,capture:y}=elementEventMap.get(c)||{};p&&h&&(removeEvent(c,"keyup",h,y),removeEvent(c,"keydown",p,y),elementEventMap.delete(c))}),elementEventMap.clear(),Object.keys(_handlers).forEach(c=>delete _handlers[c]),winListendFocus)){const{listener:c,capture:p}=winListendFocus;removeEvent(window,"focus",c,p),winListendFocus=null}}const _api={getPressedKeyString,setScope,getScope,deleteScope,getPressedKeyCodes,getAllKeyCodes,isPressed,filter,trigger,unbind,keyMap:_keyMap,modifier:_modifier,modifierMap};for(const n in _api)Object.prototype.hasOwnProperty.call(_api,n)&&(hotkeys[n]=_api[n]);if(typeof window<"u"){const n=window.hotkeys;hotkeys.noConflict=o=>(o&&window.hotkeys===hotkeys&&(window.hotkeys=n),hotkeys),window.hotkeys=hotkeys}const EDITABLE_TAGS=new Set(["INPUT","TEXTAREA","SELECT"]),MODIFIER_TOKENS=new Set(["ctrl","cmd","alt","shift","mod"]),SYSTEM_MODIFIERS=new Set(["ctrl","cmd","alt","mod"]),MODIFIER_ORDER=["ctrl","cmd","alt","shift","mod"],MODIFIER_DISPLAY={ctrl:"Ctrl",cmd:"â",alt:"Alt",shift:"Shift",mod:"Mod"},KEY_DISPLAY={enter:"Enter",space:"Space",tab:"Tab",escape:"Esc",backspace:"Backspace",delete:"Delete",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",left:"â",right:"â",up:"â",down:"â"},NAVIGATION_KEYS=new Set(["left","right","up","down","home","end","pageup","pagedown","backspace","delete"]);let filterConfigured=!1;function getEditableEventTarget(n){const o=n.composedPath?.();if(o?.length){for(const t of o){const c=t;if(c?.tagName&&(EDITABLE_TAGS.has(c.tagName)||c.isContentEditable||c.getAttribute("contenteditable")==="true"))return c}return null}const e=n.target||n.srcElement;return e?.tagName&&(EDITABLE_TAGS.has(e.tagName)||e.isContentEditable||e.getAttribute("contenteditable")==="true")?e:null}function isKeyboardEventFromEditableTarget(n){return n?!!getEditableEventTarget(n):!1}function ensureHotkeysFilterConfigured(){filterConfigured||(hotkeys.filter=n=>{if(!getEditableEventTarget(n)||n.key==="Escape"||n.ctrlKey||n.metaKey||n.altKey)return!0;
102if(n.shiftKey){const e=n.key??"";if(e.length>1&&!/^[a-z0-9]$/i.test(e))return!0}return!1},filterConfigured=!0)}function parseShortcutString(n){if(!n)return;const o=n.split("+").map(c=>c.trim().toLowerCase()).filter(Boolean);if(o.length===0)return;let e;for(let c=o.length-1;c>=0;c-=1){const p=o[c];if(!MODIFIER_TOKENS.has(p)){e=p;break}}const t=o.some(c=>SYSTEM_MODIFIERS.has(c));return{tokens:o,baseKey:e,hasSystemModifier:t}}function shouldBlockShortcutInInput(n,o){if(!getEditableEventTarget(o)||n.hasSystemModifier)return!1;const t=n.baseKey;return!!(!t||t.length===1&&/^[a-z0-9]$/i.test(t)||t==="space"||t==="tab"||t==="enter"||NAVIGATION_KEYS.has(t))}function toHotkeysSequenceFromTokens(n){return n.map(o=>o==="cmd"?"command":o).join("+")}function buildSequences(n){if(!n)return[];const{tokens:o}=n,t=isFromMac()?"cmd":"ctrl",c=o.map(h=>h==="cmd"||h==="ctrl"||h==="mod"?t:h),p=Array.from(new Set(c));return[toHotkeysSequenceFromTokens(p)]}function getModifierLabel(n,o){return n==="cmd"||n==="ctrl"||n==="mod"?o?MODIFIER_DISPLAY.cmd:MODIFIER_DISPLAY.ctrl:n==="alt"&&o?"â¥":MODIFIER_DISPLAY[n]}function getKeyLabel(n){return KEY_DISPLAY[n]?KEY_DISPLAY[n]:(n.length===1||n.startsWith("f")&&/^\d+$/.test(n.slice(1)),n.toUpperCase())}function formatShortcutForDisplay(n,o){const e=parseShortcutString(n);if(!e)return;const t=o?.isMac??!1,c=[];if(MODIFIER_ORDER.forEach(p=>{if(e.tokens.includes(p)){const h=getModifierLabel(p,t);h&&c.push(h)}}),e.baseKey&&c.push(getKeyLabel(e.baseKey)),c.length!==0)return c.join(" + ")}function useRegisterShortcut({shortcut:n,disabled:o=!1,onActivate:e}){const t=reactExports.useMemo(()=>parseShortcutString(n),[n]),c=reactExports.useMemo(()=>buildSequences(t),[t]);reactExports.useEffect(()=>{if(!t||c.length===0||o)return;const p=(h,y)=>{o||shouldBlockShortcutInInput(t,h)||(h.preventDefault(),e())};return c.forEach(h=>{hotkeys(h,p)}),()=>{c.forEach(h=>{hotkeys.unbind(h,p)})}},[t,c,o,e])}var BaseButtonKind=function(n){return n.PRIMARY="primary",n.SECONDARY="secondary",n.TERTIARY="tertiary",n.GHOST="ghost",n.BORDERLESS_ICON="borderlessIcon",n.BORDERLESS_ICON_ACTIVE="borderlessIconActive",n.MINIMAL="minimal",n.PRIMARY_FORM_SUBMIT="primaryFormSubmit",n.SECONDARY_FORM_SUBMIT="secondaryFormSubmit",n.TERTIARY_FORM_SUBMIT="tertiaryFormSubmit",n.HEADER_BUTTON="header",n.HEADER_NO_PADDING="headerNoPadding",n.ELEMENT_TOOLBAR="elementToolbar",n.PILLS="pills",n.PILLS_ACTIVE="pillsActive",n.SEGMENTED_CONTROL="segmented_control",n.SEGMENTED_CONTROL_ACTIVE="segmented_controlActive",n}({}),BaseButtonSize=function(n){return n.XSMALL="xsmall",n.SMALL="small",n.MEDIUM="medium",n.LARGE="large",n}({});function getSizeStyle(n,o){switch(n){case"xsmall":return{padding:`${o.spacing.twoXS} ${o.spacing.sm}`,fontSize:o.fontSizes.sm};case"small":return{padding:`${o.spacing.twoXS} ${o.spacing.md}`};case"large":return{padding:`${o.spacing.md} ${o.spacing.md}`};default:return{padding:`${o.spacing.xs} ${o.spacing.md}`}}}const StyledBaseButton=styled("button",{target:"e1q4kxr40"})(({containerWidth:n,size:o,theme:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:e.fontWeights.normal,padding:`${e.spacing.xs} ${e.spacing.md}`,borderRadius:e.radii.button,minHeight:e.sizes.minElementHeight,margin:e.spacing.none,lineHeight:e.lineHeights.base,textTransform:"none",fontSize:"inherit",fontFamily:"inherit",color:"inherit",width:n?"100%":"auto",cursor:"pointer",userSelect:"none","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${transparentize(e.colors.primary,.5)}`},...getSizeStyle(o,e)})),StyledPrimaryButton=styled(StyledBaseButton,{target:"e1q4kxr41"})(({theme:n})=>({backgroundColor:n.colors.primary,color:n.colors.white,border:`${n.sizes.borderWidth} solid ${n.colors.primary}`,"&:hover, &:focus-visible":{backgroundColor:darken(n.colors.primary,.15),borderColor:darken(n.colors.primary,.15)},"&:active":{backgroundColor:n.colors.primary,borderColor:darken(n.colors.primary,.15)},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:n.colors.borderColor,backgroundColor:n.colors.transparent,color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledSecondaryButton=styled(StyledBaseButton,{target:"e1q4kxr42"})(({theme:n})=>({backgroundColor:n.colors.lightenedBg05,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,"&:hover, &:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"&:active":{backgroundColor:n.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:n.colors.borderColor,backgroundColor:n.colors.transparent,color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledTertiaryButton=styled(StyledBaseButton,{target:"e1q4kxr43"})(({theme:n})=>({padding:n.spacing.none,backgroundColor:n.colors.transparent,border:"none","&:hover, &:focus-visible":{color:n.colors.primary},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"span.stMarkdownColoredText":{color:"inherit !important"}},"&:active":{color:darken(n.colors.primary,.25)},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:n.colors.transparent,color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledGhostButton=styled(StyledBaseButton,{target:"e1q4kxr44"})(({theme:n})=>({backgroundColor:n.colors.transparent,border:`${n.sizes.borderWidth} solid ${n.colors.transparent}`,"&:hover, &:focus-visible":{borderColor:n.colors.transparent,color:n.colors.primary},"&:active":{color:n.colors.primary,borderColor:n.colors.transparent,backgroundColor:n.colors.transparent},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:n.colors.gray30,borderColor:n.colors.transparent,color:n.colors.gray60}})),StyledMinimalButton=styled(StyledBaseButton,{target:"e1q4kxr45"})(({theme:n})=>({backgroundColor:n.colors.transparent,border:"none",boxShadow:"none",padding:n.spacing.none,"&:hover, &:active, &:focus-visible":{color:n.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledPrimaryFormSubmitButton=styled(StyledPrimaryButton,{target:"e1q4kxr46"})(),StyledSecondaryFormSubmitButton=styled(StyledSecondaryButton,{target:"e1q4kxr47"})(),StyledTertiaryFormSubmitButton=styled(StyledTertiaryButton,{target:"e1q4kxr48"})(),StyledButtonGroupBaseButton=styled(StyledBaseButton,{target:"e1q4kxr49"})(({theme:n})=>({background:n.colors.bgColor,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,fontSize:n.fontSizes.sm,lineHeight:n.lineHeights.base,fontWeight:n.fontWeights.normal,height:n.sizes.largeLogoHeight,minHeight:n.sizes.largeLogoHeight,maxWidth:n.sizes.contentMaxWidth,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:hover, &:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:n.colors.borderColor,backgroundColor:n.colors.transparent,color:n.colors.fadedText40,cursor:"not-allowed"},"& div":{textOverflow:"ellipsis",overflow:"hidden"},"& p":{textOverflow:"ellipsis",overflow:"hidden"}})),StyledPillsButton=styled(StyledButtonGroupBaseButton,{target:"e1q4kxr410"}
102)(({theme:n,containerWidth:o})=>({borderRadius:n.radii.full,padding:`${n.spacing.twoXS} ${n.spacing.md}`,flex:o?"1 1 fit-content":""})),StyledPillsButtonActive=styled(StyledPillsButton,{target:"e1q4kxr411"})(({theme:n})=>({backgroundColor:transparentize(n.colors.primary,.9),borderColor:n.colors.primary,color:n.colors.primary,"&:hover, &:focus-visible":{backgroundColor:transparentize(n.colors.primary,.8),borderColor:n.colors.primary,color:n.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:n.colors.borderColor,backgroundColor:n.colors.fadedText05,color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledSegmentedControlButton=styled(StyledButtonGroupBaseButton,{target:"e1q4kxr412"})(({theme:n,containerWidth:o})=>({padding:`${n.spacing.twoXS} ${n.spacing.lg}`,borderRadius:"0",flex:o?"1 1 fit-content":"",maxWidth:"100%",marginRight:`-${n.sizes.borderWidth}`,"&:first-child":{borderTopLeftRadius:n.radii.button,borderBottomLeftRadius:n.radii.button},"&:last-child":{borderTopRightRadius:n.radii.button,borderBottomRightRadius:n.radii.button,marginRight:n.spacing.none},"&:focus-visible":{zIndex:n.zIndices.priority}})),StyledSegmentedControlButtonActive=styled(StyledSegmentedControlButton,{target:"e1q4kxr413"})(({theme:n})=>({backgroundColor:transparentize(n.colors.primary,.9),borderColor:n.colors.primary,color:n.colors.primary,zIndex:n.zIndices.priority,"&:hover, &:focus-visible":{backgroundColor:transparentize(n.colors.primary,.8)},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:n.colors.borderColor,backgroundColor:n.colors.fadedText05,color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledHeaderButton=styled(StyledBaseButton,{target:"e1q4kxr414"})(({theme:n})=>({backgroundColor:n.colors.transparent,border:"none",padding:`0 ${n.spacing.sm}`,fontSize:n.fontSizes.sm,marginLeft:n.spacing.threeXS,marginRight:n.spacing.threeXS,lineHeight:n.lineHeights.none,minWidth:n.sizes.headerItemHeight,minHeight:n.sizes.headerItemHeight,"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${transparentize(n.colors.gray90,.8)}`},"&:hover":{backgroundColor:n.colors.darkenedBgMix15},"&:active":{backgroundColor:n.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:n.colors.gray30,borderColor:n.colors.transparent,color:n.colors.gray60}})),StyledHeaderNoPaddingButton=styled(StyledHeaderButton,{target:"e1q4kxr415"})(()=>({padding:0})),StyledBorderlessIconButton=styled(StyledBaseButton,{target:"e1q4kxr416"})(({size:n,theme:o})=>{const e={xsmall:o.spacing.threeXS,small:o.spacing.twoXS,medium:o.spacing.md,large:o.spacing.lg};return{backgroundColor:o.colors.transparent,color:o.colors.fadedText60,padding:e[n],marginLeft:o.spacing.none,marginRight:o.spacing.none,flex:"0 0 fit-content",border:"none",display:"flex",minHeight:"unset","&:focus":{boxShadow:"none",outline:"none"},"&:hover":{color:o.colors.bodyText},"&:disabled, &:disabled:hover, &:disabled:active":{color:o.colors.fadedText10,cursor:"not-allowed",img:{opacity:.4}}}}),StyledBorderlessIconButtonActive=styled(StyledBorderlessIconButton,{target:"e1q4kxr417"})(({theme:n})=>({color:n.colors.bodyText,"&:disabled, &:disabled:hover, &:disabled:active":{color:n.colors.fadedText40}})),StyledTooltipNormal=styled("div",{target:"e1q4kxr418"})(({theme:n})=>({display:"block",[`@media (max-width: ${n.breakpoints.sm})`]:{display:"none"}})),StyledTooltipMobile=styled("div",{target:"e1q4kxr419"})(({theme:n})=>({display:"none",[`@media (max-width: ${n.breakpoints.sm})`]:{display:"block"}})),StyledElementToolbarButton=styled(StyledBaseButton,{target:"e1q4kxr420"})(({theme:n})=>({backgroundColor:n.colors.transparent,border:"none",padding:n.spacing.twoXS,fontSize:n.fontSizes.twoSm,marginLeft:n.spacing.none,marginRight:n.spacing.none,display:"flex",gap:n.spacing.xs,alignItems:"center",minHeight:"unset",lineHeight:n.iconSizes.md,width:"auto","&:focus":{outline:"none",border:"none",boxShadow:"none"},"&:focus-visible":{outline:"none",border:"none",boxShadow:"none",backgroundColor:n.colors.darkenedBgMix25},"&:hover":{backgroundColor:n.colors.darkenedBgMix15},"&:active":{backgroundColor:n.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:n.colors.gray30,borderColor:n.colors.transparent,color:n.colors.gray60}})),StyledButtonGroup=styled("div",{target:"e1q4kxr421"})(({containerWidth:n})=>({width:n?"100%":"auto"})),StyledButtonLabel=styled("div",{target:"e1q4kxr422"})(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),StyledButtonMainLabel=styled("span",{target:"e1q4kxr423"})(({theme:n})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:n.spacing.sm,minWidth:0})),StyledButtonShortcut=styled("kbd",{target:"e1q4kxr424"})(({theme:n})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",fontSize:n.fontSizes.sm,opacity:.6,fontFamily:"inherit",lineHeight:n.lineHeights.tight,letterSpacing:"0.01em"})),DynamicButtonLabel=({icon:n,label:o,iconSize:e,useSmallerFont:t=!1,shortcut:c})=>{const p=reactExports.useMemo(()=>formatShortcutForDisplay(c,{isMac:isFromMac()}),[c]);return jsx$1(StyledButtonLabel,{children:jsxs(StyledButtonMainLabel,{"data-has-shortcut":!!p,children:[n&&jsx$1(DynamicIcon,{size:e??"lg",iconValue:n}),o&&jsx$1(StreamlitMarkdown$1,{source:o,allowHTML:!1,isLabel:!0,largerLabel:!t,disableLinks:!0}),p&&jsx$1(StyledButtonShortcut,{"aria-label":`Shortcut ${p}`,children:p})]})})};function BaseButton(n){const{kind:o,size:e,disabled:t,onClick:c,containerWidth:p,children:h,autoFocus:y}=n;let g=StyledPrimaryButton;return o===BaseButtonKind.SECONDARY?g=StyledSecondaryButton:o===BaseButtonKind.TERTIARY?g=StyledTertiaryButton:o===BaseButtonKind.GHOST?g=StyledGhostButton:o===BaseButtonKind.PILLS?g=StyledPillsButton:o===BaseButtonKind.PILLS_ACTIVE?g=StyledPillsButtonActive:o===BaseButtonKind.SEGMENTED_CONTROL?g=StyledSegmentedControlButton:o===BaseButtonKind.SEGMENTED_CONTROL_ACTIVE?g=StyledSegmentedControlButtonActive:o===BaseButtonKind.BORDERLESS_ICON?g=StyledBorderlessIconButton:o===BaseButtonKind.BORDERLESS_ICON_ACTIVE?g=StyledBorderlessIconButtonActive:o===BaseButtonKind.MINIMAL?g=StyledMinimalButton:o===BaseButtonKind.PRIMARY_FORM_SUBMIT?g=StyledPrimaryFormSubmitButton:o===BaseButtonKind.SECONDARY_FORM_SUBMIT?g=StyledSecondaryFormSubmitButton:o===BaseButtonKind.TERTIARY_FORM_SUBMIT?g=StyledTertiaryFormSubmitButton:o===BaseButtonKind.HEADER_BUTTON?g=StyledHeaderButton:o===BaseButtonKind.HEADER_NO_PADDING?g=StyledHeaderNoPaddingButton:o===BaseButtonKind.ELEMENT_TOOLBAR&&(g=StyledElementToolbarButton),jsx$1(g,{kind:o,size:e??BaseButtonSize.MEDIUM,containerWidth:p||!1,disabled:t||!1,onClick:c||(()=>{}),autoFocus:y||!1,"data-testid":n["data-testid"]??`stBaseButton-${o}`,"aria-label":n["aria-label"]??"",children:h})}function BaseButtonTooltip({children:n,help:o,placement:e,containerWidth:t}){return o?jsxs(Fragment,{children:[jsx$1(StyledTooltipNormal,{children:jsx$1(TooltipIcon,{content:o,placement:e||Placement.TOP,containerWidth:t,children:n})}),jsx$1(StyledTooltipMobile,{children:n})]}):n}const StyledModalButton=styled("span",{target:"egf28ua0"})(({theme:n})=>({marginRight:n.spacing.twoXS}));function ModalHeader({children:n,overrides:o}){const{genericFonts:e,fontSizes:t,spacing:c,fontWeights:p,lineHeights:h}=useEmotionTheme();return jsx$1(ModalHeader$1,{style:{marginTop:c.none,marginLeft:c.none,marginRight:c.none,marginBottom:c.none,paddingTop:c.twoXL,paddingRight:c.twoXL,paddingBottom:c.md,paddingLeft:c.twoXL,fontFamily:e.bodyFont,fontSize:t.xl,fontWeight:p.bold,margin:c.none,lineHeight:h.small,textTransform:"none",display:"flex",alignItems:"center",maxHeight:"80vh",flexDirection:"row",...o},children:n})}function ModalBody$1({children:n}){const{colors:o,fontSizes:e,spacing:t}=useEmotionTheme();return jsx$1(ModalBody$2,{style:{marginTop:t.none,marginLeft:t.none,marginRight:t.none,marginBottom:t.none,paddingTop:t.md,paddingRight:t.twoXL,paddingBottom:t.twoXL,paddingLeft:t.twoXL,color:o.bodyText,fontSize:e.md},children:n})}function ModalFooter({children:n}){const{spacing:o}=useEmotionTheme();return jsx$1(ModalFooter$1,{style:{marginTop:o.none,marginLeft:o.none,marginRight:o.none,marginBottom:o.none,paddingTop:o.md,paddingRight:o.md,paddingBottom:o.md,paddingLeft:o.md},children:jsx$1("div",{children:n})})}const ModalButton=n=>jsx$1(StyledModalButton,{children:jsx$1(BaseButton,{...n})});function calculateModalSize(n,o,e){return n==="large"?"80rem":n==="medium"&&o&&e?`calc(${o} + ${e})`:n==="auto"?SIZE$2.auto:SIZE$2.default}function Modal(n){const{spacing:o,radii:e,colors:t,sizes:c}=useEmotionTheme(),p={Root:{style:{background:t.darkenedBgMix25},props:{className:"stDialog","data-testid":"stDialog"}},DialogContainer:{style:{alignItems:"start",paddingTop:o.threeXL}},Dialog:{style:{borderBottomRightRadius:e.xxl,borderBottomLeftRadius:e.xxl,borderTopRightRadius:e.xxl,borderTopLeftRadius:e.xxl,minWidth:c.minPopupWidth}}
102,Close:{style:{top:`calc(${o.twoXL} + .375rem)`,right:o.twoXL}}},h=calculateModalSize(n.size,c.contentMaxWidth,o.lg),y=merge$1(p,n.overrides),g={...n,size:h};return jsx$1(Modal$1,{...g,overrides:y})}const StyledDialogTitle=styled("div",{target:"e10pldce0"})(({theme:n})=>({marginRight:n.spacing.threeXL}));function mapDialogWidthToModalSize(n){switch(n){case Block$1.Dialog.DialogWidth.MEDIUM:return"medium";case Block$1.Dialog.DialogWidth.LARGE:return"large";case Block$1.Dialog.DialogWidth.SMALL:return"default";default:return assertNever(n),"default"}}const Dialog=({element:n,deltaMsgReceivedAt:o,children:e,widgetMgr:t,fragmentId:c})=>{const{title:p,dismissible:h,width:y,isOpen:g,id:$}=n,[E,A]=reactExports.useState(!1);reactExports.useEffect(()=>{notNullOrUndefined(g)&&A(g)},[g,o]);const N=reactExports.useCallback(()=>{A(!1),$&&t&&t.setTriggerValue({id:$,formId:""},{fromUi:!0},c)},[$,t,c]),H=reactExports.useCallback(Z=>{if(E&&Z.key.toLowerCase()==="r"&&!n.dismissible){const X=Z.target;if(X&&(X.isContentEditable||X.tagName==="INPUT"||X.tagName==="TEXTAREA"||X.tagName==="SELECT"))return;Z.preventDefault(),Z.stopPropagation()}},[E,n.dismissible]);return reactExports.useEffect(()=>{if(E&&!n.dismissible)return document.addEventListener("keydown",H,!0),()=>{document.removeEventListener("keydown",H,!0)}},[E,n.dismissible,H]),E?jsxs(Modal,{isOpen:!0,closeable:h,onClose:N,size:mapDialogWidthToModalSize(y),children:[jsx$1(ModalHeader,{children:jsx$1(StyledDialogTitle,{children:jsx$1(StreamlitMarkdown$1,{source:p,allowHTML:!1,isLabel:!0,inheritFont:!0})})}),jsx$1(ModalBody$1,{children:e})]}):jsx$1(Fragment,{})};function DialogWithProvider(n){return jsx$1(IsDialogContext.Provider,{value:!0,children:jsx$1(Dialog,{...n})})}const Dialog$1=reactExports.memo(DialogWithProvider),StyledExpandableContainer=styled("div",{target:"ef5ck4x0"})({width:"100%"}),BORDER_SIZE=1,StyledDetails=styled("details",{target:"ef5ck4x1"})(({isStale:n,theme:o})=>({marginBottom:0,marginTop:0,width:"100%",borderStyle:"solid",borderWidth:o.sizes.borderWidth,borderColor:o.colors.borderColor,borderRadius:o.radii.default,...n?{borderColor:o.colors.borderColorLight,transition:`border ${STALE_TRANSITION_PARAMS}`}:{}})),StyledSummaryHeading=styled("span",{target:"ef5ck4x2"})(({theme:n})=>({display:"flex",alignItems:"center",flexGrow:1,minWidth:0,width:"100%",maxWidth:"100%",overflow:"hidden",gap:n.spacing.sm})),StyledSummaryLabelWrapper=styled("div",{target:"ef5ck4x3"})({display:"flex",width:"100%",flexGrow:1,overflow:"hidden"}),StyledSummary=styled("summary",{target:"ef5ck4x4"})(({theme:n,isStale:o,expanded:e})=>({position:"relative",display:"flex",width:"100%",minWidth:0,overflow:"hidden","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${transparentize(n.colors.primary,.5)}`},fontSize:"inherit",paddingLeft:n.spacing.md,paddingRight:n.spacing.md,paddingTop:n.spacing.twoXS,paddingBottom:n.spacing.twoXS,minHeight:`calc(${n.sizes.minElementHeight} - 2 * ${n.sizes.borderWidth})`,alignItems:"center",cursor:"pointer",listStyleType:"none","&::-webkit-details-marker":{display:"none"},backgroundColor:e?n.colors.bgMix:"transparent",borderRadius:e?`${n.radii.default} ${n.radii.default} 0 0`:n.radii.default,transition:e?"border-radius 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms ease":"border-radius 200ms cubic-bezier(0.23, 1, 0.32, 1) 300ms, background-color 150ms ease","&:hover, &:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"&:active":{backgroundColor:n.colors.darkenedBgMix25},...o&&STALE_STYLES})),StyledDetailsPanel=styled("div",{target:"ef5ck4x5"})(({theme:n})=>({padding:n.spacing.lg,borderTop:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),ExpanderIcon=n=>{const{icon:o}=n;return o?jsx$1(DynamicIcon,{size:"lg",iconValue:o,testid:{":material/check:":"stExpanderIconCheck",":material/error:":"stExpanderIconError",spinner:"stExpanderIconSpinner"}[o]||"stExpanderIcon"}):jsx$1(Fragment,{})},Expander=({element:n,isStale:o,children:e})=>{const{label:t,expanded:c}=n,[p,h]=reactExports.useState(c||!1),[y,g]=reactExports.useState(!1),$=reactExports.useRef(null),E=reactExports.useRef(null),A=reactExports.useRef(null),N=reactExports.useRef(null),H=reactExports.useRef(null);reactExports.useEffect(()=>{notNullOrUndefined(c)&&(h(c),$.current&&($.current.open=c))},[t,c]);const Z=Ne=>{$.current&&($.current.open=Ne,A.current=null,$.current.style.height="",$.current.style.overflow="")},X=(Ne,Fe,Be)=>{const Ge=Be>Fe;A.current&&(A.current.cancel(),N.current&&(clearTimeout(N.current),N.current=null));const je=Ne.animate({height:[`${Fe}px`,`${Be}px`]},{duration:500,easing:"cubic-bezier(0.23, 1, 0.32, 1)"});je.addEventListener("finish",()=>Z(Ge)),A.current=je},be=Ne=>{Ne.preventDefault(),h(!p);const Fe=$.current;if(!Fe||!E.current)return;Fe.style.overflow="hidden";const Be=Fe.getBoundingClientRect().height,Ge=E.current.getBoundingClientRect().height;p?X(Fe,Be,Ge+2*BORDER_SIZE):(Fe.style.height=`${Be}px`,Fe.open=!0,window.requestAnimationFrame(()=>{X(Fe,Be,Ge+2*BORDER_SIZE+5),N.current=setTimeout(()=>{if(!H.current)return;const je=H.current.getBoundingClientRect().height;X(Fe,Be,Ge+je+2*BORDER_SIZE)},100)}))},we=()=>{g(!0)},$e=()=>{g(!1)},Ce=!n.icon||y,Ie=n.icon&&!y;return jsx$1(StyledExpandableContainer,{className:"stExpander","data-testid":"stExpander",children:jsxs(StyledDetail
102s,{isStale:o,ref:$,onMouseEnter:we,onMouseLeave:$e,children:[jsx$1(StyledSummary,{onClick:be,ref:E,isStale:o,expanded:p,children:jsxs(StyledSummaryHeading,{children:[Ce&&jsx$1(DynamicIcon,{iconValue:p?":material/keyboard_arrow_down:":":material/keyboard_arrow_right:",size:"lg"}),Ie&&jsx$1(ExpanderIcon,{icon:n.icon}),jsx$1(StyledSummaryLabelWrapper,{children:jsx$1(StreamlitMarkdown$1,{source:t,allowHTML:!1,isLabel:!0,largerLabel:!0})})]})}),jsx$1(StyledDetailsPanel,{"data-testid":"stExpanderDetails",ref:H,children:e})]})})},Expander$1=reactExports.memo(Expander),Box=styled("div",{target:"e7ygq4y0"})(({width:n="100%",height:o})=>({width:n,height:o})),getBorderColor=(n,o)=>{let e=n.widgetBorderColor??n.secondaryBg;return o&&(e=n.primary),e},useResizeObserver=(n,o=[])=>{const e=reactExports.useRef(null),[t,c]=reactExports.useState([]),p=reactExports.useCallback(()=>{if(!e.current)return[];const h=e.current.getBoundingClientRect();return n.map(y=>h[y])},[n]);return reactExports.useEffect(()=>{if(!e.current)return;c(p());let h;const y=new ResizeObserver(()=>{h=window.requestAnimationFrame(()=>{c(p())})});return y.observe(e.current),()=>{y.disconnect(),h&&cancelAnimationFrame(h)}},[n,p,...o]),{values:t,elementRef:e}},useCalculatedDimensions=(n=[],o=-1)=>{const{values:[e,t],elementRef:c}=useResizeObserver(reactExports.useMemo(()=>["width","height"],[]),n);return{width:e||o,height:t||o,elementRef:c}},StyledPopoverLabelContainer=styled("div",{target:"emnxg9p0"})(({theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing.threeXS,marginRight:`calc(-${n.iconSizes.lg} * 0.25)`})),StyledPopoverExpansionIcon=styled("div",{target:"emnxg9p1"})(({theme:n})=>({display:"inline-flex",marginTop:n.spacing.threeXS})),Popover=({element:n,empty:o,children:e,stretchWidth:t})=>{const[c,p]=reactExports.useState(!1),h=reactExports.useContext(IsSidebarContext),y=useEmotionTheme(),g=hasLightBackgroun
102dColor(y),{width:$,elementRef:E}=useCalculatedDimensions();let A=BaseButtonKind.SECONDARY;return n.type==="primary"?A=BaseButtonKind.PRIMARY:n.type==="tertiary"&&(A=BaseButtonKind.TERTIARY),jsx$1(Box,{"data-testid":"stPopover",className:"stPopover",ref:E,children:jsx$1(Popover$2,{triggerType:TRIGGER_TYPE.click,placement:PLACEMENT.bottomLeft,content:()=>e,isOpen:c,onClickOutside:()=>p(!1),onClick:()=>c?p(!1):void 0,onEsc:()=>p(!1),ignoreBoundary:h,renderAll:!0,overrides:{Body:{props:{"data-testid":"stPopoverBody"},style:()=>({marginRight:y.spacing.lg,marginBottom:y.spacing.lg,maxHeight:"70vh",overflow:"auto",maxWidth:`calc(${y.sizes.contentMaxWidth} - 2*${y.spacing.lg})`,minWidth:t?`${Math.max($,160)}px`:y.sizes.minPopupWidth,[`@media (max-width: ${y.breakpoints.sm})`]:{maxWidth:`calc(100% - ${y.spacing.threeXL})`},borderTopLeftRadius:y.radii.xl,borderTopRightRadius:y.radii.xl,borderBottomRightRadius:y.radii.xl,borderBottomLeftRadius:y.radii.xl,borderLeftWidth:y.sizes.borderWidth,borderRightWidth:y.sizes.borderWidth,borderTopWidth:y.sizes.borderWidth,borderBottomWidth:y.sizes.borderWidth,paddingRight:`calc(${y.spacing.twoXL} - ${y.sizes.borderWidth})`,paddingLeft:`calc(${y.spacing.twoXL} - ${y.sizes.borderWidth})`,paddingBottom:`calc(${y.spacing.twoXL} - ${y.sizes.borderWidth})`,paddingTop:`calc(${y.spacing.twoXL} - ${y.sizes.borderWidth})`,borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftColor:y.colors.borderColor,borderRightColor:y.colors.borderColor,borderTopColor:y.colors.borderColor,borderBottomColor:y.colors.borderColor,boxShadow:g?"0px 4px 16px rgba(0, 0, 0, 0.16)":"0px 4px 16px rgba(0, 0, 0, 0.7)"})}},children:jsx$1("div",{children:jsx$1(BaseButtonTooltip,{help:n.help,containerWidth:!0,children:jsx$1(BaseButton,{"data-testid":"stPopoverButton",kind:A,size:BaseButtonSize.SMALL,disabled:o||n.disabled,containerWidth:!0,onClick:()=>p(!c),children:jsxs(StyledPopoverLabelContainer,{children:[jsx$1(DynamicButtonLabel,{icon:n.icon,label:n.label}),jsx$1(StyledPopoverExpansionIcon,{children:jsx$1(DynamicIcon,{iconValue:c?":material/expand_less:":":material/expand_more:",size:"lg"})})]})})})})})})},Popover$1=reactExports.memo(Popover);var ORIENTATION={vertical:"vertical",horizontal:"horizontal"},FILL={fixed:"fixed",intrinsic:"intrinsic"},getTabId=function n(o,e){return"tabs-".concat(o,"-tab-").concat(e)},getTabPanelId=function n(o,e){return"tabs-".concat(o,"-tabpanel-").concat(e)},isHorizontal=function n(o){return o===ORIENTATION.horizontal},isVertical=function n(o){return o===ORIENTATION.vertical},isRTL=function n(o){return o==="rtl"},isIntrinsic=function n(o){return o===FILL.intrinsic},isFixed=function n(o){return o===FILL.fixed};function ownKeys$e(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$c(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$e(Object(e),!0).forEach(function(t){_defineProperty$f(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$e(Object(e)).forEac
102h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$f(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var StyledRoot$1=styled$1("div",function(n){n.$theme;var o=n.$orientation,e=o===void 0?ORIENTATION.horizontal:o,t={transform:"scale(1)"};return isVertical(e)&&(t.display="flex"),t});StyledRoot$1.displayName="StyledRoot";StyledRoot$1.displayName="StyledRoot";var StyledTabBar=styled$1("div",function(n){var o=n.$hasEndEnhancer,e=n.$orientation;return o||!isHorizontal(e)?{display:"flex"}:{}});StyledTabBar.displayName="StyledTabBar";StyledTabBar.displayName="StyledTabBar";var StyledTabList=styled$1("div",function(n){var o=n.$theme,e=n.$fill,t=e===void 0?FILL.intrinsic:e,c=n.$orientation,p=c===void 0?ORIENTATION.horizontal:c,h={position:"relative",display:"flex",flexWrap:"nowrap",flexGrow:1};return isHorizontal(p)?(h.flexDirection="row",h.paddingBottom="5px",h.marginBottom="-5px"):(h.flexDirection="column",isRTL(o.direction)?(h.paddingLeft="5px",h.marginLeft="-5px"):(h.paddingRight="5px",h.marginRight="-5px")),isIntrinsic(t)&&(h["::-webkit-scrollbar"]={display:"none"},h["-ms-overflow-style"]="none",h.scrollbarWidth="none",isHorizontal(p)?h.overflowX="scroll":h.overflowY="scroll"),h});StyledTabList.displayName="StyledTabList";StyledTabList.displayName="StyledTabList";var StyledTab=styled$1("button",function(n){var o=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,c=n.$fill,p=c===void 0?FILL.intrinsic:c,h=n.$focusVisible,y=h===void 0?!1:h;n.$isActive;var g=_objectSpread$c({cursor:"pointer",WebkitAppearance:"none",marginLeft:"0",marginRight:"0",marginTop:"0",marginBottom:"0",boxSizing:"border-box",display:"inline-flex",alignItems:"center",paddingLeft:o.sizing.scale600,paddingTop:o.sizing.scale600,paddingRight:o.sizing.scale600,paddingBottom:o.sizing.scale600,borderLeftWidth:0,borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",color:o.colors.contentPrimary,background:o.colors.backgroundPrimary,transitionProperty:"background",transitionDuration:o.animation.timing200,transitionTimingFunction:o.animation.linearCurve,outline:"none",outlineOffset:"-3px",":disabled":{cursor:"not-allowed",color:o.colors.contentStateDisabled},":hover":{background:o.colors.backgroundSecondary},":disabled:hover":{background:"none"}},o.typography.LabelSmall);return y&&(g.outline="3px solid ".concat(o.colors.accent)),isFixed(p)&&(g.flexGrow=1,g.flexBasis=0),isHorizontal(t)?g.justifyContent="center":g.justifyContent="flex-end",g});StyledTab.displayName="StyledTab";StyledTab.displayName="StyledTab";var StyledEndEnhancerContainer=styled$1("div",function(n){var o=n.$theme,e=o.direction==="rtl"?"marginRight":"marginLeft";return _defineProperty$f({display:"flex",alignItems:"center",justifyContent:"flex-end"},e,o.sizing.scale600)});StyledEndEnhancerContainer.displayName="StyledEndEnhancerContainer";StyledEndEnhancerContainer.displayName="StyledEndEnhancerContainer";var StyledArtworkContainer=styled$1("div",function(n){var o=n.$theme;n.$orientation;var e={display:"flex"};return isRTL(o.direction)?e.marginLeft=o.sizing.scale300:e.marginRight=o.sizing.scale300,e});StyledArtworkContainer.displayName="StyledArtworkContainer";StyledArtworkContainer.displayName="StyledArtworkContainer";var StyledTabBorder=styled$1("div",function(n){var o=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,c={backgroundColor:o.colors.borderOpaque,position:"relative"};return isHorizontal(t)?c.height="5px":c.width="5px",c});StyledTabBorder.displayName="StyledTabBorder";StyledTabBorder.displayName="StyledTabBorder";var StyledTabHighlight=styled$1("div",function(n){var o=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,c=n.$length,p=c===void 0?0:c,h=n.$distance,y=h===void 0?0:h,g=n.$animate,$=g===void 0?!1:g,E={backgroundColor:o.colors.borderSelected,position:"absolute",zIndex:1};
102return isHorizontal(t)?(E.bottom="0px",E.left="0px",E.height="5px",E.width="".concat(p,"px"),E.transform="translateX(".concat(y,"px)")):(E.transform="translateY(".concat(y,"px)"),E.width="5px",E.height="".concat(p,"px"),isRTL(o.direction)?E.left="0px":E.right="0px"),$&&(E.transitionProperty="all",E.transitionDuration=o.animation.timing400,E.transitionTimingFunction=o.animation.easeInOutQuinticCurve),E});StyledTabHighlight.displayName="StyledTabHighlight";StyledTabHighlight.displayName="StyledTabHighlight";var StyledTabPanel=styled$1("div",function(n){var o=n.$theme,e=n.$pad,t=e===void 0?!0:e,c={flexGrow:1,outline:"none"};return t&&(c.paddingTop=o.sizing.scale600,c.paddingRight=o.sizing.scale600,c.paddingBottom=o.sizing.scale600,c.paddingLeft=o.sizing.scale600),c});StyledTabPanel.displayName="StyledTabPanel";StyledTabPanel.displayName="StyledTabPanel";var _excluded$j=["childKey","childIndex","activeKey","orientation","activeTabRef","updateHighlight","parseKeyDown","activateOnFocus","uid","disabled","sharedStylingProps","onChange"],_excluded2$4=["artwork","overrides","tabRef","onClick","title"],_excluded3$1=["childKey","childIndex","activeKey","uid","sharedStylingProps","renderAll"];function ownKeys$d(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$b(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$d(Object(e),!0).forEach(function(t){_defineProperty$e(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$d(Object(e)).forEac
102h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$e(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function _toConsumableArray$1(n){return _arrayWithoutHoles$1(n)||_iterableToArray$1(n)||_unsupportedIterableToArray$e(n)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 103In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$1(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles$1(n){if(Array.isArray(n))return _arrayLikeToArray$e(n)}function _objectWithoutProperties$h(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$g(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$g(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _extends$j(){return _extends$j=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$j.apply(this,arguments)}function _slicedToArray$e(n,o){return _arrayWithHoles$e(n)||_iterableToArrayLimit$e(n,o)||_unsupportedIterableToArray$e(n,o)||_nonIterableRest$e()}function _nonIterableRest$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 104In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$e(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$e(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$e(n,o)}}function _arrayLikeToArray$e(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$e(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$e(n){if(Array.isArray(n))return n}var KEYBOARD_ACTION={next:"next",previous:"previous"},getLayoutParams=function n(o,e){return o?isVertical(e)?{length:o.clientHeight,distance:o.offsetTop}:{length:o.clientWidth,distance:o.offsetLeft}:{length:0,distance:0}},scrollParentToCentreTarget=function n(o){var e=o.parentNode.getBoundingClientRect(),t=e.x,c=e.y,p=e.width,h=e.height,y=o.getBoundingClientRect(),g=y.x,$=y.y,E=y.width,A=y.height,N={x:g-t+E/2,y:$-c+A/2},H=o.parentNode,Z=H.scrollLeft,X=H.scrollTop,be={x:Z+N.x-p/2,y:X+N.y-h/2};o.parentNode.scroll(be.x,be.y)};function RenderEnhancer(n){var o=n.Enhancer;return typeof o=="string"?o:reactIsExports$1.isValidElementType(o)?reactExports.createElement(o,null):o}function Tabs$2(n){var o=n.activeKey,e=o===void 0?"0":o,t=n.disabled,c=t===void 0?!1:t,p=n.children,h=n.fill,y=h===void 0?FILL.intrinsic:h,g=n.activateOnFocus,$=g===void 0?!0:g,E=n.onChange,A=n.orientation,N=A===void 0?ORIENTATION.horizontal:A,H=n.overrides,Z=H===void 0?{}:H,X=n.renderAll,be=X===void 0?!1:X,we=n.uid,$e=we===void 0?null:we,Ce=n.endEnhancer,Ie=useUID(),Ne=$e||Ie,Fe=Z.Root,Be=Z.TabList,Ge=Z.TabHighlight,je=Z.TabBorder,De=getOverrides(Fe,StyledRoot$1),Ue=_slicedToArray$e(De,2),Je=Ue[0],Xe=Ue[1],Ke=getOverrides(Be,StyledTabList),ze=_slicedToArray$e(Ke,2),nt=ze[0],ct=ze[1],at=getOverrides(Ge,StyledTabHighlight),dt=_slicedToArray$e(at,2),Me=dt[0],We=dt[1],tt=getOverrides(je,StyledTabBorder),Ve=_slicedToArray$e(tt,2),vt=Ve[0],xt=Ve[1],Qe=getOverrides(Z.EndEnhancerContainer,StyledEndEnhancerContainer),St=_slicedToArray$e(Qe,2),pt=St[0],wt=St[1],Ft=reactExports.useState(0),Ht=_slicedToArray$e(Ft,2),on=Ht[0],en=Ht[1];reactExports.useEffect(function(){en(on+1)},[e]);var Wt=reactExports.useRef(),an=reactExports.useState({length:0,distance:0}),qt=_slicedToArray$e(an,2),zt=qt[0],Jt=qt[1],jt=reactExports.useCallback(function(){Wt.current&&Jt(getLayoutParams(Wt.current,N))},[Wt.current,N]);reactExports.useEffect(jt,[Wt.current,N]),reactExports.useEffect(function(){Wt.current&&(isHorizontal(N)?Wt.current.parentNode.scrollWidth>Wt.current.parentNode.clientWidth:Wt.current.parentNode.scrollHeight>Wt.current.parentNode.clientHeight)&&(on>1?Wt.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}):scrollParentToCentreTarget(Wt.current))},[Wt.current]);var Yt={$orientation:N,$fill:y},yn=useStyletron(),vn=_slicedToArray$e(yn,2),nn=vn[1],pn=reactExports.useCallback(function(Ut){if(isHorizontal(N))if(isRTL(nn.direction))switch(Ut.keyCode){case 39:return KEYBOARD_ACTION.previous;case 37:return KEYBOARD_ACTION.next;default:return null}else switch(Ut.keyCode){case 37:return KEYBOARD_ACTION.previous;case 39:return KEYBOARD_ACTION.next;default:return null}else switch(Ut.keyCode){case 38:return KEYBOARD_ACTION.previous;case 40:return KEYBOARD_ACTION.next;default:return null}},[N,nn.direction]);return reactExports.createElement(Je,_extends$j({},Yt,Xe),reactExports.createElement(StyledTabBar,{$hasEndEnhancer:!!Ce,$orientation:N},reactExports.createElement(nt,_extends$j({"data-baseweb":"tab-list",role:"tablist","aria-orientation":N},Yt,ct),reactExports.Children.map(p,function(Ut,it){if(Ut)return reactExports.createElement(InternalTab,_extends$j({childKey:Ut.key,childIndex:it,activeKey:e,orientation:N,activeTabRef:Wt,updateHighlight:jt,parseKeyDown:pn,activateOnFocus:$,uid:Ne,disabled:c,sharedStylingProps:Yt,onChange:E},Ut.props))}),reactExports.createElement(Me,_extends$j({"data-baseweb":"tab-highlight",$length:zt.length,$distance:zt.distance,$animate:on>1,"aria-hidden":"true",role:"presentation"},Yt,We))),N===ORIENTATION.horizontal&&Ce!==null&&Ce!==void 0&&reactExports.createElement(pt,_extends$j({},wt,{$orientation:N}),reactExports.createElement(RenderEnhancer,{Enhancer:Ce}))),reactExports.createElement(vt,_extends$j({"data-baseweb":"tab-border","aria-hidden":"true",role:"presentation"},Yt,xt)),reactExports.Children.map(p,function(Ut,it){if(Ut)return reactExports.createElement(InternalTabPanel,_extends$j({childKey:Ut.key,childIndex:it,activeKey:e,uid:Ne,sharedStylingProps:Yt,renderAll:be},Ut.props))}))}function InternalTab(n){var o=n.childKey,e=n.childIndex,t=n.activeKey,c=n.orientation,p=n.activeTabRef,h=n.updateHighlight,y=n.parseKeyDown,g=n.activateOnFocus,$=n.uid,E=n.disabled,A=n.sharedStylingProps,N=n.onChange,H=_objectWithoutProperties$h(n,_excluded$j),Z=o||String(e),X=Z==t,be=H.artwork,we=H.overrides,$e=we===void 0?{}:we,Ce=H.tabRef,Ie=H.onClick,Ne=H.title,Fe=_objectWithoutProperties$h(H,_excluded2$4),Be=reactExports.useRef();reactExports.useImperativeHandle(Ce,function(){return X?p.current:Be.current});var Ge=reactExports.useRef({length:0,distance:0});reactExports.useEffect(function(){Ge.current=getLayoutParams(X?p.current:Be.current,c)}),reactExports.useEffect(function(){if(window.ResizeObserver){var Qe=new window.ResizeObserver(function(St){if(St[0]&&St[0].target){var pt=getLayoutParams(St[0].target,c);(pt.length!==Ge.current.length||pt.distance!==Ge.current.distance)&&h()}});return Qe.observe(X?p.current:Be.current),function(){Qe.disconnect()}}},[t,c]),reactExports.useEffect(h,[Ne]);var je=$e.Tab,De=$e.ArtworkContainer,Ue=getOverrides(je,StyledTab),Je=_slicedToArray$e(Ue,2),Xe=Je[0],Ke=Je[1],ze=getOverrides(De,StyledArtworkContainer),nt=_slicedToArray$e(ze,2),ct=nt[0],at=nt[1],dt=reactExports.useState(!1),Me=_slicedToArray$e(dt,2),We=Me[0],tt=Me[1],Ve=reactExports.useCallback(function(Qe){isFocusVisible(Qe)&&tt(!0)},[]),vt=reactExports.useCallback(function(Qe){We!==!1&&tt(!1)},[We]),xt=reactExports.useCallback(function(Qe){var St=_toConsumableArray$1(Qe.target.parentNode.childNodes).filter(function(Ht){return!Ht.disabled&&Ht.getAttribute("role")==="tab"});if(St.length!==1){var pt=St.indexOf(Qe.target),wt=y(Qe);
104if(wt){var Ft;wt===KEYBOARD_ACTION.previous?St[pt-1]?Ft=St[pt-1]:Ft=St[St.length-1]:wt===KEYBOARD_ACTION.next&&(St[pt+1]?Ft=St[pt+1]:Ft=St[0]),Ft&&(Ft.focus(),g&&Ft.click()),isVertical(c)&&Qe.preventDefault()}}});return reactExports.createElement(Xe,_extends$j({"data-baseweb":"tab",key:Z,id:getTabId($,Z),role:"tab",onKeyDown:xt,"aria-selected":X,"aria-controls":getTabPanelId($,Z),tabIndex:X?"0":"-1",ref:X?p:Be,disabled:!X&&E,type:"button",$focusVisible:We,$isActive:X},A,Fe,Ke,{onClick:function(St){typeof N=="function"&&N({activeKey:Z}),typeof Ie=="function"&&Ie(St)},onFocus:forkFocus(_objectSpread$b(_objectSpread$b({},Fe),Ke),Ve),onBlur:forkBlur(_objectSpread$b(_objectSpread$b({},Fe),Ke),vt)}),be?reactExports.createElement(ct,_extends$j({"data-baseweb":"artwork-container"},A,at),reactExports.createElement(be,{size:20,color:"contentPrimary"})):null,Ne||Z)}function InternalTabPanel(n){var o=n.childKey,e=n.childIndex,t=n.activeKey,c=n.uid,p=n.sharedStylingProps,h=n.renderAll,y=_objectWithoutProperties$h(n,_excluded3$1),g=o||String(e),$=g==t,E=y.overrides,A=E===void 0?{}:E,N=y.children,H=A.TabPanel,Z=getOverrides(H,StyledTabPanel),X=_slicedToArray$e(Z,2),be=X[0],we=X[1];return reactExports.createElement(be,_extends$j({"data-baseweb":"tab-panel",key:g,role:"tabpanel",id:getTabPanelId(c,g),"aria-labelledby":getTabId(c,g),hidden:!$},p,we),$||h?N:null)}function Tab(n){return null}function getClassnamePrefix(n){return n===Direction.HORIZONTAL?"stHorizontalBlock":"stVerticalBlock"}function shouldComponentBeEnabled(n,o){return n!=="empty"||o!==ScriptRunState.RUNNING}function isElementStale(n,o,e,t){return o===ScriptRunState.RERUN_REQUESTED?!0:o===ScriptRunState.RUNNING?t?.length?!!(n.fragmentId&&t.includes(n.fragmentId)&&n.scriptRunId!==e):n.scriptRunId!==e:!1}function isComponentStale(n,o,e,t,c){return!n||isElementStale(o,e,t,c)}function assignDividerColor(n,o){const e=getDividerColors(o),t=Object.keys(e),{blue:c,green:p,orange:h,red:y,violet:g,yellow:$}=e,E={blue:c,green:p,orange:h,red:y,violet:g,yellow:$},A=Object.keys(E);let N=0;for(const H of ElementsSetVisitor.collectElements(n)){const Z=H.heading?.divider;if(H.type==="heading"&&Z)if(Z==="auto"){const X=A[N];H.heading.divider=E[X],N+=1,N===A.length&&(N=0)}else t.includes(Z)&&(H.heading.divider=e[Z])}}function convertKeyToClassName(n){return n?"st-key-"+n.trim().replace(/[^a-zA-Z0-9_-]/g,"-"):""}function getKeyFromId(n){if(!n||!isValidElementId(n))return;const e=n.split("-").slice(2).join("-");return e==="None"?void 0:e}function backwardsCompatibleColumnGapSize(n){if(n.gapConfig?.gapSize)return n.gapConfig.gapSize;if(n.gap){if(n.gap==="small")return streamlit.GapSize.SMALL;if(n.gap==="medium")return streamlit.GapSize.MEDIUM;if(n.gap==="large")return streamlit.GapSize.LARGE}return streamlit.GapSize.SMALL}function checkFlexContainerBackwardsCompatibile(n){return!!(n.flexContainer||n.vertical||n.horizontal)}function getActivateScrollToBottomBackwardsCompatible(n){return!!((n.deltaBlock.heightConfig?.pixelHeight||n.deltaBlock.vertical?.height)&&n.children.some(e=>e instanceof BlockNode&&e.deltaBlock.type==="chatMessage"))}function getBorderBackwardsCompatible(n){return n.flexContainer?.border||n.vertical?.border||!1}const StyledTabContainer=styled("div",{target:"e1mp0uwq0"})(({theme:n,isOverflowing:o,tabHeight:e,width:t,flex:c})=>({...o?{position:"relative","::after":{content:'" "',position:"absolute",zIndex:n.zIndices.priority,top:0,right:0,pointerEvents:"none",backgroundImage:`linear-gradient(to right, ${transparentize(n.colors.bgColor,1)}, ${n.colors.bgColor})`,width:n.spacing.lg,height:e}}:{},...t&&{width:t},...c&&{flex:c}}));function Tabs(n){const{widgetsDisabled:o,node:e,isStale:t,width:c,flex:p}=n,{scriptRunState:h,scriptRunId:y,fragmentIdsThisRun:g}=reactExports.useContext(ScriptRunContext),$=e.deltaBlock?.tabContainer?.defaultTabIndex??0;let E=[];const[A,N]=reactExports.useState($),[H,Z]=reactExports.useState(()=>e.children[$]?.deltaBlock?.tab?.label??"0"),X=reactExports.useRef(null),be=useEmotionTheme(),[we,$e]=reactExports.useState(!1);reactExports.useEffect(()=>{E.indexOf(H)===-1&&(N($),Z(E[$]))},[E]),reactExports.useEffect(()=>{if(X.current){const{scrollWidth:Fe,clientWidth:Be}=X.current;$e(Fe>Be)}const Ne=E.indexOf(H);Ne!==-1?(N(Ne),Z(E[Ne])):(N($),Z(E[$]))},[e.children.length]);const Ce=be.sizes.tabHeight,Ie=be.spacing.threeXS;return jsx$1(StyledTabContainer,{className:"stTabs","data-testid":"stTabs",isOverflowing:we,tabHeight:Ce,width:c,flex:p,children:jsx$1(Tabs$2,{activateOnFocus:!0,activeKey:A,onChange:({activeKey:Ne})=>{N(Ne),Z(E[Ne])},renderAll:!0,overrides:{TabHighlight:{style:()=>({backgroundColor:be.colors.primary,height:Ie})},TabBorder:{style:()=>({backgroundColor:be.colors.borderColorLight,height:Ie})},TabList:{props:{ref:X},style:()=>({gap:be.spacing.lg,marginBottom:`-${Ie}`,paddingBottom:Ie,overflowY:"hidden",...t&&STALE_STYLES})},Root:{style:()=>({transform:"none"})}},children:e.children.map((Ne,Fe)=>{Fe===0&&(E=[]);const Be=isElementStale(Ne,h,y,g),Ge={...n,isStale:t||Be,widgetsDisabled:o,node:Ne};let je=Fe.toString();Ge.node.deltaBlock?.tab?.label&&(je=Ge.node.deltaBlock.tab.label),E[Fe]=je;const De=A.toString()===Fe.toString(),Ue=Fe===e.children.length-1;return jsx$1(Tab,{"data-testid":"stTab",title:jsx$1(StreamlitMarkdown$1,{source:je,allowHTML:!1,isLabel:!0}),disabled:!t&&Be,overrides:{TabPanel:{style:()=>({paddingLeft:be.spacing.none,paddingRight:be.spacing.none,paddingBottom:be.spacing.none,paddingTop:be.spacing.lg})},Tab:{style:()=>({height:Ce,whiteSpace:"nowrap",paddingLeft:be.spacing.none,paddingRight:be.spacing.none,paddingTop:be.spacing.none,paddingBottom:be.spacing.none,fontSize:be.fontSizes.sm,background:"transparent",color:be.colors.bodyText,":focus":{outline:"none",color:be.colors.primary,background:"none"},":hover":{color:be.colors.primary,background:"none"},...De?{color:be.colors.primary}:{},...we&&Ue?{paddingRight:`calc(${be.spacing.lg} * 0.6)`}:{},...!t&&Be&&STALE_STYLES})}},children:n.renderTabContent(Ge)},Fe)})})})}const Tabs$1=reactExports.memo(Tabs),FormsContext=reactExports.createContext(null);FormsContext.displayName="FormsContext";const useRequiredContext=n=>{const o=reactExports.useContext(n);if(o==null)throw new Error(`useRequiredContext: ${n.displayName??"context"} not found`);return o},StyledFormSubmitContent=styled("div",{target:"emjbblw0"})({display:"flex"}),StyledForm=styled("div",{target:"emjbblw1"})(({theme:n,border:o,overflow:e})=>({...o&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`},width:"100%",height:"100%",overflow:e})),StyledErrorContainer=styled("div",{target:"emjbblw2"})(({theme:n})=>({marginTop:n.spacing.lg})),StyledAlertContent=styled("div",{target:"e1c3b9fy0"})(({theme:n})=>({display:"flex",gap:n.spacing.sm,width:"100%",[`${StyledCodeBlock} code`]:{paddingRight:n.spacing.lg}})),StyledAlertIcon=styled("div",{target:"e1c3b9fy1"})(({theme:n})=>({position:"relative",top:n.spacing.threeXS}));function AlertElement({icon:n,body:o,kind:e}){const t=useEmotionTheme(),c={width:n?`calc(100% - (${t.iconSizes.lg} + ${t.spacing.sm}))`:"100%"};return jsx$1("div",{className:"stAlert","data-testid":"stAlert",children:jsx$1(AlertContainer,{kind:e,children:jsxs(StyledAlertContent,{children:[n&&jsx$1(StyledAlertIcon,{children:jsx$1(DynamicIcon,{iconValue:n,size:"lg",testid:"stAlertDynamicIcon"})}),jsx$1(StreamlitMarkdown$1,{source:o,allowHTML:!1,style:c}
104)]})})})}const AlertElement$1=reactExports.memo(AlertElement);function getAlertElementKind(n){switch(n){case Alert.Format.ERROR:return Kind.ERROR;case Alert.Format.INFO:return Kind.INFO;case Alert.Format.SUCCESS:return Kind.SUCCESS;case Alert.Format.WARNING:return Kind.WARNING;default:throw new Error(`Unexpected alert type: ${n}`)}}const MISSING_SUBMIT_BUTTON_WARNING=`**Missing Submit Button** 105 106This form has no submit button, which means that user interactions will never be sent to your Streamlit app. 107 108To create a submit button, use the \`st.form_submit_button()\` function. 109 110For more information, refer to the [documentation for forms](https://docs.streamlit.io/develop/api-reference/execution-flow/st.form).`;function Form(n){const{formId:o,widgetMgr:e,children:t,clearOnSubmit:c,enterToSubmit:p,border:h,overflow:y}=n,{formsData:g}=useRequiredContext(FormsContext),$=g.submitButtons.get(o),E=$!==void 0&&$.length>0,{scriptRunState:A}=reactExports.useContext(ScriptRunContext),N=A===ScriptRunState.NOT_RUNNING;reactExports.useEffect(()=>{e.setFormSubmitBehaviors(o,c,p)},[e,o,c,p]);const[H,Z]=reactExports.useState(!1);E&&H?Z(!1):!E&&!H&&N&&Z(!0);let X;return H&&(X=jsx$1(StyledErrorContainer,{children:jsx$1(AlertElement$1,{body:MISSING_SUBMIT_BUTTON_WARNING,kind:Kind.ERROR})})),jsxs(StyledForm,{className:"stForm","data-testid":"stForm",border:h,overflow:y,children:[t,X]})}const Form$1=reactExports.memo(Form);function squareStepper(n,o){const e=Math.sign(o-n),t=Math.sqrt(Math.abs(o-n)),c=n+t*e;return e>0?Math.min(o,c):Math.max(o,c)}function step(n,o,e,t){let c=n;for(let p=0;p<t;p++)c=e(c,o);return c}function useScrollAnimation(n,o,e,t){const c=reactExports.useRef(0),p=reactExports.useCallback((y,g,$=Date.now())=>{cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{if(n){const E=n.scrollHeight-n.offsetHeight;let A=step(y,E,squareStepper,(Date.now()-$)/5);Math.abs(E-A)<1.5&&(A=E),n.scrollTop=A,E===A?o():p(y,g+1,$)}})},[c,o,n]),h=reactExports.useCallback(()=>{cancelAnimationFrame(c.current),o()},[o]);reactExports.useLayoutEffect(()=>{if(!(!n||!e||!t))return p(n.scrollTop,1),n?(n.addEventListener("pointerdown",h,{passive:!0}),n.addEventListener("wheel",h,{passive:!0}),()=>{n.removeEventListener("pointerdown",h),n.removeEventListener("wheel",h),cancelAnimationFrame(c.current)}):()=>cancelAnimationFrame(c.current)},[p,c,h,n,e,t])}function debounce(n,o){let e=0,t=null;return(...c)=>{const p=Date.now();p-e>o?(n(...c),e=p):(t&&clearTimeout(t),t=setTimeout(()=>{n(...c),e=Date.now()},Math.max(0,o-p+e)))}}const DEFAULT_DEBOUNCE_MS=100;function useScrollSpy(n,o,e){const t=reactExports.useRef(o),c=reactExports.useMemo(()=>debounce(h=>{t.current(h)},DEFAULT_DEBOUNCE_MS),[t]),p=reactExports.useCallback(h=>{h.timeStampLow=Date.now(),c(h)},[c]);reactExports.useLayoutEffect(()=>!n||!e?()=>{}:(n.addEventListener("scroll",p,{passive:!0}),p({target:n}),()=>n.removeEventListener("scroll",p)),[p,n,e])}function useStateRef(n){const[o,e]=reactExports.useState(n),t=reactExports.useRef(n);return t.current=o,[o,e,t]}const DEFAULT_BOTTOM_THRESHOLD=1,SCROLL_DECISION_DURATION=34,MIN_CHECK_INTERVAL=17;function setImmediateInterval(n,o){return n(),setInterval(n,o)}function isAtBottom({scrollHeight:n,offsetHeight:o,scrollTop:e}){return n-e-o<DEFAULT_BOTTOM_THRESHOLD}function useScrollToBottom(n){const o=reactExports.useRef(null),[e,t,c]=useStateRef(!1),[p,h,y]=useStateRef(!0);reactExports.useEffect(()=>{t(!0)},[t]);const g=reactExports.useRef(0),$=reactExports.useRef(0),E=reactExports.useRef(0),A=reactExports.useCallback(()=>{g.current=Date.now(),y.current||t(!1),h(!1)},[g,y,h,t]),N=reactExports.useCallback(({timeStampLow:H})=>{const{current:Z}=o,X=y.current;if(H<=g.current||!Z)return;const be=isAtBottom(Z),{offsetHeight:we,scrollHeight:$e}=Z,{current:Ce}=$,{current:Ie}=E,Ne=we!==Ce,Fe=$e!==Ie;if(Ne&&($.current=we),Fe&&(E.current=$e),!Ne&&!Fe){const Be=X||be;c.current!==Be&&t(Be)}else c.current&&(h(!0),t(!0))},[g,$,E,y,c,h,t]);return reactExports.useEffect(()=>{if(o.current&&n){let H=0;const Z=setImmediateInterval(()=>{const{current:X}=o,be=y.current;c.current&&X?isAtBottom(X)?H=0:H?Date.now()-H>SCROLL_DECISION_DURATION&&(be||(h(!0),t(!0)),H=0):H=Date.now():X&&X.scrollHeight<=X.offsetHeight&&!c.current&&t(!0)},MIN_CHECK_INTERVAL);return()=>clearInterval(Z)}},[o,e,p,y,c,t,h,n]),reactExports.useEffect(()=>{const H=o.current;if(H&&n){const Z=()=>{E.current=H.scrollHeight};return H.addEventListener("focus",Z,{capture:!0,passive:!0}),()=>{H.removeEventListener("focus",Z,{capture:!0})}}}
110,[o,n]),useScrollSpy(o.current,N,n),useScrollAnimation(o.current,A,p,n),o}const Maybe=reactExports.memo(function n({children:o}){return jsx$1(Fragment,{children:o})},(n,o)=>!(n.enable||o.enable)),ViewStateContext=reactExports.createContext({isFullScreen:!1,setFullScreen:()=>{}});ViewStateContext.displayName="ViewStateContext";const StyledDocSummary=styled("span",{target:"e1rz36mz0"})(({theme:n})=>({"& > *":{marginRight:n.spacing.sm}})),StyledDocName=styled("span",{target:"e1rz36mz1"})(({theme:n})=>({fontWeight:n.fontWeights.codeBold})),StyledDocType=styled("span",{target:"e1rz36mz2"})(({theme:n})=>({color:n.colors.codeTextColor})),StyledDocValue=styled("span",{target:"e1rz36mz3"})(),StyledDocContainer=styled("span",{target:"e1rz36mz4"})(({theme:n})=>({display:"flex",flexDirection:"column",borderRadius:n.radii.default,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,fontFamily:n.genericFonts.codeFont,fontSize:n.fontSizes.codeFontSize,fontWeight:n.fontWeights.code})),StyledDocHeader=styled("div",{target:"e1rz36mz5"})(({theme:n})=>({padding:`${n.spacing.sm} ${n.spacing.lg}`,backgroundColor:n.colors.bgMix,borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderTopLeftRadius:n.radii.default,borderTopRightRadius:n.radii.default,fontSize:n.fontSizes.codeFontSize,overflow:"auto"})),StyledDocString=styled("div",{target:"e1rz36mz6"})(({theme:n})=>({whiteSpace:"pre",overflow:"auto",maxHeight:"30.5rem",padding:`${n.spacing.sm} ${n.spacing.lg}`,fontSize:n.fontSizes.codeFontSize,"&:not(:last-child)":{borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`}})),StyledMembersTable=styled("table",{target:"e1rz36mz7"})(({theme:n})=>({width:"100%",fontSize:n.fontSizes.codeFontSize,backgroundColor:n.colors.bgMix,tableLayout:"fixed",borderCollapse:"collapse",borderBottomLeftRadius:n.radii.default,borderBottomRightRadius:n.radii.default})),StyledMembersRow=styled("tr",{target:"e1rz36mz8"})(({theme:n})=>({"&:not(:last-child)":{borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`}})),StyledMembersSummaryCell=styled("td",{target:"e1rz36mz9"})(({theme:n})=>({width:"30%",overflow:"auto",padding:`${n.spacing.sm} ${n.spacing.lg}`,"& > *":{marginRight:n.spacing.sm}})),StyledMembersDetailsCell=styled("td",{target:"e1rz36mz10"})(({theme:n})=>({width:"70%",overflow:"auto",padding:`${n.spacing.sm} ${n.spacing.lg}`}));function DocString({element:n}){const{name:o,type:e,value:t,docString:c,members:p}=n;return jsxs(StyledDocContainer,{className:"stHelp","data-testid":"stHelp",children:[jsx$1(StyledDocHeader,{children:jsxs(StyledDocSummary,{children:[o?jsx$1(StyledDocName,{"data-testid":"stHelpName",children:o}):null,e?jsx$1(StyledDocType,{"data-testid":"stHelpType",children:e}):null,t?jsx$1(StyledDocValue,{"data-testid":"stHelpValue",children:t}):null]})}),jsx$1(StyledDocString,{"data-testid":"stHelpDoc",children:c||"No docs available"}),p.length>0?jsx$1(StyledMembersTable,{"data-testid":"stHelpMembersTable",children:p.map(h=>jsx$1(Member,{member:h},h.name))}):null]})}function Member({member:n}){const{name:o,type:e,value:t,docString:c}=n;return jsxs(StyledMembersRow,{"data-testid":"stHelpMember",children:[jsxs(StyledMembersSummaryCell,{children:[o?jsx$1(StyledDocName,{"data-testid":"stHelpMemberDocName",children:o}):null,e?jsx$1(StyledDocType,{"data-testid":"stHelpMemberDocType",children:e}):null]}),jsx$1(StyledMembersDetailsCell,{children:t?jsx$1(StyledDocValue,{"data-testid":"stHelpMemberDocValue",children:t}):jsx$1(StyledDocValue,{"data-testid":"stHelpMemberDocString",children:c||"No docs available"})})]})}const DocString$1=reactExports.memo(DocString);function useTimeout(n,o){const e=reactExports.useRef(null),t=reactExports.useRef(n);reactExports.useEffect(()=>{t.current=n},[n]);const c=reactExports.useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null),o!==null&&(e.current=setTimeout(()=>{t.current()},o))},[o]);reactExports.useEffect(()=>(c(),()=>{e.current&&(clearTimeout(e.current),e.current=null)}),[c]);const p=reactExports.useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),h=reactExports.useCallback(()=>{c()},[c]);return{clear:p,restart:h}}
110const LOG$f=loglevelExports.getLogger("useCopyToClipboard"),useCopyToClipboard=({timeout:n=2e3}={})=>{const[o,e]=reactExports.useState(!1),{restart:t}=useTimeout(reactExports.useCallback(()=>{e(!1)},[]),o?n:null),c=reactExports.useCallback(h=>{(async()=>{try{await navigator.clipboard.writeText(h),e(!0),t()}catch(g){LOG$f.error("Failed to copy text to clipboard:",g),e(!1)}})()},[t]);return{isCopied:o,copyToClipboard:c,label:o?"Copied":"Copy to clipboard"}},StyledStackTraceRow=styled("div",{target:"e1wpre4k0"})(({theme:n})=>({marginTop:n.spacing.sm,"&:first-of-type":{marginTop:0}})),StyledMessageType=styled("span",{target:"e1wpre4k1"})(({theme:n})=>({fontWeight:n.fontWeights.bold})),StyledStackTraceTitle=styled("div",{target:"e1wpre4k2"})(({theme:n})=>({marginBottom:n.spacing.sm})),StyledStackTraceContent=styled("div",{target:"e1wpre4k3"})({display:"inline-block",minWidth:"100%"}),StyledExceptionMessage=styled("div",{target:"e1wpre4k4"})({wordWrap:"break-word"}),StyledExceptionLinks=styled("div",{target:"e1wpre4k5"})(({theme:n})=>({fontSize:n.fontSizes.sm,display:"flex",gap:n.spacing.md,justifyContent:"flex-end",underline:!0})),StyledExceptionCopyButton=styled("button",{target:"e1wpre4k6"})({all:"unset",font:"inherit",textDecoration:"underline"}),StyledExceptionWrapper=styled("div",{target:"e1wpre4k7"})(({theme:n})=>({display:"flex",flexDirection:"column",gap:n.spacing.lg}));loglevelExports.getLogger("ExceptionElement");function isNonEmptyString(n){return notNullOrUndefined(n)&&n!==""}function ExceptionMessage({type:n,message:o,messageIsMarkdown:e}){if(e){let t=o??"";return n.length!==0&&(t=`**${n}**: ${t}`),jsx$1(StreamlitMarkdown$1,{source:t,allowHTML:!1})}return jsxs(Fragment,{children:[jsx$1(StyledMessageType,{children:n}),n.length!==0&&": ",isNonEmptyString(o)?o:null]})}function StackTrace({stackTrace:n}){return jsxs("div",{children:[jsx$1(StyledStackTraceTitle,{children:"Traceback:"}),jsx$1(StyledStackTrace,{children:jsx$1(StyledStackTraceContent,{children:jsx$1(StyledCode,{wrapLines:!1,children:n.map((o,e)=>jsx$1(StyledStackTraceRow,{"data-testid":"stExceptionTraceRow",children:o},e))})})})]})}function ExceptionElement({element:n}){const o=`${n.type}: ${n.message}`,e=`${o} 111 112${n.stackTrace?.join(` 113`)}`,t=`https://www.google.com/search?q=${encodeURIComponent(o)}`,c=`https://chatgpt.com/?q=${encodeURIComponent(e)}`,{copyToClipboard:p}=useCopyToClipboard(),h=reactExports.useCallback(()=>{p(e)},[p,e]);return jsx$1("div",{className:"stException","data-testid":"stException",children:jsx$1(AlertContainer,{kind:n.isWarning?Kind.WARNING:Kind.ERROR,children:jsxs(StyledExceptionWrapper,{children:[jsx$1(StyledExceptionMessage,{"data-testid":"stExceptionMessage",children:jsx$1(ExceptionMessage,{type:n.type,message:n.message,messageIsMarkdown:n.messageIsMarkdown})}),n.stackTrace&&n.stackTrace.length>0?jsx$1(StackTrace,{stackTrace:n.stackTrace}):null,isLocalhost()&&jsxs(StyledExceptionLinks,{children:[jsx$1(StyledExceptionCopyButton,{onClick:h,children:"Copy"}),jsx$1("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"Ask Google"}),jsx$1("a",{href:c,target:"_blank",rel:"noopener noreferrer",children:"Ask ChatGPT"})]})]})})})}const ExceptionElement$1=reactExports.memo(ExceptionElement),SINGLE_BADGE_REGEX=/^:\w+-badge\[((?:\\.|[^\]\\])*)\]$/;function Markdown({element:n}){const{allowHtml:o,body:e,elementType:t,help:c,isCaption:p}=n,h=t===Markdown$3.Type.LATEX,y=t===Markdown$3.Type.NATIVE&&SINGLE_BADGE_REGEX.test(e.trim());let g;if(c&&y)g=jsx$1(BaseButtonTooltip,{help:c,containerWidth:!1,children:jsx$1(StreamlitMarkdown$1,{isCaption:p,source:e,allowHTML:o})});else if(c&&h)g=jsxs(StyledLabelHelpWrapper,{isLatex:h,children:[jsx$1(StreamlitMarkdown$1,{isCaption:p,source:e,allowHTML:o}),jsx$1(InlineTooltipIcon,{content:c,isLatex:h})]});else{const $=c?`${e} :help[]`:e;g=jsx$1(StyledLabelHelpWrapper,{isLatex:h,children:jsx$1(StreamlitMarkdown$1,{isCaption:p,source:$,allowHTML:o,helpText:c})})}return jsx$1("div",{className:"stMarkdown","data-testid":"stMarkdown",children:g})}const Markdown$1=reactExports.memo(Markdown),StyledText=styled("span",{target:"edwxmgj0"})(({theme:n})=>({fontFamily:n.genericFonts.bodyFont,color:n.colors.bodyText,whiteSpace:"pre-line",whiteSpaceCollapse:"preserve",wordBreak:"break-word",display:"inline-block",verticalAlign:"middle",width:"100%"})),StyledInlineHelpIcon=styled("span",{target:"edwxmgj1"})(({theme:n})=>({display:"inline-block",verticalAlign:"middle",marginLeft:n.spacing.twoXS,transform:"translateY(-0.05em)"}));function TextElement({element:n}){return jsx$1(StyledLabelHelpWrapper,{className:"stText","data-testid":"stText",children:jsxs(StyledText,{children:[n.body,n.help&&jsx$1(StyledInlineHelpIcon,{children:jsx$1(InlineTooltipIcon,{content:n.help})})]})})}const TextElement$1=reactExports.memo(TextElement),katex_min=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function makeMarkdownHeading(n,o){switch(n.toLowerCase()){case Tags.H1:return`# ${o}`;case Tags.H2:return`## ${o}`;case Tags.H3:return`### ${o}`;default:throw new Error(`Unrecognized tag for header: ${n}`)}}const OVERRIDE_COMPONENTS={p:reactExports.Fragment,h1:reactExports.Fragment,h2:reactExports.Fragment,h3:reactExports.Fragment,h4:reactExports.Fragment,h5:reactExports.Fragment,h6:reactExports.Fragment};function Heading(n){const{element:o}=n,{tag:e,anchor:t,body:c,help:p,hideAnchor:h,divider:y}=o,g=reactExports.useContext(IsDialogContext),[$,...E]=c.split(` 114`);return jsxs("div",{className:"stHeading","data-testid":"stHeading",children:[jsxs(StyledStreamlitMarkdown,{isCaption:!1,isInDialog:g,"data-testid":"stMarkdownContainer",children:[jsx$1(HeadingWithActionElements,{anchor:t,help:p,hideAnchor:h,tag:e,children:jsx$1(RenderedMarkdown,{allowHTML:!1,source:makeMarkdownHeading(e,$),overrideComponents:OVERRIDE_COMPONENTS})}),E.length>0&&jsx$1(RenderedMarkdown,{source:E.join(` 115`),allowHTML:!1})]}),y&&jsx$1(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:y.includes("linear"),color:y})]})}const StyledCheckbox$1=styled("div",{target:"eg2gxky0"})(({theme:n})=>({display:"flex",alignItems:"center",minHeight:n.sizes.smallElementHeight})),StyledContent=styled("div",{target:"eg2gxky1"})(({visibility:n})=>({display:n===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:n===LabelVisibilityOptions.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}));function translateGapWidth(n,o){let e=o.spacing.lg;
115return n===streamlit.GapSize.MEDIUM?e=o.spacing.threeXL:n===streamlit.GapSize.LARGE?e=o.spacing.fourXL:n===streamlit.GapSize.NONE&&(e=o.spacing.none),e}const StyledSpace=styled("div",{target:"ek2vi380"})({width:"100%",height:"100%"}),GLOBAL_ELEMENTS=["balloons","snow"],StyledElementContainer=styled("div",{target:"ek2vi381"})(({theme:n,isStale:o,width:e,height:t,elementType:c,overflow:p,flex:h,minWidth:y,textAlign:g})=>({width:e,height:t,textAlign:g,maxWidth:"100%",minWidth:e==="0px"?0:y??"1rem",position:"relative",overflow:p,flex:h,"@media print":{overflow:"visible"},":has(> .stCacheSpinner)":{height:n.spacing.none,overflow:"visible",visibility:"visible",marginBottom:`-${n.spacing.lg}`,zIndex:n.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${n.spacing.xs}`,marginBottom:`-${n.spacing.xs}`},...o&&c!=="skeleton"&&STALE_STYLES,...c==="empty"?{display:"none"}:{},...c==="space"?{minWidth:0,minHeight:0}:{},...GLOBAL_ELEMENTS.includes(c)?{marginBottom:`-${n.spacing.lg}`}:{}})),StyledColumn=styled("div",{target:"ek2vi382"})(({theme:n,weight:o,gap:e,showBorder:t,verticalAlignment:c})=>{const{VerticalAlignment:p}=Block$1.Column,h=o*100,y=translateGapWidth(e,n),g=y===n.spacing.none?`${h}%`:`calc(${h}% - ${y})`;return{width:g,flex:`1 1 ${g}`,[`@media (max-width: ${n.breakpoints.columns})`]:{minWidth:`calc(100% - ${n.spacing.twoXL})`},...c===p.BOTTOM&&{marginTop:"auto",[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginBottom:n.spacing.sm}},...c===p.TOP&&{[`& ${StyledElementContainer}:first-of-type > ${StyledCheckbox$1}`]:{marginTop:n.spacing.sm}},...c===p.CENTER&&{marginTop:"auto",marginBottom:"auto"},...t&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`}}}),getAlignItems=n=>{switch(n){case Block$1.FlexContainer.Align.ALIGN_START:return"start";case Block$1.FlexContainer.Align.ALIGN_CENTER:return"center";case Block$1.FlexContainer.Align.ALIGN_END:return"end";case Block$1.FlexContainer.Align.STRETCH:return"stretch";case Block$1.FlexContainer.Align.ALIGN_UNDEFINED:case void 0:case null:return"stretch";default:assertNever(n)}},getJustifyContent=n=>{switch(n){case Block$1.FlexContainer.Justify.JUSTIFY_START:return"start";case Block$1.FlexContainer.Justify.JUSTIFY_CENTER:return"center";case Block$1.FlexContainer.Justify.JUSTIFY_END:return"end";case Block$1.FlexContainer.Justify.SPACE_BETWEEN:return"space-between";case Block$1.FlexContainer.Justify.JUSTIFY_UNDEFINED:case void 0:case null:return"start";default:assertNever(n)}},StyledFlexContainerBlock=styled("div",{target:"ek2vi383"})(({theme:n,direction:o,gap:e,flex:t,$wrap:c,height:p,border:h,align:y,justify:g,overflow:$})=>{let E;return e!==void 0&&(E=translateGapWidth(e,n)),{display:"flex",gap:E,width:"100%",maxWidth:"100%",height:p??"auto",minWidth:"1rem",flexDirection:o,flex:t,alignItems:getAlignItems(y),justifyContent:getJustifyContent(g),flexWrap:c?"wrap":"nowrap",...h&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`},overflow:$}}),StyledLayoutWrapper=styled("div",{target:"ek2vi384"})(({width:n,height:o,flex:e})=>({display:"flex",flexDirection:"column",width:n,maxWidth:"100%",minWidth:"1rem",he
115ight:o,flex:e})),LARGE_STRETCH_BEHAVIOR$1=["graphvizChart","arrowVegaLiteChart","deckGlJsonChart","plotlyChart","docString","arrowDataFrame","json","audioInput","fileUploader","cameraInput","audio","video","code","buttonGroup","iframe"],MEDIUM_STRETCH_BEHAVIOR$1=["dateInput","radio","slider","textArea","progress","multiselect","selectbox","timeInput","numberInput","textInput"],WIDTH_STRETCH_OVERRIDE=["componentInstance","skeleton"],VISIBLE_OVERFLOW_OVERRIDE=["iframe","arrowDataFrame","deckGlJsonChart","arrowVegaLiteChart","graphvizChart"],StyledElementContainerLayoutWrapper=({node:n,...o})=>{const{isInHorizontalLayout:e,isInRoot:t}=useRequiredContext(FlexContext);let c;LARGE_STRETCH_BEHAVIOR$1.includes(n.element.type??"")?c="14rem":MEDIUM_STRETCH_BEHAVIOR$1.includes(n.element.type??"")&&(c="8rem"),n.element.type==="buttonGroup"&&n.element.buttonGroup?.style===ButtonGroup$1.Style.BORDERLESS&&(c="fit-content");const p=reactExports.useMemo(()=>{const y={};if(WIDTH_STRETCH_OVERRIDE.includes(n.element.type??"")&&(y.width="100%"),VISIBLE_OVERFLOW_OVERRIDE.includes(n.element.type??"")&&(y.overflow="visible"),n.element.type==="textArea")return n.element.heightConfig?.useStretch?{height:"100%",flex:"1 1 8rem"}:e?{height:"auto"}:{height:"auto",flex:""};if(n.element.type==="arrowVegaLiteChart")return n.element.widthConfig?.useContent&&t&&(y.width="100%"),e&&!n.element.widthConfig&&(y.flex="1 1 14rem"),y;if(n.element.type==="arrowDataFrame")return n.element.widthConfig?.useContent&&t&&(y.width="100%"),y;if(n.element.type==="imgs"){const g=!n.element.widthConfig||n.element.widthConfig.useStretch;y.width=g?"100%":"auto"}return y},[n.element.type,n.element.heightConfig?.useStretch,e,t,n.element.widthConfig]);let h=useLayoutStyles({element:n.element,subElement:n.element?.type&&n.element[n.element.type]||void 0,styleOverrides:p,minStretchBehavior:c});return n.element.type==="space"&&(e?h={...h,height:"auto"}:h={...h,width:"auto"}),jsx$1(StyledElementContainer,{...o,...h})},ArrowTable=reactExports.lazy(()=>__vitePreload(()=>import("./index.CTssS8CY.js"),__vite__mapDeps([5,6,7,8]),import.meta.url)),ArrowVegaLiteChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.Dt4MKWrN.js"),__vite__mapDeps([9,10,11,12,13,7,6,8,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]),import.meta.url)),Audio=reactExports.lazy(()=>__vitePreload(()=>import("./index.BuO127Fv.js"),[],import.meta.url)),Balloons=reactExports.lazy(()=>__vitePreload(()=>import("./index.C4SaLgc9.js"),__vite__mapDeps([30,31]),import.meta.url)),DeckGlJsonChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.DATGLwZn.js"),__vite__mapDeps([32,20,21,10,11,15,33,13,27,28,34]),import.meta.url)),GraphVizChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.BSC_e7mC.js"),__vite__mapDeps([35,29,28,10,11]),import.meta.url)),Html=reactExports.lazy(()=>__vitePreload(()=>import("./index.CLw67zQa.js"),[],import.meta.url)),IFrame=reactExports.lazy(()=>__vitePreload(()=>import("./index.BNH1O6vW.js"),__vite__mapDeps([36,37]),import.meta.url)),ImageList=reactExports.lazy(()=>__vitePreload(()=>import("./index.CJdAAsMS.js"),__vite__mapDeps([38,10,11]),import.meta.url)),Json=reactExports.lazy(()=>__vitePreload(()=>import("./index.Cys-qREe.js"),__vite__mapDeps([39,15,16]),import.meta.url)),LinkButton=reactExports.lazy(()=>__vitePreload(()=>import("./index.B1br6-J8.js"),[],import.meta.url)),Metric=reactExports.lazy(()=>__vitePreload(()=>import("./index.BK8LGuo5.js"),__vite__mapDeps([40,26,27,28,29]),import.meta.url)),PageLink=reactExports.lazy(()=>__vitePreload(()=>import("./index.C9ZwaDT3.js"),[],import.meta.url)),PlotlyChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.DmaExHyk.js"),__vite__mapDeps([41,10,13]),import.meta.url)),Progress=reactExports.lazy(()=>__vitePreload(()=>import("./index.OW6D7CJ5.js"),__vite__mapDeps([42,43]),import.meta.url)),Snow=reactExports.lazy(()=>__vitePreload(()=>import("./index.xg87JKI8.js"),__vite__mapDeps([44,31]),import.meta.url)),Spinner=reactExports.lazy(()=>__vitePreload(()=>import("./index.CPVPS6MS.js"),[],import.meta.url)),StreamlitSyntaxHighlighter=reactExports.lazy(()=>__vitePreload(()=>import("./StreamlitSyntaxHighlighter.DU42g8NY.js"),[],import.meta.url)),Toast=reactExports.lazy(()=>__vitePreload(()=>import("./index.BDyX78eQ.js"),[],import.meta.url)),Video=reactExports.lazy(()=>__vitePreload(()=>import("./index.M-iumICI.js"),[],import.meta.url)),AudioInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.19XigCCW.js"),__vite__mapDeps([45,46,11,13,19,47,23]),import.meta.url)),ArrowDataFrame=reactExports.lazy(()=>__vitePreload(()=>import("./index.DDuPBAVu.js").then(n=>n.c),__vite__mapDeps([12,10,11,13,7,6,8,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url)),Button=reactExports.lazy(()=>__vitePreload(()=>import("./index.CQRv0Buu.js"),[],import.meta.url)),ButtonGroup=reactExports.lazy(()=>__vitePreload(()=>import("./index.CaMDX02c.js"),__vite__mapDeps([48,33,13]),import.meta.url)),ComponentInstance=reactExports.lazy(()=>__vitePreload(()=>import("./index.BSsyTGMU.js"),__vite__mapDeps([49,50,47,37]),import.meta.url).then(n=>({default:n.ComponentInstance}))),CameraInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.BtT26h8D.js"),__vite__mapDeps([51,50,52,13,43,47]),import.meta.url)),ChatInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.CVgZcb-2.js"),__vite__mapDeps([53,54,52,46,55,56,57,58,59]),import.meta.url)),Checkbox=reactExports.lazy(()=>__vitePreload(()=>import("./index.Dc27IuI8.js"),__vite__mapDeps([60,33,13,18]),import.meta.url)),ColorPicker=reactExports.lazy(()=>__vitePreload(()=>import("./index.BNJ18Gvk.js"),__vite__mapDeps([61,33,13,17]),import.meta.url)),DateInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.CV56Xzvw.js"),__vite__mapDeps([62,7,33,13,63,64,21,22,65,57,59]),import.meta.url)),DateTimeInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.NjN0yaAC.js"),__vite__mapDeps([66,7,63,64,21,22,65,57,33,13,67,59]),import.meta.url)),DownloadButton=reactExports.lazy(()=>__vitePreload(()=>import("./index.CccNGpyY.js"),__vite__mapDeps([68,19]),import.meta.url)),FileUploader=reactExports.lazy(()=>__vitePreload(()=>import("./index.DN77pJCq.js"),__vite__mapDeps([69,13,54,52,43]),import.meta.url)),FormSubmitContent=reactExports.lazy(()=>__vitePreload(()=>import("./index.COYdue8P.js"),__vite__mapDeps([70,13]),import.meta.url).then(n=>({default:n.FormSubmitContent}))),Multiselect=reactExports.lazy(()=>__vitePreload(()=>import("./index.BTeFWqxT.js"),__vite__mapDeps([71,33,13,24,8]),import.meta.url)),NumberInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.CCH6P_Oz.js"),__vite__mapDeps([72,55,13,14,73,65,57]),import.meta.url)),Radio=reactExports.lazy(()=>__vitePreload(()=>import("./index.C6PG_WI2.js"),__vite__mapDeps([74,33,13]),import.meta.url)),Selectbox$1=reactExports.lazy(()=>__vitePreload(()=>import("./index.Cc0FyOvj.js"),__vite__mapDeps([75,33,13]),import.meta.url)),Slider=reactExports.lazy(()=>__vitePreload(()=>import("./index.DmQGepo0.js"),__vite__mapDeps([76,7,14,50,33,13]),import.meta.url)),TextArea=reactExports.lazy(()=>__vitePreload(()=>import("./index.DdjNqo0t.js"),__vite__mapDeps([77,55,33,13,78,58,56,57,73]),import.meta.url)),TextInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.0CGAg_-3.js"),__vite__mapDeps([79,55,33,13,78,58,73,65,57]),import.meta.url)),TimeInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.SnIe8o_F.js"),__vite__mapDeps([80,33,13,67,64,21,22]),import.meta.url)),BidiComponent=reactExports.lazy(()=>__vitePreload(()=>import("./index.BVQ-x0jB.js"),[],import.meta.url));function hideIfStale(n,o){return n?jsx$1(Fragment,{}):o}const RawElementNodeRenderer=n=>{const{node:o}=n;
115if(!o)throw new Error("ElementNode not found.");const e={disableFullscreenMode:n.disableFullscreenMode,widthConfig:o.element.widthConfig,heightConfig:o.element.heightConfig},t={...e,widgetMgr:n.widgetMgr,disabled:n.widgetsDisabled,fragmentId:o.fragmentId,componentRegistry:n.componentRegistry};switch(o.element.type){case"alert":{const c=o.element.alert;return jsx$1(AlertElement$1,{icon:c.icon,body:c.body,kind:getAlertElementKind(c.format),...e})}case"arrowTable":{const c=o.element.arrowTable;return jsx$1(ArrowTable,{element:c,data:o.quiverElement,...e})}case"audio":return jsx$1(Audio,{element:o.element.audio,endpoints:n.endpoints,...e,elementMgr:n.widgetMgr});case"balloons":return hideIfStale(n.isStale,jsx$1(Balloons,{scriptRunId:o.scriptRunId}));case"code":{const c=o.element.code;return jsx$1(StreamlitSyntaxHighlighter,{language:c.language,showLineNumbers:c.showLineNumbers,wrapLines:c.wrapLines,children:c.codeText})}case"deckGlJsonChart":return jsx$1(DeckGlJsonChart,{element:o.element.deckGlJsonChart,...t});case"docString":return jsx$1(DocString$1,{element:o.element.docString,...e});case"empty":return jsx$1("div",{className:"stEmpty","data-testid":"stEmpty"});case"exception":return jsx$1(ExceptionElement$1,{element:o.element.exception,...e});case"graphvizChart":return jsx$1(GraphVizChart,{element:o.element.graphvizChart,...e});case"heading":return jsx$1(Heading,{element:o.element.heading,...e});case"iframe":return jsx$1(IFrame,{element:o.element.iframe,...e});case"imgs":return jsx$1(ImageList,{element:o.element.imgs,endpoints:n.endpoints,...e});case"json":return jsx$1(Json,{element:o.element.json,...e});case"markdown":return jsx$1(Markdown$1,{element:o.element.markdown,...e});case"metric":return jsx$1(Metric,{element:o.element.metric,...e});case"html":return jsx$1(Html,{element:o.element.html,...e});case"pageLink":{const c=o.element.pageLink,p=t.disabled||c.disabled;return jsx$1(PageLink,{element:c,disabled:p,...e})}case"progress":return jsx$1(Progress,{element:o.element.progress,...e});case"skeleton":return jsx$1(Skeleton,{element:o.element.skeleton});case"snow":return hideIfStale(n.isStale,jsx$1(Snow,{scriptRunId:o.scriptRunId}));case"space":return jsx$1(StyledSpace,{className:"stSpace","data-testid":"stSpace"});case"spinner":return jsx$1(Spinner,{element:o.element.spinner,...e});case"text":return jsx$1(TextElement$1,{element:o.element.text,...e});case"video":return jsx$1(Video,{element:o.element.video,endpoints:n.endpoints,...e,elementMgr:n.widgetMgr});case"toast":{const c=o.element.toast;return jsx$1(Toast,{element:c,...e},o.scriptRunId)}case"arrowDataFrame":{const c=o.element.arrowDataFrame;return t.disabled=t.disabled||c.disabled,jsx$1(ArrowDataFrame,{element:c,data:o.quiverElement,...t},c.id||void 0)}case"arrowVegaLiteChart":{const c=o.vegaLiteChartElement;return jsx$1(ArrowVegaLiteChart,{element:c,...t},c.id||void 0)}case"audioInput":{const c=o.element.audioInput;return t.disabled=t.disabled||c.disabled,jsx$1(AudioInput,{uploadClient:n.uploadClient,element:c,...t},c.id)}case"button":{const c=o.element.button;return t.disabled=t.disabled||c.disabled,c.isFormSubmitter?jsx$1(FormSubmitContent,{element:c,...t}):jsx$1(Button,{element:c,...t})}case"buttonGroup":{const c=o.element.buttonGroup;return t.disabled=t.disabled||c.disabled,jsx$1(ButtonGroup,{element:c,...t},c.id)}case"downloadButton":{const c=o.element.downloadButton;return t.disabled=t.disabled||c.disabled,jsx$1(DownloadButton,{endpoints:n.endpoints,element:c,...t},c.id)}case"cameraInput":{const c=o.element.cameraInput;return t.disabled=t.disabled||c.disabled,jsx$1(CameraInput,{element:c,uploadClient:n.uploadClient,...t},c.id)}case"chatInput":{const c=o.element.chatInput;return t.disabled=t.disabled||c.disabled,jsx$1(ChatInput,{element:c,uploadClient:n.uploadClient,...t},c.id)}case"checkbox":{const c=o.element.checkbox;return t.disabled=t.disabled||c.disabled,jsx$1(Checkbox,{element:c,...t},c.id)}case"colorPicker":{const c=o.element.colorPicker;return t.disabled=t.disabled||c.disabled,jsx$1(ColorPicker,{element:c,...t},c.id)}case"componentInstance":return jsx$1(ComponentInstance,{element:o.element.componentInstance,...t});case"dateInput":{const c=o.element.dateInput;return t.disabled=t.disabled||c.disabled,jsx$1(DateInput,{element:c,...t},c.id)}case"fileUploader":{const c=o.element.fileUploader;return t.disabled=t.disabled||c.disabled,jsx$1(FileUploader,{element:c,uploadClient:n.uploadClient,...t},c.id)}case"linkButton":{const c=o.element.linkButton;return jsx$1(LinkButton,{element:c,...e})}case"multiselect":{const c=o.element.multiselect;return t.disabled=t.disabled||c.disabled,jsx$1(Multiselect,{element:c,...t},c.id)}case"numberInput":{const c=o.element.numberInput;return t.disabled=t.disabled||c.disabled,jsx$1(NumberInput,{element:c,...t},c.id)}case"plotlyChart":{const c=o.element.plotlyChart;return jsx$1(PlotlyChart,{element:c,...t},c.id)}case"radio":{const c=o.element.radio;return t.disabled=t.disabled||c.disabled,jsx$1(Radio,{element:c,...t},c.id)}case"selectbox":{const c=o.element.selectbox;return t.disabled=t.disabled||c.disabled,jsx$1(Selectbox$1,{element:c,...t},c.id)}case"slider":{const c=o.element.slider;return t.disabled=t.disabled||c.disabled,jsx$1(Slider,{element:c,...t},c.id)}case"textArea":{const c=o.element.textArea;return t.disabled=t.disabled||c.disabled,jsx$1(TextArea,{element:c,outerElement:o.element,...t},c.id)}case"textInput":{const c=o.element.textInput;return t.disabled=t.disabled||c.disabled,jsx$1(TextInput,{element:c,...t},c.id)}
115case"dateTimeInput":{const c=o.element.dateTimeInput;return t.disabled=t.disabled||c.disabled,jsx$1(DateTimeInput,{element:c,...t},c.id)}case"timeInput":{const c=o.element.timeInput;return t.disabled=t.disabled||c.disabled,jsx$1(TimeInput,{element:c,...t},c.id)}case"bidiComponent":{const c=o.element.bidiComponent;return jsx$1(BidiComponent,{element:c,...t},c.id)}default:throw new Error(`Unrecognized Element type ${o.element.type}`)}},ElementNodeRenderer=n=>{const{isFullScreen:o}=reactExports.useContext(ViewStateContext),{scriptRunState:e,scriptRunId:t,fragmentIdsThisRun:c}=reactExports.useContext(ScriptRunContext),{node:p}=n,h=p.element.type||"",y=shouldComponentBeEnabled(h,e),g=isComponentStale(y,p,e,t,c),$=getElementId(p.element),E=getKeyFromId($);return jsx$1(Maybe,{enable:y,children:jsx$1(StyledElementContainerLayoutWrapper,{className:classNames("stElementContainer","element-container",convertKeyToClassName(E)),"data-testid":"stElementContainer","data-stale":g,isStale:g&&!o,elementType:h,node:p,children:jsx$1(ErrorBoundary,{children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsx$1(RawElementNodeRenderer,{...n,isStale:g})})})})})};class RenderNodeVisitor{constructor(o){this.props=o,this.elementKeySet=new Set,this.reactElements=[],this.index=0}getCurrentKey(o){const e=o||this.index.toString();return this.index+=1,e}visitBlockNode(o){const e={...this.props,node:o},t=this.getCurrentKey(),c=jsx$1(BlockNodeRenderer,{...e},t);return this.reactElements.push(c),c}visitElementNode(o){const e={...this.props,node:o},t=this.getCurrentKey(getElementId(o.element));if(this.elementKeySet.has(t))return null;this.elementKeySet.add(t);const c=jsx$1(ElementNodeRenderer,{...e},t);return this.reactElements.push(c),c}static collectReactElements(o){if(!o.node.children)return[];const e=new RenderNodeVisitor(o);return o.node.children.forEach(t=>t.accept(e)),e.reactElements}}const ChildRenderer=n=>(assignDividerColor(n.node,useEmotionTheme()),jsx$1(Fragment,{children:RenderNodeVisitor.collectReactElements(n)})),getLayoutSubElement=n=>{const o=n.type,e=o?n[o]:void 0;if(!e||typeof e!="object")return;const t=e,c={useContainerWidth:t.useContainerWidth,height:t.height,width:t.width,widthConfig:t.widthConfig};if(!(c.useContainerWidth===void 0&&c.height===void 0&&c.width===void 0&&c.widthConfig===void 0))return c},ContainerContentsWrapper=n=>{const o=reactExports.useContext(FlexContext),e={direction:Direction.VERTICAL,flex:1,gap:streamlit.GapSize.SMALL,height:n.height,border:!1},t=getKeyFromId(n.node.deltaBlock.id);return jsx$1(FlexContextProvider,{direction:Direction.VERTICAL,isRoot:n.isRoot,parentContext:o,children:jsx$1(StyledFlexContainerBlock,{...e,className:classNames(getClassnamePrefix(Direction.VERTICAL),convertKeyToClassName(t)),"data-testid":getClassnamePrefix(Direction.VERTICAL),children:jsx$1(ChildRenderer,{...n})})})},FlexBoxContainer=n=>{const o=getDirectionOfBlock(n.node.deltaBlock),e=reactExports.useContext(FlexContext),t=getActivateScrollToBottomBackwardsCompatible(n.node),c=useScrollToBottom(t),p=useLayoutStyles({element:n.node.deltaBlock,subElement:getLayoutSubElement(n.node.deltaBlock)}),h={gap:n.node.deltaBlock.flexContainer?.gapConfig?.gapSize??streamlit.GapSize.SMALL,direction:o,$wrap:n.node.deltaBlock.flexContainer?.wrap??!1,overflow:p.overflow,border:getBorderBackwardsCompatible(n.node.deltaBlock),height:p.height,flex:"1",align:n.node.deltaBlock.flexContainer?.align,justify:n.node.deltaBlock.flexContainer?.justify},y=getKeyFromId(n.node.deltaBlock.id),g=n.node.deltaBlock.widthConfig?.pixelWidth??void 0,$=n.node.deltaBlock.widthConfig?.useContent??!1,E=(n.node.deltaBlock.widthConfig?.pixelWidth??0)>0||(n.node.deltaBlock.widthConfig?.remWidth??0)>0;return jsx$1(FlexContextProvider,{direction:o,parentWidth:g,hasContentWidth:$,hasFixedWidth:E,parentContext:e,children:jsx$1(StyledFlexContainerBlock,{...h,className:classNames(getClassnamePrefix(o),convertKeyToClassName(y)),"data-testid":getClassnamePrefix(o),ref:c,"data-test-scroll-behavior":t?"scroll-to-bottom":"normal",children:jsx$1(ChildRenderer,{...n})})})},LARGE_STRETCH_BEHAVIOR=["tabContainer"],MEDIUM_STRETCH_BEHAVIOR=["chatInput"],BlockNodeRenderer=n=>{const{node:o}=n,{scriptRunState:e,scriptRunId:t,fragmentIdsThisRun:c}=reactExports.useContext(ScriptRunContext);let p;LARGE_STRETCH_BEHAVIOR.includes(o.deltaBlock.type??"")?p="14rem":MEDIUM_STRETCH_BEHAVIOR.includes(o.deltaBlock.type??"")?p="8rem":o.deltaBlock.type==="chatMessage"?o.isEmpty&&(p="8rem"):(o.deltaBlock.type==="flexContainer"||o.deltaBlock.column||o.deltaBlock.expandable)&&(o.isEmpty||(p="8rem"));const h=useLayoutStyles({element:o.deltaBlock,subElement:getLayoutSubElement(o.deltaBlock),minStretchBehavior:p});if(o.isEmpty&&!o.deltaBlock.allowEmpty)return jsx$1(Fragment,{});const y=shouldComponentBeEnabled("",e),g=isComponentStale(y,o,e,t,c),$={...n,node:o},E=n.disableFullscreenMode||notNullOrUndefined(o.deltaBlock.dialog)||notNullOrUndefined(o.deltaBlock.popover);let A;const N=jsx$1(ContainerContentsWrapper,{...$,disableFullscreenMode:E,height:"100%"});if(checkFlexContainerBackwardsCompatibile(o.deltaBlock)&&(A=jsx$1(FlexBoxContainer,{...$})),o.deltaBlock.dialog)return jsx$1(Dialog$1,{element:o.deltaBlock.dialog,deltaMsgReceivedAt:o.deltaMsgReceivedAt,widgetMgr:n.widgetMgr,fragmentId:o.fragmentId,children:N});if(o.deltaBlock.expandable&&(A=jsx$1(Expander$1,{isStale:g,element:o.deltaBlock.expandable,children:N})),o.deltaBlock.popover&&(A=jsx$1(Popover$1,{empty:o.isEmpty,element:o.deltaBlock.popover,stretchWidth:shouldWidthStretch(o.deltaBlock.widthConfig),children:N})),o.deltaBlock.type==="form"){const{formId:H,clearOnSubmit:Z,enterToSubmit:X,border:be}=o.deltaBlock.form;A=jsx$1(Form$1,{formId:H,clearOnSubmit:Z,enterToSubmit:X,widgetMgr:n.widgetMgr,border:be,overflow:h.overflow,children:N})}if(o.deltaBlock.chatMessage&&(A=jsx$1(ChatMessage$1,{element:o.deltaBlock.chatMessage,endpoints:n.endpoints,children:N})),o.deltaBlock.column)return jsx$1(StyledColumn,{weight:o.deltaBlock.column.weight??0,gap:backwardsCompatibleColumnGapSize(
115o.deltaBlock.column),verticalAlignment:o.deltaBlock.column.verticalAlignment??void 0,showBorder:o.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stColumn",children:N});if(o.deltaBlock.tabContainer){const Z={...$,isStale:g,renderTabContent:X=>jsx$1(ContainerContentsWrapper,{...X,height:"auto"}),width:h.width,flex:h.flex};return jsx$1(Tabs$1,{...Z})}return A?jsx$1(StyledLayoutWrapper,{"data-testid":"stLayoutWrapper",...h,children:A}):N},DownloadContext=reactExports.createContext({requestDeferredFile:void 0});DownloadContext.displayName="DownloadContext";const NavigationContext=reactExports.createContext({pageLinkBaseUrl:"",currentPageScriptHash:"",onPageChange:()=>{},navSections:[],appPages:[]});NavigationContext.displayName="NavigationContext";const StyledDataFrameOverlay=styled("div",{target:"e1hos2sk1"})(({theme:n})=>({position:"fixed",top:0,left:0,zIndex:n.zIndices.tablePortal,lineHeight:"100%",...!hasLightBackgroundColor(n)&&{"& input[type='date'], & input[type='time'], & input[type='datetime-local']":{"&::-webkit-calendar-picker-indicator":{filter:"brightness(0) invert(1)",opacity:1}}}})),StyledErrorMessage=styled("small",{target:"e1hos2sk2"})(({theme:n})=>({color:n.colors.redTextColor,fontSize:n.fontSizes.sm,marginTop:n.spacing.twoXS,display:"block"})),PortalContext=reactExports.createContext(null);PortalContext.displayName="PortalContext";const PortalProvider=({children:n})=>{const o=reactExports.useRef(null),e=reactExports.useCallback(()=>o.current,[]);return jsxs(PortalContext.Provider,{value:e,children:[n,jsx$1(StyledDataFrameOverlay,{"data-testid":"portal",id:"portal",ref:o})]})},SidebarConfigContext=reactExports.createContext({initialSidebarState:PageConfig.SidebarState.AUTO,appLogo:null,sidebarChevronDownshift:0,expandSidebarNav:!1,hideSidebarNav:!1});SidebarConfigContext.displayName="SidebarConfigContext";const ThemeContext=reactExports.createContext({activeTheme:getDefaultTheme(),setTheme:()=>{},availableThemes:[]});ThemeContext.displayName="ThemeContext";function ThemeProvider({theme:n,baseuiTheme:o,children:e}){return jsx$1(ThemeProvider$1,{theme:o||baseuiLightTheme,children:jsx$1(ThemeProvider$2,{theme:n,children:e})})}const CopyButton=({text:n})=>{const o=useEmotionTheme(),e=reactExports.useRef(null),{isCopied:t,copyToClipboard:c,label:p}=useCopyToClipboard(),h=reactExports.useCallback(()=>{c(n)},[c,n]);return jsx$1(StyledCopyButton,{"data-testid":"stCodeCopyButton",title:p,"aria-label":p,type:"button",ref:e,onClick:h,children:t?jsx$1(Check,{size:convertRemToPx(o.iconSizes.base)}):jsx$1(Copy,{size:convertRemToPx(o.iconSizes.base)})})},CopyButton$1=reactExports.memo(CopyButton);function StreamlitErrorCodeBlock({children:n}){const o=typeof n=="string"&&n.trim().length>0;return jsxs(StyledCodeBlock,{className:"stErrorCodeBlock","data-testid":"stErrorCodeBlock",children:[jsx$1(StyledPre,{wrapLines:!1,children:jsx$1(StyledCode,{wrapLines:!1,children:n})}),o&&jsx$1(StyledCopyButtonContainer,{children:jsx$1(CopyButton$1,{text:n})})]})}const StreamlitErrorCodeBlock$1=reactExports.memo(StreamlitErrorCodeBlock);function iconToUrl(n){const o=/^:(.+)\/(.+):$/,e=n.match(o);return e===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${e[2]}/default/24px.svg`}function handleFavicon(n,o,e){const t=h=>{overwriteFavicon(h),o({type:"SET_PAGE_FAVICON",favicon:h})};if(n.startsWith(":material")){t(iconToUrl(n));return}const c="emoji:";if(n.startsWith(c)){const h=n.substring(c.length),y=createEmojiDataUrl(h);t(y);return}/^:[a-zA-Z0-9_+-]+:$/.test(n)?convertShortcodeToEmoji(n).then(h=>{t(h?createEmojiDataUrl(h):e.buildMediaURL(n))}).catch(()=>{t(e.buildMediaURL(n))}):t(e.buildMediaURL(n))}function createEmojiDataUrl(n){return`data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>${n}</text></svg>`}function overwriteFavicon(n){const o=document.querySelector("link[rel='shortcut icon']");o&&(o.href=n)}async function convertShortcodeToEmoji(n){const o=await __vitePreload(()=>import("./index.BGGsxMsK.js"),[],import.meta.url),e=n.replace(/-/g,"_"),t=o.get(e);return t&&t!==e&&o.has(t)?t:""}const StyledWidgetLabel=styled("label",{target:"e1gk92lc0"})(({disabled:n,labelVisibility:o,theme:e})=>({fontSize:e.fontSizes.sm,color:n?e.colors.fadedText40:e.colors.bodyText,display:o===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:o===LabelVisibilityOptions.Hidden?"hidden":"visible",marginBottom:e.spacing.twoXS,height:"auto",minHeight:e.fontSizes.xl,verticalAlign:"middle",flexDirection:"row",alignItems:"center"})),StyledWidgetLabelHelp=styled("div",{target:"e1gk92lc1"})({display:"flex",flexDirection:"row",justifyContent:"flex-end",flex:1}),StyledWidgetInstructions=styled("div",{target:"e1gk92lc2"})(({theme:n})=>
115({fontSize:n.fontSizes.twoSm,color:n.colors.fadedText60,margin:n.spacing.none,textAlign:"right",position:"absolute",bottom:n.spacing.threeXS,right:`calc(${n.fontSizes.mdLg} * 0.5)`})),StyledWidgetLabelHelpInline=styled("label",{target:"e1gk92lc3"})(({theme:n})=>({marginLeft:n.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}));function WidgetLabel({label:n,children:o,disabled:e,labelVisibility:t,htmlFor:c}){return isNullOrUndefined(n)?jsx$1(Fragment,{}):jsxs(StyledWidgetLabel,{"data-testid":"stWidgetLabel","aria-hidden":"true",disabled:e,labelVisibility:t,htmlFor:c,children:[jsx$1(StreamlitMarkdown$1,{source:n,allowHTML:!1,isLabel:!0}),o]})}var _excluded$i=["title","size","color","overrides"];function _extends$i(){return _extends$i=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$i.apply(this,arguments)}function _objectWithoutProperties$g(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$f(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$f(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _slicedToArray$d(n,o){return _arrayWithHoles$d(n)||_iterableToArrayLimit$d(n,o)||_unsupportedIterableToArray$d(n,o)||_nonIterableRest$d()}function _nonIterableRest$d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 116In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$d(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$d(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$d(n,o)}}function _arrayLikeToArray$d(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$d(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$d(n){if(Array.isArray(n))return n}function ChevronDown(n,o){var e=useStyletron(),t=_slicedToArray$d(e,2),c=t[1],p=n.title,h=p===void 0?"Down":p,y=n.size,g=n.color,$=n.overrides,E=$===void 0?{}:$,A=_objectWithoutProperties$g(n,_excluded$i),N=mergeOverride({component:c.icons&&c.icons.ChevronDown?c.icons.ChevronDown:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$i({viewBox:"0 0 24 24",ref:o,title:h,size:y,color:g,overrides:{Svg:N}},A),reactExports.createElement("path",{transform:"rotate(270, 12, 12)",fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 12.2652 9.10536 12.5196 9.29289 12.7071L13.2929 16.7071C13.6834 17.0976 14.3166 17.0976 14.7071 16.7071C15.0976 16.3166 15.0976 15.6834 14.7071 15.2929L11.4142 12L14.7071 8.70711C15.0976 8.31658 15.0976 7.68342 14.7071 7.29289C14.3166 6.90237 13.6834 6.90237 13.2929 7.29289L9.29289 11.2929C9.10536 11.4804 9 11.7348 9 12Z"}))}const ChevronDown$1=reactExports.forwardRef(ChevronDown);var _excluded$h=["title","size","color","overrides"];function _extends$h(){return _extends$h=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$h.apply(this,arguments)}function _objectWithoutProperties$f(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$e(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$e(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _slicedToArray$c(n,o){return _arrayWithHoles$c(n)||_iterableToArrayLimit$c(n,o)||_unsupportedIterableToArray$c(n,o)||_nonIterableRest$c()}function _nonIterableRest$c(){throw new TypeError(`Invalid attempt to de
116structure non-iterable instance. 117In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$c(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$c(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$c(n,o)}}function _arrayLikeToArray$c(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$c(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$c(n){if(Array.isArray(n))return n}function DeleteAlt(n,o){var e=useStyletron(),t=_slicedToArray$c(e,2),c=t[1],p=n.title,h=p===void 0?"Delete Alt":p,y=n.size,g=n.color,$=n.overrides,E=$===void 0?{}:$,A=_objectWithoutProperties$f(n,_excluded$h),N=mergeOverride({component:c.icons&&c.icons.DeleteAlt?c.icons.DeleteAlt:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$h({viewBox:"0 0 24 24",ref:o,title:h,size:y,color:g,overrides:{Svg:N}},A),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"}))}const DeleteAlt$1=reactExports.forwardRef(DeleteAlt);var _excluded$g=["title","size","color","overrides"];function _extends$g(){return _extends$g=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$g.apply(this,arguments)}function _objectWithoutProperties$e(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$d(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$d(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _slicedToArray$b(n,o){return _arrayWithHoles$b(n)||_iterableToArrayLimit$b(n,o)||_unsupportedIterableToArray$b(n,o)||_nonIterableRest$b()}function _nonIterableRest$b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 118In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$b(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$b(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$b(n,o)}}function _arrayLikeToArray$b(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$b(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$b(n){if(Array.isArray(n))return n}function Search(n,o){var e=useStyletron(),t=_slicedToArray$b(e,2),c=t[1],p=n.title,h=p===void 0?"Search":p,y=n.size,g=n.color,$=n.overrides,E=$===void 0?{}:$,A=_objectWithoutProperties$e(n,_excluded$g),N=mergeOverride({component:c.icons&&c.icons.Search?c.icons.Search:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$g({viewBox:"0 0 24 24",ref:o,title:h,size:y,color:g,overrides:{Svg:N}},A),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6C8.79086 6 7 7.79086 7 10C7 12.2091 8.79086 14 11 14C13.2091 14 15 12.2091 15 10C15 7.79086 13.2091 6 11 6ZM5 10C5 6.68629 7.68629 4 11 4C14.3137 4 17 6.68629 17 10C17 11.2958 16.5892 12.4957 15.8907 13.4765L19.7071 17.2929C20.0976 17.6834 20.0976 18.3166 19.7071 18.7071C19.3166 19.0976 18.6834 19.0976 18.2929 18.7071L14.4765 14.8907C13.4957 15.5892 12.2958 16 11 16C7.68629 16 5 13.3137 5 10Z"}))}const SearchIconComponent=reactExports.forwardRef(Search);var _excluded$f=["title","size","color","overrides"];function _extends$f(){return _extends$f=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$f.apply(this,arguments)}function _objectWithoutProperties$d(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$c(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$c(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _slicedToArray$a(n,o){return _arrayWithHoles$a(n)||_iterableToArrayLimit$a(n,o)||_unsupportedIterableToArray$a(n,o)||_nonIterableRest$a()}function _nonIterableRest$a(){throw new TypeError(`Invalid attempt to de
118structure non-iterable instance. 119In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$a(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$a(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$a(n,o)}}function _arrayLikeToArray$a(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$a(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$a(n){if(Array.isArray(n))return n}function TriangleDown(n,o){var e=useStyletron(),t=_slicedToArray$a(e,2),c=t[1],p=n.title,h=p===void 0?"Triangle Down":p,y=n.size,g=n.color,$=n.overrides,E=$===void 0?{}:$,A=_objectWithoutProperties$d(n,_excluded$f),N=mergeOverride({component:c.icons&&c.icons.TriangleDown?c.icons.TriangleDown:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$f({viewBox:"0 0 24 24",ref:o,title:h,size:y,color:g,overrides:{Svg:N}},A),reactExports.createElement("path",{d:"M12.7071 15.2929L17.1464 10.8536C17.4614 10.5386 17.2383 10 16.7929 10L7.20711 10C6.76165 10 6.53857 10.5386 6.85355 10.8536L11.2929 15.2929C11.6834 15.6834 12.3166 15.6834 12.7071 15.2929Z"}))}const TriangleDownIcon=reactExports.forwardRef(TriangleDown);var CUSTOM_INPUT_TYPE={textarea:"textarea"},ADJOINED={none:"none",left:"left",right:"right",both:"both"},SIZE$1={mini:"mini",default:"default",compact:"compact",large:"large"},ENHANCER_POSITION={start:"start",end:"end"},TYPE={select:"select",search:"search"},STATE_CHANGE_TYPE=Object.freeze({select:"select",remove:"remove",clear:"clear"}),STATE_CHANGE_TYPES={click:"click",moveUp:"moveUp",moveDown:"moveDown",mouseEnter:"mouseEnter",focus:"focus",reset:"reset",character:"character",enter:"enter"},KEY_STRINGS={ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Enter:"Enter",Home:"Home",End:"End"},OPTION_LIST_SIZE={default:"default",compact:"compact"},_excluded$e=["item"];function _objectWithoutProperties$c(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$b(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$b(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function ownKeys$c(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$a(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$c(Object(e),!0).forEach(function(t){_defineProperty$d(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$c(Object(e)).forEac
119h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$d(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var StyledList=styled$1("ul",function(n){var o=n.$theme,e=n.$isFocusVisible;return{backgroundColor:o.colors.menuFill,position:"relative",marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,paddingTop:o.sizing.scale300,paddingBottom:o.sizing.scale300,paddingLeft:0,paddingRight:0,borderTopLeftRadius:o.borders.popoverBorderRadius,borderTopRightRadius:o.borders.popoverBorderRadius,borderBottomRightRadius:o.borders.popoverBorderRadius,borderBottomLeftRadius:o.borders.popoverBorderRadius,boxShadow:o.lighting.shadow600,overflow:"auto",":focus":{outline:e?"3px solid ".concat(o.colors.accent):"none"}}});StyledList.displayName="StyledList";StyledList.displayName="StyledList";function getFontColor(n){return n.$disabled?n.$theme.colors.menuFontDisabled:n.$isHighlighted&&n.$isFocused?n.$theme.colors.menuFontHighlighted:n.$isHighlighted&&!n.$isFocused?n.$theme.colors.menuFontSelected:n.$theme.colors.menuFontDefault}function getBackgroundColor(n){return n.$disabled?"transparent":n.$isHighlighted?n.$theme.colors.menuFillHover:"transparent"}var StyledEmptyState=styled$1("li",function(n){var o=n.$theme,e=n.$size;return _objectSpread$a(_objectSpread$a({},e===OPTION_LIST_SIZE.compact?o.typography.font100:o.typography.font200),{},{position:"relative",display:"block",color:o.colors.menuFontDisabled,textAlign:"center",cursor:"not-allowed",backgroundColor:"transparent",marginBottom:0,paddingTop:o.sizing.scale800,paddingBottom:o.sizing.scale800,paddingRight:o.sizing.scale800,paddingLeft:o.sizing.scale800})});StyledEmptyState.displayName="StyledEmptyState";StyledEmptyState.displayName="StyledEmptyState";var StyledOptgroupHeader=styled$1("li",function(n){var o=n.$theme.sizing.scale300,e=n.$theme.sizing.scale200;return _objectSpread$a(_objectSpread$a({},n.$theme.typography.font250),{},{color:n.$theme.colors.contentPrimary,paddingTop:e,paddingBottom:e,paddingRight:o,paddingLeft:o})});StyledOptgroupHeader.displayName="StyledOptgroupHeader";StyledOptgroupHeader.displayName="StyledOptgroupHeader";var StyledListItemAnchor=styled$1("a",function(n){return{display:"block",color:getFontColor(n)}});StyledListItemAnchor.displayName="StyledListItemAnchor";StyledListItemAnchor.displayName="StyledListItemAnchor";var StyledListItemElement=styled$1("li",function(n){var o=n.$disabled,e=n.$theme,t=n.$size;return _objectSpread$a(_objectSpread$a({},t===OPTION_LIST_SIZE.compact?e.typography.font100:e.typography.font200),{},{boxSizing:"border-box",position:"relative",display:"block",color:getFontColor(n),cursor:o?"not-allowed":"pointer",backgroundColor:getBackgroundColor(n),transitionProperty:"color, background-color",transitionDuration:e.animation.timing200,transitionTimingFunction:e.animation.easeOutCurve,marginBottom:0,paddingTop:t===OPTION_LIST_SIZE.compact?e.sizing.scale100:e.sizing.scale300,paddingBottom:t===OPTION_LIST_SIZE.compact?e.sizing.scale100:e.sizing.scale300,paddingRight:t===OPTION_LIST_SIZE.compact?e.sizing.scale900:e.sizing.scale600,paddingLeft:t===OPTION_LIST_SIZE.compact?e.sizing.scale900:e.sizing.scale600,":focus":{outline:"none"}})});StyledListItemElement.displayName="StyledListItemElement";StyledListItemElement.displayName="StyledListItemElement";var StyledListItem=withWrapper(StyledListItemElement,function(n){return function(e){e.item;var t=_objectWithoutProperties$c(e,_excluded$e);return reactExports.createElement(n,t)}}),StyledListItemProfile=styled$1("li",function(n){var o=n.$theme;return{position:"relative",display:"flex",alignItems:"center",cursor:"pointer",paddingTop:o.sizing.scale300,paddingBottom:o.sizing.scale300,paddingRight:o.sizing.scale800,paddingLeft:o.sizing.scale800,transitionProperty:"color, background-color",transitionDuration:o.animation.timing200,transitionTimingFunction:o.animation.easeOutCurve,":hover":{backgroundColor:o.colors.menuFillHover}}});StyledListItemProfile.displayName="StyledListItemProfile";StyledListItemProfile.displayName="StyledListItemProfile";var StyledProfileImgContainer=styled$1("div",{width:"60px",height:"60px",display:"flex",justifyContent:"center",alignItems:"center"});
119StyledProfileImgContainer.displayName="StyledProfileImgContainer";StyledProfileImgContainer.displayName="StyledProfileImgContainer";var StyledProfileImg=styled$1("img",{width:"100%",height:"100%",borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%"});StyledProfileImg.displayName="StyledProfileImg";StyledProfileImg.displayName="StyledProfileImg";var StyledProfileLabelsContainer=styled$1("div",function(n){var o=n.$theme,e=o.direction,t=o.sizing;return _objectSpread$a({alignSelf:e==="rtl"?"flex-end":"flex-start",display:"flex",flexDirection:"column"},e==="rtl"?{marginRight:t.scale600}:{marginLeft:t.scale600})});StyledProfileLabelsContainer.displayName="StyledProfileLabelsContainer";StyledProfileLabelsContainer.displayName="StyledProfileLabelsContainer";var StyledProfileTitle=styled$1("h6",function(n){var o=n.$theme;return _objectSpread$a(_objectSpread$a({},o.typography.font350),{},{color:o.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});StyledProfileTitle.displayName="StyledProfileTitle";StyledProfileTitle.displayName="StyledProfileTitle";var StyledProfileSubtitle=styled$1("p",function(n){var o=n.$theme;return _objectSpread$a(_objectSpread$a({},o.typography.font200),{},{color:o.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});StyledProfileSubtitle.displayName="StyledProfileSubtitle";StyledProfileSubtitle.displayName="StyledProfileSubtitle";var StyledProfileBody=styled$1("p",function(n){var o=n.$theme;return _objectSpread$a(_objectSpread$a({},o.typography.font100),{},{color:o.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});StyledProfileBody.displayName="StyledProfileBody";StyledProfileBody.displayName="StyledProfileBody";var StyledMenuDivider$1=styled$1("li",function(n){var o=n.$theme;return{color:o.colors.contentPrimary,borderBottomWidth:o.borders.border300.borderWidth,borderBottomStyle:o.borders.border300.borderStyle,borderBottomColor:o.borders.border300.borderColor,marginTop:o.sizing.scale100,marginBottom:o.sizing.scale100,marginLeft:o.sizing.scale500,marginRight:o.sizing.scale500,listStyle:"none",height:0}});StyledMenuDivider$1.displayName="StyledMenuDivider";StyledProfileBody.displayName="StyledMenuDivider";var NestedMenuContext=reactExports.createContext({addMenuToNesting:function n(){},removeMenuFromNesting:function n(){},getParentMenu:function n(){},getChildMenu:function n(){},nestedMenuHoverIndex:-1,isNestedMenuVisible:function n(){return!1},mountRef:{current:null}});function _extends$e(){return _extends$e=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$e.apply(this,arguments)}function _slicedToArray$9(n,o){return _arrayWithHoles$9(n)||_iterableToArrayLimit$9(n,o)||_unsupportedIterableToArray$9(n,o)||_nonIterableRest$9()}function _nonIterableRest$9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 120In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$9(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$9(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$9(n,o)}}function _arrayLikeToArray$9(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$9(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$9(n){if(Array.isArray(n))return n}var MaybeChildMenu=function n(o){if(!o.getChildMenu)return o.children;var e=o.getChildMenu(o.item);if(!e)return o.children;var t=o.overrides,c=t===void 0?{}:t,p=getOverrides(c.ChildMenuPopover,Popover$2),h=_slicedToArray$9(p,2),y=h[0],g=h[1];return reactExports.createElement(NestedMenuContext.Consumer,null,function($){return reactExports.createElement(y,_extends$e({focusLock:!1,autoFocus:!1,isOpen:o.isOpen,renderAll:o.renderAll,content:e,ignoreBoundary:!0,mountNode:$.mountRef.current?$.mountRef.current:void 0,onClick:o.onClick,onMouseEnterDelay:30,onMouseLeaveDelay:30,onEsc:o.resetParentMenu,placement:"rightTop"},g,{overrides:mergeOverrides({Body:{props:{onKeyDown:function(A){A.keyCode===9&&A.preventDefault()}}}},g.overrides)}),o.children)})},_excluded$d=["getChildMenu","getItemLabel","item","onClick","onMouseEnter","overrides","renderHrefAsAnchor","resetMenu","size","$isHighlighted","renderAll"];function ownKeys$b(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$9(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};
120o%2?ownKeys$b(Object(e),!0).forEach(function(t){_defineProperty$c(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$b(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$c(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function _extends$d(){return _extends$d=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$d.apply(this,arguments)}function _slicedToArray$8(n,o){return _arrayWithHoles$8(n)||_iterableToArrayLimit$8(n,o)||_unsupportedIterableToArray$8(n,o)||_nonIterableRest$8()}function _nonIterableRest$8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 121In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$8(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$8(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$8(n,o)}}function _arrayLikeToArray$8(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$8(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$8(n){if(Array.isArray(n))return n}function _objectWithoutProperties$b(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$a(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$a(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function OptionList(n,o){var e=n.getChildMenu,t=n.getItemLabel,c=t===void 0?function(Ke){return Ke?Ke.label:""}:t,p=n.item,h=n.onClick,y=h===void 0?function(){}:h,g=n.onMouseEnter,$=g===void 0?function(){}:g,E=n.overrides,A=E===void 0?{}:E,N=n.renderHrefAsAnchor,H=N===void 0?!0:N,Z=n.resetMenu,X=Z===void 0?function(){}:Z,be=n.size,we=be===void 0?OPTION_LIST_SIZE.default:be,$e=n.$isHighlighted,Ce=n.renderAll,Ie=_objectWithoutProperties$b(n,_excluded$d),Ne=getOverrides(A.ListItem,StyledListItem),Fe=_slicedToArray$8(Ne,2),Be=Fe[0],Ge=Fe[1],je=getOverrides(A.ListItemAnchor,StyledListItemAnchor),De=_slicedToArray$8(je,2),Ue=De[0],Je=De[1],Xe=function(ze){return ze.href&&H?reactExports.createElement(Ue,_extends$d({$item:ze,href:ze.href},Je),c(ze)):reactExports.createElement(reactExports.Fragment,null,c(ze))};return reactExports.createElement(LocaleContext.Consumer,null,function(Ke){return reactExports.createElement(MaybeChildMenu,{getChildMenu:e,isOpen:!!$e,item:p,resetParentMenu:X,renderAll:Ce,onClick:y,overrides:A},reactExports.createElement(Be,_extends$d({ref:o,"aria-label":e&&e(p)?Ke.menu.parentMenuItemAriaLabel:null,item:p,onClick:y,onMouseEnter:$,$size:we,$isHighlighted:$e},Ie,Ge),Xe(_objectSpread$9({isHighlighted:$e},p))))})}function areEqualShallow(n,o){if(!n||!o)return!1;for(var e in n)if(n[e]!==o[e])return!1;return!0}function compare(n,o){return n.$isHighlighted===o.$isHighlighted&&n.$isFocused===o.$isFocused&&areEqualShallow(n.item,o.item)&&areEqualShallow(n.overrides,o.overrides)&&n.size===o.size&&n.getItemLabel===o.getItemLabel&&n.getChildMenu===o.getChildMenu&&n.resetMenu===o.resetMenu}var forwarded=reactExports.forwardRef(OptionList);forwarded.displayName="OptionList";const OptionList$1=reactExports.memo(forwarded,compare);var _excluded$c=["disabled","isFocused","isHighlighted","resetMenu"];function _objectWithoutProperties$a(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$9(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$9(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$c.apply(this,arguments)}function _slicedToArray$7(n,o){return _arrayWithHoles$7(n)||_iterableToArrayLimit$7(n,o)||_unsupportedIterableToArray$7(n,o)||_nonIterableRest$7()}function _nonIterableRest$7(){throw new TypeError(`Invalid attempt to de
121structure non-iterable instance. 122In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$7(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$7(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$7(n,o)}}function _arrayLikeToArray$7(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$7(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$7(n){if(Array.isArray(n))return n}function Menu(n){var o=n.overrides,e=o===void 0?{}:o,t=n["aria-label"],c=t===void 0?"Menu":t,p=n.rootRef,h=p===void 0?reactExports.createRef():p,y=n.focusMenu,g=y===void 0?function(){}:y,$=n.unfocusMenu,E=$===void 0?function(){}:$,A=n.handleMouseLeave,N=A===void 0?function(){}:A,H=n.handleKeyDown,Z=H===void 0?function(en){}:H,X=n.renderAll,be=X===void 0?!1:X,we=reactExports.useState(!1),$e=_slicedToArray$7(we,2),Ce=$e[0],Ie=$e[1],Ne=function(Wt){isFocusVisible(Wt)&&Ie(!0)},Fe=function(Wt){Ce!==!1&&Ie(!1)},Be=getOverrides(e.List,StyledList),Ge=_slicedToArray$7(Be,2),je=Ge[0],De=Ge[1],Ue=getOverrides(e.Option,OptionList$1),Je=_slicedToArray$7(Ue,2),Xe=Je[0],Ke=Je[1],ze=getOverrides(e.EmptyState,StyledEmptyState),nt=_slicedToArray$7(ze,2),ct=nt[0],at=nt[1],dt=getOverrides(e.OptgroupHeader,StyledOptgroupHeader),Me=_slicedToArray$7(dt,2),We=Me[0],tt=Me[1],Ve=getOverrides(e.MenuDivider,StyledMenuDivider$1),vt=_slicedToArray$7(Ve,2),xt=vt[0],Qe=vt[1],St=Array.isArray(n.items)?{__ungrouped:n.items}:n.items,pt=Object.keys(St),wt=pt.reduce(function(en,Wt){var an=_slicedToArray$7(en,2),qt=an[0],zt=an[1];Wt!=="__ungrouped"&&qt.push(reactExports.createElement(We,_extends$c({key:Wt},tt),Wt));var Jt=St[Wt].map(function(jt,Yt){zt=zt+1;var yn=n.getRequiredItemProps,vn=yn===void 0?function(Nt,Ct){return{}}:yn;if(jt.divider===!0)return reactExports.createElement(xt,Qe);var nn=vn(jt,zt),pn=nn.disabled,Ut=nn.isFocused,it=nn.isHighlighted,gt=nn.resetMenu,Tt=gt===void 0?function(){}:gt,Et=_objectWithoutProperties$a(nn,_excluded$c);return reactExports.createElement(Xe,_extends$c({renderAll:be,key:zt,item:jt,overrides:n.overrides,resetMenu:Tt,role:"option",$disabled:pn,$isFocused:Ut,$isHighlighted:it,"aria-disabled":pn,"aria-selected":it&&Ut},Et,Ke))});return[qt.concat(Jt),zt]},[[],-1]),Ft=_slicedToArray$7(wt,1),Ht=Ft[0],on=pt.every(function(en){return!St[en].length});return reactExports.createElement(LocaleContext.Consumer,null,function(en){return reactExports.createElement(je,_extends$c({"aria-activedescendant":n.activedescendantId||null,role:"listbox","aria-label":c,ref:h,onMouseEnter:g,onMouseLeave:N,onMouseOver:g,onFocus:forkFocus({onFocus:g},Ne),onBlur:forkBlur({onBlur:E},Fe),onKeyDown:function(an){n.isFocused&&Z(an)},tabIndex:0,"data-baseweb":"menu",$isFocusVisible:Ce},De),on?reactExports.createElement(ct,_extends$c({"aria-live":"polite","aria-atomic":!0},at),n.noResultsMsg||en.menu.noResultsMsg):Ht)})}function scrollItemIntoView(n,o,e,t){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"auto";if(n){var p=n.getBoundingClientRect(),h=o.getBoundingClientRect();if(p.bottom>h.bottom)if(t)o.scrollTop=o.scrollHeight-h.height;else{var y=n.offsetTop+p.height;o.scrollTop=y-(c==="center"?Math.round((h.height+p.height)/2):h.height)}else p.top<h.top&&(e?o.scrollTop=0:o.scrollTop=n.offsetTop-(c==="center"?Math.round((h.height-p.height)/2):0))}}function _typeof$7(n){"@babel/helpers - typeof";return _typeof$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$7(n)}var _excluded$b=["disabled"],_excluded2$3=["initialState","stateReducer","children","onItemSelect","addMenuToNesting","removeMenuFromNesting","getParentMenu","getChildMenu","forceHighlight"];function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$b.apply(this,arguments)}function _objectWithoutProperties$9(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$8(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$8(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function ownKeys$a(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$8(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};
122o%2?ownKeys$a(Object(e),!0).forEach(function(t){_defineProperty$b(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$a(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _classCallCheck$5(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$5(n,o,e){return o&&_defineProperties$5(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$5(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$5(n,o)}function _setPrototypeOf$5(n,o){return _setPrototypeOf$5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$5(n,o)}function _createSuper$5(n){var o=_isNativeReflectConstruct$5();return function(){var t=_getPrototypeOf$5(n),c;if(o){var p=_getPrototypeOf$5(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$5(this,c)}}function _possibleConstructorReturn$5(n,o){if(o&&(_typeof$7(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$6(n)}function _assertThisInitialized$6(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$5(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$5(n){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$5(n)}function _defineProperty$b(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var DEFAULT_PROPS={initialState:{highlightedIndex:-1,isFocused:!1},typeAhead:!0,keyboardControlNode:{current:null},stateReducer:function(n,o){return o},onItemSelect:function n(){},getRequiredItemProps:function n(){return{}},children:function n(){return null},addMenuToNesting:function n(){},removeMenuFromNesting:function n(){},getParentMenu:function n(){},getChildMenu:function n(){},nestedMenuHoverIndex:-1,isNestedMenuVisible:function n(){return!1},forceHighlight:!1},MenuStatefulContainerInner=function(n){_inherits$5(e,n);var o=_createSuper$5(e);function e(){var t;_classCallCheck$5(this,e);for(var c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];return t=o.call.apply(o,[this].concat(p)),_defineProperty$b(_assertThisInitialized$6(t),"state",_objectSpread$8(_objectSpread$8({},t.constructor.defaultProps.initialState),t.props.initialState)),_defineProperty$b(_assertThisInitialized$6(t),"rootRef",reactExports.createRef()),_defineProperty$b(_assertThisInitialized$6(t),"keyboardControlNode",t.props.keyboardControlNode.current),_defineProperty$b(_assertThisInitialized$6(t),"refList",[]),_defineProperty$b(_assertThisInitialized$6(t),"optionIds",[]),_defineProperty$b(_assertThisInitialized$6(t),"typeAheadChars",""),_defineProperty$b(_assertThisInitialized$6(t),"typeAheadTimeOut",null),_defineProperty$b(_assertThisInitialized$6(t),"onKeyDown",function(y){switch(y.key){case KEY_STRINGS.ArrowUp:case KEY_STRINGS.ArrowDown:case KEY_STRINGS.ArrowLeft:case KEY_STRINGS.ArrowRight:case KEY_STRINGS.Home:case KEY_STRINGS.End:t.handleArrowKey(y);break;case KEY_STRINGS.Enter:if(y.keyCode===229)break;t.handleEnterKey(y);break;default:t.props.typeAhead&&(clearTimeout(t.typeAheadTimeOut),t.handleAlphaDown(y));break}}),_defineProperty$b(_assertThisInitialized$6(t),"handleAlphaDown",function(y){var g=t.props.rootRef?t.props.rootRef:t.rootRef,$=t.state.highlightedIndex;t.typeAheadChars+=y.key,t.typeAheadTimeOut=setTimeout(function(){t.typeAheadChars=""},500);var E=$,A=t.getItems();
122if(!(A.length===0||!("label"in A[0]))){for(var N=!0,H=0;H<A.length;H++){var Z=A[H].label;if(Z&&Z.toUpperCase&&Z.toUpperCase().indexOf(t.typeAheadChars.toUpperCase())===0){E=H,N=!1;break}}if(N)for(var X=0;X<A.length;X++){var be=A[X].label;if(be&&be.toUpperCase&&be.toUpperCase().indexOf(t.typeAheadChars.toUpperCase())>0){E=X;break}}t.internalSetState(STATE_CHANGE_TYPES.character,{highlightedIndex:E}),t.refList[E]&&scrollItemIntoView(t.refList[E].current,g.current,E===0,E===A.length-1)}}),_defineProperty$b(_assertThisInitialized$6(t),"handleArrowKey",function(y){var g=t.props.rootRef?t.props.rootRef:t.rootRef,$=t.state.highlightedIndex,E=$;if(y.key===KEY_STRINGS.ArrowUp)y.preventDefault(),E=Math.max(0,$-1),t.internalSetState(STATE_CHANGE_TYPES.moveUp,{highlightedIndex:E});else if(y.key===KEY_STRINGS.ArrowDown)y.preventDefault(),E=Math.min($+1,t.getItems().length-1),t.internalSetState(STATE_CHANGE_TYPES.moveDown,{highlightedIndex:E});else if(y.key===KEY_STRINGS.Home)y.preventDefault(),E=0,t.internalSetState(STATE_CHANGE_TYPES.moveUp,{highlightedIndex:E});else if(y.key===KEY_STRINGS.End)y.preventDefault(),E=t.getItems().length-1,t.internalSetState(STATE_CHANGE_TYPES.moveDown,{highlightedIndex:E});else if(y.key===KEY_STRINGS.ArrowLeft){if(t.props.getParentMenu){var A=t.props.getParentMenu(g);A&&A.current&&A.current.focus()}}else if(y.key===KEY_STRINGS.ArrowRight&&t.props.getChildMenu){var N=t.props.getChildMenu(g);N&&N.current&&N.current.focus()}t.refList[E]&&scrollItemIntoView(t.refList[E].current,g.current,E===0,E===t.getItems().length-1)}),_defineProperty$b(_assertThisInitialized$6(t),"handleEnterKey",function(y){var g=t.props.onItemSelect,$=t.state.highlightedIndex,E=t.getItems();E[$]&&g&&!E[$].disabled&&(y.preventDefault(),g({item:E[$],event:y}))}),_defineProperty$b(_assertThisInitialized$6(t),"handleItemClick",function(y,g,$){t.props.onItemSelect&&!g.disabled&&(t.props.onItemSelect({item:g,event:$}),t.internalSetState(STATE_CHANGE_TYPES.click,{highlightedIndex:y,activedescendantId:t.optionIds[y]}))}),_defineProperty$b(_assertThisInitialized$6(t),"handleMouseEnter",function(y){t.internalSetState(STATE_CHANGE_TYPES.mouseEnter,{highlightedIndex:y,activedescendantId:t.optionIds[y]})}),_defineProperty$b(_assertThisInitialized$6(t),"handleMouseLeave",function(y){}),_defineProperty$b(_assertThisInitialized$6(t),"getRequiredItemProps",function(y,g){var $=t.refList[g];$||($=reactExports.createRef(),t.refList[g]=$,t.optionIds[g]=t.props.uidSeed(g));var E=t.props.getRequiredItemProps(y,g),A=E.disabled,N=_objectWithoutProperties$9(E,_excluded$b),H=typeof A=="boolean"?A:!!y.disabled;return _objectSpread$8(_objectSpread$8({id:N.id||t.optionIds[g],disabled:H,ref:$,isFocused:t.state.isFocused,isHighlighted:t.state.highlightedIndex===g,resetMenu:t.resetMenu},H?{}:{onClick:t.handleItemClick.bind(_assertThisInitialized$6(t),g,y),onMouseEnter:t.handleMouseEnter.bind(_assertThisInitialized$6(t),g)}),N)}),_defineProperty$b(_assertThisInitialized$6(t),"focusMenu",function(y){var g=t.props.rootRef?t.props.rootRef:t.rootRef;!t.state.isFocused&&g.current&&g.current.contains(y.target)&&(t.state.highlightedIndex<0?t.internalSetState(STATE_CHANGE_TYPES.focus,{isFocused:!0,highlightedIndex:0}):t.internalSetState(STATE_CHANGE_TYPES.focus,{isFocused:!0}),g.current.focus())}),_defineProperty$b(_assertThisInitialized$6(t),"unfocusMenu",function(){t.internalSetState(STATE_CHANGE_TYPES.focus,{isFocused:!1})}),_defineProperty$b(_assertThisInitialized$6(t),"resetMenu",function(){t.internalSetState(STATE_CHANGE_TYPES.reset,{isFocused:!1,highlightedIndex:-1,activedescendantId:null})}),t}return _createClass$5(e,[{key:"getItems",value:function(){var c=this;if(Array.isArray(this.props.items))return this.props.items;var p=Object.keys(this.props.items);return p.reduce(function(h,y){return h.concat(c.props.items[y])},[])}},{key:"componentDidMount",value:function(){var c=this.props.rootRef?this.props.rootRef:this.rootRef;typeof document<"u"&&(c.current&&this.state.highlightedIndex>-1&&this.refList[this.state.highlightedIndex]&&scrollItemIntoView(this.refList[this.state.highlightedIndex].current,c.current,this.state.highlightedIndex===0,this.state.highlightedIndex===this.getItems().length-1,"center"),this.state.isFocused&&this.keyboardControlNode&&this.keyboardControlNode.addEventListener("keydown",this.onKeyDown)),this.props.addMenuToNesting&&this.props.addMenuToNesting(c)}},{key:"componentWillUnmount",value:function(){var c=this.props.rootRef?this.props.rootRef:this.rootRef;typeof document<"u"&&this.keyboardControlNode&&this.keyboardControlNode.removeEventListener("keydown",this.onKeyDown),this.props.removeMenuFromNesting&&this.props.removeMenuFromNesting(c)}},{key:"componentDidUpdate",value:function(c,p){typeof document<"u"&&(!p.isFocused&&this.state.isFocused?this.keyboardControlNode&&this.keyboardControlNode.addEventListener("keydown",this.onKeyDown):p.isFocused&&!this.state.isFocused&&this.keyboardControlNode&&this.keyboardControlNode.removeEventListener("keydown",this.onKeyDown));var h=this.getItems().length;this.props.forceHighlight&&this.state.highlightedIndex===-1&&h>0&&this.internalSetState(STATE_CHANGE_TYPES.enter,{highlightedIndex:0}),h===0&&this.state.highlightedIndex!==-1?this.internalSetState(STATE_CHANGE_TYPES.enter,{highlightedIndex:-1}):this.state.highlightedIndex>=h&&this.internalSetState(STATE_CHANGE_TYPES.enter,{highlightedIndex:0}),this.props.isNestedMenuVisible&&this.props.nestedMenuHoverIndex!==c.nestedMenuHoverIndex&&!this.props.isNestedMenuVisible(this.rootRef)&&!this.props.forceHighlight&&this.setState({highlightedIndex:-1})}},{key:"internalSetState",value:function(c,p){var h=this.props.stateReducer;this.props.onActiveDescendantChange&&typeof p.highlightedIndex=="number"&&this.state.highlightedIndex!==p.highlightedIndex&&this.props.onActiveDescendantChange(this.optionIds[p.highlightedIndex]),this.setState(h(c,p,this.state))}},{key:"render",value:function(){var c=this,p=this.props;p.initialState,p.stateReducer,p.children,p.onItemSelect,p.addMenuToNesting,p.removeMenuFromNesting,p.getParentMenu,p.getChildMenu,p.forceHighlight;var h=_objectWithoutProperties$9(p,_excluded2$3);return this.props.children(_objectSpread$8(_objectSpread$8({},h),{},{rootRef:this.props.rootRef?this.props.rootRef:this.rootRef,activedescendantId:this.optionIds[this.state.highlightedIndex],getRequiredItemProps:function(g,$){return c.getRequiredItemProps(g,$)},handleMouseLeave:this.handleMouseLeave,highlightedIndex:this.state.highlightedIndex,isFocused:this.state.isFocused,handleKeyDown:this.props.keyboardControlNode.current?function(y){}:this.onKeyDown,focusMenu:this.focusMenu,unfocusMenu:this.unfocusMenu}))}}]),e}(reactExports.Component);_defineProperty$b(MenuStatefulContainerInner,"defaultProps",DEFAULT_PROPS);var MenuStatefulContainer=function n(o){return reactExports.createElement(MenuStatefulContainerInner,_extends$b({uidSeed:useUIDSeed()},o))};MenuStatefulContainer.defaultProps=DEFAULT_PROPS;function _typeof$6(n){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$6(n)}var _excluded$a=["overrides"];function _extends$a(){return _extends$a=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$a.apply(this,arguments)}function _objectWithoutProperties$8(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$7(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$7(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _classCallCheck$4(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$4(n,o,e){return o&&_defineProperties$4(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$4(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$4(n,o)}function _setPrototypeOf$4(n,o){return _setPrototypeOf$4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$4(n,o)}function _createSuper$4(n){var o=_isNativeReflectConstruct$4();return function(){var t=_getPrototypeOf$4(n),c;if(o){var p=_getPrototypeOf$4(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$4(this,c)}}function _possibleConstructorReturn$4(n,o){if(o&&(_typeof$6(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$5(n)}function _assertThisInitialized$5(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$4(n){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$4(n)}var StatefulMenu=function(n){_inherits$4(e,n);var o=_createSuper$4(e);function e(){return _classCallCheck$4(this,e),o.apply(this,arguments)}return _createClass$4(e,[{key:"render",value:function(){var c=this.props,p=c.overrides,h=_objectWithoutProperties$8(c,_excluded$a);return reactExports.createElement(NestedMenuContext.Consumer,null,function(y){return reactExports.createElement(MenuStatefulContainer,_extends$a({},y,h),function(g){return reactExports.createElement(Menu,_extends$a({},g,{overrides:p}))})})}}]),e}(reactExports.PureComponent);function ownKeys$9(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$7(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};
122o%2?ownKeys$9(Object(e),!0).forEach(function(t){_defineProperty$a(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$9(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$a(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function getFont(){var n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SIZE$1.default,e=arguments.length>1?arguments[1]:void 0;return(n={},_defineProperty$a(n,SIZE$1.mini,e.font100),_defineProperty$a(n,SIZE$1.compact,e.font200),_defineProperty$a(n,SIZE$1.default,e.font300),_defineProperty$a(n,SIZE$1.large,e.font400),n)[o]}function getBorderRadius(n,o){var e=o.inputBorderRadius;return n===SIZE$1.mini&&(e=o.inputBorderRadiusMini),{borderTopLeftRadius:e,borderBottomLeftRadius:e,borderTopRightRadius:e,borderBottomRightRadius:e}}function getControlPadding(n){var o,e,t,c,p,h=n.$theme,y=n.$theme.sizing,g=n.$size,$=g===void 0?SIZE$1.default:g,E=n.$type,A=n.$multi,N=n.$isEmpty,H=E===TYPE.search,Z=H?"calc(".concat(y.scale1000," - ").concat(y.scale0,")"):y.scale400,X=h.direction==="rtl"?"paddingRight":"paddingLeft",be=h.direction==="rtl"?"paddingLeft":"paddingRight";return(p={},_defineProperty$a(p,SIZE$1.mini,(o={paddingTop:A&&!N?0:y.scale100,paddingBottom:A&&!N?0:y.scale100},_defineProperty$a(o,X,A&&!N?"calc(".concat(Z," - ").concat(y.scale0,")"):Z),_defineProperty$a(o,be,"0"),o)),_defineProperty$a(p,SIZE$1.compact,(e={paddingTop:A&&!N?"calc(".concat(y.scale100," - ").concat(y.scale0,")"):y.scale200,paddingBottom:A&&!N?"calc(".concat(y.scale100," - ").concat(y.scale0,")"):y.scale200},_defineProperty$a(e,X,A&&!N?"calc(".concat(Z," - ").concat(y.scale0,")"):Z),_defineProperty$a(e,be,"0"),e)),_defineProperty$a(p,SIZE$1.default,(t={paddingTop:A&&!N?"calc(".concat(y.scale400," - ").concat(y.scale0,")"):y.scale400,paddingBottom:A&&!N?"calc(".concat(y.scale400," - ").concat(y.scale0,")"):y.scale400},_defineProperty$a(t,X,A&&!N?"calc(".concat(Z," + ").concat(y.scale0,")"):Z),_defineProperty$a(t,be,0),t)),_defineProperty$a(p,SIZE$1.large,(c={paddingTop:A&&!N?"calc(".concat(y.scale600," - ").concat(y.scale0,")"):y.scale550,paddingBottom:A&&!N?"calc(".concat(y.scale600," - ").concat(y.scale0,")"):y.scale550},_defineProperty$a(c,X,A&&!N?"calc(".concat(Z," - ").concat(y.scale0,")"):Z),_defineProperty$a(c,be,0),c)),p)[$]}var StyledDropdownContainer=styled$1("div",function(n){return{width:"".concat(String(n.$width),"px")}});StyledDropdownContainer.displayName="StyledDropdownContainer";StyledDropdownContainer.displayName="StyledDropdownContainer";var StyledDropdown=StyledList,StyledDropdownListItem=StyledListItem,StyledOptionContent=styled$1("div",function(n){var o=n.$isHighlighted,e=n.$selected,t=n.$disabled,c=n.$theme;return{cursor:t?"not-allowed":"pointer",color:e&&!o?c.colors.menuFontSelected:null,fontWeight:e?"bold":"normal"}});StyledOptionContent.displayName="StyledOptionContent";StyledOptionContent.displayName="StyledOptionContent";var StyledRoot=styled$1("div",function(n){var o=n.$theme.typography,e=n.$size;return _objectSpread$7(_objectSpread$7({},getFont(e,o)),{},{boxSizing:"border-box",position:"relative",width:"100%"})});StyledRoot.displayName="StyledRoot";StyledRoot.displayName="StyledRoot";function getControlContainerColors(n,o,e,t,c,p){return n?{color:p.inputTextDisabled,borderLeftColor:p.inputFillDisabled,borderRightColor:p.inputFillDisabled,borderTopColor:p.inputFillDisabled,borderBottomColor:p.inputFillDisabled,backgroundColor:p.inputFillDisabled}:o||e?{color:p.contentPrimary,borderLeftColor:p.borderSelected,borderRightColor:p.borderSelected,borderTopColor:p.borderSelected,borderBottomColor:p.borderSelected,backgroundColor:p.inputFillActive}:c?{color:p.contentPrimary,borderLeftColor:p.inputBorderError,borderRightColor:p.inputBorderError,borderTopColor:p.inputBorderError,borderBottomColor:p.inputBorderError,backgroundColor:p.inputFillError}:t?{color:p.contentPrimary,borderLeftColor:p.inputBorderPositive,borderRightColor:p.inputBorderPositive,borderTopColor:p.inputBorderPositive,borderBottomColor:p.inputBorderPositive,backgroundColor:p.inputFillPositive}:{color:p.contentPrimary,borderLeftColor:p.inputBorder,borderRightColor:p.inputBorder,borderTopColor:p.inputBorder,borderBottomColor:p.inputBorder,backgroundColor:p.inputFill}}var StyledControlContainer=styled$1("div",function(n){var o=n.$disabled,e=n.$error,t=n.$positive,c=n.$isFocused,p=n.$isPseudoFocused,h=n.$type,y=n.$searchable,g=n.$size,$=n.$theme,E=$.borders,A=$.colors,N=$.animation;return _objectSpread$7(_objectSpread$7({},getBorderRadius(g,E)),{}
122,{boxSizing:"border-box",overflow:"hidden",width:"100%",display:"flex",justifyContent:"space-between",cursor:o?"not-allowed":y||h===TYPE.search?"text":"pointer",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border, box-shadow, background-color",transitionDuration:N.timing200,transitionTimingFunction:N.easeOutCurve},getControlContainerColors(o,c,p,t,e,A))});StyledControlContainer.displayName="StyledControlContainer";StyledControlContainer.displayName="StyledControlContainer";var StyledValueContainer=styled$1("div",function(n){var o=getControlPadding(n);return _objectSpread$7({boxSizing:"border-box",position:"relative",flexGrow:1,flexShrink:1,flexBasis:"0%",display:"flex",alignItems:"center",flexWrap:n.$multi?"wrap":"nowrap",overflow:"hidden"},o)});StyledValueContainer.displayName="StyledValueContainer";StyledValueContainer.displayName="StyledValueContainer";var StyledPlaceholder=styled$1("div",function(n){var o=n.$disabled,e=n.$theme.colors;return{color:o?e.inputPlaceholderDisabled:e.inputPlaceholder,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});StyledPlaceholder.displayName="StyledPlaceholder";StyledPlaceholder.displayName="StyledPlaceholder";var StyledSingleValue=styled$1("div",function(n){var o,e=n.$searchable,t=n.$size,c=n.$theme,p=n.$theme.typography,h=getFont(t,p),y=c.direction==="rtl"?"marginRight":"marginLeft";return _objectSpread$7((o={lineHeight:e?"inherit":h.lineHeight,boxSizing:"border-box"},_defineProperty$a(o,y,c.sizing.scale0),_defineProperty$a(o,"height","100%"),_defineProperty$a(o,"maxWidth","100%"),o),ellipsisText)});StyledSingleValue.displayName="StyledSingleValue";StyledSingleValue.displayName="StyledSingleValue";var StyledInputContainer=styled$1("div",function(n){var o=n.$size,e=n.$searchable,t=n.$theme,c=t.typography,p=t.sizing,h=n.$isEmpty,y=getFont(o,c);return{position:"relative",display:"inline-block",maxWidth:"100%",backgroundColor:"transparent",borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",boxShadow:"none",boxSizing:"border-box",outline:"none",marginTop:0,marginBottom:0,marginLeft:h?0:p.scale0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,height:String(e?"auto":y.lineHeight),maxHeight:String(y.lineHeight)}});StyledInputContainer.displayName="StyledInputContainer";StyledInputContainer.displayName="StyledInputContainer";var StyledInput=styled$1("input",function(n){var o=n.$theme,e=o.colors,t=o.typography,c=n.$size,p=n.$searchable,h=n.$width;return _objectSpread$7(_objectSpread$7({},getFont(c,t)),{},{color:e.contentPrimary,boxSizing:"content-box",width:p?h||"100%":"1px",maxWidth:"100%",background:"transparent",borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",boxShadow:"none",display:"inline-block",outline:"none",marginTop:"0",marginBottom:"0",marginLeft:"0",marginRight:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"})});StyledInput.displayName="StyledInput";StyledInput.displayName="StyledInput";var StyledInputSizer=styled$1("div",function(n){var o,e=n.$size,t=n.$theme,c=n.$theme.typography,p=t.direction==="rtl"?"right":"left";return _objectSpread$7(_objectSpread$7({},getFont(e,c)),{},(o={position:"absolute",top:0},_defineProperty$a(o,p,0),_defineProperty$a(o,"visibility","hidden"),_defineProperty$a(o,"height",0),_defineProperty$a(o,"overflow","scroll"),_defineProperty$a(o,"whiteSpace","pre"),o))});StyledInputSizer.displayName="StyledInputSizer";StyledInputSizer.displayName="StyledInputSizer";var StyledIconsContainer=styled$1("div",function(n){var o=n.$theme,e=n.$theme.sizing,t=o.direction==="rtl"?"paddingLeft":"paddingRight";return _defineProperty$a({boxSizing:"border-box",position:"relative",display:"flex",flexShrink:0,alignItems:"center",alignSelf:"stretch"},t,e.scale500)});StyledIconsContainer.displayName="StyledIconsContainer";StyledIconsContainer.displayName="StyledIconsContainer";function getSvgStyles(n){var o=n.$theme;return{display:"inline-block",fill:"currentColor",color:"currentColor",height:o.sizing.scale600,width:o.sizing.scale600}}var StyledSelectArrow=styled$1("svg",function(n){var o,e=n.$theme,t=n.$disabled,c=n.$size,p=e.colors,h=(o={},_defineProperty$a(o,SIZE$1.mini,16),_defineProperty$a(o,SIZE$1.compact,16),_defineProperty$a(o,SIZE$1.default,20),_defineProperty$a(o,SIZE$1.large,24),o),y=h[SIZE$1.default];return c&&(y=h[c]),_objectSpread$7(_objectSpread$7({}
122,getSvgStyles({$theme:e})),{},{color:t?p.inputTextDisabled:p.contentPrimary,cursor:t?"not-allowed":"pointer",height:"".concat(y,"px"),width:"".concat(y,"px")})});StyledSelectArrow.displayName="StyledSelectArrow";StyledSelectArrow.displayName="StyledSelectArrow";var StyledClearIcon=styled$1("svg",function(n){var o,e=n.$theme,t=n.$size,c=e.colors,p=(o={},_defineProperty$a(o,SIZE$1.mini,15),_defineProperty$a(o,SIZE$1.compact,15),_defineProperty$a(o,SIZE$1.default,18),_defineProperty$a(o,SIZE$1.large,22),o),h=p[SIZE$1.default];return t&&(h=p[t]),_objectSpread$7(_objectSpread$7({},getSvgStyles({$theme:e})),{},{color:c.contentPrimary,cursor:"pointer",height:"".concat(h,"px"),width:"".concat(h,"px")})});StyledClearIcon.displayName="StyledClearIcon";StyledClearIcon.displayName="StyledClearIcon";var StyledLoadingIndicator=withStyle(StyledSpinner,function(n){var o=n.$theme;return{borderTopWidth:"2px",borderRightWidth:"2px",borderBottomWidth:"2px",borderLeftWidth:"2px",borderRightColor:o.colors.borderOpaque,borderBottomColor:o.colors.borderOpaque,borderLeftColor:o.colors.borderOpaque,width:"16px",height:"16px"}});StyledLoadingIndicator.displayName="StyledLoadingIndicator";StyledLoadingIndicator.displayName="StyledLoadingIndicator";var StyledSearchIconContainer=styled$1("div",function(n){var o,e=n.$disabled,t=n.$theme,c=t.colors,p=t.sizing,h=t.direction==="rtl"?"right":"left";return _objectSpread$7(_objectSpread$7({},getSvgStyles(n)),{},(o={color:e?c.inputTextDisabled:c.contentPrimary,cursor:e?"not-allowed":"pointer",position:"absolute",top:0},_defineProperty$a(o,h,p.scale500),_defineProperty$a(o,"display","flex"),_defineProperty$a(o,"alignItems","center"),_defineProperty$a(o,"height","100%"),o))});StyledSearchIconContainer.displayName="StyledSearchIconContainer";StyledSearchIconContainer.displayName="StyledSearchIconContainer";function _typeof$5(n){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$5(n)}var _excluded$9=["overrides","inputRef"];function _extends$9(){return _extends$9=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$9.apply(this,arguments)}function ownKeys$8(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$6(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$8(Object(e),!0).forEach(function(t){_defineProperty$9(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$8(Object(e)).forEac
vendor: 4,302 bytes, lines 122-123
122h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _slicedToArray$6(n,o){return _arrayWithHoles$6(n)||_iterableToArrayLimit$6(n,o)||_unsupportedIterableToArray$6(n,o)||_nonIterableRest$6()}function _nonIterableRest$6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 123In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$6(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$6(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$6(n,o)}}function _arrayLikeToArray$6(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$6(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$6(n){if(Array.isArray(n))return n}function _objectWithoutProperties$7(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$6(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$6(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _classCallCheck$3(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$3(n,o,e){return o&&_defineProperties$3(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$3(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$3(n,o)}function _setPrototypeOf$3(n,o){return _setPrototypeOf$3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$3(n,o)}function _createSuper$3(n){var o=_isNativeReflectConstruct$3();return function(){var t=_getPrototypeOf$3(n),c;if(o){var p=_getPrototypeOf$3(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$3(this,c)}}function _possibleConstructorReturn$3(n,o){if(o&&(_typeof$5(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$4(n)}function _assertThisInitialized$4(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$3(n){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$3(n)}function _defineProperty$9(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var AutosizeInput=function(n){_inherits$3(e,n);var o=_createSuper$3(e);function e(){var t;_classCallCheck$3(this,e);for(var c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];return t=o.call.apply(o,[this].concat(p)),_defineProperty$9(_assertThisInitialized$4(t),"mounted",void 0),_defineProperty$9(_assertThisInitialized$4(t),"sizer",void 0),_defineProperty$9(_assertThisInitialized$4(t),"state",{inputWi
123dth:5}),_defineProperty$9(_assertThisInitialized$4(t),"sizerRef",function(y){t.sizer=y}),t}return _createClass$3(e,[{key:"componentDidMount",value:function(){this.mounted=!0,this.updateInputWidth()}},{key:"componentDidUpdate",value:function(c,p){this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"updateInputWidth",value:function(){if(!(!this.mounted||!this.sizer||typeof this.sizer.scrollWidth>"u")){var c=this.sizer.scrollWidth+2;c!==this.state.inputWidth&&this.sizer.scrollWidth!==this.state.inputWidth&&this.setState({inputWidth:c})}}},{key:"render",value:function(){var c=this.props,p=c.overrides,h=p===void 0?{}:p,y=c.inputRef,g=_objectWithoutProperties$7(c,_excluded$9),$=getOverrides(h.Input,StyledInput),E=_slicedToArray$6($,2),A=E[0],N=E[1],H=[this.props.defaultValue,this.props.value,""].reduce(function(X,be){return X??be}),Z=_objectSpread$6(_objectSpread$6({},g),{},{$width:"".concat(this.state.inputWidth,"px")});return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(A,_extends$9({},Z,{ref:y},N)),reactExports.createElement(StyledInputSizer,{$size:this.props.$size,ref:this.sizerRef,$style:N.$style?N.$style:null},H))}}]),e}(reactExports.Component);_defineProperty$9(AutosizeInput,"defaultProps",{inputRef:reactExports.createRef(),value:"",overrides:{}});function ownKeys$7(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$5(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$7(Object(e),!0).forEach(function(t){_defineProperty$8(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$7(Object(e)).forEac
123h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$8(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var escapeRegExp=function n(o){return o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},isValid=function n(o){return typeof o<"u"&&o!==null&&o!==""},defaultProps$1={filterOption:null,ignoreCase:!0,labelKey:"label",matchPos:"any",matchProp:"any",trimFilter:!0,valueKey:"value"},filterOptions=function n(o,e,t,c){var p=_objectSpread$5(_objectSpread$5({},defaultProps$1),c);p.ignoreCase&&(e=e.toLowerCase()),p.trimFilter&&(e=e.trim());var h=(t||[]).reduce(function(g,$){return g.add($[p.valueKey]),g},new Set),y=new RegExp("".concat(p.matchPos==="start"?"^":"").concat(escapeRegExp(e)),p.ignoreCase?"i":"");return o.filter(function(g){if(h.has(g[p.valueKey]))return!1;if(p.filterOption)return p.filterOption.call(void 0,g,e);if(!e)return!0;var $=g[p.valueKey],E=g[p.labelKey],A=isValid($),N=isValid(E);if(!A&&!N)return!1;var H=A?String($):null,Z=N?String(E):null;return H&&p.matchProp!=="label"&&y.test(H)||Z&&p.matchProp!=="value"&&y.test(Z)})},defaultProps={"aria-label":null,"aria-describedby":null,"aria-errormessage":null,"aria-labelledby":null,autoFocus:!1,backspaceRemoves:!0,clearable:!0,closeOnSelect:!0,creatable:!1,deleteRemoves:!0,disabled:!1,error:!1,positive:!1,escapeClearsValue:!0,filterOptions,filterOutSelected:!0,getOptionLabel:null,getValueLabel:null,ignoreCase:!0,isLoading:!1,labelKey:"label",maxDropdownHeight:"40vh",multi:!1,onBlur:function n(){},onBlurResetsInput:!0,onChange:function n(){},onFocus:function n(){},onInputChange:function n(){},onCloseResetsInput:!0,onSelectResetsInput:!0,onOpen:null,onClose:null,openOnClick:!0,startOpen:!1,options:[],overrides:{},required:!1,searchable:!0,size:SIZE$1.default,type:TYPE.select,value:[],valueKey:"id"};function _typeof$4(n){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$4(n)}var _excluded$8=["overrides"];function ownKeys$6(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$4(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$6(Object(e),!0).forEach(function(t){_defineProperty$7(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$6(Object(e)).forEac
123h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _objectWithoutProperties$6(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$5(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$5(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$8.apply(this,arguments)}function _slicedToArray$5(n,o){return _arrayWithHoles$5(n)||_iterableToArrayLimit$5(n,o)||_unsupportedIterableToArray$5(n,o)||_nonIterableRest$5()}function _nonIterableRest$5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 124In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$5(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$5(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$5(n,o)}}function _arrayLikeToArray$5(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$5(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$5(n){if(Array.isArray(n))return n}function _classCallCheck$2(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$2(n,o,e){return o&&_defineProperties$2(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$2(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$2(n,o)}function _setPrototypeOf$2(n,o){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$2(n,o)}function _createSuper$2(n){var o=_isNativeReflectConstruct$2();return function(){var t=_getPrototypeOf$2(n),c;if(o){var p=_getPrototypeOf$2(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$2(this,c)}}function _possibleConstructorReturn$2(n,o){if(o&&(_typeof$4(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$3(n)}function _assertThisInitialized$3(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$2(n){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$2(n)}function _defineProperty$7(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function groupOptions(n){return n.reduce(function(o,e){return e.__optgroup?(o[e.__optgroup]||(o[e.__optgroup]=[]),o[e.__optgroup].push(e)):o.__ungrouped.push(e),o},{__ungrouped:[]})}var SelectDropdown=function(n){_inherits$2(e,n);var o=_createSuper$2(e);function e(){var t;_classCallCheck$2(this,e);for(var c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];return t=o.call.apply(o,[this].concat(p)),_defineProperty$7(_assertThisInitialized$3(t),"getItemLabel",function(y){var g=t.props,$=g.getOptionLabel,E=g.overrides,A=E===void 0?{}:E,N=g.value,H=g.valueKey,Z=getOverrides(A.OptionContent,StyledOptionContent),X=_slicedToArray$5(Z,2),be=X[0],we=X[1],$e;Array.isArray(N)?$e=!!N.find(function(Ie){return Ie&&Ie[H]===y[H]}):$e=N[H]===y[H];var Ce={$selected:$e,$disabled:y.disabled,$isHighlighted:y.isHighlighted};return reactExports.createElement(be,_extends$8({"aria-readonly":y.disabled,"aria-selected":$e,key:y[H]},t.getSharedProps(),Ce,we),$({option:y,optionState:Ce}))}),_defineProperty$7(_assertThisInitialized$3(t),"onMouseDown",function(y){y.nativeEvent.stopImmediatePropagation()}),_defineProperty$7(_assertThisInitialized$3(t),"getHighlightedIndex",function(){var y=t.props,g=y.value,$=y.options,E=y.valueKey,A={};if(Array.isArray(g)&&g.length>0?A=g[0]:g instanceof Array||(A=g),Object.keys(A).length>0){var N=$.findIndex(function(H){return H&&H[E]===A[E]});return N===-1?0:N}return 0}),t}return _createClass$2(e,[{key:"getSharedProps",value:function(){var c=this.props,p=c.error,h=c.isLoading,y=c.multi,g=c.required,$=c.size,E=c.searchable,A=c.type,N=c.width;return{$error:p,$isLoading:h,$multi:y,$required:g,$searchable:E,$size:$,$type:A,$width:N}}},{key:"render",value:function(){var c=this,p=this.props,h=p.maxDropdownHeight,y=p.multi,g=p.noResultsMsg,$=p.onItemSelect,E=p.options,A=E===void 0?[]:E,N=p.overrides,H=N===void 0?{}:N,Z=p.size,X=getOverrides(H.DropdownContainer,StyledDropdownContainer),be=_slicedToArray$5(X,2),we=be[0],$e=be[1],Ce=getOverrides(H.DropdownListItem,StyledDropdownListItem),Ie=_slicedToArray$5(Ce,2),Ne=Ie[0],Fe=Ie[1],Be=getOverrides(H.StatefulMenu,StatefulMenu),Ge=_slicedToArray$5(Be,2),je=Ge[0],De=Ge[1],Ue=De.overrides,Je=Ue===void 0?{}:Ue,Xe=_objectWithoutProperties$6(De,_excluded$8),Ke=this.getHighlightedIndex(),ze=groupOptions(A);return reactExports.createElement(we,_extends$8({"data-no-focus-lock":!0,ref:this.props.innerRef}
124,this.getSharedProps(),$e),reactExports.createElement(je,_extends$8({noResultsMsg:g,onActiveDescendantChange:function(ct){c.props.onActiveDescendantChange&&c.props.onActiveDescendantChange(ct)},onItemSelect:$,items:ze,size:Z,initialState:{isFocused:!0,highlightedIndex:Ke},typeAhead:!1,keyboardControlNode:this.props.keyboardControlNode,forceHighlight:!0,overrides:mergeOverrides({List:{component:StyledDropdown,style:function(ct){return{maxHeight:ct.$maxHeight||null}},props:{id:this.props.id?this.props.id:null,$maxHeight:h,"aria-multiselectable":y}},Option:{props:{getItemLabel:this.getItemLabel,onMouseDown:this.onMouseDown,overrides:{ListItem:{component:Ne,props:_objectSpread$4(_objectSpread$4({},Fe),{},{role:"option"}),style:Fe.$style}},renderHrefAsAnchor:!1}}},_objectSpread$4({List:H.Dropdown||{},Option:H.DropdownOption||{}},Je))},Xe)))}}]),e}(reactExports.Component);function ownKeys$5(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$3(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$5(Object(e),!0).forEach(function(t){_defineProperty$6(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$5(Object(e)).forEac
124h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$6(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function groupedOptionsToArray(n){return Object.keys(n).reduce(function(o,e){var t=n[e];return o.concat(t.map(function(c){return _objectSpread$3(_objectSpread$3({},c),{},{__optgroup:e})}))},[])}function normalizeOptions(n){return n?Array.isArray(n)?n:groupedOptionsToArray(n):[]}var expandValue=function n(o,e){if(!e.options)return o;for(var t=normalizeOptions(e.options),c=0;c<t.length;c++)if(String(t[c][e.valueKey])===String(o[e.valueKey]))return t[c];return o};function _typeof$3(n){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$3(n)}var _excluded$7=["$size"],_excluded2$2=["$size"];function _objectWithoutProperties$5(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$4(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$4(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$7.apply(this,arguments)}function _slicedToArray$4(n,o){return _arrayWithHoles$4(n)||_iterableToArrayLimit$4(n,o)||_unsupportedIterableToArray$4(n,o)||_nonIterableRest$4()}function _nonIterableRest$4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 125In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit$4(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$4(n){if(Array.isArray(n))return n}function _toConsumableArray(n){return _arrayWithoutHoles(n)||_iterableToArray(n)||_unsupportedIterableToArray$4(n)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 126In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$4(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$4(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$4(n,o)}}function _iterableToArray(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles(n){if(Array.isArray(n))return _arrayLikeToArray$4(n)}function _arrayLikeToArray$4(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _classCallCheck$1(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$1(n,o,e){return o&&_defineProperties$1(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$1(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf$1(n,o)}function _setPrototypeOf$1(n,o){return _setPrototypeOf$1=Object.
126setPrototypeOf?Object.setPrototypeOf.bind():function(t,c){return t.__proto__=c,t},_setPrototypeOf$1(n,o)}function _createSuper$1(n){var o=_isNativeReflectConstruct$1();return function(){var t=_getPrototypeOf$1(n),c;if(o){var p=_getPrototypeOf$1(this).constructor;c=Reflect.construct(t,arguments,p)}else c=t.apply(this,arguments);return _possibleConstructorReturn$1(this,c)}}function _possibleConstructorReturn$1(n,o){if(o&&(_typeof$3(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$2(n)}function _assertThisInitialized$2(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$1(n){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$1(n)}function _defineProperty$5(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function Noop(){return null}var isClick=function n(o){return o.type==="click"},isLeftClick=function n(o){return o.button!==null&&o.button!==void 0&&o.button===0},containsNode=function n(o,e){if(typeof document<"u")return e&&o&&o.contains(e)};function isInteractive(n,o){if(n instanceof Element)for(var e=n;e&&e!==o;){var t=e.getAttribute("role");if(t==="button"||t==="link")return!0;e.tagName&&(e=e.parentElement)}return!1}var Select$1=function(n){_inherits$1(e,n);var o=_createSuper$1(e);function e(t){var c;return _classCallCheck$1(this,e),c=o.call(this,t),_defineProperty$5(_assertThisInitialized$2(c),"anchor",reactExports.createRef()),_defineProperty$5(_assertThisInitialized$2(c),"dropdown",reactExports.createRef()),_defineProperty$5(_assertThisInitialized$2(c),"input",void 0),_defineProperty$5(_assertThisInitialized$2(c),"dragging",void 0),_defineProperty$5(_assertThisInitialized$2(c),"focusAfterClear",void 0),_defineProperty$5(_assertThisInitialized$2(c),"openAfterFocus",void 0),_defineProperty$5(_assertThisInitialized$2(c),"justSelected",void 0),_defineProperty$5(_assertThisInitialized$2(c),"options",[]),_defineProperty$5(_assertThisInitialized$2(c),"state",{activeDescendant:null,inputValue:"",isFocused:!1,isOpen:c.props.startOpen,isPseudoFocused:!1}),_defineProperty$5(_assertThisInitialized$2(c),"isItMounted",!1),_defineProperty$5(_assertThisInitialized$2(c),"handleTouchOutside",function(p){containsNode(c.dropdown.current,p.target)||containsNode(c.anchor.current,p.target)||c.closeMenu()}),_defineProperty$5(_assertThisInitialized$2(c),"handleTouchMove",function(){return c.dragging=!0}),_defineProperty$5(_assertThisInitialized$2(c),"handleTouchStart",function(){return c.dragging=!1}),_defineProperty$5(_assertThisInitialized$2(c),"handleTouchEnd",function(p){c.dragging||c.handleClick(p)}),_defineProperty$5(_assertThisInitialized$2(c),"handleClick",function(p){if(!(c.props.disabled||!isClick(p)&&!isLeftClick(p))){if(p.target===c.input){c.state.isFocused||(c.openAfterFocus=c.props.openOnClick,c.focus()),c.state.isOpen||c.setState({isOpen:!0,isFocused:!0,isPseudoFocused:!1});return}if(!(c.input&&isInteractive(p.target,c.input))){if(!c.props.searchable){c.focus(),c.state.isOpen?c.setState({isOpen:!1,isFocused:!1}):c.setState({isOpen:!0,isFocused:!0});return}c.state.isFocused?(c.focus(),c.input&&(c.input.value=""),c.setState(function(h){return{isOpen:!c.focusAfterClear&&!h.isOpen,isPseudoFocused:!1}}),c.focusAfterClear=!1):(c.focusAfterClear=!1,c.openAfterFocus=c.props.openOnClick,c.focus())}}}),_defineProperty$5(_assertThisInitialized$2(c),"handleInputFocus",function(p){if(!c.props.disabled){c.props.onFocus&&c.props.onFocus(p);var h=c.state.isOpen||c.openAfterFocus;h=!c.focusAfterClear&&h,c.setState({isFocused:!0,isOpen:!!h}),c.focusAfterClear=!1,c.openAfterFocus=!1}}),_defineProperty$5(_assertThisInitialized$2(c),"handleBlur",function(p){if(p.relatedTarget){if(containsNode(c.anchor.current,p.relatedTarget)||containsNode(c.dropdown.current,p.relatedTarget))return}else if(containsNode(c.anchor.current,p.target))return;c.props.onBlur&&c.props.onBlur(p),c.isItMounted&&c.setState({isFocused:!1,isOpen:!1,isPseudoFocused:!1,inputValue:c.props.onBlurResetsInput?"":c.state.inputValue})}),_defineProperty$5(_assertThisInitialized$2(c),"handleClickOutside",function(p){if(c.justSelected){c.justSelected=!1;return}if(!containsNode(c.dropdown.current,p.target)){var h=c.state.isFocused||c.state.isPseudoFocused;h&&!containsNode(c.anchor.current,p.target)&&c.handleBlur(p)}}),_defineProperty$5(_assertThisInitialized$2(c),"handleInputChange",function(p){var h=p.target.value;c.setState({inputValue:h,isOpen:!0,isPseudoFocused:!1}),c.props.onInputChange&&c.props.onInputChange(p)}),_defineProperty$5(_assertThisInitialized$2(c),"handleKeyDown",function(p){if(!c.props.disabled)switch(p.keyCode){case 8:!c.state.inputValue&&c.props.backspaceRemoves&&(p.preventDefault(),c.backspaceValue());break;case 9:c.setState(function(h){return{isPseudoFocused:!1,isFocused:!1,isOpen:!1,inputValue:!c.props.onCloseResetsInput||!c.props.onBlurResetsInput?h.inputValue:""}});break;case 27:!c.state.isOpen&&c.props.clearable&&c.props.escapeClearsValue&&(c.clearValue(p),c.setState({isFocused:!1,isPseudoFocused:!1}));break;case 32:if(c.props.searchable)break;p.preventDefault(),c.state.isOpen||c.setState({isOpen:!0});break;case 38:p.preventDefault(),c.state.isOpen||c.setState({isOpen:!0});break;case 40:p.preventDefault(),c.state.isOpen||c.setState({isOpen:!0});break;case 33:p.preventDefault(),c.state.isOpen||c.setState({isOpen:!0});break;case 34:p.preventDefault(),c.state.isOpen||c.setState({isOpen:!0});break;case 35:if(p.shiftKey)break;p.preventDefault(),c.state.isOpen||c.setState({isOpen:!0});break;case 36:if(p.shiftKey)break;p.preventDefault(),c.state.isOpen||c.setState({isOpen:!0});break;case 46:!c.state.inputValue&&c.props.deleteRemoves&&(p.preventDefault(),c.popValue());break}}),_defineProperty$5(_assertThisInitialized$2(c),"getOptionLabel",function(p,h){var y=h.option;return y.isCreatable?"".concat(p.select.create," â").concat(y[c.props.labelKey],"â"):y[c.props.labelKey]}),_defineProperty$5(_assertThisInitialized$2(c),"getValueLabel",function(p){var h=p.option;return h[c.props.labelKey]}),_defineProperty$5(_assertThisInitialized$2(c),"handleActiveDescendantChange",function(p){p?c.setState({activeDescendant:p}):c.setState({activeDescendant:null})}),_defineProperty$5(_assertThisInitialized$2(c),"handleInputRef",function(p){c.input=p,typeof c.props.inputRef=="function"?c.props.inputRef(p):c.props.inputRef&&(c.props.inputRef.current=p),c.props.controlRef&&typeof c.props.controlRef=="function"&&c.props.controlRef(p)}),_defineProperty$5(_assertThisInitialized$2(c),"selectValue",function(p){var h=p.item;if(!h.disabled){c.justSelected=!0;var y=c.props.onSelectResetsInput?"":c.state.inputValue;c.props.multi?c.setState({inputValue:y,isOpen:!c.props.closeOnSelect},function(){var g=c.props.value;g.some(function($){return $[c.props.valueKey]===h[c.props.valueKey]})?c.removeValue(h):c.addValue(h)}):(c.focus(),c.setState({inputValue:y,isOpen:!c.props.closeOnSelect,isFocused:!0,isPseudoFocused:!1},function(){c.setValue([h],h,STATE_CHANGE_TYPE.select)}
126))}}),_defineProperty$5(_assertThisInitialized$2(c),"addValue",function(p){var h=_toConsumableArray(c.props.value);c.setValue(h.concat(p),p,STATE_CHANGE_TYPE.select)}),_defineProperty$5(_assertThisInitialized$2(c),"backspaceValue",function(){var p=c.popValue();if(p){var h=c.props.value.length,y=c.props.getValueLabel||c.getValueLabel,g=y({option:p,index:h-1});if(!c.props.backspaceClearsInputValue&&typeof g=="string"){var $=g.slice(0,-1);c.setState({inputValue:$,isOpen:!0})}}}),_defineProperty$5(_assertThisInitialized$2(c),"popValue",function(){var p=_toConsumableArray(c.props.value),h=p.length;if(h&&p[h-1].clearableValue!==!1){var y=p.pop();return c.setValue(p,y,STATE_CHANGE_TYPE.remove),y}}),_defineProperty$5(_assertThisInitialized$2(c),"removeValue",function(p){var h=_toConsumableArray(c.props.value);c.setValue(h.filter(function(y){return y[c.props.valueKey]!==p[c.props.valueKey]}),p,STATE_CHANGE_TYPE.remove),c.focus()}),_defineProperty$5(_assertThisInitialized$2(c),"clearValue",function(p){if(!(isClick(p)&&!isLeftClick(p))){if(c.props.value){var h=c.props.value.filter(function(y){return y.clearableValue===!1});c.setValue(h,null,STATE_CHANGE_TYPE.clear)}c.setState({inputValue:"",isOpen:!1}),c.focus(),c.focusAfterClear=!0}}),_defineProperty$5(_assertThisInitialized$2(c),"shouldShowPlaceholder",function(){return!(c.state.inputValue||c.props.value&&c.props.value.length)}),_defineProperty$5(_assertThisInitialized$2(c),"shouldShowValue",function(){return!c.state.inputValue}),c.options=normalizeOptions(t.options),c}return _createClass$1(e,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus(),this.isItMounted=!0;var c=this.props.controlRef;c&&typeof c!="function"&&(c.current={setDropdownOpen:this.handleDropdownOpen.bind(this),setInputValue:this.handleSetInputValue.bind(this),setInputFocus:this.handleSetInputFocus.bind(this),setInputBlur:this.handleSetInputBlur.bind(this),focus:this.handleSetInputFocus.bind(this),blur:this.handleSetInputBlur.bind(this)})}},{key:"componentDidUpdate",value:function(c,p){var h=this;typeof document<"u"&&(p.isOpen!==this.state.isOpen&&(this.state.isOpen?(this.props.onOpen&&this.props.onOpen(),document.addEventListener("touchstart",this.handleTouchOutside)):(this.props.onClose&&this.props.onClose(),document.removeEventListener("touchstart",this.handleTouchOutside))),!p.isFocused&&this.state.isFocused&&setTimeout(function(){return document.addEventListener("click",h.handleClickOutside)},0))}},{key:"componentWillUnmount",value:function(){typeof document<"u"&&(document.removeEventListener("touchstart",this.handleTouchOutside),document.removeEventListener("click",this.handleClickOutside)),this.isItMounted=!1}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"handleDropdownOpen",value:function(c){this.setState({isOpen:c})}},{key:"handleSetInputValue",value:function(c){this.setState({inputValue:c})}},{key:"handleSetInputFocus",value:function(){this.input.focus()}},{key:"handleSetInputBlur",value:function(){this.input.blur()}},{key:"closeMenu",value:function(){this.props.onCloseResetsInput?this.setState({inputValue:"",isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi})}},{key:"getValueArray",value:function(c){var p=this;if(!Array.isArray(c)){if(c==null)return[];c=[c]}return c.map(function(h){return expandValue(h,p.props)})}},{key:"setValue",value:function(c,p,h){this.props.onChange&&this.props.onChange({value:c,option:p,type:h})}},{key:"renderLoading",value:function(){if(this.props.isLoading){var c=this.props.overrides,p=c===void 0?{}:c,h=getOverrides(p.LoadingIndicator,StyledLoadingIndicator),y=_slicedToArray$4(h,2),g=y[0],$=y[1];return reactExports.createElement(g,_extends$7({role:"status"},$),reactExports.createElement("span",{style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}},"Loading"))}}},{key:"renderValue",value:function(c){var p=this,h=this.props.overrides,y=h===void 0?{}:h,g=this.getSharedProps(),$=this.props.getValueLabel||this.getValueLabel,E=this.props.valueComponent||Noop;if(!c.length)return null;if(this.props.multi)return c.map(function(A,N){var H=g.$disabled||A.clearableValue===!1;return reactExports.createElement(E,_extends$7({value:A,key:"value-".concat(N,"-").concat(A[p.props.valueKey]),removeValue:function(){return p.removeValue(A)},disabled:H,overrides:{Tag:y.Tag,MultiValue:y.MultiValue}},g,{$disabled:H}),$({option:A,index:N}))});if(this.shouldShowValue())return reactExports.createElement(E,_extends$7({value:c[0][this.props.valueKey],disabled:this.props.disabled,overrides:{SingleValue:y.SingleValue}},g),$({option:c[0]}))}},{key:"renderInput",value:function(c){var p=this,h=this.props.overrides,y=h===void 0?{}:h,g=getOverrides(y.InputContainer,StyledInputContainer),$=_slicedToArray$4(g,2),E=$[0],A=$[1],N=this.getSharedProps(),H=this.state.isOpen,Z=this.getValueArray(this.props.value).map(function(we){return we[p.props.labelKey]}).join(", "),X=Z.length?"Selected ".concat(Z,". "):"",be="".concat(X).concat(this.props["aria-label"]||"");return this.props.searchable?reactExports.createElement(E,_extends$7({},N,A),reactExports.createElement(AutosizeInput,_extends$7({"aria-activedescendant":this.state.activeDescendant,"aria-autocomplete":"list","aria-controls":this.state.isOpen?c:null,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-disabled":this.props.disabled||null,"aria-expanded":H,"aria-haspopup":"listbox","aria-label":be,"aria-labelledby":this.props["aria-labelledby"],"aria-required":this.props.required||null,disabled:this.props.disabled||null,id:this.props.id||null,inputRef:this.handleInputRef,onChange:this.handleInputChange,onFocus:this.handleInputFocus,overrides:{Input:y.Input},required:this.props.required&&!this.props.value.length||null,role:"combobox",value:this.state.inputValue,tabIndex:0},N))):reactExports.createElement(E,_extends$7({"aria-activedescendant":this.state.activeDescendant,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-disabled":this.props.disabled,"aria-labelledby":this.props["aria-labelledby"],"aria-owns":this.state.isOpen?c:null,"aria-required":this.props.required||null,onFocus:this.handleInputFocus,tabIndex:0},N,A),reactExports.createElement("input",_extends$7({"aria-hidden":!0,id:this.props.id||null,ref:this.handleInputRef,style:{opacity:0,width:0,overflow:"hidden",border:"none",padding:0},tabIndex:-1},y.Input?y.Input.props?y.Input.props:{}:{})))}},{key:"renderClear",value:function(){var c,p=!!(this.props.value&&this.props.value.length||this.state.inputValue);if(!(!this.props.clearable||this.props.disabled||this.props.isLoading||!p)){var h=this.getSharedProps();h.$size;var y=_objectWithoutProperties$5(h,_excluded$7),g=this.props.overrides,$=g===void 0?{}:g,E=getOverrides($.ClearIcon,DeleteAlt$1),A=_slicedToArray$4(E,2),N=A[0],H=A[1],Z=this.props.multi?"Clear all":"Clear value",X=(c={},_defineProperty$5(c,SIZE$1.mini,15),_defineProperty$5(c,SIZE$1.compact,15),_defineProperty$5(c,SIZE$1.default,18),_defineProperty$5(c,SIZE$1.large,22),c);return reactExports.createElement(N,_extends$7({title:Z,"aria-label":Z,onClick:this.clearValue,role:"button",size:X[this.props.size]||X[SIZE$1.default]},y,H))}}},{key:"renderArrow",value:function(){var c;if(this.props.type!==TYPE.select)return null;var p=this.getSharedProps();p.$size;var h=_objectWithoutProperties$5(p,_excluded2$2),y=this.props.overrides,g=y===void 0?{}:y,$=getOverrides(g.SelectArrow,TriangleDownIcon),E=_slicedToArray$4($,2),A=E[0],N=E[1];N.overrides=mergeOverrides({Svg:{style:function(X){var be=X.$theme,we=X.$disabled;return{color:we?be.colors.inputTextDisabled:be.colors.contentPrimary}}}},N.overrides);var H=(c={},_defineProperty$5(c,SIZE$1.mini,16),_defineProperty$5(c,SIZE$1.compact,16),_defineProperty$5(c,SIZE$1.default,20),_defineProperty$5(c,SIZE$1.large,24),c);return reactExports.createElement(A,_extends$7({size:H[this.props.size]||H[SIZE$1.default],title:"open"},h,N))}},{key:"renderSearch",value:function(){if(this.props.type!==TYPE.search)return null;var c=this.props.overrides,p=c===void 0?{}:c,h=getOverrides(p.SearchIconContainer,StyledSearchIconContainer),y=_slicedToArray$4(h,2),g=y[0],$=y[1],E=getOverrides(p.SearchIcon,SearchIconComponent),A=_slicedToArray$4(E,2),N=A[0],H=A[1],Z=this.getSharedProps();return reactExports.createElement(g,_extends$7({},Z,$),reactExports.createElement(N,_extends$7({size:16,title:"search"},Z,H)))}},{key:"filterOptions",value:function(c){var p=this,h=this.state.inputValue.trim();this.props.filterOptions&&(this.options=this.props.filterOptions(this.options,h,c,{valueKey:this.props.valueKey,labelKey:this.props.labelKey}));var y=this.props.ignoreCase?function($){return $[p.props.labelKey].toLowerCase()!==h.toLowerCase().trim()}:function($){return $[p.props.labelKey]!==h.trim()};if(h&&this.props.creatable&&this.options.concat(this.props.value).every(y)){var g;this.options.push((g={id:h},_defineProperty$5(g,this.props.labelKey,h),_defineProperty$5(g,this.props.valueKey,h),_defineProperty$5(g,"isCreatable",!0),g))}return this.options}},{key:"getSharedProps",value:function(){var c=this.props,p=c.clearable,h=c.creatable,y=c.disabled,g=c.error,$=c.positive,E=c.isLoading,A=c.multi,N=c.required,H=c.size,Z=c.searchable,X=c.type,be=c.value,we=this.state,$e=we.isOpen,Ce=we.isFocused,Ie=we.isPseudoFocused;return{$clearable:p,$creatable:h,$disabled:y,$error:g,$positive:$,$isFocused:Ce,$isLoading:E,$isOpen:$e,$isPseudoFocused:Ie,$multi:A,$required:N,$searchable:Z,$size:H,$type:X,$isEmpty:!this.getValueArray(be).length}}},{key:"render",value:function(){var c=this;this.options=normalizeOptions(this.props.options);var p=this.props,h=p.overrides,y=h===void 0?{}:h,g=p.type,$=p.multi,E=p.noResultsMsg,A=p.value,N=p.filterOutSelected,H=getOverrides(y.Root,StyledRoot),Z=_slicedToArray$4(H,2),X=Z[0],be=Z[1],we=getOverrides(y.ControlContainer,StyledControlContainer),$e=_slicedToArray$4(we,2),Ce=$e[0],Ie=$e[1],Ne=getOverrides(y.ValueContainer,StyledValueContainer),Fe=_slicedToArray$4(Ne,2),Be=Fe[0],Ge=Fe[1],je=getOverrides(y.IconsContainer,StyledIconsContainer),De=_slicedToArray$4(je,2),Ue=De[0],Je=De[1],Xe=getOverrides(y.Popover,Popover$2),Ke=_slicedToArray$4(Xe,2),ze=Ke[0],nt=Ke[1],ct=getOverrides(y.Placeholder,StyledPlaceholder),at=_slicedToArray$4(ct,2),dt=at[0],Me=at[1],We=this.getSharedProps(),tt=this.getValueArray(A),Ve=this.filterOptions($&&N?tt:null),vt=this.state.isOpen;return We.$isOpen=vt,reactExports.createElement(UIDConsumer,null,function(xt){return reactExports.createElement(LocaleContext.Consumer,null,function(Qe){return reactExports.createElement(ze,_extends$7({innerRef:function(pt){pt&&(c.anchor=pt.anchorRef)},accessibilityType:ACCESSIBILITY_TYPE.none,autoFocus:!1,focusLock:!1,mountNode:c.props.mountNode,onEsc:function(){return c.closeMenu()}
126,isOpen:vt,popoverMargin:0,content:function(){var pt={error:c.props.error,positive:c.props.positive,getOptionLabel:c.props.getOptionLabel||c.getOptionLabel.bind(c,Qe),id:xt,isLoading:c.props.isLoading,labelKey:c.props.labelKey,maxDropdownHeight:c.props.maxDropdownHeight,multi:$,noResultsMsg:E,onActiveDescendantChange:c.handleActiveDescendantChange,onItemSelect:c.selectValue,options:Ve,overrides:y,required:c.props.required,searchable:c.props.searchable,size:c.props.size,type:g,value:tt,valueKey:c.props.valueKey,width:c.anchor.current?c.anchor.current.clientWidth:null,keyboardControlNode:c.anchor};return reactExports.createElement(SelectDropdown,_extends$7({innerRef:c.dropdown},pt))},placement:PLACEMENT.bottom},nt),reactExports.createElement(X,_extends$7({onBlur:c.handleBlur,"data-baseweb":"select"},We,be),reactExports.createElement(Ce,_extends$7({onKeyDown:c.handleKeyDown,onClick:c.handleClick,onTouchEnd:c.handleTouchEnd,onTouchMove:c.handleTouchMove,onTouchStart:c.handleTouchStart},We,Ie),g===TYPE.search?c.renderSearch():null,reactExports.createElement(Be,_extends$7({},We,Ge),c.renderValue(tt),c.renderInput(xt),c.shouldShowPlaceholder()?reactExports.createElement(dt,_extends$7({},We,Me),typeof c.props.placeholder<"u"?c.props.placeholder:Qe.select.placeholder):null),reactExports.createElement(Ue,_extends$7({},We,Je),c.renderLoading(),c.renderClear(),g===TYPE.select?c.renderArrow():null))))})})}}]),e}(reactExports.Component);_defineProperty$5(Select$1,"defaultProps",defaultProps);var tint$1={exports:{}},_curry={exports:{}},hasRequired_curry;function require_curry(){return hasRequired_curry||(hasRequired_curry=1,function(n,o){o.__esModule=!0,o.default=t;function e(c,p,h){return function(){var g=h.concat(Array.prototype.slice.call(arguments));return g.length>=p?c.apply(this,g):e(c,p,g)}}function t(c){return e(c,c.length,[])}n.exports=o.default}(_curry,_curry.exports)),_curry.exports}var mix={exports:{}},rgba={exports:{}},parseToRgb={exports:{}},_hslToRgb={exports:{}},hasRequired_hslToRgb;function require_hslToRgb(){return hasRequired_hslToRgb||(hasRequired_hslToRgb=1,function(n,o){o.__esModule=!0,o.default=void 0;function e(h){return Math.round(h*255)}function t(h,y,g){return e(h)+","+e(y)+","+e(g)}function c(h,y,g,$){if($===void 0&&($=t),y===0)return $(g,g,g);var E=(h%360+360)%360/60,A=(1-Math.abs(2*g-1))*y,N=A*(1-Math.abs(E%2-1)),H=0,Z=0,X=0;E>=0&&E<1?(H=A,Z=N):E>=1&&E<2?(H=N,Z=A):E>=2&&E<3?(Z=A,X=N):E>=3&&E<4?(Z=N,X=A):E>=4&&E<5?(H=N,X=A):E>=5&&E<6&&(H=A,X=N);var be=g-A/2,we=H+be,$e=Z+be,Ce=X+be;return $(we,$e,Ce)}var p=c;o.default=p,n.exports=o.default}(_hslToRgb,_hslToRgb.exports)),_hslToRgb.exports}var _nameToHex={exports:{}},hasRequired_nameToHex;function require_nameToHex(){return hasRequired_nameToHex||(hasRequired_nameToHex=1,function(n,o){o.__esModule=!0,o.default=void 0;var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
1260",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function t(p){if(typeof p!="string")return p;var h=p.toLowerCase();return e[h]?"#"+e[h]:p}var c=t;o.default=c,n.exports=o.default}(_nameToHex,_nameToHex.exports)),_nameToHex.exports}var _errors={exports:{}},hasRequired_errors;function require_errors(){return hasRequired_errors||(hasRequired_errors=1,function(n,o){o.__esModule=!0,o.default=void 0;function e(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function t(A,N){A.prototype=Object.create(N.prototype),A.prototype.constructor=A,g(A,N)}function c(A){var N=typeof Map=="function"?new Map:void 0;return c=function(Z){if(Z===null||!y(Z))return Z;if(typeof Z!="function")throw new TypeError("Super expression must either be null or a function");if(typeof N<"u"){if(N.has(Z))return N.get(Z);N.set(Z,X)}function X(){return p(Z,arguments,$(this).constructor)}return X.prototype=Object.create(Z.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),g(X,Z)},c(A)}function p(A,N,H){return h()?p=Reflect.construct:p=function(X,be,we){var $e=[null];$e.push.apply($e,be);var Ce=Function.bind.apply(X,$e),Ie=new Ce;return we&&g(Ie,we.prototype),Ie},p.apply(null,arguments)}function h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function g(A,N){return g=Object.setPrototypeOf||function(Z,X){return Z.__proto__=X,Z},g(A,N)}function $(A){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},$(A)}var E=function(A){t(N,A);function N(H){var Z;return Z=A.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+H+" for more information.")||this,e(Z)}return N}(c(Error));o.default=E,n.exports=o.default}(_errors,_errors.exports)),_errors.exports}var hasRequiredParseToRgb;function requireParseToRgb(){return hasRequiredParseToRgb||(hasRequiredParseToRgb=1,function(n,o){o.__esModule=!0,o.default=Z;var e=p(require_hslToRgb()),t=p(require_nameToHex()),c=p(require_errors());function p(X){return X&&X.__esModule?X:{default:X}}var h=/^#[a-fA-F0-9]{6}$/,y=/^#[a-fA-F0-9]{8}$/,g=/^#[a-fA-F0-9]{3}$/,$=/^#[a-fA-F0-9]{4}$/,E=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,A=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,N=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,H=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function Z(X){if(typeof X!="string")throw new c.default(3);var be=(0,t.default)(X);if(be.match(h))return{red:parseInt(""+be[1]+be[2],16),green:parseInt(""+be[3]+be[4],16),blue:parseInt(""+be[5]+be[6],16)};if(be.match(y)){var we=parseFloat((parseInt(""+be[7]+be[8],16)/255).toFixed(2));return{red:parseInt(""+be[1]+be[2],16),green:parseInt(""+be[3]+be[4],16),blue:parseInt(""+be[5]+be[6],16),alph
126a:we}}if(be.match(g))return{red:parseInt(""+be[1]+be[1],16),green:parseInt(""+be[2]+be[2],16),blue:parseInt(""+be[3]+be[3],16)};if(be.match($)){var $e=parseFloat((parseInt(""+be[4]+be[4],16)/255).toFixed(2));return{red:parseInt(""+be[1]+be[1],16),green:parseInt(""+be[2]+be[2],16),blue:parseInt(""+be[3]+be[3],16),alpha:$e}}var Ce=E.exec(be);if(Ce)return{red:parseInt(""+Ce[1],10),green:parseInt(""+Ce[2],10),blue:parseInt(""+Ce[3],10)};var Ie=A.exec(be.substring(0,50));if(Ie)return{red:parseInt(""+Ie[1],10),green:parseInt(""+Ie[2],10),blue:parseInt(""+Ie[3],10),alpha:parseFloat(""+Ie[4])};var Ne=N.exec(be);if(Ne){var Fe=parseInt(""+Ne[1],10),Be=parseInt(""+Ne[2],10)/100,Ge=parseInt(""+Ne[3],10)/100,je="rgb("+(0,e.default)(Fe,Be,Ge)+")",De=E.exec(je);if(!De)throw new c.default(4,be,je);return{red:parseInt(""+De[1],10),green:parseInt(""+De[2],10),blue:parseInt(""+De[3],10)}}var Ue=H.exec(be.substring(0,50));if(Ue){var Je=parseInt(""+Ue[1],10),Xe=parseInt(""+Ue[2],10)/100,Ke=parseInt(""+Ue[3],10)/100,ze="rgb("+(0,e.default)(Je,Xe,Ke)+")",nt=E.exec(ze);if(!nt)throw new c.default(4,be,ze);return{red:parseInt(""+nt[1],10),green:parseInt(""+nt[2],10),blue:parseInt(""+nt[3],10),alpha:parseFloat(""+Ue[4])}}throw new c.default(5)}n.exports=o.default}(parseToRgb,parseToRgb.exports)),parseToRgb.exports}var rgb={exports:{}},_reduceHexValue={exports:{}},hasRequired_reduceHexValue;function require_reduceHexValue(){return hasRequired_reduceHexValue||(hasRequired_reduceHexValue=1,function(n,o){o.__esModule=!0,o.default=void 0;var e=function(p){return p.length===7&&p[1]===p[2]&&p[3]===p[4]&&p[5]===p[6]?"#"+p[1]+p[3]+p[5]:p},t=e;o.default=t,n.exports=o.default}(_reduceHexValue,_reduceHexValue.exports)),_reduceHexValue.exports}var _numberToHex={exports:{}},hasRequired_numberToHex;function require_numberToHex(){return hasRequired_numberToHex||(hasRequired_numberToHex=1,function(n,o){o.__esModule=!0,o.default=void 0;function e(c){var p=c.toString(16);return p.length===1?"0"+p:p}var t=e;o.default=t,n.exports=o.default}(_numberToHex,_numberToHex.exports)),_numberToHex.exports}var hasRequiredRgb;function requireRgb(){return hasRequiredRgb||(hasRequiredRgb=1,function(n,o){o.__esModule=!0,o.default=h;var e=p(require_reduceHexValue()),t=p(require_numberToHex()),c=p(require_errors());function p(y){return y&&y.__esModule?y:{default:y}}function h(y,g,$){if(typeof y=="number"&&typeof g=="number"&&typeof $=="number")return(0,e.default)("#"+(0,t.default)(y)+(0,t.default)(g)+(0,t.default)($));if(typeof y=="object"&&g===void 0&&$===void 0)return(0,e.default)("#"+(0,t.default)(y.red)+(0,t.default)(y.green)+(0,t.default)(y.blue));throw new c.default(6)}n.exports=o.default}(rgb,rgb.exports)),rgb.exports}var hasRequiredRgba;function requireRgba(){return hasRequiredRgba||(hasRequiredRgba=1,function(n,o){o.__esModule=!0,o.default=h;var e=p(requireParseToRgb()),t=p(requireRgb()),c=p(require_errors());function p(y){return y&&y.__esModule?y:{default:y}}function h(y,g,$,E){if(typeof y=="string"&&typeof g=="number"){var A=(0,e.default)(y);return"rgba("+A.red+","+A.green+","+A.blue+","+g+")"}else{if(typeof y=="number"&&typeof g=="number"&&typeof $=="number"&&typeof E=="number")return E>=1?(0,t.default)(y,g,$):"rgba("+y+","+g+","+$+","+E+")";if(typeof y=="object"&&g===void 0&&$===void 0&&E===void 0)return y.alpha>=1?(0,t.default)(y.red,y.green,y.blue):"rgba("+y.red+","+y.green+","+y.blue+","+y.alpha+")"}throw new c.default(7)}n.exports=o.default}(rgba,rgba.exports)),rgba.exports}var hasRequiredMix;function requireMix(){return hasRequiredMix||(hasRequiredMix=1,function(n,o){o.__esModule=!0,o.default=void 0;var e=p(require_curry()),t=p(requireRgba()),c=p(requireParseToRgb());function p(E){return E&&E.__esModule?E:{default:E}}function h(){return h=Object.assign||function(E){for(var A=1;A<arguments.length;A++){var N=arguments[A];for(var H in N)Object.prototype.hasOwnProperty.call(N,H)&&(E[H]=N[H])}return E},h.apply(this,arguments)}function y(E,A,N){if(A==="transparent")return N;if(N==="transparent")return A;if(E===0)return N;var H=(0,c.default)(A),Z=h({},H,{alpha:typeof H.alpha=="number"?H.alpha:1}),X=(0,c.default)(N),be=h({}
126,X,{alpha:typeof X.alpha=="number"?X.alpha:1}),we=Z.alpha-be.alpha,$e=parseFloat(E)*2-1,Ce=$e*we===-1?$e:$e+we,Ie=1+$e*we,Ne=(Ce/Ie+1)/2,Fe=1-Ne,Be={red:Math.floor(Z.red*Ne+be.red*Fe),green:Math.floor(Z.green*Ne+be.green*Fe),blue:Math.floor(Z.blue*Ne+be.blue*Fe),alpha:Z.alpha*(parseFloat(E)/1)+be.alpha*(1-parseFloat(E)/1)};return(0,t.default)(Be)}var g=(0,e.default)(y),$=g;o.default=$,n.exports=o.default}(mix,mix.exports)),mix.exports}var hasRequiredTint;function requireTint(){return hasRequiredTint||(hasRequiredTint=1,function(n,o){o.__esModule=!0,o.default=void 0;var e=c(require_curry()),t=c(requireMix());function c(g){return g&&g.__esModule?g:{default:g}}function p(g,$){return $==="transparent"?$:(0,t.default)(parseFloat(g),"rgb(255, 255, 255)",$)}var h=(0,e.default)(p),y=h;o.default=y,n.exports=o.default}(tint$1,tint$1.exports)),tint$1.exports}var tintExports=requireTint();const tint=getDefaultExportFromCjs(tintExports);var shade$1={exports:{}},hasRequiredShade;function requireShade(){return hasRequiredShade||(hasRequiredShade=1,function(n,o){o.__esModule=!0,o.default=void 0;var e=c(require_curry()),t=c(requireMix());function c(g){return g&&g.__esModule?g:{default:g}}function p(g,$){return $==="transparent"?$:(0,t.default)(parseFloat(g),"rgb(0, 0, 0)",$)}var h=(0,e.default)(p),y=h;o.default=y,n.exports=o.default}(shade$1,shade$1.exports)),shade$1.exports}var shadeExports=requireShade();const shade=getDefaultExportFromCjs(shadeExports);var SIZE={small:"small",medium:"medium",large:"large"},VARIANT=Object.freeze({solid:"solid",light:"light",outlined:"outlined"}),KIND={custom:"custom",neutral:"neutral",primary:"primary",accent:"accent",positive:"positive",warning:"warning",negative:"negative",black:"black",blue:"blue",green:"green",red:"red",yellow:"yellow",orange:"orange",purple:"purple",brown:"brown"},_neutralColorStates,_primaryColorStates,_accentColorStates,_positiveColorStates,_warningColorStates,_negativeColorStates,_orangeColorStates,_purpleColorStates,_brownColorStates,_customColorStates,_colorMap;function ownKeys$4(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$2(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$4(Object(e),!0).forEach(function(t){_defineProperty$4(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$4(Object(e)).forEac
126h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$4(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function customOnRamp(n,o){switch(o){case"0":return"white";case"50":return tint(.8,n);case"100":return tint(.6,n);case"200":return tint(.4,n);case"300":return tint(.2,n);case"400":return n;case"500":return shade(.2,n);case"600":return shade(.4,n);case"700":return shade(.6,n);case"800":return shade(.8,n);case"1000":return"black";default:return n}}var COLOR_STATE={disabled:"disabled",solid:"solid",outline:"outline"},pick=function n(o,e,t){return o.name&&o.name.includes("dark")?t:e},neutralColorStates=(_neutralColorStates={},_defineProperty$4(_neutralColorStates,COLOR_STATE.disabled,function(n,o){return{color:n.colors.tagNeutralFontDisabled,backgroundColor:null,borderColor:n.colors.tagNeutralOutlinedDisabled}}),_defineProperty$4(_neutralColorStates,COLOR_STATE.solid,function(n,o){return{color:n.colors.tagNeutralSolidFont,backgroundColor:n.colors.tagNeutralSolidBackground,borderColor:null}}),_defineProperty$4(_neutralColorStates,COLOR_STATE.outline,function(n,o){return{color:n.colors.tagNeutralOutlinedFont,backgroundColor:null,borderColor:n.colors.tagNeutralOutlinedBackground}}),_neutralColorStates),primaryColorStates=(_primaryColorStates={},_defineProperty$4(_primaryColorStates,COLOR_STATE.disabled,function(n,o){return{color:n.colors.tagPrimaryFontDisabled,backgroundColor:null,borderColor:n.colors.tagPrimaryOutlinedDisabled}}),_defineProperty$4(_primaryColorStates,COLOR_STATE.solid,function(n,o){return{color:n.colors.tagPrimarySolidFont,backgroundColor:n.colors.tagPrimarySolidBackground,borderColor:null}}),_defineProperty$4(_primaryColorStates,COLOR_STATE.outline,function(n,o){return{color:n.colors.tagPrimaryOutlinedFont,backgroundColor:null,borderColor:n.colors.tagPrimaryOutlinedBackground}}),_primaryColorStates),accentColorStates=(_accentColorStates={},_defineProperty$4(_accentColorStates,COLOR_STATE.disabled,function(n,o){return{color:n.colors.tagAccentFontDisabled,backgroundColor:null,borderColor:n.colors.tagAccentOutlinedDisabled}}),_defineProperty$4(_accentColorStates,COLOR_STATE.solid,function(n,o){return{color:n.colors.tagAccentSolidFont,backgroundColor:n.colors.tagAccentSolidBackground,borderColor:null}}),_defineProperty$4(_accentColorStates,COLOR_STATE.outline,function(n,o){return{color:n.colors.tagAccentOutlinedFont,backgroundColor:null,borderColor:n.colors.tagAccentOutlinedBackground}}),_accentColorStates),positiveColorStates=(_positiveColorStates={},_defineProperty$4(_positiveColorStates,COLOR_STATE.disabled,function(n,o){return{color:n.colors.tagPositiveFontDisabled,backgroundColor:null,borderColor:n.colors.tagPositiveOutlinedDisabled}}),_defineProperty$4(_positiveColorStates,COLOR_STATE.solid,function(n,o){return{color:n.colors.tagPositiveSolidFont,backgroundColor:n.colors.tagPositiveSolidBackground,borderColor:null}}),_defineProperty$4(_positiveColorStates,COLOR_STATE.outline,function(n,o){return{color:n.colors.tagPositiveOutlinedFont,backgroundColor:null,borderColor:n.colors.tagPositiveOutlinedBackground}}),_positiveColorStates),warningColorStates=(_warningColorStates={},_defineProperty$4(_warningColorStates,COLOR_STATE.disabled,function(n,o){return{color:n.colors.tagWarningFontDisabled,backgroundColor:null,borderColor:n.colors.tagWarningOutlinedDisabled}}),_defineProperty$4(_warningColorStates,COLOR_STATE.solid,function(n,o){return{color:n.colors.tagWarningSolidFont,backgroundColor:n.colors.tagWarningSolidBackground,borderColor:null}}),_defineProperty$4(_warningColorStates,COLOR_STATE.outline,function(n,o){return{color:n.colors.tagWarningOutlinedFont,backgroundColor:null,borderColor:n.colors.tagWarningOutlinedBackground}}),_warningColorStates),negativeColorStates=(_negativeColorStates={},_defineProperty$4(_negativeColorStates,COLOR_STATE.disabled,function(n,o){return{color:n.colors.tagNegativeFontDisabled,backgroundColor:null,borderColor:n.colors.tagNegativeOutlinedDisabled}}),_defineProperty$4(_negativeColorStates,COLOR_STATE.solid,function(n,o){return{color:n.colors.tagNegativeSolidFont,backgroundColor:n.colors.tagNegativeSolidBackgroun
126d,borderColor:null}}),_defineProperty$4(_negativeColorStates,COLOR_STATE.outline,function(n,o){return{color:n.colors.tagNegativeOutlinedFont,backgroundColor:null,borderColor:n.colors.tagNegativeOutlinedBackground}}),_negativeColorStates),orangeColorStates=(_orangeColorStates={},_defineProperty$4(_orangeColorStates,COLOR_STATE.disabled,function(n,o){return{color:pick(n,colors$1.orange200,colors$1.orange600),backgroundColor:null,borderColor:pick(n,colors$1.orange200,colors$1.orange700)}}),_defineProperty$4(_orangeColorStates,COLOR_STATE.solid,function(n,o){return{color:colors$1.white,backgroundColor:pick(n,colors$1.orange400,colors$1.orange500),borderColor:null}}),_defineProperty$4(_orangeColorStates,COLOR_STATE.outline,function(n,o){return{color:pick(n,colors$1.orange400,colors$1.orange300),backgroundColor:null,borderColor:pick(n,colors$1.orange200,colors$1.orange500)}}),_orangeColorStates),purpleColorStates=(_purpleColorStates={},_defineProperty$4(_purpleColorStates,COLOR_STATE.disabled,function(n,o){return{color:pick(n,colors$1.purple200,colors$1.purple600),backgroundColor:null,borderColor:pick(n,colors$1.purple200,colors$1.purple700)}}),_defineProperty$4(_purpleColorStates,COLOR_STATE.solid,function(n,o){return{color:colors$1.white,backgroundColor:pick(n,colors$1.purple400,colors$1.purple500),borderColor:null}}),_defineProperty$4(_purpleColorStates,COLOR_STATE.outline,function(n,o){return{color:pick(n,colors$1.purple400,colors$1.purple300),backgroundColor:null,borderColor:pick(n,colors$1.purple200,colors$1.purple500)}}),_purpleColorStates),brownColorStates=(_brownColorStates={},_defineProperty$4(_brownColorStates,COLOR_STATE.disabled,function(n,o){return{color:pick(n,colors$1.brown200,colors$1.brown600),backgroundColor:null,borderColor:pick(n,colors$1.brown200,colors$1.brown700)}}),_defineProperty$4(_brownColorStates,COLOR_STATE.solid,function(n,o){return{color:colors$1.white,backgroundColor:pick(n,colors$1.brown400,colors$1.brown500),borderColor:null}}),_defineProperty$4(_brownColorStates,COLOR_STATE.outline,function(n,o){return{color:pick(n,colors$1.brown400,colors$1.brown300),backgroundColor:null,borderColor:pick(n,colors$1.brown200,colors$1.brown500)}}),_brownColorStates),customColorStates=(_customColorStates={},_defineProperty$4(_customColorStates,COLOR_STATE.disabled,function(n,o){return{color:customOnRamp(o,n.colors.tagFontDisabledRampUnit),backgroundColor:null,borderColor:customOnRamp(o,n.colors.tagSolidDisabledRampUnit)}}),_defineProperty$4(_customColorStates,COLOR_STATE.solid,function(n,o){return{color:customOnRamp(o,n.colors.tagSolidFontRampUnit),backgroundColor:customOnRamp(o,n.colors.tagSolidRampUnit),borderColor:null}}),_defineProperty$4(_customColorStates,COLOR_STATE.outline,function(n,o){return{color:customOnRamp(o,n.colors.tagOutlinedFontRampUnit),backgroundColor:null,borderColor:customOnRamp(o,n.colors.tagOutlinedRampUnit)}}),_customColorStates),colorMap=(_colorMap={},_defineProperty$4(_colorMap,KIND.neutral,neutralColorStates),_defineProperty$4(_colorMap,KIND.primary,primaryColorStates),_defineProperty$4(_colorMap,KIND.accent,accentColorStates),_defineProperty$4(_colorMap,KIND.positive,positiveColorStates),_defineProperty$4(_colorMap,KIND.warning,warningColorStates),_defineProperty$4(_colorMap,KIND.negative,negativeColorStates),_defineProperty$4(_colorMap,KIND.black,primaryColorStates),_defineProperty$4(_colorMap,KIND.blue,accentColorStates),_defineProperty$4(_colorMap,KIND.green,positiveColorStates),_defineProperty$4(_colorMap,KIND.red,negativeColorStates),_defineProperty$4(_colorMap,KIND.yellow,warningColorStates),_defineProperty$4(_colorMap,KIND.orange,orangeColorStates),_defineProperty$4(_colorMap,KIND.purple,purpleColorStates),_defineProperty$4(_colorMap,KIND.brown,brownColorStates),_defineProperty$4(_colorMap,KIND.custom,customColorStates),_colorMap),getColorStateFromProps=function n(o){return o.$disabled?COLOR_STATE.disabled:o.$variant===VARIANT.solid?COLOR_STATE.solid:COLOR_STATE.outline},Action$1=styled$1("span",function(n){var o,e,t=n.$theme,c=n.$disabled,p=n.$size,h=p===void 0?SIZE.small:p,y=t.direction==="rtl"?"borderBottomLeftRadius":"borderBottomRightRadius",g=t.direction==="rtl"?"borderTopLeftRadius":"borderTopRightRadius",$=t.direction==="rtl"?"marginRight":"marginLeft";return e={alignItems:"center"},_defineProperty$4(e,y,t.borders.useRoundedCorners?t.borders.radius400:0),_defineProperty$4(e,g,t.borders.useRoundedCorners?t.borders.radius400:0),_defineProperty$4(e,"cursor",c?"not-allowed":"pointer"),_defineProperty$4(e,"display","flex"),_defineProperty$4(e,$,(o={},_defineProperty$4(o,SIZE.small,"8px"),_defineProperty$4(o,SIZE.medium,"12px"),_defineProperty$4(o,SIZE.large,"16px"),o)[h]),_defineProperty$4(e,"outline","none"),_defineProperty$4(e,"transitionProperty","all"),_defineProperty$4(e,"transitionDuration","background-color"),_defineProperty$4(e,"transitionTimingFunction",t.animation.easeOutCurve),e});Action$1.displayName="Action";Action$1.displayName="Action";var StartEnhancerContainer=styled$1("div",function(n){var o=n.$theme,e=n.$size,t=e===void 0?SIZE.small:e,c=o.sizing.scale300;t===SIZE.medium?c=o.sizing.scale400:t===SIZE.large&&(c=o.sizing.scale600);var p=o.direction==="rtl"?"paddingLeft":"paddingRight";return _defineProperty$4({alignItems:"center",display:"flex"},p,c)});
126StartEnhancerContainer.displayName="StartEnhancerContainer";StartEnhancerContainer.displayName="StartEnhancerContainer";var Text=styled$1("span",function(n){var o=n.$theme;return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:n.$theme.sizing.scale3200,order:o.direction==="rtl"?1:0}});Text.displayName="Text";Text.displayName="Text";var Root$1=styled$1("span",function(n){var o,e,t,c=n.$theme,p=n.$kind,h=p===void 0?KIND.primary:p,y=n.$clickable,g=n.$variant,$=n.$disabled,E=n.$closeable,A=n.$isFocusVisible,N=n.$color,H=n.$size,Z=H===void 0?SIZE.small:H,X=c.borders.tagBorderRadius,be=(o={},_defineProperty$4(o,SIZE.small,c.sizing.scale300),_defineProperty$4(o,SIZE.medium,c.sizing.scale500),_defineProperty$4(o,SIZE.large,c.sizing.scale600),o)[Z],we=!$&&g===VARIANT.solid?0:"2px",$e=colorMap[h][getColorStateFromProps(n)](c,N),Ce=$e.color,Ie=$e.backgroundColor,Ne=$e.borderColor;return _objectSpread$2(_objectSpread$2({},(e={},_defineProperty$4(e,SIZE.small,c.typography.LabelSmall),_defineProperty$4(e,SIZE.medium,c.typography.LabelMedium),_defineProperty$4(e,SIZE.large,c.typography.LabelLarge),e)[Z]),{},{alignItems:"center",color:Ce,backgroundColor:Ie,borderLeftColor:Ne,borderRightColor:Ne,borderTopColor:Ne,borderBottomColor:Ne,borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:we,borderRightWidth:we,borderTopWidth:we,borderBottomWidth:we,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,boxSizing:"border-box",cursor:$?"not-allowed":y?"pointer":"default",display:"inline-flex",height:(t={},_defineProperty$4(t,SIZE.small,"24px"),_defineProperty$4(t,SIZE.medium,"32px"),_defineProperty$4(t,SIZE.large,"40px"),t)[Z],justifyContent:"space-between",marginTop:"5px",marginBottom:"5px",marginLeft:"5px",marginRight:"5px",paddingTop:c.sizing.scale0,paddingBottom:c.sizing.scale0,paddingLeft:be,paddingRight:be,outline:"none",":hover":$||!y?{}:{boxShadow:"inset 0px 0px 100px ".concat(pick(c,"rgba(0, 0, 0, 0.08)","rgba(255, 255, 255, 0.2)"))},":focus":$||!y&&!E?{}:{boxShadow:A?"0 0 0 3px ".concat(h===KIND.accent?c.colors.primaryA:c.colors.accent):"none"}})});Root$1.displayName="Root";Root$1.displayName="Root";function _typeof$2(n){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$2(n)}var JOINABLE_TYPES=new Set(["string","number"]);function getTextFromChildren(n){var o=reactExports.Children.toArray(n).filter(function(t){return t!=null});if(!o.length)return null;var e=o.every(function(t){return JOINABLE_TYPES.has(_typeof$2(t))});return e?o.join(""):null}function _defineProperty$3(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function _slicedToArray$3(n,o){return _arrayWithHoles$3(n)||_iterableToArrayLimit$3(n,o)||_unsupportedIterableToArray$3(n,o)||_nonIterableRest$3()}function _nonIterableRest$3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 127In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$3(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$3(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$3(n,o)}}function _arrayLikeToArray$3(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$3(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$3(n){if(Array.isArray(n))return n}function _extends$6(){return _extends$6=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$6.apply(this,arguments)}var ModifiedViewBoxDeleteIcon=function n(o){return reactExports.createElement(DeleteIcon,_extends$6({viewBox:"5 5 13.186 13.186"},o))},Tag=reactExports.forwardRef(function(n,o){var e,t=n.children,c=n.closeable,p=c===void 0?!0:c,h=n.color,y=n.size,g=y===void 0?SIZE.small:y,$=n.disabled,E=$===void 0?!1:$,A=n.isFocused,N=A===void 0?!1:A,H=n.isHovered,Z=H===void 0?!1:H,X=n.kind,be=X===void 0?KIND.primary:X,we=n.onActionClick,$e=we===void 0?function(Nt){}:we,Ce=n.onActionKeyDown,Ie=Ce===void 0?function(Nt){}:Ce,Ne=n.onClick,Fe=Ne===void 0?null:Ne,Be=n.onKeyDown,Ge=Be===void 0?null:Be,je=n.overrides,De=je===void 0?{}:je,Ue=n.startEnhancer,Je=n.title,Xe=n.variant,Ke=Xe===void 0?VARIANT.light:Xe,ze=reactExports.useState(!1),nt=_slicedToArray$3(ze,2),ct=nt[0],at=nt[1];function dt(Nt){isFocusVisible(Nt)&&at(!0)}function Me(Nt){ct!==!1&&at(!1)}function We(Nt){if(Nt.currentTarget===Nt.target){var Ct=Nt.key;Fe&&Ct==="Enter"&&Fe(Nt),p&&(Ct==="Backspace"||Ct==="Delete")&&($e(Nt),Ie(Nt)),Ge&&Ge(Nt)}}var tt=getOverrides(De.Root,Root$1),Ve=_slicedToArray$3(tt,2),vt=Ve[0],xt=Ve[1],Qe=getOverrides(De.Action,Action$1),St=_slicedToArray$3(Qe,2),pt=St[0],wt=St[1],Ft=getOverrides(De.ActionIcon,ModifiedViewBoxDeleteIcon),Ht=_slicedToArray$3(Ft,2),on=Ht[0],en=Ht[1],Wt=getOverrides(De.StartEnhancerContainer,StartEnhancerContainer),an=_slicedToArray$3(Wt,2),qt=an[0],zt=an[1],Jt=getOverrides(De.Text,Text),jt=_slicedToArray$3(Jt,2),Yt=jt[0],yn=jt[1],vn=typeof Fe=="function",nn=E?{}:{onClick:Fe,onKeyDown:We},pn=E?{}:{onClick:function(Ct){Ct.stopPropagation(),$e(Ct)}},Ut={$clickable:vn,$closeable:p,$color:h,$disabled:E,$isFocused:N,$isHovered:Z,$kind:be,$variant:Ke,$isFocusVisible:ct,$size:g},it=Je||getTextFromChildren(t),gt=(vn||p)&&!E,Tt=(e={},_defineProperty$3(e,SIZE.small,12),_defineProperty$3(e,SIZE.medium,16),_defineProperty$3(e,SIZE.large,20),e)[g],Et=Ue;return reactExports.createElement(vt,_extends$6({ref:o,"data-baseweb":"tag","aria-label":gt&&p?"".concat(typeof t=="string"?"".concat(t,", "):"","close by backspace"):null,"aria-disabled":E?!0:null,role:gt?"button":null,tabIndex:gt?0:null},nn,Ut,xt,{onFocus:forkFocus(xt,dt),onBlur:forkBlur(xt,Me)}),Et&&Et!==0&&reactExports.createElement(qt,zt,reactExports.createElement(Et,null)),reactExports.createElement(Yt,_extends$6({title:it},yn),t),p?reactExports.createElement(pt,_extends$6({"aria-hidden":!0,role:"presentation"},pn,Ut,wt),reactExports.createElement(on,_extends$6({size:Tt},en))):null)});Tag.displayName="Tag";var _excluded$6=["overrides","removeValue"];function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$5.apply(this,arguments)}function _slicedToArray$2(n,o){return _arrayWithHoles$2(n)||_iterableToArrayLimit$2(n,o)||_unsupportedIterableToArray$2(n,o)||_nonIterableRest$2()}function _nonIterableRest$2(){throw new TypeError(`Invalid attempt to de
127structure non-iterable instance. 128In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$2(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$2(n,o)}}function _arrayLikeToArray$2(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$2(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$2(n){if(Array.isArray(n))return n}function _objectWithoutProperties$4(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$3(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$3(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function MultiValue(n){var o=n.overrides,e=o===void 0?{}:o,t=n.removeValue,c=_objectWithoutProperties$4(n,_excluded$6),p=getOverrides(e.Tag||e.MultiValue,Tag),h=_slicedToArray$2(p,2),y=h[0],g=h[1];return reactExports.createElement(y,_extends$5({variant:VARIANT.solid,overrides:{Root:{style:function(E){var A=E.$theme.sizing;return{marginRight:A.scale0,marginBottom:A.scale0,marginLeft:A.scale0,marginTop:A.scale0}}}},onActionClick:t},c,g),n.children)}var _excluded$5=["overrides"];function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$4.apply(this,arguments)}function _slicedToArray$1(n,o){return _arrayWithHoles$1(n)||_iterableToArrayLimit$1(n,o)||_unsupportedIterableToArray$1(n,o)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 129In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray$1(n,o);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$1(n,o)}}function _arrayLikeToArray$1(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=n[e];return t}function _iterableToArrayLimit$1(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],c=!0,p=!1,h,y;try{for(e=e.call(n);!(c=(h=e.next()).done)&&(t.push(h.value),!(o&&t.length===o));c=!0);}catch(g){p=!0,y=g}finally{try{!c&&e.return!=null&&e.return()}finally{if(p)throw y}}return t}}function _arrayWithHoles$1(n){if(Array.isArray(n))return n}function _objectWithoutProperties$3(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose$2(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$2(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function Value(n){var o=n.overrides,e=o===void 0?{}:o,t=_objectWithoutProperties$3(n,_excluded$5),c=getOverrides(e.SingleValue,StyledSingleValue),p=_slicedToArray$1(c,2),h=p[0],y=p[1];return reactExports.createElement(h,_extends$4({},t,y),n.children)}function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$3.apply(this,arguments)}function Select(n){return reactExports.createElement(Select$1,_extends$3({},n,{valueComponent:n.multi?MultiValue:Value}))}function _assertThisInitialized$1(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}var safeIsNaN=Number.isNaN||function n(o){return typeof o=="number"&&o!==o};function isEqual(n,o){return!!(n===o||safeIsNaN(n)&&safeIsNaN(o))}function areInputsEqual(n,o){if(n.length!==o.length)return!1;for(var e=0;e<n.length;e++)if(!isEqual(n[e],o[e]))return!1;return!0}function memoizeOne(n,o){o===void 0&&(o=areInputsEqual);var e,t=[],c,p=!1;function h(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];return p&&e===this&&o(y,t)||(c=n.apply(this,y),p=!0,e=this,t=y),c}return h}var hasNativePerformanceNow=typeof performance=="object"&&typeof performance.now=="function",now=hasNativePerformanceNow?function(){return performance.now()}:function(){return Date.now()};function cancelTimeout(n){cancelAnimationFrame(n.id)}function requestTimeout(n,o){var e=now();function t(){now()-e>=o?n.call(null):c.id=requestAnimationFrame(t)}var c={id:requestAnimationFrame(t)};return c}var size=-1;function getScrollbarSize(n){if(n===void 0&&(n=!1),size===-1||n){var o=document.createElement("div"),e=o.style;e.width="50px",e.height="50px",e.overflow="scroll",document.body.appendChild(o),size=o.offsetWidth-o.clientWidth,document.body.removeChild(o)}return size}var cachedRTLResult=null;function getRTLOffsetType(n){if(n===void 0&&(n=!1),cachedRTLResult===null||n){var o=document.createElement("div"),e=o.style;e.width="50px",e.height="50px",e.overflow="scroll",e.direction="rtl";var t=document.createElement("div"),c=t.style;return c.width="100px",c.height="100px",o.appendChild(t),document.body.appendChild(o),o.scrollLeft>0?cachedRTLResult="positive-descending":(o.scrollLeft=1,o.scrollLeft===0?cachedRTLResult="negative":cachedRTLResult="positive-ascending"),document.body.removeChild(o),cachedRTLResult}return cachedRTLResult}var IS_SCROLLING_DEBOUNCE_INTERVAL$1=150,defaultItemKey$1=function n(o,e){return o};function createListComponent(n){var o,e=n.getItemOffset,t=n.getEstimatedTotalSize,c=n.getItemSize,p=n.getOffsetForIndexAndAlignment,h=n.get
vendor: 4,280 bytes, line 129
129StartIndexForOffset,y=n.getStopIndexForStartIndex,g=n.initInstanceProps,$=n.shouldResetStyleCacheOnItemSizeChange,E=n.validateProps;return o=function(A){_inheritsLoose(N,A);function N(Z){var X;return X=A.call(this,Z)||this,X._instanceProps=g(X.props,_assertThisInitialized$1(X)),X._outerRef=void 0,X._resetIsScrollingTimeoutId=null,X.state={instance:_assertThisInitialized$1(X),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof X.props.initialScrollOffset=="number"?X.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},X._callOnItemsRendered=void 0,X._callOnItemsRendered=memoizeOne(function(be,we,$e,Ce){return X.props.onItemsRendered({overscanStartIndex:be,overscanStopIndex:we,visibleStartIndex:$e,visibleStopIndex:Ce})}),X._callOnScroll=void 0,X._callOnScroll=memoizeOne(function(be,we,$e){return X.props.onScroll({scrollDirection:be,scrollOffset:we,scrollUpdateWasRequested:$e})}),X._getItemStyle=void 0,X._getItemStyle=function(be){var we=X.props,$e=we.direction,Ce=we.itemSize,Ie=we.layout,Ne=X._getItemStyleCache($&&Ce,$&&Ie,$&&$e),Fe;if(Ne.hasOwnProperty(be))Fe=Ne[be];else{var Be=e(X.props,be,X._instanceProps),Ge=c(X.props,be,X._instanceProps),je=$e==="horizontal"||Ie==="horizontal",De=$e==="rtl",Ue=je?Be:0;Ne[be]=Fe={position:"absolute",left:De?void 0:Ue,right:De?Ue:void 0,top:je?0:Be,height:je?"100%":Ge,width:je?Ge:"100%"}}return Fe},X._getItemStyleCache=void 0,X._getItemStyleCache=memoizeOne(function(be,we,$e){return{}}),X._onScrollHorizontal=function(be){var we=be.currentTarget,$e=we.clientWidth,Ce=we.scrollLeft,Ie=we.scrollWidth;X.setState(function(Ne){if(Ne.scrollOffset===Ce)return null;var Fe=X.props.direction,Be=Ce;if(Fe==="rtl")switch(getRTLOffsetType()){case"negative":Be=-Ce;break;case"positive-descending":Be=Ie-$e-Ce;break}return Be=Math.max(0,Math.min(Be,Ie-$e)),{isScrolling:!0,scrollDirection:Ne.scrollOffset<Be?"forward":"backward",scrollOffset:Be,scrollUpdateWasRequested:!1}},X._resetIsScrollingDebounced)},X._onScrollVertical=function(be){var we=be.currentTarget,$e=we.clientHeight,Ce=we.scrollHeight,Ie=we.scrollTop;X.setState(function(Ne){if(Ne.scrollOffset===Ie)return null;var Fe=Math.max(0,Math.min(Ie,Ce-$e));return{isScrolling:!0,scrollDirection:Ne.scrollOffset<Fe?"forward":"backward",scrollOffset:Fe,scrollUpdateWasRequested:!1}},X._resetIsScrollingDebounced)},X._outerRefSetter=function(be){var we=X.props.outerRef;X._outerRef=be,typeof we=="function"?we(be):we!=null&&typeof we=="object"&&we.hasOwnProperty("current")&&(we.current=be)},X._resetIsScrollingDebounced=function(){X._resetIsScrollingTimeoutId!==null&&cancelTimeout(X._resetIsScrollingTimeoutId),X._resetIsScrollingTimeoutId=requestTimeout(X._resetIsScrolling,IS_SCROLLING_DEBOUNCE_INTERVAL$1)},X._resetIsScrolling=function(){X._resetIsScrollingTimeoutId=null,X.setState({isScrolling:!1},function(){X._getItemStyleCache(-1,null)})},X}N.getDerivedStateFromProps=function(X,be){return validateSharedProps$1(X,be),E(X),null};var H=N.prototype;return H.scrollTo=function(X){X=Math.max(0,X),this.setState(function(be){return be.scrollOffset===X?null:{scrollDirection:be.scrollOffset<X?"forward":"backward",scrollOffset:X,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},H.scrollToItem=function(X,be){be===void 0&&(be="auto");var we=this.props,$e=we.itemCount,Ce=we.layout,Ie=this.state.scrollOffset;X=Math.max(0,Math.min(X,$e-1));var Ne=0;if(this._outerRef){var Fe=this._outerRef;Ce==="vertical"?Ne=Fe.scrollWidth>Fe.clientWidth?getScrollbarSize():0:Ne=Fe.scrollHeight>Fe.clientHeight?getScrollbarSize():0}this.scrollTo(p(this.props,X,be,Ie,this._instanceProps,Ne))},H.componentDidMount=function(){var X=this.props,be=X.direction,we=X.initialScrollOffset,$e=X.layout;if(typeof we=="number"&&this._outerRef!=null){var Ce=this._outerRef;be==="horizontal"||$e==="horizontal"?Ce.scrollLeft=we:Ce.scrollTop=we}this._callPropsCallbacks()},H.componentDidUpdate=function(){var X=this.props,be=X.direction,we=X.layout,$e=this.state,Ce=$e.scrollOffset,Ie=$e.scrollUpdateWasRequested;if(Ie&&this._outerRef!=null){var Ne=this._outerRef;if(be==="horizontal"||we==="horizontal")if(be==="rtl")switch(getRTLOffsetType()){case"negative":Ne.scrollLeft=-Ce;break;case"positive-ascending":Ne.scrollLeft=Ce;break;default:var Fe=Ne.clientWidth,Be=Ne.scrollWidth;
129Ne.scrollLeft=Be-Fe-Ce;break}else Ne.scrollLeft=Ce;else Ne.scrollTop=Ce}this._callPropsCallbacks()},H.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&cancelTimeout(this._resetIsScrollingTimeoutId)},H.render=function(){var X=this.props,be=X.children,we=X.className,$e=X.direction,Ce=X.height,Ie=X.innerRef,Ne=X.innerElementType,Fe=X.innerTagName,Be=X.itemCount,Ge=X.itemData,je=X.itemKey,De=je===void 0?defaultItemKey$1:je,Ue=X.layout,Je=X.outerElementType,Xe=X.outerTagName,Ke=X.style,ze=X.useIsScrolling,nt=X.width,ct=this.state.isScrolling,at=$e==="horizontal"||Ue==="horizontal",dt=at?this._onScrollHorizontal:this._onScrollVertical,Me=this._getRangeToRender(),We=Me[0],tt=Me[1],Ve=[];if(Be>0)for(var vt=We;vt<=tt;vt++)Ve.push(reactExports.createElement(be,{data:Ge,key:De(vt,Ge),index:vt,isScrolling:ze?ct:void 0,style:this._getItemStyle(vt)}));var xt=t(this.props,this._instanceProps);return reactExports.createElement(Je||Xe||"div",{className:we,onScroll:dt,ref:this._outerRefSetter,style:_extends$C({position:"relative",height:Ce,width:nt,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:$e},Ke)},reactExports.createElement(Ne||Fe||"div",{children:Ve,ref:Ie,style:{height:at?"100%":xt,pointerEvents:ct?"none":void 0,width:at?xt:"100%"}}))},H._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var X=this.props.itemCount;if(X>0){var be=this._getRangeToRender(),we=be[0],$e=be[1],Ce=be[2],Ie=be[3];this._callOnItemsRendered(we,$e,Ce,Ie)}}if(typeof this.props.onScroll=="function"){var Ne=this.state,Fe=Ne.scrollDirection,Be=Ne.scrollOffset,Ge=Ne.scrollUpdateWasRequested;this._callOnScroll(Fe,Be,Ge)}},H._getRangeToRender=function(){var X=this.props,be=X.itemCount,we=X.overscanCount,$e=this.state,Ce=$e.isScrolling,Ie=$e.scrollDirection,Ne=$e.scrollOffset;if(be===0)return[0,0,0,0];var Fe=h(this.props,Ne,this._instanceProps),Be=y(this.props,Fe,Ne,this._instanceProps),Ge=!Ce||Ie==="backward"?Math.max(1,we):1,je=!Ce||Ie==="forward"?Math.max(1,we):1;return[Math.max(0,Fe-Ge),Math.max(0,Math.min(be-1,Be+je)),Fe,Be]},N}(reactExports.PureComponent),o.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},o}var validateSharedProps$1=function n(o,e){o.children,o.direction,o.height,o.layout,o.innerTagName,o.outerTagName,o.width,e.instance},FixedSizeList=createListComponent({getItemOffset:function n(o,e){var t=o.itemSize;return e*t},getItemSize:function n(o,e){var t=o.itemSize;return t},getEstimatedTotalSize:function n(o){var e=o.itemCount,t=o.itemSize;return t*e},getOffsetForIndexAndAlignment:function n(o,e,t,c,p,h){var y=o.direction,g=o.height,$=o.itemCount,E=o.itemSize,A=o.layout,N=o.width,H=y==="horizontal"||A==="horizontal",Z=H?N:g,X=Math.max(0,$*E-Z),be=Math.min(X,e*E),we=Math.max(0,e*E-Z+E+h);switch(t==="smart"&&(c>=we-Z&&c<=be+Z?t="auto":t="center"),t){case"start":return be;case"end":return we;case"center":{var $e=Math.round(we+(be-we)/2);return $e<Math.ceil(Z/2)?0:$e>X+Math.floor(Z/2)?X:$e}case"auto":default:return c>=we&&c<=be?c:c<we?we:be}},getStartIndexForOffset:function n(o,e){var t=o.itemCount,c=o.itemSize;return Math.max(0,Math.min(t-1,Math.floor(e/c)))},getStopIndexForStartIndex:function n(o,e,t){var c=o.direction,p=o.height,h=o.itemCount,y=o.itemSize,g=o.layout,$=o.width,E=c==="horizontal"||g==="horizontal",A=e*y,N=E?$:p,H=Math.ceil((N+t-A)/y);return Math.max(0,Math.min(h-1,e+H-1))},initInstanceProps:function n(o){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function n(o){o.itemSize}});const ThemedStyledDropdownListItem=styled(StyledDropdownListItem,{shouldForwardProp:isPropValid$1,target:"eg1z3xh0"})(({theme:n,$isHighlighted:o})=>({display:"flex",alignItems:"center",paddingTop:n.spacing.none,paddingBottom:n.spacing.none,paddingLeft:n.spacing.lg,paddingRight:n.spacing.lg,background:o?n.colors.darkenedBgMix15:void 0,fontWeight:n.fontWeights.normal,[`@media (max-width: ${n.breakpoints.md})`]:{minHeight:n.sizes.dropdownItemHeight,height:"auto !important"},"&:hover, &:active, &:focus-visible":{background:n.colors.darkenedBgMix15}}));function FixedSizeListItem(n){const{data:o,index:e,style:t}=n,{item:c,overrides:p,...h}=o[e].props,y=c.isCreatable?`Add: ${c.label}`:c.label;return jsx$1(ThemedStyledDropdownListItem,{style:t,...h,children:jsx$1(OverflowTooltip,{content:y,placement:Placement.AUTO,children:y})},c.value)}const VirtualDropdown=reactExports.forwardRef((n,o)=>{const e=useEmotionTheme(),t=reactExports.Children.toArray(n.children);if(!t[0]?.props.item){const p=t[0]?t[0].props:{};return jsx$1(StyledList,{$style:{height:e.sizes.emptyDropdownHeight,paddingBottom:e.spacing.none,paddingTop:e.spacing.none,paddingLeft:e.spacing.none,paddingRight:e.spacing.none,dis
129play:"flex",alignItems:"center",justifyContent:"center",boxShadow:"none"},ref:o,"data-testid":"stSelectboxVirtualDropdownEmpty",children:jsx$1(StyledEmptyState,{$style:{paddingBottom:e.spacing.none,paddingTop:e.spacing.none,paddingLeft:e.spacing.none,paddingRight:e.spacing.none,color:e.colors.fadedText60},...p})})}const c=Math.min(convertRemToPx(e.sizes.maxDropdownHeight),t.length*convertRemToPx(e.sizes.dropdownItemHeight));return jsx$1(StyledList,{ref:o,$style:{paddingTop:0,paddingBottom:0,boxShadow:"none"},"data-testid":"stSelectboxVirtualDropdown",children:jsx$1(FixedSizeList,{width:"100%",height:c,itemCount:t.length,itemData:t,itemKey:(p,h)=>{const{id:y,value:g}=h[p].props.item;return y??g},itemSize:convertRemToPx(e.sizes.dropdownItemHeight),children:FixedSizeListItem})})});VirtualDropdown.displayName="VirtualDropdown";const SCORE_MIN=-1/0,SCORE_MAX=1/0,SCORE_GAP_LEADING=-.005,SCORE_GAP_TRAILING=-.005,SCORE_GAP_INNER=-.01,SCORE_MATCH_CONSECUTIVE=1,SCORE_MATCH_SLASH=.9,SCORE_MATCH_WORD=.8,SCORE_MATCH_CAPITAL=.7,SCORE_MATCH_DOT=.6;function islower(n){return n.toLowerCase()===n}function isupper(n){return n.toUpperCase()===n}function precomputeBonus(n){const o=n.length,e=new Array(o);let t="/";for(let c=0;c<o;c++){const p=n[c];t==="/"?e[c]=SCORE_MATCH_SLASH:t==="-"||t==="_"||t===" "?e[c]=SCORE_MATCH_WORD:t==="."?e[c]=SCORE_MATCH_DOT:islower(t)&&isupper(p)?e[c]=SCORE_MATCH_CAPITAL:e[c]=0,t=p}return e}function compute(n,o,e,t,c=!1){const p=n.length,h=o.length,y=c?n:n.toLowerCase(),g=c?o:o.toLowerCase(),$=precomputeBonus(o);for(let E=0;E<p;E++){e[E]=new Array(h),t[E]=new Array(h);let A=SCORE_MIN;const N=E===p-1?SCORE_GAP_TRAILING:SCORE_GAP_INNER;for(let H=0;H<h;H++)if(y[E]===g[H]){let Z=SCORE_MIN;E?H&&(Z=Math.max(t[E-1][H-1]+$[H],e[E-1][H-1]+SCORE_MATCH_CONSECUTIVE)):Z=H*SCORE_GAP_LEADING+$[H],e[E][H]=Z,t[E][H]=A=Math.max(Z,A+N)}else e[E][H]=SCORE_MIN,t[E][H]=A=A+N}}function score(n,o,e=!1){const t=n.length,c=o.length;if(!t||!c)return SCORE_MIN;if(n===o||!e&&c===t)return SCORE_MAX;if(c>1024)return SCORE_MIN;const p=new Array(t),h=new Array(t);return compute(n,o,p,h,e),h[t-1][c-1]}function hasMatch(n,o){n=n.toLowerCase(),o=o.toLowerCase();const e=n.length;for(let t=0,c=0;t<e;t+=1)if(c=o.indexOf(n[t],c)+1,c===0)return!1;return!0}function fuzzyFilterSelectOptions(n,o){if(!o)return n;const e=n.filter(t=>hasMatch(o,t.label));return sortBy(e,t=>-score(o,t.label))}var uaParser$1={exports:{}},uaParser=uaParser$1.exports,hasRequiredUaParser;function requireUaParser(){return hasRequiredUaParser||(hasRequiredUaParser=1,function(n,o){(function(e,t){var c="1.0.41",p="",h="?",y="function",g="undefined",$="object",E="string",A="major",N="model",H="name",Z="type",X="vendor",be="version",we="architecture",$e="console",Ce="mobile",Ie="tablet",Ne="smarttv",Fe="wearable",Be="embedded",Ge=500,je="Amazon",De="Apple",Ue="ASUS",Je="BlackBerry",Xe="Browser",Ke="Chrome",ze="Edge",nt="Firefox",ct="Google",at="Honor",dt="Huawei",Me="Lenovo",We="LG",tt="Microsoft",Ve="Motorola",vt="Nvidia",xt="OnePlus",Qe="Opera",St="OPPO",pt="Samsung",wt="Sharp",Ft="Sony",Ht="Xiaomi",on="Zebra",en="Facebook",Wt="Chromium OS",an="Mac OS",qt=" Browser",zt=function(Ct,Bt){var Ot={};for(var ot in Ct)Bt[ot]&&Bt[ot].length%2===0?Ot[ot]=Bt[ot].concat(Ct[ot]):Ot[ot]=Ct[ot];return Ot},Jt=function(Ct){for(var Bt={},Ot=0;Ot<Ct.length;Ot++)Bt[Ct[Ot].toUpperCase()]=Ct[Ot];return Bt},jt=function(Ct,Bt){return typeof Ct===E?Yt(Bt).indexOf(Yt(Ct))!==-1:!1},Yt=function(Ct){return Ct.toLowerCase()},yn=function(Ct){return typeof Ct===E?Ct.replace(/[^\d\.]/g,p).split(".")[0]:t},vn=function(Ct,Bt){if(typeof Ct===E)return Ct=Ct.replace(/^\s\s*/,p),typeof Bt===g?Ct:Ct.substring(0,Ge)},nn=function(Ct,Bt){for(var Ot=0,ot,lt,st,ft,ut,At;Ot<Bt.length&&!ut;){var Gt=Bt[Ot],Xt=Bt[Ot+1];for(ot=lt=0;ot<Gt.length&&!ut&&Gt[ot];)if(ut=Gt[ot++].exec(Ct),ut)for(st=0;st<Xt.length;st++)At=ut[++lt],ft=Xt[st],typeof ft===$&&ft.length>0?ft.length===2?typeof ft[1]==y?this[ft[0]]=ft[1].call(this,At):this[ft[0]]=ft[1]:ft.length===3?typeof ft[1]===y&&!(ft[1].exec&&ft[1].test)?this[ft[0]]=At?ft[1].call(this,At,ft[2]):t:this[ft[0]]=At?At.replace(ft[1],ft[2]):t:ft.length===4&&(this[ft[0]]=At?ft[3].call(this,At.replace(ft[1],ft[2])):t):this[ft]=At||t;Ot+=2}},pn=function(Ct,Bt){for(var Ot in Bt)if(typeof Bt[Ot]===$&&Bt[Ot].length>0){for(var ot=0;ot<Bt[Ot].length;ot++)if(jt(Bt[Ot][ot],Ct))return Ot===h?t:Ot}else if(jt(Bt[Ot],Ct))return Ot===h?t:Ot;return Bt.hasOwnProperty("*")?Bt["*"]:Ct},Ut={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},it={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},gt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[be,[H,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[be,[H,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[H,be],[/opios[\/ ]+([\w\.]+)/i],[be,[H,Qe+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[be,[H,Qe+" GX"]],[/\bopr\/([\w\.]+)/i],[be,[H,Qe]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[be,[H,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[be,[H,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[H,be],[/quark(?:pc)?\/([-\w\.]+)/i],[be,[H,"Quark"]],[/\bddg\/([\w\.]+)/i],[be,[H,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[be,[H,"UC"+Xe]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[be,[H,"WeChat"]],[/konqueror\/([\w\.]+)/i],[be,[H,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[be,[H,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[be,[H,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[be,[H,"Smart Lenovo "+Xe]],[/(avast|avg)\/([\w\.]+)/i],[[H,/(.+)/,"$1 Secure "+Xe],be],[/\bfocus\/([\w\.]+)/i],[be,[H,nt+" Focus"]],[/\bopt\/([\w\.]+)/i],[be,[H,Qe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[be,[H,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[be,[H,"Dolphin"]],[/coast\/([\w\.]+)/i],[be,[H,Qe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[be,[H,"MIUI"+qt]],[/fxios\/([\w\.-]+)/i],[be,[H,nt]],[/\bqihoobrowser\/?([\w\.]*)/i],[be,[H,"360"]],[/\b(qq)\/([\w\.]+)/i],[[H,/(.+)/,"$1Browser"],be],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[H,/(.+)/,"$1"+qt],be],[/samsungbrowser\/([\w\.]+)/i],[be,[H,pt+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[be,[H,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[H,"Sogou Mobile"],be],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[H,be],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[H],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[be,H],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[H,en],be],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[H,be],[/\bgsa\/([\w\.]+) .*safari\//i],[be,[H,"GSA"]],[/musical_ly(?:.
129+app_?version\/|_)([\w\.]+)/i],[be,[H,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[be,[H,Ke+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[H,Ke+" WebView"],be],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[be,[H,"Android "+Xe]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[H,be],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[be,[H,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[be,H],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[H,[be,pn,Ut]],[/(webkit|khtml)\/([\w\.]+)/i],[H,be],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[H,"Netscape"],be],[/(wolvic|librewolf)\/([\w\.]+)/i],[H,be],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[be,[H,nt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[H,[be,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[H,[be,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[we,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[we,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[we,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[we,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[we,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[we,/ower/,p,Yt]],[/ sun4\w[;\)]/i],[[we,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[we,Yt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[N,[X,pt],[Z,Ie]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[N,[X,pt],[Z,Ce]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[N,[X,De],[Z,Ce]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[N,[X,De],[Z,Ie]],[/(macintosh);/i],[N,[X,De]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[N,[X,wt],[Z,Ce]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[N,[X,at],[Z,Ie]],[/honor([-\w ]+)[;\)]/i],[N,[X,at],[Z,Ce]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[N,[X,dt],[Z,Ie]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[N,[X,dt],[Z,Ce]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[N,/_/g," "],[X,Ht],[Z,Ie]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[N,/_/g," "],[X,Ht],[Z,Ce]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[N,[X,St],[Z,Ce]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[N,[X,pn,{OnePlus:["304","403","203"],"*":St}],[Z,Ie]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[N,[X,"Vivo"],[Z,Ce]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[N,[X,"Realme"],[Z,Ce]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[N,[X,Ve],[Z,Ce]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[N,[X,Ve],[Z,Ie]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[N,[X,We],[Z,Ie]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[N,[X,We],[Z,Ce]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
129(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[N,[X,Me],[Z,Ie]],[/(nokia) (t[12][01])/i],[X,N,[Z,Ie]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[N,/_/g," "],[Z,Ce],[X,"Nokia"]],[/(pixel (c|tablet))\b/i],[N,[X,ct],[Z,Ie]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[N,[X,ct],[Z,Ce]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[N,[X,Ft],[Z,Ce]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[N,"Xperia Tablet"],[X,Ft],[Z,Ie]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[N,[X,xt],[Z,Ce]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[N,[X,je],[Z,Ie]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[N,/(.+)/g,"Fire Phone $1"],[X,je],[Z,Ce]],[/(playbook);[-\w\),; ]+(rim)/i],[N,X,[Z,Ie]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[N,[X,Je],[Z,Ce]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[N,[X,Ue],[Z,Ie]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[N,[X,Ue],[Z,Ce]],[/(nexus 9)/i],[N,[X,"HTC"],[Z,Ie]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[X,[N,/_/g," "],[Z,Ce]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[N,[X,"TCL"],[Z,Ie]],[/(itel) ((\w+))/i],[[X,Yt],N,[Z,pn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[N,[X,"Acer"],[Z,Ie]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[N,[X,"Meizu"],[Z,Ce]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[N,[X,"Ulefone"],[Z,Ce]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[N,[X,"Energizer"],[Z,Ce]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[N,[X,"Cat"],[Z,Ce]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[N,[X,"Smartfren"],[Z,Ce]],[/droid.+; (a(?:015|06[35]|142p?))/i],[N,[X,"Nothing"],[Z,Ce]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[N,[X,"Archos"],[Z,Ie]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[N,[X,"Archos"],[Z,Ce]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[X,N,[Z,Ie]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[X,N,[Z,Ce]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[X,N,[Z,Ie]],[/(surface duo)/i],[N,[X,tt],[Z,Ie]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[N,[X,"Fairphone"],[Z,Ce]],[/(u304aa)/i],[N,[X,"AT&T"],[Z,Ce]],[/\bsie-(\w*)/i],[N,[X,"Siemens"],[Z,Ce]],[/\b(rct\w+) b/i],[N,[X,"RCA"],[Z,Ie]],[/\b(venue[\d ]{2,7}) b/i],[N,[X,"Dell"],[Z,Ie]],[/\b(q(?:mv|ta)\w+) b/i],[N,[X,"Verizon"],[Z,Ie]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[N,[X,"Barnes & Noble"],[Z,Ie]],[/\b(tm\d{3}\w+) b/i],[N,[X,"NuVision"],[Z,Ie]],[/\b(k88) b/i],[N,[X,"ZTE"],[Z,Ie]],[/\b(nx\d{3}j) b/i],[N,[X,"ZTE"],[Z,Ce]],[/\b(gen\d{3}) b.+49h/i],[N,[X,"Swiss"],[Z,Ce]],[/\b(zur\d{3}) b/i],[N,[X,"Swiss"],[Z,Ie]],[/\b((zeki)?tb.*\b) b/i],[N,[X,"Zeki"],[Z,Ie]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[X,"Dragon Touch"],N,[Z,Ie]],[/\b(ns-?\w{0,9}) b/i],[N,[X,"Insignia"],[Z,Ie]],[/\b((nxa|next)-?\w{0,9}) b/i],[N,[X,"NextBook"],[Z,Ie]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[X,"Voice"],N,[Z,Ce]],[/\b(lvtel\-)?(v1[12]) b/i],[[X,"LvTel"],N,[Z,Ce]],[/\b(ph-1) /i],[N,[X,"Essential"],[Z,Ce]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[N,[X,"Envizen"],[Z,Ie]],[/\b(trio[-\w\. ]+) b/i],[N,[X,"MachSpeed"],[Z,Ie]],[/\btu_(1491) b/i],[N,[X,"Rotor"],[Z,Ie]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[N,[X,vt],[Z,Ie]],[/(sprint) (\w+)/i],[X,N,[Z,Ce]],[/(kin\.[onetw]{3})/i],[[N,/\./g," "],[X,tt],[Z,Ce]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[N,[X,on],[Z,Ie]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[N,[X,on],[Z,Ce]],[/smart-tv.+(samsung)/i],[X,[Z,Ne]],[/hbbtv.+maple;(\d+)/i],[[N,/^/,"SmartTV"],[X,pt],[Z,Ne]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[X,We],[Z,Ne]],[/(apple) ?tv/i],[X,[N,De+" TV"],[Z,Ne]],[/crkey/i],[[N,Ke+"cast"],[X,ct],[Z,Ne]],[/droid.+aft(\w+)( bui|\))/i],[N,[X,je],[Z,Ne]],[/(shield \w+ tv)/i],[N,[X,vt],[Z,Ne]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[N,[X,wt],[Z,Ne]],[/(bravia[\w ]+)( bui|\))/i],[N,[X,Ft],[Z,Ne]],[/(mi(tv|box)-?\w+) bui/i],[N,[X,Ht],[Z,Ne]],[/Hbbtv.*(technisat) (.*);/i],[X,N,[Z,Ne]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[X,vn],[N,vn],[Z,Ne]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[N,[Z,Ne]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[Z,Ne]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[X,N,[Z,$e]],[/droid.+; (shield)( bui|\))/i],[N,[X,vt],[Z,$e]],[/(playstation \w+)/i],[N,[X,Ft],[Z,$e]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[N,[X,tt],[Z,$e]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[N,[X,pt],[Z,Fe]],[/((pebble))app/i,/(asu
vendor: 5,371 bytes, line 129
129s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[X,N,[Z,Fe]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[N,[X,St],[Z,Fe]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[N,[X,De],[Z,Fe]],[/(opwwe\d{3})/i],[N,[X,xt],[Z,Fe]],[/(moto 360)/i],[N,[X,Ve],[Z,Fe]],[/(smartwatch 3)/i],[N,[X,Ft],[Z,Fe]],[/(g watch r)/i],[N,[X,We],[Z,Fe]],[/droid.+; (wt63?0{2,3})\)/i],[N,[X,on],[Z,Fe]],[/droid.+; (glass) \d/i],[N,[X,ct],[Z,Fe]],[/(pico) (4|neo3(?: link|pro)?)/i],[X,N,[Z,Fe]],[/; (quest( \d| pro)?)/i],[N,[X,en],[Z,Fe]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[X,[Z,Be]],[/(aeobc)\b/i],[N,[X,je],[Z,Be]],[/(homepod).+mac os/i],[N,[X,De],[Z,Be]],[/windows iot/i],[[Z,Be]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[N,[Z,Ce]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[N,[Z,Ie]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[Z,Ie]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[Z,Ce]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[N,[X,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[be,[H,ze+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[H,be],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[be,[H,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[H,be],[/ladybird\//i],[[H,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[be,H]],os:[[/microsoft (windows) (vista|xp)/i],[H,be],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[H,[be,pn,it]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[be,pn,it],[H,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[be,/_/g,"."],[H,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[H,an],[be,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[be,H],[/(ubuntu) ([\w\.]+) like android/i],[[H,/(.+)/,"$1 Touch"],be],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[H,be],[/\(bb(10);/i],[be,[H,Je]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[be,[H,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[be,[H,nt+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[be,[H,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[be,[H,"watchOS"]],[/crkey\/([\d\.]+)/i],[be,[H,Ke+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[H,Wt],be],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[H,be],[/(sunos) ?([\w\.\d]*)/i],[[H,"Solaris"],be],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[H,be]]},Tt=function(Ct,Bt){if(typeof Ct===$&&(Bt=Ct,Ct=t),!(this instanceof Tt))return new Tt(Ct,Bt).getResult();var Ot=typeof e!==g&&e.navigator?e.navigator:t,ot=Ct||(Ot&&Ot.userAgent?Ot.userAgent:p),lt=Ot&&Ot.userAgentData?Ot.userAgentData:t,st=Bt?zt(gt,Bt):gt,ft=Ot&&Ot.userAgent==ot;return this.getBrowser=function(){var ut={};return ut[H]=t,ut[be]=t,nn.call(ut,ot,st.browser),ut[A]=yn(ut[be]),ft&&Ot&&Ot.brave&&typeof Ot.brave.isBrave==y&&(ut[H]="Brave"),ut},this.getCPU=function(){var ut={};return ut[we]=t,nn.call(ut,ot,st.cpu),ut},this.getDevice=function(){var ut={};return ut[X]=t,ut[N]=t,ut[Z]=t,nn.call(ut,ot,st.device),ft&&!ut[Z]&<&<.mobile&&(ut[Z]=Ce),ft&&ut[N]=="Macintosh"&&Ot&&typeof Ot.standalone!==g&&Ot.maxTouchPoints&&Ot.maxTouchPoints>2&&(ut[N]="iPad",ut[Z]=Ie),ut},this.getEngine=function(){var ut={};return ut[H]=t,ut[be]=t,nn.call(ut,ot,st.engine),ut},this.getOS=function(){var ut={};return ut[H]=t,ut[be]=t,nn.call(ut,ot,st.os),ft&&!ut[H]&<&<.platform&<.platform!="Unknown"&&(ut[H]=lt.platform.replace(/chrome os/i,Wt).replace(/macos/i,an)),ut},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ot},this.setUA=function(ut){return ot=typeof ut===E&&ut.length>Ge?vn(ut,Ge):ut,this},this.setUA(ot),this};Tt.VERSION=c,Tt.BROWSER=Jt([H,be,A]),Tt.CPU=Jt([we]),Tt.DEVICE=Jt([N,X,Z,$e,Ce,Ne,Ie,Fe,Be]),Tt.ENGINE=Tt.OS=Jt([H,be]),n.exports&&(o=n.exports=Tt),o.UAParser=Tt;var Et=typeof e!==g&&(e.jQuery||e.Zepto);if(Et&&!Et.ua){var Nt=new Tt;Et.ua=Nt.getResult(),Et.ua.get=function(){return Nt.getUA()},Et.ua.set=function(Ct){Nt.setUA(Ct);var Bt=Nt.getResult();for(var Ot in Bt)Et.ua[Ot]=Bt[Ot]}}})(typeof window=="object"?window:uaParser)}
129(uaParser$1,uaParser$1.exports)),uaParser$1.exports}var uaParserExports=requireUaParser();const UAParser=getDefaultExportFromCjs(uaParserExports),parser=new UAParser;function isMobile(){return parser.getResult().device.type==="mobile"}function useSelectCommon(n){const{options:o,isMulti:e,acceptNewOptions:t,placeholderInput:c}=n,p=reactExports.useMemo(()=>o.map((H,Z)=>({label:H,value:H,id:`${H}_${Z}`})),[o]),{placeholder:h,shouldDisable:y}=reactExports.useMemo(()=>getSelectPlaceholder(c,o,t,e),[t,e,o,c]),g=o.length>10,$=isMobile()&&!g&&!t?"readonly":null,E=reactExports.useMemo(()=>H=>isNullOrUndefined(H)?[]:[{label:H,value:H}],[]),A=reactExports.useMemo(()=>H=>H.map(Z=>({label:Z,value:Z})),[]),N=reactExports.useMemo(()=>H=>(Z,X)=>{const be=Array.isArray(H)?Z.filter(we=>!H.includes(we.value)):Z;return fuzzyFilterSelectOptions(be,X)},[]);return{selectOptions:p,placeholder:h,disabled:y,inputReadOnly:$,valueToUiSingle:E,valuesToUiMulti:A,createFilterOptions:N}}const Selectbox=({disabled:n,value:o,onChange:e,options:t,label:c,labelVisibility:p,help:h,placeholder:y,clearable:g,acceptNewOptions:$})=>{const E=useEmotionTheme(),A=reactExports.useContext(IsSidebarContext),[N,H]=reactExports.useState(o),Z=reactExports.useRef(N);reactExports.useEffect(()=>{H(o)},[o]);const X=reactExports.useCallback(Ue=>{if(Ue.type==="remove"){Z.current=Ue.option?.value,H(null);return}if(Z.current=null,Ue.type==="clear"){H(null),e(null);return}const[Je]=Ue.value;H(Je.value),e(Je.value)},[e]),be=reactExports.useCallback(()=>{Z.current!==null&&H(Z.current)},[]),we=t,{placeholder:$e,disabled:Ce,selectOptions:Ie,inputReadOnly:Ne,valueToUiSingle:Fe,createFilterOptions:Be}=useSelectCommon({options:we,isMulti:!1,acceptNewOptions:$,placeholderInput:y}),Ge=n||Ce,je=reactExports.useMemo(()=>Be(),[Be]),De=Fe(N);return jsxs("div",{className:"stSelectbox","data-testid":"stSelectbox",children:[jsx$1(WidgetLabel,{label:c,labelVisibility:p,disabled:Ge,children:h&&jsx$1(StyledWidgetLabelHelp,{children:jsx$1(TooltipIcon,{content:h,placement:Placement.TOP_RIGHT})})}),jsx$1(Select,{creatable:$,disabled:Ge,labelKey:"label","aria-label":c||"",onChange:X,onBlur:be,options:Ie,filterOptions:je,clearable:g||!1,escapeClearsValue:g||!1,value:De,valueKey:"value",placeholder:$e,ignoreCase:!1,overrides:{Root:{style:()=>({lineHeight:E.lineHeights.inputWidget,fontWeight:E.fontWeights.normal})},Dropdown:{component:VirtualDropdown},ClearIcon:{props:{overrides:{Svg:{style:{color:E.colors.grayTextColor,padding:E.spacing.threeXS,height:E.sizes.clearIconSize,width:E.sizes.clearIconSize,":hover":{fill:E.colors.bodyText}}}}}},ControlContainer:{style:({$isFocused:Ue})=>{const Je=getBorderColor(E.colors,Ue);return{height:E.sizes.minElementHeight,borderLeftWidth:E.sizes.borderWidth,borderRightWidth:E.sizes.borderWidth,borderTopWidth:E.sizes.borderWidth,borderBottomWidth:E.sizes.borderWidth,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je}}},IconsContainer:{style:()=>({paddingRight:E.spacing.sm})},Placeholder:{style:()=>({color:Ge?E.colors.fadedText40:E.colors.fadedText60})},ValueContainer:{style:()=>({paddingRight:E.spacing.sm,paddingLeft:E.spacing.md,paddingBottom:E.spacing.sm,paddingTop:E.spacing.sm})},Input:{props:{readOnly:Ne},style:()=>({lineHeight:E.lineHeights.inputWidget})},Popover:{props:{ignoreBoundary:A,overrides:{Body:{style:()=>({marginTop:E.spacing.px})}}}},SingleValue:{style:()=>({marginLeft:E.spacing.none})},SelectArrow:{component:ChevronDown$1,props:{style:{...Ge&&{cursor:"not-allowed"}},overrides:{Svg:{style:()=>({width:E.iconSizes.xl,height:E.iconSizes.xl})}}}}}})]})},UISelectbox=reactExports.memo(Selectbox);class CircularBuffer{constructor(o){this._buffer=new Array(o),this._size=o,this._index=0,this._wrappedCount=0}push(o){this._buffer[this._index]=o,this._index=(this._index+1)%this._size,this._index===0&&(this._wrappedCount=this._wrappedCount+1)}get buffer(){return this._buffer}get totalWrittenEntries(){return this._wrappedCount*this._size+this._index}}const handleRender=(n,o,e,t,c,p)=>{window.__streamlit_profiles__=window.__streamlit_profiles__||{},window.__streamlit_profiles__[n]=window.__streamlit_profiles__[n]||new CircularBuffer(1e3),window.__streamlit_profiles__[n].push({phase:o,actualDuration:e,baseDuration:t,startTime:c,commitTime:p})},Profiler=({id:n,children:o})=>jsx$1(reactExports.Profiler,{id:n,onRender:handleRender,children:o}),WindowDimensionsContext=reactExports.createContext(null);WindowDimensionsContext.displayName="WindowDimensionsContext";const useWindowDimensions=()=>{const n=useEmotionTheme(),[o,e]=reactExports.useState({fullWidth:0,fullHeight:0,innerWidth:0,innerHeight:0}),t=reactExports.useCallback(()=>{const p=convertRemToPx(n.spacing.md),h=convertRemToPx(n.sizes.fullScreenHeaderHeight),{innerWidth:y,innerHeight:g}=window;return{fullWidth:y-p*2,fullHeight:g-(p+h),innerWidth:y,innerHeight:g}},[n.sizes.fullScreenHeaderHeight,n.spacing.md]),c=reactExports.useCallback(()=>{e(t())},[t]);return reactExports.useEffect(()=>(window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)}),[c]),reactExports.useLayoutEffect(()=>{c()},[c]),o},WindowDimensionsProvider=({children:n})=>{const o=useWindowDimensions();if(reactExports.useContext(WindowDimensionsContext))throw new Error("WindowDimensionsProvider should only be used once per app. If you need to read window dimensions, utilize `useWindowDimensionsContext()` instead.");return jsx$1(WindowDimensionsContext.Provider,{value:o,children:n})},useWindowDimensionsContext=()=>useRequiredContext(WindowDimensionsContext),LOG$e=loglevelExports.getLogger("ComponentRegistry");class ComponentRegistry{constructor(o){this.msgListeners=new Map,this.registerListener=(e,t)=>{this.msgListeners.has(e)&&LOG$e.warn("MessageEventSource registered multiple times!",e),this.msgListeners.set(e,t)},this.deregisterListener=e=>{this.msgListeners.delete(e)||LOG$e.warn("Could not deregister unregistered MessageEventSource!")},this.checkSourceUrlResponse=(e,t)=>this.endpoints.checkSourceUrlResponse(e,"Custom Component",t),this.sendTimeoutError=(e,t)=>
129{this.endpoints.sendClientErrorToHost("Custom Component","Request Timeout","Your app is having trouble loading the component.",e,t)},this.getComponentURL=(e,t)=>this.endpoints.buildComponentURL(e,t),this.getBidiComponentURL=(e,t)=>this.endpoints.buildBidiComponentURL(e,t),this.onMessageEvent=e=>{if(isNullOrUndefined(e.data)||!Object.hasOwn(e.data,"isStreamlitMessage"))return;if(isNullOrUndefined(e.source)){LOG$e.warn("Received component message with no eventSource!",e.data);return}const t=this.msgListeners.get(e.source);if(isNullOrUndefined(t)||typeof t!="function"){LOG$e.warn("Received component message for unregistered ComponentInstance!",e.data);return}const{type:c}=e.data;if(isNullOrUndefined(c)){LOG$e.warn("Received Streamlit message with no type!",e.data);return}t(c,e.data)},this.endpoints=o,window.addEventListener("message",this.onMessageEvent)}}const byteToHex=[];for(let n=0;n<256;++n)byteToHex.push((n+256).toString(16).slice(1));function unsafeStringify(n,o=0){return(byteToHex[n[o+0]]+byteToHex[n[o+1]]+byteToHex[n[o+2]]+byteToHex[n[o+3]]+"-"+byteToHex[n[o+4]]+byteToHex[n[o+5]]+"-"+byteToHex[n[o+6]]+byteToHex[n[o+7]]+"-"+byteToHex[n[o+8]]+byteToHex[n[o+9]]+"-"+byteToHex[n[o+10]]+byteToHex[n[o+11]]+byteToHex[n[o+12]]+byteToHex[n[o+13]]+byteToHex[n[o+14]]+byteToHex[n[o+15]]).toLowerCase()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function _v4(n,o,e){n=n||{};const t=n.random??n.rng?.()??rng();if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=t[6]&15|64,t[8]=t[8]&63|128,unsafeStringify(t)}function v4(n,o,e){return native.randomUUID&&!n?native.randomUUID():_v4(n)}const LOG$d=loglevelExports.getLogger("FileUploadClient");class FileUploadClient{constructor(o){this.formsWithPendingRequests=new Map,this.pendingFileURLsRequests=new Map,this.sessionInfo=o.sessionInfo,this.endpoints=o.endpoints,this.pendingFormUploadsChanged=o.formsWithPendingRequestsChanged,this.requestFileURLs=o.requestFileURLs}async uploadFile(o,e,t,c,p){return this.offsetPendingRequestCount(o.formId,1),this.endpoints.uploadFileUploaderFile(e,t,this.sessionInfo.current.sessionId,c,p).finally(()=>this.offsetPendingRequestCount(o.formId,-1))}deleteFile(o){return this.endpoints.deleteFileAtURL?this.endpoints.deleteFileAtURL(o,this.sessionInfo.current.sessionId):Promise.resolve()}fetchFileURLs(o){if(!this.requestFileURLs)return Promise.resolve([]);const e=Promise.withResolvers(),t=v4();return this.pendingFileURLsRequests.set(t,e),this.requestFileURLs(t,o),e.promise}onFileURLsResponse(o){const e=o.responseId,t=this.pendingFileURLsRequests.get(e);t?(o.errorMsg?t.reject(o.errorMsg):t.resolve(o.fileUrls||[]),this.pendingFileURLsRequests.delete(e)):LOG$d.warn("fileURLsResponse received for nonexistent request, ignoring.")}getFormIdSet(){return new Set(this.formsWithPendingRequests.keys())}offsetPendingRequestCount(o,e){if(e===0||!isValidFormId(o))return;const t=this.formsWithPendingRequests.get(o)??0,c=t+e;if(c<0)throw new Error(`Can't offset pendingRequestCount below 0 (formId=${o}, curCount=${t}, offset=${e})`);const p=this.getFormIdSet();c===0?this.formsWithPendingRequests.delete(o):this.formsWithPendingRequests.set(o,c);const h=this.getFormIdSet();isEqual$1(h,p)||this.pendingFormUploadsChanged(h)}}const arrayComparator=(n,o)=>n.length!==o.length?!1:n.every((e,t)=>Object.is(e,o[t])),useExecuteWhenChanged=(n,o,e=arrayComparator)=>{const[t,c]=reactExports.useState(o);e(t,o)||(c(o),n())},measureScrollbarGutterSize=()=>{const n=document.createElement("div");n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",n.style.visibility="hidden",n.style.overflow="scroll",n.style.width="50px",n.style.height="50px",document.body.appendChild(n);const o=document.createElement("div");
129o.style.width="100%",o.style.height="100%",n.appendChild(o);const e=n.offsetWidth-o.offsetWidth;return n.remove(),e},useScrollbarGutterSize=()=>{const n=window.devicePixelRatio;return reactExports.useMemo(()=>measureScrollbarGutterSize(),[n])},HOST_COMM_VERSION=1;class HostCommunicationManager{constructor(o){this.openHostCommunication=()=>{window.addEventListener("message",this.receiveHostMessage),this.sendMessageToHost({type:"GUEST_READY",streamlitExecutionStartedAt:this.props.streamlitExecutionStartedAt,guestReadyAt:Date.now()})},this.closeHostCommunication=()=>{window.removeEventListener("message",this.receiveHostMessage)},this.resetAuthToken=()=>{this.deferredAuthToken=Promise.withResolvers()},this.claimAuthToken=()=>this.deferredAuthToken.promise,this.setAllowedOrigins=({allowedOrigins:e,useExternalAuthToken:t})=>{t||this.deferredAuthToken.resolve(void 0),e?.length&&(this.allowedOrigins=e,this.openHostCommunication())},this.sendMessageToSameOriginHost=e=>{window.parent.postMessage({stCommVersion:HOST_COMM_VERSION,...e},window.location.origin)},this.sendMessageToHost=e=>{window.parent.postMessage({stCommVersion:HOST_COMM_VERSION,...e},"*")},this.receiveHostMessage=e=>{const t=e.data;if(!(t.stCommVersion!==HOST_COMM_VERSION||!this.allowedOrigins.find(c=>isValidOrigin(c,e.origin)))){if(t.type==="CLOSE_MODAL"&&this.props.closeModal(),t.type==="STOP_SCRIPT"&&this.props.stopScript(),t.type==="RERUN_SCRIPT"&&this.props.rerunScript(),t.type==="CLEAR_CACHE"&&this.props.clearCache(),t.type==="REQUEST_PAGE_CHANGE"&&this.props.pageChanged(t.pageScriptHash),t.type==="SEND_APP_HEARTBEAT"&&this.props.sendAppHeartbeat(),t.type==="SET_INPUTS_DISABLED"&&this.props.setInputsDisabled(t.disabled),t.type==="SET_AUTH_TOKEN"&&this.deferredAuthToken.resolve(t.authToken),t.type==="SET_FILE_UPLOAD_CLIENT_CONFIG"){const{prefix:c,headers:p}=t;this.props.fileUploadClientConfigChanged({prefix:c,headers:p})}t.type==="SET_IS_OWNER"&&this.props.isOwnerChanged(t.isOwner),t.type==="SET_MENU_ITEMS"&&this.props.hostMenuItemsChanged(t.items),t.type==="SET_METADATA"&&this.props.deployedAppMetadataChanged(t.metadata),t.type==="SET_PAGE_LINK_BASE_URL"&&this.props.pageLinkBaseUrlChanged(t.pageLinkBaseUrl),t.type==="SET_SIDEBAR_CHEVRON_DOWNSHIFT"&&this.props.sidebarChevronDownshiftChanged(t.sidebarChevronDownshift),t.type==="SET_SIDEBAR_NAV_VISIBILITY"&&this.props.hostHideSidebarNavChanged(t.hidden),t.type==="SET_TOOLBAR_ITEMS"&&this.props.hostToolbarItemsChanged(t.items),t.type==="UPDATE_FROM_QUERY_PARAMS"&&(this.props.queryParamsChanged(t.queryParams),this.props.sendRerunBackMsg()),t.type==="UPDATE_HASH"&&(window.location.hash=t.hash),t.type==="SET_CUSTOM_THEME_CONFIG"&&this.props.themeChanged(t.themeName,t.themeInfo),t.type==="RESTART_WEBSOCKET_CONNECTION"&&this.props.restartWebsocketConnection(),t.type==="TERMINATE_WEBSOCKET_CONNECTION"&&this.props.terminateWebsocketConnection()}},this.props=o,this.allowedOrigins=[],this.deferredAuthToken=Promise.withResolvers()}}class SessionInfo{get current(){if(!this._current)throw new Error("Tried to use SessionInfo before it was initialized");return this._current}get last(){return this._last}setCurrent(o){this._last=notNullOrUndefined(this._current)?{...this._current}:void 0,this._current=notNullOrUndefined(o)?{...o}:void 0}disconnect(){this._current&&this.setCurrent({...this._current,isConnected:!1})}get isSet(){return notNullOrUndefined(this._current)}get isHello(){return notNullOrUndefined(this._current)&&this._current.isHello}static propsFromNewSessionMessage(o){const e=o.initialize,t=o.config,c=e.userInfo,p=e.environmentInfo;return{appId:hashString(c.installationIdV3+o.mainScriptPath),sessionId:e.sessionId,streamlitVersion:p.streamlitVersion,pythonVersion:p.pythonVersion,serverOS:p.serverOs,hasDisplay:p.hasDisplay,installationId:c.installationId,installationIdV3:c.installationIdV3,installationIdV4:c.installationIdV4,maxCachedMessageAge:t.maxCachedMessageAge,isHello:e.isHello,isConnected:!0}}}const nonce=document.currentScript?.nonce||"",cache=createCache({key:"st-emotion-cache",...nonce&&{nonce}});function RootStyleProvider(n){const{children:o,theme:e}=n;return jsx$1(BaseProvider,{theme:e.basewebTheme,zIndex:e.emotion.zIndices.popup,children:jsx$1(CacheProvider,{value:cache,children:jsxs(ThemeProvider$2,{theme:e.emotion,children:[jsx$1(Global,{styles:[globalStyles]}),o]})})})}const measure=(n,o,e)=>performance.measure(n,o,e),mark=n=>performance.mark(n);class Timer{constructor(){this.duration=0,this.startTime=0,this.running=!1}get isRunning(){return this.running}get remainingTime(){if(!this.running)return 0;const o=Date.now()-this.startTime;return Math.max(this.duration-o,0)}setTimeout(o,e){this.cancel(),this.startTime=Date.now(),this.duration=e,this.running=!0,this.timerHandle=window.setTimeout(()=>{this.running=!1,o()},e)}cancel(){this.timerHandle!==void 0&&(window.clearTimeout(this.timerHandle),this.timerHandle=void 0,this.running=!1)}}var src={exports:{}},indexLight={exports:{}},types={},util={exports:{}},codegen_1,hasRequiredCodegen;function requireCodegen(){if(hasRequiredCodegen)return codegen_1;
129hasRequiredCodegen=1,codegen_1=n;function n(o,e){typeof o=="string"&&(e=o,o=void 0);var t=[];function c(h){if(typeof h!="string"){var y=p();if(n.verbose&&console.log("codegen: "+y),y="return "+y,h){for(var g=Object.keys(h),$=new Array(g.length+1),E=new Array(g.length),A=0;A<g.length;)$[A]=g[A],E[A]=h[g[A++]];return $[A]=y,Function.apply(null,$).apply(null,E)}return Function(y)()}for(var N=new Array(arguments.length-1),H=0;H<N.length;)N[H]=arguments[++H];if(H=0,h=h.replace(/%([%dfijs])/g,function(X,be){var we=N[H++];switch(be){case"d":case"f":return String(Number(we));case"i":return String(Math.floor(we));case"j":return JSON.stringify(we);case"s":return String(we)}return"%"}),H!==N.length)throw Error("parameter count mismatch");return t.push(h),c}function p(h){return"function "+(h||e||"")+"("+(o&&o.join(",")||"")+`){ 130 `+t.join(` 131 `)+` 132}`}return c.toString=p,c}return n.verbose=!1,codegen_1}var fetch_1,hasRequiredFetch;function requireFetch(){if(hasRequiredFetch)return fetch_1;hasRequiredFetch=1,fetch_1=t;var n=requireAspromise(),o=requireInquire(),e=o("fs");function t(c,p,h){return typeof p=="function"?(h=p,p={}):p||(p={}),h?!p.xhr&&e&&e.readFile?e.readFile(c,function(g,$){return g&&typeof XMLHttpRequest<"u"?t.xhr(c,p,h):g?h(g):h(null,p.binary?$:$.toString("utf8"))}):t.xhr(c,p,h):n(t,this,c,p)}return t.xhr=function(p,h,y){var g=new XMLHttpRequest;g.onreadystatechange=function(){if(g.readyState===4){if(g.status!==0&&g.status!==200)return y(Error("status "+g.status));if(h.binary){var E=g.response;if(!E){E=[];for(var A=0;A<g.responseText.length;++A)E.push(g.responseText.charCodeAt(A)&255)}return y(null,typeof Uint8Array<"u"?new Uint8Array(E):E)}return y(null,g.responseText)}},h.binary&&("overrideMimeType"in g&&g.overrideMimeType("text/plain; charset=x-user-defined"),g.responseType="arraybuffer"),g.open("GET",p),g.send()},fetch_1}var path={},hasRequiredPath;function requirePath(){return hasRequiredPath||(hasRequiredPath=1,function(n){var o=n,e=o.isAbsolute=function(p){return/^(?:\/|\w+:)/.test(p)},t=o.normalize=function(p){p=p.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var h=p.split("/"),y=e(p),g="";y&&(g=h.shift()+"/");for(var $=0;$<h.length;)h[$]===".."?$>0&&h[$-1]!==".."?h.splice(--$,2):y?h.splice($,1):++$:h[$]==="."?h.splice($,1):++$;return g+h.join("/")};o.resolve=function(p,h,y){return y||(h=t(h)),e(h)?h:(y||(p=t(p)),(p=p.replace(/(?:\/|^)[^/]+$/,"")).length?t(p+"/"+h):h)}}(path)),path}var namespace,hasRequiredNamespace;function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1,namespace=g;var n=requireObject();((g.prototype=Object.create(n.prototype)).constructor=g).className="Namespace";var o=requireField(),e=requireUtil(),t=requireOneof(),c,p,h;g.fromJSON=function(A,N){return new g(A,N.options).addJSON(N.nested)};function y(E,A){if(E&&E.length){for(var N={},H=0;H<E.length;++H)N[E[H].name]=E[H].toJSON(A);return N}}g.arrayToJSON=y,g.isReservedId=function(A,N){if(A){for(var H=0;H<A.length;++H)if(typeof A[H]!="string"&&A[H][0]<=N&&A[H][1]>N)return!0}return!1},g.isReservedName=function(A,N){if(A){for(var H=0;H<A.length;++H)if(A[H]===N)return!0}return!1};function g(E,A){n.call(this,E,A),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function $(E){E._nestedArray=null,E._lookupCache={};for(var A=E;A=A.parent;)A._lookupCache={};return E}return Object.defineProperty(g.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=e.toArray(this.nested))}}),g.prototype.toJSON=function(A){return e.toObject(["options",this.options,"nested",y(this.nestedArray,A)])},g.prototype.addJSON=function(A){var N=this;if(A)for(var H=Object.keys(A),Z=0,X;Z<H.length;++Z)X=A[H[Z]],N.add((X.fields!==void 0?c.fromJSON:X.values!==void 0?h.fromJSON:X.methods!==void 0?p.fromJSON:X.id!==void 0?o.fromJSON:g.fromJSON)(H[Z],X));return this},g.prototype.get=function(A){return this.nested&&this.nested[A]||null},g.prototype.getEnum=function(A){if(this.nested&&this.nested[A]instanceof h)return this.nested[A].values;throw Error("no such enum: "+A)},g.prototype.add=function(A){if(!(A instanceof o&&A.extend!==void 0||A instanceof c||A instanceof t||A instanceof h||A instanceof p||A instanceof g))throw TypeError("object must be a valid nested object");
132if(!this.nested)this.nested={};else{var N=this.get(A.name);if(N)if(N instanceof g&&A instanceof g&&!(N instanceof c||N instanceof p)){for(var H=N.nestedArray,Z=0;Z<H.length;++Z)A.add(H[Z]);this.remove(N),this.nested||(this.nested={}),A.setOptions(N.options,!0)}else throw Error("duplicate name '"+A.name+"' in "+this)}this.nested[A.name]=A,this instanceof c||this instanceof p||this instanceof h||this instanceof o||A._edition||(A._edition=A._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var X=this;X=X.parent;)X._needsRecursiveFeatureResolution=!0,X._needsRecursiveResolve=!0;return A.onAdd(this),$(this)},g.prototype.remove=function(A){if(!(A instanceof n))throw TypeError("object must be a ReflectionObject");if(A.parent!==this)throw Error(A+" is not a member of "+this);return delete this.nested[A.name],Object.keys(this.nested).length||(this.nested=void 0),A.onRemove(this),$(this)},g.prototype.define=function(A,N){if(e.isString(A))A=A.split(".");else if(!Array.isArray(A))throw TypeError("illegal path");if(A&&A.length&&A[0]==="")throw Error("path must be relative");for(var H=this;A.length>0;){var Z=A.shift();if(H.nested&&H.nested[Z]){if(H=H.nested[Z],!(H instanceof g))throw Error("path conflicts with non-namespace objects")}else H.add(H=new g(Z))}return N&&H.addJSON(N),H},g.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var A=this.nestedArray,N=0;for(this.resolve();N<A.length;)A[N]instanceof g?A[N++].resolveAll():A[N++].resolve();return this._needsRecursiveResolve=!1,this},g.prototype._resolveFeaturesRecursive=function(A){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,A=this._edition||A,n.prototype._resolveFeaturesRecursive.call(this,A),this.nestedArray.forEach(N=>{N._resolveFeaturesRecursive(A)}),this):this},g.prototype.lookup=function(A,N,H){if(typeof N=="boolean"?(H=N,N=void 0):N&&!Array.isArray(N)&&(N=[N]),e.isString(A)&&A.length){if(A===".")return this.root;A=A.split(".")}else if(!A.length)return this;var Z=A.join(".");if(A[0]==="")return this.root.lookup(A.slice(1),N);var X=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+Z];if(X&&(!N||N.indexOf(X.constructor)>-1)||(X=this._lookupImpl(A,Z),X&&(!N||N.indexOf(X.constructor)>-1)))return X;if(H)return null;for(var be=this;be.parent;){if(X=be.parent._lookupImpl(A,Z),X&&(!N||N.indexOf(X.constructor)>-1))return X;be=be.parent}return null},g.prototype._lookupImpl=function(A,N){if(Object.prototype.hasOwnProperty.call(this._lookupCache,N))return this._lookupCache[N];var H=this.get(A[0]),Z=null;if(H)A.length===1?Z=H:H instanceof g&&(A=A.slice(1),Z=H._lookupImpl(A,A.join(".")));else for(var X=0;X<this.nestedArray.length;++X)this._nestedArray[X]instanceof g&&(H=this._nestedArray[X]._lookupImpl(A,N))&&(Z=H);return this._lookupCache[N]=Z,Z},g.prototype.lookupType=function(A){var N=this.lookup(A,[c]);if(!N)throw Error("no such type: "+A);return N},g.prototype.lookupEnum=function(A){var N=this.lookup(A,[h]);if(!N)throw Error("no such Enum '"+A+"' in "+this);return N},g.prototype.lookupTypeOrEnum=function(A){var N=this.lookup(A,[c,h]);if(!N)throw Error("no such Type or Enum '"+A+"' in "+this);return N},g.prototype.lookupService=function(A){var N=this.lookup(A,[p]);if(!N)throw Error("no such Service '"+A+"' in "+this);return N},g._configure=function(E,A,N){c=E,p=A,h=N},namespace}var mapfield,hasRequiredMapfield;function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=t;var n=requireField();((t.prototype=Object.create(n.prototype)).constructor=t).className="MapField";var o=requireTypes(),e=requireUtil();function t(c,p,h,y,g,$){if(n.call(this,c,p,y,void 0,void 0,g,$),!e.isString(h))throw TypeError("keyType must be a string");this.keyType=h,this.resolvedKeyType=null,this.map=!0}return t.fromJSON=function(p,h){return new t(p,h.id,h.keyType,h.type,h.options,h.comment)},t.prototype.toJSON=function(p){var h=p?!!p.keepComments:!1;return e.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",h?this.comment:void 0])},t.prototype.resolve=function(){if(this.resolved)return this;if(o.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},t.d=function(p,h,y){return typeof y=="function"?y=e.decorateType(y).name:y&&typeof y=="object"&&(y=e.decorateEnum(y).name),function($,E){e.decorateType($.constructor).add(new t(E,p,h,y))}},mapfield}var method,hasRequiredMethod;function requireMethod(){if(hasRequiredMethod)return method;hasRequiredMethod=1,method=e;var n=requireObject();
132((e.prototype=Object.create(n.prototype)).constructor=e).className="Method";var o=requireUtil();function e(t,c,p,h,y,g,$,E,A){if(o.isObject(y)?($=y,y=g=void 0):o.isObject(g)&&($=g,g=void 0),!(c===void 0||o.isString(c)))throw TypeError("type must be a string");if(!o.isString(p))throw TypeError("requestType must be a string");if(!o.isString(h))throw TypeError("responseType must be a string");n.call(this,t,$),this.type=c||"rpc",this.requestType=p,this.requestStream=y?!0:void 0,this.responseType=h,this.responseStream=g?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=E,this.parsedOptions=A}return e.fromJSON=function(c,p){return new e(c,p.type,p.requestType,p.responseType,p.requestStream,p.responseStream,p.options,p.comment,p.parsedOptions)},e.prototype.toJSON=function(c){var p=c?!!c.keepComments:!1;return o.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",p?this.comment:void 0,"parsedOptions",this.parsedOptions])},e.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))},method}var service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=c;var n=requireNamespace();((c.prototype=Object.create(n.prototype)).constructor=c).className="Service";var o=requireMethod(),e=requireUtil(),t=requireRpc();function c(h,y){n.call(this,h,y),this.methods={},this._methodsArray=null}c.fromJSON=function(y,g){var $=new c(y,g.options);if(g.methods)for(var E=Object.keys(g.methods),A=0;A<E.length;++A)$.add(o.fromJSON(E[A],g.methods[E[A]]));return g.nested&&$.addJSON(g.nested),g.edition&&($._edition=g.edition),$.comment=g.comment,$._defaultEdition="proto3",$},c.prototype.toJSON=function(y){var g=n.prototype.toJSON.call(this,y),$=y?!!y.keepComments:!1;return e.toObject(["edition",this._editionToJSON(),"options",g&&g.options||void 0,"methods",n.arrayToJSON(this.methodsArray,y)||{},"nested",g&&g.nested||void 0,"comment",$?this.comment:void 0])},Object.defineProperty(c.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=e.toArray(this.methods))}});function p(h){return h._methodsArray=null,h}return c.prototype.get=function(y){return this.methods[y]||n.prototype.get.call(this,y)},c.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolve.call(this);for(var y=this.methodsArray,g=0;g<y.length;++g)y[g].resolve();return this},c.prototype._resolveFeaturesRecursive=function(y){return this._needsRecursiveFeatureResolution?(y=this._edition||y,n.prototype._resolveFeaturesRecursive.call(this,y),this.methodsArray.forEach(g=>{g._resolveFeaturesRecursive(y)}),this):this},c.prototype.add=function(y){if(this.get(y.name))throw Error("duplicate name '"+y.name+"' in "+this);return y instanceof o?(this.methods[y.name]=y,y.parent=this,p(this)):n.prototype.add.call(this,y)},c.prototype.remove=function(y){if(y instanceof o){if(this.methods[y.name]!==y)throw Error(y+" is not a member of "+this);return delete this.methods[y.name],y.parent=null,p(this)}return n.prototype.remove.call(this,y)},c.prototype.create=function(y,g,$){for(var E=new t.Service(y,g,$),A=0,N;A<this.methodsArray.length;++A){var H=e.lcFirst((N=this._methodsArray[A]).resolve().name).replace(/[^$\w_]/g,"");E[H]=e.codegen(["r","c"],e.isReserved(H)?H+"_":H)("return this.rpcCall(m,q,s,r,c)")({m:N,q:N.resolvedRequestType.ctor,s:N.resolvedResponseType.ctor})}return E},service}var message,hasRequiredMessage;function requireMessage(){if(hasRequiredMessage)return message;hasRequiredMessage=1,message=o;var n=requireMinimal$1();function o(e){if(e)for(var t=Object.keys(e),c=0;c<t.length;++c)this[t[c]]=e[t[c]]}return o.create=function(t){return this.$type.create(t)},o.encode=function(t,c){return this.$type.encode(t,c)},o.encodeDelimited=function(t,c){return this.$type.encodeDelimited(t,c)},o.decode=function(t){return this.$type.decode(t)},o.decodeDelimited=function(t){return this.$type.decodeDelimited(t)},o.verify=function(t){return this.$type.verify(t)},o.fromObject=function(t){return this.$type.fromObject(t)},o.toObject=function(t,c){return this.$type.toObject(t,c)},o.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)},message}var decoder_1,hasRequiredDecoder;
132function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=c;var n=require_enum(),o=requireTypes(),e=requireUtil();function t(p){return"missing required '"+p.name+"'"}function c(p){for(var h=e.codegen(["r","l","e"],p.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(p.fieldsArray.filter(function(N){return N.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),y=0;y<p.fieldsArray.length;++y){var g=p._fieldsArray[y].resolve(),$=g.resolvedType instanceof n?"int32":g.type,E="m"+e.safeProp(g.name);h("case %i: {",g.id),g.map?(h("if(%s===util.emptyObject)",E)("%s={}",E)("var c2 = r.uint32()+r.pos"),o.defaults[g.keyType]!==void 0?h("k=%j",o.defaults[g.keyType]):h("k=null"),o.defaults[$]!==void 0?h("value=%j",o.defaults[$]):h("value=null"),h("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",g.keyType)("case 2:"),o.basic[$]===void 0?h("value=types[%i].decode(r,r.uint32())",y):h("value=r.%s()",$),h("break")("default:")("r.skipType(tag2&7)")("break")("}")("}
132"),o.long[g.keyType]!==void 0?h('%s[typeof k==="object"?util.longToHash(k):k]=value',E):h("%s[k]=value",E)):g.repeated?(h("if(!(%s&&%s.length))",E,E)("%s=[]",E),o.packed[$]!==void 0&&h("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",E,$)("}else"),o.basic[$]===void 0?h(g.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",E,y):h("%s.push(r.%s())",E,$)):o.basic[$]===void 0?h(g.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",E,y):h("%s=r.%s()",E,$),h("break")("}")}for(h("default:")("r.skipType(t&7)")("break")("}")("}"),y=0;y<p._fieldsArray.length;++y){var A=p._fieldsArray[y];A.required&&h("if(!m.hasOwnProperty(%j))",A.name)("throw util.ProtocolError(%j,{instance:m})",t(A))}return h("return m")}return decoder_1}var verifier_1,hasRequiredVerifier;function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1,verifier_1=p;var n=require_enum(),o=requireUtil();function e(h,y){return h.name+": "+y+(h.repeated&&y!=="array"?"[]":h.map&&y!=="object"?"{k:"+h.keyType+"}":"")+" expected"}function t(h,y,g,$){if(y.resolvedType)if(y.resolvedType instanceof n){h("switch(%s){",$)("default:")("return%j",e(y,"enum value"));for(var E=Object.keys(y.resolvedType.values),A=0;A<E.length;++A)h("case %i:",y.resolvedType.values[E[A]]);h("break")("}")}else h("{")("var e=types[%i].verify(%s);",g,$)("if(e)")("return%j+e",y.name+".")("}");else switch(y.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":h("if(!util.isInteger(%s))",$)("return%j",e(y,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":h("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",$,$,$,$)("return%j",e(y,"integer|Long"));break;case"float":case"double":h('if(typeof %s!=="number")',$)("return%j",e(y,"number"));break;case"bool":h('if(typeof %s!=="boolean")',$)("return%j",e(y,"boolean"));break;case"string":h("if(!util.isString(%s))",$)("return%j",e(y,"string"));break;case"bytes":h('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',$,$,$)("return%j",e(y,"buffer"));break}return h}function c(h,y,g){switch(y.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":h("if(!util.key32Re.test(%s))",g)("return%j",e(y,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":h("if(!util.key64Re.test(%s))",g)("return%j",e(y,"integer|Long key"));break;case"bool":h("if(!util.key2Re.test(%s))",g)("return%j",e(y,"boolean key"));break}return h}function p(h){var y=o.codegen(["m"],h.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),g=h.oneofsArray,$={};g.length&&y("var p={}");for(var E=0;E<h.fieldsArray.length;++E){var A=h._fieldsArray[E].resolve(),N="m"+o.safeProp(A.name);if(A.optional&&y("if(%s!=null&&m.hasOwnProperty(%j)){",N,A.name),A.map)y("if(!util.isObject(%s))",N)("return%j",e(A,"object"))("var k=Object.keys(%s)",N)("for(var i=0;i<k.length;++i){"),c(y,A,"k[i]"),t(y,A,E,N+"[k[i]]")("}");else if(A.repeated)y("if(!Array.isArray(%s))",N)("return%j",e(A,"array"))("for(var i=0;i<%s.length;++i){",N),t(y,A,E,N+"[i]")("}");else{if(A.partOf){var H=o.safeProp(A.partOf.name);$[A.partOf.name]===1&&y("if(p%s===1)",H)("return%j",A.partOf.name+": multiple values"),$[A.partOf.name]=1,y("p%s=1",H)}t(y,A,E,N)}A.optional&&y("}")}return y("return null")}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,function(n){var o=n,e=require_enum(),t=requireUtil();function c(h,y,g,$){var E=!1;if(y.resolvedType)if(y.resolvedType instanceof e){h("switch(d%s){",$);for(var A=y.resolvedType.values,N=Object.keys(A),H=0;H<N.length;++H)A[N[H]]===y.typeDefault&&!E&&(h("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}
132',$,$,$),y.repeated||h("break"),E=!0),h("case%j:",N[H])("case %i:",A[N[H]])("m%s=%j",$,A[N[H]])("break");h("}")}else h('if(typeof d%s!=="object")',$)("throw TypeError(%j)",y.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",$,g,$);else{var Z=!1;switch(y.type){case"double":case"float":h("m%s=Number(d%s)",$,$);break;case"uint32":case"fixed32":h("m%s=d%s>>>0",$,$);break;case"int32":case"sint32":case"sfixed32":h("m%s=d%s|0",$,$);break;case"uint64":Z=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":h("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",$,$,Z)('else if(typeof d%s==="string")',$)("m%s=parseInt(d%s,10)",$,$)('else if(typeof d%s==="number")',$)("m%s=d%s",$,$)('else if(typeof d%s==="object")',$)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",$,$,$,Z?"true":"");break;case"bytes":h('if(typeof d%s==="string")',$)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",$,$,$)("else if(d%s.length >= 0)",$)("m%s=d%s",$,$);break;case"string":h("m%s=String(d%s)",$,$);break;case"bool":h("m%s=Boolean(d%s)",$,$);break}}return h}o.fromObject=function(y){var g=y.fieldsArray,$=t.codegen(["d"],y.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!g.length)return $("return new this.ctor");$("var m=new this.ctor");for(var E=0;E<g.length;++E){var A=g[E].resolve(),N=t.safeProp(A.name);A.map?($("if(d%s){",N)('if(typeof d%s!=="object")',N)("throw TypeError(%j)",A.fullName+": object expected")("m%s={}",N)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",N),c($,A,E,N+"[ks[i]]")("}")("}")):A.repeated?($("if(d%s){",N)("if(!Array.isArray(d%s))",N)("throw TypeError(%j)",A.fullName+": array expected")("m%s=[]",N)("for(var i=0;i<d%s.length;++i){",N),c($,A,E,N+"[i]")("}")("}")):(A.resolvedType instanceof e||$("if(d%s!=null){",N),c($,A,E,N),A.resolvedType instanceof e||$("}"))}return $("return m")};function p(h,y,g,$){if(y.resolvedType)y.resolvedType instanceof e?h("d%s=o.enums===String?(types[%i].values[m
132%s]===undefined?m%s:types[%i].values[m%s]):m%s",$,g,$,$,g,$,$):h("d%s=types[%i].toObject(m%s,o)",$,g,$);else{var E=!1;switch(y.type){case"double":case"float":h("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",$,$,$,$);break;case"uint64":E=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":h('if(typeof m%s==="number")',$)("d%s=o.longs===String?String(m%s):m%s",$,$,$)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",$,$,$,$,E?"true":"",$);break;case"bytes":h("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",$,$,$,$,$);break;default:h("d%s=m%s",$,$);break}}return h}o.toObject=function(y){var g=y.fieldsArray.slice().sort(t.compareFieldsById);if(!g.length)return t.codegen()("return {}");for(var $=t.codegen(["m","o"],y.name+"$toObject")("if(!o)")("o={}")("var d={}"),E=[],A=[],N=[],H=0;H<g.length;++H)g[H].partOf||(g[H].resolve().repeated?E:g[H].map?A:N).push(g[H]);if(E.length){for($("if(o.arrays||o.defaults){"),H=0;H<E.length;++H)$("d%s=[]",t.safeProp(E[H].name));$("}")}if(A.length){for($("if(o.objects||o.defaults){"),H=0;H<A.length;++H)$("d%s={}",t.safeProp(A[H].name));$("}")}if(N.length){for($("if(o.defaults){"),H=0;H<N.length;++H){var Z=N[H],X=t.safeProp(Z.name);if(Z.resolvedType instanceof e)$("d%s=o.enums===String?%j:%j",X,Z.resolvedType.valuesById[Z.typeDefault],Z.typeDefault);else if(Z.long)$("if(util.Long){")("var n=new util.Long(%i,%i,%j)",Z.typeDefault.low,Z.typeDefault.high,Z.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",X)("}else")("d%s=o.longs===String?%j:%i",X,Z.typeDefault.toString(),Z.typeDefault.toNumber());else if(Z.bytes){var be="["+Array.prototype.slice.call(Z.typeDefault).join(",")+"]";$("if(o.bytes===String)d%s=%j",X,String.fromCharCode.apply(String,Z.typeDefault))("else{")("d%s=%s",X,be)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",X,X)("}")}else $("d%s=%j",X,Z.typeDefault)}$("}")}var we=!1;for(H=0;H<g.length;++H){var Z=g[H],$e=y._fieldsArray.indexOf(Z),X=t.safeProp(Z.name);Z.map?(we||(we=!0,$("var ks2")),$("if(m%s&&(ks2=Object.keys(m%s)).length){",X,X)("d%s={}",X)("for(var j=0;j<ks2.length;++j){"),p($,Z,$e,X+"[ks2[j]]")("}")):Z.repeated?($("if(m%s&&m%s.length){",X,X)("d%s=[]",X)("for(var j=0;j<m%s.length;++j){",X),p($,Z,$e,X+"[j]")("}")):($("if(m%s!=null&&m.hasOwnProperty(%j)){",X,Z.name),p($,Z,$e,X),Z.partOf&&$("if(o.oneofs)")("d%s=%j",t.safeProp(Z.partOf.name),Z.name)),$("}")}return $("return d")}}(converter)),converter}var wrappers={},hasRequiredWrappers;function requireWrappers(){return hasRequiredWrappers||(hasRequiredWrappers=1,function(n){var o=n,e=requireMessage();o[".google.protobuf.Any"]={fromObject:function(t){if(t&&t["@type"]){var c=t["@type"].substring(t["@type"].lastIndexOf("/")+1),p=this.lookup(c);if(p){var h=t["@type"].charAt(0)==="."?t["@type"].slice(1):t["@type"];return h.indexOf("/")===-1&&(h="/"+h),this.create({type_url:h,value:p.encode(p.fromObject(t)).finish()})}}return this.fromObject(t)},toObject:function(t,c){var p="type.googleapis.com/",h="",y="";if(c&&c.json&&t.type_url&&t.value){y=t.type_url.substring(t.type_url.lastIndexOf("/")+1),h=t.type_url.substring(0,t.type_url.lastIndexOf("/")+1);var g=this.lookup(y);g&&(t=g.decode(t.value))}if(!(t instanceof this.ctor)&&t instanceof e){var $=t.$type.toObject(t,c),E=t.$type.fullName[0]==="."?t.$type.fullName.slice(1):t.$type.fullName;return h===""&&(h=p),y=h+E,$["@type"]=y,$}return this.toObject(t,c)}}}(wrappers)),wrappers}var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=X;var n=requireNamespace();((X.prototype=Object.create(n.prototype)).constructor=X).className="Type";var o=require_enum(),e=requireOneof(),t=requireField(),c=requireMapfield(),p=requireService(),h=requireMessage(),y=requireReader(),g=requireWriter(),$=requireUtil(),E=requireEncoder(),A=requireDecoder(),N=requireVerifier(),H=requireConverter(),Z=requireWrappers();function X(we,$e){n.call(this,we,$e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(X.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var we=Object.keys(this.fields),$e=0;$e<we.length;++$e){var Ce=this.fields[we[$e]],Ie=Ce.id;if(this._fieldsById[Ie])throw Error("duplicate id "+Ie+" in "+this);this._fieldsById[Ie]=Ce}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=$.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=$.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=X.generateConstructor(this)())},set:function(we){var $e=we.prototype;$e instanceof h||((we.prototype=new h).constructor=we,$.merge(we.prototype,$e)),we.$type=we.prototype.$type=this,$.merge(we,h,!0),this._ctor=we;for(var Ce=0;Ce<this.fieldsArray.length;++Ce)this._fieldsArray[Ce].resolve();var Ie={};for(Ce=0;Ce<this.oneofsArray.length;++Ce)Ie[this._oneofsArray[Ce].resolve().name]={get:$.oneOfGetter(this._oneofsArray[Ce].oneof),set:$.oneOfSetter(this._oneofsArray[Ce].oneof)};Ce&&Object.defineProperties(we.prototype,Ie)}}}),X.generateConstructor=function($e){for(var Ce=$.codegen(["p"],$e.name),Ie=0,Ne;Ie<$e.fieldsArray.length;++Ie)(Ne=$e._fieldsArray[Ie]).map?Ce("this%s={}",$.safeProp(Ne.name)):Ne.repeated&&Ce("this%s=[]",$.safeProp(Ne.name));return Ce("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")};function be(we){return we._fieldsById=we._fieldsArray=we._oneofsArray=null,delete we.encode,delete we.decode,delete we.verify,we}return X.fromJSON=function($e,Ce){var Ie=new X($e,Ce.options);Ie.extensions=Ce.extensions,Ie.reserved=Ce.reserved;for(var Ne=Object.keys(Ce.fields),Fe=0;Fe<Ne.length;++Fe)Ie.add((typeof Ce.fields[Ne[Fe]].keyType<"u"?c.fromJSON:t.fromJSON)(Ne[Fe],Ce.fields[Ne[Fe]]));if(Ce.oneofs)for(Ne=Object.keys(Ce.oneofs),Fe=0;Fe<Ne.length;++Fe)Ie.add(e.fromJSON(Ne[Fe],Ce.oneofs[Ne[Fe]]));if(Ce.nested)for(Ne=Object.keys(Ce.nested),Fe=0;Fe<Ne.length;++Fe){var Be=Ce.nested[Ne[Fe]];Ie.add((Be.id!==void 0?t.fromJSON:Be.fields!==void 0?X.fromJSON:Be.values!==void 0?o.fromJSON:Be.methods!==void 0?p.fromJSON:n.fromJSON)(Ne[Fe],Be))}return Ce.extensions&&Ce.extensions.length&&(Ie.extensions=Ce.extensions),Ce.reserved&&Ce.reserved.length&&(Ie.reserved=Ce.reserved),Ce.group&&(Ie.group=!0),Ce.comment&&(Ie.comment=Ce.comment),Ce.edition&&(Ie._edition=Ce.edition),Ie._defaultEdition="proto3",Ie},X.prototype.toJSON=function($e){var Ce=n.prototype.toJSON.call(this,$e),Ie=$e?!!$e.keepComments:!1;return $.toObject(["edition",this._editionToJSON(),"options",Ce&&Ce.options||void 0,"oneofs",n.arrayToJSON(this.oneofsArray,$e),"fields",n.arrayToJSON(this.fieldsArray.filter(function(Ne){return!Ne.declaringField}),$e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",Ce&&Ce.nested||void 0,"comment",Ie?this.comment:void 0])},X.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolveAll.call(this);var $e=this.oneofsArray;for(Ie=0;Ie<$e.length;)$e[Ie++].resolve();for(var Ce=this.fieldsArray,Ie=0;Ie<Ce.length;)Ce[Ie++].resolve();return this},X.prototype._resolveFeaturesRecursive=function($e){return this._needsRecursiveFeatureResolution?($e=this._edition||$e,n.prototype._resolveFeaturesRecursive.call(this,$e),this.oneofsArray.forEach(Ce=>{Ce._resolveFeatures($e)}),this.fieldsArray.forEach(Ce=>{Ce._resolveFeatures($e)}),this):this},X.prototype.get=function($e){return this.fields[$e]||this.oneofs&&this.oneofs[$e]||this.nested&&this.nested[$e]||null},X.prototype.add=function($e){if(this.get($e.name))throw Error("duplicate name '"+$e.name+"' in "+this);if($e instanceof t&&$e.extend===void 0){if(this._fieldsById?this._fieldsById[$e.id]:this.fieldsById[$e.id])throw Error("duplicate id "+$e.id+" in "+this);if(this.isReservedId($e.id))throw Error("id "+$e.id+" is reserved in "+this);if(this.isReservedName($e.name))throw Error("name '"+$e.name+"' is reserved in "+this);return $e.parent&&$e.parent.remove($e),this.fields[$e.name]=$e,$e.message=this,$e.onAdd(this),be(this)}return $e instanceof e?(this.oneofs||(this.oneofs={}),this.oneofs[$e.name]=$e,$e.onAdd(this),be(this)):n.prototype.add.call(this,$e)},X.prototype.remove=function($e){if($e instanceof t&&$e.extend===void 0){if(!this.fields||this.fields[$e.name]!==$e)throw Error($e+" is not a member of "+this);return delete this.fields[$e.name],$e.parent=null,$e.onRemove(this),be(this)}if($e instanceof e){if(!this.oneofs||this.oneofs[$e.name]!==$e)throw Error($e+" is not a member of "+this);return delete this.oneofs[$e.name],$e.parent=null,$e.onRemove(this),be(this)}return n.prototype.remove.call(this,$e)},X.prototype.isReservedId=function($e){return n.isReservedId(this.reserved,$e)}
132,X.prototype.isReservedName=function($e){return n.isReservedName(this.reserved,$e)},X.prototype.create=function($e){return new this.ctor($e)},X.prototype.setup=function(){for(var $e=this.fullName,Ce=[],Ie=0;Ie<this.fieldsArray.length;++Ie)Ce.push(this._fieldsArray[Ie].resolve().resolvedType);this.encode=E(this)({Writer:g,types:Ce,util:$}),this.decode=A(this)({Reader:y,types:Ce,util:$}),this.verify=N(this)({types:Ce,util:$}),this.fromObject=H.fromObject(this)({types:Ce,util:$}),this.toObject=H.toObject(this)({types:Ce,util:$});var Ne=Z[$e];if(Ne){var Fe=Object.create(this);Fe.fromObject=this.fromObject,this.fromObject=Ne.fromObject.bind(Fe),Fe.toObject=this.toObject,this.toObject=Ne.toObject.bind(Fe)}return this},X.prototype.encode=function($e,Ce){return this.setup().encode($e,Ce)},X.prototype.encodeDelimited=function($e,Ce){return this.encode($e,Ce&&Ce.len?Ce.fork():Ce).ldelim()},X.prototype.decode=function($e,Ce){return this.setup().decode($e,Ce)},X.prototype.decodeDelimited=function($e){return $e instanceof y||($e=y.create($e)),this.decode($e,$e.uint32())},X.prototype.verify=function($e){return this.setup().verify($e)},X.prototype.fromObject=function($e){return this.setup().fromObject($e)},X.prototype.toObject=function($e,Ce){return this.setup().toObject($e,Ce)},X.d=function($e){return function(Ie){$.decorateType(Ie,$e)}},type}var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1,root=g;var n=requireNamespace();((g.prototype=Object.create(n.prototype)).constructor=g).className="Root";var o=requireField(),e=require_enum(),t=requireOneof(),c=requireUtil(),p,h,y;function g(N){n.call(this,"",N),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}g.fromJSON=function(H,Z){return Z||(Z=new g),H.options&&Z.setOptions(H.options),Z.addJSON(H.nested).resolveAll()},g.prototype.resolvePath=c.path.resolve,g.prototype.fetch=c.fetch;function $(){}g.prototype.load=function N(H,Z,X){typeof Z=="function"&&(X=Z,Z=void 0);var be=this;if(!X)return c.asPromise(N,be,H,Z);var we=X===$;function $e(je,De){if(X){if(we)throw je;De&&De.resolveAll();var Ue=X;X=null,Ue(je,De)}}function Ce(je){var De=je.lastIndexOf("google/protobuf/");if(De>-1){var Ue=je.substring(De);if(Ue in y)return Ue}return null}function Ie(je,De){try{if(c.isString(De)&&De.charAt(0)==="{"&&(De=JSON.parse(De)),!c.isString(De))be.setOptions(De.options).addJSON(De.nested);else{h.filename=je;var Ue=h(De,be,Z),Je,Xe=0;if(Ue.imports)for(;Xe<Ue.imports.length;++Xe)(Je=Ce(Ue.imports[Xe])||be.resolvePath(je,Ue.imports[Xe]))&&Ne(Je);if(Ue.weakImports)for(Xe=0;Xe<Ue.weakImports.length;++Xe)(Je=Ce(Ue.weakImports[Xe])||be.resolvePath(je,Ue.weakImports[Xe]))&&Ne(Je,!0)}}catch(Ke){$e(Ke)}!we&&!Fe&&$e(null,be)}function Ne(je,De){if(je=Ce(je)||je,!(be.files.indexOf(je)>-1)){if(be.files.push(je),je in y){we?Ie(je,y[je]):(++Fe,setTimeout(function(){--Fe,Ie(je,y[je])}));return}if(we){var Ue;try{Ue=c.fs.readFileSync(je).toString("utf8")}catch(Je){De||$e(Je);return}Ie(je,Ue)}else++Fe,be.fetch(je,function(Je,Xe){if(--Fe,!!X){if(Je){De?Fe||$e(null,be):$e(Je);return}Ie(je,Xe)}})}}var Fe=0;c.isString(H)&&(H=[H]);for(var Be=0,Ge;Be<H.length;++Be)(Ge=be.resolvePath("",H[Be]))&&Ne(Ge);return we?(be.resolveAll(),be):(Fe||$e(null,be),be)},g.prototype.loadSync=function(H,Z){if(!c.isNode)throw Error("not supported");return this.load(H,Z,$)},g.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(H){return"'extend "+H.extend+"' in "+H.parent.fullName}).join(", "));return n.prototype.resolveAll.call(this)};var E=/^[A-Z]/;function A(N,H){var Z=H.parent.lookup(H.extend);if(Z){var X=new o(H.fullName,H.id,H.type,H.rule,void 0,H.options);return Z.get(X.name)||(X.declaringField=H,H.extensionField=X,Z.add(X)),!0}return!1}return g.prototype._handleAdd=function(H){if(H instanceof o)H.extend!==void 0&&!H.extensionField&&(A(this,H)||this.deferred.push(H));else if(H instanceof e)E.test(H.name)&&(H.parent[H.name]=H.values);else if(!(H instanceof t)){if(H instanceof p)for(var Z=0;Z<this.deferred.length;)A(this,this.deferred[Z])?this.deferred.splice(Z,1):++Z;for(var X=0;X<H.nestedArray.length;++X)this._handleAdd(H._nestedArray[X]);E.test(H.name)&&(H.parent[H.name]=H)}(H instanceof p||H instanceof e||H instanceof o)&&(this._fullyQualifiedObjects[H.fullName]=H)},g.prototype._handleRemove=function(H){if(H instanceof o){if(H.extend!==void 0)if(H.extensionField)H.extensionField.parent.remove(H.extensionField),H.extensionField=null;else{var Z=this.deferred.indexOf(H);Z>-1&&this.deferred.splice(Z,1)}}else if(H instanceof e)E.test(H.name)&&delete H.parent[H.name];else if(H instanceof n){for(var X=0;X<H.nestedArray.length;++X)this._handleRemove(H._nestedArray[X]);E.test(H.name)&&delete H.parent[H.name]}delete this._fullyQualifiedObjects[H.fullName]},g._configure=function(N,H,Z){p=N,h=H,y=Z},root}var hasRequiredUtil;
132function requireUtil(){if(hasRequiredUtil)return util.exports;hasRequiredUtil=1;var n=util.exports=requireMinimal$1(),o=requireRoots(),e,t;n.codegen=requireCodegen(),n.fetch=requireFetch(),n.path=requirePath(),n.fs=n.inquire("fs"),n.toArray=function($){if($){for(var E=Object.keys($),A=new Array(E.length),N=0;N<E.length;)A[N]=$[E[N++]];return A}return[]},n.toObject=function($){for(var E={},A=0;A<$.length;){var N=$[A++],H=$[A++];H!==void 0&&(E[N]=H)}return E};var c=/\\/g,p=/"/g;n.isReserved=function($){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test($)},n.safeProp=function($){return!/^[$\w_]+$/.test($)||n.isReserved($)?'["'+$.replace(c,"\\\\").replace(p,'\\"')+'"]':"."+$},n.ucFirst=function($){return $.charAt(0).toUpperCase()+$.substring(1)};var h=/_([a-z])/g;n.camelCase=function($){return $.substring(0,1)+$.substring(1).replace(h,function(E,A){return A.toUpperCase()})},n.compareFieldsById=function($,E){return $.id-E.id},n.decorateType=function($,E){if($.$type)return E&&$.$type.name!==E&&(n.decorateRoot.remove($.$type),$.$type.name=E,n.decorateRoot.add($.$type)),$.$type;e||(e=requireType());var A=new e(E||$.name);return n.decorateRoot.add(A),A.ctor=$,Object.defineProperty($,"$type",{value:A,enumerable:!1}),Object.defineProperty($.prototype,"$type",{value:A,enumerable:!1}),A};var y=0;return n.decorateEnum=function($){if($.$type)return $.$type;t||(t=require_enum());var E=new t("Enum"+y++,$);return n.decorateRoot.add(E),Object.defineProperty($,"$type",{value:E,enumerable:!1}),E},n.setProperty=function($,E,A,N){function H(Z,X,be){var we=X.shift();if(we==="__proto__"||we==="prototype")return Z;if(X.length>0)Z[we]=H(Z[we]||{},X,be);else{var $e=Z[we];if($e&&N)return Z;$e&&(be=[].concat($e).concat(be)),Z[we]=be}return Z}if(typeof $!="object")throw TypeError("dst must be an object");if(!E)throw TypeError("path must be specified");return E=E.split("."),H($,E,A)},Object.defineProperty(n,"decorateRoot",{get:function(){return o.decorated||(o.decorated=new(requireRoot()))}}),util.exports}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(n){var o=n,e=requireUtil(),t=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function c(p,h){var y=0,g={};for(h|=0;y<p.length;)g[t[y+h]]=p[y++];return g}o.basic=c([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),o.defaults=c([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",e.emptyArray,null]),o.long=c([0,0,0,1,1],7),o.mapKey=c([0,0,0,5,5,0,0,0,1,1,0,2],2),o.packed=c([1,5,0,0,0,5,5,0,0,0,1,1,0])}(types)),types}var field,hasRequiredField;function requireField(){if(hasRequiredField)return field;hasRequiredField=1,field=h;var n=requireObject();((h.prototype=Object.create(n.prototype)).constructor=h).className="Field";var o=require_enum(),e=requireTypes(),t=requireUtil(),c,p=/^required|optional|repeated$/;h.fromJSON=function(g,$){var E=new h(g,$.id,$.type,$.rule,$.extend,$.options,$.comment);return $.edition&&(E._edition=$.edition),E._defaultEdition="proto3",E};function h(y,g,$,E,A,N,H){if(t.isObject(E)?(H=A,N=E,E=A=void 0):t.isObject(A)&&(H=N,N=A,A=void 0),n.call(this,y,N),!t.isInteger(g)||g<0)throw TypeError("id must be a non-negative integer");if(!t.isString($))throw TypeError("type must be a string");if(E!==void 0&&!p.test(E=E.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(A!==void 0&&!t.isString(A))throw TypeError("extend must be a string");E==="proto3_optional"&&(E="optional"),this.rule=E&&E!=="optional"?E:void 0,this.type=$,this.id=g,this.extend=A||void 0,this.repeated=E==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=t.Long?e.long[$]!==void 0:!1,this.bytes=$==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=H}return Object.defineProperty(h.prototype,"required",{get:function(){return this._features.field_presence==="LEGACY_REQUIRED"}}),Object.defineProperty(h.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(h.prototype,"delimited",{get:function(){return this.resolvedType instanceof c&&this._features.message_encoding==="DELIMITED"}}),Object.defineProperty(h.prototype,"packed",{get:function(){return this._features.repeated_field_encoding==="PACKED"}}),Object.defineProperty(h.prototype,"hasPresence",{get:function(){return this.repeated||this.map?!1:this.partOf||this.declaringField||this.extensionField||this._features.field_presence!=="IMPLICIT"}}),h.prototype.setOption=function(g,$,E){return n.prototype.setOption.call(this,g,$,E)},h.prototype.toJSON=function(g){var $=g?!!g.keepComments:!1;return t.toObject(["edition",this._editionToJSON(),"rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",$?this.comment:void 0])},h.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=e.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.t
132ype),this.resolvedType instanceof c?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof o)&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=t.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var g;t.base64.test(this.typeDefault)?t.base64.decode(this.typeDefault,g=t.newBuffer(t.base64.length(this.typeDefault)),0):t.utf8.write(this.typeDefault,g=t.newBuffer(t.utf8.length(this.typeDefault)),0),this.typeDefault=g}return this.map?this.defaultValue=t.emptyObject:this.repeated?this.defaultValue=t.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof c&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},h.prototype._inferLegacyProtoFeatures=function(g){if(g!=="proto2"&&g!=="proto3")return{};var $={};if(this.rule==="required"&&($.field_presence="LEGACY_REQUIRED"),this.parent&&e.defaults[this.type]===void 0){var E=this.parent.get(this.type.split(".").pop());E&&E instanceof c&&E.group&&($.message_encoding="DELIMITED")}return this.getOption("packed")===!0?$.repeated_field_encoding="PACKED":this.getOption("packed")===!1&&($.repeated_field_encoding="EXPANDED"),$},h.prototype._resolveFeatures=function(g){return n.prototype._resolveFeatures.call(this,this._edition||g)},h.d=function(g,$,E,A){return typeof $=="function"?$=t.decorateType($).name:$&&typeof $=="object"&&($=t.decorateEnum($).name),function(H,Z){t.decorateType(H.constructor).add(new h(Z,g,$,E,{default:A}))}},h._configure=function(g){c=g},field}var oneof,hasRequiredOneof;function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=t;var n=requireObject();((t.prototype=Object.create(n.prototype)).constructor=t).className="OneOf";var o=requireField(),e=requireUtil();function t(p,h,y,g){if(Array.isArray(h)||(y=h,h=void 0),n.call(this,p,y),!(h===void 0||Array.isArray(h)))throw TypeError("fieldNames must be an Array");this.oneof=h||[],this.fieldsArray=[],this.comment=g}t.fromJSON=function(h,y){return new t(h,y.oneof,y.options,y.comment)},t.prototype.toJSON=function(h){var y=h?!!h.keepComments:!1;return e.toObject(["options",this.options,"oneof",this.oneof,"comment",y?this.comment:void 0])};function c(p){if(p.parent)for(var h=0;h<p.fieldsArray.length;++h)p.fieldsArray[h].parent||p.parent.add(p.fieldsArray[h])}return t.prototype.add=function(h){if(!(h instanceof o))throw TypeError("field must be a Field");return h.parent&&h.parent!==this.parent&&h.parent.remove(h),this.oneof.push(h.name),this.fieldsArray.push(h),h.partOf=this,c(this),this},t.prototype.remove=function(h){if(!(h instanceof o))throw TypeError("field must be a Field");var y=this.fieldsArray.indexOf(h);if(y<0)throw Error(h+" is not a member of "+this);return this.fieldsArray.splice(y,1),y=this.oneof.indexOf(h.name),y>-1&&this.oneof.splice(y,1),h.partOf=null,this},t.prototype.onAdd=function(h){n.prototype.onAdd.call(this,h);for(var y=this,g=0;g<this.oneof.length;++g){var $=h.get(this.oneof[g]);$&&!$.partOf&&($.partOf=y,y.fieldsArray.push($))}c(this)},t.prototype.onRemove=function(h){for(var y=0,g;y<this.fieldsArray.length;++y)(g=this.fieldsArray[y]).parent&&g.parent.remove(g);n.prototype.onRemove.call(this,h)},Object.defineProperty(t.prototype,"isProto3Optional",{get:function(){if(this.fieldsArray==null||this.fieldsArray.length!==1)return!1;var p=this.fieldsArray[0];return p.options!=null&&p.options.proto3_optional===!0}}),t.d=function(){for(var h=new Array(arguments.length),y=0;y<arguments.length;)h[y]=arguments[y++];return function($,E){e.decorateType($.constructor).add(new t(E,h)),Object.defineProperty($,E,{get:e.oneOfGetter(h),set
132:e.oneOfSetter(h)})}},oneof}var object,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object;hasRequiredObject=1,object=h,h.className="ReflectionObject";const n=requireOneof();var o=requireUtil(),e,t={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"},c={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},p={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function h(y,g){if(!o.isString(y))throw TypeError("name must be a string");if(g&&!o.isObject(g))throw TypeError("options must be an object");this.options=g,this.parsedOptions=null,this.name=y,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(h.prototype,{root:{get:function(){for(var y=this;y.parent!==null;)y=y.parent;return y}},fullName:{get:function(){for(var y=[this.name],g=this.parent;g;)y.unshift(g.name),g=g.parent;return y.join(".")}}}),h.prototype.toJSON=function(){throw Error()},h.prototype.onAdd=function(g){this.parent&&this.parent!==g&&this.parent.remove(this),this.parent=g,this.resolved=!1;var $=g.root;$ instanceof e&&$._handleAdd(this)},h.prototype.onRemove=function(g){var $=g.root;$ instanceof e&&$._handleRemove(this),this.parent=null,this.resolved=!1},h.prototype.resolve=function(){return this.resolved?this:(this.root instanceof e&&(this.resolved=!0),this)},h.prototype._resolveFeaturesRecursive=function(g){return this._resolveFeatures(this._edition||g)},h.prototype._resolveFeatures=function(g){if(!this._featuresResolved){var $={};if(!g)throw new Error("Unknown edition for "+this.fullName);var E=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(g));if(this._edition){if(g==="proto2")$=Object.assign({},c);else if(g==="proto3")$=Object.assign({},p);else if(g==="2023")$=Object.assign({},t);else throw new Error("Unknown edition: "+g);this._features=Object.assign($,E||{}),this._featuresResolved=!0;return}if(this.partOf instanceof n){var A=Object.assign({},this.partOf._features);this._features=Object.assign(A,E||{})}else if(!this.declaringField)if(this.parent){var N=Object.assign({},this.parent._features);this._features=Object.assign(N,E||{})}else throw new Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},h.prototype._inferLegacyProtoFeatures=function(){return{}},h.prototype.getOption=function(g){if(this.options)return this.options[g]},h.prototype.setOption=function(g,$,E){return this.options||(this.options={}),/^features\./.test(g)?o.setProperty(this.options,g,$,E):(!E||this.options[g]===void 0)&&(this.getOption(g)!==$&&(this.resolved=!1),this.options[g]=$),this},h.prototype.setParsedOption=function(g,$,E){this.parsedOptions||(this.parsedOptions=[]);var A=this.parsedOptions;if(E){var N=A.find(function(X){return Object.prototype.hasOwnProperty.call(X,g)});if(N){var H=N[g];o.setProperty(H,E,$)}else N={},N[g]=o.setProperty({},E,$),A.push(N)}else{var Z={};Z[g]=$,A.push(Z)}return this},h.prototype.setOptions=function(g,$){if(g)for(var E=Object.keys(g),A=0;A<E.length;++A)this.setOption(E[A],g[E[A]],$);return this},h.prototype.toString=function(){var g=this.constructor.className,$=this.fullName;return $.length?g+" "+$:g},h.prototype._editionToJSON=function(){if(!(!this._edition||this._edition==="proto3"))return this._edition},h._configure=function(y){e=y},object}var _enum,hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1,_enum=t;var n=requireObject();((t.prototype=Object.create(n.prototype)).constructor=t).className="Enum";var o=requireNamespace(),e=requireUtil();function t(c,p,h,y,g,$){if(n.call(this,c,h),p&&typeof p!="object")throw TypeError("values must be an object");
132if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=y,this.comments=g||{},this.valuesOptions=$,this._valuesFeatures={},this.reserved=void 0,p)for(var E=Object.keys(p),A=0;A<E.length;++A)typeof p[E[A]]=="number"&&(this.valuesById[this.values[E[A]]=p[E[A]]]=E[A])}return t.prototype._resolveFeatures=function(p){return p=this._edition||p,n.prototype._resolveFeatures.call(this,p),Object.keys(this.values).forEach(h=>{var y=Object.assign({},this._features);this._valuesFeatures[h]=Object.assign(y,this.valuesOptions&&this.valuesOptions[h]&&this.valuesOptions[h].features)}),this},t.fromJSON=function(p,h){var y=new t(p,h.values,h.options,h.comment,h.comments);return y.reserved=h.reserved,h.edition&&(y._edition=h.edition),y._defaultEdition="proto3",y},t.prototype.toJSON=function(p){var h=p?!!p.keepComments:!1;return e.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",h?this.comment:void 0,"comments",h?this.comments:void 0])},t.prototype.add=function(p,h,y,g){if(!e.isString(p))throw TypeError("name must be a string");if(!e.isInteger(h))throw TypeError("id must be an integer");if(this.values[p]!==void 0)throw Error("duplicate name '"+p+"' in "+this);if(this.isReservedId(h))throw Error("id "+h+" is reserved in "+this);if(this.isReservedName(p))throw Error("name '"+p+"' is reserved in "+this);if(this.valuesById[h]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+h+" in "+this);this.values[p]=h}else this.valuesById[this.values[p]=h]=p;return g&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[p]=g||null),this.comments[p]=y||null,this},t.prototype.remove=function(p){if(!e.isString(p))throw TypeError("name must be a string");var h=this.values[p];if(h==null)throw Error("name '"+p+"' does not exist in "+this);return delete this.valuesById[h],delete this.values[p],delete this.comments[p],this.valuesOptions&&delete this.valuesOptions[p],this},t.prototype.isReservedId=function(p){return o.isReservedId(this.reserved,p)},t.prototype.isReservedName=function(p){return o.isReservedName(this.reserved,p)},_enum}var encoder_1,hasRequiredEncoder;function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1,encoder_1=c;var n=require_enum(),o=requireTypes(),e=requireUtil();function t(p,h,y,g){return h.delimited?p("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",y,g,(h.id<<3|3)>>>0,(h.id<<3|4)>>>0):p("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",y,g,(h.id<<3|2)>>>0)}function c(p){for(var h=e.codegen(["m","w"],p.name+"$encode")("if(!w)")("w=Writer.create()"),y,g,$=p.fieldsArray.slice().sort(e.compareFieldsById),y=0;y<$.length;++y){var E=$[y].resolve(),A=p._fieldsArray.indexOf(E),N=E.resolvedType instanceof n?"int32":E.type,H=o.basic[N];g="m"+e.safeProp(E.name),E.map?(h("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",g,E.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",g)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(E.id<<3|2)>>>0,8|o.mapKey[E.keyType],E.keyType),H===void 0?h("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",A,g):h(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|H,N,g),h("}")("}")):E.repeated?(h("if(%s!=null&&%s.length){",g,g),E.packed&&o.packed[N]!==void 0?h("w.uint32(%i).fork()",(E.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",g)("w.%s(%s[i])",N,g)("w.ldelim()"):(h("for(var i=0;i<%s.length;++i)",g),H===void 0?t(h,E,A,g+"[i]"):h("w.uint32(%i).%s(%s[i])",(E.id<<3|H)>>>0,N,g)),h("}")):(E.optional&&h("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",g,E.name),H===void 0?t(h,E,A,g):h("w.uint32(%i).%s(%s)",(E.id<<3|H)>>>0,N,g))}return h("return w")}return encoder_1}var hasRequiredIndexLight;function requireIndexLight(){if(hasRequiredIndexLight)return indexLight.exports;hasRequiredIndexLight=1;var n=indexLight.exports=requireIndexMinimal();n.build="light";function o(t,c,p){return typeof c=="function"?(p=c,c=new n.Root):c||(c=new n.Root),c.load(t,p)}n.load=o;function e(t,c){return c||(c=new n.Root),c.loadSync(t)}return n.loadSync=e,n.encoder=requireEncoder(),n.decoder=requireDecoder(),n.verifier=requireVerifier(),n.converter=requireConverter(),n.ReflectionObject=requireObject(),n.Namespace=requireNamespace(),n.Root=requireRoot(),n.Enum=require_enum(),n.Type=requireType(),n.Field=requireField(),n.OneOf=requireOneof(),n.MapField=requireMapfield(),n.Service=requireService(),n.Method=requireMethod(),n.Message=requireMessage(),n.wrappers=requireWrappers(),n.types=requireTypes(),n.util=requireUtil(),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type),indexLight.exports}var tokenize_1,hasRequiredTokenize;function requireTokenize(){if(hasRequiredTokenize)return tokenize_1;hasRequiredTokenize=1,tokenize_1=E;var n=/[\s{}=;:[\],'"()<>]/g,o=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,e=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,t=/^ *[*/]+ */,c=/^\s*\*?\/*/,p=/\n/g,h=/\s/,y=/\\(.?)/g,g={0:"\0",r:"\r",n:` 133`,t:" "};function $(A){return A.replace(y,function(N,H){switch(H){case"\\":case"":return H;default:return g[H]||""}})}E.unescape=$;function E(A,N){A=A.toString();var H=0,Z=A.length,X=1,be=0,we={},$e=[],Ce=null;function Ie(ze){return Error("illegal "+ze+" (line "+X+")")}function Ne(){var ze=Ce==="'"?e:o;ze.lastIndex=H-1;var nt=ze.exec(A);if(!nt)throw Ie("string");return H=ze.lastIndex,Ue(Ce),Ce=null,$(nt[1])}function Fe(ze){return A.charAt(ze)}function Be(ze,nt,ct){var at={type:A.charAt(ze++),lineEmpty:!1,leading:ct},dt;N?dt=2:dt=3;var Me=ze-dt,We;do if(--Me<0||(We=A.charAt(Me))===` 134`){at.lineEmpty=!0;break}while(We===" "||We===" ");for(var tt=A.substring(ze,nt).split(p),Ve=0;Ve<tt.length;++Ve)tt[Ve]=tt[Ve].replace(N?c:t,"").trim();at.text=tt.join(` 135`).trim(),we[X]=at,be=X}function Ge(ze){var nt=je(ze),ct=A.substring(ze,nt),at=/^\s*\/\//.test(ct);return at}function je(ze){for(var nt=ze;nt<Z&&Fe(nt)!==` 136`;)nt++;return nt}function De(){if($e.length>0)return $e.shift();if(Ce)return Ne();var ze,nt,ct,at,dt,Me=H===0;
136do{if(H===Z)return null;for(ze=!1;h.test(ct=Fe(H));)if(ct===` 137`&&(Me=!0,++X),++H===Z)return null;if(Fe(H)==="/"){if(++H===Z)throw Ie("comment");if(Fe(H)==="/")if(N){if(at=H,dt=!1,Ge(H-1)){dt=!0;do if(H=je(H),H===Z||(H++,!Me))break;while(Ge(H))}else H=Math.min(Z,je(H)+1);dt&&(Be(at,H,Me),Me=!0),X++,ze=!0}else{for(dt=Fe(at=H+1)==="/";Fe(++H)!==` 138`;)if(H===Z)return null;++H,dt&&(Be(at,H-1,Me),Me=!0),++X,ze=!0}else if((ct=Fe(H))==="*"){at=H+1,dt=N||Fe(at)==="*";do{if(ct===` 139`&&++X,++H===Z)throw Ie("comment");nt=ct,ct=Fe(H)}while(nt!=="*"||ct!=="/");++H,dt&&(Be(at,H-2,Me),Me=!0),ze=!0}else return"/"}}while(ze);var We=H;n.lastIndex=0;var tt=n.test(Fe(We++));if(!tt)for(;We<Z&&!n.test(Fe(We));)++We;var Ve=A.substring(H,H=We);return(Ve==='"'||Ve==="'")&&(Ce=Ve),Ve}function Ue(ze){$e.push(ze)}function Je(){if(!$e.length){var ze=De();if(ze===null)return null;Ue(ze)}return $e[0]}function Xe(ze,nt){var ct=Je(),at=ct===ze;if(at)return De(),!0;if(!nt)throw Ie("token '"+ct+"', '"+ze+"' expected");return!1}function Ke(ze){var nt=null,ct;return ze===void 0?(ct=we[X-1],delete we[X-1],ct&&(N||ct.type==="*"||ct.lineEmpty)&&(nt=ct.leading?ct.text:null)):(be<ze&&Je(),ct=we[ze],delete we[ze],ct&&!ct.lineEmpty&&(N||ct.type==="/")&&(nt=ct.leading?null:ct.text)),nt}return Object.defineProperty({next:De,peek:Je,push:Ue,skip:Xe,cmnt:Ke},"line",{get:function(){return X}})}return tokenize_1}var parse_1,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse_1;hasRequiredParse=1,parse_1=Ne,Ne.filename=null,Ne.defaults={keepCase:!1};var n=requireTokenize(),o=requireRoot(),e=requireType(),t=requireField(),c=requireMapfield(),p=requireOneof(),h=require_enum(),y=requireService(),g=requireMethod(),$=requireObject(),E=requireTypes(),A=requireUtil(),N=/^[1-9][0-9]*$/,H=/^-?[1-9][0-9]*$/,Z=/^0[x][0-9a-fA-F]+$/,X=/^-?0[x][0-9a-fA-F]+$/,be=/^0[0-7]+$/,we=/^-?0[0-7]+$/,$e=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,Ce=/^[a-zA-Z_][a-zA-Z_0-9]*$/,Ie=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function Ne(Fe,Be,Ge){Be instanceof o||(Ge=Be,Be=new o),Ge||(Ge=Ne.defaults);var je=Ge.preferTrailingComment||!1,De=n(Fe,Ge.alternateCommentMode||!1),Ue=De.next,Je=De.push,Xe=De.peek,Ke=De.skip,ze=De.cmnt,nt=!0,ct,at,dt,Me="proto2",We=Be,tt=[],Ve={},vt=Ge.keepCase?function(ot){return ot}:A.camelCase;function xt(){tt.forEach(ot=>{ot._edition=Me,Object.keys(Ve).forEach(lt=>{ot.getOption(lt)===void 0&&ot.setOption(lt,Ve[lt],!0)})})}function Qe(ot,lt,st){var ft=Ne.filename;return st||(Ne.filename=null),Error("illegal "+(lt||"token")+" '"+ot+"' ("+(ft?ft+", ":"")+"line "+De.line+")")}function St(){var ot=[],lt;do{if((lt=Ue())!=='"'&<!=="'")throw Qe(lt);ot.push(Ue()),Ke(lt),lt=Xe()}while(lt==='"'||lt==="'");return ot.join("")}function pt(ot){var lt=Ue();switch(lt){case"'":case'"':return Je(lt),St();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return Ft(lt,!0)}catch{if(Ie.test(lt))return lt;throw Qe(lt,"value")}}function wt(ot,lt){var st,ft;do if(lt&&((st=Xe())==='"'||st==="'")){var ut=St();if(ot.push(ut),Me>=2023)throw Qe(ut,"id")}else try{ot.push([ft=Ht(Ue()),Ke("to",!0)?Ht(Ue()):ft])}catch(Gt){if(lt&&Ie.test(st)&&Me>=2023)ot.push(st);else throw Gt}while(Ke(",",!0));var At={options:void 0};At.setOption=function(Gt,Xt){this.options===void 0&&(this.options={}),this.options[Gt]=Xt},zt(At,function(Xt){if(Xt==="option")Ut(At,Xt),Ke(";");else throw Qe(Xt)},function(){Et(At)})}function Ft(ot,lt){var st=1;switch(ot.charAt(0)==="-"&&(st=-1,ot=ot.substring(1)),ot){case"inf":case"INF":case"Inf":return st*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(N.test(ot))return st*parseInt(ot,10);if(Z.test(ot))return st*parseInt(ot,16);if(be.test(ot))return st*parseInt(ot,8);if($e.test(ot))return st*parseFloat(ot);throw Qe(ot,"number",lt)}function Ht(ot,lt){switch(ot){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!lt&&ot.charAt(0)==="-")throw Qe(ot,"id");if(H.test(ot))return parseInt(ot,10);if(X.test(ot))return parseInt(ot,16);if(we.test(ot))return parseInt(ot,8);throw Qe(ot,"id")}function on(){if(ct!==void 0)throw Qe("package");if(ct=Ue(),!Ie.test(ct))throw Qe(ct,"name");We=We.define(ct),Ke(";")}function en(){var ot=Xe(),lt;switch(ot){case"weak":lt=dt||(dt=[]),Ue();break;case"public":Ue();default:lt=at||(at=[]);break}ot=St(),Ke(";"),lt.push(ot)}function Wt(){if(Ke("="),Me=St(),Me<2023)throw Qe(Me,"syntax");Ke(";")}function an(){if(Ke("="),Me=St(),!["2023"].includes(Me))throw Qe(Me,"edition");Ke(";")}function qt(ot,lt){switch(lt){case"option":return Ut(ot,lt),Ke(";"),!0;case"message":return Jt(ot,lt),!0;case"enum":return nn(ot,lt),!0;case"service":return Nt(ot,lt),!0;case"extend":return Bt(ot,lt),!0}return!1}function zt(ot,lt,st){var ft=De.line;if(ot&&(typeof ot.comment!="string"&&(ot.comment=ze()),ot.filename=Ne.filename),Ke("{",!0)){for(var ut;(ut=Ue())!=="}";)lt(ut);Ke(";",!0)}else st&&st(),Ke(";"),ot&&(typeof ot.comment!="string"||je)&&(ot.comment=ze(ft)||ot.comment)}function Jt(ot,lt){if(!Ce.test(lt=Ue()))throw Qe(lt,"type name");var st=new e(lt);zt(st,function(ut){if(!qt(st,ut))switch(ut){case"map":yn(st);break;case"required":if(Me!=="proto2")throw Qe(ut);case"repeated":jt(st,ut);break;case"optional":if(Me==="proto3")jt(st,"proto3_optional");else{if(Me!=="proto2")throw Qe(ut);jt(st,"optional")}break;case"oneof":vn(st,ut);break;case"extensions":wt(st.extensions||(st.extensions=[]));break;case"reserved":wt(st.reserved||(st.reserved=[]),!0);break;default:if(Me==="proto2"||!Ie.test(ut))throw Qe(ut);Je(ut),jt(st,"optional");break}}),ot.add(st),ot===We&&tt.push(st)}function jt(ot,lt,st){var ft=Ue();if(ft==="group"){Yt(ot,lt);return}for(;
139ft.endsWith(".")||Xe().startsWith(".");)ft+=Ue();if(!Ie.test(ft))throw Qe(ft,"type");var ut=Ue();if(!Ce.test(ut))throw Qe(ut,"name");ut=vt(ut),Ke("=");var At=new t(ut,Ht(Ue()),ft,lt,st);if(zt(At,function(un){if(un==="option")Ut(At,un),Ke(";");else throw Qe(un)},function(){Et(At)}),lt==="proto3_optional"){var Gt=new p("_"+ut);At.setOption("proto3_optional",!0),Gt.add(At),ot.add(Gt)}else ot.add(At);ot===We&&tt.push(At)}function Yt(ot,lt){if(Me>=2023)throw Qe("group");var st=Ue();if(!Ce.test(st))throw Qe(st,"name");var ft=A.lcFirst(st);st===ft&&(st=A.ucFirst(st)),Ke("=");var ut=Ht(Ue()),At=new e(st);At.group=!0;var Gt=new t(ft,ut,st,lt);Gt.filename=Ne.filename,zt(At,function(un){switch(un){case"option":Ut(At,un),Ke(";");break;case"required":case"repeated":jt(At,un);break;case"optional":Me==="proto3"?jt(At,"proto3_optional"):jt(At,"optional");break;case"message":Jt(At,un);break;case"enum":nn(At,un);break;case"reserved":wt(At.reserved||(At.reserved=[]),!0);break;default:throw Qe(un)}}),ot.add(At).add(Gt)}function yn(ot){Ke("<");var lt=Ue();if(E.mapKey[lt]===void 0)throw Qe(lt,"type");Ke(",");var st=Ue();if(!Ie.test(st))throw Qe(st,"type");Ke(">");var ft=Ue();if(!Ce.test(ft))throw Qe(ft,"name");Ke("=");var ut=new c(vt(ft),Ht(Ue()),lt,st);zt(ut,function(Gt){if(Gt==="option")Ut(ut,Gt),Ke(";");else throw Qe(Gt)},function(){Et(ut)}),ot.add(ut)}function vn(ot,lt){if(!Ce.test(lt=Ue()))throw Qe(lt,"name");var st=new p(vt(lt));zt(st,function(ut){ut==="option"?(Ut(st,ut),Ke(";")):(Je(ut),jt(st,"optional"))}),ot.add(st)}function nn(ot,lt){if(!Ce.test(lt=Ue()))throw Qe(lt,"name");var st=new h(lt);zt(st,function(ut){switch(ut){case"option":Ut(st,ut),Ke(";");break;case"reserved":wt(st.reserved||(st.reserved=[]),!0),st.reserved===void 0&&(st.reserved=[]);break;default:pn(st,ut)}}),ot.add(st),ot===We&&tt.push(st)}function pn(ot,lt){if(!Ce.test(lt))throw Qe(lt,"name");Ke("=");var st=Ht(Ue(),!0),ft={options:void 0};ft.getOption=function(ut){return this.options[ut]},ft.setOption=function(ut,At){$.prototype.setOption.call(ft,ut,At)},ft.setParsedOption=function(){},zt(ft,function(At){if(At==="option")Ut(ft,At),Ke(";");else throw Qe(At)},function(){Et(ft)}),ot.add(lt,st,ft.comment,ft.parsedOptions||ft.options)}function Ut(ot,lt){var st,ft,ut=!0;for(lt==="option"&&(lt=Ue());lt!=="=";){if(lt==="("){var At=Ue();Ke(")"),lt="("+At+")"}if(ut){if(ut=!1,lt.includes(".")&&!lt.includes("(")){var Gt=lt.split(".");st=Gt[0]+".",lt=Gt[1];continue}st=lt}else ft=ft?ft+=lt:lt;lt=Ue()}var Xt=ft?st.concat(ft):st,un=it(ot,Xt);ft=ft&&ft[0]==="."?ft.slice(1):ft,st=st&&st[st.length-1]==="."?st.slice(0,-1):st,Tt(ot,st,un,ft)}function it(ot,lt){if(Ke("{",!0)){for(var st={};!Ke("}",!0);){if(!Ce.test(Ot=Ue()))throw Qe(Ot,"name");if(Ot===null)throw Qe(Ot,"end of input");var ft,ut=Ot;if(Ke(":",!0),Xe()==="{")ft=it(ot,lt+"."+Ot);else if(Xe()==="["){ft=[];var At;if(Ke("[",!0)){do At=pt(),ft.push(At);while(Ke(",",!0));Ke("]"),typeof At<"u"&>(ot,lt+"."+Ot,At)}}else ft=pt(),gt(ot,lt+"."+Ot,ft);var Gt=st[ut];Gt&&(ft=[].concat(Gt).concat(ft)),st[ut]=ft,Ke(",",!0),Ke(";",!0)}return st}var Xt=pt();return gt(ot,lt,Xt),Xt}function gt(ot,lt,st){if(We===ot&&/^features\./.test(lt)){Ve[lt]=st;return}ot.setOption&&ot.setOption(lt,st)}function Tt(ot,lt,st,ft){ot.setParsedOption&&ot.setParsedOption(lt,st,ft)}function Et(ot){if(Ke("[",!0)){do Ut(ot,"option");while(Ke(",",!0));Ke("]")}return ot}function Nt(ot,lt){if(!Ce.test(lt=Ue()))throw Qe(lt,"service name");var st=new y(lt);zt(st,function(ut){if(!qt(st,ut))if(ut==="rpc")Ct(st,ut);else throw Qe(ut)}),ot.add(st),ot===We&&tt.push(st)}function Ct(ot,lt){var st=ze(),ft=lt;if(!Ce.test(lt=Ue()))throw Qe(lt,"name");var ut=lt,At,Gt,Xt,un;if(Ke("("),Ke("stream",!0)&&(Gt=!0),!Ie.test(lt=Ue())||(At=lt,Ke(")"),Ke("returns"),Ke("("),Ke("stream",!0)&&(un=!0),!Ie.test(lt=Ue())))throw Qe(lt);Xt=lt,Ke(")");var rr=new g(ut,ft,At,Xt,Gt,un);rr.comment=st,zt(rr,function(Sr){if(Sr==="option")Ut(rr,Sr),Ke(";");else throw Qe(Sr)}),ot.add(rr)}function Bt(ot,lt){if(!Ie.test(lt=Ue()))throw Qe(lt,"reference");var st=lt;zt(null,function(ut){switch(ut){case"required":case"repeated":jt(ot,ut,st);break;case"optional":Me==="proto3"?jt(ot,"proto3_optional",st):jt(ot,"optional",st);break;default:if(Me==="proto2"||!Ie.test(ut))throw Qe(ut);Je(ut),jt(ot,"optional",st);break}})}for(var Ot;(Ot=Ue())!==null;)switch(Ot){case"package":if(!nt)throw Qe(Ot);on();break;case"import":if(!nt)throw Qe(Ot);en();break;case"syntax":if(!nt)throw Qe(Ot);Wt();break;case"edition":if(!nt)throw Qe(Ot);an();break;case"option":Ut(We,Ot),Ke(";",!0);break;default:if(qt(We,Ot)){nt=!1;continue}throw Qe(Ot)}return xt(),Ne.filename=null,{package:ct,imports:at,weakImports:dt,root:Be}}return parse_1}var common_1,hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common_1;hasRequiredCommon=1,common_1=o;var n=/\/|\./;function o(t,c){n.test(t)||(t="google/protobuf/"+t+".proto",c={nested:{google:{nested:{protobuf:{nested:c}}}}}),o[t]=c}
139o("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var e;return o("duration",{Duration:e={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),o("timestamp",{Timestamp:e}),o("empty",{Empty:{fields:{}}}),o("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),o("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),o("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),o.get=function(c){return o[c]||null},common_1}var hasRequiredSrc;function requireSrc(){if(hasRequiredSrc)return src.exports;hasRequiredSrc=1;var n=src.exports=requireIndexLight();return n.build="full",n.tokenize=requireTokenize(),n.parse=requireParse(),n.common=requireCommon(),n.Root._configure(n.Type,n.parse,n.common),src.exports}var protobufjs,hasRequiredProtobufjs;function requireProtobufjs(){return hasRequiredProtobufjs||(hasRequiredProtobufjs=1,protobufjs=requireSrc()),protobufjs}var protobufjsExports=requireProtobufjs(),dist={},Collector={},hasRequiredCollector;function requireCollector(){if(hasRequiredCollector)return Collector;hasRequiredCollector=1,Object.defineProperty(Collector,"__esModule",{value:!0}),Collector.Collector=void 0;let n=class{constructor(e){this.emit=(...t)=>{e.emitCollecting(this,t)}}};return Collector.Collector=n,Collector}var CollectorArray={},hasRequiredCollectorArray;function requireCollectorArray(){if(hasRequiredCollectorArray)return CollectorArray;hasRequiredCollectorArray=1,Object.defineProperty(CollectorArray,"__esModule",{value:!0}),CollectorArray.CollectorArray=void 0;const n=requireCollector();let o=class extends n.Collector{constructor(){super(...arguments),this.result=[]}handleResult(t){return this.result.push(t),!0}getResult(){return this.result}reset(){this.result.length=0}};return CollectorArray.CollectorArray=o,CollectorArray}var CollectorLast={},hasRequiredCollectorLast;function requireCollectorLast(){if(hasRequiredCollectorLast)return CollectorLast;hasRequiredCollectorLast=1,Object.defineProperty(CollectorLast,"__esModule",{value:!0}),CollectorLast.CollectorLast=void 0;const n=requireCollector();let o=class extends n.Collector{handleResult(t){return this.result=t,!0}getResult(){return this.result}reset(){delete this.result}};return CollectorLast.CollectorLast=o,CollectorLast}var CollectorUntil0={},hasRequiredCollectorUntil0;function requireCollectorUntil0(){if(hasRequiredCollectorUntil0)return CollectorUntil0;hasRequiredCollectorUntil0=1,Object.defineProperty(CollectorUntil0,"__esModule",{value:!0}),CollectorUntil0.CollectorUntil0=void 0;const n=requireCollector();let o=class extends n.Collector{constructor(){super(...arguments),this.result=!1}handleResult(t){return this.result=t,this.result}getResult(){return this.result}reset(){this.result=!1}};return CollectorUntil0.CollectorUntil0=o,CollectorUntil0}var CollectorWhile0={},hasRequiredCollectorWhile0;function requireCollectorWhile0(){if(hasRequiredCollectorWhile0)return CollectorWhile0;hasRequiredCollectorWhile0=1,Object.defineProperty(CollectorWhile0,"__esModule",{value:!0}),CollectorWhile0.CollectorWhile0=void 0;const n=requireCollector();let o=class extends n.Collector{constructor(){super(...arguments),this.result=!1}handleResult(t){return this.result=t,!this.result}getResult(){return this.result}reset(){this.result=!1}};return CollectorWhile0.CollectorWhile0=o,CollectorWhile0}var Signal={},SignalConnection={},hasRequiredSignalConnection;function requireSignalConnection(){if(hasRequiredSignalConnection)return SignalConnection;hasRequiredSignalConnection=1,Object.defineProperty(SignalConnection,"__esModule",{value:!0}),SignalConnection.SignalConnectionImpl=void 0;
139class n{constructor(e){this.link=e}disconnect(){return this.link.unlink()}set enabled(e){this.link.setEnabled(e)}get enabled(){return this.link.isEnabled()}}return SignalConnection.SignalConnectionImpl=n,SignalConnection}var SignalLink={},hasRequiredSignalLink;function requireSignalLink(){if(hasRequiredSignalLink)return SignalLink;hasRequiredSignalLink=1,Object.defineProperty(SignalLink,"__esModule",{value:!0}),SignalLink.SignalLink=void 0;let n=class td{constructor(e,t,c){this.enabled=!0,this.newLink=!1,this.prev=e??this,this.next=t??this,this.order=c.order,this.isPublic=c.isPublic,this.callback=c.callback,this.onUnlink=c.onUnlink}isEnabled(){return this.enabled&&!this.newLink}setEnabled(e){this.enabled=e}unlink(){return this.callback?(delete this.callback,this.next.prev=this.prev,this.prev.next=this.next,this.onUnlink(),!0):!1}insert(e){const{order:t}=e;let c=this.prev;for(;c!==this&&!(c.order<=t);)c=c.prev;const p=new td(c,c.next,e);return c.next=p,p.next.prev=p,p}};return SignalLink.SignalLink=n,SignalLink}var hasRequiredSignal;function requireSignal(){if(hasRequiredSignal)return Signal;hasRequiredSignal=1,Object.defineProperty(Signal,"__esModule",{value:!0}),Signal.Signal=void 0;const n=requireSignalConnection(),o=requireSignalLink(),e={order:0,isPublic:!0,onUnlink(){}};let t=class{constructor(){this.head=new o.SignalLink(null,null,e),this.hasNewLinks=!1,this.emitDepth=0,this.connectionsCount=0,this.onUnlink=()=>{this.connectionsCount--}}getConnectionsCount(){return this.connectionsCount}hasConnections(){return this.connectionsCount>0}connect(p,{order:h=0,isPublic:y=!0}={}){this.connectionsCount++;const g=this.head.insert({callback:p,order:h,isPublic:y,onUnlink:this.onUnlink});return this.emitDepth>0&&(this.hasNewLinks=!0,g.newLink=!0),new n.SignalConnectionImpl(g)}disconnect(p){for(let h=this.head.next;h!==this.head;h=h.next)if(h.callback===p)return h.unlink(),!0;return!1}disconnectAll(){let{next:p}=this.head;for(;p!==this.head;)p.isPublic&&p.unlink(),p=p.next}emit(...p){this.emitDepth++;for(let h=this.head.next;h!==this.head;h=h.next)h.isEnabled()&&h.callback&&h.callback.apply(null,p);this.emitDepth--,this.unsetNewLink()}emitCollecting(p,h){this.emitDepth++;for(let y=this.head.next;y!==this.head;y=y.next)if(y.isEnabled()&&y.callback){const g=y.callback.apply(null,h);if(!p.handleResult(g))break}this.emitDepth--,this.unsetNewLink()}unsetNewLink(){if(this.hasNewLinks&&this.emitDepth===0){for(let p=this.head.next;p!==this.head;p=p.next)p.newLink=!1;this.hasNewLinks=!1}}};return Signal.Signal=t,Signal}var SignalConnections={},hasRequiredSignalConnections;function requireSignalConnections(){if(hasRequiredSignalConnections)return SignalConnections;hasRequiredSignalConnections=1,Object.defineProperty(SignalConnections,"__esModule",{value:!0}),SignalConnections.SignalConnections=void 0;let n=class{constructor(){this.list=[]}add(e){this.list.push(e)}disconnectAll(){for(const e of this.list)e.disconnect();this.list=[]}getCount(){return this.list.length}isEmpty(){return this.list.length===0}};return SignalConnections.SignalConnections=n,SignalConnections}var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.SignalConnections=n.Signal=n.CollectorWhile0=n.CollectorUntil0=n.CollectorLast=n.CollectorArray=n.Collector=void 0;var o=requireCollector();Object.defineProperty(n,"Collector",{enumerable:!0,get:function(){return o.Collector}});var e=requireCollectorArray();Object.defineProperty(n,"CollectorArray",{enumerable:!0,get:function(){return e.CollectorArray}});var t=requireCollectorLast();Object.defineProperty(n,"CollectorLast",{enumerable:!0,get:function(){return t.CollectorLast}});var c=requireCollectorUntil0();Object.defineProperty(n,"CollectorUntil0",{enumerable:!0,get:function(){return c.CollectorUntil0}});var p=requireCollectorWhile0();Object.defineProperty(n,"CollectorWhile0",{enumerable:!0,get:function(){return p.CollectorWhile0}});var h=requireSignal();Object.defineProperty(n,"Signal",{enumerable:!0,get:function(){return h.Signal}});var y=requireSignalConnections();Object.defineProperty(n,"SignalConnections",{enumerable:!0,get:function(){return y.SignalConnections}})}(dist)),dist}var distExports=requireDist();function createFormsData(){return{formsWithPendingChanges:new Set,formsWithUploads:new Set,submitButtons:new Map}}const LOG$c=loglevelExports.getLogger("WidgetStateManager");class WidgetStateDict{constructor(){this.widgetStates=new Map}createState(o){const e=new WidgetState({id:o});return this.widgetStates.set(o,e),e}getState(o){return this.widgetStates.get(o)}
139deleteState(o){this.widgetStates.delete(o)}removeInactive(o){this.widgetStates.forEach((e,t)=>{o.has(t)||this.widgetStates.delete(t)})}clear(){this.widgetStates.clear()}get isEmpty(){return this.widgetStates.size===0}createWidgetStatesMsg(){const o=new WidgetStates;return this.widgetStates.forEach(e=>o.widgets.push(e)),o}copyFrom(o){o.widgetStates.forEach((e,t)=>{this.widgetStates.set(t,e)})}forEach(o){this.widgetStates.forEach(o)}}class FormState{constructor(){this.widgetStates=new WidgetStateDict,this.clearOnSubmit=!1,this.enterToSubmit=!0,this.formCleared=new distExports.Signal}get hasPendingChanges(){return!this.widgetStates.isEmpty}}class WidgetStateManager{constructor(o){this.widgetStates=new WidgetStateDict,this.forms=new Map,this.elementStates=new Map,this.pendingTriggerIds=new Set,this.triggerFlushResolvers=[],this.flushScheduled=!1,this.hasFragmentIdConflict=!1,this.props=o,this.formsData=createFormsData()}addFormClearedListener(o,e){return this.getOrCreateFormState(o).formCleared.connect(e)}setFormSubmitBehaviors(o,e,t=!0){const c=this.getOrCreateFormState(o);c.clearOnSubmit=e,c.enterToSubmit=t}submitForm(o,e,t){if(!isValidFormId(o))throw new Error(`invalid formID '${o}'`);const c=this.getOrCreateFormState(o),p=this.formsData.submitButtons.get(o);let h;t!==void 0?h=t:p!==void 0&&p.length>0&&(h=p[0]),h&&(this.createWidgetState(h,{fromUi:!0}).triggerValue=!0),this.widgetStates.copyFrom(c.widgetStates),c.widgetStates.clear(),this.sendUpdateWidgetsMessage(e),this.syncFormsWithPendingChanges(),h&&this.deleteWidgetState(h.id),c.clearOnSubmit&&c.formCleared.emit()}setChatInputValue(o,e,t,c){this.createWidgetState(o,t).chatInputValue=new ChatInputValue(e),this.pendingTriggerIds.add(o.id),this.scheduleFlush(c)}setTriggerValue(o,e,t,c){let p=this.getWidgetState(o);if(p===void 0&&(p=this.createWidgetState(o,e)),c===void 0)p.triggerValue=!0;else{const h=c;try{if(isNullOrUndefined(p.jsonTriggerValue))p.jsonTriggerValue=JSON.stringify([h]);else{const y=p.jsonTriggerValue,g=JSON.parse(y),$=Array.isArray(g)?g:[g];$.push(h),p.jsonTriggerValue=JSON.stringify($)}}catch(y){LOG$c.error("Failed to parse or stringify widgetState.jsonTriggerValue:",y),p.jsonTriggerValue=JSON.stringify([p.jsonTriggerValue,h])}}return this.pendingTriggerIds.add(o.id),new Promise(h=>{this.triggerFlushResolvers.push(h),this.scheduleFlush(t)})}getBoolValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="boolValue")return e.boolValue}setBoolValue(o,e,t,c){this.createWidgetState(o,t).boolValue=e,this.onWidgetValueChanged(o.formId,t,c)}getIntValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="intValue")return requireNumberInt(e.intValue)}setIntValue(o,e,t,c){this.createWidgetState(o,t).intValue=e,this.onWidgetValueChanged(o.formId,t,c)}getDoubleValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="doubleValue")return e.doubleValue}setDoubleValue(o,e,t,c){this.createWidgetState(o,t).doubleValue=e,this.onWidgetValueChanged(o.formId,t,c)}getStringValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="stringValue")return e.stringValue}setStringValue(o,e,t,c){this.createWidgetState(o,t).stringValue=e,this.onWidgetValueChanged(o.formId,t,c)}setStringArrayValue(o,e,t,c){this.createWidgetState(o,t).stringArrayValue=new StringArray({data:e}),this.onWidgetValueChanged(o.formId,t,c)}getStringArrayValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="stringArrayValue"&¬NullOrUndefined(e.stringArrayValue)&¬NullOrUndefined(e.stringArrayValue.data))return e.stringArrayValue.data}getDoubleArrayValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="doubleArrayValue"&¬NullOrUndefined(e.doubleArrayValue)&¬NullOrUndefined(e.doubleArrayValue.data))return e.doubleArrayValue.data}setDoubleArrayValue(o,e,t,c){this.createWidgetState(o,t).doubleArrayValue=new DoubleArray({data:e}),this.onWidgetValueChanged(o.formId,t,c)}getIntArrayValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="intArrayValue"&¬NullOrUndefined(e.intArrayValue)&¬NullOrUndefined(e.intArrayValue.data))return e.intArrayValue.data.map(requireNumberInt)}setIntArrayValue(o,e,t,c){this.createWidgetState(o,t).intArrayValue=new SInt64Array({data:e}),this.onWidgetValueChanged(o.formId,t,c)}getJsonValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="jsonValue")return e.jsonValue}setJsonValue(o,e,t,c){this.createWidgetState(o,t).jsonValue=JSON.stringify(e),this.onWidgetValueChanged(o.formId,t,c)}setArrowValue(o,e,t,c){this.createWidgetState(o,t).arrowValue=e,this.onWidgetValueChanged(o.formId,t,c)}getArrowValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="arrowValue"&¬NullOrUndefined(e.arrowValue))return e.arrowValue}setBytesValue(o,e,t,c){this.createWidgetState(o,t).bytesValue=e,this.onWidgetValueChanged(o.formId,t,c)}getBytesValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="bytesValue")return e.bytesValue}setFileUploaderStateValue(o,e,t,c){this.createWidgetState(o,t).fileUploaderStateValue=e,this.onWidgetValueChanged(o.formId,t,c)}getFileUploaderStateValue(o){const e=this.getWidgetState(o);if(notNullOrUndefined(e)&&e.value==="fileUploaderStateValue")return e.fileUploaderStateValue}onWidgetValueChanged(o,e,t){isValidFormId(o)?this.syncFormsWithPendingChanges():e.fromUi&&this.scheduleFlush(t)}syncFormsWithPendingChanges(){const o=new Set;
139this.forms.forEach((e,t)=>{e.hasPendingChanges&&o.add(t)}),this.updateFormsData(e=>{e.formsWithPendingChanges=o})}sendUpdateWidgetsMessage(o,e=void 0){this.props.sendRerunBackMsg(this.widgetStates.createWidgetStatesMsg(),o,void 0,e)}getActiveWidgetStates(o){const e=new WidgetStates;return this.widgetStates.forEach(t=>{o.has(t.id)&&e.widgets.push(t)}),e}removeInactive(o){this.widgetStates.removeInactive(o),this.forms.forEach(e=>e.widgetStates.removeInactive(o)),this.elementStates.forEach((e,t)=>{o.has(t)||this.deleteElementState(t)})}createWidgetState(o,e){return(isValidFormId(o.formId)&&e.fromUi?this.getOrCreateFormState(o.formId).widgetStates:this.widgetStates).createState(o.id)}getWidgetState(o){if(isValidFormId(o.formId)){const e=this.forms.get(o.formId)?.widgetStates.getState(o.id);if(notNullOrUndefined(e))return e}return this.widgetStates.getState(o.id)}deleteWidgetState(o){this.widgetStates.deleteState(o)}getOrCreateFormState(o){let e=this.forms.get(o);return notNullOrUndefined(e)||(e=new FormState,this.forms.set(o,e)),e}setFormsWithUploadsInProgress(o){this.updateFormsData(e=>{e.formsWithUploads=o})}allowFormEnterToSubmit(o){if(!isValidFormId(o))return!1;const e=this.forms.get(o);if(e&&!e.enterToSubmit)return!1;const c=this.formsData.submitButtons.get(o)?.[0];return c?!c.disabled:!1}addSubmitButton(o,e){const t=this.formsData.submitButtons.get(o);if(t===void 0)this.setSubmitButtons(o,[e]);else{const c=Object.assign([],t);c.push(e),this.setSubmitButtons(o,c)}}removeSubmitButton(o,e){const t=this.formsData.submitButtons.get(o);if(t!==void 0){const c=Object.assign([],t),p=c.indexOf(e,0);p>-1&&c.splice(p,1),this.setSubmitButtons(o,c)}}setSubmitButtons(o,e){if(e.length<0)throw new Error(`Bad submitButtons length ${e.length} (must be >= 0)`);this.updateFormsData(t=>{t.submitButtons.set(o,e)})}updateFormsData(o){const e=produce(this.formsData,o);this.formsData!==e&&(this.formsData=e,this.props.formsDataChanged(this.formsData))}getElementState(o,e){return this.elementStates.get(o)?.get(e)}setElementState(o,e,t){this.elementStates.has(o)||this.elementStates.set(o,new Map),this.elementStates.get(o).set(e,t)}deleteElementState(o,e){notNullOrUndefined(e)?this.elementStates.get(o)?.delete(e):this.elementStates.delete(o)}scheduleFlush(o){this.scheduledFragmentId===void 0&&(this.scheduledFragmentId=o),this.scheduledFragmentId!==void 0&&o!==void 0&&o!==this.scheduledFragmentId&&!this.hasFragmentIdConflict&&(LOG$c.warn("Unexpected state: Multiple different fragmentIds detected in a single batch of widget updates. Proceeding with flushing updates using fragmentId '%s' for this batch.",this.scheduledFragmentId),this.hasFragmentIdConflict=!0),!this.flushScheduled&&(this.flushScheduled=!0,setTimeout(()=>{this.sendUpdateWidgetsMessage(this.scheduledFragmentId),this.pendingTriggerIds.forEach(e=>this.deleteWidgetState(e)),this.pendingTriggerIds.clear(),this.triggerFlushResolvers.forEach(e=>e()),this.triggerFlushResolvers=[],this.flushScheduled=!1,this.scheduledFragmentId=void 0,this.hasFragmentIdConflict=!1},0))}}function requireNumberInt(n){if(typeof n=="number")return n;const o=protobufjsExports.util.LongBits.from(n).toNumber();if(Number.isSafeInteger(o))return o;throw new Error(`value ${n} cannot be converted to number without a loss of precision!`)}class ReactHotkeys extends React.Component{constructor(o){super(o),this.isKeyDown=!1,this.handle=void 0,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.handleKeyUpEvent=this.handleKeyUpEvent.bind(this),this.handle={}}componentDidMount(){var{filter:o,splitKey:e}=this.props;o&&(hotkeys.filter=o),hotkeys.unbind(this.props.keyName),hotkeys(this.props.keyName,{splitKey:e},this.onKeyDown),document&&document.body.addEventListener("keyup",this.handleKeyUpEvent)}componentWillUnmount(){hotkeys.unbind(this.props.keyName),this.isKeyDown=!0,this.handle={},document&&document.body.removeEventListener("keyup",this.handleKeyUpEvent)}onKeyUp(o,e){var{onKeyUp:t,disabled:c}=this.props;!c&&t&&t(e.shortcut,o,e)}onKeyDown(o,e){var{onKeyDown:t,allowRepeat:c,disabled:p}=this.props;this.isKeyDown&&!c||(this.isKeyDown=!0,this.handle=e,!p&&t&&t(e.shortcut,o,e))}handleKeyUpEvent(o){this.isKeyDown&&(this.isKeyDown=!1,!(this.props.keyName&&this.props.keyName.indexOf(this.handle.shortcut)<0)&&(this.onKeyUp(o,this.handle),this.handle={}))}render(){return this.props.children||null}}
139ReactHotkeys.defaultProps={filter(n){var o=n.target||n.srcElement,e=o.tagName;return!(o.isContentEditable||e==="INPUT"||e==="SELECT"||e==="TEXTAREA")}};ReactHotkeys.propTypes={keyName:propTypesExports.string,filter:propTypesExports.func,onKeyDown:propTypesExports.func,onKeyUp:propTypesExports.func,disabled:propTypesExports.bool,splitKey:propTypesExports.string};function EventContainer({children:n}){const o=useEmotionTheme();return jsxs(Fragment,{children:[jsx$1(ToasterContainer,{placement:PLACEMENT$1.topRight,autoHideDuration:4*1e3,overrides:{Root:{style:{top:o.sizes.headerHeight,zIndex:o.zIndices.toast},props:{"data-testid":"stToastContainer",className:"stToastContainer"}}}}),n]})}const StyledLogoContainer=styled("div",{target:"e1o8oa9v0"})(({theme:n})=>({marginLeft:n.spacing.lg})),StyledHeader$2=styled("header",{target:"e1o8oa9v1"})(({theme:n,isTransparentBackground:o})=>({position:"absolute",top:0,left:0,right:0,display:"flex",alignItems:"center",height:n.sizes.headerHeight,minHeight:n.sizes.headerHeight,width:"100%",background:o?"transparent":n.colors.bgColor,outline:"none",zIndex:n.zIndices.header,pointerEvents:o?"none":"auto",fontSize:n.fontSizes.sm,"@media print":{position:"absolute",background:"transparent","& *":{display:"none !important"},[`& ${StyledLogoContainer}, & ${StyledLogoContainer} *, & :has(${StyledLogoContainer})`]:{display:"flex !important"},[`& ${StyledLogoContainer} img`]:{display:"block !important"}}})),StyledHeaderToolbar=styled("div",{target:"e1o8oa9v2"})(({theme:n})=>({display:"flex",alignItems:"center",height:"100%",width:"100%",padding:0,pointerEvents:"auto",position:"relative",zIndex:n.zIndices.header})),StyledOpenSidebarButton=styled("div",{target:"e1o8oa9v3"})(({theme:n})=>({display:"flex",alignItems:"center",justifyContent:"center",marginLeft:n.spacing.lg,"@media print":{display:"none"}})),StyledHeaderContent=styled("div",{target:"e1o8oa9v4"})(()=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",margin:0,border:0})),StyledHeaderLeftSection=styled("div",{target:"e1o8oa9v5"})(()=>({display:"flex",alignItems:"center",flexShrink:0})),StyledHeaderRightSection=styled("div",{target:"e1o8oa9v6"})(({theme:n})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"flex-end",marginLeft:"auto",height:"100%",minWidth:n.sizes.headerRightContentMaxWidth,marginRight:n.spacing.lg})),Header=({hasSidebar:n,isSidebarOpen:o,onToggleSidebar:e,navigation:t,rightContent:c,logoComponent:p,showToolbar:h})=>{const{activeTheme:y}=reactExports.useContext(ThemeContext),g=p&&!o,$=n&&!o,E=h&&c,A=g||$||t||E;return jsx$1(StyledHeader$2,{className:"stAppHeader","data-testid":"stHeader",isTransparentBackground:!A,children:A?jsx$1(StyledHeaderToolbar,{className:"stAppToolbar","data-testid":"stToolbar",theme:y.emotion,children:jsxs(StyledHeaderContent,{children:[jsxs(StyledHeaderLeftSection,{children:[g?jsx$1(StyledLogoContainer,{children:p}):null,$&&jsx$1(StyledOpenSidebarButton,{children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,onClick:e,"data-testid":"stExpandSidebarButton",children:jsx$1(DynamicIcon,{size:"xl",iconValue:":material/keyboard_double_arrow_right:",color:y.emotion.colors.fadedText60})})})]}),t,E?jsx$1(StyledHeaderRightSection,{children:c}):null]})}):null})},getSidebarHorizontalSpacing=(n,o)=>`max( 140 ${o}px, 141 calc(${n.spacing.xl} - ${o}px) 142 )`,StyledSidebar=styled("section",{target:"e6f82ta0"})(({theme:n,isCollapsed:o,adjustTop:e,sidebarWidth:t,windowInnerWidth:c})=>{const p=o?0:Math.min(200,c),h=o?0:Math.min(600,c*.9);return{position:"relative",top:e?n.sizes.headerDecorationHeight:n.spacing.none,backgroundColor:n.colors.bgColor,color:n.colors.bodyText,colorScheme:hasLightBackgroun
142dColor(n)?"light":"dark",zIndex:n.zIndices.header+1,minWidth:p,maxWidth:h,transform:o?`translateX(-${t}px)`:"none",transition:"transform 300ms, min-width 300ms, max-width 300ms","&:focus":{outline:"none"},[`@media (max-width: ${n.breakpoints.md})`]:{boxShadow:`-2rem 0 2rem 2rem ${o?"transparent":"#00000029"}`},"@media print":{display:o?"none":"initial",height:"auto !important",maxHeight:"99%",boxShadow:"none"}}}),StyledSidebarUserContent=styled("div",{target:"e6f82ta1"})(({hasPageNavAbove:n,theme:o})=>({paddingTop:n?o.spacing.twoXL:0,paddingBottom:o.sizes.sidebarTopSpace})),StyledSidebarContent=styled("div",{target:"e6f82ta2"})(({theme:n,scrollbarGutterSize:o})=>({position:"relative",height:"100%",width:"100%",overflow:"auto",scrollbarGutter:"stable both-edges",paddingLeft:getSidebarHorizontalSpacing(n,o),paddingRight:getSidebarHorizontalSpacing(n,o)})),RESIZE_HANDLE_WIDTH="8px",StyledResizeHandle=styled("div",{target:"e6f82ta3"})(({theme:n})=>({position:"absolute",width:RESIZE_HANDLE_WIDTH,height:"100%",cursor:"col-resize",zIndex:n.zIndices.sidebarMobile,backgroundImage:n.showSidebarBorder?`linear-gradient(to right, transparent 20%, ${n.colors.borderColor} 28%, transparent 36%)`:"none","&:hover":{backgroundImage:`linear-gradient(to right, transparent 20%, ${n.colors.borderColor} 28%, transparent 44%)`}})),StyledSidebarHeaderContainer=styled("div",{target:"e6f82ta4"})(({theme:n})=>({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:n.spacing.lg,height:n.sizes.headerHeight})),StyledLogoLink=styled("a",{target:"e6f82ta5"})({"&:hover":{opacity:"0.7"}});function translateLogoHeight(n,o){return o==="small"?n.sizes.smallLogoHeight:o==="large"?n.sizes.largeLogoHeight:n.sizes.defaultLogoHeight}const StyledLogo=styled("img",{target:"e6f82ta6"})(({theme:n,size:o})=>({height:translateLogoHeight(n,o),marginTop:o=="small"?n.spacing.xs:n.spacing.twoXS,marginBottom:o=="small"?n.spacing.xs:n.spacing.twoXS,marginLeft:n.spacing.none,zIndex:n.zIndices.header,objectFit:"contain",objectPosition:"left",verticalAlign:"middle",maxWidth:"100%"})),StyledNoLogoSpacer=styled("div",{target:"e6f82ta7"})(({theme:n})=>({height:n.sizes.largeLogoHeight})),StyledCollapseSidebarButton=styled("div",{target:"e6f82ta8"})(({showSidebarCollapse:n,theme:o})=>({display:"inline",visibility:n?"visible":"hidden",marginLeft:o.spacing.sm,transition:"left 300ms",transitionDelay:"left 300ms",color:hasLightBackgroun
142dColor(o)?o.colors.fadedText60:o.colors.bodyText,lineHeight:"0","@media print":{visibility:"hidden"},[`@media (max-width: ${o.breakpoints.sm})`]:{visibility:"visible"}})),LOG$b=loglevelExports.getLogger("LogoComponent"),LogoComponent=({appLogo:n,endpoints:o,collapsed:e=!1,componentName:t="Logo",dataTestId:c="stLogo"})=>{const{resourceCrossOriginMode:p}=reactExports.useContext(LibConfigContext);if(!n)return null;const h=A=>{LOG$b.error(`Client Error: ${t} source error - ${A}`),o.sendClientErrorToHost(t,"Logo source failed to load","onerror triggered",A)},y=e&&n.iconImage?n.iconImage:n.image,g=o.buildMediaURL(y),$=getCrossOriginAttribute(p,y),E=jsx$1(StyledLogo,{src:g,size:n.size,alt:"Logo",className:"stLogo","data-testid":c,onError:A=>h(g),crossOrigin:$});return n.link?jsx$1(StyledLogoLink,{href:n.link,target:"_blank",rel:"noreferrer","data-testid":"stLogoLink",children:E}):jsx$1("div",{children:E})},getNavTextColor=(n,o,e=!1,t)=>{if(e)return n.colors.fadedText40;if(t)return n.colors.bodyText;const c=hasLightBackgroundColor(n);return o?n.colors.bodyText:c?transparentize(n.colors.bodyText,.2):transparentize(n.colors.bodyText,.25)},StyledSidebarNavContainer=styled("div",{target:"eof1nuh0"})(({theme:n})=>({position:"relative",fontFamily:n.genericFonts.bodyFont})),StyledSidebarNavItems=styled("ul",{target:"eof1nuh1"})(({theme:n})=>({listStyle:"none",margin:n.spacing.none,paddingBottom:n.spacing.threeXS,paddingTop:n.spacing.none,paddingRight:n.spacing.none,paddingLeft:n.spacing.none})),StyledSidebarNavLinkContainer=styled("div",{target:"eof1nuh2"})(({disabled:n})=>({display:"flex",flexDirection:"column",cursor:n?"not-allowed":"pointer"})),StyledSidebarNavIcon=styled("span",{target:"eof1nuh3"})(({theme:n,isActive:o})=>({display:"inline-flex",span:{fontWeight:o?n.fontWeights.bold:n.fontWeights.normal}})),StyledSidebarNavLinkListItem=styled("li",{target:"eof1nuh4"})(({theme:n})=>({marginTop:n.spacing.threeXS,marginBottom:n.spacing.threeXS})),StyledSidebarNavLink=styled("a",{target:"eof1nuh5"})(({theme:n,isActive:o,disabled:e})=>{const t={textDecoration:"none",fontWeight:o?n.fontWeights.bold:n.fontWeights.normal};return{...t,display:"flex",flexDirection:"row",alignItems:"center",gap:n.spacing.sm,borderRadius:n.radii.default,paddingLeft:n.spacing.sm,paddingRight:n.spacing.sm,marginTop:n.spacing.threeXS,marginBottom:n.spacing.threeXS,lineHeight:n.lineHeights.menuItem,color:getNavTextColor(n,o),backgroundColor:o?n.colors.darkenedBgMix25:"transparent",...e&&{pointerEvents:"none"},"&:hover":{backgroundColor:n.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{...t},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"@media print":{paddingLeft:n.spacing.none}}}),StyledSidebarLinkText=styled("span",{target:"eof1nuh6"})(({isActive:n,theme:o,disabled:e,isTopNav:t,label:c})=>({color:getNavTextColor(o,n,e,t),fontSize:o.fontSizes.sm,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell","&::after":{content:`"${c}"`,fontWeight:o.fontWeights.bold,visibility:"hidden",display:"block",width:"fit-content",height:0}})),StyledChevronContainer=styled("div",{target:"eof1nuh7"})(({isExpanded:n})=>({visibility:"hidden",display:"flex",alignItems:"center",justifyContent:"center",transform:n?"rotate(0deg)":"rotate(-90deg)",transition:"transform 200ms ease",flexShrink:0})),StyledNavSectionHeaderText=styled("span",{target:"eof1nuh8"})(()=>({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0})),StyledSidebarNavSectionHeader=styled("header",{target:"eof1nuh9"})(({theme:n})=>({fontSize:n.fontSizes.sm,fontWeight:n.fontWeights.semiBold,color:getNavTextColor(n,!1),lineHeight:n.lineHeights.small,paddingRight:n.spacing.sm,marginTop:n.spacing.sm,marginBottom:n.spacing.twoXS,display:"flex",flexDirection:"row",alignItems:"center",gap:n.spacing.sm,cursor:"pointer",userSelect:"none","&:hover":{[`& > ${StyledChevronContainer}`]:{visibility:"visible"}}})),StyledViewButton=styled("button",{target:"eof1nuh10"})(({theme:n})=>({fontSize:n.fontSizes.sm,fontFamily:"inherit",lineHeight:n.lineHeights.base,color:getNavTextColor(n,!0),backgroundColor:n.colors.transparent,border:"none",borderRadius:n.radii.default,marginTop:n.spacing.twoXS,marginLeft:n.spacing.none,marginBottom:n.spacing.none,marginRight:n.spacing.none,padding:`${n.spacing.threeXS} ${n.spacing.sm}`,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{backgroundColor:n.colors.darkenedBgMix15}})),StyledSidebarNavSeparator=styled("div",{target:"eof1nuh11"})(({theme:n})=>({paddingTop:n.spacing.lg,borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),StyledNavSectionContainer=styled("div",{target:"eof1nuh12"})(({theme:n})=>({"&:not(:first-child)":{marginTop:n.spacing.lg}})),StyledOverflowContainer=styled("div",{target:"eof1nuh13"})(({theme:n})=>({display:"flex",alignItems:"center",width:"100%",flexShrink:1,overflow:"hidden",padding:`0 ${n.spacing.lg}`})),StyledNavSection=styled("div",{target:"eof1nuh14"})(({theme:n,isOpen:o})=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",position:"relative",lineHeight:n.lineHeights.menuItem,fontSize:n.fontSizes.sm,padding:`0 ${n.spacing.sm}`,color:getNavTextColor(n,!1,!1,!0),borderRadius:n.radii.default,marginRight:n.spacing.twoXS,"&:not(:first-of-type)":{marginLeft:n.spacing.twoXS},...o?{backgroundColor:n.colors.darkenedBgMix25}:{},"&:hover":{backgroundColor:n.colors.darkenedBgMix15}})),StyledTopNavLinkContainer=styled("div",{target:"eof1nuh15"})(({theme:n})=>({marginRight:n.spacing.twoXS,"&:not(:first-of-type)":{marginLeft:n.spacing.twoXS}})),StyledTopNavSidebarNavLinkContainer=styled("div",{target:"eof1nuh16"})(({theme:n})=>({margin:`${n.spacing.twoXS} ${n.spacing.sm}`})),StyledNavSectionText=styled("span",{target:"eof1nuh17"})(()=>({whiteSpace:"nowrap"})),StyledSectionName=styled("div",{target:"eof1nuh18"})(({theme:n})=>({marginLeft:n.spacing.sm,marginTop:n.spacing.sm,marginBottom:n.spacing.sm})),StyledPopoverContent=styled("div",{target:"eof1nuh19"})(({theme:n})=>({padding:`${n.spacing.twoXS} 0`,fontSize:n.fontSizes.sm})),StyledIconContainer=styled("div",{target:"eof1nuh20"})(({theme:n})=>({marginLeft:n.spacing.twoXS})),NavSection=({header:n="",children:o,isExpanded:e,onToggle:t})=>jsxs(StyledNavSectionContainer,{children:[n&&jsxs(StyledSidebarNavSectionHeader,{"data-testid":"stNavSectionHeader",onClick:t,isExpanded:e,children:[jsx$1(StyledNavSectionHeaderText,{children:n}),jsx$1(StyledChevronContainer,{isExpanded:e,children:jsx$1(DynamicIcon,{iconValue:":material/expand_more:",size:"lg"})})]}),e&&o]}),SidebarNavLink=({isActive:n,pageUrl:o,icon:e,onClick:t,isTopNav:c,isInDropdown:p,children:h,widgetsDisabled:y})=>{const g=useEmotionTheme(),$=y;let E;return c&&p?E="stTopNavDropdownLink":c?E="stTopNavLink":E="stSidebarNavLink",jsx$1(StyledSidebarNavLinkContainer,{disabled:$,"data-testid":c?"stTopNavLinkContainer":"stSidebarNavLinkContainer",children:jsxs(StyledSidebarNavLink,{"data-testid":E,isActive:n,disabled:$,href:o,onClick:t,"aria-current":n?"page":void 0,children:[e?.length?jsx$1(StyledSidebarNavIcon,{isActive:n,children:jsx$1(DynamicIcon,{size:"base",iconValue:e,color:!n&&isMaterialIcon(e)?g.colors.fadedText60:g.colors.bodyText})}):null,jsx$1(StyledSidebarLinkText,{isActive:n,disabled:$,isTopNav:c,label:h,children:h})]})})};function shouldShowNavigation(n,o){return n.length<=1?!1:(o.length===0||o.length>1,!0)}function groupPagesBySection(n){return groupBy(n,o=>o.sectionHeader||"")}function hasNonEmptySections(n){return Object.keys(n).some(o=>o!=="")}function processNavigationStructure(n){if(!hasNonEmptySections(n))return{individualPages:Object.values(n).flat(),sections:{}};const e=n[""]||[],t={};
142return Object.entries(n).forEach(([c,p])=>{c&&c!==""&&c!=="undefined"&&(t[c]=p)}),{individualPages:e,sections:t}}const COLLAPSE_THRESHOLD=12,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED=10,LOG$a=loglevelExports.getLogger("SidebarNav");function NavLink({pageUrl:n,page:o,isActive:e,onClick:t,widgetsDisabled:c}){const p=o.pageName;return jsx$1(StyledSidebarNavLinkListItem,{children:jsx$1(SidebarNavLink,{isActive:e,pageUrl:n,icon:o.icon,onClick:t,widgetsDisabled:c,children:p})})}function generateNavSections(n,o,e,t,c,p){const h=[];let y=p;return Object.entries(n).forEach(([g,$])=>{const E=[...$];let A=E;const N=t[g];if(o){const H=NUM_PAGES_TO_SHOW_WHEN_COLLAPSED-y;H<=0?A=[]:E.length>H&&(A=E.slice(0,H))}N&&(y+=A.length),A.length>0&&h.push(jsx$1(NavSection,{header:g,isExpanded:N,onToggle:()=>c(g),children:A.map(e)},g))}),{sections:h,updatedPageCount:y}}const SidebarNav=({endpoints:n,collapseSidebar:o,hasSidebarElements:e,widgetsDisabled:t})=>{const[c,p]=reactExports.useState(!1),{expandSidebarNav:h}=reactExports.useContext(SidebarConfigContext),{pageLinkBaseUrl:y,appPages:g,onPageChange:$,currentPageScriptHash:E}=reactExports.useContext(NavigationContext),A=`stSidebarSectionsState-${y}`,[N,H]=reactExports.useState(null),Z=reactExports.useMemo(()=>processNavigationStructure(groupPagesBySection(g)),[g]),X=reactExports.useMemo(()=>{if(!(Object.keys(Z.sections).length>0))return g.length;let Ge=Z.individualPages.length;return Object.entries(Z.sections).forEach(([je,De])=>{N?.[je]&&(Ge+=De.length)}),Ge},[g.length,N,Z]);reactExports.useEffect(()=>{const Be=localStorageAvailable()&&window.localStorage.getItem("sidebarNavState")==="expanded";!c&&(h||Be)&&p(!0)},[c,h]),reactExports.useEffect(()=>{if(localStorageAvailable()){const Be=window.localStorage.getItem(A);let Ge={};if(Be)try{Ge=JSON.parse(Be)}catch(De){Ge={},LOG$a.warn("Could not parse sidebar nav state from localStorage",De)}const je=Object.keys(Z.sections).reduce((De,Ue)=>(De[Ue]=Ge[Ue]??!0,De),{});H(je)}else{const Be=Object.keys(Z.sections).reduce((Ge,je)=>(Ge[je]=!0,Ge),{});H(Be)}},[Z.sections,A]),reactExports.useEffect(()=>{localStorageAvailable()&&N&&window.localStorage.setItem(A,JSON.stringify(N))},[N,A]);const be=reactExports.useCallback(Be=>{H(Ge=>Ge?{...Ge,[Be]:!Ge[Be]}:null)},[]),we=reactExports.useCallback(()=>{const Be=!c;localStorageAvailable()&&(Be?window.localStorage.setItem("sidebarNavState","expanded"):window.localStorage.removeItem("sidebarNavState")),p(Be)},[c]),$e=reactExports.useCallback((Be,Ge)=>{const je=n.buildAppPageURL(y,Be),De=Be.pageScriptHash===E;return jsx$1(NavLink,{pageUrl:je,page:Be,isActive:De,onClick:Ue=>{Ue.preventDefault(),$(Be.pageScriptHash),isMobile()&&o()},widgetsDisabled:t},`${Be.pageName}-${Ge}`)},[o,E,n,$,y,t]);if(!N)return null;const Ce=[],Ie=e&&X>COLLAPSE_THRESHOLD&&!h,Ne=Ie&&!c;let Fe=0;if(Z.individualPages.length>0){const Be=Ne?Z.individualPages.slice(0,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED):Z.individualPages;Ce.push(...Be.map($e)),Fe+=Be.length}if(Object.keys(Z.sections).length>0){const Be=generateNavSections(Z.sections,Ne,$e,N,be,Fe);Ce.push(...Be.sections)}return jsxs(StyledSidebarNavContainer,{"data-testid":"stSidebarNav",children:[jsx$1(StyledSidebarNavItems,{"data-testid":"stSidebarNavItems",children:Ce}),Ie&&jsx$1(StyledViewButton,{onClick:we,"data-testid":"stSidebarNavViewButton",children:c?"View less":`View ${X-NUM_PAGES_TO_SHOW_WHEN_COLLAPSED} more`}),e&&jsx$1(StyledSidebarNavSeparator,{"data-testid":"stSidebarNavSeparator"})]})};function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)({}).hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$2.apply(null,arguments)}function _typeof$1(n){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$1(n)}function toPrimitive$1(n,o){if(_typeof$1(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,o);if(_typeof$1(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}
142return(o==="string"?String:Number)(n)}function toPropertyKey$1(n){var o=toPrimitive$1(n,"string");return _typeof$1(o)=="symbol"?o:o+""}function _defineProperty$2(n,o,e){return(o=toPropertyKey$1(o))in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function ownKeys$3(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread2$1(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$3(Object(e),!0).forEach(function(t){_defineProperty$2(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$3(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _arrayWithHoles(n){if(Array.isArray(n))return n}function _iterableToArrayLimit(n,o){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t,c,p,h,y=[],g=!0,$=!1;try{if(p=(e=e.call(n)).next,o!==0)for(;!(g=(t=p.call(e)).done)&&(y.push(t.value),y.length!==o);g=!0);}catch(E){$=!0,c=E}finally{try{if(!g&&e.return!=null&&(h=e.return(),Object(h)!==h))return}finally{if($)throw c}}return y}}function _arrayLikeToArray(n,o){(o==null||o>n.length)&&(o=n.length);for(var e=0,t=Array(o);e<o;e++)t[e]=n[e];return t}function _unsupportedIterableToArray(n,o){if(n){if(typeof n=="string")return _arrayLikeToArray(n,o);var e={}.toString.call(n).slice(8,-1);return e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set"?Array.from(n):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_arrayLikeToArray(n,o):void 0}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 143In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(n,o){return _arrayWithHoles(n)||_iterableToArrayLimit(n,o)||_unsupportedIterableToArray(n,o)||_nonIterableRest()}function _objectWithoutPropertiesLoose$1(n,o){if(n==null)return{};var e={};for(var t in n)if({}.hasOwnProperty.call(n,t)){if(o.indexOf(t)!==-1)continue;e[t]=n[t]}return e}function _objectWithoutProperties$2(n,o){if(n==null)return{};var e,t,c=_objectWithoutPropertiesLoose$1(n,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(t=0;t<p.length;t++)e=p[t],o.indexOf(e)===-1&&{}.propertyIsEnumerable.call(n,e)&&(c[e]=n[e])}return c}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)({}).hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$1.apply(null,arguments)}var REACT_ELEMENT_TYPE_18=Symbol.for("react.element"),REACT_ELEMENT_TYPE_19=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function isFragment(n){return n&&_typeof$g(n)==="object"&&(n.$$typeof===REACT_ELEMENT_TYPE_18||n.$$typeof===REACT_ELEMENT_TYPE_19)&&n.type===REACT_FRAGMENT_TYPE}function toArray(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=[];return React.Children.forEach(n,function(t){t==null&&!o.keepEmpty||(Array.isArray(t)?e=e.concat(toArray(t)):isFragment(t)&&t.props?e=e.concat(toArray(t.props.children,o)):e.push(t))}),e}function _typeof(n){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(n)}function toPrimitive(n,o){if(_typeof(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,o);if(_typeof(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(n)}function toPropertyKey(n){var o=toPrimitive(n,"string");return _typeof(o)=="symbol"?o:o+""}function _defineProperty$1(n,o,e){return(o=toPropertyKey(o))in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function ownKeys$2(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}
143function _objectSpread2(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$2(Object(e),!0).forEach(function(t){_defineProperty$1(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$2(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function isDOM(n){return n instanceof HTMLElement||n instanceof SVGElement}function getDOM(n){return n&&_typeof$g(n)==="object"&&isDOM(n.nativeElement)?n.nativeElement:isDOM(n)?n:null}function findDOMNode(n){var o=getDOM(n);if(o)return o;if(n instanceof React.Component){var e;return(e=ReactDOM.findDOMNode)===null||e===void 0?void 0:e.call(ReactDOM,n)}return null}var reactIs={exports:{}},reactIs_production_min={};var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),t=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),y=Symbol.for("react.server_context"),g=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),Z;Z=Symbol.for("react.module.reference");function X(be){if(typeof be=="object"&&be!==null){var we=be.$$typeof;switch(we){case n:switch(be=be.type,be){case e:case c:case t:case $:case E:return be;default:switch(be=be&&be.$$typeof,be){case y:case h:case g:case N:case A:case p:return be;default:return we}}case o:return we}}}return reactIs_production_min.ContextConsumer=h,reactIs_production_min.ContextProvider=p,reactIs_production_min.Element=n,reactIs_production_min.ForwardRef=g,reactIs_production_min.Fragment=e,reactIs_production_min.Lazy=N,reactIs_production_min.Memo=A,reactIs_production_min.Portal=o,reactIs_production_min.Profiler=c,reactIs_production_min.StrictMode=t,reactIs_production_min.Suspense=$,reactIs_production_min.SuspenseList=E,reactIs_production_min.isAsyncMode=function(){return!1},reactIs_production_min.isConcurrentMode=function(){return!1},reactIs_production_min.isContextConsumer=function(be){return X(be)===h},reactIs_production_min.isContextProvider=function(be){return X(be)===p},reactIs_production_min.isElement=function(be){return typeof be=="object"&&be!==null&&be.$$typeof===n},reactIs_production_min.isForwardRef=function(be){return X(be)===g},reactIs_production_min.isFragment=function(be){return X(be)===e},reactIs_production_min.isLazy=function(be){return X(be)===N},reactIs_production_min.isMemo=function(be){return X(be)===A},reactIs_production_min.isPortal=function(be){return X(be)===o},reactIs_production_min.isProfiler=function(be){return X(be)===c},reactIs_production_min.isStrictMode=function(be){return X(be)===t},reactIs_production_min.isSuspense=function(be){return X(be)===$},reactIs_production_min.isSuspenseList=function(be){return X(be)===E},reactIs_production_min.isValidElementType=function(be){return typeof be=="string"||typeof be=="function"||be===e||be===c||be===t||be===$||be===E||be===H||typeof be=="object"&&be!==null&&(be.$$typeof===N||be.$$typeof===A||be.$$typeof===p||be.$$typeof===h||be.$$typeof===g||be.$$typeof===Z||be.getModuleId!==void 0)},reactIs_production_min.typeOf=X,reactIs_production_min}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,reactIs.exports=requireReactIs_production_min()),reactIs.exports}var reactIsExports=requireReactIs();function useMemo(n,o,e){var t=reactExports.useRef({});return(!("value"in t.current)||e(t.current.condition,o))&&(t.current.value=n(),t.current.condition=o),t.current.value}var ReactMajorVersion=Number(reactExports.version.split(".")[0]),fillRef=function n(o,e){typeof o=="function"?o(e):_typeof$g(o)==="object"&&o&&"current"in o&&(o.current=e)},composeRef=function n(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];var c=e.filter(Boolean);return c.length<=1?c[0]:function(p){e.forEach(function(h){fillRef(h,p)})}},useComposeRef=function n(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return useMemo(function(){return composeRef.apply(void 0,e)},e,function(c,p){return c.length!==p.length||c.every(function(h,y){return h!==p[y]})})}
143,supportRef=function n(o){var e,t;if(!o)return!1;if(isReactElement(o)&&ReactMajorVersion>=19)return!0;var c=reactIsExports.isMemo(o)?o.type.type:o.type;return!(typeof c=="function"&&!((e=c.prototype)!==null&&e!==void 0&&e.render)&&c.$$typeof!==reactIsExports.ForwardRef||typeof o=="function"&&!((t=o.prototype)!==null&&t!==void 0&&t.render)&&o.$$typeof!==reactIsExports.ForwardRef)};function isReactElement(n){return reactExports.isValidElement(n)&&!isFragment(n)}var getNodeRef=function n(o){if(o&&isReactElement(o)){var e=o;return e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref}return null},CollectionContext=reactExports.createContext(null);function Collection(n){var o=n.children,e=n.onBatchResize,t=reactExports.useRef(0),c=reactExports.useRef([]),p=reactExports.useContext(CollectionContext),h=reactExports.useCallback(function(y,g,$){t.current+=1;var E=t.current;c.current.push({size:y,element:g,data:$}),Promise.resolve().then(function(){E===t.current&&(e?.(c.current),c.current=[])}),p?.(y,g,$)},[e,p]);return reactExports.createElement(CollectionContext.Provider,{value:h},o)}var MapShim=function(){if(typeof Map<"u")return Map;function n(o,e){var t=-1;return o.some(function(c,p){return c[0]===e?(t=p,!0):!1}),t}return function(){function o(){this.__entries__=[]}return Object.defineProperty(o.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),o.prototype.get=function(e){var t=n(this.__entries__,e),c=this.__entries__[t];return c&&c[1]},o.prototype.set=function(e,t){var c=n(this.__entries__,e);~c?this.__entries__[c][1]=t:this.__entries__.push([e,t])},o.prototype.delete=function(e){var t=this.__entries__,c=n(t,e);~c&&t.splice(c,1)},o.prototype.has=function(e){return!!~n(this.__entries__,e)},o.prototype.clear=function(){this.__entries__.splice(0)},o.prototype.forEach=function(e,t){t===void 0&&(t=null);for(var c=0,p=this.__entries__;c<p.length;c++){var h=p[c];e.call(t,h[1],h[0])}},o}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(n,o){var e=!1,t=!1,c=0;function p(){e&&(e=!1,n()),t&&y()}function h(){requestAnimationFrame$1(p)}function y(){var g=Date.now();if(e){if(g-c<trailingTimeout)return;t=!0}else e=!0,t=!1,setTimeout(h,o);c=g}return y}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function n(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return n.prototype.addObserver=function(o){~this.observers_.indexOf(o)||this.observers_.push(o),this.connected_||this.connect_()},n.prototype.removeObserver=function(o){var e=this.observers_,t=e.indexOf(o);~t&&e.splice(t,1),!e.length&&this.connected_&&this.disconnect_()},n.prototype.refresh=function(){var o=this.updateObservers_();o&&this.refresh()},n.prototype.updateObservers_=function(){var o=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return o.forEach(function(e){return e.broadcastActive()}),o.length>0},n.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(o){var e=o.propertyName,t=e===void 0?"":e,c=transitionKeys.some(function(p){return!!~t.indexOf(p)});c&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=ne
vendor: 4,579 bytes, line 143
143w n),this.instance_},n.instance_=null,n}(),defineConfigurable=function(n,o){for(var e=0,t=Object.keys(o);e<t.length;e++){var c=t[e];Object.defineProperty(n,c,{value:o[c],enumerable:!1,writable:!1,configurable:!0})}return n},getWindowOf=function(n){var o=n&&n.ownerDocument&&n.ownerDocument.defaultView;return o||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(n){return parseFloat(n)||0}function getBordersSize(n){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];return o.reduce(function(t,c){var p=n["border-"+c+"-width"];return t+toFloat(p)},0)}function getPaddings(n){for(var o=["top","right","bottom","left"],e={},t=0,c=o;t<c.length;t++){var p=c[t],h=n["padding-"+p];e[p]=toFloat(h)}return e}function getSVGContentRect(n){var o=n.getBBox();return createRectInit(0,0,o.width,o.height)}function getHTMLElementContentRect(n){var o=n.clientWidth,e=n.clientHeight;if(!o&&!e)return emptyRect;var t=getWindowOf(n).getComputedStyle(n),c=getPaddings(t),p=c.left+c.right,h=c.top+c.bottom,y=toFloat(t.width),g=toFloat(t.height);if(t.boxSizing==="border-box"&&(Math.round(y+p)!==o&&(y-=getBordersSize(t,"left","right")+p),Math.round(g+h)!==e&&(g-=getBordersSize(t,"top","bottom")+h)),!isDocumentElement(n)){var $=Math.round(y+p)-o,E=Math.round(g+h)-e;Math.abs($)!==1&&(y-=$),Math.abs(E)!==1&&(g-=E)}return createRectInit(c.left,c.top,y,g)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(n){return n instanceof getWindowOf(n).SVGGraphicsElement}:function(n){return n instanceof getWindowOf(n).SVGElement&&typeof n.getBBox=="function"}}();function isDocumentElement(n){return n===getWindowOf(n).document.documentElement}function getContentRect(n){return isBrowser?isSVGGraphicsElement(n)?getSVGContentRect(n):getHTMLElementContentRect(n):emptyRect}function createReadOnlyRect(n){var o=n.x,e=n.y,t=n.width,c=n.height,p=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,h=Object.create(p.prototype);return defineConfigurable(h,{x:o,y:e,width:t,height:c,top:e,right:o+t,bottom:c+e,left:o}),h}function createRectInit(n,o,e,t){return{x:n,y:o,width:e,height:t}}var ResizeObservation=function(){function n(o){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=o}return n.prototype.isActive=function(){var o=getContentRect(this.target);return this.contentRect_=o,o.width!==this.broadcastWidth||o.height!==this.broadcastHeight},n.prototype.broadcastRect=function(){var o=this.contentRect_;return this.broadcastWidth=o.width,this.broadcastHeight=o.height,o},n}(),ResizeObserverEntry=function(){function n(o,e){var t=createReadOnlyRect(e);defineConfigurable(this,{target:o,contentRect:t})}return n}(),ResizeObserverSPI=function(){function n(o,e,t){if(this.activeObservations_=[],this.observations_=new MapShim,typeof o!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=o,this.controller_=e,this.callbackCtx_=t}return n.prototype.observe=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof getWindowOf(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(o)||(e.set(o,new ResizeObservation(o)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof getWindowOf(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(o)&&(e.delete(o),e.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var o=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&o.activeObservations_.push(e)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var o=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new ResizeObserverEntry(t.target,t.broadcastRect())});this.callback_.call(o,e,o),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$2=function(){function n(o){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");
143if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=ResizeObserverController.getInstance(),t=new ResizeObserverSPI(o,e,this);observers.set(this,t)}return n}();["observe","unobserve","disconnect"].forEach(function(n){ResizeObserver$2.prototype[n]=function(){var o;return(o=observers.get(this))[n].apply(o,arguments)}});var index=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$2}(),elementListeners=new Map;function onResize(n){n.forEach(function(o){var e,t=o.target;(e=elementListeners.get(t))===null||e===void 0||e.forEach(function(c){return c(t)})})}var resizeObserver=new index(onResize);function observe(n,o){elementListeners.has(n)||(elementListeners.set(n,new Set),resizeObserver.observe(n)),elementListeners.get(n).add(o)}function unobserve(n,o){elementListeners.has(n)&&(elementListeners.get(n).delete(o),elementListeners.get(n).size||(resizeObserver.unobserve(n),elementListeners.delete(n)))}function _classCallCheck(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,toPropertyKey(t.key),t)}}function _createClass(n,o,e){return o&&_defineProperties(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function _setPrototypeOf(n,o){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(n,o)}function _inherits(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),o&&_setPrototypeOf(n,o)}function _getPrototypeOf(n){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(n)}function _isNativeReflectConstruct(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!n})()}function _assertThisInitialized(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _possibleConstructorReturn(n,o){if(o&&(_typeof(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(n)}function _createSuper(n){var o=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(n);if(o){var c=_getPrototypeOf(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _possibleConstructorReturn(this,e)}}var DomWrapper=function(n){_inherits(e,n);var o=_createSuper(e);function e(){return _classCallCheck(this,e),o.apply(this,arguments)}return _createClass(e,[{key:"render",value:function(){return this.props.children}}]),e}(reactExports.Component);function SingleObserver(n,o){var e=n.children,t=n.disabled,c=reactExports.useRef(null),p=reactExports.useRef(null),h=reactExports.useContext(CollectionContext),y=typeof e=="function",g=y?e(c):e,$=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),E=!y&&reactExports.isValidElement(g)&&supportRef(g),A=E?getNodeRef(g):null,N=useComposeRef(A,c),H=function(){var we;return findDOMNode(c.current)||(c.current&&_typeof(c.current)==="object"?findDOMNode((we=c.current)===null||we===void 0?void 0:we.nativeElement):null)||findDOMNode(p.current)};reactExports.useImperativeHandle(o,function(){return H()});var Z=reactExports.useRef(n);Z.current=n;var X=reactExports.useCallback(function(be){var we=Z.current,$e=we.onResize,Ce=we.data,Ie=be.getBoundingClientRect(),Ne=Ie.width,Fe=Ie.height,Be=be.offsetWidth,Ge=be.offsetHeight,je=Math.floor(Ne),De=Math.floor(Fe);if($.current.width!==je||$.current.height!==De||$.current.offsetWidth!==Be||$.current.offsetHeight!==Ge){var Ue={width:je,height:De,offsetWidth:Be,offsetHeight:Ge};$.current=Ue;var Je=Be===Math.round(Ne)?Ne:Be,Xe=Ge===Math.round(Fe)?Fe:Ge,Ke=_objectSpread2
143(_objectSpread2({},Ue),{},{offsetWidth:Je,offsetHeight:Xe});h?.(Ke,be,Ce),$e&&Promise.resolve().then(function(){$e(Ke,be)})}},[]);return reactExports.useEffect(function(){var be=H();return be&&!t&&observe(be,X),function(){return unobserve(be,X)}},[c.current,t]),reactExports.createElement(DomWrapper,{ref:p},E?reactExports.cloneElement(g,{ref:N}):g)}var RefSingleObserver=reactExports.forwardRef(SingleObserver),INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$1(n,o){var e=n.children,t=typeof e=="function"?[e]:toArray(e);return t.map(function(c,p){var h=c?.key||"".concat(INTERNAL_PREFIX_KEY,"-").concat(p);return reactExports.createElement(RefSingleObserver,_extends$1({},n,{key:h,ref:p===0?o:void 0}),c)})}var RefResizeObserver=reactExports.forwardRef(ResizeObserver$1);RefResizeObserver.Collection=Collection;function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var useInternalLayoutEffect=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,useLayoutEffect=function n(o,e){var t=reactExports.useRef(!0);useInternalLayoutEffect(function(){return o(t.current)},e),useInternalLayoutEffect(function(){return t.current=!1,function(){t.current=!0}},[])},_excluded$4=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED=void 0;function InternalItem(n,o){var e=n.prefixCls,t=n.invalidate,c=n.item,p=n.renderItem,h=n.responsive,y=n.responsiveDisabled,g=n.registerSize,$=n.itemKey,E=n.className,A=n.style,N=n.children,H=n.display,Z=n.order,X=n.component,be=X===void 0?"div":X,we=_objectWithoutProperties$2(n,_excluded$4),$e=h&&!H;function Ce(Ge){g($,Ge)}reactExports.useEffect(function(){return function(){Ce(null)}},[]);var Ie=p&&c!==UNDEFINED?p(c,{index:Z}):N,Ne;t||(Ne={opacity:$e?0:1,height:$e?0:UNDEFINED,overflowY:$e?"hidden":UNDEFINED,order:h?Z:UNDEFINED,pointerEvents:$e?"none":UNDEFINED,position:$e?"absolute":UNDEFINED});var Fe={};$e&&(Fe["aria-hidden"]=!0);var Be=reactExports.createElement(be,_extends$2({className:classNames(!t&&e,E),style:_objectSpread2$1(_objectSpread2$1({},Ne),A)},Fe,we,{ref:o}),Ie);return h&&(Be=reactExports.createElement(RefResizeObserver,{onResize:function(je){var De=je.offsetWidth;Ce(De)},disabled:y},Be)),Be}var Item=reactExports.forwardRef(InternalItem);Item.displayName="Item";function useEvent(n){var o=reactExports.useRef();o.current=n;var e=reactExports.useCallback(function(){for(var t,c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];return(t=o.current)===null||t===void 0?void 0:t.call.apply(t,[o].concat(p))},[]);return e}var raf=function n(o){return+setTimeout(o,16)},caf=function n(o){return clearTimeout(o)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf=function(o){return window.requestAnimationFrame(o)},caf=function(o){return window.cancelAnimationFrame(o)});var rafUUID=0,rafIds=new Map;function cleanup(n){rafIds.delete(n)}var wrapperRaf=function n(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var t=rafUUID;function c(p){if(p===0)cleanup(t),o();else{var h=raf(function(){c(p-1)});rafIds.set(t,h)}}return c(e),t};wrapperRaf.cancel=function(n){var o=rafIds.get(n);return cleanup(n),caf(o)};function channelUpdate(n){if(typeof MessageChannel>"u")wrapperRaf(n);else{var o=new MessageChannel;o.port1.onmessage=function(){return n()},o.port2.postMessage(void 0)}}function useBatcher(){var n=reactExports.useRef(null),o=function(t){n.current||(n.current=[],channelUpdate(function(){reactDomExports.unstable_batchedUpdates(function(){n.current.forEach(function(c){c()}),n.current=null})})),n.current.push(t)};return o}function useEffectState(n,o){var e=reactExports.useState(o),t=_slicedToArray(e,2),c=t[0],p=t[1],h=useEvent(function(y){n(function(){p(y)})});return[c,h]}var OverflowContext=React.createContext(null),_excluded$3=["component"],_excluded2$1=["className"],_excluded3=["className"],InternalRawItem=function n(o,e){var t=reactExports.useContext(OverflowContext);if(!t){var c=o.component,p=c===void 0?"div":c,h=_objectWithoutProperties$2(o,_excluded$3);return reactExports.createElement(p,_extends$2({},h,{ref:e}))}var y=t.className,g=_objectWithoutProperties$2(t,_excluded2$1),$=o.className,E=_objectWithoutProperties$2(o,_excluded3);return reactExports.createElement(OverflowContext.Provider,{value:null},reactExports.createElement(Item,_extends$2({ref:e,className:classNames(y,$)},g,E)))}
143,RawItem=reactExports.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$2=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(n){return"+ ".concat(n.length," ...")}function Overflow(n,o){var e=n.prefixCls,t=e===void 0?"rc-overflow":e,c=n.data,p=c===void 0?[]:c,h=n.renderItem,y=n.renderRawItem,g=n.itemKey,$=n.itemWidth,E=$===void 0?10:$,A=n.ssr,N=n.style,H=n.className,Z=n.maxCount,X=n.renderRest,be=n.renderRawRest,we=n.suffix,$e=n.component,Ce=$e===void 0?"div":$e,Ie=n.itemComponent,Ne=n.onVisibleChange,Fe=_objectWithoutProperties$2(n,_excluded$2),Be=A==="full",Ge=useBatcher(),je=useEffectState(Ge,null),De=_slicedToArray(je,2),Ue=De[0],Je=De[1],Xe=Ue||0,Ke=useEffectState(Ge,new Map),ze=_slicedToArray(Ke,2),nt=ze[0],ct=ze[1],at=useEffectState(Ge,0),dt=_slicedToArray(at,2),Me=dt[0],We=dt[1],tt=useEffectState(Ge,0),Ve=_slicedToArray(tt,2),vt=Ve[0],xt=Ve[1],Qe=useEffectState(Ge,0),St=_slicedToArray(Qe,2),pt=St[0],wt=St[1],Ft=reactExports.useState(null),Ht=_slicedToArray(Ft,2),on=Ht[0],en=Ht[1],Wt=reactExports.useState(null),an=_slicedToArray(Wt,2),qt=an[0],zt=an[1],Jt=reactExports.useMemo(function(){return qt===null&&Be?Number.MAX_SAFE_INTEGER:qt||0},[qt,Ue]),jt=reactExports.useState(!1),Yt=_slicedToArray(jt,2),yn=Yt[0],vn=Yt[1],nn="".concat(t,"-item"),pn=Math.max(Me,vt),Ut=Z===RESPONSIVE,it=p.length&&Ut,gt=Z===INVALIDATE,Tt=it||typeof Z=="number"&&p.length>Z,Et=reactExports.useMemo(function(){var Vt=p;return it?Ue===null&&Be?Vt=p:Vt=p.slice(0,Math.min(p.length,Xe/E)):typeof Z=="number"&&(Vt=p.slice(0,Z)),Vt},[p,E,Ue,Z,it]),Nt=reactExports.useMemo(function(){return it?p.slice(Jt+1):p.slice(Et.length)},[p,Et,it,Jt]),Ct=reactExports.useCallback(function(Vt,Zt){var gn;return typeof g=="function"?g(Vt):(gn=g&&Vt?.[g])!==null&&gn!==void 0?gn:Zt},[g]),Bt=reactExports.useCallback(h||function(Vt){return Vt},[h]);function Ot(Vt,Zt,gn){qt===Vt&&(Zt===void 0||Zt===on)||(zt(Vt),gn||(vn(Vt<p.length-1),Ne?.(Vt)),Zt!==void 0&&en(Zt))}function ot(Vt,Zt){Je(Zt.clientWidth)}function lt(Vt,Zt){ct(function(gn){var kn=new Map(gn);return Zt===null?kn.delete(Vt):kn.set(Vt,Zt),kn})}function st(Vt,Zt){xt(Zt),We(vt)}function ft(Vt,Zt){wt(Zt)}function ut(Vt){return nt.get(Ct(Et[Vt],Vt))}useLayoutEffect(function(){if(Xe&&typeof pn=="number"&&Et){var Vt=pt,Zt=Et.length,gn=Zt-1;if(!Zt){Ot(0,null);return}for(var kn=0;kn<Zt;kn+=1){var cr=ut(kn);if(Be&&(cr=cr||0),cr===void 0){Ot(kn-1,void 0,!0);break}if(Vt+=cr,gn===0&&Vt<=Xe||kn===gn-1&&Vt+ut(gn)<=Xe){Ot(gn,null);break}else if(Vt+pn>Xe){Ot(kn-1,Vt-cr-pt+vt);break}}we&&ut(0)+pt>Xe&&en(null)}},[Xe,nt,vt,pt,Ct,Et]);var At=yn&&!!Nt.length,Gt={};on!==null&&it&&(Gt={position:"absolute",left:on,top:0});var Xt={prefixCls:nn,responsive:it,component:Ie,invalidate:gt},un=y?function(Vt,Zt){var gn=Ct(Vt,Zt);return reactExports.createElement(OverflowContext.Provider,{key:gn,value:_objectSpread2$1(_objectSpread2$1({},Xt),{},{order:Zt,item:Vt,itemKey:gn,registerSize:lt,display:Zt<=Jt})},y(Vt,Zt))}:function(Vt,Zt){var gn=Ct(Vt,Zt);return reactExports.createElement(Item,_extends$2({},Xt,{order:Zt,key:gn,item:Vt,renderItem:Bt,itemKey:gn,registerSize:lt,display:Zt<=Jt}))},rr={order:At?Jt:Number.MAX_SAFE_INTEGER,className:"".concat(nn,"-rest"),registerSize:st,display:At},zr=X||defaultRenderRest,Sr=be?reactExports.createElement(OverflowContext.Provider,{value:_objectSpread2$1(_objectSpread2$1({},Xt),rr)},be(Nt)):reactExports.createElement(Item,_extends$2({},Xt,rr),typeof zr=="function"?zr(Nt):zr),Ii=reactExports.createElement(Ce,_extends$2({className:classNames(!gt&&t,H),style:N,ref:o},Fe),Et.map(un),Tt?Sr:null,we&&reactExports.createElement(Item,_extends$2({},Xt,{responsive:Ut,responsiveDisabled:!it,order:Jt,className:"".concat(nn,"-suffix"),registerSize:ft,display:!0,style:Gt}),we));return Ut?reactExports.createElement(RefResizeObserver,{onResize:ot,disabled:!it},Ii):Ii}var ForwardOverflow=reactExports.forwardRef(Overflow);ForwardOverflow.displayName="Overflow";ForwardOverflow.Item=RawItem;ForwardOverflow.RESPONSIVE=RESPONSIVE;ForwardOverflow.INVALIDATE=INVALIDATE;function _objectWithoutProperties$1(n,o){if(n==null)return{};var e,t,c=_objectWithoutPropertiesLoose$q(n,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(t=0;t<p.length;t++)e=p[t],o.indexOf(e)===-1&&{}.propertyIsEnumerable.call(n,e)&&(c[e]=n[e])}return c}var _excluded$1=["children","iconAttrs","iconVerticalAlign","iconViewBox","size","title"];function ownKeys$1(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$1(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};
143o%2?ownKeys$1(Object(e),!0).forEach(function(t){_defineProperty$u(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$1(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}var EmotionIconBaseBase=reactExports.forwardRef(function(n,o){var e=n.children,t=n.iconAttrs;n.iconVerticalAlign;var c=n.iconViewBox,p=n.size,h=n.title,y=_objectWithoutProperties$1(n,_excluded$1),g=_objectSpread$1(_objectSpread$1({viewBox:c,height:n.height!==void 0?n.height:p,width:n.width!==void 0?n.width:p,"aria-hidden":h==null?"true":void 0,focusable:"false",role:h!=null?"img":void 0},t),y);return reactExports.createElement("svg",_extends$C({},g,{ref:o}),h&&reactExports.createElement("title",{key:"icon-title"},h),e)}),EmotionIconBase=createStyled(EmotionIconBaseBase,{target:"ex0cdmw0"})("display:inline-block;vertical-align:",function(n){return n.iconVerticalAlign},";overflow:hidden;"),AccessibilityNew=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:o}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M20.5 6c-2.61.7-5.67 1-8.5 1s-5.89-.3-8.5-1L3 8c1.86.5 4 .83 6 1v13h2v-6h2v6h2V9c2-.17 4.14-.5 6-1l-.5-2zM12 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}))});AccessibilityNew.displayName="AccessibilityNew";var AccessibleForward=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:o}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("circle",{cx:18,cy:4.54,r:2}),reactExports.createElement("path",{d:"M15 17h-2c0 1.65-1.35 3-3 3s-3-1.35-3-3 1.35-3 3-3v-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5zm3-3.5h-1.86l1.67-3.67C18.42 8.5 17.44 7 15.96 7h-5.2c-.81 0-1.54.47-1.87 1.2L8.22 10l1.92.53.65-1.53H13l-1.83 4.1c-.6 1.33.39 2.9 1.85 2.9H18v5h2v-5.5c0-1.1-.9-2-2-2z"}))});AccessibleForward.displayName="AccessibleForward";var DirectionsBike=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:o}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5zm5.8-10l2.4-2.4.8.8c1.3 1.3 3 2.1 5.1 2.1V9c-1.5 0-2.7-.6-3.6-1.5l-1.9-1.9c-.5-.4-1-.6-1.6-.6s-1.1.2-1.4.6L7.8 8.4c-.4.4-.6.9-.6 1.4 0 .6.2 1.1.6 1.4L11 14v5h2v-6.2l-2.2-2.3zM19 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"}))});DirectionsBike.displayName="DirectionsBike";var DirectionsRun=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:o}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2v-3.4l1.8-.7-1.6 8.1-4.9-1-.4 2 7 1.4z"}))});DirectionsRun.displayName="DirectionsRun";var KeyboardArrowDown=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:o}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}))});KeyboardArrowDown.displayName="KeyboardArrowDown";var KeyboardArrowUp=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:o}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M7.41 15.41L12 10.83l4.59 4.58
143L18 14l-6-6-6 6 1.41 1.41z"}))});KeyboardArrowUp.displayName="KeyboardArrowUp";var Pool=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:o}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M10 8l-3.25 3.25c.31.12.56.27.77.39.37.23.59.36 1.15.36s.78-.13 1.15-.36c.46-.27 1.08-.64 2.19-.64s1.73.37 2.18.64c.37.22.6.36 1.15.36.55 0 .78-.13 1.15-.36.12-.07.26-.15.41-.23L10.48 5C8.93 3.45 7.5 2.99 5 3v2.5c1.82-.01 2.89.39 4 1.5l1 1zm12 8.5h-.02.02zm-16.65-1c.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64s1.73-.37 2.18-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64s1.73-.37 2.18-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.06.63 2.16.64v-2c-.55 0-.78-.14-1.15-.36-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.18.64c-.37.23-.6.36-1.15.36s-.78-.14-1.15-.36c-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.18.64c-.37.23-.59.36-1.15.36-.55 0-.78-.14-1.15-.36-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.18.64c-.37.23-.59.36-1.15.36v2c1.11 0 1.73-.37 2.2-.64.37-.23.6-.36 1.15-.36zM18.67 18c-1.11 0-1.73.37-2.18.64-.37.23-.6.36-1.15.36-.55 0-.78-.14-1.15-.36-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.19.64c-.37.23-.59.36-1.15.36s-.78-.13-1.15-.36c-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.19.64c-.37.23-.59.36-1.15.36v2c1.11 0 1.73-.37 2.19-.64.37-.23.6-.36 1.15-.36.55 0 .78.13 1.15.36.45.27 1.07.64 2.18.64s1.73-.37 2.19-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64s1.72-.37 2.18-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64v-2c-.56 0-.78-.13-1.15-.36-.45-.27-1.07-.64-2.18-.64z"}),reactExports.createElement("circle",{cx:16.5,cy:5.5,r:2.5}))});Pool.displayName="Pool";var Rowing=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:o}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),reactExports.createElement("path",{d:"M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21.43-.38.69-.5.29-.14.62-.23.96-.23h.03C15.99 6.01 17 7.02 17 8.26v5.75c0 .84-.35 1.61-.92 2.16l-3.58-3.58v-2.27c-.63.52-1.43 1.02-2.29 1.39L16.5 18H18l3 3.01z"}))});Rowing.displayName="Rowing";const TopNavSection=({title:n,sections:o,handlePageChange:e,endpoints:t,pageLinkBaseUrl:c,currentPageScriptHash:p,hideChevron:h=!1,widgetsDisabled:y})=>{const[g,$]=reactExports.useState(!1),E=useEmotionTheme(),A=hasLightBackgroun
143dColor(E),N=o.length>1;return isNullOrUndefined(o)||o.length===0||o[0].length===0?null:jsx$1(Popover$2,{triggerType:TRIGGER_TYPE.click,placement:PLACEMENT.bottomLeft,content:()=>jsx$1(StyledPopoverContent,{"data-testid":"stTopNavPopover",children:o.map((H,Z)=>{const X=H[0].sectionHeader;return H.map((be,we)=>{const $e=Ie=>(Ie.preventDefault(),be.pageScriptHash&&e(be.pageScriptHash),$(!1),!1),Ce=String(be.pageName||"");return jsxs(React.Fragment,{children:[we===0&&N&&jsx$1(StyledSectionName,{children:X}),jsx$1(StyledTopNavSidebarNavLinkContainer,{children:jsx$1(SidebarNavLink,{...be,icon:be.icon||null,isTopNav:!0,isInDropdown:!0,isActive:p===be.pageScriptHash,onClick:$e,pageUrl:t.buildAppPageURL(c,be),widgetsDisabled:y,children:Ce})})]},`${be.pageScriptHash}-${Ce}`)})})}),isOpen:g,onClickOutside:()=>$(!1),onClick:()=>g?$(!1):void 0,onEsc:()=>$(!1),renderAll:!0,overrides:{Body:{style:()=>({marginTop:E.spacing.sm,marginRight:E.spacing.lg,marginBottom:E.spacing.lg,maxHeight:"70vh",minWidth:"8rem",overflow:"auto",maxWidth:`calc(${E.sizes.contentMaxWidth} - 2*${E.spacing.lg})`,borderTopLeftRadius:E.radii.xl,borderTopRightRadius:E.radii.xl,borderBottomRightRadius:E.radii.xl,borderBottomLeftRadius:E.radii.xl,borderLeftWidth:E.sizes.borderWidth,borderRightWidth:E.sizes.borderWidth,borderTopWidth:E.sizes.borderWidth,borderBottomWidth:E.sizes.borderWidth,borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftColor:E.colors.borderColor,borderRightColor:E.colors.borderColor,borderTopColor:E.colors.borderColor,borderBottomColor:E.colors.borderColor,boxShadow:A?"0px 4px 16px rgba(0, 0, 0, 0.16)":"0px 4px 16px rgba(0, 0, 0, 0.7)",[`@media (max-width: ${E.breakpoints.sm})`]:{maxWidth:`calc(100% - ${E.spacing.threeXL})`}})}},children:jsx$1("div",{children:jsxs(StyledNavSection,{tabIndex:0,onClick:()=>$(!g),isOpen:g,"data-testid":"stTopNavSection",children:[jsx$1(StyledNavSectionText,{children:n}),!h&&jsx$1(StyledIconContainer,{children:jsx$1(Icon$2,{content:g?KeyboardArrowUp:KeyboardArrowDown,size:"lg"})})]})})})},TopNav=({endpoints:n,widgetsDisabled:o})=>{const{pageLinkBaseUrl:e,currentPageScriptHash:t,appPages:c,onPageChange:p}=reactExports.useContext(NavigationContext),{data:h,itemKey:y}=reactExports.useMemo(()=>{const E=groupPagesBySection(c),A=processNavigationStructure(E);return{data:[...A.individualPages,...Object.entries(A.sections).map(([Z,X])=>X)],itemKey:Z=>Array.isArray(Z)?Z[0]?.sectionHeader??"":Z.pageScriptHash??""}},[c]),g=reactExports.useCallback((E,A)=>Array.isArray(E)?jsx$1(TopNavSection,{sections:[E],title:E[0].sectionHeader||"",handlePageChange:p,endpoints:n,pageLinkBaseUrl:e,currentPageScriptHash:t,widgetsDisabled:o}):jsx$1(StyledTopNavLinkContainer,{children:jsx$1(SidebarNavLink,{isTopNav:!0,isInDropdown:!1,isActive:t===E.pageScriptHash,icon:E.icon,pageUrl:n.buildAppPageURL(e,E),onClick:N=>{N.preventDefault(),E.pageScriptHash&&p(E.pageScriptHash)},widgetsDisabled:o,children:String(E.pageName)})}),[p,n,e,t,o]),$=reactExports.useCallback(E=>{if(isNullOrUndefined(E))return null;const N=`${E.flat().length} more`,H=E.map(Z=>Array.isArray(Z)?Z:[Z]);return jsx$1(TopNavSection,{hideChevron:!0,sections:H,title:N,handlePageChange:p,endpoints:n,pageLinkBaseUrl:e,currentPageScriptHash:t,widgetsDisabled:o})},[p,n,e,t,o]);return jsx$1(ForwardOverflow,{component:StyledOverflowContainer,itemKey:y,data:h,maxCount:"responsive",renderItem:g,renderRest:$})};var __assign$1=function(){return __assign$1=Object.assign||function(n){for(var o,e=1,t=arguments.length;e<t;e++){o=arguments[e];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(n[c]=o[c])}return n},__assign$1.apply(this,arguments)},rowSizeBase={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},colSizeBase={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},edgeBase={width:"20px",height:"20px",position:"absolute",zIndex:1},styles={top:__assign$1(__assign$1({},rowSizeBase),{top:"-5px"}),right:__assign$1(__assign$1({},colSizeBase),{left:void 0,right:"-5px"}),bottom:__assign$1(__assign$1({},rowSizeBase),{top:void 0,bottom:"-5px"}),left:__assign$1(__assign$1({},colSizeBase),{left:"-5px"}),topRight:__assign$1(__assign$1({},edgeBase),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:__assign$1(__assign$1({},edgeBase),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:__assign$1(__assign$1({},edgeBase),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:__assign$1(__assign$1({},edgeBase),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Resizer=reactExports.memo(function(n){var o=n.onResizeStart,e=n.direction,t=n.children,c=n.replaceStyles,p=n.className,h=reactExports.useCallback(function($){o($,e)},[o,e]),y=reactExports.useCallback(function($){o($,e)},[o,e]),g=reactExports.useMemo(function(){return __assign$1(__assign$1({position:"absolute",userSelect:"none"},styles[e]),c??{})},[c,e]);return jsxRuntimeExports.jsx("div",{className:p||void 0,style:g,onMouseDown:h,onTouchStart:y,children:t})}
143),__extends=function(){var n=function(o,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,c){t.__proto__=c}||function(t,c){for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(t[p]=c[p])},n(o,e)};return function(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),__assign=function(){return __assign=Object.assign||function(n){for(var o,e=1,t=arguments.length;e<t;e++){o=arguments[e];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(n[c]=o[c])}return n},__assign.apply(this,arguments)},DEFAULT_SIZE={width:"auto",height:"auto"},clamp=function(n,o,e){return Math.max(Math.min(n,e),o)},snap=function(n,o,e){var t=Math.round(n/o);return t*o+e*(t-1)},hasDirection=function(n,o){return new RegExp(n,"i").test(o)},isTouchEvent=function(n){return!!(n.touches&&n.touches.length)},isMouseEvent=function(n){return!!((n.clientX||n.clientX===0)&&(n.clientY||n.clientY===0))},findClosestSnap=function(n,o,e){e===void 0&&(e=0);var t=o.reduce(function(p,h,y){return Math.abs(h-n)<Math.abs(o[p]-n)?y:p},0),c=Math.abs(o[t]-n);return e===0||c<e?o[t]:n},getStringSize=function(n){return n=n.toString(),n==="auto"||n.endsWith("px")||n.endsWith("%")||n.endsWith("vh")||n.endsWith("vw")||n.endsWith("vmax")||n.endsWith("vmin")?n:"".concat(n,"px")},getPixelSize=function(n,o,e,t){if(n&&typeof n=="string"){if(n.endsWith("px"))return Number(n.replace("px",""));if(n.endsWith("%")){var c=Number(n.replace("%",""))/100;return o*c}if(n.endsWith("vw")){var c=Number(n.replace("vw",""))/100;return e*c}if(n.endsWith("vh")){var c=Number(n.replace("vh",""))/100;return t*c}}return n},calculateNewMax=function(n,o,e,t,c,p,h){return t=getPixelSize(t,n.width,o,e),c=getPixelSize(c,n.height,o,e),p=getPixelSize(p,n.width,o,e),h=getPixelSize(h,n.height,o,e),{maxWidth:typeof t>"u"?void 0:Number(t),maxHeight:typeof c>"u"?void 0:Number(c),minWidth:typeof p>"u"?void 0:Number(p),minHeight:typeof h>"u"?void 0:Number(h)}},normalizeToPair=function(n){return Array.isArray(n)?n:[n,n]},definedProps=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],baseClassName="__resizable_base__",Resizable=function(n){__extends(o,n);function o(e){var t,c,p,h,y=n.call(this,e)||this;return y.ratio=1,y.resizable=null,y.parentLeft=0,y.parentTop=0,y.resizableLeft=0,y.resizableRight=0,y.resizableTop=0,y.resizableBottom=0,y.targetLeft=0,y.targetTop=0,y.delta={width:0,height:0},y.appendBase=function(){if(!y.resizable||!y.window)return null;var g=y.parentNode;if(!g)return null;var $=y.window.document.createElement("div");return $.style.width="100%",$.style.height="100%",$.style.position="absolute",$.style.transform="scale(0, 0)",$.style.left="0",$.style.flex="0 0 100%",$.classList?$.classList.add(baseClassName):$.className+=baseClassName,g.appendChild($),$},y.removeBase=function(g){var $=y.parentNode;$&&$.removeChild(g)},y.state={isResizing:!1,width:(c=(t=y.propsSize)===null||t===void 0?void 0:t.width)!==null&&c!==void 0?c:"auto",height:(h=(p=y.propsSize)===null||p===void 0?void 0:p.height)!==null&&h!==void 0?h:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},y.onResizeStart=y.onResizeStart.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.onMouseUp=y.onMouseUp.bind(y),y}return Object.defineProperty(o.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView}
143,enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var c=this.resizable.offsetWidth,p=this.resizable.offsetHeight,h=this.resizable.style.position;h!=="relative"&&(this.resizable.style.position="relative"),e=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:c,t=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:p,this.resizable.style.position=h}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,c=function(y){var g;if(typeof e.state[y]>"u"||e.state[y]==="auto")return"auto";if(e.propsSize&&e.propsSize[y]&&(!((g=e.propsSize[y])===null||g===void 0)&&g.toString().endsWith("%"))){if(e.state[y].toString().endsWith("%"))return e.state[y].toString();var $=e.getParentSize(),E=Number(e.state[y].toString().replace("px","")),A=E/$[y]*100;return"".concat(A,"%")}return getStringSize(e.state[y])},p=t&&typeof t.width<"u"&&!this.state.isResizing?getStringSize(t.width):c("width"),h=t&&typeof t.height<"u"&&!this.state.isResizing?getStringSize(t.height):c("height");return{width:p,height:h}},enumerable:!1,configurable:!0}),o.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,c=this.parentNode.style.flexWrap;c!=="wrap"&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var p={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=c),this.removeBase(e),p},o.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},o.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},o.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:e.flexBasis!=="auto"?e.flexBasis:void 0})}},o.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},o.prototype.createSizeForCssProperty=function(e,t){var c=this.propsSize&&this.propsSize[t];return this.state[t]==="auto"&&this.state.original[t]===e&&(typeof c>"u"||c==="auto")?"auto":e},o.prototype.calculateNewMaxFromBoundary=function(e,t){var c=this.props.boundsByDirection,p=this.state.direction,h=c&&hasDirection("left",p),y=c&&hasDirection("top",p),g,$;if(this.props.bounds==="parent"){var E=this.parentNode;E&&(g=h?this.resizableRight-this.parentLeft:E.offsetWidth+(this.parentLeft-this.resizableLeft),$=y?this.resizableBottom-this.parentTop:E.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(g=h?this.resizableRight:this.window.innerWidth-this.resizableLeft,$=y?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(g=h?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),$=y?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return g&&Number.isFinite(g)&&(e=e&&e<g?e:g),$&&Number.isFinite($)&&(t=t&&t<$?t:$),{maxWidth:e,maxHeight:t}},o.prototype.calculateNewSizeFromDirection=function(e,t){var c=this.props.scale||1,p=normalizeToPair(this.props.resizeRatio||1),h=p[0],y=p[1],g=this.state,$=g.direction,E=g.original,A=this.props,N=A.lockAspectRatio,H=A.lockAspectRatioExtraHeight,Z=A.lockAspectRatioExtraWidth,X=E.width,be=E.height,we=H||0,$e=Z||0;return hasDirection("right",$)&&(X=E.width+(e-E.x)*h/c,N&&(be=(X-$e)/this.ratio+we)),hasDirection("left",$)&&(X=E.width-(e-E.x)*h/c,N&&(be=(X-$e)/this.ratio+we)),hasDirection("bottom",$)&&(be=E.height+(t-E.y)*y/c,N&&(X=(be-we)*this.ratio+$e)),hasDirection("top",$)&&(be=E.height-(t-E.y)*y/c,N&&(X=(be-we)*this.ratio+$e)),{newWidth:X,newHeight:be}},o.prototype.calculateNewSizeFromAspectRatio=function(e,t,c,p){var h=this.props,y=h.lockAspectRatio,g=h.lockAspectRatioExtraHeight,$=h.lockAspectRatioExtraWidth,E=typeof p.width>"u"?10:p.width,A=typeof c.width>"u"||c.width<0?e:c.width,N=typeof p.height>"u"?10:p.height,H=typeof c.height>"u"||c.height<0?t:c.height,Z=g||0,X=$||0;if(y){var be=(N-Z)*this.ratio+X,we=(H-Z)*this.ratio+X,$e=(E-X)/this.ratio+Z,Ce=(A-X)/this.ratio+Z,Ie=Math.max(E,be),Ne=Math.min(A,we),Fe=Math.max(N,$e),Be=Math.min(H,Ce);e=clamp(e,Ie,Ne),t=clamp(t,Fe,Be)}else e=clamp(e,E,A),t=clamp(t,N,H);return{newWidth:e,newHeight:t}},o.prototype.setBoundingClientRect=function(){var e=1/(this.props.scale||1);if(this.props.bounds==="parent"){var t=this.parentNode;if(t){var c=t.getBoundingClientRect();this.parentLeft=c.left*e,this.parentTop=c.top*e}}if(this.props.bounds&&typeof this.props.bounds!="string"){var p=this.props.bounds.getBoundingClientRect();this.targetLeft=p.left*e,this.targetTop=p.top*e}if(this.resizable){var h=this.resizable.getBoundingClientRect(),y=h.left,g=h.top,$=h.right,E=h.bottom;this.resizableLeft=y*e,this.resizableRight=$*e,this.resizableTop=g*e,this.resizableBottom=E*e}},o.prototype.onResizeStart=function(e,t){if(!(!this.resizable||!this.window)){var c=0,p=0;if(e.nativeEvent&&isMouseEvent(e.nativeEvent)?(c=e.nativeEvent.clientX,p=e.nativeEvent.clientY):e.nativeEvent&&isTouchEvent(e.nativeEvent)&&(c=e.nativeEvent.touches[0].clientX,p=e.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var h=this.props.onResizeStart(e,t,this.resizable);if(h===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var y,g=this.window.getComputedStyle(this.resizable);if(g.flexBasis!=="auto"){var $=this.parentNode;if($){var E=this.window.getComputedStyle($).flexDirection;this.flexDir=E.startsWith("row")?"row":"column",y=g.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var A={original:{x:c,y:p,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:y};this.setState(A)}},o.prototype.onMouseMove=function(e){var t=this;
143if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(e))try{e.preventDefault(),e.stopPropagation()}catch{}var c=this.props,p=c.maxWidth,h=c.maxHeight,y=c.minWidth,g=c.minHeight,$=isTouchEvent(e)?e.touches[0].clientX:e.clientX,E=isTouchEvent(e)?e.touches[0].clientY:e.clientY,A=this.state,N=A.direction,H=A.original,Z=A.width,X=A.height,be=this.getParentSize(),we=calculateNewMax(be,this.window.innerWidth,this.window.innerHeight,p,h,y,g);p=we.maxWidth,h=we.maxHeight,y=we.minWidth,g=we.minHeight;var $e=this.calculateNewSizeFromDirection($,E),Ce=$e.newHeight,Ie=$e.newWidth,Ne=this.calculateNewMaxFromBoundary(p,h);this.props.snap&&this.props.snap.x&&(Ie=findClosestSnap(Ie,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(Ce=findClosestSnap(Ce,this.props.snap.y,this.props.snapGap));var Fe=this.calculateNewSizeFromAspectRatio(Ie,Ce,{width:Ne.maxWidth,height:Ne.maxHeight},{width:y,height:g});if(Ie=Fe.newWidth,Ce=Fe.newHeight,this.props.grid){var Be=snap(Ie,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),Ge=snap(Ce,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),je=this.props.snapGap||0,De=je===0||Math.abs(Be-Ie)<=je?Be:Ie,Ue=je===0||Math.abs(Ge-Ce)<=je?Ge:Ce;Ie=De,Ce=Ue}var Je={width:Ie-H.width,height:Ce-H.height};if(this.delta=Je,Z&&typeof Z=="string"){if(Z.endsWith("%")){var Xe=Ie/be.width*100;Ie="".concat(Xe,"%")}else if(Z.endsWith("vw")){var Ke=Ie/this.window.innerWidth*100;Ie="".concat(Ke,"vw")}else if(Z.endsWith("vh")){var ze=Ie/this.window.innerHeight*100;Ie="".concat(ze,"vh")}}if(X&&typeof X=="string"){if(X.endsWith("%")){var Xe=Ce/be.height*100;Ce="".concat(Xe,"%")}else if(X.endsWith("vw")){var Ke=Ce/this.window.innerWidth*100;Ce="".concat(Ke,"vw")}else if(X.endsWith("vh")){var ze=Ce/this.window.innerHeight*100;Ce="".concat(ze,"vh")}}var nt={width:this.createSizeForCssProperty(Ie,"width"),height:this.createSizeForCssProperty(Ce,"height")};this.flexDir==="row"?nt.flexBasis=nt.width:this.flexDir==="column"&&(nt.flexBasis=nt.height);var ct=this.state.width!==nt.width,at=this.state.height!==nt.height,dt=this.state.flexBasis!==nt.flexBasis,Me=ct||at||dt;Me&&reactDomExports.flushSync(function(){t.setState(nt)}),this.props.onResize&&Me&&this.props.onResize(e,N,this.resizable,Je)}},o.prototype.onMouseUp=function(e){var t,c,p=this.state,h=p.isResizing,y=p.direction;p.original,!(!h||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(e,y,this.resizable,this.delta),this.props.size&&this.setState({width:(t=this.props.size.width)!==null&&t!==void 0?t:"auto",height:(c=this.props.size.height)!==null&&c!==void 0?c:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:"auto"})}))},o.prototype.updateSize=function(e){var t,c;this.setState({width:(t=e.width)!==null&&t!==void 0?t:"auto",height:(c=e.height)!==null&&c!==void 0?c:"auto"})},o.prototype.renderResizer=function(){var e=this,t=this.props,c=t.enable,p=t.handleStyles,h=t.handleClasses,y=t.handleWrapperStyle,g=t.handleWrapperClass,$=t.handleComponent;if(!c)return null;var E=Object.keys(c).map(function(A){return c[A]!==!1?jsxRuntimeExports.jsx(Resizer,{direction:A,onResizeStart:e.onResizeStart,replaceStyles:p&&p[A],className:h&&h[A],children:$&&$[A]?$[A]:null},A):null});return jsxRuntimeExports.jsx("div",{className:g,style:y,children:E})},o.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce(function(h,y){return definedProps.indexOf(y)!==-1||(h[y]=e.props[y]),h},{}),c=__assign(__assign(__assign({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(c.flexBasis=this.state.flexBasis);var p=this.props.as||"div";return jsxRuntimeExports.jsxs(p,__assign({style:c,className:this.props.className},t,{ref:function(h){h&&(e.resizable=h)},children:[this.state.isResizing&&jsxRuntimeExports.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},o.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{}
143,grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},o}(reactExports.PureComponent);const DEFAULT_WIDTH="256";function calculateMaxBreakpoint(n){return parseInt(n,10)-.02}const Sidebar=({endpoints:n,children:o,hasElements:e,isCollapsed:t,onToggleCollapse:c,widgetsDisabled:p})=>{const h=useEmotionTheme(),y=calculateMaxBreakpoint(h.breakpoints.md),{innerWidth:g}=useWindowDimensionsContext(),{appPages:$,navSections:E}=reactExports.useContext(NavigationContext),{hideSidebarNav:A,appLogo:N}=reactExports.useContext(SidebarConfigContext),H=useScrollbarGutterSize(),Z=reactExports.useRef(null),X=localStorageAvailable()?window.localStorage.getItem("sidebarWidth"):void 0,[be,we]=reactExports.useState(X||DEFAULT_WIDTH),[$e,Ce]=reactExports.useState(g??1/0),[Ie,Ne]=reactExports.useState(!1),Fe=reactExports.useCallback(()=>{Ne(!0)},[]),Be=reactExports.useCallback(()=>{Ne(!1)},[]),Ge=reactExports.useCallback(Ke=>{const ze=Ke.toString();we(ze),localStorageAvailable()&&window.localStorage.setItem("sidebarWidth",ze)},[]),je=reactExports.useCallback((Ke,ze,nt,ct)=>{if(nt){const at=nt.clientWidth||nt.offsetWidth;Ge(at)}},[Ge]);useExecuteWhenChanged(()=>{g<$e&&g<=y&&(t||c(!0,!1)),Ce(g)},[g]),reactExports.useEffect(()=>{const Ke=ze=>{if(Z&&window){const{current:nt}=Z;nt&&!nt.contains(ze.target)&&g<=y&&(t||c(!0))}};return document.addEventListener("mousedown",Ke),()=>{document.removeEventListener("mousedown",Ke)}},[$e,y,t,c,g]);function De(){we(DEFAULT_WIDTH),localStorageAvailable()&&window.localStorage.setItem("sidebarWidth",DEFAULT_WIDTH)}const Ue=reactExports.useCallback(()=>{c(!t)},[t,c]),Je=()=>N?jsx$1(LogoComponent,{appLogo:N,endpoints:n,collapsed:t,componentName:"Sidebar Logo",dataTestId:"stSidebarLogo"}):jsx$1(StyledNoLogoSpacer,{"data-testid":"stLogoSpacer"}),Xe=shouldShowNavigation($,E)&&!A;return jsx$1(Resizable,{className:"stSidebar","data-testid":"stSidebar","aria-expanded":!t,enable:{top:!1,right:!0,bottom:!1,left:!1},handleStyles:{right:{width:RESIZE_HANDLE_WIDTH,right:"-6px"}},handleComponent:{right:jsx$1(StyledResizeHandle,{onDoubleClick:De})},size:{width:be,height:"auto"},as:StyledSidebar,onResizeStop:je,isCollapsed:t,sidebarWidth:be,windowInnerWidth:g,children:jsxs(StyledSidebarContent,{"data-testid":"stSidebarContent",ref:Z,onMouseOver:Fe,onMouseOut:Be,scrollbarGutterSize:H,children:[jsxs(StyledSidebarHeaderContainer,{"data-testid":"stSidebarHeader",children:[Je(),jsx$1(StyledCollapseSidebarButton,{showSidebarCollapse:Ie,"data-testid":"stSidebarCollapseButton",children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,onClick:Ue,children:jsx$1(DynamicIcon,{size:"xl",iconValue:":material/keyboard_double_arrow_left:",color:h.colors.fadedText60})})})]}),Xe&&jsx$1(SidebarNav,{endpoints:n,collapseSidebar:Ue,hasSidebarElements:e,widgetsDisabled:p}),jsx$1(StyledSidebarUserContent,{hasPageNavAbove:Xe,"data-testid":"stSidebarUserContent",children:o})]})})};function SidebarWithProvider(n){return jsx$1(IsSidebarContext.Provider,{value:!0,children:jsx$1(Sidebar,{...n})})}const ThemedSidebar=({children:n,...o})=>{const{activeTheme:e}=reactExports.useContext(ThemeContext),t=createSidebarTheme(e);return jsx$1(ThemeProvider,{theme:t.emotion,baseuiTheme:t.basewebTheme,children:jsx$1(SidebarWithProvider,{...o,children:n})})};function shouldCollapse(n,o,e){switch(n){case PageConfig.SidebarState.EXPANDED:return!1;case PageConfig.SidebarState.COLLAPSED:return!0;case PageConfig.SidebarState.AUTO:default:return e<=o}}const getSidebarCollapsedKey=n=>`stSidebarCollapsed-${n}`,getSavedSidebarState=n=>{if(!localStorageAvailable())return null;const o=window.localStorage.getItem(getSidebarCollapsedKey(n));return o===null?null:o==="true"},saveSidebarState=(n,o)=>{localStorageAvailable()&&window.localStorage.setItem(getSidebarCollapsedKey(n),o.toString())},StyledAppViewContainer=styled("div",{target:"e4man110"})({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",alignContent:"flex-start",position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden","@media print":{overflow:"visible"}}),StyledAppViewMain=styled("section",{target:"e4man111"})(({disableScrolling:n,theme:o})=>({display:"flex",flexDirection:"column",width:o.sizes.full,overflow:n?"hidden":"auto",alignItems:"center",height:"100dvh","&:focus":{outline:"none"},"@media not print":{[`@media (max-width: ${o.breakpoints.md})`]:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100dvh"}},"@media print":{overflow:"visible"}})),StyledStickyBottomContainer=styled("div",{target:"e4man112"})(({theme:n})=>({position:"sticky",left:0,bottom:0,width:"100%",zIndex:n.zIndices.bottom,"@media print":{position:"static"}})),StyledInnerBottomContainer=styled("div",{target:"e4man113"})(({theme:n})=>({position:"relative",bottom:0,width:"100%",minWidth:"100%",backgroundColor:n.colors.bgColor,display:"flex",flexDirection:"column",alignItems:"center"})),applyWideModePadding=n=>({[`@media (min-width: calc(${n.sizes.contentMaxWidth} + 2 * (${n.sizes.wideSidePadding} - ${n.spacing.lg})))`]:{paddingLeft:n.sizes.wideSidePadding,paddingRight:n.sizes.wideSidePadding},minWidth:"auto",maxWidth:"initial"}),StyledAppViewBlockContainer=styled("div",{target:"e4man114"})(({hasBottom:n,isWideMode:o,showPadding:e,hasHeader:t,showToolbar:c,hasTopNav:p,hasSidebar:h,embedded:y,theme:g})=>{const $="2.25rem";let E=$;y?e||c?E="6rem":(t||h)&&(E="4.5rem"):E=p?"8rem":"6rem";const A=e&&!n?"10rem":g.spacing.lg;return{width:g.sizes.full,paddingLeft:g.spacing.lg,paddingRight:g.spacing.lg,paddingTop:E,paddingBottom:A,maxWidth:g.sizes.contentMaxWidth,...o&&applyWideModePadding(g),"@media print":{paddingTop:$}}}),StyledSidebarBlockContainer=styled("div",{target:"e4man115"})(({theme:n})=>({width:n.sizes.full})),StyledEventBlockContainer=styled("div",{target:"e4man116"})({display:"none"}),StyledBottomBlockContainer=styled("div",{target:"e4man117"})(({isWideMode:n,showPadding:o,theme:e})=>({width:e.sizes.full,paddingLeft:e.spacing.lg,paddingRight:e.spacing.lg,paddingTop:e.spacing.lg,paddingBottom:o?e.sizes.appDefaultBottomPadding:e.spacing.threeXL,maxWidth:e.sizes.contentMaxWidth,...n&&applyWideModePadding(e),"@media print":{paddingTop:e.spacing.none}})),StyledAppViewBlockSpacer=styled("div",{target:"e4man118"})(({theme:n})=>({width:n.sizes.full,flexGrow:1})),StyledIFrameResizerAnchor=styled("div",{target:"e4man119"})(({theme:n})=>({position:"relative",bottom:n.spacing.none})),StyledMainContent=styled("div",{target:"e4man1110"})(({theme:n})=>({width:n.sizes.full,minWidth:0,height:"100dvh",[`@media (min-width: ${n.breakpoints.md})`]:{position:"relative"}}
143));function ScrollToBottomContainer(n){const{className:o,tabIndex:e,children:t,isEmbedded:c,disableScrolling:p}=n,h=useScrollToBottom(!0);return jsx$1(StyledAppViewMain,{tabIndex:e,className:o,isEmbedded:c,disableScrolling:p,ref:h,"data-testid":"stAppScrollToBottomContainer",children:t})}function AppView(n){const{elements:o,widgetMgr:e,uploadClient:t,sendMessageToHost:c,endpoints:p,navigationPosition:h,topRightContent:y,wideMode:g,embedded:$,showPadding:E,disableScrolling:A,addScriptFinishedHandler:N,removeScriptFinishedHandler:H,widgetsDisabled:Z,showToolbar:X,disableFullscreenMode:be,componentRegistry:we}=n;reactExports.useEffect(()=>{const wt=()=>{c({type:"UPDATE_HASH",hash:window.location.hash})};return window.addEventListener("hashchange",wt,!1),()=>window.removeEventListener("hashchange",wt,!1)},[c]);const{activeTheme:$e}=reactExports.useContext(ThemeContext),{appPages:Ce,navSections:Ie,pageLinkBaseUrl:Ne}=reactExports.useContext(NavigationContext),{initialSidebarState:Fe,appLogo:Be,hideSidebarNav:Ge}=reactExports.useContext(SidebarConfigContext),{innerWidth:je}=useWindowDimensionsContext(),De=g?"wide":"narrow",Ue=!o.sidebar.isEmpty,Je=!o.event.isEmpty,Xe=!o.bottom.isEmpty,[Ke,ze]=reactExports.useState(!1),nt=je>0&&(Ue||h===Navigation.Position.SIDEBAR&&!Ge&&Ce.length>1||Ke);reactExports.useEffect(()=>{nt&&Ge&&!Ke&&ze(!0)},[nt,Ge,Ke]);const ct=reactExports.useCallback(()=>{!Ue&&Ke&&ze(!1)},[Ue,Ke]);reactExports.useEffect(()=>(N(ct),()=>{H(ct)}),[ct,N,H]);const at=Xe?ScrollToBottomContainer:StyledAppViewMain,dt=wt=>jsx$1(ContainerContentsWrapper,{node:wt,endpoints:p,widgetMgr:e,widgetsDisabled:Z,uploadClient:t,disableFullscreenMode:be,componentRegistry:we,height:"auto",isRoot:!0}),[Me,We]=reactExports.useState(()=>{const wt=getSavedSidebarState(Ne);return wt!==null?wt:shouldCollapse(Fe,parseInt($e.emotion.breakpoints.md,10),je)});useExecuteWhenChanged(()=>{if(je>0&&nt){const wt=getSavedSidebarState(Ne);We(wt!==null?wt:shouldCollapse(Fe,parseInt($e.emotion.breakpoints.md,10),je))}},[je,nt,Fe,$e.emotion.breakpoints.md,Ne]);const tt=reactExports.useCallback((wt,Ft=!0)=>{We(wt),Ft&&saveSidebarState(Ne,wt)},[Ne]),Ve=reactExports.useCallback(()=>{tt(!Me,!0)},[tt,Me]),vt=Be?jsx$1(LogoComponent,{appLogo:Be,endpoints:p,collapsed:Me||!nt,componentName:"Header Logo",dataTestId:"stHeaderLogo"}):null,xt=vt&&(!nt||Me),Qe=nt&&Me,St=h===Navigation.Position.TOP&&shouldShowNavigation(Ce,Ie),pt=xt||Qe||St||X;return jsx$1(Fragment,{children:jsxs(StyledAppViewContainer,{className:"stAppViewContainer appview-container","data-testid":"stAppViewContainer","data-layout":De,children:[nt&&jsx$1(Profiler,{id:"Sidebar",children:jsx$1(ThemedSidebar,{endpoints:p,hasElements:Ue,isCollapsed:Me,onToggleCollapse:tt,widgetsDisabled:Z,children:jsx$1(StyledSidebarBlockContainer,{children:dt(o.sidebar)})})}),jsxs(StyledMainContent,{children:[jsx$1(Header,{hasSidebar:nt,isSidebarOpen:nt&&!Me,onToggleSidebar:Ve,navigation:h===Navigation.Position.TOP&&shouldShowNavigation(Ce,Ie)?jsx$1(TopNav,{endpoints:p,widgetsDisabled:Z}):null,rightContent:y,logoComponent:vt,showToolbar:X}),jsxs(at,{tabIndex:0,isEmbedded:$,disableScrolling:A,className:"stMain","data-testid":"stMain",children:[jsx$1(Profiler,{id:"Main",children:jsx$1(StyledAppViewBlockContainer,{className:"stMainBlockContainer block-container","data-testid":"stMainBlockContainer",isWideMode:g,showPadding:E,hasBottom:Xe,hasHeader:pt,hasSidebar:nt,showToolbar:X,hasTopNav:St,embedded:$,children:dt(o.main)})}),!Xe&&jsx$1(StyledIFrameResizerAnchor,{"data-testid":"stAppIframeResizerAnchor","data-iframe-height":!0}),Xe&&jsxs(Profiler,{id:"Bottom",children:[jsx$1(StyledAppViewBlockSpacer,{}),jsx$1(StyledStickyBottomContainer,{className:"stBottom","data-testid":"stBottom",children:jsx$1(StyledInnerBottomContainer,{children:jsx$1(StyledBottomBlockContainer,{"data-testid":"stBottomBlockContainer",isWideMode:g,showPadding:E,children:dt(o.bottom)})})})]})]})]}),Je&&jsx$1(Profiler,{id:"Event",children:jsx$1(EventContainer,{children:jsx$1(StyledEventBlockContainer,{className:"stEvent","data-testid":"stEvent",children:dt(o.event)})})})]})})}const DeployButtonContainer=styled("div",{target:"e17qgqm80"})(({theme:n})=>({display:"flex",gap:n.spacing.sm,alignItems:"center",lineHeight:n.iconSizes.md})),DeployButton=({onClick:n})=>jsx$1("div",{className:"stAppDeployButton","data-testid":"stAppDeployButton",children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_BUTTON,onClick:n,children:jsx$1(DeployButtonContainer,{children:jsx$1("span",{children:"Deploy"})})})});var MoreVert=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:o}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))});MoreVert.displayName="MoreVert";const BLOB_TYPE="video/webm",LOG$9=loglevelExports.getLogger("ScreenCastRecorder");class ScreenCastRecorder{static isSupportedBrowser(){try{return notNullOrUndefined(navigator.mediaDevices)&¬NullOrUndefined(navigator.mediaDevices.getUserMedia)&¬NullOrUndefined(navigator.mediaDevices.getDisplayMedia)&&MediaRecorder.isTypeSupp
143orted(BLOB_TYPE)}catch{return!1}}constructor({recordAudio:o,onErrorOrStop:e}){this.recordAudio=o,this.onErrorOrStopCallback=e,this.inputStream=null,this.recordedChunks=[],this.mediaRecorder=null}async initialize(){let e=(await navigator.mediaDevices.getDisplayMedia({video:!0})).getTracks();if(this.recordAudio){const t=await navigator.mediaDevices.getUserMedia({video:!1,audio:!0});e=e.concat(t.getAudioTracks())}this.recordedChunks=[],this.inputStream=new MediaStream(e),this.mediaRecorder=new MediaRecorder(this.inputStream,{mimeType:BLOB_TYPE}),this.mediaRecorder.ondataavailable=t=>this.recordedChunks.push(t.data)}getState(){return this.mediaRecorder?this.mediaRecorder.state:"inactive"}start(){if(!this.mediaRecorder)return LOG$9.warn("ScreenCastRecorder.start: mediaRecorder is null"),!1;const o=e=>{LOG$9.warn(`mediaRecorder.start threw an error: ${e}`)};this.mediaRecorder.onerror=e=>{o(e),this.onErrorOrStopCallback()},this.mediaRecorder.onstop=()=>this.onErrorOrStopCallback();try{this.mediaRecorder.start()}catch(e){return o(e),!1}return!0}stop(){if(!this.mediaRecorder)return;let o;const e=new Promise(t=>{o=t});return this.mediaRecorder.onstop=()=>o(),this.mediaRecorder.stop(),this.inputStream&&(this.inputStream.getTracks().forEach(t=>t.stop()),this.inputStream=null),e.then(()=>this.buildOutputBlob())}buildOutputBlob(){return new Blob(this.recordedChunks,{type:BLOB_TYPE})}}const recordingIndicatorPulse=n=>keyframes("0%{box-shadow:0 0 ",n.spacing.twoXS," ",n.colors.redTextColor,";}50%{box-shadow:0 0 ",n.spacing.sm," ",n.spacing.twoXS," ",n.colors.redTextColor,";}100%{box-shadow:0 0 ",n.spacing.twoXS," ",n.colors.redTextColor,";}"),StyledRecordingIndicator=styled("div",{target:"e7d0y4c0"})(({theme:n})=>({position:"absolute",bottom:n.spacing.lg,right:n.spacing.sm,width:n.spacing.sm,height:n.spacing.sm,backgroundColor:n.colors.redTextColor,borderRadius:n.radii.full,boxShadow:`0 0 ${n.spacing.twoXS} ${n.colors.redTextColor}`,animation:`${recordingIndicatorPulse(n)} 2s linear infinite`})),StyledMenuDivider=styled("div",{target:"e7d0y4c1"})(({theme:n})=>({borderTop:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,margin:`${n.spacing.sm} ${n.spacing.none}`})),StyledMenuItemShortcut=styled("span",{target:"e7d0y4c2"})(({isRecording:n,theme:o})=>({color:n?o.colors.redTextColor:o.colors.fadedText60,fontSize:o.fontSizes.sm,marginTop:o.spacing.twoXS,fontVariant:"small-caps",textTransform:"uppercase"})),StyledMenuItem=styled("ul",{target:"e7d0y4c3"})(({isDisabled:n,isRecording:o,theme:e})=>{const t=n?{backgroundColor:e.colors.transparent,color:e.colors.fadedText60,cursor:"not-allowed"}:{"&:focus":{backgroundColor:e.colors.primary,color:e.colors.white}},c=o&&{color:e.colors.redTextColor,fontWeight:e.fontWeights.bold};return{display:"block",flexDirection:"row",alignItems:"flex-start",padding:e.spacing.none,cursor:"pointer",...c||{},...t,"@media print":{display:"none !important"}}}),StyledCoreItem=styled("li",{target:"e7d0y4c4"})(({isHighlighted:n,styleProps:o,theme:e})=>{const t=n&&{"&:hover":{backgroundColor:e.colors.darkenedBgMix15}},c=o?.margin||0,p=o?.padding||`${e.spacing.twoXS} ${e.spacing.twoXL}`,h=o?.backgroundColor||e.colors.bgColor,y=o?.fontSize||e.fontSizes.md;return{margin:c,padding:p,backgroundColor:h,fontSize:y,...t||{},display:"block"}}),StyledDevItem=styled("li",{target:"e7d0y4c5"})(({isHighlighted:n,styleProps:o,theme:e})=>{const t=n&&{"&:hover":{backgroundColor:transparentize(e.colors.darkenedBgMix15,1)}},c=o?.margin||0,p=o?.padding||`${e.spacing.twoXS} ${e.spacing.twoXL}`,h=o?.backgroundColor||e.colors.secondaryBg,y=o?.fontSize||e.fontSizes.md;return{margin:c,padding:p,backgroundColor:h,fontSize:y,...t||{},display:"block"}}),StyledMenuItemLabel=styled("span",{target:"e7d0y4c6"})(({theme:n})=>({marginRight:n.spacing.md,flexGrow:1})),StyledMenuContainer=styled("div",{target:"e7d0y4c7"})(({theme:n})=>({ul:{borderRadius:n.radii.default},"& > ul[role=listbox]:not(:last-child)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},"ul[role=listbox] ~ ul[role=listbox]":{borderTopLeftRadius:0,borderTopRightRadius:0,boxShadow:"none",borderTop:"none"},"@media print":{display:"none"}})),StyledMainMenuContainer=styled("span",{target:"e7d0y4c8"})({lineHeight:"initial"}),SCREENCAST_LABEL={COUNTDOWN:"Cancel screencast",RECORDING:"Stop recording"},getOpenInWindowCallback=n=>()=>{window.open(n,"_blank")};function buildMenuItemComponent(n,o){const e=reactExports.forwardRef(({item:t,"aria-selected":c,onClick:p,onMouseEnter:h,$disabled:y,$isHighlighted:g},$)=>{const{label:E,shortcut:A,hasDividerAbove:N,styleProps:H,noHighlight:Z,interactions:X}=t,be={isDisabled:y,isRecording:!!t.stopRecordingIndicator};return jsxs(Fragment,{children:[N&&jsx$1(StyledMenuDivider,{"data-testid":"stMainMenuDivider"}),jsx$1(StyledMenuItem,{ref:$,role:"option","aria-selected":c,"aria-disabled":y,...be,...X||(y?{}:{onClick:Ce=>{o.enqueue("menuClick",{label:E}),p(Ce)},onMouseEnter:h}),children:jsxs(n,{...{isHighlighted:!Z&&g,styleProps:H},children:[jsx$1(StyledMenuItemLabel,{...be,children:E}),A&&jsx$1(StyledMenuItemShortcut,{...be,children:A})]})})]})});return e.displayName="MenuItem",e}const SubMenu=n=>{const{colors:o,sizes:e,spacing:t}=useEmotionTheme(),c=n.isDevMenu?StyledDevItem:StyledCoreItem;return jsx$1(StatefulMenu,{items:n.menuItems,onItemSelect:({item:p})=>{p.onClick(),n.closeMenu()},overrides:{Option:buildMenuItemComponent(c,n.metricsMgr),List:{props:{"data-testid":"stMainMenuList"},style:{backgroundColor:"inherit",borderBottomRadius:0,borderTopRadius:0,borderLeftRadius:0,borderRightRadius:0,paddingBottom:t.sm,paddingTop:t.sm,":focus":{outline:"none"},border:`${e.borderWidth} solid ${o.borderColor}`}}}})};function getDevMenuItems(n,o){const e=[],t=[o.developerOptions,o.clearCache];let c=null;for(const p of t)p&&(p!==o.DIVIDER&&(c===o.DIVIDER?e.push({...p,hasDividerAbove:!0}
143):e.push(p)),c=p);return notNullOrUndefined(c)&&(c.styleProps={margin:`0 0 -${n.spacing.sm} 0`,padding:`${n.spacing.twoXS} ${n.spacing.none} ${n.spacing.twoXS} ${n.spacing.twoXL}`}),e}function getPreferredMenuOrder(n,o,e){let t;if(n.toolbarMode==Config.ToolbarMode.MINIMAL){for(t=[e.report,e.community,e.DIVIDER,...o.length>0?o:[e.DIVIDER],e.about],t=t.filter(c=>c);t.length>0&&t[0]==e.DIVIDER;)t.shift();for(;t.length>0&&t.at(t.length-1)==e.DIVIDER;)t.pop();return t}return[e.rerun,e.settings,e.DIVIDER,e.print,...ScreenCastRecorder.isSupportedBrowser()?[e.recordScreencast]:[],e.DIVIDER,e.report,e.community,...o.length>0?o:[e.DIVIDER],e.about]}function MainMenu(n){const o=useEmotionTheme(),e=!n.isServerConnected,t={DIVIDER:{isDivider:!0},rerun:{disabled:e,onClick:n.quickRerunCallback,label:"Rerun",shortcut:"r"},print:{onClick:n.printCallback,label:"Print"},recordScreencast:{onClick:n.screencastCallback,label:SCREENCAST_LABEL[n.screenCastState]||"Record a screencast",shortcut:SCREENCAST_LABEL[n.screenCastState]?"esc":"",stopRecordingIndicator:!!SCREENCAST_LABEL[n.screenCastState]},...!n.menuItems?.hideGetHelp&&n.menuItems?.getHelpUrl&&{community:{onClick:getOpenInWindowCallback(n.menuItems?.getHelpUrl),label:"Get help"}},...!n.menuItems?.hideReportABug&&n.menuItems?.reportABugUrl&&{report:{onClick:getOpenInWindowCallback(n.menuItems?.reportABugUrl),label:"Report a bug"}},settings:{onClick:n.settingsCallback,label:"Settings"},...n.menuItems?.aboutSectionMd&&{about:{onClick:n.aboutCallback,label:"About"}}},c={DIVIDER:{},developerOptions:{label:"Developer options",noHighlight:!0,interactions:{},styleProps:{fontSize:convertRemToPx(o.fontSizes.twoSm),margin:`-${o.spacing.sm} 0 0 0`,padding:`${o.spacing.twoXS} ${o.spacing.none} ${o.spacing.twoXS} ${o.spacing.twoXL}`,pointerEvents:"none"}},clearCache:{disabled:e,onClick:n.clearCacheCallback,label:"Clear cache",shortcut:"c"}},p=n.hostMenuItems.map(E=>E.type==="separator"?t.DIVIDER:E.key==="reportBug"&&n.menuItems?.hideGetHelp||E.key==="about"&&n.menuItems?.aboutSectionMd!==""?null:{onClick:()=>n.sendMessageToHost({type:"MENU_ITEM_CALLBACK",key:E.key}),label:E.label},[]),h=getPreferredMenuOrder(n,p,t),y=[];let g=null;for(const E of h)E&&(E!==t.DIVIDER&&(g===t.DIVIDER?y.push({...E,hasDividerAbove:!0}):y.push(E)),g=E);const $=n.developmentMode?getDevMenuItems(o,c):[];return y.length==0&&$.length==0?jsx$1(Fragment,{}):jsx$1(StatefulPopover,{focusLock:!0,placement:PLACEMENT.bottomRight,content:({close:E})=>jsxs(StyledMenuContainer,{children:[y.length!=0&&jsx$1(SubMenu,{menuItems:y,closeMenu:E,isDevMenu:!1,metricsMgr:n.metricsMgr}),$.length!=0&&jsx$1(SubMenu,{menuItems:$,closeMenu:E,isDevMenu:!0,metricsMgr:n.metricsMgr})]}),overrides:{Body:{props:{"data-testid":"stMainMenuPopover",className:"stMainMenuPopover"}}},children:jsxs(StyledMainMenuContainer,{id:"MainMenu",className:"stMainMenu","data-testid":"stMainMenu",children:[jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,children:jsx$1(Icon$2,{content:MoreVert,size:"lg"})}),n.screenCastState==="RECORDING"&&jsx$1(StyledRecordingIndicator,{})]})})}const MainMenu$1=reactExports.memo(MainMenu);function hasClass(n,o){return n.classList?!!o&&n.classList.contains(o):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+o+" ")!==-1}function addClass(n,o){n.classList?n.classList.add(o):hasClass(n,o)||(typeof n.className=="string"?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o))}function replaceClassName(n,o){return n.replace(new RegExp("(^|\\s)"+o+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function removeClass$1(n,o){n.classList?n.classList.remove(o):typeof n.className=="string"?n.className=replaceClassName(n.className,o):n.setAttribute("class",replaceClassName(n.className&&n.className.baseVal||"",o))}const config={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function n(o){return o.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(n){_inheritsLoose(o,n);function o(t,c){var p;p=n.call(this,t,c)||this;var h=c,y=h&&!h.isMounting?t.enter:t.appear,g;return p.appearStatus=null,t.in?y?(g=EXITED,p.appearStatus=ENTERING):g=ENT
vendor: 4,238 bytes, line 143
143ERED:t.unmountOnExit||t.mountOnEnter?g=UNMOUNTED:g=EXITED,p.state={status:g},p.nextCallback=null,p}o.getDerivedStateFromProps=function(c,p){var h=c.in;return h&&p.status===UNMOUNTED?{status:EXITED}:null};var e=o.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.componentDidUpdate=function(c){var p=null;if(c!==this.props){var h=this.state.status;this.props.in?h!==ENTERING&&h!==ENTERED&&(p=ENTERING):(h===ENTERING||h===ENTERED)&&(p=EXITING)}this.updateStatus(!1,p)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.getTimeouts=function(){var c=this.props.timeout,p,h,y;return p=h=y=c,c!=null&&typeof c!="number"&&(p=c.exit,h=c.enter,y=c.appear!==void 0?c.appear:h),{exit:p,enter:h,appear:y}},e.updateStatus=function(c,p){if(c===void 0&&(c=!1),p!==null)if(this.cancelNextCallback(),p===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var h=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);h&&forceReflow(h)}this.performEnter(c)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},e.performEnter=function(c){var p=this,h=this.props.enter,y=this.context?this.context.isMounting:c,g=this.props.nodeRef?[y]:[ReactDOM.findDOMNode(this),y],$=g[0],E=g[1],A=this.getTimeouts(),N=y?A.appear:A.enter;if(!c&&!h||config.disabled){this.safeSetState({status:ENTERED},function(){p.props.onEntered($)});return}this.props.onEnter($,E),this.safeSetState({status:ENTERING},function(){p.props.onEntering($,E),p.onTransitionEnd(N,function(){p.safeSetState({status:ENTERED},function(){p.props.onEntered($,E)})})})},e.performExit=function(){var c=this,p=this.props.exit,h=this.getTimeouts(),y=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!p||config.disabled){this.safeSetState({status:EXITED},function(){c.props.onExited(y)});return}this.props.onExit(y),this.safeSetState({status:EXITING},function(){c.props.onExiting(y),c.onTransitionEnd(h.exit,function(){c.safeSetState({status:EXITED},function(){c.props.onExited(y)})})})},e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(c,p){p=this.setNextCallback(p),this.setState(c,p)},e.setNextCallback=function(c){var p=this,h=!0;return this.nextCallback=function(y){h&&(h=!1,p.nextCallback=null,c(y))},this.nextCallback.cancel=function(){h=!1},this.nextCallback},e.onTransitionEnd=function(c,p){this.setNextCallback(p);var h=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),y=c==null&&!this.props.addEndListener;if(!h||y){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var g=this.props.nodeRef?[this.nextCallback]:[h,this.nextCallback],$=g[0],E=g[1];this.props.addEndListener($,E)}c!=null&&setTimeout(this.nextCallback,c)},e.render=function(){var c=this.state.status;if(c===UNMOUNTED)return null;var p=this.props,h=p.children;p.in,p.mountOnEnter,p.unmountOnExit,p.appear,p.enter,p.exit,p.timeout,p.addEndListener,p.onEnter,p.onEntering,p.onEntered,p.onExit,p.onExiting,p.onExited,p.nodeRef;var y=_objectWithoutPropertiesLoose$q(p,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof h=="function"?h(c,y):React.cloneElement(React.Children.only(h),y))},o}(React.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;var _addClass=function n(o,e){return o&&e&&e.split(" ").forEach(function(t){return addClass(o,t)})},removeClass=function n(o,e){return o&&e&&e.split(" ").forEach(function(t){return removeClass$1(o,t)})},CSSTransition=function(n){_inheritsLoose(o,n);function o(){for(var t,c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];
143return t=n.call.apply(n,[this].concat(p))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(y,g){var $=t.resolveArguments(y,g),E=$[0],A=$[1];t.removeClasses(E,"exit"),t.addClass(E,A?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(y,g)},t.onEntering=function(y,g){var $=t.resolveArguments(y,g),E=$[0],A=$[1],N=A?"appear":"enter";t.addClass(E,N,"active"),t.props.onEntering&&t.props.onEntering(y,g)},t.onEntered=function(y,g){var $=t.resolveArguments(y,g),E=$[0],A=$[1],N=A?"appear":"enter";t.removeClasses(E,N),t.addClass(E,N,"done"),t.props.onEntered&&t.props.onEntered(y,g)},t.onExit=function(y){var g=t.resolveArguments(y),$=g[0];t.removeClasses($,"appear"),t.removeClasses($,"enter"),t.addClass($,"exit","base"),t.props.onExit&&t.props.onExit(y)},t.onExiting=function(y){var g=t.resolveArguments(y),$=g[0];t.addClass($,"exit","active"),t.props.onExiting&&t.props.onExiting(y)},t.onExited=function(y){var g=t.resolveArguments(y),$=g[0];t.removeClasses($,"exit"),t.addClass($,"exit","done"),t.props.onExited&&t.props.onExited(y)},t.resolveArguments=function(y,g){return t.props.nodeRef?[t.props.nodeRef.current,y]:[y,g]},t.getClassNames=function(y){var g=t.props.classNames,$=typeof g=="string",E=$&&g?g+"-":"",A=$?""+E+y:g[y],N=$?A+"-active":g[y+"Active"],H=$?A+"-done":g[y+"Done"];return{baseClassName:A,activeClassName:N,doneClassName:H}},t}var e=o.prototype;return e.addClass=function(c,p,h){var y=this.getClassNames(p)[h+"ClassName"],g=this.getClassNames("enter"),$=g.doneClassName;p==="appear"&&h==="done"&&$&&(y+=" "+$),h==="active"&&c&&forceReflow(c),y&&(this.appliedClasses[p][h]=y,_addClass(c,y))},e.removeClasses=function(c,p){var h=this.appliedClasses[p],y=h.base,g=h.active,$=h.done;this.appliedClasses[p]={},y&&removeClass(c,y),g&&removeClass(c,g),$&&removeClass(c,$)},e.render=function(){var c=this.props;c.classNames;var p=_objectWithoutPropertiesLoose$q(c,["classNames"]);return React.createElement(Transition,_extends$C({},p,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},o}(React.Component);CSSTransition.defaultProps={classNames:""};CSSTransition.propTypes={};var ConnectionState=function(n){return n.CONNECTED="CONNECTED",n.DISCONNECTED_FOREVER="DISCONNECTED_FOREVER",n.INITIAL="INITIAL",n.PINGING_SERVER="PINGING_SERVER",n.CONNECTING="CONNECTING",n.STATIC_CONNECTING="STATIC_CONNECTING",n.STATIC_CONNECTED="STATIC_CONNECTED",n}({});const CORS_ERROR_MESSAGE_DOCUMENTATION_LINK="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS",WEBSOCKET_STREAM_PATH="_stcore/stream",SERVER_PING_PATH="_stcore/health",HOST_CONFIG_PATH="_stcore/host-config",PING_MINIMUM_RETRY_PERIOD_MS=100,PING_MAXIMUM_RETRY_PERIOD_MS=2e3,MAX_RETRIES_BEFORE_CLIENT_ERROR=6,isAndroidDevice=()=>typeof navigator>"u"?!1:/Android/i.test(navigator.userAgent),WEBSOCKET_TIMEOUT_MS=isAndroidDevice()?60*1e3:15*1e3,PING_TIMEOUT_MS=15*1e3,IS_DEV_ENV=!1;typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let n,o;const e=new Promise((t,c)=>{n=t,o=c});return{resolve:n,reject:o,promise:e}});function u(n){const o=document.cookie.match(`\\b${n}=([^;]*)\\b`);return o?o[1]:void 0}function a(){const n="testData";try{const{localStorage:o}=window;o.setItem(n,n),o.getItem(n),o.removeItem(n)}catch{return!1}return!0}function m(n){return n!=null}function d(n){return n==null}const i=/\/+$/,l=/^\/+/;function f({hostname:n,port:o,pathname:e,protocol:t},c){const p=s(e,c);return`${t}//${n}${o?`:${o}`:""}/${p}`}function s(n,o){return n=n.replace(i,"").replace(l,""),o=o.replace(i,"").replace(l,""),n.length===0?o:`${n}/${o}`}const STATIC_ASSET_CONFIG="https://data.streamlit.io/static.json",LOG$8=loglevelExports.getLogger("StaticConnection");async function getStaticConfig(){const n=a();let o="";if(n){const e=window.localStorage.getItem("stStaticAssetUrl");if(e)return e}try{const e=await fetch(STATIC_ASSET_CONFIG,{signal:AbortSignal.timeout(5e3)});e.ok?(o=(await e.json()).static_url??void 0,n&&o&&window.localStorage.setItem("stStaticAssetUrl",o)):LOG$8.error("Failed to fetch static config url: ",e.status)}catch(e){LOG$8.error("Failed to fetch static config url:",e)}return o}async function getProtoResponse(n,o){const e=`${o}/${n}/protos.pb`,t=await fetch(e,{signal:AbortSignal.timeout(5e3)});if(!t.ok)LOG$8.error(`Failed to fetch static app protos for id: ${n}`,t.status);else return t.arrayBuffer();return null}async function dispatchAppForwardMessages(n,o,e,t){const c=await getProtoResponse(n,o);if(!c){LOG$8.error("Failed to retrieve static app protos"),t({message:`Failed to retrieve static app protos. Please confirm the id is correct and try again. Given static app id: ${n}`});return}
143ForwardMsgList.decode(new Uint8Array(c)).messages.forEach(h=>{e(h)})}async function establishStaticConnection(n,o,e,t,c){o(ConnectionState.STATIC_CONNECTING);const p=await getStaticConfig();c.setStaticConfigUrl(p),dispatchAppForwardMessages(n,p,e,t),o(ConnectionState.STATIC_CONNECTED)}const FINAL_SLASH_RE=/\/+$/,INITIAL_SLASH_RE=/^\/+/;function parseUriIntoBaseParts(n){const o=new URL(n??window.location.href);return o.pathname=o.pathname.replace(FINAL_SLASH_RE,"").replace(INITIAL_SLASH_RE,""),o}function getPossibleBaseUris(){const n=parseUriIntoBaseParts(window.__streamlit?.BACKEND_BASE_URL),{pathname:o}=n;if(o==="/")return[n];const e=o.split("/"),t=[];for(;e.length>0;){const c=new URL(n);c.pathname=e.join("/"),t.push(c),e.pop()}return t.length<=2?t:t.slice(0,2)}function buildWsUri({hostname:n,port:o,pathname:e,protocol:t},c){const p=t==="https:"?"wss":"ws",h=s(e,c);return`${p}://${n}:${o}/${h}`}function serializeForDisplay(n){if(n!=null)switch(typeof n){case"object":return JSON.stringify(n,null,2);case"string":case"number":case"boolean":return String(n);default:return}}class FetchError extends Error{constructor(o,e,t={}){super(o),this.name="FetchError",this.url=e,this.isTimeout=t.isTimeout??!1,this.isNetworkError=t.isNetworkError??!1,this.response=t.response}}async function fetchWithTimeout(n,o){const e=new AbortController,t=setTimeout(()=>e.abort(),o);try{const c=await fetch(n,{signal:e.signal});if(clearTimeout(t),!c.ok){let h;try{h=await c.json()}catch{try{h=await c.text()}catch{h=null}}throw new FetchError(`Request failed with status ${c.status}`,n,{response:{status:c.status,statusText:c.statusText,data:h}})}const p=await c.text();try{return{data:JSON.parse(p),url:n}}catch{return{data:p,url:n}}}catch(c){throw clearTimeout(t),c instanceof FetchError?c:c instanceof DOMException&&c.name==="AbortError"?new FetchError("Connection timed out",n,{isTimeout:!0}):c instanceof TypeError?new FetchError(c.message||"Network error",n,{isNetworkError:!0}):new FetchError(c instanceof Error?c.message:"Unknown error",n)}}const LOG$7=loglevelExports.getLogger("DoInitPings");class PingCancelledError extends Error{constructor(){super("Ping cancelled")}}function doInitPings(n,o,e,t,c,p){const{promise:h,resolve:y,reject:g}=Promise.withResolvers();let $=0,E=0,A,N=()=>{};const H=()=>{E++,E>=n.length&&(E=0),N()},Z=Ce=>{const Ie=Math.random()*.4-.2,Ne=$===1?o:o*2**($-1)*(1+Ie),Fe=Math.min(e,Ne);t($,Ce,Fe),!(typeof window>"u")&&(A=globalThis.setTimeout(H,Fe))},X=()=>{const Ce=n[E];new URL(f(Ce,"")).hostname==="localhost"?Z({message:"Is Streamlit still running? If you accidentally stopped Streamlit, just restart it in your terminal:",codeBlock:"streamlit run yourscript.py"}):Z({message:"Streamlit server is not responding. Are you connected to the internet?"})},be=()=>{Z({message:`Cannot connect to Streamlit (HTTP status: 403). 144 145If you are trying to access a Streamlit app running on another server, this could be due to the app's [CORS](${CORS_ERROR_MESSAGE_DOCUMENTATION_LINK}) settings.`})},we=Ce=>{let Ie="DoInitPings";if(Ce)try{Ie=new URL(Ce).pathname}catch{LOG$7.error(`unrecognized url: ${Ce}`)}return Ie};return N=()=>{const Ce=n[E],Ie=f(Ce,SERVER_PING_PATH),Ne=typeof window<"u"?window.__streamlit?.HOST_CONFIG_BASE_URL:void 0,Fe=Ne?parseUriIntoBaseParts(Ne):Ce,Be=f(Fe,HOST_CONFIG_PATH);LOG$7.info(`Attempting to connect to ${Ie}.`),E===0&&$++,Promise.all([fetchWithTimeout(Ie,PING_TIMEOUT_MS),fetchWithTimeout(Be,PING_TIMEOUT_MS)]).then(([Ge,je])=>{p(je.data),y(E)}).catch(Ge=>{const je=$>=MAX_RETRIES_BEFORE_CLIENT_ERROR;if(Ge.isTimeout){if(je){const De=we(Ge.url);LOG$7.error("Client error: DoInitPings timed out"),c("DoInitPings timed out","Connection timed out - ECONNABORTED",De)}return Z({message:"Connection timed out."})}if(Ge.response){const{data:De,status:Ue,statusText:Je}=Ge.response,Xe=we(Ge.url);if(Ue===0)return je&&(LOG$7.error(`Client Error: response received with status ${Ue} when attempting to reach ${Xe}`),c(`Response received with status ${Ue}`,Je,Xe)),X();if(Ue===403)return je&&(LOG$7.error(`Client Error: response received with status ${Ue} when attempting to reach ${Xe}`),c(Ue,Je,Xe)),be();je&&(LOG$7.error(`Client Error: response received with status ${Ue} when attempting to reach ${Xe}`),c(Ue,Je,Xe));const Ke=serializeForDisplay(De);return Z({message:`Connection failed with status ${Ue}${Ke?", and response:":"."}
145`,...Ke&&{codeBlock:Ke}})}if(Ge.isNetworkError){if(je){const De=we(Ge.url);LOG$7.error(`Client Error in reaching server endpoint - No response received when attempting to reach ${De}`),c("No response received from server","Network error",De)}return X()}if(je){const De=we(Ge.url);LOG$7.error(`Client Error in reaching server endpoint - error in setting up request when attempting to reach ${De}`),c("Error setting up request to server",Ge.message??"",De)}return Z({message:Ge.message})})},N(),{promise:h,cancel:()=>{m(A)&&globalThis.clearTimeout(A),g(new PingCancelledError)}}}const LOG$6=loglevelExports.getLogger("ForwardMessageCache");class CacheEntry{constructor(o,e,t){this.scriptRunCount=0,this.encodedMsg=o,this.scriptRunCount=e,this.fragmentId=t}getAge(o){return o-this.scriptRunCount}}class ForwardMsgCache{constructor(){this.messages=new Map,this.scriptRunCount=0}incrementRunCount(o,e){this.scriptRunCount+=1,this.messages.forEach((t,c)=>{e.length>0&&(!t.fragmentId||!e.includes(t.fragmentId))||t.getAge(this.scriptRunCount)>o&&(LOG$6.info(`Removing expired ForwardMsg [hash=${c}]`),this.messages.delete(c))})}getCachedMessageHashes(){return Array.from(this.messages.keys())}async processMessagePayload(o,e){if(this.maybeCacheMessage(o,e),o.type!=="refHash")return o;const t=this.getCachedMessage(o.refHash,!0);if(m(t))LOG$6.info(`Cached ForwardMsg HIT [hash=${o.refHash}]`);else throw new Error(`Cached ForwardMsg MISS [hash=${o.refHash}]. This is not expected to happen. Please [report this bug](https://github.com/streamlit/streamlit/issues).`);if(!o.metadata)throw new Error("Reference ForwardMsg has no metadata. This is not expected to happen. Please [report this bug](https://github.com/streamlit/streamlit/issues).");return t.metadata=ForwardMsg.decode(e).metadata,t}maybeCacheMessage(o,e){if(o.type!=="refHash"&&o.metadata?.cacheable){if(!o.hash){LOG$6.error("ForwardMsg has no hash. This is not expected to happen, please report this bug.",o);return}this.getCachedMessage(o.hash,!0)===void 0&&(LOG$6.info(`Caching ForwardMsg [hash=${o.hash}]`),this.messages.set(o.hash,new CacheEntry(e,this.scriptRunCount,o.delta?.fragmentId??void 0)))}}getCachedMessage(o,e){const t=this.messages.get(o);if(!d(t))return e&&(t.scriptRunCount=this.scriptRunCount),ForwardMsg.decode(t.encodedMsg)}}const LOG$5=loglevelExports.getLogger("WebsocketConnection");class WebsocketConnection{constructor(o){this.uriIndex=0,this.lastDispatchedMessageIndex=-1,this.nextMessageIndex=0,this.messageQueue={},this.state=ConnectionState.INITIAL,this.args=o,this.cache=new ForwardMsgCache,this.stepFsm("INITIALIZED")}getBaseUriParts(){if(this.state===ConnectionState.CONNECTED)return this.args.baseUriPartsList[this.uriIndex]}disconnect(){this.setFsmState(ConnectionState.DISCONNECTED_FOREVER)}setFsmState(o,e){switch(LOG$5.info(`New state: ${o}`),this.state=o,this.state){case ConnectionState.PINGING_SERVER:this.pingServer();break}switch(this.args.onConnectionStateChange(o,e),this.state){case ConnectionState.CONNECTING:this.connectToWebSocket();break;case ConnectionState.DISCONNECTED_FOREVER:this.closeConnection();break}}stepFsm(o,e){if(LOG$5.info(`State: ${this.state}; Event: ${o}`),o==="FATAL_ERROR"&&this.state!==ConnectionState.DISCONNECTED_FOREVER){LOG$5.error(`Client Error: Websocket connection encountered fatal error - ${e}`),this.args.sendClientError("Websocket connection fatal error encountered",e,"Websocket Connection"),this.setFsmState(ConnectionState.DISCONNECTED_FOREVER,{message:e||"Unknown error"});return}switch(this.state){case ConnectionState.INITIAL:if(o==="INITIALIZED"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.CONNECTING:if(o==="CONNECTION_SUCCEEDED"){this.setFsmState(ConnectionState.CONNECTED);return}if(o==="CONNECTION_TIMED_OUT"||o==="CONNECTION_ERROR"||o==="CONNECTION_CLOSED"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.CONNECTED:if(o==="CONNECTION_CLOSED"||o==="CONNECTION_ERROR"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.PINGING_SERVER:if(o==="SERVER_PING_SUCCEEDED"){this.setFsmState(ConnectionState.CONNECTING);return}break;case ConnectionState.DISCONNECTED_FOREVER:LOG$5.warn(`Discarding ${o} while in ${ConnectionState.DISCONNECTED_FOREVER}`);return}throw new Error(`Unsupported state transition. 146State: ${this.state} 147Event: ${o}`)}async pingServer(){this.pingRequest=doInitPings(this.args.baseUriPartsList,PING_MINIMUM_RETRY_PERIOD_MS,PING_MAXIMUM_RETRY_PERIOD_MS,this.args.onRetry,this.args.sendClientError,this.args.onHostConfigResp);try{this.uriIndex=await this.pingRequest.promise,this.pingRequest=void 0,this.stepFsm("SERVER_PING_SUCCEEDED")}catch(o){o instanceof PingCancelledError?LOG$5.info("Ping cancelled"):this.stepFsm("FATAL_ERROR",o instanceof Error?o.message:String(o))}finally{this.pingRequest=void 0}}async getSessionTokens(){const o=await this.args.claimHostAuthToken(),e=u("_streamlit_xsrf");this.args.resetHostAuthToken();const t=this.args.getLastSessionId();return[o??e??"PLACEHOLDER_AUTH_TOKEN",...t?[t]:[]]}async connectToWebSocket(){const o=buildWsUri(this.args.baseUriPartsList[this.uriIndex],WEBSOCKET_STREAM_PATH);if(m(this.websocket))throw new Error("Websocket already exists");LOG$5.info("creating WebSocket");
147const e=await this.getSessionTokens();this.websocket=new WebSocket(o,["streamlit",...e]),this.websocket.binaryType="arraybuffer",this.setConnectionTimeout(o);const t=this.websocket,c=()=>t===this.websocket;this.websocket.addEventListener("message",p=>{c()&&this.handleMessage(p.data).catch(h=>{const y=`Failed to process a Websocket message. ${h}`;LOG$5.error(y),this.stepFsm("FATAL_ERROR",y)})}),this.websocket.addEventListener("open",()=>{c()&&(LOG$5.info("WebSocket onopen"),this.stepFsm("CONNECTION_SUCCEEDED"))}),this.websocket.addEventListener("close",()=>{c()&&(LOG$5.warn("WebSocket onclose"),this.closeConnection(),this.stepFsm("CONNECTION_CLOSED"))}),this.websocket.addEventListener("error",p=>{c()&&(LOG$5.error("Client Error: WebSocket onerror"),this.args.sendClientError("Websocket connection onerror triggered",`Error: ${p}`,"Websocket Connection"),this.closeConnection(),this.stepFsm("CONNECTION_ERROR"))})}setConnectionTimeout(o){if(m(this.wsConnectionTimeout))throw new Error("WS timeout is already set");const e=this.websocket;this.wsConnectionTimeout=globalThis.setTimeout(()=>{if(e===this.websocket){if(d(this.wsConnectionTimeout)){LOG$5.warn("Timeout fired after cancellation");return}if(d(this.websocket)){this.closeConnection(),this.stepFsm("FATAL_ERROR","Null Websocket in setConnectionTimeout");return}this.websocket.readyState===0&&(LOG$5.info(`Client error: ${o} timed out`),this.args.sendClientError("Websocket connection timed out",`${o} timed out`,"Websocket Connection"),this.closeConnection(),this.stepFsm("CONNECTION_TIMED_OUT"))}},WEBSOCKET_TIMEOUT_MS),LOG$5.info(`Set WS timeout ${Number(this.wsConnectionTimeout)}`)}closeConnection(){this.websocket&&(this.websocket.close(),this.websocket=void 0),m(this.wsConnectionTimeout)&&(LOG$5.info(`Clearing WS timeout ${Number(this.wsConnectionTimeout)}`),globalThis.clearTimeout(this.wsConnectionTimeout),this.wsConnectionTimeout=void 0),this.pingRequest&&(this.pingRequest.cancel(),this.pingRequest=void 0)}sendMessage(o){if(!this.websocket)return;const e=BackMsg.create(o),t=BackMsg.encode(e).finish();this.websocket.send(t)}incrementMessageCacheRunCount(o,e){this.cache.incrementRunCount(o,e)}getCachedMessageHashes(){return this.cache.getCachedMessageHashes()}async handleMessage(o){const e=this.nextMessageIndex;this.nextMessageIndex+=1;const t=new Uint8Array(o),c=ForwardMsg.decode(t);for(this.messageQueue[e]=await this.cache.processMessagePayload(c,t);this.lastDispatchedMessageIndex+1 in this.messageQueue;){const p=this.lastDispatchedMessageIndex+1;this.args.onMessage(this.messageQueue[p]),delete this.messageQueue[p],this.lastDispatchedMessageIndex=p}}}const LOG$4=loglevelExports.getLogger("ConnectionManager");class ConnectionManager{constructor(o){this.connectionState=ConnectionState.INITIAL,this.setConnectionState=(e,t)=>{this.connectionState!==e&&(this.connectionState=e,this.props.connectionStateChanged(e)),t&&this.props.onConnectionError(t)},this.showRetryError=(e,t,c)=>{e>=MAX_RETRIES_BEFORE_CLIENT_ERROR&&this.props.onConnectionError(t)},this.props=o,this.connect()}isConnected(){return this.connectionState===ConnectionState.CONNECTED}getBaseUriParts(){if(this.websocketConnection instanceof WebsocketConnection)return this.websocketConnection.getBaseUriParts()}sendMessage(o){this.websocketConnection instanceof WebsocketConnection&&this.isConnected()?this.websocketConnection.sendMessage(o):LOG$4.error(`Cannot send message when server is disconnected: ${o}`)}incrementMessageCacheRunCount(o,e){this.websocketConnection instanceof WebsocketConnection&&this.websocketConnection.incrementMessageCacheRunCount(o,e)}getCachedMessageHashes(){return this.websocketConnection instanceof WebsocketConnection?this.websocketConnection?.getCachedMessageHashes()??[]:[]}checkStaticConnection(){return new URLSearchParams(document.location.search).get("staticAppId")}async connect(){const o=this.checkStaticConnection();if(o)establishStaticConnection(o,this.setConnectionState,this.props.onMessage,this.props.onConnectionError,this.props.endpoints),this.websocketConnection=null;else try{this.websocketConnection=await this.connectToRunningServer()}catch(e){const t=e instanceof Error?e:new Error(`${e}`);LOG$4.error(`Client Error: Websocket connection - ${t.message}`),this.props.sendClientError("Failed to establish websocket connection",t.message,"Connection Manager"),this.setConnectionState(ConnectionState.DISCONNECTED_FOREVER,{message:t.message})}}disconnect(){this.websocketConnection?.disconnect()}connectToRunningServer(){const o=getPossibleBaseUris();return new WebsocketConnection({getLastSessionId:this.props.getLastSessionId,endpoints:this.props.endpoints,baseUriPartsList:o,onMessage:this.props.onMessage,onConnectionStateChange:this.setConnectionState,onRetry:this.showRetryError,claimHostAuthToken:this.props.claimHostAuthToken,resetHostAuthToken:this.props.resetHostAuthToken,sendClientError:this.props.sendClientError,onHostConfigResp:this.props.onHostConfigResp})}}const LOG$3=loglevelExports.getLogger("DefaultStreamlitEndpoints"),MEDIA_ENDPOINT="/media",UPLOAD_FILE_ENDPOINT="/_stcore/upload_file",COMPONENT_ENDPOINT_BASE="/component",BIDI_COMPONENT_ENDPOINT_BASE="/_stcore/bidi-components";
147class DefaultStreamlitEndpoints{constructor(o){this.getServerUri=o.getServerUri,this.csrfEnabled=o.csrfEnabled,this.sendClientError=o.sendClientError,this.staticConfigUrl=null}setStaticConfigUrl(o){this.staticConfigUrl=o}sendClientErrorToHost(o,e,t,c,p){this.sendClientError(o,e,t,c,p)}async checkSourceUrlResponse(o,e,t){const c=t?`${e} ${t}`:e;try{const p=await fetch(o);p.ok||(LOG$3.error(`Client Error: ${c} source error - ${p.status}`),this.sendClientErrorToHost(e,p.status,p.statusText,o,t))}catch(p){const h=p instanceof Error?p.message:"Unknown Error";LOG$3.error(`Client Error: ${c} fetch error - ${h}`),this.sendClientErrorToHost(e,"Error fetching source",h,o,t)}}buildComponentURL(o,e){return f(this.requireServerUri(),`${COMPONENT_ENDPOINT_BASE}/${o}/${e}`)}buildBidiComponentURL(o,e){return f(this.requireServerUri(),`${BIDI_COMPONENT_ENDPOINT_BASE}/${o}/${e}`)}setFileUploadClientConfig({prefix:o,headers:e}){this.fileUploadClientConfig={prefix:o,headers:e}}buildStaticUrl(o){const t=new URLSearchParams(document.location.search).get("staticAppId");return`${this.staticConfigUrl}/${t}${o}`}buildMediaURL(o){return this.staticConfigUrl&&o.startsWith(MEDIA_ENDPOINT)?this.buildStaticUrl(o):o.startsWith(MEDIA_ENDPOINT)?f(this.requireServerUri(),o):o}buildDownloadUrl(o){if(!o.startsWith(MEDIA_ENDPOINT))return o;const e=window.__streamlit?.DOWNLOAD_ASSETS_BASE_URL;return f(e?parseUriIntoBaseParts(e):this.requireServerUri(),o)}buildFileUploadURL(o){return this.fileUploadClientConfig?s(this.fileUploadClientConfig.prefix,o):o.startsWith(UPLOAD_FILE_ENDPOINT)?f(this.requireServerUri(),o):o}buildAppPageURL(o,e){const t=e.urlPathname,c=e.isDefault?"":t;if(typeof o=="string"&&o.length>0)return`${o}/${c}`;const{port:p,protocol:h}=window.location,{pathname:y,hostname:g}=this.requireServerUri(),$=p?`:${p}`:"",E=y==="/"?"/":`${y}/`;return`${h}//${g}${$}${E}${c}`}async uploadFileUploaderFile(o,e,t,c,p){const h=new FormData,{name:y,webkitRelativePath:g}=e,$=g||y;h.append(y,e,$);const E=this.getAdditionalHeaders(),A=this.buildFileUploadURL(o);try{await this.csrfRequest(A,{signal:p,method:"PUT",data:h,responseType:"text",headers:E,onUploadProgress:c})}catch(N){LOG$3.error(`Client Error: File uploader error on file upload - ${N}`);const H=N instanceof Error?N.message:"Unknown Error";throw this.sendClientErrorToHost("File Uploader","Error uploading file",H,A),N}}getAdditionalHeaders(){let o={};return this.fileUploadClientConfig&&(o={...o,...this.fileUploadClientConfig.headers}),o}async deleteFileAtURL(o,e){const t=this.getAdditionalHeaders(),c=this.buildFileUploadURL(o);try{await this.csrfRequest(c,{method:"DELETE",data:{sessionId:e},headers:t})}catch(p){LOG$3.error(`Client Error: File uploader error on file delete - ${p}`);const h=p instanceof Error?p.message:"Unknown Error";throw this.sendClientErrorToHost("File Uploader","Error deleting file",h,c),p}}requireServerUri(){const o=this.getServerUri();if(m(o))return this.cachedServerUri=o,o;if(m(this.cachedServerUri))return this.cachedServerUri;throw new Error("not connected to a server!")}
147async csrfRequest(o,e){if(e.url=o,this.csrfEnabled){const c=u("_streamlit_xsrf");m(c)&&(e.headers={"X-Xsrftoken":c,...e.headers||{}},e.withCredentials=!0)}const{default:t}=await __vitePreload(async()=>{const{default:c}=await import("./index.B0yp3bM1.js");return{default:c}},[],import.meta.url);return t.request(e)}}var Ellipses=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},n,{ref:o}),reactExports.createElement("path",{d:"M0 3v2h2V3H0zm3 0v2h2V3H3zm3 0v2h2V3H6z"}))});Ellipses.displayName="Ellipses";var Warning=reactExports.forwardRef(function(n,o){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$C({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},n,{ref:o}),reactExports.createElement("path",{d:"M3.09 0c-.06 0-.1.04-.13.09L.02 6.9c-.02.05-.03.13-.03.19v.81c0 .05.04.09.09.09h6.81c.05 0 .09-.04.09-.09v-.81c0-.05-.01-.14-.03-.19L4.01.09A.142.142 0 003.88 0h-.81zM3 3h1v2H3V3zm0 3h1v1H3V6z"}))});Warning.displayName="Warning";const CONNECTING_LABEL="Connecting",CONNECTING_TOOLTIP_TEXT="Connecting to Streamlit server",CONNECTING_STATIC_TOOLTIP_TEXT="Connecting to static app",ERROR_LABEL="Error",ERROR_TOOLTIP_TEXT="Unable to connect to Streamlit server";function getConnectionStateUI(n){switch(n){case ConnectionState.INITIAL:case ConnectionState.PINGING_SERVER:case ConnectionState.CONNECTING:return{icon:Ellipses,label:CONNECTING_LABEL,tooltip:CONNECTING_TOOLTIP_TEXT};case ConnectionState.CONNECTED:return;case ConnectionState.STATIC_CONNECTING:return{icon:Ellipses,label:CONNECTING_LABEL,tooltip:CONNECTING_STATIC_TOOLTIP_TEXT};case ConnectionState.STATIC_CONNECTED:return;case ConnectionState.DISCONNECTED_FOREVER:default:return{icon:Warning,label:ERROR_LABEL,tooltip:ERROR_TOOLTIP_TEXT}}}const newYearsRunning=""+new URL("../media/fireworks.B4d-_KUe.gif",import.meta.url).href,StyledConnectionStatus=styled("div",{target:"erv3yhi0"})(({theme:n})=>({display:"flex",alignItems:"center",justifyContent:"center",color:n.colors.gray60})),StyledConnectionStatusLabel=styled("label",{target:"erv3yhi1"})(({theme:n})=>({fontSize:n.fontSizes.sm,color:n.colors.gray60,textTransform:"uppercase",marginTop:n.spacing.none,marginRight:n.spacing.lg,marginBottom:n.spacing.none,marginLeft:n.spacing.sm,whiteSpace:"nowrap",maxWidth:n.sizes.appStatusMaxWidth,lineHeight:n.lineHeights.none})),StyledAppStatus=styled("div",{target:"erv3yhi2"})(({theme:n})=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:n.radii.md,margin:`0 ${n.spacing.sm} 0 0`,paddingLeft:n.spacing.sm,height:n.sizes.appRunningMen})),StyledAppStatusLabel=styled("label",{target:"erv3yhi3"})(({isPrompt:n,theme:o})=>({fontSize:o.fontSizes.sm,color:n?o.colors.bodyText:o.colors.gray60,textTransform:n?"none":"uppercase",margin:`0 0 0 ${o.spacing.sm}`,whiteSpace:"nowrap",maxWidth:o.sizes.appStatusMaxWidth,borderRadius:n?o.radii.md:void 0})),StyledAppButtonContainer=styled("span",{target:"erv3yhi4"})(({theme:n})=>({marginLeft:n.spacing.md,whiteSpace:"nowrap",color:n.colors.bodyText})),StyledAppRunningIcon=styled("div",{target:"erv3yhi5"})(({isNewYears:n,theme:o})=>({width:n?"2.2rem":o.sizes.appRunningMen,height:n?"2.2rem":o.sizes.appRunningMen,marginRight:`-${o.spacing.sm}`,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.3s ease-in-out",cursor:"wait"})),StyledStatusWidget=styled("div",{target:"erv3yhi6"})({"&.StatusWidget-appear":{opacity:0}
147,"&.StatusWidget-appear-active":{opacity:1,transition:"opacity 200ms ease-out"},"&.StatusWidget-enter":{opacity:0},"&.StatusWidget-enter-active":{opacity:1,transition:"opacity 200ms ease-out"},"&.StatusWidget-exit":{opacity:1},"&.StatusWidget-exit-active":{opacity:0,transition:"opacity 200ms ease-out"}}),StyledShortcutLabel=styled("div",{target:"erv3yhi7"})({"&::first-letter":{textDecoration:"underline"}}),icons=[{component:AccessibleForward,name:"accessible-forward"},{component:AccessibilityNew,name:"accessibility-new"},{component:DirectionsBike,name:"directions-bike"},{component:DirectionsRun,name:"directions-run"},{component:Pool,name:"pool"},{component:Rowing,name:"rowing"}],isNewYears=()=>{const n=new Date,o=n.getMonth(),e=n.getDate();return o===11&&e===31||o===0&&e<=6},DEFAULT_SPEED=200,IconRunning=()=>{const[n,o]=reactExports.useState(0),e=useEmotionTheme(),t=reactExports.useMemo(()=>isNewYears(),[]);reactExports.useEffect(()=>{if(t)return;const h=setInterval(()=>{o(y=>(y+1)%icons.length)},DEFAULT_SPEED);return()=>clearInterval(h)},[t]);const p=icons[n].component;return jsx$1(StyledAppRunningIcon,{isNewYears:t,"aria-label":"Running...",role:"img","data-testid":"stStatusWidgetRunningIcon",children:t?jsx$1("img",{src:newYearsRunning,alt:"New Year's Celebration",style:{width:"100%",height:"100%",objectFit:"contain"},"data-testid":"stStatusWidgetNewYearsIcon"}):jsx$1(p,{color:e.colors.fadedText60,"aria-hidden":"true","data-testid":"stStatusWidgetRunningManIcon",style:{width:e.sizes.appRunningMen,height:e.sizes.appRunningMen}})})},RUNNING_MAN_DISPLAY_DELAY_TIME_MS=500,PromptButton=n=>jsx$1(StyledAppButtonContainer,{children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_BUTTON,disabled:n.disabled,containerWidth:!0,onClick:n.onClick,children:n.title})}),StatusWidget=({connectionState:n,scriptRunState:o,rerunScript:e,stopScript:t,allowRunOnSave:c,showScriptChangedActions:p})=>{const[h,y]=reactExports.useState(!1),g=reactExports.useRef(null),$=reactExports.useRef(null),E=useEmotionTheme(),A=()=>{c&&e(!0)},N=(je,De)=>{je==="a"&&!isKeyboardEventFromEditableTarget(De)&&A()},H=n===ConnectionState.CONNECTED,Z=reactExports.useCallback(je=>{$.current!==null&&$.current.setTimeout(()=>{y(!0)},je)},[]),X=()=>{t()},be=()=>{e(!1)};reactExports.useEffect(()=>{g.current===null&&(g.current=new Timer),$.current===null&&($.current=new Timer);const je=g.current,De=g.current;return()=>{je.cancel(),De.cancel()}},[]),reactExports.useEffect(()=>{H&&(o===ScriptRunState.RUNNING||o===ScriptRunState.RERUN_REQUESTED)&&Z(RUNNING_MAN_DISPLAY_DELAY_TIME_MS),o===ScriptRunState.NOT_RUNNING&&y(!1)},[o,Z,H]);const we=()=>{const je=o===ScriptRunState.STOP_REQUESTED;return h?jsxs(StyledAppStatus,{children:[jsx$1(IconRunning,{}),jsx$1(PromptButton,{title:je?"Stopping...":"Stop",disabled:je,onClick:X})]}):jsx$1(Fragment,{})},$e=()=>{const je=o===ScriptRunState.RERUN_REQUESTED;return jsx$1(ReactHotkeys,{keyName:"a",onKeyDown:N,children:jsxs(StyledAppStatus,{children:[jsx$1(DynamicIcon,{size:"lg",iconValue:":material/info:",color:E.colors.fadedText60}),jsx$1(StyledAppStatusLabel,{isPrompt:!0,children:"File change."}),jsx$1(PromptButton,{title:jsx$1(StyledShortcutLabel,{children:"Rerun"}),disabled:je,onClick:be}),c&&jsx$1(PromptButton,{title:jsx$1(StyledShortcutLabel,{children:"Always rerun"}),disabled:je,onClick:A})]})})},Ce=()=>{const je=getConnectionStateUI(n);return je===void 0?null:jsx$1(Tooltip$1,{content:je.tooltip,placement:Placement.BOTTOM,children:jsxs(StyledConnectionStatus,{className:"stConnectionStatus","data-testid":"stConnectionStatus",children:[jsx$1(Icon$2,{size:"sm",content:je.icon}),jsx$1(StyledConnectionStatusLabel,{children:je.label})]})})},Ie=()=>{if(H){if(o===ScriptRunState.RUNNING||o===ScriptRunState.RERUN_REQUESTED)return we();if(p)return $e()}return Ce()},Ne=reactExports.useRef(),Fe=Ne.current;if(Ne.current=Ie(),isNullOrUndefined(Ne.current)&&isNullOrUndefined(Fe))return jsx$1(Fragment,{});let Be,Ge;return notNullOrUndefined(Ne.current)?(Be=!0,Ge=Ne.current):(Be=!1,Ge=Fe),jsx$1(CSSTransition,{appear:!0,in:Be,timeout:200,unmountOnExit:!0,classNames:"StatusWidget",children:jsx$1(StyledStatusWidget,{className:"stStatusWidget","data-testid":"stStatusWidget",children:Ge},"StatusWidget")})},StreamlitContextProvider=({isFullScreen:n,setFullScreen:o,locale:e,mapboxToken:t,enforceDownloadInNewTab:c,resourceCrossOriginMode:p,pageLinkBaseUrl:h,currentPageScriptHash:y,onPageChange:g,navSections:$,appPages:E,initialSidebarState:A,appLogo:N,sidebarChevronDownshift:H,expandSidebarNav:Z,hideSidebarNav:X,activeTheme:be,setTheme:we,availableThemes:$e,scriptRunState:Ce,scriptRunId:Ie,fragmentIdsThisRun:Ne,formsData:Fe,requestDeferredFile:Be,children:Ge})=>{const je=reactExports.useMemo(()=>({locale:e,mapboxToken:t,enforceDownloadInNewTab:c,resourceCrossOriginMode:p}),[e,t,c,p]),De=reactExports.useMemo(()=>({initialSidebarState:A,appLogo:N,sidebarChevronDownshift:H,expandSidebarNav:Z,hideSidebarNav:X}),[A,N,H,Z,X]),Ue=reactExports.useMemo(()=>({activeTheme:be,setTheme:we,availableThemes:$e}),[be,we,$e]),Je=reactExports.useMemo(()=>({pageLinkBaseUrl:h,currentPageScriptHash:y,onPageChange:g,navSections:$,appPages:E}),[h,y,g,$,E]),Xe=reactExports.useMemo(()=>({isFullScreen:n,setFullScreen:o}),[n,o]),Ke=reactExports.useMemo(()=>({scriptRunState:Ce,scriptRunId:Ie,fragmentIdsThisRun:Ne}),[Ce,Ie,Ne]),ze={formsData:Fe},nt=reactExports.useMemo(()=>({requestDeferredFile:Be}),[Be]);return jsx$1(LibConfigContext.Provider,{value:je,children:jsx$1(SidebarConfigContext.Provider,{value:De,children:jsx$1(ThemeContext.Provider,{value:Ue,children:jsx$1(NavigationContext.Provider,{value:Je,children:jsx$1(DownloadContext.Provider,{value:nt,children:jsx$1(ViewStateContext.Provider,{value:Xe,children:jsx$1(ScriptRunContext.Provider,{value:Ke,children:jsx$1(FormsContext.Provider,{value:ze,children:Ge})})})})})})})})},StreamlitContextProvider$1=reactExports.memo(StreamlitContextProvider);var DialogType=function(n){return n.ABOUT="about",n.CLEAR_CACHE="clearCache",n.CONNECTION_ERROR="connectionError",n.SETTINGS="settings",n.SCRIPT_COMPILE_ERROR="scriptCompileError",n.THEME_CREATOR="theme
147Creator",n.WARNING="warning",n.DEPLOY_ERROR="deployError",n.DEPLOY_DIALOG="deployDialog",n}({}),LevelContext=reactExports.createContext(0);function ownKeys(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);o&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),e.push.apply(e,t)}return e}function _objectSpread(n){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?ownKeys(Object(e),!0).forEach(function(t){_defineProperty(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}var Action=styled$1("div",function(n){var o=n.$theme;return _objectSpread({},o.typography.LabelMedium)});Action.displayName="Action";Action.displayName="Action";var Body=styled$1("div",function(n){var o=n.$theme;return _objectSpread({marginBottom:o.sizing.scale600,color:o.colors.contentPrimary},o.typography.ParagraphMedium)});Body.displayName="Body";Body.displayName="Body";var Contents=styled$1("div",function(n){var o=n.$theme;return{marginLeft:o.sizing.scale600,marginTop:o.sizing.scale600,marginRight:o.sizing.scale600,marginBottom:o.sizing.scale600}});Contents.displayName="Contents";Contents.displayName="Contents";var HeaderImage=styled$1("img",function(n){var o=n.$theme;return{borderTopLeftRadius:o.borders.surfaceBorderRadius,borderTopRightRadius:o.borders.surfaceBorderRadius,objectFit:"contain",maxWidth:"100%"}});HeaderImage.displayName="HeaderImage";HeaderImage.displayName="HeaderImage";var Root=styled$1("section",function(n){var o=n.$theme;return{borderLeftWidth:"2px",borderTopWidth:"2px",borderRightWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftColor:o.colors.borderOpaque,borderRightColor:o.colors.borderOpaque,borderTopColor:o.colors.borderOpaque,borderBottomColor:o.colors.borderOpaque,borderTopLeftRadius:o.borders.radius400,borderTopRightRadius:o.borders.radius400,borderBottomLeftRadius:o.borders.radius400,borderBottomRightRadius:o.borders.radius400,backgroundColor:o.colors.backgroundPrimary,overflow:"hidden"}});Root.displayName="Root";Root.displayName="Root";var Thumbnail=styled$1("img",function(n){var o=n.$theme;return _objectSpread(_objectSpread({float:"right",height:o.sizing.scale2400,width:o.sizing.scale2400,objectFit:"cover",borderTopLeftRadius:o.borders.surfaceBorderRadius,borderTopRightRadius:o.borders.surfaceBorderRadius,borderBottomLeftRadius:o.borders.surfaceBorderRadius,borderBottomRightRadius:o.borders.surfaceBorderRadius},expandBorderStyles(o.borders.border200)),{},{margin:"0 0 ".concat(o.sizing.scale500," ").concat(o.sizing.scale500)})});Thumbnail.displayName="Thumbnail";
147Thumbnail.displayName="Thumbnail";var Title=styled$1("h1",function(n){var o=n.$theme;return _objectSpread(_objectSpread({},o.typography.HeadingSmall),{},{color:o.colors.contentPrimary,marginLeft:0,marginTop:0,marginRight:0,marginBottom:o.sizing.scale500,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0})});Title.displayName="Title";Title.displayName="Title";var _excluded=["children"],_excluded2=["action","children","hasThumbnail","headerImage","thumbnail","title","overrides"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends.apply(this,arguments)}function _objectWithoutProperties(n,o){if(n==null)return{};var e=_objectWithoutPropertiesLoose(n,o),t,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)t=p[c],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose(n,o){if(n==null)return{};var e={},t=Object.keys(n),c,p;for(p=0;p<t.length;p++)c=t[p],!(o.indexOf(c)>=0)&&(e[c]=n[c]);return e}function hasThumbnail(n){return!!n.thumbnail}var SemanticTitle=function n(o){var e=o.children,t=_objectWithoutProperties(o,_excluded),c=["","h1","h2","h3","h4","h5","h6"];return reactExports.createElement(LevelContext.Consumer,null,function(p){return reactExports.createElement(Title,_extends({$as:c[p]},t),e)})};function Card(n){var o=n.action,e=n.children,t=n.hasThumbnail,c=n.headerImage,p=n.thumbnail,h=n.title,y=n.overrides,g=_objectWithoutProperties(n,_excluded2),$=y.Action,E=y.Body,A=y.Contents,N=y.HeaderImage,H=y.Root,Z=y.Thumbnail,X=y.Title,be=getOverride($)||Action,we=getOverride(E)||Body,$e=getOverride(A)||Contents,Ce=getOverride(N)||HeaderImage,Ie=getOverride(H)||Root,Ne=getOverride(Z)||Thumbnail,Fe=getOverride(X)||SemanticTitle,Be=typeof c=="string"?{src:c}:c,Ge=t(n);return reactExports.createElement(Ie,_extends({"data-baseweb":"card"},g,getOverrideProps(H)),c&&reactExports.createElement(Ce,_extends({},Be,getOverrideProps(N))),reactExports.createElement($e,getOverrideProps(A),p&&reactExports.createElement(Ne,_extends({src:p},getOverrideProps(Z))),h&&reactExports.createElement(Fe,_extends({$hasThumbnail:Ge},getOverrideProps(X)),h),reactExports.createElement(we,getOverrideProps(E),e),o&&reactExports.createElement(be,getOverrideProps($),o)))}Card.defaultProps={action:null,children:null,hasThumbnail,overrides:{}};const StreamlitLogo="data:image/svg+xml,%3csvg%20width='32'%20height='19'%20viewBox='0%200%2032%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%202'%3e%3cpath%20id='path3858'%20d='M15.998%2011.078L10.3882%208.04522L0.650371%202.78157C0.641482%202.77247%200.623705%202.77248%200.614816%202.77248C0.259259%202.59975%20-0.105186%202.96338%200.0281476%203.32702L4.98994%2016.2698L4.99083%2016.2725C4.99616%2016.2852%205.00061%2016.298%205.00594%2016.3107C5.2095%2016.7934%205.65394%2017.0916%206.1375%2017.2089C6.17839%2017.218%206.20764%2017.2262%206.25673%2017.2362C6.30559%2017.2473%206.37394%2017.2625%206.43261%2017.2671C6.44239%2017.268%206.45128%2017.268%206.46106%2017.2689H6.46817C6.47528%2017.2698%206.48239%2017.2698%206.4895%2017.2707H6.49928C6.5055%2017.2716%206.51261%2017.2716%206.51883%2017.2716H6.53039C6.5375%2017.2725%206.54461%2017.2725%206.55172%2017.2725C12.8348%2017.9731%2019.1763%2017.9731%2025.4593%2017.2725C25.5349%2017.2725%2025.6087%2017.2689%2025.6798%2017.2616C25.7029%2017.2589%2025.7251%2017.2562%2025.7473%2017.2534C25.75%2017.2525%2025.7536%2017.2525%2025.7562%2017.2516C25.7713%2017.2498%2025.7864%2017.2471%2025.8016%2017.2443C25.8238%2017.2416%2025.846%2017.2371%2025.8682%2017.2325C25.9127%2017.2225%2025.9329%2017.2152%2025.9932%2017.194C26.0535%2017.1729%2026.1536%2017.1358%2026.2163%2017.1049C26.279%2017.074%2026.3224%2017.0443%2026.3749%2017.0107C26.4398%2016.9689%2026.5015%2016.9261%2026.5641%2016.8781C26.5911%2016.8569%2026.6096%2016.8434%2026.6291%2016.8243L26.6184%2016.818L15.998%2011.078Z'%20fill='%23FF2B2B'/%3e%3cpath%20id='path5063'%20d='M31.3616%202.78158H31.3527L21.6113%208.04524L27.0265%2016.2935L31.9758%203.32704V3.30886C32.1003%202.92704%2031.7181%202.58158%2031.3616%202.78158Z'%20fill='%237D353B'/%3e%3cpath%20id='path5101'%20d='M16.5171%200.278788C16.2682%20-0.0930318%2015.726%20-0.0930318%2015.486%200.278788L10.3882%208.04518L15.998%2011.0779L26.6291%2016.8242C26.6959%2016.7574%2026.7494%2016.6922%2026.806%2016.6234C26.886%2016.5225%2026.9607%2016.4143%2027.0265%2016.2934L21.6113%208.04518L16.5171%200.278788Z'%20fill='%23BD4043'/%3e%3c/g%3e%3c/svg%3e",Rocket="data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M5.95077%2010.7642L8.09076%2011.6685C8.34683%2011.157%208.61204%2010.6637%208.8864%2010.1887C9.16076%209.71374%209.46256%209.23875%209.79179%208.76376L8.25538%208.46232L5.95077%2010.7642ZM9.84666%2013.0387L12.9743%2016.1352C13.7426%2015.8429%2014.5656%2015.3954%2015.4436%2014.7925C16.3215%2014.1896%2017.1446%2013.5045%2017.9128%2012.7372C19.1931%2011.4584%2020.1946%2010.038%2020.917%208.47602C21.6395%206.91403%2021.955%205.47536%2021.8636%204.16C20.5466%204.06866%2019.1017%204.38379%2017.5287%205.10541C15.9557%205.82703%2014.529%206.82726%2013.2487%208.10608C12.4805%208.87337%2011.7946%209.69547%2011.191%2010.5724C10.5874%2011.4493%2
147010.1393%2012.2714%209.84666%2013.0387ZM14.7302%2011.2575C14.3096%2010.8373%2014.0992%2010.3212%2014.0992%209.70917C14.0992%209.09716%2014.3096%208.58107%2014.7302%208.16088C15.1509%207.7407%2015.6722%207.53061%2016.2941%207.53061C16.916%207.53061%2017.4373%207.7407%2017.8579%208.16088C18.2786%208.58107%2018.489%209.09716%2018.489%209.70917C18.489%2010.3212%2018.2786%2010.8373%2017.8579%2011.2575C17.4373%2011.6776%2016.916%2011.8877%2016.2941%2011.8877C15.6722%2011.8877%2015.1509%2011.6776%2014.7302%2011.2575ZM15.2515%2020.0539L17.5561%2017.752L17.2543%2016.2175C16.7788%2016.5463%2016.3032%2016.8432%2015.8277%2017.1081C15.3521%2017.373%2014.8583%2017.6333%2014.3461%2017.8891L15.2515%2020.0539ZM23.839%202.15956C24.1865%204.37009%2023.9716%206.52125%2023.1942%208.61304C22.4169%2010.7048%2021.0771%2012.7007%2019.1749%2014.6007L19.7236%2017.3136C19.7967%2017.679%2019.7784%2018.0352%2019.6687%2018.3823C19.559%2018.7294%2019.3761%2019.0309%2019.12%2019.2866L14.5108%2023.8904L12.2061%2018.4919L7.51461%2013.806L2.10974%2011.5041L6.69153%206.90033C6.9476%206.64457%207.25397%206.46188%207.61064%206.35227C7.9673%206.24265%208.32854%206.22438%208.69435%206.29746L11.4105%206.84553C13.3127%204.94556%2015.3064%203.6028%2017.3915%202.81724C19.4767%202.03168%2021.6258%201.81245%2023.839%202.15956ZM4.05769%2017.2862C4.69786%2016.6468%205.47978%2016.3225%206.40346%2016.3134C7.32713%2016.3042%208.10905%2016.6194%208.74922%2017.2588C9.38939%2017.8982%209.70491%2018.6792%209.69576%2019.6018C9.68662%2020.5243%209.36196%2021.3053%208.72179%2021.9448C8.26452%2022.4015%207.50089%2022.7943%206.43089%2023.1231C5.36089%2023.4519%203.88393%2023.7442%202%2024C2.25607%2022.1183%202.54872%2020.6431%202.87795%2019.5744C3.20718%2018.5056%203.60043%2017.7429%204.05769%2017.2862ZM5.62154%2018.8208C5.43863%2019.0035%205.25572%2019.3369%205.07282%2019.821C4.88991%2020.3051%204.76188%2020.7938%204.68872%2021.2871C5.18256%2021.214%205.67183%2021.0907%206.15653%2020.9171C6.64123%2020.7436%206.97504%2020.5655%207.15794%2020.3828C7.37743%2020.1635%207.49632%2019.8986%207.51461%2019.5881C7.5329%2019.2775%207.4323%2019.0126%207.21282%2018.7934C6.99333%2018.5741%206.72812%2018.4691%206.41718%2018.4782C6.10624%2018.4874%205.84102%2018.6015%205.62154%2018.8208Z'%20fill='%23A3A8B8'/%3e%3c/g%3e%3c/svg%3e",Snowflake=""+new URL("../media/snowflake.JU2jBHL8.svg",import.meta.url).href;function DetachedHead(){return{title:"Unable to deploy",body:jsxs(Fragment,{children:[jsx$1("p",{children:"This Git tree is in a detached HEAD state."}),jsx$1("p",{children:"Please commit the latest changes and push to GitHub to continue."})]})}}function ModuleIsNotAdded(n){return{title:"Unable to deploy",body:jsx$1(StreamlitMarkdown$1,{source:` 148The app's main file \`${n}\` has 149not been pushed to GitHub. Please add it to continue. 150`,allowHTML:!1})}}const DEPLOY_URL="https://share.streamlit.io/deploy",STREAMLIT_CLOUD_URL="https://streamlit.io/cloud",STREAMLIT_COMMUNITY_CLOUD_DOCS_URL="https://share.streamlit.io/cloud-getting-started",STREAMLIT_DEPLOY_TUTORIAL_URL="https://share.streamlit.io/deployment-tutorial",SNOWFLAKE_LEARN_MORE_URL="https://share.streamlit.io/sis-about",SNOWFLAKE_TRIAL_URL="https://share.streamlit.io/snowflake-trial",StyledParagraph=styled("p",{target:"edgwnvj0"})({textAlign:"justify"});function NoRepositoryDetected(){return{title:"Unable to deploy",body:jsxs(StyledParagraph,{children:["The appâs code is not connected to a remote GitHub repository. To deploy on Streamlit Community Cloud, please put your code in a GitHub repository and publish the current branch. Read more in"," ",jsx$1("a",{href:STREAMLIT_COMMUNITY_CLOUD_DOCS_URL,rel:"noopener noreferrer",target:"_blank",children:"our documentation"}),"."]})}}function DeployCard(n){const{colors:o,spacing:e,radii:t,breakpoints:c,sizes:p}=useEmotionTheme(),{children:h}=n;return jsx$1(Card,{overrides:{Root:{style:{borderTopWidth:p.borderWidth,borderBottomWidth:p.borderWidth,borderLeftWidth:p.borderWidth,borderRightWidth:p.borderWidth,borderTopStyle:"solid",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"solid",borderTopColor:o.borderColor,borderBottomColor:o.borderColor,borderLeftColor:o.borderColor,borderRightColor:o.borderColor,borderTopLeftRadius:"none",borderTopRightRadius:"none",borderBottomLeftRadius:"none",borderBottomRightRadius:"none",":last-child":{borderRightStyle:"none",borderBottomRightRadius:t.xl},":first-child":{borderBottomLeftRadius:t.xl},[`@media (max-width: ${c.md})`]:{":last-child":{borderBottomLeftRadius:t.xl}}}},Contents:{style:{marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:"100%"}},Body:{style:{padding:e.twoXL,marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:"100%",display:"flex",flexDirection:"column",[`@media (max-width: ${c.md})`]:{padding:e.xl}}}},children:h})}const Checkmark="data:image/svg+xml,%3csvg%20width='12'%20height='9'%20viewBox='0%200%2012%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.00009%206.78L1.68676%204.46667C1.42676%204.20667%201.00676%204.20667%200.746758%204.46667C0.486758%204.72667%200.486758%205.14667%200.746758%205.40667L3.53342%208.19334C3.79342%208.45334%204.21342%208.45334%204.47342%208.19334L11.5268%201.14C11.7868%200.880005%2011.7868%200.460005%2011.5268%200.200005C11.2668%20-0.0599951%2010.8468%20-0.0599951%2010.5868%200.200005L4.00009%206.78Z'%20fill='%23808495'/%3e%3c/svg%3e",StyledHeader$1=styled("div",{target:"e7qwnp70"})(({theme:n})=>({fontFamily:n.fonts.sansSerif,fontWeight:n.fontWeights.bold,fontSize:n.fontSizes.lg,marginTop:n.spacing.twoXL,marginBottom:n.spacing.twoXS,[`@media (max-width: ${n.breakpoints.md})`]:{marginTop:n.spacing.md}})),StyledSubheader=styled("div",{target:"e7qwnp71"})(({theme:n})=>({fontFamily:n.fonts.sansSerif,fontWeight:n.fontWeights.normal,fontSize:n.fontSizes.md,marginTop:n.spacing.twoXS,marginBottom:n.spacing.md,[`@media (max-width: ${n.breakpoints.md})`]:{marginTop:n.spacing.md}})),StyledCardContainer=styled("div",{target:"e7qwnp72"})(({theme:n})=>({display:"grid",maxWidth:`calc(1.25 * ${n.sizes.contentMaxWidth})`,gridTemplateColumns:"1fr 1fr 1fr",gridGap:n.spacing.none,[`@media (max-width: ${n.breakpoints.md})`]:{gridTemplateColumns:"1fr"}})),StyledElement=styled("div",{target:"e7qwnp73"})(({theme:n})=>({display:"inline-flex",marginTop:n.spacing.sm,"& > span":{fontFamily:n.fonts.sansSerif,fontWeight:n.fontWeights.normal,fontSize:n.fontSizes.md,marginLeft:n.spacing.twoXL,color:n.colors.gray70},"& > img":{position:"absolute",marginTop:n.spacing.sm}})),StyledActionsWrapper=styled("div",{target:"e7qwnp74"})(({theme:n})=>({display:"flex",marginTop:n.spacing.threeXL,"& > button":{marginRight:n.spacing.twoXL},[`@media (max-width: ${n.breakpoints.md})`]:{marginTop:n.spacing.xl}}));function DeployListElement(n){const{children:o}=n;return jsxs(StyledElement,{children:[jsx$1("img",{src:Checkmark,alt:"Checkmark"}),jsx$1("span",{children:o})]})}function ModalBody({children:n}){const{colors:o,fontSizes:e,spacing:t}=useEmotionTheme();return jsx$1(ModalBody$2,{style:{marginTop:t.none,marginLeft:t.none,marginRight:t.none,marginBottom:t.none,paddingTop:t.md,paddingRight:t.
150none,paddingBottom:t.none,paddingLeft:t.none,color:o.bodyText,fontSize:e.md,overflowY:"auto"},children:n})}function DeployModal(n){const{children:o,onClose:e}=n;return jsxs(Modal,{isOpen:!0,closeable:!0,onClose:e,size:"auto",children:[jsx$1(ModalHeader,{children:"Deploy this app using..."}),jsx$1(ModalBody,{children:o})]})}const{GitStates}=GitInfo,openUrl=n=>{window.open(n,"_blank")},getDeployAppUrl=n=>{if(n){const o=new URL(DEPLOY_URL);return o.searchParams.set("repository",n.repository??""),o.searchParams.set("branch",n.branch??""),o.searchParams.set("mainModule",n.module??""),o.toString()}return STREAMLIT_CLOUD_URL};function DeployDialog(n){const{gitInfo:o,onClose:e,metricsMgr:t,showDeployError:c,isDeployErrorModalOpen:p}=n,h=reactExports.useCallback(()=>{if(t.enqueue("menuClick",{label:"deployButtonInDialog"}),!o){const H=NoRepositoryDetected();c(H.title,H.body);return}const{repository:y,branch:g,module:$,untrackedFiles:E,state:A}=o;if((!y||!g||!$)&&A===GitStates.DEFAULT){const H=NoRepositoryDetected();c(H.title,H.body);return}if(A===GitStates.HEAD_DETACHED){const H=DetachedHead();c(H.title,H.body);return}if($&&E?.includes($)){const H=ModuleIsNotAdded($);c(H.title,H.body);return}p&&e(),openUrl(getDeployAppUrl(o))},[t,o,p,c,e]);return jsx$1(DeployModal,{onClose:e,children:jsxs(StyledCardContainer,{children:[jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:1},children:[jsx$1("img",{src:StreamlitLogo,alt:"Streamlit Logo","data-testid":"stDeployDialogCommunityCloudIcon"}),jsx$1(StyledHeader$1,{children:"Streamlit Community Cloud"}),jsx$1(StyledSubheader,{children:"For community, always free"}),jsx$1(DeployListElement,{children:"For personal hobbies and learning"}),jsx$1(DeployListElement,{children:"Deploy unlimited public apps"}),jsx$1(DeployListElement,{children:"Explore and learn from Streamlitâs community and popular apps"})]}),jsx$1(Action,{children:jsxs(StyledActionsWrapper,{children:[jsx$1(BaseButton,{kind:BaseButtonKind.PRIMARY,onClick:h,children:"Deploy now"}),jsx$1(BaseButton,{onClick:()=>{t.enqueue("menuClick",{label:"readMoreCommunityCloudInDeployDialog"}),openUrl(STREAMLIT_COMMUNITY_CLOUD_DOCS_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})]})})]}),jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:1},children:[jsx$1("img",{src:Snowflake,alt:"Snowflake","data-testid":"stDeployDialogSnowflakeDeploymentIcon"}),jsx$1(StyledHeader$1,{children:"Snowflake"}),jsx$1(StyledSubheader,{children:"For enterprise"}),jsx$1(DeployListElement,{children:"Enterprise-level security, support, and fully managed infrastructure"}),jsx$1(DeployListElement,{children:"Deploy unlimited private apps with role-based sharing"}),jsx$1(DeployListElement,{children:"Integrate with Snowflakeâs full data stack"})]}),jsx$1(Action,{children:jsxs(StyledActionsWrapper,{children:[jsx$1(BaseButton,{kind:BaseButtonKind.SECONDARY,onClick:()=>{t.enqueue("menuClick",{label:"startTrialInDeployDialog"}),openUrl(SNOWFLAKE_TRIAL_URL)},children:"Start trial"}),jsx$1(BaseButton,{onClick:()=>{t.enqueue("menuClick",{label:"learnMoreSnowflakeInDeployDialog"}),openUrl(SNOWFLAKE_LEARN_MORE_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})]})})]}),jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:2},children:[jsx$1("img",{src:Rocket,alt:"Rocket","data-testid":"stDeployDialogCustomDeploymentIcon"}),jsx$1(StyledHeader$1,{children:"Other platforms"}),jsx$1(StyledSubheader,{children:"For custom deployment "}),jsx$1(DeployListElement,{children:"Deploy on your own hardware or cloud service"}),jsx$1(DeployListElement,{children:"Set up and maintain your own authentication, resources, and costs"})]}),jsx$1(Action,{children:jsx$1(StyledActionsWrapper,{children:jsx$1(BaseButton,{onClick:()=>{t.enqueue("menuClick",{label:"readMoreDeployTutorialInDeployDialog"}),openUrl(STREAMLIT_DEPLOY_TUTORIAL_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})})})]})]})})}const StyledDialogBody=styled("div",{target:"e1gfztv20"})(({theme:n})=>({display:"grid",gap:n.spacing.twoXL,gridTemplateColumns:"1fr 1fr",margin:0,padding:0})),StyledFullRow=styled("div",{target:"e1gfztv21"})(({theme:n})=>({gridColumnStart:1,gridColumnEnd:-1,display:"grid",gap:n.spacing.xs})),StyledHeader=styled("h2",{target:"e1gfztv22"})(({theme:n})=>({paddingBottom:0,paddingTop:0,marginBottom:n.spacing.md,marginTop:"0",fontWeight:n.fontWeights.bold,fontSize:n.fontSizes.md,lineHeight:n.lineHeights.tight,color:n.colors.bodyText,display:"grid",gridAutoFlow:"row",gap:n.spacing.xs,"&:first-of-type":{marginTop:0}})),StyledLabel=styled("label",{target:"e1gfztv23"})(({theme:n})=>({paddingBottom:0,paddingTop:0,marginBottom:0,marginTop:0,lineHeight:n.lineHeights.tight,fontSize:n.fontSizes.sm})),StyledCheckbox=styled("input",{target:"e1gfztv26"})(({theme:n})=>({marginRight:n.spacing.xs,appearance:"none",border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,width:n.fontSizes.md,height:n.fontSizes.md,borderRadius:`min(${n.radii.md}, ${n.radii.maxCheckbox})`,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,verticalAlign:"middle",overflow:"hidden","&:focus-visible":{outline:`2px solid ${n.colors.primary}`},"&:checked":{backgroundColor:n.colors.primary,"&:after":{content:'"â"',fontFamily:n.fonts.monospace,fontSize:n.fontSizes.md,color:n.colors.white,lineHeight:n.lineHeights.none}},"&:disabled":{backgroundColor:n.colors.darkenedBgMix15}}
150)),StyledDeployErrorContent=styled("div",{target:"e1gfztv27"})(({theme:n})=>({"& > ul":{paddingLeft:n.spacing.twoXL}})),StyledErrorText=styled("div",{target:"e1gfztv28"})(({theme:n,hasCodeBelow:o})=>({...o&&{marginBottom:n.spacing.lg}})),SettingsDialog=reactExports.memo(function n({isServerConnected:o,onClose:e,onSave:t,settings:c,allowRunOnSave:p,animateModal:h,metricsMgr:y,sessionInfo:g}){const{activeTheme:$,availableThemes:E,setTheme:A}=reactExports.useContext(ThemeContext),N=reactExports.useRef(c),H=reactExports.useRef(!0),[Z,X]=reactExports.useState({...c}),be=reactExports.useCallback((Ie,Ne)=>{X(Fe=>({...Fe,[Ie]:Ne}))},[]);reactExports.useEffect(()=>{if(H.current){H.current=!1;return}N.current=Z,t(N.current)},[t,Z]);const we=reactExports.useCallback(Ie=>{be(Ie.target.name,Ie.target.checked)},[be]),$e=reactExports.useCallback(Ie=>{let Ne;Ie&&(Ne=E.find(Fe=>Fe.name.startsWith("Custom Theme")?Fe.displayName===Ie:Fe.name===Ie)),Ne===void 0&&(Ne=E[0]),y.enqueue("menuClick",{label:"changeTheme"}),A(Ne)},[A,y,E]),Ce=reactExports.useCallback(()=>E.map(Ie=>Ie.displayName??Ie.name),[E]);return jsxs(Modal,{animate:h,isOpen:!0,onClose:e,children:[jsx$1(ModalHeader,{children:"Settings"}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogBody,{children:[p&&jsxs(StyledFullRow,{children:[jsx$1(StyledHeader,{children:"Development"}),jsxs("label",{children:[jsx$1(StyledCheckbox,{disabled:!o,type:"checkbox",name:"runOnSave",checked:Z.runOnSave&&o,onChange:we})," ","Run on save"]}),jsx$1(StreamlitMarkdown$1,{source:"Automatically updates the app when the underlying code is updated.",allowHTML:!1,isCaption:!0})]}),jsxs(StyledFullRow,{children:[jsx$1(StyledHeader,{children:"Appearance"}),jsxs("label",{children:[jsx$1(StyledCheckbox,{type:"checkbox",name:"wideMode",checked:Z.wideMode,onChange:we})," ","Wide mode"]}),jsx$1(StreamlitMarkdown$1,{source:" Turn on to make this app occupy the entire width of the screen.",allowHTML:!1,isCaption:!0})]}),!!E.length&&jsxs(StyledFullRow,{children:[jsx$1(StyledLabel,{children:"Choose app theme"}),jsx$1(UISelectbox,{options:Ce(),disabled:$.name===CUSTOM_THEME_NAME,onChange:$e,value:$.displayName??$.name,placeholder:"",acceptNewOptions:!1})]}),g.isSet&&jsx$1("div",{"data-testid":"stVersionInfo",children:jsx$1(StreamlitMarkdown$1,{source:`Made with Streamlit ${g.current.streamlitVersion}`,allowHTML:!1,isCaption:!0})})]})})]})});function StreamlitDialog(n){switch(n.type){case DialogType.ABOUT:return jsx$1(AboutDialog,{...n});case DialogType.CLEAR_CACHE:return jsx$1(ClearCacheDialog,{...n});case DialogType.SETTINGS:return jsx$1(SettingsDialog,{...n});case DialogType.SCRIPT_COMPILE_ERROR:return jsx$1(ScriptCompileErrorDialog,{...n});case DialogType.WARNING:case DialogType.CONNECTION_ERROR:return jsx$1(WarningDialog,{...n});case DialogType.DEPLOY_DIALOG:return jsx$1(DeployDialog,{...n});case DialogType.DEPLOY_ERROR:return jsx$1(DeployErrorDialog,{...n});case void 0:return noDialog(n);default:return typeNotRecognizedDialog(n)}}function AboutDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:"About"}),jsx$1(ModalBody$1,{children:n.aboutSectionMd&&jsx$1(StreamlitMarkdown$1,{source:n.aboutSectionMd,allowHTML:!1})})]})}function ClearCacheDialog(n){const e=["**Are you sure you want to clear the app's function caches?**","This will remove all cached entries from functions using","`@st.cache_data` and `@st.cache_resource`."].join(` 151`);return jsx$1("div",{"data-testid":"stClearCacheDialog",children:jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:"Clear caches"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitMarkdown$1,{source:e,allowHTML:!1})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:n.onClose,children:"Cancel"}),jsx$1(ModalButton,{autoFocus:!0,kind:BaseButtonKind.SECONDARY,onClick:n.confirmCallback,children:"Clear caches"})]})]})})}function ScriptCompileErrorDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,size:"auto",autoFocus:!1,children:[jsx$1(ModalHeader,{children:"Script execution error"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitErrorCodeBlock$1,{children:n.exception?.message?n.exception.message:"No message"})}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:n.onClose,children:"Close"})})]})}function WarningDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:n.title}),jsx$1(ModalBody$1,{children:n.msg})]})}function DeployErrorDialog({title:n,msg:o,onClose:e,onContinue:t,onTryAgain:c}){const p=()=>{e(),t&&t()};return jsxs(Modal,{isOpen:!0,onClose:e,children:[jsx$1(ModalHeader,{children:n}
151),jsx$1(ModalBody$1,{children:jsx$1(StyledDeployErrorContent,{children:o})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:c,children:"Try again"}),jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:p,children:t?"Continue anyway":"Close"})]})]})}function noDialog({onClose:n}){return jsx$1(Modal,{isOpen:!1,onClose:n})}function typeNotRecognizedDialog(n){return jsx$1(Modal,{isOpen:!0,onClose:n.onClose,children:jsx$1(ModalBody$1,{children:`Dialog type "${n.type}" not recognized.`})})}function parseLinks(n){const o=[];let e=0,t=0;const c=/\[([^\]]+)\]\(([^)]+)\)/g;let p;for(;(p=c.exec(n))!==null;)p.index>e&&o.push(jsx$1(reactExports.Fragment,{children:n.substring(e,p.index)},t++)),o.push(jsx$1("a",{href:p[2],target:"_blank",rel:"noopener noreferrer",children:p[1]},t++)),e=p.index+p[0].length;return e<n.length&&o.push(jsx$1(reactExports.Fragment,{children:n.substring(e)},t++)),o}function DialogErrorMessage({message:n,codeBlock:o}){return jsxs(Fragment,{children:[jsx$1(StyledErrorText,{hasCodeBelow:!!o,children:parseLinks(n)}),o&&jsx$1(StreamlitErrorCodeBlock$1,{children:o})]})}const DialogErrorMessage$1=reactExports.memo(DialogErrorMessage),StyledActionButtonContainer=styled("div",{target:"ekuhni80"})(({theme:n})=>({display:"flex",gap:n.spacing.sm,alignItems:"center",lineHeight:n.iconSizes.md})),StyledActionButtonIcon=styled("div",{target:"ekuhni81"})(({theme:n,icon:o})=>({background:`url("${o}") no-repeat center / contain`,width:n.iconSizes.base,height:n.iconSizes.base})),StyledToolbarActions=styled("div",{target:"ekuhni82"})({display:"flex",alignItems:"center",flexDirection:"row"});function ActionButton({label:n,icon:o,onClick:e}){return jsx$1("div",{className:"stToolbarActionButton","data-testid":"stToolbarActionButton",children:jsx$1(BaseButton,{onClick:e,kind:BaseButtonKind.HEADER_BUTTON,children:jsxs(StyledActionButtonContainer,{children:[o&&jsx$1(StyledActionButtonIcon,{"data-testid":"stToolbarActionButtonIcon",icon:o}),n&&jsx$1("span",{"data-testid":"stToolbarActionButtonLabel",children:n})]})})})}function ToolbarActions({sendMessageToHost:n,hostToolbarItems:o,metricsMgr:e}){return jsx$1(StyledToolbarActions,{className:"stToolbarActions","data-testid":"stToolbarActions",children:o.map(({key:t,label:c,icon:p})=>jsx$1(ActionButton,{label:c,icon:p,onClick:()=>{e.enqueue("menuClick",{label:t}),n({type:"TOOLBAR_ITEM_CALLBACK",key:t})}},t))})}const screencastCounterAnimation=keyframes("0%{opacity:0;}25%{opacity:1;}100%{opacity:0;}"),StyledCountdown=styled("div",{target:"e1ejanx90"})(({theme:n})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:n.sizes.full,height:n.sizes.full,fontSize:"40vh",color:n.colors.redTextColor,fontWeight:n.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${n.colors.grayTextColor}`,transition:"opacity 0.3s ease-in-out",animation:`${screencastCounterAnimation} 1s`})),Countdown=({countdown:n,endCallback:o})=>{const[e,t]=reactExports.useState(n);return jsx$1(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:()=>{const p=e-1;p>=0&&t(p),p===0&&o()},children:jsx$1("span",{children:e})},`frame${e}`)},StyledRecordAudioLabel=styled("label",{target:"ej964cx0"})({margin:0}),StyledInstruction=styled("p",{target:"ej964cx1"})({margin:0}),ScreencastDialog=({onClose:n,toggleRecordAudio:o,recordAudio:e,startRecording:t})=>{const[c,p]=reactExports.useState(e),h=reactExports.useCallback(g=>{const{checked:$}=g.target;$!==c&&(p($),o())},[c,o]),y=reactExports.useCallback(()=>{t(),n()},[t,n]);return jsxs(Modal,{isOpen:!0,onClose:n,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsxs(ModalBody$1,{children:[jsx$1("p",{children:"This will record a video with the contents of your screen, so you can easily share what you're seeing with others."}),jsx$1("p",{children:jsxs(StyledRecordAudioLabel,{"data-testid":"stScreencastAudioCheckbox",children:[jsx$1("input",{type:"checkbox",name:"recordAudio",checked:c,onChange:h})," ","Also record audio"]})}),jsx$1(StyledInstruction,{"data-testid":"stScreencastInstruction",children:jsx$1(StreamlitMarkdown$1,{source:"Press `Esc` any time to stop recording.",allowHTML:!1})})]}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:y,children:"Start recording!"})})]})},StyledVideo=styled("video",{target:"e1hp04x70"})(({theme:n})=>({width:n.sizes.full,borderRadius:n.radii.md})),StyledDialogContainer=styled("div",{target:"e1hp04x71"})(({theme:n})=>({display:"flex",flexDirection:"column",width:n.sizes.full})),StyledRow=styled("div",{target:"e1hp04x72"})(({theme:n})=>({display:"flex",flexDirection:"row",paddingTop:n.spacing.md,paddingBottom:n.spacing.md})),StyledFirstColumn=styled("div",{target:"e1hp04x73"})(({theme:n})=>({paddingRight:n.spacing.lg,textAlign:"right",color:n.colors.grayTextColor,fontWeight:n.fontWeights.bold,width:"6em"})),StyledSecondColumn=styled("div",{target:"e1hp04x74"})(({theme:n})=>({flex:1,paddingRight:n.spacing.lg,marginRight:"6em",[`@media (max-width: ${n.breakpoints.sm})`]:{marginRight:n.spacing.none}})),StyledVideoFormatInstructions=styled("p",{target:"e1hp04x75"})(({theme:n})=>({marginTop:n.spacing.sm,marginBottom:n.spacing.none,fontSize:n.fontSizes.sm})),StyledDownloadButtonContainer=styled("div",{target:"e1hp04x76"})(({theme:n})=>({marginTop:n.spacing.twoXS})),VideoRecordedDialog=({onClose:n,videoBlob:o,fileName:e})=>{const t=URL.createObjectURL(o),c=()=>{const p=document.createElement("a");p.setAttribute("href",t),p.setAttribute("download",`${e}.webm`),p.click(),n()};return jsxs(Modal,{isOpen:!0,onClose:n,overrides:{Dialog:{style:{width:"80vw"}}},children:[jsx$1(ModalHeader,{children:"Next steps"}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogContainer,{"data-testid":"stVideoRecordedDialog",children:[jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 1"}),jsxs(StyledSecondColumn,{children:[jsx$1("p",{children:"Preview your video below:"}),jsx$1(StyledVideo,{src:t,controls:!0})]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 2"}),jsxs(StyledSecondColumn,{children:[jsx$1(StyledDownloadButtonContainer,{children:jsx$1(BaseButton,{kind:BaseButtonKind.SECONDARY,onClick:c,children:"Save video to disk"})}),jsxs(StyledVideoFormatInstructions,{children:["This video is encoded in the"," ",jsx$1("a",{href:"https://www.webmproject.org/",children:"WebM format"}),", which is only supported by newer video players. You can also play it by dragging the file directly into your browser."]}
151)]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 3"}),jsxs(StyledSecondColumn,{children:["Share your video with the world on Twitter, LinkedIn, YouTube, or just plain email!"," ",jsx$1("span",{role:"img","aria-label":"Happy",children:"ð"})]})]})]})})]})},StyledScreenCastWarningDialog=styled("div",{target:"e1o5y2010"})({display:"flex"}),StyledUnsupportedScreenCastIcon=styled("div",{target:"e1o5y2011"})(({theme:n})=>({display:"flex",alignItems:"center",justifyItems:"center",marginRight:n.spacing.twoXL,marginLeft:n.spacing.sm,fontSize:n.fontSizes.fourXL})),StyledUnsupportedScreenCastExplanation=styled("p",{target:"e1o5y2012"})(({theme:n})=>({margin:n.spacing.none})),UnsupportedBrowserDialog=({onClose:n})=>jsxs(Modal,{isOpen:!0,onClose:n,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsx$1(ModalBody$1,{children:jsxs(StyledScreenCastWarningDialog,{"data-testid":"stUnsupportedBrowserDialog",children:[jsx$1(StyledUnsupportedScreenCastIcon,{children:jsx$1("span",{role:"img","aria-label":"Alien Monster",children:"ð¾"})}),jsx$1(StyledUnsupportedScreenCastExplanation,{children:"Due to limitations with some browsers, this feature is only supported on recent desktop versions of Chrome, Firefox, and Edge."})]})})]}),UnsupportedBrowserDialog$1=reactExports.memo(UnsupportedBrowserDialog),LOG$2=loglevelExports.getLogger("withScreencast");function withScreencast(n){const o=e=>{const{testOverride:t}=e,c=reactExports.useRef(null),[p,h]=reactExports.useState("streamlit-screencast"),[y,g]=reactExports.useState(!1),[$,E]=reactExports.useState(void 0),[A,N]=reactExports.useState(t||"OFF"),H=reactExports.useCallback(()=>{g(Ie=>!Ie)},[]),Z=reactExports.useCallback(async()=>{if(!(A==="OFF"||isNullOrUndefined(c.current))){if(A==="COUNTDOWN"){N("OFF");return}if(A==="RECORDING"){const Ie=c.current;if(!Ie||Ie.getState()==="inactive")N("OFF");else{const Ne=await Ie.stop();E(Ne),N("PREVIEW_FILE")}}}},[A]),X=reactExports.useCallback(async()=>{if(!ScreenCastRecorder.isSupportedBrowser()){N("UNSUPPORTED");return}c.current=new ScreenCastRecorder({recordAudio:y,onErrorOrStop:()=>{Z().catch(Ie=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Ie}`))}});try{await c.current.initialize()}catch(Ie){LOG$2.warn(`ScreenCastRecorder.initialize error: ${Ie}`),N("UNSUPPORTED");return}N("COUNTDOWN")},[y,Z]),be=reactExports.useCallback(Ie=>{if(!ScreenCastRecorder.isSupportedBrowser()){N("UNSUPPORTED");return}if(A==="OFF"){h(Ie),N("SETUP");return}Z().catch(Ne=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Ne}`))},[A,Z]),we=reactExports.useCallback(()=>{if(isNullOrUndefined(c.current))throw new Error("Countdown finished but recorder is null");c.current.start()?N("RECORDING"):Z().catch(Ne=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Ne}`))},[Z]),$e=reactExports.useCallback(()=>{N("OFF")},[]);return jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsx$1(n,{...e,screenCast:{currentState:A,toggleRecordAudio:H,startRecording:be,stopRecording:Z}}),A==="UNSUPPORTED"&&jsx$1(UnsupportedBrowserDialog$1,{onClose:$e}),A==="SETUP"&&jsx$1(ScreencastDialog,{recordAudio:y,onClose:$e,startRecording:X,toggleRecordAudio:H}),A==="COUNTDOWN"&&jsx$1(Countdown,{countdown:3,endCallback:we}),A==="PREVIEW_FILE"&&$&&jsx$1(VideoRecordedDialog,{onClose:$e,videoBlob:$,fileName:p})]})};return o.displayName=`withScreencast(${n.displayName||n.name||"Component"})`,hoistNonReactStatics(o,n)}const useViewportSize=()=>{const{activeTheme:n}=reactExports.useContext(ThemeContext),{innerWidth:o}=useWindowDimensionsContext(),e=parseInt(n.emotion.breakpoints.md,10);return{isMobile:o<e}},DEFAULT_METRICS_CONFIG="https://data.streamlit.io/metrics.json",LOG$1=loglevelExports.getLogger("MetricsManager");class MetricsManager{constructor(o){this.initialized=!1,this.actuallySendMetrics=!1,this.metricsUrl=void 0,this.sendMessageToHost=()=>{},this.anonymousId="",this.pendingEvents=[],this.appHash="Not initialized",this.metadata={},this.setAppHash=e=>{this.appHash=e},this.setMetricsConfig=(e="")=>{this.metricsUrl=e},this.sessionInfo=o}async initialize({gatherUsageStats:o,sendMessageToHost:e}
151){this.sendMessageToHost=e,this.actuallySendMetrics=o&&this.metricsUrl!=="off",this.getAnonymousId(),this.actuallySendMetrics&&!this.metricsUrl&&(await this.requestDefaultMetricsConfig(),this.metricsUrl||(LOG$1.error("Undefined metrics config - deactivating metrics tracking."),this.actuallySendMetrics=!1)),this.actuallySendMetrics&&this.sendPendingEvents(),LOG$1.info("Gather usage stats: ",this.actuallySendMetrics),this.initialized=!0}enqueue(o,e={}){if(!this.initialized||!this.sessionInfo.isSet){this.pendingEvents.push([o,e]);return}this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(o,e))}setMetadata(o){this.metadata=o}async requestDefaultMetricsConfig(){const o=localStorageAvailable();if(o){const e=window.localStorage.getItem("stMetricsConfig");if(e){this.metricsUrl=e;return}}try{const e=await fetch(DEFAULT_METRICS_CONFIG,{signal:AbortSignal.timeout(5e3)});if(!e.ok)this.metricsUrl=void 0,LOG$1.error("Failed to fetch metrics config: ",e.status);else{const t=await e.json();this.metricsUrl=t.url??void 0,o&&this.metricsUrl&&window.localStorage.setItem("stMetricsConfig",this.metricsUrl)}}catch(e){LOG$1.error("Failed to fetch metrics config:",e)}}send(o,e={}){const t=this.buildEventProto(o,e);this.metricsUrl==="postMessage"?this.postMessageEvent(o,t):this.track(t)}sendPendingEvents(){this.pendingEvents.forEach(([o,e])=>{this.send(o,e)}),this.pendingEvents=[]}async track(o){const e=new Request(this.metricsUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o.toJSON())});await fetch(e)}postMessageEvent(o,e){this.sendMessageToHost({type:"METRICS_EVENT",eventName:o,data:e})}buildEventProto(o,e){const t=new MetricsEvent({event:o,anonymousId:this.anonymousId,...this.getHostTrackingData(),...this.getInstallationData(),reportHash:this.appHash,dev:IS_DEV_ENV,source:"browser",streamlitVersion:this.sessionInfo.current.streamlitVersion,isHello:this.sessionInfo.isHello,appId:this.sessionInfo.current.appId,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,serverOs:this.sessionInfo.current.serverOS,hasDisplay:this.sessionInfo.current.hasDisplay,isWebdriver:isWebdriver(),...this.getContextData()});if(o==="menuClick")t.label=e.label;else if(o==="pageProfile")return new MetricsEvent({...t,...e});return t}getInstallationData(){return{machineIdV3:this.sessionInfo.current.installationIdV3,machineIdV4:this.sessionInfo.current.installationIdV4}}getHostTrackingData(){return this.metadata?pick$1(this.metadata,["hostedAt","owner","repo","branch","mainModule","creatorId"]):{}}getContextData(){return{contextPageUrl:window.location.href,contextPageTitle:document.title,contextPagePath:window.location.pathname,contextPageReferrer:document.referrer,contextPageSearch:window.location.search,contextLocale:window.navigator.language,contextUserAgent:window.navigator.userAgent}}getAnonymousId(){if(!this.actuallySendMetrics)return;const o="ajs_anonymous_id",e=localStorageAvailable(),t=getCookie(o),c=e?window.localStorage.getItem(o):null,p=new Date;if(p.setFullYear(new Date().getFullYear()+1),t)this.anonymousId=t,e&&window.localStorage.setItem(o,t);else if(c){try{this.anonymousId=JSON.parse(c)}catch{this.anonymousId=c}setCookie(o,this.anonymousId,p)}else this.anonymousId=v4(),setCookie(o,this.anonymousId,p),e&&window.localStorage.setItem(o,this.anonymousId)}}function isWebdriver(){return window.navigator?.webdriver??!1}class SessionEventDispatcher{constructor(){this.onSessionEvent=new distExports.Signal}handleSessionEventMsg(o){this.onSessionEvent.emit(o)}}const StyledApp=styled("div",{target:"ee4bbma0"})(({theme:n})=>
151{const o=hasLightBackgroundColor(n);return{position:"absolute",background:n.colors.bgColor,color:n.colors.bodyText,top:n.spacing.none,left:n.spacing.none,right:n.spacing.none,bottom:n.spacing.none,colorScheme:o?"light":"dark",overflow:"hidden","@media print":{float:"none",height:n.sizes.full,position:"static",overflow:"visible"}}});function getBrowserInfo(){const o=new UAParser().getResult();return{browserName:o.browser.name||"Unknown",browserVersion:o.browser.version||"Unknown",deviceType:o.device.type||"desktop",os:o.os.name||"Unknown"}}const showDevelopmentOptions=(n,o)=>o==Config.ToolbarMode.DEVELOPER?!0:Config.ToolbarMode.VIEWER==o||Config.ToolbarMode.MINIMAL==o?!1:n||isLocalhost();function getTitle(n){return n||"Streamlit"}class AppNavigation{constructor(o,e,t,c){this.hostCommunicationMgr=o,this.onUpdatePageUrl=e,this.onPageNotFound=t,this.onPageIconChange=c,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.hasSetDefaultFavicon=!1,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(o){return this.mainScriptHash!==o.mainScriptHash&&(this.isPageTitleSet=!1,this.isPageIconSet=!1,this.hasSetDefaultFavicon=!1),this.mainScriptHash=o.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=o.config?.hideSidebarNav??null),document.title=getTitle(""),[{currentPageScriptHash:o.pageScriptHash,hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handleNavigation(o){const{sections:e,position:t,appPages:c}=o;this.appPages=c,this.hideSidebarNav=t===Navigation.Position.HIDDEN;const p=o.pageScriptHash,h=c.find($=>$.pageScriptHash===p),y=c.find($=>$.isDefault);this.mainPage=y;const g=h.urlPathname;if(!this.isPageTitleSet){const $=getTitle(h.pageName);document.title=$,this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:h.pageName??""})}return!this.isPageIconSet&&h.icon&&this.onPageIconChange(h.icon),this.onUpdatePageUrl(y.urlPathname??"",g,h.isDefault??!1),[{appPages:c,navSections:e,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:o.expanded,currentPageScriptHash:p},()=>{this.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:c}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:h.isDefault?"":g,currentPageScriptHash:p})}]}handlePageNotFound(o){return this.onPageNotFound(o),[{currentPageScriptHash:this.mainScriptHash??""},()=>{this.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:this.mainScriptHash??""})}]}findPageByUrlPath(o){return this.appPages.find(e=>o.endsWith("/"+e.urlPathname))??this.mainPage}handlePageConfigChanged(o){o.favicon&&(this.isPageIconSet=!0),o.title&&(this.isPageTitleSet=!0)}clearPageElements(o,e){return o.filterMainScriptElements(e)}}var define_PACKAGE_METADATA_default={version:"1.52.2"};const INITIAL_SCRIPT_RUN_ID="<null>",LOG=loglevelExports.getLogger("App");class App extends reactExports.PureComponent{constructor(o){super(o),this.sessionInfo=new SessionInfo,this.metricsMgr=new MetricsManager(this.sessionInfo),this.sessionEventDispatcher=new SessionEventDispatcher,this.embeddingId=generateUID$2(),this.deferredFileListeners=new Map,this.isInitializingConnectionManager=!0,this.hasReceivedNewSession=!1,this.showDeployError=(e,t,c)=>{const p={type:DialogType.DEPLOY_ERROR,title:e,msg:t,onContinue:c,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg};this.openDialog(p)},this.handleThemeMessage=(e,t)=>{const[,c,p]=createPresetThemes(),h=isPresetTheme(this.props.theme.activeTheme);e===c.name&&h?this.props.theme.setTheme(c):e===p.name&&h?this.props.theme.setTheme(p):t&&this.props.theme.setImportedTheme(t)},this.handleConnectionStateChanged=e=>{if(LOG.info(`Connection state changed from ${this.state.connectionState} to ${e}`),e===ConnectionState.CONNECTED){LOG.info("Reconnected to server."),this.state.connectionErrorDismissed&&this.setState({connectionErrorDismissed:!1});const t=this.state.scriptRunState===ScriptRunState.RUNNING,c=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED;!this.sessionInfo.last||t||c||this.state.fragmentIdsThisRun.length>0||this.state.autoReruns.length>0?(LOG.info("Requesting a script run."),this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})):this.state.dialog?.type===DialogType.CONNECTION_ERROR&&this.setState({dialog:null}),this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_CONNECTED"})}else this.state.connectionState===ConnectionState.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_DISCONNECTED",attemptingToReconnect:e!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.disconnect();this.isInitializingConnectionManager?this.setState({connectionState:e}):reactDomExports.flushSync(()=>{this.setState({connectionState:e})})},this.handleGitInfoChanged=e=>{this.setState({gitInfo:e})},this.handleCustomParentMessage=e=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:e.message}):LOG.error("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=e=>{const t=(c,p,h)=>{const y=c[p];if(y in h)return h[y](c[y]);throw new Error(`Cannot handle ${p} "${y}".`)};try{t(e,"type",{newSession:c=>this.handleNewSession(c),sessionStatusChanged:c=>this.handleSessionStatusChanged(c),sessionEvent:c=>this.handleSessionEvent(c),delta:c=>this.handleDeltaMsg(c,e.metadata),pageConfigChanged:c=>this.handlePageConfigChanged(c),pageInfoChanged:c=>this.handlePageInfoChanged(c),pagesChanged:c=>{},pageNotFound:c=>this.handlePageNotFound(c),gitInfoChanged:c=>this.handleGitInfoChanged(c),scriptFinished:c=>this.handleScriptFinished(c),pageProfile:c=>this.handlePageProfileMsg(c),autoRerun:c=>this.handleAutoRerun(c),fileUrlsResponse:c=>this.uploadClient.onFileURLsResponse(c),deferredFileResponse:c=>this.handleDeferredFileResponse(c),parentMessage:c=>this.handleCustomParentMessage(c),logo:c=>this.handleLogo(c,e.metadata),navigation:c=>this.handleNavigation(c),authRedirect:c=>{isInChildFrame()?this.hostCommunicationMgr.sendMessageToSameOriginHost({type:"REDIRECT_TO_URL",url:c.url}):window.location.href=c.url}})}catch(c){const p=ensureError(c);LOG.error(p),this.showError("Bad message format",{message:p.message})}},this.handleLogo=(e,t)=>{this.setState(c=>({elements:c.elements.appRootWithLogo(e,{activeScriptHash:t.activeScriptHash,scriptRunId:c.scriptRunId})}))},this.handlePageConfigChanged=e=>{const{title:t,favicon:c,layout:p,initialSidebarState:h,menuItems:y}=e;this.appNavigation.handlePageConfigChanged(e),t&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:t}),document.title=t),c&&this.onPageIconChanged(c),p!==this.state.layout&&p!==PageConfig.Layout.LAYOUT_UNSET&&this.setState(g=>({layout:p,userSettings:{...g.userSettings,wideMode:p===PageConfig.Layout.WIDE}})),h!==this.state.initialSidebarState&&h!==PageConfig.SidebarState.SIDEBAR_UNSET&&this.setState(()=>({initialSidebarState:h})),y&&this.setState(g=>(y.clearAboutMd&&(y.aboutSectionMd=""),{menuItems:{...g.menuItems,...y}}))},this.handlePageInfoChanged=e=>{const{queryString:t}=e,c=document.location.pathname+(t?`?${t}`:"");window.history.pushState({},"",c),this.setState({queryParams:t}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:t?`?${t}`:""})},this.onPageNotFound=e=>{const t=e?`You have requested page /${e}, but no corresponding file was found in the app's pages/ directory`:"The page that you have requested does not seem to exist";this.showError("Page not found",{message:`${t}. Running the app's main page.`})},this.handlePageNotFound=e=>{const{pageName:t}=e;this.maybeSetState(this.appNavigation.handlePageNotFound(t))},this.onPageIconChanged=e=>{handleFavicon(e,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handleNavigation=e=>{this.setState({navigationPosition:e.position}),this.maybeSetState(this.appNavigation.handleNavigation(e))},this.handlePageProfileMsg=e=>{const t=PageProfile.toObject(e),c=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...t,isFragmentRun:!!t.isFragmentRun,numPages:this.state.appPages?.length,pageScriptHash:this.state.currentPageScriptHash,activeTheme:this.props.theme?.activeTheme?.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:c})},this.handleAutoRerun=e=>{const t=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(e.fragmentId,!0)},e.interval*1e3);this.setState(c=>({autoReruns:[...c.autoReruns,t]}))},this.handleSessionStatusChanged=e=>{this.setState(t=>{let{scriptRunState:c}=t,{dialog:p}=t;return e.scriptIsRunning&&t.scriptRunState!==ScriptRunState.STOP_REQUESTED?(c=ScriptRunState.RUNNING,notNullOrUndefined(p)&&p.type===DialogType.SCRIPT_COMPILE_ERROR&&(p=void 0)):!e.scriptIsRunning&&t.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&t.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(c=ScriptRunState.NOT_RUNNING),{userSettings:{...t.userSettings,runOnSave:!!e.runOnSave},dialog:p,scriptRunState:c,scriptChangedOnDisk:e.scriptIsRunning?!1:t.scriptChangedOnDisk}})},this.handleSessionEvent=e=>{if(this.sessionEventDispatcher.handleSessionEventMsg(e),e.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const t={type:DialogType.SCRIPT_COMPILE_ERROR,exception:e.scriptCompilationException,onClose:()=>{}};this.maybeShowErrorDialog(t,e.scriptCompilationException?.message??"No message")}else e.type==="scriptChangedOnDisk"&&this.setState({scriptChangedOnDisk:!0}
151)},this.maybeUpdatePageUrl=(e,t,c)=>{const p=this.getBaseUriParts();if(p){let h;window.__streamlit?.MAIN_PAGE_BASE_URL?h=parseUriIntoBaseParts(window.__streamlit.MAIN_PAGE_BASE_URL).pathname:h=p.pathname;const y=extractPageNameFromPathName(document.location.pathname,h);if((y===""?e:y)!==t){const $=c?"":t,E=this.state.queryParams||preserveEmbedQueryParams(),A=E?`?${E}`:"",H=`${h==="/"?"":h}/${$}${A}`;window.history.pushState({},"",H)}}},this.handleNewSession=e=>{const t=e.initialize;if(this.hasStreamlitVersionChanged(t)){window.location.reload();return}this.hasReceivedNewSession=!0,(!this.sessionInfo.isSet||!this.sessionInfo.current.isConnected)&&this.handleInitialization(e);const{appHash:c,currentPageScriptHash:p}=this.state,{scriptRunId:h,name:y,mainScriptPath:g,fragmentIdsThisRun:$,pageScriptHash:E,mainScriptHash:A}=e;if($.length)this.setState({fragmentIdsThisRun:$,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const H=e.config,Z=e.customTheme;this.processThemeInput(Z),this.setState({allowRunOnSave:H.allowRunOnSave,hideTopBar:H.hideTopBar,toolbarMode:H.toolbarMode,latestRunTime:performance.now(),mainScriptHash:A,fragmentIdsThisRun:$}),this.maybeSetState(this.appNavigation.handleNewSession(e)),!this.appNavigation.hasSetDefaultFavicon&&!this.appNavigation.isPageIconSet&&(this.appNavigation.hasSetDefaultFavicon=!0,this.onPageIconChanged("./favicon.png"))}const N=hashString(this.sessionInfo.current.installationId+g);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(N),this.metricsMgr.enqueue("updateReport"),c===N&&p===E?this.setState({scriptRunId:h}):this.clearAppState(N,h,y,A)},this.handleInitialization=e=>{const t=e.initialize,c=e.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(e)),this.metricsMgr.initialize({gatherUsageStats:c.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(t.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:e}=this.state,t=this.appNavigation.findPageByUrlPath(document.location.pathname),c=document.location.toString().includes("#"),p=t?.pageScriptHash===e;isNullOrUndefined(t)||c&&p||this.onPageChange(t.pageScriptHash,void 0,!0)},this.setAndSendTheme=e=>{this.props.theme.setTheme(e),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(e.emotion)})},this.createThemeHash=e=>{if(!e)return"hash_for_undefined_custom_theme";const t=JSON.parse(JSON.stringify(e)),c=sortThemeInputKeys(t);return hashString(JSON.stringify(c))},this.closeDialog=()=>{this.state.dialog?.type===DialogType.CONNECTION_ERROR?this.setState({dialog:void 0,connectionErrorDismissed:!0}):this.setState({dialog:void 0})},this.saveSettings=e=>{const{runOnSave:t}=this.state.userSettings,{runOnSave:c}=e;if(this.setState({userSettings:e}),t!==c&&this.isServerConnected()){const p=new BackMsg({setRunOnSave:c});p.type="setRunOnSave",this.sendBackMsg(p)}},this.handleDeltaMsg=(e,t)=>{this.setState(c=>({elements:c.elements.applyDelta(c.scriptRunId,e,t)}))},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const e=new BackMsg({debugShutdownRuntime:!0});e.type="debugShutdownRuntime",this.sendBackMsg(e)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const e=new BackMsg({debugDisconnectWebsocket:!0});e.type="debugDisconnectWebsocket",this.sendBackMsg(e)}},this.debugClearForwardMsgCache=()=>{isLocalhost()&&this.connectionManager?.websocketConnection?.cache.messages.clear()},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(e=>{clearInterval(e)}),this.setState({autoReruns:[]})},this.rerunScript=(e=!1)=>{if(this.closeDialog(),!this.isServerConnected()){LOG.error("Cannot rerun script when disconnected from server.");return}this.state.scriptRunState===ScriptRunState.RUNNING||this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),e===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){LOG.error("Cannot load git information when disconnected from server.");return}this.sendBackMsg(new BackMsg({loadGitInfo:!0}))},this.onPageChange=(e,t,c)=>{const{elements:p,mainScriptHash:h}=this.state;this.cleanupAutoReruns();const y=this.appNavigation.clearPageElements(p,h),g=new Set(Array.from(y.getElements()).map($=>getElementId($)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(g),void 0,e,void 0,t,c)},this.isAppInReadyState=e=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&e.scriptRunState===ScriptRunState.RUNNING&&e.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(e,t,c,p,h,y)=>{const g=this.getBaseUriParts();if(!g){LOG.error("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:$}=this.state;let E=h??this.getQueryString(),A="";const N={timezone:getTimezone$1(),timezoneOffset:getTimezoneOffset(),locale:getLocaleLanguage(),url:getUrl(),isEmbedded:isEmbed(),colorScheme:this.getThemeColorScheme()};if(c){if(c!==$&&!y){const Z=preserveEmbedQueryParams();E=getQueryString(h,Z),this.setState({queryParams:E}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:E})}}else if($)c=$;else{let Z;window.__streamlit?.MAIN_PAGE_BASE_URL?Z=parseUriIntoBaseParts(window.__streamlit.MAIN_PAGE_BASE_URL).pathname:Z=g.pathname,A=extractPageNameFromPathName(
151document.location.pathname,Z),c=""}const H=this.connectionManager?.getCachedMessageHashes()??[];this.sendBackMsg(new BackMsg({rerunScript:{queryString:E,widgetStates:e,pageScriptHash:c,pageName:A,fragmentId:t,isAutoRerun:p,cachedMessageHashes:H,contextInfo:N}})),this.hasReceivedNewSession=!1},this.stopScript=()=>{if(!this.isServerConnected()){LOG.error("Cannot stop app when disconnected from server.");return}if(this.state.scriptRunState===ScriptRunState.NOT_RUNNING||this.state.scriptRunState===ScriptRunState.STOP_REQUESTED)return;const e=new BackMsg({stopScript:!0});e.type="stopScript",this.sendBackMsg(e),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const e={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(e)}else LOG.error("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{const e={type:DialogType.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:this.state.dialog?.type===DialogType.DEPLOY_ERROR,metricsMgr:this.metricsMgr,gitInfo:this.state.gitInfo};this.openDialog(e)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const e=new BackMsg({clearCache:!0});e.type="clearCache",this.sendBackMsg(e)}else LOG.error("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=()=>{if(this.isServerConnected()){const e=new BackMsg({appHeartbeat:!0});e.type="appHeartbeat",this.sendBackMsg(e)}else LOG.error("Cannot send app heartbeat: disconnected from server")},this.sendBackMsg=e=>{this.connectionManager?(LOG.info(e),this.connectionManager.sendMessage(e)):LOG.error(`Not connected. Cannot send back message: ${e}`)},this.handleConnectionError=e=>{this.state.connectionErrorDismissed||this.showError("Connection error",e,DialogType.CONNECTION_ERROR)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.settingsCallback=(e=!0)=>{const t={type:DialogType.SETTINGS,sessionInfo:this.sessionInfo,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave,onSave:this.saveSettings,onClose:()=>{},animateModal:e,metricsMgr:this.metricsMgr};this.openDialog(t)},this.aboutCallback=()=>{const{menuItems:e}=this.state,t={type:DialogType.ABOUT,onClose:this.closeDialog,aboutSectionMd:e?.aboutSectionMd};this.openDialog(t)},this.printCallback=()=>{const{scriptRunState:e}=this.state;if(e!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let t;try{const c=getIFrameEnclosingApp(this.embeddingId);c?.contentWindow?t=c.contentWindow.window:t=window}catch{t=window}finally{t||(t=window),t.print()}},this.screencastCallback=()=>{const{scriptName:e}=this.state,{startRecording:t}=this.props.screenCast,c=getScreencastTimestamp();t(`streamlit-${e}-${c}`)},this.handleFullScreen=e=>{this.setState({isFullScreen:e})},this.setLibConfig=e=>{this.setState({libConfig:e})},this.setAppConfig=e=>{this.setState({appConfig:e})},this.addScriptFinishedHandler=e=>{this.setState((t,c)=>({scriptFinishedHandlers:t.scriptFinishedHandlers.concat(e)}))},this.removeScriptFinishedHandler=e=>{this.setState((t,c)=>({scriptFinishedHandlers:t.scriptFinishedHandlers.filter(p=>p!==e)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:e}=this.state,t=e&&e.length>0?e:document.location.search;return t.startsWith("?")?t.substring(1):t},this.getThemeColorScheme=()=>{const{activeTheme:e}=this.props.theme;
151return hasLightBackgroundColor(e.emotion)?"light":"dark"},this.isInCloudEnvironment=()=>{const{hostMenuItems:e}=this.state;return e&&e?.length>0},this.showDeployButton=()=>showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&!this.isInCloudEnvironment()&&this.sessionInfo.isSet&&!this.sessionInfo.isHello,this.deployButtonClicked=()=>{this.metricsMgr.enqueue("menuClick",{label:"deployButtonInApp"}),this.sendLoadGitInfoBackMsg(),this.openDeployDialog()},this.requestFileURLs=(e,t)=>{const c=this.isServerConnected(),p=this.sessionInfo.isSet;if(c&&p){const h=new BackMsg({fileUrlsRequest:{requestId:e,fileNames:t.map(y=>y.name),sessionId:this.sessionInfo.current.sessionId}});h.type="fileUrlsRequest",this.sendBackMsg(h)}else LOG.warn(`Cannot request file URLs (isServerConnected: ${c}, isSessionInfoSet: ${p})`),this.uploadClient.onFileURLsResponse({responseId:e,errorMsg:"Connection lost. Please wait for the app to reconnect, then try again."})},this.requestDeferredFile=e=>{const t=this.isServerConnected(),c=this.sessionInfo.isSet;if(!t||!c)return Promise.reject(new Error("Not connected to server or session not initialized"));const p=Promise.withResolvers(),h=this.deferredFileListeners.get(e)??new Set,y=$=>{h.delete(y),p.resolve($)};h.add(y),this.deferredFileListeners.set(e,h);const g=new BackMsg({deferredFileRequest:{fileId:e,sessionId:this.sessionInfo.current.sessionId}});return g.type="deferredFileRequest",this.sendBackMsg(g),p.promise},this.handleDeferredFileResponse=e=>{const t=this.deferredFileListeners.get(e.fileId);if(!(!t||t.size===0)){for(const c of Array.from(t))try{c(e)}catch{}this.deferredFileListeners.delete(e.fileId)}},this.handleKeyDown=(e,t)=>{if(!((e==="c"||e==="r")&&isKeyboardEventFromEditableTarget(t)))switch(e){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=e=>{e==="esc"&&this.props.screenCast.stopRecording()},this.hasAppDefinedMenuItems=()=>{const{menuItems:e}=this.state;return!!(e?.aboutSectionMd||e?.getHelpUrl&&!e?.hideGetHelp||e?.reportABugUrl&&!e?.hideReportABug)},this.shouldShowToolbar=(e,t)=>{const c=!isEmbed()||isToolbarDisplayed();let p;return this.state.toolbarMode===Config.ToolbarMode.MINIMAL?p=e.length>0||t.length>0||this.hasAppDefinedMenuItems():p=!0,c&&p},ensureHotkeysFilterConfigured(),enablePatches(),enableMapSet(),this.state={connectionState:ConnectionState.INITIAL,elements:AppRoot.empty("",!0),isFullScreen:!1,scriptName:"",scriptRunId:INITIAL_SCRIPT_RUN_ID,appHash:null,scriptRunState:ScriptRunState.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},connectionErrorDismissed:!1,layout:PageConfig.Layout.CENTERED,initialSidebarState:PageConfig.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],themeHash:"",gitInfo:null,formsData:createFormsData(),appPages:[],navSections:[],currentPageScriptHash:"",mainScriptHash:"",hideTopBar:!0,hideSidebarNav:!0,expandSidebarNav:!1,toolbarMode:Config.ToolbarMode.MINIMAL,latestRunTime:performance.now(),fragmentIdsThisRun:[],isOwner:!1,hostMenuItems:[],hostToolbarItems:[],hostHideSidebarNav:!1,sidebarChevronDownshift:0,pageLinkBaseUrl:"",queryParams:"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1,navigationPosition:Navigation.Position.SIDEBAR,scriptChangedOnDisk:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:e=>this.setState({formsData:e})}),this.hostCommunicationMgr=new HostCommunicationManager({streamlitExecutionStartedAt:o.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:e=>{this.setState({inputsDisabled:e})},themeChanged:this.handleThemeMessage,pageChanged:e=>this.onPageChange(e),isOwnerChanged:e=>this.setState({isOwner:e}),fileUploadClientConfigChanged:e=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(e)},hostMenuItemsChanged:e=>{this.setState({hostMenuItems:e})},hostToolbarItemsChanged:e=>{this.setState({hostToolbarItems:e})},hostHideSidebarNavChanged:e=>{this.setState({hostHideSidebarNav:e})},sidebarChevronDownshiftChanged:e=>{this.setState({sidebarChevronDownshift:e})},pageLinkBaseUrlChanged:e=>{this.setState({pageLinkBaseUrl:e})},queryParamsChanged:e=>{this.setState({queryParams:e})},deployedAppMetadataChanged:e=>{this.setState({deployedAppMetadata:e})},restartWebsocketConnection:()=>{this.connectionManager||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),this.initializeConnectionManager())},terminateWebsocketConnection:()=>{this.connectionManager?.disconnect(),this.connectionManager=null}}),this.endpoints=new DefaultStreamlitEndpoints({getServerUri:this.getBaseUriParts,csrfEnabled:!0,sendClientError:(e,t,c,p,h)=>{this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR",component:e,error:t,message:c,source:p,customComponentName:h})}}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsC
151hanged:e=>this.widgetMgr.setFormsWithUploadsInProgress(e),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new ComponentRegistry(this.endpoints),this.appNavigation=new AppNavigation(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}initializeConnectionManager(){this.isInitializingConnectionManager=!0,this.connectionManager=new ConnectionManager({getLastSessionId:()=>this.sessionInfo.last?.sessionId,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,sendClientError:(o,e,t)=>{this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR",component:"Websocket Connection",error:o,message:e,source:t})},onHostConfigResp:o=>{const{allowedOrigins:e,useExternalAuthToken:t,disableFullscreenMode:c,enableCustomParentMessages:p,mapboxToken:h,enforceDownloadInNewTab:y,metricsUrl:g,blockErrorDialogs:$,setAnonymousCrossOriginPropertyOnMediaElements:E,resourceCrossOriginMode:A}=o,N={allowedOrigins:e,useExternalAuthToken:t,enableCustomParentMessages:p,blockErrorDialogs:$},H={mapboxToken:h,disableFullscreenMode:c,enforceDownloadInNewTab:y,resourceCrossOriginMode:A??E?"anonymous":void 0};this.metricsMgr.setMetricsConfig(g),this.hostCommunicationMgr.setAllowedOrigins(N),this.setAppConfig(N),this.setLibConfig(H)}}),this.isInitializingConnectionManager=!1}componentDidMount(){this.initializeConnectionManager(),mark(this.state.scriptRunState),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}),isScrollingHidden()&&document.body.classList.add("embedded"),isInChildFrame()&&(window.iFrameResizer={heightCalculationMethod:()=>{const o=document.querySelectorAll("[data-iframe-height]"),e=Array.from(o).map(t=>Math.ceil(t.getBoundingClientRect().bottom));return Math.max(0,...e)}},__vitePreload(()=>import("./iframeResizer.contentWindow.DM7vAi8H.js").then(o=>o.i),[],import.meta.url)),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(this.props.theme.activeTheme.emotion)}),this.metricsMgr.enqueue("viewReport"),window.addEventListener("popstate",this.onHistoryChange,!1)}componentDidUpdate(o,e){if(window.prerenderReady===!1&&this.isAppInReadyState(e)&&(window.prerenderReady=!0),this.state.scriptRunState!==e.scriptRunState){if(mark(this.state.scriptRunState),this.state.scriptRunState===ScriptRunState.NOT_RUNNING)try{measure("script-run-cycle",ScriptRunState.RUNNING,ScriptRunState.NOT_RUNNING)}catch{}this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState})}}componentWillUnmount(){this.connectionManager?.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener("popstate",this.onHistoryChange,!1)}maybeShowErrorDialog(o,e){const{blockErrorDialogs:t}=this.state.appConfig;t||this.openDialog(o);const p=o.type===DialogType.SCRIPT_COMPILE_ERROR?o.type:o.title;this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR_DIALOG",error:p,message:e})}showError(o,e,t=DialogType.WARNING){LOG.error(e.message);const c={type:t,title:o,msg:jsx$1(DialogErrorMessage$1,{message:e.message,codeBlock:e.codeBlock}),onClose:()=>{}};this.maybeShowErrorDialog(c,e.message)}hasStreamlitVersionChanged(o){let e;if(window.__streamlit?.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION===!0?e=define_PACKAGE_METADATA_default.version:this.sessionInfo.isSet&&(e=this.sessionInfo.current.streamlitVersion),e){const{environmentInfo:t}=o;if(notNullOrUndefined(t)&¬NullOrUndefined(t.streamlitVersion))return e!=t.streamlitVersion}return!1}maybeSetState(o){if(o){const[e,t]=o;this.setState(e,t)}}processThemeInput(o){const e=this.createThemeHash(o);if(e===this.state.themeHash)return;this.setState({themeHash:e});const t=!isPresetTheme(this.props.theme.activeTheme);if(o){const c=createCustomThemes(o);this.props.theme.addThemes(c,{keepPresetThemes:!1});const p=getCachedTheme(),h=mapCachedThemeToAvailableTheme(p,c);if(h)this.setAndSendTheme(h);else if(c.length>1){const y=c.findIndex(g=>g.name===CUSTOM_THEME_AUTO_NAME);this.setAndSendTheme(c[y])}else this.setAndSendTheme(c[0])}else if(this.props.theme.addThemes([]),t){const c=getCachedTheme(),h=mapCachedThemeToAvailableTheme(c,[lightTheme,darkTheme]);h?this.setAndSendTheme(h):this.setAndSendTheme(getHostSpecifiedTheme())}(o?.fontFaces&&o.fontFaces.length>0||o?.fontSources&&o.fontSources.length>0)&&this.props.theme.setFonts(o)}handleScriptFinished(o){(o===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||o===ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||o===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&(Promise.resolve().then(()=>
151{this.state.scriptFinishedHandlers.forEach(e=>e())}),(o===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||o===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&this.setState(({scriptRunId:e,fragmentIdsThisRun:t,elements:c})=>({elements:c.clearStaleNodes(e,t)}),()=>{const e=new Set(Array.from(this.state.elements.getElements()).map(t=>getElementId(t)).filter(notUndefined));this.widgetMgr.removeInactive(e)}),this.connectionManager!==null&&o!==ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.hasReceivedNewSession&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge,this.state.fragmentIdsThisRun))}clearAppState(o,e,t,c){this.setState(p=>{const h=this.appNavigation.clearPageElements(p.elements,c);return{scriptRunId:e,scriptName:t,appHash:o,elements:h}},()=>{const p=new Set(Array.from(this.state.elements.getElements()).map(h=>getElementId(h)).filter(notUndefined));this.widgetMgr.removeInactive(p)})}openDialog(o){this.setState({dialog:o})}render(){const{allowRunOnSave:o,connectionState:e,dialog:t,elements:c,initialSidebarState:p,menuItems:h,isFullScreen:y,scriptRunId:g,scriptRunState:$,userSettings:E,hideTopBar:A,hideSidebarNav:N,expandSidebarNav:H,currentPageScriptHash:Z,hostHideSidebarNav:X,pageLinkBaseUrl:be,sidebarChevronDownshift:we,hostMenuItems:$e,hostToolbarItems:Ce,libConfig:Ie,inputsDisabled:Ne,appPages:Fe,navSections:Be,navigationPosition:Ge,scriptChangedOnDisk:je}=this.state,De=this.props.isMobileViewport?Navigation.Position.SIDEBAR:Ge,Ue=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),Je=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":E.wideMode}),Xe=t?StreamlitDialog({...t,onClose:this.closeDialog}):null,Ke=this.shouldShowToolbar($e,Ce),ze=!isEmbed()||isPaddingDisplayed(),nt=isScrollingHidden();return jsx$1(StreamlitContextProvider$1,{initialSidebarState:p,pageLinkBaseUrl:be,currentPageScriptHash:Z,onPageChange:this.onPageChange,navSections:Be,appPages:Fe,appLogo:c.logo,sidebarChevronDownshift:we,expandSidebarNav:H,hideSidebarNav:N||X||De===Navigation.Position.TOP,isFullScreen:y,setFullScreen:this.handleFullScreen,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language,formsData:this.state.formsData,scriptRunState:$,scriptRunId:g,mapboxToken:Ie.mapboxToken,enforceDownloadInNewTab:Ie.enforceDownloadInNewTab,resourceCrossOriginMode:Ie.resourceCrossOriginMode,requestDeferredFile:this.requestDeferredFile,children:jsx$1(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxs(StyledApp,{className:Je,"data-testid":"stApp","data-test-script-state":g==INITIAL_SCRIPT_RUN_ID?"initial":$,"data-test-connection-state":e,children:[jsx$1(AppView,{endpoints:this.endpoints,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:c,widgetMgr:this.widgetMgr,uploadClient:this.uploadClient,navigationPosition:De,wideMode:E.wideMode,embedded:isEmbed(),showPadding:ze,disableScrolling:nt,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,widgetsDisabled:Ne||e!==ConnectionState.CONNECTED,showToolbar:Ke,disableFullscreenMode:Ie.disableFullscreenMode,componentRegistry:this.componentRegistry,topRightContent:jsxs(Fragment,{children:[!A&&jsx$1(StatusWidget,{connectionState:e,scriptRunState:$,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:o,showScriptChangedActions:je}),!A&&jsx$1(ToolbarActions,{hostToolbarItems:Ce,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr}),this.showDeployButton()&&!je&&jsx$1(DeployButton,{onClick:this.deployButtonClicked}),!A&&jsx$1(MainMenu$1,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,printCallback:this.printCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,hostMenuItems:$e,developmentMode:Ue,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:h,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode})]})}),Xe]})})})}}const AppWithScreenCast=withScreencast(App),AppWrapper=n=>{const{isMobile:o}=useViewportSize();return jsx$1(AppWithScreenCast,{...n,isMobileViewport:o})};function useThemeManager(){const n=getDefaultTheme(),[o,e]=reactExports.useState(n),[t,c]=reactExports.useState(n.themeInput?.fontFaces??[]),[p,h]=reactExports.useState(null),[y,g]=reactExports.useState(()=>[...createPresetThemes(),...isPresetTheme(n)?[]:[n]]),$=(Z,X={})=>{const{keepPresetThemes:be=!0}=X;g([...be?createPresetThemes():[],...Z])},E=reactExports.useCallback(Z=>{e(X=>Z!==X?(Z.name===AUTO_THEME_NAME?removeCachedTheme():setCachedTheme(Z),Z):X)},[e]),A=reactExports.useCallback(()=>{o.name===AUTO_THEME_NAME&&E(getHostSpecifiedTheme());const Z=y.filter(X=>X.name!==AUTO_THEME_NAME);g([createAutoTheme(),...Z])},[o.name,y,E]),N=reactExports.useCallback(Z=>{Z.fontFaces&&c(Z.fontFaces);const X=[...Z.fontSources||[],...Z.sidebar?.fontSources||[]],be={};
151X.forEach(we=>{we.sourceUrl&&we.configName&&(be[we.configName]=we.sourceUrl)}),h(Object.keys(be).length>0?be:null)},[c,h]),H=reactExports.useCallback(Z=>{N(Z);const X=new CustomThemeConfig(Z),be=createTheme(CUSTOM_THEME_NAME,X);E(be)},[N,E]);return reactExports.useEffect(()=>{const Z=window.matchMedia("(prefers-color-scheme: dark)");return Z.addEventListener("change",A),window.addEventListener("afterprint",A),()=>{window.removeEventListener("afterprint",A),Z.removeEventListener("change",A)}},[o,y,A]),[{setTheme:E,activeTheme:o,addThemes:$,availableThemes:y,setFonts:N,setImportedTheme:H},t,p]}const ThemedApp=({streamlitExecutionStartedAt:n})=>{const[o,e,t]=useThemeManager(),{activeTheme:c}=o;return jsx$1(RootStyleProvider,{theme:c,children:jsx$1(WindowDimensionsProvider,{children:jsxs(PortalProvider,{children:[e.length>0&&jsx$1(FontFaceDeclaration,{fontFaces:e}),t&&jsx$1(FontSources,{fontSources:t}),jsx$1(AppWrapper,{theme:o,streamlitExecutionStartedAt:n})]})})})},streamlitExecutionStartedAt=Date.now(),engine=new StyletronClient({prefix:"st-"}),rootDomNode=document.getElementById("root");if(!rootDomNode)throw new Error("#root DOM element not found");const reactRoot=clientExports.createRoot(rootDomNode);reactRoot.render(jsx$1(reactExports.StrictMode,{children:jsx$1(HelmetProvider,{children:jsx$1(Provider$1,{value:engine,children:jsx$1(ThemedApp,{streamlitExecutionStartedAt})})})}));export{toaster as $,ADJOINED as A,BaseButtonKind as B,Checkbox$1 as C,DynamicButtonLabel as D,EmotionIconBase as E,DownloadContext as F,StyledErrorMessage as G,toString$2 as H,findAndReplace as I,Arrow$2 as J,range as K,LibConfigContext as L,isNumericType as M,DataFrameCellType as N,useCrossOriginAttribute as O,Placement as P,loglevelExports as Q,useRequiredContext as R,StreamlitMarkdown$1 as S,TooltipIcon as T,UISelectbox as U,useCopyToClipboard as V,ensureError as W,ErrorElement as X,NavigationContext as Y,DynamicIcon as Z,_extends$C as _,BaseButtonTooltip as a,getCrossOriginAttribute as a$,Fragment as a0,Kind as a1,AlertElement$1 as a2,Video$1 as a3,keyframes as a4,StyledWidgetInstructions as a5,isFromMac as a6,FormsContext as a7,StyledFormSubmitContent as a8,Form$1 as a9,LabelVisibilityOptions as aA,React as aB,StyledWidgetLabel as aC,getMetricBackgroundColor as aD,getMetricTextColor as aE,Metric$1 as aF,Global as aG,getMetricColor as aH,convertRemToPx as aI,hexToRgb as aJ,withWrapper as aK,__vitePreload as aL,blend as aM,SetCache as aN,cacheHas as aO,baseRest as aP,isArrayLikeObject as aQ,useSelectCommon as aR,Select as aS,VirtualDropdown as aT,TYPE as aU,find as aV,parse$1 as aW,parse$2 as aX,normalize$1 as aY,html$2 as aZ,svg as a_,isInForm as aa,StyledWidgetLabelHelp as ab,WidgetLabel as ac,isMaterialIcon as ad,getBorderColor as ae,TextInput$1 as af,getDefaultExportFromCjs as ag,darken as ah,PortalContext as ai,reactDomExports as aj,classNames as ak,requireReact as al,styled$1 as am,isFocusVisible as an,getOverride as ao,getOverrideProps as ap,root$4 as aq,toNumber as ar,isObject$1 as as,mergeOverrides as at,CUSTOM_INPUT_TYPE as au,ChevronDown$1 as av,PLACEMENT as aw,Icon$2 as ax,Tooltip$1 as ay,IsSidebarContext as az,BaseButton as b,util_math_ as b$,ViewStateContext as b0,useWindowDimensionsContext as b1,LocaleContext as b2,shouldWidthStretch as b3,ButtonGroup$1 as b4,LabelVisibilityMessage as b5,StyledButtonGroup as b6,NumberInput$1 as b7,useStyletron as b8,mergeOverride as b9,merge$1 as bA,getIncreasingGreen as bB,getDecreasingRed as bC,getBlue80 as bD,getGray30 as bE,getGray70 as bF,getGray90 as bG,getDivergingColorsArray as bH,keysToSnakeCase as bI,PlotlyChart$1 as bJ,themeColors as bK,isMobile as bL,UploadedFileInfo as bM,FileUploaderState as bN,__awaiter as bO,PropTypes as bP,isFromWindows as bQ,ThemeContext$1 as bR,pick$1 as bS,Slider$1 as bT,zip as bU,baseSlice as bV,baseToString as bW,trimmedEndIndex as bX,util_bn_ as bY,util_int_ as bZ,util_bit_ as b_,toObjectOverride as ba,Icon$1 as bb,DeleteAlt$1 as bc,forkBlur as bd,forkFocus as be,addCssUnit as bf,convert as bg,visitParents as bh,SKIP as bi,isDatetimeType as bj,isDateType as bk,getTimezone as bl,debounce$2 as bm,isEqual$1 as bn,shouldHeightStretch as bo,toPropertyKey$2 as bp,_setPrototypeOf$e as bq,_typeof$g as br,_assertThisInitialized$1 as bs,toExportedTheme as bt,ArrowDataframe as bu,useTimeout as bv,Skeleton$1 as bw,Skeleton as bx,ComponentRegistry as by,requirePropTypes as bz,BaseButtonSize as c,StyledCodeBlock as c$,util_buffer_ as c0,util_vector_ as c1,util_pretty_ as c2,util_interval_ as c3,compareTypes as c4,compareFields as c5,compareSchemas as c6,getAugmentedNamespace as c7,isStringType as c8,isTimeType as c9,ok as cA,stringify$1 as cB,stringify as cC,pointStart as cD,visit as cE,pointEnd as cF,structuredClone$1 as cG,identity as cH,arrayEach as cI,baseEach as cJ,isArray as cK,arrayMap as cL,baseMap as cM,baseIteratee as cN,baseForOwn as cO,isObjectLike as cP,baseGetTag as cQ,isPlainObject$3 as cR,cloneDeep$1 as cS,StatefulPopover as cT,_defineProperty$u as cU,filterOptions as cV,mergeWith as cW,commonjsGlobal as cX,StyledPre as cY,CopyButton$1 as cZ,StyledCopyButtonContainer as c_,isPeriodType as ca,isIntervalType as cb,isDurationType as cc,isDecimalType as cd,isFloatType as ce,isObjectType as cf,isListType as cg,TimeUnit as ch,Struct as ci,AcceptFileValue as cj,assertNever as ck,chatInputAcceptFileProtoValueToEnum as cl,ThemeProvider$1 as cm,createThemedStyled as cn,createThemedUseStyletron as co,createThemedWithStyle as cp,expandBorderStyles as cq,withStyle as cr,requireReactIs$1 as cs,tableFromIPC as ct,v4 as cu,requireReactDom as cv,UIDConsumer as cw,Popover$2 as cx,StatefulMenu as cy,ACCESSIBILITY_TYPE as cz,Box as d,propTypesExports as d0,index as d1,parseToRgba as d2,DeckGlJsonChart$1 as d3,hasPath as d4,isArrayLike as d5,isBuffer as d6,isTypedArray as d7,isArguments as d8,getTag as d9,css as dA,lighten as dB,mix$
1511 as dC,TRIGGER_TYPE as dD,StyledTooltipContentWrapper as dE,FlexContext as dF,useScrollbarGutterSize as dG,Resizable as dH,streamlit as dI,isPrototype as da,baseKeys as db,Set$1 as dc,setToArray as dd,memoize$1 as de,requireClassnames as df,groupBy as dg,flatten as dh,Vector as di,getLuminance as dj,parseIconPackEntry as dk,genericFonts as dl,getMarkdownBgColors as dm,isUnsignedIntegerType as dn,isIntegerType as dp,isBooleanType as dq,Field as dr,Null as ds,isRangeIndexType as dt,isEmptyType as du,isBytesType as dv,isCategoricalType as dw,fontSizes as dx,_objectWithoutProperties$1 as dy,jsx as dz,isNullOrUndefined as e,useCalculatedDimensions as f,useEmotionTheme as g,hoistNonReactStatics as h,isValidFormId as i,jsx$1 as j,hasLightBackgroundColor as k,jsxs as l,labelVisibilityProtoValueToEnum as m,notNullOrUndefined as n,StyledWidgetLabelHelpInline as o,StyledContent as p,StyledCheckbox$1 as q,reactExports as r,getOverrides as s,transparentize as t,useRegisterShortcut as u,SIZE$1 as v,ENHANCER_POSITION as w,styled as x,StyledDropdownListItem as y,isPropValid$1 as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.