diff --git a/examples/realtime-video/dist/assets/index-84487982.js b/examples/realtime-video/dist/assets/index-f1439a27.js similarity index 89% rename from examples/realtime-video/dist/assets/index-84487982.js rename to examples/realtime-video/dist/assets/index-f1439a27.js index a6cc54e1..6cb58807 100644 --- a/examples/realtime-video/dist/assets/index-84487982.js +++ b/examples/realtime-video/dist/assets/index-f1439a27.js @@ -1,4 +1,4 @@ -var Jy=Object.defineProperty;var Ny=(o,s,_)=>s in o?Jy(o,s,{enumerable:!0,configurable:!0,writable:!0,value:_}):o[s]=_;var Xn=(o,s,_)=>(Ny(o,typeof s!="symbol"?s+"":s,_),_);function _mergeNamespaces(o,s){for(var _=0;_j[$]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const $ of document.querySelectorAll('link[rel="modulepreload"]'))j($);new MutationObserver($=>{for(const _e of $)if(_e.type==="childList")for(const et of _e.addedNodes)et.tagName==="LINK"&&et.rel==="modulepreload"&&j(et)}).observe(document,{childList:!0,subtree:!0});function _($){const _e={};return $.integrity&&(_e.integrity=$.integrity),$.referrerPolicy&&(_e.referrerPolicy=$.referrerPolicy),$.crossOrigin==="use-credentials"?_e.credentials="include":$.crossOrigin==="anonymous"?_e.credentials="omit":_e.credentials="same-origin",_e}function j($){if($.ep)return;$.ep=!0;const _e=_($);fetch($.href,_e)}})();var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var jsxRuntimeExports={},jsxRuntime={get exports(){return jsxRuntimeExports},set exports(o){jsxRuntimeExports=o}},reactJsxRuntime_production_min={},reactExports={},react={get exports(){return reactExports},set exports(o){reactExports=o}},react_production_min={};/** +var Jy=Object.defineProperty;var Ny=(o,s,_)=>s in o?Jy(o,s,{enumerable:!0,configurable:!0,writable:!0,value:_}):o[s]=_;var Xn=(o,s,_)=>(Ny(o,typeof s!="symbol"?s+"":s,_),_);function _mergeNamespaces(o,s){for(var _=0;_j[$]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const $ of document.querySelectorAll('link[rel="modulepreload"]'))j($);new MutationObserver($=>{for(const _e of $)if(_e.type==="childList")for(const et of _e.addedNodes)et.tagName==="LINK"&&et.rel==="modulepreload"&&j(et)}).observe(document,{childList:!0,subtree:!0});function _($){const _e={};return $.integrity&&(_e.integrity=$.integrity),$.referrerPolicy&&(_e.referrerPolicy=$.referrerPolicy),$.crossOrigin==="use-credentials"?_e.credentials="include":$.crossOrigin==="anonymous"?_e.credentials="omit":_e.credentials="same-origin",_e}function j($){if($.ep)return;$.ep=!0;const _e=_($);fetch($.href,_e)}})();var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var jsxRuntimeExports={},jsxRuntime={get exports(){return jsxRuntimeExports},set exports(o){jsxRuntimeExports=o}},reactJsxRuntime_production_min={},reactExports={},react={get exports(){return reactExports},set exports(o){reactExports=o}},react_production_min={};/** * @license React * react.production.min.js * @@ -44,12 +44,12 @@ Error generating stack: `+_e.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var b=typeof Symbol=="function"&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(o){if(typeof o=="object"&&o!==null){var s=o.$$typeof;switch(s){case c:switch(o=o.type,o){case l:case m:case e:case g:case f:case p:return o;default:switch(o=o&&o.$$typeof,o){case k:case n:case t:case r$1:case h:return o;default:return s}}case d:return s}}}function A(o){return z(o)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r$1;reactIs_production_min.Portal=d;reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(o){return A(o)||z(o)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(o){return z(o)===k};reactIs_production_min.isContextProvider=function(o){return z(o)===h};reactIs_production_min.isElement=function(o){return typeof o=="object"&&o!==null&&o.$$typeof===c};reactIs_production_min.isForwardRef=function(o){return z(o)===n};reactIs_production_min.isFragment=function(o){return z(o)===e};reactIs_production_min.isLazy=function(o){return z(o)===t};reactIs_production_min.isMemo=function(o){return z(o)===r$1};reactIs_production_min.isPortal=function(o){return z(o)===d};reactIs_production_min.isProfiler=function(o){return z(o)===g};reactIs_production_min.isStrictMode=function(o){return z(o)===f};reactIs_production_min.isSuspense=function(o){return z(o)===p};reactIs_production_min.isValidElementType=function(o){return typeof o=="string"||typeof o=="function"||o===e||o===m||o===g||o===f||o===p||o===q||typeof o=="object"&&o!==null&&(o.$$typeof===t||o.$$typeof===r$1||o.$$typeof===h||o.$$typeof===k||o.$$typeof===n||o.$$typeof===w||o.$$typeof===x||o.$$typeof===y||o.$$typeof===v)};reactIs_production_min.typeOf=z;(function(o){o.exports=reactIs_production_min})(reactIs$1);var reactIs=reactIsExports,FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var isBrowser$1=!0;function getRegisteredStyles(o,s,_){var j="";return _.split(" ").forEach(function($){o[$]!==void 0?s.push(o[$]+";"):j+=$+" "}),j}var registerStyles=function(s,_,j){var $=s.key+"-"+_.name;(j===!1||isBrowser$1===!1)&&s.registered[$]===void 0&&(s.registered[$]=_.styles)},insertStyles=function(s,_,j){registerStyles(s,_,j);var $=s.key+"-"+_.name;if(s.inserted[_.name]===void 0){var _e=_;do s.insert(_===_e?"."+$:"",_e,s.sheet,!0),_e=_e.next;while(_e!==void 0)}};function murmur2(o){for(var s=0,_,j=0,$=o.length;$>=4;++j,$-=4)_=o.charCodeAt(j)&255|(o.charCodeAt(++j)&255)<<8|(o.charCodeAt(++j)&255)<<16|(o.charCodeAt(++j)&255)<<24,_=(_&65535)*1540483477+((_>>>16)*59797<<16),_^=_>>>24,s=(_&65535)*1540483477+((_>>>16)*59797<<16)^(s&65535)*1540483477+((s>>>16)*59797<<16);switch($){case 3:s^=(o.charCodeAt(j+2)&255)<<16;case 2:s^=(o.charCodeAt(j+1)&255)<<8;case 1:s^=o.charCodeAt(j)&255,s=(s&65535)*1540483477+((s>>>16)*59797<<16)}return s^=s>>>13,s=(s&65535)*1540483477+((s>>>16)*59797<<16),((s^s>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount: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,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(s){return s.charCodeAt(1)===45},isProcessableValue=function(s){return s!=null&&typeof s!="boolean"},processStyleName=memoize$1(function(o){return isCustomProperty(o)?o:o.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(s,_){switch(s){case"animation":case"animationName":if(typeof _=="string")return _.replace(animationRegex,function(j,$,_e){return cursor={name:$,styles:_e,next:cursor},$})}return unitlessKeys[s]!==1&&!isCustomProperty(s)&&typeof _=="number"&&_!==0?_+"px":_},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(o,s,_){if(_==null)return"";if(_.__emotion_styles!==void 0)return _;switch(typeof _){case"boolean":return"";case"object":{if(_.anim===1)return cursor={name:_.name,styles:_.styles,next:cursor},_.name;if(_.styles!==void 0){var j=_.next;if(j!==void 0)for(;j!==void 0;)cursor={name:j.name,styles:j.styles,next:cursor},j=j.next;var $=_.styles+";";return $}return createStringFromObject(o,s,_)}case"function":{if(o!==void 0){var _e=cursor,et=_(o);return cursor=_e,handleInterpolation(o,s,et)}break}}if(s==null)return _;var tt=s[_];return tt!==void 0?tt:_}function createStringFromObject(o,s,_){var j="";if(Array.isArray(_))for(var $=0;$<_.length;$++)j+=handleInterpolation(o,s,_[$])+";";else for(var _e in _){var et=_[_e];if(typeof et!="object")s!=null&&s[et]!==void 0?j+=_e+"{"+s[et]+"}":isProcessableValue(et)&&(j+=processStyleName(_e)+":"+processStyleValue(_e,et)+";");else if(Array.isArray(et)&&typeof et[0]=="string"&&(s==null||s[et[0]]===void 0))for(var tt=0;tt{s[_]=deepClone(o[_])}),s}function deepmerge(o,s,_={clone:!0}){const j=_.clone?_extends$1({},o):o;return isPlainObject(o)&&isPlainObject(s)&&Object.keys(s).forEach($=>{$!=="__proto__"&&(isPlainObject(s[$])&&$ in o&&isPlainObject(o[$])?j[$]=deepmerge(o[$],s[$],_):_.clone?j[$]=isPlainObject(s[$])?deepClone(s[$]):s[$]:j[$]=s[$])}),j}function formatMuiErrorMessage(o){let s="https://mui.com/production-error/?code="+o;for(let _=1;_{if(j.toString().match(/^(components|slots)$/))_[j]=_extends$1({},o[j],_[j]);else if(j.toString().match(/^(componentsProps|slotProps)$/)){const $=o[j]||{},_e=s[j];_[j]={},!_e||!Object.keys(_e)?_[j]=$:!$||!Object.keys($)?_[j]=_e:(_[j]=_extends$1({},_e),Object.keys($).forEach(et=>{_[j][et]=resolveProps($[et],_e[et])}))}else _[j]===void 0&&(_[j]=o[j])}),_}function composeClasses(o,s,_){const j={};return Object.keys(o).forEach($=>{j[$]=o[$].reduce((_e,et)=>(et&&(_e.push(s(et)),_&&_[et]&&_e.push(_[et])),_e),[]).join(" ")}),j}const defaultGenerator=o=>o,createClassNameGenerator=()=>{let o=defaultGenerator;return{configure(s){o=s},generate(s){return o(s)},reset(){o=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),ClassNameGenerator$1=ClassNameGenerator,globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function generateUtilityClass(o,s,_="Mui"){const j=globalStateClassesMapping[s];return j?`${_}-${j}`:`${ClassNameGenerator$1.generate(o)}-${s}`}function generateUtilityClasses(o,s,_="Mui"){const j={};return s.forEach($=>{j[$]=generateUtilityClass(o,$,_)}),j}var 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|download|draggable|encType|enterKeyHint|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(o){return reactPropsRegex.test(o)||o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o.charCodeAt(2)<91}),Global=withEmotionCache(function(o,s){var _=o.styles,j=serializeStyles([_],void 0,reactExports.useContext(ThemeContext$2)),$=reactExports.useRef();return useInsertionEffectWithLayoutFallback(function(){var _e=s.key+"-global",et=new s.sheet.constructor({key:_e,nonce:s.sheet.nonce,container:s.sheet.container,speedy:s.sheet.isSpeedy}),tt=!1,nt=document.querySelector('style[data-emotion="'+_e+" "+j.name+'"]');return s.sheet.tags.length&&(et.before=s.sheet.tags[0]),nt!==null&&(tt=!0,nt.setAttribute("data-emotion",_e),et.hydrate([nt])),$.current=[et,tt],function(){et.flush()}},[s]),useInsertionEffectWithLayoutFallback(function(){var _e=$.current,et=_e[0],tt=_e[1];if(tt){_e[1]=!1;return}if(j.next!==void 0&&insertStyles(s,j.next,!0),et.tags.length){var nt=et.tags[et.tags.length-1].nextElementSibling;et.before=nt,et.flush()}s.insert("",j,et,!1)},[s,j.name]),null}),testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function(s){return s!=="theme"},getDefaultShouldForwardProp=function(s){return typeof s=="string"&&s.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(s,_,j){var $;if(_){var _e=_.shouldForwardProp;$=s.__emotion_forwardProp&&_e?function(et){return s.__emotion_forwardProp(et)&&_e(et)}:_e}return typeof $!="function"&&j&&($=s.__emotion_forwardProp),$},Insertion=function(s){var _=s.cache,j=s.serialized,$=s.isStringTag;return registerStyles(_,j,$),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(_,j,$)}),null},createStyled$1=function o(s,_){var j=s.__emotion_real===s,$=j&&s.__emotion_base||s,_e,et;_!==void 0&&(_e=_.label,et=_.target);var tt=composeShouldForwardProps(s,_,j),nt=tt||getDefaultShouldForwardProp($),rt=!nt("as");return function(){var it=arguments,st=j&&s.__emotion_styles!==void 0?s.__emotion_styles.slice(0):[];if(_e!==void 0&&st.push("label:"+_e+";"),it[0]==null||it[0].raw===void 0)st.push.apply(st,it);else{st.push(it[0][0]);for(var ut=it.length,Ft=1;Fts(isEmpty$2($)?_:$):s})}/** @license MUI v5.11.0 + */var b=typeof Symbol=="function"&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(o){if(typeof o=="object"&&o!==null){var s=o.$$typeof;switch(s){case c:switch(o=o.type,o){case l:case m:case e:case g:case f:case p:return o;default:switch(o=o&&o.$$typeof,o){case k:case n:case t:case r$1:case h:return o;default:return s}}case d:return s}}}function A(o){return z(o)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r$1;reactIs_production_min.Portal=d;reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(o){return A(o)||z(o)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(o){return z(o)===k};reactIs_production_min.isContextProvider=function(o){return z(o)===h};reactIs_production_min.isElement=function(o){return typeof o=="object"&&o!==null&&o.$$typeof===c};reactIs_production_min.isForwardRef=function(o){return z(o)===n};reactIs_production_min.isFragment=function(o){return z(o)===e};reactIs_production_min.isLazy=function(o){return z(o)===t};reactIs_production_min.isMemo=function(o){return z(o)===r$1};reactIs_production_min.isPortal=function(o){return z(o)===d};reactIs_production_min.isProfiler=function(o){return z(o)===g};reactIs_production_min.isStrictMode=function(o){return z(o)===f};reactIs_production_min.isSuspense=function(o){return z(o)===p};reactIs_production_min.isValidElementType=function(o){return typeof o=="string"||typeof o=="function"||o===e||o===m||o===g||o===f||o===p||o===q||typeof o=="object"&&o!==null&&(o.$$typeof===t||o.$$typeof===r$1||o.$$typeof===h||o.$$typeof===k||o.$$typeof===n||o.$$typeof===w||o.$$typeof===x||o.$$typeof===y||o.$$typeof===v)};reactIs_production_min.typeOf=z;(function(o){o.exports=reactIs_production_min})(reactIs$1);var reactIs=reactIsExports,FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var isBrowser$1=!0;function getRegisteredStyles(o,s,_){var j="";return _.split(" ").forEach(function($){o[$]!==void 0?s.push(o[$]+";"):j+=$+" "}),j}var registerStyles=function(s,_,j){var $=s.key+"-"+_.name;(j===!1||isBrowser$1===!1)&&s.registered[$]===void 0&&(s.registered[$]=_.styles)},insertStyles=function(s,_,j){registerStyles(s,_,j);var $=s.key+"-"+_.name;if(s.inserted[_.name]===void 0){var _e=_;do s.insert(_===_e?"."+$:"",_e,s.sheet,!0),_e=_e.next;while(_e!==void 0)}};function murmur2(o){for(var s=0,_,j=0,$=o.length;$>=4;++j,$-=4)_=o.charCodeAt(j)&255|(o.charCodeAt(++j)&255)<<8|(o.charCodeAt(++j)&255)<<16|(o.charCodeAt(++j)&255)<<24,_=(_&65535)*1540483477+((_>>>16)*59797<<16),_^=_>>>24,s=(_&65535)*1540483477+((_>>>16)*59797<<16)^(s&65535)*1540483477+((s>>>16)*59797<<16);switch($){case 3:s^=(o.charCodeAt(j+2)&255)<<16;case 2:s^=(o.charCodeAt(j+1)&255)<<8;case 1:s^=o.charCodeAt(j)&255,s=(s&65535)*1540483477+((s>>>16)*59797<<16)}return s^=s>>>13,s=(s&65535)*1540483477+((s>>>16)*59797<<16),((s^s>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount: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,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(s){return s.charCodeAt(1)===45},isProcessableValue=function(s){return s!=null&&typeof s!="boolean"},processStyleName=memoize$1(function(o){return isCustomProperty(o)?o:o.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(s,_){switch(s){case"animation":case"animationName":if(typeof _=="string")return _.replace(animationRegex,function(j,$,_e){return cursor={name:$,styles:_e,next:cursor},$})}return unitlessKeys[s]!==1&&!isCustomProperty(s)&&typeof _=="number"&&_!==0?_+"px":_},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(o,s,_){if(_==null)return"";if(_.__emotion_styles!==void 0)return _;switch(typeof _){case"boolean":return"";case"object":{if(_.anim===1)return cursor={name:_.name,styles:_.styles,next:cursor},_.name;if(_.styles!==void 0){var j=_.next;if(j!==void 0)for(;j!==void 0;)cursor={name:j.name,styles:j.styles,next:cursor},j=j.next;var $=_.styles+";";return $}return createStringFromObject(o,s,_)}case"function":{if(o!==void 0){var _e=cursor,et=_(o);return cursor=_e,handleInterpolation(o,s,et)}break}}if(s==null)return _;var tt=s[_];return tt!==void 0?tt:_}function createStringFromObject(o,s,_){var j="";if(Array.isArray(_))for(var $=0;$<_.length;$++)j+=handleInterpolation(o,s,_[$])+";";else for(var _e in _){var et=_[_e];if(typeof et!="object")s!=null&&s[et]!==void 0?j+=_e+"{"+s[et]+"}":isProcessableValue(et)&&(j+=processStyleName(_e)+":"+processStyleValue(_e,et)+";");else if(Array.isArray(et)&&typeof et[0]=="string"&&(s==null||s[et[0]]===void 0))for(var tt=0;tt{s[_]=deepClone(o[_])}),s}function deepmerge(o,s,_={clone:!0}){const j=_.clone?_extends$1({},o):o;return isPlainObject(o)&&isPlainObject(s)&&Object.keys(s).forEach($=>{$!=="__proto__"&&(isPlainObject(s[$])&&$ in o&&isPlainObject(o[$])?j[$]=deepmerge(o[$],s[$],_):_.clone?j[$]=isPlainObject(s[$])?deepClone(s[$]):s[$]:j[$]=s[$])}),j}function formatMuiErrorMessage(o){let s="https://mui.com/production-error/?code="+o;for(let _=1;_{if(j.toString().match(/^(components|slots)$/))_[j]=_extends$1({},o[j],_[j]);else if(j.toString().match(/^(componentsProps|slotProps)$/)){const $=o[j]||{},_e=s[j];_[j]={},!_e||!Object.keys(_e)?_[j]=$:!$||!Object.keys($)?_[j]=_e:(_[j]=_extends$1({},_e),Object.keys($).forEach(et=>{_[j][et]=resolveProps($[et],_e[et])}))}else _[j]===void 0&&(_[j]=o[j])}),_}function composeClasses(o,s,_){const j={};return Object.keys(o).forEach($=>{j[$]=o[$].reduce((_e,et)=>(et&&(_e.push(s(et)),_&&_[et]&&_e.push(_[et])),_e),[]).join(" ")}),j}const defaultGenerator=o=>o,createClassNameGenerator=()=>{let o=defaultGenerator;return{configure(s){o=s},generate(s){return o(s)},reset(){o=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),ClassNameGenerator$1=ClassNameGenerator,globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function generateUtilityClass(o,s,_="Mui"){const j=globalStateClassesMapping[s];return j?`${_}-${j}`:`${ClassNameGenerator$1.generate(o)}-${s}`}function generateUtilityClasses(o,s,_="Mui"){const j={};return s.forEach($=>{j[$]=generateUtilityClass(o,$,_)}),j}var 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|download|draggable|encType|enterKeyHint|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(o){return reactPropsRegex.test(o)||o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o.charCodeAt(2)<91}),Global=withEmotionCache(function(o,s){var _=o.styles,j=serializeStyles([_],void 0,reactExports.useContext(ThemeContext$2)),$=reactExports.useRef();return useInsertionEffectWithLayoutFallback(function(){var _e=s.key+"-globalThis",et=new s.sheet.constructor({key:_e,nonce:s.sheet.nonce,container:s.sheet.container,speedy:s.sheet.isSpeedy}),tt=!1,nt=document.querySelector('style[data-emotion="'+_e+" "+j.name+'"]');return s.sheet.tags.length&&(et.before=s.sheet.tags[0]),nt!==null&&(tt=!0,nt.setAttribute("data-emotion",_e),et.hydrate([nt])),$.current=[et,tt],function(){et.flush()}},[s]),useInsertionEffectWithLayoutFallback(function(){var _e=$.current,et=_e[0],tt=_e[1];if(tt){_e[1]=!1;return}if(j.next!==void 0&&insertStyles(s,j.next,!0),et.tags.length){var nt=et.tags[et.tags.length-1].nextElementSibling;et.before=nt,et.flush()}s.insert("",j,et,!1)},[s,j.name]),null}),testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function(s){return s!=="theme"},getDefaultShouldForwardProp=function(s){return typeof s=="string"&&s.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(s,_,j){var $;if(_){var _e=_.shouldForwardProp;$=s.__emotion_forwardProp&&_e?function(et){return s.__emotion_forwardProp(et)&&_e(et)}:_e}return typeof $!="function"&&j&&($=s.__emotion_forwardProp),$},Insertion=function(s){var _=s.cache,j=s.serialized,$=s.isStringTag;return registerStyles(_,j,$),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(_,j,$)}),null},createStyled$1=function o(s,_){var j=s.__emotion_real===s,$=j&&s.__emotion_base||s,_e,et;_!==void 0&&(_e=_.label,et=_.target);var tt=composeShouldForwardProps(s,_,j),nt=tt||getDefaultShouldForwardProp($),rt=!nt("as");return function(){var it=arguments,st=j&&s.__emotion_styles!==void 0?s.__emotion_styles.slice(0):[];if(_e!==void 0&&st.push("label:"+_e+";"),it[0]==null||it[0].raw===void 0)st.push.apply(st,it);else{st.push(it[0][0]);for(var ut=it.length,Ft=1;Fts(isEmpty$2($)?_:$):s})}/** @license MUI v5.11.0 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function styled$2(o,s){return emStyled(o,s)}const internal_processStyles=(o,s)=>{Array.isArray(o.__emotion_styles)&&(o.__emotion_styles=s(o.__emotion_styles))};function merge$2(o,s){return s?deepmerge(o,s,{clone:!1}):o}const values={xs:0,sm:600,md:900,lg:1200,xl:1536},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:o=>`@media (min-width:${values[o]}px)`};function handleBreakpoints(o,s,_){const j=o.theme||{};if(Array.isArray(s)){const _e=j.breakpoints||defaultBreakpoints;return s.reduce((et,tt,nt)=>(et[_e.up(_e.keys[nt])]=_(s[nt]),et),{})}if(typeof s=="object"){const _e=j.breakpoints||defaultBreakpoints;return Object.keys(s).reduce((et,tt)=>{if(Object.keys(_e.values||values).indexOf(tt)!==-1){const nt=_e.up(tt);et[nt]=_(s[tt],tt)}else{const nt=tt;et[nt]=s[nt]}return et},{})}return _(s)}function createEmptyBreakpointObject(o={}){var s;return((s=o.keys)==null?void 0:s.reduce((j,$)=>{const _e=o.up($);return j[_e]={},j},{}))||{}}function removeUnusedBreakpoints(o,s){return o.reduce((_,j)=>{const $=_[j];return(!$||Object.keys($).length===0)&&delete _[j],_},s)}function getPath(o,s,_=!0){if(!s||typeof s!="string")return null;if(o&&o.vars&&_){const j=`vars.${s}`.split(".").reduce(($,_e)=>$&&$[_e]?$[_e]:null,o);if(j!=null)return j}return s.split(".").reduce((j,$)=>j&&j[$]!=null?j[$]:null,o)}function getStyleValue(o,s,_,j=_){let $;return typeof o=="function"?$=o(_):Array.isArray(o)?$=o[_]||j:$=getPath(o,_)||j,s&&($=s($,j,o)),$}function style$1(o){const{prop:s,cssProperty:_=o.prop,themeKey:j,transform:$}=o,_e=et=>{if(et[s]==null)return null;const tt=et[s],nt=et.theme,rt=getPath(nt,j)||{};return handleBreakpoints(et,tt,st=>{let ut=getStyleValue(rt,$,st);return st===ut&&typeof st=="string"&&(ut=getStyleValue(rt,$,`${s}${st==="default"?"":capitalize(st)}`,st)),_===!1?ut:{[_]:ut}})};return _e.propTypes={},_e.filterProps=[s],_e}function compose(...o){const s=o.reduce((j,$)=>($.filterProps.forEach(_e=>{j[_e]=$}),j),{}),_=j=>Object.keys(j).reduce(($,_e)=>s[_e]?merge$2($,s[_e](j)):$,{});return _.propTypes={},_.filterProps=o.reduce((j,$)=>j.concat($.filterProps),[]),_}function memoize(o){const s={};return _=>(s[_]===void 0&&(s[_]=o(_)),s[_])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(o=>{if(o.length>2)if(aliases[o])o=aliases[o];else return[o];const[s,_]=o.split(""),j=properties[s],$=directions[_]||"";return Array.isArray($)?$.map(_e=>j+_e):[j+$]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(o,s,_,j){var $;const _e=($=getPath(o,s,!1))!=null?$:_;return typeof _e=="number"?et=>typeof et=="string"?et:_e*et:Array.isArray(_e)?et=>typeof et=="string"?et:_e[et]:typeof _e=="function"?_e:()=>{}}function createUnarySpacing(o){return createUnaryUnit(o,"spacing",8)}function getValue(o,s){if(typeof s=="string"||s==null)return s;const _=Math.abs(s),j=o(_);return s>=0?j:typeof j=="number"?-j:`-${j}`}function getStyleFromPropValue(o,s){return _=>o.reduce((j,$)=>(j[$]=getValue(s,_),j),{})}function resolveCssProperty(o,s,_,j){if(s.indexOf(_)===-1)return null;const $=getCssProperties(_),_e=getStyleFromPropValue($,j),et=o[_];return handleBreakpoints(o,et,_e)}function style(o,s){const _=createUnarySpacing(o.theme);return Object.keys(o).map(j=>resolveCssProperty(o,s,j,_)).reduce(merge$2,{})}function margin(o){return style(o,marginKeys)}margin.propTypes={};margin.filterProps=marginKeys;function padding(o){return style(o,paddingKeys)}padding.propTypes={};padding.filterProps=paddingKeys;function borderTransform(o){return typeof o!="number"?o:`${o}px solid`}const border=style$1({prop:"border",themeKey:"borders",transform:borderTransform}),borderTop=style$1({prop:"borderTop",themeKey:"borders",transform:borderTransform}),borderRight=style$1({prop:"borderRight",themeKey:"borders",transform:borderTransform}),borderBottom=style$1({prop:"borderBottom",themeKey:"borders",transform:borderTransform}),borderLeft=style$1({prop:"borderLeft",themeKey:"borders",transform:borderTransform}),borderColor=style$1({prop:"borderColor",themeKey:"palette"}),borderTopColor=style$1({prop:"borderTopColor",themeKey:"palette"}),borderRightColor=style$1({prop:"borderRightColor",themeKey:"palette"}),borderBottomColor=style$1({prop:"borderBottomColor",themeKey:"palette"}),borderLeftColor=style$1({prop:"borderLeftColor",themeKey:"palette"}),borderRadius=o=>{if(o.borderRadius!==void 0&&o.borderRadius!==null){const s=createUnaryUnit(o.theme,"shape.borderRadius",4),_=j=>({borderRadius:getValue(s,j)});return handleBreakpoints(o,o.borderRadius,_)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius);const gap=o=>{if(o.gap!==void 0&&o.gap!==null){const s=createUnaryUnit(o.theme,"spacing",8),_=j=>({gap:getValue(s,j)});return handleBreakpoints(o,o.gap,_)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=o=>{if(o.columnGap!==void 0&&o.columnGap!==null){const s=createUnaryUnit(o.theme,"spacing",8),_=j=>({columnGap:getValue(s,j)});return handleBreakpoints(o,o.columnGap,_)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=o=>{if(o.rowGap!==void 0&&o.rowGap!==null){const s=createUnaryUnit(o.theme,"spacing",8),_=j=>({rowGap:getValue(s,j)});return handleBreakpoints(o,o.rowGap,_)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$1({prop:"gridColumn"}),gridRow=style$1({prop:"gridRow"}),gridAutoFlow=style$1({prop:"gridAutoFlow"}),gridAutoColumns=style$1({prop:"gridAutoColumns"}),gridAutoRows=style$1({prop:"gridAutoRows"}),gridTemplateColumns=style$1({prop:"gridTemplateColumns"}),gridTemplateRows=style$1({prop:"gridTemplateRows"}),gridTemplateAreas=style$1({prop:"gridTemplateAreas"}),gridArea=style$1({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(o,s){return s==="grey"?s:o}const color$1=style$1({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$1({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$1({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color$1,bgcolor,backgroundColor);function sizingTransform(o){return o<=1&&o!==0?`${o*100}%`:o}const width=style$1({prop:"width",transform:sizingTransform}),maxWidth=o=>{if(o.maxWidth!==void 0&&o.maxWidth!==null){const s=_=>{var j,$,_e;return{maxWidth:((j=o.theme)==null||($=j.breakpoints)==null||(_e=$.values)==null?void 0:_e[_])||values[_]||sizingTransform(_)}};return handleBreakpoints(o,o.maxWidth,s)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$1({prop:"minWidth",transform:sizingTransform}),height=style$1({prop:"height",transform:sizingTransform}),maxHeight=style$1({prop:"maxHeight",transform:sizingTransform}),minHeight=style$1({prop:"minHeight",transform:sizingTransform});style$1({prop:"size",cssProperty:"width",transform:sizingTransform});style$1({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$1({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:o=>({"@media print":{display:o}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...o){const s=o.reduce((j,$)=>j.concat(Object.keys($)),[]),_=new Set(s);return o.every(j=>_.size===Object.keys(j).length)}function callIfFn(o,s){return typeof o=="function"?o(s):o}function unstable_createStyleFunctionSx(){function o(_,j,$,_e){const et={[_]:j,theme:$},tt=_e[_];if(!tt)return{[_]:j};const{cssProperty:nt=_,themeKey:rt,transform:it,style:st}=tt;if(j==null)return null;const ut=getPath($,rt)||{};return st?st(et):handleBreakpoints(et,j,dt=>{let gt=getStyleValue(ut,it,dt);return dt===gt&&typeof dt=="string"&&(gt=getStyleValue(ut,it,`${_}${dt==="default"?"":capitalize(dt)}`,dt)),nt===!1?gt:{[nt]:gt}})}function s(_){var j;const{sx:$,theme:_e={}}=_||{};if(!$)return null;const et=(j=_e.unstable_sxConfig)!=null?j:defaultSxConfig$1;function tt(nt){let rt=nt;if(typeof nt=="function")rt=nt(_e);else if(typeof nt!="object")return nt;if(!rt)return null;const it=createEmptyBreakpointObject(_e.breakpoints),st=Object.keys(it);let ut=it;return Object.keys(rt).forEach(Ft=>{const dt=callIfFn(rt[Ft],_e);if(dt!=null)if(typeof dt=="object")if(et[Ft])ut=merge$2(ut,o(Ft,dt,_e,et));else{const gt=handleBreakpoints({theme:_e},dt,Ut=>({[Ft]:Ut}));objectsHaveSameKeys(gt,dt)?ut[Ft]=s({sx:dt,theme:_e}):ut=merge$2(ut,gt)}else ut=merge$2(ut,o(Ft,dt,_e,et))}),removeUnusedBreakpoints(st,ut)}return Array.isArray($)?$.map(tt):tt($)}return s}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];const styleFunctionSx$1=styleFunctionSx;function _objectWithoutPropertiesLoose$1(o,s){if(o==null)return{};var _={},j=Object.keys(o),$,_e;for(_e=0;_e=0)&&(_[$]=o[$]);return _}function r(o){var s,_,j="";if(typeof o=="string"||typeof o=="number")j+=o;else if(typeof o=="object")if(Array.isArray(o))for(s=0;s{const s=Object.keys(o).map(_=>({key:_,val:o[_]}))||[];return s.sort((_,j)=>_.val-j.val),s.reduce((_,j)=>_extends$1({},_,{[j.key]:j.val}),{})};function createBreakpoints(o){const{values:s={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:_="px",step:j=5}=o,$=_objectWithoutPropertiesLoose$1(o,_excluded$8),_e=sortBreakpointsValues(s),et=Object.keys(_e);function tt(ut){return`@media (min-width:${typeof s[ut]=="number"?s[ut]:ut}${_})`}function nt(ut){return`@media (max-width:${(typeof s[ut]=="number"?s[ut]:ut)-j/100}${_})`}function rt(ut,Ft){const dt=et.indexOf(Ft);return`@media (min-width:${typeof s[ut]=="number"?s[ut]:ut}${_}) and (max-width:${(dt!==-1&&typeof s[et[dt]]=="number"?s[et[dt]]:Ft)-j/100}${_})`}function it(ut){return et.indexOf(ut)+1(j.length===0?[1]:j).map(_e=>{const et=s(_e);return typeof et=="number"?`${et}px`:et}).join(" ");return _.mui=!0,_}const _excluded$7=["breakpoints","palette","spacing","shape"];function createTheme$1(o={},...s){const{breakpoints:_={},palette:j={},spacing:$,shape:_e={}}=o,et=_objectWithoutPropertiesLoose$1(o,_excluded$7),tt=createBreakpoints(_),nt=createSpacing($);let rt=deepmerge({breakpoints:tt,direction:"ltr",components:{},palette:_extends$1({mode:"light"},j),spacing:nt,shape:_extends$1({},shape$1,_e)},et);return rt=s.reduce((it,st)=>deepmerge(it,st),rt),rt.unstable_sxConfig=_extends$1({},defaultSxConfig$1,et==null?void 0:et.unstable_sxConfig),rt.unstable_sx=function(st){return styleFunctionSx$1({sx:st,theme:this})},rt}const ThemeContext=reactExports.createContext(null),ThemeContext$1=ThemeContext;function useTheme$2(){return reactExports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(o,s){return typeof s=="function"?s(o):_extends$1({},o,s)}function ThemeProvider$1(o){const{children:s,theme:_}=o,j=useTheme$2(),$=reactExports.useMemo(()=>{const _e=j===null?_:mergeOuterLocalTheme(j,_);return _e!=null&&(_e[nested]=j!==null),_e},[_,j]);return jsx$1(ThemeContext$1.Provider,{value:$,children:s})}function isObjectEmpty(o){return Object.keys(o).length===0}function useTheme$1(o=null){const s=useTheme$2();return!s||isObjectEmpty(s)?o:s}const systemDefaultTheme$1=createTheme$1();function useTheme(o=systemDefaultTheme$1){return useTheme$1(o)}const _excluded$6=["variant"];function isEmpty$1(o){return o.length===0}function propsToClassKey(o){const{variant:s}=o,_=_objectWithoutPropertiesLoose$1(o,_excluded$6);let j=s||"";return Object.keys(_).sort().forEach($=>{$==="color"?j+=isEmpty$1(j)?o[$]:capitalize(o[$]):j+=`${isEmpty$1(j)?$:capitalize($)}${capitalize(o[$].toString())}`}),j}const _excluded$5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],_excluded2=["theme"],_excluded3=["theme"];function isEmpty(o){return Object.keys(o).length===0}function isStringTag(o){return typeof o=="string"&&o.charCodeAt(0)>96}const getStyleOverrides=(o,s)=>s.components&&s.components[o]&&s.components[o].styleOverrides?s.components[o].styleOverrides:null,getVariantStyles=(o,s)=>{let _=[];s&&s.components&&s.components[o]&&s.components[o].variants&&(_=s.components[o].variants);const j={};return _.forEach($=>{const _e=propsToClassKey($.props);j[_e]=$.style}),j},variantsResolver=(o,s,_,j)=>{var $,_e;const{ownerState:et={}}=o,tt=[],nt=_==null||($=_.components)==null||(_e=$[j])==null?void 0:_e.variants;return nt&&nt.forEach(rt=>{let it=!0;Object.keys(rt.props).forEach(st=>{et[st]!==rt.props[st]&&o[st]!==rt.props[st]&&(it=!1)}),it&&tt.push(s[propsToClassKey(rt.props)])}),tt};function shouldForwardProp(o){return o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"}const systemDefaultTheme=createTheme$1();function createStyled(o={}){const{defaultTheme:s=systemDefaultTheme,rootShouldForwardProp:_=shouldForwardProp,slotShouldForwardProp:j=shouldForwardProp}=o,$=_e=>{const et=isEmpty(_e.theme)?s:_e.theme;return styleFunctionSx$1(_extends$1({},_e,{theme:et}))};return $.__mui_systemSx=!0,(_e,et={})=>{internal_processStyles(_e,pt=>pt.filter(Rt=>!(Rt!=null&&Rt.__mui_systemSx)));const{name:tt,slot:nt,skipVariantsResolver:rt,skipSx:it,overridesResolver:st}=et,ut=_objectWithoutPropertiesLoose$1(et,_excluded$5),Ft=rt!==void 0?rt:nt&&nt!=="Root"||!1,dt=it||!1;let gt,Ut=shouldForwardProp;nt==="Root"?Ut=_:nt?Ut=j:isStringTag(_e)&&(Ut=void 0);const ht=styled$2(_e,_extends$1({shouldForwardProp:Ut,label:gt},ut)),ft=(pt,...Rt)=>{const Qt=Rt?Rt.map(Bt=>typeof Bt=="function"&&Bt.__emotion_real!==Bt?jt=>{let{theme:vt}=jt,mt=_objectWithoutPropertiesLoose$1(jt,_excluded2);return Bt(_extends$1({theme:isEmpty(vt)?s:vt},mt))}:Bt):[];let Nt=pt;tt&&st&&Qt.push(Bt=>{const jt=isEmpty(Bt.theme)?s:Bt.theme,vt=getStyleOverrides(tt,jt);if(vt){const mt={};return Object.entries(vt).forEach(([yt,Vt])=>{mt[yt]=typeof Vt=="function"?Vt(_extends$1({},Bt,{theme:jt})):Vt}),st(Bt,mt)}return null}),tt&&!Ft&&Qt.push(Bt=>{const jt=isEmpty(Bt.theme)?s:Bt.theme;return variantsResolver(Bt,getVariantStyles(tt,jt),jt,tt)}),dt||Qt.push($);const At=Qt.length-Rt.length;if(Array.isArray(pt)&&At>0){const Bt=new Array(At).fill("");Nt=[...pt,...Bt],Nt.raw=[...pt.raw,...Bt]}else typeof pt=="function"&&pt.__emotion_real!==pt&&(Nt=Bt=>{let{theme:jt}=Bt,vt=_objectWithoutPropertiesLoose$1(Bt,_excluded3);return pt(_extends$1({theme:isEmpty(jt)?s:jt},vt))});return ht(Nt,...Qt)};return ht.withConfig&&(ft.withConfig=ht.withConfig),ft}}function getThemeProps(o){const{theme:s,name:_,props:j}=o;return!s||!s.components||!s.components[_]||!s.components[_].defaultProps?j:resolveProps(s.components[_].defaultProps,j)}function useThemeProps$1({props:o,name:s,defaultTheme:_}){const j=useTheme(_);return getThemeProps({theme:j,name:s,props:o})}function clamp(o,s=0,_=1){return Math.min(Math.max(s,o),_)}function hexToRgb(o){o=o.slice(1);const s=new RegExp(`.{1,${o.length>=6?2:1}}`,"g");let _=o.match(s);return _&&_[0].length===1&&(_=_.map(j=>j+j)),_?`rgb${_.length===4?"a":""}(${_.map((j,$)=>$<3?parseInt(j,16):Math.round(parseInt(j,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(o){if(o.type)return o;if(o.charAt(0)==="#")return decomposeColor(hexToRgb(o));const s=o.indexOf("("),_=o.substring(0,s);if(["rgb","rgba","hsl","hsla","color"].indexOf(_)===-1)throw new Error(formatMuiErrorMessage(9,o));let j=o.substring(s+1,o.length-1),$;if(_==="color"){if(j=j.split(" "),$=j.shift(),j.length===4&&j[3].charAt(0)==="/"&&(j[3]=j[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf($)===-1)throw new Error(formatMuiErrorMessage(10,$))}else j=j.split(",");return j=j.map(_e=>parseFloat(_e)),{type:_,values:j,colorSpace:$}}function recomposeColor(o){const{type:s,colorSpace:_}=o;let{values:j}=o;return s.indexOf("rgb")!==-1?j=j.map(($,_e)=>_e<3?parseInt($,10):$):s.indexOf("hsl")!==-1&&(j[1]=`${j[1]}%`,j[2]=`${j[2]}%`),s.indexOf("color")!==-1?j=`${_} ${j.join(" ")}`:j=`${j.join(", ")}`,`${s}(${j})`}function hslToRgb(o){o=decomposeColor(o);const{values:s}=o,_=s[0],j=s[1]/100,$=s[2]/100,_e=j*Math.min($,1-$),et=(rt,it=(rt+_/30)%12)=>$-_e*Math.max(Math.min(it-3,9-it,1),-1);let tt="rgb";const nt=[Math.round(et(0)*255),Math.round(et(8)*255),Math.round(et(4)*255)];return o.type==="hsla"&&(tt+="a",nt.push(s[3])),recomposeColor({type:tt,values:nt})}function getLuminance(o){o=decomposeColor(o);let s=o.type==="hsl"||o.type==="hsla"?decomposeColor(hslToRgb(o)).values:o.values;return s=s.map(_=>(o.type!=="color"&&(_/=255),_<=.03928?_/12.92:((_+.055)/1.055)**2.4)),Number((.2126*s[0]+.7152*s[1]+.0722*s[2]).toFixed(3))}function getContrastRatio(o,s){const _=getLuminance(o),j=getLuminance(s);return(Math.max(_,j)+.05)/(Math.min(_,j)+.05)}function darken(o,s){if(o=decomposeColor(o),s=clamp(s),o.type.indexOf("hsl")!==-1)o.values[2]*=1-s;else if(o.type.indexOf("rgb")!==-1||o.type.indexOf("color")!==-1)for(let _=0;_<3;_+=1)o.values[_]*=1-s;return recomposeColor(o)}function lighten(o,s){if(o=decomposeColor(o),s=clamp(s),o.type.indexOf("hsl")!==-1)o.values[2]+=(100-o.values[2])*s;else if(o.type.indexOf("rgb")!==-1)for(let _=0;_<3;_+=1)o.values[_]+=(255-o.values[_])*s;else if(o.type.indexOf("color")!==-1)for(let _=0;_<3;_+=1)o.values[_]+=(1-o.values[_])*s;return recomposeColor(o)}const EMPTY_THEME={};function InnerThemeProvider(o){const s=useTheme();return jsx$1(ThemeContext$2.Provider,{value:typeof s=="object"?s:EMPTY_THEME,children:o.children})}function ThemeProvider(o){const{children:s,theme:_}=o;return jsx$1(ThemeProvider$1,{theme:_,children:jsx$1(InnerThemeProvider,{children:s})})}function createMixins(o,s){return _extends$1({toolbar:{minHeight:56,[o.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[o.up("sm")]:{minHeight:64}}},s)}const common$1={black:"#000",white:"#fff"},common$2=common$1,grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},grey$1=grey,purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},purple$1=purple,red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},red$1=red,orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},orange$1=orange,blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},blue$1=blue,lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},lightBlue$1=lightBlue,green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},green$1=green,_excluded$4=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$2.white,default:common$2.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$2.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$2.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(o,s,_,j){const $=j.light||j,_e=j.dark||j*1.5;o[s]||(o.hasOwnProperty(_)?o[s]=o[_]:s==="light"?o.light=lighten(o.main,$):s==="dark"&&(o.dark=darken(o.main,_e)))}function getDefaultPrimary(o="light"){return o==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary(o="light"){return o==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError(o="light"){return o==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo(o="light"){return o==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess(o="light"){return o==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning(o="light"){return o==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette(o){const{mode:s="light",contrastThreshold:_=3,tonalOffset:j=.2}=o,$=_objectWithoutPropertiesLoose$1(o,_excluded$4),_e=o.primary||getDefaultPrimary(s),et=o.secondary||getDefaultSecondary(s),tt=o.error||getDefaultError(s),nt=o.info||getDefaultInfo(s),rt=o.success||getDefaultSuccess(s),it=o.warning||getDefaultWarning(s);function st(gt){return getContrastRatio(gt,dark.text.primary)>=_?dark.text.primary:light.text.primary}const ut=({color:gt,name:Ut,mainShade:ht=500,lightShade:ft=300,darkShade:pt=700})=>{if(gt=_extends$1({},gt),!gt.main&>[ht]&&(gt.main=gt[ht]),!gt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,Ut?` (${Ut})`:"",ht));if(typeof gt.main!="string")throw new Error(formatMuiErrorMessage(12,Ut?` (${Ut})`:"",JSON.stringify(gt.main)));return addLightOrDark(gt,"light",ft,j),addLightOrDark(gt,"dark",pt,j),gt.contrastText||(gt.contrastText=st(gt.main)),gt},Ft={dark,light};return deepmerge(_extends$1({common:_extends$1({},common$2),mode:s,primary:ut({color:_e,name:"primary"}),secondary:ut({color:et,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:ut({color:tt,name:"error"}),warning:ut({color:it,name:"warning"}),info:ut({color:nt,name:"info"}),success:ut({color:rt,name:"success"}),grey:grey$1,contrastThreshold:_,getContrastText:st,augmentColor:ut,tonalOffset:j},Ft[s]),$)}const _excluded$3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round$1(o){return Math.round(o*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(o,s){const _=typeof s=="function"?s(o):s,{fontFamily:j=defaultFontFamily,fontSize:$=14,fontWeightLight:_e=300,fontWeightRegular:et=400,fontWeightMedium:tt=500,fontWeightBold:nt=700,htmlFontSize:rt=16,allVariants:it,pxToRem:st}=_,ut=_objectWithoutPropertiesLoose$1(_,_excluded$3),Ft=$/14,dt=st||(ht=>`${ht/rt*Ft}rem`),gt=(ht,ft,pt,Rt,Qt)=>_extends$1({fontFamily:j,fontWeight:ht,fontSize:dt(ft),lineHeight:pt},j===defaultFontFamily?{letterSpacing:`${round$1(Rt/ft)}em`}:{},Qt,it),Ut={h1:gt(_e,96,1.167,-1.5),h2:gt(_e,60,1.2,-.5),h3:gt(et,48,1.167,0),h4:gt(et,34,1.235,.25),h5:gt(et,24,1.334,0),h6:gt(tt,20,1.6,.15),subtitle1:gt(et,16,1.75,.15),subtitle2:gt(tt,14,1.57,.1),body1:gt(et,16,1.5,.15),body2:gt(et,14,1.43,.15),button:gt(tt,14,1.75,.4,caseAllCaps),caption:gt(et,12,1.66,.4),overline:gt(et,12,2.66,1,caseAllCaps)};return deepmerge(_extends$1({htmlFontSize:rt,pxToRem:dt,fontFamily:j,fontSize:$,fontWeightLight:_e,fontWeightRegular:et,fontWeightMedium:tt,fontWeightBold:nt},Ut),ut,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...o){return[`${o[0]}px ${o[1]}px ${o[2]}px ${o[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${o[4]}px ${o[5]}px ${o[6]}px ${o[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${o[8]}px ${o[9]}px ${o[10]}px ${o[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],shadows$1=shadows,_excluded$2=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration$3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(o){return`${Math.round(o)}ms`}function getAutoHeightDuration(o){if(!o)return 0;const s=o/36;return Math.round((4+15*s**.25+s/5)*10)}function createTransitions(o){const s=_extends$1({},easing,o.easing),_=_extends$1({},duration$3,o.duration);return _extends$1({getAutoHeightDuration,create:($=["all"],_e={})=>{const{duration:et=_.standard,easing:tt=s.easeInOut,delay:nt=0}=_e;return _objectWithoutPropertiesLoose$1(_e,_excluded$2),(Array.isArray($)?$:[$]).map(rt=>`${rt} ${typeof et=="string"?et:formatMs(et)} ${tt} ${typeof nt=="string"?nt:formatMs(nt)}`).join(",")}},o,{easing:s,duration:_})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zIndex$1=zIndex,_excluded$1=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(o={},...s){const{mixins:_={},palette:j={},transitions:$={},typography:_e={}}=o,et=_objectWithoutPropertiesLoose$1(o,_excluded$1);if(o.vars)throw new Error(formatMuiErrorMessage(18));const tt=createPalette(j),nt=createTheme$1(o);let rt=deepmerge(nt,{mixins:createMixins(nt.breakpoints,_),palette:tt,shadows:shadows$1.slice(),typography:createTypography(tt,_e),transitions:createTransitions($),zIndex:_extends$1({},zIndex$1)});return rt=deepmerge(rt,et),rt=s.reduce((it,st)=>deepmerge(it,st),rt),rt.unstable_sxConfig=_extends$1({},defaultSxConfig$1,et==null?void 0:et.unstable_sxConfig),rt.unstable_sx=function(st){return styleFunctionSx$1({sx:st,theme:this})},rt}const defaultTheme=createTheme(),defaultTheme$1=defaultTheme;function useThemeProps({props:o,name:s}){return useThemeProps$1({props:o,name:s,defaultTheme:defaultTheme$1})}function GlobalStyles(o){return jsx$1(GlobalStyles$1,_extends$1({},o,{defaultTheme:defaultTheme$1}))}const html=(o,s)=>_extends$1({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},s&&!o.vars&&{colorScheme:o.palette.mode}),body=o=>_extends$1({color:(o.vars||o).palette.text.primary},o.typography.body1,{backgroundColor:(o.vars||o).palette.background.default,"@media print":{backgroundColor:(o.vars||o).palette.common.white}}),styles=(o,s=!1)=>{var _,j;const $={};s&&o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([tt,nt])=>{var rt;$[o.getColorSchemeSelector(tt).replace(/\s*&/,"")]={colorScheme:(rt=nt.palette)==null?void 0:rt.mode}});let _e=_extends$1({html:html(o,s),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:o.typography.fontWeightBold},body:_extends$1({margin:0},body(o),{"&::backdrop":{backgroundColor:(o.vars||o).palette.background.default}})},$);const et=(_=o.components)==null||(j=_.MuiCssBaseline)==null?void 0:j.styleOverrides;return et&&(_e=[_e,et]),_e};function CssBaseline(o){const s=useThemeProps({props:o,name:"MuiCssBaseline"}),{children:_,enableColorScheme:j=!1}=s;return jsxs$1(reactExports.Fragment,{children:[jsx$1(GlobalStyles,{styles:$=>styles($,j)}),_]})}const rootShouldForwardProp=o=>shouldForwardProp(o)&&o!=="classes",styled=createStyled({defaultTheme:defaultTheme$1,rootShouldForwardProp}),styled$1=styled;function getScopedCssBaselineUtilityClass(o){return generateUtilityClass("MuiScopedCssBaseline",o)}generateUtilityClasses("MuiScopedCssBaseline",["root"]);const _excluded=["className","component","enableColorScheme"],useUtilityClasses=o=>{const{classes:s}=o;return composeClasses({root:["root"]},getScopedCssBaselineUtilityClass,s)},ScopedCssBaselineRoot=styled$1("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(o,s)=>s.root})(({theme:o,ownerState:s})=>{const _={};return s.enableColorScheme&&o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([j,$])=>{var _e;_[`&${o.getColorSchemeSelector(j).replace(/\s*&/,"")}`]={colorScheme:(_e=$.palette)==null?void 0:_e.mode}}),_extends$1({},html(o,s.enableColorScheme),body(o),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:o.typography.fontWeightBold}},_)}),ScopedCssBaseline=reactExports.forwardRef(function(s,_){const j=useThemeProps({props:s,name:"MuiScopedCssBaseline"}),{className:$,component:_e="div"}=j,et=_objectWithoutPropertiesLoose$1(j,_excluded),tt=_extends$1({},j,{component:_e}),nt=useUtilityClasses(tt);return jsx$1(ScopedCssBaselineRoot,_extends$1({as:_e,className:clsx(nt.root,$),ref:_,ownerState:tt},et))}),D0=ScopedCssBaseline;var Fr=Object.defineProperty,yr=(o,s,_)=>s in o?Fr(o,s,{enumerable:!0,configurable:!0,writable:!0,value:_}):o[s]=_,me=(o,s,_)=>(yr(o,typeof s!="symbol"?s+"":s,_),_);const DEFAULT_FORMANT_API_URL="https://api.formant.io";function whichFormantApiUrl(o,s,_){try{if(s.get("formant_prod"))return"https://api.formant.io";if(s.get("formant_stage"))return"https://api-stage.formant.io";if(s.get("formant_dev"))return"https://api-dev.formant.io";if(s.get("formant_local"))return"https://api.formant.local";if(s.get("formant_url")){const j=s.get("formant_url");if(j!==null)try{return new URL(j).origin}catch{console.warn(`Ignoring malformed \`formant_url\` url parameter: ${j}`)}}if(_){if(_.includes("app-dev.formant.io")||_.includes("v2-coherence-dev.vercel.app")||_.includes("localhost"))return"https://api-dev.formant.io";if(_.includes("app-stage.formant.io"))return"https://api-stage.formant.io";if(_.includes("app.formant.io")||_.includes("v2-coherence.vercel.app"))return"https://api.formant.io"}}catch{}if(_){if(_.includes("app-dev.formant.io"))return"https://api-dev.formant.io";if(_.includes("app-stage.formant.io"))return"https://api-stage.formant.io";if(_.includes("app.formant.io"))return"https://api.formant.io"}return typeof o<"u"&&"FORMANT_API_URL"in o&&typeof o.FORMANT_API_URL=="string"?o.FORMANT_API_URL:DEFAULT_FORMANT_API_URL}let FORMANT_API_URL=whichFormantApiUrl(typeof window<"u"?window:globalThis,new URLSearchParams(typeof window<"u"&&window.location?window.location.search:void 0),typeof window<"u"&&window.location?window.location.host:void 0);const setFormantApiUrl=o=>{FORMANT_API_URL=o};function addAccessTokenRefreshListener(o){function s(_){const j=_.data;j.type==="auth_token"&&o(j.token)}return window.addEventListener("message",s),()=>{window.removeEventListener("message",s)}}function getCurrentModuleContext(){return typeof window<"u"&&window.location?new URLSearchParams(window.location.search).get("module"):null}function sendAppMessage(o){if(!(window&&window.parent))throw new Error("cannot send message to non-existent parent");window.parent.postMessage(o,"*")}function refreshAuthToken(){const o=getCurrentModuleContext();if(!o)throw new Error("No module context");sendAppMessage({type:"refresh_auth_token",module:o})}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var base64={exports:{}};/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */base64.exports;(function(o,s){(function(_){var j=s,$=o&&o.exports==j&&o,_e=typeof commonjsGlobal=="object"&&commonjsGlobal;(_e.global===_e||_e.window===_e)&&(_=_e);var et=function(dt){this.message=dt};et.prototype=new Error,et.prototype.name="InvalidCharacterError";var tt=function(dt){throw new et(dt)},nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt=/[\t\n\f\r ]/g,it=function(dt){dt=String(dt).replace(rt,"");var gt=dt.length;gt%4==0&&(dt=dt.replace(/==?$/,""),gt=dt.length),(gt%4==1||/[^+a-zA-Z0-9/]/.test(dt))&&tt("Invalid character: the string to be decoded is not correctly encoded.");for(var Ut=0,ht,ft,pt="",Rt=-1;++Rt>(-2*Ut&6)));return pt},st=function(dt){dt=String(dt),/[^\0-\xFF]/.test(dt)&&tt("The string to be encoded contains characters outside of the Latin1 range.");for(var gt=dt.length%3,Ut="",ht=-1,ft,pt,Rt,Qt,Nt=dt.length-gt;++ht>18&63)+nt.charAt(Qt>>12&63)+nt.charAt(Qt>>6&63)+nt.charAt(Qt&63);return gt==2?(ft=dt.charCodeAt(ht)<<8,pt=dt.charCodeAt(++ht),Qt=ft+pt,Ut+=nt.charAt(Qt>>10)+nt.charAt(Qt>>4&63)+nt.charAt(Qt<<2&63)+"="):gt==1&&(Qt=dt.charCodeAt(ht),Ut+=nt.charAt(Qt>>2)+nt.charAt(Qt<<4&63)+"=="),Ut},ut={encode:st,decode:it,version:"1.0.0"};if(j&&!j.nodeType)if($)$.exports=ut;else for(var Ft in ut)ut.hasOwnProperty(Ft)&&(j[Ft]=ut[Ft]);else _.base64=ut})(commonjsGlobal)})(base64,base64.exports);var base64Exports=base64.exports;class LoginFailureError extends Error{constructor(s){super("login failed"),me(this,"reason"),this.reason=s,this.name="LoginFailureError",Object.setPrototypeOf(this,new.target.prototype)}}class LoginChallengedError extends Error{constructor(s){super("login challenged"),me(this,"challenge"),this.challenge=s,this.name="LoginChallengedError",Object.setPrototypeOf(this,new.target.prototype)}}class AuthenticationStore{constructor({apiUrl:s,refreshAuthToken:_,addAccessTokenRefreshListener:j}){me(this,"_refreshToken"),me(this,"_isShareToken",!1),me(this,"_currentOrganization"),me(this,"_currentUser"),me(this,"_defaultDeviceId"),me(this,"_token"),me(this,"_waitingForAuth",new Set),me(this,"_refreshTimer"),me(this,"_apiUrl"),me(this,"_refreshAuthToken"),me(this,"_addAccessTokenRefreshListener"),this._apiUrl=s,this._refreshAuthToken=_,this._addAccessTokenRefreshListener=j}set apiUrl(s){this._apiUrl=s,setFormantApiUrl(s)}get apiUrl(){return this._apiUrl}get token(){return this._token}get currentUser(){return this._currentUser}get currentOrganization(){return this._currentOrganization}get defaultDeviceId(){return this._defaultDeviceId}get refreshToken(){return this._refreshToken}get isShareToken(){return this._isShareToken}async login(s,_,j={}){const{advanced:$=!1}=j;try{const _e=await fetch(`${this._apiUrl}/v1/admin/auth/login`,{method:"POST",body:JSON.stringify({email:s,password:_}),headers:{"Content-Type":"application/json"}}),et=await _e.json();if(_e.status!==200)throw new LoginFailureError(et.message);if("challenge"in et)throw new LoginChallengedError(et.challenge);const{authentication:tt}=et;return await this.loginWithToken(tt.accessToken,tt.refreshToken),$?{result:"success",authentication:tt}:tt}catch(_e){if($||console.error("login() failed",{err:_e}),this._waitingForAuth.forEach(et=>et(!1)),this._waitingForAuth.clear(),!$)throw _e;return _e instanceof LoginChallengedError?{result:"challenged",challenge:_e.challenge}:{result:"failure",reason:_e instanceof LoginFailureError?_e.reason:_e instanceof Error?_e.message:String(_e)}}}async loginWithToken(s,_){var j;const $=JSON.parse(base64Exports.decode(s.split(".")[1]));try{let _e;if(this._isShareToken=$["formant:claims"]&&$["formant:claims"].type=="share",$["formant:claims"]&&(this._currentOrganization=$["formant:claims"].organizationId),$["custom:organization_id"]&&(this._currentOrganization=$["custom:organization_id"]),this._isShareToken||(_e=$.sub),$["formant:claims"]&&$["formant:claims"].userId&&(_e=$["formant:claims"].userId),_e&&((j=this._currentUser)==null?void 0:j.id)!==_e){const et=await fetch(`${this._apiUrl}/v1/admin/users/${_e}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+s}}),tt=await et.json();if(et.status===404)this._currentUser=void 0;else{if(et.status!==200)throw new Error(tt.message);this._currentUser=tt}}this._token=s,this._waitingForAuth.forEach(et=>et(!0))}catch(_e){console.error("loginWithToken() failed",{err:_e}),this._waitingForAuth.forEach(et=>et(!1))}finally{this._waitingForAuth.clear()}_&&(this._refreshToken=_,setInterval(async()=>{if(this._refreshToken){const _e=await(await fetch(`${this._apiUrl}/v1/admin/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:this._refreshToken})})).json();this._token=_e.authentication.accessToken}},1e3*60*60))}isAuthenticated(){return this._token!==void 0}async loginToPeer(s,_,j){if((await fetch(`${s}/login`,{method:"POST",body:JSON.stringify({username:_,password:j}),headers:{"Content-Type":"application/json"}})).status!==200)throw new LoginFailureError("Invalid authentication")}getCurrentUser(){return this._currentUser}async waitTilAuthenticated(){return this.token!==void 0?!0:new Promise(s=>{this._waitingForAuth.add(s)})}async listenForRefresh(){const s=()=>{this._refreshTimer=void 0,this._refreshAuthToken()};this._addAccessTokenRefreshListener(_=>{this._refreshTimer&&clearTimeout(this._refreshTimer),this._refreshTimer=setTimeout(s,36e5),this.loginWithToken(_)}),this._refreshTimer=setTimeout(s,36e5)}async forgotPassword(s){await fetch(`${this._apiUrl}/v1/admin/auth/forgot-password`,{method:"POST",body:JSON.stringify({email:s}),headers:{"Content-Type":"application/json"}})}async confirmForgotPassword(s){return(await fetch(`${this._apiUrl}/v1/admin/auth/confirm-forgot-password`,{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).ok}async respondToNewPasswordRequiredChallenge(s){const _=await fetch(`${this._apiUrl}/v1/admin/auth/respond-to-new-password-required-challenge`,{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}});if(_.ok)return await _.json();throw new Error("respond-to-new-password-required-challenge failed")}async loginWithGoogle(s){return await(await fetch(`${this._apiUrl}/v1/admin/auth/login-google`,{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).json()}async refresh(s){const _=await(await fetch(`${this._apiUrl}/v1/admin/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:s})})).json();await this.loginWithToken(_.authentication.accessToken,s)}async checkSso(s,_){return await(await fetch(`${this._apiUrl}/v1/admin/auth/check-sso`,{method:"POST",body:JSON.stringify({email:s,allowUserAutoCreation:_}),headers:{"Content-Type":"application/json"}})).json()}async loginWithSso(s,_){const j=await(await fetch(`${this._apiUrl}/v1/admin/auth/login-sso`,{method:"POST",body:JSON.stringify({token:s,refreshToken:_}),headers:{"Content-Type":"application/json"}})).json();if(!j.authentication)throw new Error("Failed to login with SSO");return await this.loginWithToken(j.authentication.accessToken,j.authentication.refreshToken)}}const Authentication=new AuthenticationStore({apiUrl:FORMANT_API_URL,refreshAuthToken,addAccessTokenRefreshListener});async function getModuleConfiguration(o){return(await(await fetch(`${FORMANT_API_URL}/v1/admin/module-configurations/${o}`,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).configuration}function disableAnalyticsBottomBar(){sendAppMessage({type:"hide_analytics_date_picker"})}function goToDevice(o){sendAppMessage({type:"go_to_device",deviceId:o})}function goToTime(o){sendAppMessage({type:"go_to_time",time:o.getTime()})}function requestModuleData(){const o=getCurrentModuleContext();if(!o)throw new Error("No module context");sendAppMessage({type:"request_module_data",module:o})}function sendChannelData(o,s){const _=getCurrentModuleContext();if(!_)throw new Error("No module context");sendAppMessage({type:"send_channel_data",source:_,channel:o,data:s})}function setModuleDateTimeRange(o,s){const _=getCurrentModuleContext();if(!_)throw new Error("No module context");sendAppMessage({type:"set_module_data_time_range",module:_,before:o,after:s||0})}function setupModuleMenus(o){const s=getCurrentModuleContext();if(!s)throw new Error("No module context");sendAppMessage({type:"setup_module_menus",module:s,menus:o})}function showMessage(o){sendAppMessage({type:"show_message",message:o})}function addChannelDataListener(o,s){const _=j=>{const $=j.data;$.type==="channel_data"&&$.channel===o&&s({source:$.source,data:$.data})};return window.addEventListener("message",_),()=>window.removeEventListener("message",_)}function addMenuListener(o){const s=_=>{const j=_.data;j.type==="module_menu_item_clicked"&&o(j.menu)};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)}function addModuleConfigurationListener(o){const s=_=>{const j=_.data;j.type==="module_configuration"&&o(j)};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)}function addModuleDataListener(o){const s=getCurrentModuleContext();s&&sendAppMessage({type:"request_module_data",module:s});const _=j=>{const $=j.data;$.type==="module_data"&&o({streams:$.streams,time:$.time,queryRange:$.queryRange})};return window.addEventListener("message",_),()=>window.removeEventListener("message",_)}function addOverviewDeviceListener(o){sendAppMessage({type:"request_devices"});const s=_=>{const j=_.data;j.type==="overview_devices"&&o(j.data)};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)}function _typeof$1(o){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(o)}function toInteger(o){if(o===null||o===!0||o===!1)return NaN;var s=Number(o);return isNaN(s)?s:s<0?Math.ceil(s):Math.floor(s)}function requiredArgs(o,s){if(s.length1?"s":"")+" required, but only "+s.length+" present")}function toDate(o){requiredArgs(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||_typeof$1(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function addDays(o,s){requiredArgs(2,arguments);var _=toDate(o),j=toInteger(s);return isNaN(j)?new Date(NaN):(j&&_.setDate(_.getDate()+j),_)}function addMonths(o,s){requiredArgs(2,arguments);var _=toDate(o),j=toInteger(s);if(isNaN(j))return new Date(NaN);if(!j)return _;var $=_.getDate(),_e=new Date(_.getTime());_e.setMonth(_.getMonth()+j+1,0);var et=_e.getDate();return $>=et?_e:(_.setFullYear(_e.getFullYear(),_e.getMonth(),$),_)}function addMilliseconds(o,s){requiredArgs(2,arguments);var _=toDate(o).getTime(),j=toInteger(s);return new Date(_+j)}var MILLISECONDS_IN_HOUR=36e5;function addHours(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addMilliseconds(o,_*MILLISECONDS_IN_HOUR)}var defaultOptions={};function getDefaultOptions(){return defaultOptions}function startOfWeek(o,s){var _,j,$,_e,et,tt,nt,rt;requiredArgs(1,arguments);var it=getDefaultOptions(),st=toInteger((_=(j=($=(_e=s==null?void 0:s.weekStartsOn)!==null&&_e!==void 0?_e:s==null||(et=s.locale)===null||et===void 0||(tt=et.options)===null||tt===void 0?void 0:tt.weekStartsOn)!==null&&$!==void 0?$:it.weekStartsOn)!==null&&j!==void 0?j:(nt=it.locale)===null||nt===void 0||(rt=nt.options)===null||rt===void 0?void 0:rt.weekStartsOn)!==null&&_!==void 0?_:0);if(!(st>=0&&st<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var ut=toDate(o),Ft=ut.getDay(),dt=(Ft=et)throw new RangeError("Invalid interval");var tt=[],nt=j,rt=Number((_=s==null?void 0:s.step)!==null&&_!==void 0?_:1);if(rt<1||isNaN(rt))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;nt.getTime()<=et;)tt.push(toDate(nt)),nt=addMinutes(nt,rt);return tt}function eachMonthOfInterval(o){requiredArgs(1,arguments);var s=o||{},_=toDate(s.start),j=toDate(s.end),$=j.getTime(),_e=[];if(!(_.getTime()<=$))throw new RangeError("Invalid interval");var et=_;for(et.setHours(0,0,0,0),et.setDate(1);et.getTime()<=$;)_e.push(toDate(et)),et.setMonth(et.getMonth()+1);return _e}function startOfQuarter(o){requiredArgs(1,arguments);var s=toDate(o),_=s.getMonth(),j=_-_%3;return s.setMonth(j,1),s.setHours(0,0,0,0),s}function eachQuarterOfInterval(o){requiredArgs(1,arguments);var s=o||{},_=toDate(s.start),j=toDate(s.end),$=j.getTime();if(!(_.getTime()<=$))throw new RangeError("Invalid interval");var _e=startOfQuarter(_),et=startOfQuarter(j);$=et.getTime();for(var tt=[],nt=_e;nt.getTime()<=$;)tt.push(toDate(nt)),nt=addQuarters(nt,1);return tt}function eachWeekOfInterval(o,s){requiredArgs(1,arguments);var _=o||{},j=toDate(_.start),$=toDate(_.end),_e=$.getTime();if(!(j.getTime()<=_e))throw new RangeError("Invalid interval");var et=startOfWeek(j,s),tt=startOfWeek($,s);et.setHours(15),tt.setHours(15),_e=tt.getTime();for(var nt=[],rt=et;rt.getTime()<=_e;)rt.setHours(0),nt.push(toDate(rt)),rt=addWeeks(rt,1),rt.setHours(15);return nt}function startOfMonth(o){requiredArgs(1,arguments);var s=toDate(o);return s.setDate(1),s.setHours(0,0,0,0),s}function endOfYear(o){requiredArgs(1,arguments);var s=toDate(o),_=s.getFullYear();return s.setFullYear(_+1,0,0),s.setHours(23,59,59,999),s}function startOfYear(o){requiredArgs(1,arguments);var s=toDate(o),_=new Date(0);return _.setFullYear(s.getFullYear(),0,1),_.setHours(0,0,0,0),_}function eachYearOfInterval(o){requiredArgs(1,arguments);var s=o||{},_=toDate(s.start),j=toDate(s.end),$=j.getTime();if(!(_.getTime()<=$))throw new RangeError("Invalid interval");var _e=[],et=_;for(et.setHours(0,0,0,0),et.setMonth(0,1);et.getTime()<=$;)_e.push(toDate(et)),et.setFullYear(et.getFullYear()+1);return _e}function endOfHour(o){requiredArgs(1,arguments);var s=toDate(o);return s.setMinutes(59,59,999),s}function endOfWeek(o,s){var _,j,$,_e,et,tt,nt,rt;requiredArgs(1,arguments);var it=getDefaultOptions(),st=toInteger((_=(j=($=(_e=s==null?void 0:s.weekStartsOn)!==null&&_e!==void 0?_e:s==null||(et=s.locale)===null||et===void 0||(tt=et.options)===null||tt===void 0?void 0:tt.weekStartsOn)!==null&&$!==void 0?$:it.weekStartsOn)!==null&&j!==void 0?j:(nt=it.locale)===null||nt===void 0||(rt=nt.options)===null||rt===void 0?void 0:rt.weekStartsOn)!==null&&_!==void 0?_:0);if(!(st>=0&&st<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var ut=toDate(o),Ft=ut.getDay(),dt=(Ft=1&&Ft<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var dt=new Date(0);dt.setFullYear(st+1,0,Ft),dt.setHours(0,0,0,0);var gt=startOfWeek(dt,s),Ut=new Date(0);Ut.setFullYear(st,0,Ft),Ut.setHours(0,0,0,0);var ht=startOfWeek(Ut,s);return it.getTime()>=gt.getTime()?st+1:it.getTime()>=ht.getTime()?st:st-1}function startOfWeekYear(o,s){var _,j,$,_e,et,tt,nt,rt;requiredArgs(1,arguments);var it=getDefaultOptions(),st=toInteger((_=(j=($=(_e=s==null?void 0:s.firstWeekContainsDate)!==null&&_e!==void 0?_e:s==null||(et=s.locale)===null||et===void 0||(tt=et.options)===null||tt===void 0?void 0:tt.firstWeekContainsDate)!==null&&$!==void 0?$:it.firstWeekContainsDate)!==null&&j!==void 0?j:(nt=it.locale)===null||nt===void 0||(rt=nt.options)===null||rt===void 0?void 0:rt.firstWeekContainsDate)!==null&&_!==void 0?_:1),ut=getWeekYear(o,s),Ft=new Date(0);Ft.setFullYear(ut,0,st),Ft.setHours(0,0,0,0);var dt=startOfWeek(Ft,s);return dt}var MILLISECONDS_IN_WEEK=6048e5;function getWeek(o,s){requiredArgs(1,arguments);var _=toDate(o),j=startOfWeek(_,s).getTime()-startOfWeekYear(_,s).getTime();return Math.round(j/MILLISECONDS_IN_WEEK)+1}function getYear(o){return requiredArgs(1,arguments),toDate(o).getFullYear()}function startOfHour(o){requiredArgs(1,arguments);var s=toDate(o);return s.setMinutes(0,0,0),s}function subDays(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addDays(o,-_)}function roundToNearestMinutes(o,s){var _;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var j=toInteger((_=s==null?void 0:s.nearestTo)!==null&&_!==void 0?_:1);if(j<1||j>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var $=toDate(o),_e=$.getSeconds(),et=$.getMinutes()+_e/60,tt=getRoundingMethod(s==null?void 0:s.roundingMethod),nt=tt(et/j)*j,rt=et%j,it=Math.round(rt/j)*j;return new Date($.getFullYear(),$.getMonth(),$.getDate(),$.getHours(),nt+it)}function subMonths(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addMonths(o,-_)}function subHours(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addHours(o,-_)}function subMinutes(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addMinutes(o,-_)}function subQuarters(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addQuarters(o,-_)}function subWeeks(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addWeeks(o,-_)}function subYears(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addYears(o,-_)}const millisecond$2=1,second$2=1e3,minute$2=60*second$2,hour$2=60*minute$2,day$2=24*hour$2,week$2=7*day$2,month$2=30*day$2,year$2=365*day$2,duration$2={millisecond:millisecond$2,second:second$2,minute:minute$2,hour:hour$2,day:day$2,week:week$2,month:month$2,year:year$2};function filterDataByType$1(o,s){return o.filter(_=>s.includes(_.type))}function filterDataByTime$1(o,s,_){const j=s.getTime(),$=_.getTime();return o.map(_e=>({..._e,points:_e.points.filter(([et])=>et>=j&&et<$)})).filter(({points:_e})=>_e.length>0)}let StoreCache$1=class{constructor({capacity:o,timeout:s}={}){me(this,"entries",new Map),me(this,"metadata",new Map),me(this,"capacity"),me(this,"staleIntervalMs"),this.capacity=o||1e4,this.staleIntervalMs=s||duration$2.minute}get(o,s){const _=this.keyToCacheKey(o);return this.isStale(_)&&!this.isGenerating(_)&&s&&this.generate(o,s),this.entries.get(_)}set(o,s){const _=this.keyToCacheKey(o);this.metadata.set(_,{generating:!1,staleAt:performance.now()+this.staleIntervalMs});const j=this.entries.get(_);JSON.stringify(j)===JSON.stringify(s)||(this.entries.set(_,s),this.enforceMaxSize())}clear(){this.entries.clear(),[...this.metadata.values()].forEach(o=>o.generating=!1)}clearKey(o){this.metadata.delete(o),this.entries.delete(o)}keyToCacheKey(o){return JSON.stringify(o)}enforceMaxSize(){for(;this.metadata.size>this.capacity&&this.metadata.size>0;){const[o]=[...this.metadata.entries()].reduce(([s,_],[j,$])=>$.staleAt<_.staleAt?[j,$]:[s,_]);this.clearKey(o)}}isStale(o){const s=this.metadata.get(o);return s?(s==null?void 0:s.staleAt){const et=this.metadata.get(_);return(et==null?void 0:et.generating)!==$||this.set(o,_e),_e}).catch(_e=>{throw this.metadata.delete(_),_e});this.metadata.set(_,{...j,generating:$,staleAt:performance.now()+this.staleIntervalMs})}};async function queryTelemetry(o){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/queries/queries`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}let QueryStore$1=class{constructor(){me(this,"queryStoreCache",new StoreCache$1({capacity:1e4,timeout:20*duration$2.second})),me(this,"liveQueryStoreCache",new StoreCache$1({capacity:1e4,timeout:200*duration$2.millisecond}))}moduleQuery(o,s,_,j,$,_e=!1){const et={...o,names:[...s],types:[..._]},tt=this.query(et,j,$,_e);return tt===void 0||tt==="too much data"?tt:filterDataByType$1(tt,_)}query(o,s,_,j=!1){const $={...o,start:startOfMinute(s).toISOString(),end:j?_.toISOString():addMinutes(roundToNearestMinutes(_),1).toISOString(),latestOnly:j},_e=_>addSeconds(new Date,-20);let et;return _e?et=this.liveQueryCache($):et=this.queryCache($),!et||et==="too much data"||j?et:filterDataByTime$1(et,s,_)}queryCache(o){return this.queryStoreCache.get(o,async()=>{try{return await queryTelemetry(o)}catch(s){throw s}})}liveQueryCache(o){return this.liveQueryStoreCache.get(o,async()=>{try{return await queryTelemetry(o)}catch(s){throw s}})}};const queryStore=new QueryStore$1;function addStreamListener(o,s,_){const j=$=>{const _e=$.data;if(_e.type==="module_data"){const{start:et,end:tt}=_e.queryRange;_(queryStore.moduleQuery({},o,s,new Date(et),new Date(tt),!1))}};return window.addEventListener("message",j),()=>window.removeEventListener("message",j)}async function getDate(o,s,_){return new Promise(j=>{sendAppMessage({type:"request_date",minTime:s,maxTime:_,time:o});const $=_e=>{const et=_e.data;et.type==="date_response"&&(window.removeEventListener("message",$),j(et.data))};window.addEventListener("message",$)})}async function prompt(o,s){return new Promise(_=>{const j=Math.random().toString();sendAppMessage({type:"prompt",promptId:j,schema:o,okText:s==null?void 0:s.okText,cancelText:s==null?void 0:s.cancelText});const $=_e=>{const et=_e.data;et.type==="prompt_response"&&et.promptId===j&&_(et.data),window.removeEventListener("message",$)};window.addEventListener("message",$)})}const rr=class{static isModule(){return getCurrentModuleContext()!==null}static async getCurrentModuleConfiguration(){let o=new URLSearchParams("");typeof window<"u"&&window.location&&(o=new URLSearchParams(window.location.search));const s=o.get("configuration");if(!(s===null||s.trim()===""))return getModuleConfiguration(s.trim())}static get isOnline(){return rr._isOnline}static listenForConnectionEvents(){const o=s=>{const{data:_}=s;_.type==="formant_online"&&(this._isOnline=_.online)};return window.addEventListener("message",o),()=>window.removeEventListener("message",o)}static checkConnection(o=1e3){return new Promise((s,_)=>{const j=setTimeout(()=>_(new Error("deadline expired: took too long")),o),$=_e=>{window.removeEventListener("message",$),clearTimeout(j);const{data:et}=_e;et.type==="formant_online"&&(this._isOnline=et.online,s(et.online))};window.addEventListener("message",$),sendAppMessage({type:"formant_online"})})}static waitForConnection(o=5e3){let s=!1;const _=new Promise((_e,et)=>{setTimeout(()=>{s=!0,et(new Error("deadline expired: took too long"))},o)}),j=_e=>new Promise(et=>setTimeout(et,_e)),$=async()=>{for(await j(50);!s&&!(this.isOnline||await this.checkConnection);)await j(500)};return Promise.race([_,$()])}};let App$2=rr;me(App$2,"getCurrentModuleContext",getCurrentModuleContext),me(App$2,"disableAnalyticsBottomBar",disableAnalyticsBottomBar),me(App$2,"goToDevice",goToDevice),me(App$2,"goToTime",goToTime),me(App$2,"refreshAuthToken",refreshAuthToken),me(App$2,"requestModuleData",requestModuleData),me(App$2,"sendChannelData",sendChannelData),me(App$2,"setModuleDateTimeRange",setModuleDateTimeRange),me(App$2,"setupModuleMenus",setupModuleMenus),me(App$2,"showMessage",showMessage),me(App$2,"addAccessTokenRefreshListener",addAccessTokenRefreshListener),me(App$2,"addChannelDataListener",addChannelDataListener),me(App$2,"addMenuListener",addMenuListener),me(App$2,"addModuleConfigurationListener",addModuleConfigurationListener),me(App$2,"addModuleDataListener",addModuleDataListener),me(App$2,"addOverviewDeviceListener",addOverviewDeviceListener),me(App$2,"addStreamListener",addStreamListener),me(App$2,"getDate",getDate),me(App$2,"prompt",prompt),me(App$2,"_isOnline",null);class CaptureStream{constructor(s){me(this,"token"),this.captureSession=s}async ingestJSON(s){if(!this.token){const _=await(await fetch(`${FORMANT_API_URL}/v1/admin/capture-sessions/${this.captureSession.code}/authenticate`,{method:"POST"})).json();this.token=_.token}await fetch(`${FORMANT_API_URL}/v1/ingest`,{method:"POST",body:JSON.stringify({deviceId:this.captureSession.deviceId,name:this.captureSession.streamName,type:"json",points:[[Date.now(),JSON.stringify(s)]]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.token}})}}class DataChannel{constructor(s){me(this,"ready",!1),me(this,"listeners",[]),me(this,"openListeners",[]),me(this,"closeListeners",[]),me(this,"errorListeners",[]),me(this,"binaryListeners",[]),me(this,"error"),me(this,"decoder",new TextDecoder),this.dataChannel=s,this.dataChannel.binaryType="arraybuffer",this.dataChannel.onopen=()=>{this.setReady()},this.dataChannel.onclose=()=>{this.ready=!1,this.closeListeners.forEach(_=>_())},this.dataChannel.onerror=_=>{console.error(_),this.error="An error occurred in DataChannel",this.errorListeners.forEach(j=>j(_))},this.dataChannel.onmessage=_=>{this.listeners.forEach(j=>{const $=new Uint8Array(_.data),_e=this.decoder.decode($);j(_e)}),this.binaryListeners.forEach(j=>{j(new Uint8Array(_.data))})}}setReady(){this.ready=!0,this.openListeners.forEach(s=>s())}addOpenListener(s){this.openListeners.push(s)}removeOpenListener(s){this.openListeners=this.openListeners.filter(_=>_!==s)}addCloseListener(s){this.closeListeners.push(s)}removeCloseListener(s){this.closeListeners=this.closeListeners.filter(_=>_!==s)}addErrorListener(s){this.errorListeners.push(s)}removeErrorListener(s){this.errorListeners=this.errorListeners.filter(_=>_!==s)}async waitTilReady(){return this.ready?!0:new Promise((s,_)=>{let j=setInterval(()=>{this.dataChannel.readyState==="open"&&this.setReady(),this.ready&&(clearInterval(j),s(!0)),this.error&&_(this.error)},10)})}send(s){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(s)}sendBinary(s){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(s)}addListener(s){this.listeners.push(s)}removeListener(s){const _=this.listeners.indexOf(s);if(_===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.listeners.splice(_,1)}addBinaryListener(s){this.binaryListeners.push(s)}removeBinaryListener(s){const _=this.binaryListeners.indexOf(s);if(_===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.binaryListeners.splice(_,1)}}function defined$1(o,s){if(o!==void 0)return o;throw new Error(s||"Value is undefined")}function delay$1(o){return new Promise(s=>setTimeout(s,o))}async function createDevice(o){if(!Authentication.token)throw new Error("Not authenticated");return await(await fetch(`${FORMANT_API_URL}/v1/admin/devices`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(o){let s=o.length;for(;--s>=0;)o[s]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(o,s,_,j,$){this.static_tree=o,this.extra_bits=s,this.extra_base=_,this.elems=j,this.max_length=$,this.has_stree=o&&o.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(o,s){this.dyn_tree=o,this.max_code=0,this.stat_desc=s}const d_code=o=>o<256?_dist_code[o]:_dist_code[256+(o>>>7)],put_short=(o,s)=>{o.pending_buf[o.pending++]=s&255,o.pending_buf[o.pending++]=s>>>8&255},send_bits=(o,s,_)=>{o.bi_valid>Buf_size-_?(o.bi_buf|=s<>Buf_size-o.bi_valid,o.bi_valid+=_-Buf_size):(o.bi_buf|=s<{send_bits(o,_[s*2],_[s*2+1])},bi_reverse=(o,s)=>{let _=0;do _|=o&1,o>>>=1,_<<=1;while(--s>0);return _>>>1},bi_flush=o=>{o.bi_valid===16?(put_short(o,o.bi_buf),o.bi_buf=0,o.bi_valid=0):o.bi_valid>=8&&(o.pending_buf[o.pending++]=o.bi_buf&255,o.bi_buf>>=8,o.bi_valid-=8)},gen_bitlen=(o,s)=>{const _=s.dyn_tree,j=s.max_code,$=s.stat_desc.static_tree,_e=s.stat_desc.has_stree,et=s.stat_desc.extra_bits,tt=s.stat_desc.extra_base,nt=s.stat_desc.max_length;let rt,it,st,ut,Ft,dt,gt=0;for(ut=0;ut<=MAX_BITS$1;ut++)o.bl_count[ut]=0;for(_[o.heap[o.heap_max]*2+1]=0,rt=o.heap_max+1;rtnt&&(ut=nt,gt++),_[it*2+1]=ut,!(it>j)&&(o.bl_count[ut]++,Ft=0,it>=tt&&(Ft=et[it-tt]),dt=_[it*2],o.opt_len+=dt*(ut+Ft),_e&&(o.static_len+=dt*($[it*2+1]+Ft)));if(gt!==0){do{for(ut=nt-1;o.bl_count[ut]===0;)ut--;o.bl_count[ut]--,o.bl_count[ut+1]+=2,o.bl_count[nt]--,gt-=2}while(gt>0);for(ut=nt;ut!==0;ut--)for(it=o.bl_count[ut];it!==0;)st=o.heap[--rt],!(st>j)&&(_[st*2+1]!==ut&&(o.opt_len+=(ut-_[st*2+1])*_[st*2],_[st*2+1]=ut),it--)}},gen_codes=(o,s,_)=>{const j=new Array(MAX_BITS$1+1);let $=0,_e,et;for(_e=1;_e<=MAX_BITS$1;_e++)$=$+_[_e-1]<<1,j[_e]=$;for(et=0;et<=s;et++){let tt=o[et*2+1];tt!==0&&(o[et*2]=bi_reverse(j[tt]++,tt))}},tr_static_init=()=>{let o,s,_,j,$;const _e=new Array(MAX_BITS$1+1);for(_=0,j=0;j>=7;j{let s;for(s=0;s{o.bi_valid>8?put_short(o,o.bi_buf):o.bi_valid>0&&(o.pending_buf[o.pending++]=o.bi_buf),o.bi_buf=0,o.bi_valid=0},smaller=(o,s,_,j)=>{const $=s*2,_e=_*2;return o[$]{const j=o.heap[_];let $=_<<1;for(;$<=o.heap_len&&(${let j,$,_e=0,et,tt;if(o.sym_next!==0)do j=o.pending_buf[o.sym_buf+_e++]&255,j+=(o.pending_buf[o.sym_buf+_e++]&255)<<8,$=o.pending_buf[o.sym_buf+_e++],j===0?send_code(o,$,s):(et=_length_code[$],send_code(o,et+LITERALS$1+1,s),tt=extra_lbits[et],tt!==0&&($-=base_length[et],send_bits(o,$,tt)),j--,et=d_code(j),send_code(o,et,_),tt=extra_dbits[et],tt!==0&&(j-=base_dist[et],send_bits(o,j,tt)));while(_e{const _=s.dyn_tree,j=s.stat_desc.static_tree,$=s.stat_desc.has_stree,_e=s.stat_desc.elems;let et,tt,nt=-1,rt;for(o.heap_len=0,o.heap_max=HEAP_SIZE$1,et=0;et<_e;et++)_[et*2]!==0?(o.heap[++o.heap_len]=nt=et,o.depth[et]=0):_[et*2+1]=0;for(;o.heap_len<2;)rt=o.heap[++o.heap_len]=nt<2?++nt:0,_[rt*2]=1,o.depth[rt]=0,o.opt_len--,$&&(o.static_len-=j[rt*2+1]);for(s.max_code=nt,et=o.heap_len>>1;et>=1;et--)pqdownheap(o,_,et);rt=_e;do et=o.heap[1],o.heap[1]=o.heap[o.heap_len--],pqdownheap(o,_,1),tt=o.heap[1],o.heap[--o.heap_max]=et,o.heap[--o.heap_max]=tt,_[rt*2]=_[et*2]+_[tt*2],o.depth[rt]=(o.depth[et]>=o.depth[tt]?o.depth[et]:o.depth[tt])+1,_[et*2+1]=_[tt*2+1]=rt,o.heap[1]=rt++,pqdownheap(o,_,1);while(o.heap_len>=2);o.heap[--o.heap_max]=o.heap[1],gen_bitlen(o,s),gen_codes(_,nt,o.bl_count)},scan_tree=(o,s,_)=>{let j,$=-1,_e,et=s[0*2+1],tt=0,nt=7,rt=4;for(et===0&&(nt=138,rt=3),s[(_+1)*2+1]=65535,j=0;j<=_;j++)_e=et,et=s[(j+1)*2+1],!(++tt{let j,$=-1,_e,et=s[0*2+1],tt=0,nt=7,rt=4;for(et===0&&(nt=138,rt=3),j=0;j<=_;j++)if(_e=et,et=s[(j+1)*2+1],!(++tt{let s;for(scan_tree(o,o.dyn_ltree,o.l_desc.max_code),scan_tree(o,o.dyn_dtree,o.d_desc.max_code),build_tree(o,o.bl_desc),s=BL_CODES$1-1;s>=3&&o.bl_tree[bl_order[s]*2+1]===0;s--);return o.opt_len+=3*(s+1)+5+5+4,s},send_all_trees=(o,s,_,j)=>{let $;for(send_bits(o,s-257,5),send_bits(o,_-1,5),send_bits(o,j-4,4),$=0;${let s=4093624447,_;for(_=0;_<=31;_++,s>>>=1)if(s&1&&o.dyn_ltree[_*2]!==0)return Z_BINARY;if(o.dyn_ltree[9*2]!==0||o.dyn_ltree[10*2]!==0||o.dyn_ltree[13*2]!==0)return Z_TEXT;for(_=32;_{static_init_done||(tr_static_init(),static_init_done=!0),o.l_desc=new TreeDesc(o.dyn_ltree,static_l_desc),o.d_desc=new TreeDesc(o.dyn_dtree,static_d_desc),o.bl_desc=new TreeDesc(o.bl_tree,static_bl_desc),o.bi_buf=0,o.bi_valid=0,init_block(o)},_tr_stored_block$1=(o,s,_,j)=>{send_bits(o,(STORED_BLOCK<<1)+(j?1:0),3),bi_windup(o),put_short(o,_),put_short(o,~_),_&&o.pending_buf.set(o.window.subarray(s,s+_),o.pending),o.pending+=_},_tr_align$1=o=>{send_bits(o,STATIC_TREES<<1,3),send_code(o,END_BLOCK,static_ltree),bi_flush(o)},_tr_flush_block$1=(o,s,_,j)=>{let $,_e,et=0;o.level>0?(o.strm.data_type===Z_UNKNOWN$1&&(o.strm.data_type=detect_data_type(o)),build_tree(o,o.l_desc),build_tree(o,o.d_desc),et=build_bl_tree(o),$=o.opt_len+3+7>>>3,_e=o.static_len+3+7>>>3,_e<=$&&($=_e)):$=_e=_+5,_+4<=$&&s!==-1?_tr_stored_block$1(o,s,_,j):o.strategy===Z_FIXED$1||_e===$?(send_bits(o,(STATIC_TREES<<1)+(j?1:0),3),compress_block(o,static_ltree,static_dtree)):(send_bits(o,(DYN_TREES<<1)+(j?1:0),3),send_all_trees(o,o.l_desc.max_code+1,o.d_desc.max_code+1,et+1),compress_block(o,o.dyn_ltree,o.dyn_dtree)),init_block(o),j&&bi_windup(o)},_tr_tally$1=(o,s,_)=>(o.pending_buf[o.sym_buf+o.sym_next++]=s,o.pending_buf[o.sym_buf+o.sym_next++]=s>>8,o.pending_buf[o.sym_buf+o.sym_next++]=_,s===0?o.dyn_ltree[_*2]++:(o.matches++,s--,o.dyn_ltree[(_length_code[_]+LITERALS$1+1)*2]++,o.dyn_dtree[d_code(s)*2]++),o.sym_next===o.sym_end);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(o,s,_,j)=>{let $=o&65535|0,_e=o>>>16&65535|0,et=0;for(;_!==0;){et=_>2e3?2e3:_,_-=et;do $=$+s[j++]|0,_e=_e+$|0;while(--et);$%=65521,_e%=65521}return $|_e<<16|0};var adler32_1=adler32;const makeTable=()=>{let o,s=[];for(var _=0;_<256;_++){o=_;for(var j=0;j<8;j++)o=o&1?3988292384^o>>>1:o>>>1;s[_]=o}return s},crcTable=new Uint32Array(makeTable()),crc32=(o,s,_,j)=>{const $=crcTable,_e=j+_;o^=-1;for(let et=j;et<_e;et++)o=o>>>8^$[(o^s[et])&255];return o^-1};var crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(o,s)=>(o.msg=messages[s],s),rank=o=>o*2-(o>4?9:0),zero=o=>{let s=o.length;for(;--s>=0;)o[s]=0},slide_hash=o=>{let s,_,j,$=o.w_size;s=o.hash_size,j=s;do _=o.head[--j],o.head[j]=_>=$?_-$:0;while(--s);s=$,j=s;do _=o.prev[--j],o.prev[j]=_>=$?_-$:0;while(--s)};let HASH_ZLIB=(o,s,_)=>(s<{const s=o.state;let _=s.pending;_>o.avail_out&&(_=o.avail_out),_!==0&&(o.output.set(s.pending_buf.subarray(s.pending_out,s.pending_out+_),o.next_out),o.next_out+=_,s.pending_out+=_,o.total_out+=_,o.avail_out-=_,s.pending-=_,s.pending===0&&(s.pending_out=0))},flush_block_only=(o,s)=>{_tr_flush_block(o,o.block_start>=0?o.block_start:-1,o.strstart-o.block_start,s),o.block_start=o.strstart,flush_pending(o.strm)},put_byte=(o,s)=>{o.pending_buf[o.pending++]=s},putShortMSB=(o,s)=>{o.pending_buf[o.pending++]=s>>>8&255,o.pending_buf[o.pending++]=s&255},read_buf=(o,s,_,j)=>{let $=o.avail_in;return $>j&&($=j),$===0?0:(o.avail_in-=$,s.set(o.input.subarray(o.next_in,o.next_in+$),_),o.state.wrap===1?o.adler=adler32_1(o.adler,s,$,_):o.state.wrap===2&&(o.adler=crc32_1(o.adler,s,$,_)),o.next_in+=$,o.total_in+=$,$)},longest_match=(o,s)=>{let _=o.max_chain_length,j=o.strstart,$,_e,et=o.prev_length,tt=o.nice_match;const nt=o.strstart>o.w_size-MIN_LOOKAHEAD?o.strstart-(o.w_size-MIN_LOOKAHEAD):0,rt=o.window,it=o.w_mask,st=o.prev,ut=o.strstart+MAX_MATCH;let Ft=rt[j+et-1],dt=rt[j+et];o.prev_length>=o.good_match&&(_>>=2),tt>o.lookahead&&(tt=o.lookahead);do if($=s,!(rt[$+et]!==dt||rt[$+et-1]!==Ft||rt[$]!==rt[j]||rt[++$]!==rt[j+1])){j+=2,$++;do;while(rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&jet){if(o.match_start=s,et=_e,_e>=tt)break;Ft=rt[j+et-1],dt=rt[j+et]}}while((s=st[s&it])>nt&&--_!==0);return et<=o.lookahead?et:o.lookahead},fill_window=o=>{const s=o.w_size;let _,j,$;do{if(j=o.window_size-o.lookahead-o.strstart,o.strstart>=s+(s-MIN_LOOKAHEAD)&&(o.window.set(o.window.subarray(s,s+s-j),0),o.match_start-=s,o.strstart-=s,o.block_start-=s,o.insert>o.strstart&&(o.insert=o.strstart),slide_hash(o),j+=s),o.strm.avail_in===0)break;if(_=read_buf(o.strm,o.window,o.strstart+o.lookahead,j),o.lookahead+=_,o.lookahead+o.insert>=MIN_MATCH)for($=o.strstart-o.insert,o.ins_h=o.window[$],o.ins_h=HASH(o,o.ins_h,o.window[$+1]);o.insert&&(o.ins_h=HASH(o,o.ins_h,o.window[$+MIN_MATCH-1]),o.prev[$&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=$,$++,o.insert--,!(o.lookahead+o.insert{let _=o.pending_buf_size-5>o.w_size?o.w_size:o.pending_buf_size-5,j,$,_e,et=0,tt=o.strm.avail_in;do{if(j=65535,_e=o.bi_valid+42>>3,o.strm.avail_out<_e||(_e=o.strm.avail_out-_e,$=o.strstart-o.block_start,j>$+o.strm.avail_in&&(j=$+o.strm.avail_in),j>_e&&(j=_e),j<_&&(j===0&&s!==Z_FINISH$3||s===Z_NO_FLUSH$2||j!==$+o.strm.avail_in)))break;et=s===Z_FINISH$3&&j===$+o.strm.avail_in?1:0,_tr_stored_block(o,0,0,et),o.pending_buf[o.pending-4]=j,o.pending_buf[o.pending-3]=j>>8,o.pending_buf[o.pending-2]=~j,o.pending_buf[o.pending-1]=~j>>8,flush_pending(o.strm),$&&($>j&&($=j),o.strm.output.set(o.window.subarray(o.block_start,o.block_start+$),o.strm.next_out),o.strm.next_out+=$,o.strm.avail_out-=$,o.strm.total_out+=$,o.block_start+=$,j-=$),j&&(read_buf(o.strm,o.strm.output,o.strm.next_out,j),o.strm.next_out+=j,o.strm.avail_out-=j,o.strm.total_out+=j)}while(et===0);return tt-=o.strm.avail_in,tt&&(tt>=o.w_size?(o.matches=2,o.window.set(o.strm.input.subarray(o.strm.next_in-o.w_size,o.strm.next_in),0),o.strstart=o.w_size,o.insert=o.strstart):(o.window_size-o.strstart<=tt&&(o.strstart-=o.w_size,o.window.set(o.window.subarray(o.w_size,o.w_size+o.strstart),0),o.matches<2&&o.matches++,o.insert>o.strstart&&(o.insert=o.strstart)),o.window.set(o.strm.input.subarray(o.strm.next_in-tt,o.strm.next_in),o.strstart),o.strstart+=tt,o.insert+=tt>o.w_size-o.insert?o.w_size-o.insert:tt),o.block_start=o.strstart),o.high_water_e&&o.block_start>=o.w_size&&(o.block_start-=o.w_size,o.strstart-=o.w_size,o.window.set(o.window.subarray(o.w_size,o.w_size+o.strstart),0),o.matches<2&&o.matches++,_e+=o.w_size,o.insert>o.strstart&&(o.insert=o.strstart)),_e>o.strm.avail_in&&(_e=o.strm.avail_in),_e&&(read_buf(o.strm,o.window,o.strstart,_e),o.strstart+=_e,o.insert+=_e>o.w_size-o.insert?o.w_size-o.insert:_e),o.high_water>3,_e=o.pending_buf_size-_e>65535?65535:o.pending_buf_size-_e,_=_e>o.w_size?o.w_size:_e,$=o.strstart-o.block_start,($>=_||($||s===Z_FINISH$3)&&s!==Z_NO_FLUSH$2&&o.strm.avail_in===0&&$<=_e)&&(j=$>_e?_e:$,et=s===Z_FINISH$3&&o.strm.avail_in===0&&j===$?1:0,_tr_stored_block(o,o.block_start,j,et),o.block_start+=j,flush_pending(o.strm)),et?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(o,s)=>{let _,j;for(;;){if(o.lookahead=MIN_MATCH&&(o.ins_h=HASH(o,o.ins_h,o.window[o.strstart+MIN_MATCH-1]),_=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),_!==0&&o.strstart-_<=o.w_size-MIN_LOOKAHEAD&&(o.match_length=longest_match(o,_)),o.match_length>=MIN_MATCH)if(j=_tr_tally(o,o.strstart-o.match_start,o.match_length-MIN_MATCH),o.lookahead-=o.match_length,o.match_length<=o.max_lazy_match&&o.lookahead>=MIN_MATCH){o.match_length--;do o.strstart++,o.ins_h=HASH(o,o.ins_h,o.window[o.strstart+MIN_MATCH-1]),_=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart;while(--o.match_length!==0);o.strstart++}else o.strstart+=o.match_length,o.match_length=0,o.ins_h=o.window[o.strstart],o.ins_h=HASH(o,o.ins_h,o.window[o.strstart+1]);else j=_tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++;if(j&&(flush_block_only(o,!1),o.strm.avail_out===0))return BS_NEED_MORE}return o.insert=o.strstart{let _,j,$;for(;;){if(o.lookahead=MIN_MATCH&&(o.ins_h=HASH(o,o.ins_h,o.window[o.strstart+MIN_MATCH-1]),_=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),o.prev_length=o.match_length,o.prev_match=o.match_start,o.match_length=MIN_MATCH-1,_!==0&&o.prev_length4096)&&(o.match_length=MIN_MATCH-1)),o.prev_length>=MIN_MATCH&&o.match_length<=o.prev_length){$=o.strstart+o.lookahead-MIN_MATCH,j=_tr_tally(o,o.strstart-1-o.prev_match,o.prev_length-MIN_MATCH),o.lookahead-=o.prev_length-1,o.prev_length-=2;do++o.strstart<=$&&(o.ins_h=HASH(o,o.ins_h,o.window[o.strstart+MIN_MATCH-1]),_=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart);while(--o.prev_length!==0);if(o.match_available=0,o.match_length=MIN_MATCH-1,o.strstart++,j&&(flush_block_only(o,!1),o.strm.avail_out===0))return BS_NEED_MORE}else if(o.match_available){if(j=_tr_tally(o,0,o.window[o.strstart-1]),j&&flush_block_only(o,!1),o.strstart++,o.lookahead--,o.strm.avail_out===0)return BS_NEED_MORE}else o.match_available=1,o.strstart++,o.lookahead--}return o.match_available&&(j=_tr_tally(o,0,o.window[o.strstart-1]),o.match_available=0),o.insert=o.strstart{let _,j,$,_e;const et=o.window;for(;;){if(o.lookahead<=MAX_MATCH){if(fill_window(o),o.lookahead<=MAX_MATCH&&s===Z_NO_FLUSH$2)return BS_NEED_MORE;if(o.lookahead===0)break}if(o.match_length=0,o.lookahead>=MIN_MATCH&&o.strstart>0&&($=o.strstart-1,j=et[$],j===et[++$]&&j===et[++$]&&j===et[++$])){_e=o.strstart+MAX_MATCH;do;while(j===et[++$]&&j===et[++$]&&j===et[++$]&&j===et[++$]&&j===et[++$]&&j===et[++$]&&j===et[++$]&&j===et[++$]&&$<_e);o.match_length=MAX_MATCH-(_e-$),o.match_length>o.lookahead&&(o.match_length=o.lookahead)}if(o.match_length>=MIN_MATCH?(_=_tr_tally(o,1,o.match_length-MIN_MATCH),o.lookahead-=o.match_length,o.strstart+=o.match_length,o.match_length=0):(_=_tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++),_&&(flush_block_only(o,!1),o.strm.avail_out===0))return BS_NEED_MORE}return o.insert=0,s===Z_FINISH$3?(flush_block_only(o,!0),o.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):o.sym_next&&(flush_block_only(o,!1),o.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(o,s)=>{let _;for(;;){if(o.lookahead===0&&(fill_window(o),o.lookahead===0)){if(s===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(o.match_length=0,_=_tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++,_&&(flush_block_only(o,!1),o.strm.avail_out===0))return BS_NEED_MORE}return o.insert=0,s===Z_FINISH$3?(flush_block_only(o,!0),o.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):o.sym_next&&(flush_block_only(o,!1),o.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config$1(o,s,_,j,$){this.good_length=o,this.max_lazy=s,this.nice_length=_,this.max_chain=j,this.func=$}const configuration_table=[new Config$1(0,0,0,0,deflate_stored),new Config$1(4,4,8,4,deflate_fast),new Config$1(4,5,16,8,deflate_fast),new Config$1(4,6,32,32,deflate_fast),new Config$1(4,4,16,16,deflate_slow),new Config$1(8,16,32,32,deflate_slow),new Config$1(8,16,128,128,deflate_slow),new Config$1(8,32,128,256,deflate_slow),new Config$1(32,128,258,1024,deflate_slow),new Config$1(32,258,258,4096,deflate_slow)],lm_init=o=>{o.window_size=2*o.w_size,zero(o.head),o.max_lazy_match=configuration_table[o.level].max_lazy,o.good_match=configuration_table[o.level].good_length,o.nice_match=configuration_table[o.level].nice_length,o.max_chain_length=configuration_table[o.level].max_chain,o.strstart=0,o.block_start=0,o.lookahead=0,o.insert=0,o.match_length=o.prev_length=MIN_MATCH-1,o.match_available=0,o.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=o=>{if(!o)return 1;const s=o.state;return!s||s.strm!==o||s.status!==INIT_STATE&&s.status!==GZIP_STATE&&s.status!==EXTRA_STATE&&s.status!==NAME_STATE&&s.status!==COMMENT_STATE&&s.status!==HCRC_STATE&&s.status!==BUSY_STATE&&s.status!==FINISH_STATE?1:0},deflateResetKeep=o=>{if(deflateStateCheck(o))return err(o,Z_STREAM_ERROR$2);o.total_in=o.total_out=0,o.data_type=Z_UNKNOWN;const s=o.state;return s.pending=0,s.pending_out=0,s.wrap<0&&(s.wrap=-s.wrap),s.status=s.wrap===2?GZIP_STATE:s.wrap?INIT_STATE:BUSY_STATE,o.adler=s.wrap===2?0:1,s.last_flush=-2,_tr_init(s),Z_OK$3},deflateReset=o=>{const s=deflateResetKeep(o);return s===Z_OK$3&&lm_init(o.state),s},deflateSetHeader=(o,s)=>deflateStateCheck(o)||o.state.wrap!==2?Z_STREAM_ERROR$2:(o.state.gzhead=s,Z_OK$3),deflateInit2=(o,s,_,j,$,_e)=>{if(!o)return Z_STREAM_ERROR$2;let et=1;if(s===Z_DEFAULT_COMPRESSION$1&&(s=6),j<0?(et=0,j=-j):j>15&&(et=2,j-=16),$<1||$>MAX_MEM_LEVEL||_!==Z_DEFLATED$2||j<8||j>15||s<0||s>9||_e<0||_e>Z_FIXED||j===8&&et!==1)return err(o,Z_STREAM_ERROR$2);j===8&&(j=9);const tt=new DeflateState;return o.state=tt,tt.strm=o,tt.status=INIT_STATE,tt.wrap=et,tt.gzhead=null,tt.w_bits=j,tt.w_size=1<deflateInit2(o,s,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(o,s)=>{if(deflateStateCheck(o)||s>Z_BLOCK$1||s<0)return o?err(o,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const _=o.state;if(!o.output||o.avail_in!==0&&!o.input||_.status===FINISH_STATE&&s!==Z_FINISH$3)return err(o,o.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const j=_.last_flush;if(_.last_flush=s,_.pending!==0){if(flush_pending(o),o.avail_out===0)return _.last_flush=-1,Z_OK$3}else if(o.avail_in===0&&rank(s)<=rank(j)&&s!==Z_FINISH$3)return err(o,Z_BUF_ERROR$1);if(_.status===FINISH_STATE&&o.avail_in!==0)return err(o,Z_BUF_ERROR$1);if(_.status===INIT_STATE&&_.wrap===0&&(_.status=BUSY_STATE),_.status===INIT_STATE){let $=Z_DEFLATED$2+(_.w_bits-8<<4)<<8,_e=-1;if(_.strategy>=Z_HUFFMAN_ONLY||_.level<2?_e=0:_.level<6?_e=1:_.level===6?_e=2:_e=3,$|=_e<<6,_.strstart!==0&&($|=PRESET_DICT),$+=31-$%31,putShortMSB(_,$),_.strstart!==0&&(putShortMSB(_,o.adler>>>16),putShortMSB(_,o.adler&65535)),o.adler=1,_.status=BUSY_STATE,flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3}if(_.status===GZIP_STATE){if(o.adler=0,put_byte(_,31),put_byte(_,139),put_byte(_,8),_.gzhead)put_byte(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),put_byte(_,_.gzhead.time&255),put_byte(_,_.gzhead.time>>8&255),put_byte(_,_.gzhead.time>>16&255),put_byte(_,_.gzhead.time>>24&255),put_byte(_,_.level===9?2:_.strategy>=Z_HUFFMAN_ONLY||_.level<2?4:0),put_byte(_,_.gzhead.os&255),_.gzhead.extra&&_.gzhead.extra.length&&(put_byte(_,_.gzhead.extra.length&255),put_byte(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=EXTRA_STATE;else if(put_byte(_,0),put_byte(_,0),put_byte(_,0),put_byte(_,0),put_byte(_,0),put_byte(_,_.level===9?2:_.strategy>=Z_HUFFMAN_ONLY||_.level<2?4:0),put_byte(_,OS_CODE),_.status=BUSY_STATE,flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3}if(_.status===EXTRA_STATE){if(_.gzhead.extra){let $=_.pending,_e=(_.gzhead.extra.length&65535)-_.gzindex;for(;_.pending+_e>_.pending_buf_size;){let tt=_.pending_buf_size-_.pending;if(_.pending_buf.set(_.gzhead.extra.subarray(_.gzindex,_.gzindex+tt),_.pending),_.pending=_.pending_buf_size,_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$)),_.gzindex+=tt,flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3;$=0,_e-=tt}let et=new Uint8Array(_.gzhead.extra);_.pending_buf.set(et.subarray(_.gzindex,_.gzindex+_e),_.pending),_.pending+=_e,_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$)),_.gzindex=0}_.status=NAME_STATE}if(_.status===NAME_STATE){if(_.gzhead.name){let $=_.pending,_e;do{if(_.pending===_.pending_buf_size){if(_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$)),flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3;$=0}_.gzindex<_.gzhead.name.length?_e=_.gzhead.name.charCodeAt(_.gzindex++)&255:_e=0,put_byte(_,_e)}while(_e!==0);_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$)),_.gzindex=0}_.status=COMMENT_STATE}if(_.status===COMMENT_STATE){if(_.gzhead.comment){let $=_.pending,_e;do{if(_.pending===_.pending_buf_size){if(_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$)),flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3;$=0}_.gzindex<_.gzhead.comment.length?_e=_.gzhead.comment.charCodeAt(_.gzindex++)&255:_e=0,put_byte(_,_e)}while(_e!==0);_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$))}_.status=HCRC_STATE}if(_.status===HCRC_STATE){if(_.gzhead.hcrc){if(_.pending+2>_.pending_buf_size&&(flush_pending(o),_.pending!==0))return _.last_flush=-1,Z_OK$3;put_byte(_,o.adler&255),put_byte(_,o.adler>>8&255),o.adler=0}if(_.status=BUSY_STATE,flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3}if(o.avail_in!==0||_.lookahead!==0||s!==Z_NO_FLUSH$2&&_.status!==FINISH_STATE){let $=_.level===0?deflate_stored(_,s):_.strategy===Z_HUFFMAN_ONLY?deflate_huff(_,s):_.strategy===Z_RLE?deflate_rle(_,s):configuration_table[_.level].func(_,s);if(($===BS_FINISH_STARTED||$===BS_FINISH_DONE)&&(_.status=FINISH_STATE),$===BS_NEED_MORE||$===BS_FINISH_STARTED)return o.avail_out===0&&(_.last_flush=-1),Z_OK$3;if($===BS_BLOCK_DONE&&(s===Z_PARTIAL_FLUSH?_tr_align(_):s!==Z_BLOCK$1&&(_tr_stored_block(_,0,0,!1),s===Z_FULL_FLUSH$1&&(zero(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),flush_pending(o),o.avail_out===0))return _.last_flush=-1,Z_OK$3}return s!==Z_FINISH$3?Z_OK$3:_.wrap<=0?Z_STREAM_END$3:(_.wrap===2?(put_byte(_,o.adler&255),put_byte(_,o.adler>>8&255),put_byte(_,o.adler>>16&255),put_byte(_,o.adler>>24&255),put_byte(_,o.total_in&255),put_byte(_,o.total_in>>8&255),put_byte(_,o.total_in>>16&255),put_byte(_,o.total_in>>24&255)):(putShortMSB(_,o.adler>>>16),putShortMSB(_,o.adler&65535)),flush_pending(o),_.wrap>0&&(_.wrap=-_.wrap),_.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=o=>{if(deflateStateCheck(o))return Z_STREAM_ERROR$2;const s=o.state.status;return o.state=null,s===BUSY_STATE?err(o,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(o,s)=>{let _=s.length;if(deflateStateCheck(o))return Z_STREAM_ERROR$2;const j=o.state,$=j.wrap;if($===2||$===1&&j.status!==INIT_STATE||j.lookahead)return Z_STREAM_ERROR$2;if($===1&&(o.adler=adler32_1(o.adler,s,_,0)),j.wrap=0,_>=j.w_size){$===0&&(zero(j.head),j.strstart=0,j.block_start=0,j.insert=0);let nt=new Uint8Array(j.w_size);nt.set(s.subarray(_-j.w_size,_),0),s=nt,_=j.w_size}const _e=o.avail_in,et=o.next_in,tt=o.input;for(o.avail_in=_,o.next_in=0,o.input=s,fill_window(j);j.lookahead>=MIN_MATCH;){let nt=j.strstart,rt=j.lookahead-(MIN_MATCH-1);do j.ins_h=HASH(j,j.ins_h,j.window[nt+MIN_MATCH-1]),j.prev[nt&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=nt,nt++;while(--rt);j.strstart=nt,j.lookahead=MIN_MATCH-1,fill_window(j)}return j.strstart+=j.lookahead,j.block_start=j.strstart,j.insert=j.lookahead,j.lookahead=0,j.match_length=j.prev_length=MIN_MATCH-1,j.match_available=0,o.next_in=et,o.input=tt,o.avail_in=_e,j.wrap=$,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(o,s)=>Object.prototype.hasOwnProperty.call(o,s);var assign=function(o){const s=Array.prototype.slice.call(arguments,1);for(;s.length;){const _=s.shift();if(_){if(typeof _!="object")throw new TypeError(_+"must be non-object");for(const j in _)_has(_,j)&&(o[j]=_[j])}}return o},flattenChunks=o=>{let s=0;for(let j=0,$=o.length;j<$;j++)s+=o[j].length;const _=new Uint8Array(s);for(let j=0,$=0,_e=o.length;j<_e;j++){let et=o[j];_.set(et,$),$+=et.length}return _},common={assign,flattenChunks};let STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{STR_APPLY_UIA_OK=!1}const _utf8len=new Uint8Array(256);for(let o=0;o<256;o++)_utf8len[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=o=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(o);let s,_,j,$,_e,et=o.length,tt=0;for($=0;$>>6,s[_e++]=128|_&63):_<65536?(s[_e++]=224|_>>>12,s[_e++]=128|_>>>6&63,s[_e++]=128|_&63):(s[_e++]=240|_>>>18,s[_e++]=128|_>>>12&63,s[_e++]=128|_>>>6&63,s[_e++]=128|_&63);return s};const buf2binstring=(o,s)=>{if(s<65534&&o.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,o.length===s?o:o.subarray(0,s));let _="";for(let j=0;j{const _=s||o.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(o.subarray(0,s));let j,$;const _e=new Array(_*2);for($=0,j=0;j<_;){let et=o[j++];if(et<128){_e[$++]=et;continue}let tt=_utf8len[et];if(tt>4){_e[$++]=65533,j+=tt-1;continue}for(et&=tt===2?31:tt===3?15:7;tt>1&&j<_;)et=et<<6|o[j++]&63,tt--;if(tt>1){_e[$++]=65533;continue}et<65536?_e[$++]=et:(et-=65536,_e[$++]=55296|et>>10&1023,_e[$++]=56320|et&1023)}return buf2binstring(_e,$)},utf8border=(o,s)=>{s=s||o.length,s>o.length&&(s=o.length);let _=s-1;for(;_>=0&&(o[_]&192)===128;)_--;return _<0||_===0?s:_+_utf8len[o[_]]>s?_:s},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(o){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},o||{});let s=this.options;s.raw&&s.windowBits>0?s.windowBits=-s.windowBits:s.gzip&&s.windowBits>0&&s.windowBits<16&&(s.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let _=deflate_1$2.deflateInit2(this.strm,s.level,s.method,s.windowBits,s.memLevel,s.strategy);if(_!==Z_OK$2)throw new Error(messages[_]);if(s.header&&deflate_1$2.deflateSetHeader(this.strm,s.header),s.dictionary){let j;if(typeof s.dictionary=="string"?j=strings.string2buf(s.dictionary):toString$1.call(s.dictionary)==="[object ArrayBuffer]"?j=new Uint8Array(s.dictionary):j=s.dictionary,_=deflate_1$2.deflateSetDictionary(this.strm,j),_!==Z_OK$2)throw new Error(messages[_]);this._dict_set=!0}}Deflate$1.prototype.push=function(o,s){const _=this.strm,j=this.options.chunkSize;let $,_e;if(this.ended)return!1;for(s===~~s?_e=s:_e=s===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof o=="string"?_.input=strings.string2buf(o):toString$1.call(o)==="[object ArrayBuffer]"?_.input=new Uint8Array(o):_.input=o,_.next_in=0,_.avail_in=_.input.length;;){if(_.avail_out===0&&(_.output=new Uint8Array(j),_.next_out=0,_.avail_out=j),(_e===Z_SYNC_FLUSH||_e===Z_FULL_FLUSH)&&_.avail_out<=6){this.onData(_.output.subarray(0,_.next_out)),_.avail_out=0;continue}if($=deflate_1$2.deflate(_,_e),$===Z_STREAM_END$2)return _.next_out>0&&this.onData(_.output.subarray(0,_.next_out)),$=deflate_1$2.deflateEnd(this.strm),this.onEnd($),this.ended=!0,$===Z_OK$2;if(_.avail_out===0){this.onData(_.output);continue}if(_e>0&&_.next_out>0){this.onData(_.output.subarray(0,_.next_out)),_.avail_out=0;continue}if(_.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(o){this.chunks.push(o)};Deflate$1.prototype.onEnd=function(o){o===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg};function deflate$1(o,s){const _=new Deflate$1(s);if(_.push(o,!0),_.err)throw _.msg||messages[_.err];return _.result}function deflateRaw$1(o,s){return s=s||{},s.raw=!0,deflate$1(o,s)}function gzip$1(o,s){return s=s||{},s.gzip=!0,deflate$1(o,s)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1;var deflate_1=deflate,fromByteArray_1=fromByteArray,lookup=[],code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i>18&63]+lookup[o>>12&63]+lookup[o>>6&63]+lookup[o&63]}function encodeChunk(o,s,_){for(var j,$=[],_e=s;_e<_;_e+=3)j=(o[_e]<<16&16711680)+(o[_e+1]<<8&65280)+(o[_e+2]&255),$.push(tripletToBase64(j));return $.join("")}function fromByteArray(o){for(var s,_=o.length,j=_%3,$=[],_e=16383,et=0,tt=_-j;ettt?tt:et+_e));return j===1?(s=o[_-1],$.push(lookup[s>>2]+lookup[s<<4&63]+"==")):j===2&&(s=(o[_-2]<<8)+o[_-1],$.push(lookup[s>>10]+lookup[s>>4&63]+lookup[s<<2&63]+"=")),$.join("")}const encoder=new TextEncoder;new TextDecoder;function serializeHash(o){const s=JSON.stringify(o),_=encoder.encode(s),j=deflate_1(_);return fromByteArray_1(j)}async function getViews(){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/admin/views`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}async function createShareLink(o,s){if(!Authentication.token)throw new Error("Not authenticated");const _=(await getViews()).filter(et=>et.name===s);if(_.length===0)return console.warn("View does not exist or it is misspell"),null;const j=await fetch(`${FORMANT_API_URL}/v1/admin/shares`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),$=FORMANT_API_URL.replace("api","app"),{code:_e}=await j.json();return`${$}/shares/${_e}#${serializeHash({viewId:_[0].id})}`}async function disableDevice(o){if(!Authentication.token)throw new Error("Not authenticated");return await(await fetch(`${FORMANT_API_URL}/v1/admin/devices/${o}/disable`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()}const aggregateByDateFunctions={day:{interval:eachDayOfInterval,start:startOfDay,end:endOfDay,sub:subDays,get:getDay},week:{interval:eachWeekOfInterval,start:startOfWeek,end:endOfWeek,sub:subWeeks,get:getWeek},month:{interval:eachMonthOfInterval,start:startOfMonth,end:endOfMonth,sub:subMonths,get:getMonth},year:{interval:eachYearOfInterval,start:startOfYear,end:endOfYear,sub:subYears,get:getYear},hour:{interval:eachHourOfInterval,start:startOfHour,end:endOfHour,sub:subHours,get:getHours},minute:{interval:eachMinuteOfInterval,start:startOfMinute,end:endOfMinute,sub:subMinutes,get:getMinutes},quarter:{interval:eachQuarterOfInterval,start:startOfQuarter,end:endOfQuarter,sub:subQuarters,get:getQuarter}},formatTimeFrameText=(o,s)=>o.split("/")[0]+"/"+o.split("/")[1]+"–"+s.split("/")[0]+"/"+s.split("/")[1];async function queryEvents(o){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/admin/events/query`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}async function eventsCounter(o,s,_,j,$){const _e=aggregateByDateFunctions[s];return await Promise.all(Array(_).fill(0).map(async(et,tt)=>{const nt=new Date(j),rt=_e.sub(_e.start(nt),_-tt-1),it=_e.sub(_e.end(nt),_-tt-1),st=formatTimeFrameText(rt.toLocaleDateString(),it.toLocaleDateString()),ut=await queryEvents({...$,eventTypes:o,start:new Date(rt).toISOString(),end:new Date(it).toISOString()});return{date:st,events:ut}}))}async function getAnnotationCount(o,s){return(await queryEvents({...o,eventTypes:["annotation"]})).filter(_=>!!_.tags&&Object.keys(_.tags).includes(s)).reduce((_,j)=>{const $=j.tags[s];return $ in _?(_[$]+=1,_):(_[$]=1,_)},{})}async function getAnnotationCountByIntervals(o,s,_){const{end:j,start:$}=o,_e=aggregateByDateFunctions[_].interval({start:new Date($),end:new Date(j)}),et=_e.map((nt,rt)=>{const it=new Date(nt).toISOString(),st=rt===_e.length-1?new Date(Date.now()).toISOString():new Date(_e[rt+1]);return getAnnotationCount({...o,start:it,end:st},s)}),tt=await Promise.all(et);return _e.map((nt,rt)=>({date:new Date(nt).toISOString(),annotations:tt[rt]}))}async function getDevicesData(){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/admin/device-details/query`,{method:"POST",body:JSON.stringify({enabled:!0,type:"default"}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}var dist={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(module,exports){(function(o,s){module.exports=s()})(self,()=>(()=>{var __webpack_modules__={5475:(o,s,_)=>{var j={};o.exports=j,j.themes={};var $=_(9208),_e=j.styles=_(9253),et=Object.defineProperties,tt=new RegExp(/[\r\n]+/g);j.supportsColor=_(3822).supportsColor,j.enabled===void 0&&(j.enabled=j.supportsColor()!==!1),j.enable=function(){j.enabled=!0},j.disable=function(){j.enabled=!1},j.stripColors=j.strip=function(Ut){return(""+Ut).replace(/\x1B\[\d+m/g,"")},j.stylize=function(Ut,ht){if(!j.enabled)return Ut+"";var ft=_e[ht];return!ft&&ht in j?j[ht](Ut):ft.open+Ut+ft.close};var nt=/[|\\{}()[\]^$+*?.]/g;function rt(Ut){var ht=function ft(){return Ft.apply(ft,arguments)};return ht._styles=Ut,ht.__proto__=ut,ht}var it,st=(it={},_e.grey=_e.gray,Object.keys(_e).forEach(function(Ut){_e[Ut].closeRe=new RegExp(function(ht){if(typeof ht!="string")throw new TypeError("Expected a string");return ht.replace(nt,"\\$&")}(_e[Ut].close),"g"),it[Ut]={get:function(){return rt(this._styles.concat(Ut))}}}),it),ut=et(function(){},st);function Ft(){var Ut=Array.prototype.slice.call(arguments),ht=Ut.map(function(Nt){return Nt!=null&&Nt.constructor===String?Nt:$.inspect(Nt)}).join(" ");if(!j.enabled||!ht)return ht;for(var ft=ht.indexOf(` -`)!=-1,pt=this._styles,Rt=pt.length;Rt--;){var Qt=_e[pt[Rt]];ht=Qt.open+ht.replace(Qt.closeRe,Qt.open)+Qt.close,ft&&(ht=ht.replace(tt,function(Nt){return Qt.close+Nt+Qt.open}))}return ht}j.setTheme=function(Ut){if(typeof Ut!="string")for(var ht in Ut)(function(ft){j[ft]=function(pt){if(typeof Ut[ft]=="object"){var Rt=pt;for(var Qt in Ut[ft])Rt=j[Ut[ft][Qt]](Rt);return Rt}return j[Ut[ft]](pt)}})(ht);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var dt=function(Ut,ht){var ft=ht.split("");return(ft=ft.map(Ut)).join("")};for(var gt in j.trap=_(8740),j.zalgo=_(6798),j.maps={},j.maps.america=_(3427)(j),j.maps.zebra=_(860)(j),j.maps.rainbow=_(4517)(j),j.maps.random=_(6948)(j),j.maps)(function(Ut){j[Ut]=function(ht){return dt(j.maps[Ut],ht)}})(gt);et(j,function(){var Ut={};return Object.keys(st).forEach(function(ht){Ut[ht]={get:function(){return rt([ht])}}}),Ut}())},8740:o=>{o.exports=function(s,_){var j="";s=(s=s||"Run the trap, drop the bass").split("");var $={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:["Ƶ","ɀ"]};return s.forEach(function(_e){_e=_e.toLowerCase();var et=$[_e]||[" "],tt=Math.floor(Math.random()*et.length);j+=$[_e]!==void 0?$[_e][tt]:_e}),j}},6798:o=>{o.exports=function(s,_){s=s||" he is here ";var j={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},$=[].concat(j.up,j.down,j.mid);function _e(tt){return Math.floor(Math.random()*tt)}function et(tt){var nt=!1;return $.filter(function(rt){nt=rt===tt}),nt}return function(tt,nt){var rt,it,st="";for(it in(nt=nt||{}).up=nt.up===void 0||nt.up,nt.mid=nt.mid===void 0||nt.mid,nt.down=nt.down===void 0||nt.down,nt.size=nt.size!==void 0?nt.size:"maxi",tt=tt.split(""))if(!et(it)){switch(st+=tt[it],rt={up:0,down:0,mid:0},nt.size){case"mini":rt.up=_e(8),rt.mid=_e(2),rt.down=_e(8);break;case"maxi":rt.up=_e(16)+3,rt.mid=_e(4)+1,rt.down=_e(64)+3;break;default:rt.up=_e(8)+1,rt.mid=_e(6)/2,rt.down=_e(8)+1}var ut=["up","mid","down"];for(var Ft in ut)for(var dt=ut[Ft],gt=0;gt<=rt[dt];gt++)nt[dt]&&(st+=j[dt][_e(j[dt].length)])}return st}(s,_)}},3427:o=>{o.exports=function(s){return function(_,j,$){if(_===" ")return _;switch(j%3){case 0:return s.red(_);case 1:return s.white(_);case 2:return s.blue(_)}}}},4517:o=>{o.exports=function(s){var _=["red","yellow","green","blue","magenta"];return function(j,$,_e){return j===" "?j:s[_[$++%_.length]](j)}}},6948:o=>{o.exports=function(s){var _=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(j,$,_e){return j===" "?j:s[_[Math.round(Math.random()*(_.length-2))]](j)}}},860:o=>{o.exports=function(s){return function(_,j,$){return j%2==0?_:s.inverse(_)}}},9253:o=>{var s={};o.exports=s;var _={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(_).forEach(function(j){var $=_[j],_e=s[j]=[];_e.open="\x1B["+$[0]+"m",_e.close="\x1B["+$[1]+"m"})},124:o=>{o.exports=function(s,_){var j=(_=_||process.argv||[]).indexOf("--"),$=/^-{1,2}/.test(s)?"":"--",_e=_.indexOf($+s);return _e!==-1&&(j===-1||_e{var j=_(2213),$=_(124),_e=process.env,et=void 0;function tt(nt){return function(rt){return rt!==0&&{level:rt,hasBasic:!0,has256:rt>=2,has16m:rt>=3}}(function(rt){if(et===!1)return 0;if($("color=16m")||$("color=full")||$("color=truecolor"))return 3;if($("color=256"))return 2;if(rt&&!rt.isTTY&&et!==!0)return 0;var it=et?1:0;if(process.platform==="win32"){var st=j.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(st[0])>=10&&Number(st[2])>=10586?Number(st[2])>=14931?3:2:1}return"CI"in _e?["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(ut){return ut in _e})||_e.CI_NAME==="codeship"?1:it:"TEAMCITY_VERSION"in _e?/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_e.TEAMCITY_VERSION)?1:0:("TERM_PROGRAM"in _e&&parseInt("1.104.0".split(".")[0],10),/-256(color)?$/i.test("xterm-256color")?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test("xterm-256color")||"COLORTERM"in _e?1:it)}(nt))}$("no-color")||$("no-colors")||$("color=false")?et=!1:($("color")||$("colors")||$("color=true")||$("color=always"))&&(et=!0),"FORCE_COLOR"in _e&&(et=_e.FORCE_COLOR.length===0||parseInt(_e.FORCE_COLOR,10)!==0),o.exports={supportsColor:tt,stdout:tt(process.stdout),stderr:tt(process.stderr)}},1158:(o,s,_)=>{var j=_(5475);o.exports=j},7147:(o,s,_)=>{o.exports=_(4968)},4968:(o,s,_)=>{var j=_(8636)(function $(_e,et){return(et=et||{}).namespace=_e,et.prod=!0,et.dev=!1,et.force||$.force?$.yep(et):$.nope(et)});o.exports=j},8636:o=>{var s=[],_=[],j=function(){};function $(Ft){return!~s.indexOf(Ft)&&(s.push(Ft),!0)}function _e(Ft){j=Ft}function et(Ft){for(var dt=[],gt=0;gt{function j(Xt){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(xt){return typeof xt}:function(xt){return xt&&typeof Symbol=="function"&&xt.constructor===Symbol&&xt!==Symbol.prototype?"symbol":typeof xt})(Xt)}function $(Xt,xt){for(var It=0;It{Array.isArray(o.__emotion_styles)&&(o.__emotion_styles=s(o.__emotion_styles))};function merge$2(o,s){return s?deepmerge(o,s,{clone:!1}):o}const values={xs:0,sm:600,md:900,lg:1200,xl:1536},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:o=>`@media (min-width:${values[o]}px)`};function handleBreakpoints(o,s,_){const j=o.theme||{};if(Array.isArray(s)){const _e=j.breakpoints||defaultBreakpoints;return s.reduce((et,tt,nt)=>(et[_e.up(_e.keys[nt])]=_(s[nt]),et),{})}if(typeof s=="object"){const _e=j.breakpoints||defaultBreakpoints;return Object.keys(s).reduce((et,tt)=>{if(Object.keys(_e.values||values).indexOf(tt)!==-1){const nt=_e.up(tt);et[nt]=_(s[tt],tt)}else{const nt=tt;et[nt]=s[nt]}return et},{})}return _(s)}function createEmptyBreakpointObject(o={}){var s;return((s=o.keys)==null?void 0:s.reduce((j,$)=>{const _e=o.up($);return j[_e]={},j},{}))||{}}function removeUnusedBreakpoints(o,s){return o.reduce((_,j)=>{const $=_[j];return(!$||Object.keys($).length===0)&&delete _[j],_},s)}function getPath(o,s,_=!0){if(!s||typeof s!="string")return null;if(o&&o.vars&&_){const j=`vars.${s}`.split(".").reduce(($,_e)=>$&&$[_e]?$[_e]:null,o);if(j!=null)return j}return s.split(".").reduce((j,$)=>j&&j[$]!=null?j[$]:null,o)}function getStyleValue(o,s,_,j=_){let $;return typeof o=="function"?$=o(_):Array.isArray(o)?$=o[_]||j:$=getPath(o,_)||j,s&&($=s($,j,o)),$}function style$1(o){const{prop:s,cssProperty:_=o.prop,themeKey:j,transform:$}=o,_e=et=>{if(et[s]==null)return null;const tt=et[s],nt=et.theme,rt=getPath(nt,j)||{};return handleBreakpoints(et,tt,st=>{let ut=getStyleValue(rt,$,st);return st===ut&&typeof st=="string"&&(ut=getStyleValue(rt,$,`${s}${st==="default"?"":capitalize(st)}`,st)),_===!1?ut:{[_]:ut}})};return _e.propTypes={},_e.filterProps=[s],_e}function compose(...o){const s=o.reduce((j,$)=>($.filterProps.forEach(_e=>{j[_e]=$}),j),{}),_=j=>Object.keys(j).reduce(($,_e)=>s[_e]?merge$2($,s[_e](j)):$,{});return _.propTypes={},_.filterProps=o.reduce((j,$)=>j.concat($.filterProps),[]),_}function memoize(o){const s={};return _=>(s[_]===void 0&&(s[_]=o(_)),s[_])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(o=>{if(o.length>2)if(aliases[o])o=aliases[o];else return[o];const[s,_]=o.split(""),j=properties[s],$=directions[_]||"";return Array.isArray($)?$.map(_e=>j+_e):[j+$]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(o,s,_,j){var $;const _e=($=getPath(o,s,!1))!=null?$:_;return typeof _e=="number"?et=>typeof et=="string"?et:_e*et:Array.isArray(_e)?et=>typeof et=="string"?et:_e[et]:typeof _e=="function"?_e:()=>{}}function createUnarySpacing(o){return createUnaryUnit(o,"spacing",8)}function getValue(o,s){if(typeof s=="string"||s==null)return s;const _=Math.abs(s),j=o(_);return s>=0?j:typeof j=="number"?-j:`-${j}`}function getStyleFromPropValue(o,s){return _=>o.reduce((j,$)=>(j[$]=getValue(s,_),j),{})}function resolveCssProperty(o,s,_,j){if(s.indexOf(_)===-1)return null;const $=getCssProperties(_),_e=getStyleFromPropValue($,j),et=o[_];return handleBreakpoints(o,et,_e)}function style(o,s){const _=createUnarySpacing(o.theme);return Object.keys(o).map(j=>resolveCssProperty(o,s,j,_)).reduce(merge$2,{})}function margin(o){return style(o,marginKeys)}margin.propTypes={};margin.filterProps=marginKeys;function padding(o){return style(o,paddingKeys)}padding.propTypes={};padding.filterProps=paddingKeys;function borderTransform(o){return typeof o!="number"?o:`${o}px solid`}const border=style$1({prop:"border",themeKey:"borders",transform:borderTransform}),borderTop=style$1({prop:"borderTop",themeKey:"borders",transform:borderTransform}),borderRight=style$1({prop:"borderRight",themeKey:"borders",transform:borderTransform}),borderBottom=style$1({prop:"borderBottom",themeKey:"borders",transform:borderTransform}),borderLeft=style$1({prop:"borderLeft",themeKey:"borders",transform:borderTransform}),borderColor=style$1({prop:"borderColor",themeKey:"palette"}),borderTopColor=style$1({prop:"borderTopColor",themeKey:"palette"}),borderRightColor=style$1({prop:"borderRightColor",themeKey:"palette"}),borderBottomColor=style$1({prop:"borderBottomColor",themeKey:"palette"}),borderLeftColor=style$1({prop:"borderLeftColor",themeKey:"palette"}),borderRadius=o=>{if(o.borderRadius!==void 0&&o.borderRadius!==null){const s=createUnaryUnit(o.theme,"shape.borderRadius",4),_=j=>({borderRadius:getValue(s,j)});return handleBreakpoints(o,o.borderRadius,_)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius);const gap=o=>{if(o.gap!==void 0&&o.gap!==null){const s=createUnaryUnit(o.theme,"spacing",8),_=j=>({gap:getValue(s,j)});return handleBreakpoints(o,o.gap,_)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=o=>{if(o.columnGap!==void 0&&o.columnGap!==null){const s=createUnaryUnit(o.theme,"spacing",8),_=j=>({columnGap:getValue(s,j)});return handleBreakpoints(o,o.columnGap,_)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=o=>{if(o.rowGap!==void 0&&o.rowGap!==null){const s=createUnaryUnit(o.theme,"spacing",8),_=j=>({rowGap:getValue(s,j)});return handleBreakpoints(o,o.rowGap,_)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$1({prop:"gridColumn"}),gridRow=style$1({prop:"gridRow"}),gridAutoFlow=style$1({prop:"gridAutoFlow"}),gridAutoColumns=style$1({prop:"gridAutoColumns"}),gridAutoRows=style$1({prop:"gridAutoRows"}),gridTemplateColumns=style$1({prop:"gridTemplateColumns"}),gridTemplateRows=style$1({prop:"gridTemplateRows"}),gridTemplateAreas=style$1({prop:"gridTemplateAreas"}),gridArea=style$1({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(o,s){return s==="grey"?s:o}const color$1=style$1({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$1({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$1({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color$1,bgcolor,backgroundColor);function sizingTransform(o){return o<=1&&o!==0?`${o*100}%`:o}const width=style$1({prop:"width",transform:sizingTransform}),maxWidth=o=>{if(o.maxWidth!==void 0&&o.maxWidth!==null){const s=_=>{var j,$,_e;return{maxWidth:((j=o.theme)==null||($=j.breakpoints)==null||(_e=$.values)==null?void 0:_e[_])||values[_]||sizingTransform(_)}};return handleBreakpoints(o,o.maxWidth,s)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$1({prop:"minWidth",transform:sizingTransform}),height=style$1({prop:"height",transform:sizingTransform}),maxHeight=style$1({prop:"maxHeight",transform:sizingTransform}),minHeight=style$1({prop:"minHeight",transform:sizingTransform});style$1({prop:"size",cssProperty:"width",transform:sizingTransform});style$1({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$1({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:o=>({"@media print":{display:o}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...o){const s=o.reduce((j,$)=>j.concat(Object.keys($)),[]),_=new Set(s);return o.every(j=>_.size===Object.keys(j).length)}function callIfFn(o,s){return typeof o=="function"?o(s):o}function unstable_createStyleFunctionSx(){function o(_,j,$,_e){const et={[_]:j,theme:$},tt=_e[_];if(!tt)return{[_]:j};const{cssProperty:nt=_,themeKey:rt,transform:it,style:st}=tt;if(j==null)return null;const ut=getPath($,rt)||{};return st?st(et):handleBreakpoints(et,j,dt=>{let gt=getStyleValue(ut,it,dt);return dt===gt&&typeof dt=="string"&&(gt=getStyleValue(ut,it,`${_}${dt==="default"?"":capitalize(dt)}`,dt)),nt===!1?gt:{[nt]:gt}})}function s(_){var j;const{sx:$,theme:_e={}}=_||{};if(!$)return null;const et=(j=_e.unstable_sxConfig)!=null?j:defaultSxConfig$1;function tt(nt){let rt=nt;if(typeof nt=="function")rt=nt(_e);else if(typeof nt!="object")return nt;if(!rt)return null;const it=createEmptyBreakpointObject(_e.breakpoints),st=Object.keys(it);let ut=it;return Object.keys(rt).forEach(Ft=>{const dt=callIfFn(rt[Ft],_e);if(dt!=null)if(typeof dt=="object")if(et[Ft])ut=merge$2(ut,o(Ft,dt,_e,et));else{const gt=handleBreakpoints({theme:_e},dt,Ut=>({[Ft]:Ut}));objectsHaveSameKeys(gt,dt)?ut[Ft]=s({sx:dt,theme:_e}):ut=merge$2(ut,gt)}else ut=merge$2(ut,o(Ft,dt,_e,et))}),removeUnusedBreakpoints(st,ut)}return Array.isArray($)?$.map(tt):tt($)}return s}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];const styleFunctionSx$1=styleFunctionSx;function _objectWithoutPropertiesLoose$1(o,s){if(o==null)return{};var _={},j=Object.keys(o),$,_e;for(_e=0;_e=0)&&(_[$]=o[$]);return _}function r(o){var s,_,j="";if(typeof o=="string"||typeof o=="number")j+=o;else if(typeof o=="object")if(Array.isArray(o))for(s=0;s{const s=Object.keys(o).map(_=>({key:_,val:o[_]}))||[];return s.sort((_,j)=>_.val-j.val),s.reduce((_,j)=>_extends$1({},_,{[j.key]:j.val}),{})};function createBreakpoints(o){const{values:s={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:_="px",step:j=5}=o,$=_objectWithoutPropertiesLoose$1(o,_excluded$8),_e=sortBreakpointsValues(s),et=Object.keys(_e);function tt(ut){return`@media (min-width:${typeof s[ut]=="number"?s[ut]:ut}${_})`}function nt(ut){return`@media (max-width:${(typeof s[ut]=="number"?s[ut]:ut)-j/100}${_})`}function rt(ut,Ft){const dt=et.indexOf(Ft);return`@media (min-width:${typeof s[ut]=="number"?s[ut]:ut}${_}) and (max-width:${(dt!==-1&&typeof s[et[dt]]=="number"?s[et[dt]]:Ft)-j/100}${_})`}function it(ut){return et.indexOf(ut)+1(j.length===0?[1]:j).map(_e=>{const et=s(_e);return typeof et=="number"?`${et}px`:et}).join(" ");return _.mui=!0,_}const _excluded$7=["breakpoints","palette","spacing","shape"];function createTheme$1(o={},...s){const{breakpoints:_={},palette:j={},spacing:$,shape:_e={}}=o,et=_objectWithoutPropertiesLoose$1(o,_excluded$7),tt=createBreakpoints(_),nt=createSpacing($);let rt=deepmerge({breakpoints:tt,direction:"ltr",components:{},palette:_extends$1({mode:"light"},j),spacing:nt,shape:_extends$1({},shape$1,_e)},et);return rt=s.reduce((it,st)=>deepmerge(it,st),rt),rt.unstable_sxConfig=_extends$1({},defaultSxConfig$1,et==null?void 0:et.unstable_sxConfig),rt.unstable_sx=function(st){return styleFunctionSx$1({sx:st,theme:this})},rt}const ThemeContext=reactExports.createContext(null),ThemeContext$1=ThemeContext;function useTheme$2(){return reactExports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(o,s){return typeof s=="function"?s(o):_extends$1({},o,s)}function ThemeProvider$1(o){const{children:s,theme:_}=o,j=useTheme$2(),$=reactExports.useMemo(()=>{const _e=j===null?_:mergeOuterLocalTheme(j,_);return _e!=null&&(_e[nested]=j!==null),_e},[_,j]);return jsx$1(ThemeContext$1.Provider,{value:$,children:s})}function isObjectEmpty(o){return Object.keys(o).length===0}function useTheme$1(o=null){const s=useTheme$2();return!s||isObjectEmpty(s)?o:s}const systemDefaultTheme$1=createTheme$1();function useTheme(o=systemDefaultTheme$1){return useTheme$1(o)}const _excluded$6=["variant"];function isEmpty$1(o){return o.length===0}function propsToClassKey(o){const{variant:s}=o,_=_objectWithoutPropertiesLoose$1(o,_excluded$6);let j=s||"";return Object.keys(_).sort().forEach($=>{$==="color"?j+=isEmpty$1(j)?o[$]:capitalize(o[$]):j+=`${isEmpty$1(j)?$:capitalize($)}${capitalize(o[$].toString())}`}),j}const _excluded$5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],_excluded2=["theme"],_excluded3=["theme"];function isEmpty(o){return Object.keys(o).length===0}function isStringTag(o){return typeof o=="string"&&o.charCodeAt(0)>96}const getStyleOverrides=(o,s)=>s.components&&s.components[o]&&s.components[o].styleOverrides?s.components[o].styleOverrides:null,getVariantStyles=(o,s)=>{let _=[];s&&s.components&&s.components[o]&&s.components[o].variants&&(_=s.components[o].variants);const j={};return _.forEach($=>{const _e=propsToClassKey($.props);j[_e]=$.style}),j},variantsResolver=(o,s,_,j)=>{var $,_e;const{ownerState:et={}}=o,tt=[],nt=_==null||($=_.components)==null||(_e=$[j])==null?void 0:_e.variants;return nt&&nt.forEach(rt=>{let it=!0;Object.keys(rt.props).forEach(st=>{et[st]!==rt.props[st]&&o[st]!==rt.props[st]&&(it=!1)}),it&&tt.push(s[propsToClassKey(rt.props)])}),tt};function shouldForwardProp(o){return o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"}const systemDefaultTheme=createTheme$1();function createStyled(o={}){const{defaultTheme:s=systemDefaultTheme,rootShouldForwardProp:_=shouldForwardProp,slotShouldForwardProp:j=shouldForwardProp}=o,$=_e=>{const et=isEmpty(_e.theme)?s:_e.theme;return styleFunctionSx$1(_extends$1({},_e,{theme:et}))};return $.__mui_systemSx=!0,(_e,et={})=>{internal_processStyles(_e,pt=>pt.filter(Rt=>!(Rt!=null&&Rt.__mui_systemSx)));const{name:tt,slot:nt,skipVariantsResolver:rt,skipSx:it,overridesResolver:st}=et,ut=_objectWithoutPropertiesLoose$1(et,_excluded$5),Ft=rt!==void 0?rt:nt&&nt!=="Root"||!1,dt=it||!1;let gt,Ut=shouldForwardProp;nt==="Root"?Ut=_:nt?Ut=j:isStringTag(_e)&&(Ut=void 0);const ht=styled$2(_e,_extends$1({shouldForwardProp:Ut,label:gt},ut)),ft=(pt,...Rt)=>{const Qt=Rt?Rt.map(Bt=>typeof Bt=="function"&&Bt.__emotion_real!==Bt?jt=>{let{theme:vt}=jt,mt=_objectWithoutPropertiesLoose$1(jt,_excluded2);return Bt(_extends$1({theme:isEmpty(vt)?s:vt},mt))}:Bt):[];let Nt=pt;tt&&st&&Qt.push(Bt=>{const jt=isEmpty(Bt.theme)?s:Bt.theme,vt=getStyleOverrides(tt,jt);if(vt){const mt={};return Object.entries(vt).forEach(([yt,Vt])=>{mt[yt]=typeof Vt=="function"?Vt(_extends$1({},Bt,{theme:jt})):Vt}),st(Bt,mt)}return null}),tt&&!Ft&&Qt.push(Bt=>{const jt=isEmpty(Bt.theme)?s:Bt.theme;return variantsResolver(Bt,getVariantStyles(tt,jt),jt,tt)}),dt||Qt.push($);const At=Qt.length-Rt.length;if(Array.isArray(pt)&&At>0){const Bt=new Array(At).fill("");Nt=[...pt,...Bt],Nt.raw=[...pt.raw,...Bt]}else typeof pt=="function"&&pt.__emotion_real!==pt&&(Nt=Bt=>{let{theme:jt}=Bt,vt=_objectWithoutPropertiesLoose$1(Bt,_excluded3);return pt(_extends$1({theme:isEmpty(jt)?s:jt},vt))});return ht(Nt,...Qt)};return ht.withConfig&&(ft.withConfig=ht.withConfig),ft}}function getThemeProps(o){const{theme:s,name:_,props:j}=o;return!s||!s.components||!s.components[_]||!s.components[_].defaultProps?j:resolveProps(s.components[_].defaultProps,j)}function useThemeProps$1({props:o,name:s,defaultTheme:_}){const j=useTheme(_);return getThemeProps({theme:j,name:s,props:o})}function clamp(o,s=0,_=1){return Math.min(Math.max(s,o),_)}function hexToRgb(o){o=o.slice(1);const s=new RegExp(`.{1,${o.length>=6?2:1}}`,"g");let _=o.match(s);return _&&_[0].length===1&&(_=_.map(j=>j+j)),_?`rgb${_.length===4?"a":""}(${_.map((j,$)=>$<3?parseInt(j,16):Math.round(parseInt(j,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(o){if(o.type)return o;if(o.charAt(0)==="#")return decomposeColor(hexToRgb(o));const s=o.indexOf("("),_=o.substring(0,s);if(["rgb","rgba","hsl","hsla","color"].indexOf(_)===-1)throw new Error(formatMuiErrorMessage(9,o));let j=o.substring(s+1,o.length-1),$;if(_==="color"){if(j=j.split(" "),$=j.shift(),j.length===4&&j[3].charAt(0)==="/"&&(j[3]=j[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf($)===-1)throw new Error(formatMuiErrorMessage(10,$))}else j=j.split(",");return j=j.map(_e=>parseFloat(_e)),{type:_,values:j,colorSpace:$}}function recomposeColor(o){const{type:s,colorSpace:_}=o;let{values:j}=o;return s.indexOf("rgb")!==-1?j=j.map(($,_e)=>_e<3?parseInt($,10):$):s.indexOf("hsl")!==-1&&(j[1]=`${j[1]}%`,j[2]=`${j[2]}%`),s.indexOf("color")!==-1?j=`${_} ${j.join(" ")}`:j=`${j.join(", ")}`,`${s}(${j})`}function hslToRgb(o){o=decomposeColor(o);const{values:s}=o,_=s[0],j=s[1]/100,$=s[2]/100,_e=j*Math.min($,1-$),et=(rt,it=(rt+_/30)%12)=>$-_e*Math.max(Math.min(it-3,9-it,1),-1);let tt="rgb";const nt=[Math.round(et(0)*255),Math.round(et(8)*255),Math.round(et(4)*255)];return o.type==="hsla"&&(tt+="a",nt.push(s[3])),recomposeColor({type:tt,values:nt})}function getLuminance(o){o=decomposeColor(o);let s=o.type==="hsl"||o.type==="hsla"?decomposeColor(hslToRgb(o)).values:o.values;return s=s.map(_=>(o.type!=="color"&&(_/=255),_<=.03928?_/12.92:((_+.055)/1.055)**2.4)),Number((.2126*s[0]+.7152*s[1]+.0722*s[2]).toFixed(3))}function getContrastRatio(o,s){const _=getLuminance(o),j=getLuminance(s);return(Math.max(_,j)+.05)/(Math.min(_,j)+.05)}function darken(o,s){if(o=decomposeColor(o),s=clamp(s),o.type.indexOf("hsl")!==-1)o.values[2]*=1-s;else if(o.type.indexOf("rgb")!==-1||o.type.indexOf("color")!==-1)for(let _=0;_<3;_+=1)o.values[_]*=1-s;return recomposeColor(o)}function lighten(o,s){if(o=decomposeColor(o),s=clamp(s),o.type.indexOf("hsl")!==-1)o.values[2]+=(100-o.values[2])*s;else if(o.type.indexOf("rgb")!==-1)for(let _=0;_<3;_+=1)o.values[_]+=(255-o.values[_])*s;else if(o.type.indexOf("color")!==-1)for(let _=0;_<3;_+=1)o.values[_]+=(1-o.values[_])*s;return recomposeColor(o)}const EMPTY_THEME={};function InnerThemeProvider(o){const s=useTheme();return jsx$1(ThemeContext$2.Provider,{value:typeof s=="object"?s:EMPTY_THEME,children:o.children})}function ThemeProvider(o){const{children:s,theme:_}=o;return jsx$1(ThemeProvider$1,{theme:_,children:jsx$1(InnerThemeProvider,{children:s})})}function createMixins(o,s){return _extends$1({toolbar:{minHeight:56,[o.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[o.up("sm")]:{minHeight:64}}},s)}const common$1={black:"#000",white:"#fff"},common$2=common$1,grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},grey$1=grey,purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},purple$1=purple,red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},red$1=red,orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},orange$1=orange,blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},blue$1=blue,lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},lightBlue$1=lightBlue,green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},green$1=green,_excluded$4=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$2.white,default:common$2.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$2.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$2.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(o,s,_,j){const $=j.light||j,_e=j.dark||j*1.5;o[s]||(o.hasOwnProperty(_)?o[s]=o[_]:s==="light"?o.light=lighten(o.main,$):s==="dark"&&(o.dark=darken(o.main,_e)))}function getDefaultPrimary(o="light"){return o==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary(o="light"){return o==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError(o="light"){return o==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo(o="light"){return o==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess(o="light"){return o==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning(o="light"){return o==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette(o){const{mode:s="light",contrastThreshold:_=3,tonalOffset:j=.2}=o,$=_objectWithoutPropertiesLoose$1(o,_excluded$4),_e=o.primary||getDefaultPrimary(s),et=o.secondary||getDefaultSecondary(s),tt=o.error||getDefaultError(s),nt=o.info||getDefaultInfo(s),rt=o.success||getDefaultSuccess(s),it=o.warning||getDefaultWarning(s);function st(gt){return getContrastRatio(gt,dark.text.primary)>=_?dark.text.primary:light.text.primary}const ut=({color:gt,name:Ut,mainShade:ht=500,lightShade:ft=300,darkShade:pt=700})=>{if(gt=_extends$1({},gt),!gt.main&>[ht]&&(gt.main=gt[ht]),!gt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,Ut?` (${Ut})`:"",ht));if(typeof gt.main!="string")throw new Error(formatMuiErrorMessage(12,Ut?` (${Ut})`:"",JSON.stringify(gt.main)));return addLightOrDark(gt,"light",ft,j),addLightOrDark(gt,"dark",pt,j),gt.contrastText||(gt.contrastText=st(gt.main)),gt},Ft={dark,light};return deepmerge(_extends$1({common:_extends$1({},common$2),mode:s,primary:ut({color:_e,name:"primary"}),secondary:ut({color:et,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:ut({color:tt,name:"error"}),warning:ut({color:it,name:"warning"}),info:ut({color:nt,name:"info"}),success:ut({color:rt,name:"success"}),grey:grey$1,contrastThreshold:_,getContrastText:st,augmentColor:ut,tonalOffset:j},Ft[s]),$)}const _excluded$3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round$1(o){return Math.round(o*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(o,s){const _=typeof s=="function"?s(o):s,{fontFamily:j=defaultFontFamily,fontSize:$=14,fontWeightLight:_e=300,fontWeightRegular:et=400,fontWeightMedium:tt=500,fontWeightBold:nt=700,htmlFontSize:rt=16,allVariants:it,pxToRem:st}=_,ut=_objectWithoutPropertiesLoose$1(_,_excluded$3),Ft=$/14,dt=st||(ht=>`${ht/rt*Ft}rem`),gt=(ht,ft,pt,Rt,Qt)=>_extends$1({fontFamily:j,fontWeight:ht,fontSize:dt(ft),lineHeight:pt},j===defaultFontFamily?{letterSpacing:`${round$1(Rt/ft)}em`}:{},Qt,it),Ut={h1:gt(_e,96,1.167,-1.5),h2:gt(_e,60,1.2,-.5),h3:gt(et,48,1.167,0),h4:gt(et,34,1.235,.25),h5:gt(et,24,1.334,0),h6:gt(tt,20,1.6,.15),subtitle1:gt(et,16,1.75,.15),subtitle2:gt(tt,14,1.57,.1),body1:gt(et,16,1.5,.15),body2:gt(et,14,1.43,.15),button:gt(tt,14,1.75,.4,caseAllCaps),caption:gt(et,12,1.66,.4),overline:gt(et,12,2.66,1,caseAllCaps)};return deepmerge(_extends$1({htmlFontSize:rt,pxToRem:dt,fontFamily:j,fontSize:$,fontWeightLight:_e,fontWeightRegular:et,fontWeightMedium:tt,fontWeightBold:nt},Ut),ut,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...o){return[`${o[0]}px ${o[1]}px ${o[2]}px ${o[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${o[4]}px ${o[5]}px ${o[6]}px ${o[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${o[8]}px ${o[9]}px ${o[10]}px ${o[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],shadows$1=shadows,_excluded$2=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration$3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(o){return`${Math.round(o)}ms`}function getAutoHeightDuration(o){if(!o)return 0;const s=o/36;return Math.round((4+15*s**.25+s/5)*10)}function createTransitions(o){const s=_extends$1({},easing,o.easing),_=_extends$1({},duration$3,o.duration);return _extends$1({getAutoHeightDuration,create:($=["all"],_e={})=>{const{duration:et=_.standard,easing:tt=s.easeInOut,delay:nt=0}=_e;return _objectWithoutPropertiesLoose$1(_e,_excluded$2),(Array.isArray($)?$:[$]).map(rt=>`${rt} ${typeof et=="string"?et:formatMs(et)} ${tt} ${typeof nt=="string"?nt:formatMs(nt)}`).join(",")}},o,{easing:s,duration:_})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zIndex$1=zIndex,_excluded$1=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(o={},...s){const{mixins:_={},palette:j={},transitions:$={},typography:_e={}}=o,et=_objectWithoutPropertiesLoose$1(o,_excluded$1);if(o.vars)throw new Error(formatMuiErrorMessage(18));const tt=createPalette(j),nt=createTheme$1(o);let rt=deepmerge(nt,{mixins:createMixins(nt.breakpoints,_),palette:tt,shadows:shadows$1.slice(),typography:createTypography(tt,_e),transitions:createTransitions($),zIndex:_extends$1({},zIndex$1)});return rt=deepmerge(rt,et),rt=s.reduce((it,st)=>deepmerge(it,st),rt),rt.unstable_sxConfig=_extends$1({},defaultSxConfig$1,et==null?void 0:et.unstable_sxConfig),rt.unstable_sx=function(st){return styleFunctionSx$1({sx:st,theme:this})},rt}const defaultTheme=createTheme(),defaultTheme$1=defaultTheme;function useThemeProps({props:o,name:s}){return useThemeProps$1({props:o,name:s,defaultTheme:defaultTheme$1})}function GlobalStyles(o){return jsx$1(GlobalStyles$1,_extends$1({},o,{defaultTheme:defaultTheme$1}))}const html=(o,s)=>_extends$1({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},s&&!o.vars&&{colorScheme:o.palette.mode}),body=o=>_extends$1({color:(o.vars||o).palette.text.primary},o.typography.body1,{backgroundColor:(o.vars||o).palette.background.default,"@media print":{backgroundColor:(o.vars||o).palette.common.white}}),styles=(o,s=!1)=>{var _,j;const $={};s&&o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([tt,nt])=>{var rt;$[o.getColorSchemeSelector(tt).replace(/\s*&/,"")]={colorScheme:(rt=nt.palette)==null?void 0:rt.mode}});let _e=_extends$1({html:html(o,s),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:o.typography.fontWeightBold},body:_extends$1({margin:0},body(o),{"&::backdrop":{backgroundColor:(o.vars||o).palette.background.default}})},$);const et=(_=o.components)==null||(j=_.MuiCssBaseline)==null?void 0:j.styleOverrides;return et&&(_e=[_e,et]),_e};function CssBaseline(o){const s=useThemeProps({props:o,name:"MuiCssBaseline"}),{children:_,enableColorScheme:j=!1}=s;return jsxs$1(reactExports.Fragment,{children:[jsx$1(GlobalStyles,{styles:$=>styles($,j)}),_]})}const rootShouldForwardProp=o=>shouldForwardProp(o)&&o!=="classes",styled=createStyled({defaultTheme:defaultTheme$1,rootShouldForwardProp}),styled$1=styled;function getScopedCssBaselineUtilityClass(o){return generateUtilityClass("MuiScopedCssBaseline",o)}generateUtilityClasses("MuiScopedCssBaseline",["root"]);const _excluded=["className","component","enableColorScheme"],useUtilityClasses=o=>{const{classes:s}=o;return composeClasses({root:["root"]},getScopedCssBaselineUtilityClass,s)},ScopedCssBaselineRoot=styled$1("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(o,s)=>s.root})(({theme:o,ownerState:s})=>{const _={};return s.enableColorScheme&&o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([j,$])=>{var _e;_[`&${o.getColorSchemeSelector(j).replace(/\s*&/,"")}`]={colorScheme:(_e=$.palette)==null?void 0:_e.mode}}),_extends$1({},html(o,s.enableColorScheme),body(o),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:o.typography.fontWeightBold}},_)}),ScopedCssBaseline=reactExports.forwardRef(function(s,_){const j=useThemeProps({props:s,name:"MuiScopedCssBaseline"}),{className:$,component:_e="div"}=j,et=_objectWithoutPropertiesLoose$1(j,_excluded),tt=_extends$1({},j,{component:_e}),nt=useUtilityClasses(tt);return jsx$1(ScopedCssBaselineRoot,_extends$1({as:_e,className:clsx(nt.root,$),ref:_,ownerState:tt},et))}),D0=ScopedCssBaseline;var Fr=Object.defineProperty,yr=(o,s,_)=>s in o?Fr(o,s,{enumerable:!0,configurable:!0,writable:!0,value:_}):o[s]=_,me=(o,s,_)=>(yr(o,typeof s!="symbol"?s+"":s,_),_);const DEFAULT_FORMANT_API_URL="https://api.formant.io";function whichFormantApiUrl(o,s,_){try{if(s.get("formant_prod"))return"https://api.formant.io";if(s.get("formant_stage"))return"https://api-stage.formant.io";if(s.get("formant_dev"))return"https://api-dev.formant.io";if(s.get("formant_local"))return"https://api.formant.local";if(s.get("formant_url")){const j=s.get("formant_url");if(j!==null)try{return new URL(j).origin}catch{console.warn(`Ignoring malformed \`formant_url\` url parameter: ${j}`)}}if(_){if(_.includes("app-dev.formant.io")||_.includes("v2-coherence-dev.vercel.app")||_.includes("localhost"))return"https://api-dev.formant.io";if(_.includes("app-stage.formant.io"))return"https://api-stage.formant.io";if(_.includes("app.formant.io")||_.includes("v2-coherence.vercel.app"))return"https://api.formant.io"}}catch{}if(_){if(_.includes("app-dev.formant.io"))return"https://api-dev.formant.io";if(_.includes("app-stage.formant.io"))return"https://api-stage.formant.io";if(_.includes("app.formant.io"))return"https://api.formant.io"}return typeof o<"u"&&"FORMANT_API_URL"in o&&typeof o.FORMANT_API_URL=="string"?o.FORMANT_API_URL:DEFAULT_FORMANT_API_URL}let FORMANT_API_URL=whichFormantApiUrl(typeof window<"u"?window:globalThis,new URLSearchParams(typeof window<"u"&&window.location?window.location.search:void 0),typeof window<"u"&&window.location?window.location.host:void 0);const setFormantApiUrl=o=>{FORMANT_API_URL=o};function addAccessTokenRefreshListener(o){function s(_){const j=_.data;j.type==="auth_token"&&o(j.token)}return window.addEventListener("message",s),()=>{window.removeEventListener("message",s)}}function getCurrentModuleContext(){return typeof window<"u"&&window.location?new URLSearchParams(window.location.search).get("module"):null}function sendAppMessage(o){if(!(window&&window.parent))throw new Error("cannot send message to non-existent parent");window.parent.postMessage(o,"*")}function refreshAuthToken(){const o=getCurrentModuleContext();if(!o)throw new Error("No module context");sendAppMessage({type:"refresh_auth_token",module:o})}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var base64={exports:{}};/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */base64.exports;(function(o,s){(function(_){var j=s,$=o&&o.exports==j&&o,_e=typeof commonjsGlobal=="object"&&commonjsGlobal;(_e.global===_e||_e.window===_e)&&(_=_e);var et=function(dt){this.message=dt};et.prototype=new Error,et.prototype.name="InvalidCharacterError";var tt=function(dt){throw new et(dt)},nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt=/[\t\n\f\r ]/g,it=function(dt){dt=String(dt).replace(rt,"");var gt=dt.length;gt%4==0&&(dt=dt.replace(/==?$/,""),gt=dt.length),(gt%4==1||/[^+a-zA-Z0-9/]/.test(dt))&&tt("Invalid character: the string to be decoded is not correctly encoded.");for(var Ut=0,ht,ft,pt="",Rt=-1;++Rt>(-2*Ut&6)));return pt},st=function(dt){dt=String(dt),/[^\0-\xFF]/.test(dt)&&tt("The string to be encoded contains characters outside of the Latin1 range.");for(var gt=dt.length%3,Ut="",ht=-1,ft,pt,Rt,Qt,Nt=dt.length-gt;++ht>18&63)+nt.charAt(Qt>>12&63)+nt.charAt(Qt>>6&63)+nt.charAt(Qt&63);return gt==2?(ft=dt.charCodeAt(ht)<<8,pt=dt.charCodeAt(++ht),Qt=ft+pt,Ut+=nt.charAt(Qt>>10)+nt.charAt(Qt>>4&63)+nt.charAt(Qt<<2&63)+"="):gt==1&&(Qt=dt.charCodeAt(ht),Ut+=nt.charAt(Qt>>2)+nt.charAt(Qt<<4&63)+"=="),Ut},ut={encode:st,decode:it,version:"1.0.0"};if(j&&!j.nodeType)if($)$.exports=ut;else for(var Ft in ut)ut.hasOwnProperty(Ft)&&(j[Ft]=ut[Ft]);else _.base64=ut})(commonjsGlobal)})(base64,base64.exports);var base64Exports=base64.exports;class LoginFailureError extends Error{constructor(s){super("login failed"),me(this,"reason"),this.reason=s,this.name="LoginFailureError",Object.setPrototypeOf(this,new.target.prototype)}}class LoginChallengedError extends Error{constructor(s){super("login challenged"),me(this,"challenge"),this.challenge=s,this.name="LoginChallengedError",Object.setPrototypeOf(this,new.target.prototype)}}class AuthenticationStore{constructor({apiUrl:s,refreshAuthToken:_,addAccessTokenRefreshListener:j}){me(this,"_refreshToken"),me(this,"_isShareToken",!1),me(this,"_currentOrganization"),me(this,"_currentUser"),me(this,"_defaultDeviceId"),me(this,"_token"),me(this,"_waitingForAuth",new Set),me(this,"_refreshTimer"),me(this,"_apiUrl"),me(this,"_refreshAuthToken"),me(this,"_addAccessTokenRefreshListener"),this._apiUrl=s,this._refreshAuthToken=_,this._addAccessTokenRefreshListener=j}set apiUrl(s){this._apiUrl=s,setFormantApiUrl(s)}get apiUrl(){return this._apiUrl}get token(){return this._token}get currentUser(){return this._currentUser}get currentOrganization(){return this._currentOrganization}get defaultDeviceId(){return this._defaultDeviceId}get refreshToken(){return this._refreshToken}get isShareToken(){return this._isShareToken}async login(s,_,j={}){const{advanced:$=!1}=j;try{const _e=await fetch(`${this._apiUrl}/v1/admin/auth/login`,{method:"POST",body:JSON.stringify({email:s,password:_}),headers:{"Content-Type":"application/json"}}),et=await _e.json();if(_e.status!==200)throw new LoginFailureError(et.message);if("challenge"in et)throw new LoginChallengedError(et.challenge);const{authentication:tt}=et;return await this.loginWithToken(tt.accessToken,tt.refreshToken),$?{result:"success",authentication:tt}:tt}catch(_e){if($||console.error("login() failed",{err:_e}),this._waitingForAuth.forEach(et=>et(!1)),this._waitingForAuth.clear(),!$)throw _e;return _e instanceof LoginChallengedError?{result:"challenged",challenge:_e.challenge}:{result:"failure",reason:_e instanceof LoginFailureError?_e.reason:_e instanceof Error?_e.message:String(_e)}}}async loginWithToken(s,_){var j;const $=JSON.parse(base64Exports.decode(s.split(".")[1]));try{let _e;if(this._isShareToken=$["formant:claims"]&&$["formant:claims"].type=="share",$["formant:claims"]&&(this._currentOrganization=$["formant:claims"].organizationId),$["custom:organization_id"]&&(this._currentOrganization=$["custom:organization_id"]),this._isShareToken||(_e=$.sub),$["formant:claims"]&&$["formant:claims"].userId&&(_e=$["formant:claims"].userId),_e&&((j=this._currentUser)==null?void 0:j.id)!==_e){const et=await fetch(`${this._apiUrl}/v1/admin/users/${_e}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+s}}),tt=await et.json();if(et.status===404)this._currentUser=void 0;else{if(et.status!==200)throw new Error(tt.message);this._currentUser=tt}}this._token=s,this._waitingForAuth.forEach(et=>et(!0))}catch(_e){console.error("loginWithToken() failed",{err:_e}),this._waitingForAuth.forEach(et=>et(!1))}finally{this._waitingForAuth.clear()}_&&(this._refreshToken=_,setInterval(async()=>{if(this._refreshToken){const _e=await(await fetch(`${this._apiUrl}/v1/admin/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:this._refreshToken})})).json();this._token=_e.authentication.accessToken}},1e3*60*60))}isAuthenticated(){return this._token!==void 0}async loginToPeer(s,_,j){if((await fetch(`${s}/login`,{method:"POST",body:JSON.stringify({username:_,password:j}),headers:{"Content-Type":"application/json"}})).status!==200)throw new LoginFailureError("Invalid authentication")}getCurrentUser(){return this._currentUser}async waitTilAuthenticated(){return this.token!==void 0?!0:new Promise(s=>{this._waitingForAuth.add(s)})}async listenForRefresh(){const s=()=>{this._refreshTimer=void 0,this._refreshAuthToken()};this._addAccessTokenRefreshListener(_=>{this._refreshTimer&&clearTimeout(this._refreshTimer),this._refreshTimer=setTimeout(s,36e5),this.loginWithToken(_)}),this._refreshTimer=setTimeout(s,36e5)}async forgotPassword(s){await fetch(`${this._apiUrl}/v1/admin/auth/forgot-password`,{method:"POST",body:JSON.stringify({email:s}),headers:{"Content-Type":"application/json"}})}async confirmForgotPassword(s){return(await fetch(`${this._apiUrl}/v1/admin/auth/confirm-forgot-password`,{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).ok}async respondToNewPasswordRequiredChallenge(s){const _=await fetch(`${this._apiUrl}/v1/admin/auth/respond-to-new-password-required-challenge`,{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}});if(_.ok)return await _.json();throw new Error("respond-to-new-password-required-challenge failed")}async loginWithGoogle(s){return await(await fetch(`${this._apiUrl}/v1/admin/auth/login-google`,{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).json()}async refresh(s){const _=await(await fetch(`${this._apiUrl}/v1/admin/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:s})})).json();await this.loginWithToken(_.authentication.accessToken,s)}async checkSso(s,_){return await(await fetch(`${this._apiUrl}/v1/admin/auth/check-sso`,{method:"POST",body:JSON.stringify({email:s,allowUserAutoCreation:_}),headers:{"Content-Type":"application/json"}})).json()}async loginWithSso(s,_){const j=await(await fetch(`${this._apiUrl}/v1/admin/auth/login-sso`,{method:"POST",body:JSON.stringify({token:s,refreshToken:_}),headers:{"Content-Type":"application/json"}})).json();if(!j.authentication)throw new Error("Failed to login with SSO");return await this.loginWithToken(j.authentication.accessToken,j.authentication.refreshToken)}}const Authentication=new AuthenticationStore({apiUrl:FORMANT_API_URL,refreshAuthToken,addAccessTokenRefreshListener});async function getModuleConfiguration(o){return(await(await fetch(`${FORMANT_API_URL}/v1/admin/module-configurations/${o}`,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).configuration}function disableAnalyticsBottomBar(){sendAppMessage({type:"hide_analytics_date_picker"})}function goToDevice(o){sendAppMessage({type:"go_to_device",deviceId:o})}function goToTime(o){sendAppMessage({type:"go_to_time",time:o.getTime()})}function requestModuleData(){const o=getCurrentModuleContext();if(!o)throw new Error("No module context");sendAppMessage({type:"request_module_data",module:o})}function sendChannelData(o,s){const _=getCurrentModuleContext();if(!_)throw new Error("No module context");sendAppMessage({type:"send_channel_data",source:_,channel:o,data:s})}function setModuleDateTimeRange(o,s){const _=getCurrentModuleContext();if(!_)throw new Error("No module context");sendAppMessage({type:"set_module_data_time_range",module:_,before:o,after:s||0})}function setupModuleMenus(o){const s=getCurrentModuleContext();if(!s)throw new Error("No module context");sendAppMessage({type:"setup_module_menus",module:s,menus:o})}function showMessage(o){sendAppMessage({type:"show_message",message:o})}function addChannelDataListener(o,s){const _=j=>{const $=j.data;$.type==="channel_data"&&$.channel===o&&s({source:$.source,data:$.data})};return window.addEventListener("message",_),()=>window.removeEventListener("message",_)}function addMenuListener(o){const s=_=>{const j=_.data;j.type==="module_menu_item_clicked"&&o(j.menu)};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)}function addModuleConfigurationListener(o){const s=_=>{const j=_.data;j.type==="module_configuration"&&o(j)};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)}function addModuleDataListener(o){const s=getCurrentModuleContext();s&&sendAppMessage({type:"request_module_data",module:s});const _=j=>{const $=j.data;$.type==="module_data"&&o({streams:$.streams,time:$.time,queryRange:$.queryRange})};return window.addEventListener("message",_),()=>window.removeEventListener("message",_)}function addOverviewDeviceListener(o){sendAppMessage({type:"request_devices"});const s=_=>{const j=_.data;j.type==="overview_devices"&&o(j.data)};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)}function _typeof$1(o){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(o)}function toInteger(o){if(o===null||o===!0||o===!1)return NaN;var s=Number(o);return isNaN(s)?s:s<0?Math.ceil(s):Math.floor(s)}function requiredArgs(o,s){if(s.length1?"s":"")+" required, but only "+s.length+" present")}function toDate(o){requiredArgs(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||_typeof$1(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function addDays(o,s){requiredArgs(2,arguments);var _=toDate(o),j=toInteger(s);return isNaN(j)?new Date(NaN):(j&&_.setDate(_.getDate()+j),_)}function addMonths(o,s){requiredArgs(2,arguments);var _=toDate(o),j=toInteger(s);if(isNaN(j))return new Date(NaN);if(!j)return _;var $=_.getDate(),_e=new Date(_.getTime());_e.setMonth(_.getMonth()+j+1,0);var et=_e.getDate();return $>=et?_e:(_.setFullYear(_e.getFullYear(),_e.getMonth(),$),_)}function addMilliseconds(o,s){requiredArgs(2,arguments);var _=toDate(o).getTime(),j=toInteger(s);return new Date(_+j)}var MILLISECONDS_IN_HOUR=36e5;function addHours(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addMilliseconds(o,_*MILLISECONDS_IN_HOUR)}var defaultOptions={};function getDefaultOptions(){return defaultOptions}function startOfWeek(o,s){var _,j,$,_e,et,tt,nt,rt;requiredArgs(1,arguments);var it=getDefaultOptions(),st=toInteger((_=(j=($=(_e=s==null?void 0:s.weekStartsOn)!==null&&_e!==void 0?_e:s==null||(et=s.locale)===null||et===void 0||(tt=et.options)===null||tt===void 0?void 0:tt.weekStartsOn)!==null&&$!==void 0?$:it.weekStartsOn)!==null&&j!==void 0?j:(nt=it.locale)===null||nt===void 0||(rt=nt.options)===null||rt===void 0?void 0:rt.weekStartsOn)!==null&&_!==void 0?_:0);if(!(st>=0&&st<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var ut=toDate(o),Ft=ut.getDay(),dt=(Ft=et)throw new RangeError("Invalid interval");var tt=[],nt=j,rt=Number((_=s==null?void 0:s.step)!==null&&_!==void 0?_:1);if(rt<1||isNaN(rt))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;nt.getTime()<=et;)tt.push(toDate(nt)),nt=addMinutes(nt,rt);return tt}function eachMonthOfInterval(o){requiredArgs(1,arguments);var s=o||{},_=toDate(s.start),j=toDate(s.end),$=j.getTime(),_e=[];if(!(_.getTime()<=$))throw new RangeError("Invalid interval");var et=_;for(et.setHours(0,0,0,0),et.setDate(1);et.getTime()<=$;)_e.push(toDate(et)),et.setMonth(et.getMonth()+1);return _e}function startOfQuarter(o){requiredArgs(1,arguments);var s=toDate(o),_=s.getMonth(),j=_-_%3;return s.setMonth(j,1),s.setHours(0,0,0,0),s}function eachQuarterOfInterval(o){requiredArgs(1,arguments);var s=o||{},_=toDate(s.start),j=toDate(s.end),$=j.getTime();if(!(_.getTime()<=$))throw new RangeError("Invalid interval");var _e=startOfQuarter(_),et=startOfQuarter(j);$=et.getTime();for(var tt=[],nt=_e;nt.getTime()<=$;)tt.push(toDate(nt)),nt=addQuarters(nt,1);return tt}function eachWeekOfInterval(o,s){requiredArgs(1,arguments);var _=o||{},j=toDate(_.start),$=toDate(_.end),_e=$.getTime();if(!(j.getTime()<=_e))throw new RangeError("Invalid interval");var et=startOfWeek(j,s),tt=startOfWeek($,s);et.setHours(15),tt.setHours(15),_e=tt.getTime();for(var nt=[],rt=et;rt.getTime()<=_e;)rt.setHours(0),nt.push(toDate(rt)),rt=addWeeks(rt,1),rt.setHours(15);return nt}function startOfMonth(o){requiredArgs(1,arguments);var s=toDate(o);return s.setDate(1),s.setHours(0,0,0,0),s}function endOfYear(o){requiredArgs(1,arguments);var s=toDate(o),_=s.getFullYear();return s.setFullYear(_+1,0,0),s.setHours(23,59,59,999),s}function startOfYear(o){requiredArgs(1,arguments);var s=toDate(o),_=new Date(0);return _.setFullYear(s.getFullYear(),0,1),_.setHours(0,0,0,0),_}function eachYearOfInterval(o){requiredArgs(1,arguments);var s=o||{},_=toDate(s.start),j=toDate(s.end),$=j.getTime();if(!(_.getTime()<=$))throw new RangeError("Invalid interval");var _e=[],et=_;for(et.setHours(0,0,0,0),et.setMonth(0,1);et.getTime()<=$;)_e.push(toDate(et)),et.setFullYear(et.getFullYear()+1);return _e}function endOfHour(o){requiredArgs(1,arguments);var s=toDate(o);return s.setMinutes(59,59,999),s}function endOfWeek(o,s){var _,j,$,_e,et,tt,nt,rt;requiredArgs(1,arguments);var it=getDefaultOptions(),st=toInteger((_=(j=($=(_e=s==null?void 0:s.weekStartsOn)!==null&&_e!==void 0?_e:s==null||(et=s.locale)===null||et===void 0||(tt=et.options)===null||tt===void 0?void 0:tt.weekStartsOn)!==null&&$!==void 0?$:it.weekStartsOn)!==null&&j!==void 0?j:(nt=it.locale)===null||nt===void 0||(rt=nt.options)===null||rt===void 0?void 0:rt.weekStartsOn)!==null&&_!==void 0?_:0);if(!(st>=0&&st<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var ut=toDate(o),Ft=ut.getDay(),dt=(Ft=1&&Ft<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var dt=new Date(0);dt.setFullYear(st+1,0,Ft),dt.setHours(0,0,0,0);var gt=startOfWeek(dt,s),Ut=new Date(0);Ut.setFullYear(st,0,Ft),Ut.setHours(0,0,0,0);var ht=startOfWeek(Ut,s);return it.getTime()>=gt.getTime()?st+1:it.getTime()>=ht.getTime()?st:st-1}function startOfWeekYear(o,s){var _,j,$,_e,et,tt,nt,rt;requiredArgs(1,arguments);var it=getDefaultOptions(),st=toInteger((_=(j=($=(_e=s==null?void 0:s.firstWeekContainsDate)!==null&&_e!==void 0?_e:s==null||(et=s.locale)===null||et===void 0||(tt=et.options)===null||tt===void 0?void 0:tt.firstWeekContainsDate)!==null&&$!==void 0?$:it.firstWeekContainsDate)!==null&&j!==void 0?j:(nt=it.locale)===null||nt===void 0||(rt=nt.options)===null||rt===void 0?void 0:rt.firstWeekContainsDate)!==null&&_!==void 0?_:1),ut=getWeekYear(o,s),Ft=new Date(0);Ft.setFullYear(ut,0,st),Ft.setHours(0,0,0,0);var dt=startOfWeek(Ft,s);return dt}var MILLISECONDS_IN_WEEK=6048e5;function getWeek(o,s){requiredArgs(1,arguments);var _=toDate(o),j=startOfWeek(_,s).getTime()-startOfWeekYear(_,s).getTime();return Math.round(j/MILLISECONDS_IN_WEEK)+1}function getYear(o){return requiredArgs(1,arguments),toDate(o).getFullYear()}function startOfHour(o){requiredArgs(1,arguments);var s=toDate(o);return s.setMinutes(0,0,0),s}function subDays(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addDays(o,-_)}function roundToNearestMinutes(o,s){var _;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var j=toInteger((_=s==null?void 0:s.nearestTo)!==null&&_!==void 0?_:1);if(j<1||j>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var $=toDate(o),_e=$.getSeconds(),et=$.getMinutes()+_e/60,tt=getRoundingMethod(s==null?void 0:s.roundingMethod),nt=tt(et/j)*j,rt=et%j,it=Math.round(rt/j)*j;return new Date($.getFullYear(),$.getMonth(),$.getDate(),$.getHours(),nt+it)}function subMonths(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addMonths(o,-_)}function subHours(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addHours(o,-_)}function subMinutes(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addMinutes(o,-_)}function subQuarters(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addQuarters(o,-_)}function subWeeks(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addWeeks(o,-_)}function subYears(o,s){requiredArgs(2,arguments);var _=toInteger(s);return addYears(o,-_)}const millisecond$2=1,second$2=1e3,minute$2=60*second$2,hour$2=60*minute$2,day$2=24*hour$2,week$2=7*day$2,month$2=30*day$2,year$2=365*day$2,duration$2={millisecond:millisecond$2,second:second$2,minute:minute$2,hour:hour$2,day:day$2,week:week$2,month:month$2,year:year$2};function filterDataByType$1(o,s){return o.filter(_=>s.includes(_.type))}function filterDataByTime$1(o,s,_){const j=s.getTime(),$=_.getTime();return o.map(_e=>({..._e,points:_e.points.filter(([et])=>et>=j&&et<$)})).filter(({points:_e})=>_e.length>0)}let StoreCache$1=class{constructor({capacity:o,timeout:s}={}){me(this,"entries",new Map),me(this,"metadata",new Map),me(this,"capacity"),me(this,"staleIntervalMs"),this.capacity=o||1e4,this.staleIntervalMs=s||duration$2.minute}get(o,s){const _=this.keyToCacheKey(o);return this.isStale(_)&&!this.isGenerating(_)&&s&&this.generate(o,s),this.entries.get(_)}set(o,s){const _=this.keyToCacheKey(o);this.metadata.set(_,{generating:!1,staleAt:performance.now()+this.staleIntervalMs});const j=this.entries.get(_);JSON.stringify(j)===JSON.stringify(s)||(this.entries.set(_,s),this.enforceMaxSize())}clear(){this.entries.clear(),[...this.metadata.values()].forEach(o=>o.generating=!1)}clearKey(o){this.metadata.delete(o),this.entries.delete(o)}keyToCacheKey(o){return JSON.stringify(o)}enforceMaxSize(){for(;this.metadata.size>this.capacity&&this.metadata.size>0;){const[o]=[...this.metadata.entries()].reduce(([s,_],[j,$])=>$.staleAt<_.staleAt?[j,$]:[s,_]);this.clearKey(o)}}isStale(o){const s=this.metadata.get(o);return s?(s==null?void 0:s.staleAt){const et=this.metadata.get(_);return(et==null?void 0:et.generating)!==$||this.set(o,_e),_e}).catch(_e=>{throw this.metadata.delete(_),_e});this.metadata.set(_,{...j,generating:$,staleAt:performance.now()+this.staleIntervalMs})}};async function queryTelemetry(o){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/queries/queries`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}let QueryStore$1=class{constructor(){me(this,"queryStoreCache",new StoreCache$1({capacity:1e4,timeout:20*duration$2.second})),me(this,"liveQueryStoreCache",new StoreCache$1({capacity:1e4,timeout:200*duration$2.millisecond}))}moduleQuery(o,s,_,j,$,_e=!1){const et={...o,names:[...s],types:[..._]},tt=this.query(et,j,$,_e);return tt===void 0||tt==="too much data"?tt:filterDataByType$1(tt,_)}query(o,s,_,j=!1){const $={...o,start:startOfMinute(s).toISOString(),end:j?_.toISOString():addMinutes(roundToNearestMinutes(_),1).toISOString(),latestOnly:j},_e=_>addSeconds(new Date,-20);let et;return _e?et=this.liveQueryCache($):et=this.queryCache($),!et||et==="too much data"||j?et:filterDataByTime$1(et,s,_)}queryCache(o){return this.queryStoreCache.get(o,async()=>{try{return await queryTelemetry(o)}catch(s){throw s}})}liveQueryCache(o){return this.liveQueryStoreCache.get(o,async()=>{try{return await queryTelemetry(o)}catch(s){throw s}})}};const queryStore=new QueryStore$1;function addStreamListener(o,s,_){const j=$=>{const _e=$.data;if(_e.type==="module_data"){const{start:et,end:tt}=_e.queryRange;_(queryStore.moduleQuery({},o,s,new Date(et),new Date(tt),!1))}};return window.addEventListener("message",j),()=>window.removeEventListener("message",j)}async function getDate(o,s,_){return new Promise(j=>{sendAppMessage({type:"request_date",minTime:s,maxTime:_,time:o});const $=_e=>{const et=_e.data;et.type==="date_response"&&(window.removeEventListener("message",$),j(et.data))};window.addEventListener("message",$)})}async function prompt(o,s){return new Promise(_=>{const j=Math.random().toString();sendAppMessage({type:"prompt",promptId:j,schema:o,okText:s==null?void 0:s.okText,cancelText:s==null?void 0:s.cancelText});const $=_e=>{const et=_e.data;et.type==="prompt_response"&&et.promptId===j&&_(et.data),window.removeEventListener("message",$)};window.addEventListener("message",$)})}const rr=class{static isModule(){return getCurrentModuleContext()!==null}static async getCurrentModuleConfiguration(){let o=new URLSearchParams("");typeof window<"u"&&window.location&&(o=new URLSearchParams(window.location.search));const s=o.get("configuration");if(!(s===null||s.trim()===""))return getModuleConfiguration(s.trim())}static get isOnline(){return rr._isOnline}static listenForConnectionEvents(){const o=s=>{const{data:_}=s;_.type==="formant_online"&&(this._isOnline=_.online)};return window.addEventListener("message",o),()=>window.removeEventListener("message",o)}static checkConnection(o=1e3){return new Promise((s,_)=>{const j=setTimeout(()=>_(new Error("deadline expired: took too long")),o),$=_e=>{window.removeEventListener("message",$),clearTimeout(j);const{data:et}=_e;et.type==="formant_online"&&(this._isOnline=et.online,s(et.online))};window.addEventListener("message",$),sendAppMessage({type:"formant_online"})})}static waitForConnection(o=5e3){let s=!1;const _=new Promise((_e,et)=>{setTimeout(()=>{s=!0,et(new Error("deadline expired: took too long"))},o)}),j=_e=>new Promise(et=>setTimeout(et,_e)),$=async()=>{for(await j(50);!s&&!(this.isOnline||await this.checkConnection);)await j(500)};return Promise.race([_,$()])}};let App$2=rr;me(App$2,"getCurrentModuleContext",getCurrentModuleContext),me(App$2,"disableAnalyticsBottomBar",disableAnalyticsBottomBar),me(App$2,"goToDevice",goToDevice),me(App$2,"goToTime",goToTime),me(App$2,"refreshAuthToken",refreshAuthToken),me(App$2,"requestModuleData",requestModuleData),me(App$2,"sendChannelData",sendChannelData),me(App$2,"setModuleDateTimeRange",setModuleDateTimeRange),me(App$2,"setupModuleMenus",setupModuleMenus),me(App$2,"showMessage",showMessage),me(App$2,"addAccessTokenRefreshListener",addAccessTokenRefreshListener),me(App$2,"addChannelDataListener",addChannelDataListener),me(App$2,"addMenuListener",addMenuListener),me(App$2,"addModuleConfigurationListener",addModuleConfigurationListener),me(App$2,"addModuleDataListener",addModuleDataListener),me(App$2,"addOverviewDeviceListener",addOverviewDeviceListener),me(App$2,"addStreamListener",addStreamListener),me(App$2,"getDate",getDate),me(App$2,"prompt",prompt),me(App$2,"_isOnline",null);class CaptureStream{constructor(s){me(this,"token"),this.captureSession=s}async ingestJSON(s){if(!this.token){const _=await(await fetch(`${FORMANT_API_URL}/v1/admin/capture-sessions/${this.captureSession.code}/authenticate`,{method:"POST"})).json();this.token=_.token}await fetch(`${FORMANT_API_URL}/v1/ingest`,{method:"POST",body:JSON.stringify({deviceId:this.captureSession.deviceId,name:this.captureSession.streamName,type:"json",points:[[Date.now(),JSON.stringify(s)]]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.token}})}}class DataChannel{constructor(s){me(this,"ready",!1),me(this,"listeners",[]),me(this,"openListeners",[]),me(this,"closeListeners",[]),me(this,"errorListeners",[]),me(this,"binaryListeners",[]),me(this,"error"),me(this,"decoder",new TextDecoder),this.dataChannel=s,this.dataChannel.binaryType="arraybuffer",this.dataChannel.onopen=()=>{this.setReady()},this.dataChannel.onclose=()=>{this.ready=!1,this.closeListeners.forEach(_=>_())},this.dataChannel.onerror=_=>{console.error(_),this.error="An error occurred in DataChannel",this.errorListeners.forEach(j=>j(_))},this.dataChannel.onmessage=_=>{this.listeners.forEach(j=>{const $=new Uint8Array(_.data),_e=this.decoder.decode($);j(_e)}),this.binaryListeners.forEach(j=>{j(new Uint8Array(_.data))})}}setReady(){this.ready=!0,this.openListeners.forEach(s=>s())}addOpenListener(s){this.openListeners.push(s)}removeOpenListener(s){this.openListeners=this.openListeners.filter(_=>_!==s)}addCloseListener(s){this.closeListeners.push(s)}removeCloseListener(s){this.closeListeners=this.closeListeners.filter(_=>_!==s)}addErrorListener(s){this.errorListeners.push(s)}removeErrorListener(s){this.errorListeners=this.errorListeners.filter(_=>_!==s)}async waitTilReady(){return this.ready?!0:new Promise((s,_)=>{let j=setInterval(()=>{this.dataChannel.readyState==="open"&&this.setReady(),this.ready&&(clearInterval(j),s(!0)),this.error&&_(this.error)},10)})}send(s){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(s)}sendBinary(s){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(s)}addListener(s){this.listeners.push(s)}removeListener(s){const _=this.listeners.indexOf(s);if(_===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.listeners.splice(_,1)}addBinaryListener(s){this.binaryListeners.push(s)}removeBinaryListener(s){const _=this.binaryListeners.indexOf(s);if(_===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.binaryListeners.splice(_,1)}}function defined$1(o,s){if(o!==void 0)return o;throw new Error(s||"Value is undefined")}function delay$1(o){return new Promise(s=>setTimeout(s,o))}async function createDevice(o){if(!Authentication.token)throw new Error("Not authenticated");return await(await fetch(`${FORMANT_API_URL}/v1/admin/devices`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(o){let s=o.length;for(;--s>=0;)o[s]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(o,s,_,j,$){this.static_tree=o,this.extra_bits=s,this.extra_base=_,this.elems=j,this.max_length=$,this.has_stree=o&&o.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(o,s){this.dyn_tree=o,this.max_code=0,this.stat_desc=s}const d_code=o=>o<256?_dist_code[o]:_dist_code[256+(o>>>7)],put_short=(o,s)=>{o.pending_buf[o.pending++]=s&255,o.pending_buf[o.pending++]=s>>>8&255},send_bits=(o,s,_)=>{o.bi_valid>Buf_size-_?(o.bi_buf|=s<>Buf_size-o.bi_valid,o.bi_valid+=_-Buf_size):(o.bi_buf|=s<{send_bits(o,_[s*2],_[s*2+1])},bi_reverse=(o,s)=>{let _=0;do _|=o&1,o>>>=1,_<<=1;while(--s>0);return _>>>1},bi_flush=o=>{o.bi_valid===16?(put_short(o,o.bi_buf),o.bi_buf=0,o.bi_valid=0):o.bi_valid>=8&&(o.pending_buf[o.pending++]=o.bi_buf&255,o.bi_buf>>=8,o.bi_valid-=8)},gen_bitlen=(o,s)=>{const _=s.dyn_tree,j=s.max_code,$=s.stat_desc.static_tree,_e=s.stat_desc.has_stree,et=s.stat_desc.extra_bits,tt=s.stat_desc.extra_base,nt=s.stat_desc.max_length;let rt,it,st,ut,Ft,dt,gt=0;for(ut=0;ut<=MAX_BITS$1;ut++)o.bl_count[ut]=0;for(_[o.heap[o.heap_max]*2+1]=0,rt=o.heap_max+1;rtnt&&(ut=nt,gt++),_[it*2+1]=ut,!(it>j)&&(o.bl_count[ut]++,Ft=0,it>=tt&&(Ft=et[it-tt]),dt=_[it*2],o.opt_len+=dt*(ut+Ft),_e&&(o.static_len+=dt*($[it*2+1]+Ft)));if(gt!==0){do{for(ut=nt-1;o.bl_count[ut]===0;)ut--;o.bl_count[ut]--,o.bl_count[ut+1]+=2,o.bl_count[nt]--,gt-=2}while(gt>0);for(ut=nt;ut!==0;ut--)for(it=o.bl_count[ut];it!==0;)st=o.heap[--rt],!(st>j)&&(_[st*2+1]!==ut&&(o.opt_len+=(ut-_[st*2+1])*_[st*2],_[st*2+1]=ut),it--)}},gen_codes=(o,s,_)=>{const j=new Array(MAX_BITS$1+1);let $=0,_e,et;for(_e=1;_e<=MAX_BITS$1;_e++)$=$+_[_e-1]<<1,j[_e]=$;for(et=0;et<=s;et++){let tt=o[et*2+1];tt!==0&&(o[et*2]=bi_reverse(j[tt]++,tt))}},tr_static_init=()=>{let o,s,_,j,$;const _e=new Array(MAX_BITS$1+1);for(_=0,j=0;j>=7;j{let s;for(s=0;s{o.bi_valid>8?put_short(o,o.bi_buf):o.bi_valid>0&&(o.pending_buf[o.pending++]=o.bi_buf),o.bi_buf=0,o.bi_valid=0},smaller=(o,s,_,j)=>{const $=s*2,_e=_*2;return o[$]{const j=o.heap[_];let $=_<<1;for(;$<=o.heap_len&&(${let j,$,_e=0,et,tt;if(o.sym_next!==0)do j=o.pending_buf[o.sym_buf+_e++]&255,j+=(o.pending_buf[o.sym_buf+_e++]&255)<<8,$=o.pending_buf[o.sym_buf+_e++],j===0?send_code(o,$,s):(et=_length_code[$],send_code(o,et+LITERALS$1+1,s),tt=extra_lbits[et],tt!==0&&($-=base_length[et],send_bits(o,$,tt)),j--,et=d_code(j),send_code(o,et,_),tt=extra_dbits[et],tt!==0&&(j-=base_dist[et],send_bits(o,j,tt)));while(_e{const _=s.dyn_tree,j=s.stat_desc.static_tree,$=s.stat_desc.has_stree,_e=s.stat_desc.elems;let et,tt,nt=-1,rt;for(o.heap_len=0,o.heap_max=HEAP_SIZE$1,et=0;et<_e;et++)_[et*2]!==0?(o.heap[++o.heap_len]=nt=et,o.depth[et]=0):_[et*2+1]=0;for(;o.heap_len<2;)rt=o.heap[++o.heap_len]=nt<2?++nt:0,_[rt*2]=1,o.depth[rt]=0,o.opt_len--,$&&(o.static_len-=j[rt*2+1]);for(s.max_code=nt,et=o.heap_len>>1;et>=1;et--)pqdownheap(o,_,et);rt=_e;do et=o.heap[1],o.heap[1]=o.heap[o.heap_len--],pqdownheap(o,_,1),tt=o.heap[1],o.heap[--o.heap_max]=et,o.heap[--o.heap_max]=tt,_[rt*2]=_[et*2]+_[tt*2],o.depth[rt]=(o.depth[et]>=o.depth[tt]?o.depth[et]:o.depth[tt])+1,_[et*2+1]=_[tt*2+1]=rt,o.heap[1]=rt++,pqdownheap(o,_,1);while(o.heap_len>=2);o.heap[--o.heap_max]=o.heap[1],gen_bitlen(o,s),gen_codes(_,nt,o.bl_count)},scan_tree=(o,s,_)=>{let j,$=-1,_e,et=s[0*2+1],tt=0,nt=7,rt=4;for(et===0&&(nt=138,rt=3),s[(_+1)*2+1]=65535,j=0;j<=_;j++)_e=et,et=s[(j+1)*2+1],!(++tt{let j,$=-1,_e,et=s[0*2+1],tt=0,nt=7,rt=4;for(et===0&&(nt=138,rt=3),j=0;j<=_;j++)if(_e=et,et=s[(j+1)*2+1],!(++tt{let s;for(scan_tree(o,o.dyn_ltree,o.l_desc.max_code),scan_tree(o,o.dyn_dtree,o.d_desc.max_code),build_tree(o,o.bl_desc),s=BL_CODES$1-1;s>=3&&o.bl_tree[bl_order[s]*2+1]===0;s--);return o.opt_len+=3*(s+1)+5+5+4,s},send_all_trees=(o,s,_,j)=>{let $;for(send_bits(o,s-257,5),send_bits(o,_-1,5),send_bits(o,j-4,4),$=0;${let s=4093624447,_;for(_=0;_<=31;_++,s>>>=1)if(s&1&&o.dyn_ltree[_*2]!==0)return Z_BINARY;if(o.dyn_ltree[9*2]!==0||o.dyn_ltree[10*2]!==0||o.dyn_ltree[13*2]!==0)return Z_TEXT;for(_=32;_{static_init_done||(tr_static_init(),static_init_done=!0),o.l_desc=new TreeDesc(o.dyn_ltree,static_l_desc),o.d_desc=new TreeDesc(o.dyn_dtree,static_d_desc),o.bl_desc=new TreeDesc(o.bl_tree,static_bl_desc),o.bi_buf=0,o.bi_valid=0,init_block(o)},_tr_stored_block$1=(o,s,_,j)=>{send_bits(o,(STORED_BLOCK<<1)+(j?1:0),3),bi_windup(o),put_short(o,_),put_short(o,~_),_&&o.pending_buf.set(o.window.subarray(s,s+_),o.pending),o.pending+=_},_tr_align$1=o=>{send_bits(o,STATIC_TREES<<1,3),send_code(o,END_BLOCK,static_ltree),bi_flush(o)},_tr_flush_block$1=(o,s,_,j)=>{let $,_e,et=0;o.level>0?(o.strm.data_type===Z_UNKNOWN$1&&(o.strm.data_type=detect_data_type(o)),build_tree(o,o.l_desc),build_tree(o,o.d_desc),et=build_bl_tree(o),$=o.opt_len+3+7>>>3,_e=o.static_len+3+7>>>3,_e<=$&&($=_e)):$=_e=_+5,_+4<=$&&s!==-1?_tr_stored_block$1(o,s,_,j):o.strategy===Z_FIXED$1||_e===$?(send_bits(o,(STATIC_TREES<<1)+(j?1:0),3),compress_block(o,static_ltree,static_dtree)):(send_bits(o,(DYN_TREES<<1)+(j?1:0),3),send_all_trees(o,o.l_desc.max_code+1,o.d_desc.max_code+1,et+1),compress_block(o,o.dyn_ltree,o.dyn_dtree)),init_block(o),j&&bi_windup(o)},_tr_tally$1=(o,s,_)=>(o.pending_buf[o.sym_buf+o.sym_next++]=s,o.pending_buf[o.sym_buf+o.sym_next++]=s>>8,o.pending_buf[o.sym_buf+o.sym_next++]=_,s===0?o.dyn_ltree[_*2]++:(o.matches++,s--,o.dyn_ltree[(_length_code[_]+LITERALS$1+1)*2]++,o.dyn_dtree[d_code(s)*2]++),o.sym_next===o.sym_end);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(o,s,_,j)=>{let $=o&65535|0,_e=o>>>16&65535|0,et=0;for(;_!==0;){et=_>2e3?2e3:_,_-=et;do $=$+s[j++]|0,_e=_e+$|0;while(--et);$%=65521,_e%=65521}return $|_e<<16|0};var adler32_1=adler32;const makeTable=()=>{let o,s=[];for(var _=0;_<256;_++){o=_;for(var j=0;j<8;j++)o=o&1?3988292384^o>>>1:o>>>1;s[_]=o}return s},crcTable=new Uint32Array(makeTable()),crc32=(o,s,_,j)=>{const $=crcTable,_e=j+_;o^=-1;for(let et=j;et<_e;et++)o=o>>>8^$[(o^s[et])&255];return o^-1};var crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(o,s)=>(o.msg=messages[s],s),rank=o=>o*2-(o>4?9:0),zero=o=>{let s=o.length;for(;--s>=0;)o[s]=0},slide_hash=o=>{let s,_,j,$=o.w_size;s=o.hash_size,j=s;do _=o.head[--j],o.head[j]=_>=$?_-$:0;while(--s);s=$,j=s;do _=o.prev[--j],o.prev[j]=_>=$?_-$:0;while(--s)};let HASH_ZLIB=(o,s,_)=>(s<{const s=o.state;let _=s.pending;_>o.avail_out&&(_=o.avail_out),_!==0&&(o.output.set(s.pending_buf.subarray(s.pending_out,s.pending_out+_),o.next_out),o.next_out+=_,s.pending_out+=_,o.total_out+=_,o.avail_out-=_,s.pending-=_,s.pending===0&&(s.pending_out=0))},flush_block_only=(o,s)=>{_tr_flush_block(o,o.block_start>=0?o.block_start:-1,o.strstart-o.block_start,s),o.block_start=o.strstart,flush_pending(o.strm)},put_byte=(o,s)=>{o.pending_buf[o.pending++]=s},putShortMSB=(o,s)=>{o.pending_buf[o.pending++]=s>>>8&255,o.pending_buf[o.pending++]=s&255},read_buf=(o,s,_,j)=>{let $=o.avail_in;return $>j&&($=j),$===0?0:(o.avail_in-=$,s.set(o.input.subarray(o.next_in,o.next_in+$),_),o.state.wrap===1?o.adler=adler32_1(o.adler,s,$,_):o.state.wrap===2&&(o.adler=crc32_1(o.adler,s,$,_)),o.next_in+=$,o.total_in+=$,$)},longest_match=(o,s)=>{let _=o.max_chain_length,j=o.strstart,$,_e,et=o.prev_length,tt=o.nice_match;const nt=o.strstart>o.w_size-MIN_LOOKAHEAD?o.strstart-(o.w_size-MIN_LOOKAHEAD):0,rt=o.window,it=o.w_mask,st=o.prev,ut=o.strstart+MAX_MATCH;let Ft=rt[j+et-1],dt=rt[j+et];o.prev_length>=o.good_match&&(_>>=2),tt>o.lookahead&&(tt=o.lookahead);do if($=s,!(rt[$+et]!==dt||rt[$+et-1]!==Ft||rt[$]!==rt[j]||rt[++$]!==rt[j+1])){j+=2,$++;do;while(rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&rt[++j]===rt[++$]&&jet){if(o.match_start=s,et=_e,_e>=tt)break;Ft=rt[j+et-1],dt=rt[j+et]}}while((s=st[s&it])>nt&&--_!==0);return et<=o.lookahead?et:o.lookahead},fill_window=o=>{const s=o.w_size;let _,j,$;do{if(j=o.window_size-o.lookahead-o.strstart,o.strstart>=s+(s-MIN_LOOKAHEAD)&&(o.window.set(o.window.subarray(s,s+s-j),0),o.match_start-=s,o.strstart-=s,o.block_start-=s,o.insert>o.strstart&&(o.insert=o.strstart),slide_hash(o),j+=s),o.strm.avail_in===0)break;if(_=read_buf(o.strm,o.window,o.strstart+o.lookahead,j),o.lookahead+=_,o.lookahead+o.insert>=MIN_MATCH)for($=o.strstart-o.insert,o.ins_h=o.window[$],o.ins_h=HASH(o,o.ins_h,o.window[$+1]);o.insert&&(o.ins_h=HASH(o,o.ins_h,o.window[$+MIN_MATCH-1]),o.prev[$&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=$,$++,o.insert--,!(o.lookahead+o.insert{let _=o.pending_buf_size-5>o.w_size?o.w_size:o.pending_buf_size-5,j,$,_e,et=0,tt=o.strm.avail_in;do{if(j=65535,_e=o.bi_valid+42>>3,o.strm.avail_out<_e||(_e=o.strm.avail_out-_e,$=o.strstart-o.block_start,j>$+o.strm.avail_in&&(j=$+o.strm.avail_in),j>_e&&(j=_e),j<_&&(j===0&&s!==Z_FINISH$3||s===Z_NO_FLUSH$2||j!==$+o.strm.avail_in)))break;et=s===Z_FINISH$3&&j===$+o.strm.avail_in?1:0,_tr_stored_block(o,0,0,et),o.pending_buf[o.pending-4]=j,o.pending_buf[o.pending-3]=j>>8,o.pending_buf[o.pending-2]=~j,o.pending_buf[o.pending-1]=~j>>8,flush_pending(o.strm),$&&($>j&&($=j),o.strm.output.set(o.window.subarray(o.block_start,o.block_start+$),o.strm.next_out),o.strm.next_out+=$,o.strm.avail_out-=$,o.strm.total_out+=$,o.block_start+=$,j-=$),j&&(read_buf(o.strm,o.strm.output,o.strm.next_out,j),o.strm.next_out+=j,o.strm.avail_out-=j,o.strm.total_out+=j)}while(et===0);return tt-=o.strm.avail_in,tt&&(tt>=o.w_size?(o.matches=2,o.window.set(o.strm.input.subarray(o.strm.next_in-o.w_size,o.strm.next_in),0),o.strstart=o.w_size,o.insert=o.strstart):(o.window_size-o.strstart<=tt&&(o.strstart-=o.w_size,o.window.set(o.window.subarray(o.w_size,o.w_size+o.strstart),0),o.matches<2&&o.matches++,o.insert>o.strstart&&(o.insert=o.strstart)),o.window.set(o.strm.input.subarray(o.strm.next_in-tt,o.strm.next_in),o.strstart),o.strstart+=tt,o.insert+=tt>o.w_size-o.insert?o.w_size-o.insert:tt),o.block_start=o.strstart),o.high_water_e&&o.block_start>=o.w_size&&(o.block_start-=o.w_size,o.strstart-=o.w_size,o.window.set(o.window.subarray(o.w_size,o.w_size+o.strstart),0),o.matches<2&&o.matches++,_e+=o.w_size,o.insert>o.strstart&&(o.insert=o.strstart)),_e>o.strm.avail_in&&(_e=o.strm.avail_in),_e&&(read_buf(o.strm,o.window,o.strstart,_e),o.strstart+=_e,o.insert+=_e>o.w_size-o.insert?o.w_size-o.insert:_e),o.high_water>3,_e=o.pending_buf_size-_e>65535?65535:o.pending_buf_size-_e,_=_e>o.w_size?o.w_size:_e,$=o.strstart-o.block_start,($>=_||($||s===Z_FINISH$3)&&s!==Z_NO_FLUSH$2&&o.strm.avail_in===0&&$<=_e)&&(j=$>_e?_e:$,et=s===Z_FINISH$3&&o.strm.avail_in===0&&j===$?1:0,_tr_stored_block(o,o.block_start,j,et),o.block_start+=j,flush_pending(o.strm)),et?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(o,s)=>{let _,j;for(;;){if(o.lookahead=MIN_MATCH&&(o.ins_h=HASH(o,o.ins_h,o.window[o.strstart+MIN_MATCH-1]),_=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),_!==0&&o.strstart-_<=o.w_size-MIN_LOOKAHEAD&&(o.match_length=longest_match(o,_)),o.match_length>=MIN_MATCH)if(j=_tr_tally(o,o.strstart-o.match_start,o.match_length-MIN_MATCH),o.lookahead-=o.match_length,o.match_length<=o.max_lazy_match&&o.lookahead>=MIN_MATCH){o.match_length--;do o.strstart++,o.ins_h=HASH(o,o.ins_h,o.window[o.strstart+MIN_MATCH-1]),_=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart;while(--o.match_length!==0);o.strstart++}else o.strstart+=o.match_length,o.match_length=0,o.ins_h=o.window[o.strstart],o.ins_h=HASH(o,o.ins_h,o.window[o.strstart+1]);else j=_tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++;if(j&&(flush_block_only(o,!1),o.strm.avail_out===0))return BS_NEED_MORE}return o.insert=o.strstart{let _,j,$;for(;;){if(o.lookahead=MIN_MATCH&&(o.ins_h=HASH(o,o.ins_h,o.window[o.strstart+MIN_MATCH-1]),_=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),o.prev_length=o.match_length,o.prev_match=o.match_start,o.match_length=MIN_MATCH-1,_!==0&&o.prev_length4096)&&(o.match_length=MIN_MATCH-1)),o.prev_length>=MIN_MATCH&&o.match_length<=o.prev_length){$=o.strstart+o.lookahead-MIN_MATCH,j=_tr_tally(o,o.strstart-1-o.prev_match,o.prev_length-MIN_MATCH),o.lookahead-=o.prev_length-1,o.prev_length-=2;do++o.strstart<=$&&(o.ins_h=HASH(o,o.ins_h,o.window[o.strstart+MIN_MATCH-1]),_=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart);while(--o.prev_length!==0);if(o.match_available=0,o.match_length=MIN_MATCH-1,o.strstart++,j&&(flush_block_only(o,!1),o.strm.avail_out===0))return BS_NEED_MORE}else if(o.match_available){if(j=_tr_tally(o,0,o.window[o.strstart-1]),j&&flush_block_only(o,!1),o.strstart++,o.lookahead--,o.strm.avail_out===0)return BS_NEED_MORE}else o.match_available=1,o.strstart++,o.lookahead--}return o.match_available&&(j=_tr_tally(o,0,o.window[o.strstart-1]),o.match_available=0),o.insert=o.strstart{let _,j,$,_e;const et=o.window;for(;;){if(o.lookahead<=MAX_MATCH){if(fill_window(o),o.lookahead<=MAX_MATCH&&s===Z_NO_FLUSH$2)return BS_NEED_MORE;if(o.lookahead===0)break}if(o.match_length=0,o.lookahead>=MIN_MATCH&&o.strstart>0&&($=o.strstart-1,j=et[$],j===et[++$]&&j===et[++$]&&j===et[++$])){_e=o.strstart+MAX_MATCH;do;while(j===et[++$]&&j===et[++$]&&j===et[++$]&&j===et[++$]&&j===et[++$]&&j===et[++$]&&j===et[++$]&&j===et[++$]&&$<_e);o.match_length=MAX_MATCH-(_e-$),o.match_length>o.lookahead&&(o.match_length=o.lookahead)}if(o.match_length>=MIN_MATCH?(_=_tr_tally(o,1,o.match_length-MIN_MATCH),o.lookahead-=o.match_length,o.strstart+=o.match_length,o.match_length=0):(_=_tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++),_&&(flush_block_only(o,!1),o.strm.avail_out===0))return BS_NEED_MORE}return o.insert=0,s===Z_FINISH$3?(flush_block_only(o,!0),o.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):o.sym_next&&(flush_block_only(o,!1),o.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(o,s)=>{let _;for(;;){if(o.lookahead===0&&(fill_window(o),o.lookahead===0)){if(s===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(o.match_length=0,_=_tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++,_&&(flush_block_only(o,!1),o.strm.avail_out===0))return BS_NEED_MORE}return o.insert=0,s===Z_FINISH$3?(flush_block_only(o,!0),o.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):o.sym_next&&(flush_block_only(o,!1),o.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config$1(o,s,_,j,$){this.good_length=o,this.max_lazy=s,this.nice_length=_,this.max_chain=j,this.func=$}const configuration_table=[new Config$1(0,0,0,0,deflate_stored),new Config$1(4,4,8,4,deflate_fast),new Config$1(4,5,16,8,deflate_fast),new Config$1(4,6,32,32,deflate_fast),new Config$1(4,4,16,16,deflate_slow),new Config$1(8,16,32,32,deflate_slow),new Config$1(8,16,128,128,deflate_slow),new Config$1(8,32,128,256,deflate_slow),new Config$1(32,128,258,1024,deflate_slow),new Config$1(32,258,258,4096,deflate_slow)],lm_init=o=>{o.window_size=2*o.w_size,zero(o.head),o.max_lazy_match=configuration_table[o.level].max_lazy,o.good_match=configuration_table[o.level].good_length,o.nice_match=configuration_table[o.level].nice_length,o.max_chain_length=configuration_table[o.level].max_chain,o.strstart=0,o.block_start=0,o.lookahead=0,o.insert=0,o.match_length=o.prev_length=MIN_MATCH-1,o.match_available=0,o.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=o=>{if(!o)return 1;const s=o.state;return!s||s.strm!==o||s.status!==INIT_STATE&&s.status!==GZIP_STATE&&s.status!==EXTRA_STATE&&s.status!==NAME_STATE&&s.status!==COMMENT_STATE&&s.status!==HCRC_STATE&&s.status!==BUSY_STATE&&s.status!==FINISH_STATE?1:0},deflateResetKeep=o=>{if(deflateStateCheck(o))return err(o,Z_STREAM_ERROR$2);o.total_in=o.total_out=0,o.data_type=Z_UNKNOWN;const s=o.state;return s.pending=0,s.pending_out=0,s.wrap<0&&(s.wrap=-s.wrap),s.status=s.wrap===2?GZIP_STATE:s.wrap?INIT_STATE:BUSY_STATE,o.adler=s.wrap===2?0:1,s.last_flush=-2,_tr_init(s),Z_OK$3},deflateReset=o=>{const s=deflateResetKeep(o);return s===Z_OK$3&&lm_init(o.state),s},deflateSetHeader=(o,s)=>deflateStateCheck(o)||o.state.wrap!==2?Z_STREAM_ERROR$2:(o.state.gzhead=s,Z_OK$3),deflateInit2=(o,s,_,j,$,_e)=>{if(!o)return Z_STREAM_ERROR$2;let et=1;if(s===Z_DEFAULT_COMPRESSION$1&&(s=6),j<0?(et=0,j=-j):j>15&&(et=2,j-=16),$<1||$>MAX_MEM_LEVEL||_!==Z_DEFLATED$2||j<8||j>15||s<0||s>9||_e<0||_e>Z_FIXED||j===8&&et!==1)return err(o,Z_STREAM_ERROR$2);j===8&&(j=9);const tt=new DeflateState;return o.state=tt,tt.strm=o,tt.status=INIT_STATE,tt.wrap=et,tt.gzhead=null,tt.w_bits=j,tt.w_size=1<deflateInit2(o,s,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(o,s)=>{if(deflateStateCheck(o)||s>Z_BLOCK$1||s<0)return o?err(o,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const _=o.state;if(!o.output||o.avail_in!==0&&!o.input||_.status===FINISH_STATE&&s!==Z_FINISH$3)return err(o,o.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const j=_.last_flush;if(_.last_flush=s,_.pending!==0){if(flush_pending(o),o.avail_out===0)return _.last_flush=-1,Z_OK$3}else if(o.avail_in===0&&rank(s)<=rank(j)&&s!==Z_FINISH$3)return err(o,Z_BUF_ERROR$1);if(_.status===FINISH_STATE&&o.avail_in!==0)return err(o,Z_BUF_ERROR$1);if(_.status===INIT_STATE&&_.wrap===0&&(_.status=BUSY_STATE),_.status===INIT_STATE){let $=Z_DEFLATED$2+(_.w_bits-8<<4)<<8,_e=-1;if(_.strategy>=Z_HUFFMAN_ONLY||_.level<2?_e=0:_.level<6?_e=1:_.level===6?_e=2:_e=3,$|=_e<<6,_.strstart!==0&&($|=PRESET_DICT),$+=31-$%31,putShortMSB(_,$),_.strstart!==0&&(putShortMSB(_,o.adler>>>16),putShortMSB(_,o.adler&65535)),o.adler=1,_.status=BUSY_STATE,flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3}if(_.status===GZIP_STATE){if(o.adler=0,put_byte(_,31),put_byte(_,139),put_byte(_,8),_.gzhead)put_byte(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),put_byte(_,_.gzhead.time&255),put_byte(_,_.gzhead.time>>8&255),put_byte(_,_.gzhead.time>>16&255),put_byte(_,_.gzhead.time>>24&255),put_byte(_,_.level===9?2:_.strategy>=Z_HUFFMAN_ONLY||_.level<2?4:0),put_byte(_,_.gzhead.os&255),_.gzhead.extra&&_.gzhead.extra.length&&(put_byte(_,_.gzhead.extra.length&255),put_byte(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=EXTRA_STATE;else if(put_byte(_,0),put_byte(_,0),put_byte(_,0),put_byte(_,0),put_byte(_,0),put_byte(_,_.level===9?2:_.strategy>=Z_HUFFMAN_ONLY||_.level<2?4:0),put_byte(_,OS_CODE),_.status=BUSY_STATE,flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3}if(_.status===EXTRA_STATE){if(_.gzhead.extra){let $=_.pending,_e=(_.gzhead.extra.length&65535)-_.gzindex;for(;_.pending+_e>_.pending_buf_size;){let tt=_.pending_buf_size-_.pending;if(_.pending_buf.set(_.gzhead.extra.subarray(_.gzindex,_.gzindex+tt),_.pending),_.pending=_.pending_buf_size,_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$)),_.gzindex+=tt,flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3;$=0,_e-=tt}let et=new Uint8Array(_.gzhead.extra);_.pending_buf.set(et.subarray(_.gzindex,_.gzindex+_e),_.pending),_.pending+=_e,_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$)),_.gzindex=0}_.status=NAME_STATE}if(_.status===NAME_STATE){if(_.gzhead.name){let $=_.pending,_e;do{if(_.pending===_.pending_buf_size){if(_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$)),flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3;$=0}_.gzindex<_.gzhead.name.length?_e=_.gzhead.name.charCodeAt(_.gzindex++)&255:_e=0,put_byte(_,_e)}while(_e!==0);_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$)),_.gzindex=0}_.status=COMMENT_STATE}if(_.status===COMMENT_STATE){if(_.gzhead.comment){let $=_.pending,_e;do{if(_.pending===_.pending_buf_size){if(_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$)),flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3;$=0}_.gzindex<_.gzhead.comment.length?_e=_.gzhead.comment.charCodeAt(_.gzindex++)&255:_e=0,put_byte(_,_e)}while(_e!==0);_.gzhead.hcrc&&_.pending>$&&(o.adler=crc32_1(o.adler,_.pending_buf,_.pending-$,$))}_.status=HCRC_STATE}if(_.status===HCRC_STATE){if(_.gzhead.hcrc){if(_.pending+2>_.pending_buf_size&&(flush_pending(o),_.pending!==0))return _.last_flush=-1,Z_OK$3;put_byte(_,o.adler&255),put_byte(_,o.adler>>8&255),o.adler=0}if(_.status=BUSY_STATE,flush_pending(o),_.pending!==0)return _.last_flush=-1,Z_OK$3}if(o.avail_in!==0||_.lookahead!==0||s!==Z_NO_FLUSH$2&&_.status!==FINISH_STATE){let $=_.level===0?deflate_stored(_,s):_.strategy===Z_HUFFMAN_ONLY?deflate_huff(_,s):_.strategy===Z_RLE?deflate_rle(_,s):configuration_table[_.level].func(_,s);if(($===BS_FINISH_STARTED||$===BS_FINISH_DONE)&&(_.status=FINISH_STATE),$===BS_NEED_MORE||$===BS_FINISH_STARTED)return o.avail_out===0&&(_.last_flush=-1),Z_OK$3;if($===BS_BLOCK_DONE&&(s===Z_PARTIAL_FLUSH?_tr_align(_):s!==Z_BLOCK$1&&(_tr_stored_block(_,0,0,!1),s===Z_FULL_FLUSH$1&&(zero(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),flush_pending(o),o.avail_out===0))return _.last_flush=-1,Z_OK$3}return s!==Z_FINISH$3?Z_OK$3:_.wrap<=0?Z_STREAM_END$3:(_.wrap===2?(put_byte(_,o.adler&255),put_byte(_,o.adler>>8&255),put_byte(_,o.adler>>16&255),put_byte(_,o.adler>>24&255),put_byte(_,o.total_in&255),put_byte(_,o.total_in>>8&255),put_byte(_,o.total_in>>16&255),put_byte(_,o.total_in>>24&255)):(putShortMSB(_,o.adler>>>16),putShortMSB(_,o.adler&65535)),flush_pending(o),_.wrap>0&&(_.wrap=-_.wrap),_.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=o=>{if(deflateStateCheck(o))return Z_STREAM_ERROR$2;const s=o.state.status;return o.state=null,s===BUSY_STATE?err(o,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(o,s)=>{let _=s.length;if(deflateStateCheck(o))return Z_STREAM_ERROR$2;const j=o.state,$=j.wrap;if($===2||$===1&&j.status!==INIT_STATE||j.lookahead)return Z_STREAM_ERROR$2;if($===1&&(o.adler=adler32_1(o.adler,s,_,0)),j.wrap=0,_>=j.w_size){$===0&&(zero(j.head),j.strstart=0,j.block_start=0,j.insert=0);let nt=new Uint8Array(j.w_size);nt.set(s.subarray(_-j.w_size,_),0),s=nt,_=j.w_size}const _e=o.avail_in,et=o.next_in,tt=o.input;for(o.avail_in=_,o.next_in=0,o.input=s,fill_window(j);j.lookahead>=MIN_MATCH;){let nt=j.strstart,rt=j.lookahead-(MIN_MATCH-1);do j.ins_h=HASH(j,j.ins_h,j.window[nt+MIN_MATCH-1]),j.prev[nt&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=nt,nt++;while(--rt);j.strstart=nt,j.lookahead=MIN_MATCH-1,fill_window(j)}return j.strstart+=j.lookahead,j.block_start=j.strstart,j.insert=j.lookahead,j.lookahead=0,j.match_length=j.prev_length=MIN_MATCH-1,j.match_available=0,o.next_in=et,o.input=tt,o.avail_in=_e,j.wrap=$,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(o,s)=>Object.prototype.hasOwnProperty.call(o,s);var assign=function(o){const s=Array.prototype.slice.call(arguments,1);for(;s.length;){const _=s.shift();if(_){if(typeof _!="object")throw new TypeError(_+"must be non-object");for(const j in _)_has(_,j)&&(o[j]=_[j])}}return o},flattenChunks=o=>{let s=0;for(let j=0,$=o.length;j<$;j++)s+=o[j].length;const _=new Uint8Array(s);for(let j=0,$=0,_e=o.length;j<_e;j++){let et=o[j];_.set(et,$),$+=et.length}return _},common={assign,flattenChunks};let STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{STR_APPLY_UIA_OK=!1}const _utf8len=new Uint8Array(256);for(let o=0;o<256;o++)_utf8len[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=o=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(o);let s,_,j,$,_e,et=o.length,tt=0;for($=0;$>>6,s[_e++]=128|_&63):_<65536?(s[_e++]=224|_>>>12,s[_e++]=128|_>>>6&63,s[_e++]=128|_&63):(s[_e++]=240|_>>>18,s[_e++]=128|_>>>12&63,s[_e++]=128|_>>>6&63,s[_e++]=128|_&63);return s};const buf2binstring=(o,s)=>{if(s<65534&&o.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,o.length===s?o:o.subarray(0,s));let _="";for(let j=0;j{const _=s||o.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(o.subarray(0,s));let j,$;const _e=new Array(_*2);for($=0,j=0;j<_;){let et=o[j++];if(et<128){_e[$++]=et;continue}let tt=_utf8len[et];if(tt>4){_e[$++]=65533,j+=tt-1;continue}for(et&=tt===2?31:tt===3?15:7;tt>1&&j<_;)et=et<<6|o[j++]&63,tt--;if(tt>1){_e[$++]=65533;continue}et<65536?_e[$++]=et:(et-=65536,_e[$++]=55296|et>>10&1023,_e[$++]=56320|et&1023)}return buf2binstring(_e,$)},utf8border=(o,s)=>{s=s||o.length,s>o.length&&(s=o.length);let _=s-1;for(;_>=0&&(o[_]&192)===128;)_--;return _<0||_===0?s:_+_utf8len[o[_]]>s?_:s},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(o){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},o||{});let s=this.options;s.raw&&s.windowBits>0?s.windowBits=-s.windowBits:s.gzip&&s.windowBits>0&&s.windowBits<16&&(s.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let _=deflate_1$2.deflateInit2(this.strm,s.level,s.method,s.windowBits,s.memLevel,s.strategy);if(_!==Z_OK$2)throw new Error(messages[_]);if(s.header&&deflate_1$2.deflateSetHeader(this.strm,s.header),s.dictionary){let j;if(typeof s.dictionary=="string"?j=strings.string2buf(s.dictionary):toString$1.call(s.dictionary)==="[object ArrayBuffer]"?j=new Uint8Array(s.dictionary):j=s.dictionary,_=deflate_1$2.deflateSetDictionary(this.strm,j),_!==Z_OK$2)throw new Error(messages[_]);this._dict_set=!0}}Deflate$1.prototype.push=function(o,s){const _=this.strm,j=this.options.chunkSize;let $,_e;if(this.ended)return!1;for(s===~~s?_e=s:_e=s===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof o=="string"?_.input=strings.string2buf(o):toString$1.call(o)==="[object ArrayBuffer]"?_.input=new Uint8Array(o):_.input=o,_.next_in=0,_.avail_in=_.input.length;;){if(_.avail_out===0&&(_.output=new Uint8Array(j),_.next_out=0,_.avail_out=j),(_e===Z_SYNC_FLUSH||_e===Z_FULL_FLUSH)&&_.avail_out<=6){this.onData(_.output.subarray(0,_.next_out)),_.avail_out=0;continue}if($=deflate_1$2.deflate(_,_e),$===Z_STREAM_END$2)return _.next_out>0&&this.onData(_.output.subarray(0,_.next_out)),$=deflate_1$2.deflateEnd(this.strm),this.onEnd($),this.ended=!0,$===Z_OK$2;if(_.avail_out===0){this.onData(_.output);continue}if(_e>0&&_.next_out>0){this.onData(_.output.subarray(0,_.next_out)),_.avail_out=0;continue}if(_.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(o){this.chunks.push(o)};Deflate$1.prototype.onEnd=function(o){o===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg};function deflate$1(o,s){const _=new Deflate$1(s);if(_.push(o,!0),_.err)throw _.msg||messages[_.err];return _.result}function deflateRaw$1(o,s){return s=s||{},s.raw=!0,deflate$1(o,s)}function gzip$1(o,s){return s=s||{},s.gzip=!0,deflate$1(o,s)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1;var deflate_1=deflate,fromByteArray_1=fromByteArray,lookup=[],code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i>18&63]+lookup[o>>12&63]+lookup[o>>6&63]+lookup[o&63]}function encodeChunk(o,s,_){for(var j,$=[],_e=s;_e<_;_e+=3)j=(o[_e]<<16&16711680)+(o[_e+1]<<8&65280)+(o[_e+2]&255),$.push(tripletToBase64(j));return $.join("")}function fromByteArray(o){for(var s,_=o.length,j=_%3,$=[],_e=16383,et=0,tt=_-j;ettt?tt:et+_e));return j===1?(s=o[_-1],$.push(lookup[s>>2]+lookup[s<<4&63]+"==")):j===2&&(s=(o[_-2]<<8)+o[_-1],$.push(lookup[s>>10]+lookup[s>>4&63]+lookup[s<<2&63]+"=")),$.join("")}const encoder=new TextEncoder;new TextDecoder;function serializeHash(o){const s=JSON.stringify(o),_=encoder.encode(s),j=deflate_1(_);return fromByteArray_1(j)}async function getViews(){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/admin/views`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}async function createShareLink(o,s){if(!Authentication.token)throw new Error("Not authenticated");const _=(await getViews()).filter(et=>et.name===s);if(_.length===0)return console.warn("View does not exist or it is misspell"),null;const j=await fetch(`${FORMANT_API_URL}/v1/admin/shares`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),$=FORMANT_API_URL.replace("api","app"),{code:_e}=await j.json();return`${$}/shares/${_e}#${serializeHash({viewId:_[0].id})}`}async function disableDevice(o){if(!Authentication.token)throw new Error("Not authenticated");return await(await fetch(`${FORMANT_API_URL}/v1/admin/devices/${o}/disable`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()}const aggregateByDateFunctions={day:{interval:eachDayOfInterval,start:startOfDay,end:endOfDay,sub:subDays,get:getDay},week:{interval:eachWeekOfInterval,start:startOfWeek,end:endOfWeek,sub:subWeeks,get:getWeek},month:{interval:eachMonthOfInterval,start:startOfMonth,end:endOfMonth,sub:subMonths,get:getMonth},year:{interval:eachYearOfInterval,start:startOfYear,end:endOfYear,sub:subYears,get:getYear},hour:{interval:eachHourOfInterval,start:startOfHour,end:endOfHour,sub:subHours,get:getHours},minute:{interval:eachMinuteOfInterval,start:startOfMinute,end:endOfMinute,sub:subMinutes,get:getMinutes},quarter:{interval:eachQuarterOfInterval,start:startOfQuarter,end:endOfQuarter,sub:subQuarters,get:getQuarter}},formatTimeFrameText=(o,s)=>o.split("/")[0]+"/"+o.split("/")[1]+"–"+s.split("/")[0]+"/"+s.split("/")[1];async function queryEvents(o){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/admin/events/query`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}async function eventsCounter(o,s,_,j,$){const _e=aggregateByDateFunctions[s];return await Promise.all(Array(_).fill(0).map(async(et,tt)=>{const nt=new Date(j),rt=_e.sub(_e.start(nt),_-tt-1),it=_e.sub(_e.end(nt),_-tt-1),st=formatTimeFrameText(rt.toLocaleDateString(),it.toLocaleDateString()),ut=await queryEvents({...$,eventTypes:o,start:new Date(rt).toISOString(),end:new Date(it).toISOString()});return{date:st,events:ut}}))}async function getAnnotationCount(o,s){return(await queryEvents({...o,eventTypes:["annotation"]})).filter(_=>!!_.tags&&Object.keys(_.tags).includes(s)).reduce((_,j)=>{const $=j.tags[s];return $ in _?(_[$]+=1,_):(_[$]=1,_)},{})}async function getAnnotationCountByIntervals(o,s,_){const{end:j,start:$}=o,_e=aggregateByDateFunctions[_].interval({start:new Date($),end:new Date(j)}),et=_e.map((nt,rt)=>{const it=new Date(nt).toISOString(),st=rt===_e.length-1?new Date(Date.now()).toISOString():new Date(_e[rt+1]);return getAnnotationCount({...o,start:it,end:st},s)}),tt=await Promise.all(et);return _e.map((nt,rt)=>({date:new Date(nt).toISOString(),annotations:tt[rt]}))}async function getDevicesData(){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/admin/device-details/query`,{method:"POST",body:JSON.stringify({enabled:!0,type:"default"}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}var dist={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(module,exports){(function(o,s){module.exports=s()})(self,()=>(()=>{var __webpack_modules__={5475:(o,s,_)=>{var j={};o.exports=j,j.themes={};var $=_(9208),_e=j.styles=_(9253),et=Object.defineProperties,tt=new RegExp(/[\r\n]+/g);j.supportsColor=_(3822).supportsColor,j.enabled===void 0&&(j.enabled=j.supportsColor()!==!1),j.enable=function(){j.enabled=!0},j.disable=function(){j.enabled=!1},j.stripColors=j.strip=function(Ut){return(""+Ut).replace(/\x1B\[\d+m/g,"")},j.stylize=function(Ut,ht){if(!j.enabled)return Ut+"";var ft=_e[ht];return!ft&&ht in j?j[ht](Ut):ft.open+Ut+ft.close};var nt=/[|\\{}()[\]^$+*?.]/g;function rt(Ut){var ht=function ft(){return Ft.apply(ft,arguments)};return ht._styles=Ut,ht.__proto__=ut,ht}var it,st=(it={},_e.grey=_e.gray,Object.keys(_e).forEach(function(Ut){_e[Ut].closeRe=new RegExp(function(ht){if(typeof ht!="string")throw new TypeError("Expected a string");return ht.replace(nt,"\\$&")}(_e[Ut].close),"g"),it[Ut]={get:function(){return rt(this._styles.concat(Ut))}}}),it),ut=et(function(){},st);function Ft(){var Ut=Array.prototype.slice.call(arguments),ht=Ut.map(function(Nt){return Nt!=null&&Nt.constructor===String?Nt:$.inspect(Nt)}).join(" ");if(!j.enabled||!ht)return ht;for(var ft=ht.indexOf(` +`)!=-1,pt=this._styles,Rt=pt.length;Rt--;){var Qt=_e[pt[Rt]];ht=Qt.open+ht.replace(Qt.closeRe,Qt.open)+Qt.close,ft&&(ht=ht.replace(tt,function(Nt){return Qt.close+Nt+Qt.open}))}return ht}j.setTheme=function(Ut){if(typeof Ut!="string")for(var ht in Ut)(function(ft){j[ft]=function(pt){if(typeof Ut[ft]=="object"){var Rt=pt;for(var Qt in Ut[ft])Rt=j[Ut[ft][Qt]](Rt);return Rt}return j[Ut[ft]](pt)}})(ht);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var dt=function(Ut,ht){var ft=ht.split("");return(ft=ft.map(Ut)).join("")};for(var gt in j.trap=_(8740),j.zalgo=_(6798),j.maps={},j.maps.america=_(3427)(j),j.maps.zebra=_(860)(j),j.maps.rainbow=_(4517)(j),j.maps.random=_(6948)(j),j.maps)(function(Ut){j[Ut]=function(ht){return dt(j.maps[Ut],ht)}})(gt);et(j,function(){var Ut={};return Object.keys(st).forEach(function(ht){Ut[ht]={get:function(){return rt([ht])}}}),Ut}())},8740:o=>{o.exports=function(s,_){var j="";s=(s=s||"Run the trap, drop the bass").split("");var $={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:["Ƶ","ɀ"]};return s.forEach(function(_e){_e=_e.toLowerCase();var et=$[_e]||[" "],tt=Math.floor(Math.random()*et.length);j+=$[_e]!==void 0?$[_e][tt]:_e}),j}},6798:o=>{o.exports=function(s,_){s=s||" he is here ";var j={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},$=[].concat(j.up,j.down,j.mid);function _e(tt){return Math.floor(Math.random()*tt)}function et(tt){var nt=!1;return $.filter(function(rt){nt=rt===tt}),nt}return function(tt,nt){var rt,it,st="";for(it in(nt=nt||{}).up=nt.up===void 0||nt.up,nt.mid=nt.mid===void 0||nt.mid,nt.down=nt.down===void 0||nt.down,nt.size=nt.size!==void 0?nt.size:"maxi",tt=tt.split(""))if(!et(it)){switch(st+=tt[it],rt={up:0,down:0,mid:0},nt.size){case"mini":rt.up=_e(8),rt.mid=_e(2),rt.down=_e(8);break;case"maxi":rt.up=_e(16)+3,rt.mid=_e(4)+1,rt.down=_e(64)+3;break;default:rt.up=_e(8)+1,rt.mid=_e(6)/2,rt.down=_e(8)+1}var ut=["up","mid","down"];for(var Ft in ut)for(var dt=ut[Ft],gt=0;gt<=rt[dt];gt++)nt[dt]&&(st+=j[dt][_e(j[dt].length)])}return st}(s,_)}},3427:o=>{o.exports=function(s){return function(_,j,$){if(_===" ")return _;switch(j%3){case 0:return s.red(_);case 1:return s.white(_);case 2:return s.blue(_)}}}},4517:o=>{o.exports=function(s){var _=["red","yellow","green","blue","magenta"];return function(j,$,_e){return j===" "?j:s[_[$++%_.length]](j)}}},6948:o=>{o.exports=function(s){var _=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(j,$,_e){return j===" "?j:s[_[Math.round(Math.random()*(_.length-2))]](j)}}},860:o=>{o.exports=function(s){return function(_,j,$){return j%2==0?_:s.inverse(_)}}},9253:o=>{var s={};o.exports=s;var _={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(_).forEach(function(j){var $=_[j],_e=s[j]=[];_e.open="\x1B["+$[0]+"m",_e.close="\x1B["+$[1]+"m"})},124:o=>{o.exports=function(s,_){var j=(_=_||process.argv||[]).indexOf("--"),$=/^-{1,2}/.test(s)?"":"--",_e=_.indexOf($+s);return _e!==-1&&(j===-1||_e{var j=_(2213),$=_(124),_e={NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'},et=void 0;function tt(nt){return function(rt){return rt!==0&&{level:rt,hasBasic:!0,has256:rt>=2,has16m:rt>=3}}(function(rt){if(et===!1)return 0;if($("color=16m")||$("color=full")||$("color=truecolor"))return 3;if($("color=256"))return 2;if(rt&&!rt.isTTY&&et!==!0)return 0;var it=et?1:0;if(process.platform==="win32"){var st=j.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(st[0])>=10&&Number(st[2])>=10586?Number(st[2])>=14931?3:2:1}return"CI"in _e?["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(ut){return ut in _e})||_e.CI_NAME==="codeship"?1:it:"TEAMCITY_VERSION"in _e?/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_e.TEAMCITY_VERSION)?1:0:("TERM_PROGRAM"in _e&&parseInt("1.104.0".split(".")[0],10),/-256(color)?$/i.test("xterm-256color")?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test("xterm-256color")||"COLORTERM"in _e?1:it)}(nt))}$("no-color")||$("no-colors")||$("color=false")?et=!1:($("color")||$("colors")||$("color=true")||$("color=always"))&&(et=!0),"FORCE_COLOR"in _e&&(et=_e.FORCE_COLOR.length===0||parseInt(_e.FORCE_COLOR,10)!==0),o.exports={supportsColor:tt,stdout:tt(process.stdout),stderr:tt(process.stderr)}},1158:(o,s,_)=>{var j=_(5475);o.exports=j},7147:(o,s,_)=>{o.exports=_(4968)},4968:(o,s,_)=>{var j=_(8636)(function $(_e,et){return(et=et||{}).namespace=_e,et.prod=!0,et.dev=!1,et.force||$.force?$.yep(et):$.nope(et)});o.exports=j},8636:o=>{var s=[],_=[],j=function(){};function $(Ft){return!~s.indexOf(Ft)&&(s.push(Ft),!0)}function _e(Ft){j=Ft}function et(Ft){for(var dt=[],gt=0;gt{function j(Xt){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(xt){return typeof xt}:function(xt){return xt&&typeof Symbol=="function"&&xt.constructor===Symbol&&xt!==Symbol.prototype?"symbol":typeof xt})(Xt)}function $(Xt,xt){for(var It=0;It{function j(Ft){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(dt){return typeof dt}:function(dt){return dt&&typeof Symbol=="function"&&dt.constructor===Symbol&&dt!==Symbol.prototype?"symbol":typeof dt})(Ft)}function $(Ft,dt){return($=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(gt,Ut){return gt.__proto__=Ut,gt})(Ft,dt)}function _e(Ft){var dt=function(){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}}();return function(){var gt,Ut=tt(Ft);if(dt){var ht=tt(this).constructor;gt=Reflect.construct(Ut,arguments,ht)}else gt=Ut.apply(this,arguments);return et(this,gt)}}function et(Ft,dt){if(dt&&(j(dt)==="object"||typeof dt=="function"))return dt;if(dt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(gt){if(gt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return gt}(Ft)}function tt(Ft){return(tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(dt){return dt.__proto__||Object.getPrototypeOf(dt)})(Ft)}var nt,rt,it={};function st(Ft,dt,gt){gt||(gt=Error);var Ut=function(ht){(function(Qt,Nt){if(typeof Nt!="function"&&Nt!==null)throw new TypeError("Super expression must either be null or a function");Qt.prototype=Object.create(Nt&&Nt.prototype,{constructor:{value:Qt,writable:!0,configurable:!0}}),Object.defineProperty(Qt,"prototype",{writable:!1}),Nt&&$(Qt,Nt)})(Rt,ht);var ft,pt=_e(Rt);function Rt(Qt,Nt,At){var kt;return function(Bt,jt){if(!(Bt instanceof jt))throw new TypeError("Cannot call a class as a function")}(this,Rt),(kt=pt.call(this,function(Bt,jt,vt){return typeof dt=="string"?dt:dt(Bt,jt,vt)}(Qt,Nt,At))).code=Ft,kt}return ft=Rt,Object.defineProperty(ft,"prototype",{writable:!1}),ft}(gt);it[Ft]=Ut}function ut(Ft,dt){if(Array.isArray(Ft)){var gt=Ft.length;return Ft=Ft.map(function(Ut){return String(Ut)}),gt>2?"one of ".concat(dt," ").concat(Ft.slice(0,gt-1).join(", "),", or ")+Ft[gt-1]:gt===2?"one of ".concat(dt," ").concat(Ft[0]," or ").concat(Ft[1]):"of ".concat(dt," ").concat(Ft[0])}return"of ".concat(dt," ").concat(String(Ft))}st("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),st("ERR_INVALID_ARG_TYPE",function(Ft,dt,gt){var Ut,ht,ft;if(nt===void 0&&(nt=_(6093)),nt(typeof Ft=="string","'name' must be a string"),typeof dt=="string"&&(ht="not ",dt.substr(0,ht.length)===ht)?(Ut="must not be",dt=dt.replace(/^not /,"")):Ut="must be",function(Rt,Qt,Nt){return(Nt===void 0||Nt>Rt.length)&&(Nt=Rt.length),Rt.substring(Nt-Qt.length,Nt)===Qt}(Ft," argument"))ft="The ".concat(Ft," ").concat(Ut," ").concat(ut(dt,"type"));else{var pt=function(Rt,Qt,Nt){return typeof Nt!="number"&&(Nt=0),!(Nt+Qt.length>Rt.length)&&Rt.indexOf(Qt,Nt)!==-1}(Ft,".")?"property":"argument";ft='The "'.concat(Ft,'" ').concat(pt," ").concat(Ut," ").concat(ut(dt,"type"))}return ft+=". Received type ".concat(j(gt))},TypeError),st("ERR_INVALID_ARG_VALUE",function(Ft,dt){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";rt===void 0&&(rt=_(9208));var Ut=rt.inspect(dt);return Ut.length>128&&(Ut="".concat(Ut.slice(0,128),"...")),"The argument '".concat(Ft,"' ").concat(gt,". Received ").concat(Ut)},TypeError),st("ERR_INVALID_RETURN_VALUE",function(Ft,dt,gt){var Ut;return Ut=gt&>.constructor&>.constructor.name?"instance of ".concat(gt.constructor.name):"type ".concat(j(gt)),"Expected ".concat(Ft,' to be returned from the "').concat(dt,'"')+" function but got ".concat(Ut,".")},TypeError),st("ERR_MISSING_ARGS",function(){for(var Ft=arguments.length,dt=new Array(Ft),gt=0;gt0,"At least one arg needs to be specified");var Ut="The ",ht=dt.length;switch(dt=dt.map(function(ft){return'"'.concat(ft,'"')}),ht){case 1:Ut+="".concat(dt[0]," argument");break;case 2:Ut+="".concat(dt[0]," and ").concat(dt[1]," arguments");break;default:Ut+=dt.slice(0,ht-1).join(", "),Ut+=", and ".concat(dt[ht-1]," arguments")}return"".concat(Ut," must be specified")},TypeError),o.exports.codes=it},5656:(o,s,_)=>{function j(tn,an){return function(Kt){if(Array.isArray(Kt))return Kt}(tn)||function(Kt,Un){var Bn=Kt==null?null:typeof Symbol<"u"&&Kt[Symbol.iterator]||Kt["@@iterator"];if(Bn!=null){var hn,En,Cn,Tt,Zt=[],Ot=!0,sn=!1;try{if(Cn=(Bn=Bn.call(Kt)).next,Un===0){if(Object(Bn)!==Bn)return;Ot=!1}else for(;!(Ot=(hn=Cn.call(Bn)).done)&&(Zt.push(hn.value),Zt.length!==Un);Ot=!0);}catch(ln){sn=!0,En=ln}finally{try{if(!Ot&&Bn.return!=null&&(Tt=Bn.return(),Object(Tt)!==Tt))return}finally{if(sn)throw En}}return Zt}}(tn,an)||function(Kt,Un){if(Kt){if(typeof Kt=="string")return $(Kt,Un);var Bn=Object.prototype.toString.call(Kt).slice(8,-1);if(Bn==="Object"&&Kt.constructor&&(Bn=Kt.constructor.name),Bn==="Map"||Bn==="Set")return Array.from(Kt);if(Bn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Bn))return $(Kt,Un)}}(tn,an)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $(tn,an){(an==null||an>tn.length)&&(an=tn.length);for(var Kt=0,Un=new Array(an);Kt10)return!0;for(var an=0;an57)return!0}return tn.length===10&&tn>=Math.pow(2,32)}function Jt(tn){return Object.keys(tn).filter(Et).concat(it(tn).filter(Object.prototype.propertyIsEnumerable.bind(tn)))}function Pt(tn,an){if(tn===an)return 0;for(var Kt=tn.length,Un=an.length,Bn=0,hn=Math.min(Kt,Un);Bn{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(rt){return(0,_e.isAsync)(rt)?function(...it){const st=it.pop();return tt(rt.apply(this,it),st)}:(0,j.default)(function(it,st){var ut;try{ut=rt.apply(this,it)}catch(Ft){return st(Ft)}if(ut&&typeof ut.then=="function")return tt(ut,st);st(null,ut)})};var j=et(_(6172)),$=et(_(6857)),_e=_(1214);function et(rt){return rt&&rt.__esModule?rt:{default:rt}}function tt(rt,it){return rt.then(st=>{nt(it,null,st)},st=>{nt(it,st&&(st instanceof Error||st.message)?st:new Error(st))})}function nt(rt,it,st){try{rt(it,st)}catch(ut){(0,$.default)(Ft=>{throw Ft},ut)}}o.exports=s.default},108:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0});var j=it(_(7804)),$=it(_(1371)),_e=it(_(7485)),et=it(_(6297)),tt=it(_(6083)),nt=it(_(1214)),rt=it(_(6280));function it(Ft){return Ft&&Ft.__esModule?Ft:{default:Ft}}function st(Ft,dt,gt){gt=(0,et.default)(gt);var Ut=0,ht=0,{length:ft}=Ft,pt=!1;function Rt(Qt,Nt){Qt===!1&&(pt=!0),pt!==!0&&(Qt?gt(Qt):++ht!==ft&&Nt!==$.default||gt(null))}for(ft===0&>(null);Ut{Object.defineProperty(s,"__esModule",{value:!0});var j=et(_(6513)),$=et(_(1214)),_e=et(_(6280));function et(tt){return tt&&tt.__esModule?tt:{default:tt}}s.default=(0,_e.default)(function(tt,nt,rt,it){return(0,j.default)(nt)(tt,(0,$.default)(rt),it)},4),o.exports=s.default},5313:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0});var j=_e(_(7485)),$=_e(_(6280));function _e(et){return et&&et.__esModule?et:{default:et}}s.default=(0,$.default)(function(et,tt,nt){return(0,j.default)(et,1,tt,nt)},3),o.exports=s.default},5236:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0});var j=tt(_(108)),$=tt(_(4344)),_e=tt(_(1214)),et=tt(_(6280));function tt(nt){return nt&&nt.__esModule?nt:{default:nt}}s.default=(0,et.default)(function(nt,rt,it){return(0,j.default)(nt,(0,$.default)((0,_e.default)(rt)),it)},3),o.exports=s.default},6959:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(et,tt,nt,rt){let it=!1,st=!1,ut=!1,Ft=0,dt=0;function gt(){Ft>=tt||ut||it||(ut=!0,et.next().then(({value:ft,done:pt})=>{if(!st&&!it){if(ut=!1,pt)return it=!0,void(Ft<=0&&rt(null));Ft++,nt(ft,dt,Ut),dt++,gt()}}).catch(ht))}function Ut(ft,pt){if(Ft-=1,!st)return ft?ht(ft):ft===!1?(it=!0,void(st=!0)):pt===_e.default||it&&Ft<=0?(it=!0,rt(null)):void gt()}function ht(ft){st||(ut=!1,it=!0,rt(ft))}gt()};var j,$=_(1371),_e=(j=$)&&j.__esModule?j:{default:j};o.exports=s.default},6280:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_,j){if(j||(j=_.length),!j)throw new Error("arity is undefined");return function(...$){return typeof $[j-1]=="function"?_.apply(this,$):new Promise((_e,et)=>{$[j-1]=(tt,...nt)=>{if(tt)return et(tt);_e(nt.length>1?nt:nt[0])},_.apply(this,$)})}},o.exports=s.default},1371:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default={},o.exports=s.default},6513:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0});var j=rt(_(6297)),$=rt(_(1586)),_e=rt(_(6083)),et=_(1214),tt=rt(_(6959)),nt=rt(_(1371));function rt(it){return it&&it.__esModule?it:{default:it}}s.default=it=>(st,ut,Ft)=>{if(Ft=(0,j.default)(Ft),it<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!st)return Ft(null);if((0,et.isAsyncGenerator)(st))return(0,tt.default)(st,it,ut,Ft);if((0,et.isAsyncIterable)(st))return(0,tt.default)(st[Symbol.asyncIterator](),it,ut,Ft);var dt=(0,$.default)(st),gt=!1,Ut=!1,ht=0,ft=!1;function pt(Qt,Nt){if(!Ut)if(ht-=1,Qt)gt=!0,Ft(Qt);else if(Qt===!1)gt=!0,Ut=!0;else{if(Nt===nt.default||gt&&ht<=0)return gt=!0,Ft(null);ft||Rt()}}function Rt(){for(ft=!0;ht{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){return _[Symbol.iterator]&&_[Symbol.iterator]()},o.exports=s.default},6172:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){return function(...j){var $=j.pop();return _.call(this,j,$)}},o.exports=s.default},7804:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){return _&&typeof _.length=="number"&&_.length>=0&&_.length%1==0},o.exports=s.default},1586:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(et){if((0,j.default)(et))return function(ut){var Ft=-1,dt=ut.length;return function(){return++Ft{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){function j(...$){if(_!==null){var _e=_;_=null,_e.apply(this,$)}}return Object.assign(j,_),j},o.exports=s.default},6083:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){return function(...j){if(_===null)throw new Error("Callback was already called.");var $=_;_=null,$.apply(this,j)}},o.exports=s.default},7075:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0});var j=et(_(7804)),$=et(_(1214)),_e=et(_(6280));function et(tt){return tt&&tt.__esModule?tt:{default:tt}}s.default=(0,_e.default)((tt,nt,rt)=>{var it=(0,j.default)(nt)?[]:{};tt(nt,(st,ut,Ft)=>{(0,$.default)(st)((dt,...gt)=>{gt.length<2&&([gt]=gt),it[ut]=gt,Ft(dt)})},st=>rt(st,it))},3),o.exports=s.default},6857:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.fallback=et,s.wrap=tt;var _,j=s.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,$=s.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,_e=s.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function et(nt){setTimeout(nt,0)}function tt(nt){return(rt,...it)=>nt(()=>rt(...it))}_=j?queueMicrotask:$?setImmediate:_e?process.nextTick:et,s.default=tt(_)},4344:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){return(j,$,_e)=>_(j,_e)},o.exports=s.default},1214:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.isAsyncIterable=s.isAsyncGenerator=s.isAsync=void 0;var j,$=_(2530),_e=(j=$)&&j.__esModule?j:{default:j};function et(tt){return tt[Symbol.toStringTag]==="AsyncFunction"}s.default=function(tt){if(typeof tt!="function")throw new Error("expected a function");return et(tt)?(0,_e.default)(tt):tt},s.isAsync=et,s.isAsyncGenerator=function(tt){return tt[Symbol.toStringTag]==="AsyncGenerator"},s.isAsyncIterable=function(tt){return typeof tt[Symbol.asyncIterator]=="function"}},481:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(et,tt){return(0,j.default)($.default,et,tt)};var j=_e(_(7075)),$=_e(_(5313));function _e(et){return et&&et.__esModule?et:{default:et}}o.exports=s.default},7991:(o,s)=>{s.byteLength=function(it){var st=nt(it),ut=st[0],Ft=st[1];return 3*(ut+Ft)/4-Ft},s.toByteArray=function(it){var st,ut,Ft=nt(it),dt=Ft[0],gt=Ft[1],Ut=new $(function(pt,Rt,Qt){return 3*(Rt+Qt)/4-Qt}(0,dt,gt)),ht=0,ft=gt>0?dt-4:dt;for(ut=0;ut>16&255,Ut[ht++]=st>>8&255,Ut[ht++]=255&st;return gt===2&&(st=j[it.charCodeAt(ut)]<<2|j[it.charCodeAt(ut+1)]>>4,Ut[ht++]=255&st),gt===1&&(st=j[it.charCodeAt(ut)]<<10|j[it.charCodeAt(ut+1)]<<4|j[it.charCodeAt(ut+2)]>>2,Ut[ht++]=st>>8&255,Ut[ht++]=255&st),Ut},s.fromByteArray=function(it){for(var st,ut=it.length,Ft=ut%3,dt=[],gt=0,Ut=ut-Ft;gtUt?Ut:gt+16383));return Ft===1?(st=it[ut-1],dt.push(_[st>>2]+_[st<<4&63]+"==")):Ft===2&&(st=(it[ut-2]<<8)+it[ut-1],dt.push(_[st>>10]+_[st>>4&63]+_[st<<2&63]+"=")),dt.join("")};for(var _=[],j=[],$=typeof Uint8Array<"u"?Uint8Array:Array,_e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",et=0,tt=_e.length;et0)throw new Error("Invalid string. Length must be a multiple of 4");var ut=it.indexOf("=");return ut===-1&&(ut=st),[ut,ut===st?0:4-ut%4]}function rt(it,st,ut){for(var Ft,dt,gt=[],Ut=st;Ut>18&63]+_[dt>>12&63]+_[dt>>6&63]+_[63&dt]);return gt.join("")}j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63},9811:(o,s,_)=>{var j=_(6093),$=_(2495),_e=_(6446),et=_(8142),tt=_(7200);for(var nt in tt)s[nt]=tt[nt];s.NONE=0,s.DEFLATE=1,s.INFLATE=2,s.GZIP=3,s.GUNZIP=4,s.DEFLATERAW=5,s.INFLATERAW=6,s.UNZIP=7;function rt(it){if(typeof it!="number"||its.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=it,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}rt.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,j(this.init_done,"close before init"),j(this.mode<=s.UNZIP),this.mode===s.DEFLATE||this.mode===s.GZIP||this.mode===s.DEFLATERAW?_e.deflateEnd(this.strm):this.mode!==s.INFLATE&&this.mode!==s.GUNZIP&&this.mode!==s.INFLATERAW&&this.mode!==s.UNZIP||et.inflateEnd(this.strm),this.mode=s.NONE,this.dictionary=null)},rt.prototype.write=function(it,st,ut,Ft,dt,gt,Ut){return this._write(!0,it,st,ut,Ft,dt,gt,Ut)},rt.prototype.writeSync=function(it,st,ut,Ft,dt,gt,Ut){return this._write(!1,it,st,ut,Ft,dt,gt,Ut)},rt.prototype._write=function(it,st,ut,Ft,dt,gt,Ut,ht){if(j.equal(arguments.length,8),j(this.init_done,"write before init"),j(this.mode!==s.NONE,"already finalized"),j.equal(!1,this.write_in_progress,"write already in progress"),j.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,j.equal(!1,st===void 0,"must provide flush value"),this.write_in_progress=!0,st!==s.Z_NO_FLUSH&&st!==s.Z_PARTIAL_FLUSH&&st!==s.Z_SYNC_FLUSH&&st!==s.Z_FULL_FLUSH&&st!==s.Z_FINISH&&st!==s.Z_BLOCK)throw new Error("Invalid flush value");if(ut==null&&(ut=Buffer.alloc(0),dt=0,Ft=0),this.strm.avail_in=dt,this.strm.input=ut,this.strm.next_in=Ft,this.strm.avail_out=ht,this.strm.output=gt,this.strm.next_out=Ut,this.flush=st,!it)return this._process(),this._checkError()?this._afterSync():void 0;var ft=this;return process.nextTick(function(){ft._process(),ft._after()}),this},rt.prototype._afterSync=function(){var it=this.strm.avail_out,st=this.strm.avail_in;return this.write_in_progress=!1,[st,it]},rt.prototype._process=function(){var it=null;switch(this.mode){case s.DEFLATE:case s.GZIP:case s.DEFLATERAW:this.err=_e.deflate(this.strm,this.flush);break;case s.UNZIP:switch(this.strm.avail_in>0&&(it=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(it===null)break;if(this.strm.input[it]!==31){this.mode=s.INFLATE;break}if(this.gzip_id_bytes_read=1,it++,this.strm.avail_in===1)break;case 1:if(it===null)break;this.strm.input[it]===139?(this.gzip_id_bytes_read=2,this.mode=s.GUNZIP):this.mode=s.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case s.INFLATE:case s.GUNZIP:case s.INFLATERAW:for(this.err=et.inflate(this.strm,this.flush),this.err===s.Z_NEED_DICT&&this.dictionary&&(this.err=et.inflateSetDictionary(this.strm,this.dictionary),this.err===s.Z_OK?this.err=et.inflate(this.strm,this.flush):this.err===s.Z_DATA_ERROR&&(this.err=s.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===s.GUNZIP&&this.err===s.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=et.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},rt.prototype._checkError=function(){switch(this.err){case s.Z_OK:case s.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===s.Z_FINISH)return this._error("unexpected end of file"),!1;break;case s.Z_STREAM_END:break;case s.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},rt.prototype._after=function(){if(this._checkError()){var it=this.strm.avail_out,st=this.strm.avail_in;this.write_in_progress=!1,this.callback(st,it),this.pending_close&&this.close()}},rt.prototype._error=function(it){this.strm.msg&&(it=this.strm.msg),this.onerror(it,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},rt.prototype.init=function(it,st,ut,Ft,dt){j(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),j(it>=8&&it<=15,"invalid windowBits"),j(st>=-1&&st<=9,"invalid compression level"),j(ut>=1&&ut<=9,"invalid memlevel"),j(Ft===s.Z_FILTERED||Ft===s.Z_HUFFMAN_ONLY||Ft===s.Z_RLE||Ft===s.Z_FIXED||Ft===s.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(st,it,ut,Ft,dt),this._setDictionary()},rt.prototype.params=function(){throw new Error("deflateParams Not supported")},rt.prototype.reset=function(){this._reset(),this._setDictionary()},rt.prototype._init=function(it,st,ut,Ft,dt){switch(this.level=it,this.windowBits=st,this.memLevel=ut,this.strategy=Ft,this.flush=s.Z_NO_FLUSH,this.err=s.Z_OK,this.mode!==s.GZIP&&this.mode!==s.GUNZIP||(this.windowBits+=16),this.mode===s.UNZIP&&(this.windowBits+=32),this.mode!==s.DEFLATERAW&&this.mode!==s.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new $,this.mode){case s.DEFLATE:case s.GZIP:case s.DEFLATERAW:this.err=_e.deflateInit2(this.strm,this.level,s.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case s.INFLATE:case s.GUNZIP:case s.INFLATERAW:case s.UNZIP:this.err=et.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==s.Z_OK&&this._error("Init error"),this.dictionary=dt,this.write_in_progress=!1,this.init_done=!0},rt.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=s.Z_OK,this.mode){case s.DEFLATE:case s.DEFLATERAW:this.err=_e.deflateSetDictionary(this.strm,this.dictionary)}this.err!==s.Z_OK&&this._error("Failed to set dictionary")}},rt.prototype._reset=function(){switch(this.err=s.Z_OK,this.mode){case s.DEFLATE:case s.DEFLATERAW:case s.GZIP:this.err=_e.deflateReset(this.strm);break;case s.INFLATE:case s.INFLATERAW:case s.GUNZIP:this.err=et.inflateReset(this.strm)}this.err!==s.Z_OK&&this._error("Failed to reset stream")},s.Zlib=rt},7946:(o,s,_)=>{var j=_(1048).Buffer,$=_(1983).Transform,_e=_(9811),et=_(9208),tt=_(6093).ok,nt=_(1048).kMaxLength,rt="Cannot create final Buffer. It would be larger than 0x"+nt.toString(16)+" bytes";_e.Z_MIN_WINDOWBITS=8,_e.Z_MAX_WINDOWBITS=15,_e.Z_DEFAULT_WINDOWBITS=15,_e.Z_MIN_CHUNK=64,_e.Z_MAX_CHUNK=1/0,_e.Z_DEFAULT_CHUNK=16384,_e.Z_MIN_MEMLEVEL=1,_e.Z_MAX_MEMLEVEL=9,_e.Z_DEFAULT_MEMLEVEL=8,_e.Z_MIN_LEVEL=-1,_e.Z_MAX_LEVEL=9,_e.Z_DEFAULT_LEVEL=_e.Z_DEFAULT_COMPRESSION;for(var it=Object.keys(_e),st=0;st=nt?qt=new RangeError(rt):zt=j.concat(Jt,Pt),Jt=[],Vt.close(),Et(qt,zt)}Vt.on("error",function(zt){Vt.removeListener("end",Mt),Vt.removeListener("readable",Yt),Et(zt)}),Vt.on("end",Mt),Vt.end(wt),Yt()}function ft(Vt,wt){if(typeof wt=="string"&&(wt=j.from(wt)),!j.isBuffer(wt))throw new TypeError("Not a string or buffer");var Et=Vt._finishFlushFlag;return Vt._processChunk(wt,Et)}function pt(Vt){if(!(this instanceof pt))return new pt(Vt);vt.call(this,Vt,_e.DEFLATE)}function Rt(Vt){if(!(this instanceof Rt))return new Rt(Vt);vt.call(this,Vt,_e.INFLATE)}function Qt(Vt){if(!(this instanceof Qt))return new Qt(Vt);vt.call(this,Vt,_e.GZIP)}function Nt(Vt){if(!(this instanceof Nt))return new Nt(Vt);vt.call(this,Vt,_e.GUNZIP)}function At(Vt){if(!(this instanceof At))return new At(Vt);vt.call(this,Vt,_e.DEFLATERAW)}function kt(Vt){if(!(this instanceof kt))return new kt(Vt);vt.call(this,Vt,_e.INFLATERAW)}function Bt(Vt){if(!(this instanceof Bt))return new Bt(Vt);vt.call(this,Vt,_e.UNZIP)}function jt(Vt){return Vt===_e.Z_NO_FLUSH||Vt===_e.Z_PARTIAL_FLUSH||Vt===_e.Z_SYNC_FLUSH||Vt===_e.Z_FULL_FLUSH||Vt===_e.Z_FINISH||Vt===_e.Z_BLOCK}function vt(Vt,wt){var Et=this;if(this._opts=Vt=Vt||{},this._chunkSize=Vt.chunkSize||s.Z_DEFAULT_CHUNK,$.call(this,Vt),Vt.flush&&!jt(Vt.flush))throw new Error("Invalid flush flag: "+Vt.flush);if(Vt.finishFlush&&!jt(Vt.finishFlush))throw new Error("Invalid flush flag: "+Vt.finishFlush);if(this._flushFlag=Vt.flush||_e.Z_NO_FLUSH,this._finishFlushFlag=Vt.finishFlush!==void 0?Vt.finishFlush:_e.Z_FINISH,Vt.chunkSize&&(Vt.chunkSizes.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+Vt.chunkSize);if(Vt.windowBits&&(Vt.windowBitss.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+Vt.windowBits);if(Vt.level&&(Vt.levels.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+Vt.level);if(Vt.memLevel&&(Vt.memLevels.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+Vt.memLevel);if(Vt.strategy&&Vt.strategy!=s.Z_FILTERED&&Vt.strategy!=s.Z_HUFFMAN_ONLY&&Vt.strategy!=s.Z_RLE&&Vt.strategy!=s.Z_FIXED&&Vt.strategy!=s.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+Vt.strategy);if(Vt.dictionary&&!j.isBuffer(Vt.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new _e.Zlib(wt);var Jt=this;this._hadError=!1,this._handle.onerror=function(Mt,zt){mt(Jt),Jt._hadError=!0;var qt=new Error(Mt);qt.errno=zt,qt.code=s.codes[zt],Jt.emit("error",qt)};var Pt=s.Z_DEFAULT_COMPRESSION;typeof Vt.level=="number"&&(Pt=Vt.level);var Yt=s.Z_DEFAULT_STRATEGY;typeof Vt.strategy=="number"&&(Yt=Vt.strategy),this._handle.init(Vt.windowBits||s.Z_DEFAULT_WINDOWBITS,Pt,Vt.memLevel||s.Z_DEFAULT_MEMLEVEL,Yt,Vt.dictionary),this._buffer=j.allocUnsafe(this._chunkSize),this._offset=0,this._level=Pt,this._strategy=Yt,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!Et._handle},configurable:!0,enumerable:!0})}function mt(Vt,wt){wt&&process.nextTick(wt),Vt._handle&&(Vt._handle.close(),Vt._handle=null)}function yt(Vt){Vt.emit("close")}Object.defineProperty(s,"codes",{enumerable:!0,value:Object.freeze(Ft),writable:!1}),s.Deflate=pt,s.Inflate=Rt,s.Gzip=Qt,s.Gunzip=Nt,s.DeflateRaw=At,s.InflateRaw=kt,s.Unzip=Bt,s.createDeflate=function(Vt){return new pt(Vt)},s.createInflate=function(Vt){return new Rt(Vt)},s.createDeflateRaw=function(Vt){return new At(Vt)},s.createInflateRaw=function(Vt){return new kt(Vt)},s.createGzip=function(Vt){return new Qt(Vt)},s.createGunzip=function(Vt){return new Nt(Vt)},s.createUnzip=function(Vt){return new Bt(Vt)},s.deflate=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new pt(wt),Vt,Et)},s.deflateSync=function(Vt,wt){return ft(new pt(wt),Vt)},s.gzip=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new Qt(wt),Vt,Et)},s.gzipSync=function(Vt,wt){return ft(new Qt(wt),Vt)},s.deflateRaw=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new At(wt),Vt,Et)},s.deflateRawSync=function(Vt,wt){return ft(new At(wt),Vt)},s.unzip=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new Bt(wt),Vt,Et)},s.unzipSync=function(Vt,wt){return ft(new Bt(wt),Vt)},s.inflate=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new Rt(wt),Vt,Et)},s.inflateSync=function(Vt,wt){return ft(new Rt(wt),Vt)},s.gunzip=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new Nt(wt),Vt,Et)},s.gunzipSync=function(Vt,wt){return ft(new Nt(wt),Vt)},s.inflateRaw=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new kt(wt),Vt,Et)},s.inflateRawSync=function(Vt,wt){return ft(new kt(wt),Vt)},et.inherits(vt,$),vt.prototype.params=function(Vt,wt,Et){if(Vts.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+Vt);if(wt!=s.Z_FILTERED&&wt!=s.Z_HUFFMAN_ONLY&&wt!=s.Z_RLE&&wt!=s.Z_FIXED&&wt!=s.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+wt);if(this._level!==Vt||this._strategy!==wt){var Jt=this;this.flush(_e.Z_SYNC_FLUSH,function(){tt(Jt._handle,"zlib binding closed"),Jt._handle.params(Vt,wt),Jt._hadError||(Jt._level=Vt,Jt._strategy=wt,Et&&Et())})}else process.nextTick(Et)},vt.prototype.reset=function(){return tt(this._handle,"zlib binding closed"),this._handle.reset()},vt.prototype._flush=function(Vt){this._transform(j.alloc(0),"",Vt)},vt.prototype.flush=function(Vt,wt){var Et=this,Jt=this._writableState;(typeof Vt=="function"||Vt===void 0&&!wt)&&(wt=Vt,Vt=_e.Z_FULL_FLUSH),Jt.ended?wt&&process.nextTick(wt):Jt.ending?wt&&this.once("end",wt):Jt.needDrain?wt&&this.once("drain",function(){return Et.flush(Vt,wt)}):(this._flushFlag=Vt,this.write(j.alloc(0),"",wt))},vt.prototype.close=function(Vt){mt(this,Vt),process.nextTick(yt,this)},vt.prototype._transform=function(Vt,wt,Et){var Jt,Pt=this._writableState,Yt=(Pt.ending||Pt.ended)&&(!Vt||Pt.length===Vt.length);return Vt===null||j.isBuffer(Vt)?this._handle?(Yt?Jt=this._finishFlushFlag:(Jt=this._flushFlag,Vt.length>=Pt.length&&(this._flushFlag=this._opts.flush||_e.Z_NO_FLUSH)),void this._processChunk(Vt,Jt,Et)):Et(new Error("zlib binding closed")):Et(new Error("invalid input"))},vt.prototype._processChunk=function(Vt,wt,Et){var Jt=Vt&&Vt.length,Pt=this._chunkSize-this._offset,Yt=0,Mt=this,zt=typeof Et=="function";if(!zt){var qt,Xt=[],xt=0;this.on("error",function(an){qt=an}),tt(this._handle,"zlib binding closed");do var It=this._handle.writeSync(wt,Vt,Yt,Jt,this._buffer,this._offset,Pt);while(!this._hadError&&tn(It[0],It[1]));if(this._hadError)throw qt;if(xt>=nt)throw mt(this),new RangeError(rt);var $t=j.concat(Xt,xt);return mt(this),$t}tt(this._handle,"zlib binding closed");var un=this._handle.write(wt,Vt,Yt,Jt,this._buffer,this._offset,Pt);function tn(an,Kt){if(this&&(this.buffer=null,this.callback=null),!Mt._hadError){var Un=Pt-Kt;if(tt(Un>=0,"have should not go down"),Un>0){var Bn=Mt._buffer.slice(Mt._offset,Mt._offset+Un);Mt._offset+=Un,zt?Mt.push(Bn):(Xt.push(Bn),xt+=Bn.length)}if((Kt===0||Mt._offset>=Mt._chunkSize)&&(Pt=Mt._chunkSize,Mt._offset=0,Mt._buffer=j.allocUnsafe(Mt._chunkSize)),Kt===0){if(Yt+=Jt-an,Jt=an,!zt)return!0;var hn=Mt._handle.write(wt,Vt,Yt,Jt,Mt._buffer,Mt._offset,Mt._chunkSize);return hn.callback=tn,void(hn.buffer=Vt)}if(!zt)return!1;Et()}}un.buffer=Vt,un.callback=tn},et.inherits(pt,vt),et.inherits(Rt,vt),et.inherits(Qt,vt),et.inherits(Nt,vt),et.inherits(At,vt),et.inherits(kt,vt),et.inherits(Bt,vt)},1048:(o,s,_)=>{const j=_(7991),$=_(9318),_e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;s.Buffer=tt,s.SlowBuffer=function(Tt){return+Tt!=Tt&&(Tt=0),tt.alloc(+Tt)},s.INSPECT_MAX_BYTES=50;function et(Tt){if(Tt>2147483647)throw new RangeError('The value "'+Tt+'" is invalid for option "size"');const Zt=new Uint8Array(Tt);return Object.setPrototypeOf(Zt,tt.prototype),Zt}function tt(Tt,Zt,Ot){if(typeof Tt=="number"){if(typeof Zt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return it(Tt)}return nt(Tt,Zt,Ot)}function nt(Tt,Zt,Ot){if(typeof Tt=="string")return function(cn,fn){if(typeof fn=="string"&&fn!==""||(fn="utf8"),!tt.isEncoding(fn))throw new TypeError("Unknown encoding: "+fn);const _n=0|dt(cn,fn);let On=et(_n);const xn=On.write(cn,fn);return xn!==_n&&(On=On.slice(0,xn)),On}(Tt,Zt);if(ArrayBuffer.isView(Tt))return function(cn){if(Un(cn,Uint8Array)){const fn=new Uint8Array(cn);return ut(fn.buffer,fn.byteOffset,fn.byteLength)}return st(cn)}(Tt);if(Tt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Tt);if(Un(Tt,ArrayBuffer)||Tt&&Un(Tt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Un(Tt,SharedArrayBuffer)||Tt&&Un(Tt.buffer,SharedArrayBuffer)))return ut(Tt,Zt,Ot);if(typeof Tt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const sn=Tt.valueOf&&Tt.valueOf();if(sn!=null&&sn!==Tt)return tt.from(sn,Zt,Ot);const ln=function(cn){if(tt.isBuffer(cn)){const fn=0|Ft(cn.length),_n=et(fn);return _n.length===0||cn.copy(_n,0,0,fn),_n}if(cn.length!==void 0)return typeof cn.length!="number"||Bn(cn.length)?et(0):st(cn);if(cn.type==="Buffer"&&Array.isArray(cn.data))return st(cn.data)}(Tt);if(ln)return ln;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Tt[Symbol.toPrimitive]=="function")return tt.from(Tt[Symbol.toPrimitive]("string"),Zt,Ot);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Tt)}function rt(Tt){if(typeof Tt!="number")throw new TypeError('"size" argument must be of type number');if(Tt<0)throw new RangeError('The value "'+Tt+'" is invalid for option "size"')}function it(Tt){return rt(Tt),et(Tt<0?0:0|Ft(Tt))}function st(Tt){const Zt=Tt.length<0?0:0|Ft(Tt.length),Ot=et(Zt);for(let sn=0;sn=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647 .toString(16)+" bytes");return 0|Tt}function dt(Tt,Zt){if(tt.isBuffer(Tt))return Tt.length;if(ArrayBuffer.isView(Tt)||Un(Tt,ArrayBuffer))return Tt.byteLength;if(typeof Tt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Tt);const Ot=Tt.length,sn=arguments.length>2&&arguments[2]===!0;if(!sn&&Ot===0)return 0;let ln=!1;for(;;)switch(Zt){case"ascii":case"latin1":case"binary":return Ot;case"utf8":case"utf-8":return tn(Tt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ot;case"hex":return Ot>>>1;case"base64":return an(Tt).length;default:if(ln)return sn?-1:tn(Tt).length;Zt=(""+Zt).toLowerCase(),ln=!0}}function gt(Tt,Zt,Ot){let sn=!1;if((Zt===void 0||Zt<0)&&(Zt=0),Zt>this.length||((Ot===void 0||Ot>this.length)&&(Ot=this.length),Ot<=0)||(Ot>>>=0)<=(Zt>>>=0))return"";for(Tt||(Tt="utf8");;)switch(Tt){case"hex":return mt(this,Zt,Ot);case"utf8":case"utf-8":return Bt(this,Zt,Ot);case"ascii":return jt(this,Zt,Ot);case"latin1":case"binary":return vt(this,Zt,Ot);case"base64":return kt(this,Zt,Ot);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yt(this,Zt,Ot);default:if(sn)throw new TypeError("Unknown encoding: "+Tt);Tt=(Tt+"").toLowerCase(),sn=!0}}function Ut(Tt,Zt,Ot){const sn=Tt[Zt];Tt[Zt]=Tt[Ot],Tt[Ot]=sn}function ht(Tt,Zt,Ot,sn,ln){if(Tt.length===0)return-1;if(typeof Ot=="string"?(sn=Ot,Ot=0):Ot>2147483647?Ot=2147483647:Ot<-2147483648&&(Ot=-2147483648),Bn(Ot=+Ot)&&(Ot=ln?0:Tt.length-1),Ot<0&&(Ot=Tt.length+Ot),Ot>=Tt.length){if(ln)return-1;Ot=Tt.length-1}else if(Ot<0){if(!ln)return-1;Ot=0}if(typeof Zt=="string"&&(Zt=tt.from(Zt,sn)),tt.isBuffer(Zt))return Zt.length===0?-1:ft(Tt,Zt,Ot,sn,ln);if(typeof Zt=="number")return Zt&=255,typeof Uint8Array.prototype.indexOf=="function"?ln?Uint8Array.prototype.indexOf.call(Tt,Zt,Ot):Uint8Array.prototype.lastIndexOf.call(Tt,Zt,Ot):ft(Tt,[Zt],Ot,sn,ln);throw new TypeError("val must be string, number or Buffer")}function ft(Tt,Zt,Ot,sn,ln){let cn,fn=1,_n=Tt.length,On=Zt.length;if(sn!==void 0&&((sn=String(sn).toLowerCase())==="ucs2"||sn==="ucs-2"||sn==="utf16le"||sn==="utf-16le")){if(Tt.length<2||Zt.length<2)return-1;fn=2,_n/=2,On/=2,Ot/=2}function xn(Ln,Pn){return fn===1?Ln[Pn]:Ln.readUInt16BE(Pn*fn)}if(ln){let Ln=-1;for(cn=Ot;cn<_n;cn++)if(xn(Tt,cn)===xn(Zt,Ln===-1?0:cn-Ln)){if(Ln===-1&&(Ln=cn),cn-Ln+1===On)return Ln*fn}else Ln!==-1&&(cn-=cn-Ln),Ln=-1}else for(Ot+On>_n&&(Ot=_n-On),cn=Ot;cn>=0;cn--){let Ln=!0;for(let Pn=0;Pnln&&(sn=ln):sn=ln;const cn=Zt.length;let fn;for(sn>cn/2&&(sn=cn/2),fn=0;fn>8,On=fn%256,xn.push(On),xn.push(_n);return xn}(Zt,Tt.length-Ot),Tt,Ot,sn)}function kt(Tt,Zt,Ot){return Zt===0&&Ot===Tt.length?j.fromByteArray(Tt):j.fromByteArray(Tt.slice(Zt,Ot))}function Bt(Tt,Zt,Ot){Ot=Math.min(Tt.length,Ot);const sn=[];let ln=Zt;for(;ln239?4:cn>223?3:cn>191?2:1;if(ln+_n<=Ot){let On,xn,Ln,Pn;switch(_n){case 1:cn<128&&(fn=cn);break;case 2:On=Tt[ln+1],(192&On)==128&&(Pn=(31&cn)<<6|63&On,Pn>127&&(fn=Pn));break;case 3:On=Tt[ln+1],xn=Tt[ln+2],(192&On)==128&&(192&xn)==128&&(Pn=(15&cn)<<12|(63&On)<<6|63&xn,Pn>2047&&(Pn<55296||Pn>57343)&&(fn=Pn));break;case 4:On=Tt[ln+1],xn=Tt[ln+2],Ln=Tt[ln+3],(192&On)==128&&(192&xn)==128&&(192&Ln)==128&&(Pn=(15&cn)<<18|(63&On)<<12|(63&xn)<<6|63&Ln,Pn>65535&&Pn<1114112&&(fn=Pn))}}fn===null?(fn=65533,_n=1):fn>65535&&(fn-=65536,sn.push(fn>>>10&1023|55296),fn=56320|1023&fn),sn.push(fn),ln+=_n}return function(cn){const fn=cn.length;if(fn<=4096)return String.fromCharCode.apply(String,cn);let _n="",On=0;for(;On"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(tt.prototype,"parent",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.buffer}}),Object.defineProperty(tt.prototype,"offset",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.byteOffset}}),tt.poolSize=8192,tt.from=function(Tt,Zt,Ot){return nt(Tt,Zt,Ot)},Object.setPrototypeOf(tt.prototype,Uint8Array.prototype),Object.setPrototypeOf(tt,Uint8Array),tt.alloc=function(Tt,Zt,Ot){return function(sn,ln,cn){return rt(sn),sn<=0?et(sn):ln!==void 0?typeof cn=="string"?et(sn).fill(ln,cn):et(sn).fill(ln):et(sn)}(Tt,Zt,Ot)},tt.allocUnsafe=function(Tt){return it(Tt)},tt.allocUnsafeSlow=function(Tt){return it(Tt)},tt.isBuffer=function(Tt){return Tt!=null&&Tt._isBuffer===!0&&Tt!==tt.prototype},tt.compare=function(Tt,Zt){if(Un(Tt,Uint8Array)&&(Tt=tt.from(Tt,Tt.offset,Tt.byteLength)),Un(Zt,Uint8Array)&&(Zt=tt.from(Zt,Zt.offset,Zt.byteLength)),!tt.isBuffer(Tt)||!tt.isBuffer(Zt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Tt===Zt)return 0;let Ot=Tt.length,sn=Zt.length;for(let ln=0,cn=Math.min(Ot,sn);lnsn.length?(tt.isBuffer(cn)||(cn=tt.from(cn)),cn.copy(sn,ln)):Uint8Array.prototype.set.call(sn,cn,ln);else{if(!tt.isBuffer(cn))throw new TypeError('"list" argument must be an Array of Buffers');cn.copy(sn,ln)}ln+=cn.length}return sn},tt.byteLength=dt,tt.prototype._isBuffer=!0,tt.prototype.swap16=function(){const Tt=this.length;if(Tt%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Zt=0;ZtZt&&(Tt+=" ... "),""},_e&&(tt.prototype[_e]=tt.prototype.inspect),tt.prototype.compare=function(Tt,Zt,Ot,sn,ln){if(Un(Tt,Uint8Array)&&(Tt=tt.from(Tt,Tt.offset,Tt.byteLength)),!tt.isBuffer(Tt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Tt);if(Zt===void 0&&(Zt=0),Ot===void 0&&(Ot=Tt?Tt.length:0),sn===void 0&&(sn=0),ln===void 0&&(ln=this.length),Zt<0||Ot>Tt.length||sn<0||ln>this.length)throw new RangeError("out of range index");if(sn>=ln&&Zt>=Ot)return 0;if(sn>=ln)return-1;if(Zt>=Ot)return 1;if(this===Tt)return 0;let cn=(ln>>>=0)-(sn>>>=0),fn=(Ot>>>=0)-(Zt>>>=0);const _n=Math.min(cn,fn),On=this.slice(sn,ln),xn=Tt.slice(Zt,Ot);for(let Ln=0;Ln<_n;++Ln)if(On[Ln]!==xn[Ln]){cn=On[Ln],fn=xn[Ln];break}return cn>>=0,isFinite(Ot)?(Ot>>>=0,sn===void 0&&(sn="utf8")):(sn=Ot,Ot=void 0)}const ln=this.length-Zt;if((Ot===void 0||Ot>ln)&&(Ot=ln),Tt.length>0&&(Ot<0||Zt<0)||Zt>this.length)throw new RangeError("Attempt to write outside buffer bounds");sn||(sn="utf8");let cn=!1;for(;;)switch(sn){case"hex":return pt(this,Tt,Zt,Ot);case"utf8":case"utf-8":return Rt(this,Tt,Zt,Ot);case"ascii":case"latin1":case"binary":return Qt(this,Tt,Zt,Ot);case"base64":return Nt(this,Tt,Zt,Ot);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,Tt,Zt,Ot);default:if(cn)throw new TypeError("Unknown encoding: "+sn);sn=(""+sn).toLowerCase(),cn=!0}},tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jt(Tt,Zt,Ot){let sn="";Ot=Math.min(Tt.length,Ot);for(let ln=Zt;lnsn)&&(Ot=sn);let ln="";for(let cn=Zt;cnOt)throw new RangeError("Trying to access beyond buffer length")}function wt(Tt,Zt,Ot,sn,ln,cn){if(!tt.isBuffer(Tt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Zt>ln||ZtTt.length)throw new RangeError("Index out of range")}function Et(Tt,Zt,Ot,sn,ln){xt(Zt,sn,ln,Tt,Ot,7);let cn=Number(Zt&BigInt(4294967295));Tt[Ot++]=cn,cn>>=8,Tt[Ot++]=cn,cn>>=8,Tt[Ot++]=cn,cn>>=8,Tt[Ot++]=cn;let fn=Number(Zt>>BigInt(32)&BigInt(4294967295));return Tt[Ot++]=fn,fn>>=8,Tt[Ot++]=fn,fn>>=8,Tt[Ot++]=fn,fn>>=8,Tt[Ot++]=fn,Ot}function Jt(Tt,Zt,Ot,sn,ln){xt(Zt,sn,ln,Tt,Ot,7);let cn=Number(Zt&BigInt(4294967295));Tt[Ot+7]=cn,cn>>=8,Tt[Ot+6]=cn,cn>>=8,Tt[Ot+5]=cn,cn>>=8,Tt[Ot+4]=cn;let fn=Number(Zt>>BigInt(32)&BigInt(4294967295));return Tt[Ot+3]=fn,fn>>=8,Tt[Ot+2]=fn,fn>>=8,Tt[Ot+1]=fn,fn>>=8,Tt[Ot]=fn,Ot+8}function Pt(Tt,Zt,Ot,sn,ln,cn){if(Ot+sn>Tt.length)throw new RangeError("Index out of range");if(Ot<0)throw new RangeError("Index out of range")}function Yt(Tt,Zt,Ot,sn,ln){return Zt=+Zt,Ot>>>=0,ln||Pt(Tt,0,Ot,4),$.write(Tt,Zt,Ot,sn,23,4),Ot+4}function Mt(Tt,Zt,Ot,sn,ln){return Zt=+Zt,Ot>>>=0,ln||Pt(Tt,0,Ot,8),$.write(Tt,Zt,Ot,sn,52,8),Ot+8}tt.prototype.slice=function(Tt,Zt){const Ot=this.length;(Tt=~~Tt)<0?(Tt+=Ot)<0&&(Tt=0):Tt>Ot&&(Tt=Ot),(Zt=Zt===void 0?Ot:~~Zt)<0?(Zt+=Ot)<0&&(Zt=0):Zt>Ot&&(Zt=Ot),Zt>>=0,Zt>>>=0,Ot||Vt(Tt,Zt,this.length);let sn=this[Tt],ln=1,cn=0;for(;++cn>>=0,Zt>>>=0,Ot||Vt(Tt,Zt,this.length);let sn=this[Tt+--Zt],ln=1;for(;Zt>0&&(ln*=256);)sn+=this[Tt+--Zt]*ln;return sn},tt.prototype.readUint8=tt.prototype.readUInt8=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,1,this.length),this[Tt]},tt.prototype.readUint16LE=tt.prototype.readUInt16LE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,2,this.length),this[Tt]|this[Tt+1]<<8},tt.prototype.readUint16BE=tt.prototype.readUInt16BE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,2,this.length),this[Tt]<<8|this[Tt+1]},tt.prototype.readUint32LE=tt.prototype.readUInt32LE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,4,this.length),(this[Tt]|this[Tt+1]<<8|this[Tt+2]<<16)+16777216*this[Tt+3]},tt.prototype.readUint32BE=tt.prototype.readUInt32BE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,4,this.length),16777216*this[Tt]+(this[Tt+1]<<16|this[Tt+2]<<8|this[Tt+3])},tt.prototype.readBigUInt64LE=En(function(Tt){It(Tt>>>=0,"offset");const Zt=this[Tt],Ot=this[Tt+7];Zt!==void 0&&Ot!==void 0||$t(Tt,this.length-8);const sn=Zt+256*this[++Tt]+65536*this[++Tt]+this[++Tt]*2**24,ln=this[++Tt]+256*this[++Tt]+65536*this[++Tt]+Ot*2**24;return BigInt(sn)+(BigInt(ln)<>>=0,"offset");const Zt=this[Tt],Ot=this[Tt+7];Zt!==void 0&&Ot!==void 0||$t(Tt,this.length-8);const sn=Zt*2**24+65536*this[++Tt]+256*this[++Tt]+this[++Tt],ln=this[++Tt]*2**24+65536*this[++Tt]+256*this[++Tt]+Ot;return(BigInt(sn)<>>=0,Zt>>>=0,Ot||Vt(Tt,Zt,this.length);let sn=this[Tt],ln=1,cn=0;for(;++cn=ln&&(sn-=Math.pow(2,8*Zt)),sn},tt.prototype.readIntBE=function(Tt,Zt,Ot){Tt>>>=0,Zt>>>=0,Ot||Vt(Tt,Zt,this.length);let sn=Zt,ln=1,cn=this[Tt+--sn];for(;sn>0&&(ln*=256);)cn+=this[Tt+--sn]*ln;return ln*=128,cn>=ln&&(cn-=Math.pow(2,8*Zt)),cn},tt.prototype.readInt8=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,1,this.length),128&this[Tt]?-1*(255-this[Tt]+1):this[Tt]},tt.prototype.readInt16LE=function(Tt,Zt){Tt>>>=0,Zt||Vt(Tt,2,this.length);const Ot=this[Tt]|this[Tt+1]<<8;return 32768&Ot?4294901760|Ot:Ot},tt.prototype.readInt16BE=function(Tt,Zt){Tt>>>=0,Zt||Vt(Tt,2,this.length);const Ot=this[Tt+1]|this[Tt]<<8;return 32768&Ot?4294901760|Ot:Ot},tt.prototype.readInt32LE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,4,this.length),this[Tt]|this[Tt+1]<<8|this[Tt+2]<<16|this[Tt+3]<<24},tt.prototype.readInt32BE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,4,this.length),this[Tt]<<24|this[Tt+1]<<16|this[Tt+2]<<8|this[Tt+3]},tt.prototype.readBigInt64LE=En(function(Tt){It(Tt>>>=0,"offset");const Zt=this[Tt],Ot=this[Tt+7];Zt!==void 0&&Ot!==void 0||$t(Tt,this.length-8);const sn=this[Tt+4]+256*this[Tt+5]+65536*this[Tt+6]+(Ot<<24);return(BigInt(sn)<>>=0,"offset");const Zt=this[Tt],Ot=this[Tt+7];Zt!==void 0&&Ot!==void 0||$t(Tt,this.length-8);const sn=(Zt<<24)+65536*this[++Tt]+256*this[++Tt]+this[++Tt];return(BigInt(sn)<>>=0,Zt||Vt(Tt,4,this.length),$.read(this,Tt,!0,23,4)},tt.prototype.readFloatBE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,4,this.length),$.read(this,Tt,!1,23,4)},tt.prototype.readDoubleLE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,8,this.length),$.read(this,Tt,!0,52,8)},tt.prototype.readDoubleBE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,8,this.length),$.read(this,Tt,!1,52,8)},tt.prototype.writeUintLE=tt.prototype.writeUIntLE=function(Tt,Zt,Ot,sn){Tt=+Tt,Zt>>>=0,Ot>>>=0,!sn&&wt(this,Tt,Zt,Ot,Math.pow(2,8*Ot)-1,0);let ln=1,cn=0;for(this[Zt]=255&Tt;++cn>>=0,Ot>>>=0,!sn&&wt(this,Tt,Zt,Ot,Math.pow(2,8*Ot)-1,0);let ln=Ot-1,cn=1;for(this[Zt+ln]=255&Tt;--ln>=0&&(cn*=256);)this[Zt+ln]=Tt/cn&255;return Zt+Ot},tt.prototype.writeUint8=tt.prototype.writeUInt8=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,1,255,0),this[Zt]=255&Tt,Zt+1},tt.prototype.writeUint16LE=tt.prototype.writeUInt16LE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,2,65535,0),this[Zt]=255&Tt,this[Zt+1]=Tt>>>8,Zt+2},tt.prototype.writeUint16BE=tt.prototype.writeUInt16BE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,2,65535,0),this[Zt]=Tt>>>8,this[Zt+1]=255&Tt,Zt+2},tt.prototype.writeUint32LE=tt.prototype.writeUInt32LE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,4,4294967295,0),this[Zt+3]=Tt>>>24,this[Zt+2]=Tt>>>16,this[Zt+1]=Tt>>>8,this[Zt]=255&Tt,Zt+4},tt.prototype.writeUint32BE=tt.prototype.writeUInt32BE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,4,4294967295,0),this[Zt]=Tt>>>24,this[Zt+1]=Tt>>>16,this[Zt+2]=Tt>>>8,this[Zt+3]=255&Tt,Zt+4},tt.prototype.writeBigUInt64LE=En(function(Tt,Zt=0){return Et(this,Tt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeBigUInt64BE=En(function(Tt,Zt=0){return Jt(this,Tt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeIntLE=function(Tt,Zt,Ot,sn){if(Tt=+Tt,Zt>>>=0,!sn){const _n=Math.pow(2,8*Ot-1);wt(this,Tt,Zt,Ot,_n-1,-_n)}let ln=0,cn=1,fn=0;for(this[Zt]=255&Tt;++ln>0)-fn&255;return Zt+Ot},tt.prototype.writeIntBE=function(Tt,Zt,Ot,sn){if(Tt=+Tt,Zt>>>=0,!sn){const _n=Math.pow(2,8*Ot-1);wt(this,Tt,Zt,Ot,_n-1,-_n)}let ln=Ot-1,cn=1,fn=0;for(this[Zt+ln]=255&Tt;--ln>=0&&(cn*=256);)Tt<0&&fn===0&&this[Zt+ln+1]!==0&&(fn=1),this[Zt+ln]=(Tt/cn>>0)-fn&255;return Zt+Ot},tt.prototype.writeInt8=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,1,127,-128),Tt<0&&(Tt=255+Tt+1),this[Zt]=255&Tt,Zt+1},tt.prototype.writeInt16LE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,2,32767,-32768),this[Zt]=255&Tt,this[Zt+1]=Tt>>>8,Zt+2},tt.prototype.writeInt16BE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,2,32767,-32768),this[Zt]=Tt>>>8,this[Zt+1]=255&Tt,Zt+2},tt.prototype.writeInt32LE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,4,2147483647,-2147483648),this[Zt]=255&Tt,this[Zt+1]=Tt>>>8,this[Zt+2]=Tt>>>16,this[Zt+3]=Tt>>>24,Zt+4},tt.prototype.writeInt32BE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,4,2147483647,-2147483648),Tt<0&&(Tt=4294967295+Tt+1),this[Zt]=Tt>>>24,this[Zt+1]=Tt>>>16,this[Zt+2]=Tt>>>8,this[Zt+3]=255&Tt,Zt+4},tt.prototype.writeBigInt64LE=En(function(Tt,Zt=0){return Et(this,Tt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),tt.prototype.writeBigInt64BE=En(function(Tt,Zt=0){return Jt(this,Tt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),tt.prototype.writeFloatLE=function(Tt,Zt,Ot){return Yt(this,Tt,Zt,!0,Ot)},tt.prototype.writeFloatBE=function(Tt,Zt,Ot){return Yt(this,Tt,Zt,!1,Ot)},tt.prototype.writeDoubleLE=function(Tt,Zt,Ot){return Mt(this,Tt,Zt,!0,Ot)},tt.prototype.writeDoubleBE=function(Tt,Zt,Ot){return Mt(this,Tt,Zt,!1,Ot)},tt.prototype.copy=function(Tt,Zt,Ot,sn){if(!tt.isBuffer(Tt))throw new TypeError("argument should be a Buffer");if(Ot||(Ot=0),sn||sn===0||(sn=this.length),Zt>=Tt.length&&(Zt=Tt.length),Zt||(Zt=0),sn>0&&sn=this.length)throw new RangeError("Index out of range");if(sn<0)throw new RangeError("sourceEnd out of bounds");sn>this.length&&(sn=this.length),Tt.length-Zt>>=0,Ot=Ot===void 0?this.length:Ot>>>0,Tt||(Tt=0),typeof Tt=="number")for(ln=Zt;ln=sn+4;Ot-=3)Zt=`_${Tt.slice(Ot-3,Ot)}${Zt}`;return`${Tt.slice(0,Ot)}${Zt}`}function xt(Tt,Zt,Ot,sn,ln,cn){if(Tt>Ot||Tt3?Zt===0||Zt===BigInt(0)?`>= 0${fn} and < 2${fn} ** ${8*(cn+1)}${fn}`:`>= -(2${fn} ** ${8*(cn+1)-1}${fn}) and < 2 ** ${8*(cn+1)-1}${fn}`:`>= ${Zt}${fn} and <= ${Ot}${fn}`,new zt.ERR_OUT_OF_RANGE("value",_n,Tt)}(function(fn,_n,On){It(_n,"offset"),fn[_n]!==void 0&&fn[_n+On]!==void 0||$t(_n,fn.length-(On+1))})(sn,ln,cn)}function It(Tt,Zt){if(typeof Tt!="number")throw new zt.ERR_INVALID_ARG_TYPE(Zt,"number",Tt)}function $t(Tt,Zt,Ot){throw Math.floor(Tt)!==Tt?(It(Tt,Ot),new zt.ERR_OUT_OF_RANGE(Ot||"offset","an integer",Tt)):Zt<0?new zt.ERR_BUFFER_OUT_OF_BOUNDS:new zt.ERR_OUT_OF_RANGE(Ot||"offset",`>= ${Ot?1:0} and <= ${Zt}`,Tt)}qt("ERR_BUFFER_OUT_OF_BOUNDS",function(Tt){return Tt?Tt+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"},RangeError),qt("ERR_INVALID_ARG_TYPE",function(Tt,Zt){return`The "${Tt}" argument must be of type number. Received type ${typeof Zt}`},TypeError),qt("ERR_OUT_OF_RANGE",function(Tt,Zt,Ot){let sn=`The value of "${Tt}" is out of range.`,ln=Ot;return Number.isInteger(Ot)&&Math.abs(Ot)>4294967296?ln=Xt(String(Ot)):typeof Ot=="bigint"&&(ln=String(Ot),(Ot>BigInt(2)**BigInt(32)||Ot<-(BigInt(2)**BigInt(32)))&&(ln=Xt(ln)),ln+="n"),sn+=` It must be ${Zt}. Received ${ln}`,sn},RangeError);const un=/[^+/0-9A-Za-z-_]/g;function tn(Tt,Zt){let Ot;Zt=Zt||1/0;const sn=Tt.length;let ln=null;const cn=[];for(let fn=0;fn55295&&Ot<57344){if(!ln){if(Ot>56319){(Zt-=3)>-1&&cn.push(239,191,189);continue}if(fn+1===sn){(Zt-=3)>-1&&cn.push(239,191,189);continue}ln=Ot;continue}if(Ot<56320){(Zt-=3)>-1&&cn.push(239,191,189),ln=Ot;continue}Ot=65536+(ln-55296<<10|Ot-56320)}else ln&&(Zt-=3)>-1&&cn.push(239,191,189);if(ln=null,Ot<128){if((Zt-=1)<0)break;cn.push(Ot)}else if(Ot<2048){if((Zt-=2)<0)break;cn.push(Ot>>6|192,63&Ot|128)}else if(Ot<65536){if((Zt-=3)<0)break;cn.push(Ot>>12|224,Ot>>6&63|128,63&Ot|128)}else{if(!(Ot<1114112))throw new Error("Invalid code point");if((Zt-=4)<0)break;cn.push(Ot>>18|240,Ot>>12&63|128,Ot>>6&63|128,63&Ot|128)}}return cn}function an(Tt){return j.toByteArray(function(Zt){if((Zt=(Zt=Zt.split("=")[0]).trim().replace(un,"")).length<2)return"";for(;Zt.length%4!=0;)Zt+="=";return Zt}(Tt))}function Kt(Tt,Zt,Ot,sn){let ln;for(ln=0;ln=Zt.length||ln>=Tt.length);++ln)Zt[ln+Ot]=Tt[ln];return ln}function Un(Tt,Zt){return Tt instanceof Zt||Tt!=null&&Tt.constructor!=null&&Tt.constructor.name!=null&&Tt.constructor.name===Zt.name}function Bn(Tt){return Tt!=Tt}const hn=function(){const Tt=new Array(256);for(let Zt=0;Zt<16;++Zt){const Ot=16*Zt;for(let sn=0;sn<16;++sn)Tt[Ot+sn]="0123456789abcdef"[Zt]+"0123456789abcdef"[sn]}return Tt}();function En(Tt){return typeof BigInt>"u"?Cn:Tt}function Cn(){throw new Error("BigInt not supported")}},49:o=>{o.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},8165:(o,s,_)=>{var j=_(9138),$=_(6095),_e=_(4531),et=_(7196);o.exports=et||j.call(_e,$)},6095:o=>{o.exports=Function.prototype.apply},4531:o=>{o.exports=Function.prototype.call},9903:(o,s,_)=>{var j=_(9138),$=_(3468),_e=_(4531),et=_(8165);o.exports=function(tt){if(tt.length<1||typeof tt[0]!="function")throw new $("a function is required");return et(j,_e,tt)}},7196:o=>{o.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},9818:(o,s,_)=>{var j=_(528),$=_(8498),_e=$(j("String.prototype.indexOf"));o.exports=function(et,tt){var nt=j(et,!!tt);return typeof nt=="function"&&_e(et,".prototype.")>-1?$(nt):nt}},8498:(o,s,_)=>{var j=_(9138),$=_(528),_e=_(6108),et=_(3468),tt=$("%Function.prototype.apply%"),nt=$("%Function.prototype.call%"),rt=$("%Reflect.apply%",!0)||j.call(nt,tt),it=_(4940),st=$("%Math.max%");o.exports=function(Ft){if(typeof Ft!="function")throw new et("a function is required");var dt=rt(j,nt,arguments);return _e(dt,1+st(0,Ft.length-(arguments.length-1)),!0)};var ut=function(){return rt(j,tt,arguments)};it?it(o.exports,"apply",{value:ut}):o.exports.apply=ut},288:function(o,s){var _=typeof self<"u"?self:this,j=function(){function _e(){this.fetch=!1,this.DOMException=_.DOMException}return _e.prototype=_,new _e}();(function(_e){(function(et){var tt="URLSearchParams"in _e,nt="Symbol"in _e&&"iterator"in Symbol,rt="FileReader"in _e&&"Blob"in _e&&function(){try{return new Blob,!0}catch{return!1}}(),it="FormData"in _e,st="ArrayBuffer"in _e;if(st)var ut=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Ft=ArrayBuffer.isView||function(yt){return yt&&ut.indexOf(Object.prototype.toString.call(yt))>-1};function dt(yt){if(typeof yt!="string"&&(yt=String(yt)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(yt))throw new TypeError("Invalid character in header field name");return yt.toLowerCase()}function gt(yt){return typeof yt!="string"&&(yt=String(yt)),yt}function Ut(yt){var Vt={next:function(){var wt=yt.shift();return{done:wt===void 0,value:wt}}};return nt&&(Vt[Symbol.iterator]=function(){return Vt}),Vt}function ht(yt){this.map={},yt instanceof ht?yt.forEach(function(Vt,wt){this.append(wt,Vt)},this):Array.isArray(yt)?yt.forEach(function(Vt){this.append(Vt[0],Vt[1])},this):yt&&Object.getOwnPropertyNames(yt).forEach(function(Vt){this.append(Vt,yt[Vt])},this)}function ft(yt){if(yt.bodyUsed)return Promise.reject(new TypeError("Already read"));yt.bodyUsed=!0}function pt(yt){return new Promise(function(Vt,wt){yt.onload=function(){Vt(yt.result)},yt.onerror=function(){wt(yt.error)}})}function Rt(yt){var Vt=new FileReader,wt=pt(Vt);return Vt.readAsArrayBuffer(yt),wt}function Qt(yt){if(yt.slice)return yt.slice(0);var Vt=new Uint8Array(yt.byteLength);return Vt.set(new Uint8Array(yt)),Vt.buffer}function Nt(){return this.bodyUsed=!1,this._initBody=function(yt){var Vt;this._bodyInit=yt,yt?typeof yt=="string"?this._bodyText=yt:rt&&Blob.prototype.isPrototypeOf(yt)?this._bodyBlob=yt:it&&FormData.prototype.isPrototypeOf(yt)?this._bodyFormData=yt:tt&&URLSearchParams.prototype.isPrototypeOf(yt)?this._bodyText=yt.toString():st&&rt&&(Vt=yt)&&DataView.prototype.isPrototypeOf(Vt)?(this._bodyArrayBuffer=Qt(yt.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):st&&(ArrayBuffer.prototype.isPrototypeOf(yt)||Ft(yt))?this._bodyArrayBuffer=Qt(yt):this._bodyText=yt=Object.prototype.toString.call(yt):this._bodyText="",this.headers.get("content-type")||(typeof yt=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):tt&&URLSearchParams.prototype.isPrototypeOf(yt)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},rt&&(this.blob=function(){var yt=ft(this);if(yt)return yt;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ft(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Rt)}),this.text=function(){var yt,Vt,wt,Et=ft(this);if(Et)return Et;if(this._bodyBlob)return yt=this._bodyBlob,Vt=new FileReader,wt=pt(Vt),Vt.readAsText(yt),wt;if(this._bodyArrayBuffer)return Promise.resolve(function(Jt){for(var Pt=new Uint8Array(Jt),Yt=new Array(Pt.length),Mt=0;Mt-1?Et:wt),this.mode=Vt.mode||this.mode||null,this.signal=Vt.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Jt)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Jt)}function Bt(yt){var Vt=new FormData;return yt.trim().split("&").forEach(function(wt){if(wt){var Et=wt.split("="),Jt=Et.shift().replace(/\+/g," "),Pt=Et.join("=").replace(/\+/g," ");Vt.append(decodeURIComponent(Jt),decodeURIComponent(Pt))}}),Vt}function jt(yt,Vt){Vt||(Vt={}),this.type="default",this.status=Vt.status===void 0?200:Vt.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Vt?Vt.statusText:"OK",this.headers=new ht(Vt.headers),this.url=Vt.url||"",this._initBody(yt)}kt.prototype.clone=function(){return new kt(this,{body:this._bodyInit})},Nt.call(kt.prototype),Nt.call(jt.prototype),jt.prototype.clone=function(){return new jt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ht(this.headers),url:this.url})},jt.error=function(){var yt=new jt(null,{status:0,statusText:""});return yt.type="error",yt};var vt=[301,302,303,307,308];jt.redirect=function(yt,Vt){if(vt.indexOf(Vt)===-1)throw new RangeError("Invalid status code");return new jt(null,{status:Vt,headers:{location:yt}})},et.DOMException=_e.DOMException;try{new et.DOMException}catch{et.DOMException=function(yt,Vt){this.message=yt,this.name=Vt;var wt=Error(yt);this.stack=wt.stack},et.DOMException.prototype=Object.create(Error.prototype),et.DOMException.prototype.constructor=et.DOMException}function mt(yt,Vt){return new Promise(function(wt,Et){var Jt=new kt(yt,Vt);if(Jt.signal&&Jt.signal.aborted)return Et(new et.DOMException("Aborted","AbortError"));var Pt=new XMLHttpRequest;function Yt(){Pt.abort()}Pt.onload=function(){var Mt,zt,qt={status:Pt.status,statusText:Pt.statusText,headers:(Mt=Pt.getAllResponseHeaders()||"",zt=new ht,Mt.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(xt){var It=xt.split(":"),$t=It.shift().trim();if($t){var un=It.join(":").trim();zt.append($t,un)}}),zt)};qt.url="responseURL"in Pt?Pt.responseURL:qt.headers.get("X-Request-URL");var Xt="response"in Pt?Pt.response:Pt.responseText;wt(new jt(Xt,qt))},Pt.onerror=function(){Et(new TypeError("Network request failed"))},Pt.ontimeout=function(){Et(new TypeError("Network request failed"))},Pt.onabort=function(){Et(new et.DOMException("Aborted","AbortError"))},Pt.open(Jt.method,Jt.url,!0),Jt.credentials==="include"?Pt.withCredentials=!0:Jt.credentials==="omit"&&(Pt.withCredentials=!1),"responseType"in Pt&&rt&&(Pt.responseType="blob"),Jt.headers.forEach(function(Mt,zt){Pt.setRequestHeader(zt,Mt)}),Jt.signal&&(Jt.signal.addEventListener("abort",Yt),Pt.onreadystatechange=function(){Pt.readyState===4&&Jt.signal.removeEventListener("abort",Yt)}),Pt.send(Jt._bodyInit===void 0?null:Jt._bodyInit)})}mt.polyfill=!0,_e.fetch||(_e.fetch=mt,_e.Headers=ht,_e.Request=kt,_e.Response=jt),et.Headers=ht,et.Request=kt,et.Response=jt,et.fetch=mt,Object.defineProperty(et,"__esModule",{value:!0})})({})})(j),j.fetch.ponyfill=!0,delete j.fetch.polyfill;var $=j;(s=$.fetch).default=$.fetch,s.fetch=$.fetch,s.Headers=$.Headers,s.Request=$.Request,s.Response=$.Response,o.exports=s},686:(o,s,_)=>{var j=_(4940),$=_(5731),_e=_(3468),et=_(9336);o.exports=function(tt,nt,rt){if(!tt||typeof tt!="object"&&typeof tt!="function")throw new _e("`obj` must be an object or a function`");if(typeof nt!="string"&&typeof nt!="symbol")throw new _e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _e("`loose`, if provided, must be a boolean");var it=arguments.length>3?arguments[3]:null,st=arguments.length>4?arguments[4]:null,ut=arguments.length>5?arguments[5]:null,Ft=arguments.length>6&&arguments[6],dt=!!et&&et(tt,nt);if(j)j(tt,nt,{configurable:ut===null&&dt?dt.configurable:!ut,enumerable:it===null&&dt?dt.enumerable:!it,value:rt,writable:st===null&&dt?dt.writable:!st});else{if(!Ft&&(it||st||ut))throw new $("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");tt[nt]=rt}}},1857:(o,s,_)=>{var j=_(9228),$=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",_e=Object.prototype.toString,et=Array.prototype.concat,tt=_(686),nt=_(7239)(),rt=function(st,ut,Ft,dt){if(ut in st){if(dt===!0){if(st[ut]===Ft)return}else if(typeof(gt=dt)!="function"||_e.call(gt)!=="[object Function]"||!dt())return}var gt;nt?tt(st,ut,Ft,!0):tt(st,ut,Ft)},it=function(st,ut){var Ft=arguments.length>2?arguments[2]:{},dt=j(ut);$&&(dt=et.call(dt,Object.getOwnPropertySymbols(ut)));for(var gt=0;gt{var j,$=_(9903),_e=_(9336);try{j=[].__proto__===Array.prototype}catch(rt){if(!rt||typeof rt!="object"||!("code"in rt)||rt.code!=="ERR_PROTO_ACCESS")throw rt}var et=!!j&&_e&&_e(Object.prototype,"__proto__"),tt=Object,nt=tt.getPrototypeOf;o.exports=et&&typeof et.get=="function"?$([et.get]):typeof nt=="function"&&function(rt){return nt(rt==null?rt:tt(rt))}},2078:(o,s,_)=>{const j=_(5365),$=_(5757),_e=(et,tt,nt)=>({from:_e,EnvVarError:_(5757),get:function(rt){if(!rt)return et;if(arguments.length>1)throw new $("It looks like you passed more than one argument to env.get(). Since env-var@6.0.0 this is no longer supported. To set a default value use env.get(TARGET).default(DEFAULT)");return j(et,rt,tt||{},nt||function(){})},accessors:_(7350),logger:_(7869)(console.log,et.NODE_ENV)});o.exports=_e(function(){try{return process.env}catch{return{}}}())},2555:(o,s,_)=>{const j=_(6261);o.exports=function($,_e){return _e=_e||",",$.length?j($).split(_e).filter(Boolean):[]}},7808:o=>{o.exports=function(s){const _=s.toLowerCase();if(_!=="false"&&_!=="true")throw new Error('should be either "true", "false", "TRUE", or "FALSE"');return _!=="false"}},3576:o=>{o.exports=function(s){const _=s.toLowerCase();if(["false","0","true","1"].indexOf(_)===-1)throw new Error('should be either "true", "false", "TRUE", "FALSE", 1, or 0');return!(_==="0"||_==="false")}},349:(o,s,_)=>{const j=_(6261),$=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\u0001-\u0008\u000b\u000c\u000e-\u001f\u0021\u0023-\u005b\u005d-\u007f]|\\[\u0001-\u0009\u000b\u000c\u000e-\u007f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\u0001-\u0008\u000b\u000c\u000e-\u001f\u0021-\u005a\u0053-\u007f]|\\[\u0001-\u0009\u000b\u000c\u000e-\u007f])+)\])$/;o.exports=function(_e){const et=j(_e);if(!$.test(et))throw new Error("should be a valid email address");return et}},129:(o,s,_)=>{const j=_(6261);o.exports=function($,_e){const et=j($);if(_e.indexOf(et)<0)throw new Error(`should be one of [${_e.join(", ")}]`);return et}},2222:(o,s,_)=>{const j=_(5384);o.exports=function($){const _e=j($);if(_e>0)throw new Error("should be a negative float");return _e}},3674:(o,s,_)=>{const j=_(5384);o.exports=function($){const _e=j($);if(_e<0)throw new Error("should be a positive float");return _e}},5384:o=>{o.exports=function(s){const _=parseFloat(s);if(isNaN(_)||isNaN(s))throw new Error("should be a valid float");return _}},7350:(o,s,_)=>{o.exports={asArray:_(2555),asSet:_(7374),asBoolStrict:_(7808),asBool:_(3576),asPortNumber:_(4647),asEnum:_(129),asFloatNegative:_(2222),asFloatPositive:_(3674),asFloat:_(5384),asIntNegative:_(8455),asIntPositive:_(879),asInt:_(9799),asJsonArray:_(9974),asJsonObject:_(8124),asJson:_(3566),asRegExp:_(1045),asString:_(6261),asUrlObject:_(6912),asUrlString:_(5549),asEmailString:_(349)}},8455:(o,s,_)=>{const j=_(9799);o.exports=function($){const _e=j($);if(_e>0)throw new Error("should be a negative integer");return _e}},879:(o,s,_)=>{const j=_(9799);o.exports=function($){const _e=j($);if(_e<0)throw new Error("should be a positive integer");return _e}},9799:o=>{o.exports=function(s){const _=parseInt(s,10);if(isNaN(_)||_.toString(10)!==s)throw new Error("should be a valid integer");return _}},9974:(o,s,_)=>{const j=_(3566);o.exports=function($){var _e=j($);if(!Array.isArray(_e))throw new Error("should be a parseable JSON Array");return _e}},8124:(o,s,_)=>{const j=_(3566);o.exports=function($){var _e=j($);if(Array.isArray(_e))throw new Error("should be a parseable JSON Object");return _e}},3566:o=>{o.exports=function(s){try{return JSON.parse(s)}catch{throw new Error("should be valid (parseable) JSON")}}},4647:(o,s,_)=>{const j=_(879);o.exports=function($){var _e=j($);if(_e>65535)throw new Error("cannot assign a port number greater than 65535");return _e}},1045:o=>{o.exports=function(s,_){try{RegExp(void 0,_)}catch{throw new Error("invalid regexp flags")}try{return new RegExp(s,_)}catch{throw new Error("should be a valid regexp")}}},7374:(o,s,_)=>{const j=_(2555);o.exports=function($,_e){return $.length?new Set(j($,_e)):new Set}},6261:o=>{o.exports=function(s){return s}},6912:(o,s,_)=>{const j=_(6261);o.exports=function($){const _e=j($);try{return new URL(_e)}catch{throw new Error("should be a valid URL")}}},5549:(o,s,_)=>{const j=_(6912);o.exports=function($){return j($).toString()}},5757:o=>{class s extends Error{constructor(j,...$){super("env-var: "+j,...$),Error.captureStackTrace&&Error.captureStackTrace(this,s),this.name="EnvVarError"}}o.exports=s},7869:o=>{o.exports=function(s,_){return function(j,$){_&&_.match(/prod|production/)||s(`env-var (${j}): ${$}`)}}},5365:(o,s,_)=>{const j=_(5757),$=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/;o.exports=function(_e,et,tt,nt){let rt,it,st=!1,ut=!1;const Ft=_(7350);function dt(ht){nt(et,ht)}function gt(ht,ft){let pt=`"${et}" ${ft}`;throw ht&&(pt=""+pt),it&&(pt=`${pt}. An example of a valid value would be: ${it}`),new j(pt)}const Ut={convertFromBase64:function(){return dt("marking for base64 conversion"),st=!0,Ut},default:function(ht){if(typeof ht=="number")rt=ht.toString();else if(Array.isArray(ht)||typeof ht=="object"&&ht!==null)rt=JSON.stringify(ht);else{if(typeof ht!="string")throw new j("values passed to default() must be of Number, String, Array, or Object type");rt=ht}return dt(`setting default value to "${rt}"`),Ut},required:function(ht){return ht===void 0?(dt("marked as required"),ut=!0):(dt("setting required flag to "+ht),ut=ht),Ut},example:function(ht){return it=ht,Ut}};return Object.entries({...Ft,...tt}).forEach(([ht,ft])=>{Ut[ht]=function(pt){return function(){let Rt=_e[et];if(dt(`will be read from the environment using "${pt.name}" accessor`),Rt===void 0)if(rt===void 0&&ut)dt("was not found in the environment, but is required to be set"),gt(void 0,"is a required variable, but it was not set");else{if(rt===void 0)return void dt("was not found in the environment, but is not required. returning undefined");dt(`was not found in the environment, parsing default value "${rt}" instead`),Rt=rt}ut&&(dt("verifying variable value is not an empty string"),Rt.trim().length===0&>(void 0,"is a required variable, but its value was empty")),st&&(dt("verifying variable is a valid base64 string"),Rt.match($)||gt(Rt,"should be a valid base64 string if using convertFromBase64"),dt("converting from base64 to utf8 string"),Rt=Buffer.from(Rt,"base64").toString());const Qt=[Rt].concat(Array.prototype.slice.call(arguments));try{dt(`passing value "${Rt}" to "${pt.name}" accessor`);const Nt=pt.apply(pt,Qt);return dt("parsed successfully, returning "+Nt),Nt}catch(Nt){gt(Rt,Nt.message)}}}(ft)}),Ut}},4940:o=>{var s=Object.defineProperty||!1;if(s)try{s({},"a",{value:1})}catch{s=!1}o.exports=s},9110:o=>{o.exports=EvalError},9838:o=>{o.exports=Error},1155:o=>{o.exports=RangeError},4943:o=>{o.exports=ReferenceError},5731:o=>{o.exports=SyntaxError},3468:o=>{o.exports=TypeError},2140:o=>{o.exports=URIError},9629:o=>{o.exports=Object},46:o=>{var s,_=typeof Reflect=="object"?Reflect:null,j=_&&typeof _.apply=="function"?_.apply:function(Ut,ht,ft){return Function.prototype.apply.call(Ut,ht,ft)};s=_&&typeof _.ownKeys=="function"?_.ownKeys:Object.getOwnPropertySymbols?function(Ut){return Object.getOwnPropertyNames(Ut).concat(Object.getOwnPropertySymbols(Ut))}:function(Ut){return Object.getOwnPropertyNames(Ut)};var $=Number.isNaN||function(Ut){return Ut!=Ut};function _e(){_e.init.call(this)}o.exports=_e,o.exports.once=function(Ut,ht){return new Promise(function(ft,pt){function Rt(Nt){Ut.removeListener(ht,Qt),pt(Nt)}function Qt(){typeof Ut.removeListener=="function"&&Ut.removeListener("error",Rt),ft([].slice.call(arguments))}gt(Ut,ht,Qt,{once:!0}),ht!=="error"&&function(Nt,At,kt){typeof Nt.on=="function"&>(Nt,"error",At,kt)}(Ut,Rt,{once:!0})})},_e.EventEmitter=_e,_e.prototype._events=void 0,_e.prototype._eventsCount=0,_e.prototype._maxListeners=void 0;var et=10;function tt(Ut){if(typeof Ut!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Ut)}function nt(Ut){return Ut._maxListeners===void 0?_e.defaultMaxListeners:Ut._maxListeners}function rt(Ut,ht,ft,pt){var Rt,Qt,Nt,At;if(tt(ft),(Qt=Ut._events)===void 0?(Qt=Ut._events=Object.create(null),Ut._eventsCount=0):(Qt.newListener!==void 0&&(Ut.emit("newListener",ht,ft.listener?ft.listener:ft),Qt=Ut._events),Nt=Qt[ht]),Nt===void 0)Nt=Qt[ht]=ft,++Ut._eventsCount;else if(typeof Nt=="function"?Nt=Qt[ht]=pt?[ft,Nt]:[Nt,ft]:pt?Nt.unshift(ft):Nt.push(ft),(Rt=nt(Ut))>0&&Nt.length>Rt&&!Nt.warned){Nt.warned=!0;var kt=new Error("Possible EventEmitter memory leak detected. "+Nt.length+" "+String(ht)+" listeners added. Use emitter.setMaxListeners() to increase limit");kt.name="MaxListenersExceededWarning",kt.emitter=Ut,kt.type=ht,kt.count=Nt.length,At=kt,console&&console.warn&&console.warn(At)}return Ut}function it(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function st(Ut,ht,ft){var pt={fired:!1,wrapFn:void 0,target:Ut,type:ht,listener:ft},Rt=it.bind(pt);return Rt.listener=ft,pt.wrapFn=Rt,Rt}function ut(Ut,ht,ft){var pt=Ut._events;if(pt===void 0)return[];var Rt=pt[ht];return Rt===void 0?[]:typeof Rt=="function"?ft?[Rt.listener||Rt]:[Rt]:ft?function(Qt){for(var Nt=new Array(Qt.length),At=0;At0&&(Qt=ht[0]),Qt instanceof Error)throw Qt;var Nt=new Error("Unhandled error."+(Qt?" ("+Qt.message+")":""));throw Nt.context=Qt,Nt}var At=Rt[Ut];if(At===void 0)return!1;if(typeof At=="function")j(At,this,ht);else{var kt=At.length,Bt=dt(At,kt);for(ft=0;ft=0;Qt--)if(ft[Qt]===ht||ft[Qt].listener===ht){Nt=ft[Qt].listener,Rt=Qt;break}if(Rt<0)return this;Rt===0?ft.shift():function(At,kt){for(;kt+1=0;pt--)this.removeListener(Ut,ht[pt]);return this},_e.prototype.listeners=function(Ut){return ut(this,Ut,!0)},_e.prototype.rawListeners=function(Ut){return ut(this,Ut,!1)},_e.listenerCount=function(Ut,ht){return typeof Ut.listenerCount=="function"?Ut.listenerCount(ht):Ft.call(Ut,ht)},_e.prototype.listenerCount=Ft,_e.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},6075:o=>{o.exports=function(s,_){_||(_={}),typeof _=="function"&&(_={cmp:_});var j,$=typeof _.cycles=="boolean"&&_.cycles,_e=_.cmp&&(j=_.cmp,function(tt){return function(nt,rt){var it={key:nt,value:tt[nt]},st={key:rt,value:tt[rt]};return j(it,st)}}),et=[];return function tt(nt){if(nt&&nt.toJSON&&typeof nt.toJSON=="function"&&(nt=nt.toJSON()),nt!==void 0){if(typeof nt=="number")return isFinite(nt)?""+nt:"null";if(typeof nt!="object")return JSON.stringify(nt);var rt,it;if(Array.isArray(nt)){for(it="[",rt=0;rt=ft-1){var At=pt.subarray(0,Qt);if(Rt.push(String.fromCharCode.apply(null,At)),!Nt)return Rt.join("");Ut=Ut.subarray(ht),ht=0,Qt=0}var kt=Ut[ht++];if(!(128&kt))pt[Qt++]=kt;else if((224&kt)==192){var Bt=63&Ut[ht++];pt[Qt++]=(31&kt)<<6|Bt}else if((240&kt)==224){Bt=63&Ut[ht++];var jt=63&Ut[ht++];pt[Qt++]=(31&kt)<<12|Bt<<6|jt}else if((248&kt)==240){var vt=(7&kt)<<18|(Bt=63&Ut[ht++])<<12|(jt=63&Ut[ht++])<<6|63&Ut[ht++];vt>65535&&(vt-=65536,pt[Qt++]=vt>>>10&1023|55296,vt=56320|1023&vt),pt[Qt++]=vt}}}var _e="Failed to ",et=function(Ut,ht,ft){if(Ut)throw new Error("".concat(_e).concat(ht,": the '").concat(ft,"' option is unsupported."))},tt=typeof Buffer=="function"&&Buffer.from,nt=tt?function(Ut){return Buffer.from(Ut)}:function(Ut){for(var ht=0,ft=Ut.length,pt=0,Rt=Math.max(32,ft+(ft>>>1)+7),Qt=new Uint8Array(Rt>>>3<<3);ht=55296&&Nt<=56319){if(ht=55296&&Nt<=56319)continue}if(pt+4>Qt.length){Rt+=8,Rt=(Rt*=1+ht/Ut.length*2)>>>3<<3;var kt=new Uint8Array(Rt);kt.set(Qt),Qt=kt}if(4294967168&Nt){if(!(4294965248&Nt))Qt[pt++]=Nt>>>6&31|192;else if(!(4294901760&Nt))Qt[pt++]=Nt>>>12&15|224,Qt[pt++]=Nt>>>6&63|128;else{if(4292870144&Nt)continue;Qt[pt++]=Nt>>>18&7|240,Qt[pt++]=Nt>>>12&63|128,Qt[pt++]=Nt>>>6&63|128}Qt[pt++]=63&Nt|128}else Qt[pt++]=Nt}return Qt.slice?Qt.slice(0,pt):Qt.subarray(0,pt)};function rt(){this.encoding="utf-8"}rt.prototype.encode=function(Ut,ht){return et(ht&&ht.stream,"encode","stream"),nt(Ut)};var it=!tt&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",st=["utf-8","utf8","unicode-1-1-utf-8"],ut=$;tt?ut=function(Ut,ht){return(Ut instanceof Buffer?Ut:Buffer.from(Ut.buffer,Ut.byteOffset,Ut.byteLength)).toString(ht)}:it&&(ut=function(Ut){try{return function(ht){var ft;try{var pt=new Blob([ht],{type:"text/plain;charset=UTF-8"});ft=URL.createObjectURL(pt);var Rt=new XMLHttpRequest;return Rt.open("GET",ft,!1),Rt.send(),Rt.responseText}finally{ft&&URL.revokeObjectURL(ft)}}(Ut)}catch{return $(Ut)}});var Ft="construct 'TextDecoder'",dt="".concat(_e," ").concat(Ft,": the ");function gt(Ut,ht){if(et(ht&&ht.fatal,Ft,"fatal"),Ut=Ut||"utf-8",!(tt?Buffer.isEncoding(Ut):st.indexOf(Ut.toLowerCase())!==-1))throw new RangeError("".concat(dt," encoding label provided ('").concat(Ut,"') is invalid."));this.encoding=Ut,this.fatal=!1,this.ignoreBOM=!1}gt.prototype.decode=function(Ut,ht){var ft;return et(ht&&ht.stream,"decode","stream"),ft=Ut instanceof Uint8Array?Ut:Ut.buffer instanceof ArrayBuffer?new Uint8Array(Ut.buffer):new Uint8Array(Ut),ut(ft,this.encoding)},j.TextEncoder=j.TextEncoder||rt,j.TextDecoder=j.TextDecoder||gt})(typeof window<"u"?window:_.g!==void 0?_.g:this)},4798:(o,s,_)=>{_.r(s),_.d(s,{assign:()=>nt,default:()=>mt,defaultI18n:()=>ut,format:()=>jt,parse:()=>vt,setGlobalDateI18n:()=>dt,setGlobalDateMasks:()=>Bt});var j=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,$="[^\\s]+",_e=/\[([^]*?)\]/gm;function et(yt,Vt){for(var wt=[],Et=0,Jt=yt.length;Et-1?Et:null}};function nt(yt){for(var Vt=[],wt=1;wt3?0:(yt-yt%10!=10?1:0)*yt%10]}},Ft=nt({},ut),dt=function(yt){return Ft=nt(Ft,yt)},gt=function(yt){return yt.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Ut=function(yt,Vt){for(Vt===void 0&&(Vt=2),yt=String(yt);yt.length0?"-":"+")+Ut(100*Math.floor(Math.abs(Vt)/60)+Math.abs(Vt)%60,4)},Z:function(yt){var Vt=yt.getTimezoneOffset();return(Vt>0?"-":"+")+Ut(Math.floor(Math.abs(Vt)/60),2)+":"+Ut(Math.abs(Vt)%60,2)}},ft=function(yt){return+yt-1},pt=[null,"\\d\\d?"],Rt=[null,$],Qt=["isPm",$,function(yt,Vt){var wt=yt.toLowerCase();return wt===Vt.amPm[0]?0:wt===Vt.amPm[1]?1:null}],Nt=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(yt){var Vt=(yt+"").match(/([+-]|\d\d)/gi);if(Vt){var wt=60*+Vt[1]+parseInt(Vt[2],10);return Vt[0]==="+"?wt:-wt}return 0}],At={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+$,function(yt){return parseInt(yt,10)}],M:["month","\\d\\d?",ft],MM:["month","\\d\\d",ft],YY:["year","\\d\\d",function(yt){var Vt=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+yt>68?Vt-1:Vt)+yt)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(yt){return 100*+yt}],SS:["millisecond","\\d\\d",function(yt){return 10*+yt}],SSS:["millisecond","\\d{3}"],d:pt,dd:pt,ddd:Rt,dddd:Rt,MMM:["month",$,tt("monthNamesShort")],MMMM:["month",$,tt("monthNames")],a:Qt,A:Qt,ZZ:Nt,Z:Nt},kt={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Bt=function(yt){return nt(kt,yt)},jt=function(yt,Vt,wt){if(Vt===void 0&&(Vt=kt.default),wt===void 0&&(wt={}),typeof yt=="number"&&(yt=new Date(yt)),Object.prototype.toString.call(yt)!=="[object Date]"||isNaN(yt.getTime()))throw new Error("Invalid Date pass to format");var Et=[];Vt=(Vt=kt[Vt]||Vt).replace(_e,function(Pt,Yt){return Et.push(Yt),"@@@"});var Jt=nt(nt({},Ft),wt);return(Vt=Vt.replace(j,function(Pt){return ht[Pt](yt,Jt)})).replace(/@@@/g,function(){return Et.shift()})};function vt(yt,Vt,wt){if(wt===void 0&&(wt={}),typeof Vt!="string")throw new Error("Invalid format in fecha parse");if(Vt=kt[Vt]||Vt,yt.length>1e3)return null;var Et={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},Jt=[],Pt=[],Yt=Vt.replace(_e,function(Bn,hn){return Pt.push(gt(hn)),"@@@"}),Mt={},zt={};Yt=gt(Yt).replace(j,function(Bn){var hn=At[Bn],En=hn[0],Cn=hn[1],Tt=hn[3];if(Mt[En])throw new Error("Invalid format. "+En+" specified twice in format");return Mt[En]=!0,Tt&&(zt[Tt]=!0),Jt.push(hn),"("+Cn+")"}),Object.keys(zt).forEach(function(Bn){if(!Mt[Bn])throw new Error("Invalid format. "+Bn+" is required in specified format")}),Yt=Yt.replace(/@@@/g,function(){return Pt.shift()});var qt=yt.match(new RegExp(Yt,"i"));if(!qt)return null;for(var Xt,xt=nt(nt({},Ft),wt),It=1;It11||Et.month<0||Et.day>31||Et.day<1||Et.hour>23||Et.hour<0||Et.minute>59||Et.minute<0||Et.second>59||Et.second<0)return null;return Xt}const mt={format:jt,parse:vt,defaultI18n:ut,setGlobalDateI18n:dt,setGlobalDateMasks:Bt}},9827:o=>{var s=Object.prototype.toString;o.exports=function(_){if(typeof _.displayName=="string"&&_.constructor.name)return _.displayName;if(typeof _.name=="string"&&_.name)return _.name;if(typeof _=="object"&&_.constructor&&typeof _.constructor.name=="string")return _.constructor.name;var j=_.toString(),$=s.call(_).slice(8,-1);return(j=$==="Function"?j.substring(j.indexOf("(")+1,j.indexOf(")")):$)||"anonymous"}},705:(o,s,_)=>{var j=_(9617),$=Object.prototype.toString,_e=Object.prototype.hasOwnProperty,et=function(rt,it,st){for(var ut=0,Ft=rt.length;ut=3&&(ut=st),$.call(rt)==="[object Array]"?et(rt,it,ut):typeof rt=="string"?tt(rt,it,ut):nt(rt,it,ut)}},8794:o=>{var s="Function.prototype.bind called on incompatible ",_=Object.prototype.toString,j=Math.max,$=function(tt,nt){for(var rt=[],it=0;it{var j=_(8794);o.exports=Function.prototype.bind||j},528:(o,s,_)=>{var j=_(9629),$=_(9838),_e=_(9110),et=_(1155),tt=_(4943),nt=_(5731),rt=_(3468),it=_(2140),st=_(8479),ut=_(8449),Ft=_(8129),dt=_(2387),gt=_(5865),Ut=_(1319),ht=_(6882),ft=Function,pt=function(Kt){try{return ft('"use strict"; return ('+Kt+").constructor;")()}catch{}},Rt=_(9336),Qt=_(4940),Nt=function(){throw new rt},At=Rt?function(){try{return Nt}catch{try{return Rt(arguments,"callee").get}catch{return Nt}}}():Nt,kt=_(3558)(),Bt=_(6369),jt=_(7345),vt=_(7859),mt=_(6095),yt=_(4531),Vt={},wt=typeof Uint8Array<"u"&&Bt?Bt(Uint8Array):void 0,Et={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":kt&&Bt?Bt([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":Vt,"%AsyncGenerator%":Vt,"%AsyncGeneratorFunction%":Vt,"%AsyncIteratorPrototype%":Vt,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%BigInt%":typeof BigInt>"u"?void 0:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?void 0:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$,"%eval%":eval,"%EvalError%":_e,"%Float16Array%":typeof Float16Array>"u"?void 0:Float16Array,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?void 0:FinalizationRegistry,"%Function%":ft,"%GeneratorFunction%":Vt,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":kt&&Bt?Bt(Bt([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&kt&&Bt?Bt(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":j,"%Object.getOwnPropertyDescriptor%":Rt,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":et,"%ReferenceError%":tt,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&kt&&Bt?Bt(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":kt&&Bt?Bt(""[Symbol.iterator]()):void 0,"%Symbol%":kt?Symbol:void 0,"%SyntaxError%":nt,"%ThrowTypeError%":At,"%TypedArray%":wt,"%TypeError%":rt,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%URIError%":it,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakRef%":typeof WeakRef>"u"?void 0:WeakRef,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet,"%Function.prototype.call%":yt,"%Function.prototype.apply%":mt,"%Object.defineProperty%":Qt,"%Object.getPrototypeOf%":jt,"%Math.abs%":st,"%Math.floor%":ut,"%Math.max%":Ft,"%Math.min%":dt,"%Math.pow%":gt,"%Math.round%":Ut,"%Math.sign%":ht,"%Reflect.getPrototypeOf%":vt};if(Bt)try{null.error}catch(Kt){var Jt=Bt(Bt(Kt));Et["%Error.prototype%"]=Jt}var Pt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Yt=_(9138),Mt=_(8554),zt=Yt.call(yt,Array.prototype.concat),qt=Yt.call(mt,Array.prototype.splice),Xt=Yt.call(yt,String.prototype.replace),xt=Yt.call(yt,String.prototype.slice),It=Yt.call(yt,RegExp.prototype.exec),$t=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,un=/\\(\\)?/g,tn=function(Kt){var Un=xt(Kt,0,1),Bn=xt(Kt,-1);if(Un==="%"&&Bn!=="%")throw new nt("invalid intrinsic syntax, expected closing `%`");if(Bn==="%"&&Un!=="%")throw new nt("invalid intrinsic syntax, expected opening `%`");var hn=[];return Xt(Kt,$t,function(En,Cn,Tt,Zt){hn[hn.length]=Tt?Xt(Zt,un,"$1"):Cn||En}),hn},an=function(Kt,Un){var Bn,hn=Kt;if(Mt(Pt,hn)&&(hn="%"+(Bn=Pt[hn])[0]+"%"),Mt(Et,hn)){var En=Et[hn];if(En===Vt&&(En=function Cn(Tt){var Zt;if(Tt==="%AsyncFunction%")Zt=pt("async function () {}");else if(Tt==="%GeneratorFunction%")Zt=pt("function* () {}");else if(Tt==="%AsyncGeneratorFunction%")Zt=pt("async function* () {}");else if(Tt==="%AsyncGenerator%"){var Ot=Cn("%AsyncGeneratorFunction%");Ot&&(Zt=Ot.prototype)}else if(Tt==="%AsyncIteratorPrototype%"){var sn=Cn("%AsyncGenerator%");sn&&Bt&&(Zt=Bt(sn.prototype))}return Et[Tt]=Zt,Zt}(hn)),En===void 0&&!Un)throw new rt("intrinsic "+Kt+" exists, but is not available. Please file an issue!");return{alias:Bn,name:hn,value:En}}throw new nt("intrinsic "+Kt+" does not exist!")};o.exports=function(Kt,Un){if(typeof Kt!="string"||Kt.length===0)throw new rt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Un!="boolean")throw new rt('"allowMissing" argument must be a boolean');if(It(/^%?[^%]*%?$/,Kt)===null)throw new nt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Bn=tn(Kt),hn=Bn.length>0?Bn[0]:"",En=an("%"+hn+"%",Un),Cn=En.name,Tt=En.value,Zt=!1,Ot=En.alias;Ot&&(hn=Ot[0],qt(Bn,zt([0,1],Ot)));for(var sn=1,ln=!0;sn=Bn.length){var On=Rt(Tt,cn);Tt=(ln=!!On)&&"get"in On&&!("originalValue"in On.get)?On.get:Tt[cn]}else ln=Mt(Tt,cn),Tt=Tt[cn];ln&&!Zt&&(Et[Cn]=Tt)}}return Tt}},7345:(o,s,_)=>{var j=_(9629);o.exports=j.getPrototypeOf||null},7859:o=>{o.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},6369:(o,s,_)=>{var j=_(7859),$=_(7345),_e=_(6423);o.exports=j?function(et){return j(et)}:$?function(et){if(!et||typeof et!="object"&&typeof et!="function")throw new TypeError("getProto: not an object");return $(et)}:_e?function(et){return _e(et)}:null},7186:function(__unused_webpack_module,exports,__webpack_require__){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(o,s,_){o instanceof String&&(o=String(o));for(var j=o.length,$=0;$=$}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(o){return o||function(s,_){return $jscomp.findInternal(this,s,_).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(o){return o||function(s,_){var j=$jscomp.checkStringArgs(this,s,"startsWith");s+="";var $=j.length,_e=s.length;_=Math.max(0,Math.min(0|_,j.length));for(var et=0;et<_e&&_<$;)if(j[_++]!=s[et++])return!1;return et>=_e}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(o){return o||function(s){var _=$jscomp.checkStringArgs(this,null,"repeat");if(0>s||1342177279>>=1)&&(_+=_);return j}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(o,s,_){o=o.split("."),_=_||goog.global,o[0]in _||_.execScript===void 0||_.execScript("var "+o[0]);for(var j;o.length&&(j=o.shift());)o.length||s===void 0?_=_[j]&&_[j]!==Object.prototype[j]?_[j]:_[j]={}:_[j]=s},goog.define=function(o,s){return s},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(o){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(o)},goog.constructNamespace_=function(o,s){goog.exportPath_(o,s)},goog.getScriptNonce=function(o){return o&&o!=goog.global?goog.getScriptNonce_(o.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(o){return(o=o.querySelector&&o.querySelector("script[nonce]"))&&(o=o.nonce||o.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(o)?o:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(o){if(typeof o!="string"||!o||o.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+o+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=o},goog.module.get=function(o){return goog.module.getInternal_(o)},goog.module.getInternal_=function(o){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var o=goog.global.$jscomp;return!!o&&typeof o.getCurrentModulePath=="function"&&!!o.getCurrentModulePath()},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(o){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=o;else{var s=goog.global.$jscomp;if(!s||typeof s.getCurrentModulePath!="function")throw Error('Module with namespace "'+o+'" has been loaded incorrectly.');s=s.require(s.getCurrentModulePath()),goog.loadedModules_[o]={exports:s,type:goog.ModuleType.ES6,moduleId:o}}},goog.setTestOnly=function(o){if(goog.DISALLOW_TEST_ONLY_CODE)throw o=o||"",Error("Importing test-only code into non-debug environment"+(o?": "+o:"."))},goog.forwardDeclare=function(o){},goog.getObjectByName=function(o,s){o=o.split("."),s=s||goog.global;for(var _=0;_tn.length)&&(an=tn.length);for(var Kt=0,Un=new Array(an);Kt10)return!0;for(var an=0;an57)return!0}return tn.length===10&&tn>=Math.pow(2,32)}function Jt(tn){return Object.keys(tn).filter(Et).concat(it(tn).filter(Object.prototype.propertyIsEnumerable.bind(tn)))}function Pt(tn,an){if(tn===an)return 0;for(var Kt=tn.length,Un=an.length,Bn=0,hn=Math.min(Kt,Un);Bn{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(rt){return(0,_e.isAsync)(rt)?function(...it){const st=it.pop();return tt(rt.apply(this,it),st)}:(0,j.default)(function(it,st){var ut;try{ut=rt.apply(this,it)}catch(Ft){return st(Ft)}if(ut&&typeof ut.then=="function")return tt(ut,st);st(null,ut)})};var j=et(_(6172)),$=et(_(6857)),_e=_(1214);function et(rt){return rt&&rt.__esModule?rt:{default:rt}}function tt(rt,it){return rt.then(st=>{nt(it,null,st)},st=>{nt(it,st&&(st instanceof Error||st.message)?st:new Error(st))})}function nt(rt,it,st){try{rt(it,st)}catch(ut){(0,$.default)(Ft=>{throw Ft},ut)}}o.exports=s.default},108:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0});var j=it(_(7804)),$=it(_(1371)),_e=it(_(7485)),et=it(_(6297)),tt=it(_(6083)),nt=it(_(1214)),rt=it(_(6280));function it(Ft){return Ft&&Ft.__esModule?Ft:{default:Ft}}function st(Ft,dt,gt){gt=(0,et.default)(gt);var Ut=0,ht=0,{length:ft}=Ft,pt=!1;function Rt(Qt,Nt){Qt===!1&&(pt=!0),pt!==!0&&(Qt?gt(Qt):++ht!==ft&&Nt!==$.default||gt(null))}for(ft===0&>(null);Ut{Object.defineProperty(s,"__esModule",{value:!0});var j=et(_(6513)),$=et(_(1214)),_e=et(_(6280));function et(tt){return tt&&tt.__esModule?tt:{default:tt}}s.default=(0,_e.default)(function(tt,nt,rt,it){return(0,j.default)(nt)(tt,(0,$.default)(rt),it)},4),o.exports=s.default},5313:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0});var j=_e(_(7485)),$=_e(_(6280));function _e(et){return et&&et.__esModule?et:{default:et}}s.default=(0,$.default)(function(et,tt,nt){return(0,j.default)(et,1,tt,nt)},3),o.exports=s.default},5236:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0});var j=tt(_(108)),$=tt(_(4344)),_e=tt(_(1214)),et=tt(_(6280));function tt(nt){return nt&&nt.__esModule?nt:{default:nt}}s.default=(0,et.default)(function(nt,rt,it){return(0,j.default)(nt,(0,$.default)((0,_e.default)(rt)),it)},3),o.exports=s.default},6959:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(et,tt,nt,rt){let it=!1,st=!1,ut=!1,Ft=0,dt=0;function gt(){Ft>=tt||ut||it||(ut=!0,et.next().then(({value:ft,done:pt})=>{if(!st&&!it){if(ut=!1,pt)return it=!0,void(Ft<=0&&rt(null));Ft++,nt(ft,dt,Ut),dt++,gt()}}).catch(ht))}function Ut(ft,pt){if(Ft-=1,!st)return ft?ht(ft):ft===!1?(it=!0,void(st=!0)):pt===_e.default||it&&Ft<=0?(it=!0,rt(null)):void gt()}function ht(ft){st||(ut=!1,it=!0,rt(ft))}gt()};var j,$=_(1371),_e=(j=$)&&j.__esModule?j:{default:j};o.exports=s.default},6280:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_,j){if(j||(j=_.length),!j)throw new Error("arity is undefined");return function(...$){return typeof $[j-1]=="function"?_.apply(this,$):new Promise((_e,et)=>{$[j-1]=(tt,...nt)=>{if(tt)return et(tt);_e(nt.length>1?nt:nt[0])},_.apply(this,$)})}},o.exports=s.default},1371:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default={},o.exports=s.default},6513:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0});var j=rt(_(6297)),$=rt(_(1586)),_e=rt(_(6083)),et=_(1214),tt=rt(_(6959)),nt=rt(_(1371));function rt(it){return it&&it.__esModule?it:{default:it}}s.default=it=>(st,ut,Ft)=>{if(Ft=(0,j.default)(Ft),it<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!st)return Ft(null);if((0,et.isAsyncGenerator)(st))return(0,tt.default)(st,it,ut,Ft);if((0,et.isAsyncIterable)(st))return(0,tt.default)(st[Symbol.asyncIterator](),it,ut,Ft);var dt=(0,$.default)(st),gt=!1,Ut=!1,ht=0,ft=!1;function pt(Qt,Nt){if(!Ut)if(ht-=1,Qt)gt=!0,Ft(Qt);else if(Qt===!1)gt=!0,Ut=!0;else{if(Nt===nt.default||gt&&ht<=0)return gt=!0,Ft(null);ft||Rt()}}function Rt(){for(ft=!0;ht{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){return _[Symbol.iterator]&&_[Symbol.iterator]()},o.exports=s.default},6172:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){return function(...j){var $=j.pop();return _.call(this,j,$)}},o.exports=s.default},7804:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){return _&&typeof _.length=="number"&&_.length>=0&&_.length%1==0},o.exports=s.default},1586:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(et){if((0,j.default)(et))return function(ut){var Ft=-1,dt=ut.length;return function(){return++Ft{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){function j(...$){if(_!==null){var _e=_;_=null,_e.apply(this,$)}}return Object.assign(j,_),j},o.exports=s.default},6083:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){return function(...j){if(_===null)throw new Error("Callback was already called.");var $=_;_=null,$.apply(this,j)}},o.exports=s.default},7075:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0});var j=et(_(7804)),$=et(_(1214)),_e=et(_(6280));function et(tt){return tt&&tt.__esModule?tt:{default:tt}}s.default=(0,_e.default)((tt,nt,rt)=>{var it=(0,j.default)(nt)?[]:{};tt(nt,(st,ut,Ft)=>{(0,$.default)(st)((dt,...gt)=>{gt.length<2&&([gt]=gt),it[ut]=gt,Ft(dt)})},st=>rt(st,it))},3),o.exports=s.default},6857:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.fallback=et,s.wrap=tt;var _,j=s.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,$=s.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,_e=s.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function et(nt){setTimeout(nt,0)}function tt(nt){return(rt,...it)=>nt(()=>rt(...it))}_=j?queueMicrotask:$?setImmediate:_e?process.nextTick:et,s.default=tt(_)},4344:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(_){return(j,$,_e)=>_(j,_e)},o.exports=s.default},1214:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.isAsyncIterable=s.isAsyncGenerator=s.isAsync=void 0;var j,$=_(2530),_e=(j=$)&&j.__esModule?j:{default:j};function et(tt){return tt[Symbol.toStringTag]==="AsyncFunction"}s.default=function(tt){if(typeof tt!="function")throw new Error("expected a function");return et(tt)?(0,_e.default)(tt):tt},s.isAsync=et,s.isAsyncGenerator=function(tt){return tt[Symbol.toStringTag]==="AsyncGenerator"},s.isAsyncIterable=function(tt){return typeof tt[Symbol.asyncIterator]=="function"}},481:(o,s,_)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(et,tt){return(0,j.default)($.default,et,tt)};var j=_e(_(7075)),$=_e(_(5313));function _e(et){return et&&et.__esModule?et:{default:et}}o.exports=s.default},7991:(o,s)=>{s.byteLength=function(it){var st=nt(it),ut=st[0],Ft=st[1];return 3*(ut+Ft)/4-Ft},s.toByteArray=function(it){var st,ut,Ft=nt(it),dt=Ft[0],gt=Ft[1],Ut=new $(function(pt,Rt,Qt){return 3*(Rt+Qt)/4-Qt}(0,dt,gt)),ht=0,ft=gt>0?dt-4:dt;for(ut=0;ut>16&255,Ut[ht++]=st>>8&255,Ut[ht++]=255&st;return gt===2&&(st=j[it.charCodeAt(ut)]<<2|j[it.charCodeAt(ut+1)]>>4,Ut[ht++]=255&st),gt===1&&(st=j[it.charCodeAt(ut)]<<10|j[it.charCodeAt(ut+1)]<<4|j[it.charCodeAt(ut+2)]>>2,Ut[ht++]=st>>8&255,Ut[ht++]=255&st),Ut},s.fromByteArray=function(it){for(var st,ut=it.length,Ft=ut%3,dt=[],gt=0,Ut=ut-Ft;gtUt?Ut:gt+16383));return Ft===1?(st=it[ut-1],dt.push(_[st>>2]+_[st<<4&63]+"==")):Ft===2&&(st=(it[ut-2]<<8)+it[ut-1],dt.push(_[st>>10]+_[st>>4&63]+_[st<<2&63]+"=")),dt.join("")};for(var _=[],j=[],$=typeof Uint8Array<"u"?Uint8Array:Array,_e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",et=0,tt=_e.length;et0)throw new Error("Invalid string. Length must be a multiple of 4");var ut=it.indexOf("=");return ut===-1&&(ut=st),[ut,ut===st?0:4-ut%4]}function rt(it,st,ut){for(var Ft,dt,gt=[],Ut=st;Ut>18&63]+_[dt>>12&63]+_[dt>>6&63]+_[63&dt]);return gt.join("")}j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63},9811:(o,s,_)=>{var j=_(6093),$=_(2495),_e=_(6446),et=_(8142),tt=_(7200);for(var nt in tt)s[nt]=tt[nt];s.NONE=0,s.DEFLATE=1,s.INFLATE=2,s.GZIP=3,s.GUNZIP=4,s.DEFLATERAW=5,s.INFLATERAW=6,s.UNZIP=7;function rt(it){if(typeof it!="number"||its.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=it,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}rt.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,j(this.init_done,"close before init"),j(this.mode<=s.UNZIP),this.mode===s.DEFLATE||this.mode===s.GZIP||this.mode===s.DEFLATERAW?_e.deflateEnd(this.strm):this.mode!==s.INFLATE&&this.mode!==s.GUNZIP&&this.mode!==s.INFLATERAW&&this.mode!==s.UNZIP||et.inflateEnd(this.strm),this.mode=s.NONE,this.dictionary=null)},rt.prototype.write=function(it,st,ut,Ft,dt,gt,Ut){return this._write(!0,it,st,ut,Ft,dt,gt,Ut)},rt.prototype.writeSync=function(it,st,ut,Ft,dt,gt,Ut){return this._write(!1,it,st,ut,Ft,dt,gt,Ut)},rt.prototype._write=function(it,st,ut,Ft,dt,gt,Ut,ht){if(j.equal(arguments.length,8),j(this.init_done,"write before init"),j(this.mode!==s.NONE,"already finalized"),j.equal(!1,this.write_in_progress,"write already in progress"),j.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,j.equal(!1,st===void 0,"must provide flush value"),this.write_in_progress=!0,st!==s.Z_NO_FLUSH&&st!==s.Z_PARTIAL_FLUSH&&st!==s.Z_SYNC_FLUSH&&st!==s.Z_FULL_FLUSH&&st!==s.Z_FINISH&&st!==s.Z_BLOCK)throw new Error("Invalid flush value");if(ut==null&&(ut=Buffer.alloc(0),dt=0,Ft=0),this.strm.avail_in=dt,this.strm.input=ut,this.strm.next_in=Ft,this.strm.avail_out=ht,this.strm.output=gt,this.strm.next_out=Ut,this.flush=st,!it)return this._process(),this._checkError()?this._afterSync():void 0;var ft=this;return process.nextTick(function(){ft._process(),ft._after()}),this},rt.prototype._afterSync=function(){var it=this.strm.avail_out,st=this.strm.avail_in;return this.write_in_progress=!1,[st,it]},rt.prototype._process=function(){var it=null;switch(this.mode){case s.DEFLATE:case s.GZIP:case s.DEFLATERAW:this.err=_e.deflate(this.strm,this.flush);break;case s.UNZIP:switch(this.strm.avail_in>0&&(it=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(it===null)break;if(this.strm.input[it]!==31){this.mode=s.INFLATE;break}if(this.gzip_id_bytes_read=1,it++,this.strm.avail_in===1)break;case 1:if(it===null)break;this.strm.input[it]===139?(this.gzip_id_bytes_read=2,this.mode=s.GUNZIP):this.mode=s.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case s.INFLATE:case s.GUNZIP:case s.INFLATERAW:for(this.err=et.inflate(this.strm,this.flush),this.err===s.Z_NEED_DICT&&this.dictionary&&(this.err=et.inflateSetDictionary(this.strm,this.dictionary),this.err===s.Z_OK?this.err=et.inflate(this.strm,this.flush):this.err===s.Z_DATA_ERROR&&(this.err=s.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===s.GUNZIP&&this.err===s.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=et.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},rt.prototype._checkError=function(){switch(this.err){case s.Z_OK:case s.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===s.Z_FINISH)return this._error("unexpected end of file"),!1;break;case s.Z_STREAM_END:break;case s.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},rt.prototype._after=function(){if(this._checkError()){var it=this.strm.avail_out,st=this.strm.avail_in;this.write_in_progress=!1,this.callback(st,it),this.pending_close&&this.close()}},rt.prototype._error=function(it){this.strm.msg&&(it=this.strm.msg),this.onerror(it,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},rt.prototype.init=function(it,st,ut,Ft,dt){j(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),j(it>=8&&it<=15,"invalid windowBits"),j(st>=-1&&st<=9,"invalid compression level"),j(ut>=1&&ut<=9,"invalid memlevel"),j(Ft===s.Z_FILTERED||Ft===s.Z_HUFFMAN_ONLY||Ft===s.Z_RLE||Ft===s.Z_FIXED||Ft===s.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(st,it,ut,Ft,dt),this._setDictionary()},rt.prototype.params=function(){throw new Error("deflateParams Not supported")},rt.prototype.reset=function(){this._reset(),this._setDictionary()},rt.prototype._init=function(it,st,ut,Ft,dt){switch(this.level=it,this.windowBits=st,this.memLevel=ut,this.strategy=Ft,this.flush=s.Z_NO_FLUSH,this.err=s.Z_OK,this.mode!==s.GZIP&&this.mode!==s.GUNZIP||(this.windowBits+=16),this.mode===s.UNZIP&&(this.windowBits+=32),this.mode!==s.DEFLATERAW&&this.mode!==s.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new $,this.mode){case s.DEFLATE:case s.GZIP:case s.DEFLATERAW:this.err=_e.deflateInit2(this.strm,this.level,s.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case s.INFLATE:case s.GUNZIP:case s.INFLATERAW:case s.UNZIP:this.err=et.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==s.Z_OK&&this._error("Init error"),this.dictionary=dt,this.write_in_progress=!1,this.init_done=!0},rt.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=s.Z_OK,this.mode){case s.DEFLATE:case s.DEFLATERAW:this.err=_e.deflateSetDictionary(this.strm,this.dictionary)}this.err!==s.Z_OK&&this._error("Failed to set dictionary")}},rt.prototype._reset=function(){switch(this.err=s.Z_OK,this.mode){case s.DEFLATE:case s.DEFLATERAW:case s.GZIP:this.err=_e.deflateReset(this.strm);break;case s.INFLATE:case s.INFLATERAW:case s.GUNZIP:this.err=et.inflateReset(this.strm)}this.err!==s.Z_OK&&this._error("Failed to reset stream")},s.Zlib=rt},7946:(o,s,_)=>{var j=_(1048).Buffer,$=_(1983).Transform,_e=_(9811),et=_(9208),tt=_(6093).ok,nt=_(1048).kMaxLength,rt="Cannot create final Buffer. It would be larger than 0x"+nt.toString(16)+" bytes";_e.Z_MIN_WINDOWBITS=8,_e.Z_MAX_WINDOWBITS=15,_e.Z_DEFAULT_WINDOWBITS=15,_e.Z_MIN_CHUNK=64,_e.Z_MAX_CHUNK=1/0,_e.Z_DEFAULT_CHUNK=16384,_e.Z_MIN_MEMLEVEL=1,_e.Z_MAX_MEMLEVEL=9,_e.Z_DEFAULT_MEMLEVEL=8,_e.Z_MIN_LEVEL=-1,_e.Z_MAX_LEVEL=9,_e.Z_DEFAULT_LEVEL=_e.Z_DEFAULT_COMPRESSION;for(var it=Object.keys(_e),st=0;st=nt?qt=new RangeError(rt):zt=j.concat(Jt,Pt),Jt=[],Vt.close(),Et(qt,zt)}Vt.on("error",function(zt){Vt.removeListener("end",Mt),Vt.removeListener("readable",Yt),Et(zt)}),Vt.on("end",Mt),Vt.end(wt),Yt()}function ft(Vt,wt){if(typeof wt=="string"&&(wt=j.from(wt)),!j.isBuffer(wt))throw new TypeError("Not a string or buffer");var Et=Vt._finishFlushFlag;return Vt._processChunk(wt,Et)}function pt(Vt){if(!(this instanceof pt))return new pt(Vt);vt.call(this,Vt,_e.DEFLATE)}function Rt(Vt){if(!(this instanceof Rt))return new Rt(Vt);vt.call(this,Vt,_e.INFLATE)}function Qt(Vt){if(!(this instanceof Qt))return new Qt(Vt);vt.call(this,Vt,_e.GZIP)}function Nt(Vt){if(!(this instanceof Nt))return new Nt(Vt);vt.call(this,Vt,_e.GUNZIP)}function At(Vt){if(!(this instanceof At))return new At(Vt);vt.call(this,Vt,_e.DEFLATERAW)}function kt(Vt){if(!(this instanceof kt))return new kt(Vt);vt.call(this,Vt,_e.INFLATERAW)}function Bt(Vt){if(!(this instanceof Bt))return new Bt(Vt);vt.call(this,Vt,_e.UNZIP)}function jt(Vt){return Vt===_e.Z_NO_FLUSH||Vt===_e.Z_PARTIAL_FLUSH||Vt===_e.Z_SYNC_FLUSH||Vt===_e.Z_FULL_FLUSH||Vt===_e.Z_FINISH||Vt===_e.Z_BLOCK}function vt(Vt,wt){var Et=this;if(this._opts=Vt=Vt||{},this._chunkSize=Vt.chunkSize||s.Z_DEFAULT_CHUNK,$.call(this,Vt),Vt.flush&&!jt(Vt.flush))throw new Error("Invalid flush flag: "+Vt.flush);if(Vt.finishFlush&&!jt(Vt.finishFlush))throw new Error("Invalid flush flag: "+Vt.finishFlush);if(this._flushFlag=Vt.flush||_e.Z_NO_FLUSH,this._finishFlushFlag=Vt.finishFlush!==void 0?Vt.finishFlush:_e.Z_FINISH,Vt.chunkSize&&(Vt.chunkSizes.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+Vt.chunkSize);if(Vt.windowBits&&(Vt.windowBitss.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+Vt.windowBits);if(Vt.level&&(Vt.levels.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+Vt.level);if(Vt.memLevel&&(Vt.memLevels.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+Vt.memLevel);if(Vt.strategy&&Vt.strategy!=s.Z_FILTERED&&Vt.strategy!=s.Z_HUFFMAN_ONLY&&Vt.strategy!=s.Z_RLE&&Vt.strategy!=s.Z_FIXED&&Vt.strategy!=s.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+Vt.strategy);if(Vt.dictionary&&!j.isBuffer(Vt.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new _e.Zlib(wt);var Jt=this;this._hadError=!1,this._handle.onerror=function(Mt,zt){mt(Jt),Jt._hadError=!0;var qt=new Error(Mt);qt.errno=zt,qt.code=s.codes[zt],Jt.emit("error",qt)};var Pt=s.Z_DEFAULT_COMPRESSION;typeof Vt.level=="number"&&(Pt=Vt.level);var Yt=s.Z_DEFAULT_STRATEGY;typeof Vt.strategy=="number"&&(Yt=Vt.strategy),this._handle.init(Vt.windowBits||s.Z_DEFAULT_WINDOWBITS,Pt,Vt.memLevel||s.Z_DEFAULT_MEMLEVEL,Yt,Vt.dictionary),this._buffer=j.allocUnsafe(this._chunkSize),this._offset=0,this._level=Pt,this._strategy=Yt,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!Et._handle},configurable:!0,enumerable:!0})}function mt(Vt,wt){wt&&process.nextTick(wt),Vt._handle&&(Vt._handle.close(),Vt._handle=null)}function yt(Vt){Vt.emit("close")}Object.defineProperty(s,"codes",{enumerable:!0,value:Object.freeze(Ft),writable:!1}),s.Deflate=pt,s.Inflate=Rt,s.Gzip=Qt,s.Gunzip=Nt,s.DeflateRaw=At,s.InflateRaw=kt,s.Unzip=Bt,s.createDeflate=function(Vt){return new pt(Vt)},s.createInflate=function(Vt){return new Rt(Vt)},s.createDeflateRaw=function(Vt){return new At(Vt)},s.createInflateRaw=function(Vt){return new kt(Vt)},s.createGzip=function(Vt){return new Qt(Vt)},s.createGunzip=function(Vt){return new Nt(Vt)},s.createUnzip=function(Vt){return new Bt(Vt)},s.deflate=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new pt(wt),Vt,Et)},s.deflateSync=function(Vt,wt){return ft(new pt(wt),Vt)},s.gzip=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new Qt(wt),Vt,Et)},s.gzipSync=function(Vt,wt){return ft(new Qt(wt),Vt)},s.deflateRaw=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new At(wt),Vt,Et)},s.deflateRawSync=function(Vt,wt){return ft(new At(wt),Vt)},s.unzip=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new Bt(wt),Vt,Et)},s.unzipSync=function(Vt,wt){return ft(new Bt(wt),Vt)},s.inflate=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new Rt(wt),Vt,Et)},s.inflateSync=function(Vt,wt){return ft(new Rt(wt),Vt)},s.gunzip=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new Nt(wt),Vt,Et)},s.gunzipSync=function(Vt,wt){return ft(new Nt(wt),Vt)},s.inflateRaw=function(Vt,wt,Et){return typeof wt=="function"&&(Et=wt,wt={}),ht(new kt(wt),Vt,Et)},s.inflateRawSync=function(Vt,wt){return ft(new kt(wt),Vt)},et.inherits(vt,$),vt.prototype.params=function(Vt,wt,Et){if(Vts.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+Vt);if(wt!=s.Z_FILTERED&&wt!=s.Z_HUFFMAN_ONLY&&wt!=s.Z_RLE&&wt!=s.Z_FIXED&&wt!=s.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+wt);if(this._level!==Vt||this._strategy!==wt){var Jt=this;this.flush(_e.Z_SYNC_FLUSH,function(){tt(Jt._handle,"zlib binding closed"),Jt._handle.params(Vt,wt),Jt._hadError||(Jt._level=Vt,Jt._strategy=wt,Et&&Et())})}else process.nextTick(Et)},vt.prototype.reset=function(){return tt(this._handle,"zlib binding closed"),this._handle.reset()},vt.prototype._flush=function(Vt){this._transform(j.alloc(0),"",Vt)},vt.prototype.flush=function(Vt,wt){var Et=this,Jt=this._writableState;(typeof Vt=="function"||Vt===void 0&&!wt)&&(wt=Vt,Vt=_e.Z_FULL_FLUSH),Jt.ended?wt&&process.nextTick(wt):Jt.ending?wt&&this.once("end",wt):Jt.needDrain?wt&&this.once("drain",function(){return Et.flush(Vt,wt)}):(this._flushFlag=Vt,this.write(j.alloc(0),"",wt))},vt.prototype.close=function(Vt){mt(this,Vt),process.nextTick(yt,this)},vt.prototype._transform=function(Vt,wt,Et){var Jt,Pt=this._writableState,Yt=(Pt.ending||Pt.ended)&&(!Vt||Pt.length===Vt.length);return Vt===null||j.isBuffer(Vt)?this._handle?(Yt?Jt=this._finishFlushFlag:(Jt=this._flushFlag,Vt.length>=Pt.length&&(this._flushFlag=this._opts.flush||_e.Z_NO_FLUSH)),void this._processChunk(Vt,Jt,Et)):Et(new Error("zlib binding closed")):Et(new Error("invalid input"))},vt.prototype._processChunk=function(Vt,wt,Et){var Jt=Vt&&Vt.length,Pt=this._chunkSize-this._offset,Yt=0,Mt=this,zt=typeof Et=="function";if(!zt){var qt,Xt=[],xt=0;this.on("error",function(an){qt=an}),tt(this._handle,"zlib binding closed");do var It=this._handle.writeSync(wt,Vt,Yt,Jt,this._buffer,this._offset,Pt);while(!this._hadError&&tn(It[0],It[1]));if(this._hadError)throw qt;if(xt>=nt)throw mt(this),new RangeError(rt);var $t=j.concat(Xt,xt);return mt(this),$t}tt(this._handle,"zlib binding closed");var un=this._handle.write(wt,Vt,Yt,Jt,this._buffer,this._offset,Pt);function tn(an,Kt){if(this&&(this.buffer=null,this.callback=null),!Mt._hadError){var Un=Pt-Kt;if(tt(Un>=0,"have should not go down"),Un>0){var Bn=Mt._buffer.slice(Mt._offset,Mt._offset+Un);Mt._offset+=Un,zt?Mt.push(Bn):(Xt.push(Bn),xt+=Bn.length)}if((Kt===0||Mt._offset>=Mt._chunkSize)&&(Pt=Mt._chunkSize,Mt._offset=0,Mt._buffer=j.allocUnsafe(Mt._chunkSize)),Kt===0){if(Yt+=Jt-an,Jt=an,!zt)return!0;var hn=Mt._handle.write(wt,Vt,Yt,Jt,Mt._buffer,Mt._offset,Mt._chunkSize);return hn.callback=tn,void(hn.buffer=Vt)}if(!zt)return!1;Et()}}un.buffer=Vt,un.callback=tn},et.inherits(pt,vt),et.inherits(Rt,vt),et.inherits(Qt,vt),et.inherits(Nt,vt),et.inherits(At,vt),et.inherits(kt,vt),et.inherits(Bt,vt)},1048:(o,s,_)=>{const j=_(7991),$=_(9318),_e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;s.Buffer=tt,s.SlowBuffer=function(Tt){return+Tt!=Tt&&(Tt=0),tt.alloc(+Tt)},s.INSPECT_MAX_BYTES=50;function et(Tt){if(Tt>2147483647)throw new RangeError('The value "'+Tt+'" is invalid for option "size"');const Zt=new Uint8Array(Tt);return Object.setPrototypeOf(Zt,tt.prototype),Zt}function tt(Tt,Zt,Ot){if(typeof Tt=="number"){if(typeof Zt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return it(Tt)}return nt(Tt,Zt,Ot)}function nt(Tt,Zt,Ot){if(typeof Tt=="string")return function(cn,fn){if(typeof fn=="string"&&fn!==""||(fn="utf8"),!tt.isEncoding(fn))throw new TypeError("Unknown encoding: "+fn);const _n=0|dt(cn,fn);let On=et(_n);const xn=On.write(cn,fn);return xn!==_n&&(On=On.slice(0,xn)),On}(Tt,Zt);if(ArrayBuffer.isView(Tt))return function(cn){if(Un(cn,Uint8Array)){const fn=new Uint8Array(cn);return ut(fn.buffer,fn.byteOffset,fn.byteLength)}return st(cn)}(Tt);if(Tt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Tt);if(Un(Tt,ArrayBuffer)||Tt&&Un(Tt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Un(Tt,SharedArrayBuffer)||Tt&&Un(Tt.buffer,SharedArrayBuffer)))return ut(Tt,Zt,Ot);if(typeof Tt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const sn=Tt.valueOf&&Tt.valueOf();if(sn!=null&&sn!==Tt)return tt.from(sn,Zt,Ot);const ln=function(cn){if(tt.isBuffer(cn)){const fn=0|Ft(cn.length),_n=et(fn);return _n.length===0||cn.copy(_n,0,0,fn),_n}if(cn.length!==void 0)return typeof cn.length!="number"||Bn(cn.length)?et(0):st(cn);if(cn.type==="Buffer"&&Array.isArray(cn.data))return st(cn.data)}(Tt);if(ln)return ln;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Tt[Symbol.toPrimitive]=="function")return tt.from(Tt[Symbol.toPrimitive]("string"),Zt,Ot);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Tt)}function rt(Tt){if(typeof Tt!="number")throw new TypeError('"size" argument must be of type number');if(Tt<0)throw new RangeError('The value "'+Tt+'" is invalid for option "size"')}function it(Tt){return rt(Tt),et(Tt<0?0:0|Ft(Tt))}function st(Tt){const Zt=Tt.length<0?0:0|Ft(Tt.length),Ot=et(Zt);for(let sn=0;sn=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647 .toString(16)+" bytes");return 0|Tt}function dt(Tt,Zt){if(tt.isBuffer(Tt))return Tt.length;if(ArrayBuffer.isView(Tt)||Un(Tt,ArrayBuffer))return Tt.byteLength;if(typeof Tt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Tt);const Ot=Tt.length,sn=arguments.length>2&&arguments[2]===!0;if(!sn&&Ot===0)return 0;let ln=!1;for(;;)switch(Zt){case"ascii":case"latin1":case"binary":return Ot;case"utf8":case"utf-8":return tn(Tt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ot;case"hex":return Ot>>>1;case"base64":return an(Tt).length;default:if(ln)return sn?-1:tn(Tt).length;Zt=(""+Zt).toLowerCase(),ln=!0}}function gt(Tt,Zt,Ot){let sn=!1;if((Zt===void 0||Zt<0)&&(Zt=0),Zt>this.length||((Ot===void 0||Ot>this.length)&&(Ot=this.length),Ot<=0)||(Ot>>>=0)<=(Zt>>>=0))return"";for(Tt||(Tt="utf8");;)switch(Tt){case"hex":return mt(this,Zt,Ot);case"utf8":case"utf-8":return Bt(this,Zt,Ot);case"ascii":return jt(this,Zt,Ot);case"latin1":case"binary":return vt(this,Zt,Ot);case"base64":return kt(this,Zt,Ot);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yt(this,Zt,Ot);default:if(sn)throw new TypeError("Unknown encoding: "+Tt);Tt=(Tt+"").toLowerCase(),sn=!0}}function Ut(Tt,Zt,Ot){const sn=Tt[Zt];Tt[Zt]=Tt[Ot],Tt[Ot]=sn}function ht(Tt,Zt,Ot,sn,ln){if(Tt.length===0)return-1;if(typeof Ot=="string"?(sn=Ot,Ot=0):Ot>2147483647?Ot=2147483647:Ot<-2147483648&&(Ot=-2147483648),Bn(Ot=+Ot)&&(Ot=ln?0:Tt.length-1),Ot<0&&(Ot=Tt.length+Ot),Ot>=Tt.length){if(ln)return-1;Ot=Tt.length-1}else if(Ot<0){if(!ln)return-1;Ot=0}if(typeof Zt=="string"&&(Zt=tt.from(Zt,sn)),tt.isBuffer(Zt))return Zt.length===0?-1:ft(Tt,Zt,Ot,sn,ln);if(typeof Zt=="number")return Zt&=255,typeof Uint8Array.prototype.indexOf=="function"?ln?Uint8Array.prototype.indexOf.call(Tt,Zt,Ot):Uint8Array.prototype.lastIndexOf.call(Tt,Zt,Ot):ft(Tt,[Zt],Ot,sn,ln);throw new TypeError("val must be string, number or Buffer")}function ft(Tt,Zt,Ot,sn,ln){let cn,fn=1,_n=Tt.length,On=Zt.length;if(sn!==void 0&&((sn=String(sn).toLowerCase())==="ucs2"||sn==="ucs-2"||sn==="utf16le"||sn==="utf-16le")){if(Tt.length<2||Zt.length<2)return-1;fn=2,_n/=2,On/=2,Ot/=2}function xn(Ln,Pn){return fn===1?Ln[Pn]:Ln.readUInt16BE(Pn*fn)}if(ln){let Ln=-1;for(cn=Ot;cn<_n;cn++)if(xn(Tt,cn)===xn(Zt,Ln===-1?0:cn-Ln)){if(Ln===-1&&(Ln=cn),cn-Ln+1===On)return Ln*fn}else Ln!==-1&&(cn-=cn-Ln),Ln=-1}else for(Ot+On>_n&&(Ot=_n-On),cn=Ot;cn>=0;cn--){let Ln=!0;for(let Pn=0;Pnln&&(sn=ln):sn=ln;const cn=Zt.length;let fn;for(sn>cn/2&&(sn=cn/2),fn=0;fn>8,On=fn%256,xn.push(On),xn.push(_n);return xn}(Zt,Tt.length-Ot),Tt,Ot,sn)}function kt(Tt,Zt,Ot){return Zt===0&&Ot===Tt.length?j.fromByteArray(Tt):j.fromByteArray(Tt.slice(Zt,Ot))}function Bt(Tt,Zt,Ot){Ot=Math.min(Tt.length,Ot);const sn=[];let ln=Zt;for(;ln239?4:cn>223?3:cn>191?2:1;if(ln+_n<=Ot){let On,xn,Ln,Pn;switch(_n){case 1:cn<128&&(fn=cn);break;case 2:On=Tt[ln+1],(192&On)==128&&(Pn=(31&cn)<<6|63&On,Pn>127&&(fn=Pn));break;case 3:On=Tt[ln+1],xn=Tt[ln+2],(192&On)==128&&(192&xn)==128&&(Pn=(15&cn)<<12|(63&On)<<6|63&xn,Pn>2047&&(Pn<55296||Pn>57343)&&(fn=Pn));break;case 4:On=Tt[ln+1],xn=Tt[ln+2],Ln=Tt[ln+3],(192&On)==128&&(192&xn)==128&&(192&Ln)==128&&(Pn=(15&cn)<<18|(63&On)<<12|(63&xn)<<6|63&Ln,Pn>65535&&Pn<1114112&&(fn=Pn))}}fn===null?(fn=65533,_n=1):fn>65535&&(fn-=65536,sn.push(fn>>>10&1023|55296),fn=56320|1023&fn),sn.push(fn),ln+=_n}return function(cn){const fn=cn.length;if(fn<=4096)return String.fromCharCode.apply(String,cn);let _n="",On=0;for(;On"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(tt.prototype,"parent",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.buffer}}),Object.defineProperty(tt.prototype,"offset",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.byteOffset}}),tt.poolSize=8192,tt.from=function(Tt,Zt,Ot){return nt(Tt,Zt,Ot)},Object.setPrototypeOf(tt.prototype,Uint8Array.prototype),Object.setPrototypeOf(tt,Uint8Array),tt.alloc=function(Tt,Zt,Ot){return function(sn,ln,cn){return rt(sn),sn<=0?et(sn):ln!==void 0?typeof cn=="string"?et(sn).fill(ln,cn):et(sn).fill(ln):et(sn)}(Tt,Zt,Ot)},tt.allocUnsafe=function(Tt){return it(Tt)},tt.allocUnsafeSlow=function(Tt){return it(Tt)},tt.isBuffer=function(Tt){return Tt!=null&&Tt._isBuffer===!0&&Tt!==tt.prototype},tt.compare=function(Tt,Zt){if(Un(Tt,Uint8Array)&&(Tt=tt.from(Tt,Tt.offset,Tt.byteLength)),Un(Zt,Uint8Array)&&(Zt=tt.from(Zt,Zt.offset,Zt.byteLength)),!tt.isBuffer(Tt)||!tt.isBuffer(Zt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Tt===Zt)return 0;let Ot=Tt.length,sn=Zt.length;for(let ln=0,cn=Math.min(Ot,sn);lnsn.length?(tt.isBuffer(cn)||(cn=tt.from(cn)),cn.copy(sn,ln)):Uint8Array.prototype.set.call(sn,cn,ln);else{if(!tt.isBuffer(cn))throw new TypeError('"list" argument must be an Array of Buffers');cn.copy(sn,ln)}ln+=cn.length}return sn},tt.byteLength=dt,tt.prototype._isBuffer=!0,tt.prototype.swap16=function(){const Tt=this.length;if(Tt%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Zt=0;ZtZt&&(Tt+=" ... "),""},_e&&(tt.prototype[_e]=tt.prototype.inspect),tt.prototype.compare=function(Tt,Zt,Ot,sn,ln){if(Un(Tt,Uint8Array)&&(Tt=tt.from(Tt,Tt.offset,Tt.byteLength)),!tt.isBuffer(Tt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Tt);if(Zt===void 0&&(Zt=0),Ot===void 0&&(Ot=Tt?Tt.length:0),sn===void 0&&(sn=0),ln===void 0&&(ln=this.length),Zt<0||Ot>Tt.length||sn<0||ln>this.length)throw new RangeError("out of range index");if(sn>=ln&&Zt>=Ot)return 0;if(sn>=ln)return-1;if(Zt>=Ot)return 1;if(this===Tt)return 0;let cn=(ln>>>=0)-(sn>>>=0),fn=(Ot>>>=0)-(Zt>>>=0);const _n=Math.min(cn,fn),On=this.slice(sn,ln),xn=Tt.slice(Zt,Ot);for(let Ln=0;Ln<_n;++Ln)if(On[Ln]!==xn[Ln]){cn=On[Ln],fn=xn[Ln];break}return cn>>=0,isFinite(Ot)?(Ot>>>=0,sn===void 0&&(sn="utf8")):(sn=Ot,Ot=void 0)}const ln=this.length-Zt;if((Ot===void 0||Ot>ln)&&(Ot=ln),Tt.length>0&&(Ot<0||Zt<0)||Zt>this.length)throw new RangeError("Attempt to write outside buffer bounds");sn||(sn="utf8");let cn=!1;for(;;)switch(sn){case"hex":return pt(this,Tt,Zt,Ot);case"utf8":case"utf-8":return Rt(this,Tt,Zt,Ot);case"ascii":case"latin1":case"binary":return Qt(this,Tt,Zt,Ot);case"base64":return Nt(this,Tt,Zt,Ot);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,Tt,Zt,Ot);default:if(cn)throw new TypeError("Unknown encoding: "+sn);sn=(""+sn).toLowerCase(),cn=!0}},tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jt(Tt,Zt,Ot){let sn="";Ot=Math.min(Tt.length,Ot);for(let ln=Zt;lnsn)&&(Ot=sn);let ln="";for(let cn=Zt;cnOt)throw new RangeError("Trying to access beyond buffer length")}function wt(Tt,Zt,Ot,sn,ln,cn){if(!tt.isBuffer(Tt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Zt>ln||ZtTt.length)throw new RangeError("Index out of range")}function Et(Tt,Zt,Ot,sn,ln){xt(Zt,sn,ln,Tt,Ot,7);let cn=Number(Zt&BigInt(4294967295));Tt[Ot++]=cn,cn>>=8,Tt[Ot++]=cn,cn>>=8,Tt[Ot++]=cn,cn>>=8,Tt[Ot++]=cn;let fn=Number(Zt>>BigInt(32)&BigInt(4294967295));return Tt[Ot++]=fn,fn>>=8,Tt[Ot++]=fn,fn>>=8,Tt[Ot++]=fn,fn>>=8,Tt[Ot++]=fn,Ot}function Jt(Tt,Zt,Ot,sn,ln){xt(Zt,sn,ln,Tt,Ot,7);let cn=Number(Zt&BigInt(4294967295));Tt[Ot+7]=cn,cn>>=8,Tt[Ot+6]=cn,cn>>=8,Tt[Ot+5]=cn,cn>>=8,Tt[Ot+4]=cn;let fn=Number(Zt>>BigInt(32)&BigInt(4294967295));return Tt[Ot+3]=fn,fn>>=8,Tt[Ot+2]=fn,fn>>=8,Tt[Ot+1]=fn,fn>>=8,Tt[Ot]=fn,Ot+8}function Pt(Tt,Zt,Ot,sn,ln,cn){if(Ot+sn>Tt.length)throw new RangeError("Index out of range");if(Ot<0)throw new RangeError("Index out of range")}function Yt(Tt,Zt,Ot,sn,ln){return Zt=+Zt,Ot>>>=0,ln||Pt(Tt,0,Ot,4),$.write(Tt,Zt,Ot,sn,23,4),Ot+4}function Mt(Tt,Zt,Ot,sn,ln){return Zt=+Zt,Ot>>>=0,ln||Pt(Tt,0,Ot,8),$.write(Tt,Zt,Ot,sn,52,8),Ot+8}tt.prototype.slice=function(Tt,Zt){const Ot=this.length;(Tt=~~Tt)<0?(Tt+=Ot)<0&&(Tt=0):Tt>Ot&&(Tt=Ot),(Zt=Zt===void 0?Ot:~~Zt)<0?(Zt+=Ot)<0&&(Zt=0):Zt>Ot&&(Zt=Ot),Zt>>=0,Zt>>>=0,Ot||Vt(Tt,Zt,this.length);let sn=this[Tt],ln=1,cn=0;for(;++cn>>=0,Zt>>>=0,Ot||Vt(Tt,Zt,this.length);let sn=this[Tt+--Zt],ln=1;for(;Zt>0&&(ln*=256);)sn+=this[Tt+--Zt]*ln;return sn},tt.prototype.readUint8=tt.prototype.readUInt8=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,1,this.length),this[Tt]},tt.prototype.readUint16LE=tt.prototype.readUInt16LE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,2,this.length),this[Tt]|this[Tt+1]<<8},tt.prototype.readUint16BE=tt.prototype.readUInt16BE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,2,this.length),this[Tt]<<8|this[Tt+1]},tt.prototype.readUint32LE=tt.prototype.readUInt32LE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,4,this.length),(this[Tt]|this[Tt+1]<<8|this[Tt+2]<<16)+16777216*this[Tt+3]},tt.prototype.readUint32BE=tt.prototype.readUInt32BE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,4,this.length),16777216*this[Tt]+(this[Tt+1]<<16|this[Tt+2]<<8|this[Tt+3])},tt.prototype.readBigUInt64LE=En(function(Tt){It(Tt>>>=0,"offset");const Zt=this[Tt],Ot=this[Tt+7];Zt!==void 0&&Ot!==void 0||$t(Tt,this.length-8);const sn=Zt+256*this[++Tt]+65536*this[++Tt]+this[++Tt]*2**24,ln=this[++Tt]+256*this[++Tt]+65536*this[++Tt]+Ot*2**24;return BigInt(sn)+(BigInt(ln)<>>=0,"offset");const Zt=this[Tt],Ot=this[Tt+7];Zt!==void 0&&Ot!==void 0||$t(Tt,this.length-8);const sn=Zt*2**24+65536*this[++Tt]+256*this[++Tt]+this[++Tt],ln=this[++Tt]*2**24+65536*this[++Tt]+256*this[++Tt]+Ot;return(BigInt(sn)<>>=0,Zt>>>=0,Ot||Vt(Tt,Zt,this.length);let sn=this[Tt],ln=1,cn=0;for(;++cn=ln&&(sn-=Math.pow(2,8*Zt)),sn},tt.prototype.readIntBE=function(Tt,Zt,Ot){Tt>>>=0,Zt>>>=0,Ot||Vt(Tt,Zt,this.length);let sn=Zt,ln=1,cn=this[Tt+--sn];for(;sn>0&&(ln*=256);)cn+=this[Tt+--sn]*ln;return ln*=128,cn>=ln&&(cn-=Math.pow(2,8*Zt)),cn},tt.prototype.readInt8=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,1,this.length),128&this[Tt]?-1*(255-this[Tt]+1):this[Tt]},tt.prototype.readInt16LE=function(Tt,Zt){Tt>>>=0,Zt||Vt(Tt,2,this.length);const Ot=this[Tt]|this[Tt+1]<<8;return 32768&Ot?4294901760|Ot:Ot},tt.prototype.readInt16BE=function(Tt,Zt){Tt>>>=0,Zt||Vt(Tt,2,this.length);const Ot=this[Tt+1]|this[Tt]<<8;return 32768&Ot?4294901760|Ot:Ot},tt.prototype.readInt32LE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,4,this.length),this[Tt]|this[Tt+1]<<8|this[Tt+2]<<16|this[Tt+3]<<24},tt.prototype.readInt32BE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,4,this.length),this[Tt]<<24|this[Tt+1]<<16|this[Tt+2]<<8|this[Tt+3]},tt.prototype.readBigInt64LE=En(function(Tt){It(Tt>>>=0,"offset");const Zt=this[Tt],Ot=this[Tt+7];Zt!==void 0&&Ot!==void 0||$t(Tt,this.length-8);const sn=this[Tt+4]+256*this[Tt+5]+65536*this[Tt+6]+(Ot<<24);return(BigInt(sn)<>>=0,"offset");const Zt=this[Tt],Ot=this[Tt+7];Zt!==void 0&&Ot!==void 0||$t(Tt,this.length-8);const sn=(Zt<<24)+65536*this[++Tt]+256*this[++Tt]+this[++Tt];return(BigInt(sn)<>>=0,Zt||Vt(Tt,4,this.length),$.read(this,Tt,!0,23,4)},tt.prototype.readFloatBE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,4,this.length),$.read(this,Tt,!1,23,4)},tt.prototype.readDoubleLE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,8,this.length),$.read(this,Tt,!0,52,8)},tt.prototype.readDoubleBE=function(Tt,Zt){return Tt>>>=0,Zt||Vt(Tt,8,this.length),$.read(this,Tt,!1,52,8)},tt.prototype.writeUintLE=tt.prototype.writeUIntLE=function(Tt,Zt,Ot,sn){Tt=+Tt,Zt>>>=0,Ot>>>=0,!sn&&wt(this,Tt,Zt,Ot,Math.pow(2,8*Ot)-1,0);let ln=1,cn=0;for(this[Zt]=255&Tt;++cn>>=0,Ot>>>=0,!sn&&wt(this,Tt,Zt,Ot,Math.pow(2,8*Ot)-1,0);let ln=Ot-1,cn=1;for(this[Zt+ln]=255&Tt;--ln>=0&&(cn*=256);)this[Zt+ln]=Tt/cn&255;return Zt+Ot},tt.prototype.writeUint8=tt.prototype.writeUInt8=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,1,255,0),this[Zt]=255&Tt,Zt+1},tt.prototype.writeUint16LE=tt.prototype.writeUInt16LE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,2,65535,0),this[Zt]=255&Tt,this[Zt+1]=Tt>>>8,Zt+2},tt.prototype.writeUint16BE=tt.prototype.writeUInt16BE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,2,65535,0),this[Zt]=Tt>>>8,this[Zt+1]=255&Tt,Zt+2},tt.prototype.writeUint32LE=tt.prototype.writeUInt32LE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,4,4294967295,0),this[Zt+3]=Tt>>>24,this[Zt+2]=Tt>>>16,this[Zt+1]=Tt>>>8,this[Zt]=255&Tt,Zt+4},tt.prototype.writeUint32BE=tt.prototype.writeUInt32BE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,4,4294967295,0),this[Zt]=Tt>>>24,this[Zt+1]=Tt>>>16,this[Zt+2]=Tt>>>8,this[Zt+3]=255&Tt,Zt+4},tt.prototype.writeBigUInt64LE=En(function(Tt,Zt=0){return Et(this,Tt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeBigUInt64BE=En(function(Tt,Zt=0){return Jt(this,Tt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeIntLE=function(Tt,Zt,Ot,sn){if(Tt=+Tt,Zt>>>=0,!sn){const _n=Math.pow(2,8*Ot-1);wt(this,Tt,Zt,Ot,_n-1,-_n)}let ln=0,cn=1,fn=0;for(this[Zt]=255&Tt;++ln>0)-fn&255;return Zt+Ot},tt.prototype.writeIntBE=function(Tt,Zt,Ot,sn){if(Tt=+Tt,Zt>>>=0,!sn){const _n=Math.pow(2,8*Ot-1);wt(this,Tt,Zt,Ot,_n-1,-_n)}let ln=Ot-1,cn=1,fn=0;for(this[Zt+ln]=255&Tt;--ln>=0&&(cn*=256);)Tt<0&&fn===0&&this[Zt+ln+1]!==0&&(fn=1),this[Zt+ln]=(Tt/cn>>0)-fn&255;return Zt+Ot},tt.prototype.writeInt8=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,1,127,-128),Tt<0&&(Tt=255+Tt+1),this[Zt]=255&Tt,Zt+1},tt.prototype.writeInt16LE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,2,32767,-32768),this[Zt]=255&Tt,this[Zt+1]=Tt>>>8,Zt+2},tt.prototype.writeInt16BE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,2,32767,-32768),this[Zt]=Tt>>>8,this[Zt+1]=255&Tt,Zt+2},tt.prototype.writeInt32LE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,4,2147483647,-2147483648),this[Zt]=255&Tt,this[Zt+1]=Tt>>>8,this[Zt+2]=Tt>>>16,this[Zt+3]=Tt>>>24,Zt+4},tt.prototype.writeInt32BE=function(Tt,Zt,Ot){return Tt=+Tt,Zt>>>=0,Ot||wt(this,Tt,Zt,4,2147483647,-2147483648),Tt<0&&(Tt=4294967295+Tt+1),this[Zt]=Tt>>>24,this[Zt+1]=Tt>>>16,this[Zt+2]=Tt>>>8,this[Zt+3]=255&Tt,Zt+4},tt.prototype.writeBigInt64LE=En(function(Tt,Zt=0){return Et(this,Tt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),tt.prototype.writeBigInt64BE=En(function(Tt,Zt=0){return Jt(this,Tt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),tt.prototype.writeFloatLE=function(Tt,Zt,Ot){return Yt(this,Tt,Zt,!0,Ot)},tt.prototype.writeFloatBE=function(Tt,Zt,Ot){return Yt(this,Tt,Zt,!1,Ot)},tt.prototype.writeDoubleLE=function(Tt,Zt,Ot){return Mt(this,Tt,Zt,!0,Ot)},tt.prototype.writeDoubleBE=function(Tt,Zt,Ot){return Mt(this,Tt,Zt,!1,Ot)},tt.prototype.copy=function(Tt,Zt,Ot,sn){if(!tt.isBuffer(Tt))throw new TypeError("argument should be a Buffer");if(Ot||(Ot=0),sn||sn===0||(sn=this.length),Zt>=Tt.length&&(Zt=Tt.length),Zt||(Zt=0),sn>0&&sn=this.length)throw new RangeError("Index out of range");if(sn<0)throw new RangeError("sourceEnd out of bounds");sn>this.length&&(sn=this.length),Tt.length-Zt>>=0,Ot=Ot===void 0?this.length:Ot>>>0,Tt||(Tt=0),typeof Tt=="number")for(ln=Zt;ln=sn+4;Ot-=3)Zt=`_${Tt.slice(Ot-3,Ot)}${Zt}`;return`${Tt.slice(0,Ot)}${Zt}`}function xt(Tt,Zt,Ot,sn,ln,cn){if(Tt>Ot||Tt3?Zt===0||Zt===BigInt(0)?`>= 0${fn} and < 2${fn} ** ${8*(cn+1)}${fn}`:`>= -(2${fn} ** ${8*(cn+1)-1}${fn}) and < 2 ** ${8*(cn+1)-1}${fn}`:`>= ${Zt}${fn} and <= ${Ot}${fn}`,new zt.ERR_OUT_OF_RANGE("value",_n,Tt)}(function(fn,_n,On){It(_n,"offset"),fn[_n]!==void 0&&fn[_n+On]!==void 0||$t(_n,fn.length-(On+1))})(sn,ln,cn)}function It(Tt,Zt){if(typeof Tt!="number")throw new zt.ERR_INVALID_ARG_TYPE(Zt,"number",Tt)}function $t(Tt,Zt,Ot){throw Math.floor(Tt)!==Tt?(It(Tt,Ot),new zt.ERR_OUT_OF_RANGE(Ot||"offset","an integer",Tt)):Zt<0?new zt.ERR_BUFFER_OUT_OF_BOUNDS:new zt.ERR_OUT_OF_RANGE(Ot||"offset",`>= ${Ot?1:0} and <= ${Zt}`,Tt)}qt("ERR_BUFFER_OUT_OF_BOUNDS",function(Tt){return Tt?Tt+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"},RangeError),qt("ERR_INVALID_ARG_TYPE",function(Tt,Zt){return`The "${Tt}" argument must be of type number. Received type ${typeof Zt}`},TypeError),qt("ERR_OUT_OF_RANGE",function(Tt,Zt,Ot){let sn=`The value of "${Tt}" is out of range.`,ln=Ot;return Number.isInteger(Ot)&&Math.abs(Ot)>4294967296?ln=Xt(String(Ot)):typeof Ot=="bigint"&&(ln=String(Ot),(Ot>BigInt(2)**BigInt(32)||Ot<-(BigInt(2)**BigInt(32)))&&(ln=Xt(ln)),ln+="n"),sn+=` It must be ${Zt}. Received ${ln}`,sn},RangeError);const un=/[^+/0-9A-Za-z-_]/g;function tn(Tt,Zt){let Ot;Zt=Zt||1/0;const sn=Tt.length;let ln=null;const cn=[];for(let fn=0;fn55295&&Ot<57344){if(!ln){if(Ot>56319){(Zt-=3)>-1&&cn.push(239,191,189);continue}if(fn+1===sn){(Zt-=3)>-1&&cn.push(239,191,189);continue}ln=Ot;continue}if(Ot<56320){(Zt-=3)>-1&&cn.push(239,191,189),ln=Ot;continue}Ot=65536+(ln-55296<<10|Ot-56320)}else ln&&(Zt-=3)>-1&&cn.push(239,191,189);if(ln=null,Ot<128){if((Zt-=1)<0)break;cn.push(Ot)}else if(Ot<2048){if((Zt-=2)<0)break;cn.push(Ot>>6|192,63&Ot|128)}else if(Ot<65536){if((Zt-=3)<0)break;cn.push(Ot>>12|224,Ot>>6&63|128,63&Ot|128)}else{if(!(Ot<1114112))throw new Error("Invalid code point");if((Zt-=4)<0)break;cn.push(Ot>>18|240,Ot>>12&63|128,Ot>>6&63|128,63&Ot|128)}}return cn}function an(Tt){return j.toByteArray(function(Zt){if((Zt=(Zt=Zt.split("=")[0]).trim().replace(un,"")).length<2)return"";for(;Zt.length%4!=0;)Zt+="=";return Zt}(Tt))}function Kt(Tt,Zt,Ot,sn){let ln;for(ln=0;ln=Zt.length||ln>=Tt.length);++ln)Zt[ln+Ot]=Tt[ln];return ln}function Un(Tt,Zt){return Tt instanceof Zt||Tt!=null&&Tt.constructor!=null&&Tt.constructor.name!=null&&Tt.constructor.name===Zt.name}function Bn(Tt){return Tt!=Tt}const hn=function(){const Tt=new Array(256);for(let Zt=0;Zt<16;++Zt){const Ot=16*Zt;for(let sn=0;sn<16;++sn)Tt[Ot+sn]="0123456789abcdef"[Zt]+"0123456789abcdef"[sn]}return Tt}();function En(Tt){return typeof BigInt>"u"?Cn:Tt}function Cn(){throw new Error("BigInt not supported")}},49:o=>{o.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},8165:(o,s,_)=>{var j=_(9138),$=_(6095),_e=_(4531),et=_(7196);o.exports=et||j.call(_e,$)},6095:o=>{o.exports=Function.prototype.apply},4531:o=>{o.exports=Function.prototype.call},9903:(o,s,_)=>{var j=_(9138),$=_(3468),_e=_(4531),et=_(8165);o.exports=function(tt){if(tt.length<1||typeof tt[0]!="function")throw new $("a function is required");return et(j,_e,tt)}},7196:o=>{o.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},9818:(o,s,_)=>{var j=_(528),$=_(8498),_e=$(j("String.prototype.indexOf"));o.exports=function(et,tt){var nt=j(et,!!tt);return typeof nt=="function"&&_e(et,".prototype.")>-1?$(nt):nt}},8498:(o,s,_)=>{var j=_(9138),$=_(528),_e=_(6108),et=_(3468),tt=$("%Function.prototype.apply%"),nt=$("%Function.prototype.call%"),rt=$("%Reflect.apply%",!0)||j.call(nt,tt),it=_(4940),st=$("%Math.max%");o.exports=function(Ft){if(typeof Ft!="function")throw new et("a function is required");var dt=rt(j,nt,arguments);return _e(dt,1+st(0,Ft.length-(arguments.length-1)),!0)};var ut=function(){return rt(j,tt,arguments)};it?it(o.exports,"apply",{value:ut}):o.exports.apply=ut},288:function(o,s){var _=typeof self<"u"?self:this,j=function(){function _e(){this.fetch=!1,this.DOMException=_.DOMException}return _e.prototype=_,new _e}();(function(_e){(function(et){var tt="URLSearchParams"in _e,nt="Symbol"in _e&&"iterator"in Symbol,rt="FileReader"in _e&&"Blob"in _e&&function(){try{return new Blob,!0}catch{return!1}}(),it="FormData"in _e,st="ArrayBuffer"in _e;if(st)var ut=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Ft=ArrayBuffer.isView||function(yt){return yt&&ut.indexOf(Object.prototype.toString.call(yt))>-1};function dt(yt){if(typeof yt!="string"&&(yt=String(yt)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(yt))throw new TypeError("Invalid character in header field name");return yt.toLowerCase()}function gt(yt){return typeof yt!="string"&&(yt=String(yt)),yt}function Ut(yt){var Vt={next:function(){var wt=yt.shift();return{done:wt===void 0,value:wt}}};return nt&&(Vt[Symbol.iterator]=function(){return Vt}),Vt}function ht(yt){this.map={},yt instanceof ht?yt.forEach(function(Vt,wt){this.append(wt,Vt)},this):Array.isArray(yt)?yt.forEach(function(Vt){this.append(Vt[0],Vt[1])},this):yt&&Object.getOwnPropertyNames(yt).forEach(function(Vt){this.append(Vt,yt[Vt])},this)}function ft(yt){if(yt.bodyUsed)return Promise.reject(new TypeError("Already read"));yt.bodyUsed=!0}function pt(yt){return new Promise(function(Vt,wt){yt.onload=function(){Vt(yt.result)},yt.onerror=function(){wt(yt.error)}})}function Rt(yt){var Vt=new FileReader,wt=pt(Vt);return Vt.readAsArrayBuffer(yt),wt}function Qt(yt){if(yt.slice)return yt.slice(0);var Vt=new Uint8Array(yt.byteLength);return Vt.set(new Uint8Array(yt)),Vt.buffer}function Nt(){return this.bodyUsed=!1,this._initBody=function(yt){var Vt;this._bodyInit=yt,yt?typeof yt=="string"?this._bodyText=yt:rt&&Blob.prototype.isPrototypeOf(yt)?this._bodyBlob=yt:it&&FormData.prototype.isPrototypeOf(yt)?this._bodyFormData=yt:tt&&URLSearchParams.prototype.isPrototypeOf(yt)?this._bodyText=yt.toString():st&&rt&&(Vt=yt)&&DataView.prototype.isPrototypeOf(Vt)?(this._bodyArrayBuffer=Qt(yt.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):st&&(ArrayBuffer.prototype.isPrototypeOf(yt)||Ft(yt))?this._bodyArrayBuffer=Qt(yt):this._bodyText=yt=Object.prototype.toString.call(yt):this._bodyText="",this.headers.get("content-type")||(typeof yt=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):tt&&URLSearchParams.prototype.isPrototypeOf(yt)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},rt&&(this.blob=function(){var yt=ft(this);if(yt)return yt;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ft(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Rt)}),this.text=function(){var yt,Vt,wt,Et=ft(this);if(Et)return Et;if(this._bodyBlob)return yt=this._bodyBlob,Vt=new FileReader,wt=pt(Vt),Vt.readAsText(yt),wt;if(this._bodyArrayBuffer)return Promise.resolve(function(Jt){for(var Pt=new Uint8Array(Jt),Yt=new Array(Pt.length),Mt=0;Mt-1?Et:wt),this.mode=Vt.mode||this.mode||null,this.signal=Vt.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Jt)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Jt)}function Bt(yt){var Vt=new FormData;return yt.trim().split("&").forEach(function(wt){if(wt){var Et=wt.split("="),Jt=Et.shift().replace(/\+/g," "),Pt=Et.join("=").replace(/\+/g," ");Vt.append(decodeURIComponent(Jt),decodeURIComponent(Pt))}}),Vt}function jt(yt,Vt){Vt||(Vt={}),this.type="default",this.status=Vt.status===void 0?200:Vt.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Vt?Vt.statusText:"OK",this.headers=new ht(Vt.headers),this.url=Vt.url||"",this._initBody(yt)}kt.prototype.clone=function(){return new kt(this,{body:this._bodyInit})},Nt.call(kt.prototype),Nt.call(jt.prototype),jt.prototype.clone=function(){return new jt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ht(this.headers),url:this.url})},jt.error=function(){var yt=new jt(null,{status:0,statusText:""});return yt.type="error",yt};var vt=[301,302,303,307,308];jt.redirect=function(yt,Vt){if(vt.indexOf(Vt)===-1)throw new RangeError("Invalid status code");return new jt(null,{status:Vt,headers:{location:yt}})},et.DOMException=_e.DOMException;try{new et.DOMException}catch{et.DOMException=function(yt,Vt){this.message=yt,this.name=Vt;var wt=Error(yt);this.stack=wt.stack},et.DOMException.prototype=Object.create(Error.prototype),et.DOMException.prototype.constructor=et.DOMException}function mt(yt,Vt){return new Promise(function(wt,Et){var Jt=new kt(yt,Vt);if(Jt.signal&&Jt.signal.aborted)return Et(new et.DOMException("Aborted","AbortError"));var Pt=new XMLHttpRequest;function Yt(){Pt.abort()}Pt.onload=function(){var Mt,zt,qt={status:Pt.status,statusText:Pt.statusText,headers:(Mt=Pt.getAllResponseHeaders()||"",zt=new ht,Mt.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(xt){var It=xt.split(":"),$t=It.shift().trim();if($t){var un=It.join(":").trim();zt.append($t,un)}}),zt)};qt.url="responseURL"in Pt?Pt.responseURL:qt.headers.get("X-Request-URL");var Xt="response"in Pt?Pt.response:Pt.responseText;wt(new jt(Xt,qt))},Pt.onerror=function(){Et(new TypeError("Network request failed"))},Pt.ontimeout=function(){Et(new TypeError("Network request failed"))},Pt.onabort=function(){Et(new et.DOMException("Aborted","AbortError"))},Pt.open(Jt.method,Jt.url,!0),Jt.credentials==="include"?Pt.withCredentials=!0:Jt.credentials==="omit"&&(Pt.withCredentials=!1),"responseType"in Pt&&rt&&(Pt.responseType="blob"),Jt.headers.forEach(function(Mt,zt){Pt.setRequestHeader(zt,Mt)}),Jt.signal&&(Jt.signal.addEventListener("abort",Yt),Pt.onreadystatechange=function(){Pt.readyState===4&&Jt.signal.removeEventListener("abort",Yt)}),Pt.send(Jt._bodyInit===void 0?null:Jt._bodyInit)})}mt.polyfill=!0,_e.fetch||(_e.fetch=mt,_e.Headers=ht,_e.Request=kt,_e.Response=jt),et.Headers=ht,et.Request=kt,et.Response=jt,et.fetch=mt,Object.defineProperty(et,"__esModule",{value:!0})})({})})(j),j.fetch.ponyfill=!0,delete j.fetch.polyfill;var $=j;(s=$.fetch).default=$.fetch,s.fetch=$.fetch,s.Headers=$.Headers,s.Request=$.Request,s.Response=$.Response,o.exports=s},686:(o,s,_)=>{var j=_(4940),$=_(5731),_e=_(3468),et=_(9336);o.exports=function(tt,nt,rt){if(!tt||typeof tt!="object"&&typeof tt!="function")throw new _e("`obj` must be an object or a function`");if(typeof nt!="string"&&typeof nt!="symbol")throw new _e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _e("`loose`, if provided, must be a boolean");var it=arguments.length>3?arguments[3]:null,st=arguments.length>4?arguments[4]:null,ut=arguments.length>5?arguments[5]:null,Ft=arguments.length>6&&arguments[6],dt=!!et&&et(tt,nt);if(j)j(tt,nt,{configurable:ut===null&&dt?dt.configurable:!ut,enumerable:it===null&&dt?dt.enumerable:!it,value:rt,writable:st===null&&dt?dt.writable:!st});else{if(!Ft&&(it||st||ut))throw new $("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");tt[nt]=rt}}},1857:(o,s,_)=>{var j=_(9228),$=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",_e=Object.prototype.toString,et=Array.prototype.concat,tt=_(686),nt=_(7239)(),rt=function(st,ut,Ft,dt){if(ut in st){if(dt===!0){if(st[ut]===Ft)return}else if(typeof(gt=dt)!="function"||_e.call(gt)!=="[object Function]"||!dt())return}var gt;nt?tt(st,ut,Ft,!0):tt(st,ut,Ft)},it=function(st,ut){var Ft=arguments.length>2?arguments[2]:{},dt=j(ut);$&&(dt=et.call(dt,Object.getOwnPropertySymbols(ut)));for(var gt=0;gt{var j,$=_(9903),_e=_(9336);try{j=[].__proto__===Array.prototype}catch(rt){if(!rt||typeof rt!="object"||!("code"in rt)||rt.code!=="ERR_PROTO_ACCESS")throw rt}var et=!!j&&_e&&_e(Object.prototype,"__proto__"),tt=Object,nt=tt.getPrototypeOf;o.exports=et&&typeof et.get=="function"?$([et.get]):typeof nt=="function"&&function(rt){return nt(rt==null?rt:tt(rt))}},2078:(o,s,_)=>{const j=_(5365),$=_(5757),_e=(et,tt,nt)=>({from:_e,EnvVarError:_(5757),get:function(rt){if(!rt)return et;if(arguments.length>1)throw new $("It looks like you passed more than one argument to env.get(). Since env-var@6.0.0 this is no longer supported. To set a default value use env.get(TARGET).default(DEFAULT)");return j(et,rt,tt||{},nt||function(){})},accessors:_(7350),logger:_(7869)(console.log,et.NODE_ENV)});o.exports=_e(function(){try{return{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}}catch{return{}}}())},2555:(o,s,_)=>{const j=_(6261);o.exports=function($,_e){return _e=_e||",",$.length?j($).split(_e).filter(Boolean):[]}},7808:o=>{o.exports=function(s){const _=s.toLowerCase();if(_!=="false"&&_!=="true")throw new Error('should be either "true", "false", "TRUE", or "FALSE"');return _!=="false"}},3576:o=>{o.exports=function(s){const _=s.toLowerCase();if(["false","0","true","1"].indexOf(_)===-1)throw new Error('should be either "true", "false", "TRUE", "FALSE", 1, or 0');return!(_==="0"||_==="false")}},349:(o,s,_)=>{const j=_(6261),$=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\u0001-\u0008\u000b\u000c\u000e-\u001f\u0021\u0023-\u005b\u005d-\u007f]|\\[\u0001-\u0009\u000b\u000c\u000e-\u007f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\u0001-\u0008\u000b\u000c\u000e-\u001f\u0021-\u005a\u0053-\u007f]|\\[\u0001-\u0009\u000b\u000c\u000e-\u007f])+)\])$/;o.exports=function(_e){const et=j(_e);if(!$.test(et))throw new Error("should be a valid email address");return et}},129:(o,s,_)=>{const j=_(6261);o.exports=function($,_e){const et=j($);if(_e.indexOf(et)<0)throw new Error(`should be one of [${_e.join(", ")}]`);return et}},2222:(o,s,_)=>{const j=_(5384);o.exports=function($){const _e=j($);if(_e>0)throw new Error("should be a negative float");return _e}},3674:(o,s,_)=>{const j=_(5384);o.exports=function($){const _e=j($);if(_e<0)throw new Error("should be a positive float");return _e}},5384:o=>{o.exports=function(s){const _=parseFloat(s);if(isNaN(_)||isNaN(s))throw new Error("should be a valid float");return _}},7350:(o,s,_)=>{o.exports={asArray:_(2555),asSet:_(7374),asBoolStrict:_(7808),asBool:_(3576),asPortNumber:_(4647),asEnum:_(129),asFloatNegative:_(2222),asFloatPositive:_(3674),asFloat:_(5384),asIntNegative:_(8455),asIntPositive:_(879),asInt:_(9799),asJsonArray:_(9974),asJsonObject:_(8124),asJson:_(3566),asRegExp:_(1045),asString:_(6261),asUrlObject:_(6912),asUrlString:_(5549),asEmailString:_(349)}},8455:(o,s,_)=>{const j=_(9799);o.exports=function($){const _e=j($);if(_e>0)throw new Error("should be a negative integer");return _e}},879:(o,s,_)=>{const j=_(9799);o.exports=function($){const _e=j($);if(_e<0)throw new Error("should be a positive integer");return _e}},9799:o=>{o.exports=function(s){const _=parseInt(s,10);if(isNaN(_)||_.toString(10)!==s)throw new Error("should be a valid integer");return _}},9974:(o,s,_)=>{const j=_(3566);o.exports=function($){var _e=j($);if(!Array.isArray(_e))throw new Error("should be a parseable JSON Array");return _e}},8124:(o,s,_)=>{const j=_(3566);o.exports=function($){var _e=j($);if(Array.isArray(_e))throw new Error("should be a parseable JSON Object");return _e}},3566:o=>{o.exports=function(s){try{return JSON.parse(s)}catch{throw new Error("should be valid (parseable) JSON")}}},4647:(o,s,_)=>{const j=_(879);o.exports=function($){var _e=j($);if(_e>65535)throw new Error("cannot assign a port number greater than 65535");return _e}},1045:o=>{o.exports=function(s,_){try{RegExp(void 0,_)}catch{throw new Error("invalid regexp flags")}try{return new RegExp(s,_)}catch{throw new Error("should be a valid regexp")}}},7374:(o,s,_)=>{const j=_(2555);o.exports=function($,_e){return $.length?new Set(j($,_e)):new Set}},6261:o=>{o.exports=function(s){return s}},6912:(o,s,_)=>{const j=_(6261);o.exports=function($){const _e=j($);try{return new URL(_e)}catch{throw new Error("should be a valid URL")}}},5549:(o,s,_)=>{const j=_(6912);o.exports=function($){return j($).toString()}},5757:o=>{class s extends Error{constructor(j,...$){super("env-var: "+j,...$),Error.captureStackTrace&&Error.captureStackTrace(this,s),this.name="EnvVarError"}}o.exports=s},7869:o=>{o.exports=function(s,_){return function(j,$){_&&_.match(/prod|production/)||s(`env-var (${j}): ${$}`)}}},5365:(o,s,_)=>{const j=_(5757),$=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/;o.exports=function(_e,et,tt,nt){let rt,it,st=!1,ut=!1;const Ft=_(7350);function dt(ht){nt(et,ht)}function gt(ht,ft){let pt=`"${et}" ${ft}`;throw ht&&(pt=""+pt),it&&(pt=`${pt}. An example of a valid value would be: ${it}`),new j(pt)}const Ut={convertFromBase64:function(){return dt("marking for base64 conversion"),st=!0,Ut},default:function(ht){if(typeof ht=="number")rt=ht.toString();else if(Array.isArray(ht)||typeof ht=="object"&&ht!==null)rt=JSON.stringify(ht);else{if(typeof ht!="string")throw new j("values passed to default() must be of Number, String, Array, or Object type");rt=ht}return dt(`setting default value to "${rt}"`),Ut},required:function(ht){return ht===void 0?(dt("marked as required"),ut=!0):(dt("setting required flag to "+ht),ut=ht),Ut},example:function(ht){return it=ht,Ut}};return Object.entries({...Ft,...tt}).forEach(([ht,ft])=>{Ut[ht]=function(pt){return function(){let Rt=_e[et];if(dt(`will be read from the environment using "${pt.name}" accessor`),Rt===void 0)if(rt===void 0&&ut)dt("was not found in the environment, but is required to be set"),gt(void 0,"is a required variable, but it was not set");else{if(rt===void 0)return void dt("was not found in the environment, but is not required. returning undefined");dt(`was not found in the environment, parsing default value "${rt}" instead`),Rt=rt}ut&&(dt("verifying variable value is not an empty string"),Rt.trim().length===0&>(void 0,"is a required variable, but its value was empty")),st&&(dt("verifying variable is a valid base64 string"),Rt.match($)||gt(Rt,"should be a valid base64 string if using convertFromBase64"),dt("converting from base64 to utf8 string"),Rt=Buffer.from(Rt,"base64").toString());const Qt=[Rt].concat(Array.prototype.slice.call(arguments));try{dt(`passing value "${Rt}" to "${pt.name}" accessor`);const Nt=pt.apply(pt,Qt);return dt("parsed successfully, returning "+Nt),Nt}catch(Nt){gt(Rt,Nt.message)}}}(ft)}),Ut}},4940:o=>{var s=Object.defineProperty||!1;if(s)try{s({},"a",{value:1})}catch{s=!1}o.exports=s},9110:o=>{o.exports=EvalError},9838:o=>{o.exports=Error},1155:o=>{o.exports=RangeError},4943:o=>{o.exports=ReferenceError},5731:o=>{o.exports=SyntaxError},3468:o=>{o.exports=TypeError},2140:o=>{o.exports=URIError},9629:o=>{o.exports=Object},46:o=>{var s,_=typeof Reflect=="object"?Reflect:null,j=_&&typeof _.apply=="function"?_.apply:function(Ut,ht,ft){return Function.prototype.apply.call(Ut,ht,ft)};s=_&&typeof _.ownKeys=="function"?_.ownKeys:Object.getOwnPropertySymbols?function(Ut){return Object.getOwnPropertyNames(Ut).concat(Object.getOwnPropertySymbols(Ut))}:function(Ut){return Object.getOwnPropertyNames(Ut)};var $=Number.isNaN||function(Ut){return Ut!=Ut};function _e(){_e.init.call(this)}o.exports=_e,o.exports.once=function(Ut,ht){return new Promise(function(ft,pt){function Rt(Nt){Ut.removeListener(ht,Qt),pt(Nt)}function Qt(){typeof Ut.removeListener=="function"&&Ut.removeListener("error",Rt),ft([].slice.call(arguments))}gt(Ut,ht,Qt,{once:!0}),ht!=="error"&&function(Nt,At,kt){typeof Nt.on=="function"&>(Nt,"error",At,kt)}(Ut,Rt,{once:!0})})},_e.EventEmitter=_e,_e.prototype._events=void 0,_e.prototype._eventsCount=0,_e.prototype._maxListeners=void 0;var et=10;function tt(Ut){if(typeof Ut!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Ut)}function nt(Ut){return Ut._maxListeners===void 0?_e.defaultMaxListeners:Ut._maxListeners}function rt(Ut,ht,ft,pt){var Rt,Qt,Nt,At;if(tt(ft),(Qt=Ut._events)===void 0?(Qt=Ut._events=Object.create(null),Ut._eventsCount=0):(Qt.newListener!==void 0&&(Ut.emit("newListener",ht,ft.listener?ft.listener:ft),Qt=Ut._events),Nt=Qt[ht]),Nt===void 0)Nt=Qt[ht]=ft,++Ut._eventsCount;else if(typeof Nt=="function"?Nt=Qt[ht]=pt?[ft,Nt]:[Nt,ft]:pt?Nt.unshift(ft):Nt.push(ft),(Rt=nt(Ut))>0&&Nt.length>Rt&&!Nt.warned){Nt.warned=!0;var kt=new Error("Possible EventEmitter memory leak detected. "+Nt.length+" "+String(ht)+" listeners added. Use emitter.setMaxListeners() to increase limit");kt.name="MaxListenersExceededWarning",kt.emitter=Ut,kt.type=ht,kt.count=Nt.length,At=kt,console&&console.warn&&console.warn(At)}return Ut}function it(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function st(Ut,ht,ft){var pt={fired:!1,wrapFn:void 0,target:Ut,type:ht,listener:ft},Rt=it.bind(pt);return Rt.listener=ft,pt.wrapFn=Rt,Rt}function ut(Ut,ht,ft){var pt=Ut._events;if(pt===void 0)return[];var Rt=pt[ht];return Rt===void 0?[]:typeof Rt=="function"?ft?[Rt.listener||Rt]:[Rt]:ft?function(Qt){for(var Nt=new Array(Qt.length),At=0;At0&&(Qt=ht[0]),Qt instanceof Error)throw Qt;var Nt=new Error("Unhandled error."+(Qt?" ("+Qt.message+")":""));throw Nt.context=Qt,Nt}var At=Rt[Ut];if(At===void 0)return!1;if(typeof At=="function")j(At,this,ht);else{var kt=At.length,Bt=dt(At,kt);for(ft=0;ft=0;Qt--)if(ft[Qt]===ht||ft[Qt].listener===ht){Nt=ft[Qt].listener,Rt=Qt;break}if(Rt<0)return this;Rt===0?ft.shift():function(At,kt){for(;kt+1=0;pt--)this.removeListener(Ut,ht[pt]);return this},_e.prototype.listeners=function(Ut){return ut(this,Ut,!0)},_e.prototype.rawListeners=function(Ut){return ut(this,Ut,!1)},_e.listenerCount=function(Ut,ht){return typeof Ut.listenerCount=="function"?Ut.listenerCount(ht):Ft.call(Ut,ht)},_e.prototype.listenerCount=Ft,_e.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},6075:o=>{o.exports=function(s,_){_||(_={}),typeof _=="function"&&(_={cmp:_});var j,$=typeof _.cycles=="boolean"&&_.cycles,_e=_.cmp&&(j=_.cmp,function(tt){return function(nt,rt){var it={key:nt,value:tt[nt]},st={key:rt,value:tt[rt]};return j(it,st)}}),et=[];return function tt(nt){if(nt&&nt.toJSON&&typeof nt.toJSON=="function"&&(nt=nt.toJSON()),nt!==void 0){if(typeof nt=="number")return isFinite(nt)?""+nt:"null";if(typeof nt!="object")return JSON.stringify(nt);var rt,it;if(Array.isArray(nt)){for(it="[",rt=0;rt=ft-1){var At=pt.subarray(0,Qt);if(Rt.push(String.fromCharCode.apply(null,At)),!Nt)return Rt.join("");Ut=Ut.subarray(ht),ht=0,Qt=0}var kt=Ut[ht++];if(!(128&kt))pt[Qt++]=kt;else if((224&kt)==192){var Bt=63&Ut[ht++];pt[Qt++]=(31&kt)<<6|Bt}else if((240&kt)==224){Bt=63&Ut[ht++];var jt=63&Ut[ht++];pt[Qt++]=(31&kt)<<12|Bt<<6|jt}else if((248&kt)==240){var vt=(7&kt)<<18|(Bt=63&Ut[ht++])<<12|(jt=63&Ut[ht++])<<6|63&Ut[ht++];vt>65535&&(vt-=65536,pt[Qt++]=vt>>>10&1023|55296,vt=56320|1023&vt),pt[Qt++]=vt}}}var _e="Failed to ",et=function(Ut,ht,ft){if(Ut)throw new Error("".concat(_e).concat(ht,": the '").concat(ft,"' option is unsupported."))},tt=typeof Buffer=="function"&&Buffer.from,nt=tt?function(Ut){return Buffer.from(Ut)}:function(Ut){for(var ht=0,ft=Ut.length,pt=0,Rt=Math.max(32,ft+(ft>>>1)+7),Qt=new Uint8Array(Rt>>>3<<3);ht=55296&&Nt<=56319){if(ht=55296&&Nt<=56319)continue}if(pt+4>Qt.length){Rt+=8,Rt=(Rt*=1+ht/Ut.length*2)>>>3<<3;var kt=new Uint8Array(Rt);kt.set(Qt),Qt=kt}if(4294967168&Nt){if(!(4294965248&Nt))Qt[pt++]=Nt>>>6&31|192;else if(!(4294901760&Nt))Qt[pt++]=Nt>>>12&15|224,Qt[pt++]=Nt>>>6&63|128;else{if(4292870144&Nt)continue;Qt[pt++]=Nt>>>18&7|240,Qt[pt++]=Nt>>>12&63|128,Qt[pt++]=Nt>>>6&63|128}Qt[pt++]=63&Nt|128}else Qt[pt++]=Nt}return Qt.slice?Qt.slice(0,pt):Qt.subarray(0,pt)};function rt(){this.encoding="utf-8"}rt.prototype.encode=function(Ut,ht){return et(ht&&ht.stream,"encode","stream"),nt(Ut)};var it=!tt&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",st=["utf-8","utf8","unicode-1-1-utf-8"],ut=$;tt?ut=function(Ut,ht){return(Ut instanceof Buffer?Ut:Buffer.from(Ut.buffer,Ut.byteOffset,Ut.byteLength)).toString(ht)}:it&&(ut=function(Ut){try{return function(ht){var ft;try{var pt=new Blob([ht],{type:"text/plain;charset=UTF-8"});ft=URL.createObjectURL(pt);var Rt=new XMLHttpRequest;return Rt.open("GET",ft,!1),Rt.send(),Rt.responseText}finally{ft&&URL.revokeObjectURL(ft)}}(Ut)}catch{return $(Ut)}});var Ft="construct 'TextDecoder'",dt="".concat(_e," ").concat(Ft,": the ");function gt(Ut,ht){if(et(ht&&ht.fatal,Ft,"fatal"),Ut=Ut||"utf-8",!(tt?Buffer.isEncoding(Ut):st.indexOf(Ut.toLowerCase())!==-1))throw new RangeError("".concat(dt," encoding label provided ('").concat(Ut,"') is invalid."));this.encoding=Ut,this.fatal=!1,this.ignoreBOM=!1}gt.prototype.decode=function(Ut,ht){var ft;return et(ht&&ht.stream,"decode","stream"),ft=Ut instanceof Uint8Array?Ut:Ut.buffer instanceof ArrayBuffer?new Uint8Array(Ut.buffer):new Uint8Array(Ut),ut(ft,this.encoding)},j.TextEncoder=j.TextEncoder||rt,j.TextDecoder=j.TextDecoder||gt})(typeof window<"u"?window:_.g!==void 0?_.g:this)},4798:(o,s,_)=>{_.r(s),_.d(s,{assign:()=>nt,default:()=>mt,defaultI18n:()=>ut,format:()=>jt,parse:()=>vt,setGlobalDateI18n:()=>dt,setGlobalDateMasks:()=>Bt});var j=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,$="[^\\s]+",_e=/\[([^]*?)\]/gm;function et(yt,Vt){for(var wt=[],Et=0,Jt=yt.length;Et-1?Et:null}};function nt(yt){for(var Vt=[],wt=1;wt3?0:(yt-yt%10!=10?1:0)*yt%10]}},Ft=nt({},ut),dt=function(yt){return Ft=nt(Ft,yt)},gt=function(yt){return yt.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Ut=function(yt,Vt){for(Vt===void 0&&(Vt=2),yt=String(yt);yt.length0?"-":"+")+Ut(100*Math.floor(Math.abs(Vt)/60)+Math.abs(Vt)%60,4)},Z:function(yt){var Vt=yt.getTimezoneOffset();return(Vt>0?"-":"+")+Ut(Math.floor(Math.abs(Vt)/60),2)+":"+Ut(Math.abs(Vt)%60,2)}},ft=function(yt){return+yt-1},pt=[null,"\\d\\d?"],Rt=[null,$],Qt=["isPm",$,function(yt,Vt){var wt=yt.toLowerCase();return wt===Vt.amPm[0]?0:wt===Vt.amPm[1]?1:null}],Nt=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(yt){var Vt=(yt+"").match(/([+-]|\d\d)/gi);if(Vt){var wt=60*+Vt[1]+parseInt(Vt[2],10);return Vt[0]==="+"?wt:-wt}return 0}],At={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+$,function(yt){return parseInt(yt,10)}],M:["month","\\d\\d?",ft],MM:["month","\\d\\d",ft],YY:["year","\\d\\d",function(yt){var Vt=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+yt>68?Vt-1:Vt)+yt)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(yt){return 100*+yt}],SS:["millisecond","\\d\\d",function(yt){return 10*+yt}],SSS:["millisecond","\\d{3}"],d:pt,dd:pt,ddd:Rt,dddd:Rt,MMM:["month",$,tt("monthNamesShort")],MMMM:["month",$,tt("monthNames")],a:Qt,A:Qt,ZZ:Nt,Z:Nt},kt={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Bt=function(yt){return nt(kt,yt)},jt=function(yt,Vt,wt){if(Vt===void 0&&(Vt=kt.default),wt===void 0&&(wt={}),typeof yt=="number"&&(yt=new Date(yt)),Object.prototype.toString.call(yt)!=="[object Date]"||isNaN(yt.getTime()))throw new Error("Invalid Date pass to format");var Et=[];Vt=(Vt=kt[Vt]||Vt).replace(_e,function(Pt,Yt){return Et.push(Yt),"@@@"});var Jt=nt(nt({},Ft),wt);return(Vt=Vt.replace(j,function(Pt){return ht[Pt](yt,Jt)})).replace(/@@@/g,function(){return Et.shift()})};function vt(yt,Vt,wt){if(wt===void 0&&(wt={}),typeof Vt!="string")throw new Error("Invalid format in fecha parse");if(Vt=kt[Vt]||Vt,yt.length>1e3)return null;var Et={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},Jt=[],Pt=[],Yt=Vt.replace(_e,function(Bn,hn){return Pt.push(gt(hn)),"@@@"}),Mt={},zt={};Yt=gt(Yt).replace(j,function(Bn){var hn=At[Bn],En=hn[0],Cn=hn[1],Tt=hn[3];if(Mt[En])throw new Error("Invalid format. "+En+" specified twice in format");return Mt[En]=!0,Tt&&(zt[Tt]=!0),Jt.push(hn),"("+Cn+")"}),Object.keys(zt).forEach(function(Bn){if(!Mt[Bn])throw new Error("Invalid format. "+Bn+" is required in specified format")}),Yt=Yt.replace(/@@@/g,function(){return Pt.shift()});var qt=yt.match(new RegExp(Yt,"i"));if(!qt)return null;for(var Xt,xt=nt(nt({},Ft),wt),It=1;It11||Et.month<0||Et.day>31||Et.day<1||Et.hour>23||Et.hour<0||Et.minute>59||Et.minute<0||Et.second>59||Et.second<0)return null;return Xt}const mt={format:jt,parse:vt,defaultI18n:ut,setGlobalDateI18n:dt,setGlobalDateMasks:Bt}},9827:o=>{var s=Object.prototype.toString;o.exports=function(_){if(typeof _.displayName=="string"&&_.constructor.name)return _.displayName;if(typeof _.name=="string"&&_.name)return _.name;if(typeof _=="object"&&_.constructor&&typeof _.constructor.name=="string")return _.constructor.name;var j=_.toString(),$=s.call(_).slice(8,-1);return(j=$==="Function"?j.substring(j.indexOf("(")+1,j.indexOf(")")):$)||"anonymous"}},705:(o,s,_)=>{var j=_(9617),$=Object.prototype.toString,_e=Object.prototype.hasOwnProperty,et=function(rt,it,st){for(var ut=0,Ft=rt.length;ut=3&&(ut=st),$.call(rt)==="[object Array]"?et(rt,it,ut):typeof rt=="string"?tt(rt,it,ut):nt(rt,it,ut)}},8794:o=>{var s="Function.prototype.bind called on incompatible ",_=Object.prototype.toString,j=Math.max,$=function(tt,nt){for(var rt=[],it=0;it{var j=_(8794);o.exports=Function.prototype.bind||j},528:(o,s,_)=>{var j=_(9629),$=_(9838),_e=_(9110),et=_(1155),tt=_(4943),nt=_(5731),rt=_(3468),it=_(2140),st=_(8479),ut=_(8449),Ft=_(8129),dt=_(2387),gt=_(5865),Ut=_(1319),ht=_(6882),ft=Function,pt=function(Kt){try{return ft('"use strict"; return ('+Kt+").constructor;")()}catch{}},Rt=_(9336),Qt=_(4940),Nt=function(){throw new rt},At=Rt?function(){try{return Nt}catch{try{return Rt(arguments,"callee").get}catch{return Nt}}}():Nt,kt=_(3558)(),Bt=_(6369),jt=_(7345),vt=_(7859),mt=_(6095),yt=_(4531),Vt={},wt=typeof Uint8Array<"u"&&Bt?Bt(Uint8Array):void 0,Et={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":kt&&Bt?Bt([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":Vt,"%AsyncGenerator%":Vt,"%AsyncGeneratorFunction%":Vt,"%AsyncIteratorPrototype%":Vt,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%BigInt%":typeof BigInt>"u"?void 0:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?void 0:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$,"%eval%":eval,"%EvalError%":_e,"%Float16Array%":typeof Float16Array>"u"?void 0:Float16Array,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?void 0:FinalizationRegistry,"%Function%":ft,"%GeneratorFunction%":Vt,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":kt&&Bt?Bt(Bt([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&kt&&Bt?Bt(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":j,"%Object.getOwnPropertyDescriptor%":Rt,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":et,"%ReferenceError%":tt,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&kt&&Bt?Bt(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":kt&&Bt?Bt(""[Symbol.iterator]()):void 0,"%Symbol%":kt?Symbol:void 0,"%SyntaxError%":nt,"%ThrowTypeError%":At,"%TypedArray%":wt,"%TypeError%":rt,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%URIError%":it,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakRef%":typeof WeakRef>"u"?void 0:WeakRef,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet,"%Function.prototype.call%":yt,"%Function.prototype.apply%":mt,"%Object.defineProperty%":Qt,"%Object.getPrototypeOf%":jt,"%Math.abs%":st,"%Math.floor%":ut,"%Math.max%":Ft,"%Math.min%":dt,"%Math.pow%":gt,"%Math.round%":Ut,"%Math.sign%":ht,"%Reflect.getPrototypeOf%":vt};if(Bt)try{null.error}catch(Kt){var Jt=Bt(Bt(Kt));Et["%Error.prototype%"]=Jt}var Pt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Yt=_(9138),Mt=_(8554),zt=Yt.call(yt,Array.prototype.concat),qt=Yt.call(mt,Array.prototype.splice),Xt=Yt.call(yt,String.prototype.replace),xt=Yt.call(yt,String.prototype.slice),It=Yt.call(yt,RegExp.prototype.exec),$t=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,un=/\\(\\)?/g,tn=function(Kt){var Un=xt(Kt,0,1),Bn=xt(Kt,-1);if(Un==="%"&&Bn!=="%")throw new nt("invalid intrinsic syntax, expected closing `%`");if(Bn==="%"&&Un!=="%")throw new nt("invalid intrinsic syntax, expected opening `%`");var hn=[];return Xt(Kt,$t,function(En,Cn,Tt,Zt){hn[hn.length]=Tt?Xt(Zt,un,"$1"):Cn||En}),hn},an=function(Kt,Un){var Bn,hn=Kt;if(Mt(Pt,hn)&&(hn="%"+(Bn=Pt[hn])[0]+"%"),Mt(Et,hn)){var En=Et[hn];if(En===Vt&&(En=function Cn(Tt){var Zt;if(Tt==="%AsyncFunction%")Zt=pt("async function () {}");else if(Tt==="%GeneratorFunction%")Zt=pt("function* () {}");else if(Tt==="%AsyncGeneratorFunction%")Zt=pt("async function* () {}");else if(Tt==="%AsyncGenerator%"){var Ot=Cn("%AsyncGeneratorFunction%");Ot&&(Zt=Ot.prototype)}else if(Tt==="%AsyncIteratorPrototype%"){var sn=Cn("%AsyncGenerator%");sn&&Bt&&(Zt=Bt(sn.prototype))}return Et[Tt]=Zt,Zt}(hn)),En===void 0&&!Un)throw new rt("intrinsic "+Kt+" exists, but is not available. Please file an issue!");return{alias:Bn,name:hn,value:En}}throw new nt("intrinsic "+Kt+" does not exist!")};o.exports=function(Kt,Un){if(typeof Kt!="string"||Kt.length===0)throw new rt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Un!="boolean")throw new rt('"allowMissing" argument must be a boolean');if(It(/^%?[^%]*%?$/,Kt)===null)throw new nt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Bn=tn(Kt),hn=Bn.length>0?Bn[0]:"",En=an("%"+hn+"%",Un),Cn=En.name,Tt=En.value,Zt=!1,Ot=En.alias;Ot&&(hn=Ot[0],qt(Bn,zt([0,1],Ot)));for(var sn=1,ln=!0;sn=Bn.length){var On=Rt(Tt,cn);Tt=(ln=!!On)&&"get"in On&&!("originalValue"in On.get)?On.get:Tt[cn]}else ln=Mt(Tt,cn),Tt=Tt[cn];ln&&!Zt&&(Et[Cn]=Tt)}}return Tt}},7345:(o,s,_)=>{var j=_(9629);o.exports=j.getPrototypeOf||null},7859:o=>{o.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},6369:(o,s,_)=>{var j=_(7859),$=_(7345),_e=_(6423);o.exports=j?function(et){return j(et)}:$?function(et){if(!et||typeof et!="object"&&typeof et!="function")throw new TypeError("getProto: not an object");return $(et)}:_e?function(et){return _e(et)}:null},7186:function(__unused_webpack_module,exports,__webpack_require__){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(o,s,_){o instanceof String&&(o=String(o));for(var j=o.length,$=0;$=$}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(o){return o||function(s,_){return $jscomp.findInternal(this,s,_).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(o){return o||function(s,_){var j=$jscomp.checkStringArgs(this,s,"startsWith");s+="";var $=j.length,_e=s.length;_=Math.max(0,Math.min(0|_,j.length));for(var et=0;et<_e&&_<$;)if(j[_++]!=s[et++])return!1;return et>=_e}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(o){return o||function(s){var _=$jscomp.checkStringArgs(this,null,"repeat");if(0>s||1342177279>>=1)&&(_+=_);return j}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(o,s,_){o=o.split("."),_=_||goog.global,o[0]in _||_.execScript===void 0||_.execScript("var "+o[0]);for(var j;o.length&&(j=o.shift());)o.length||s===void 0?_=_[j]&&_[j]!==Object.prototype[j]?_[j]:_[j]={}:_[j]=s},goog.define=function(o,s){return s},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(o){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(o)},goog.constructNamespace_=function(o,s){goog.exportPath_(o,s)},goog.getScriptNonce=function(o){return o&&o!=goog.global?goog.getScriptNonce_(o.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(o){return(o=o.querySelector&&o.querySelector("script[nonce]"))&&(o=o.nonce||o.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(o)?o:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(o){if(typeof o!="string"||!o||o.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+o+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=o},goog.module.get=function(o){return goog.module.getInternal_(o)},goog.module.getInternal_=function(o){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var o=goog.global.$jscomp;return!!o&&typeof o.getCurrentModulePath=="function"&&!!o.getCurrentModulePath()},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(o){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=o;else{var s=goog.global.$jscomp;if(!s||typeof s.getCurrentModulePath!="function")throw Error('Module with namespace "'+o+'" has been loaded incorrectly.');s=s.require(s.getCurrentModulePath()),goog.loadedModules_[o]={exports:s,type:goog.ModuleType.ES6,moduleId:o}}},goog.setTestOnly=function(o){if(goog.DISALLOW_TEST_ONLY_CODE)throw o=o||"",Error("Importing test-only code into non-debug environment"+(o?": "+o:"."))},goog.forwardDeclare=function(o){},goog.getObjectByName=function(o,s){o=o.split("."),s=s||goog.global;for(var _=0;_>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(o){var s=goog.typeOf(o);if(s=="object"||s=="array"){if(typeof o.clone=="function")return o.clone();for(var _ in s=s=="array"?[]:{},o)s[_]=goog.cloneObject(o[_]);return s}return o},goog.bindNative_=function(o,s,_){return o.call.apply(o.bind,arguments)},goog.bindJs_=function(o,s,_){if(!o)throw Error();if(2_?Math.max(0,o.length+_):_,typeof o=="string")return typeof s!="string"||s.length!=1?-1:o.indexOf(s,_);for(;_(_=_??o.length-1)&&(_=Math.max(0,o.length+_)),typeof o=="string")return typeof s!="string"||s.length!=1?-1:o.lastIndexOf(s,_);for(;0<=_;_--)if(_ in o&&o[_]===s)return _;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(o,s,_){goog.asserts.assert(o.length!=null),Array.prototype.forEach.call(o,s,_)}:function(o,s,_){for(var j=o.length,$=typeof o=="string"?o.split(""):o,_e=0;_e(s=goog.array.findIndex(o,s,_))?null:typeof o=="string"?o.charAt(s):o[s]},goog.array.findIndex=function(o,s,_){for(var j=o.length,$=typeof o=="string"?o.split(""):o,_e=0;_e(s=goog.array.findIndexRight(o,s,_))?null:typeof o=="string"?o.charAt(s):o[s]},goog.array.findIndexRight=function(o,s,_){var j=o.length,$=typeof o=="string"?o.split(""):o;for(--j;0<=j;j--)if(j in $&&s.call(_,$[j],j,o))return j;return-1},goog.array.contains=function(o,s){return 0<=goog.array.indexOf(o,s)},goog.array.isEmpty=function(o){return o.length==0},goog.array.clear=function(o){if(!Array.isArray(o))for(var s=o.length-1;0<=s;s--)delete o[s];o.length=0},goog.array.insert=function(o,s){goog.array.contains(o,s)||o.push(s)},goog.array.insertAt=function(o,s,_){goog.array.splice(o,_,0,s)},goog.array.insertArrayAt=function(o,s,_){goog.partial(goog.array.splice,o,_,0).apply(null,s)},goog.array.insertBefore=function(o,s,_){var j;arguments.length==2||0>(j=goog.array.indexOf(o,_))?o.push(s):goog.array.insertAt(o,s,j)},goog.array.remove=function(o,s){var _;return(_=0<=(s=goog.array.indexOf(o,s)))&&goog.array.removeAt(o,s),_},goog.array.removeLast=function(o,s){return 0<=(s=goog.array.lastIndexOf(o,s))&&(goog.array.removeAt(o,s),!0)},goog.array.removeAt=function(o,s){return goog.asserts.assert(o.length!=null),Array.prototype.splice.call(o,s,1).length==1},goog.array.removeIf=function(o,s,_){return 0<=(s=goog.array.findIndex(o,s,_))&&(goog.array.removeAt(o,s),!0)},goog.array.removeAllIf=function(o,s,_){var j=0;return goog.array.forEachRight(o,function($,_e){s.call(_,$,_e,o)&&goog.array.removeAt(o,_e)&&j++}),j},goog.array.concat=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(o){var s=o.length;if(0=arguments.length?Array.prototype.slice.call(o,s):Array.prototype.slice.call(o,s,_)},goog.array.removeDuplicates=function(o,s,_){s=s||o;var j=function(nt){return goog.isObject(nt)?"o"+goog.getUid(nt):(typeof nt).charAt(0)+nt};_=_||j,j={};for(var $=0,_e=0;_e>>1),rt=_?s.call($,o[nt],nt,o):s(j,o[nt]);0s?1:o(_=goog.array.binarySearch(o,s,_))&&(goog.array.insertAt(o,s,-(_+1)),!0)},goog.array.binaryRemove=function(o,s,_){return 0<=(s=goog.array.binarySearch(o,s,_))&&goog.array.removeAt(o,s)},goog.array.bucket=function(o,s,_){for(var j={},$=0;$(_=_||1)*(_e-$))return[];if(0<_)for(o=$;o<_e;o+=_)j.push(o);else for(o=$;o>_e;o+=_)j.push(o);return j},goog.array.repeat=function(o,s){for(var _=[],j=0;js&&Array.prototype.push.apply(o,o.splice(0,-s))),o},goog.array.moveItem=function(o,s,_){goog.asserts.assert(0<=s&&s>=8),s[_++]=$}return s},goog.crypt.byteArrayToString=function(o){if(8192>=o.length)return String.fromCharCode.apply(null,o);for(var s="",_=0;_$?s[_++]=$:(2048>$?s[_++]=$>>6|192:((64512&$)==55296&&j+1>18|240,s[_++]=$>>12&63|128):s[_++]=$>>12|224,s[_++]=$>>6&63|128),s[_++]=63&$|128)}return s},goog.crypt.utf8ByteArrayToString=function(o){for(var s=[],_=0,j=0;_$)s[j++]=String.fromCharCode($);else if(191<$&&224>$){var _e=o[_++];s[j++]=String.fromCharCode((31&$)<<6|63&_e)}else if(239<$&&365>$){_e=o[_++];var et=o[_++];$=((7&$)<<18|(63&_e)<<12|(63&et)<<6|63&o[_++])-65536,s[j++]=String.fromCharCode(55296+($>>10)),s[j++]=String.fromCharCode(56320+(1023&$))}else _e=o[_++],et=o[_++],s[j++]=String.fromCharCode((15&$)<<12|(63&_e)<<6|63&et)}return s.join("")},goog.crypt.xorByteArray=function(o,s){goog.asserts.assert(o.length==s.length,"XOR array lengths must match");for(var _=[],j=0;j"}},goog.dom.asserts.getWindow_=function(o){try{var s=o&&o.ownerDocument,_=s&&(s.defaultView||s.parentWindow);if((_=_||goog.global).Element&&_.Location)return _}catch{}return null},goog.functions={},goog.functions.constant=function(o){return function(){return o}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(o,s){return o},goog.functions.error=function(o){return function(){throw Error(o)}},goog.functions.fail=function(o){return function(){throw o}},goog.functions.lock=function(o,s){return s=s||0,function(){return o.apply(this,Array.prototype.slice.call(arguments,0,s))}},goog.functions.nth=function(o){return function(){return arguments[o]}},goog.functions.partialRight=function(o,s){var _=Array.prototype.slice.call(arguments,1);return function(){var j=Array.prototype.slice.call(arguments);return j.push.apply(j,_),o.apply(this,j)}},goog.functions.withReturnValue=function(o,s){return goog.functions.sequence(o,goog.functions.constant(s))},goog.functions.equalTo=function(o,s){return function(_){return s?o==_:o===_}},goog.functions.compose=function(o,s){var _=arguments,j=_.length;return function(){var $;j&&($=_[j-1].apply(this,arguments));for(var _e=j-2;0<=_e;_e--)$=_[_e].call(this,$);return $}},goog.functions.sequence=function(o){var s=arguments,_=s.length;return function(){for(var j,$=0;$<_;$++)j=s[$].apply(this,arguments);return j}},goog.functions.and=function(o){var s=arguments,_=s.length;return function(){for(var j=0;j<_;j++)if(!s[j].apply(this,arguments))return!1;return!0}},goog.functions.or=function(o){var s=arguments,_=s.length;return function(){for(var j=0;j<_;j++)if(s[j].apply(this,arguments))return!0;return!1}},goog.functions.not=function(o){return function(){return!o.apply(this,arguments)}},goog.functions.create=function(o,s){var _=function(){};return _.prototype=o.prototype,_=new _,o.apply(_,Array.prototype.slice.call(arguments,1)),_},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(o){var s,_=!1;return function(){return goog.functions.CACHE_RETURN_VALUE?(_||(s=o(),_=!0),s):o()}},goog.functions.once=function(o){var s=o;return function(){if(s){var _=s;s=null,_()}}},goog.functions.debounce=function(o,s,_){var j=0;return function($){goog.global.clearTimeout(j);var _e=arguments;j=goog.global.setTimeout(function(){o.apply(_,_e)},s)}},goog.functions.throttle=function(o,s,_){var j=0,$=!1,_e=[],et=function(){j=0,$&&($=!1,tt())},tt=function(){j=goog.global.setTimeout(et,s),o.apply(_,_e)};return function(nt){_e=arguments,j?$=!0:tt()}},goog.functions.rateLimit=function(o,s,_){var j=0,$=function(){j=0};return function(_e){j||(j=goog.global.setTimeout($,s),o.apply(_,arguments))}},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(o){this.tagName_=o},goog.dom.TagName.prototype.toString=function(){return this.tagName_},goog.dom.TagName.A=new goog.dom.TagName("A"),goog.dom.TagName.ABBR=new goog.dom.TagName("ABBR"),goog.dom.TagName.ACRONYM=new goog.dom.TagName("ACRONYM"),goog.dom.TagName.ADDRESS=new goog.dom.TagName("ADDRESS"),goog.dom.TagName.APPLET=new goog.dom.TagName("APPLET"),goog.dom.TagName.AREA=new goog.dom.TagName("AREA"),goog.dom.TagName.ARTICLE=new goog.dom.TagName("ARTICLE"),goog.dom.TagName.ASIDE=new goog.dom.TagName("ASIDE"),goog.dom.TagName.AUDIO=new goog.dom.TagName("AUDIO"),goog.dom.TagName.B=new goog.dom.TagName("B"),goog.dom.TagName.BASE=new goog.dom.TagName("BASE"),goog.dom.TagName.BASEFONT=new goog.dom.TagName("BASEFONT"),goog.dom.TagName.BDI=new goog.dom.TagName("BDI"),goog.dom.TagName.BDO=new goog.dom.TagName("BDO"),goog.dom.TagName.BIG=new goog.dom.TagName("BIG"),goog.dom.TagName.BLOCKQUOTE=new goog.dom.TagName("BLOCKQUOTE"),goog.dom.TagName.BODY=new goog.dom.TagName("BODY"),goog.dom.TagName.BR=new goog.dom.TagName("BR"),goog.dom.TagName.BUTTON=new goog.dom.TagName("BUTTON"),goog.dom.TagName.CANVAS=new goog.dom.TagName("CANVAS"),goog.dom.TagName.CAPTION=new goog.dom.TagName("CAPTION"),goog.dom.TagName.CENTER=new goog.dom.TagName("CENTER"),goog.dom.TagName.CITE=new goog.dom.TagName("CITE"),goog.dom.TagName.CODE=new goog.dom.TagName("CODE"),goog.dom.TagName.COL=new goog.dom.TagName("COL"),goog.dom.TagName.COLGROUP=new goog.dom.TagName("COLGROUP"),goog.dom.TagName.COMMAND=new goog.dom.TagName("COMMAND"),goog.dom.TagName.DATA=new goog.dom.TagName("DATA"),goog.dom.TagName.DATALIST=new goog.dom.TagName("DATALIST"),goog.dom.TagName.DD=new goog.dom.TagName("DD"),goog.dom.TagName.DEL=new goog.dom.TagName("DEL"),goog.dom.TagName.DETAILS=new goog.dom.TagName("DETAILS"),goog.dom.TagName.DFN=new goog.dom.TagName("DFN"),goog.dom.TagName.DIALOG=new goog.dom.TagName("DIALOG"),goog.dom.TagName.DIR=new goog.dom.TagName("DIR"),goog.dom.TagName.DIV=new goog.dom.TagName("DIV"),goog.dom.TagName.DL=new goog.dom.TagName("DL"),goog.dom.TagName.DT=new goog.dom.TagName("DT"),goog.dom.TagName.EM=new goog.dom.TagName("EM"),goog.dom.TagName.EMBED=new goog.dom.TagName("EMBED"),goog.dom.TagName.FIELDSET=new goog.dom.TagName("FIELDSET"),goog.dom.TagName.FIGCAPTION=new goog.dom.TagName("FIGCAPTION"),goog.dom.TagName.FIGURE=new goog.dom.TagName("FIGURE"),goog.dom.TagName.FONT=new goog.dom.TagName("FONT"),goog.dom.TagName.FOOTER=new goog.dom.TagName("FOOTER"),goog.dom.TagName.FORM=new goog.dom.TagName("FORM"),goog.dom.TagName.FRAME=new goog.dom.TagName("FRAME"),goog.dom.TagName.FRAMESET=new goog.dom.TagName("FRAMESET"),goog.dom.TagName.H1=new goog.dom.TagName("H1"),goog.dom.TagName.H2=new goog.dom.TagName("H2"),goog.dom.TagName.H3=new goog.dom.TagName("H3"),goog.dom.TagName.H4=new goog.dom.TagName("H4"),goog.dom.TagName.H5=new goog.dom.TagName("H5"),goog.dom.TagName.H6=new goog.dom.TagName("H6"),goog.dom.TagName.HEAD=new goog.dom.TagName("HEAD"),goog.dom.TagName.HEADER=new goog.dom.TagName("HEADER"),goog.dom.TagName.HGROUP=new goog.dom.TagName("HGROUP"),goog.dom.TagName.HR=new goog.dom.TagName("HR"),goog.dom.TagName.HTML=new goog.dom.TagName("HTML"),goog.dom.TagName.I=new goog.dom.TagName("I"),goog.dom.TagName.IFRAME=new goog.dom.TagName("IFRAME"),goog.dom.TagName.IMG=new goog.dom.TagName("IMG"),goog.dom.TagName.INPUT=new goog.dom.TagName("INPUT"),goog.dom.TagName.INS=new goog.dom.TagName("INS"),goog.dom.TagName.ISINDEX=new goog.dom.TagName("ISINDEX"),goog.dom.TagName.KBD=new goog.dom.TagName("KBD"),goog.dom.TagName.KEYGEN=new goog.dom.TagName("KEYGEN"),goog.dom.TagName.LABEL=new goog.dom.TagName("LABEL"),goog.dom.TagName.LEGEND=new goog.dom.TagName("LEGEND"),goog.dom.TagName.LI=new goog.dom.TagName("LI"),goog.dom.TagName.LINK=new goog.dom.TagName("LINK"),goog.dom.TagName.MAIN=new goog.dom.TagName("MAIN"),goog.dom.TagName.MAP=new goog.dom.TagName("MAP"),goog.dom.TagName.MARK=new goog.dom.TagName("MARK"),goog.dom.TagName.MATH=new goog.dom.TagName("MATH"),goog.dom.TagName.MENU=new goog.dom.TagName("MENU"),goog.dom.TagName.MENUITEM=new goog.dom.TagName("MENUITEM"),goog.dom.TagName.META=new goog.dom.TagName("META"),goog.dom.TagName.METER=new goog.dom.TagName("METER"),goog.dom.TagName.NAV=new goog.dom.TagName("NAV"),goog.dom.TagName.NOFRAMES=new goog.dom.TagName("NOFRAMES"),goog.dom.TagName.NOSCRIPT=new goog.dom.TagName("NOSCRIPT"),goog.dom.TagName.OBJECT=new goog.dom.TagName("OBJECT"),goog.dom.TagName.OL=new goog.dom.TagName("OL"),goog.dom.TagName.OPTGROUP=new goog.dom.TagName("OPTGROUP"),goog.dom.TagName.OPTION=new goog.dom.TagName("OPTION"),goog.dom.TagName.OUTPUT=new goog.dom.TagName("OUTPUT"),goog.dom.TagName.P=new goog.dom.TagName("P"),goog.dom.TagName.PARAM=new goog.dom.TagName("PARAM"),goog.dom.TagName.PICTURE=new goog.dom.TagName("PICTURE"),goog.dom.TagName.PRE=new goog.dom.TagName("PRE"),goog.dom.TagName.PROGRESS=new goog.dom.TagName("PROGRESS"),goog.dom.TagName.Q=new goog.dom.TagName("Q"),goog.dom.TagName.RP=new goog.dom.TagName("RP"),goog.dom.TagName.RT=new goog.dom.TagName("RT"),goog.dom.TagName.RTC=new goog.dom.TagName("RTC"),goog.dom.TagName.RUBY=new goog.dom.TagName("RUBY"),goog.dom.TagName.S=new goog.dom.TagName("S"),goog.dom.TagName.SAMP=new goog.dom.TagName("SAMP"),goog.dom.TagName.SCRIPT=new goog.dom.TagName("SCRIPT"),goog.dom.TagName.SECTION=new goog.dom.TagName("SECTION"),goog.dom.TagName.SELECT=new goog.dom.TagName("SELECT"),goog.dom.TagName.SMALL=new goog.dom.TagName("SMALL"),goog.dom.TagName.SOURCE=new goog.dom.TagName("SOURCE"),goog.dom.TagName.SPAN=new goog.dom.TagName("SPAN"),goog.dom.TagName.STRIKE=new goog.dom.TagName("STRIKE"),goog.dom.TagName.STRONG=new goog.dom.TagName("STRONG"),goog.dom.TagName.STYLE=new goog.dom.TagName("STYLE"),goog.dom.TagName.SUB=new goog.dom.TagName("SUB"),goog.dom.TagName.SUMMARY=new goog.dom.TagName("SUMMARY"),goog.dom.TagName.SUP=new goog.dom.TagName("SUP"),goog.dom.TagName.SVG=new goog.dom.TagName("SVG"),goog.dom.TagName.TABLE=new goog.dom.TagName("TABLE"),goog.dom.TagName.TBODY=new goog.dom.TagName("TBODY"),goog.dom.TagName.TD=new goog.dom.TagName("TD"),goog.dom.TagName.TEMPLATE=new goog.dom.TagName("TEMPLATE"),goog.dom.TagName.TEXTAREA=new goog.dom.TagName("TEXTAREA"),goog.dom.TagName.TFOOT=new goog.dom.TagName("TFOOT"),goog.dom.TagName.TH=new goog.dom.TagName("TH"),goog.dom.TagName.THEAD=new goog.dom.TagName("THEAD"),goog.dom.TagName.TIME=new goog.dom.TagName("TIME"),goog.dom.TagName.TITLE=new goog.dom.TagName("TITLE"),goog.dom.TagName.TR=new goog.dom.TagName("TR"),goog.dom.TagName.TRACK=new goog.dom.TagName("TRACK"),goog.dom.TagName.TT=new goog.dom.TagName("TT"),goog.dom.TagName.U=new goog.dom.TagName("U"),goog.dom.TagName.UL=new goog.dom.TagName("UL"),goog.dom.TagName.VAR=new goog.dom.TagName("VAR"),goog.dom.TagName.VIDEO=new goog.dom.TagName("VIDEO"),goog.dom.TagName.WBR=new goog.dom.TagName("WBR"),goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(o){return goog.dom.tags.VOID_TAGS_[o]===!0},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html"):null,goog.string={},goog.string.TypedString=function(){},goog.string.Const=function(o,s){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=o===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&s||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.DEBUG&&(goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"}),goog.string.Const.unwrap=function(o){return o instanceof goog.string.Const&&o.constructor===goog.string.Const&&o.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?o.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+o+"'"),"type_error:Const")},goog.string.Const.from=function(o){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.html.SafeScript=function(){this.privateDoNotAccessOrElseSafeScriptWrappedValue_="",this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeScript.prototype.implementsGoogStringTypedString=!0,goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeScript.fromConstant=function(o){return(o=goog.string.Const.unwrap(o)).length===0?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeScript.fromConstantAndArgs=function(o,s){for(var _=[],j=1;jo?goog.i18n.bidi.Dir.RTL:s?null:goog.i18n.bidi.Dir.NEUTRAL:o==null?null:o?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ऀ-῿‎Ⰰ-\uD801\uD804-\uD839\uD83C-\uDBFF豈-﬜︀-﹯﻽-￿",goog.i18n.bidi.rtlChars_="֑-ۯۺ-ࣿ‏\uD802-\uD803\uD83A-\uD83Bיִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(o,s){return s?o.replace(goog.i18n.bidi.htmlSkipReg_,""):o},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(o,s){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,s))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(o,s){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,s))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(o){return goog.i18n.bidi.rtlRe_.test(o)},goog.i18n.bidi.isLtrChar=function(o){return goog.i18n.bidi.ltrRe_.test(o)},goog.i18n.bidi.isNeutralChar=function(o){return!goog.i18n.bidi.isLtrChar(o)&&!goog.i18n.bidi.isRtlChar(o)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(o,s){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,s))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(o,s){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,s))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(o,s){return o=goog.i18n.bidi.stripHtmlIfNeeded_(o,s),goog.i18n.bidi.isRequiredLtrRe_.test(o)||!goog.i18n.bidi.hasAnyLtr(o)&&!goog.i18n.bidi.hasAnyRtl(o)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(o,s){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,s))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(o,s){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,s))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(o){return goog.i18n.bidi.rtlLocalesRe_.test(o)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(o,s){return s=(s===void 0?goog.i18n.bidi.hasAnyRtl(o):s)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,o.replace(goog.i18n.bidi.bracketGuardTextRe_,s+"$&"+s)},goog.i18n.bidi.enforceRtlInHtml=function(o){return o.charAt(0)=="<"?o.replace(/<\w+/,"$& dir=rtl"):` `+o+""},goog.i18n.bidi.enforceRtlInText=function(o){return goog.i18n.bidi.Format.RLE+o+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(o){return o.charAt(0)=="<"?o.replace(/<\w+/,"$& dir=ltr"):` `+o+""},goog.i18n.bidi.enforceLtrInText=function(o){return goog.i18n.bidi.Format.LRE+o+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(o){return o.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(o){return o.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1״").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1׳")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(o,s){var _=0,j=0,$=!1;for(o=goog.i18n.bidi.stripHtmlIfNeeded_(o,s).split(goog.i18n.bidi.wordSeparatorRe_),s=0;sgoog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(o,s){return goog.i18n.bidi.estimateDirection(o,s)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(o,s){o&&(s=goog.i18n.bidi.toDir(s))&&(o.style.textAlign=s==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,o.dir=s==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(o,s){switch(goog.i18n.bidi.estimateDirection(s)){case goog.i18n.bidi.Dir.LTR:o.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:o.dir="rtl";break;default:o.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(o,s){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=o===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&s||"",this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(o,s){var _=goog.html.TrustedResourceUrl.unwrap(this),j=(_=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(_))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(_[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",_[2]||"",o)+goog.html.TrustedResourceUrl.stringifyParams_("#",j,s))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(o){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(o){return o instanceof goog.html.TrustedResourceUrl&&o.constructor===goog.html.TrustedResourceUrl&&o.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(o,s){var _=goog.string.Const.unwrap(o);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(_))throw Error("Invalid TrustedResourceUrl format: "+_);return o=_.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(j,$){if(!Object.prototype.hasOwnProperty.call(s,$))throw Error('Found marker, "'+$+'", in format string, "'+_+'", but no valid label mapping found in args: '+JSON.stringify(s));return(j=s[$])instanceof goog.string.Const?goog.string.Const.unwrap(j):encodeURIComponent(String(j))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(o,s,_,j){return goog.html.TrustedResourceUrl.format(o,s).cloneWithParams(_,j)},goog.html.TrustedResourceUrl.fromConstant=function(o){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.TrustedResourceUrl.fromConstants=function(o){for(var s="",_=0;_o.length?"&":"")+encodeURIComponent(j)+"="+encodeURIComponent(String(et)))}}return s},goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.internal={},goog.string.internal.startsWith=function(o,s){return o.lastIndexOf(s,0)==0},goog.string.internal.endsWith=function(o,s){var _=o.length-s.length;return 0<=_&&o.indexOf(s,_)==_},goog.string.internal.caseInsensitiveStartsWith=function(o,s){return goog.string.internal.caseInsensitiveCompare(s,o.substr(0,s.length))==0},goog.string.internal.caseInsensitiveEndsWith=function(o,s){return goog.string.internal.caseInsensitiveCompare(s,o.substr(o.length-s.length,s.length))==0},goog.string.internal.caseInsensitiveEquals=function(o,s){return o.toLowerCase()==s.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(o){return/^[\s\xa0]*$/.test(o)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(o){return o.trim()}:function(o){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(o)[1]},goog.string.internal.caseInsensitiveCompare=function(o,s){return(o=String(o).toLowerCase())<(s=String(s).toLowerCase())?-1:o==s?0:1},goog.string.internal.newLineToBr=function(o,s){return o.replace(/(\r\n|\r|\n)/g,s?"
":"
")},goog.string.internal.htmlEscape=function(o,s){if(s)o=o.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(o))return o;o.indexOf("&")!=-1&&(o=o.replace(goog.string.internal.AMP_RE_,"&")),o.indexOf("<")!=-1&&(o=o.replace(goog.string.internal.LT_RE_,"<")),o.indexOf(">")!=-1&&(o=o.replace(goog.string.internal.GT_RE_,">")),o.indexOf('"')!=-1&&(o=o.replace(goog.string.internal.QUOT_RE_,""")),o.indexOf("'")!=-1&&(o=o.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),o.indexOf("\0")!=-1&&(o=o.replace(goog.string.internal.NULL_RE_,"�"))}return o},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=//g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(o,s){return goog.string.internal.newLineToBr(o.replace(/ /g,"  "),s)},goog.string.internal.contains=function(o,s){return o.indexOf(s)!=-1},goog.string.internal.caseInsensitiveContains=function(o,s){return goog.string.internal.contains(o.toLowerCase(),s.toLowerCase())},goog.string.internal.compareVersions=function(o,s){var _=0;o=goog.string.internal.trim(String(o)).split("."),s=goog.string.internal.trim(String(s)).split(".");for(var j=Math.max(o.length,s.length),$=0;_==0&&$s?1:0},goog.html.SafeUrl=function(o,s){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=o===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&s||"",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(o){return o instanceof goog.html.SafeUrl&&o.constructor===goog.html.SafeUrl&&o.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(o){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(o){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(o)},goog.html.SafeUrl.fromBlob=function(o){return o=goog.html.SafeUrl.isSafeMimeType(o.type)?goog.fs.url.createObjectUrl(o):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromMediaSource=function(o){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),o=o instanceof MediaSource?goog.fs.url.createObjectUrl(o):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(o){var s=(o=o.replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return s=s&&goog.html.SafeUrl.isSafeMimeType(s[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(s?o:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"tel:")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(o){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(o))||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"fb-messenger://share")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromWhatsAppUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"whatsapp://send")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromSmsUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(o){var s=o.indexOf("#");if(0+~[\]()=^$|]+$/.test(_))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+o);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(_))throw Error("() and [] in selector must be balanced, got: "+o);return s instanceof goog.html.SafeStyle||(s=goog.html.SafeStyle.create(s)),o=o+"{"+goog.html.SafeStyle.unwrap(s).replace(/",null)},goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.html.SafeHtml.create=function(o,s,_){return goog.html.SafeHtml.verifyTagName(String(o)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(o),s,_)},goog.html.SafeHtml.verifyTagName=function(o){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(o))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+o+">.":"");if(o.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+o+"> is not allowed for SafeHtml.":"")},goog.html.SafeHtml.createIframe=function(o,s,_,j){o&&goog.html.TrustedResourceUrl.unwrap(o);var $={};return $.src=o||null,$.srcdoc=s&&goog.html.SafeHtml.unwrap(s),o=goog.html.SafeHtml.combineAttributes($,{sandbox:""},_),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,j)},goog.html.SafeHtml.createSandboxIframe=function(o,s,_,j){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var $={};return $.src=o?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(o)):null,$.srcdoc=s||null,$.sandbox="",o=goog.html.SafeHtml.combineAttributes($,{},_),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,j)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(o,s){return goog.html.TrustedResourceUrl.unwrap(o),o=goog.html.SafeHtml.combineAttributes({src:o},{},s),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",o)},goog.html.SafeHtml.createScript=function(o,s){for(var _ in s){var j=_.toLowerCase();if(j=="language"||j=="src"||j=="text"||j=="type")throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+j+'" attribute':"")}for(_="",o=goog.array.concat(o),j=0;j does not allow content."),$+=">"):(j=goog.html.SafeHtml.concat(_),$+=">"+goog.html.SafeHtml.unwrap(j)+"",j=j.getDirection()),(o=s&&s.dir)&&(j=/^(ltr|rtl|auto)$/i.test(o)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse($,j)},goog.html.SafeHtml.stringifyAttributes=function(o,s){var _="";if(s)for(var j in s){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(j))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+j+'".':"");var $=s[j];$!=null&&(_+=" "+goog.html.SafeHtml.getAttrNameAndValue_(o,j,$))}return _},goog.html.SafeHtml.combineAttributes=function(o,s,_){var j,$={};for(j in o)goog.asserts.assert(j.toLowerCase()==j,"Must be lower case"),$[j]=o[j];for(j in s)goog.asserts.assert(j.toLowerCase()==j,"Must be lower case"),$[j]=s[j];if(_)for(j in _){var _e=j.toLowerCase();if(_e in o)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+_e+'" attribute, got "'+j+'" with value "'+_[j]+'"':"");_e in s&&delete $[_e],$[j]=_[j]}return $},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("
",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(o,s,_){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(s,_||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(o,s){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(s)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(o,s){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(s)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(o,s){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(s)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(o,s){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(s)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(o,s){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(s)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(o,s,_){o.insertAdjacentHTML(s,goog.html.SafeHtml.unwrapTrustedHTML(_))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue(function(){if(goog.DEBUG&&typeof document>"u")return!1;var o=document.createElement("div"),s=document.createElement("div");return s.appendChild(document.createElement("div")),o.appendChild(s),!(goog.DEBUG&&!o.firstChild)&&(s=o.firstChild.firstChild,o.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!s.parentElement)}),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(o,s){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;o.lastChild;)o.removeChild(o.lastChild);o.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(s)},goog.dom.safe.setInnerHtml=function(o,s){if(goog.asserts.ENABLE_ASSERTS){var _=o.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[_])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+o.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(o,s)},goog.dom.safe.setOuterHtml=function(o,s){o.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(s)},goog.dom.safe.setFormElementAction=function(o,s){s=s instanceof goog.html.SafeUrl?s:goog.html.SafeUrl.sanitizeAssertUnchanged(s),goog.dom.asserts.assertIsHTMLFormElement(o).action=goog.html.SafeUrl.unwrap(s)},goog.dom.safe.setButtonFormAction=function(o,s){s=s instanceof goog.html.SafeUrl?s:goog.html.SafeUrl.sanitizeAssertUnchanged(s),goog.dom.asserts.assertIsHTMLButtonElement(o).formAction=goog.html.SafeUrl.unwrap(s)},goog.dom.safe.setInputFormAction=function(o,s){s=s instanceof goog.html.SafeUrl?s:goog.html.SafeUrl.sanitizeAssertUnchanged(s),goog.dom.asserts.assertIsHTMLInputElement(o).formAction=goog.html.SafeUrl.unwrap(s)},goog.dom.safe.setStyle=function(o,s){o.style.cssText=goog.html.SafeStyle.unwrap(s)},goog.dom.safe.documentWrite=function(o,s){o.write(goog.html.SafeHtml.unwrapTrustedHTML(s))},goog.dom.safe.setAnchorHref=function(o,s){goog.dom.asserts.assertIsHTMLAnchorElement(o),s=s instanceof goog.html.SafeUrl?s:goog.html.SafeUrl.sanitizeAssertUnchanged(s),o.href=goog.html.SafeUrl.unwrap(s)},goog.dom.safe.setImageSrc=function(o,s){if(goog.dom.asserts.assertIsHTMLImageElement(o),!(s instanceof goog.html.SafeUrl)){var _=/^data:image\//i.test(s);s=goog.html.SafeUrl.sanitizeAssertUnchanged(s,_)}o.src=goog.html.SafeUrl.unwrap(s)},goog.dom.safe.setAudioSrc=function(o,s){if(goog.dom.asserts.assertIsHTMLAudioElement(o),!(s instanceof goog.html.SafeUrl)){var _=/^data:audio\//i.test(s);s=goog.html.SafeUrl.sanitizeAssertUnchanged(s,_)}o.src=goog.html.SafeUrl.unwrap(s)},goog.dom.safe.setVideoSrc=function(o,s){if(goog.dom.asserts.assertIsHTMLVideoElement(o),!(s instanceof goog.html.SafeUrl)){var _=/^data:video\//i.test(s);s=goog.html.SafeUrl.sanitizeAssertUnchanged(s,_)}o.src=goog.html.SafeUrl.unwrap(s)},goog.dom.safe.setEmbedSrc=function(o,s){goog.dom.asserts.assertIsHTMLEmbedElement(o),o.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(s)},goog.dom.safe.setFrameSrc=function(o,s){goog.dom.asserts.assertIsHTMLFrameElement(o),o.src=goog.html.TrustedResourceUrl.unwrap(s)},goog.dom.safe.setIframeSrc=function(o,s){goog.dom.asserts.assertIsHTMLIFrameElement(o),o.src=goog.html.TrustedResourceUrl.unwrap(s)},goog.dom.safe.setIframeSrcdoc=function(o,s){goog.dom.asserts.assertIsHTMLIFrameElement(o),o.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(s)},goog.dom.safe.setLinkHrefAndRel=function(o,s,_){goog.dom.asserts.assertIsHTMLLinkElement(o),o.rel=_,goog.string.internal.caseInsensitiveContains(_,"stylesheet")?(goog.asserts.assert(s instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),o.href=goog.html.TrustedResourceUrl.unwrap(s)):o.href=s instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(s):s instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(s):goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(s))},goog.dom.safe.setObjectData=function(o,s){goog.dom.asserts.assertIsHTMLObjectElement(o),o.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(s)},goog.dom.safe.setScriptSrc=function(o,s){goog.dom.asserts.assertIsHTMLScriptElement(o),o.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(s),(s=goog.getScriptNonce())&&o.setAttribute("nonce",s)},goog.dom.safe.setScriptContent=function(o,s){goog.dom.asserts.assertIsHTMLScriptElement(o),o.text=goog.html.SafeScript.unwrapTrustedScript(s),(s=goog.getScriptNonce())&&o.setAttribute("nonce",s)},goog.dom.safe.setLocationHref=function(o,s){goog.dom.asserts.assertIsLocation(o),s=s instanceof goog.html.SafeUrl?s:goog.html.SafeUrl.sanitizeAssertUnchanged(s),o.href=goog.html.SafeUrl.unwrap(s)},goog.dom.safe.assignLocation=function(o,s){goog.dom.asserts.assertIsLocation(o),s=s instanceof goog.html.SafeUrl?s:goog.html.SafeUrl.sanitizeAssertUnchanged(s),o.assign(goog.html.SafeUrl.unwrap(s))},goog.dom.safe.replaceLocation=function(o,s){s=s instanceof goog.html.SafeUrl?s:goog.html.SafeUrl.sanitizeAssertUnchanged(s),o.replace(goog.html.SafeUrl.unwrap(s))},goog.dom.safe.openInWindow=function(o,s,_,j,$){return o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),s=s||goog.global,_=_ instanceof goog.string.Const?goog.string.Const.unwrap(_):_||"",s.open(goog.html.SafeUrl.unwrap(o),_,j,$)},goog.dom.safe.parseFromStringHtml=function(o,s){return goog.dom.safe.parseFromString(o,s,"text/html")},goog.dom.safe.parseFromString=function(o,s,_){return o.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(s),_)},goog.dom.safe.createImageFromBlob=function(o){if(!/^image\/.*/g.test(o.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var s=goog.global.URL.createObjectURL(o);return(o=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(s)},goog.dom.safe.setImageSrc(o,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),s)),o},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:" "},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(o,s){for(var _=o.split("%s"),j="",$=Array.prototype.slice.call(arguments,1);$.length&&1<_.length;)j+=_.shift()+$.shift();return j+_.join("%s")},goog.string.collapseWhitespace=function(o){return o.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(o){return o.length==0},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(o){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(o))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(o){return!/[^\t\n\r ]/.test(o)},goog.string.isAlpha=function(o){return!/[^a-zA-Z]/.test(o)},goog.string.isNumeric=function(o){return!/[^0-9]/.test(o)},goog.string.isAlphaNumeric=function(o){return!/[^a-zA-Z0-9]/.test(o)},goog.string.isSpace=function(o){return o==" "},goog.string.isUnicodeChar=function(o){return o.length==1&&" "<=o&&"~">=o||"€"<=o&&"�">=o},goog.string.stripNewlines=function(o){return o.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(o){return o.replace(/(\r\n|\r|\n)/g,` -`)},goog.string.normalizeWhitespace=function(o){return o.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(o){return o.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(o){return o.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(o){return o.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(o){return o.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(o,s,_){if(o==s)return 0;if(!o)return-1;if(!s)return 1;for(var j=o.toLowerCase().match(_),$=s.toLowerCase().match(_),_e=Math.min(j.length,$.length),et=0;et<_e;et++){_=j[et];var tt=$[et];if(_!=tt)return o=parseInt(_,10),!isNaN(o)&&(s=parseInt(tt,10),!isNaN(s)&&o-s)?o-s:_",""":'"'},j=s?s.createElement("div"):goog.global.document.createElement("div");return o.replace(goog.string.HTML_ENTITY_PATTERN_,function($,_e){var et=_[$];return et||(_e.charAt(0)=="#"&&(_e=+("0"+_e.substr(1)),isNaN(_e)||(et=String.fromCharCode(_e))),et||(goog.dom.safe.setInnerHtml(j,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),$+" ")),et=j.firstChild.nodeValue.slice(0,-1)),_[$]=et)})},goog.string.unescapePureXmlEntities_=function(o){return o.replace(/&([^;]+);/g,function(s,_){switch(_){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return _.charAt(0)!="#"||(_=+("0"+_.substr(1)),isNaN(_))?s:String.fromCharCode(_)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(o,s){return goog.string.newLineToBr(o.replace(/ /g,"  "),s)},goog.string.preserveSpaces=function(o){return o.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(o,s){for(var _=s.length,j=0;j<_;j++){var $=_==1?s:s.charAt(j);if(o.charAt(0)==$&&o.charAt(o.length-1)==$)return o.substring(1,o.length-1)}return o},goog.string.truncate=function(o,s,_){return _&&(o=goog.string.unescapeEntities(o)),o.length>s&&(o=o.substring(0,s-3)+"..."),_&&(o=goog.string.htmlEscape(o)),o},goog.string.truncateMiddle=function(o,s,_,j){if(_&&(o=goog.string.unescapeEntities(o)),j&&o.length>s){j>s&&(j=s);var $=o.length-j;o=o.substring(0,s-j)+"..."+o.substring($)}else o.length>s&&(j=Math.floor(s/2),$=o.length-j,o=o.substring(0,j+s%2)+"..."+o.substring($));return _&&(o=goog.string.htmlEscape(o)),o},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(o){o=String(o);for(var s=['"'],_=0;_$?j:goog.string.escapeChar(j))}return s.push('"'),s.join("")},goog.string.escapeString=function(o){for(var s=[],_=0;_s)var _=o;else 256>s?(_="\\x",(16>s||256s&&(_+="0")),_+=s.toString(16).toUpperCase();return goog.string.jsEscapeCache_[o]=_},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(o,s){return o&&s?o.split(s).length-1:0},goog.string.removeAt=function(o,s,_){var j=o;return 0<=s&&s>>0;return s},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(o){var s=Number(o);return s==0&&goog.string.isEmptyOrWhitespace(o)?NaN:s},goog.string.isLowerCamelCase=function(o){return/^[a-z]+([A-Z][a-z]*)*$/.test(o)},goog.string.isUpperCamelCase=function(o){return/^([A-Z][a-z]*)+$/.test(o)},goog.string.toCamelCase=function(o){return String(o).replace(/\-([a-z])/g,function(s,_){return _.toUpperCase()})},goog.string.toSelectorCase=function(o){return String(o).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(o,s){return s=typeof s=="string"?goog.string.regExpEscape(s):"\\s",o.replace(new RegExp("(^"+(s?"|["+s+"]+":"")+")([a-z])","g"),function(_,j,$){return j+$.toUpperCase()})},goog.string.capitalize=function(o){return String(o.charAt(0)).toUpperCase()+String(o.substr(1)).toLowerCase()},goog.string.parseInt=function(o){return isFinite(o)&&(o=String(o)),typeof o=="string"?/^\s*-?0x/i.test(o)?parseInt(o,16):parseInt(o,10):NaN},goog.string.splitLimit=function(o,s,_){o=o.split(s);for(var j=[];0<_&&o.length;)j.push(o.shift()),_--;return o.length&&j.push(o.join(s)),j},goog.string.lastComponent=function(o,s){if(!s)return o;typeof s=="string"&&(s=[s]);for(var _=-1,j=0;j_&&(_=$)}return _==-1?o:o.slice(_+1)},goog.string.editDistance=function(o,s){var _=[],j=[];if(o==s)return 0;if(!o.length||!s.length)return Math.max(o.length,s.length);for(var $=0;$parseFloat(o)?String(s):o},goog.userAgent.getVersionRegexResult_=function(){var o=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(o):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(o):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(o):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(o):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(o):void 0},goog.userAgent.getDocumentMode_=function(){var o=goog.global.document;return o?o.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(o,s){return goog.string.compareVersions(o,s)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(o){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,o,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,o)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(o){return Number(goog.userAgent.DOCUMENT_MODE)>=o},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE){var o=goog.userAgent.getDocumentMode_();return o||parseInt(goog.userAgent.VERSION,10)||void 0}}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(o){return goog.string.contains(goog.crypt.base64.paddingChars_,o)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(o,s){goog.asserts.assert(goog.isArrayLike(o),"encodeByteArray takes an array as a parameter"),s===void 0&&(s=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),s=goog.crypt.base64.byteToCharMaps_[s];for(var _=[],j=0;j>2;$=(3&$)<<4|et>>4,et=(15&et)<<2|nt>>6,nt&=63,tt||(nt=64,_e||(et=64)),_.push(s[rt],s[$],s[et]||"",s[nt]||"")}return _.join("")},goog.crypt.base64.encodeString=function(o,s){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!s?goog.global.btoa(o):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(o),s)},goog.crypt.base64.decodeString=function(o,s){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!s)return goog.global.atob(o);var _="";return goog.crypt.base64.decodeStringInternal_(o,function(j){_+=String.fromCharCode(j)}),_},goog.crypt.base64.decodeStringToByteArray=function(o,s){var _=[];return goog.crypt.base64.decodeStringInternal_(o,function(j){_.push(j)}),_},goog.crypt.base64.decodeStringToUint8Array=function(o){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var s=o.length,_=3*s/4;_%3?_=Math.floor(_):goog.crypt.base64.isPadding_(o[s-1])&&(_=goog.crypt.base64.isPadding_(o[s-2])?_-2:_-1);var j=new Uint8Array(_),$=0;return goog.crypt.base64.decodeStringInternal_(o,function(_e){j[$++]=_e}),j.subarray(0,$)},goog.crypt.base64.decodeStringInternal_=function(o,s){function _(nt){for(;j>4),et!=64&&(s(_e<<4&240|et>>2),tt!=64&&s(et<<6&192|tt))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var o=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),s=["+/=","+/","-_=","-_.","-_"],_=0;5>_;_++){var j=o.concat(s[_].split(""));goog.crypt.base64.byteToCharMaps_[_]=j;for(var $=0;$>>0;o=Math.floor((o-s)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=s,jspb.utils.split64High=o},jspb.utils.splitInt64=function(o){var s=0>o,_=(o=Math.abs(o))>>>0;o=Math.floor((o-_)/jspb.BinaryConstants.TWO_TO_32),o>>>=0,s&&(o=~o>>>0,4294967295<(_=1+(~_>>>0))&&(_=0,4294967295<++o&&(o=0))),jspb.utils.split64Low=_,jspb.utils.split64High=o},jspb.utils.splitZigzag64=function(o){var s=0>o;o=2*Math.abs(o),jspb.utils.splitUint64(o),o=jspb.utils.split64Low;var _=jspb.utils.split64High;s&&(o==0?_==0?_=o=4294967295:(_--,o=4294967295):o--),jspb.utils.split64Low=o,jspb.utils.split64High=_},jspb.utils.splitFloat32=function(o){var s=0>o?1:0;if((o=s?-o:o)===0)0<1/o?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(o))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(o>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(s<<31|2139095040)>>>0;else if(o>>0;else{var _=Math.floor(Math.log(o)/Math.LN2);o*=Math.pow(2,-_),16777216<=(o=Math.round(o*jspb.BinaryConstants.TWO_TO_23))&&++_,jspb.utils.split64High=0,jspb.utils.split64Low=(s<<31|_+127<<23|8388607&o)>>>0}},jspb.utils.splitFloat64=function(o){var s=0>o?1:0;if((o=s?-o:o)===0)jspb.utils.split64High=0<1/o?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(o))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(o>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(s<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(o>>0,jspb.utils.split64Low=_>>>0}else{var j=0;if(2<=(_=o))for(;2<=_&&1023>j;)j++,_/=2;else for(;1>_&&-1022>>0,jspb.utils.split64High=(s<<31|j+1023<<20|o)>>>0,jspb.utils.split64Low=_}},jspb.utils.splitHash64=function(o){var s=o.charCodeAt(0),_=o.charCodeAt(1),j=o.charCodeAt(2),$=o.charCodeAt(3),_e=o.charCodeAt(4),et=o.charCodeAt(5),tt=o.charCodeAt(6);o=o.charCodeAt(7),jspb.utils.split64Low=s+(_<<8)+(j<<16)+($<<24)>>>0,jspb.utils.split64High=_e+(et<<8)+(tt<<16)+(o<<24)>>>0},jspb.utils.joinUint64=function(o,s){return s*jspb.BinaryConstants.TWO_TO_32+(o>>>0)},jspb.utils.joinInt64=function(o,s){var _=2147483648&s;return _&&(s=~s>>>0,(o=1+~o>>>0)==0&&(s=s+1>>>0)),o=jspb.utils.joinUint64(o,s),_?-o:o},jspb.utils.toZigzag64=function(o,s,_){var j=s>>31;return _(o<<1^j,(s<<1|o>>>31)^j)},jspb.utils.joinZigzag64=function(o,s){return jspb.utils.fromZigzag64(o,s,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(o,s,_){var j=-(1&o);return _((o>>>1|s<<31)^j,s>>>1^j)},jspb.utils.joinFloat32=function(o,s){s=2*(o>>31)+1;var _=o>>>23&255;return o&=8388607,_==255?o?NaN:1/0*s:_==0?s*Math.pow(2,-149)*o:s*Math.pow(2,_-150)*(o+Math.pow(2,23))},jspb.utils.joinFloat64=function(o,s){var _=2*(s>>31)+1,j=s>>>20&2047;return o=jspb.BinaryConstants.TWO_TO_32*(1048575&s)+o,j==2047?o?NaN:1/0*_:j==0?_*Math.pow(2,-1074)*o:_*Math.pow(2,j-1075)*(o+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(o,s){return String.fromCharCode(o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255,s>>>0&255,s>>>8&255,s>>>16&255,s>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(o,s){function _($,_e){return $=$?String($):"",_e?"0000000".slice($.length)+$:$}if(2097151>=s)return""+jspb.utils.joinUint64(o,s);var j=(o>>>24|s<<8)>>>0&16777215;return o=(16777215&o)+6777216*j+6710656*(s=s>>16&65535),j+=8147497*s,s*=2,1e7<=o&&(j+=Math.floor(o/1e7),o%=1e7),1e7<=j&&(s+=Math.floor(j/1e7),j%=1e7),_(s,0)+_(j,s)+_(o,1)},jspb.utils.joinSignedDecimalString=function(o,s){var _=2147483648&s;return _&&(s=~s+((o=1+~o>>>0)==0?1:0)>>>0),o=jspb.utils.joinUnsignedDecimalString(o,s),_?"-"+o:o},jspb.utils.hash64ToDecimalString=function(o,s){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var _=jspb.utils.split64High;return s?jspb.utils.joinSignedDecimalString(o,_):jspb.utils.joinUnsignedDecimalString(o,_)},jspb.utils.hash64ArrayToDecimalStrings=function(o,s){for(var _=Array(o.length),j=0;jtt&&(_e!==1||0>>=8}jspb.asserts.assert(0_e;_e++)j[_e]=255&~j[_e]}(),s(1,1)),goog.crypt.byteArrayToString(j)},jspb.utils.splitDecimalString=function(o){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o))},jspb.utils.toHexDigit_=function(o){return String.fromCharCode(10>o?jspb.utils.ZERO_CHAR_CODE_+o:jspb.utils.A_CHAR_CODE_-10+o)},jspb.utils.fromHexCharCode_=function(o){return o>=jspb.utils.A_CHAR_CODE_?o-jspb.utils.A_CHAR_CODE_+10:o-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(o){var s=Array(18);s[0]="0",s[1]="x";for(var _=0;8>_;_++){var j=o.charCodeAt(7-_);s[2*_+2]=jspb.utils.toHexDigit_(j>>4),s[2*_+3]=jspb.utils.toHexDigit_(15&j)}return s.join("")},jspb.utils.hexStringToHash64=function(o){o=o.toLowerCase(),jspb.asserts.assert(o.length==18),jspb.asserts.assert(o[0]=="0"),jspb.asserts.assert(o[1]=="x");for(var s="",_=0;8>_;_++){var j=jspb.utils.fromHexCharCode_(o.charCodeAt(2*_+2)),$=jspb.utils.fromHexCharCode_(o.charCodeAt(2*_+3));s=String.fromCharCode(16*j+$)+s}return s},jspb.utils.hash64ToNumber=function(o,s){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var _=jspb.utils.split64High;return s?jspb.utils.joinInt64(o,_):jspb.utils.joinUint64(o,_)},jspb.utils.numberToHash64=function(o){return jspb.utils.splitInt64(o),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(o,s,_){for(var j=0,$=s;$<_;$++)j+=o[$]>>7;return _-s-j},jspb.utils.countVarintFields=function(o,s,_,j){var $=0;if(128>(j=8*j+jspb.BinaryConstants.WireType.VARINT))for(;s<_&&o[s++]==j;)for($++;;){var _e=o[s++];if(!(128&_e))break}else for(;s<_;){for(_e=j;128<_e;){if(o[s]!=(127&_e|128))return $;s++,_e>>=7}if(o[s++]!=_e)break;for($++;128&(_e=o[s++]););}return $},jspb.utils.countFixedFields_=function(o,s,_,j,$){var _e=0;if(128>j)for(;s<_&&o[s++]==j;)_e++,s+=$;else for(;s<_;){for(var et=j;128>=7}if(o[s++]!=et)break;_e++,s+=$}return _e},jspb.utils.countFixed32Fields=function(o,s,_,j){return jspb.utils.countFixedFields_(o,s,_,8*j+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(o,s,_,j){return jspb.utils.countFixedFields_(o,s,_,8*j+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(o,s,_,j){var $=0;for(j=8*j+jspb.BinaryConstants.WireType.DELIMITED;s<_;){for(var _e=j;128<_e;){if(o[s++]!=(127&_e|128))return $;_e>>=7}if(o[s++]!=_e)break;$++;for(var et=0,tt=1;et+=(127&(_e=o[s++]))*tt,tt*=128,(128&_e)!=0;);s+=et}return $},jspb.utils.debugBytesToTextFormat=function(o){var s='"';if(o){o=jspb.utils.byteSourceToUint8Array(o);for(var _=0;_o[_]&&(s+="0"),s+=o[_].toString(16)}return s+'"'},jspb.utils.debugScalarToTextFormat=function(o){return typeof o=="string"?goog.string.quote(o):o.toString()},jspb.utils.stringToByteArray=function(o){for(var s=new Uint8Array(o.length),_=0;_jspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(o,s,_){this.bytes_=jspb.utils.byteSourceToUint8Array(o),this.start_=s!==void 0?s:0,this.end_=_!==void 0?this.start_+_:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(o){this.end_=o},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(o){this.cursor_=o},jspb.BinaryDecoder.prototype.advance=function(o){this.cursor_+=o,jspb.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(o){for(var s=128,_=0,j=0,$=0;4>$&&128<=s;$++)_|=(127&(s=this.bytes_[this.cursor_++]))<<7*$;if(128<=s&&(_|=(127&(s=this.bytes_[this.cursor_++]))<<28,j|=(127&s)>>4),128<=s)for($=0;5>$&&128<=s;$++)j|=(127&(s=this.bytes_[this.cursor_++]))<<7*$+3;if(128>s)return o(_>>>0,j>>>0);jspb.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(o){return this.readSplitVarint64(function(s,_){return jspb.utils.fromZigzag64(s,_,o)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(o){var s=this.bytes_,_=this.cursor_;this.cursor_+=8;for(var j=0,$=0,_e=_+7;_e>=_;_e--)j=j<<8|s[_e],$=$<<8|s[_e+4];return o(j,$)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(o){for(;128>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var o=this.bytes_,s=o[this.cursor_+0],_=127&s;return 128>s?(this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),_):(_|=(127&(s=o[this.cursor_+1]))<<7,128>s?(this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),_):(_|=(127&(s=o[this.cursor_+2]))<<14,128>s?(this.cursor_+=3,jspb.asserts.assert(this.cursor_<=this.end_),_):(_|=(127&(s=o[this.cursor_+3]))<<21,128>s?(this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),_):(_|=(15&(s=o[this.cursor_+4]))<<28,128>s?(this.cursor_+=5,jspb.asserts.assert(this.cursor_<=this.end_),_>>>0):(this.cursor_+=5,128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&jspb.asserts.assert(!1),jspb.asserts.assert(this.cursor_<=this.end_),_)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=function(){return~~this.readUnsignedVarint32()},jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var o=this.readUnsignedVarint32();return o>>>1^-(1&o)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o},jspb.BinaryDecoder.prototype.readUint16=function(){var o=this.bytes_[this.cursor_+0],s=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|s<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var o=this.bytes_[this.cursor_+0],s=this.bytes_[this.cursor_+1],_=this.bytes_[this.cursor_+2],j=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|s<<8|_<<16|j<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var o=this.readUint32(),s=this.readUint32();return jspb.utils.joinUint64(o,s)},jspb.BinaryDecoder.prototype.readUint64String=function(){var o=this.readUint32(),s=this.readUint32();return jspb.utils.joinUnsignedDecimalString(o,s)},jspb.BinaryDecoder.prototype.readInt8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var o=this.bytes_[this.cursor_+0],s=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|s<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var o=this.bytes_[this.cursor_+0],s=this.bytes_[this.cursor_+1],_=this.bytes_[this.cursor_+2],j=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|s<<8|_<<16|j<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var o=this.readUint32(),s=this.readUint32();return jspb.utils.joinInt64(o,s)},jspb.BinaryDecoder.prototype.readInt64String=function(){var o=this.readUint32(),s=this.readUint32();return jspb.utils.joinSignedDecimalString(o,s)},jspb.BinaryDecoder.prototype.readFloat=function(){var o=this.readUint32();return jspb.utils.joinFloat32(o,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var o=this.readUint32(),s=this.readUint32();return jspb.utils.joinFloat64(o,s)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(o){var s=this.bytes_,_=this.cursor_;o=_+o;for(var j=[],$="";__e)j.push(_e);else{if(192>_e)continue;if(224>_e){var et=s[_++];j.push((31&_e)<<6|63&et)}else if(240>_e){et=s[_++];var tt=s[_++];j.push((15&_e)<<12|(63&et)<<6|63&tt)}else 248>_e&&(_e=(7&_e)<<18|(63&(et=s[_++]))<<12|(63&(tt=s[_++]))<<6|63&s[_++],_e-=65536,j.push(55296+(_e>>10&1023),56320+(1023&_e)))}8192<=j.length&&($+=String.fromCharCode.apply(null,j),j.length=0)}return $+=goog.crypt.byteArrayToString(j),this.cursor_=_,$},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var o=this.readUnsignedVarint32();return this.readString(o)},jspb.BinaryDecoder.prototype.readBytes=function(o){if(0>o||this.cursor_+o>this.bytes_.length)return this.error_=!0,jspb.asserts.fail("Invalid byte length!"),new Uint8Array(0);var s=this.bytes_.subarray(this.cursor_,this.cursor_+o);return this.cursor_+=o,jspb.asserts.assert(this.cursor_<=this.end_),s},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var o=this.bytes_,s=this.cursor_,_=o[s+0],j=o[s+1],$=o[s+2],_e=o[s+3],et=o[s+4],tt=o[s+5],nt=o[s+6];return o=o[s+7],this.cursor_+=8,String.fromCharCode(_,j,$,_e,et,tt,nt,o)},jspb.BinaryReader=function(o,s,_){this.decoder_=jspb.BinaryDecoder.alloc(o,s,_),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(o,s,_){if(jspb.BinaryReader.instanceCache_.length){var j=jspb.BinaryReader.instanceCache_.pop();return o&&j.decoder_.setBlock(o,s,_),j}return new jspb.BinaryReader(o,s,_)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},goog.exportProperty(jspb.BinaryReader.prototype,"getFieldNumber",jspb.BinaryReader.prototype.getFieldNumber),jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},goog.exportProperty(jspb.BinaryReader.prototype,"isDelimited",jspb.BinaryReader.prototype.isDelimited),jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},goog.exportProperty(jspb.BinaryReader.prototype,"isEndGroup",jspb.BinaryReader.prototype.isEndGroup),jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(o,s,_){this.decoder_.setBlock(o,s,_),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(o){this.decoder_.advance(o)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return jspb.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var o=this.decoder_.readUnsignedVarint32(),s=o>>>3;return(o&=7)!=jspb.BinaryConstants.WireType.VARINT&&o!=jspb.BinaryConstants.WireType.FIXED32&&o!=jspb.BinaryConstants.WireType.FIXED64&&o!=jspb.BinaryConstants.WireType.DELIMITED&&o!=jspb.BinaryConstants.WireType.START_GROUP&&o!=jspb.BinaryConstants.WireType.END_GROUP?(jspb.asserts.fail("Invalid wire type: %s (at position %s)",o,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=s,this.nextWireType_=o,!0)},goog.exportProperty(jspb.BinaryReader.prototype,"nextField",jspb.BinaryReader.prototype.nextField),jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var o=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==o;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(jspb.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)jspb.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var o=this.decoder_.readUnsignedVarint32();this.decoder_.advance(o)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(jspb.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(jspb.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){for(var o=this.nextField_;;){if(!this.nextField()){jspb.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=o&&(jspb.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:jspb.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(o,s){this.readCallbacks_===null&&(this.readCallbacks_={}),jspb.asserts.assert(!this.readCallbacks_[o]),this.readCallbacks_[o]=s},jspb.BinaryReader.prototype.runReadCallback=function(o){return jspb.asserts.assert(this.readCallbacks_!==null),o=this.readCallbacks_[o],jspb.asserts.assert(o),o(this)},jspb.BinaryReader.prototype.readAny=function(o){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(o);var s=jspb.BinaryConstants.FieldType;switch(o){case s.DOUBLE:return this.readDouble();case s.FLOAT:return this.readFloat();case s.INT64:return this.readInt64();case s.UINT64:return this.readUint64();case s.INT32:return this.readInt32();case s.FIXED64:return this.readFixed64();case s.FIXED32:return this.readFixed32();case s.BOOL:return this.readBool();case s.STRING:return this.readString();case s.GROUP:jspb.asserts.fail("Group field type not supported in readAny()");case s.MESSAGE:jspb.asserts.fail("Message field type not supported in readAny()");case s.BYTES:return this.readBytes();case s.UINT32:return this.readUint32();case s.ENUM:return this.readEnum();case s.SFIXED32:return this.readSfixed32();case s.SFIXED64:return this.readSfixed64();case s.SINT32:return this.readSint32();case s.SINT64:return this.readSint64();case s.FHASH64:return this.readFixedHash64();case s.VHASH64:return this.readVarintHash64();default:jspb.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(o,s){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var _=this.decoder_.getEnd(),j=this.decoder_.readUnsignedVarint32();j=this.decoder_.getCursor()+j,this.decoder_.setEnd(j),s(o,this),this.decoder_.setCursor(j),this.decoder_.setEnd(_)},goog.exportProperty(jspb.BinaryReader.prototype,"readMessage",jspb.BinaryReader.prototype.readMessage),jspb.BinaryReader.prototype.readGroup=function(o,s,_){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),jspb.asserts.assert(this.nextField_==o),_(s,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(jspb.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},goog.exportProperty(jspb.BinaryReader.prototype,"readGroup",jspb.BinaryReader.prototype.readGroup),jspb.BinaryReader.prototype.getFieldDecoder=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32(),s=this.decoder_.getCursor(),_=s+o;return o=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),s,o),this.decoder_.setCursor(_),o},jspb.BinaryReader.prototype.readInt32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt32",jspb.BinaryReader.prototype.readInt32),jspb.BinaryReader.prototype.readInt32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt64",jspb.BinaryReader.prototype.readInt64),jspb.BinaryReader.prototype.readInt64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint32",jspb.BinaryReader.prototype.readUint32),jspb.BinaryReader.prototype.readUint32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint64",jspb.BinaryReader.prototype.readUint64),jspb.BinaryReader.prototype.readUint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint32",jspb.BinaryReader.prototype.readSint32),jspb.BinaryReader.prototype.readSint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint64",jspb.BinaryReader.prototype.readSint64),jspb.BinaryReader.prototype.readSint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed32",jspb.BinaryReader.prototype.readFixed32),jspb.BinaryReader.prototype.readFixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed64",jspb.BinaryReader.prototype.readFixed64),jspb.BinaryReader.prototype.readFixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed32",jspb.BinaryReader.prototype.readSfixed32),jspb.BinaryReader.prototype.readSfixed32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed64",jspb.BinaryReader.prototype.readSfixed64),jspb.BinaryReader.prototype.readSfixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},goog.exportProperty(jspb.BinaryReader.prototype,"readFloat",jspb.BinaryReader.prototype.readFloat),jspb.BinaryReader.prototype.readDouble=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},goog.exportProperty(jspb.BinaryReader.prototype,"readDouble",jspb.BinaryReader.prototype.readDouble),jspb.BinaryReader.prototype.readBool=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readBool",jspb.BinaryReader.prototype.readBool),jspb.BinaryReader.prototype.readEnum=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readEnum",jspb.BinaryReader.prototype.readEnum),jspb.BinaryReader.prototype.readString=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readString",jspb.BinaryReader.prototype.readString),jspb.BinaryReader.prototype.readBytes=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readBytes",jspb.BinaryReader.prototype.readBytes),jspb.BinaryReader.prototype.readVarintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(o)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(s,_){return jspb.utils.fromZigzag64(s,_,o)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(o)},jspb.BinaryReader.prototype.readPackedField_=function(o){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var s=this.decoder_.readUnsignedVarint32();s=this.decoder_.getCursor()+s;for(var _=[];this.decoder_.getCursor()>>7|s<<25)>>>0,s>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(o,s){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(s==Math.floor(s)),jspb.asserts.assert(0<=o&&o>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(o){if(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&os;s++)this.buffer_.push(127&o|128),o>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o=-jspb.BinaryConstants.TWO_TO_63&&o=-jspb.BinaryConstants.TWO_TO_31&&o>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o>>0,j>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&256>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&65536>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&oo),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(-32768<=o&&32768>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o=-jspb.BinaryConstants.TWO_TO_63&&+o=-jspb.BinaryConstants.FLOAT32_MAX&&o<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(o),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(o){jspb.asserts.assert(o===1/0||o===-1/0||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT64_MAX&&o<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(o){jspb.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.buffer_.push(o?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&oj)this.buffer_.push(j);else if(2048>j)this.buffer_.push(j>>6|192),this.buffer_.push(63&j|128);else if(65536>j)if(55296<=j&&56319>=j&&_+1=$&&(j=1024*(j-55296)+$-56320+65536,this.buffer_.push(j>>18|240),this.buffer_.push(j>>12&63|128),this.buffer_.push(j>>6&63|128),this.buffer_.push(63&j|128),_++)}else this.buffer_.push(j>>12|224),this.buffer_.push(j>>6&63|128),this.buffer_.push(63&j|128)}return this.buffer_.length-s},jspb.arith={},jspb.arith.UInt64=function(o,s){this.lo=o,this.hi=s},jspb.arith.UInt64.prototype.cmp=function(o){return this.hi>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(o){return new jspb.arith.UInt64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(o){return new jspb.arith.UInt64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(o,s){var _=65535&o,j=65535&s,$=s>>>16;for(s=_*j+65536*(_*$&65535)+65536*((o>>>=16)*j&65535),_=o*$+(_*$>>>16)+(o*j>>>16);4294967296<=s;)s-=4294967296,_+=1;return new jspb.arith.UInt64(s>>>0,_>>>0)},jspb.arith.UInt64.prototype.mul=function(o){var s=jspb.arith.UInt64.mul32x32(this.lo,o);return(o=jspb.arith.UInt64.mul32x32(this.hi,o)).hi=o.lo,o.lo=0,s.add(o)},jspb.arith.UInt64.prototype.div=function(o){if(o==0)return[];var s=new jspb.arith.UInt64(0,0),_=new jspb.arith.UInt64(this.lo,this.hi);o=new jspb.arith.UInt64(o,0);for(var j=new jspb.arith.UInt64(1,0);!o.msb();)o=o.leftShift(),j=j.leftShift();for(;!j.zero();)0>=o.cmp(_)&&(s=s.add(j),_=_.sub(o)),o=o.rightShift(),j=j.rightShift();return[s,_]},jspb.arith.UInt64.prototype.toString=function(){for(var o="",s=this;!s.zero();){var _=(s=s.div(10))[0];o=s[1].lo+o,s=_}return o==""&&(o="0"),o},jspb.arith.UInt64.fromString=function(o){for(var s=new jspb.arith.UInt64(0,0),_=new jspb.arith.UInt64(0,0),j=0;jo[j]||"9">>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(o){return new jspb.arith.Int64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var o=(2147483648&this.hi)!=0,s=new jspb.arith.UInt64(this.lo,this.hi);return o&&(s=new jspb.arith.UInt64(0,0).sub(s)),(o?"-":"")+s.toString()},jspb.arith.Int64.fromString=function(o){var s=0>>=7,this.totalLength_++;o.push(s),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(o,s,_){this.appendUint8Array_(o.subarray(s,_))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(o,s,_){o!=null&&s!=null&&_!=null&&this.writeSerializedMessage(o,s,_)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){jspb.asserts.assert(this.bookmarks_.length==0);for(var o=new Uint8Array(this.totalLength_+this.encoder_.length()),s=this.blocks_,_=s.length,j=0,$=0;$<_;$++){var _e=s[$];o.set(_e,j),j+=_e.length}return s=this.encoder_.end(),o.set(s,j),j+=s.length,jspb.asserts.assert(j==o.length),this.blocks_=[o],o},goog.exportProperty(jspb.BinaryWriter.prototype,"getResultBuffer",jspb.BinaryWriter.prototype.getResultBuffer),jspb.BinaryWriter.prototype.getResultBase64String=function(o){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),o)},jspb.BinaryWriter.prototype.beginSubMessage=function(o){this.bookmarks_.push(this.beginDelimited_(o))},jspb.BinaryWriter.prototype.endSubMessage=function(){jspb.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(o,s){jspb.asserts.assert(1<=o&&o==Math.floor(o)),this.encoder_.writeUnsignedVarint32(8*o+s)},jspb.BinaryWriter.prototype.writeAny=function(o,s,_){var j=jspb.BinaryConstants.FieldType;switch(o){case j.DOUBLE:this.writeDouble(s,_);break;case j.FLOAT:this.writeFloat(s,_);break;case j.INT64:this.writeInt64(s,_);break;case j.UINT64:this.writeUint64(s,_);break;case j.INT32:this.writeInt32(s,_);break;case j.FIXED64:this.writeFixed64(s,_);break;case j.FIXED32:this.writeFixed32(s,_);break;case j.BOOL:this.writeBool(s,_);break;case j.STRING:this.writeString(s,_);break;case j.GROUP:jspb.asserts.fail("Group field type not supported in writeAny()");break;case j.MESSAGE:jspb.asserts.fail("Message field type not supported in writeAny()");break;case j.BYTES:this.writeBytes(s,_);break;case j.UINT32:this.writeUint32(s,_);break;case j.ENUM:this.writeEnum(s,_);break;case j.SFIXED32:this.writeSfixed32(s,_);break;case j.SFIXED64:this.writeSfixed64(s,_);break;case j.SINT32:this.writeSint32(s,_);break;case j.SINT64:this.writeSint64(s,_);break;case j.FHASH64:this.writeFixedHash64(s,_);break;case j.VHASH64:this.writeVarintHash64(s,_);break;default:jspb.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(s))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(s))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(s))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(s))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(s))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(s))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(s))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(s))},jspb.BinaryWriter.prototype.writeInt32=function(o,s){s!=null&&(jspb.asserts.assert(s>=-jspb.BinaryConstants.TWO_TO_31&&s=-jspb.BinaryConstants.TWO_TO_31&&s=-jspb.BinaryConstants.TWO_TO_63&&s=-jspb.BinaryConstants.TWO_TO_31&&s=-jspb.BinaryConstants.TWO_TO_63&&s=-jspb.BinaryConstants.TWO_TO_31&&s=-jspb.BinaryConstants.TWO_TO_63&&s=-jspb.BinaryConstants.TWO_TO_31&&s>>0,_e>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(o,s){if(s!=null)for(var _=0;_>>0,tt>>>0)});this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(o,s){if(s!=null&&s.length){o=this.beginDelimited_(o);for(var _=0;_s.length?_.length:s.length;for(o.getJsPbMessageId()&&(j[0]=o.getJsPbMessageId(),$=1);$<_e;$++)jspb.Message.compareFields(_[$],s[$])||(j[$]=s[$]);return new o.constructor(j)},goog.exportProperty(jspb.Message,"difference",jspb.Message.difference),jspb.Message.equals=function(o,s){return o==s||!(!o||!s)&&o instanceof s.constructor&&jspb.Message.compareFields(o.toArray(),s.toArray())},goog.exportProperty(jspb.Message,"equals",jspb.Message.equals),jspb.Message.compareExtensions=function(o,s){o=o||{},s=s||{};var _,j={};for(_ in o)j[_]=0;for(_ in s)j[_]=0;for(_ in j)if(!jspb.Message.compareFields(o[_],s[_]))return!1;return!0},goog.exportProperty(jspb.Message,"compareExtensions",jspb.Message.compareExtensions),jspb.Message.compareFields=function(o,s){if(o==s)return!0;if(!goog.isObject(o)||!goog.isObject(s))return!!(typeof o=="number"&&isNaN(o)||typeof s=="number"&&isNaN(s))&&String(o)==String(s);if(o.constructor!=s.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o.constructor===Uint8Array){if(o.length!=s.length)return!1;for(var _=0;_{var j=_(7186),$=j,_e=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||_e!==void 0&&_e||typeof self<"u"&&self||function(){return this}.call(null)||Function("return this")();$.exportSymbol("proto.google.protobuf.BoolValue",null,_e),$.exportSymbol("proto.google.protobuf.BytesValue",null,_e),$.exportSymbol("proto.google.protobuf.DoubleValue",null,_e),$.exportSymbol("proto.google.protobuf.FloatValue",null,_e),$.exportSymbol("proto.google.protobuf.Int32Value",null,_e),$.exportSymbol("proto.google.protobuf.Int64Value",null,_e),$.exportSymbol("proto.google.protobuf.StringValue",null,_e),$.exportSymbol("proto.google.protobuf.UInt32Value",null,_e),$.exportSymbol("proto.google.protobuf.UInt64Value",null,_e),proto.google.protobuf.DoubleValue=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.DoubleValue,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.DoubleValue.displayName="proto.google.protobuf.DoubleValue"),proto.google.protobuf.FloatValue=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.FloatValue,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.FloatValue.displayName="proto.google.protobuf.FloatValue"),proto.google.protobuf.Int64Value=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.Int64Value,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.Int64Value.displayName="proto.google.protobuf.Int64Value"),proto.google.protobuf.UInt64Value=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.UInt64Value,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.UInt64Value.displayName="proto.google.protobuf.UInt64Value"),proto.google.protobuf.Int32Value=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.Int32Value,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.Int32Value.displayName="proto.google.protobuf.Int32Value"),proto.google.protobuf.UInt32Value=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.UInt32Value,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.UInt32Value.displayName="proto.google.protobuf.UInt32Value"),proto.google.protobuf.BoolValue=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.BoolValue,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.BoolValue.displayName="proto.google.protobuf.BoolValue"),proto.google.protobuf.StringValue=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.StringValue,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.StringValue.displayName="proto.google.protobuf.StringValue"),proto.google.protobuf.BytesValue=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.BytesValue,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.BytesValue.displayName="proto.google.protobuf.BytesValue"),j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DoubleValue.prototype.toObject=function(et){return proto.google.protobuf.DoubleValue.toObject(et,this)},proto.google.protobuf.DoubleValue.toObject=function(et,tt){var nt={value:j.Message.getFloatingPointFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.DoubleValue.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.DoubleValue;return proto.google.protobuf.DoubleValue.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.DoubleValue.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readDouble();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.DoubleValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.DoubleValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.DoubleValue.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeDouble(1,nt)},proto.google.protobuf.DoubleValue.prototype.getValue=function(){return j.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.DoubleValue.prototype.setValue=function(et){return j.Message.setProto3FloatField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FloatValue.prototype.toObject=function(et){return proto.google.protobuf.FloatValue.toObject(et,this)},proto.google.protobuf.FloatValue.toObject=function(et,tt){var nt={value:j.Message.getFloatingPointFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.FloatValue.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.FloatValue;return proto.google.protobuf.FloatValue.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.FloatValue.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readFloat();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.FloatValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.FloatValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.FloatValue.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeFloat(1,nt)},proto.google.protobuf.FloatValue.prototype.getValue=function(){return j.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.FloatValue.prototype.setValue=function(et){return j.Message.setProto3FloatField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int64Value.prototype.toObject=function(et){return proto.google.protobuf.Int64Value.toObject(et,this)},proto.google.protobuf.Int64Value.toObject=function(et,tt){var nt={value:j.Message.getFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.Int64Value.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.Int64Value;return proto.google.protobuf.Int64Value.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.Int64Value.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readInt64();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.Int64Value.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.Int64Value.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.Int64Value.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeInt64(1,nt)},proto.google.protobuf.Int64Value.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int64Value.prototype.setValue=function(et){return j.Message.setProto3IntField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt64Value.prototype.toObject=function(et){return proto.google.protobuf.UInt64Value.toObject(et,this)},proto.google.protobuf.UInt64Value.toObject=function(et,tt){var nt={value:j.Message.getFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.UInt64Value.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.UInt64Value;return proto.google.protobuf.UInt64Value.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.UInt64Value.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readUint64();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.UInt64Value.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.UInt64Value.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.UInt64Value.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeUint64(1,nt)},proto.google.protobuf.UInt64Value.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt64Value.prototype.setValue=function(et){return j.Message.setProto3IntField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int32Value.prototype.toObject=function(et){return proto.google.protobuf.Int32Value.toObject(et,this)},proto.google.protobuf.Int32Value.toObject=function(et,tt){var nt={value:j.Message.getFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.Int32Value.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.Int32Value;return proto.google.protobuf.Int32Value.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.Int32Value.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readInt32();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.Int32Value.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.Int32Value.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.Int32Value.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeInt32(1,nt)},proto.google.protobuf.Int32Value.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int32Value.prototype.setValue=function(et){return j.Message.setProto3IntField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt32Value.prototype.toObject=function(et){return proto.google.protobuf.UInt32Value.toObject(et,this)},proto.google.protobuf.UInt32Value.toObject=function(et,tt){var nt={value:j.Message.getFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.UInt32Value.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.UInt32Value;return proto.google.protobuf.UInt32Value.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.UInt32Value.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readUint32();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.UInt32Value.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.UInt32Value.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.UInt32Value.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeUint32(1,nt)},proto.google.protobuf.UInt32Value.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt32Value.prototype.setValue=function(et){return j.Message.setProto3IntField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BoolValue.prototype.toObject=function(et){return proto.google.protobuf.BoolValue.toObject(et,this)},proto.google.protobuf.BoolValue.toObject=function(et,tt){var nt={value:j.Message.getBooleanFieldWithDefault(tt,1,!1)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.BoolValue.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.BoolValue;return proto.google.protobuf.BoolValue.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.BoolValue.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readBool();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.BoolValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.BoolValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.BoolValue.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())&&tt.writeBool(1,nt)},proto.google.protobuf.BoolValue.prototype.getValue=function(){return j.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.BoolValue.prototype.setValue=function(et){return j.Message.setProto3BooleanField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.StringValue.prototype.toObject=function(et){return proto.google.protobuf.StringValue.toObject(et,this)},proto.google.protobuf.StringValue.toObject=function(et,tt){var nt={value:j.Message.getFieldWithDefault(tt,1,"")};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.StringValue.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.StringValue;return proto.google.protobuf.StringValue.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.StringValue.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readString();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.StringValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.StringValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.StringValue.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue()).length>0&&tt.writeString(1,nt)},proto.google.protobuf.StringValue.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.StringValue.prototype.setValue=function(et){return j.Message.setProto3StringField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BytesValue.prototype.toObject=function(et){return proto.google.protobuf.BytesValue.toObject(et,this)},proto.google.protobuf.BytesValue.toObject=function(et,tt){var nt={value:tt.getValue_asB64()};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.BytesValue.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.BytesValue;return proto.google.protobuf.BytesValue.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.BytesValue.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readBytes();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.BytesValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.BytesValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.BytesValue.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue_asU8()).length>0&&tt.writeBytes(1,nt)},proto.google.protobuf.BytesValue.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.BytesValue.prototype.getValue_asB64=function(){return j.Message.bytesAsB64(this.getValue())},proto.google.protobuf.BytesValue.prototype.getValue_asU8=function(){return j.Message.bytesAsU8(this.getValue())},proto.google.protobuf.BytesValue.prototype.setValue=function(et){return j.Message.setProto3BytesField(this,1,et)},$.object.extend(s,proto.google.protobuf)},1292:o=>{o.exports=Object.getOwnPropertyDescriptor},9336:(o,s,_)=>{var j=_(1292);if(j)try{j([],"length")}catch{j=null}o.exports=j},5949:function(o,s,_){var j;function $(Wt){var Gt=0;return function(){return Gt(on=on||0)&&(on=Math.max(on+Jn,0));on",""":'"'},j=s?s.createElement("div"):goog.global.document.createElement("div");return o.replace(goog.string.HTML_ENTITY_PATTERN_,function($,_e){var et=_[$];return et||(_e.charAt(0)=="#"&&(_e=+("0"+_e.substr(1)),isNaN(_e)||(et=String.fromCharCode(_e))),et||(goog.dom.safe.setInnerHtml(j,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),$+" ")),et=j.firstChild.nodeValue.slice(0,-1)),_[$]=et)})},goog.string.unescapePureXmlEntities_=function(o){return o.replace(/&([^;]+);/g,function(s,_){switch(_){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return _.charAt(0)!="#"||(_=+("0"+_.substr(1)),isNaN(_))?s:String.fromCharCode(_)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(o,s){return goog.string.newLineToBr(o.replace(/ /g,"  "),s)},goog.string.preserveSpaces=function(o){return o.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(o,s){for(var _=s.length,j=0;j<_;j++){var $=_==1?s:s.charAt(j);if(o.charAt(0)==$&&o.charAt(o.length-1)==$)return o.substring(1,o.length-1)}return o},goog.string.truncate=function(o,s,_){return _&&(o=goog.string.unescapeEntities(o)),o.length>s&&(o=o.substring(0,s-3)+"..."),_&&(o=goog.string.htmlEscape(o)),o},goog.string.truncateMiddle=function(o,s,_,j){if(_&&(o=goog.string.unescapeEntities(o)),j&&o.length>s){j>s&&(j=s);var $=o.length-j;o=o.substring(0,s-j)+"..."+o.substring($)}else o.length>s&&(j=Math.floor(s/2),$=o.length-j,o=o.substring(0,j+s%2)+"..."+o.substring($));return _&&(o=goog.string.htmlEscape(o)),o},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(o){o=String(o);for(var s=['"'],_=0;_$?j:goog.string.escapeChar(j))}return s.push('"'),s.join("")},goog.string.escapeString=function(o){for(var s=[],_=0;_s)var _=o;else 256>s?(_="\\x",(16>s||256s&&(_+="0")),_+=s.toString(16).toUpperCase();return goog.string.jsEscapeCache_[o]=_},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(o,s){return o&&s?o.split(s).length-1:0},goog.string.removeAt=function(o,s,_){var j=o;return 0<=s&&s>>0;return s},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(o){var s=Number(o);return s==0&&goog.string.isEmptyOrWhitespace(o)?NaN:s},goog.string.isLowerCamelCase=function(o){return/^[a-z]+([A-Z][a-z]*)*$/.test(o)},goog.string.isUpperCamelCase=function(o){return/^([A-Z][a-z]*)+$/.test(o)},goog.string.toCamelCase=function(o){return String(o).replace(/\-([a-z])/g,function(s,_){return _.toUpperCase()})},goog.string.toSelectorCase=function(o){return String(o).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(o,s){return s=typeof s=="string"?goog.string.regExpEscape(s):"\\s",o.replace(new RegExp("(^"+(s?"|["+s+"]+":"")+")([a-z])","g"),function(_,j,$){return j+$.toUpperCase()})},goog.string.capitalize=function(o){return String(o.charAt(0)).toUpperCase()+String(o.substr(1)).toLowerCase()},goog.string.parseInt=function(o){return isFinite(o)&&(o=String(o)),typeof o=="string"?/^\s*-?0x/i.test(o)?parseInt(o,16):parseInt(o,10):NaN},goog.string.splitLimit=function(o,s,_){o=o.split(s);for(var j=[];0<_&&o.length;)j.push(o.shift()),_--;return o.length&&j.push(o.join(s)),j},goog.string.lastComponent=function(o,s){if(!s)return o;typeof s=="string"&&(s=[s]);for(var _=-1,j=0;j_&&(_=$)}return _==-1?o:o.slice(_+1)},goog.string.editDistance=function(o,s){var _=[],j=[];if(o==s)return 0;if(!o.length||!s.length)return Math.max(o.length,s.length);for(var $=0;$parseFloat(o)?String(s):o},goog.userAgent.getVersionRegexResult_=function(){var o=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(o):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(o):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(o):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(o):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(o):void 0},goog.userAgent.getDocumentMode_=function(){var o=goog.global.document;return o?o.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(o,s){return goog.string.compareVersions(o,s)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(o){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,o,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,o)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(o){return Number(goog.userAgent.DOCUMENT_MODE)>=o},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE){var o=goog.userAgent.getDocumentMode_();return o||parseInt(goog.userAgent.VERSION,10)||void 0}}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(o){return goog.string.contains(goog.crypt.base64.paddingChars_,o)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(o,s){goog.asserts.assert(goog.isArrayLike(o),"encodeByteArray takes an array as a parameter"),s===void 0&&(s=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),s=goog.crypt.base64.byteToCharMaps_[s];for(var _=[],j=0;j>2;$=(3&$)<<4|et>>4,et=(15&et)<<2|nt>>6,nt&=63,tt||(nt=64,_e||(et=64)),_.push(s[rt],s[$],s[et]||"",s[nt]||"")}return _.join("")},goog.crypt.base64.encodeString=function(o,s){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!s?goog.global.btoa(o):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(o),s)},goog.crypt.base64.decodeString=function(o,s){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!s)return goog.global.atob(o);var _="";return goog.crypt.base64.decodeStringInternal_(o,function(j){_+=String.fromCharCode(j)}),_},goog.crypt.base64.decodeStringToByteArray=function(o,s){var _=[];return goog.crypt.base64.decodeStringInternal_(o,function(j){_.push(j)}),_},goog.crypt.base64.decodeStringToUint8Array=function(o){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var s=o.length,_=3*s/4;_%3?_=Math.floor(_):goog.crypt.base64.isPadding_(o[s-1])&&(_=goog.crypt.base64.isPadding_(o[s-2])?_-2:_-1);var j=new Uint8Array(_),$=0;return goog.crypt.base64.decodeStringInternal_(o,function(_e){j[$++]=_e}),j.subarray(0,$)},goog.crypt.base64.decodeStringInternal_=function(o,s){function _(nt){for(;j>4),et!=64&&(s(_e<<4&240|et>>2),tt!=64&&s(et<<6&192|tt))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var o=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),s=["+/=","+/","-_=","-_.","-_"],_=0;5>_;_++){var j=o.concat(s[_].split(""));goog.crypt.base64.byteToCharMaps_[_]=j;for(var $=0;$>>0;o=Math.floor((o-s)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=s,jspb.utils.split64High=o},jspb.utils.splitInt64=function(o){var s=0>o,_=(o=Math.abs(o))>>>0;o=Math.floor((o-_)/jspb.BinaryConstants.TWO_TO_32),o>>>=0,s&&(o=~o>>>0,4294967295<(_=1+(~_>>>0))&&(_=0,4294967295<++o&&(o=0))),jspb.utils.split64Low=_,jspb.utils.split64High=o},jspb.utils.splitZigzag64=function(o){var s=0>o;o=2*Math.abs(o),jspb.utils.splitUint64(o),o=jspb.utils.split64Low;var _=jspb.utils.split64High;s&&(o==0?_==0?_=o=4294967295:(_--,o=4294967295):o--),jspb.utils.split64Low=o,jspb.utils.split64High=_},jspb.utils.splitFloat32=function(o){var s=0>o?1:0;if((o=s?-o:o)===0)0<1/o?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(o))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(o>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(s<<31|2139095040)>>>0;else if(o>>0;else{var _=Math.floor(Math.log(o)/Math.LN2);o*=Math.pow(2,-_),16777216<=(o=Math.round(o*jspb.BinaryConstants.TWO_TO_23))&&++_,jspb.utils.split64High=0,jspb.utils.split64Low=(s<<31|_+127<<23|8388607&o)>>>0}},jspb.utils.splitFloat64=function(o){var s=0>o?1:0;if((o=s?-o:o)===0)jspb.utils.split64High=0<1/o?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(o))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(o>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(s<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(o>>0,jspb.utils.split64Low=_>>>0}else{var j=0;if(2<=(_=o))for(;2<=_&&1023>j;)j++,_/=2;else for(;1>_&&-1022>>0,jspb.utils.split64High=(s<<31|j+1023<<20|o)>>>0,jspb.utils.split64Low=_}},jspb.utils.splitHash64=function(o){var s=o.charCodeAt(0),_=o.charCodeAt(1),j=o.charCodeAt(2),$=o.charCodeAt(3),_e=o.charCodeAt(4),et=o.charCodeAt(5),tt=o.charCodeAt(6);o=o.charCodeAt(7),jspb.utils.split64Low=s+(_<<8)+(j<<16)+($<<24)>>>0,jspb.utils.split64High=_e+(et<<8)+(tt<<16)+(o<<24)>>>0},jspb.utils.joinUint64=function(o,s){return s*jspb.BinaryConstants.TWO_TO_32+(o>>>0)},jspb.utils.joinInt64=function(o,s){var _=2147483648&s;return _&&(s=~s>>>0,(o=1+~o>>>0)==0&&(s=s+1>>>0)),o=jspb.utils.joinUint64(o,s),_?-o:o},jspb.utils.toZigzag64=function(o,s,_){var j=s>>31;return _(o<<1^j,(s<<1|o>>>31)^j)},jspb.utils.joinZigzag64=function(o,s){return jspb.utils.fromZigzag64(o,s,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(o,s,_){var j=-(1&o);return _((o>>>1|s<<31)^j,s>>>1^j)},jspb.utils.joinFloat32=function(o,s){s=2*(o>>31)+1;var _=o>>>23&255;return o&=8388607,_==255?o?NaN:1/0*s:_==0?s*Math.pow(2,-149)*o:s*Math.pow(2,_-150)*(o+Math.pow(2,23))},jspb.utils.joinFloat64=function(o,s){var _=2*(s>>31)+1,j=s>>>20&2047;return o=jspb.BinaryConstants.TWO_TO_32*(1048575&s)+o,j==2047?o?NaN:1/0*_:j==0?_*Math.pow(2,-1074)*o:_*Math.pow(2,j-1075)*(o+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(o,s){return String.fromCharCode(o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255,s>>>0&255,s>>>8&255,s>>>16&255,s>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(o,s){function _($,_e){return $=$?String($):"",_e?"0000000".slice($.length)+$:$}if(2097151>=s)return""+jspb.utils.joinUint64(o,s);var j=(o>>>24|s<<8)>>>0&16777215;return o=(16777215&o)+6777216*j+6710656*(s=s>>16&65535),j+=8147497*s,s*=2,1e7<=o&&(j+=Math.floor(o/1e7),o%=1e7),1e7<=j&&(s+=Math.floor(j/1e7),j%=1e7),_(s,0)+_(j,s)+_(o,1)},jspb.utils.joinSignedDecimalString=function(o,s){var _=2147483648&s;return _&&(s=~s+((o=1+~o>>>0)==0?1:0)>>>0),o=jspb.utils.joinUnsignedDecimalString(o,s),_?"-"+o:o},jspb.utils.hash64ToDecimalString=function(o,s){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var _=jspb.utils.split64High;return s?jspb.utils.joinSignedDecimalString(o,_):jspb.utils.joinUnsignedDecimalString(o,_)},jspb.utils.hash64ArrayToDecimalStrings=function(o,s){for(var _=Array(o.length),j=0;jtt&&(_e!==1||0>>=8}jspb.asserts.assert(0_e;_e++)j[_e]=255&~j[_e]}(),s(1,1)),goog.crypt.byteArrayToString(j)},jspb.utils.splitDecimalString=function(o){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o))},jspb.utils.toHexDigit_=function(o){return String.fromCharCode(10>o?jspb.utils.ZERO_CHAR_CODE_+o:jspb.utils.A_CHAR_CODE_-10+o)},jspb.utils.fromHexCharCode_=function(o){return o>=jspb.utils.A_CHAR_CODE_?o-jspb.utils.A_CHAR_CODE_+10:o-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(o){var s=Array(18);s[0]="0",s[1]="x";for(var _=0;8>_;_++){var j=o.charCodeAt(7-_);s[2*_+2]=jspb.utils.toHexDigit_(j>>4),s[2*_+3]=jspb.utils.toHexDigit_(15&j)}return s.join("")},jspb.utils.hexStringToHash64=function(o){o=o.toLowerCase(),jspb.asserts.assert(o.length==18),jspb.asserts.assert(o[0]=="0"),jspb.asserts.assert(o[1]=="x");for(var s="",_=0;8>_;_++){var j=jspb.utils.fromHexCharCode_(o.charCodeAt(2*_+2)),$=jspb.utils.fromHexCharCode_(o.charCodeAt(2*_+3));s=String.fromCharCode(16*j+$)+s}return s},jspb.utils.hash64ToNumber=function(o,s){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var _=jspb.utils.split64High;return s?jspb.utils.joinInt64(o,_):jspb.utils.joinUint64(o,_)},jspb.utils.numberToHash64=function(o){return jspb.utils.splitInt64(o),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(o,s,_){for(var j=0,$=s;$<_;$++)j+=o[$]>>7;return _-s-j},jspb.utils.countVarintFields=function(o,s,_,j){var $=0;if(128>(j=8*j+jspb.BinaryConstants.WireType.VARINT))for(;s<_&&o[s++]==j;)for($++;;){var _e=o[s++];if(!(128&_e))break}else for(;s<_;){for(_e=j;128<_e;){if(o[s]!=(127&_e|128))return $;s++,_e>>=7}if(o[s++]!=_e)break;for($++;128&(_e=o[s++]););}return $},jspb.utils.countFixedFields_=function(o,s,_,j,$){var _e=0;if(128>j)for(;s<_&&o[s++]==j;)_e++,s+=$;else for(;s<_;){for(var et=j;128>=7}if(o[s++]!=et)break;_e++,s+=$}return _e},jspb.utils.countFixed32Fields=function(o,s,_,j){return jspb.utils.countFixedFields_(o,s,_,8*j+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(o,s,_,j){return jspb.utils.countFixedFields_(o,s,_,8*j+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(o,s,_,j){var $=0;for(j=8*j+jspb.BinaryConstants.WireType.DELIMITED;s<_;){for(var _e=j;128<_e;){if(o[s++]!=(127&_e|128))return $;_e>>=7}if(o[s++]!=_e)break;$++;for(var et=0,tt=1;et+=(127&(_e=o[s++]))*tt,tt*=128,(128&_e)!=0;);s+=et}return $},jspb.utils.debugBytesToTextFormat=function(o){var s='"';if(o){o=jspb.utils.byteSourceToUint8Array(o);for(var _=0;_o[_]&&(s+="0"),s+=o[_].toString(16)}return s+'"'},jspb.utils.debugScalarToTextFormat=function(o){return typeof o=="string"?goog.string.quote(o):o.toString()},jspb.utils.stringToByteArray=function(o){for(var s=new Uint8Array(o.length),_=0;_jspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(o,s,_){this.bytes_=jspb.utils.byteSourceToUint8Array(o),this.start_=s!==void 0?s:0,this.end_=_!==void 0?this.start_+_:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(o){this.end_=o},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(o){this.cursor_=o},jspb.BinaryDecoder.prototype.advance=function(o){this.cursor_+=o,jspb.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(o){for(var s=128,_=0,j=0,$=0;4>$&&128<=s;$++)_|=(127&(s=this.bytes_[this.cursor_++]))<<7*$;if(128<=s&&(_|=(127&(s=this.bytes_[this.cursor_++]))<<28,j|=(127&s)>>4),128<=s)for($=0;5>$&&128<=s;$++)j|=(127&(s=this.bytes_[this.cursor_++]))<<7*$+3;if(128>s)return o(_>>>0,j>>>0);jspb.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(o){return this.readSplitVarint64(function(s,_){return jspb.utils.fromZigzag64(s,_,o)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(o){var s=this.bytes_,_=this.cursor_;this.cursor_+=8;for(var j=0,$=0,_e=_+7;_e>=_;_e--)j=j<<8|s[_e],$=$<<8|s[_e+4];return o(j,$)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(o){for(;128>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var o=this.bytes_,s=o[this.cursor_+0],_=127&s;return 128>s?(this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),_):(_|=(127&(s=o[this.cursor_+1]))<<7,128>s?(this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),_):(_|=(127&(s=o[this.cursor_+2]))<<14,128>s?(this.cursor_+=3,jspb.asserts.assert(this.cursor_<=this.end_),_):(_|=(127&(s=o[this.cursor_+3]))<<21,128>s?(this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),_):(_|=(15&(s=o[this.cursor_+4]))<<28,128>s?(this.cursor_+=5,jspb.asserts.assert(this.cursor_<=this.end_),_>>>0):(this.cursor_+=5,128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&jspb.asserts.assert(!1),jspb.asserts.assert(this.cursor_<=this.end_),_)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=function(){return~~this.readUnsignedVarint32()},jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var o=this.readUnsignedVarint32();return o>>>1^-(1&o)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o},jspb.BinaryDecoder.prototype.readUint16=function(){var o=this.bytes_[this.cursor_+0],s=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|s<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var o=this.bytes_[this.cursor_+0],s=this.bytes_[this.cursor_+1],_=this.bytes_[this.cursor_+2],j=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|s<<8|_<<16|j<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var o=this.readUint32(),s=this.readUint32();return jspb.utils.joinUint64(o,s)},jspb.BinaryDecoder.prototype.readUint64String=function(){var o=this.readUint32(),s=this.readUint32();return jspb.utils.joinUnsignedDecimalString(o,s)},jspb.BinaryDecoder.prototype.readInt8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var o=this.bytes_[this.cursor_+0],s=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|s<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var o=this.bytes_[this.cursor_+0],s=this.bytes_[this.cursor_+1],_=this.bytes_[this.cursor_+2],j=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|s<<8|_<<16|j<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var o=this.readUint32(),s=this.readUint32();return jspb.utils.joinInt64(o,s)},jspb.BinaryDecoder.prototype.readInt64String=function(){var o=this.readUint32(),s=this.readUint32();return jspb.utils.joinSignedDecimalString(o,s)},jspb.BinaryDecoder.prototype.readFloat=function(){var o=this.readUint32();return jspb.utils.joinFloat32(o,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var o=this.readUint32(),s=this.readUint32();return jspb.utils.joinFloat64(o,s)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(o){var s=this.bytes_,_=this.cursor_;o=_+o;for(var j=[],$="";__e)j.push(_e);else{if(192>_e)continue;if(224>_e){var et=s[_++];j.push((31&_e)<<6|63&et)}else if(240>_e){et=s[_++];var tt=s[_++];j.push((15&_e)<<12|(63&et)<<6|63&tt)}else 248>_e&&(_e=(7&_e)<<18|(63&(et=s[_++]))<<12|(63&(tt=s[_++]))<<6|63&s[_++],_e-=65536,j.push(55296+(_e>>10&1023),56320+(1023&_e)))}8192<=j.length&&($+=String.fromCharCode.apply(null,j),j.length=0)}return $+=goog.crypt.byteArrayToString(j),this.cursor_=_,$},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var o=this.readUnsignedVarint32();return this.readString(o)},jspb.BinaryDecoder.prototype.readBytes=function(o){if(0>o||this.cursor_+o>this.bytes_.length)return this.error_=!0,jspb.asserts.fail("Invalid byte length!"),new Uint8Array(0);var s=this.bytes_.subarray(this.cursor_,this.cursor_+o);return this.cursor_+=o,jspb.asserts.assert(this.cursor_<=this.end_),s},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var o=this.bytes_,s=this.cursor_,_=o[s+0],j=o[s+1],$=o[s+2],_e=o[s+3],et=o[s+4],tt=o[s+5],nt=o[s+6];return o=o[s+7],this.cursor_+=8,String.fromCharCode(_,j,$,_e,et,tt,nt,o)},jspb.BinaryReader=function(o,s,_){this.decoder_=jspb.BinaryDecoder.alloc(o,s,_),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(o,s,_){if(jspb.BinaryReader.instanceCache_.length){var j=jspb.BinaryReader.instanceCache_.pop();return o&&j.decoder_.setBlock(o,s,_),j}return new jspb.BinaryReader(o,s,_)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},goog.exportProperty(jspb.BinaryReader.prototype,"getFieldNumber",jspb.BinaryReader.prototype.getFieldNumber),jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},goog.exportProperty(jspb.BinaryReader.prototype,"isDelimited",jspb.BinaryReader.prototype.isDelimited),jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},goog.exportProperty(jspb.BinaryReader.prototype,"isEndGroup",jspb.BinaryReader.prototype.isEndGroup),jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(o,s,_){this.decoder_.setBlock(o,s,_),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(o){this.decoder_.advance(o)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return jspb.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var o=this.decoder_.readUnsignedVarint32(),s=o>>>3;return(o&=7)!=jspb.BinaryConstants.WireType.VARINT&&o!=jspb.BinaryConstants.WireType.FIXED32&&o!=jspb.BinaryConstants.WireType.FIXED64&&o!=jspb.BinaryConstants.WireType.DELIMITED&&o!=jspb.BinaryConstants.WireType.START_GROUP&&o!=jspb.BinaryConstants.WireType.END_GROUP?(jspb.asserts.fail("Invalid wire type: %s (at position %s)",o,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=s,this.nextWireType_=o,!0)},goog.exportProperty(jspb.BinaryReader.prototype,"nextField",jspb.BinaryReader.prototype.nextField),jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var o=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==o;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(jspb.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)jspb.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var o=this.decoder_.readUnsignedVarint32();this.decoder_.advance(o)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(jspb.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(jspb.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){for(var o=this.nextField_;;){if(!this.nextField()){jspb.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=o&&(jspb.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:jspb.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(o,s){this.readCallbacks_===null&&(this.readCallbacks_={}),jspb.asserts.assert(!this.readCallbacks_[o]),this.readCallbacks_[o]=s},jspb.BinaryReader.prototype.runReadCallback=function(o){return jspb.asserts.assert(this.readCallbacks_!==null),o=this.readCallbacks_[o],jspb.asserts.assert(o),o(this)},jspb.BinaryReader.prototype.readAny=function(o){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(o);var s=jspb.BinaryConstants.FieldType;switch(o){case s.DOUBLE:return this.readDouble();case s.FLOAT:return this.readFloat();case s.INT64:return this.readInt64();case s.UINT64:return this.readUint64();case s.INT32:return this.readInt32();case s.FIXED64:return this.readFixed64();case s.FIXED32:return this.readFixed32();case s.BOOL:return this.readBool();case s.STRING:return this.readString();case s.GROUP:jspb.asserts.fail("Group field type not supported in readAny()");case s.MESSAGE:jspb.asserts.fail("Message field type not supported in readAny()");case s.BYTES:return this.readBytes();case s.UINT32:return this.readUint32();case s.ENUM:return this.readEnum();case s.SFIXED32:return this.readSfixed32();case s.SFIXED64:return this.readSfixed64();case s.SINT32:return this.readSint32();case s.SINT64:return this.readSint64();case s.FHASH64:return this.readFixedHash64();case s.VHASH64:return this.readVarintHash64();default:jspb.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(o,s){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var _=this.decoder_.getEnd(),j=this.decoder_.readUnsignedVarint32();j=this.decoder_.getCursor()+j,this.decoder_.setEnd(j),s(o,this),this.decoder_.setCursor(j),this.decoder_.setEnd(_)},goog.exportProperty(jspb.BinaryReader.prototype,"readMessage",jspb.BinaryReader.prototype.readMessage),jspb.BinaryReader.prototype.readGroup=function(o,s,_){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),jspb.asserts.assert(this.nextField_==o),_(s,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(jspb.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},goog.exportProperty(jspb.BinaryReader.prototype,"readGroup",jspb.BinaryReader.prototype.readGroup),jspb.BinaryReader.prototype.getFieldDecoder=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32(),s=this.decoder_.getCursor(),_=s+o;return o=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),s,o),this.decoder_.setCursor(_),o},jspb.BinaryReader.prototype.readInt32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt32",jspb.BinaryReader.prototype.readInt32),jspb.BinaryReader.prototype.readInt32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt64",jspb.BinaryReader.prototype.readInt64),jspb.BinaryReader.prototype.readInt64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint32",jspb.BinaryReader.prototype.readUint32),jspb.BinaryReader.prototype.readUint32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint64",jspb.BinaryReader.prototype.readUint64),jspb.BinaryReader.prototype.readUint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint32",jspb.BinaryReader.prototype.readSint32),jspb.BinaryReader.prototype.readSint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint64",jspb.BinaryReader.prototype.readSint64),jspb.BinaryReader.prototype.readSint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed32",jspb.BinaryReader.prototype.readFixed32),jspb.BinaryReader.prototype.readFixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed64",jspb.BinaryReader.prototype.readFixed64),jspb.BinaryReader.prototype.readFixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed32",jspb.BinaryReader.prototype.readSfixed32),jspb.BinaryReader.prototype.readSfixed32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed64",jspb.BinaryReader.prototype.readSfixed64),jspb.BinaryReader.prototype.readSfixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},goog.exportProperty(jspb.BinaryReader.prototype,"readFloat",jspb.BinaryReader.prototype.readFloat),jspb.BinaryReader.prototype.readDouble=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},goog.exportProperty(jspb.BinaryReader.prototype,"readDouble",jspb.BinaryReader.prototype.readDouble),jspb.BinaryReader.prototype.readBool=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readBool",jspb.BinaryReader.prototype.readBool),jspb.BinaryReader.prototype.readEnum=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readEnum",jspb.BinaryReader.prototype.readEnum),jspb.BinaryReader.prototype.readString=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readString",jspb.BinaryReader.prototype.readString),jspb.BinaryReader.prototype.readBytes=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readBytes",jspb.BinaryReader.prototype.readBytes),jspb.BinaryReader.prototype.readVarintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(o)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(s,_){return jspb.utils.fromZigzag64(s,_,o)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(o)},jspb.BinaryReader.prototype.readPackedField_=function(o){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var s=this.decoder_.readUnsignedVarint32();s=this.decoder_.getCursor()+s;for(var _=[];this.decoder_.getCursor()>>7|s<<25)>>>0,s>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(o,s){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(s==Math.floor(s)),jspb.asserts.assert(0<=o&&o>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(o){if(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&os;s++)this.buffer_.push(127&o|128),o>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o=-jspb.BinaryConstants.TWO_TO_63&&o=-jspb.BinaryConstants.TWO_TO_31&&o>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o>>0,j>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&256>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&65536>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&oo),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(-32768<=o&&32768>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o=-jspb.BinaryConstants.TWO_TO_63&&+o=-jspb.BinaryConstants.FLOAT32_MAX&&o<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(o),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(o){jspb.asserts.assert(o===1/0||o===-1/0||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT64_MAX&&o<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(o){jspb.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.buffer_.push(o?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&oj)this.buffer_.push(j);else if(2048>j)this.buffer_.push(j>>6|192),this.buffer_.push(63&j|128);else if(65536>j)if(55296<=j&&56319>=j&&_+1=$&&(j=1024*(j-55296)+$-56320+65536,this.buffer_.push(j>>18|240),this.buffer_.push(j>>12&63|128),this.buffer_.push(j>>6&63|128),this.buffer_.push(63&j|128),_++)}else this.buffer_.push(j>>12|224),this.buffer_.push(j>>6&63|128),this.buffer_.push(63&j|128)}return this.buffer_.length-s},jspb.arith={},jspb.arith.UInt64=function(o,s){this.lo=o,this.hi=s},jspb.arith.UInt64.prototype.cmp=function(o){return this.hi>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(o){return new jspb.arith.UInt64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(o){return new jspb.arith.UInt64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(o,s){var _=65535&o,j=65535&s,$=s>>>16;for(s=_*j+65536*(_*$&65535)+65536*((o>>>=16)*j&65535),_=o*$+(_*$>>>16)+(o*j>>>16);4294967296<=s;)s-=4294967296,_+=1;return new jspb.arith.UInt64(s>>>0,_>>>0)},jspb.arith.UInt64.prototype.mul=function(o){var s=jspb.arith.UInt64.mul32x32(this.lo,o);return(o=jspb.arith.UInt64.mul32x32(this.hi,o)).hi=o.lo,o.lo=0,s.add(o)},jspb.arith.UInt64.prototype.div=function(o){if(o==0)return[];var s=new jspb.arith.UInt64(0,0),_=new jspb.arith.UInt64(this.lo,this.hi);o=new jspb.arith.UInt64(o,0);for(var j=new jspb.arith.UInt64(1,0);!o.msb();)o=o.leftShift(),j=j.leftShift();for(;!j.zero();)0>=o.cmp(_)&&(s=s.add(j),_=_.sub(o)),o=o.rightShift(),j=j.rightShift();return[s,_]},jspb.arith.UInt64.prototype.toString=function(){for(var o="",s=this;!s.zero();){var _=(s=s.div(10))[0];o=s[1].lo+o,s=_}return o==""&&(o="0"),o},jspb.arith.UInt64.fromString=function(o){for(var s=new jspb.arith.UInt64(0,0),_=new jspb.arith.UInt64(0,0),j=0;jo[j]||"9">>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(o){return new jspb.arith.Int64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var o=(2147483648&this.hi)!=0,s=new jspb.arith.UInt64(this.lo,this.hi);return o&&(s=new jspb.arith.UInt64(0,0).sub(s)),(o?"-":"")+s.toString()},jspb.arith.Int64.fromString=function(o){var s=0>>=7,this.totalLength_++;o.push(s),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(o,s,_){this.appendUint8Array_(o.subarray(s,_))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(o,s,_){o!=null&&s!=null&&_!=null&&this.writeSerializedMessage(o,s,_)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){jspb.asserts.assert(this.bookmarks_.length==0);for(var o=new Uint8Array(this.totalLength_+this.encoder_.length()),s=this.blocks_,_=s.length,j=0,$=0;$<_;$++){var _e=s[$];o.set(_e,j),j+=_e.length}return s=this.encoder_.end(),o.set(s,j),j+=s.length,jspb.asserts.assert(j==o.length),this.blocks_=[o],o},goog.exportProperty(jspb.BinaryWriter.prototype,"getResultBuffer",jspb.BinaryWriter.prototype.getResultBuffer),jspb.BinaryWriter.prototype.getResultBase64String=function(o){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),o)},jspb.BinaryWriter.prototype.beginSubMessage=function(o){this.bookmarks_.push(this.beginDelimited_(o))},jspb.BinaryWriter.prototype.endSubMessage=function(){jspb.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(o,s){jspb.asserts.assert(1<=o&&o==Math.floor(o)),this.encoder_.writeUnsignedVarint32(8*o+s)},jspb.BinaryWriter.prototype.writeAny=function(o,s,_){var j=jspb.BinaryConstants.FieldType;switch(o){case j.DOUBLE:this.writeDouble(s,_);break;case j.FLOAT:this.writeFloat(s,_);break;case j.INT64:this.writeInt64(s,_);break;case j.UINT64:this.writeUint64(s,_);break;case j.INT32:this.writeInt32(s,_);break;case j.FIXED64:this.writeFixed64(s,_);break;case j.FIXED32:this.writeFixed32(s,_);break;case j.BOOL:this.writeBool(s,_);break;case j.STRING:this.writeString(s,_);break;case j.GROUP:jspb.asserts.fail("Group field type not supported in writeAny()");break;case j.MESSAGE:jspb.asserts.fail("Message field type not supported in writeAny()");break;case j.BYTES:this.writeBytes(s,_);break;case j.UINT32:this.writeUint32(s,_);break;case j.ENUM:this.writeEnum(s,_);break;case j.SFIXED32:this.writeSfixed32(s,_);break;case j.SFIXED64:this.writeSfixed64(s,_);break;case j.SINT32:this.writeSint32(s,_);break;case j.SINT64:this.writeSint64(s,_);break;case j.FHASH64:this.writeFixedHash64(s,_);break;case j.VHASH64:this.writeVarintHash64(s,_);break;default:jspb.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(s))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(s))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(s))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(s))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(s))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(s))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(s))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(o,s){s!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(s))},jspb.BinaryWriter.prototype.writeInt32=function(o,s){s!=null&&(jspb.asserts.assert(s>=-jspb.BinaryConstants.TWO_TO_31&&s=-jspb.BinaryConstants.TWO_TO_31&&s=-jspb.BinaryConstants.TWO_TO_63&&s=-jspb.BinaryConstants.TWO_TO_31&&s=-jspb.BinaryConstants.TWO_TO_63&&s=-jspb.BinaryConstants.TWO_TO_31&&s=-jspb.BinaryConstants.TWO_TO_63&&s=-jspb.BinaryConstants.TWO_TO_31&&s>>0,_e>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(o,s){if(s!=null)for(var _=0;_>>0,tt>>>0)});this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(o,s){if(s!=null&&s.length){o=this.beginDelimited_(o);for(var _=0;_s.length?_.length:s.length;for(o.getJsPbMessageId()&&(j[0]=o.getJsPbMessageId(),$=1);$<_e;$++)jspb.Message.compareFields(_[$],s[$])||(j[$]=s[$]);return new o.constructor(j)},goog.exportProperty(jspb.Message,"difference",jspb.Message.difference),jspb.Message.equals=function(o,s){return o==s||!(!o||!s)&&o instanceof s.constructor&&jspb.Message.compareFields(o.toArray(),s.toArray())},goog.exportProperty(jspb.Message,"equals",jspb.Message.equals),jspb.Message.compareExtensions=function(o,s){o=o||{},s=s||{};var _,j={};for(_ in o)j[_]=0;for(_ in s)j[_]=0;for(_ in j)if(!jspb.Message.compareFields(o[_],s[_]))return!1;return!0},goog.exportProperty(jspb.Message,"compareExtensions",jspb.Message.compareExtensions),jspb.Message.compareFields=function(o,s){if(o==s)return!0;if(!goog.isObject(o)||!goog.isObject(s))return!!(typeof o=="number"&&isNaN(o)||typeof s=="number"&&isNaN(s))&&String(o)==String(s);if(o.constructor!=s.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o.constructor===Uint8Array){if(o.length!=s.length)return!1;for(var _=0;_{var j=_(7186),$=j,_e=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||_e!==void 0&&_e||typeof self<"u"&&self||function(){return this}.call(null)||Function("return this")();$.exportSymbol("proto.google.protobuf.BoolValue",null,_e),$.exportSymbol("proto.google.protobuf.BytesValue",null,_e),$.exportSymbol("proto.google.protobuf.DoubleValue",null,_e),$.exportSymbol("proto.google.protobuf.FloatValue",null,_e),$.exportSymbol("proto.google.protobuf.Int32Value",null,_e),$.exportSymbol("proto.google.protobuf.Int64Value",null,_e),$.exportSymbol("proto.google.protobuf.StringValue",null,_e),$.exportSymbol("proto.google.protobuf.UInt32Value",null,_e),$.exportSymbol("proto.google.protobuf.UInt64Value",null,_e),proto.google.protobuf.DoubleValue=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.DoubleValue,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.DoubleValue.displayName="proto.google.protobuf.DoubleValue"),proto.google.protobuf.FloatValue=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.FloatValue,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.FloatValue.displayName="proto.google.protobuf.FloatValue"),proto.google.protobuf.Int64Value=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.Int64Value,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.Int64Value.displayName="proto.google.protobuf.Int64Value"),proto.google.protobuf.UInt64Value=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.UInt64Value,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.UInt64Value.displayName="proto.google.protobuf.UInt64Value"),proto.google.protobuf.Int32Value=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.Int32Value,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.Int32Value.displayName="proto.google.protobuf.Int32Value"),proto.google.protobuf.UInt32Value=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.UInt32Value,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.UInt32Value.displayName="proto.google.protobuf.UInt32Value"),proto.google.protobuf.BoolValue=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.BoolValue,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.BoolValue.displayName="proto.google.protobuf.BoolValue"),proto.google.protobuf.StringValue=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.StringValue,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.StringValue.displayName="proto.google.protobuf.StringValue"),proto.google.protobuf.BytesValue=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.google.protobuf.BytesValue,j.Message),$.DEBUG&&!COMPILED&&(proto.google.protobuf.BytesValue.displayName="proto.google.protobuf.BytesValue"),j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DoubleValue.prototype.toObject=function(et){return proto.google.protobuf.DoubleValue.toObject(et,this)},proto.google.protobuf.DoubleValue.toObject=function(et,tt){var nt={value:j.Message.getFloatingPointFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.DoubleValue.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.DoubleValue;return proto.google.protobuf.DoubleValue.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.DoubleValue.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readDouble();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.DoubleValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.DoubleValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.DoubleValue.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeDouble(1,nt)},proto.google.protobuf.DoubleValue.prototype.getValue=function(){return j.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.DoubleValue.prototype.setValue=function(et){return j.Message.setProto3FloatField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FloatValue.prototype.toObject=function(et){return proto.google.protobuf.FloatValue.toObject(et,this)},proto.google.protobuf.FloatValue.toObject=function(et,tt){var nt={value:j.Message.getFloatingPointFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.FloatValue.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.FloatValue;return proto.google.protobuf.FloatValue.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.FloatValue.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readFloat();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.FloatValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.FloatValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.FloatValue.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeFloat(1,nt)},proto.google.protobuf.FloatValue.prototype.getValue=function(){return j.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.FloatValue.prototype.setValue=function(et){return j.Message.setProto3FloatField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int64Value.prototype.toObject=function(et){return proto.google.protobuf.Int64Value.toObject(et,this)},proto.google.protobuf.Int64Value.toObject=function(et,tt){var nt={value:j.Message.getFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.Int64Value.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.Int64Value;return proto.google.protobuf.Int64Value.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.Int64Value.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readInt64();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.Int64Value.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.Int64Value.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.Int64Value.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeInt64(1,nt)},proto.google.protobuf.Int64Value.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int64Value.prototype.setValue=function(et){return j.Message.setProto3IntField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt64Value.prototype.toObject=function(et){return proto.google.protobuf.UInt64Value.toObject(et,this)},proto.google.protobuf.UInt64Value.toObject=function(et,tt){var nt={value:j.Message.getFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.UInt64Value.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.UInt64Value;return proto.google.protobuf.UInt64Value.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.UInt64Value.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readUint64();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.UInt64Value.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.UInt64Value.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.UInt64Value.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeUint64(1,nt)},proto.google.protobuf.UInt64Value.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt64Value.prototype.setValue=function(et){return j.Message.setProto3IntField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int32Value.prototype.toObject=function(et){return proto.google.protobuf.Int32Value.toObject(et,this)},proto.google.protobuf.Int32Value.toObject=function(et,tt){var nt={value:j.Message.getFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.Int32Value.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.Int32Value;return proto.google.protobuf.Int32Value.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.Int32Value.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readInt32();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.Int32Value.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.Int32Value.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.Int32Value.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeInt32(1,nt)},proto.google.protobuf.Int32Value.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int32Value.prototype.setValue=function(et){return j.Message.setProto3IntField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt32Value.prototype.toObject=function(et){return proto.google.protobuf.UInt32Value.toObject(et,this)},proto.google.protobuf.UInt32Value.toObject=function(et,tt){var nt={value:j.Message.getFieldWithDefault(tt,1,0)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.UInt32Value.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.UInt32Value;return proto.google.protobuf.UInt32Value.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.UInt32Value.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readUint32();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.UInt32Value.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.UInt32Value.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.UInt32Value.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())!==0&&tt.writeUint32(1,nt)},proto.google.protobuf.UInt32Value.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt32Value.prototype.setValue=function(et){return j.Message.setProto3IntField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BoolValue.prototype.toObject=function(et){return proto.google.protobuf.BoolValue.toObject(et,this)},proto.google.protobuf.BoolValue.toObject=function(et,tt){var nt={value:j.Message.getBooleanFieldWithDefault(tt,1,!1)};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.BoolValue.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.BoolValue;return proto.google.protobuf.BoolValue.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.BoolValue.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readBool();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.BoolValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.BoolValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.BoolValue.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue())&&tt.writeBool(1,nt)},proto.google.protobuf.BoolValue.prototype.getValue=function(){return j.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.BoolValue.prototype.setValue=function(et){return j.Message.setProto3BooleanField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.StringValue.prototype.toObject=function(et){return proto.google.protobuf.StringValue.toObject(et,this)},proto.google.protobuf.StringValue.toObject=function(et,tt){var nt={value:j.Message.getFieldWithDefault(tt,1,"")};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.StringValue.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.StringValue;return proto.google.protobuf.StringValue.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.StringValue.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readString();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.StringValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.StringValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.StringValue.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue()).length>0&&tt.writeString(1,nt)},proto.google.protobuf.StringValue.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.StringValue.prototype.setValue=function(et){return j.Message.setProto3StringField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BytesValue.prototype.toObject=function(et){return proto.google.protobuf.BytesValue.toObject(et,this)},proto.google.protobuf.BytesValue.toObject=function(et,tt){var nt={value:tt.getValue_asB64()};return et&&(nt.$jspbMessageInstance=tt),nt}),proto.google.protobuf.BytesValue.deserializeBinary=function(et){var tt=new j.BinaryReader(et),nt=new proto.google.protobuf.BytesValue;return proto.google.protobuf.BytesValue.deserializeBinaryFromReader(nt,tt)},proto.google.protobuf.BytesValue.deserializeBinaryFromReader=function(et,tt){for(;tt.nextField()&&!tt.isEndGroup();)switch(tt.getFieldNumber()){case 1:var nt=tt.readBytes();et.setValue(nt);break;default:tt.skipField()}return et},proto.google.protobuf.BytesValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.BytesValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.BytesValue.serializeBinaryToWriter=function(et,tt){var nt;(nt=et.getValue_asU8()).length>0&&tt.writeBytes(1,nt)},proto.google.protobuf.BytesValue.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.BytesValue.prototype.getValue_asB64=function(){return j.Message.bytesAsB64(this.getValue())},proto.google.protobuf.BytesValue.prototype.getValue_asU8=function(){return j.Message.bytesAsU8(this.getValue())},proto.google.protobuf.BytesValue.prototype.setValue=function(et){return j.Message.setProto3BytesField(this,1,et)},$.object.extend(s,proto.google.protobuf)},1292:o=>{o.exports=Object.getOwnPropertyDescriptor},9336:(o,s,_)=>{var j=_(1292);if(j)try{j([],"length")}catch{j=null}o.exports=j},5949:function(o,s,_){var j;function $(Wt){var Gt=0;return function(){return Gt(on=on||0)&&(on=Math.max(on+Jn,0));onGt?1:0}e:{var Cn=Qt.navigator;if(Cn){var Tt=Cn.userAgent;if(Tt){Kt=Tt;break e}}Kt=""}var Zt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ot(Wt){var Gt=1;Wt=Wt.split(":");for(var on=[];0parseFloat(Pn)){ln=String(tr);break e}}ln=Pn}var xr={};function Kr(){return function(Wt){var Gt=xr;return Object.prototype.hasOwnProperty.call(Gt,9)?Gt[9]:Gt[9]=Wt(9)}(function(){for(var Wt=0,Gt=Bn(String(ln)).split("."),on=Bn("9").split("."),Qn=Math.max(Gt.length,on.length),Jn=0;Wt==0&&Jn>>0);function Vs(Wt){return typeof Wt=="function"?Wt:(Wt[gs]||(Wt[gs]=function(Gt){return Wt.handleEvent(Gt)}),Wt[gs])}function Fo(){Gr.call(this),this.f=new Bo(this),this.U=this}function no(Wt,Gt){Wt=Wt.U;var on=Gt.type||Gt;if(typeof Gt=="string")Gt=new oo(Gt,Wt);else if(Gt instanceof oo)Gt.target=Gt.target||Wt;else{var Qn=Gt;(function(Jn,Wn){for(var yn,kn,Mn=1;Mn=(Wt?Tn(Rn(Fn(),Wt.getName())):bn).value),Qn&&(Gt=Gt||bn,Qn=Rn(Fn(),Wt.getName()),typeof on=="function"&&(on=on()),Js||(Js=new nn),function(Jn,Wn){for(;Jn;)Jn.f.forEach(function(yn){yn(Wn)}),Jn=Jn.b}(Qn,Wt=new dn(Gt,on,Wt=Wt.getName())))}function zn(Wt,Gt){Wt&&Zn(Wt,Lt,Gt)}function sr(){}function fr(Wt){var Gt;return(Gt=Wt.a)||(Gt={},Yr(Wt)&&(Gt[0]=!0,Gt[1]=!0),Gt=Wt.a=Gt),Gt}function jr(){}function Br(Wt){return(Wt=Yr(Wt))?new ActiveXObject(Wt):new XMLHttpRequest}function Yr(Wt){if(!Wt.b&&typeof XMLHttpRequest>"u"&&typeof ActiveXObject<"u"){for(var Gt=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],on=0;on2*this.size&&Vo(this),!0)},j.get=function(Wt,Gt){return wo(this.o,Wt)?this.o[Wt]:Gt},j.set=function(Wt,Gt){wo(this.o,Wt)||(this.size+=1,this.j.push(Wt),this.B++),this.o[Wt]=Gt},j.addAll=function(Wt){if(Wt instanceof so)for(var Gt=Wt.G(),on=0;on=Qn.j.length)throw ar;var Wn=Qn.j[Gt++];return Wt?Wn:Qn.o[Wn]},Jn.next=Jn.a.bind(Jn),Jn};var _u=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ws(Wt){Fo.call(this),this.headers=new so,this.C=Wt||null,this.c=!1,this.J=this.a=null,this.P=this.v="",this.g=0,this.l="",this.i=this.N=this.s=this.L=!1,this.h=0,this.w=null,this.m=Ls,this.I=this.M=!1}mt(Ws,Fo);var Ls="";Ws.prototype.b=Rn(Fn(),"goog.net.XhrIo",void 0).g;var $a=/^https?$/i,ps=["POST","PUT"];function xl(Wt,Gt,on){if(Wt.a)throw Error("[goog.net.XhrIo] Object is active with another request="+Wt.v+"; newUri="+Gt);Wt.v=Gt,Wt.l="",Wt.g=0,Wt.P="POST",Wt.L=!1,Wt.c=!0,Wt.a=Wt.C?Br(Wt.C):Br(Ns),Wt.J=Wt.C?fr(Wt.C):fr(Ns),Wt.a.onreadystatechange=vt(Wt.R,Wt);try{zn(Wt.b,zo(Wt,"Opening Xhr")),Wt.N=!0,Wt.a.open("POST",String(Gt),!0),Wt.N=!1}catch(Wn){return zn(Wt.b,zo(Wt,"Error opening Xhr: "+Wn.message)),void Ul(Wt,Wn)}Gt=on||"";var Qn=(on=Wt.headers.clone()).G().find(function(Wn){return Wn.toLowerCase()=="content-type"}),Jn=Qt.FormData&&Gt instanceof Qt.FormData;!(0<=Un(ps,"POST"))||Qn||Jn||on.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),on.forEach(function(Wn,yn){this.a.setRequestHeader(yn,Wn)},Wt),Wt.m&&(Wt.a.responseType=Wt.m),"withCredentials"in Wt.a&&Wt.a.withCredentials!==Wt.M&&(Wt.a.withCredentials=Wt.M);try{Ql(Wt),0>4),$n!=64&&(yn(Kn<<4&240|$n>>2),pr!=64&&yn($n<<6&192|pr))}}(Wt,function(Wn){Qn[Jn++]=Wn}),Qn.subarray(0,Jn)}function zl(){if(!ks){ks={};for(var Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Gt=["+/=","+/","-_=","-_.","-_"],on=0;5>on;on++){var Qn=Wt.concat(Gt[on].split(""));Ll[on]=Qn;for(var Jn=0;Jn{var j=process.platform==="win32",$=_(25);function _e(Ut,ht){for(var ft=[],pt=0;pt=0&&!Ut[pt];pt--);return ft===0&&pt===ht?Ut:ft>pt?[]:Ut.slice(ft,pt+1)}var tt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,nt=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,rt={};function it(Ut){var ht=tt.exec(Ut),ft=(ht[1]||"")+(ht[2]||""),pt=ht[3]||"",Rt=nt.exec(pt);return[ft,Rt[1],Rt[2],Rt[3]]}function st(Ut){var ht=tt.exec(Ut),ft=ht[1]||"",pt=!!ft&&ft[1]!==":";return{device:ft,isUnc:pt,isAbsolute:pt||!!ht[2],tail:ht[3]}}function ut(Ut){return"\\\\"+Ut.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}rt.resolve=function(){for(var Ut="",ht="",ft=!1,pt=arguments.length-1;pt>=-1;pt--){var Rt;if(pt>=0?Rt=arguments[pt]:Ut?(Rt=process.env["="+Ut])&&Rt.substr(0,3).toLowerCase()===Ut.toLowerCase()+"\\"||(Rt=Ut+"\\"):Rt=process.cwd(),!$.isString(Rt))throw new TypeError("Arguments to path.resolve must be strings");if(Rt){var Qt=st(Rt),Nt=Qt.device,At=Qt.isUnc,kt=Qt.isAbsolute,Bt=Qt.tail;if((!Nt||!Ut||Nt.toLowerCase()===Ut.toLowerCase())&&(Ut||(Ut=Nt),ft||(ht=Bt+"\\"+ht,ft=kt),Ut&&ft))break}}return At&&(Ut=ut(Ut)),Ut+(ft?"\\":"")+(ht=_e(ht.split(/[\\\/]+/),!ft).join("\\"))||"."},rt.normalize=function(Ut){var ht=st(Ut),ft=ht.device,pt=ht.isUnc,Rt=ht.isAbsolute,Qt=ht.tail,Nt=/[\\\/]$/.test(Qt);return(Qt=_e(Qt.split(/[\\\/]+/),!Rt).join("\\"))||Rt||(Qt="."),Qt&&Nt&&(Qt+="\\"),pt&&(ft=ut(ft)),ft+(Rt?"\\":"")+Qt},rt.isAbsolute=function(Ut){return st(Ut).isAbsolute},rt.join=function(){for(var Ut=[],ht=0;ht=-1&&!ht;ft--){var pt=ft>=0?arguments[ft]:process.cwd();if(!$.isString(pt))throw new TypeError("Arguments to path.resolve must be strings");pt&&(Ut=pt+"/"+Ut,ht=pt[0]==="/")}return(ht?"/":"")+(Ut=_e(Ut.split("/"),!ht).join("/"))||"."},dt.normalize=function(Ut){var ht=dt.isAbsolute(Ut),ft=Ut&&Ut[Ut.length-1]==="/";return(Ut=_e(Ut.split("/"),!ht).join("/"))||ht||(Ut="."),Ut&&ft&&(Ut+="/"),(ht?"/":"")+Ut},dt.isAbsolute=function(Ut){return Ut.charAt(0)==="/"},dt.join=function(){for(var Ut="",ht=0;ht{o.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},1830:o=>{var s=String.prototype.replace,_=/%20/g,j="RFC1738",$="RFC3986";o.exports={default:$,formatters:{RFC1738:function(_e){return s.call(_e,_,"+")},RFC3986:function(_e){return String(_e)}},RFC1738:j,RFC3986:$}},5810:(o,s,_)=>{var j=_(6623),$=_(6193),_e=_(1830);o.exports={formats:_e,parse:$,stringify:j}},6193:(o,s,_)=>{var j=_(1539),$=Object.prototype.hasOwnProperty,_e=Array.isArray,et={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:j.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},tt=function(it){return it.replace(/&#(\d+);/g,function(st,ut){return String.fromCharCode(parseInt(ut,10))})},nt=function(it,st){return it&&typeof it=="string"&&st.comma&&it.indexOf(",")>-1?it.split(","):it},rt=function(it,st,ut,Ft){if(it){var dt=ut.allowDots?it.replace(/\.([^.[]+)/g,"[$1]"):it,gt=/(\[[^[\]]*])/g,Ut=ut.depth>0&&/(\[[^[\]]*])/.exec(dt),ht=Ut?dt.slice(0,Ut.index):dt,ft=[];if(ht){if(!ut.plainObjects&&$.call(Object.prototype,ht)&&!ut.allowPrototypes)return;ft.push(ht)}for(var pt=0;ut.depth>0&&(Ut=gt.exec(dt))!==null&&pt=0;--Bt){var jt,vt=Rt[Bt];if(vt==="[]"&&Nt.parseArrays)jt=Nt.allowEmptyArrays&&(kt===""||Nt.strictNullHandling&&kt===null)?[]:[].concat(kt);else{jt=Nt.plainObjects?Object.create(null):{};var mt=vt.charAt(0)==="["&&vt.charAt(vt.length-1)==="]"?vt.slice(1,-1):vt,yt=Nt.decodeDotInKeys?mt.replace(/%2E/g,"."):mt,Vt=parseInt(yt,10);Nt.parseArrays||yt!==""?!isNaN(Vt)&&vt!==yt&&String(Vt)===yt&&Vt>=0&&Nt.parseArrays&&Vt<=Nt.arrayLimit?(jt=[])[Vt]=kt:yt!=="__proto__"&&(jt[yt]=kt):jt={0:kt}}kt=jt}return kt}(ft,st,ut,Ft)}};o.exports=function(it,st){var ut=function(pt){if(!pt)return et;if(pt.allowEmptyArrays!==void 0&&typeof pt.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(pt.decodeDotInKeys!==void 0&&typeof pt.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(pt.decoder!==null&&pt.decoder!==void 0&&typeof pt.decoder!="function")throw new TypeError("Decoder has to be a function.");if(pt.charset!==void 0&&pt.charset!=="utf-8"&&pt.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Rt=pt.charset===void 0?et.charset:pt.charset,Qt=pt.duplicates===void 0?et.duplicates:pt.duplicates;if(Qt!=="combine"&&Qt!=="first"&&Qt!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:pt.allowDots===void 0?pt.decodeDotInKeys===!0||et.allowDots:!!pt.allowDots,allowEmptyArrays:typeof pt.allowEmptyArrays=="boolean"?!!pt.allowEmptyArrays:et.allowEmptyArrays,allowPrototypes:typeof pt.allowPrototypes=="boolean"?pt.allowPrototypes:et.allowPrototypes,allowSparse:typeof pt.allowSparse=="boolean"?pt.allowSparse:et.allowSparse,arrayLimit:typeof pt.arrayLimit=="number"?pt.arrayLimit:et.arrayLimit,charset:Rt,charsetSentinel:typeof pt.charsetSentinel=="boolean"?pt.charsetSentinel:et.charsetSentinel,comma:typeof pt.comma=="boolean"?pt.comma:et.comma,decodeDotInKeys:typeof pt.decodeDotInKeys=="boolean"?pt.decodeDotInKeys:et.decodeDotInKeys,decoder:typeof pt.decoder=="function"?pt.decoder:et.decoder,delimiter:typeof pt.delimiter=="string"||j.isRegExp(pt.delimiter)?pt.delimiter:et.delimiter,depth:typeof pt.depth=="number"||pt.depth===!1?+pt.depth:et.depth,duplicates:Qt,ignoreQueryPrefix:pt.ignoreQueryPrefix===!0,interpretNumericEntities:typeof pt.interpretNumericEntities=="boolean"?pt.interpretNumericEntities:et.interpretNumericEntities,parameterLimit:typeof pt.parameterLimit=="number"?pt.parameterLimit:et.parameterLimit,parseArrays:pt.parseArrays!==!1,plainObjects:typeof pt.plainObjects=="boolean"?pt.plainObjects:et.plainObjects,strictNullHandling:typeof pt.strictNullHandling=="boolean"?pt.strictNullHandling:et.strictNullHandling}}(st);if(it===""||it==null)return ut.plainObjects?Object.create(null):{};for(var Ft=typeof it=="string"?function(pt,Rt){var Qt={__proto__:null},Nt=Rt.ignoreQueryPrefix?pt.replace(/^\?/,""):pt;Nt=Nt.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var At,kt=Rt.parameterLimit===1/0?void 0:Rt.parameterLimit,Bt=Nt.split(Rt.delimiter,kt),jt=-1,vt=Rt.charset;if(Rt.charsetSentinel)for(At=0;At-1&&(yt=_e(yt)?[yt]:yt);var Jt=$.call(Qt,mt);Jt&&Rt.duplicates==="combine"?Qt[mt]=j.combine(Qt[mt],yt):Jt&&Rt.duplicates!=="last"||(Qt[mt]=yt)}return Qt}(it,ut):it,dt=ut.plainObjects?Object.create(null):{},gt=Object.keys(Ft),Ut=0;Ut{var j=_(7575),$=_(1539),_e=_(1830),et=Object.prototype.hasOwnProperty,tt={brackets:function(Ut){return Ut+"[]"},comma:"comma",indices:function(Ut,ht){return Ut+"["+ht+"]"},repeat:function(Ut){return Ut}},nt=Array.isArray,rt=Array.prototype.push,it=function(Ut,ht){rt.apply(Ut,nt(ht)?ht:[ht])},st=Date.prototype.toISOString,ut=_e.default,Ft={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:$.encode,encodeValuesOnly:!1,format:ut,formatter:_e.formatters[ut],indices:!1,serializeDate:function(Ut){return st.call(Ut)},skipNulls:!1,strictNullHandling:!1},dt={},gt=function Ut(ht,ft,pt,Rt,Qt,Nt,At,kt,Bt,jt,vt,mt,yt,Vt,wt,Et,Jt,Pt){for(var Yt,Mt=ht,zt=Pt,qt=0,Xt=!1;(zt=zt.get(dt))!==void 0&&!Xt;){var xt=zt.get(ht);if(qt+=1,xt!==void 0){if(xt===qt)throw new RangeError("Cyclic object value");Xt=!0}zt.get(dt)===void 0&&(qt=0)}if(typeof jt=="function"?Mt=jt(ft,Mt):Mt instanceof Date?Mt=yt(Mt):pt==="comma"&&nt(Mt)&&(Mt=$.maybeMap(Mt,function(Tt){return Tt instanceof Date?yt(Tt):Tt})),Mt===null){if(Nt)return Bt&&!Et?Bt(ft,Ft.encoder,Jt,"key",Vt):ft;Mt=""}if(typeof(Yt=Mt)=="string"||typeof Yt=="number"||typeof Yt=="boolean"||typeof Yt=="symbol"||typeof Yt=="bigint"||$.isBuffer(Mt))return Bt?[wt(Et?ft:Bt(ft,Ft.encoder,Jt,"key",Vt))+"="+wt(Bt(Mt,Ft.encoder,Jt,"value",Vt))]:[wt(ft)+"="+wt(String(Mt))];var It,$t=[];if(Mt===void 0)return $t;if(pt==="comma"&&nt(Mt))Et&&Bt&&(Mt=$.maybeMap(Mt,Bt)),It=[{value:Mt.length>0?Mt.join(",")||null:void 0}];else if(nt(jt))It=jt;else{var un=Object.keys(Mt);It=vt?un.sort(vt):un}var tn=kt?ft.replace(/\./g,"%2E"):ft,an=Rt&&nt(Mt)&&Mt.length===1?tn+"[]":tn;if(Qt&&nt(Mt)&&Mt.length===0)return an+"[]";for(var Kt=0;Kt0?mt+vt:""}},1539:(o,s,_)=>{var j=_(1830),$=Object.prototype.hasOwnProperty,_e=Array.isArray,et=function(){for(var nt=[],rt=0;rt<256;++rt)nt.push("%"+((rt<16?"0":"")+rt.toString(16)).toUpperCase());return nt}(),tt=function(nt,rt){for(var it=rt&&rt.plainObjects?Object.create(null):{},st=0;st1;){var pt=ft.pop(),Rt=pt.obj[pt.prop];if(_e(Rt)){for(var Qt=[],Nt=0;Nt=1024?Ft.slice(gt,gt+1024):Ft,ht=[],ft=0;ft=48&&pt<=57||pt>=65&&pt<=90||pt>=97&&pt<=122||ut===j.RFC1738&&(pt===40||pt===41)?ht[ht.length]=Ut.charAt(ft):pt<128?ht[ht.length]=et[pt]:pt<2048?ht[ht.length]=et[192|pt>>6]+et[128|63&pt]:pt<55296||pt>=57344?ht[ht.length]=et[224|pt>>12]+et[128|pt>>6&63]+et[128|63&pt]:(ft+=1,pt=65536+((1023&pt)<<10|1023&Ut.charCodeAt(ft)),ht[ht.length]=et[240|pt>>18]+et[128|pt>>12&63]+et[128|pt>>6&63]+et[128|63&pt])}dt+=ht.join("")}return dt},isBuffer:function(nt){return!(!nt||typeof nt!="object")&&!!(nt.constructor&&nt.constructor.isBuffer&&nt.constructor.isBuffer(nt))},isRegExp:function(nt){return Object.prototype.toString.call(nt)==="[object RegExp]"},maybeMap:function(nt,rt){if(_e(nt)){for(var it=[],st=0;st{var s={};function _($,_e,et){et||(et=Error);var tt=function(nt){var rt,it;function st(ut,Ft,dt){return nt.call(this,function(gt,Ut,ht){return typeof _e=="string"?_e:_e(gt,Ut,ht)}(ut,Ft,dt))||this}return it=nt,(rt=st).prototype=Object.create(it.prototype),rt.prototype.constructor=rt,rt.__proto__=it,st}(et);tt.prototype.name=et.name,tt.prototype.code=$,s[$]=tt}function j($,_e){if(Array.isArray($)){var et=$.length;return $=$.map(function(tt){return String(tt)}),et>2?"one of ".concat(_e," ").concat($.slice(0,et-1).join(", "),", or ")+$[et-1]:et===2?"one of ".concat(_e," ").concat($[0]," or ").concat($[1]):"of ".concat(_e," ").concat($[0])}return"of ".concat(_e," ").concat(String($))}_("ERR_INVALID_OPT_VALUE",function($,_e){return'The value "'+_e+'" is invalid for option "'+$+'"'},TypeError),_("ERR_INVALID_ARG_TYPE",function($,_e,et){var tt,nt,rt;if(typeof _e=="string"&&(nt="not ",_e.substr(0,nt.length)===nt)?(tt="must not be",_e=_e.replace(/^not /,"")):tt="must be",function(st,ut,Ft){return(Ft===void 0||Ft>st.length)&&(Ft=st.length),st.substring(Ft-ut.length,Ft)===ut}($," argument"))rt="The ".concat($," ").concat(tt," ").concat(j(_e,"type"));else{var it=function(st,ut,Ft){return typeof Ft!="number"&&(Ft=0),!(Ft+ut.length>st.length)&&st.indexOf(ut,Ft)!==-1}($,".")?"property":"argument";rt='The "'.concat($,'" ').concat(it," ").concat(tt," ").concat(j(_e,"type"))}return rt+=". Received type ".concat(typeof et)},TypeError),_("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),_("ERR_METHOD_NOT_IMPLEMENTED",function($){return"The "+$+" method is not implemented"}),_("ERR_STREAM_PREMATURE_CLOSE","Premature close"),_("ERR_STREAM_DESTROYED",function($){return"Cannot call "+$+" after a stream was destroyed"}),_("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),_("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),_("ERR_STREAM_WRITE_AFTER_END","write after end"),_("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),_("ERR_UNKNOWN_ENCODING",function($){return"Unknown encoding: "+$},TypeError),_("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.F=s},1265:(o,s,_)=>{var j=Object.keys||function(ut){var Ft=[];for(var dt in ut)Ft.push(dt);return Ft};o.exports=rt;var $=_(8199),_e=_(5291);_(5615)(rt,$);for(var et=j(_e.prototype),tt=0;tt{o.exports=$;var j=_(9415);function $(_e){if(!(this instanceof $))return new $(_e);j.call(this,_e)}_(5615)($,j),$.prototype._transform=function(_e,et,tt){tt(null,_e)}},8199:(o,s,_)=>{var j;o.exports=kt,kt.ReadableState=At,_(46).EventEmitter;var $=function(xt,It){return xt.listeners(It).length},_e=_(4856),et=_(1048).Buffer,tt=(_.g!==void 0?_.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},nt,rt=_(3951);nt=rt&&rt.debuglog?rt.debuglog("stream"):function(){};var it,st,ut,Ft=_(82),dt=_(6527),gt=_(9952).getHighWaterMark,Ut=_(5699).F,ht=Ut.ERR_INVALID_ARG_TYPE,ft=Ut.ERR_STREAM_PUSH_AFTER_EOF,pt=Ut.ERR_METHOD_NOT_IMPLEMENTED,Rt=Ut.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;_(5615)(kt,_e);var Qt=dt.errorOrDestroy,Nt=["error","close","destroy","pause","resume"];function At(xt,It,$t){j=j||_(1265),xt=xt||{},typeof $t!="boolean"&&($t=It instanceof j),this.objectMode=!!xt.objectMode,$t&&(this.objectMode=this.objectMode||!!xt.readableObjectMode),this.highWaterMark=gt(this,xt,"readableHighWaterMark",$t),this.buffer=new Ft,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=xt.emitClose!==!1,this.autoDestroy=!!xt.autoDestroy,this.destroyed=!1,this.defaultEncoding=xt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,xt.encoding&&(it||(it=_(8888).StringDecoder),this.decoder=new it(xt.encoding),this.encoding=xt.encoding)}function kt(xt){if(j=j||_(1265),!(this instanceof kt))return new kt(xt);var It=this instanceof j;this._readableState=new At(xt,this,It),this.readable=!0,xt&&(typeof xt.read=="function"&&(this._read=xt.read),typeof xt.destroy=="function"&&(this._destroy=xt.destroy)),_e.call(this)}function Bt(xt,It,$t,un,tn){nt("readableAddChunk",It);var an,Kt=xt._readableState;if(It===null)Kt.reading=!1,function(Un,Bn){if(nt("onEofChunk"),!Bn.ended){if(Bn.decoder){var hn=Bn.decoder.end();hn&&hn.length&&(Bn.buffer.push(hn),Bn.length+=Bn.objectMode?1:hn.length)}Bn.ended=!0,Bn.sync?mt(Un):(Bn.needReadable=!1,Bn.emittedReadable||(Bn.emittedReadable=!0,yt(Un)))}}(xt,Kt);else if(tn||(an=function(Un,Bn){var hn;En=Bn,et.isBuffer(En)||En instanceof tt||typeof Bn=="string"||Bn===void 0||Un.objectMode||(hn=new ht("chunk",["string","Buffer","Uint8Array"],Bn));var En;return hn}(Kt,It)),an)Qt(xt,an);else if(Kt.objectMode||It&&It.length>0)if(typeof It=="string"||Kt.objectMode||Object.getPrototypeOf(It)===et.prototype||(It=function(Un){return et.from(Un)}(It)),un)Kt.endEmitted?Qt(xt,new Rt):jt(xt,Kt,It,!0);else if(Kt.ended)Qt(xt,new ft);else{if(Kt.destroyed)return!1;Kt.reading=!1,Kt.decoder&&!$t?(It=Kt.decoder.write(It),Kt.objectMode||It.length!==0?jt(xt,Kt,It,!1):Vt(xt,Kt)):jt(xt,Kt,It,!1)}else un||(Kt.reading=!1,Vt(xt,Kt));return!Kt.ended&&(Kt.lengthIt.highWaterMark&&(It.highWaterMark=function($t){return $t>=1073741824?$t=1073741824:($t--,$t|=$t>>>1,$t|=$t>>>2,$t|=$t>>>4,$t|=$t>>>8,$t|=$t>>>16,$t++),$t}(xt)),xt<=It.length?xt:It.ended?It.length:(It.needReadable=!0,0))}function mt(xt){var It=xt._readableState;nt("emitReadable",It.needReadable,It.emittedReadable),It.needReadable=!1,It.emittedReadable||(nt("emitReadable",It.flowing),It.emittedReadable=!0,process.nextTick(yt,xt))}function yt(xt){var It=xt._readableState;nt("emitReadable_",It.destroyed,It.length,It.ended),It.destroyed||!It.length&&!It.ended||(xt.emit("readable"),It.emittedReadable=!1),It.needReadable=!It.flowing&&!It.ended&&It.length<=It.highWaterMark,Yt(xt)}function Vt(xt,It){It.readingMore||(It.readingMore=!0,process.nextTick(wt,xt,It))}function wt(xt,It){for(;!It.reading&&!It.ended&&(It.length0,It.resumeScheduled&&!It.paused?It.flowing=!0:xt.listenerCount("data")>0&&xt.resume()}function Jt(xt){nt("readable nexttick read 0"),xt.read(0)}function Pt(xt,It){nt("resume",It.reading),It.reading||xt.read(0),It.resumeScheduled=!1,xt.emit("resume"),Yt(xt),It.flowing&&!It.reading&&xt.read(0)}function Yt(xt){var It=xt._readableState;for(nt("flow",It.flowing);It.flowing&&xt.read()!==null;);}function Mt(xt,It){return It.length===0?null:(It.objectMode?$t=It.buffer.shift():!xt||xt>=It.length?($t=It.decoder?It.buffer.join(""):It.buffer.length===1?It.buffer.first():It.buffer.concat(It.length),It.buffer.clear()):$t=It.buffer.consume(xt,It.decoder),$t);var $t}function zt(xt){var It=xt._readableState;nt("endReadable",It.endEmitted),It.endEmitted||(It.ended=!0,process.nextTick(qt,It,xt))}function qt(xt,It){if(nt("endReadableNT",xt.endEmitted,xt.length),!xt.endEmitted&&xt.length===0&&(xt.endEmitted=!0,It.readable=!1,It.emit("end"),xt.autoDestroy)){var $t=It._writableState;(!$t||$t.autoDestroy&&$t.finished)&&It.destroy()}}function Xt(xt,It){for(var $t=0,un=xt.length;$t=It.highWaterMark:It.length>0)||It.ended))return nt("read: emitReadable",It.length,It.ended),It.length===0&&It.ended?zt(this):mt(this),null;if((xt=vt(xt,It))===0&&It.ended)return It.length===0&&zt(this),null;var un,tn=It.needReadable;return nt("need readable",tn),(It.length===0||It.length-xt0?Mt(xt,It):null)===null?(It.needReadable=It.length<=It.highWaterMark,xt=0):(It.length-=xt,It.awaitDrain=0),It.length===0&&(It.ended||(It.needReadable=!0),$t!==xt&&It.ended&&zt(this)),un!==null&&this.emit("data",un),un},kt.prototype._read=function(xt){Qt(this,new pt("_read()"))},kt.prototype.pipe=function(xt,It){var $t=this,un=this._readableState;switch(un.pipesCount){case 0:un.pipes=xt;break;case 1:un.pipes=[un.pipes,xt];break;default:un.pipes.push(xt)}un.pipesCount+=1,nt("pipe count=%d opts=%j",un.pipesCount,It);var tn=(!It||It.end!==!1)&&xt!==process.stdout&&xt!==process.stderr?Kt:Zt;function an(Ot,sn){nt("onunpipe"),Ot===$t&&sn&&sn.hasUnpiped===!1&&(sn.hasUnpiped=!0,nt("cleanup"),xt.removeListener("close",Cn),xt.removeListener("finish",Tt),xt.removeListener("drain",Un),xt.removeListener("error",En),xt.removeListener("unpipe",an),$t.removeListener("end",Kt),$t.removeListener("end",Zt),$t.removeListener("data",hn),Bn=!0,!un.awaitDrain||xt._writableState&&!xt._writableState.needDrain||Un())}function Kt(){nt("onend"),xt.end()}un.endEmitted?process.nextTick(tn):$t.once("end",tn),xt.on("unpipe",an);var Un=function(Ot){return function(){var sn=Ot._readableState;nt("pipeOnDrain",sn.awaitDrain),sn.awaitDrain&&sn.awaitDrain--,sn.awaitDrain===0&&$(Ot,"data")&&(sn.flowing=!0,Yt(Ot))}}($t);xt.on("drain",Un);var Bn=!1;function hn(Ot){nt("ondata");var sn=xt.write(Ot);nt("dest.write",sn),sn===!1&&((un.pipesCount===1&&un.pipes===xt||un.pipesCount>1&&Xt(un.pipes,xt)!==-1)&&!Bn&&(nt("false write response, pause",un.awaitDrain),un.awaitDrain++),$t.pause())}function En(Ot){nt("onerror",Ot),Zt(),xt.removeListener("error",En),$(xt,"error")===0&&Qt(xt,Ot)}function Cn(){xt.removeListener("finish",Tt),Zt()}function Tt(){nt("onfinish"),xt.removeListener("close",Cn),Zt()}function Zt(){nt("unpipe"),$t.unpipe(xt)}return $t.on("data",hn),function(Ot,sn,ln){if(typeof Ot.prependListener=="function")return Ot.prependListener(sn,ln);Ot._events&&Ot._events[sn]?Array.isArray(Ot._events[sn])?Ot._events[sn].unshift(ln):Ot._events[sn]=[ln,Ot._events[sn]]:Ot.on(sn,ln)}(xt,"error",En),xt.once("close",Cn),xt.once("finish",Tt),xt.emit("pipe",$t),un.flowing||(nt("pipe resume"),$t.resume()),xt},kt.prototype.unpipe=function(xt){var It=this._readableState,$t={hasUnpiped:!1};if(It.pipesCount===0)return this;if(It.pipesCount===1)return xt&&xt!==It.pipes||(xt||(xt=It.pipes),It.pipes=null,It.pipesCount=0,It.flowing=!1,xt&&xt.emit("unpipe",this,$t)),this;if(!xt){var un=It.pipes,tn=It.pipesCount;It.pipes=null,It.pipesCount=0,It.flowing=!1;for(var an=0;an0,un.flowing!==!1&&this.resume()):xt==="readable"&&(un.endEmitted||un.readableListening||(un.readableListening=un.needReadable=!0,un.flowing=!1,un.emittedReadable=!1,nt("on readable",un.length,un.reading),un.length?mt(this):un.reading||process.nextTick(Jt,this))),$t},kt.prototype.addListener=kt.prototype.on,kt.prototype.removeListener=function(xt,It){var $t=_e.prototype.removeListener.call(this,xt,It);return xt==="readable"&&process.nextTick(Et,this),$t},kt.prototype.removeAllListeners=function(xt){var It=_e.prototype.removeAllListeners.apply(this,arguments);return xt!=="readable"&&xt!==void 0||process.nextTick(Et,this),It},kt.prototype.resume=function(){var xt=this._readableState;return xt.flowing||(nt("resume"),xt.flowing=!xt.readableListening,function(It,$t){$t.resumeScheduled||($t.resumeScheduled=!0,process.nextTick(Pt,It,$t))}(this,xt)),xt.paused=!1,this},kt.prototype.pause=function(){return nt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(nt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},kt.prototype.wrap=function(xt){var It=this,$t=this._readableState,un=!1;for(var tn in xt.on("end",function(){if(nt("wrapped end"),$t.decoder&&!$t.ended){var Kt=$t.decoder.end();Kt&&Kt.length&&It.push(Kt)}It.push(null)}),xt.on("data",function(Kt){nt("wrapped data"),$t.decoder&&(Kt=$t.decoder.write(Kt)),$t.objectMode&&Kt==null||($t.objectMode||Kt&&Kt.length)&&(It.push(Kt)||(un=!0,xt.pause()))}),xt)this[tn]===void 0&&typeof xt[tn]=="function"&&(this[tn]=function(Kt){return function(){return xt[Kt].apply(xt,arguments)}}(tn));for(var an=0;an{o.exports=it;var j=_(5699).F,$=j.ERR_METHOD_NOT_IMPLEMENTED,_e=j.ERR_MULTIPLE_CALLBACK,et=j.ERR_TRANSFORM_ALREADY_TRANSFORMING,tt=j.ERR_TRANSFORM_WITH_LENGTH_0,nt=_(1265);function rt(Ft,dt){var gt=this._transformState;gt.transforming=!1;var Ut=gt.writecb;if(Ut===null)return this.emit("error",new _e);gt.writechunk=null,gt.writecb=null,dt!=null&&this.push(dt),Ut(Ft);var ht=this._readableState;ht.reading=!1,(ht.needReadable||ht.length{function j(wt){var Et=this;this.next=null,this.entry=null,this.finish=function(){(function(Jt,Pt,Yt){var Mt=Jt.entry;for(Jt.entry=null;Mt;){var zt=Mt.callback;Pt.pendingcb--,zt(Yt),Mt=Mt.next}Pt.corkedRequestsFree.next=Jt})(Et,wt)}}var $;o.exports=kt,kt.WritableState=At;var _e={deprecate:_(6732)},et=_(4856),tt=_(1048).Buffer,nt=(_.g!==void 0?_.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},rt,it=_(6527),st=_(9952).getHighWaterMark,ut=_(5699).F,Ft=ut.ERR_INVALID_ARG_TYPE,dt=ut.ERR_METHOD_NOT_IMPLEMENTED,gt=ut.ERR_MULTIPLE_CALLBACK,Ut=ut.ERR_STREAM_CANNOT_PIPE,ht=ut.ERR_STREAM_DESTROYED,ft=ut.ERR_STREAM_NULL_VALUES,pt=ut.ERR_STREAM_WRITE_AFTER_END,Rt=ut.ERR_UNKNOWN_ENCODING,Qt=it.errorOrDestroy;function Nt(){}function At(wt,Et,Jt){$=$||_(1265),wt=wt||{},typeof Jt!="boolean"&&(Jt=Et instanceof $),this.objectMode=!!wt.objectMode,Jt&&(this.objectMode=this.objectMode||!!wt.writableObjectMode),this.highWaterMark=st(this,wt,"writableHighWaterMark",Jt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Pt=wt.decodeStrings===!1;this.decodeStrings=!Pt,this.defaultEncoding=wt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Yt){(function(Mt,zt){var qt=Mt._writableState,Xt=qt.sync,xt=qt.writecb;if(typeof xt!="function")throw new gt;if(function($t){$t.writing=!1,$t.writecb=null,$t.length-=$t.writelen,$t.writelen=0}(qt),zt)(function($t,un,tn,an,Kt){--un.pendingcb,tn?(process.nextTick(Kt,an),process.nextTick(Vt,$t,un),$t._writableState.errorEmitted=!0,Qt($t,an)):(Kt(an),$t._writableState.errorEmitted=!0,Qt($t,an),Vt($t,un))})(Mt,qt,Xt,zt,xt);else{var It=mt(qt)||Mt.destroyed;It||qt.corked||qt.bufferProcessing||!qt.bufferedRequest||vt(Mt,qt),Xt?process.nextTick(jt,Mt,qt,It,xt):jt(Mt,qt,It,xt)}})(Et,Yt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=wt.emitClose!==!1,this.autoDestroy=!!wt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new j(this)}function kt(wt){var Et=this instanceof($=$||_(1265));if(!Et&&!rt.call(kt,this))return new kt(wt);this._writableState=new At(wt,this,Et),this.writable=!0,wt&&(typeof wt.write=="function"&&(this._write=wt.write),typeof wt.writev=="function"&&(this._writev=wt.writev),typeof wt.destroy=="function"&&(this._destroy=wt.destroy),typeof wt.final=="function"&&(this._final=wt.final)),et.call(this)}function Bt(wt,Et,Jt,Pt,Yt,Mt,zt){Et.writelen=Pt,Et.writecb=zt,Et.writing=!0,Et.sync=!0,Et.destroyed?Et.onwrite(new ht("write")):Jt?wt._writev(Yt,Et.onwrite):wt._write(Yt,Mt,Et.onwrite),Et.sync=!1}function jt(wt,Et,Jt,Pt){Jt||function(Yt,Mt){Mt.length===0&&Mt.needDrain&&(Mt.needDrain=!1,Yt.emit("drain"))}(wt,Et),Et.pendingcb--,Pt(),Vt(wt,Et)}function vt(wt,Et){Et.bufferProcessing=!0;var Jt=Et.bufferedRequest;if(wt._writev&&Jt&&Jt.next){var Pt=Et.bufferedRequestCount,Yt=new Array(Pt),Mt=Et.corkedRequestsFree;Mt.entry=Jt;for(var zt=0,qt=!0;Jt;)Yt[zt]=Jt,Jt.isBuf||(qt=!1),Jt=Jt.next,zt+=1;Yt.allBuffers=qt,Bt(wt,Et,!0,Et.length,Yt,"",Mt.finish),Et.pendingcb++,Et.lastBufferedRequest=null,Mt.next?(Et.corkedRequestsFree=Mt.next,Mt.next=null):Et.corkedRequestsFree=new j(Et),Et.bufferedRequestCount=0}else{for(;Jt;){var Xt=Jt.chunk,xt=Jt.encoding,It=Jt.callback;if(Bt(wt,Et,!1,Et.objectMode?1:Xt.length,Xt,xt,It),Jt=Jt.next,Et.bufferedRequestCount--,Et.writing)break}Jt===null&&(Et.lastBufferedRequest=null)}Et.bufferedRequest=Jt,Et.bufferProcessing=!1}function mt(wt){return wt.ending&&wt.length===0&&wt.bufferedRequest===null&&!wt.finished&&!wt.writing}function yt(wt,Et){wt._final(function(Jt){Et.pendingcb--,Jt&&Qt(wt,Jt),Et.prefinished=!0,wt.emit("prefinish"),Vt(wt,Et)})}function Vt(wt,Et){var Jt=mt(Et);if(Jt&&(function(Yt,Mt){Mt.prefinished||Mt.finalCalled||(typeof Yt._final!="function"||Mt.destroyed?(Mt.prefinished=!0,Yt.emit("prefinish")):(Mt.pendingcb++,Mt.finalCalled=!0,process.nextTick(yt,Yt,Mt)))}(wt,Et),Et.pendingcb===0&&(Et.finished=!0,wt.emit("finish"),Et.autoDestroy))){var Pt=wt._readableState;(!Pt||Pt.autoDestroy&&Pt.endEmitted)&&wt.destroy()}return Jt}_(5615)(kt,et),At.prototype.getBuffer=function(){for(var wt=this.bufferedRequest,Et=[];wt;)Et.push(wt),wt=wt.next;return Et},function(){try{Object.defineProperty(At.prototype,"buffer",{get:_e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(rt=Function.prototype[Symbol.hasInstance],Object.defineProperty(kt,Symbol.hasInstance,{value:function(wt){return!!rt.call(this,wt)||this===kt&&wt&&wt._writableState instanceof At}})):rt=function(wt){return wt instanceof this},kt.prototype.pipe=function(){Qt(this,new Ut)},kt.prototype.write=function(wt,Et,Jt){var Pt,Yt=this._writableState,Mt=!1,zt=!Yt.objectMode&&(Pt=wt,tt.isBuffer(Pt)||Pt instanceof nt);return zt&&!tt.isBuffer(wt)&&(wt=function(qt){return tt.from(qt)}(wt)),typeof Et=="function"&&(Jt=Et,Et=null),zt?Et="buffer":Et||(Et=Yt.defaultEncoding),typeof Jt!="function"&&(Jt=Nt),Yt.ending?function(qt,Xt){var xt=new pt;Qt(qt,xt),process.nextTick(Xt,xt)}(this,Jt):(zt||function(qt,Xt,xt,It){var $t;return xt===null?$t=new ft:typeof xt=="string"||Xt.objectMode||($t=new Ft("chunk",["string","Buffer"],xt)),!$t||(Qt(qt,$t),process.nextTick(It,$t),!1)}(this,Yt,wt,Jt))&&(Yt.pendingcb++,Mt=function(qt,Xt,xt,It,$t,un){if(!xt){var tn=function(Bn,hn,En){return Bn.objectMode||Bn.decodeStrings===!1||typeof hn!="string"||(hn=tt.from(hn,En)),hn}(Xt,It,$t);It!==tn&&(xt=!0,$t="buffer",It=tn)}var an=Xt.objectMode?1:It.length;Xt.length+=an;var Kt=Xt.length-1))throw new Rt(wt);return this._writableState.defaultEncoding=wt,this},Object.defineProperty(kt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(kt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),kt.prototype._write=function(wt,Et,Jt){Jt(new dt("_write()"))},kt.prototype._writev=null,kt.prototype.end=function(wt,Et,Jt){var Pt=this._writableState;return typeof wt=="function"?(Jt=wt,wt=null,Et=null):typeof Et=="function"&&(Jt=Et,Et=null),wt!=null&&this.write(wt,Et),Pt.corked&&(Pt.corked=1,this.uncork()),Pt.ending||function(Yt,Mt,zt){Mt.ending=!0,Vt(Yt,Mt),zt&&(Mt.finished?process.nextTick(zt):Yt.once("finish",zt)),Mt.ended=!0,Yt.writable=!1}(this,Pt,Jt),this},Object.defineProperty(kt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(kt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(wt){this._writableState&&(this._writableState.destroyed=wt)}}),kt.prototype.destroy=it.destroy,kt.prototype._undestroy=it.undestroy,kt.prototype._destroy=function(wt,Et){Et(wt)}},534:(o,s,_)=>{var j;function $(ft,pt,Rt){return(pt=function(Qt){var Nt=function(At,kt){if(typeof At!="object"||At===null)return At;var Bt=At[Symbol.toPrimitive];if(Bt!==void 0){var jt=Bt.call(At,kt||"default");if(typeof jt!="object")return jt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(kt==="string"?String:Number)(At)}(Qt,"string");return typeof Nt=="symbol"?Nt:String(Nt)}(pt))in ft?Object.defineProperty(ft,pt,{value:Rt,enumerable:!0,configurable:!0,writable:!0}):ft[pt]=Rt,ft}var _e=_(4869),et=Symbol("lastResolve"),tt=Symbol("lastReject"),nt=Symbol("error"),rt=Symbol("ended"),it=Symbol("lastPromise"),st=Symbol("handlePromise"),ut=Symbol("stream");function Ft(ft,pt){return{value:ft,done:pt}}function dt(ft){var pt=ft[et];if(pt!==null){var Rt=ft[ut].read();Rt!==null&&(ft[it]=null,ft[et]=null,ft[tt]=null,pt(Ft(Rt,!1)))}}function gt(ft){process.nextTick(dt,ft)}var Ut=Object.getPrototypeOf(function(){}),ht=Object.setPrototypeOf(($(j={get stream(){return this[ut]},next:function(){var ft=this,pt=this[nt];if(pt!==null)return Promise.reject(pt);if(this[rt])return Promise.resolve(Ft(void 0,!0));if(this[ut].destroyed)return new Promise(function(At,kt){process.nextTick(function(){ft[nt]?kt(ft[nt]):At(Ft(void 0,!0))})});var Rt,Qt=this[it];if(Qt)Rt=new Promise(function(At,kt){return function(Bt,jt){At.then(function(){kt[rt]?Bt(Ft(void 0,!0)):kt[st](Bt,jt)},jt)}}(Qt,this));else{var Nt=this[ut].read();if(Nt!==null)return Promise.resolve(Ft(Nt,!1));Rt=new Promise(this[st])}return this[it]=Rt,Rt}},Symbol.asyncIterator,function(){return this}),$(j,"return",function(){var ft=this;return new Promise(function(pt,Rt){ft[ut].destroy(null,function(Qt){Qt?Rt(Qt):pt(Ft(void 0,!0))})})}),j),Ut);o.exports=function(ft){var pt,Rt=Object.create(ht,($(pt={},ut,{value:ft,writable:!0}),$(pt,et,{value:null,writable:!0}),$(pt,tt,{value:null,writable:!0}),$(pt,nt,{value:null,writable:!0}),$(pt,rt,{value:ft._readableState.endEmitted,writable:!0}),$(pt,st,{value:function(Qt,Nt){var At=Rt[ut].read();At?(Rt[it]=null,Rt[et]=null,Rt[tt]=null,Qt(Ft(At,!1))):(Rt[et]=Qt,Rt[tt]=Nt)},writable:!0}),pt));return Rt[it]=null,_e(ft,function(Qt){if(Qt&&Qt.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Nt=Rt[tt];return Nt!==null&&(Rt[it]=null,Rt[et]=null,Rt[tt]=null,Nt(Qt)),void(Rt[nt]=Qt)}var At=Rt[et];At!==null&&(Rt[it]=null,Rt[et]=null,Rt[tt]=null,At(Ft(void 0,!0))),Rt[rt]=!0}),ft.on("readable",gt.bind(null,Rt)),Rt}},82:(o,s,_)=>{function j(st,ut){var Ft=Object.keys(st);if(Object.getOwnPropertySymbols){var dt=Object.getOwnPropertySymbols(st);ut&&(dt=dt.filter(function(gt){return Object.getOwnPropertyDescriptor(st,gt).enumerable})),Ft.push.apply(Ft,dt)}return Ft}function $(st){for(var ut=1;ut0?this.tail.next=gt:this.head=gt,this.tail=gt,++this.length}},{key:"unshift",value:function(dt){var gt={data:dt,next:this.head};this.length===0&&(this.tail=gt),this.head=gt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var dt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,dt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(dt){if(this.length===0)return"";for(var gt=this.head,Ut=""+gt.data;gt=gt.next;)Ut+=dt+gt.data;return Ut}},{key:"concat",value:function(dt){if(this.length===0)return nt.alloc(0);for(var gt,Ut,ht,ft=nt.allocUnsafe(dt>>>0),pt=this.head,Rt=0;pt;)gt=pt.data,Ut=ft,ht=Rt,nt.prototype.copy.call(gt,Ut,ht),Rt+=pt.data.length,pt=pt.next;return ft}},{key:"consume",value:function(dt,gt){var Ut;return dtft.length?ft.length:dt;if(pt===ft.length?ht+=ft:ht+=ft.slice(0,dt),(dt-=pt)==0){pt===ft.length?(++Ut,gt.next?this.head=gt.next:this.head=this.tail=null):(this.head=gt,gt.data=ft.slice(pt));break}++Ut}return this.length-=Ut,ht}},{key:"_getBuffer",value:function(dt){var gt=nt.allocUnsafe(dt),Ut=this.head,ht=1;for(Ut.data.copy(gt),dt-=Ut.data.length;Ut=Ut.next;){var ft=Ut.data,pt=dt>ft.length?ft.length:dt;if(ft.copy(gt,gt.length-dt,0,pt),(dt-=pt)==0){pt===ft.length?(++ht,Ut.next?this.head=Ut.next:this.head=this.tail=null):(this.head=Ut,Ut.data=ft.slice(pt));break}++ht}return this.length-=ht,gt}},{key:it,value:function(dt,gt){return rt(this,$($({},gt),{},{depth:0,customInspect:!1}))}}])&&et(ut.prototype,Ft),Object.defineProperty(ut,"prototype",{writable:!1}),st}()},6527:o=>{function s($,_e){j($,_e),_($)}function _($){$._writableState&&!$._writableState.emitClose||$._readableState&&!$._readableState.emitClose||$.emit("close")}function j($,_e){$.emit("error",_e)}o.exports={destroy:function($,_e){var et=this,tt=this._readableState&&this._readableState.destroyed,nt=this._writableState&&this._writableState.destroyed;return tt||nt?(_e?_e($):$&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(j,this,$)):process.nextTick(j,this,$)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy($||null,function(rt){!_e&&rt?et._writableState?et._writableState.errorEmitted?process.nextTick(_,et):(et._writableState.errorEmitted=!0,process.nextTick(s,et,rt)):process.nextTick(s,et,rt):_e?(process.nextTick(_,et),_e(rt)):process.nextTick(_,et)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function($,_e){var et=$._readableState,tt=$._writableState;et&&et.autoDestroy||tt&&tt.autoDestroy?$.destroy(_e):$.emit("error",_e)}}},4869:(o,s,_)=>{var j=_(5699).F.ERR_STREAM_PREMATURE_CLOSE;function $(){}o.exports=function _e(et,tt,nt){if(typeof tt=="function")return _e(et,null,tt);tt||(tt={}),nt=function(pt){var Rt=!1;return function(){if(!Rt){Rt=!0;for(var Qt=arguments.length,Nt=new Array(Qt),At=0;At{o.exports=function(){throw new Error("Readable.from is not available in the browser")}},6815:(o,s,_)=>{var j,$=_(5699).F,_e=$.ERR_MISSING_ARGS,et=$.ERR_STREAM_DESTROYED;function tt(ut){if(ut)throw ut}function nt(ut,Ft,dt,gt){gt=function(ft){var pt=!1;return function(){pt||(pt=!0,ft.apply(void 0,arguments))}}(gt);var Ut=!1;ut.on("close",function(){Ut=!0}),j===void 0&&(j=_(4869)),j(ut,{readable:Ft,writable:dt},function(ft){if(ft)return gt(ft);Ut=!0,gt()});var ht=!1;return function(ft){if(!Ut&&!ht)return ht=!0,function(pt){return pt.setHeader&&typeof pt.abort=="function"}(ut)?ut.abort():typeof ut.destroy=="function"?ut.destroy():void gt(ft||new et("pipe"))}}function rt(ut){ut()}function it(ut,Ft){return ut.pipe(Ft)}function st(ut){return ut.length?typeof ut[ut.length-1]!="function"?tt:ut.pop():tt}o.exports=function(){for(var ut=arguments.length,Ft=new Array(ut),dt=0;dt0,function(Qt){gt||(gt=Qt),Qt&&ht.forEach(rt),Rt||(ht.forEach(rt),Ut(gt))})});return Ft.reduce(it)}},9952:(o,s,_)=>{var j=_(5699).F.ERR_INVALID_OPT_VALUE;o.exports={getHighWaterMark:function($,_e,et,tt){var nt=function(rt,it,st){return rt.highWaterMark!=null?rt.highWaterMark:it?rt[st]:null}(_e,tt,et);if(nt!=null){if(!isFinite(nt)||Math.floor(nt)!==nt||nt<0)throw new j(tt?et:"highWaterMark",nt);return Math.floor(nt)}return $.objectMode?16:16384}}},4856:(o,s,_)=>{o.exports=_(46).EventEmitter},4156:(o,s,_)=>{(s=o.exports=_(8199)).Stream=s,s.Readable=s,s.Writable=_(5291),s.Duplex=_(1265),s.Transform=_(9415),s.PassThrough=_(4421),s.finished=_(4869),s.pipeline=_(6815)},5636:(o,s,_)=>{var j=_(1048),$=j.Buffer;function _e(tt,nt){for(var rt in tt)nt[rt]=tt[rt]}function et(tt,nt,rt){return $(tt,nt,rt)}$.from&&$.alloc&&$.allocUnsafe&&$.allocUnsafeSlow?o.exports=j:(_e(j,s),s.Buffer=et),et.prototype=Object.create($.prototype),_e($,et),et.from=function(tt,nt,rt){if(typeof tt=="number")throw new TypeError("Argument must not be a number");return $(tt,nt,rt)},et.alloc=function(tt,nt,rt){if(typeof tt!="number")throw new TypeError("Argument must be a number");var it=$(tt);return nt!==void 0?typeof rt=="string"?it.fill(nt,rt):it.fill(nt):it.fill(0),it},et.allocUnsafe=function(tt){if(typeof tt!="number")throw new TypeError("Argument must be a number");return $(tt)},et.allocUnsafeSlow=function(tt){if(typeof tt!="number")throw new TypeError("Argument must be a number");return j.SlowBuffer(tt)}},1145:(o,s)=>{const{hasOwnProperty:_}=Object.prototype,j=dt();j.configure=dt,j.stringify=j,j.default=j,s.stringify=j,s.configure=dt,o.exports=j;const $=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function _e(gt){return gt.length<5e3&&!$.test(gt)?`"${gt}"`:JSON.stringify(gt)}function et(gt){if(gt.length>200)return gt.sort();for(let Ut=1;Utht;)gt[ft]=gt[ft-1],ft--;gt[ft]=ht}return gt}const tt=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function nt(gt){return tt.call(gt)!==void 0&>.length!==0}function rt(gt,Ut,ht){gt.length= 1`)}return ht===void 0?1/0:ht}function ut(gt){return gt===1?"1 item":gt+" items"}function Ft(gt){const Ut=new Set;for(const ht of gt)typeof ht!="string"&&typeof ht!="number"||Ut.add(String(ht));return Ut}function dt(gt){const Ut=function(jt){if(_.call(jt,"strict")){const vt=jt.strict;if(typeof vt!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(vt)return mt=>{let yt="Object can not safely be stringified. Received type "+typeof mt;throw typeof mt!="function"&&(yt+=` (${mt.toString()})`),new Error(yt)}}}(gt={...gt});Ut&&(gt.bigint===void 0&&(gt.bigint=!1),"circularValue"in gt||(gt.circularValue=Error));const ht=function(jt){if(_.call(jt,"circularValue")){const vt=jt.circularValue;if(typeof vt=="string")return`"${vt}"`;if(vt==null)return vt;if(vt===Error||vt===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(gt),ft=it(gt,"bigint"),pt=it(gt,"deterministic"),Rt=st(gt,"maximumDepth"),Qt=st(gt,"maximumBreadth");function Nt(jt,vt,mt,yt,Vt,wt){let Et=vt[jt];switch(typeof Et=="object"&&Et!==null&&typeof Et.toJSON=="function"&&(Et=Et.toJSON(jt)),Et=yt.call(vt,jt,Et),typeof Et){case"string":return _e(Et);case"object":{if(Et===null)return"null";if(mt.indexOf(Et)!==-1)return ht;let Jt="",Pt=",";const Yt=wt;if(Array.isArray(Et)){if(Et.length===0)return"[]";if(Rt{var j=process.platform==="win32",$=_(25);function _e(Ut,ht){for(var ft=[],pt=0;pt=0&&!Ut[pt];pt--);return ft===0&&pt===ht?Ut:ft>pt?[]:Ut.slice(ft,pt+1)}var tt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,nt=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,rt={};function it(Ut){var ht=tt.exec(Ut),ft=(ht[1]||"")+(ht[2]||""),pt=ht[3]||"",Rt=nt.exec(pt);return[ft,Rt[1],Rt[2],Rt[3]]}function st(Ut){var ht=tt.exec(Ut),ft=ht[1]||"",pt=!!ft&&ft[1]!==":";return{device:ft,isUnc:pt,isAbsolute:pt||!!ht[2],tail:ht[3]}}function ut(Ut){return"\\\\"+Ut.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}rt.resolve=function(){for(var Ut="",ht="",ft=!1,pt=arguments.length-1;pt>=-1;pt--){var Rt;if(pt>=0?Rt=arguments[pt]:Ut?(Rt={NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}["="+Ut])&&Rt.substr(0,3).toLowerCase()===Ut.toLowerCase()+"\\"||(Rt=Ut+"\\"):Rt=process.cwd(),!$.isString(Rt))throw new TypeError("Arguments to path.resolve must be strings");if(Rt){var Qt=st(Rt),Nt=Qt.device,At=Qt.isUnc,kt=Qt.isAbsolute,Bt=Qt.tail;if((!Nt||!Ut||Nt.toLowerCase()===Ut.toLowerCase())&&(Ut||(Ut=Nt),ft||(ht=Bt+"\\"+ht,ft=kt),Ut&&ft))break}}return At&&(Ut=ut(Ut)),Ut+(ft?"\\":"")+(ht=_e(ht.split(/[\\\/]+/),!ft).join("\\"))||"."},rt.normalize=function(Ut){var ht=st(Ut),ft=ht.device,pt=ht.isUnc,Rt=ht.isAbsolute,Qt=ht.tail,Nt=/[\\\/]$/.test(Qt);return(Qt=_e(Qt.split(/[\\\/]+/),!Rt).join("\\"))||Rt||(Qt="."),Qt&&Nt&&(Qt+="\\"),pt&&(ft=ut(ft)),ft+(Rt?"\\":"")+Qt},rt.isAbsolute=function(Ut){return st(Ut).isAbsolute},rt.join=function(){for(var Ut=[],ht=0;ht=-1&&!ht;ft--){var pt=ft>=0?arguments[ft]:process.cwd();if(!$.isString(pt))throw new TypeError("Arguments to path.resolve must be strings");pt&&(Ut=pt+"/"+Ut,ht=pt[0]==="/")}return(ht?"/":"")+(Ut=_e(Ut.split("/"),!ht).join("/"))||"."},dt.normalize=function(Ut){var ht=dt.isAbsolute(Ut),ft=Ut&&Ut[Ut.length-1]==="/";return(Ut=_e(Ut.split("/"),!ht).join("/"))||ht||(Ut="."),Ut&&ft&&(Ut+="/"),(ht?"/":"")+Ut},dt.isAbsolute=function(Ut){return Ut.charAt(0)==="/"},dt.join=function(){for(var Ut="",ht=0;ht{o.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},1830:o=>{var s=String.prototype.replace,_=/%20/g,j="RFC1738",$="RFC3986";o.exports={default:$,formatters:{RFC1738:function(_e){return s.call(_e,_,"+")},RFC3986:function(_e){return String(_e)}},RFC1738:j,RFC3986:$}},5810:(o,s,_)=>{var j=_(6623),$=_(6193),_e=_(1830);o.exports={formats:_e,parse:$,stringify:j}},6193:(o,s,_)=>{var j=_(1539),$=Object.prototype.hasOwnProperty,_e=Array.isArray,et={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:j.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},tt=function(it){return it.replace(/&#(\d+);/g,function(st,ut){return String.fromCharCode(parseInt(ut,10))})},nt=function(it,st){return it&&typeof it=="string"&&st.comma&&it.indexOf(",")>-1?it.split(","):it},rt=function(it,st,ut,Ft){if(it){var dt=ut.allowDots?it.replace(/\.([^.[]+)/g,"[$1]"):it,gt=/(\[[^[\]]*])/g,Ut=ut.depth>0&&/(\[[^[\]]*])/.exec(dt),ht=Ut?dt.slice(0,Ut.index):dt,ft=[];if(ht){if(!ut.plainObjects&&$.call(Object.prototype,ht)&&!ut.allowPrototypes)return;ft.push(ht)}for(var pt=0;ut.depth>0&&(Ut=gt.exec(dt))!==null&&pt=0;--Bt){var jt,vt=Rt[Bt];if(vt==="[]"&&Nt.parseArrays)jt=Nt.allowEmptyArrays&&(kt===""||Nt.strictNullHandling&&kt===null)?[]:[].concat(kt);else{jt=Nt.plainObjects?Object.create(null):{};var mt=vt.charAt(0)==="["&&vt.charAt(vt.length-1)==="]"?vt.slice(1,-1):vt,yt=Nt.decodeDotInKeys?mt.replace(/%2E/g,"."):mt,Vt=parseInt(yt,10);Nt.parseArrays||yt!==""?!isNaN(Vt)&&vt!==yt&&String(Vt)===yt&&Vt>=0&&Nt.parseArrays&&Vt<=Nt.arrayLimit?(jt=[])[Vt]=kt:yt!=="__proto__"&&(jt[yt]=kt):jt={0:kt}}kt=jt}return kt}(ft,st,ut,Ft)}};o.exports=function(it,st){var ut=function(pt){if(!pt)return et;if(pt.allowEmptyArrays!==void 0&&typeof pt.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(pt.decodeDotInKeys!==void 0&&typeof pt.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(pt.decoder!==null&&pt.decoder!==void 0&&typeof pt.decoder!="function")throw new TypeError("Decoder has to be a function.");if(pt.charset!==void 0&&pt.charset!=="utf-8"&&pt.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Rt=pt.charset===void 0?et.charset:pt.charset,Qt=pt.duplicates===void 0?et.duplicates:pt.duplicates;if(Qt!=="combine"&&Qt!=="first"&&Qt!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:pt.allowDots===void 0?pt.decodeDotInKeys===!0||et.allowDots:!!pt.allowDots,allowEmptyArrays:typeof pt.allowEmptyArrays=="boolean"?!!pt.allowEmptyArrays:et.allowEmptyArrays,allowPrototypes:typeof pt.allowPrototypes=="boolean"?pt.allowPrototypes:et.allowPrototypes,allowSparse:typeof pt.allowSparse=="boolean"?pt.allowSparse:et.allowSparse,arrayLimit:typeof pt.arrayLimit=="number"?pt.arrayLimit:et.arrayLimit,charset:Rt,charsetSentinel:typeof pt.charsetSentinel=="boolean"?pt.charsetSentinel:et.charsetSentinel,comma:typeof pt.comma=="boolean"?pt.comma:et.comma,decodeDotInKeys:typeof pt.decodeDotInKeys=="boolean"?pt.decodeDotInKeys:et.decodeDotInKeys,decoder:typeof pt.decoder=="function"?pt.decoder:et.decoder,delimiter:typeof pt.delimiter=="string"||j.isRegExp(pt.delimiter)?pt.delimiter:et.delimiter,depth:typeof pt.depth=="number"||pt.depth===!1?+pt.depth:et.depth,duplicates:Qt,ignoreQueryPrefix:pt.ignoreQueryPrefix===!0,interpretNumericEntities:typeof pt.interpretNumericEntities=="boolean"?pt.interpretNumericEntities:et.interpretNumericEntities,parameterLimit:typeof pt.parameterLimit=="number"?pt.parameterLimit:et.parameterLimit,parseArrays:pt.parseArrays!==!1,plainObjects:typeof pt.plainObjects=="boolean"?pt.plainObjects:et.plainObjects,strictNullHandling:typeof pt.strictNullHandling=="boolean"?pt.strictNullHandling:et.strictNullHandling}}(st);if(it===""||it==null)return ut.plainObjects?Object.create(null):{};for(var Ft=typeof it=="string"?function(pt,Rt){var Qt={__proto__:null},Nt=Rt.ignoreQueryPrefix?pt.replace(/^\?/,""):pt;Nt=Nt.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var At,kt=Rt.parameterLimit===1/0?void 0:Rt.parameterLimit,Bt=Nt.split(Rt.delimiter,kt),jt=-1,vt=Rt.charset;if(Rt.charsetSentinel)for(At=0;At-1&&(yt=_e(yt)?[yt]:yt);var Jt=$.call(Qt,mt);Jt&&Rt.duplicates==="combine"?Qt[mt]=j.combine(Qt[mt],yt):Jt&&Rt.duplicates!=="last"||(Qt[mt]=yt)}return Qt}(it,ut):it,dt=ut.plainObjects?Object.create(null):{},gt=Object.keys(Ft),Ut=0;Ut{var j=_(7575),$=_(1539),_e=_(1830),et=Object.prototype.hasOwnProperty,tt={brackets:function(Ut){return Ut+"[]"},comma:"comma",indices:function(Ut,ht){return Ut+"["+ht+"]"},repeat:function(Ut){return Ut}},nt=Array.isArray,rt=Array.prototype.push,it=function(Ut,ht){rt.apply(Ut,nt(ht)?ht:[ht])},st=Date.prototype.toISOString,ut=_e.default,Ft={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:$.encode,encodeValuesOnly:!1,format:ut,formatter:_e.formatters[ut],indices:!1,serializeDate:function(Ut){return st.call(Ut)},skipNulls:!1,strictNullHandling:!1},dt={},gt=function Ut(ht,ft,pt,Rt,Qt,Nt,At,kt,Bt,jt,vt,mt,yt,Vt,wt,Et,Jt,Pt){for(var Yt,Mt=ht,zt=Pt,qt=0,Xt=!1;(zt=zt.get(dt))!==void 0&&!Xt;){var xt=zt.get(ht);if(qt+=1,xt!==void 0){if(xt===qt)throw new RangeError("Cyclic object value");Xt=!0}zt.get(dt)===void 0&&(qt=0)}if(typeof jt=="function"?Mt=jt(ft,Mt):Mt instanceof Date?Mt=yt(Mt):pt==="comma"&&nt(Mt)&&(Mt=$.maybeMap(Mt,function(Tt){return Tt instanceof Date?yt(Tt):Tt})),Mt===null){if(Nt)return Bt&&!Et?Bt(ft,Ft.encoder,Jt,"key",Vt):ft;Mt=""}if(typeof(Yt=Mt)=="string"||typeof Yt=="number"||typeof Yt=="boolean"||typeof Yt=="symbol"||typeof Yt=="bigint"||$.isBuffer(Mt))return Bt?[wt(Et?ft:Bt(ft,Ft.encoder,Jt,"key",Vt))+"="+wt(Bt(Mt,Ft.encoder,Jt,"value",Vt))]:[wt(ft)+"="+wt(String(Mt))];var It,$t=[];if(Mt===void 0)return $t;if(pt==="comma"&&nt(Mt))Et&&Bt&&(Mt=$.maybeMap(Mt,Bt)),It=[{value:Mt.length>0?Mt.join(",")||null:void 0}];else if(nt(jt))It=jt;else{var un=Object.keys(Mt);It=vt?un.sort(vt):un}var tn=kt?ft.replace(/\./g,"%2E"):ft,an=Rt&&nt(Mt)&&Mt.length===1?tn+"[]":tn;if(Qt&&nt(Mt)&&Mt.length===0)return an+"[]";for(var Kt=0;Kt0?mt+vt:""}},1539:(o,s,_)=>{var j=_(1830),$=Object.prototype.hasOwnProperty,_e=Array.isArray,et=function(){for(var nt=[],rt=0;rt<256;++rt)nt.push("%"+((rt<16?"0":"")+rt.toString(16)).toUpperCase());return nt}(),tt=function(nt,rt){for(var it=rt&&rt.plainObjects?Object.create(null):{},st=0;st1;){var pt=ft.pop(),Rt=pt.obj[pt.prop];if(_e(Rt)){for(var Qt=[],Nt=0;Nt=1024?Ft.slice(gt,gt+1024):Ft,ht=[],ft=0;ft=48&&pt<=57||pt>=65&&pt<=90||pt>=97&&pt<=122||ut===j.RFC1738&&(pt===40||pt===41)?ht[ht.length]=Ut.charAt(ft):pt<128?ht[ht.length]=et[pt]:pt<2048?ht[ht.length]=et[192|pt>>6]+et[128|63&pt]:pt<55296||pt>=57344?ht[ht.length]=et[224|pt>>12]+et[128|pt>>6&63]+et[128|63&pt]:(ft+=1,pt=65536+((1023&pt)<<10|1023&Ut.charCodeAt(ft)),ht[ht.length]=et[240|pt>>18]+et[128|pt>>12&63]+et[128|pt>>6&63]+et[128|63&pt])}dt+=ht.join("")}return dt},isBuffer:function(nt){return!(!nt||typeof nt!="object")&&!!(nt.constructor&&nt.constructor.isBuffer&&nt.constructor.isBuffer(nt))},isRegExp:function(nt){return Object.prototype.toString.call(nt)==="[object RegExp]"},maybeMap:function(nt,rt){if(_e(nt)){for(var it=[],st=0;st{var s={};function _($,_e,et){et||(et=Error);var tt=function(nt){var rt,it;function st(ut,Ft,dt){return nt.call(this,function(gt,Ut,ht){return typeof _e=="string"?_e:_e(gt,Ut,ht)}(ut,Ft,dt))||this}return it=nt,(rt=st).prototype=Object.create(it.prototype),rt.prototype.constructor=rt,rt.__proto__=it,st}(et);tt.prototype.name=et.name,tt.prototype.code=$,s[$]=tt}function j($,_e){if(Array.isArray($)){var et=$.length;return $=$.map(function(tt){return String(tt)}),et>2?"one of ".concat(_e," ").concat($.slice(0,et-1).join(", "),", or ")+$[et-1]:et===2?"one of ".concat(_e," ").concat($[0]," or ").concat($[1]):"of ".concat(_e," ").concat($[0])}return"of ".concat(_e," ").concat(String($))}_("ERR_INVALID_OPT_VALUE",function($,_e){return'The value "'+_e+'" is invalid for option "'+$+'"'},TypeError),_("ERR_INVALID_ARG_TYPE",function($,_e,et){var tt,nt,rt;if(typeof _e=="string"&&(nt="not ",_e.substr(0,nt.length)===nt)?(tt="must not be",_e=_e.replace(/^not /,"")):tt="must be",function(st,ut,Ft){return(Ft===void 0||Ft>st.length)&&(Ft=st.length),st.substring(Ft-ut.length,Ft)===ut}($," argument"))rt="The ".concat($," ").concat(tt," ").concat(j(_e,"type"));else{var it=function(st,ut,Ft){return typeof Ft!="number"&&(Ft=0),!(Ft+ut.length>st.length)&&st.indexOf(ut,Ft)!==-1}($,".")?"property":"argument";rt='The "'.concat($,'" ').concat(it," ").concat(tt," ").concat(j(_e,"type"))}return rt+=". Received type ".concat(typeof et)},TypeError),_("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),_("ERR_METHOD_NOT_IMPLEMENTED",function($){return"The "+$+" method is not implemented"}),_("ERR_STREAM_PREMATURE_CLOSE","Premature close"),_("ERR_STREAM_DESTROYED",function($){return"Cannot call "+$+" after a stream was destroyed"}),_("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),_("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),_("ERR_STREAM_WRITE_AFTER_END","write after end"),_("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),_("ERR_UNKNOWN_ENCODING",function($){return"Unknown encoding: "+$},TypeError),_("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.F=s},1265:(o,s,_)=>{var j=Object.keys||function(ut){var Ft=[];for(var dt in ut)Ft.push(dt);return Ft};o.exports=rt;var $=_(8199),_e=_(5291);_(5615)(rt,$);for(var et=j(_e.prototype),tt=0;tt{o.exports=$;var j=_(9415);function $(_e){if(!(this instanceof $))return new $(_e);j.call(this,_e)}_(5615)($,j),$.prototype._transform=function(_e,et,tt){tt(null,_e)}},8199:(o,s,_)=>{var j;o.exports=kt,kt.ReadableState=At,_(46).EventEmitter;var $=function(xt,It){return xt.listeners(It).length},_e=_(4856),et=_(1048).Buffer,tt=(_.g!==void 0?_.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},nt,rt=_(3951);nt=rt&&rt.debuglog?rt.debuglog("stream"):function(){};var it,st,ut,Ft=_(82),dt=_(6527),gt=_(9952).getHighWaterMark,Ut=_(5699).F,ht=Ut.ERR_INVALID_ARG_TYPE,ft=Ut.ERR_STREAM_PUSH_AFTER_EOF,pt=Ut.ERR_METHOD_NOT_IMPLEMENTED,Rt=Ut.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;_(5615)(kt,_e);var Qt=dt.errorOrDestroy,Nt=["error","close","destroy","pause","resume"];function At(xt,It,$t){j=j||_(1265),xt=xt||{},typeof $t!="boolean"&&($t=It instanceof j),this.objectMode=!!xt.objectMode,$t&&(this.objectMode=this.objectMode||!!xt.readableObjectMode),this.highWaterMark=gt(this,xt,"readableHighWaterMark",$t),this.buffer=new Ft,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=xt.emitClose!==!1,this.autoDestroy=!!xt.autoDestroy,this.destroyed=!1,this.defaultEncoding=xt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,xt.encoding&&(it||(it=_(8888).StringDecoder),this.decoder=new it(xt.encoding),this.encoding=xt.encoding)}function kt(xt){if(j=j||_(1265),!(this instanceof kt))return new kt(xt);var It=this instanceof j;this._readableState=new At(xt,this,It),this.readable=!0,xt&&(typeof xt.read=="function"&&(this._read=xt.read),typeof xt.destroy=="function"&&(this._destroy=xt.destroy)),_e.call(this)}function Bt(xt,It,$t,un,tn){nt("readableAddChunk",It);var an,Kt=xt._readableState;if(It===null)Kt.reading=!1,function(Un,Bn){if(nt("onEofChunk"),!Bn.ended){if(Bn.decoder){var hn=Bn.decoder.end();hn&&hn.length&&(Bn.buffer.push(hn),Bn.length+=Bn.objectMode?1:hn.length)}Bn.ended=!0,Bn.sync?mt(Un):(Bn.needReadable=!1,Bn.emittedReadable||(Bn.emittedReadable=!0,yt(Un)))}}(xt,Kt);else if(tn||(an=function(Un,Bn){var hn;En=Bn,et.isBuffer(En)||En instanceof tt||typeof Bn=="string"||Bn===void 0||Un.objectMode||(hn=new ht("chunk",["string","Buffer","Uint8Array"],Bn));var En;return hn}(Kt,It)),an)Qt(xt,an);else if(Kt.objectMode||It&&It.length>0)if(typeof It=="string"||Kt.objectMode||Object.getPrototypeOf(It)===et.prototype||(It=function(Un){return et.from(Un)}(It)),un)Kt.endEmitted?Qt(xt,new Rt):jt(xt,Kt,It,!0);else if(Kt.ended)Qt(xt,new ft);else{if(Kt.destroyed)return!1;Kt.reading=!1,Kt.decoder&&!$t?(It=Kt.decoder.write(It),Kt.objectMode||It.length!==0?jt(xt,Kt,It,!1):Vt(xt,Kt)):jt(xt,Kt,It,!1)}else un||(Kt.reading=!1,Vt(xt,Kt));return!Kt.ended&&(Kt.lengthIt.highWaterMark&&(It.highWaterMark=function($t){return $t>=1073741824?$t=1073741824:($t--,$t|=$t>>>1,$t|=$t>>>2,$t|=$t>>>4,$t|=$t>>>8,$t|=$t>>>16,$t++),$t}(xt)),xt<=It.length?xt:It.ended?It.length:(It.needReadable=!0,0))}function mt(xt){var It=xt._readableState;nt("emitReadable",It.needReadable,It.emittedReadable),It.needReadable=!1,It.emittedReadable||(nt("emitReadable",It.flowing),It.emittedReadable=!0,process.nextTick(yt,xt))}function yt(xt){var It=xt._readableState;nt("emitReadable_",It.destroyed,It.length,It.ended),It.destroyed||!It.length&&!It.ended||(xt.emit("readable"),It.emittedReadable=!1),It.needReadable=!It.flowing&&!It.ended&&It.length<=It.highWaterMark,Yt(xt)}function Vt(xt,It){It.readingMore||(It.readingMore=!0,process.nextTick(wt,xt,It))}function wt(xt,It){for(;!It.reading&&!It.ended&&(It.length0,It.resumeScheduled&&!It.paused?It.flowing=!0:xt.listenerCount("data")>0&&xt.resume()}function Jt(xt){nt("readable nexttick read 0"),xt.read(0)}function Pt(xt,It){nt("resume",It.reading),It.reading||xt.read(0),It.resumeScheduled=!1,xt.emit("resume"),Yt(xt),It.flowing&&!It.reading&&xt.read(0)}function Yt(xt){var It=xt._readableState;for(nt("flow",It.flowing);It.flowing&&xt.read()!==null;);}function Mt(xt,It){return It.length===0?null:(It.objectMode?$t=It.buffer.shift():!xt||xt>=It.length?($t=It.decoder?It.buffer.join(""):It.buffer.length===1?It.buffer.first():It.buffer.concat(It.length),It.buffer.clear()):$t=It.buffer.consume(xt,It.decoder),$t);var $t}function zt(xt){var It=xt._readableState;nt("endReadable",It.endEmitted),It.endEmitted||(It.ended=!0,process.nextTick(qt,It,xt))}function qt(xt,It){if(nt("endReadableNT",xt.endEmitted,xt.length),!xt.endEmitted&&xt.length===0&&(xt.endEmitted=!0,It.readable=!1,It.emit("end"),xt.autoDestroy)){var $t=It._writableState;(!$t||$t.autoDestroy&&$t.finished)&&It.destroy()}}function Xt(xt,It){for(var $t=0,un=xt.length;$t=It.highWaterMark:It.length>0)||It.ended))return nt("read: emitReadable",It.length,It.ended),It.length===0&&It.ended?zt(this):mt(this),null;if((xt=vt(xt,It))===0&&It.ended)return It.length===0&&zt(this),null;var un,tn=It.needReadable;return nt("need readable",tn),(It.length===0||It.length-xt0?Mt(xt,It):null)===null?(It.needReadable=It.length<=It.highWaterMark,xt=0):(It.length-=xt,It.awaitDrain=0),It.length===0&&(It.ended||(It.needReadable=!0),$t!==xt&&It.ended&&zt(this)),un!==null&&this.emit("data",un),un},kt.prototype._read=function(xt){Qt(this,new pt("_read()"))},kt.prototype.pipe=function(xt,It){var $t=this,un=this._readableState;switch(un.pipesCount){case 0:un.pipes=xt;break;case 1:un.pipes=[un.pipes,xt];break;default:un.pipes.push(xt)}un.pipesCount+=1,nt("pipe count=%d opts=%j",un.pipesCount,It);var tn=(!It||It.end!==!1)&&xt!==process.stdout&&xt!==process.stderr?Kt:Zt;function an(Ot,sn){nt("onunpipe"),Ot===$t&&sn&&sn.hasUnpiped===!1&&(sn.hasUnpiped=!0,nt("cleanup"),xt.removeListener("close",Cn),xt.removeListener("finish",Tt),xt.removeListener("drain",Un),xt.removeListener("error",En),xt.removeListener("unpipe",an),$t.removeListener("end",Kt),$t.removeListener("end",Zt),$t.removeListener("data",hn),Bn=!0,!un.awaitDrain||xt._writableState&&!xt._writableState.needDrain||Un())}function Kt(){nt("onend"),xt.end()}un.endEmitted?process.nextTick(tn):$t.once("end",tn),xt.on("unpipe",an);var Un=function(Ot){return function(){var sn=Ot._readableState;nt("pipeOnDrain",sn.awaitDrain),sn.awaitDrain&&sn.awaitDrain--,sn.awaitDrain===0&&$(Ot,"data")&&(sn.flowing=!0,Yt(Ot))}}($t);xt.on("drain",Un);var Bn=!1;function hn(Ot){nt("ondata");var sn=xt.write(Ot);nt("dest.write",sn),sn===!1&&((un.pipesCount===1&&un.pipes===xt||un.pipesCount>1&&Xt(un.pipes,xt)!==-1)&&!Bn&&(nt("false write response, pause",un.awaitDrain),un.awaitDrain++),$t.pause())}function En(Ot){nt("onerror",Ot),Zt(),xt.removeListener("error",En),$(xt,"error")===0&&Qt(xt,Ot)}function Cn(){xt.removeListener("finish",Tt),Zt()}function Tt(){nt("onfinish"),xt.removeListener("close",Cn),Zt()}function Zt(){nt("unpipe"),$t.unpipe(xt)}return $t.on("data",hn),function(Ot,sn,ln){if(typeof Ot.prependListener=="function")return Ot.prependListener(sn,ln);Ot._events&&Ot._events[sn]?Array.isArray(Ot._events[sn])?Ot._events[sn].unshift(ln):Ot._events[sn]=[ln,Ot._events[sn]]:Ot.on(sn,ln)}(xt,"error",En),xt.once("close",Cn),xt.once("finish",Tt),xt.emit("pipe",$t),un.flowing||(nt("pipe resume"),$t.resume()),xt},kt.prototype.unpipe=function(xt){var It=this._readableState,$t={hasUnpiped:!1};if(It.pipesCount===0)return this;if(It.pipesCount===1)return xt&&xt!==It.pipes||(xt||(xt=It.pipes),It.pipes=null,It.pipesCount=0,It.flowing=!1,xt&&xt.emit("unpipe",this,$t)),this;if(!xt){var un=It.pipes,tn=It.pipesCount;It.pipes=null,It.pipesCount=0,It.flowing=!1;for(var an=0;an0,un.flowing!==!1&&this.resume()):xt==="readable"&&(un.endEmitted||un.readableListening||(un.readableListening=un.needReadable=!0,un.flowing=!1,un.emittedReadable=!1,nt("on readable",un.length,un.reading),un.length?mt(this):un.reading||process.nextTick(Jt,this))),$t},kt.prototype.addListener=kt.prototype.on,kt.prototype.removeListener=function(xt,It){var $t=_e.prototype.removeListener.call(this,xt,It);return xt==="readable"&&process.nextTick(Et,this),$t},kt.prototype.removeAllListeners=function(xt){var It=_e.prototype.removeAllListeners.apply(this,arguments);return xt!=="readable"&&xt!==void 0||process.nextTick(Et,this),It},kt.prototype.resume=function(){var xt=this._readableState;return xt.flowing||(nt("resume"),xt.flowing=!xt.readableListening,function(It,$t){$t.resumeScheduled||($t.resumeScheduled=!0,process.nextTick(Pt,It,$t))}(this,xt)),xt.paused=!1,this},kt.prototype.pause=function(){return nt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(nt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},kt.prototype.wrap=function(xt){var It=this,$t=this._readableState,un=!1;for(var tn in xt.on("end",function(){if(nt("wrapped end"),$t.decoder&&!$t.ended){var Kt=$t.decoder.end();Kt&&Kt.length&&It.push(Kt)}It.push(null)}),xt.on("data",function(Kt){nt("wrapped data"),$t.decoder&&(Kt=$t.decoder.write(Kt)),$t.objectMode&&Kt==null||($t.objectMode||Kt&&Kt.length)&&(It.push(Kt)||(un=!0,xt.pause()))}),xt)this[tn]===void 0&&typeof xt[tn]=="function"&&(this[tn]=function(Kt){return function(){return xt[Kt].apply(xt,arguments)}}(tn));for(var an=0;an{o.exports=it;var j=_(5699).F,$=j.ERR_METHOD_NOT_IMPLEMENTED,_e=j.ERR_MULTIPLE_CALLBACK,et=j.ERR_TRANSFORM_ALREADY_TRANSFORMING,tt=j.ERR_TRANSFORM_WITH_LENGTH_0,nt=_(1265);function rt(Ft,dt){var gt=this._transformState;gt.transforming=!1;var Ut=gt.writecb;if(Ut===null)return this.emit("error",new _e);gt.writechunk=null,gt.writecb=null,dt!=null&&this.push(dt),Ut(Ft);var ht=this._readableState;ht.reading=!1,(ht.needReadable||ht.length{function j(wt){var Et=this;this.next=null,this.entry=null,this.finish=function(){(function(Jt,Pt,Yt){var Mt=Jt.entry;for(Jt.entry=null;Mt;){var zt=Mt.callback;Pt.pendingcb--,zt(Yt),Mt=Mt.next}Pt.corkedRequestsFree.next=Jt})(Et,wt)}}var $;o.exports=kt,kt.WritableState=At;var _e={deprecate:_(6732)},et=_(4856),tt=_(1048).Buffer,nt=(_.g!==void 0?_.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},rt,it=_(6527),st=_(9952).getHighWaterMark,ut=_(5699).F,Ft=ut.ERR_INVALID_ARG_TYPE,dt=ut.ERR_METHOD_NOT_IMPLEMENTED,gt=ut.ERR_MULTIPLE_CALLBACK,Ut=ut.ERR_STREAM_CANNOT_PIPE,ht=ut.ERR_STREAM_DESTROYED,ft=ut.ERR_STREAM_NULL_VALUES,pt=ut.ERR_STREAM_WRITE_AFTER_END,Rt=ut.ERR_UNKNOWN_ENCODING,Qt=it.errorOrDestroy;function Nt(){}function At(wt,Et,Jt){$=$||_(1265),wt=wt||{},typeof Jt!="boolean"&&(Jt=Et instanceof $),this.objectMode=!!wt.objectMode,Jt&&(this.objectMode=this.objectMode||!!wt.writableObjectMode),this.highWaterMark=st(this,wt,"writableHighWaterMark",Jt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Pt=wt.decodeStrings===!1;this.decodeStrings=!Pt,this.defaultEncoding=wt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Yt){(function(Mt,zt){var qt=Mt._writableState,Xt=qt.sync,xt=qt.writecb;if(typeof xt!="function")throw new gt;if(function($t){$t.writing=!1,$t.writecb=null,$t.length-=$t.writelen,$t.writelen=0}(qt),zt)(function($t,un,tn,an,Kt){--un.pendingcb,tn?(process.nextTick(Kt,an),process.nextTick(Vt,$t,un),$t._writableState.errorEmitted=!0,Qt($t,an)):(Kt(an),$t._writableState.errorEmitted=!0,Qt($t,an),Vt($t,un))})(Mt,qt,Xt,zt,xt);else{var It=mt(qt)||Mt.destroyed;It||qt.corked||qt.bufferProcessing||!qt.bufferedRequest||vt(Mt,qt),Xt?process.nextTick(jt,Mt,qt,It,xt):jt(Mt,qt,It,xt)}})(Et,Yt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=wt.emitClose!==!1,this.autoDestroy=!!wt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new j(this)}function kt(wt){var Et=this instanceof($=$||_(1265));if(!Et&&!rt.call(kt,this))return new kt(wt);this._writableState=new At(wt,this,Et),this.writable=!0,wt&&(typeof wt.write=="function"&&(this._write=wt.write),typeof wt.writev=="function"&&(this._writev=wt.writev),typeof wt.destroy=="function"&&(this._destroy=wt.destroy),typeof wt.final=="function"&&(this._final=wt.final)),et.call(this)}function Bt(wt,Et,Jt,Pt,Yt,Mt,zt){Et.writelen=Pt,Et.writecb=zt,Et.writing=!0,Et.sync=!0,Et.destroyed?Et.onwrite(new ht("write")):Jt?wt._writev(Yt,Et.onwrite):wt._write(Yt,Mt,Et.onwrite),Et.sync=!1}function jt(wt,Et,Jt,Pt){Jt||function(Yt,Mt){Mt.length===0&&Mt.needDrain&&(Mt.needDrain=!1,Yt.emit("drain"))}(wt,Et),Et.pendingcb--,Pt(),Vt(wt,Et)}function vt(wt,Et){Et.bufferProcessing=!0;var Jt=Et.bufferedRequest;if(wt._writev&&Jt&&Jt.next){var Pt=Et.bufferedRequestCount,Yt=new Array(Pt),Mt=Et.corkedRequestsFree;Mt.entry=Jt;for(var zt=0,qt=!0;Jt;)Yt[zt]=Jt,Jt.isBuf||(qt=!1),Jt=Jt.next,zt+=1;Yt.allBuffers=qt,Bt(wt,Et,!0,Et.length,Yt,"",Mt.finish),Et.pendingcb++,Et.lastBufferedRequest=null,Mt.next?(Et.corkedRequestsFree=Mt.next,Mt.next=null):Et.corkedRequestsFree=new j(Et),Et.bufferedRequestCount=0}else{for(;Jt;){var Xt=Jt.chunk,xt=Jt.encoding,It=Jt.callback;if(Bt(wt,Et,!1,Et.objectMode?1:Xt.length,Xt,xt,It),Jt=Jt.next,Et.bufferedRequestCount--,Et.writing)break}Jt===null&&(Et.lastBufferedRequest=null)}Et.bufferedRequest=Jt,Et.bufferProcessing=!1}function mt(wt){return wt.ending&&wt.length===0&&wt.bufferedRequest===null&&!wt.finished&&!wt.writing}function yt(wt,Et){wt._final(function(Jt){Et.pendingcb--,Jt&&Qt(wt,Jt),Et.prefinished=!0,wt.emit("prefinish"),Vt(wt,Et)})}function Vt(wt,Et){var Jt=mt(Et);if(Jt&&(function(Yt,Mt){Mt.prefinished||Mt.finalCalled||(typeof Yt._final!="function"||Mt.destroyed?(Mt.prefinished=!0,Yt.emit("prefinish")):(Mt.pendingcb++,Mt.finalCalled=!0,process.nextTick(yt,Yt,Mt)))}(wt,Et),Et.pendingcb===0&&(Et.finished=!0,wt.emit("finish"),Et.autoDestroy))){var Pt=wt._readableState;(!Pt||Pt.autoDestroy&&Pt.endEmitted)&&wt.destroy()}return Jt}_(5615)(kt,et),At.prototype.getBuffer=function(){for(var wt=this.bufferedRequest,Et=[];wt;)Et.push(wt),wt=wt.next;return Et},function(){try{Object.defineProperty(At.prototype,"buffer",{get:_e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(rt=Function.prototype[Symbol.hasInstance],Object.defineProperty(kt,Symbol.hasInstance,{value:function(wt){return!!rt.call(this,wt)||this===kt&&wt&&wt._writableState instanceof At}})):rt=function(wt){return wt instanceof this},kt.prototype.pipe=function(){Qt(this,new Ut)},kt.prototype.write=function(wt,Et,Jt){var Pt,Yt=this._writableState,Mt=!1,zt=!Yt.objectMode&&(Pt=wt,tt.isBuffer(Pt)||Pt instanceof nt);return zt&&!tt.isBuffer(wt)&&(wt=function(qt){return tt.from(qt)}(wt)),typeof Et=="function"&&(Jt=Et,Et=null),zt?Et="buffer":Et||(Et=Yt.defaultEncoding),typeof Jt!="function"&&(Jt=Nt),Yt.ending?function(qt,Xt){var xt=new pt;Qt(qt,xt),process.nextTick(Xt,xt)}(this,Jt):(zt||function(qt,Xt,xt,It){var $t;return xt===null?$t=new ft:typeof xt=="string"||Xt.objectMode||($t=new Ft("chunk",["string","Buffer"],xt)),!$t||(Qt(qt,$t),process.nextTick(It,$t),!1)}(this,Yt,wt,Jt))&&(Yt.pendingcb++,Mt=function(qt,Xt,xt,It,$t,un){if(!xt){var tn=function(Bn,hn,En){return Bn.objectMode||Bn.decodeStrings===!1||typeof hn!="string"||(hn=tt.from(hn,En)),hn}(Xt,It,$t);It!==tn&&(xt=!0,$t="buffer",It=tn)}var an=Xt.objectMode?1:It.length;Xt.length+=an;var Kt=Xt.length-1))throw new Rt(wt);return this._writableState.defaultEncoding=wt,this},Object.defineProperty(kt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(kt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),kt.prototype._write=function(wt,Et,Jt){Jt(new dt("_write()"))},kt.prototype._writev=null,kt.prototype.end=function(wt,Et,Jt){var Pt=this._writableState;return typeof wt=="function"?(Jt=wt,wt=null,Et=null):typeof Et=="function"&&(Jt=Et,Et=null),wt!=null&&this.write(wt,Et),Pt.corked&&(Pt.corked=1,this.uncork()),Pt.ending||function(Yt,Mt,zt){Mt.ending=!0,Vt(Yt,Mt),zt&&(Mt.finished?process.nextTick(zt):Yt.once("finish",zt)),Mt.ended=!0,Yt.writable=!1}(this,Pt,Jt),this},Object.defineProperty(kt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(kt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(wt){this._writableState&&(this._writableState.destroyed=wt)}}),kt.prototype.destroy=it.destroy,kt.prototype._undestroy=it.undestroy,kt.prototype._destroy=function(wt,Et){Et(wt)}},534:(o,s,_)=>{var j;function $(ft,pt,Rt){return(pt=function(Qt){var Nt=function(At,kt){if(typeof At!="object"||At===null)return At;var Bt=At[Symbol.toPrimitive];if(Bt!==void 0){var jt=Bt.call(At,kt||"default");if(typeof jt!="object")return jt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(kt==="string"?String:Number)(At)}(Qt,"string");return typeof Nt=="symbol"?Nt:String(Nt)}(pt))in ft?Object.defineProperty(ft,pt,{value:Rt,enumerable:!0,configurable:!0,writable:!0}):ft[pt]=Rt,ft}var _e=_(4869),et=Symbol("lastResolve"),tt=Symbol("lastReject"),nt=Symbol("error"),rt=Symbol("ended"),it=Symbol("lastPromise"),st=Symbol("handlePromise"),ut=Symbol("stream");function Ft(ft,pt){return{value:ft,done:pt}}function dt(ft){var pt=ft[et];if(pt!==null){var Rt=ft[ut].read();Rt!==null&&(ft[it]=null,ft[et]=null,ft[tt]=null,pt(Ft(Rt,!1)))}}function gt(ft){process.nextTick(dt,ft)}var Ut=Object.getPrototypeOf(function(){}),ht=Object.setPrototypeOf(($(j={get stream(){return this[ut]},next:function(){var ft=this,pt=this[nt];if(pt!==null)return Promise.reject(pt);if(this[rt])return Promise.resolve(Ft(void 0,!0));if(this[ut].destroyed)return new Promise(function(At,kt){process.nextTick(function(){ft[nt]?kt(ft[nt]):At(Ft(void 0,!0))})});var Rt,Qt=this[it];if(Qt)Rt=new Promise(function(At,kt){return function(Bt,jt){At.then(function(){kt[rt]?Bt(Ft(void 0,!0)):kt[st](Bt,jt)},jt)}}(Qt,this));else{var Nt=this[ut].read();if(Nt!==null)return Promise.resolve(Ft(Nt,!1));Rt=new Promise(this[st])}return this[it]=Rt,Rt}},Symbol.asyncIterator,function(){return this}),$(j,"return",function(){var ft=this;return new Promise(function(pt,Rt){ft[ut].destroy(null,function(Qt){Qt?Rt(Qt):pt(Ft(void 0,!0))})})}),j),Ut);o.exports=function(ft){var pt,Rt=Object.create(ht,($(pt={},ut,{value:ft,writable:!0}),$(pt,et,{value:null,writable:!0}),$(pt,tt,{value:null,writable:!0}),$(pt,nt,{value:null,writable:!0}),$(pt,rt,{value:ft._readableState.endEmitted,writable:!0}),$(pt,st,{value:function(Qt,Nt){var At=Rt[ut].read();At?(Rt[it]=null,Rt[et]=null,Rt[tt]=null,Qt(Ft(At,!1))):(Rt[et]=Qt,Rt[tt]=Nt)},writable:!0}),pt));return Rt[it]=null,_e(ft,function(Qt){if(Qt&&Qt.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Nt=Rt[tt];return Nt!==null&&(Rt[it]=null,Rt[et]=null,Rt[tt]=null,Nt(Qt)),void(Rt[nt]=Qt)}var At=Rt[et];At!==null&&(Rt[it]=null,Rt[et]=null,Rt[tt]=null,At(Ft(void 0,!0))),Rt[rt]=!0}),ft.on("readable",gt.bind(null,Rt)),Rt}},82:(o,s,_)=>{function j(st,ut){var Ft=Object.keys(st);if(Object.getOwnPropertySymbols){var dt=Object.getOwnPropertySymbols(st);ut&&(dt=dt.filter(function(gt){return Object.getOwnPropertyDescriptor(st,gt).enumerable})),Ft.push.apply(Ft,dt)}return Ft}function $(st){for(var ut=1;ut0?this.tail.next=gt:this.head=gt,this.tail=gt,++this.length}},{key:"unshift",value:function(dt){var gt={data:dt,next:this.head};this.length===0&&(this.tail=gt),this.head=gt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var dt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,dt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(dt){if(this.length===0)return"";for(var gt=this.head,Ut=""+gt.data;gt=gt.next;)Ut+=dt+gt.data;return Ut}},{key:"concat",value:function(dt){if(this.length===0)return nt.alloc(0);for(var gt,Ut,ht,ft=nt.allocUnsafe(dt>>>0),pt=this.head,Rt=0;pt;)gt=pt.data,Ut=ft,ht=Rt,nt.prototype.copy.call(gt,Ut,ht),Rt+=pt.data.length,pt=pt.next;return ft}},{key:"consume",value:function(dt,gt){var Ut;return dtft.length?ft.length:dt;if(pt===ft.length?ht+=ft:ht+=ft.slice(0,dt),(dt-=pt)==0){pt===ft.length?(++Ut,gt.next?this.head=gt.next:this.head=this.tail=null):(this.head=gt,gt.data=ft.slice(pt));break}++Ut}return this.length-=Ut,ht}},{key:"_getBuffer",value:function(dt){var gt=nt.allocUnsafe(dt),Ut=this.head,ht=1;for(Ut.data.copy(gt),dt-=Ut.data.length;Ut=Ut.next;){var ft=Ut.data,pt=dt>ft.length?ft.length:dt;if(ft.copy(gt,gt.length-dt,0,pt),(dt-=pt)==0){pt===ft.length?(++ht,Ut.next?this.head=Ut.next:this.head=this.tail=null):(this.head=Ut,Ut.data=ft.slice(pt));break}++ht}return this.length-=ht,gt}},{key:it,value:function(dt,gt){return rt(this,$($({},gt),{},{depth:0,customInspect:!1}))}}])&&et(ut.prototype,Ft),Object.defineProperty(ut,"prototype",{writable:!1}),st}()},6527:o=>{function s($,_e){j($,_e),_($)}function _($){$._writableState&&!$._writableState.emitClose||$._readableState&&!$._readableState.emitClose||$.emit("close")}function j($,_e){$.emit("error",_e)}o.exports={destroy:function($,_e){var et=this,tt=this._readableState&&this._readableState.destroyed,nt=this._writableState&&this._writableState.destroyed;return tt||nt?(_e?_e($):$&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(j,this,$)):process.nextTick(j,this,$)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy($||null,function(rt){!_e&&rt?et._writableState?et._writableState.errorEmitted?process.nextTick(_,et):(et._writableState.errorEmitted=!0,process.nextTick(s,et,rt)):process.nextTick(s,et,rt):_e?(process.nextTick(_,et),_e(rt)):process.nextTick(_,et)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function($,_e){var et=$._readableState,tt=$._writableState;et&&et.autoDestroy||tt&&tt.autoDestroy?$.destroy(_e):$.emit("error",_e)}}},4869:(o,s,_)=>{var j=_(5699).F.ERR_STREAM_PREMATURE_CLOSE;function $(){}o.exports=function _e(et,tt,nt){if(typeof tt=="function")return _e(et,null,tt);tt||(tt={}),nt=function(pt){var Rt=!1;return function(){if(!Rt){Rt=!0;for(var Qt=arguments.length,Nt=new Array(Qt),At=0;At{o.exports=function(){throw new Error("Readable.from is not available in the browser")}},6815:(o,s,_)=>{var j,$=_(5699).F,_e=$.ERR_MISSING_ARGS,et=$.ERR_STREAM_DESTROYED;function tt(ut){if(ut)throw ut}function nt(ut,Ft,dt,gt){gt=function(ft){var pt=!1;return function(){pt||(pt=!0,ft.apply(void 0,arguments))}}(gt);var Ut=!1;ut.on("close",function(){Ut=!0}),j===void 0&&(j=_(4869)),j(ut,{readable:Ft,writable:dt},function(ft){if(ft)return gt(ft);Ut=!0,gt()});var ht=!1;return function(ft){if(!Ut&&!ht)return ht=!0,function(pt){return pt.setHeader&&typeof pt.abort=="function"}(ut)?ut.abort():typeof ut.destroy=="function"?ut.destroy():void gt(ft||new et("pipe"))}}function rt(ut){ut()}function it(ut,Ft){return ut.pipe(Ft)}function st(ut){return ut.length?typeof ut[ut.length-1]!="function"?tt:ut.pop():tt}o.exports=function(){for(var ut=arguments.length,Ft=new Array(ut),dt=0;dt0,function(Qt){gt||(gt=Qt),Qt&&ht.forEach(rt),Rt||(ht.forEach(rt),Ut(gt))})});return Ft.reduce(it)}},9952:(o,s,_)=>{var j=_(5699).F.ERR_INVALID_OPT_VALUE;o.exports={getHighWaterMark:function($,_e,et,tt){var nt=function(rt,it,st){return rt.highWaterMark!=null?rt.highWaterMark:it?rt[st]:null}(_e,tt,et);if(nt!=null){if(!isFinite(nt)||Math.floor(nt)!==nt||nt<0)throw new j(tt?et:"highWaterMark",nt);return Math.floor(nt)}return $.objectMode?16:16384}}},4856:(o,s,_)=>{o.exports=_(46).EventEmitter},4156:(o,s,_)=>{(s=o.exports=_(8199)).Stream=s,s.Readable=s,s.Writable=_(5291),s.Duplex=_(1265),s.Transform=_(9415),s.PassThrough=_(4421),s.finished=_(4869),s.pipeline=_(6815)},5636:(o,s,_)=>{var j=_(1048),$=j.Buffer;function _e(tt,nt){for(var rt in tt)nt[rt]=tt[rt]}function et(tt,nt,rt){return $(tt,nt,rt)}$.from&&$.alloc&&$.allocUnsafe&&$.allocUnsafeSlow?o.exports=j:(_e(j,s),s.Buffer=et),et.prototype=Object.create($.prototype),_e($,et),et.from=function(tt,nt,rt){if(typeof tt=="number")throw new TypeError("Argument must not be a number");return $(tt,nt,rt)},et.alloc=function(tt,nt,rt){if(typeof tt!="number")throw new TypeError("Argument must be a number");var it=$(tt);return nt!==void 0?typeof rt=="string"?it.fill(nt,rt):it.fill(nt):it.fill(0),it},et.allocUnsafe=function(tt){if(typeof tt!="number")throw new TypeError("Argument must be a number");return $(tt)},et.allocUnsafeSlow=function(tt){if(typeof tt!="number")throw new TypeError("Argument must be a number");return j.SlowBuffer(tt)}},1145:(o,s)=>{const{hasOwnProperty:_}=Object.prototype,j=dt();j.configure=dt,j.stringify=j,j.default=j,s.stringify=j,s.configure=dt,o.exports=j;const $=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function _e(gt){return gt.length<5e3&&!$.test(gt)?`"${gt}"`:JSON.stringify(gt)}function et(gt){if(gt.length>200)return gt.sort();for(let Ut=1;Utht;)gt[ft]=gt[ft-1],ft--;gt[ft]=ht}return gt}const tt=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function nt(gt){return tt.call(gt)!==void 0&>.length!==0}function rt(gt,Ut,ht){gt.length= 1`)}return ht===void 0?1/0:ht}function ut(gt){return gt===1?"1 item":gt+" items"}function Ft(gt){const Ut=new Set;for(const ht of gt)typeof ht!="string"&&typeof ht!="number"||Ut.add(String(ht));return Ut}function dt(gt){const Ut=function(jt){if(_.call(jt,"strict")){const vt=jt.strict;if(typeof vt!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(vt)return mt=>{let yt="Object can not safely be stringified. Received type "+typeof mt;throw typeof mt!="function"&&(yt+=` (${mt.toString()})`),new Error(yt)}}}(gt={...gt});Ut&&(gt.bigint===void 0&&(gt.bigint=!1),"circularValue"in gt||(gt.circularValue=Error));const ht=function(jt){if(_.call(jt,"circularValue")){const vt=jt.circularValue;if(typeof vt=="string")return`"${vt}"`;if(vt==null)return vt;if(vt===Error||vt===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(gt),ft=it(gt,"bigint"),pt=it(gt,"deterministic"),Rt=st(gt,"maximumDepth"),Qt=st(gt,"maximumBreadth");function Nt(jt,vt,mt,yt,Vt,wt){let Et=vt[jt];switch(typeof Et=="object"&&Et!==null&&typeof Et.toJSON=="function"&&(Et=Et.toJSON(jt)),Et=yt.call(vt,jt,Et),typeof Et){case"string":return _e(Et);case"object":{if(Et===null)return"null";if(mt.indexOf(Et)!==-1)return ht;let Jt="",Pt=",";const Yt=wt;if(Array.isArray(Et)){if(Et.length===0)return"[]";if(RtQt&&(Jt+=`${Pt}"... ${ut(Et.length-Qt-1)} not stringified"`),Vt!==""&&(Jt+=` `+Yt),mt.pop(),`[${Jt}]`}let Mt=Object.keys(Et);const zt=Mt.length;if(zt===0)return"{}";if(RtQt&&(Yt+=`${Mt}"...": "${ut(Jt-Qt)} not stringified"`,Mt=Pt),Mt!==""&&(Yt=` ${Vt}${Yt} ${wt}`),mt.pop(),`{${Yt}}`}case"number":return isFinite(vt)?String(vt):Ut?Ut(vt):"null";case"boolean":return vt===!0?"true":"false";case"undefined":return;case"bigint":if(ft)return String(vt);default:return Ut?Ut(vt):void 0}}function Bt(jt,vt,mt){switch(typeof vt){case"string":return _e(vt);case"object":{if(vt===null)return"null";if(typeof vt.toJSON=="function"){if(typeof(vt=vt.toJSON(jt))!="object")return Bt(jt,vt,mt);if(vt===null)return"null"}if(mt.indexOf(vt)!==-1)return ht;let yt="";if(Array.isArray(vt)){if(vt.length===0)return"[]";if(RtQt&&(yt+=`,"... ${ut(vt.length-Qt-1)} not stringified"`),mt.pop(),`[${yt}]`}let Vt=Object.keys(vt);const wt=Vt.length;if(wt===0)return"{}";if(RtQt&&(yt+=`${Et}"...":"${ut(wt-Qt)} not stringified"`),mt.pop(),`{${yt}}`}case"number":return isFinite(vt)?String(vt):Ut?Ut(vt):"null";case"boolean":return vt===!0?"true":"false";case"undefined":return;case"bigint":if(ft)return String(vt);default:return Ut?Ut(vt):void 0}}return function(jt,vt,mt){if(arguments.length>1){let yt="";if(typeof mt=="number"?yt=" ".repeat(Math.min(mt,10)):typeof mt=="string"&&(yt=mt.slice(0,10)),vt!=null){if(typeof vt=="function")return Nt("",{"":jt},[],vt,yt,"");if(Array.isArray(vt))return At("",jt,[],Ft(vt),yt,"")}if(yt.length!==0)return kt("",jt,[],yt,"")}return Bt("",jt,[])}}},6108:(o,s,_)=>{var j=_(528),$=_(686),_e=_(7239)(),et=_(9336),tt=_(3468),nt=j("%Math.floor%");o.exports=function(rt,it){if(typeof rt!="function")throw new tt("`fn` is not a function");if(typeof it!="number"||it<0||it>4294967295||nt(it)!==it)throw new tt("`length` must be a positive 32-bit integer");var st=arguments.length>2&&!!arguments[2],ut=!0,Ft=!0;if("length"in rt&&et){var dt=et(rt,"length");dt&&!dt.configurable&&(ut=!1),dt&&!dt.writable&&(Ft=!1)}return(ut||Ft||!st)&&(_e?$(rt,"length",it,!0,!0):$(rt,"length",it)),rt}},7575:(o,s,_)=>{var j=_(528),$=_(9818),_e=_(8660),et=_(3468),tt=j("%WeakMap%",!0),nt=j("%Map%",!0),rt=$("WeakMap.prototype.get",!0),it=$("WeakMap.prototype.set",!0),st=$("WeakMap.prototype.has",!0),ut=$("Map.prototype.get",!0),Ft=$("Map.prototype.set",!0),dt=$("Map.prototype.has",!0),gt=function(Ut,ht){for(var ft,pt=Ut;(ft=pt.next)!==null;pt=ft)if(ft.key===ht)return pt.next=ft.next,ft.next=Ut.next,Ut.next=ft,ft};o.exports=function(){var Ut,ht,ft,pt={assert:function(Rt){if(!pt.has(Rt))throw new et("Side channel does not contain "+_e(Rt))},get:function(Rt){if(tt&&Rt&&(typeof Rt=="object"||typeof Rt=="function")){if(Ut)return rt(Ut,Rt)}else if(nt){if(ht)return ut(ht,Rt)}else if(ft)return function(Qt,Nt){var At=gt(Qt,Nt);return At&&At.value}(ft,Rt)},has:function(Rt){if(tt&&Rt&&(typeof Rt=="object"||typeof Rt=="function")){if(Ut)return st(Ut,Rt)}else if(nt){if(ht)return dt(ht,Rt)}else if(ft)return function(Qt,Nt){return!!gt(Qt,Nt)}(ft,Rt);return!1},set:function(Rt,Qt){tt&&Rt&&(typeof Rt=="object"||typeof Rt=="function")?(Ut||(Ut=new tt),it(Ut,Rt,Qt)):nt?(ht||(ht=new nt),Ft(ht,Rt,Qt)):(ft||(ft={key:{},next:null}),function(Nt,At,kt){var Bt=gt(Nt,At);Bt?Bt.value=kt:Nt.next={key:At,next:Nt.next,value:kt}}(ft,Rt,Qt))}};return pt}},5082:(o,s)=>{function _(j){for(var $ in j)this[$]=j[$]}s.get=function(j){var $=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var _e={},et=Error.prepareStackTrace;Error.prepareStackTrace=function(nt,rt){return rt},Error.captureStackTrace(_e,j||s.get);var tt=_e.stack;return Error.prepareStackTrace=et,Error.stackTraceLimit=$,tt},s.parse=function(j){if(!j.stack)return[];var $=this;return j.stack.split(` -`).slice(1).map(function(_e){if(_e.match(/^\s*[-]{4,}$/))return $._createParsedCallSite({fileName:_e,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var et=_e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(et){var tt=null,nt=null,rt=null,it=null,st=null,ut=et[5]==="native";if(et[1]){var Ft=(rt=et[1]).lastIndexOf(".");if(rt[Ft-1]=="."&&Ft--,Ft>0){tt=rt.substr(0,Ft),nt=rt.substr(Ft+1);var dt=tt.indexOf(".Module");dt>0&&(rt=rt.substr(dt+1),tt=tt.substr(0,dt))}it=null}nt&&(it=tt,st=nt),nt===""&&(st=null,rt=null);var gt={fileName:et[2]||null,lineNumber:parseInt(et[3],10)||null,functionName:rt,typeName:it,methodName:st,columnNumber:parseInt(et[4],10)||null,native:ut};return $._createParsedCallSite(gt)}}).filter(function(_e){return!!_e})},["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach(function(j){_.prototype[j]=null,_.prototype["get"+j[0].toUpperCase()+j.substr(1)]=function(){return this[j]}}),["topLevel","eval","native","constructor"].forEach(function(j){_.prototype[j]=!1,_.prototype["is"+j[0].toUpperCase()+j.substr(1)]=function(){return this[j]}}),s._createParsedCallSite=function(j){return new _(j)}},1983:(o,s,_)=>{o.exports=$;var j=_(46).EventEmitter;function $(){j.call(this)}_(5615)($,j),$.Readable=_(8199),$.Writable=_(5291),$.Duplex=_(1265),$.Transform=_(9415),$.PassThrough=_(4421),$.finished=_(4869),$.pipeline=_(6815),$.Stream=$,$.prototype.pipe=function(_e,et){var tt=this;function nt(gt){_e.writable&&_e.write(gt)===!1&&tt.pause&&tt.pause()}function rt(){tt.readable&&tt.resume&&tt.resume()}tt.on("data",nt),_e.on("drain",rt),_e._isStdio||et&&et.end===!1||(tt.on("end",st),tt.on("close",ut));var it=!1;function st(){it||(it=!0,_e.end())}function ut(){it||(it=!0,typeof _e.destroy=="function"&&_e.destroy())}function Ft(gt){if(dt(),j.listenerCount(this,"error")===0)throw gt}function dt(){tt.removeListener("data",nt),_e.removeListener("drain",rt),tt.removeListener("end",st),tt.removeListener("close",ut),tt.removeListener("error",Ft),_e.removeListener("error",Ft),tt.removeListener("end",dt),tt.removeListener("close",dt),_e.removeListener("close",dt)}return tt.on("error",Ft),_e.on("error",Ft),tt.on("end",dt),tt.on("close",dt),_e.on("close",dt),_e.emit("pipe",tt),_e}},4865:(o,s,_)=>{var j=_(6255),$=_(6846),_e=_(3227),et=_(49),tt=_(5442),nt=s;nt.request=function(rt,it){rt=typeof rt=="string"?tt.parse(rt):_e(rt);var st=_.g.location.protocol.search(/^https?:$/)===-1?"http:":"",ut=rt.protocol||st,Ft=rt.hostname||rt.host,dt=rt.port,gt=rt.path||"/";Ft&&Ft.indexOf(":")!==-1&&(Ft="["+Ft+"]"),rt.url=(Ft?ut+"//"+Ft:"")+(dt?":"+dt:"")+gt,rt.method=(rt.method||"GET").toUpperCase(),rt.headers=rt.headers||{};var Ut=new j(rt);return it&&Ut.on("response",it),Ut},nt.get=function(rt,it){var st=nt.request(rt,it);return st.end(),st},nt.ClientRequest=j,nt.IncomingMessage=$.IncomingMessage,nt.Agent=function(){},nt.Agent.defaultMaxSockets=4,nt.globalAgent=new nt.Agent,nt.STATUS_CODES=et,nt.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},2271:(o,s,_)=>{var j;function $(){if(j!==void 0)return j;if(_.g.XMLHttpRequest){j=new _.g.XMLHttpRequest;try{j.open("GET",_.g.XDomainRequest?"/":"https://example.com")}catch{j=null}}else j=null;return j}function _e(tt){var nt=$();if(!nt)return!1;try{return nt.responseType=tt,nt.responseType===tt}catch{}return!1}function et(tt){return typeof tt=="function"}s.fetch=et(_.g.fetch)&&et(_.g.ReadableStream),s.writableStream=et(_.g.WritableStream),s.abortController=et(_.g.AbortController),s.arraybuffer=s.fetch||_e("arraybuffer"),s.msstream=!s.fetch&&_e("ms-stream"),s.mozchunkedarraybuffer=!s.fetch&&_e("moz-chunked-arraybuffer"),s.overrideMimeType=s.fetch||!!$()&&et($().overrideMimeType),j=null},6255:(o,s,_)=>{var j=_(2271),$=_(5615),_e=_(6846),et=_(4156),tt=_e.IncomingMessage,nt=_e.readyStates,rt=o.exports=function(st){var ut,Ft=this;et.Writable.call(Ft),Ft._opts=st,Ft._body=[],Ft._headers={},st.auth&&Ft.setHeader("Authorization","Basic "+Buffer.from(st.auth).toString("base64")),Object.keys(st.headers).forEach(function(gt){Ft.setHeader(gt,st.headers[gt])});var dt=!0;if(st.mode==="disable-fetch"||"requestTimeout"in st&&!j.abortController)dt=!1,ut=!0;else if(st.mode==="prefer-streaming")ut=!1;else if(st.mode==="allow-wrong-content-type")ut=!j.overrideMimeType;else{if(st.mode&&st.mode!=="default"&&st.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");ut=!0}Ft._mode=function(gt,Ut){return j.fetch&&Ut?"fetch":j.mozchunkedarraybuffer?"moz-chunked-arraybuffer":j.msstream?"ms-stream":j.arraybuffer&>?"arraybuffer":"text"}(ut,dt),Ft._fetchTimer=null,Ft._socketTimeout=null,Ft._socketTimer=null,Ft.on("finish",function(){Ft._onFinish()})};$(rt,et.Writable),rt.prototype.setHeader=function(st,ut){var Ft=st.toLowerCase();it.indexOf(Ft)===-1&&(this._headers[Ft]={name:st,value:ut})},rt.prototype.getHeader=function(st){var ut=this._headers[st.toLowerCase()];return ut?ut.value:null},rt.prototype.removeHeader=function(st){delete this._headers[st.toLowerCase()]},rt.prototype._onFinish=function(){var st=this;if(!st._destroyed){var ut=st._opts;"timeout"in ut&&ut.timeout!==0&&st.setTimeout(ut.timeout);var Ft=st._headers,dt=null;ut.method!=="GET"&&ut.method!=="HEAD"&&(dt=new Blob(st._body,{type:(Ft["content-type"]||{}).value||""}));var gt=[];if(Object.keys(Ft).forEach(function(pt){var Rt=Ft[pt].name,Qt=Ft[pt].value;Array.isArray(Qt)?Qt.forEach(function(Nt){gt.push([Rt,Nt])}):gt.push([Rt,Qt])}),st._mode==="fetch"){var Ut=null;if(j.abortController){var ht=new AbortController;Ut=ht.signal,st._fetchAbortController=ht,"requestTimeout"in ut&&ut.requestTimeout!==0&&(st._fetchTimer=_.g.setTimeout(function(){st.emit("requestTimeout"),st._fetchAbortController&&st._fetchAbortController.abort()},ut.requestTimeout))}_.g.fetch(st._opts.url,{method:st._opts.method,headers:gt,body:dt||void 0,mode:"cors",credentials:ut.withCredentials?"include":"same-origin",signal:Ut}).then(function(pt){st._fetchResponse=pt,st._resetTimers(!1),st._connect()},function(pt){st._resetTimers(!0),st._destroyed||st.emit("error",pt)})}else{var ft=st._xhr=new _.g.XMLHttpRequest;try{ft.open(st._opts.method,st._opts.url,!0)}catch(pt){return void process.nextTick(function(){st.emit("error",pt)})}"responseType"in ft&&(ft.responseType=st._mode),"withCredentials"in ft&&(ft.withCredentials=!!ut.withCredentials),st._mode==="text"&&"overrideMimeType"in ft&&ft.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in ut&&(ft.timeout=ut.requestTimeout,ft.ontimeout=function(){st.emit("requestTimeout")}),gt.forEach(function(pt){ft.setRequestHeader(pt[0],pt[1])}),st._response=null,ft.onreadystatechange=function(){switch(ft.readyState){case nt.LOADING:case nt.DONE:st._onXHRProgress()}},st._mode==="moz-chunked-arraybuffer"&&(ft.onprogress=function(){st._onXHRProgress()}),ft.onerror=function(){st._destroyed||(st._resetTimers(!0),st.emit("error",new Error("XHR error")))};try{ft.send(dt)}catch(pt){return void process.nextTick(function(){st.emit("error",pt)})}}}},rt.prototype._onXHRProgress=function(){this._resetTimers(!1),function(st){try{var ut=st.status;return ut!==null&&ut!==0}catch{return!1}}(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress(this._resetTimers.bind(this)))},rt.prototype._connect=function(){var st=this;st._destroyed||(st._response=new tt(st._xhr,st._fetchResponse,st._mode,st._resetTimers.bind(st)),st._response.on("error",function(ut){st.emit("error",ut)}),st.emit("response",st._response))},rt.prototype._write=function(st,ut,Ft){this._body.push(st),Ft()},rt.prototype._resetTimers=function(st){var ut=this;_.g.clearTimeout(ut._socketTimer),ut._socketTimer=null,st?(_.g.clearTimeout(ut._fetchTimer),ut._fetchTimer=null):ut._socketTimeout&&(ut._socketTimer=_.g.setTimeout(function(){ut.emit("timeout")},ut._socketTimeout))},rt.prototype.abort=rt.prototype.destroy=function(st){this._destroyed=!0,this._resetTimers(!0),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort(),st&&this.emit("error",st)},rt.prototype.end=function(st,ut,Ft){typeof st=="function"&&(Ft=st,st=void 0),et.Writable.prototype.end.call(this,st,ut,Ft)},rt.prototype.setTimeout=function(st,ut){ut&&this.once("timeout",ut),this._socketTimeout=st,this._resetTimers(!1)},rt.prototype.flushHeaders=function(){},rt.prototype.setNoDelay=function(){},rt.prototype.setSocketKeepAlive=function(){};var it=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},6846:(o,s,_)=>{var j=_(2271),$=_(5615),_e=_(4156),et=s.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},tt=s.IncomingMessage=function(nt,rt,it,st){var ut=this;if(_e.Readable.call(ut),ut._mode=it,ut.headers={},ut.rawHeaders=[],ut.trailers={},ut.rawTrailers=[],ut.on("end",function(){process.nextTick(function(){ut.emit("close")})}),it==="fetch"){if(ut._fetchResponse=rt,ut.url=rt.url,ut.statusCode=rt.status,ut.statusMessage=rt.statusText,rt.headers.forEach(function(ht,ft){ut.headers[ft.toLowerCase()]=ht,ut.rawHeaders.push(ft,ht)}),j.writableStream){var Ft=new WritableStream({write:function(ht){return st(!1),new Promise(function(ft,pt){ut._destroyed?pt():ut.push(Buffer.from(ht))?ft():ut._resumeFetch=ft})},close:function(){st(!0),ut._destroyed||ut.push(null)},abort:function(ht){st(!0),ut._destroyed||ut.emit("error",ht)}});try{return void rt.body.pipeTo(Ft).catch(function(ht){st(!0),ut._destroyed||ut.emit("error",ht)})}catch{}}var dt=rt.body.getReader();(function ht(){dt.read().then(function(ft){ut._destroyed||(st(ft.done),ft.done?ut.push(null):(ut.push(Buffer.from(ft.value)),ht()))}).catch(function(ft){st(!0),ut._destroyed||ut.emit("error",ft)})})()}else if(ut._xhr=nt,ut._pos=0,ut.url=nt.responseURL,ut.statusCode=nt.status,ut.statusMessage=nt.statusText,nt.getAllResponseHeaders().split(/\r?\n/).forEach(function(ht){var ft=ht.match(/^([^:]+):\s*(.*)/);if(ft){var pt=ft[1].toLowerCase();pt==="set-cookie"?(ut.headers[pt]===void 0&&(ut.headers[pt]=[]),ut.headers[pt].push(ft[2])):ut.headers[pt]!==void 0?ut.headers[pt]+=", "+ft[2]:ut.headers[pt]=ft[2],ut.rawHeaders.push(ft[1],ft[2])}}),ut._charset="x-user-defined",!j.overrideMimeType){var gt=ut.rawHeaders["mime-type"];if(gt){var Ut=gt.match(/;\s*charset=([^;])(;|$)/);Ut&&(ut._charset=Ut[1].toLowerCase())}ut._charset||(ut._charset="utf-8")}};$(tt,_e.Readable),tt.prototype._read=function(){var nt=this._resumeFetch;nt&&(this._resumeFetch=null,nt())},tt.prototype._onXHRProgress=function(nt){var rt=this,it=rt._xhr,st=null;switch(rt._mode){case"text":if((st=it.responseText).length>rt._pos){var ut=st.substr(rt._pos);if(rt._charset==="x-user-defined"){for(var Ft=Buffer.alloc(ut.length),dt=0;dtrt._pos&&(rt.push(Buffer.from(new Uint8Array(gt.result.slice(rt._pos)))),rt._pos=gt.result.byteLength)},gt.onload=function(){nt(!0),rt.push(null)},gt.readAsArrayBuffer(st)}rt._xhr.readyState===et.DONE&&rt._mode!=="ms-stream"&&(nt(!0),rt.push(null))}},8888:(o,s,_)=>{var j=_(5636).Buffer,$=j.isEncoding||function(dt){switch((dt=""+dt)&&dt.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _e(dt){var gt;switch(this.encoding=function(Ut){var ht=function(ft){if(!ft)return"utf8";for(var pt;;)switch(ft){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return ft;default:if(pt)return;ft=(""+ft).toLowerCase(),pt=!0}}(Ut);if(typeof ht!="string"&&(j.isEncoding===$||!$(Ut)))throw new Error("Unknown encoding: "+Ut);return ht||Ut}(dt),this.encoding){case"utf16le":this.text=nt,this.end=rt,gt=4;break;case"utf8":this.fillLast=tt,gt=4;break;case"base64":this.text=it,this.end=st,gt=3;break;default:return this.write=ut,void(this.end=Ft)}this.lastNeed=0,this.lastTotal=0,this.lastChar=j.allocUnsafe(gt)}function et(dt){return dt<=127?0:dt>>5==6?2:dt>>4==14?3:dt>>3==30?4:dt>>6==2?-1:-2}function tt(dt){var gt=this.lastTotal-this.lastNeed,Ut=function(ht,ft,pt){if((192&ft[0])!=128)return ht.lastNeed=0,"�";if(ht.lastNeed>1&&ft.length>1){if((192&ft[1])!=128)return ht.lastNeed=1,"�";if(ht.lastNeed>2&&ft.length>2&&(192&ft[2])!=128)return ht.lastNeed=2,"�"}}(this,dt);return Ut!==void 0?Ut:this.lastNeed<=dt.length?(dt.copy(this.lastChar,gt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(dt.copy(this.lastChar,gt,0,dt.length),void(this.lastNeed-=dt.length))}function nt(dt,gt){if((dt.length-gt)%2==0){var Ut=dt.toString("utf16le",gt);if(Ut){var ht=Ut.charCodeAt(Ut.length-1);if(ht>=55296&&ht<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=dt[dt.length-2],this.lastChar[1]=dt[dt.length-1],Ut.slice(0,-1)}return Ut}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=dt[dt.length-1],dt.toString("utf16le",gt,dt.length-1)}function rt(dt){var gt=dt&&dt.length?this.write(dt):"";if(this.lastNeed){var Ut=this.lastTotal-this.lastNeed;return gt+this.lastChar.toString("utf16le",0,Ut)}return gt}function it(dt,gt){var Ut=(dt.length-gt)%3;return Ut===0?dt.toString("base64",gt):(this.lastNeed=3-Ut,this.lastTotal=3,Ut===1?this.lastChar[0]=dt[dt.length-1]:(this.lastChar[0]=dt[dt.length-2],this.lastChar[1]=dt[dt.length-1]),dt.toString("base64",gt,dt.length-Ut))}function st(dt){var gt=dt&&dt.length?this.write(dt):"";return this.lastNeed?gt+this.lastChar.toString("base64",0,3-this.lastNeed):gt}function ut(dt){return dt.toString(this.encoding)}function Ft(dt){return dt&&dt.length?this.write(dt):""}s.StringDecoder=_e,_e.prototype.write=function(dt){if(dt.length===0)return"";var gt,Ut;if(this.lastNeed){if((gt=this.fillLast(dt))===void 0)return"";Ut=this.lastNeed,this.lastNeed=0}else Ut=0;return Ut=0?(Nt>0&&(ft.lastNeed=Nt-1),Nt):--Qt=0?(Nt>0&&(ft.lastNeed=Nt-2),Nt):--Qt=0?(Nt>0&&(Nt===2?Nt=0:ft.lastNeed=Nt-3),Nt):0}(this,dt,gt);if(!this.lastNeed)return dt.toString("utf8",gt);this.lastTotal=Ut;var ht=dt.length-(Ut-this.lastNeed);return dt.copy(this.lastChar,0,ht),dt.toString("utf8",gt,ht)},_e.prototype.fillLast=function(dt){if(this.lastNeed<=dt.length)return dt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);dt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,dt.length),this.lastNeed-=dt.length}},9023:(o,s)=>{s.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},s.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}},2797:(o,s,_)=>{Object.defineProperty(s,"cli",{value:_(9023)}),Object.defineProperty(s,"npm",{value:_(5828)}),Object.defineProperty(s,"syslog",{value:_(7408)})},5828:(o,s)=>{s.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},s.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}},7408:(o,s)=>{s.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},s.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}},4966:(o,s,_)=>{Object.defineProperty(s,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(s,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(s,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(s,"configs",{value:_(2797)})},7396:(o,s,_)=>{_.d(s,{V:()=>Ut});var j=_(288),$=_.n(j),_e=_(3778);class et extends Error{constructor(ft,pt,Rt){super("Connection failure: "+ft.message),this.cause=ft,this.url=pt,this.retryable=Rt,this.name="ConnectionError",Object.setPrototypeOf(this,new.target.prototype)}}var tt=_(7221),nt=_(4356),rt=_(1597),it=_(3721),st=_(7197);class ut extends Error{constructor(ft,pt){super(`Invalid headers (${JSON.stringify(ft)}) for response: ${pt.message}`),this.validationErrors=ft,this.responseError=pt}}var Ft=function(ht,ft,pt,Rt){return new(pt||(pt=Promise))(function(Qt,Nt){function At(jt){try{Bt(Rt.next(jt))}catch(vt){Nt(vt)}}function kt(jt){try{Bt(Rt.throw(jt))}catch(vt){Nt(vt)}}function Bt(jt){var vt;jt.done?Qt(jt.value):(vt=jt.value,vt instanceof pt?vt:new pt(function(mt){mt(vt)})).then(At,kt)}Bt((Rt=Rt.apply(ht,ft||[])).next())})},dt=function(ht,ft){var pt={};for(var Rt in ht)Object.prototype.hasOwnProperty.call(ht,Rt)&&ft.indexOf(Rt)<0&&(pt[Rt]=ht[Rt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function"){var Qt=0;for(Rt=Object.getOwnPropertySymbols(ht);Qtpt.validateHeaders?pt.validateHeaders(Rt):{},this.verbose=pt.verbose!==!1,pt.retries!==void 0&&!(pt.retries>=0))throw new Error("retries must be positive or zero");if(this.configuredRetries=pt.retries,pt.timeoutMs!==void 0&&!(pt.timeoutMs>0))throw new Error("timeoutMs must be positive");if(this.timeoutMs=pt.timeoutMs,pt.maxBackoffDelayMs!==void 0&&!(pt.maxBackoffDelayMs>0))throw new Error("maxBackoffDelayMs must be positive");this.maxBackoffDelayMs=pt.maxBackoffDelayMs||30*_e.p.second,this.json=pt.json!==!1}getRetries(){return this.configuredRetries!==void 0?this.configuredRetries:this.getConstructor().retries}getHeaders(){return{}}fetch(ft){return Ft(this,arguments,void 0,function*(pt,Rt={}){return(yield this.fetchVerbose(pt,Rt)).body})}fetchVerbose(ft){return Ft(this,arguments,void 0,function*(pt,Rt={}){let Qt=100*_e.p.millisecond,Nt=0;const At=this.timeoutMs!==void 0?new Date().getTime()+this.timeoutMs:void 0,kt=At?()=>Math.max(At-new Date().getTime(),0):void 0;for(;;)try{return yield this.doFetch(pt,Rt,kt)}catch(Bt){const jt=Bt,vt=(0,it.e)(jt,et);if((kt==null?void 0:kt())===0||Nt===this.getRetries()||!vt.retryable)throw vt;Nt++,Qt=Math.min(...kt?[kt()]:[],Qt*(2+.1*(Math.random()-.5)),this.maxBackoffDelayMs),yield(0,tt.c)(Qt),this.verbose&&rt.vF.warn("Connection failure, retrying. Error: "+jt.cause.message,{url:jt.url,error:jt.cause,attempt:Nt})}})}doFetch(ft,pt,Rt){return Ft(this,void 0,void 0,function*(){const{token:Qt,json:Nt=this.json,allowUnsafeRetries:At}=pt,kt=dt(pt,["token","json","allowUnsafeRetries"]),{token:Bt,traceId:jt}=typeof Qt=="string"?{token:Qt}:Qt??{},vt=(kt.method||"GET").toUpperCase(),mt=this.endpoint!==void 0?`${this.endpoint}${ft?"/"+ft:""}`:ft,yt=new AbortController;let Vt;if(Rt){const wt=Rt();wt>0?Vt=setTimeout(()=>{yt.abort()},wt):yt.abort()}try{let wt;yield Promise.race([this.getConstructor().waitForConnectivity(),new Promise(qt=>{wt=setTimeout(qt,Rt?Math.min(_e.p.minute,Rt()):_e.p.minute)})]),wt&&clearTimeout(wt);const Et=yield $()(mt,Object.assign(Object.assign(Object.assign({},kt),kt.body!==void 0?{body:Nt!==!1?JSON.stringify(kt.body):kt.body}:{}),{headers:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt!==!1?{"Content-Type":"application/json"}:{}),this.getHeaders()),kt.headers||{}),Bt!==void 0?{Authorization:"Bearer "+Bt}:{}),jt&&{"Trace-ID":jt}),signal:yt.signal})),Jt=Et.headers.get("content-type")||"",Pt=Jt&&Jt.startsWith("application/json"),Yt=Pt?yield Et.json():yield Et.text(),Mt=()=>new st.o(vt,mt,kt.body,Et.status,Et.headers,Yt,Yt&&Yt.validationErrors||{});if(!Et.ok)throw this.verbose&&rt.vF[Et.status>=500?"warn":"info"]("Response error",{method:vt,url:mt,statusCode:Et.status}),Mt();const zt=this.validateHeaders(Et.headers);if(Object.keys(zt).length!==0)throw new ut(zt,Mt());if(Et.status===204)return{body:void 0,headers:Et.headers};if(Nt&&!Pt)throw new Error("Response is not JSON: "+JSON.stringify(Yt));return{body:Yt,headers:Et.headers}}catch(wt){const Et=wt,Jt=At||gt.has(vt);if(Et.message==="Network request failed")throw new et(Et,mt,Jt);if(["EAI_AGAIN","ECONNREFUSED","EHOSTUNREACH","ENOTFOUND"].includes(Et.code))throw new et(Et,mt,!0);if(["ETIMEDOUT","ECONNRESET","ESOCKETTIMEDOUT","EPIPE"].includes(Et.code))throw new et(Et,mt,Jt);if(Et.name==="AbortError")throw new et(Et,mt,Jt);const Pt=(0,it.e)(Et,st.o),{statusCode:Yt}=Pt;if(Yt===408||Yt===429||Yt===502||Yt===503||Yt===504)throw this.verbose&&!Jt&&rt.vF.warn("Potentially unsafe retry"),new et(Et,mt,!0);if(Yt===500&&["/online-devices","/stream-current-value","/events/counts","/queries/queries"].some(zt=>mt.includes(zt)))throw new et(Et,mt,Jt);const Mt=this.validateHeaders(Pt.headers);throw Object.keys(Mt).length!==0?new ut(Mt,Pt):(yield this.getConstructor().onResponseError(Pt),Et)}finally{Vt&&clearTimeout(Vt)}})}getConstructor(){return Object.getPrototypeOf(this).constructor}static isNetworkError(ft){return(0,nt.x)(ft,st.o)||(0,nt.x)(ft,et)||(ft==null?void 0:ft.name)==="TimeoutError"||(ft==null?void 0:ft.name)==="RequestAbortedError"}}Ut.retries=8,Ut.waitForConnectivity=()=>Ft(void 0,void 0,void 0,function*(){}),Ut.onResponseError=()=>Ft(void 0,void 0,void 0,function*(){})},6331:(o,s,_)=>{_.d(s,{S:()=>et});var j=_(7396),$=_(2273);const _e={"app-id":["app-id must match formant/*"]};class et extends j.V{constructor(nt,rt={}){super(nt,Object.assign({validateHeaders:it=>(""+it.get("app-id")).startsWith("formant/")?{}:_e},rt)),this.endpoint=nt}getHeaders(){return Object.assign(Object.assign({},et.headers),{"App-ID":"formant/"+$.yA,"App-Version":$.rE})}}et.headers={}},4495:(o,s,_)=>{_.r(s),_.d(s,{LogClient:()=>tt});var j=_(6331),$=_(3721),_e=_(7197),et=function(nt,rt,it,st){return new(it||(it=Promise))(function(ut,Ft){function dt(ht){try{Ut(st.next(ht))}catch(ft){Ft(ft)}}function gt(ht){try{Ut(st.throw(ht))}catch(ft){Ft(ft)}}function Ut(ht){var ft;ht.done?ut(ht.value):(ft=ht.value,ft instanceof it?ft:new it(function(pt){pt(ft)})).then(dt,gt)}Ut((st=st.apply(nt,rt||[])).next())})};class tt extends j.S{log(rt){return et(this,void 0,void 0,function*(){const it=tt.token;try{yield this.fetch("logs",{token:it,method:"POST",body:{logs:rt},allowUnsafeRetries:!0})}catch(st){(0,$.e)(st,_e.o,ut=>ut.statusCode===401&&it!==void 0),tt.token===it&&delete tt.token,yield this.log(rt)}})}}},7197:(o,s,_)=>{_.d(s,{o:()=>$});var j=_(7207);class $ extends Error{constructor(et,tt,nt,rt,it,st,ut={}){super("Response error "+JSON.stringify({method:et,url:tt,requestBody:(0,j.E$)(nt),statusCode:rt,responseHeaders:it?(0,j.E$)([...it.entries()].reduce((Ft,[dt,gt])=>(Ft[dt]=gt,Ft),{})):{},responseBody:(0,j.E$)(st)})),this.method=et,this.url=tt,this.requestBody=nt,this.statusCode=rt,this.headers=it,this.body=st,this.validationErrors=ut,this.name="ResponseError",Object.setPrototypeOf(this,new.target.prototype)}}},2273:(o,s,_)=>{_.d(s,{IW:()=>dt,MF:()=>et,NQ:()=>nt,Zm:()=>st,_P:()=>ut,dF:()=>it,dm:()=>rt,op:()=>Ft,rE:()=>tt,yA:()=>_e});var j=_(2078);const $=j.from({ENVIRONMENT:{}.ENV,AGGREGATE_LEVEL:{}.AGGREGATE_LEVEL,API_ENDPOINT:{}.API_ENDPOINT,APP:"realtime-sdk",APP_PATH:{}.APP_PATH,BUILD_TAG:{}.BUILD_TAG,ENABLE_SELF_SERVE:{}.ENABLE_SELF_SERVE,ENABLE_SENTRY:{}.ENABLE_SENTRY,ENABLE_SENTRY_PROFILING:{}.ENABLE_SENTRY_PROFILING,GIT_COMMIT:{}.GIT_COMMIT,JEST_WORKER_ID:{}.JEST_WORKER_ID,LOG_API_ENDPOINT:{}.LOG_API_ENDPOINT,LOG_JSON:"false",LOG_LEVEL:{}.LOG_LEVEL,LOG_TO_CONSOLE:{}.LOG_TO_CONSOLE,LOG_TO_FILE:{}.LOG_TO_FILE,NAMESPACE:"production",SENTRY_DSN:{}.SENTRY_DSN,SHEET_EXPORT_MAX_ROW_COUNT:{}.SHEET_EXPORT_MAX_ROW_COUNT,STABLE_AGENT_VERSION:"1.291.2",VERSION:{}.VERSION,AUDIT_LOGS_ENABLED:{}.AUDIT_LOGS_ENABLED,WORKFLOW_GOOGLE_DRIVE_CLIENT_ID:{}.WORKFLOW_GOOGLE_DRIVE_CLIENT_ID}),_e=($.get("WORKFLOW_GOOGLE_DRIVE_CLIENT_ID").default("").asString(),$.get("ENVIRONMENT").default("").asString(),$.get("APP").default("").asString()),et=($.get("APP_PATH").default("").asString(),$.get("API_ENDPOINT").default("").asString(),$.get("NAMESPACE").default("").asString()),tt=$.get("VERSION").default("").asString(),nt=$.get("BUILD_TAG").default("").asString(),rt=($.get("GIT_COMMIT").default("").asString(),$.get("ENABLE_SENTRY").default("false").asBool(),$.get("ENABLE_SENTRY_PROFILING").default("false").asBool(),$.get("SENTRY_DSN").default("").asString(),$.get("LOG_LEVEL").default("debug").asString()),it=$.get("LOG_JSON").default("true").asBool(),st=$.get("LOG_TO_CONSOLE").default("true").asBool(),ut=($.get("STABLE_AGENT_VERSION").default("").asString(),$.get("LOG_API_ENDPOINT").asString()),Ft=$.get("JEST_WORKER_ID").asString(),dt=($.get("SHEET_EXPORT_MAX_ROW_COUNT").default("10000").asIntPositive(),$.get("LOG_TO_FILE").default("false").asBoolStrict());$.get("ENABLE_SELF_SERVE").default("true").asBoolStrict(),$.get("AGGREGATE_LEVEL").default("hour").asEnum(["day","hour","minute"]),$.get("AUDIT_LOGS_ENABLED").default("true").asBoolStrict()},7221:(o,s,_)=>{_.d(s,{c:()=>j});const j=$=>new Promise(_e=>setTimeout(_e,$||0))},4356:(o,s,_)=>{function j($,_e,et=()=>!0){return $ instanceof _e&&et($)}_.d(s,{x:()=>j})},1597:(o,s,_)=>{_.d(s,{vF:()=>tn});var j=_(2213),$=_(8558),_e=_(6075),et=_.n(_e),tt=_(6563);function nt(Kt,Un){if(Un.length1?"s":"")+" required, but only "+Un.length+" present")}function rt(Kt){if(Kt===null||Kt===!0||Kt===!1)return NaN;var Un=Number(Kt);return isNaN(Un)?Un:Un<0?Math.ceil(Un):Math.floor(Un)}var it={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},st=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ut=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ft=/^([+-])(\d{2})(?::?(\d{2}))?$/;function dt(Kt){var Un,Bn={},hn=Kt.split(it.dateTimeDelimiter);if(hn.length>2)return Bn;if(/:/.test(hn[0])?Un=hn[0]:(Bn.date=hn[0],Un=hn[1],it.timeZoneDelimiter.test(Bn.date)&&(Bn.date=Kt.split(it.timeZoneDelimiter)[0],Un=Kt.substr(Bn.date.length,Kt.length))),Un){var En=it.timezone.exec(Un);En?(Bn.time=Un.replace(En[1],""),Bn.timezone=En[1]):Bn.time=Un}return Bn}function gt(Kt,Un){var Bn=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+Un)+"})|(\\d{2}|[+-]\\d{"+(2+Un)+"})$)"),hn=Kt.match(Bn);if(!hn)return{year:NaN,restDateString:""};var En=hn[1]?parseInt(hn[1]):null,Cn=hn[2]?parseInt(hn[2]):null;return{year:Cn===null?En:100*Cn,restDateString:Kt.slice((hn[1]||hn[2]).length)}}function Ut(Kt,Un){if(Un===null)return new Date(NaN);var Bn=Kt.match(st);if(!Bn)return new Date(NaN);var hn=!!Bn[4],En=ht(Bn[1]),Cn=ht(Bn[2])-1,Tt=ht(Bn[3]),Zt=ht(Bn[4]),Ot=ht(Bn[5])-1;if(hn)return function(ln,cn,fn){return cn>=1&&cn<=53&&fn>=0&&fn<=6}(0,Zt,Ot)?function(ln,cn,fn){var _n=new Date(0);_n.setUTCFullYear(ln,0,4);var On=_n.getUTCDay()||7,xn=7*(cn-1)+fn+1-On;return _n.setUTCDate(_n.getUTCDate()+xn),_n}(Un,Zt,Ot):new Date(NaN);var sn=new Date(0);return function(ln,cn,fn){return cn>=0&&cn<=11&&fn>=1&&fn<=(Qt[cn]||(Nt(ln)?29:28))}(Un,Cn,Tt)&&function(ln,cn){return cn>=1&&cn<=(Nt(ln)?366:365)}(Un,En)?(sn.setUTCFullYear(Un,Cn,Math.max(En,Tt)),sn):new Date(NaN)}function ht(Kt){return Kt?parseInt(Kt):1}function ft(Kt){var Un=Kt.match(ut);if(!Un)return NaN;var Bn=pt(Un[1]),hn=pt(Un[2]),En=pt(Un[3]);return function(Cn,Tt,Zt){return Cn===24?Tt===0&&Zt===0:Zt>=0&&Zt<60&&Tt>=0&&Tt<60&&Cn>=0&&Cn<25}(Bn,hn,En)?36e5*Bn+6e4*hn+1e3*En:NaN}function pt(Kt){return Kt&&parseFloat(Kt.replace(",","."))||0}function Rt(Kt){if(Kt==="Z")return 0;var Un=Kt.match(Ft);if(!Un)return 0;var Bn=Un[1]==="+"?-1:1,hn=parseInt(Un[2]),En=Un[3]&&parseInt(Un[3])||0;return function(Cn,Tt){return Tt>=0&&Tt<=59}(0,En)?Bn*(36e5*hn+6e4*En):NaN}var Qt=[31,null,31,30,31,30,31,31,30,31,30,31];function Nt(Kt){return Kt%400==0||Kt%4==0&&Kt%100!=0}function At(Kt){return(At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Un){return typeof Un}:function(Un){return Un&&typeof Symbol=="function"&&Un.constructor===Symbol&&Un!==Symbol.prototype?"symbol":typeof Un})(Kt)}function kt(Kt){return nt(1,arguments),Kt instanceof Date||At(Kt)==="object"&&Object.prototype.toString.call(Kt)==="[object Date]"}function Bt(Kt){nt(1,arguments);var Un=Object.prototype.toString.call(Kt);return Kt instanceof Date||At(Kt)==="object"&&Un==="[object Date]"?new Date(Kt.getTime()):typeof Kt=="number"||Un==="[object Number]"?new Date(Kt):(typeof Kt!="string"&&Un!=="[object String]"||typeof console>"u"||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function jt(Kt){const Un=function(Bn,hn){var En;nt(1,arguments);var Cn=rt((En=hn==null?void 0:hn.additionalDigits)!==null&&En!==void 0?En:2);if(Cn!==2&&Cn!==1&&Cn!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(typeof Bn!="string"&&Object.prototype.toString.call(Bn)!=="[object String]")return new Date(NaN);var Tt,Zt=dt(Bn);if(Zt.date){var Ot=gt(Zt.date,Cn);Tt=Ut(Ot.restDateString,Ot.year)}if(!Tt||isNaN(Tt.getTime()))return new Date(NaN);var sn,ln=Tt.getTime(),cn=0;if(Zt.time&&(cn=ft(Zt.time),isNaN(cn)))return new Date(NaN);if(!Zt.timezone){var fn=new Date(ln+cn),_n=new Date(0);return _n.setFullYear(fn.getUTCFullYear(),fn.getUTCMonth(),fn.getUTCDate()),_n.setHours(fn.getUTCHours(),fn.getUTCMinutes(),fn.getUTCSeconds(),fn.getUTCMilliseconds()),_n}return sn=Rt(Zt.timezone),isNaN(sn)?new Date(NaN):new Date(ln+cn+sn)}(Kt);if(!function(Bn){if(nt(1,arguments),!kt(Bn)&&typeof Bn!="number")return!1;var hn=Bt(Bn);return!isNaN(Number(hn))}(Un))throw new Error(`Invalid ISO 8601 date string (${Kt})`);return Un}const vt=Math.pow(2,20),mt=vt;var yt=_(2273),Vt=_(7207);function wt(Kt){return et()(Kt,{cycles:!0})}var Et=function(Kt,Un){var Bn={};for(var hn in Kt)Object.prototype.hasOwnProperty.call(Kt,hn)&&Un.indexOf(hn)<0&&(Bn[hn]=Kt[hn]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function"){var En=0;for(hn=Object.getOwnPropertySymbols(Kt);EnBn?(0,Vt.E$)(Ot):Ot;if(!Kt.stack)return{message:wt(hn(Kt))};const{name:En,message:Cn,stack:Tt}=Kt,Zt=Et(Kt,["name","message","stack"]);return{name:En,message:Cn!==void 0?Cn:wt(hn(Kt)),stack:Tt,meta:Zt&&Object.keys(Zt).length===0?void 0:hn(Zt)}}function Pt(Kt,Un={}){const{message:Bn,stack:hn,meta:En}=Jt(Kt,Un);return`${hn||Bn||""}${En&&Object.keys(En).length>0?" -- "+wt(En):""}`}const Yt=(0,_(2964).A)();var Mt=_(6155),zt=_.n(Mt),qt=function(Kt,Un,Bn,hn){return new(Bn||(Bn=Promise))(function(En,Cn){function Tt(sn){try{Ot(hn.next(sn))}catch(ln){Cn(ln)}}function Zt(sn){try{Ot(hn.throw(sn))}catch(ln){Cn(ln)}}function Ot(sn){var ln;sn.done?En(sn.value):(ln=sn.value,ln instanceof Bn?ln:new Bn(function(cn){cn(ln)})).then(Tt,Zt)}Ot((hn=hn.apply(Kt,Un||[])).next())})},Xt=function(Kt,Un){var Bn={};for(var hn in Kt)Object.prototype.hasOwnProperty.call(Kt,hn)&&Un.indexOf(hn)<0&&(Bn[hn]=Kt[hn]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function"){var En=0;for(hn=Object.getOwnPropertySymbols(Kt);En{var{timestamp:Un,level:Bn,message:hn,error:En}=Kt,Cn=It(Kt,["timestamp","level","message","error"]);const Tt=Object.assign(Object.assign({timestamp:Un?jt(Un).getTime():new Date().getTime(),level:Bn.toUpperCase(),message:hn},En?{error:Jt(En)}:{}),{meta:Object.assign(Object.assign({},$t),Cn)});return Tt.message.length>1e5&&(console.log("Raw message: "+Tt.message),Tt.message=function(Zt,Ot){const{maxMessageLength:sn=1e5,truncatedMessageEndLength:ln=1e3}=Ot??{};return Zt.length>sn?`${Zt.slice(0,sn-ln)} ... [TRUNCATED] ... ${Zt.slice(-ln)}`:Zt}(Tt.message,{maxMessageLength:1e5,truncatedMessageEndLength:1e3})),et()(Tt,{cycles:!0})}):tt.format.printf(Kt=>{var{timestamp:Un,level:Bn,message:hn,error:En}=Kt,Cn=It(Kt,["timestamp","level","message","error"]);let Tt=`${Un||new Date().toISOString()} ${Bn.toUpperCase()}: ${hn} `;return Object.keys(Cn).length>0&&(Tt+=et()(Cn,{cycles:!0})),En&&(Tt+=` +`).slice(1).map(function(_e){if(_e.match(/^\s*[-]{4,}$/))return $._createParsedCallSite({fileName:_e,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var et=_e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(et){var tt=null,nt=null,rt=null,it=null,st=null,ut=et[5]==="native";if(et[1]){var Ft=(rt=et[1]).lastIndexOf(".");if(rt[Ft-1]=="."&&Ft--,Ft>0){tt=rt.substr(0,Ft),nt=rt.substr(Ft+1);var dt=tt.indexOf(".Module");dt>0&&(rt=rt.substr(dt+1),tt=tt.substr(0,dt))}it=null}nt&&(it=tt,st=nt),nt===""&&(st=null,rt=null);var gt={fileName:et[2]||null,lineNumber:parseInt(et[3],10)||null,functionName:rt,typeName:it,methodName:st,columnNumber:parseInt(et[4],10)||null,native:ut};return $._createParsedCallSite(gt)}}).filter(function(_e){return!!_e})},["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach(function(j){_.prototype[j]=null,_.prototype["get"+j[0].toUpperCase()+j.substr(1)]=function(){return this[j]}}),["topLevel","eval","native","constructor"].forEach(function(j){_.prototype[j]=!1,_.prototype["is"+j[0].toUpperCase()+j.substr(1)]=function(){return this[j]}}),s._createParsedCallSite=function(j){return new _(j)}},1983:(o,s,_)=>{o.exports=$;var j=_(46).EventEmitter;function $(){j.call(this)}_(5615)($,j),$.Readable=_(8199),$.Writable=_(5291),$.Duplex=_(1265),$.Transform=_(9415),$.PassThrough=_(4421),$.finished=_(4869),$.pipeline=_(6815),$.Stream=$,$.prototype.pipe=function(_e,et){var tt=this;function nt(gt){_e.writable&&_e.write(gt)===!1&&tt.pause&&tt.pause()}function rt(){tt.readable&&tt.resume&&tt.resume()}tt.on("data",nt),_e.on("drain",rt),_e._isStdio||et&&et.end===!1||(tt.on("end",st),tt.on("close",ut));var it=!1;function st(){it||(it=!0,_e.end())}function ut(){it||(it=!0,typeof _e.destroy=="function"&&_e.destroy())}function Ft(gt){if(dt(),j.listenerCount(this,"error")===0)throw gt}function dt(){tt.removeListener("data",nt),_e.removeListener("drain",rt),tt.removeListener("end",st),tt.removeListener("close",ut),tt.removeListener("error",Ft),_e.removeListener("error",Ft),tt.removeListener("end",dt),tt.removeListener("close",dt),_e.removeListener("close",dt)}return tt.on("error",Ft),_e.on("error",Ft),tt.on("end",dt),tt.on("close",dt),_e.on("close",dt),_e.emit("pipe",tt),_e}},4865:(o,s,_)=>{var j=_(6255),$=_(6846),_e=_(3227),et=_(49),tt=_(5442),nt=s;nt.request=function(rt,it){rt=typeof rt=="string"?tt.parse(rt):_e(rt);var st=_.g.location.protocol.search(/^https?:$/)===-1?"http:":"",ut=rt.protocol||st,Ft=rt.hostname||rt.host,dt=rt.port,gt=rt.path||"/";Ft&&Ft.indexOf(":")!==-1&&(Ft="["+Ft+"]"),rt.url=(Ft?ut+"//"+Ft:"")+(dt?":"+dt:"")+gt,rt.method=(rt.method||"GET").toUpperCase(),rt.headers=rt.headers||{};var Ut=new j(rt);return it&&Ut.on("response",it),Ut},nt.get=function(rt,it){var st=nt.request(rt,it);return st.end(),st},nt.ClientRequest=j,nt.IncomingMessage=$.IncomingMessage,nt.Agent=function(){},nt.Agent.defaultMaxSockets=4,nt.globalAgent=new nt.Agent,nt.STATUS_CODES=et,nt.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},2271:(o,s,_)=>{var j;function $(){if(j!==void 0)return j;if(_.g.XMLHttpRequest){j=new _.g.XMLHttpRequest;try{j.open("GET",_.g.XDomainRequest?"/":"https://example.com")}catch{j=null}}else j=null;return j}function _e(tt){var nt=$();if(!nt)return!1;try{return nt.responseType=tt,nt.responseType===tt}catch{}return!1}function et(tt){return typeof tt=="function"}s.fetch=et(_.g.fetch)&&et(_.g.ReadableStream),s.writableStream=et(_.g.WritableStream),s.abortController=et(_.g.AbortController),s.arraybuffer=s.fetch||_e("arraybuffer"),s.msstream=!s.fetch&&_e("ms-stream"),s.mozchunkedarraybuffer=!s.fetch&&_e("moz-chunked-arraybuffer"),s.overrideMimeType=s.fetch||!!$()&&et($().overrideMimeType),j=null},6255:(o,s,_)=>{var j=_(2271),$=_(5615),_e=_(6846),et=_(4156),tt=_e.IncomingMessage,nt=_e.readyStates,rt=o.exports=function(st){var ut,Ft=this;et.Writable.call(Ft),Ft._opts=st,Ft._body=[],Ft._headers={},st.auth&&Ft.setHeader("Authorization","Basic "+Buffer.from(st.auth).toString("base64")),Object.keys(st.headers).forEach(function(gt){Ft.setHeader(gt,st.headers[gt])});var dt=!0;if(st.mode==="disable-fetch"||"requestTimeout"in st&&!j.abortController)dt=!1,ut=!0;else if(st.mode==="prefer-streaming")ut=!1;else if(st.mode==="allow-wrong-content-type")ut=!j.overrideMimeType;else{if(st.mode&&st.mode!=="default"&&st.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");ut=!0}Ft._mode=function(gt,Ut){return j.fetch&&Ut?"fetch":j.mozchunkedarraybuffer?"moz-chunked-arraybuffer":j.msstream?"ms-stream":j.arraybuffer&>?"arraybuffer":"text"}(ut,dt),Ft._fetchTimer=null,Ft._socketTimeout=null,Ft._socketTimer=null,Ft.on("finish",function(){Ft._onFinish()})};$(rt,et.Writable),rt.prototype.setHeader=function(st,ut){var Ft=st.toLowerCase();it.indexOf(Ft)===-1&&(this._headers[Ft]={name:st,value:ut})},rt.prototype.getHeader=function(st){var ut=this._headers[st.toLowerCase()];return ut?ut.value:null},rt.prototype.removeHeader=function(st){delete this._headers[st.toLowerCase()]},rt.prototype._onFinish=function(){var st=this;if(!st._destroyed){var ut=st._opts;"timeout"in ut&&ut.timeout!==0&&st.setTimeout(ut.timeout);var Ft=st._headers,dt=null;ut.method!=="GET"&&ut.method!=="HEAD"&&(dt=new Blob(st._body,{type:(Ft["content-type"]||{}).value||""}));var gt=[];if(Object.keys(Ft).forEach(function(pt){var Rt=Ft[pt].name,Qt=Ft[pt].value;Array.isArray(Qt)?Qt.forEach(function(Nt){gt.push([Rt,Nt])}):gt.push([Rt,Qt])}),st._mode==="fetch"){var Ut=null;if(j.abortController){var ht=new AbortController;Ut=ht.signal,st._fetchAbortController=ht,"requestTimeout"in ut&&ut.requestTimeout!==0&&(st._fetchTimer=_.g.setTimeout(function(){st.emit("requestTimeout"),st._fetchAbortController&&st._fetchAbortController.abort()},ut.requestTimeout))}_.g.fetch(st._opts.url,{method:st._opts.method,headers:gt,body:dt||void 0,mode:"cors",credentials:ut.withCredentials?"include":"same-origin",signal:Ut}).then(function(pt){st._fetchResponse=pt,st._resetTimers(!1),st._connect()},function(pt){st._resetTimers(!0),st._destroyed||st.emit("error",pt)})}else{var ft=st._xhr=new _.g.XMLHttpRequest;try{ft.open(st._opts.method,st._opts.url,!0)}catch(pt){return void process.nextTick(function(){st.emit("error",pt)})}"responseType"in ft&&(ft.responseType=st._mode),"withCredentials"in ft&&(ft.withCredentials=!!ut.withCredentials),st._mode==="text"&&"overrideMimeType"in ft&&ft.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in ut&&(ft.timeout=ut.requestTimeout,ft.ontimeout=function(){st.emit("requestTimeout")}),gt.forEach(function(pt){ft.setRequestHeader(pt[0],pt[1])}),st._response=null,ft.onreadystatechange=function(){switch(ft.readyState){case nt.LOADING:case nt.DONE:st._onXHRProgress()}},st._mode==="moz-chunked-arraybuffer"&&(ft.onprogress=function(){st._onXHRProgress()}),ft.onerror=function(){st._destroyed||(st._resetTimers(!0),st.emit("error",new Error("XHR error")))};try{ft.send(dt)}catch(pt){return void process.nextTick(function(){st.emit("error",pt)})}}}},rt.prototype._onXHRProgress=function(){this._resetTimers(!1),function(st){try{var ut=st.status;return ut!==null&&ut!==0}catch{return!1}}(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress(this._resetTimers.bind(this)))},rt.prototype._connect=function(){var st=this;st._destroyed||(st._response=new tt(st._xhr,st._fetchResponse,st._mode,st._resetTimers.bind(st)),st._response.on("error",function(ut){st.emit("error",ut)}),st.emit("response",st._response))},rt.prototype._write=function(st,ut,Ft){this._body.push(st),Ft()},rt.prototype._resetTimers=function(st){var ut=this;_.g.clearTimeout(ut._socketTimer),ut._socketTimer=null,st?(_.g.clearTimeout(ut._fetchTimer),ut._fetchTimer=null):ut._socketTimeout&&(ut._socketTimer=_.g.setTimeout(function(){ut.emit("timeout")},ut._socketTimeout))},rt.prototype.abort=rt.prototype.destroy=function(st){this._destroyed=!0,this._resetTimers(!0),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort(),st&&this.emit("error",st)},rt.prototype.end=function(st,ut,Ft){typeof st=="function"&&(Ft=st,st=void 0),et.Writable.prototype.end.call(this,st,ut,Ft)},rt.prototype.setTimeout=function(st,ut){ut&&this.once("timeout",ut),this._socketTimeout=st,this._resetTimers(!1)},rt.prototype.flushHeaders=function(){},rt.prototype.setNoDelay=function(){},rt.prototype.setSocketKeepAlive=function(){};var it=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},6846:(o,s,_)=>{var j=_(2271),$=_(5615),_e=_(4156),et=s.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},tt=s.IncomingMessage=function(nt,rt,it,st){var ut=this;if(_e.Readable.call(ut),ut._mode=it,ut.headers={},ut.rawHeaders=[],ut.trailers={},ut.rawTrailers=[],ut.on("end",function(){process.nextTick(function(){ut.emit("close")})}),it==="fetch"){if(ut._fetchResponse=rt,ut.url=rt.url,ut.statusCode=rt.status,ut.statusMessage=rt.statusText,rt.headers.forEach(function(ht,ft){ut.headers[ft.toLowerCase()]=ht,ut.rawHeaders.push(ft,ht)}),j.writableStream){var Ft=new WritableStream({write:function(ht){return st(!1),new Promise(function(ft,pt){ut._destroyed?pt():ut.push(Buffer.from(ht))?ft():ut._resumeFetch=ft})},close:function(){st(!0),ut._destroyed||ut.push(null)},abort:function(ht){st(!0),ut._destroyed||ut.emit("error",ht)}});try{return void rt.body.pipeTo(Ft).catch(function(ht){st(!0),ut._destroyed||ut.emit("error",ht)})}catch{}}var dt=rt.body.getReader();(function ht(){dt.read().then(function(ft){ut._destroyed||(st(ft.done),ft.done?ut.push(null):(ut.push(Buffer.from(ft.value)),ht()))}).catch(function(ft){st(!0),ut._destroyed||ut.emit("error",ft)})})()}else if(ut._xhr=nt,ut._pos=0,ut.url=nt.responseURL,ut.statusCode=nt.status,ut.statusMessage=nt.statusText,nt.getAllResponseHeaders().split(/\r?\n/).forEach(function(ht){var ft=ht.match(/^([^:]+):\s*(.*)/);if(ft){var pt=ft[1].toLowerCase();pt==="set-cookie"?(ut.headers[pt]===void 0&&(ut.headers[pt]=[]),ut.headers[pt].push(ft[2])):ut.headers[pt]!==void 0?ut.headers[pt]+=", "+ft[2]:ut.headers[pt]=ft[2],ut.rawHeaders.push(ft[1],ft[2])}}),ut._charset="x-user-defined",!j.overrideMimeType){var gt=ut.rawHeaders["mime-type"];if(gt){var Ut=gt.match(/;\s*charset=([^;])(;|$)/);Ut&&(ut._charset=Ut[1].toLowerCase())}ut._charset||(ut._charset="utf-8")}};$(tt,_e.Readable),tt.prototype._read=function(){var nt=this._resumeFetch;nt&&(this._resumeFetch=null,nt())},tt.prototype._onXHRProgress=function(nt){var rt=this,it=rt._xhr,st=null;switch(rt._mode){case"text":if((st=it.responseText).length>rt._pos){var ut=st.substr(rt._pos);if(rt._charset==="x-user-defined"){for(var Ft=Buffer.alloc(ut.length),dt=0;dtrt._pos&&(rt.push(Buffer.from(new Uint8Array(gt.result.slice(rt._pos)))),rt._pos=gt.result.byteLength)},gt.onload=function(){nt(!0),rt.push(null)},gt.readAsArrayBuffer(st)}rt._xhr.readyState===et.DONE&&rt._mode!=="ms-stream"&&(nt(!0),rt.push(null))}},8888:(o,s,_)=>{var j=_(5636).Buffer,$=j.isEncoding||function(dt){switch((dt=""+dt)&&dt.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _e(dt){var gt;switch(this.encoding=function(Ut){var ht=function(ft){if(!ft)return"utf8";for(var pt;;)switch(ft){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return ft;default:if(pt)return;ft=(""+ft).toLowerCase(),pt=!0}}(Ut);if(typeof ht!="string"&&(j.isEncoding===$||!$(Ut)))throw new Error("Unknown encoding: "+Ut);return ht||Ut}(dt),this.encoding){case"utf16le":this.text=nt,this.end=rt,gt=4;break;case"utf8":this.fillLast=tt,gt=4;break;case"base64":this.text=it,this.end=st,gt=3;break;default:return this.write=ut,void(this.end=Ft)}this.lastNeed=0,this.lastTotal=0,this.lastChar=j.allocUnsafe(gt)}function et(dt){return dt<=127?0:dt>>5==6?2:dt>>4==14?3:dt>>3==30?4:dt>>6==2?-1:-2}function tt(dt){var gt=this.lastTotal-this.lastNeed,Ut=function(ht,ft,pt){if((192&ft[0])!=128)return ht.lastNeed=0,"�";if(ht.lastNeed>1&&ft.length>1){if((192&ft[1])!=128)return ht.lastNeed=1,"�";if(ht.lastNeed>2&&ft.length>2&&(192&ft[2])!=128)return ht.lastNeed=2,"�"}}(this,dt);return Ut!==void 0?Ut:this.lastNeed<=dt.length?(dt.copy(this.lastChar,gt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(dt.copy(this.lastChar,gt,0,dt.length),void(this.lastNeed-=dt.length))}function nt(dt,gt){if((dt.length-gt)%2==0){var Ut=dt.toString("utf16le",gt);if(Ut){var ht=Ut.charCodeAt(Ut.length-1);if(ht>=55296&&ht<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=dt[dt.length-2],this.lastChar[1]=dt[dt.length-1],Ut.slice(0,-1)}return Ut}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=dt[dt.length-1],dt.toString("utf16le",gt,dt.length-1)}function rt(dt){var gt=dt&&dt.length?this.write(dt):"";if(this.lastNeed){var Ut=this.lastTotal-this.lastNeed;return gt+this.lastChar.toString("utf16le",0,Ut)}return gt}function it(dt,gt){var Ut=(dt.length-gt)%3;return Ut===0?dt.toString("base64",gt):(this.lastNeed=3-Ut,this.lastTotal=3,Ut===1?this.lastChar[0]=dt[dt.length-1]:(this.lastChar[0]=dt[dt.length-2],this.lastChar[1]=dt[dt.length-1]),dt.toString("base64",gt,dt.length-Ut))}function st(dt){var gt=dt&&dt.length?this.write(dt):"";return this.lastNeed?gt+this.lastChar.toString("base64",0,3-this.lastNeed):gt}function ut(dt){return dt.toString(this.encoding)}function Ft(dt){return dt&&dt.length?this.write(dt):""}s.StringDecoder=_e,_e.prototype.write=function(dt){if(dt.length===0)return"";var gt,Ut;if(this.lastNeed){if((gt=this.fillLast(dt))===void 0)return"";Ut=this.lastNeed,this.lastNeed=0}else Ut=0;return Ut=0?(Nt>0&&(ft.lastNeed=Nt-1),Nt):--Qt=0?(Nt>0&&(ft.lastNeed=Nt-2),Nt):--Qt=0?(Nt>0&&(Nt===2?Nt=0:ft.lastNeed=Nt-3),Nt):0}(this,dt,gt);if(!this.lastNeed)return dt.toString("utf8",gt);this.lastTotal=Ut;var ht=dt.length-(Ut-this.lastNeed);return dt.copy(this.lastChar,0,ht),dt.toString("utf8",gt,ht)},_e.prototype.fillLast=function(dt){if(this.lastNeed<=dt.length)return dt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);dt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,dt.length),this.lastNeed-=dt.length}},9023:(o,s)=>{s.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},s.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}},2797:(o,s,_)=>{Object.defineProperty(s,"cli",{value:_(9023)}),Object.defineProperty(s,"npm",{value:_(5828)}),Object.defineProperty(s,"syslog",{value:_(7408)})},5828:(o,s)=>{s.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},s.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}},7408:(o,s)=>{s.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},s.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}},4966:(o,s,_)=>{Object.defineProperty(s,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(s,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(s,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(s,"configs",{value:_(2797)})},7396:(o,s,_)=>{_.d(s,{V:()=>Ut});var j=_(288),$=_.n(j),_e=_(3778);class et extends Error{constructor(ft,pt,Rt){super("Connection failure: "+ft.message),this.cause=ft,this.url=pt,this.retryable=Rt,this.name="ConnectionError",Object.setPrototypeOf(this,new.target.prototype)}}var tt=_(7221),nt=_(4356),rt=_(1597),it=_(3721),st=_(7197);class ut extends Error{constructor(ft,pt){super(`Invalid headers (${JSON.stringify(ft)}) for response: ${pt.message}`),this.validationErrors=ft,this.responseError=pt}}var Ft=function(ht,ft,pt,Rt){return new(pt||(pt=Promise))(function(Qt,Nt){function At(jt){try{Bt(Rt.next(jt))}catch(vt){Nt(vt)}}function kt(jt){try{Bt(Rt.throw(jt))}catch(vt){Nt(vt)}}function Bt(jt){var vt;jt.done?Qt(jt.value):(vt=jt.value,vt instanceof pt?vt:new pt(function(mt){mt(vt)})).then(At,kt)}Bt((Rt=Rt.apply(ht,ft||[])).next())})},dt=function(ht,ft){var pt={};for(var Rt in ht)Object.prototype.hasOwnProperty.call(ht,Rt)&&ft.indexOf(Rt)<0&&(pt[Rt]=ht[Rt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function"){var Qt=0;for(Rt=Object.getOwnPropertySymbols(ht);Qtpt.validateHeaders?pt.validateHeaders(Rt):{},this.verbose=pt.verbose!==!1,pt.retries!==void 0&&!(pt.retries>=0))throw new Error("retries must be positive or zero");if(this.configuredRetries=pt.retries,pt.timeoutMs!==void 0&&!(pt.timeoutMs>0))throw new Error("timeoutMs must be positive");if(this.timeoutMs=pt.timeoutMs,pt.maxBackoffDelayMs!==void 0&&!(pt.maxBackoffDelayMs>0))throw new Error("maxBackoffDelayMs must be positive");this.maxBackoffDelayMs=pt.maxBackoffDelayMs||30*_e.p.second,this.json=pt.json!==!1}getRetries(){return this.configuredRetries!==void 0?this.configuredRetries:this.getConstructor().retries}getHeaders(){return{}}fetch(ft){return Ft(this,arguments,void 0,function*(pt,Rt={}){return(yield this.fetchVerbose(pt,Rt)).body})}fetchVerbose(ft){return Ft(this,arguments,void 0,function*(pt,Rt={}){let Qt=100*_e.p.millisecond,Nt=0;const At=this.timeoutMs!==void 0?new Date().getTime()+this.timeoutMs:void 0,kt=At?()=>Math.max(At-new Date().getTime(),0):void 0;for(;;)try{return yield this.doFetch(pt,Rt,kt)}catch(Bt){const jt=Bt,vt=(0,it.e)(jt,et);if((kt==null?void 0:kt())===0||Nt===this.getRetries()||!vt.retryable)throw vt;Nt++,Qt=Math.min(...kt?[kt()]:[],Qt*(2+.1*(Math.random()-.5)),this.maxBackoffDelayMs),yield(0,tt.c)(Qt),this.verbose&&rt.vF.warn("Connection failure, retrying. Error: "+jt.cause.message,{url:jt.url,error:jt.cause,attempt:Nt})}})}doFetch(ft,pt,Rt){return Ft(this,void 0,void 0,function*(){const{token:Qt,json:Nt=this.json,allowUnsafeRetries:At}=pt,kt=dt(pt,["token","json","allowUnsafeRetries"]),{token:Bt,traceId:jt}=typeof Qt=="string"?{token:Qt}:Qt??{},vt=(kt.method||"GET").toUpperCase(),mt=this.endpoint!==void 0?`${this.endpoint}${ft?"/"+ft:""}`:ft,yt=new AbortController;let Vt;if(Rt){const wt=Rt();wt>0?Vt=setTimeout(()=>{yt.abort()},wt):yt.abort()}try{let wt;yield Promise.race([this.getConstructor().waitForConnectivity(),new Promise(qt=>{wt=setTimeout(qt,Rt?Math.min(_e.p.minute,Rt()):_e.p.minute)})]),wt&&clearTimeout(wt);const Et=yield $()(mt,Object.assign(Object.assign(Object.assign({},kt),kt.body!==void 0?{body:Nt!==!1?JSON.stringify(kt.body):kt.body}:{}),{headers:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt!==!1?{"Content-Type":"application/json"}:{}),this.getHeaders()),kt.headers||{}),Bt!==void 0?{Authorization:"Bearer "+Bt}:{}),jt&&{"Trace-ID":jt}),signal:yt.signal})),Jt=Et.headers.get("content-type")||"",Pt=Jt&&Jt.startsWith("application/json"),Yt=Pt?yield Et.json():yield Et.text(),Mt=()=>new st.o(vt,mt,kt.body,Et.status,Et.headers,Yt,Yt&&Yt.validationErrors||{});if(!Et.ok)throw this.verbose&&rt.vF[Et.status>=500?"warn":"info"]("Response error",{method:vt,url:mt,statusCode:Et.status}),Mt();const zt=this.validateHeaders(Et.headers);if(Object.keys(zt).length!==0)throw new ut(zt,Mt());if(Et.status===204)return{body:void 0,headers:Et.headers};if(Nt&&!Pt)throw new Error("Response is not JSON: "+JSON.stringify(Yt));return{body:Yt,headers:Et.headers}}catch(wt){const Et=wt,Jt=At||gt.has(vt);if(Et.message==="Network request failed")throw new et(Et,mt,Jt);if(["EAI_AGAIN","ECONNREFUSED","EHOSTUNREACH","ENOTFOUND"].includes(Et.code))throw new et(Et,mt,!0);if(["ETIMEDOUT","ECONNRESET","ESOCKETTIMEDOUT","EPIPE"].includes(Et.code))throw new et(Et,mt,Jt);if(Et.name==="AbortError")throw new et(Et,mt,Jt);const Pt=(0,it.e)(Et,st.o),{statusCode:Yt}=Pt;if(Yt===408||Yt===429||Yt===502||Yt===503||Yt===504)throw this.verbose&&!Jt&&rt.vF.warn("Potentially unsafe retry"),new et(Et,mt,!0);if(Yt===500&&["/online-devices","/stream-current-value","/events/counts","/queries/queries"].some(zt=>mt.includes(zt)))throw new et(Et,mt,Jt);const Mt=this.validateHeaders(Pt.headers);throw Object.keys(Mt).length!==0?new ut(Mt,Pt):(yield this.getConstructor().onResponseError(Pt),Et)}finally{Vt&&clearTimeout(Vt)}})}getConstructor(){return Object.getPrototypeOf(this).constructor}static isNetworkError(ft){return(0,nt.x)(ft,st.o)||(0,nt.x)(ft,et)||(ft==null?void 0:ft.name)==="TimeoutError"||(ft==null?void 0:ft.name)==="RequestAbortedError"}}Ut.retries=8,Ut.waitForConnectivity=()=>Ft(void 0,void 0,void 0,function*(){}),Ut.onResponseError=()=>Ft(void 0,void 0,void 0,function*(){})},6331:(o,s,_)=>{_.d(s,{S:()=>et});var j=_(7396),$=_(2273);const _e={"app-id":["app-id must match formant/*"]};class et extends j.V{constructor(nt,rt={}){super(nt,Object.assign({validateHeaders:it=>(""+it.get("app-id")).startsWith("formant/")?{}:_e},rt)),this.endpoint=nt}getHeaders(){return Object.assign(Object.assign({},et.headers),{"App-ID":"formant/"+$.yA,"App-Version":$.rE})}}et.headers={}},4495:(o,s,_)=>{_.r(s),_.d(s,{LogClient:()=>tt});var j=_(6331),$=_(3721),_e=_(7197),et=function(nt,rt,it,st){return new(it||(it=Promise))(function(ut,Ft){function dt(ht){try{Ut(st.next(ht))}catch(ft){Ft(ft)}}function gt(ht){try{Ut(st.throw(ht))}catch(ft){Ft(ft)}}function Ut(ht){var ft;ht.done?ut(ht.value):(ft=ht.value,ft instanceof it?ft:new it(function(pt){pt(ft)})).then(dt,gt)}Ut((st=st.apply(nt,rt||[])).next())})};class tt extends j.S{log(rt){return et(this,void 0,void 0,function*(){const it=tt.token;try{yield this.fetch("logs",{token:it,method:"POST",body:{logs:rt},allowUnsafeRetries:!0})}catch(st){(0,$.e)(st,_e.o,ut=>ut.statusCode===401&&it!==void 0),tt.token===it&&delete tt.token,yield this.log(rt)}})}}},7197:(o,s,_)=>{_.d(s,{o:()=>$});var j=_(7207);class $ extends Error{constructor(et,tt,nt,rt,it,st,ut={}){super("Response error "+JSON.stringify({method:et,url:tt,requestBody:(0,j.E$)(nt),statusCode:rt,responseHeaders:it?(0,j.E$)([...it.entries()].reduce((Ft,[dt,gt])=>(Ft[dt]=gt,Ft),{})):{},responseBody:(0,j.E$)(st)})),this.method=et,this.url=tt,this.requestBody=nt,this.statusCode=rt,this.headers=it,this.body=st,this.validationErrors=ut,this.name="ResponseError",Object.setPrototypeOf(this,new.target.prototype)}}},2273:(o,s,_)=>{_.d(s,{IW:()=>dt,MF:()=>et,NQ:()=>nt,Zm:()=>st,_P:()=>ut,dF:()=>it,dm:()=>rt,op:()=>Ft,rE:()=>tt,yA:()=>_e});var j=_(2078);const $=j.from({ENVIRONMENT:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.ENV,AGGREGATE_LEVEL:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.AGGREGATE_LEVEL,API_ENDPOINT:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.API_ENDPOINT,APP:"realtime-sdk",APP_PATH:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.APP_PATH,BUILD_TAG:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.BUILD_TAG,ENABLE_SELF_SERVE:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.ENABLE_SELF_SERVE,ENABLE_SENTRY:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.ENABLE_SENTRY,ENABLE_SENTRY_PROFILING:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.ENABLE_SENTRY_PROFILING,GIT_COMMIT:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.GIT_COMMIT,JEST_WORKER_ID:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.JEST_WORKER_ID,LOG_API_ENDPOINT:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.LOG_API_ENDPOINT,LOG_JSON:"false",LOG_LEVEL:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.LOG_LEVEL,LOG_TO_CONSOLE:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.LOG_TO_CONSOLE,LOG_TO_FILE:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.LOG_TO_FILE,NAMESPACE:"production",SENTRY_DSN:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.SENTRY_DSN,SHEET_EXPORT_MAX_ROW_COUNT:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.SHEET_EXPORT_MAX_ROW_COUNT,STABLE_AGENT_VERSION:"1.291.2",VERSION:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.VERSION,AUDIT_LOGS_ENABLED:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.AUDIT_LOGS_ENABLED,WORKFLOW_GOOGLE_DRIVE_CLIENT_ID:{NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.WORKFLOW_GOOGLE_DRIVE_CLIENT_ID}),_e=($.get("WORKFLOW_GOOGLE_DRIVE_CLIENT_ID").default("").asString(),$.get("ENVIRONMENT").default("").asString(),$.get("APP").default("").asString()),et=($.get("APP_PATH").default("").asString(),$.get("API_ENDPOINT").default("").asString(),$.get("NAMESPACE").default("").asString()),tt=$.get("VERSION").default("").asString(),nt=$.get("BUILD_TAG").default("").asString(),rt=($.get("GIT_COMMIT").default("").asString(),$.get("ENABLE_SENTRY").default("false").asBool(),$.get("ENABLE_SENTRY_PROFILING").default("false").asBool(),$.get("SENTRY_DSN").default("").asString(),$.get("LOG_LEVEL").default("debug").asString()),it=$.get("LOG_JSON").default("true").asBool(),st=$.get("LOG_TO_CONSOLE").default("true").asBool(),ut=($.get("STABLE_AGENT_VERSION").default("").asString(),$.get("LOG_API_ENDPOINT").asString()),Ft=$.get("JEST_WORKER_ID").asString(),dt=($.get("SHEET_EXPORT_MAX_ROW_COUNT").default("10000").asIntPositive(),$.get("LOG_TO_FILE").default("false").asBoolStrict());$.get("ENABLE_SELF_SERVE").default("true").asBoolStrict(),$.get("AGGREGATE_LEVEL").default("hour").asEnum(["day","hour","minute"]),$.get("AUDIT_LOGS_ENABLED").default("true").asBoolStrict()},7221:(o,s,_)=>{_.d(s,{c:()=>j});const j=$=>new Promise(_e=>setTimeout(_e,$||0))},4356:(o,s,_)=>{function j($,_e,et=()=>!0){return $ instanceof _e&&et($)}_.d(s,{x:()=>j})},1597:(o,s,_)=>{_.d(s,{vF:()=>tn});var j=_(2213),$=_(8558),_e=_(6075),et=_.n(_e),tt=_(6563);function nt(Kt,Un){if(Un.length1?"s":"")+" required, but only "+Un.length+" present")}function rt(Kt){if(Kt===null||Kt===!0||Kt===!1)return NaN;var Un=Number(Kt);return isNaN(Un)?Un:Un<0?Math.ceil(Un):Math.floor(Un)}var it={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},st=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ut=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ft=/^([+-])(\d{2})(?::?(\d{2}))?$/;function dt(Kt){var Un,Bn={},hn=Kt.split(it.dateTimeDelimiter);if(hn.length>2)return Bn;if(/:/.test(hn[0])?Un=hn[0]:(Bn.date=hn[0],Un=hn[1],it.timeZoneDelimiter.test(Bn.date)&&(Bn.date=Kt.split(it.timeZoneDelimiter)[0],Un=Kt.substr(Bn.date.length,Kt.length))),Un){var En=it.timezone.exec(Un);En?(Bn.time=Un.replace(En[1],""),Bn.timezone=En[1]):Bn.time=Un}return Bn}function gt(Kt,Un){var Bn=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+Un)+"})|(\\d{2}|[+-]\\d{"+(2+Un)+"})$)"),hn=Kt.match(Bn);if(!hn)return{year:NaN,restDateString:""};var En=hn[1]?parseInt(hn[1]):null,Cn=hn[2]?parseInt(hn[2]):null;return{year:Cn===null?En:100*Cn,restDateString:Kt.slice((hn[1]||hn[2]).length)}}function Ut(Kt,Un){if(Un===null)return new Date(NaN);var Bn=Kt.match(st);if(!Bn)return new Date(NaN);var hn=!!Bn[4],En=ht(Bn[1]),Cn=ht(Bn[2])-1,Tt=ht(Bn[3]),Zt=ht(Bn[4]),Ot=ht(Bn[5])-1;if(hn)return function(ln,cn,fn){return cn>=1&&cn<=53&&fn>=0&&fn<=6}(0,Zt,Ot)?function(ln,cn,fn){var _n=new Date(0);_n.setUTCFullYear(ln,0,4);var On=_n.getUTCDay()||7,xn=7*(cn-1)+fn+1-On;return _n.setUTCDate(_n.getUTCDate()+xn),_n}(Un,Zt,Ot):new Date(NaN);var sn=new Date(0);return function(ln,cn,fn){return cn>=0&&cn<=11&&fn>=1&&fn<=(Qt[cn]||(Nt(ln)?29:28))}(Un,Cn,Tt)&&function(ln,cn){return cn>=1&&cn<=(Nt(ln)?366:365)}(Un,En)?(sn.setUTCFullYear(Un,Cn,Math.max(En,Tt)),sn):new Date(NaN)}function ht(Kt){return Kt?parseInt(Kt):1}function ft(Kt){var Un=Kt.match(ut);if(!Un)return NaN;var Bn=pt(Un[1]),hn=pt(Un[2]),En=pt(Un[3]);return function(Cn,Tt,Zt){return Cn===24?Tt===0&&Zt===0:Zt>=0&&Zt<60&&Tt>=0&&Tt<60&&Cn>=0&&Cn<25}(Bn,hn,En)?36e5*Bn+6e4*hn+1e3*En:NaN}function pt(Kt){return Kt&&parseFloat(Kt.replace(",","."))||0}function Rt(Kt){if(Kt==="Z")return 0;var Un=Kt.match(Ft);if(!Un)return 0;var Bn=Un[1]==="+"?-1:1,hn=parseInt(Un[2]),En=Un[3]&&parseInt(Un[3])||0;return function(Cn,Tt){return Tt>=0&&Tt<=59}(0,En)?Bn*(36e5*hn+6e4*En):NaN}var Qt=[31,null,31,30,31,30,31,31,30,31,30,31];function Nt(Kt){return Kt%400==0||Kt%4==0&&Kt%100!=0}function At(Kt){return(At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Un){return typeof Un}:function(Un){return Un&&typeof Symbol=="function"&&Un.constructor===Symbol&&Un!==Symbol.prototype?"symbol":typeof Un})(Kt)}function kt(Kt){return nt(1,arguments),Kt instanceof Date||At(Kt)==="object"&&Object.prototype.toString.call(Kt)==="[object Date]"}function Bt(Kt){nt(1,arguments);var Un=Object.prototype.toString.call(Kt);return Kt instanceof Date||At(Kt)==="object"&&Un==="[object Date]"?new Date(Kt.getTime()):typeof Kt=="number"||Un==="[object Number]"?new Date(Kt):(typeof Kt!="string"&&Un!=="[object String]"||typeof console>"u"||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function jt(Kt){const Un=function(Bn,hn){var En;nt(1,arguments);var Cn=rt((En=hn==null?void 0:hn.additionalDigits)!==null&&En!==void 0?En:2);if(Cn!==2&&Cn!==1&&Cn!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(typeof Bn!="string"&&Object.prototype.toString.call(Bn)!=="[object String]")return new Date(NaN);var Tt,Zt=dt(Bn);if(Zt.date){var Ot=gt(Zt.date,Cn);Tt=Ut(Ot.restDateString,Ot.year)}if(!Tt||isNaN(Tt.getTime()))return new Date(NaN);var sn,ln=Tt.getTime(),cn=0;if(Zt.time&&(cn=ft(Zt.time),isNaN(cn)))return new Date(NaN);if(!Zt.timezone){var fn=new Date(ln+cn),_n=new Date(0);return _n.setFullYear(fn.getUTCFullYear(),fn.getUTCMonth(),fn.getUTCDate()),_n.setHours(fn.getUTCHours(),fn.getUTCMinutes(),fn.getUTCSeconds(),fn.getUTCMilliseconds()),_n}return sn=Rt(Zt.timezone),isNaN(sn)?new Date(NaN):new Date(ln+cn+sn)}(Kt);if(!function(Bn){if(nt(1,arguments),!kt(Bn)&&typeof Bn!="number")return!1;var hn=Bt(Bn);return!isNaN(Number(hn))}(Un))throw new Error(`Invalid ISO 8601 date string (${Kt})`);return Un}const vt=Math.pow(2,20),mt=vt;var yt=_(2273),Vt=_(7207);function wt(Kt){return et()(Kt,{cycles:!0})}var Et=function(Kt,Un){var Bn={};for(var hn in Kt)Object.prototype.hasOwnProperty.call(Kt,hn)&&Un.indexOf(hn)<0&&(Bn[hn]=Kt[hn]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function"){var En=0;for(hn=Object.getOwnPropertySymbols(Kt);EnBn?(0,Vt.E$)(Ot):Ot;if(!Kt.stack)return{message:wt(hn(Kt))};const{name:En,message:Cn,stack:Tt}=Kt,Zt=Et(Kt,["name","message","stack"]);return{name:En,message:Cn!==void 0?Cn:wt(hn(Kt)),stack:Tt,meta:Zt&&Object.keys(Zt).length===0?void 0:hn(Zt)}}function Pt(Kt,Un={}){const{message:Bn,stack:hn,meta:En}=Jt(Kt,Un);return`${hn||Bn||""}${En&&Object.keys(En).length>0?" -- "+wt(En):""}`}const Yt=(0,_(2964).A)();var Mt=_(6155),zt=_.n(Mt),qt=function(Kt,Un,Bn,hn){return new(Bn||(Bn=Promise))(function(En,Cn){function Tt(sn){try{Ot(hn.next(sn))}catch(ln){Cn(ln)}}function Zt(sn){try{Ot(hn.throw(sn))}catch(ln){Cn(ln)}}function Ot(sn){var ln;sn.done?En(sn.value):(ln=sn.value,ln instanceof Bn?ln:new Bn(function(cn){cn(ln)})).then(Tt,Zt)}Ot((hn=hn.apply(Kt,Un||[])).next())})},Xt=function(Kt,Un){var Bn={};for(var hn in Kt)Object.prototype.hasOwnProperty.call(Kt,hn)&&Un.indexOf(hn)<0&&(Bn[hn]=Kt[hn]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function"){var En=0;for(hn=Object.getOwnPropertySymbols(Kt);En{var{timestamp:Un,level:Bn,message:hn,error:En}=Kt,Cn=It(Kt,["timestamp","level","message","error"]);const Tt=Object.assign(Object.assign({timestamp:Un?jt(Un).getTime():new Date().getTime(),level:Bn.toUpperCase(),message:hn},En?{error:Jt(En)}:{}),{meta:Object.assign(Object.assign({},$t),Cn)});return Tt.message.length>1e5&&(console.log("Raw message: "+Tt.message),Tt.message=function(Zt,Ot){const{maxMessageLength:sn=1e5,truncatedMessageEndLength:ln=1e3}=Ot??{};return Zt.length>sn?`${Zt.slice(0,sn-ln)} ... [TRUNCATED] ... ${Zt.slice(-ln)}`:Zt}(Tt.message,{maxMessageLength:1e5,truncatedMessageEndLength:1e3})),et()(Tt,{cycles:!0})}):tt.format.printf(Kt=>{var{timestamp:Un,level:Bn,message:hn,error:En}=Kt,Cn=It(Kt,["timestamp","level","message","error"]);let Tt=`${Un||new Date().toISOString()} ${Bn.toUpperCase()}: ${hn} `;return Object.keys(Cn).length>0&&(Tt+=et()(Cn,{cycles:!0})),En&&(Tt+=` `+Pt(En)),Tt}),tn=(0,tt.createLogger)({level:yt.dm});if(tn.add(new tt.transports.Console({format:un,level:"debug"})),tn.transports.forEach(Kt=>{Kt.silent=!yt.Zm}),yt._P&&tn.add(new xt(yt._P,$t)),yt.IW){const Kt=$.resolve(j.tmpdir(),`silly-${yt.yA}.log`);tn.debug("Logging silly logs to file",{filename:Kt}),tn.add(new tt.transports.File({filename:Kt,maxsize:1*mt,maxFiles:10,format:tt.format.combine((an="silly",(0,tt.format)(Un=>Un.level===an&&Un)()),un),level:"silly"}))}var an},3721:(o,s,_)=>{_.d(s,{e:()=>$});var j=_(4356);function $(_e,et,tt=()=>!0){if((0,j.x)(_e,et,tt))return _e;throw _e}},7207:(o,s,_)=>{_.d(s,{E$:()=>nt,x:()=>rt});const j=new Set(["query","tagKey"].map(it=>it.toLowerCase())),$=["missing tag(s) to access this resource","expected one of:","maybe you meant:","in query:","while processing query","column"],_e=["password","secret","token","key","buffer","authorization"],et=new Set(["email","firstName","lastName","phoneNumber","phoneNumbers"]),tt=it=>_e.some(st=>it.toLowerCase().includes(st.toLowerCase()))||et.has(it);function nt(it,st=new WeakSet){return st.has(it)?"[ RECURSIVE ]":Array.isArray(it)?(st.add(it),it.map(Ft=>nt(Ft,st))):!(ut=it)||typeof ut!="object"&&typeof ut!="function"?typeof it=="string"&&!$.some(Ft=>it.toLowerCase().includes(Ft))&&tt(it)?"[ REDACTED ]":it:(st.add(it),Object.keys(it).reduce((Ft,dt)=>j.has(dt.toLowerCase())?(Ft[dt]=it[dt],Ft):(Ft[dt]=tt(dt)?"[ REDACTED ]":nt(it[dt],st),Ft),{}));var ut}const rt=it=>{const st=JSON.stringify(it).replace(/\\"username\\":\\"([a-zA-Z0-9+=]+)\\"/gi,'\\"username\\":\\"\\"').replace(/\\"credential\\":\\"([a-zA-Z0-9+=]+)\\"/gi,'\\"credential\\":\\"\\"');return JSON.parse(st)}},3778:(o,s,_)=>{_.d(s,{p:()=>$});const j=864e5,$={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:j,week:6048e5,month:2592e6,year:31536e6}},2113:function(o,s,_){var j;o=_.nmd(o),function($){s&&s.nodeType,o&&o.nodeType;var _e=typeof _.g=="object"&&_.g;_e.global!==_e&&_e.window!==_e&&_e.self;var et,tt=2147483647,nt=/^xn--/,rt=/[^\x20-\x7E]/,it=/[\x2E\u3002\uFF0E\uFF61]/g,st={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ut=Math.floor,Ft=String.fromCharCode;function dt(At){throw new RangeError(st[At])}function gt(At,kt){for(var Bt=At.length,jt=[];Bt--;)jt[Bt]=kt(At[Bt]);return jt}function Ut(At,kt){var Bt=At.split("@"),jt="";return Bt.length>1&&(jt=Bt[0]+"@",At=Bt[1]),jt+gt((At=At.replace(it,".")).split("."),kt).join(".")}function ht(At){for(var kt,Bt,jt=[],vt=0,mt=At.length;vt=55296&&kt<=56319&&vt65535&&(Bt+=Ft((kt-=65536)>>>10&1023|55296),kt=56320|1023&kt),Bt+=Ft(kt)}).join("")}function pt(At,kt){return At+22+75*(At<26)-((kt!=0)<<5)}function Rt(At,kt,Bt){var jt=0;for(At=Bt?ut(At/700):At>>1,At+=ut(At/kt);At>455;jt+=36)At=ut(At/35);return ut(jt+36*At/(At+38))}function Qt(At){var kt,Bt,jt,vt,mt,yt,Vt,wt,Et,Jt,Pt,Yt=[],Mt=At.length,zt=0,qt=128,Xt=72;for((Bt=At.lastIndexOf("-"))<0&&(Bt=0),jt=0;jt=128&&dt("not-basic"),Yt.push(At.charCodeAt(jt));for(vt=Bt>0?Bt+1:0;vt=Mt&&dt("invalid-input"),((wt=(Pt=At.charCodeAt(vt++))-48<10?Pt-22:Pt-65<26?Pt-65:Pt-97<26?Pt-97:36)>=36||wt>ut((tt-zt)/yt))&&dt("overflow"),zt+=wt*yt,!(wt<(Et=Vt<=Xt?1:Vt>=Xt+26?26:Vt-Xt));Vt+=36)yt>ut(tt/(Jt=36-Et))&&dt("overflow"),yt*=Jt;Xt=Rt(zt-mt,kt=Yt.length+1,mt==0),ut(zt/kt)>tt-qt&&dt("overflow"),qt+=ut(zt/kt),zt%=kt,Yt.splice(zt++,0,qt)}return ft(Yt)}function Nt(At){var kt,Bt,jt,vt,mt,yt,Vt,wt,Et,Jt,Pt,Yt,Mt,zt,qt,Xt=[];for(Yt=(At=ht(At)).length,kt=128,Bt=0,mt=72,yt=0;yt=kt&&Ptut((tt-Bt)/(Mt=jt+1))&&dt("overflow"),Bt+=(Vt-kt)*Mt,kt=Vt,yt=0;yttt&&dt("overflow"),Pt==kt){for(wt=Bt,Et=36;!(wt<(Jt=Et<=mt?1:Et>=mt+26?26:Et-mt));Et+=36)qt=wt-Jt,zt=36-Jt,Xt.push(Ft(pt(Jt+qt%zt,0))),wt=ut(qt/zt);Xt.push(Ft(pt(wt,0))),mt=Rt(Bt,Mt,jt==vt),Bt=0,++jt}++Bt,++kt}return Xt.join("")}et={version:"1.4.1",ucs2:{decode:ht,encode:ft},decode:Qt,encode:Nt,toASCII:function(At){return Ut(At,function(kt){return rt.test(kt)?"xn--"+Nt(kt):kt})},toUnicode:function(At){return Ut(At,function(kt){return nt.test(kt)?Qt(kt.slice(4).toLowerCase()):kt})}},(j=function(){return et}.call(s,_,s,o))===void 0||(o.exports=j)}()},5442:(o,s,_)=>{var j=_(2113);function $(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var _e=/^([a-z0-9.+-]+:)/i,et=/:[0-9]*$/,tt=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,nt=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` -`," "]),rt=["'"].concat(nt),it=["%","/","?",";","#"].concat(rt),st=["/","?","#"],ut=/^[+a-z0-9A-Z_-]{0,63}$/,Ft=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,dt={javascript:!0,"javascript:":!0},gt={javascript:!0,"javascript:":!0},Ut={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ht=_(5810);function ft(pt,Rt,Qt){if(pt&&typeof pt=="object"&&pt instanceof $)return pt;var Nt=new $;return Nt.parse(pt,Rt,Qt),Nt}$.prototype.parse=function(pt,Rt,Qt){if(typeof pt!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof pt);var Nt=pt.indexOf("?"),At=Nt!==-1&&Nt127?Xt+="x":Xt+=qt[xt];if(!Xt.match(ut)){var $t=Mt.slice(0,Jt),un=Mt.slice(Jt+1),tn=qt.match(Ft);tn&&($t.push(tn[1]),un.unshift(tn[2])),un.length&&(Bt="/"+un.join(".")+Bt),this.hostname=$t.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),Yt||(this.hostname=j.toASCII(this.hostname));var an=this.port?":"+this.port:"",Kt=this.hostname||"";this.host=Kt+an,this.href+=this.host,Yt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Bt[0]!=="/"&&(Bt="/"+Bt))}if(!dt[mt])for(Jt=0,zt=rt.length;Jt0)&&Qt.host.split("@"))&&(Qt.auth=tn.shift(),Qt.hostname=tn.shift(),Qt.host=Qt.hostname)),Qt.search=pt.search,Qt.query=pt.query,Qt.pathname===null&&Qt.search===null||(Qt.path=(Qt.pathname?Qt.pathname:"")+(Qt.search?Qt.search:"")),Qt.href=Qt.format(),Qt;if(!qt.length)return Qt.pathname=null,Qt.search?Qt.path="/"+Qt.search:Qt.path=null,Qt.href=Qt.format(),Qt;for(var xt=qt.slice(-1)[0],It=(Qt.host||pt.host||qt.length>1)&&(xt==="."||xt==="..")||xt==="",$t=0,un=qt.length;un>=0;un--)(xt=qt[un])==="."?qt.splice(un,1):xt===".."?(qt.splice(un,1),$t++):$t&&(qt.splice(un,1),$t--);if(!Mt&&!zt)for(;$t--;$t)qt.unshift("..");!Mt||qt[0]===""||qt[0]&&qt[0].charAt(0)==="/"||qt.unshift(""),It&&qt.join("/").substr(-1)!=="/"&&qt.push("");var tn,an=qt[0]===""||qt[0]&&qt[0].charAt(0)==="/";return Xt&&(Qt.hostname=an?"":qt.length?qt.shift():"",Qt.host=Qt.hostname,(tn=!!(Qt.host&&Qt.host.indexOf("@")>0)&&Qt.host.split("@"))&&(Qt.auth=tn.shift(),Qt.hostname=tn.shift(),Qt.host=Qt.hostname)),(Mt=Mt||Qt.host&&qt.length)&&!an&&qt.unshift(""),qt.length>0?Qt.pathname=qt.join("/"):(Qt.pathname=null,Qt.path=null),Qt.pathname===null&&Qt.search===null||(Qt.path=(Qt.pathname?Qt.pathname:"")+(Qt.search?Qt.search:"")),Qt.auth=pt.auth||Qt.auth,Qt.slashes=Qt.slashes||pt.slashes,Qt.href=Qt.format(),Qt},$.prototype.parseHost=function(){var pt=this.host,Rt=et.exec(pt);Rt&&((Rt=Rt[0])!==":"&&(this.port=Rt.substr(1)),pt=pt.substr(0,pt.length-Rt.length)),pt&&(this.hostname=pt)},s.parse=ft,s.resolve=function(pt,Rt){return ft(pt,!1,!0).resolve(Rt)},s.resolveObject=function(pt,Rt){return pt?ft(pt,!1,!0).resolveObject(Rt):Rt},s.format=function(pt){return typeof pt=="string"&&(pt=ft(pt)),pt instanceof $?pt.format():$.prototype.format.call(pt)},s.Url=$},6732:(o,s,_)=>{function j($){try{if(!_.g.localStorage)return!1}catch{return!1}var _e=_.g.localStorage[$];return _e!=null&&String(_e).toLowerCase()==="true"}o.exports=function($,_e){if(j("noDeprecation"))return $;var et=!1;return function(){if(!et){if(j("throwDeprecation"))throw new Error(_e);j("traceDeprecation")?console.trace(_e):console.warn(_e),et=!0}return $.apply(this,arguments)}}},5272:o=>{o.exports=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}},1531:(o,s,_)=>{var j=_(5387),$=_(2625),_e=_(2730),et=_(5943);function tt(Jt){return Jt.call.bind(Jt)}var nt=typeof BigInt<"u",rt=typeof Symbol<"u",it=tt(Object.prototype.toString),st=tt(Number.prototype.valueOf),ut=tt(String.prototype.valueOf),Ft=tt(Boolean.prototype.valueOf);if(nt)var dt=tt(BigInt.prototype.valueOf);if(rt)var gt=tt(Symbol.prototype.valueOf);function Ut(Jt,Pt){if(typeof Jt!="object")return!1;try{return Pt(Jt),!0}catch{return!1}}function ht(Jt){return it(Jt)==="[object Map]"}function ft(Jt){return it(Jt)==="[object Set]"}function pt(Jt){return it(Jt)==="[object WeakMap]"}function Rt(Jt){return it(Jt)==="[object WeakSet]"}function Qt(Jt){return it(Jt)==="[object ArrayBuffer]"}function Nt(Jt){return typeof ArrayBuffer<"u"&&(Qt.working?Qt(Jt):Jt instanceof ArrayBuffer)}function At(Jt){return it(Jt)==="[object DataView]"}function kt(Jt){return typeof DataView<"u"&&(At.working?At(Jt):Jt instanceof DataView)}s.isArgumentsObject=j,s.isGeneratorFunction=$,s.isTypedArray=et,s.isPromise=function(Jt){return typeof Promise<"u"&&Jt instanceof Promise||Jt!==null&&typeof Jt=="object"&&typeof Jt.then=="function"&&typeof Jt.catch=="function"},s.isArrayBufferView=function(Jt){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Jt):et(Jt)||kt(Jt)},s.isUint8Array=function(Jt){return _e(Jt)==="Uint8Array"},s.isUint8ClampedArray=function(Jt){return _e(Jt)==="Uint8ClampedArray"},s.isUint16Array=function(Jt){return _e(Jt)==="Uint16Array"},s.isUint32Array=function(Jt){return _e(Jt)==="Uint32Array"},s.isInt8Array=function(Jt){return _e(Jt)==="Int8Array"},s.isInt16Array=function(Jt){return _e(Jt)==="Int16Array"},s.isInt32Array=function(Jt){return _e(Jt)==="Int32Array"},s.isFloat32Array=function(Jt){return _e(Jt)==="Float32Array"},s.isFloat64Array=function(Jt){return _e(Jt)==="Float64Array"},s.isBigInt64Array=function(Jt){return _e(Jt)==="BigInt64Array"},s.isBigUint64Array=function(Jt){return _e(Jt)==="BigUint64Array"},ht.working=typeof Map<"u"&&ht(new Map),s.isMap=function(Jt){return typeof Map<"u"&&(ht.working?ht(Jt):Jt instanceof Map)},ft.working=typeof Set<"u"&&ft(new Set),s.isSet=function(Jt){return typeof Set<"u"&&(ft.working?ft(Jt):Jt instanceof Set)},pt.working=typeof WeakMap<"u"&&pt(new WeakMap),s.isWeakMap=function(Jt){return typeof WeakMap<"u"&&(pt.working?pt(Jt):Jt instanceof WeakMap)},Rt.working=typeof WeakSet<"u"&&Rt(new WeakSet),s.isWeakSet=function(Jt){return Rt(Jt)},Qt.working=typeof ArrayBuffer<"u"&&Qt(new ArrayBuffer),s.isArrayBuffer=Nt,At.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&At(new DataView(new ArrayBuffer(1),0,1)),s.isDataView=kt;var Bt=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function jt(Jt){return it(Jt)==="[object SharedArrayBuffer]"}function vt(Jt){return Bt!==void 0&&(jt.working===void 0&&(jt.working=jt(new Bt)),jt.working?jt(Jt):Jt instanceof Bt)}function mt(Jt){return Ut(Jt,st)}function yt(Jt){return Ut(Jt,ut)}function Vt(Jt){return Ut(Jt,Ft)}function wt(Jt){return nt&&Ut(Jt,dt)}function Et(Jt){return rt&&Ut(Jt,gt)}s.isSharedArrayBuffer=vt,s.isAsyncFunction=function(Jt){return it(Jt)==="[object AsyncFunction]"},s.isMapIterator=function(Jt){return it(Jt)==="[object Map Iterator]"},s.isSetIterator=function(Jt){return it(Jt)==="[object Set Iterator]"},s.isGeneratorObject=function(Jt){return it(Jt)==="[object Generator]"},s.isWebAssemblyCompiledModule=function(Jt){return it(Jt)==="[object WebAssembly.Module]"},s.isNumberObject=mt,s.isStringObject=yt,s.isBooleanObject=Vt,s.isBigIntObject=wt,s.isSymbolObject=Et,s.isBoxedPrimitive=function(Jt){return mt(Jt)||yt(Jt)||Vt(Jt)||wt(Jt)||Et(Jt)},s.isAnyArrayBuffer=function(Jt){return typeof Uint8Array<"u"&&(Nt(Jt)||vt(Jt))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Jt){Object.defineProperty(s,Jt,{enumerable:!1,value:function(){throw new Error(Jt+" is not supported in userland")}})})},9208:(o,s,_)=>{var j=Object.getOwnPropertyDescriptors||function(Et){for(var Jt=Object.keys(Et),Pt={},Yt=0;Yt=Mt)return Xt;switch(Xt){case"%s":return String(Yt[Pt++]);case"%d":return Number(Yt[Pt++]);case"%j":try{return JSON.stringify(Yt[Pt++])}catch{return"[Circular]"}default:return Xt}}),qt=Yt[Pt];Pt"u")return function(){return s.deprecate(Et,Jt).apply(this,arguments)};var Pt=!1;return function(){if(!Pt){if(process.throwDeprecation)throw new Error(Jt);process.traceDeprecation?console.trace(Jt):console.error(Jt),Pt=!0}return Et.apply(this,arguments)}};var _e={},et=/^$/;if({}.NODE_DEBUG){var tt={}.NODE_DEBUG;tt=tt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),et=new RegExp("^"+tt+"$","i")}function nt(Et,Jt){var Pt={seen:[],stylize:it};return arguments.length>=3&&(Pt.depth=arguments[2]),arguments.length>=4&&(Pt.colors=arguments[3]),gt(Jt)?Pt.showHidden=Jt:Jt&&s._extend(Pt,Jt),pt(Pt.showHidden)&&(Pt.showHidden=!1),pt(Pt.depth)&&(Pt.depth=2),pt(Pt.colors)&&(Pt.colors=!1),pt(Pt.customInspect)&&(Pt.customInspect=!0),Pt.colors&&(Pt.stylize=rt),st(Pt,Et,Pt.depth)}function rt(Et,Jt){var Pt=nt.styles[Jt];return Pt?"\x1B["+nt.colors[Pt][0]+"m"+Et+"\x1B["+nt.colors[Pt][1]+"m":Et}function it(Et,Jt){return Et}function st(Et,Jt,Pt){if(Et.customInspect&&Jt&&kt(Jt.inspect)&&Jt.inspect!==s.inspect&&(!Jt.constructor||Jt.constructor.prototype!==Jt)){var Yt=Jt.inspect(Pt,Et);return ft(Yt)||(Yt=st(Et,Yt,Pt)),Yt}var Mt=function(tn,an){if(pt(an))return tn.stylize("undefined","undefined");if(ft(an)){var Kt="'"+JSON.stringify(an).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return tn.stylize(Kt,"string")}if(ht(an))return tn.stylize(""+an,"number");if(gt(an))return tn.stylize(""+an,"boolean");if(Ut(an))return tn.stylize("null","null")}(Et,Jt);if(Mt)return Mt;var zt=Object.keys(Jt),qt=function(tn){var an={};return tn.forEach(function(Kt,Un){an[Kt]=!0}),an}(zt);if(Et.showHidden&&(zt=Object.getOwnPropertyNames(Jt)),At(Jt)&&(zt.indexOf("message")>=0||zt.indexOf("description")>=0))return ut(Jt);if(zt.length===0){if(kt(Jt)){var Xt=Jt.name?": "+Jt.name:"";return Et.stylize("[Function"+Xt+"]","special")}if(Rt(Jt))return Et.stylize(RegExp.prototype.toString.call(Jt),"regexp");if(Nt(Jt))return Et.stylize(Date.prototype.toString.call(Jt),"date");if(At(Jt))return ut(Jt)}var xt,It="",$t=!1,un=["{","}"];return dt(Jt)&&($t=!0,un=["[","]"]),kt(Jt)&&(It=" [Function"+(Jt.name?": "+Jt.name:"")+"]"),Rt(Jt)&&(It=" "+RegExp.prototype.toString.call(Jt)),Nt(Jt)&&(It=" "+Date.prototype.toUTCString.call(Jt)),At(Jt)&&(It=" "+ut(Jt)),zt.length!==0||$t&&Jt.length!=0?Pt<0?Rt(Jt)?Et.stylize(RegExp.prototype.toString.call(Jt),"regexp"):Et.stylize("[Object]","special"):(Et.seen.push(Jt),xt=$t?function(tn,an,Kt,Un,Bn){for(var hn=[],En=0,Cn=an.length;En127?Xt+="x":Xt+=qt[xt];if(!Xt.match(ut)){var $t=Mt.slice(0,Jt),un=Mt.slice(Jt+1),tn=qt.match(Ft);tn&&($t.push(tn[1]),un.unshift(tn[2])),un.length&&(Bt="/"+un.join(".")+Bt),this.hostname=$t.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),Yt||(this.hostname=j.toASCII(this.hostname));var an=this.port?":"+this.port:"",Kt=this.hostname||"";this.host=Kt+an,this.href+=this.host,Yt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Bt[0]!=="/"&&(Bt="/"+Bt))}if(!dt[mt])for(Jt=0,zt=rt.length;Jt0)&&Qt.host.split("@"))&&(Qt.auth=tn.shift(),Qt.hostname=tn.shift(),Qt.host=Qt.hostname)),Qt.search=pt.search,Qt.query=pt.query,Qt.pathname===null&&Qt.search===null||(Qt.path=(Qt.pathname?Qt.pathname:"")+(Qt.search?Qt.search:"")),Qt.href=Qt.format(),Qt;if(!qt.length)return Qt.pathname=null,Qt.search?Qt.path="/"+Qt.search:Qt.path=null,Qt.href=Qt.format(),Qt;for(var xt=qt.slice(-1)[0],It=(Qt.host||pt.host||qt.length>1)&&(xt==="."||xt==="..")||xt==="",$t=0,un=qt.length;un>=0;un--)(xt=qt[un])==="."?qt.splice(un,1):xt===".."?(qt.splice(un,1),$t++):$t&&(qt.splice(un,1),$t--);if(!Mt&&!zt)for(;$t--;$t)qt.unshift("..");!Mt||qt[0]===""||qt[0]&&qt[0].charAt(0)==="/"||qt.unshift(""),It&&qt.join("/").substr(-1)!=="/"&&qt.push("");var tn,an=qt[0]===""||qt[0]&&qt[0].charAt(0)==="/";return Xt&&(Qt.hostname=an?"":qt.length?qt.shift():"",Qt.host=Qt.hostname,(tn=!!(Qt.host&&Qt.host.indexOf("@")>0)&&Qt.host.split("@"))&&(Qt.auth=tn.shift(),Qt.hostname=tn.shift(),Qt.host=Qt.hostname)),(Mt=Mt||Qt.host&&qt.length)&&!an&&qt.unshift(""),qt.length>0?Qt.pathname=qt.join("/"):(Qt.pathname=null,Qt.path=null),Qt.pathname===null&&Qt.search===null||(Qt.path=(Qt.pathname?Qt.pathname:"")+(Qt.search?Qt.search:"")),Qt.auth=pt.auth||Qt.auth,Qt.slashes=Qt.slashes||pt.slashes,Qt.href=Qt.format(),Qt},$.prototype.parseHost=function(){var pt=this.host,Rt=et.exec(pt);Rt&&((Rt=Rt[0])!==":"&&(this.port=Rt.substr(1)),pt=pt.substr(0,pt.length-Rt.length)),pt&&(this.hostname=pt)},s.parse=ft,s.resolve=function(pt,Rt){return ft(pt,!1,!0).resolve(Rt)},s.resolveObject=function(pt,Rt){return pt?ft(pt,!1,!0).resolveObject(Rt):Rt},s.format=function(pt){return typeof pt=="string"&&(pt=ft(pt)),pt instanceof $?pt.format():$.prototype.format.call(pt)},s.Url=$},6732:(o,s,_)=>{function j($){try{if(!_.g.localStorage)return!1}catch{return!1}var _e=_.g.localStorage[$];return _e!=null&&String(_e).toLowerCase()==="true"}o.exports=function($,_e){if(j("noDeprecation"))return $;var et=!1;return function(){if(!et){if(j("throwDeprecation"))throw new Error(_e);j("traceDeprecation")?console.trace(_e):console.warn(_e),et=!0}return $.apply(this,arguments)}}},5272:o=>{o.exports=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}},1531:(o,s,_)=>{var j=_(5387),$=_(2625),_e=_(2730),et=_(5943);function tt(Jt){return Jt.call.bind(Jt)}var nt=typeof BigInt<"u",rt=typeof Symbol<"u",it=tt(Object.prototype.toString),st=tt(Number.prototype.valueOf),ut=tt(String.prototype.valueOf),Ft=tt(Boolean.prototype.valueOf);if(nt)var dt=tt(BigInt.prototype.valueOf);if(rt)var gt=tt(Symbol.prototype.valueOf);function Ut(Jt,Pt){if(typeof Jt!="object")return!1;try{return Pt(Jt),!0}catch{return!1}}function ht(Jt){return it(Jt)==="[object Map]"}function ft(Jt){return it(Jt)==="[object Set]"}function pt(Jt){return it(Jt)==="[object WeakMap]"}function Rt(Jt){return it(Jt)==="[object WeakSet]"}function Qt(Jt){return it(Jt)==="[object ArrayBuffer]"}function Nt(Jt){return typeof ArrayBuffer<"u"&&(Qt.working?Qt(Jt):Jt instanceof ArrayBuffer)}function At(Jt){return it(Jt)==="[object DataView]"}function kt(Jt){return typeof DataView<"u"&&(At.working?At(Jt):Jt instanceof DataView)}s.isArgumentsObject=j,s.isGeneratorFunction=$,s.isTypedArray=et,s.isPromise=function(Jt){return typeof Promise<"u"&&Jt instanceof Promise||Jt!==null&&typeof Jt=="object"&&typeof Jt.then=="function"&&typeof Jt.catch=="function"},s.isArrayBufferView=function(Jt){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Jt):et(Jt)||kt(Jt)},s.isUint8Array=function(Jt){return _e(Jt)==="Uint8Array"},s.isUint8ClampedArray=function(Jt){return _e(Jt)==="Uint8ClampedArray"},s.isUint16Array=function(Jt){return _e(Jt)==="Uint16Array"},s.isUint32Array=function(Jt){return _e(Jt)==="Uint32Array"},s.isInt8Array=function(Jt){return _e(Jt)==="Int8Array"},s.isInt16Array=function(Jt){return _e(Jt)==="Int16Array"},s.isInt32Array=function(Jt){return _e(Jt)==="Int32Array"},s.isFloat32Array=function(Jt){return _e(Jt)==="Float32Array"},s.isFloat64Array=function(Jt){return _e(Jt)==="Float64Array"},s.isBigInt64Array=function(Jt){return _e(Jt)==="BigInt64Array"},s.isBigUint64Array=function(Jt){return _e(Jt)==="BigUint64Array"},ht.working=typeof Map<"u"&&ht(new Map),s.isMap=function(Jt){return typeof Map<"u"&&(ht.working?ht(Jt):Jt instanceof Map)},ft.working=typeof Set<"u"&&ft(new Set),s.isSet=function(Jt){return typeof Set<"u"&&(ft.working?ft(Jt):Jt instanceof Set)},pt.working=typeof WeakMap<"u"&&pt(new WeakMap),s.isWeakMap=function(Jt){return typeof WeakMap<"u"&&(pt.working?pt(Jt):Jt instanceof WeakMap)},Rt.working=typeof WeakSet<"u"&&Rt(new WeakSet),s.isWeakSet=function(Jt){return Rt(Jt)},Qt.working=typeof ArrayBuffer<"u"&&Qt(new ArrayBuffer),s.isArrayBuffer=Nt,At.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&At(new DataView(new ArrayBuffer(1),0,1)),s.isDataView=kt;var Bt=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function jt(Jt){return it(Jt)==="[object SharedArrayBuffer]"}function vt(Jt){return Bt!==void 0&&(jt.working===void 0&&(jt.working=jt(new Bt)),jt.working?jt(Jt):Jt instanceof Bt)}function mt(Jt){return Ut(Jt,st)}function yt(Jt){return Ut(Jt,ut)}function Vt(Jt){return Ut(Jt,Ft)}function wt(Jt){return nt&&Ut(Jt,dt)}function Et(Jt){return rt&&Ut(Jt,gt)}s.isSharedArrayBuffer=vt,s.isAsyncFunction=function(Jt){return it(Jt)==="[object AsyncFunction]"},s.isMapIterator=function(Jt){return it(Jt)==="[object Map Iterator]"},s.isSetIterator=function(Jt){return it(Jt)==="[object Set Iterator]"},s.isGeneratorObject=function(Jt){return it(Jt)==="[object Generator]"},s.isWebAssemblyCompiledModule=function(Jt){return it(Jt)==="[object WebAssembly.Module]"},s.isNumberObject=mt,s.isStringObject=yt,s.isBooleanObject=Vt,s.isBigIntObject=wt,s.isSymbolObject=Et,s.isBoxedPrimitive=function(Jt){return mt(Jt)||yt(Jt)||Vt(Jt)||wt(Jt)||Et(Jt)},s.isAnyArrayBuffer=function(Jt){return typeof Uint8Array<"u"&&(Nt(Jt)||vt(Jt))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Jt){Object.defineProperty(s,Jt,{enumerable:!1,value:function(){throw new Error(Jt+" is not supported in userland")}})})},9208:(o,s,_)=>{var j=Object.getOwnPropertyDescriptors||function(Et){for(var Jt=Object.keys(Et),Pt={},Yt=0;Yt=Mt)return Xt;switch(Xt){case"%s":return String(Yt[Pt++]);case"%d":return Number(Yt[Pt++]);case"%j":try{return JSON.stringify(Yt[Pt++])}catch{return"[Circular]"}default:return Xt}}),qt=Yt[Pt];Pt"u")return function(){return s.deprecate(Et,Jt).apply(this,arguments)};var Pt=!1;return function(){if(!Pt){if(process.throwDeprecation)throw new Error(Jt);process.traceDeprecation?console.trace(Jt):console.error(Jt),Pt=!0}return Et.apply(this,arguments)}};var _e={},et=/^$/;if({NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.NODE_DEBUG){var tt={NAMESPACE:'""',APP:'""',NODE_ENV:'"production"',LOG_JSON:'"false"'}.NODE_DEBUG;tt=tt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),et=new RegExp("^"+tt+"$","i")}function nt(Et,Jt){var Pt={seen:[],stylize:it};return arguments.length>=3&&(Pt.depth=arguments[2]),arguments.length>=4&&(Pt.colors=arguments[3]),gt(Jt)?Pt.showHidden=Jt:Jt&&s._extend(Pt,Jt),pt(Pt.showHidden)&&(Pt.showHidden=!1),pt(Pt.depth)&&(Pt.depth=2),pt(Pt.colors)&&(Pt.colors=!1),pt(Pt.customInspect)&&(Pt.customInspect=!0),Pt.colors&&(Pt.stylize=rt),st(Pt,Et,Pt.depth)}function rt(Et,Jt){var Pt=nt.styles[Jt];return Pt?"\x1B["+nt.colors[Pt][0]+"m"+Et+"\x1B["+nt.colors[Pt][1]+"m":Et}function it(Et,Jt){return Et}function st(Et,Jt,Pt){if(Et.customInspect&&Jt&&kt(Jt.inspect)&&Jt.inspect!==s.inspect&&(!Jt.constructor||Jt.constructor.prototype!==Jt)){var Yt=Jt.inspect(Pt,Et);return ft(Yt)||(Yt=st(Et,Yt,Pt)),Yt}var Mt=function(tn,an){if(pt(an))return tn.stylize("undefined","undefined");if(ft(an)){var Kt="'"+JSON.stringify(an).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return tn.stylize(Kt,"string")}if(ht(an))return tn.stylize(""+an,"number");if(gt(an))return tn.stylize(""+an,"boolean");if(Ut(an))return tn.stylize("null","null")}(Et,Jt);if(Mt)return Mt;var zt=Object.keys(Jt),qt=function(tn){var an={};return tn.forEach(function(Kt,Un){an[Kt]=!0}),an}(zt);if(Et.showHidden&&(zt=Object.getOwnPropertyNames(Jt)),At(Jt)&&(zt.indexOf("message")>=0||zt.indexOf("description")>=0))return ut(Jt);if(zt.length===0){if(kt(Jt)){var Xt=Jt.name?": "+Jt.name:"";return Et.stylize("[Function"+Xt+"]","special")}if(Rt(Jt))return Et.stylize(RegExp.prototype.toString.call(Jt),"regexp");if(Nt(Jt))return Et.stylize(Date.prototype.toString.call(Jt),"date");if(At(Jt))return ut(Jt)}var xt,It="",$t=!1,un=["{","}"];return dt(Jt)&&($t=!0,un=["[","]"]),kt(Jt)&&(It=" [Function"+(Jt.name?": "+Jt.name:"")+"]"),Rt(Jt)&&(It=" "+RegExp.prototype.toString.call(Jt)),Nt(Jt)&&(It=" "+Date.prototype.toUTCString.call(Jt)),At(Jt)&&(It=" "+ut(Jt)),zt.length!==0||$t&&Jt.length!=0?Pt<0?Rt(Jt)?Et.stylize(RegExp.prototype.toString.call(Jt),"regexp"):Et.stylize("[Object]","special"):(Et.seen.push(Jt),xt=$t?function(tn,an,Kt,Un,Bn){for(var hn=[],En=0,Cn=an.length;En=0,Un+Bn.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?Kt[0]+(an===""?"":an+` `)+" "+tn.join(`, `)+" "+Kt[1]:Kt[0]+an+" "+tn.join(", ")+" "+Kt[1]}(xt,It,un)):un[0]+It+un[1]}function ut(Et){return"["+Error.prototype.toString.call(Et)+"]"}function Ft(Et,Jt,Pt,Yt,Mt,zt){var qt,Xt,xt;if((xt=Object.getOwnPropertyDescriptor(Jt,Mt)||{value:Jt[Mt]}).get?Xt=xt.set?Et.stylize("[Getter/Setter]","special"):Et.stylize("[Getter]","special"):xt.set&&(Xt=Et.stylize("[Setter]","special")),yt(Yt,Mt)||(qt="["+Mt+"]"),Xt||(Et.seen.indexOf(xt.value)<0?(Xt=Ut(Pt)?st(Et,xt.value,null):st(Et,xt.value,Pt-1)).indexOf(` @@ -188,7 +188,7 @@ ${wt}`),mt.pop(),`{${Yt}}`}case"number":return isFinite(vt)?String(vt):Ut?Ut(vt) * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(o,s){(function(){var _,j="4.17.21",$=200,_e="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",et="Expected a function",tt="Invalid `variable` option passed into `_.template`",nt="__lodash_hash_undefined__",rt=500,it="__lodash_placeholder__",st=1,ut=2,Ft=4,dt=1,gt=2,Ut=1,ht=2,ft=4,pt=8,Rt=16,Qt=32,Nt=64,At=128,kt=256,Bt=512,jt=30,vt="...",mt=800,yt=16,Vt=1,wt=2,Et=3,Jt=1/0,Pt=9007199254740991,Yt=17976931348623157e292,Mt=0/0,zt=4294967295,qt=zt-1,Xt=zt>>>1,xt=[["ary",At],["bind",Ut],["bindKey",ht],["curry",pt],["curryRight",Rt],["flip",Bt],["partial",Qt],["partialRight",Nt],["rearg",kt]],It="[object Arguments]",$t="[object Array]",un="[object AsyncFunction]",tn="[object Boolean]",an="[object Date]",Kt="[object DOMException]",Un="[object Error]",Bn="[object Function]",hn="[object GeneratorFunction]",En="[object Map]",Cn="[object Number]",Tt="[object Null]",Zt="[object Object]",Ot="[object Promise]",sn="[object Proxy]",ln="[object RegExp]",cn="[object Set]",fn="[object String]",_n="[object Symbol]",On="[object Undefined]",xn="[object WeakMap]",Ln="[object WeakSet]",Pn="[object ArrayBuffer]",Er="[object DataView]",tr="[object Float32Array]",zr="[object Float64Array]",xr="[object Int8Array]",Kr="[object Int16Array]",Gr="[object Int32Array]",Lo="[object Uint8Array]",oo="[object Uint8ClampedArray]",eo="[object Uint16Array]",Uo="[object Uint32Array]",Fs=/\b__p \+= '';/g,_o=/\b(__p \+=) '' \+/g,Po=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ko=/&(?:amp|lt|gt|quot|#39);/g,Eo=/[&<>"']/g,Bo=RegExp(Ko.source),Co=RegExp(Eo.source),In=/<%-([\s\S]+?)%>/g,wr=/<%([\s\S]+?)%>/g,Zr=/<%=([\s\S]+?)%>/g,io=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bo=/^\w*$/,bs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ts=/[\\^$.*+?()[\]{}|]/g,js=RegExp(ts.source),Sr=/^\s+/,gs=/\s/,Vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fo=/\{\n\/\* \[wrapped with (.+)\] \*/,no=/,? & /,Is=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ts=/[()=,{}\[\]\/\s]/,vs=/\\(\\)?/g,lo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Js=/\w*$/,Nr=/^[-+]0x[0-9a-f]+$/i,Ns=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,bt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,Lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nn=/($^)/,dn=/['\n\r\u2028\u2029\\]/g,pn="\\ud800-\\udfff",Tn="\\u0300-\\u036f",vn="\\ufe20-\\ufe2f",Rn="\\u20d0-\\u20ff",Fn=Tn+vn+Rn,Zn="\\u2700-\\u27bf",zn="a-z\\xdf-\\xf6\\xf8-\\xff",sr="\\xac\\xb1\\xd7\\xf7",fr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jr="\\u2000-\\u206f",Br=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yr="A-Z\\xc0-\\xd6\\xd8-\\xde",Wr="\\ufe0e\\ufe0f",ar=sr+fr+jr+Br,cr="['’]",Dr="["+pn+"]",Ar="["+ar+"]",Or="["+Fn+"]",Vr="\\d+",Cr="["+Zn+"]",so="["+zn+"]",Vo="[^"+pn+ar+Vr+Zn+zn+Yr+"]",wo="\\ud83c[\\udffb-\\udfff]",_u="(?:"+Or+"|"+wo+")",Ws="[^"+pn+"]",Ls="(?:\\ud83c[\\udde6-\\uddff]){2}",$a="[\\ud800-\\udbff][\\udc00-\\udfff]",ps="["+Yr+"]",xl="\\u200d",Ul="(?:"+so+"|"+Vo+")",Il="(?:"+ps+"|"+Vo+")",Fl="(?:"+cr+"(?:d|ll|m|re|s|t|ve))?",Ps="(?:"+cr+"(?:D|LL|M|RE|S|T|VE))?",Ql=_u+"?",ns="["+Wr+"]?",zo="(?:"+xl+"(?:"+[Ws,Ls,$a].join("|")+")"+ns+Ql+")*",Ll="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ks="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pl=ns+Ql+zo,zl="(?:"+[Cr,Ls,$a].join("|")+")"+Pl,Cu="(?:"+[Ws+Or+"?",Or,Ls,$a,Dr].join("|")+")",Zo=RegExp(cr,"g"),_s=RegExp(Or,"g"),qo=RegExp(wo+"(?="+wo+")|"+Cu+Pl,"g"),go=RegExp([ps+"?"+so+"+"+Fl+"(?="+[Ar,ps,"$"].join("|")+")",Il+"+"+Ps+"(?="+[Ar,ps+Ul,"$"].join("|")+")",ps+"?"+Ul+"+"+Fl,ps+"+"+Ps,ks,Ll,Vr,zl].join("|"),"g"),Bl=RegExp("["+xl+pn+Fn+Wr+"]"),Gl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wt=-1,Gt={};Gt[tr]=Gt[zr]=Gt[xr]=Gt[Kr]=Gt[Gr]=Gt[Lo]=Gt[oo]=Gt[eo]=Gt[Uo]=!0,Gt[It]=Gt[$t]=Gt[Pn]=Gt[tn]=Gt[Er]=Gt[an]=Gt[Un]=Gt[Bn]=Gt[En]=Gt[Cn]=Gt[Zt]=Gt[ln]=Gt[cn]=Gt[fn]=Gt[xn]=!1;var on={};on[It]=on[$t]=on[Pn]=on[Er]=on[tn]=on[an]=on[tr]=on[zr]=on[xr]=on[Kr]=on[Gr]=on[En]=on[Cn]=on[Zt]=on[ln]=on[cn]=on[fn]=on[_n]=on[Lo]=on[oo]=on[eo]=on[Uo]=!0,on[Un]=on[Bn]=on[xn]=!1;var Qn={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jn={"&":"&","<":"<",">":">",'"':""","'":"'"},Wn={"&":"&","<":"<",">":">",""":'"',"'":"'"},yn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kn=parseFloat,Mn=parseInt,Yn=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,Kn=typeof self=="object"&&self&&self.Object===Object&&self,$n=Yn||Kn||Function("return this")(),pr=s&&!s.nodeType&&s,br=pr&&!0&&o&&!o.nodeType&&o,kr=br&&br.exports===pr,er=kr&&Yn.process,Tr=function(){try{var mn=br&&br.require&&br.require("util").types;return mn||er&&er.binding&&er.binding("util")}catch{}}(),po=Tr&&Tr.isArrayBuffer,DU=Tr&&Tr.isDate,MU=Tr&&Tr.isMap,AU=Tr&&Tr.isRegExp,OU=Tr&&Tr.isSet,xU=Tr&&Tr.isTypedArray;function To(mn,wn,Nn){switch(Nn.length){case 0:return mn.call(wn);case 1:return mn.call(wn,Nn[0]);case 2:return mn.call(wn,Nn[0],Nn[1]);case 3:return mn.call(wn,Nn[0],Nn[1],Nn[2])}return mn.apply(wn,Nn)}function Op(mn,wn,Nn,Hn){for(var lr=-1,vr=mn==null?0:mn.length;++lr-1}function wu(mn,wn,Nn){for(var Hn=-1,lr=mn==null?0:mn.length;++Hn-1;);return Nn}function HU(mn,wn){for(var Nn=mn.length;Nn--&&zs(wn,mn[Nn],0)>-1;);return Nn}function Hp(mn,wn){for(var Nn=mn.length,Hn=0;Nn--;)mn[Nn]===wn&&++Hn;return Hn}var Xp=Au(Qn),Kp=Au(Jn);function qp(mn){return"\\"+yn[mn]}function $p(mn,wn){return mn==null?_:mn[wn]}function Gs(mn){return Bl.test(mn)}function _h(mn){return Gl.test(mn)}function eQ(mn){for(var wn,Nn=[];!(wn=mn.next()).done;)Nn.push(wn.value);return Nn}function Iu(mn){var wn=-1,Nn=Array(mn.size);return mn.forEach(function(Hn,lr){Nn[++wn]=[lr,Hn]}),Nn}function XU(mn,wn){return function(Nn){return mn(wn(Nn))}}function fs(mn,wn){for(var Nn=-1,Hn=mn.length,lr=0,vr=[];++Nn-1}function xQ(ot,lt){var St=this.__data__,Dt=du(St,ot);return Dt<0?(++this.size,St.push([ot,lt])):St[Dt][1]=lt,this}rs.prototype.clear=DQ,rs.prototype.delete=MQ,rs.prototype.get=AQ,rs.prototype.has=OQ,rs.prototype.set=xQ;function is(ot){var lt=-1,St=ot==null?0:ot.length;for(this.clear();++lt=lt?ot:lt)),ot}function Oo(ot,lt,St,Dt,Ht,rn){var gn,Sn=lt&st,Vn=lt&ut,Dn=lt&Ft;if(St&&(gn=Ht?St(ot,Dt,Ht,rn):St(ot)),gn!==_)return gn;if(!Lr(ot))return ot;var An=ur(ot);if(An){if(gn=LB(ot),!Sn)return Ro(ot,gn)}else{var jn=uo(ot),Gn=jn==Bn||jn==hn;if(Es(ot))return kF(ot,Sn);if(jn==Zt||jn==It||Gn&&!Ht){if(gn=Vn||Gn?{}:KF(ot),!Sn)return Vn?_B(ot,nB(gn,ot)):kB(ot,lF(gn,ot))}else{if(!on[jn])return Ht?ot:{};gn=PB(ot,jn,Sn)}}rn||(rn=new Yo);var qn=rn.get(ot);if(qn)return qn;rn.set(ot,gn),bp(ot)?ot.forEach(function(ir){gn.add(Oo(ir,lt,St,ir,ot,rn))}):yp(ot)&&ot.forEach(function(ir,hr){gn.set(hr,Oo(ir,lt,St,hr,ot,rn))});var or=Dn?Vn?gU:FU:Vn?mo:ro,Ur=An?_:or(ot);return Do(Ur||ot,function(ir,hr){Ur&&(hr=ir,ir=ot[hr]),Nl(gn,hr,Oo(ir,lt,St,hr,ot,rn))}),gn}function rB(ot){var lt=ro(ot);return function(St){return cF(St,ot,lt)}}function cF(ot,lt,St){var Dt=St.length;if(ot==null)return!Dt;for(ot=Mr(ot);Dt--;){var Ht=St[Dt],rn=lt[Ht],gn=ot[Ht];if(gn===_&&!(Ht in ot)||!rn(gn))return!1}return!0}function uF(ot,lt,St){if(typeof ot!="function")throw new Mo(et);return Al(function(){ot.apply(_,St)},lt)}function Wl(ot,lt,St,Dt){var Ht=-1,rn=Yl,gn=!0,Sn=ot.length,Vn=[],Dn=lt.length;if(!Sn)return Vn;St&&(lt=Ir(lt,vo(St))),Dt?(rn=wu,gn=!1):lt.length>=$&&(rn=Sl,gn=!1,lt=new Zs(lt));e:for(;++HtHt?0:Ht+St),Dt=Dt===_||Dt>Ht?Ht:dr(Dt),Dt<0&&(Dt+=Ht),Dt=St>Dt?0:Tp(Dt);St0&&St(Sn)?lt>1?ao(Sn,lt-1,St,Dt,Ht):Qs(Ht,Sn):Dt||(Ht[Ht.length]=Sn)}return Ht}var Xu=MF(),FF=MF(!0);function $o(ot,lt){return ot&&Xu(ot,lt,ro)}function Ku(ot,lt){return ot&&FF(ot,lt,ro)}function Fu(ot,lt){return hs(lt,function(St){return us(ot[St])})}function Ms(ot,lt){lt=ms(lt,ot);for(var St=0,Dt=lt.length;ot!=null&&Stlt}function sB(ot,lt){return ot!=null&&_r.call(ot,lt)}function aB(ot,lt){return ot!=null&< in Mr(ot)}function lB(ot,lt,St){return ot>=co(lt,St)&&ot<$r(lt,St)}function $u(ot,lt,St){for(var Dt=St?wu:Yl,Ht=ot[0].length,rn=ot.length,gn=rn,Sn=Nn(rn),Vn=1/0,Dn=[];gn--;){var An=ot[gn];gn&<&&(An=Ir(An,vo(lt))),Vn=co(An.length,Vn),Sn[gn]=!St&&(lt||Ht>=120&&An.length>=120)?new Zs(gn&&An):_}An=ot[0];var jn=-1,Gn=Sn[0];e:for(;++jn-1;)Sn!==ot&&ou.call(Sn,Vn,1),ou.call(ot,Vn,1);return ot}function EF(ot,lt){for(var St=ot?lt.length:0,Dt=St-1;St--;){var Ht=lt[St];if(St==Dt||Ht!==rn){var rn=Ht;cs(Ht)?ou.call(ot,Ht,1):sU(ot,Ht)}}return ot}function rU(ot,lt){return ot+au(oF()*(lt-ot+1))}function SB(ot,lt,St,Dt){for(var Ht=-1,rn=$r(su((lt-ot)/(St||1)),0),gn=Nn(rn);rn--;)gn[Dt?rn:++Ht]=ot,ot+=St;return gn}function oU(ot,lt){var St="";if(!ot||lt<1||lt>Pt)return St;do lt%2&&(St+=ot),lt=au(lt/2),lt&&(ot+=ot);while(lt);return St}function gr(ot,lt){return SU(_g(ot,lt,yo),ot+"")}function mB(ot){return aF(xa(ot))}function yB(ot,lt){var St=xa(ot);return Eu(St,Ds(lt,0,St.length))}function Zl(ot,lt,St,Dt){if(!Lr(ot))return ot;lt=ms(lt,ot);for(var Ht=-1,rn=lt.length,gn=rn-1,Sn=ot;Sn!=null&&++HtHt?0:Ht+lt),St=St>Ht?Ht:St,St<0&&(St+=Ht),Ht=lt>St?0:St-lt>>>0,lt>>>=0;for(var rn=Nn(Ht);++Dt>>1,gn=ot[rn];gn!==null&&!No(gn)&&(St?gn<=lt:gn=$){var Dn=lt?null:DB(ot);if(Dn)return Xl(Dn);gn=!1,Ht=Sl,Vn=new Zs}else Vn=lt?[]:Sn;e:for(;++Dt=Dt?ot:xo(ot,lt,St)}var WF=pQ||function(ot){return $n.clearTimeout(ot)};function kF(ot,lt){if(lt)return ot.slice();var St=ot.length,Dt=$U?$U(St):new ot.constructor(St);return ot.copy(Dt),Dt}function uU(ot){var lt=new ot.constructor(ot.byteLength);return new nu(lt).set(new nu(ot)),lt}function vB(ot,lt){var St=lt?uU(ot.buffer):ot.buffer;return new ot.constructor(St,ot.byteOffset,ot.byteLength)}function JB(ot){var lt=new ot.constructor(ot.source,Js.exec(ot));return lt.lastIndex=ot.lastIndex,lt}function NB(ot){return Jl?Mr(Jl.call(ot)):{}}function _F(ot,lt){var St=lt?uU(ot.buffer):ot.buffer;return new ot.constructor(St,ot.byteOffset,ot.length)}function CF(ot,lt){if(ot!==lt){var St=ot!==_,Dt=ot===null,Ht=ot===ot,rn=No(ot),gn=lt!==_,Sn=lt===null,Vn=lt===lt,Dn=No(lt);if(!Sn&&!Dn&&!rn&&ot>lt||rn&&gn&&Vn&&!Sn&&!Dn||Dt&&gn&&Vn||!St&&Vn||!Ht)return 1;if(!Dt&&!rn&&!Dn&&ot=Sn)return Vn;var Dn=St[Dt];return Vn*(Dn=="desc"?-1:1)}}return ot.index-lt.index}function wF(ot,lt,St,Dt){for(var Ht=-1,rn=ot.length,gn=St.length,Sn=-1,Vn=lt.length,Dn=$r(rn-gn,0),An=Nn(Vn+Dn),jn=!Dt;++Sn1?St[Ht-1]:_,gn=Ht>2?St[2]:_;for(rn=ot.length>3&&typeof rn=="function"?(Ht--,rn):_,gn&&Qo(St[0],St[1],gn)&&(rn=Ht<3?_:rn,Ht=1),lt=Mr(lt);++Dt-1?Ht[rn?lt[gn]:gn]:_}}function xF(ot){return ls(function(lt){var St=lt.length,Dt=St,Ht=Ao.prototype.thru;for(ot&<.reverse();Dt--;){var rn=lt[Dt];if(typeof rn!="function")throw new Mo(et);if(Ht&&!gn&&mu(rn)=="wrapper")var gn=new Ao([],!0)}for(Dt=gn?Dt:St;++Dt1&&mr.reverse(),An&&VnSn))return!1;var Dn=rn.get(ot),An=rn.get(lt);if(Dn&&An)return Dn==lt&&An==ot;var jn=-1,Gn=!0,qn=St>?new Zs:_;for(rn.set(ot,lt),rn.set(lt,ot);++jn1?"& ":"")+lt[Dt],lt=lt.join(St>2?", ":" "),ot.replace(Vs,`{ + */(function(o,s){(function(){var _,j="4.17.21",$=200,_e="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",et="Expected a function",tt="Invalid `variable` option passed into `_.template`",nt="__lodash_hash_undefined__",rt=500,it="__lodash_placeholder__",st=1,ut=2,Ft=4,dt=1,gt=2,Ut=1,ht=2,ft=4,pt=8,Rt=16,Qt=32,Nt=64,At=128,kt=256,Bt=512,jt=30,vt="...",mt=800,yt=16,Vt=1,wt=2,Et=3,Jt=1/0,Pt=9007199254740991,Yt=17976931348623157e292,Mt=0/0,zt=4294967295,qt=zt-1,Xt=zt>>>1,xt=[["ary",At],["bind",Ut],["bindKey",ht],["curry",pt],["curryRight",Rt],["flip",Bt],["partial",Qt],["partialRight",Nt],["rearg",kt]],It="[object Arguments]",$t="[object Array]",un="[object AsyncFunction]",tn="[object Boolean]",an="[object Date]",Kt="[object DOMException]",Un="[object Error]",Bn="[object Function]",hn="[object GeneratorFunction]",En="[object Map]",Cn="[object Number]",Tt="[object Null]",Zt="[object Object]",Ot="[object Promise]",sn="[object Proxy]",ln="[object RegExp]",cn="[object Set]",fn="[object String]",_n="[object Symbol]",On="[object Undefined]",xn="[object WeakMap]",Ln="[object WeakSet]",Pn="[object ArrayBuffer]",Er="[object DataView]",tr="[object Float32Array]",zr="[object Float64Array]",xr="[object Int8Array]",Kr="[object Int16Array]",Gr="[object Int32Array]",Lo="[object Uint8Array]",oo="[object Uint8ClampedArray]",eo="[object Uint16Array]",Uo="[object Uint32Array]",Fs=/\b__p \+= '';/g,_o=/\b(__p \+=) '' \+/g,Po=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ko=/&(?:amp|lt|gt|quot|#39);/g,Eo=/[&<>"']/g,Bo=RegExp(Ko.source),Co=RegExp(Eo.source),In=/<%-([\s\S]+?)%>/g,wr=/<%([\s\S]+?)%>/g,Zr=/<%=([\s\S]+?)%>/g,io=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bo=/^\w*$/,bs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ts=/[\\^$.*+?()[\]{}|]/g,js=RegExp(ts.source),Sr=/^\s+/,gs=/\s/,Vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fo=/\{\n\/\* \[wrapped with (.+)\] \*/,no=/,? & /,Is=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ts=/[()=,{}\[\]\/\s]/,vs=/\\(\\)?/g,lo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Js=/\w*$/,Nr=/^[-+]0x[0-9a-f]+$/i,Ns=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,bt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,Lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nn=/($^)/,dn=/['\n\r\u2028\u2029\\]/g,pn="\\ud800-\\udfff",Tn="\\u0300-\\u036f",vn="\\ufe20-\\ufe2f",Rn="\\u20d0-\\u20ff",Fn=Tn+vn+Rn,Zn="\\u2700-\\u27bf",zn="a-z\\xdf-\\xf6\\xf8-\\xff",sr="\\xac\\xb1\\xd7\\xf7",fr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jr="\\u2000-\\u206f",Br=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yr="A-Z\\xc0-\\xd6\\xd8-\\xde",Wr="\\ufe0e\\ufe0f",ar=sr+fr+jr+Br,cr="['’]",Dr="["+pn+"]",Ar="["+ar+"]",Or="["+Fn+"]",Vr="\\d+",Cr="["+Zn+"]",so="["+zn+"]",Vo="[^"+pn+ar+Vr+Zn+zn+Yr+"]",wo="\\ud83c[\\udffb-\\udfff]",_u="(?:"+Or+"|"+wo+")",Ws="[^"+pn+"]",Ls="(?:\\ud83c[\\udde6-\\uddff]){2}",$a="[\\ud800-\\udbff][\\udc00-\\udfff]",ps="["+Yr+"]",xl="\\u200d",Ul="(?:"+so+"|"+Vo+")",Il="(?:"+ps+"|"+Vo+")",Fl="(?:"+cr+"(?:d|ll|m|re|s|t|ve))?",Ps="(?:"+cr+"(?:D|LL|M|RE|S|T|VE))?",Ql=_u+"?",ns="["+Wr+"]?",zo="(?:"+xl+"(?:"+[Ws,Ls,$a].join("|")+")"+ns+Ql+")*",Ll="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ks="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pl=ns+Ql+zo,zl="(?:"+[Cr,Ls,$a].join("|")+")"+Pl,Cu="(?:"+[Ws+Or+"?",Or,Ls,$a,Dr].join("|")+")",Zo=RegExp(cr,"g"),_s=RegExp(Or,"g"),qo=RegExp(wo+"(?="+wo+")|"+Cu+Pl,"g"),go=RegExp([ps+"?"+so+"+"+Fl+"(?="+[Ar,ps,"$"].join("|")+")",Il+"+"+Ps+"(?="+[Ar,ps+Ul,"$"].join("|")+")",ps+"?"+Ul+"+"+Fl,ps+"+"+Ps,ks,Ll,Vr,zl].join("|"),"g"),Bl=RegExp("["+xl+pn+Fn+Wr+"]"),Gl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wt=-1,Gt={};Gt[tr]=Gt[zr]=Gt[xr]=Gt[Kr]=Gt[Gr]=Gt[Lo]=Gt[oo]=Gt[eo]=Gt[Uo]=!0,Gt[It]=Gt[$t]=Gt[Pn]=Gt[tn]=Gt[Er]=Gt[an]=Gt[Un]=Gt[Bn]=Gt[En]=Gt[Cn]=Gt[Zt]=Gt[ln]=Gt[cn]=Gt[fn]=Gt[xn]=!1;var on={};on[It]=on[$t]=on[Pn]=on[Er]=on[tn]=on[an]=on[tr]=on[zr]=on[xr]=on[Kr]=on[Gr]=on[En]=on[Cn]=on[Zt]=on[ln]=on[cn]=on[fn]=on[_n]=on[Lo]=on[oo]=on[eo]=on[Uo]=!0,on[Un]=on[Bn]=on[xn]=!1;var Qn={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jn={"&":"&","<":"<",">":">",'"':""","'":"'"},Wn={"&":"&","<":"<",">":">",""":'"',"'":"'"},yn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kn=parseFloat,Mn=parseInt,Yn=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Kn=typeof self=="object"&&self&&self.Object===Object&&self,$n=Yn||Kn||Function("return this")(),pr=s&&!s.nodeType&&s,br=pr&&!0&&o&&!o.nodeType&&o,kr=br&&br.exports===pr,er=kr&&Yn.process,Tr=function(){try{var mn=br&&br.require&&br.require("util").types;return mn||er&&er.binding&&er.binding("util")}catch{}}(),po=Tr&&Tr.isArrayBuffer,DU=Tr&&Tr.isDate,MU=Tr&&Tr.isMap,AU=Tr&&Tr.isRegExp,OU=Tr&&Tr.isSet,xU=Tr&&Tr.isTypedArray;function To(mn,wn,Nn){switch(Nn.length){case 0:return mn.call(wn);case 1:return mn.call(wn,Nn[0]);case 2:return mn.call(wn,Nn[0],Nn[1]);case 3:return mn.call(wn,Nn[0],Nn[1],Nn[2])}return mn.apply(wn,Nn)}function Op(mn,wn,Nn,Hn){for(var lr=-1,vr=mn==null?0:mn.length;++lr-1}function wu(mn,wn,Nn){for(var Hn=-1,lr=mn==null?0:mn.length;++Hn-1;);return Nn}function HU(mn,wn){for(var Nn=mn.length;Nn--&&zs(wn,mn[Nn],0)>-1;);return Nn}function Hp(mn,wn){for(var Nn=mn.length,Hn=0;Nn--;)mn[Nn]===wn&&++Hn;return Hn}var Xp=Au(Qn),Kp=Au(Jn);function qp(mn){return"\\"+yn[mn]}function $p(mn,wn){return mn==null?_:mn[wn]}function Gs(mn){return Bl.test(mn)}function _h(mn){return Gl.test(mn)}function eQ(mn){for(var wn,Nn=[];!(wn=mn.next()).done;)Nn.push(wn.value);return Nn}function Iu(mn){var wn=-1,Nn=Array(mn.size);return mn.forEach(function(Hn,lr){Nn[++wn]=[lr,Hn]}),Nn}function XU(mn,wn){return function(Nn){return mn(wn(Nn))}}function fs(mn,wn){for(var Nn=-1,Hn=mn.length,lr=0,vr=[];++Nn-1}function xQ(ot,lt){var St=this.__data__,Dt=du(St,ot);return Dt<0?(++this.size,St.push([ot,lt])):St[Dt][1]=lt,this}rs.prototype.clear=DQ,rs.prototype.delete=MQ,rs.prototype.get=AQ,rs.prototype.has=OQ,rs.prototype.set=xQ;function is(ot){var lt=-1,St=ot==null?0:ot.length;for(this.clear();++lt=lt?ot:lt)),ot}function Oo(ot,lt,St,Dt,Ht,rn){var gn,Sn=lt&st,Vn=lt&ut,Dn=lt&Ft;if(St&&(gn=Ht?St(ot,Dt,Ht,rn):St(ot)),gn!==_)return gn;if(!Lr(ot))return ot;var An=ur(ot);if(An){if(gn=LB(ot),!Sn)return Ro(ot,gn)}else{var jn=uo(ot),Gn=jn==Bn||jn==hn;if(Es(ot))return kF(ot,Sn);if(jn==Zt||jn==It||Gn&&!Ht){if(gn=Vn||Gn?{}:KF(ot),!Sn)return Vn?_B(ot,nB(gn,ot)):kB(ot,lF(gn,ot))}else{if(!on[jn])return Ht?ot:{};gn=PB(ot,jn,Sn)}}rn||(rn=new Yo);var qn=rn.get(ot);if(qn)return qn;rn.set(ot,gn),bp(ot)?ot.forEach(function(ir){gn.add(Oo(ir,lt,St,ir,ot,rn))}):yp(ot)&&ot.forEach(function(ir,hr){gn.set(hr,Oo(ir,lt,St,hr,ot,rn))});var or=Dn?Vn?gU:FU:Vn?mo:ro,Ur=An?_:or(ot);return Do(Ur||ot,function(ir,hr){Ur&&(hr=ir,ir=ot[hr]),Nl(gn,hr,Oo(ir,lt,St,hr,ot,rn))}),gn}function rB(ot){var lt=ro(ot);return function(St){return cF(St,ot,lt)}}function cF(ot,lt,St){var Dt=St.length;if(ot==null)return!Dt;for(ot=Mr(ot);Dt--;){var Ht=St[Dt],rn=lt[Ht],gn=ot[Ht];if(gn===_&&!(Ht in ot)||!rn(gn))return!1}return!0}function uF(ot,lt,St){if(typeof ot!="function")throw new Mo(et);return Al(function(){ot.apply(_,St)},lt)}function Wl(ot,lt,St,Dt){var Ht=-1,rn=Yl,gn=!0,Sn=ot.length,Vn=[],Dn=lt.length;if(!Sn)return Vn;St&&(lt=Ir(lt,vo(St))),Dt?(rn=wu,gn=!1):lt.length>=$&&(rn=Sl,gn=!1,lt=new Zs(lt));e:for(;++HtHt?0:Ht+St),Dt=Dt===_||Dt>Ht?Ht:dr(Dt),Dt<0&&(Dt+=Ht),Dt=St>Dt?0:Tp(Dt);St0&&St(Sn)?lt>1?ao(Sn,lt-1,St,Dt,Ht):Qs(Ht,Sn):Dt||(Ht[Ht.length]=Sn)}return Ht}var Xu=MF(),FF=MF(!0);function $o(ot,lt){return ot&&Xu(ot,lt,ro)}function Ku(ot,lt){return ot&&FF(ot,lt,ro)}function Fu(ot,lt){return hs(lt,function(St){return us(ot[St])})}function Ms(ot,lt){lt=ms(lt,ot);for(var St=0,Dt=lt.length;ot!=null&&Stlt}function sB(ot,lt){return ot!=null&&_r.call(ot,lt)}function aB(ot,lt){return ot!=null&< in Mr(ot)}function lB(ot,lt,St){return ot>=co(lt,St)&&ot<$r(lt,St)}function $u(ot,lt,St){for(var Dt=St?wu:Yl,Ht=ot[0].length,rn=ot.length,gn=rn,Sn=Nn(rn),Vn=1/0,Dn=[];gn--;){var An=ot[gn];gn&<&&(An=Ir(An,vo(lt))),Vn=co(An.length,Vn),Sn[gn]=!St&&(lt||Ht>=120&&An.length>=120)?new Zs(gn&&An):_}An=ot[0];var jn=-1,Gn=Sn[0];e:for(;++jn-1;)Sn!==ot&&ou.call(Sn,Vn,1),ou.call(ot,Vn,1);return ot}function EF(ot,lt){for(var St=ot?lt.length:0,Dt=St-1;St--;){var Ht=lt[St];if(St==Dt||Ht!==rn){var rn=Ht;cs(Ht)?ou.call(ot,Ht,1):sU(ot,Ht)}}return ot}function rU(ot,lt){return ot+au(oF()*(lt-ot+1))}function SB(ot,lt,St,Dt){for(var Ht=-1,rn=$r(su((lt-ot)/(St||1)),0),gn=Nn(rn);rn--;)gn[Dt?rn:++Ht]=ot,ot+=St;return gn}function oU(ot,lt){var St="";if(!ot||lt<1||lt>Pt)return St;do lt%2&&(St+=ot),lt=au(lt/2),lt&&(ot+=ot);while(lt);return St}function gr(ot,lt){return SU(_g(ot,lt,yo),ot+"")}function mB(ot){return aF(xa(ot))}function yB(ot,lt){var St=xa(ot);return Eu(St,Ds(lt,0,St.length))}function Zl(ot,lt,St,Dt){if(!Lr(ot))return ot;lt=ms(lt,ot);for(var Ht=-1,rn=lt.length,gn=rn-1,Sn=ot;Sn!=null&&++HtHt?0:Ht+lt),St=St>Ht?Ht:St,St<0&&(St+=Ht),Ht=lt>St?0:St-lt>>>0,lt>>>=0;for(var rn=Nn(Ht);++Dt>>1,gn=ot[rn];gn!==null&&!No(gn)&&(St?gn<=lt:gn=$){var Dn=lt?null:DB(ot);if(Dn)return Xl(Dn);gn=!1,Ht=Sl,Vn=new Zs}else Vn=lt?[]:Sn;e:for(;++Dt=Dt?ot:xo(ot,lt,St)}var WF=pQ||function(ot){return $n.clearTimeout(ot)};function kF(ot,lt){if(lt)return ot.slice();var St=ot.length,Dt=$U?$U(St):new ot.constructor(St);return ot.copy(Dt),Dt}function uU(ot){var lt=new ot.constructor(ot.byteLength);return new nu(lt).set(new nu(ot)),lt}function vB(ot,lt){var St=lt?uU(ot.buffer):ot.buffer;return new ot.constructor(St,ot.byteOffset,ot.byteLength)}function JB(ot){var lt=new ot.constructor(ot.source,Js.exec(ot));return lt.lastIndex=ot.lastIndex,lt}function NB(ot){return Jl?Mr(Jl.call(ot)):{}}function _F(ot,lt){var St=lt?uU(ot.buffer):ot.buffer;return new ot.constructor(St,ot.byteOffset,ot.length)}function CF(ot,lt){if(ot!==lt){var St=ot!==_,Dt=ot===null,Ht=ot===ot,rn=No(ot),gn=lt!==_,Sn=lt===null,Vn=lt===lt,Dn=No(lt);if(!Sn&&!Dn&&!rn&&ot>lt||rn&&gn&&Vn&&!Sn&&!Dn||Dt&&gn&&Vn||!St&&Vn||!Ht)return 1;if(!Dt&&!rn&&!Dn&&ot=Sn)return Vn;var Dn=St[Dt];return Vn*(Dn=="desc"?-1:1)}}return ot.index-lt.index}function wF(ot,lt,St,Dt){for(var Ht=-1,rn=ot.length,gn=St.length,Sn=-1,Vn=lt.length,Dn=$r(rn-gn,0),An=Nn(Vn+Dn),jn=!Dt;++Sn1?St[Ht-1]:_,gn=Ht>2?St[2]:_;for(rn=ot.length>3&&typeof rn=="function"?(Ht--,rn):_,gn&&Qo(St[0],St[1],gn)&&(rn=Ht<3?_:rn,Ht=1),lt=Mr(lt);++Dt-1?Ht[rn?lt[gn]:gn]:_}}function xF(ot){return ls(function(lt){var St=lt.length,Dt=St,Ht=Ao.prototype.thru;for(ot&<.reverse();Dt--;){var rn=lt[Dt];if(typeof rn!="function")throw new Mo(et);if(Ht&&!gn&&mu(rn)=="wrapper")var gn=new Ao([],!0)}for(Dt=gn?Dt:St;++Dt1&&mr.reverse(),An&&VnSn))return!1;var Dn=rn.get(ot),An=rn.get(lt);if(Dn&&An)return Dn==lt&&An==ot;var jn=-1,Gn=!0,qn=St>?new Zs:_;for(rn.set(ot,lt),rn.set(lt,ot);++jn1?"& ":"")+lt[Dt],lt=lt.join(St>2?", ":" "),ot.replace(Vs,`{ /* [wrapped with `+lt+`] */ `)}function GB(ot){return ur(ot)||xs(ot)||!!(nF&&ot&&ot[nF])}function cs(ot,lt){var St=typeof ot;return lt=lt??Pt,!!lt&&(St=="number"||St!="symbol"&&_t.test(ot))&&ot>-1&&ot%1==0&&ot0){if(++lt>=mt)return arguments[0]}else lt=0;return ot.apply(_,arguments)}}function Eu(ot,lt){var St=-1,Dt=ot.length,Ht=Dt-1;for(lt=lt===_?Dt:lt;++St1?ot[lt-1]:_;return St=typeof St=="function"?(ot.pop(),St):_,dp(ot,St)});function Up(ot){var lt=en(ot);return lt.__chain__=!0,lt}function hR(ot,lt){return lt(ot),ot}function bu(ot,lt){return lt(ot)}var QR=ls(function(ot){var lt=ot.length,St=lt?ot[0]:0,Dt=this.__wrapped__,Ht=function(rn){return Hu(rn,ot)};return lt>1||this.__actions__.length||!(Dt instanceof Rr)||!cs(St)?this.thru(Ht):(Dt=Dt.slice(St,+St+(lt?1:0)),Dt.__actions__.push({func:bu,args:[Ht],thisArg:_}),new Ao(Dt,this.__chain__).thru(function(rn){return lt&&!rn.length&&rn.push(_),rn}))});function fR(){return Up(this)}function BR(){return new Ao(this.value(),this.__chain__)}function RR(){this.__values__===_&&(this.__values__=Vp(this.value()));var ot=this.__index__>=this.__values__.length,lt=ot?_:this.__values__[this.__index__++];return{done:ot,value:lt}}function SR(){return this}function mR(ot){for(var lt,St=this;St instanceof uu;){var Dt=ip(St);Dt.__index__=0,Dt.__values__=_,lt?Ht.__wrapped__=Dt:lt=Dt;var Ht=Dt;St=St.__wrapped__}return Ht.__wrapped__=ot,lt}function yR(){var ot=this.__wrapped__;if(ot instanceof Rr){var lt=ot;return this.__actions__.length&&(lt=new Rr(this)),lt=lt.reverse(),lt.__actions__.push({func:bu,args:[mU],thisArg:_}),new Ao(lt,this.__chain__)}return this.thru(mU)}function ER(){return JF(this.__wrapped__,this.__actions__)}var bR=Qu(function(ot,lt,St){_r.call(ot,St)?++ot[St]:ss(ot,St,1)});function VR(ot,lt,St){var Dt=ur(ot)?jU:oB;return St&&Qo(ot,lt,St)&&(lt=_),Dt(ot,nr(lt,3))}function TR(ot,lt){var St=ur(ot)?hs:UF;return St(ot,nr(lt,3))}var vR=OF(sp),JR=OF(ap);function NR(ot,lt){return ao(Vu(ot,lt),1)}function WR(ot,lt){return ao(Vu(ot,lt),Jt)}function kR(ot,lt,St){return St=St===_?1:dr(St),ao(Vu(ot,lt),St)}function Fp(ot,lt){var St=ur(ot)?Do:Rs;return St(ot,nr(lt,3))}function gp(ot,lt){var St=ur(ot)?xp:dF;return St(ot,nr(lt,3))}var _R=Qu(function(ot,lt,St){_r.call(ot,St)?ot[St].push(lt):ss(ot,St,[lt])});function CR(ot,lt,St,Dt){ot=So(ot)?ot:xa(ot),St=St&&!Dt?dr(St):0;var Ht=ot.length;return St<0&&(St=$r(Ht+St,0)),Wu(ot)?St<=Ht&&ot.indexOf(lt,St)>-1:!!Ht&&zs(ot,lt,St)>-1}var wR=gr(function(ot,lt,St){var Dt=-1,Ht=typeof lt=="function",rn=So(ot)?Nn(ot.length):[];return Rs(ot,function(gn){rn[++Dt]=Ht?To(lt,gn,St):_l(gn,lt,St)}),rn}),ZR=Qu(function(ot,lt,St){ss(ot,St,lt)});function Vu(ot,lt){var St=ur(ot)?Ir:fF;return St(ot,nr(lt,3))}function DR(ot,lt,St,Dt){return ot==null?[]:(ur(lt)||(lt=lt==null?[]:[lt]),St=Dt?_:St,ur(St)||(St=St==null?[]:[St]),mF(ot,lt,St))}var MR=Qu(function(ot,lt,St){ot[St?0:1].push(lt)},function(){return[[],[]]});function AR(ot,lt,St){var Dt=ur(ot)?Zu:zU,Ht=arguments.length<3;return Dt(ot,nr(lt,4),St,Ht,Rs)}function OR(ot,lt,St){var Dt=ur(ot)?jp:zU,Ht=arguments.length<3;return Dt(ot,nr(lt,4),St,Ht,dF)}function xR(ot,lt){var St=ur(ot)?hs:UF;return St(ot,Ju(nr(lt,3)))}function jR(ot){var lt=ur(ot)?aF:mB;return lt(ot)}function IR(ot,lt,St){(St?Qo(ot,lt,St):lt===_)?lt=1:lt=dr(lt);var Dt=ur(ot)?_f:yB;return Dt(ot,lt)}function LR(ot){var lt=ur(ot)?eB:bB;return lt(ot)}function PR(ot){if(ot==null)return 0;if(So(ot))return Wu(ot)?Ys(ot):ot.length;var lt=uo(ot);return lt==En||lt==cn?ot.size:eU(ot).length}function zR(ot,lt,St){var Dt=ur(ot)?Du:VB;return St&&Qo(ot,lt,St)&&(lt=_),Dt(ot,nr(lt,3))}var GR=gr(function(ot,lt){if(ot==null)return[];var St=lt.length;return St>1&&Qo(ot,lt[0],lt[1])?lt=[]:St>2&&Qo(lt[0],lt[1],lt[2])&&(lt=[lt[0]]),mF(ot,ao(lt,1),[])}),Tu=hQ||function(){return $n.Date.now()};function YR(ot,lt){if(typeof lt!="function")throw new Mo(et);return ot=dr(ot),function(){if(--ot<1)return lt.apply(this,arguments)}}function pp(ot,lt,St){return lt=St?_:lt,lt=ot&<==null?ot.length:lt,as(ot,At,_,_,_,_,lt)}function hp(ot,lt){var St;if(typeof lt!="function")throw new Mo(et);return ot=dr(ot),function(){return--ot>0&&(St=lt.apply(this,arguments)),ot<=1&&(lt=_),St}}var EU=gr(function(ot,lt,St){var Dt=Ut;if(St.length){var Ht=fs(St,ba(EU));Dt|=Qt}return as(ot,Dt,lt,St,Ht)}),Qp=gr(function(ot,lt,St){var Dt=Ut|ht;if(St.length){var Ht=fs(St,ba(Qp));Dt|=Qt}return as(lt,Dt,ot,St,Ht)});function fp(ot,lt,St){lt=St?_:lt;var Dt=as(ot,pt,_,_,_,_,_,lt);return Dt.placeholder=fp.placeholder,Dt}function Bp(ot,lt,St){lt=St?_:lt;var Dt=as(ot,Rt,_,_,_,_,_,lt);return Dt.placeholder=Bp.placeholder,Dt}function Rp(ot,lt,St){var Dt,Ht,rn,gn,Sn,Vn,Dn=0,An=!1,jn=!1,Gn=!0;if(typeof ot!="function")throw new Mo(et);lt=Io(lt)||0,Lr(St)&&(An=!!St.leading,jn="maxWait"in St,rn=jn?$r(Io(St.maxWait)||0,lt):rn,Gn="trailing"in St?!!St.trailing:Gn);function qn(Xr){var Xo=Dt,Us=Ht;return Dt=Ht=_,Dn=Xr,gn=ot.apply(Us,Xo),gn}function or(Xr){return Dn=Xr,Sn=Al(hr,lt),An?qn(Xr):gn}function Ur(Xr){var Xo=Xr-Vn,Us=Xr-Dn,Ap=lt-Xo;return jn?co(Ap,rn-Us):Ap}function ir(Xr){var Xo=Xr-Vn,Us=Xr-Dn;return Vn===_||Xo>=lt||Xo<0||jn&&Us>=rn}function hr(){var Xr=Tu();if(ir(Xr))return mr(Xr);Sn=Al(hr,Ur(Xr))}function mr(Xr){return Sn=_,Gn&&Dt?qn(Xr):(Dt=Ht=_,gn)}function Wo(){Sn!==_&&WF(Sn),Dn=0,Dt=Vn=Ht=Sn=_}function fo(){return Sn===_?gn:mr(Tu())}function ko(){var Xr=Tu(),Xo=ir(Xr);if(Dt=arguments,Ht=this,Vn=Xr,Xo){if(Sn===_)return or(Vn);if(jn)return WF(Sn),Sn=Al(hr,lt),qn(Vn)}return Sn===_&&(Sn=Al(hr,lt)),gn}return ko.cancel=Wo,ko.flush=fo,ko}var HR=gr(function(ot,lt){return uF(ot,1,lt)}),XR=gr(function(ot,lt,St){return uF(ot,Io(lt)||0,St)});function KR(ot){return as(ot,Bt)}function vu(ot,lt){if(typeof ot!="function"||lt!=null&&typeof lt!="function")throw new Mo(et);var St=function(){var Dt=arguments,Ht=lt?lt.apply(this,Dt):Dt[0],rn=St.cache;if(rn.has(Ht))return rn.get(Ht);var gn=ot.apply(this,Dt);return St.cache=rn.set(Ht,gn)||rn,gn};return St.cache=new(vu.Cache||is),St}vu.Cache=is;function Ju(ot){if(typeof ot!="function")throw new Mo(et);return function(){var lt=arguments;switch(lt.length){case 0:return!ot.call(this);case 1:return!ot.call(this,lt[0]);case 2:return!ot.call(this,lt[0],lt[1]);case 3:return!ot.call(this,lt[0],lt[1],lt[2])}return!ot.apply(this,lt)}}function qR(ot){return hp(2,ot)}var $R=TB(function(ot,lt){lt=lt.length==1&&ur(lt[0])?Ir(lt[0],vo(nr())):Ir(ao(lt,1),vo(nr()));var St=lt.length;return gr(function(Dt){for(var Ht=-1,rn=co(Dt.length,St);++Ht=lt}),xs=pF(function(){return arguments}())?pF:function(ot){return Pr(ot)&&_r.call(ot,"callee")&&!tF.call(ot,"callee")},ur=Nn.isArray,gS=po?vo(po):uB;function So(ot){return ot!=null&&Nu(ot.length)&&!us(ot)}function Hr(ot){return Pr(ot)&&So(ot)}function pS(ot){return ot===!0||ot===!1||Pr(ot)&&ho(ot)==tn}var Es=fQ||ZU,hS=DU?vo(DU):dB;function QS(ot){return Pr(ot)&&ot.nodeType===1&&!Ol(ot)}function fS(ot){if(ot==null)return!0;if(So(ot)&&(ur(ot)||typeof ot=="string"||typeof ot.splice=="function"||Es(ot)||_a(ot)||xs(ot)))return!ot.length;var lt=uo(ot);if(lt==En||lt==cn)return!ot.size;if(Ml(ot))return!eU(ot).length;for(var St in ot)if(_r.call(ot,St))return!1;return!0}function BS(ot,lt){return Cl(ot,lt)}function RS(ot,lt,St){St=typeof St=="function"?St:_;var Dt=St?St(ot,lt):_;return Dt===_?Cl(ot,lt,_,St):!!Dt}function VU(ot){if(!Pr(ot))return!1;var lt=ho(ot);return lt==Un||lt==Kt||typeof ot.message=="string"&&typeof ot.name=="string"&&!Ol(ot)}function SS(ot){return typeof ot=="number"&&rF(ot)}function us(ot){if(!Lr(ot))return!1;var lt=ho(ot);return lt==Bn||lt==hn||lt==un||lt==sn}function mp(ot){return typeof ot=="number"&&ot==dr(ot)}function Nu(ot){return typeof ot=="number"&&ot>-1&&ot%1==0&&ot<=Pt}function Lr(ot){var lt=typeof ot;return ot!=null&&(lt=="object"||lt=="function")}function Pr(ot){return ot!=null&&typeof ot=="object"}var yp=MU?vo(MU):FB;function mS(ot,lt){return ot===lt||_d(ot,lt,hU(lt))}function yS(ot,lt,St){return St=typeof St=="function"?St:_,_d(ot,lt,hU(lt),St)}function ES(ot){return Ep(ot)&&ot!=+ot}function bS(ot){if(XB(ot))throw new lr(_e);return hF(ot)}function VS(ot){return ot===null}function TS(ot){return ot==null}function Ep(ot){return typeof ot=="number"||Pr(ot)&&ho(ot)==Cn}function Ol(ot){if(!Pr(ot)||ho(ot)!=Zt)return!1;var lt=ru(ot);if(lt===null)return!0;var St=_r.call(lt,"constructor")&<.constructor;return typeof St=="function"&&St instanceof St&&_c.call(St)==UQ}var TU=AU?vo(AU):gB;function vS(ot){return mp(ot)&&ot>=-Pt&&ot<=Pt}var bp=OU?vo(OU):pB;function Wu(ot){return typeof ot=="string"||!ur(ot)&&Pr(ot)&&ho(ot)==fn}function No(ot){return typeof ot=="symbol"||Pr(ot)&&ho(ot)==_n}var _a=xU?vo(xU):hB;function JS(ot){return ot===_}function NS(ot){return Pr(ot)&&uo(ot)==xn}function WS(ot){return Pr(ot)&&ho(ot)==Ln}var kS=Su(tU),_S=Su(function(ot,lt){return ot<=lt});function Vp(ot){if(!ot)return[];if(So(ot))return Wu(ot)?Go(ot):Ro(ot);if(yl&&ot[yl])return eQ(ot[yl]());var lt=uo(ot),St=lt==En?Iu:lt==cn?Xl:xa;return St(ot)}function ds(ot){if(!ot)return ot===0?ot:0;if(ot=Io(ot),ot===Jt||ot===-Jt){var lt=ot<0?-1:1;return lt*Yt}return ot===ot?ot:0}function dr(ot){var lt=ds(ot),St=lt%1;return lt===lt?St?lt-St:lt:0}function Tp(ot){return ot?Ds(dr(ot),0,zt):0}function Io(ot){if(typeof ot=="number")return ot;if(No(ot))return Mt;if(Lr(ot)){var lt=typeof ot.valueOf=="function"?ot.valueOf():ot;ot=Lr(lt)?lt+"":lt}if(typeof ot!="string")return ot===0?ot:+ot;ot=GU(ot);var St=Ns.test(ot);return St||bt.test(ot)?Mn(ot.slice(2),St?2:8):Nr.test(ot)?Mt:+ot}function vp(ot){return _i(ot,mo(ot))}function CS(ot){return ot?Ds(dr(ot),-Pt,Pt):ot===0?ot:0}function Jr(ot){return ot==null?"":Jo(ot)}var wS=na(function(ot,lt){if(Ml(lt)||So(lt)){_i(lt,ro(lt),ot);return}for(var St in lt)_r.call(lt,St)&&Nl(ot,St,lt[St])}),Jp=na(function(ot,lt){_i(lt,mo(lt),ot)}),ku=na(function(ot,lt,St,Dt){_i(lt,mo(lt),ot,Dt)}),ZS=na(function(ot,lt,St,Dt){_i(lt,ro(lt),ot,Dt)}),DS=ls(Hu);function OS(ot,lt){var St=$s(ot);return lt==null?St:lF(St,lt)}var xS=gr(function(ot,lt){ot=Mr(ot);var St=-1,Dt=lt.length,Ht=Dt>2?lt[2]:_;for(Ht&&Qo(lt[0],lt[1],Ht)&&(Dt=1);++St1),rn}),_i(ot,gU(ot),St),Dt&&(St=Oo(St,st|ut|Ft,MB));for(var Ht=lt.length;Ht--;)sU(St,lt[Ht]);return St});function im(ot,lt){return Wp(ot,Ju(nr(lt)))}var sm=ls(function(ot,lt){return ot==null?{}:BB(ot,lt)});function Wp(ot,lt){if(ot==null)return{};var St=Ir(gU(ot),function(Dt){return[Dt]});return lt=nr(lt),yF(ot,St,function(Dt,Ht){return lt(Dt,Ht[0])})}function am(ot,lt,St){lt=ms(lt,ot);var Dt=-1,Ht=lt.length;for(Ht||(Ht=1,ot=_);++Dtlt){var Dt=ot;ot=lt,lt=Dt}if(St||ot%1||lt%1){var Ht=oF();return co(ot+Ht*(lt-ot+kn("1e-"+((Ht+"").length-1))),lt)}return rU(ot,lt)}var fm=ga(function(ot,lt,St){return lt=lt.toLowerCase(),ot+(St?Cp(lt):lt)});function Cp(ot){return NU(Jr(ot).toLowerCase())}function wp(ot){return ot=Jr(ot),ot&&ot.replace(Lt,Xp).replace(_s,"")}function Bm(ot,lt,St){ot=Jr(ot),lt=Jo(lt);var Dt=ot.length;St=St===_?Dt:Ds(dr(St),0,Dt);var Ht=St;return St-=lt.length,St>=0&&ot.slice(St,Ht)==lt}function Rm(ot){return ot=Jr(ot),ot&&Co.test(ot)?ot.replace(Eo,Kp):ot}function Sm(ot){return ot=Jr(ot),ot&&js.test(ot)?ot.replace(ts,"\\$&"):ot}var mm=ga(function(ot,lt,St){return ot+(St?"-":"")+lt.toLowerCase()}),ym=ga(function(ot,lt,St){return ot+(St?" ":"")+lt.toLowerCase()}),Em=AF("toLowerCase");function bm(ot,lt,St){ot=Jr(ot),lt=dr(lt);var Dt=lt?Ys(ot):0;if(!lt||Dt>=lt)return ot;var Ht=(lt-Dt)/2;return Ru(au(Ht),St)+ot+Ru(su(Ht),St)}function Vm(ot,lt,St){ot=Jr(ot),lt=dr(lt);var Dt=lt?Ys(ot):0;return lt&&Dt>>0,St?(ot=Jr(ot),ot&&(typeof lt=="string"||lt!=null&&!TU(lt))&&(lt=Jo(lt),!lt&&Gs(ot))?ys(Go(ot),0,St):ot.split(lt,St)):[]}var _m=ga(function(ot,lt,St){return ot+(St?" ":"")+NU(lt)});function Cm(ot,lt,St){return ot=Jr(ot),St=St==null?0:Ds(dr(St),0,ot.length),lt=Jo(lt),ot.slice(St,St+lt.length)==lt}function wm(ot,lt,St){var Dt=en.templateSettings;St&&Qo(ot,lt,St)&&(lt=_),ot=Jr(ot),lt=ku({},lt,Dt,zF);var Ht=ku({},lt.imports,Dt.imports,zF),rn=ro(Ht),gn=ju(Ht,rn),Sn,Vn,Dn=0,An=lt.interpolate||nn,jn="__p += '",Gn=Lu((lt.escape||nn).source+"|"+An.source+"|"+(An===Zr?lo:nn).source+"|"+(lt.evaluate||nn).source+"|$","g"),qn="//# sourceURL="+(_r.call(lt,"sourceURL")?(lt.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wt+"]")+` `;ot.replace(Gn,function(ir,hr,mr,Wo,fo,ko){return mr||(mr=Wo),jn+=ot.slice(Dn,ko).replace(dn,qp),hr&&(Sn=!0,jn+=`' + diff --git a/examples/realtime-video/dist/index.html b/examples/realtime-video/dist/index.html index e4af5442..70fdda41 100644 --- a/examples/realtime-video/dist/index.html +++ b/examples/realtime-video/dist/index.html @@ -5,7 +5,7 @@ Vite + React + TS - +