swagger-editor
Version:
- [Anonymized analytics](#anonymized-analytics) - [Getting started](#getting-started) - [Prerequisites](#prerequisites) - [Installation](#installation) - [Usage](#usage) - [Development](#development) - [Prerequisites](#prerequisites) - [Setting
3 lines • 16.6 MB
JavaScript
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require("react"),require("react-dom")):typeof define==`function`&&define.amd?define([`react`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.SwaggerEditor=t(e.React,e.ReactDOM))})(this,function(react,react_dom){var __create$1=Object.create,__defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__getOwnPropNames$1=Object.getOwnPropertyNames,__getProtoOf$1=Object.getPrototypeOf,__hasOwnProp$1=Object.prototype.hasOwnProperty,__esmMin=(e,t)=>()=>(e&&(t=e(e=0)),t),__commonJSMin$1=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),__exportAll=(e,t)=>{let n={};for(var r in e)__defProp$1(n,r,{get:e[r],enumerable:!0});return t||__defProp$1(n,Symbol.toStringTag,{value:`Module`}),n},__copyProps$1=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var a=__getOwnPropNames$1(t),o=0,b=a.length,ei;o<b;o++)ei=a[o],!__hasOwnProp$1.call(e,ei)&&ei!==n&&__defProp$1(e,ei,{get:(e=>t[e]).bind(null,ei),enumerable:!(r=__getOwnPropDesc$1(t,ei))||r.enumerable});return e},__toESM$1=(e,t,n)=>(n=e==null?{}:__create$1(__getProtoOf$1(e)),__copyProps$1(t||!e||!e.__esModule?__defProp$1(n,`default`,{value:e,enumerable:!0}):n,e)),__toCommonJS=e=>__hasOwnProp$1.call(e,`module.exports`)?e[`module.exports`]:__copyProps$1(__defProp$1({},`__esModule`,{value:!0}),e);let react$1=__toESM$1(react,1);react=__toESM$1(react),react_dom=__toESM$1(react_dom);var _polyfill_node_global_default,init__polyfill_node_global=__esmMin((()=>{_polyfill_node_global_default=typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{}})),require__freeGlobal=__commonJSMin$1(((e,t)=>{init__polyfill_node_global(),t.exports=typeof _polyfill_node_global_default==`object`&&_polyfill_node_global_default&&_polyfill_node_global_default.Object===Object&&_polyfill_node_global_default})),require__root=__commonJSMin$1(((e,t)=>{var n=require__freeGlobal(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),require__Symbol=__commonJSMin$1(((e,t)=>{t.exports=require__root().Symbol})),require__getRawTag=__commonJSMin$1(((e,t)=>{var n=require__Symbol(),r=Object.prototype,a=r.hasOwnProperty,o=r.toString,b=n?n.toStringTag:void 0;function ei(e){var t=a.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch{}var ei=o.call(e);return r&&(t?e[b]=n:delete e[b]),ei}t.exports=ei})),require__objectToString=__commonJSMin$1(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),require__baseGetTag=__commonJSMin$1(((e,t)=>{var n=require__Symbol(),r=require__getRawTag(),a=require__objectToString(),o=`[object Null]`,b=`[object Undefined]`,ei=n?n.toStringTag:void 0;function ti(e){return e==null?e===void 0?b:o:ei&&ei in Object(e)?r(e):a(e)}t.exports=ti})),require__overArg=__commonJSMin$1(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),require__getPrototype=__commonJSMin$1(((e,t)=>{t.exports=require__overArg()(Object.getPrototypeOf,Object)})),require_isObjectLike=__commonJSMin$1(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),require_isPlainObject=__commonJSMin$1(((e,t)=>{var n=require__baseGetTag(),r=require__getPrototype(),a=require_isObjectLike(),o=`[object Object]`,b=Function.prototype,ei=Object.prototype,ti=b.toString,ni=ei.hasOwnProperty,ri=ti.call(Object);function ii(e){if(!a(e)||n(e)!=o)return!1;var t=r(e);if(t===null)return!0;var b=ni.call(t,`constructor`)&&t.constructor;return typeof b==`function`&&b instanceof b&&ti.call(b)==ri}t.exports=ii}));function defaultSetTimout(){throw Error(`setTimeout has not been defined`)}function defaultClearTimeout(){throw Error(`clearTimeout has not been defined`)}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch{try{return cachedSetTimeout.call(null,e,0)}catch{return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch{try{return cachedClearTimeout.call(null,e)}catch{return cachedClearTimeout.call(this,e)}}}function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex<t;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,t=queue.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function nextTick(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];queue.push(new Item(e,t)),queue.length===1&&!draining&&runTimeout(drainQueue)}function Item(e,t){this.fun=e,this.array=t}function noop$6(){}function binding(e){throw Error(`process.binding is not supported`)}function cwd$2(){return`/`}function chdir(e){throw Error(`process.chdir is not supported`)}function umask(){return 0}function hrtime(e){var t=performanceNow$1.call(performance$1)*.001,n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],r-=e[1],r<0&&(n--,r+=1e9)),[n,r]}function uptime(){return(new Date-startTime)/1e3}var cachedSetTimeout,cachedClearTimeout,queue,draining,currentQueue,queueIndex,title$35,platform$2,browser,env$2,argv,version$3,versions$1,release,config$2,on$1,addListener,once,off,removeListener,removeAllListeners,emit,performance$1,performanceNow$1,startTime,browser$1,init__polyfill_node_process=__esmMin((()=>{init__polyfill_node_global(),cachedSetTimeout=defaultSetTimout,cachedClearTimeout=defaultClearTimeout,typeof _polyfill_node_global_default.setTimeout==`function`&&(cachedSetTimeout=setTimeout),typeof _polyfill_node_global_default.clearTimeout==`function`&&(cachedClearTimeout=clearTimeout),queue=[],draining=!1,queueIndex=-1,Item.prototype.run=function(){this.fun.apply(null,this.array)},title$35=`browser`,platform$2=`browser`,env$2={},argv=[],versions$1={},release={},config$2={},on$1=noop$6,addListener=noop$6,once=noop$6,off=noop$6,removeListener=noop$6,removeAllListeners=noop$6,emit=noop$6,performance$1=_polyfill_node_global_default.performance||{},performanceNow$1=performance$1.now||performance$1.mozNow||performance$1.msNow||performance$1.oNow||performance$1.webkitNow||function(){return new Date().getTime()},startTime=new Date,browser$1={nextTick,title:title$35,browser:!0,env:env$2,argv,version:``,versions:versions$1,on:on$1,addListener,once,off,removeListener,removeAllListeners,emit,binding,cwd:cwd$2,chdir,umask,hrtime,platform:platform$2,release,config:config$2,uptime}})),require_react_is_production_min$1=__commonJSMin$1((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,a=t?Symbol.for(`react.fragment`):60107,o=t?Symbol.for(`react.strict_mode`):60108,b=t?Symbol.for(`react.profiler`):60114,ei=t?Symbol.for(`react.provider`):60109,ti=t?Symbol.for(`react.context`):60110,ni=t?Symbol.for(`react.async_mode`):60111,ri=t?Symbol.for(`react.concurrent_mode`):60111,ii=t?Symbol.for(`react.forward_ref`):60112,oi=t?Symbol.for(`react.suspense`):60113,si=t?Symbol.for(`react.suspense_list`):60120,ci=t?Symbol.for(`react.memo`):60115,li=t?Symbol.for(`react.lazy`):60116,ui=t?Symbol.for(`react.block`):60121,di=t?Symbol.for(`react.fundamental`):60117,fi=t?Symbol.for(`react.responder`):60118,pi=t?Symbol.for(`react.scope`):60119;function mi(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case ni:case ri:case a:case b:case o:case oi:return e;default:switch(e&&=e.$$typeof,e){case ti:case ii:case li:case ci:case ei:return e;default:return t}}case r:return t}}}function hi(e){return mi(e)===ri}e.AsyncMode=ni,e.ConcurrentMode=ri,e.ContextConsumer=ti,e.ContextProvider=ei,e.Element=n,e.ForwardRef=ii,e.Fragment=a,e.Lazy=li,e.Memo=ci,e.Portal=r,e.Profiler=b,e.StrictMode=o,e.Suspense=oi,e.isAsyncMode=function(e){return hi(e)||mi(e)===ni},e.isConcurrentMode=hi,e.isContextConsumer=function(e){return mi(e)===ti},e.isContextProvider=function(e){return mi(e)===ei},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return mi(e)===ii},e.isFragment=function(e){return mi(e)===a},e.isLazy=function(e){return mi(e)===li},e.isMemo=function(e){return mi(e)===ci},e.isPortal=function(e){return mi(e)===r},e.isProfiler=function(e){return mi(e)===b},e.isStrictMode=function(e){return mi(e)===o},e.isSuspense=function(e){return mi(e)===oi},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===a||e===ri||e===b||e===o||e===oi||e===si||typeof e==`object`&&!!e&&(e.$$typeof===li||e.$$typeof===ci||e.$$typeof===ei||e.$$typeof===ti||e.$$typeof===ii||e.$$typeof===di||e.$$typeof===fi||e.$$typeof===pi||e.$$typeof===ui)},e.typeOf=mi})),require_react_is_development$1=__commonJSMin$1((e=>{init__polyfill_node_process(),browser$1.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,a=t?Symbol.for(`react.fragment`):60107,o=t?Symbol.for(`react.strict_mode`):60108,b=t?Symbol.for(`react.profiler`):60114,ei=t?Symbol.for(`react.provider`):60109,ti=t?Symbol.for(`react.context`):60110,ni=t?Symbol.for(`react.async_mode`):60111,ri=t?Symbol.for(`react.concurrent_mode`):60111,ii=t?Symbol.for(`react.forward_ref`):60112,oi=t?Symbol.for(`react.suspense`):60113,si=t?Symbol.for(`react.suspense_list`):60120,ci=t?Symbol.for(`react.memo`):60115,li=t?Symbol.for(`react.lazy`):60116,ui=t?Symbol.for(`react.block`):60121,di=t?Symbol.for(`react.fundamental`):60117,fi=t?Symbol.for(`react.responder`):60118,pi=t?Symbol.for(`react.scope`):60119;function mi(e){return typeof e==`string`||typeof e==`function`||e===a||e===ri||e===b||e===o||e===oi||e===si||typeof e==`object`&&!!e&&(e.$$typeof===li||e.$$typeof===ci||e.$$typeof===ei||e.$$typeof===ti||e.$$typeof===ii||e.$$typeof===di||e.$$typeof===fi||e.$$typeof===pi||e.$$typeof===ui)}function hi(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var si=e.type;switch(si){case ni:case ri:case a:case b:case o:case oi:return si;default:var ui=si&&si.$$typeof;switch(ui){case ti:case ii:case li:case ci:case ei:return ui;default:return t}}case r:return t}}}var gi=ni,_i=ri,vi=ti,yi=ei,bi=n,xi=ii,Si=a,Ci=li,wi=ci,Ti=r,Ei=b,Di=o,Oi=oi,ki=!1;function Ai(e){return ki||(ki=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),ji(e)||hi(e)===ni}function ji(e){return hi(e)===ri}function Mi(e){return hi(e)===ti}function Ni(e){return hi(e)===ei}function Pi(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function Fi(e){return hi(e)===ii}function Ii(e){return hi(e)===a}function Li(e){return hi(e)===li}function Ri(e){return hi(e)===ci}function zi(e){return hi(e)===r}function Bi(e){return hi(e)===b}function Vi(e){return hi(e)===o}function Hi(e){return hi(e)===oi}e.AsyncMode=gi,e.ConcurrentMode=_i,e.ContextConsumer=vi,e.ContextProvider=yi,e.Element=bi,e.ForwardRef=xi,e.Fragment=Si,e.Lazy=Ci,e.Memo=wi,e.Portal=Ti,e.Profiler=Ei,e.StrictMode=Di,e.Suspense=Oi,e.isAsyncMode=Ai,e.isConcurrentMode=ji,e.isContextConsumer=Mi,e.isContextProvider=Ni,e.isElement=Pi,e.isForwardRef=Fi,e.isFragment=Ii,e.isLazy=Li,e.isMemo=Ri,e.isPortal=zi,e.isProfiler=Bi,e.isStrictMode=Vi,e.isSuspense=Hi,e.isValidElementType=mi,e.typeOf=hi})()})),require_react_is$1=__commonJSMin$1(((e,t)=>{init__polyfill_node_process(),browser$1.env.NODE_ENV===`production`?t.exports=require_react_is_production_min$1():t.exports=require_react_is_development$1()})),require_object_assign$1=__commonJSMin$1(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function b(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=b()?Object.assign:function(e,t){for(var b,ei=o(e),ti,ni=1;ni<arguments.length;ni++){for(var ri in b=Object(arguments[ni]),b)r.call(b,ri)&&(ei[ri]=b[ri]);if(n){ti=n(b);for(var ii=0;ii<ti.length;ii++)a.call(b,ti[ii])&&(ei[ti[ii]]=b[ti[ii]])}}return ei}})),require_ReactPropTypesSecret=__commonJSMin$1(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),require_has$1=__commonJSMin$1(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),require_checkPropTypes=__commonJSMin$1(((e,t)=>{init__polyfill_node_process();var n=function(){};if(browser$1.env.NODE_ENV!==`production`){var r=require_ReactPropTypesSecret(),a={},o=require_has$1();n=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}}}function b(e,t,b,ei,ti){if(browser$1.env.NODE_ENV!==`production`){for(var ni in e)if(o(e,ni)){var ri;try{if(typeof e[ni]!=`function`){var ii=Error((ei||`React class`)+`: `+b+" type `"+ni+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[ni]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ii.name=`Invariant Violation`,ii}ri=e[ni](t,ni,ei,b,null,r)}catch(e){ri=e}if(ri&&!(ri instanceof Error)&&n((ei||`React class`)+`: type specification of `+b+" `"+ni+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof ri+`. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).`),ri instanceof Error&&!(ri.message in a)){a[ri.message]=!0;var oi=ti?ti():``;n(`Failed `+b+` type: `+ri.message+(oi??``))}}}}b.resetWarningCache=function(){browser$1.env.NODE_ENV!==`production`&&(a={})},t.exports=b})),require_factoryWithTypeCheckers=__commonJSMin$1(((e,t)=>{init__polyfill_node_process();var n=require_react_is$1(),r=require_object_assign$1(),a=require_ReactPropTypesSecret(),o=require_has$1(),b=require_checkPropTypes(),ei=function(){};browser$1.env.NODE_ENV!==`production`&&(ei=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}});function ti(){return null}t.exports=function(e,t){var ni=typeof Symbol==`function`&&Symbol.iterator,ri=`@@iterator`;function ii(e){var t=e&&(ni&&e[ni]||e[ri]);if(typeof t==`function`)return t}var oi=`<<anonymous>>`,si={array:di(`array`),bigint:di(`bigint`),bool:di(`boolean`),func:di(`function`),number:di(`number`),object:di(`object`),string:di(`string`),symbol:di(`symbol`),any:fi(),arrayOf:pi,element:mi(),elementType:hi(),instanceOf:gi,node:bi(),objectOf:vi,oneOf:_i,oneOfType:yi,shape:Si,exact:Ci};function ci(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function li(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}li.prototype=Error.prototype;function ui(e){if(browser$1.env.NODE_ENV!==`production`)var n={},r=0;function o(o,b,ti,ni,ri,ii,si){if(ni||=oi,ii||=ti,si!==a){if(t){var ci=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ci.name=`Invariant Violation`,ci}else if(browser$1.env.NODE_ENV!==`production`&&typeof console<`u`){var ui=ni+`:`+ti;!n[ui]&&r<3&&(ei("You are manually calling a React.PropTypes validation function for the `"+ii+"` prop on `"+ni+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[ui]=!0,r++)}}return b[ti]==null?o?b[ti]===null?new li(`The `+ri+" `"+ii+"` is marked as required "+("in `"+ni+"`, but its value is `null`.")):new li(`The `+ri+" `"+ii+"` is marked as required in "+("`"+ni+"`, but its value is `undefined`.")):null:e(b,ti,ni,ri,ii)}var b=o.bind(null,!1);return b.isRequired=o.bind(null,!0),b}function di(e){function t(t,n,r,a,o,b){var ei=t[n];if(Ei(ei)!==e){var ti=Di(ei);return new li(`Invalid `+a+" `"+o+"` of type "+("`"+ti+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return ui(t)}function fi(){return ui(ti)}function pi(e){function t(t,n,r,o,b){if(typeof e!=`function`)return new li("Property `"+b+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var ei=t[n];if(!Array.isArray(ei)){var ti=Ei(ei);return new li(`Invalid `+o+" `"+b+"` of type "+("`"+ti+"` supplied to `"+r+"`, expected an array."))}for(var ni=0;ni<ei.length;ni++){var ri=e(ei,ni,r,o,b+`[`+ni+`]`,a);if(ri instanceof Error)return ri}return null}return ui(t)}function mi(){function t(t,n,r,a,o){var b=t[n];if(!e(b)){var ei=Ei(b);return new li(`Invalid `+a+" `"+o+"` of type "+("`"+ei+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return ui(t)}function hi(){function e(e,t,r,a,o){var b=e[t];if(!n.isValidElementType(b)){var ei=Ei(b);return new li(`Invalid `+a+" `"+o+"` of type "+("`"+ei+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return ui(e)}function gi(e){function t(t,n,r,a,o){if(!(t[n]instanceof e)){var b=e.name||oi,ei=ki(t[n]);return new li(`Invalid `+a+" `"+o+"` of type "+("`"+ei+"` supplied to `"+r+"`, expected ")+("instance of `"+b+"`."))}return null}return ui(t)}function _i(e){if(!Array.isArray(e))return browser$1.env.NODE_ENV!==`production`&&(arguments.length>1?ei(`Invalid arguments supplied to oneOf, expected an array, got `+arguments.length+` arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).`):ei(`Invalid argument supplied to oneOf, expected an array.`)),ti;function t(t,n,r,a,o){for(var b=t[n],ei=0;ei<e.length;ei++)if(ci(b,e[ei]))return null;var ti=JSON.stringify(e,function(e,t){return Di(t)===`symbol`?String(t):t});return new li(`Invalid `+a+" `"+o+"` of value `"+String(b)+"` "+("supplied to `"+r+"`, expected one of "+ti+`.`))}return ui(t)}function vi(e){function t(t,n,r,b,ei){if(typeof e!=`function`)return new li("Property `"+ei+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var ti=t[n],ni=Ei(ti);if(ni!==`object`)return new li(`Invalid `+b+" `"+ei+"` of type "+("`"+ni+"` supplied to `"+r+"`, expected an object."));for(var ri in ti)if(o(ti,ri)){var ii=e(ti,ri,r,b,ei+`.`+ri,a);if(ii instanceof Error)return ii}return null}return ui(t)}function yi(e){if(!Array.isArray(e))return browser$1.env.NODE_ENV!==`production`&&ei(`Invalid argument supplied to oneOfType, expected an instance of array.`),ti;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return ei(`Invalid argument supplied to oneOfType. Expected an array of check functions, but received `+Oi(n)+` at index `+t+`.`),ti}function r(t,n,r,b,ei){for(var ti=[],ni=0;ni<e.length;ni++){var ri=e[ni],ii=ri(t,n,r,b,ei,a);if(ii==null)return null;ii.data&&o(ii.data,`expectedType`)&&ti.push(ii.data.expectedType)}var oi=ti.length>0?`, expected one of type [`+ti.join(`, `)+`]`:``;return new li(`Invalid `+b+" `"+ei+"` supplied to "+("`"+r+"`"+oi+`.`))}return ui(r)}function bi(){function e(e,t,n,r,a){return wi(e[t])?null:new li(`Invalid `+r+" `"+a+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return ui(e)}function xi(e,t,n,r,a){return new li((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function Si(e){function t(t,n,r,o,b){var ei=t[n],ti=Ei(ei);if(ti!==`object`)return new li(`Invalid `+o+" `"+b+"` of type `"+ti+"` "+("supplied to `"+r+"`, expected `object`."));for(var ni in e){var ri=e[ni];if(typeof ri!=`function`)return xi(r,o,b,ni,Di(ri));var ii=ri(ei,ni,r,o,b+`.`+ni,a);if(ii)return ii}return null}return ui(t)}function Ci(e){function t(t,n,b,ei,ti){var ni=t[n],ri=Ei(ni);if(ri!==`object`)return new li(`Invalid `+ei+" `"+ti+"` of type `"+ri+"` "+("supplied to `"+b+"`, expected `object`."));for(var ii in r({},t[n],e)){var oi=e[ii];if(o(e,ii)&&typeof oi!=`function`)return xi(b,ei,ti,ii,Di(oi));if(!oi)return new li(`Invalid `+ei+" `"+ti+"` key `"+ii+"` supplied to `"+b+`\`.
Bad object: `+JSON.stringify(t[n],null,` `)+`
Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var si=oi(ni,ii,b,ei,ti+`.`+ii,a);if(si)return si}return null}return ui(t)}function wi(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(wi);if(t===null||e(t))return!0;var n=ii(t);if(n){var r=n.call(t),a;if(n!==t.entries){for(;!(a=r.next()).done;)if(!wi(a.value))return!1}else for(;!(a=r.next()).done;){var o=a.value;if(o&&!wi(o[1]))return!1}}else return!1;return!0;default:return!1}}function Ti(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function Ei(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:Ti(t,e)?`symbol`:t}function Di(e){if(e==null)return``+e;var t=Ei(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function Oi(e){var t=Di(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function ki(e){return!e.constructor||!e.constructor.name?oi:e.constructor.name}return si.checkPropTypes=b,si.resetWarningCache=b.resetWarningCache,si.PropTypes=si,si}})),require_factoryWithThrowingShims=__commonJSMin$1(((e,t)=>{var n=require_ReactPropTypesSecret();function r(){}function a(){}a.resetWarningCache=r,t.exports=function(){function e(e,t,r,a,o,b){if(b!==n){var ei=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw ei.name=`Invariant Violation`,ei}}e.isRequired=e;function t(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return o.PropTypes=o,o}})),require_prop_types=__commonJSMin$1(((e,t)=>{if(init__polyfill_node_process(),browser$1.env.NODE_ENV!==`production`){var n=require_react_is$1();t.exports=require_factoryWithTypeCheckers()(n.isElement,!0)}else t.exports=require_factoryWithThrowingShims()()})),require_base64_js=__commonJSMin$1((e=>{e.byteLength=ti,e.toByteArray=ri,e.fromByteArray=si;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,o=0,b=a.length;o<b;++o)t[o]=a[o],n[a.charCodeAt(o)]=o;n[45]=62,n[95]=63;function ei(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function ti(e){var t=ei(e),n=t[0],r=t[1];return(n+r)*3/4-r}function ni(e,t,n){return(t+n)*3/4-n}function ri(e){var t,a=ei(e),o=a[0],b=a[1],ti=new r(ni(e,o,b)),ri=0,ii=b>0?o-4:o,oi;for(oi=0;oi<ii;oi+=4)t=n[e.charCodeAt(oi)]<<18|n[e.charCodeAt(oi+1)]<<12|n[e.charCodeAt(oi+2)]<<6|n[e.charCodeAt(oi+3)],ti[ri++]=t>>16&255,ti[ri++]=t>>8&255,ti[ri++]=t&255;return b===2&&(t=n[e.charCodeAt(oi)]<<2|n[e.charCodeAt(oi+1)]>>4,ti[ri++]=t&255),b===1&&(t=n[e.charCodeAt(oi)]<<10|n[e.charCodeAt(oi+1)]<<4|n[e.charCodeAt(oi+2)]>>2,ti[ri++]=t>>8&255,ti[ri++]=t&255),ti}function ii(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function oi(e,t,n){for(var r,a=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),a.push(ii(r));return a.join(``)}function si(e){for(var n,r=e.length,a=r%3,o=[],b=16383,ei=0,ti=r-a;ei<ti;ei+=b)o.push(oi(e,ei,ei+b>ti?ti:ei+b));return a===1?(n=e[r-1],o.push(t[n>>2]+t[n<<4&63]+`==`)):a===2&&(n=(e[r-2]<<8)+e[r-1],o.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),o.join(``)}})),require_ieee754=__commonJSMin$1((e=>{e.read=function(e,t,n,r,a){var o,b,ei=a*8-r-1,ti=(1<<ei)-1,ni=ti>>1,ri=-7,ii=n?a-1:0,oi=n?-1:1,si=e[t+ii];for(ii+=oi,o=si&(1<<-ri)-1,si>>=-ri,ri+=ei;ri>0;o=o*256+e[t+ii],ii+=oi,ri-=8);for(b=o&(1<<-ri)-1,o>>=-ri,ri+=r;ri>0;b=b*256+e[t+ii],ii+=oi,ri-=8);if(o===0)o=1-ni;else if(o===ti)return b?NaN:(si?-1:1)*(1/0);else b+=2**r,o-=ni;return(si?-1:1)*b*2**(o-r)},e.write=function(e,t,n,r,a,o){var b,ei,ti,ni=o*8-a-1,ri=(1<<ni)-1,ii=ri>>1,oi=a===23?2**-24-2**-77:0,si=r?0:o-1,ci=r?1:-1,li=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(ei=+!!isNaN(t),b=ri):(b=Math.floor(Math.log(t)/Math.LN2),t*(ti=2**-b)<1&&(b--,ti*=2),b+ii>=1?t+=oi/ti:t+=oi*2**(1-ii),t*ti>=2&&(b++,ti/=2),b+ii>=ri?(ei=0,b=ri):b+ii>=1?(ei=(t*ti-1)*2**a,b+=ii):(ei=t*2**(ii-1)*2**a,b=0));a>=8;e[n+si]=ei&255,si+=ci,ei/=256,a-=8);for(b=b<<a|ei,ni+=a;ni>0;e[n+si]=b&255,si+=ci,b/=256,ni-=8);e[n+si-ci]|=li*128}})),require_buffer=__commonJSMin$1((e=>{var t=require_base64_js(),n=require_ieee754(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=ei,e.SlowBuffer=fi,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,ei.TYPED_ARRAY_SUPPORT=o(),!ei.TYPED_ARRAY_SUPPORT&&typeof console<`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.");function o(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(ei.prototype,"parent",{enumerable:!0,get:function(){if(ei.isBuffer(this))return this.buffer}}),Object.defineProperty(ei.prototype,"offset",{enumerable:!0,get:function(){if(ei.isBuffer(this))return this.byteOffset}});function b(e){if(e>a)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,ei.prototype),t}function ei(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return ii(e)}return ti(e,t,n)}ei.poolSize=8192;function ti(e,t,n){if(typeof e==`string`)return oi(e,t);if(ArrayBuffer.isView(e))return ci(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(Qi(e,ArrayBuffer)||e&&Qi(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(Qi(e,SharedArrayBuffer)||e&&Qi(e.buffer,SharedArrayBuffer)))return li(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return ei.from(r,t,n);let a=ui(e);if(a)return a;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return ei.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}ei.from=function(e,t,n){return ti(e,t,n)},Object.setPrototypeOf(ei.prototype,Uint8Array.prototype),Object.setPrototypeOf(ei,Uint8Array);function ni(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function ri(e,t,n){return ni(e),e<=0||t===void 0?b(e):typeof n==`string`?b(e).fill(t,n):b(e).fill(t)}ei.alloc=function(e,t,n){return ri(e,t,n)};function ii(e){return ni(e),b(e<0?0:di(e)|0)}ei.allocUnsafe=function(e){return ii(e)},ei.allocUnsafeSlow=function(e){return ii(e)};function oi(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!ei.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=pi(e,t)|0,r=b(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}function si(e){let t=e.length<0?0:di(e.length)|0,n=b(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function ci(e){if(Qi(e,Uint8Array)){let t=new Uint8Array(e);return li(t.buffer,t.byteOffset,t.byteLength)}return si(e)}function li(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,ei.prototype),r}function ui(e){if(ei.isBuffer(e)){let t=di(e.length)|0,n=b(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||$i(e.length)?b(0):si(e);if(e.type===`Buffer`&&Array.isArray(e.data))return si(e.data)}function di(e){if(e>=a)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+a.toString(16)+` bytes`);return e|0}function fi(e){return+e!=e&&(e=0),ei.alloc(+e)}ei.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==ei.prototype},ei.compare=function(e,t){if(Qi(e,Uint8Array)&&(e=ei.from(e,e.offset,e.byteLength)),Qi(t,Uint8Array)&&(t=ei.from(t,t.offset,t.byteLength)),!ei.isBuffer(e)||!ei.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let a=0,o=Math.min(n,r);a<o;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:+(r<n)},ei.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},ei.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return ei.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=ei.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){let t=e[n];if(Qi(t,Uint8Array))a+t.length>r.length?(ei.isBuffer(t)||(t=ei.from(t)),t.copy(r,a)):Uint8Array.prototype.set.call(r,t,a);else if(ei.isBuffer(t))t.copy(r,a);else throw TypeError(`"list" argument must be an Array of Buffers`);a+=t.length}return r};function pi(e,t){if(ei.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Qi(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let a=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return qi(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return Xi(e).length;default:if(a)return r?-1:qi(e).length;t=(``+t).toLowerCase(),a=!0}}ei.byteLength=pi;function mi(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return ki(this,t,n);case`utf8`:case`utf-8`:return wi(this,t,n);case`ascii`:return Di(this,t,n);case`latin1`:case`binary`:return Oi(this,t,n);case`base64`:return Ci(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return Ai(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}ei.prototype._isBuffer=!0;function hi(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}ei.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)hi(this,t,t+1);return this},ei.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)hi(this,t,t+3),hi(this,t+1,t+2);return this},ei.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)hi(this,t,t+7),hi(this,t+1,t+6),hi(this,t+2,t+5),hi(this,t+3,t+4);return this},ei.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?wi(this,0,e):mi.apply(this,arguments)},ei.prototype.toLocaleString=ei.prototype.toString,ei.prototype.equals=function(e){if(!ei.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:ei.compare(this,e)===0},ei.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(ei.prototype[r]=ei.prototype.inspect),ei.prototype.compare=function(e,t,n,r,a){if(Qi(e,Uint8Array)&&(e=ei.from(e,e.offset,e.byteLength)),!ei.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),a===void 0&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw RangeError(`out of range index`);if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;let o=a-r,b=n-t,ti=Math.min(o,b),ni=this.slice(r,a),ri=e.slice(t,n);for(let e=0;e<ti;++e)if(ni[e]!==ri[e]){o=ni[e],b=ri[e];break}return o<b?-1:+(b<o)};function gi(e,t,n,r,a){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,$i(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof t==`string`&&(t=ei.from(t,r)),ei.isBuffer(t))return t.length===0?-1:_i(e,t,n,r,a);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_i(e,[t],n,r,a);throw TypeError(`val must be string, number or Buffer`)}function _i(e,t,n,r,a){let o=1,b=e.length,ei=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;o=2,b/=2,ei/=2,n/=2}function ti(e,t){return o===1?e[t]:e.readUInt16BE(t*o)}let ni;if(a){let r=-1;for(ni=n;ni<b;ni++)if(ti(e,ni)===ti(t,r===-1?0:ni-r)){if(r===-1&&(r=ni),ni-r+1===ei)return r*o}else r!==-1&&(ni-=ni-r),r=-1}else for(n+ei>b&&(n=b-ei),ni=n;ni>=0;ni--){let n=!0;for(let r=0;r<ei;r++)if(ti(e,ni+r)!==ti(t,r)){n=!1;break}if(n)return ni}return-1}ei.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},ei.prototype.indexOf=function(e,t,n){return gi(this,e,t,n,!0)},ei.prototype.lastIndexOf=function(e,t,n){return gi(this,e,t,n,!1)};function vi(e,t,n,r){n=Number(n)||0;let a=e.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;let o=t.length;r>o/2&&(r=o/2);let b;for(b=0;b<r;++b){let r=parseInt(t.substr(b*2,2),16);if($i(r))return b;e[n+b]=r}return b}function yi(e,t,n,r){return Zi(qi(t,e.length-n),e,n,r)}function bi(e,t,n,r){return Zi(Ji(t),e,n,r)}function xi(e,t,n,r){return Zi(Xi(t),e,n,r)}function Si(e,t,n,r){return Zi(Yi(t,e.length-n),e,n,r)}ei.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let a=this.length-t;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let o=!1;for(;;)switch(r){case`hex`:return vi(this,e,t,n);case`utf8`:case`utf-8`:return yi(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return bi(this,e,t,n);case`base64`:return xi(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return Si(this,e,t,n);default:if(o)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),o=!0}},ei.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function Ci(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function wi(e,t,n){n=Math.min(e.length,n);let r=[],a=t;for(;a<n;){let t=e[a],o=null,b=t>239?4:t>223?3:t>191?2:1;if(a+b<=n){let n,r,ei,ti;switch(b){case 1:t<128&&(o=t);break;case 2:n=e[a+1],(n&192)==128&&(ti=(t&31)<<6|n&63,ti>127&&(o=ti));break;case 3:n=e[a+1],r=e[a+2],(n&192)==128&&(r&192)==128&&(ti=(t&15)<<12|(n&63)<<6|r&63,ti>2047&&(ti<55296||ti>57343)&&(o=ti));break;case 4:n=e[a+1],r=e[a+2],ei=e[a+3],(n&192)==128&&(r&192)==128&&(ei&192)==128&&(ti=(t&15)<<18|(n&63)<<12|(r&63)<<6|ei&63,ti>65535&&ti<1114112&&(o=ti))}}o===null?(o=65533,b=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),a+=b}return Ei(r)}var Ti=4096;function Ei(e){let t=e.length;if(t<=Ti)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Ti));return n}function Di(e,t,n){let r=``;n=Math.min(e.length,n);for(let a=t;a<n;++a)r+=String.fromCharCode(e[a]&127);return r}function Oi(e,t,n){let r=``;n=Math.min(e.length,n);for(let a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function ki(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let a=``;for(let r=t;r<n;++r)a+=Ya[e[r]];return a}function Ai(e,t,n){let r=e.slice(t,n),a=``;for(let e=0;e<r.length-1;e+=2)a+=String.fromCharCode(r[e]+r[e+1]*256);return a}ei.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,ei.prototype),r};function ji(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}ei.prototype.readUintLE=ei.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||ji(e,t,this.length);let r=this[e],a=1,o=0;for(;++o<t&&(a*=256);)r+=this[e+o]*a;return r},ei.prototype.readUintBE=ei.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||ji(e,t,this.length);let r=this[e+--t],a=1;for(;t>0&&(a*=256);)r+=this[e+--t]*a;return r},ei.prototype.readUint8=ei.prototype.readUInt8=function(e,t){return e>>>=0,t||ji(e,1,this.length),this[e]},ei.prototype.readUint16LE=ei.prototype.readUInt16LE=function(e,t){return e>>>=0,t||ji(e,2,this.length),this[e]|this[e+1]<<8},ei.prototype.readUint16BE=ei.prototype.readUInt16BE=function(e,t){return e>>>=0,t||ji(e,2,this.length),this[e]<<8|this[e+1]},ei.prototype.readUint32LE=ei.prototype.readUInt32LE=function(e,t){return e>>>=0,t||ji(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},ei.prototype.readUint32BE=ei.prototype.readUInt32BE=function(e,t){return e>>>=0,t||ji(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ei.prototype.readBigUInt64LE=$a(function(e){e>>>=0,Ui(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Wi(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,a=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(a)<<BigInt(32))}),ei.prototype.readBigUInt64BE=$a(function(e){e>>>=0,Ui(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Wi(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],a=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(a)}),ei.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||ji(e,t,this.length);let r=this[e],a=1,o=0;for(;++o<t&&(a*=256);)r+=this[e+o]*a;return a*=128,r>=a&&(r-=2**(8*t)),r},ei.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||ji(e,t,this.length);let r=t,a=1,o=this[e+--r];for(;r>0&&(a*=256);)o+=this[e+--r]*a;return a*=128,o>=a&&(o-=2**(8*t)),o},ei.prototype.readInt8=function(e,t){return e>>>=0,t||ji(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},ei.prototype.readInt16LE=function(e,t){e>>>=0,t||ji(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},ei.prototype.readInt16BE=function(e,t){e>>>=0,t||ji(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},ei.prototype.readInt32LE=function(e,t){return e>>>=0,t||ji(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ei.prototype.readInt32BE=function(e,t){return e>>>=0,t||ji(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ei.prototype.readBigInt64LE=$a(function(e){e>>>=0,Ui(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Wi(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),ei.prototype.readBigInt64BE=$a(function(e){e>>>=0,Ui(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Wi(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),ei.prototype.readFloatLE=function(e,t){return e>>>=0,t||ji(e,4,this.length),n.read(this,e,!0,23,4)},ei.prototype.readFloatBE=function(e,t){return e>>>=0,t||ji(e,4,this.length),n.read(this,e,!1,23,4)},ei.prototype.readDoubleLE=function(e,t){return e>>>=0,t||ji(e,8,this.length),n.read(this,e,!0,52,8)},ei.prototype.readDoubleBE=function(e,t){return e>>>=0,t||ji(e,8,this.length),n.read(this,e,!1,52,8)};function Mi(e,t,n,r,a,o){if(!ei.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>a||t<o)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}ei.prototype.writeUintLE=ei.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;Mi(this,e,t,n,r,0)}let a=1,o=0;for(this[t]=e&255;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},ei.prototype.writeUintBE=ei.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;Mi(this,e,t,n,r,0)}let a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},ei.prototype.writeUint8=ei.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||Mi(this,e,t,1,255,0),this[t]=e&255,t+1},ei.prototype.writeUint16LE=ei.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Mi(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},ei.prototype.writeUint16BE=ei.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Mi(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},ei.prototype.writeUint32LE=ei.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Mi(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},ei.prototype.writeUint32BE=ei.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Mi(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ni(e,t,n,r,a){Hi(t,r,a,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let b=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=b,b>>=8,e[n++]=b,b>>=8,e[n++]=b,b>>=8,e[n++]=b,n}function Pi(e,t,n,r,a){Hi(t,r,a,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let b=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=b,b>>=8,e[n+2]=b,b>>=8,e[n+1]=b,b>>=8,e[n]=b,n+8}ei.prototype.writeBigUInt64LE=$a(function(e,t=0){return Ni(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),ei.prototype.writeBigUInt64BE=$a(function(e,t=0){return Pi(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),ei.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);Mi(this,e,t,n,r-1,-r)}let a=0,o=1,b=0;for(this[t]=e&255;++a<n&&(o*=256);)e<0&&b===0&&this[t+a-1]!==0&&(b=1),this[t+a]=(e/o>>0)-b&255;return t+n},ei.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);Mi(this,e,t,n,r-1,-r)}let a=n-1,o=1,b=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&b===0&&this[t+a+1]!==0&&(b=1),this[t+a]=(e/o>>0)-b&255;return t+n},ei.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||Mi(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},ei.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Mi(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},ei.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Mi(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},ei.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Mi(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},ei.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Mi(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},ei.prototype.writeBigInt64LE=$a(function(e,t=0){return Ni(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),ei.prototype.writeBigInt64BE=$a(function(e,t=0){return Pi(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function Fi(e,t,n,r,a,o){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function Ii(e,t,r,a,o){return t=+t,r>>>=0,o||Fi(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,a,23,4),r+4}ei.prototype.writeFloatLE=function(e,t,n){return Ii(this,e,t,!0,n)},ei.prototype.writeFloatBE=function(e,t,n){return Ii(this,e,t,!1,n)};function Li(e,t,r,a,o){return t=+t,r>>>=0,o||Fi(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,a,52,8),r+8}ei.prototype.writeDoubleLE=function(e,t,n){return Li(this,e,t,!0,n)},ei.prototype.writeDoubleBE=function(e,t,n){return Li(this,e,t,!1,n)},ei.prototype.copy=function(e,t,n,r){if(!ei.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let a=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),a},ei.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!ei.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let a;if(typeof e==`number`)for(a=t;a<n;++a)this[a]=e;else{let o=ei.isBuffer(e)?e:ei.from(e,r),b=o.length;if(b===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(a=0;a<n-t;++a)this[a+t]=o[a%b]}return this};var Ri={};function zi(e,t,n){Ri[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}zi(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),zi(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),zi(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=Bi(String(n)):typeof n==`bigint`&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=Bi(a)),a+=`n`),r+=` It must be ${t}. Received ${a}`,r},RangeError);function Bi(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Vi(e,t,n){Ui(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&Wi(t,e.length-(n+1))}function Hi(e,t,n,r,a,o){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,a;throw a=o>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(o+1)*8}${r}`:`>= -(2${r} ** ${(o+1)*8-1}${r}) and < 2 ** ${(o+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new Ri.ERR_OUT_OF_RANGE(`value`,a,e)}Vi(r,a,o)}function Ui(e,t){if(typeof e!=`number`)throw new Ri.ERR_INVALID_ARG_TYPE(t,`number`,e)}function Wi(e,t,n){throw Math.floor(e)===e?t<0?new Ri.ERR_BUFFER_OUT_OF_BOUNDS:new Ri.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(Ui(e,n),new Ri.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}var Gi=/[^+/0-9A-Za-z-_]/g;function Ki(e){if(e=e.split(`=`)[0],e=e.trim().replace(Gi,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function qi(e,t){t||=1/0;let n,r=e.length,a=null,o=[];for(let b=0;b<r;++b){if(n=e.charCodeAt(b),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(b+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if(--t<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return o}function Ji(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function Yi(e,t){let