diff --git a/website/age/api/v1/urls.py b/website/age/api/v1/urls.py index d6a47ebf..f3292186 100644 --- a/website/age/api/v1/urls.py +++ b/website/age/api/v1/urls.py @@ -3,6 +3,6 @@ urlpatterns = [ - path("start/", YiviStartAPIView.as_view(), name="yivi_start"), - path("result/", YiviResultAPIView.as_view(), name="yivi_result"), + path("session/", YiviStartAPIView.as_view(), name="yivi_start"), + path("session//result/", YiviResultAPIView.as_view(), name="yivi_result"), ] diff --git a/website/age/api/v1/views.py b/website/age/api/v1/views.py index 1fb1df97..ad71ae9a 100644 --- a/website/age/api/v1/views.py +++ b/website/age/api/v1/views.py @@ -1,6 +1,8 @@ +from rest_framework.generics import get_object_or_404 from rest_framework.response import Response from rest_framework.views import APIView +from age.models import SessionMapping from age.services import get_yivi_client from age.yivi import YiviException from tosti.api.permissions import IsAuthenticatedOrTokenHasScopeForMethod @@ -28,10 +30,14 @@ def post(self, request, **kwargs): "disclose": [[["irma-demo.MijnOverheid.ageLower.over18"]]], } ) - return Response(data=response) except YiviException as e: return Response(status=e.http_status, data=e.msg) + token = response["token"] + session_mapping = SessionMapping.objects.create(session_token=token) + response["token"] = session_mapping.id + return Response(data=response) + class YiviResultAPIView(APIView): """ @@ -48,7 +54,9 @@ class YiviResultAPIView(APIView): def get(self, request, **kwargs): """Get the result of a Yivi session.""" yivi_client = get_yivi_client() + session_uuid = kwargs.get("pk") + session = get_object_or_404(SessionMapping, pk=session_uuid) try: - return Response(data=yivi_client.session_status("")) + return Response(data=yivi_client.session_result(session.session_token)) except YiviException as e: return Response(status=e.http_status, data=e.msg) diff --git a/website/age/migrations/0003_sessionmapping.py b/website/age/migrations/0003_sessionmapping.py new file mode 100644 index 00000000..c2de7edc --- /dev/null +++ b/website/age/migrations/0003_sessionmapping.py @@ -0,0 +1,21 @@ +# Generated by Django 4.2.4 on 2023-09-18 14:53 + +from django.db import migrations, models +import uuid + + +class Migration(migrations.Migration): + + dependencies = [ + ("age", "0002_alter_is18yearsold_user"), + ] + + operations = [ + migrations.CreateModel( + name="SessionMapping", + fields=[ + ("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), + ("session_token", models.CharField(max_length=20)), + ], + ), + ] diff --git a/website/age/migrations/0004_alter_sessionmapping_session_token.py b/website/age/migrations/0004_alter_sessionmapping_session_token.py new file mode 100644 index 00000000..ed9c1683 --- /dev/null +++ b/website/age/migrations/0004_alter_sessionmapping_session_token.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.4 on 2023-09-18 14:54 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("age", "0003_sessionmapping"), + ] + + operations = [ + migrations.AlterField( + model_name="sessionmapping", + name="session_token", + field=models.CharField(max_length=20, unique=True), + ), + ] diff --git a/website/age/models.py b/website/age/models.py index 898b2eb7..de62e272 100644 --- a/website/age/models.py +++ b/website/age/models.py @@ -1,3 +1,5 @@ +import uuid + from django.contrib.auth import get_user_model from django.db import models @@ -10,3 +12,10 @@ class Is18YearsOld(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, related_name="is_18_years_old") created_at = models.DateTimeField(auto_now_add=True) + + +class SessionMapping(models.Model): + """Session mapping class for Yivi.""" + + id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) + session_token = models.CharField(max_length=20, unique=True) diff --git a/website/age/static/age/js/yivi.js b/website/age/static/age/js/yivi.js new file mode 100644 index 00000000..89f87629 --- /dev/null +++ b/website/age/static/age/js/yivi.js @@ -0,0 +1 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.yivi=e():t.yivi=e()}(self,(function(){return function(){var t={3705:function(t,e,n){n(1443);const r=n(3588),i=n(8573),o=n(3197),a=n(5406);t.exports={newWeb:t=>{const e=new r(t);return e.use(i),e.use(a),{start:e.start.bind(e),abort:e.abort.bind(e)}},newPopup:t=>{const e=new r(t);return e.use(o),e.use(a),{start:e.start.bind(e),abort:e.abort.bind(e)}}}},5406:function(t,e,n){const r=n(2825),i=n(6157);t.exports=class{constructor(t){this._stateClient=new i(t),this._sessionClient=new r({...t,onCancel:t=>this._stateClient.cancelSession(t)})}stateChange(t){this._sessionClient.stateChange(t),this._stateClient.stateChange(t)}start(){this._sessionClient.start()}close(){this._stateClient.close()}}},6559:function(t){t.exports=class{static _parse(t){const e=t.split(".").map((t=>parseInt(t)));if(2!==e.length)throw new Error("Length does not match");return{major:e[0],minor:e[1]}}static minSupported(){return"1.0"}static maxSupported(){return"1.1"}static get(t){switch(t){case"pairing":case"chained-sessions":return"1.1";default:throw new Error("Protocol version requested of unknown feature")}}static above(t,e){const n=this._parse(t),r=this._parse(e);return n.major===r.major?n.minor>r.minor:n.major>r.major}static below(t,e){const n=this._parse(t),r=this._parse(e);return n.major===r.major?n.minor{})}stateChange(t){let{newState:e}=t;switch(e){case"Loading":this._startNewSession();break;case"PreparingResult":this._prepareResult()}}start(){return this._options.session?this._stateMachine.selectTransition((t=>{let{state:e}=t;if("Uninitialized"!==e)throw new Error("State machine is already initialized by another plugin");return{transition:"initialize",payload:{canRestart:!!this._options.session.start}}})):Promise.resolve()}_startNewSession(){this._session&&this._session.start().then((t=>this._stateMachine.selectTransition((e=>{let{state:n}=e;return"Loading"===n?{transition:"loaded",payload:t}:(this._onCancel(t),!1)})))).catch((t=>this._stateMachine.selectTransition((e=>{let{validTransitions:n}=e;if(this._options.debugging&&r.error("Error starting a new session on the server:",t),n.includes("fail"))return{transition:"fail",payload:t};throw t}))))}_prepareResult(){this._session&&this._session.result().then((t=>this._stateMachine.selectTransition((e=>{let{validTransitions:n}=e;return!!n.includes("succeed")&&{transition:"succeed",payload:t}})))).catch((t=>this._stateMachine.selectTransition((e=>{let{validTransitions:n}=e;if(this._options.debugging&&r.error("Error getting result from the server:",t),n.includes("fail"))return{transition:"fail",payload:t};throw t}))))}_sanitizeOptions(t){return o({session:{url:"",start:{url:t=>"".concat(t.url,"/session"),parseResponse:t=>t.json()},mapping:{sessionPtr:t=>t.sessionPtr,sessionToken:t=>t.token,frontendRequest:t=>t.frontendRequest},result:{url:(t,e)=>{let{sessionToken:n}=e;return"".concat(t.url,"/session/").concat(n,"/result")},parseResponse:t=>t.json()}}},t)}}},5299:function(t,e,n){const r=n(6559);"undefined"==typeof fetch&&n(1049),t.exports=class{constructor(t){this._options=t,this._mappings={}}start(){return this._options.start?fetch(this._options.start.url(this._options),this._options.start).then((t=>{if(200!==t.status)throw new Error("Error in fetch: endpoint returned status other than 200 OK. Status: ".concat(t.status," ").concat(t.statusText));return t})).then((t=>this._options.start.parseResponse(t))).then((t=>(Object.keys(this._options.mapping).forEach((e=>this._mappings[e]=this._options.mapping[e](t))),this._parseMappings(this._mappings)))):(Object.keys(this._options.mapping).forEach((t=>this._mappings[t]=this._options.mapping[t]({}))),Promise.resolve(this._parseMappings(this._mappings)))}_parseMappings(t){if(!t.sessionPtr)throw new Error("Missing sessionPtr in mappings");let e=t.frontendRequest;if(e||(e={minProtocolVersion:r.minSupported(),maxProtocolVersion:r.minSupported()}),r.above(r.minSupported(),e.maxProtocolVersion)||r.below(r.maxSupported(),e.minProtocolVersion))throw new Error("Frontend protocol version is not supported");return{...t,frontendRequest:e}}result(){return this._options.result?fetch(this._options.result.url(this._options,this._mappings),this._options.result).then((t=>{if(200!==t.status)throw new Error("Error in fetch: endpoint returned status other than 200 OK. Status: ".concat(t.status," ").concat(t.statusText));return t})).then((t=>this._options.result.parseResponse(t))):Promise.resolve(this._mappings)}}},6157:function(t,e,n){var r=n(1086);const i=n(6559);"undefined"==typeof fetch&&n(1049);const o=n(5878),a=n(3259),s=n(9961);t.exports=class{constructor(t){let{stateMachine:e,options:n}=t;this._stateMachine=e,this._options=this._sanitizeOptions(n),this._mappings={}}stateChange(t){let{newState:e,transition:n,payload:r}=t;switch(e){case"Loading":this._canRestart="restart"===n||r.canRestart;break;case"CheckingUserAgent":"loaded"===n?(this._mappings=r,this._pairingEnabled=!1,this._statusListener=new o(r,this._options.state)):this._statusListener.close(),this._determineFlow();break;case"PreparingQRCode":this._updatePairingState(n,!0);break;case"PreparingYiviButton":this._updatePairingState(n,!1);break;case"ShowingQRCode":case"ShowingYiviButton":this._startWatchingServerState(r);break;case"Pairing":this._frontendOptions.pairingCode===r.enteredPairingCode?this._pairingCompleted():setTimeout((()=>this._stateMachine.selectTransition((t=>{let{validTransitions:e}=t;return!!e.includes("pairingRejected")&&{transition:"pairingRejected",payload:r}}))),this._options.state.pairing.minCheckingDelay);break;case"PreparingResult":case"Cancelled":case"TimedOut":case"Error":this._serverCloseSession()}}close(){this._serverCloseSession()}cancelSession(t){return this._options.state.cancel?fetch(this._options.state.cancel.url(t),{method:"DELETE"}):Promise.resolve()}_startWatchingServerState(){try{this._statusListener.observe((t=>this._serverStateChange(t)),(t=>this._serverHandleError(t)))}catch(t){this._options.debugging&&r.error("Observing server state could not be started: ",t),this._handleNoSuccess("fail",t)}}_serverCloseSession(){this._statusListener&&this._statusListener.close()&&this.cancelSession(this._mappings).catch((t=>{this._options.debugging&&r.error("Session could not be cancelled:",t)}))}_serverHandleError(t){this._options.debugging&&r.error("Error while observing server state: ",t),this._handleNoSuccess("fail",t)}_serverStateChange(t){return this._stateMachine.selectTransition((e=>{let{validTransitions:n}=e;return!("DONE"!==t.status||!n.includes("appConnected"))&&{transition:"appConnected"}})).then((()=>this._stateMachine.selectTransition((e=>{let{state:n,validTransitions:i}=e;switch(t.status){case"PAIRING":if(i.includes("appPairing"))return{transition:"appPairing",payload:this._frontendOptions};break;case"CONNECTED":if("Pairing"!==n&&i.includes("appConnected"))return{transition:"appConnected"};break;case"DONE":if(this._statusListener.close(),t.nextSession){const e={...this._mappings,sessionPtr:t.nextSession};this._statusListener=new o(e,this._options.state),this._startWatchingServerState()}else if(i.includes("prepareResult"))return{transition:"prepareResult"};break;case"CANCELLED":return this._statusListener.close(),this._noSuccessTransition(i,"cancel");case"TIMEOUT":return this._statusListener.close(),this._noSuccessTransition(i,"timeout");default:return this._options.debugging&&r.error("Unknown state received from server:",t.status),this._statusListener.close(),this._noSuccessTransition(i,"fail",new Error("Unknown state received from server"))}return!1}))))}_handleNoSuccess(t,e){return this._stateMachine.selectTransition((n=>{let{validTransitions:r}=n;return this._noSuccessTransition(r,t,e)}))}_noSuccessTransition(t,e,n){if(t.includes(e))return{transition:e,payload:n,isFinal:!this._canRestart};if(this._options.debugging){const t=n?"with payload ".concat(n):"";r.error("Unknown transition, tried transition ".concat(e),t)}return!1}_updatePairingState(t,e){return Promise.resolve().then((()=>{if(!this._options.state.pairing)return Promise.resolve();const t=e&&!!this._options.state.pairing.onlyEnableIf(this._mappings);if(t===this._pairingEnabled)return Promise.resolve();this._pairingEnabled=t;const n=t?{pairingMethod:this._options.state.pairing.pairingMethod}:{pairingMethod:"none"};return this._updateFrontendOptions(n)})).then((()=>this._stateMachine.selectTransition((n=>{let{validTransitions:r}=n;return e?!!r.includes("showQRCode")&&{transition:"showQRCode",payload:{qr:JSON.stringify(this._mappings.sessionPtr),showBackButton:"chooseQR"===t}}:!!r.includes("showYiviButton")&&{transition:"showYiviButton",payload:{mobile:this._getMobileUrl(this._mappings.sessionPtr)}}})))).catch((t=>{this._options.debugging&&r.error("Error received while updating pairing state:",t),this._handleNoSuccess("fail",t)}))}_pairingCompleted(){const t=new Promise((t=>{setTimeout(t,this._options.state.pairing.minCheckingDelay)})),e=this._options.state.url(this._mappings,this._options.state.pairing.completedEndpoint);return fetch(e,{method:"POST",headers:{Authorization:this._mappings.frontendRequest.authorization}}).finally((()=>t)).then((()=>this._stateMachine.selectTransition((t=>{let{validTransitions:e}=t;return!!e.includes("appConnected")&&{transition:"appConnected"}})))).catch((t=>{this._options.debugging&&r.error("Error received while completing pairing:",t),this._handleNoSuccess("fail",t)}))}_updateFrontendOptions(t){if(i.below(this._mappings.frontendRequest.maxProtocolVersion,i.get("pairing")))return Promise.reject(new Error("Frontend options are not supported by the IRMA server"));const e={method:"POST",headers:{"Content-Type":"application/json",Authorization:this._mappings.frontendRequest.authorization},body:JSON.stringify({"@context":this._options.state.frontendOptions.requestContext,...t})},n=this._options.state.url(this._mappings,this._options.state.frontendOptions.endpoint);return fetch(n,e).then((t=>t.json())).then((t=>this._frontendOptions=t))}_getMobileUrl(t){const e=JSON.stringify(t);switch(this._userAgent){case"Android":{const t="Intent;package=org.irmacard.cardemu;scheme=irma;l.timestamp=".concat(Date.now());return"intent://qr/json/".concat(encodeURIComponent(e),"#").concat(t,";end")}case"iOS":return"https://irma.app/-/session#".concat(encodeURIComponent(e));default:throw new Error("Device type is not supported.")}}_determineFlow(){return this._userAgent=s(),this._stateMachine.selectTransition((t=>{let{validTransitions:e}=t;switch(this._userAgent){case"Android":case"iOS":if(e.includes("prepareButton"))return{transition:"prepareButton"};break;default:if(e.includes("prepareQRCode"))return{transition:"prepareQRCode"}}return!1}))}_sanitizeOptions(t){const e={state:{debugging:t.debugging,cancel:{url:t=>t.sessionPtr.u},url:(t,e)=>"".concat(t.sessionPtr.u,"/frontend/").concat(e),legacyUrl:(t,e)=>"".concat(t.sessionPtr.u,"/").concat(e),serverSentEvents:{endpoint:"statusevents",timeout:2e3},polling:{endpoint:"status",interval:500,startState:"INITIALIZED"},frontendOptions:{endpoint:"options",requestContext:"https://irma.app/ld/request/frontendoptions/v1"},pairing:{onlyEnableIf:t=>t.frontendRequest.pairingHint,completedEndpoint:"pairingcompleted",minCheckingDelay:500,pairingMethod:"pin"}}};return a(e,t)}}},5878:function(t,e,n){var r=n(1086);const i=n(6559),o=n(9604);"undefined"==typeof fetch&&n(1049),t.exports=class{constructor(t,e){this._isRunning=!1,this._isPolling=!1,this._options=e,this._mappings=t,this._listeningMethod=this._options.serverSentEvents?"sse":"polling",this._sseUrl=this._options.serverSentEvents?this._getFetchUrl(this._options.serverSentEvents.endpoint):"",this._pollingUrl=this._options.polling?this._getFetchUrl(this._options.polling.endpoint):"",this._fetchParams=this._getFetchParams()}observe(t,e){return this._stateChangeCallback=t,this._errorCallback=e,this._isRunning=!0,"sse"===this._listeningMethod?this._startSSE():this._startPolling()}close(){return!!this._isRunning&&(this._source&&(this._options.debugging&&this._source.readyState<2&&r.log("🌎 Closed EventSource"),this._source.close()),this._isRunning=!1,!0)}_getFetchUrl(t){return i.below(this._mappings.frontendRequest.maxProtocolVersion,i.get("chained-sessions"))?this._options.legacyUrl(this._mappings,t):this._options.url(this._mappings,t)}_getFetchParams(){return i.below(this._mappings.frontendRequest.maxProtocolVersion,i.get("chained-sessions"))?{}:{headers:{Authorization:this._mappings.frontendRequest.authorization}}}_startSSE(){this._options.debugging&&r.log("🌎 Using EventSource for server events on ".concat(this._sseUrl)),this._source=new o(this._sseUrl,this._fetchParams);const t=this._options.serverSentEvents.timeout,e=setTimeout((()=>{this._options.debugging&&r.error("🌎 EventSource could not connect to ".concat(this._sseUrl," within ").concat(t,"ms")),setTimeout((()=>this._source.close()),0),this._startPolling()}),t);this._source.addEventListener("open",(()=>clearTimeout(e))),this._source.addEventListener("message",(t=>{clearTimeout(e);let n=JSON.parse(t.data);"string"==typeof n&&(n={status:n}),this._options.debugging&&r.log("🌎 Server event: Remote state changed to '".concat(n.status,"'")),this._stateChangeCallback(n)})),this._source.addEventListener("error",(t=>{clearTimeout(e),this._source.close(),this._options.debugging&&r.error("🌎 EventSource threw an error: ",t),setTimeout((()=>this._source.close()),0),this._startPolling()}))}_startPolling(){this._listeningMethod="polling",this._options.polling&&!this._isPolling&&(this._options.debugging&&r.log("🌎 Using polling for server events on ".concat(this._pollingUrl)),this._currentStatus=this._options.polling.startState,this._isPolling=!0,this._polling().then((()=>{this._options.debugging&&r.log("🌎 Stopped polling on ".concat(this._pollingUrl))})).catch((t=>{this._options.debugging&&r.error("🌎 Error thrown while polling of ".concat(this._pollingUrl,": "),t),this._errorCallback(t)})))}_pollOnce(){return fetch(this._pollingUrl,{...this._fetchParams,cache:"no-store"}).then((t=>{if(200!==t.status)throw new Error("Error in fetch: endpoint returned status other than 200 OK. Status: ".concat(t.status," ").concat(t.statusText));return t})).then((t=>t.json())).then((t=>"string"==typeof t?{status:t}:t))}_polling(){return new Promise(((t,e)=>{if(!this._isRunning)return this._isPolling=!1,void t();this._pollOnce().catch((()=>(this._options.debugging&&r.log("Polling attempt failed; doing a second attempt to confirm error"),this._pollOnce()))).then((n=>{if(!this._isRunning)return this._isPolling=!1,void t();n.status!==this._currentStatus&&(this._options.debugging&&r.log("🌎 Server event: Remote state changed to '".concat(n.status,"'")),this._currentStatus=n.status,this._stateChangeCallback(n)),setTimeout((()=>{this._polling().then(t).catch(e)}),this._options.polling.interval)})).catch(e)}))}}},9961:function(t){t.exports=()=>"undefined"==typeof window?"nodejs":window.MSInputMethodContext&&document.documentMode?"Desktop":/Android/i.test(window.navigator.userAgent)?"Android":/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2?"iOS":"Desktop"},3588:function(t,e,n){var r=n(1086);const i=n(3123);t.exports=class{constructor(t){this._modules=[],this._options=t||{},this._stateMachine=new i(this._options.debugging),this._stateMachine.addStateChangeListener((t=>this._stateChangeListener(t)))}use(t){this._modules.push(new t({stateMachine:this._stateMachine,options:this._options}))}start(){for(var t=arguments.length,e=new Array(t),n=0;n{this._resolve=t,this._reject=n,this._modules.filter((t=>t.start)).forEach((t=>t.start(...e)))}))}abort(){return this._stateMachine.selectTransition((t=>{let{state:e,inEndState:n}=t;return"Uninitialized"===e||n?(this._options.debugging&&r.log("🖥 Manual abort is not necessary"),!1):(this._options.debugging&&r.log("🖥 Manually aborting session instance"),{transition:"abort"})}))}_stateChangeListener(t){this._modules.filter((t=>t.stateChange)).forEach((e=>e.stateChange(t)));const{newState:e,payload:n,isFinal:r}=t;if(r){const t="Success"===e?n:e;this._close(t).then("Success"===e?this._resolve:this._reject).catch(this._reject)}}_close(t){return Promise.all(this._modules.map((t=>Promise.resolve(t.close?t.close():void 0)))).then((e=>e.some((t=>void 0!==t))?[t,...e]:t))}}},3123:function(t,e,n){var r=n(1086);const i=n(311);t.exports=class{constructor(t){this._state=i.startState,this._debugging=t,this._listeners=[],this._inEndState=!1,this._disabledTransitions=[]}addStateChangeListener(t){this._listeners.push(t)}transition(t,e){return r.warn("The 'transition' function of the yivi-core state machine is deprecated. Please use 'selectTransition'."),this.selectTransition((()=>({transition:t,payload:e})))}finalTransition(t,e){return r.warn("The 'finalTransition' function of the yivi-core state machine is deprecated. Please use 'selectTransition'."),this.selectTransition((()=>({transition:t,payload:e,isFinal:!0})))}selectTransition(t){return new Promise(((e,n)=>{try{const n=t({state:this._state,validTransitions:this._getValidTransitions(),inEndState:this._inEndState});if(!n)return void e(!1);this._performTransition(n),e(n)}catch(t){n(t)}}))}_getValidTransitions(){return Object.keys(i[this._state]).filter((t=>!this._disabledTransitions.includes(t)))}_performTransition(t){let{transition:e,isFinal:n,payload:i}=t;const o=this._state;if(this._inEndState)throw new Error("State machine is in an end state. No transitions are allowed from ".concat(o,"."));this._state=this._getNewState(e,n),this._debugging&&r.debug("🎰 State change: '".concat(o,"' → '").concat(this._state,"' (because of '").concat(e,"')")),this._inEndState=n||0===this._getValidTransitions().filter((t=>"abort"!==t)).length,"initialize"===e&&(this._disabledTransitions=i.canRestart?[]:["restart"]),this._listeners.forEach((t=>t({newState:this._state,oldState:o,transition:e,isFinal:this._inEndState,payload:i})))}_getNewState(t,e){const n=i[this._state][t],r=this._disabledTransitions.includes(t);if(!n)throw new Error("Invalid transition '".concat(t,"' from state '").concat(this._state,"'."));if(r)throw new Error("Transition '".concat(t,"' is currently disabled in state '").concat(this._state,"'."));if(e&&!i.endStates.includes(n))throw new Error("Transition '".concat(t,"' from state '").concat(this._state,"' is marked as final, but resulting state ").concat(n," cannot be an end state."));return n}}},311:function(t){t.exports={startState:"Uninitialized",endStates:["BrowserNotSupported","Success","Aborted","Cancelled","TimedOut","Error"],Uninitialized:{initialize:"Loading",browserError:"BrowserNotSupported"},Loading:{loaded:"CheckingUserAgent",abort:"Aborted",fail:"Error"},CheckingUserAgent:{prepareQRCode:"PreparingQRCode",prepareButton:"PreparingYiviButton",abort:"Aborted",fail:"Error"},PreparingQRCode:{showQRCode:"ShowingQRCode",abort:"Aborted",fail:"Error"},ShowingQRCode:{appConnected:"ContinueOn2ndDevice",appPairing:"EnterPairingCode",cancel:"Cancelled",timeout:"TimedOut",abort:"Aborted",fail:"Error",checkUserAgent:"CheckingUserAgent"},EnterPairingCode:{codeEntered:"Pairing",cancel:"Cancelled",timeout:"TimedOut",abort:"Aborted",fail:"Error"},Pairing:{pairingRejected:"EnterPairingCode",appConnected:"ContinueOn2ndDevice",cancel:"Cancelled",timeout:"TimedOut",abort:"Aborted",fail:"Error"},ContinueOn2ndDevice:{prepareResult:"PreparingResult",cancel:"Cancelled",timeout:"TimedOut",abort:"Aborted",fail:"Error"},PreparingYiviButton:{showYiviButton:"ShowingYiviButton",abort:"Aborted",fail:"Error"},ShowingYiviButton:{chooseQR:"PreparingQRCode",appConnected:"ContinueInYiviApp",cancel:"Cancelled",timeout:"TimedOut",abort:"Aborted",fail:"Error",checkUserAgent:"CheckingUserAgent"},ContinueInYiviApp:{prepareResult:"PreparingResult",cancel:"Cancelled",timeout:"TimedOut",abort:"Aborted",fail:"Error"},PreparingResult:{succeed:"Success",abort:"Aborted",fail:"Error"},Cancelled:{abort:"Aborted",restart:"Loading"},TimedOut:{abort:"Aborted",restart:"Loading"},Error:{abort:"Aborted",restart:"Loading"},BrowserNotSupported:{},Success:{},Aborted:{}}},3794:function(t,e,n){var r=n(1086);t.exports=class{constructor(t,e){this._closeCallback=e,this._element=this._findElement(t),this._element.classList.add("yivi-web-popup"),this._element.innerHTML="
"}isPopupActive(){return this._element.classList.contains("yivi-web-popup-active")}openPopup(){const t=t=>this._clickHandler(t),e=t=>this._keyHandler(t);this._element.addEventListener("click",t),document.addEventListener("keyup",e),this._removeEventListeners=()=>{this._element.removeEventListener("click",t),document.removeEventListener("keyup",e)},this._element.classList.add("yivi-web-popup-active"),this._element.focus()}closePopup(){this.isPopupActive()&&(this._removeEventListeners(),this._element.classList.remove("yivi-web-popup-active"))}_findElement(t){if(t){const e=document.querySelector(t);return e||r.error("Could not find element ".concat(t)),e}let e=document.querySelector("div.yivi-web-popup");return e||(e=document.body.appendChild(document.createElement("div"))),e.setAttribute("tabindex","-1"),e}_clickHandler(t){t.target.matches("button.yivi-web-close")&&this._cancel()}_keyHandler(t){"Escape"===t.key&&this._cancel()}_cancel(){this.closePopup(),this._closeCallback()}}},3197:function(t,e,n){const r=n(8573),i=n(3794),o=n(3259);t.exports=class{constructor(t){let{stateMachine:e,options:n}=t;this._stateMachine=e,this._options=this._sanitizeOptions(n),this._dom=new i(n.element,(()=>this._stateMachine.selectTransition((t=>{let{inEndState:e}=t;return e?(this._popupClosedEarly&&this._popupClosedEarly(),!1):{transition:"abort"}})))),this._yiviWeb=new r({stateMachine:e,options:{...n,element:"#yivi-popup-web-form",showCloseButton:!0}})}stateChange(t){switch(this._yiviWeb.stateChange(t),t.newState){case"Loading":this._dom.openPopup();break;case"Aborted":this._dom.closePopup()}}close(){return this._yiviWeb.close(),this._dom.isPopupActive()?new Promise((t=>{this._popupClosedEarly=t,window.setTimeout((()=>{this._dom.isPopupActive()&&(this._dom.closePopup(),t())}),this._options.closePopupDelay)})):Promise.resolve()}_sanitizeOptions(t){return o({closePopupDelay:2e3},t)}}},3413:function(t,e,n){const r=n(7756);t.exports=class{constructor(t,e,n,r){this._element=t,this._translations=e.translations,this._showHelper=e.showHelper,this._showCloseButton=e.showCloseButton,this._fallbackDelay=e.fallbackDelay,this._eventHandlers={},this._clickCallback=n,this._pairingCodeCallback=r,this._renderInitialState(),this._attachEventHandlers()}renderState(t){const e=this._stateToPartialMapping()[t.newState];if(!e)throw new Error("I don't know how to render '".concat(t.newState,"'"));this._renderPartial(e,t),"ShowingYiviButton"!==t.oldState||this._showHelper||this._element.querySelector(".yivi-web-header").classList.remove("yivi-web-show-helper"),t.isFinal&&(this._detachEventHandlers(),this._element.querySelectorAll(".yivi-web-restart-button").forEach((t=>t.style.display="none")))}setQRCode(t){r.toCanvas(this._element.querySelector(".yivi-web-qr-canvas"),t,{width:"230",margin:"1"})}setButtonLink(t){this._element.querySelector(".yivi-web-button-link").setAttribute("href",t)}_renderInitialState(){this._element.classList.add("yivi-web-form"),this._element.innerHTML=this._yiviWebForm(this._stateUninitialized())}_attachEventHandler(t,e){this._element.addEventListener(t,e),this._eventHandlers[t]=e}_attachEventHandlers(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),this._attachEventHandler("click",(t=>{const e=/Android/i.test(window.navigator.userAgent);if(t.target.matches("[data-yivi-glue-transition]"))this._clickCallback(t.target.getAttribute("data-yivi-glue-transition"));else if(e&&t.target.matches(".yivi-web-button-link *"))t.target.disabled=!0,setTimeout((()=>{this._element.contains(t.target)&&(this._element.querySelector(".yivi-web-header").classList.add("yivi-web-show-helper"),t.target.disabled=!1)}),this._fallbackDelay);else if(t.target.matches(".yivi-web-pairing-code")){const e=t.target.querySelector("input:invalid");e&&e.focus()}})),this._attachEventHandler("keydown",(t=>{t.target.matches(".yivi-web-pairing-code input")&&(t.target.prevValue=t.target.value,"Enter"!==t.key&&(t.target.value=""))})),this._attachEventHandler("keyup",(t=>{if(t.target.matches(".yivi-web-pairing-code input")){const e=t.target.previousElementSibling;e&&"Backspace"===t.key&&t.target.value===t.target.prevValue&&(e.value="",e.focus())}})),this._attachEventHandler("input",(t=>{if(t.target.matches(".yivi-web-pairing-code input")){const e=t.target.nextElementSibling;e&&t.target.checkValidity()?e.focus():t.target.form.querySelector("input[type=submit]").click()}})),this._attachEventHandler("focusin",(t=>{t.target.matches(".yivi-web-pairing-code input")&&(t.target.value||(t.preventDefault(),t.target.form.querySelector("input:invalid").focus()))})),this._attachEventHandler("submit",(t=>{if("yivi-web-pairing-form"===t.target.className){t.preventDefault();const e=t.target.querySelectorAll(".yivi-web-pairing-code input"),n=Array.prototype.map.call(e,(t=>t.value)).join("");this._pairingCodeCallback(n)}}))}_detachEventHandlers(){Object.keys(this._eventHandlers).forEach((t=>{this._element.removeEventListener(t,this._eventHandlers[t])})),this._eventHandlers={}}_renderPartial(t,e){const n=t.call(this,e);n&&(this._element.querySelector(".yivi-web-content .yivi-web-centered").innerHTML=n);const r=this._element.querySelector("input");r&&r.focus()}_stateToPartialMapping(){return{Uninitialized:this._stateUninitialized,Loading:this._stateLoading,CheckingUserAgent:this._stateLoading,PreparingQRCode:this._stateLoading,PreparingYiviButton:this._stateLoading,ShowingQRCode:this._stateShowingQRCode,EnterPairingCode:this._stateEnterPairingCode,Pairing:this._stateEnterPairingCode,ContinueOn2ndDevice:this._stateContinueInYiviApp,ShowingYiviButton:this._stateShowingYiviButton,ContinueInYiviApp:this._stateContinueInYiviApp,PreparingResult:this._stateLoading,Cancelled:this._stateCancelled,TimedOut:this._stateTimedOut,Error:this._stateError,BrowserNotSupported:this._stateBrowserNotSupported,Success:this._stateSuccess,Aborted:this._stateAborted}}_yiviWebForm(t){return'\n
\n

').concat(this._translations.header,'

\n
\n

').concat(this._translations.helper,"

\n
\n ").concat(this._showCloseButton?'\n \n ':"",'\n
\n
\n
\n ').concat(t,"\n
\n
\n ")}_stateUninitialized(){return'\n \x3c!-- State: Uninitialized --\x3e\n
\n \n
\n

'.concat(this._translations.loading,"

\n ")}_stateLoading(){return'\n \x3c!-- State: Loading --\x3e\n
\n \n
\n

'.concat(this._translations.loading,"

\n ")}_stateShowingQRCode(t){let{payload:e}=t;return'\n \x3c!-- State: ShowingQRCode --\x3e\n \n '.concat(e.showBackButton?'

'.concat(this._translations.back,"

"):"","\n ")}_stateShowingYiviButton(){return'\n \x3c!-- State: ShowingButton --\x3e\n \n \n \n

').concat(this._translations.qrCode,"

\n ")}_stateEnterPairingCode(t){let{transition:e,payload:n}=t;const r=this._element.querySelector(".yivi-web-pairing-form"),i=this._element.querySelectorAll(".yivi-web-pairing-code input");switch(e){case"pairingRejected":{const t=r.firstElementChild;return t.innerHTML=this._translations.pairingFailed(n.enteredPairingCode),t.classList.add("yivi-web-error"),r.reset(),i.forEach((t=>t.disabled=!1)),r.querySelector(".yivi-web-pairing-loading-animation").style.visibility="hidden",!1}case"codeEntered":return i.forEach((t=>t.disabled=!0)),r.querySelector(".yivi-web-pairing-loading-animation").style.visibility="visible",!1;default:return'\n \x3c!-- State: EnterPairingCode --\x3e\n
\n

'.concat(this._translations.pairing,'

\n
\n \n \n \n \n
\n \n
\n \n
\n

').concat(this._translations.cancel,"

\n
\n ")}}_stateContinueInYiviApp(){return'\n \x3c!-- State: WaitingForUser --\x3e\n
\n

'.concat(this._translations.app,'

\n

').concat(this._translations.cancel,"

\n ")}_stateCancelled(){return'\n \x3c!-- State: Cancelled --\x3e\n
\n

'.concat(this._translations.cancelled,'

\n

').concat(this._translations.retry,"

\n ")}_stateTimedOut(){return'\n \x3c!-- State: TimedOut --\x3e\n
\n

'.concat(this._translations.timeout,'

\n

').concat(this._translations.retry,"

\n ")}_stateError(){return'\n \x3c!-- State: Error --\x3e\n
\n

'.concat(this._translations.error,'

\n

').concat(this._translations.retry,"

\n ")}_stateBrowserNotSupported(){return'\n \x3c!-- State: BrowserNotSupported --\x3e\n
\n

'.concat(this._translations.browser,"

\n ")}_stateSuccess(){return'\n \x3c!-- State: Success --\x3e\n
\n

'.concat(this._translations.success,"

\n ")}_stateAborted(){return"\n \x3c!-- State: Aborted --\x3e\n "}}},8573:function(t,e,n){var r=n(1086);const i=n(3413),o=n(3259),a={nl:n(6003),en:n(9246)};t.exports=class{constructor(t){let{stateMachine:e,options:n}=t;this._stateMachine=e,this._options=this._sanitizeOptions(n),this._lastPayload=null,this._dom=new i(document.querySelector(this._options.element),this._options,(t=>this._stateMachine.selectTransition((e=>{let{validTransitions:n}=e;return!!n.includes(t)&&{transition:t,payload:this._lastPayload}}))),(t=>this._stateMachine.selectTransition((e=>{let{validTransitions:n}=e;return!!n.includes("codeEntered")&&{transition:"codeEntered",payload:{enteredPairingCode:t}}})))),this._addVisibilityListener()}stateChange(t){const{newState:e,payload:n}=t;switch(this._lastPayload=n,this._dom.renderState(t),e){case"ShowingQRCode":this._dom.setQRCode(n.qr);break;case"ShowingYiviButton":this._dom.setButtonLink(n.mobile)}}close(){this._removeVisibilityListener()}_sanitizeOptions(t){const e={element:"#yivi-web-form",showHelper:!1,fallbackDelay:1e3,translations:a[t.language||"nl"]};return o(e,t)}_addVisibilityListener(){const t=()=>this._stateMachine.selectTransition((t=>{let{state:e,validTransitions:n}=t;return!("TimedOut"!==e||document.hidden||!n.includes("restart"))&&(this._options.debugging&&r.log("🖥 Restarting because document became visible"),{transition:"restart"})})),e=()=>this._stateMachine.selectTransition((t=>{let{state:e,validTransitions:n}=t;return!("TimedOut"!==e&&!n.includes("restart"))&&(this._options.debugging&&r.log("🖥 Restarting because window regained focus"),{transition:"restart"})})),n=()=>this._stateMachine.selectTransition((t=>{let{validTransitions:e}=t;return!!e.includes("checkUserAgent")&&{transition:"checkUserAgent",payload:this._lastPayload}}));"undefined"!=typeof document&&document.addEventListener&&document.addEventListener("visibilitychange",t),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("focus",e),window.addEventListener("resize",n)),this._removeVisibilityListener=()=>{"undefined"!=typeof document&&document.removeEventListener&&document.removeEventListener("visibilitychange",t),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("focus",e),window.removeEventListener("resize",n))}}}},9246:function(t){t.exports={header:'Continue with ',helper:'Can\'t figure it out?
Take a look at the Yivi website.',loading:"Just a second please!",button:"Open Yivi app",qrCode:"Show QR code",app:"Follow the steps in the Yivi app",retry:"Try again",back:"Go back",cancelled:"The session is cancelled",timeout:"Sorry! We haven't heard
from you for too long",error:"Sorry! Something went wrong",browser:"We're sorry, but your browser does not meet the minimum requirements",success:"Success!",cancel:"Cancel",pairing:"Enter the pairing code that your Yivi app currently shows.",pairingFailed:t=>"The pairing code ".concat(t," does not match the code in your Yivi app. Please try again.")}},6003:function(t){t.exports={header:'Ga verder met ',helper:'Kom je er niet uit? Kijk dan eens op de website van Yivi.',loading:"Een moment alstublieft",button:"Open Yivi-app",qrCode:"Toon QR-code",app:"Volg de instructies in de Yivi-app",retry:"Opnieuw proberen",back:"Ga terug",cancelled:"De handeling is afgebroken",timeout:"Sorry! We hebben te lang
niks van je gehoord",error:"Sorry! Er is een fout opgetreden",browser:"Het spijt ons, maar je browser voldoet niet aan de minimale eisen",success:"Gelukt!",cancel:"Annuleer",pairing:"Vul de koppelcode in die in jouw Yivi-app verschijnt.",pairingFailed:t=>"De koppelcode ".concat(t," komt niet overeen met de code in je Yivi-app. Probeer het opnieuw.")}},6597:function(t,e,n){"use strict";var r=n(6984),i=n(1086);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var a,s,c=n(4627).codes,u=c.ERR_AMBIGUOUS_ARGUMENT,l=c.ERR_INVALID_ARG_TYPE,f=c.ERR_INVALID_ARG_VALUE,h=c.ERR_INVALID_RETURN_VALUE,p=c.ERR_MISSING_ARGS,d=n(4573),g=n(4585).inspect,y=n(4585).types,m=y.isPromise,b=y.isRegExp,v=Object.assign?Object.assign:n(7926).assign,w=Object.is?Object.is:n(5475);function _(){var t=n(9829);a=t.isDeepEqual,s=t.isDeepStrictEqual}new Map;var E=!1,S=t.exports=T,x={};function A(t){if(t.message instanceof Error)throw t.message;throw new d(t)}function O(t,e,n,r){if(!n){var i=!1;if(0===e)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new d({actual:n,expected:!0,message:r,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function T(){for(var t=arguments.length,e=new Array(t),n=0;n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;it.length)&&(n=t.length),t.substring(n-e.length,n)===e}var y="",m="",b="",v="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function _(t){var e=Object.keys(t),n=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){n[e]=t[e]})),Object.defineProperty(n,"message",{value:t.message}),n}function E(t){return p(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var S=function(t){function e(t){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==h(t)||null===t)throw new d("options","Object",t);var i=t.message,o=t.operator,c=t.stackStartFn,u=t.actual,l=t.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=a(this,f(e).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(y="",m="",v="",b=""):(y="",m="",v="",b="")),"object"===h(u)&&null!==u&&"object"===h(l)&&null!==l&&"stack"in u&&u instanceof Error&&"stack"in l&&l instanceof Error&&(u=_(u),l=_(l)),"deepStrictEqual"===o||"strictEqual"===o)n=a(this,f(e).call(this,function(t,e,n){var i="",o="",a=0,s="",c=!1,u=E(t),l=u.split("\n"),f=E(e).split("\n"),p=0,d="";if("strictEqual"===n&&"object"===h(t)&&"object"===h(e)&&null!==t&&null!==e&&(n="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var _=l[0].length+f[0].length;if(_<=10){if(!("object"===h(t)&&null!==t||"object"===h(e)&&null!==e||0===t&&0===e))return"".concat(w[n],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&_<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var n=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,n-t.length)}(" ",p),"^"),p=0)}}for(var S=l[l.length-1],x=f[f.length-1];S===x&&(p++<2?s="\n ".concat(S).concat(s):i=S,l.pop(),f.pop(),0!==l.length&&0!==f.length);)S=l[l.length-1],x=f[f.length-1];var A=Math.max(l.length,f.length);if(0===A){var O=u.split("\n");if(O.length>30)for(O[26]="".concat(y,"...").concat(v);O.length>27;)O.pop();return"".concat(w.notIdentical,"\n\n").concat(O.join("\n"),"\n")}p>3&&(s="\n".concat(y,"...").concat(v).concat(s),c=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var T=0,k=w[n]+"\n".concat(m,"+ actual").concat(v," ").concat(b,"- expected").concat(v),R=" ".concat(y,"...").concat(v," Lines skipped");for(p=0;p1&&p>2&&(P>4?(o+="\n".concat(y,"...").concat(v),c=!0):P>3&&(o+="\n ".concat(f[p-2]),T++),o+="\n ".concat(f[p-1]),T++),a=p,i+="\n".concat(b,"-").concat(v," ").concat(f[p]),T++;else if(f.length1&&p>2&&(P>4?(o+="\n".concat(y,"...").concat(v),c=!0):P>3&&(o+="\n ".concat(l[p-2]),T++),o+="\n ".concat(l[p-1]),T++),a=p,o+="\n".concat(m,"+").concat(v," ").concat(l[p]),T++;else{var j=f[p],C=l[p],L=C!==j&&(!g(C,",")||C.slice(0,-1)!==j);L&&g(j,",")&&j.slice(0,-1)===C&&(L=!1,C+=","),L?(P>1&&p>2&&(P>4?(o+="\n".concat(y,"...").concat(v),c=!0):P>3&&(o+="\n ".concat(l[p-2]),T++),o+="\n ".concat(l[p-1]),T++),a=p,o+="\n".concat(m,"+").concat(v," ").concat(C),i+="\n".concat(b,"-").concat(v," ").concat(j),T+=2):(o+=i,i="",1!==P&&0!==p||(o+="\n ".concat(C),T++))}if(T>20&&p30)for(x[26]="".concat(y,"...").concat(v);x.length>27;)x.pop();n=1===x.length?a(this,f(e).call(this,"".concat(S," ").concat(x[0]))):a(this,f(e).call(this,"".concat(S,"\n\n").concat(x.join("\n"),"\n")))}else{var A=E(u),O="",T=w[o];"notDeepEqual"===o||"notEqual"===o?(A="".concat(w[o],"\n\n").concat(A)).length>1024&&(A="".concat(A.slice(0,1021),"...")):(O="".concat(E(l)),A.length>512&&(A="".concat(A.slice(0,509),"...")),O.length>512&&(O="".concat(O.slice(0,509),"...")),"deepEqual"===o||"equal"===o?A="".concat(T,"\n\n").concat(A,"\n\nshould equal\n\n"):O=" ".concat(o," ").concat(O)),n=a(this,f(e).call(this,"".concat(A).concat(O)))}return Error.stackTraceLimit=p,n.generatedMessage=!i,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=u,n.expected=l,n.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(n),c),n.stack,n.name="AssertionError",a(n)}var n,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t),n=e,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(t,e){return p(this,function(t){for(var e=1;e2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,s,c,u,f;if(void 0===a&&(a=n(6597)),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(0,s.length)===s)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))c="The ".concat(t," ").concat(o," ").concat(l(e,"type"));else{var h=("number"!=typeof f&&(f=0),f+".".length>(u=t).length||-1===u.indexOf(".",f)?"argument":"property");c='The "'.concat(t,'" ').concat(h," ").concat(o," ").concat(l(e,"type"))}return c+". Received type ".concat(r(i))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(4585));var i=s.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(t,e,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),r=0;r0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=c},9829:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o=void 0!==/a/g.flags,a=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},s=function(t){var e=[];return t.forEach((function(t,n){return e.push([n,t])})),e},c=Object.is?Object.is:n(5475),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:n(2015);function f(t){return t.call.bind(t)}var h=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),g=n(4585).types,y=g.isAnyArrayBuffer,m=g.isArrayBufferView,b=g.isDate,v=g.isMap,w=g.isRegExp,_=g.isSet,E=g.isNativeError,S=g.isBoxedPrimitive,x=g.isNumberObject,A=g.isStringObject,O=g.isBooleanObject,T=g.isBigIntObject,k=g.isSymbolObject,R=g.isFloat32Array,P=g.isFloat64Array;function j(t){if(0===t.length||t.length>10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function C(t){return Object.keys(t).filter(j).concat(u(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function L(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0?a-4:a;for(n=0;n>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,c=r-i;sc?c:s+a));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,r){for(var i,o,a=[],s=e;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8823:function(t,e,n){"use strict";var r=n(1086);const i=n(3979),o=n(3419),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function c(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,n)}function l(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|y(t,e);let r=c(n);const i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(K(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(K(t,SharedArrayBuffer)||t&&K(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return u.from(r,e,n);const i=function(t){if(u.isBuffer(t)){const e=0|g(t.length),n=c(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||Q(t.length)?c(0):p(t):"Buffer"===t.type&&Array.isArray(t.data)?p(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return f(t),c(t<0?0:0|g(t))}function p(t){const e=t.length<0?0:0|g(t.length),n=c(e);for(let r=0;r=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function y(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(t).length;default:if(i)return r?-1:Y(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Q(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){let o,a=1,s=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let r=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=e.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function O(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+a<=n){let n,r,s,c;switch(a){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[i+1],r=t[i+2],s=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(t){const e=t.length;if(e<=k)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,n,r,i){if(K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0);const s=Math.min(o,a),c=this.slice(r,i),l=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":case"latin1":case"binary":return S(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const k=4096;function R(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;ir)&&(n=r);let i="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function M(t,e,n,r,i){H(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function B(t,e,n,r,i){H(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function U(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,r,i){return e=+e,n>>>=0,i||U(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function D(t,e,n,r,i){return e=+e,n>>>=0,i||U(t,0,n,8),o.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t],i=1,o=0;for(;++o>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=Z((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||L(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||L(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){t>>>=0,e||L(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=Z((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||L(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||L(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||L(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||L(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||I(this,t,e,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,r||I(this,t,e,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=Z((function(t){return M(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Z((function(t){return B(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,t,e,n,r-1,-r)}let i=0,o=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,t,e,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=Z((function(t){return M(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Z((function(t){return B(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i=r+4;n-=3)e="_".concat(t.slice(n-3,n)).concat(e);return"".concat(t.slice(0,n)).concat(e)}function H(t,e,n,r,i,o){if(t>n||t3?0===e||e===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(r):">= ".concat(e).concat(r," and <= ").concat(n).concat(r),new F.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||V(e,t.length-(n+1))}(r,i,o)}function G(t,e){if("number"!=typeof t)throw new F.ERR_INVALID_ARG_TYPE(e,"number",t)}function V(t,e,n){if(Math.floor(t)!==t)throw G(t,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(e),t)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?"".concat(t," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(t,e){return'The "'.concat(t,'" argument must be of type number. Received type ').concat(typeof e)}),TypeError),q("ERR_OUT_OF_RANGE",(function(t,e,n){let r='The value of "'.concat(t,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=" It must be ".concat(e,". Received ").concat(i),r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function Y(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function J(t,e,n,r){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Q(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function Z(t){return"undefined"==typeof BigInt?tt:t}function tt(){throw new Error("BigInt not supported")}},2301:function(t){t.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"}},4565:function(t,e,n){"use strict";var r=n(5014),i=n(8722),o=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&o(t,".prototype.")>-1?i(n):n}},8722:function(t,e,n){"use strict";var r=n(3171),i=n(5014),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),c=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=s(r,a,arguments);return c&&u&&c(e,"length").configurable&&u(e,"length",{value:1+l(0,t.length-(arguments.length-1))}),e};var f=function(){return s(r,o,arguments)};u?u(t.exports,"apply",{value:f}):t.exports.apply=f},1086:function(t,e,n){var r=n(4585),i=n(6597);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,c={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){c[t]=o()},"time"],[function(t){var e=c[t];if(!e)throw new Error("No such label: "+t);delete c[t];var n=o()-e;a.log(t+": "+n+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=r.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){a.log(r.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=s.call(arguments,1);i.ok(!1,r.format.apply(null,e))}},"assert"]],l=0;l1?arguments[1]:void 0)}},4789:function(t,e,n){"use strict";var r=n(1801),i=n(4550),o=n(5769),a=n(7473),s=n(3061),c=n(116),u=n(2124),l=n(7042),f=n(5221),h=n(2093),p=Array;t.exports=function(t){var e=o(t),n=c(this),d=arguments.length,g=d>1?arguments[1]:void 0,y=void 0!==g;y&&(g=r(g,d>2?arguments[2]:void 0));var m,b,v,w,_,E,S=h(e),x=0;if(!S||this===p&&s(S))for(m=u(e),b=n?new this(m):p(m);m>x;x++)E=y?g(e[x],x):e[x],l(b,x,E);else for(_=(w=f(e,S)).next,b=n?new this:[];!(v=i(_,w)).done;x++)E=y?a(w,g,[v.value,x],!0):v.value,l(b,x,E);return b.length=x,b}},7255:function(t,e,n){var r=n(829),i=n(1652),o=n(2124),a=function(t){return function(e,n,a){var s,c=r(e),u=o(c),l=i(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},1729:function(t,e,n){var r=n(1801),i=n(5317),o=n(8813),a=n(5769),s=n(2124),c=n(388),u=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,f=6==t,h=7==t,p=5==t||f;return function(d,g,y,m){for(var b,v,w=a(d),_=o(w),E=r(g,y),S=s(_),x=0,A=m||c,O=e?A(d,S):n||h?A(d,0):void 0;S>x;x++)if((p||x in _)&&(v=E(b=_[x],x,w),t))if(e)O[x]=v;else if(v)switch(t){case 3:return!0;case 5:return b;case 6:return x;case 2:u(O,b)}else switch(t){case 4:return!1;case 7:u(O,b)}return f?-1:i||l?l:O}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},5891:function(t,e,n){"use strict";var r=n(5200);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},5521:function(t,e,n){var r=n(1652),i=n(2124),o=n(7042),a=Array,s=Math.max;t.exports=function(t,e,n){for(var c=i(t),u=r(e,c),l=r(void 0===n?c:n,c),f=a(s(l-u,0)),h=0;u0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,o=n.length,a=0,s=0;a0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},3148:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3064:function(t,e,n){var r=n(2586),i=n(2130).f,o=n(1705),a=n(3549),s=n(777),c=n(8376),u=n(695);t.exports=function(t,e){var n,l,f,h,p,d=t.target,g=t.global,y=t.stat;if(n=g?r:y?r[d]||s(d,{}):(r[d]||{}).prototype)for(l in e){if(h=e[l],f=t.dontCallGetSet?(p=i(n,l))&&p.value:n[l],!u(g?l:d+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;c(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(n,l,h,t)}}},5200:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},2942:function(t,e,n){var r=n(34),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},1801:function(t,e,n){var r=n(2745),i=n(6406),o=n(34),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},34:function(t,e,n){var r=n(5200);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4550:function(t,e,n){var r=n(34),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6922:function(t,e,n){var r=n(9811),i=n(1285),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},186:function(t,e,n){var r=n(5317),i=n(6406);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},2745:function(t,e,n){var r=n(700),i=n(5317);t.exports=function(t){if("Function"===r(t))return i(t)}},5317:function(t,e,n){var r=n(34),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},866:function(t,e,n){var r=n(2586),i=n(6306);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},2093:function(t,e,n){var r=n(4368),i=n(1701),o=n(9268),a=n(9806),s=n(5373)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},5221:function(t,e,n){var r=n(4550),i=n(6406),o=n(2943),a=n(821),s=n(2093),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw c(a(t)+" is not iterable")}},1701:function(t,e,n){var r=n(6406),i=n(9268);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},2586:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},1285:function(t,e,n){var r=n(5317),i=n(5769),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},9841:function(t){t.exports={}},9239:function(t,e,n){var r=n(1086);t.exports=function(t,e){try{1==arguments.length?r.error(t):r.error(t,e)}catch(t){}}},4809:function(t,e,n){var r=n(866);t.exports=r("document","documentElement")},385:function(t,e,n){var r=n(9811),i=n(5200),o=n(3677);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8813:function(t,e,n){var r=n(5317),i=n(5200),o=n(700),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},735:function(t,e,n){var r=n(5317),i=n(6306),o=n(2950),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},9351:function(t,e,n){var r,i,o,a=n(5156),s=n(2586),c=n(4194),u=n(1705),l=n(1285),f=n(2950),h=n(759),p=n(9841),d="Object already initialized",g=s.TypeError,y=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw g(d);return e.facade=t,m.set(t,e),e},i=function(t){return m.get(t)||{}},o=function(t){return m.has(t)}}else{var b=h("state");p[b]=!0,r=function(t,e){if(l(t,b))throw g(d);return e.facade=t,u(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}}}},3061:function(t,e,n){var r=n(5373),i=n(9806),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},4773:function(t,e,n){var r=n(700);t.exports=Array.isArray||function(t){return"Array"==r(t)}},6306:function(t,e,n){var r=n(6339),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},116:function(t,e,n){var r=n(5317),i=n(5200),o=n(6306),a=n(4368),s=n(866),c=n(735),u=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=r(h.exec),d=!h.exec(u),g=function(t){if(!o(t))return!1;try{return f(u,l,t),!0}catch(t){return!1}},y=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(h,c(t))}catch(t){return!0}};y.sham=!0,t.exports=!f||i((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?y:g},695:function(t,e,n){var r=n(5200),i=n(6306),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==l||n!=u&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},9268:function(t){t.exports=function(t){return null==t}},4194:function(t,e,n){var r=n(6306),i=n(6339),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},8855:function(t){t.exports=!1},8991:function(t,e,n){var r=n(866),i=n(6306),o=n(7240),a=n(3880),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},3244:function(t,e,n){var r=n(1801),i=n(4550),o=n(2943),a=n(821),s=n(3061),c=n(2124),u=n(7240),l=n(5221),f=n(2093),h=n(5636),p=TypeError,d=function(t,e){this.stopped=t,this.result=e},g=d.prototype;t.exports=function(t,e,n){var y,m,b,v,w,_,E,S=n&&n.that,x=!(!n||!n.AS_ENTRIES),A=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),k=r(e,S),R=function(t){return y&&h(y,"normal",t),new d(!0,t)},P=function(t){return x?(o(t),T?k(t[0],t[1],R):k(t[0],t[1])):T?k(t,R):k(t)};if(A)y=t.iterator;else if(O)y=t;else{if(!(m=f(t)))throw p(a(t)+" is not iterable");if(s(m)){for(b=0,v=c(t);v>b;b++)if((w=P(t[b]))&&u(g,w))return w;return new d(!1)}y=l(t,m)}for(_=A?t.next:y.next;!(E=i(_,y)).done;){try{w=P(E.value)}catch(t){h(y,"throw",t)}if("object"==typeof w&&w&&u(g,w))return w}return new d(!1)}},5636:function(t,e,n){var r=n(4550),i=n(2943),o=n(1701);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return i(a),n}},4433:function(t,e,n){"use strict";var r=n(4239).IteratorPrototype,i=n(1578),o=n(2424),a=n(6736),s=n(9806),c=function(){return this};t.exports=function(t,e,n,u){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!u,n)}),a(t,l,!1,!0),s[l]=c,t}},4375:function(t,e,n){"use strict";var r=n(3064),i=n(4550),o=n(8855),a=n(6922),s=n(6306),c=n(4433),u=n(5651),l=n(616),f=n(6736),h=n(1705),p=n(3549),d=n(5373),g=n(9806),y=n(4239),m=a.PROPER,b=a.CONFIGURABLE,v=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,_=d("iterator"),E="keys",S="values",x="entries",A=function(){return this};t.exports=function(t,e,n,a,d,y,O){c(n,e,a);var T,k,R,P=function(t){if(t===d&&M)return M;if(!w&&t in L)return L[t];switch(t){case E:case S:case x:return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",C=!1,L=t.prototype,I=L[_]||L["@@iterator"]||d&&L[d],M=!w&&I||P(d),B="Array"==e&&L.entries||I;if(B&&(T=u(B.call(new t)))!==Object.prototype&&T.next&&(o||u(T)===v||(l?l(T,v):s(T[_])||p(T,_,A)),f(T,j,!0,!0),o&&(g[j]=A)),m&&d==S&&I&&I.name!==S&&(!o&&b?h(L,"name",S):(C=!0,M=function(){return i(I,this)})),d)if(k={values:P(S),keys:y?M:P(E),entries:P(x)},O)for(R in k)(w||C||!(R in L))&&p(L,R,k[R]);else r({target:e,proto:!0,forced:w||C},k);return o&&!O||L[_]===M||p(L,_,M,{name:d}),g[e]=M,k}},4239:function(t,e,n){"use strict";var r,i,o,a=n(5200),s=n(6306),c=n(4194),u=n(1578),l=n(5651),f=n(3549),h=n(5373),p=n(8855),d=h("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):g=!0),!c(r)||a((function(){var t={};return r[d].call(t)!==t}))?r={}:p&&(r=u(r)),s(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},9806:function(t){t.exports={}},2124:function(t,e,n){var r=n(9152);t.exports=function(t){return r(t.length)}},3042:function(t,e,n){var r=n(5317),i=n(5200),o=n(6306),a=n(1285),s=n(9811),c=n(6922).CONFIGURABLE,u=n(735),l=n(9351),f=l.enforce,h=l.get,p=String,d=Object.defineProperty,g=r("".slice),y=r("".replace),m=r([].join),b=s&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),v=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===g(p(e),0,7)&&(e="["+y(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=m(v,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&h(this).source||u(this)}),"toString")},4891:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},119:function(t,e,n){var r,i,o,a,s,c=n(2586),u=n(1801),l=n(2130).f,f=n(9250).set,h=n(8226),p=n(5236),d=n(1391),g=n(9378),y=n(1292),m=c.MutationObserver||c.WebKitMutationObserver,b=c.document,v=c.process,w=c.Promise,_=l(c,"queueMicrotask"),E=_&&_.value;if(!E){var S=new h,x=function(){var t,e;for(y&&(t=v.domain)&&t.exit();e=S.get();)try{e()}catch(t){throw S.head&&r(),t}t&&t.enter()};p||y||g||!m||!b?!d&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=u(a.then,a),r=function(){s(x)}):y?r=function(){v.nextTick(x)}:(f=u(f,c),r=function(){f(x)}):(i=!0,o=b.createTextNode(""),new m(x).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),E=function(t){S.head||r(),S.add(t)}}t.exports=E},6593:function(t,e,n){"use strict";var r=n(6406),i=TypeError,o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},9103:function(t,e,n){"use strict";var r=n(9811),i=n(5317),o=n(4550),a=n(5200),s=n(2656),c=n(2693),u=n(2962),l=n(5769),f=n(8813),h=Object.assign,p=Object.defineProperty,d=i([].concat);t.exports=!h||a((function(){if(r&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||s(h({},e)).join("")!=i}))?function(t,e){for(var n=l(t),i=arguments.length,a=1,h=c.f,p=u.f;i>a;)for(var g,y=f(arguments[a++]),m=h?d(s(y),h(y)):s(y),b=m.length,v=0;b>v;)g=m[v++],r&&!o(p,y,g)||(n[g]=y[g]);return n}:h},1578:function(t,e,n){var r,i=n(2943),o=n(984),a=n(3148),s=n(9841),c=n(4809),u=n(3677),l=n(759),f="prototype",h="script",p=l("IE_PROTO"),d=function(){},g=function(t){return"<"+h+">"+t+""},y=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;m="undefined"!=typeof document?document.domain&&r?y(r):(e=u("iframe"),n="java"+h+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):y(r);for(var i=a.length;i--;)delete m[f][a[i]];return m()};s[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d[f]=i(t),n=new d,d[f]=null,n[p]=t):n=m(),void 0===e?n:o.f(n,e)}},984:function(t,e,n){var r=n(9811),i=n(8290),o=n(5070),a=n(2943),s=n(829),c=n(2656);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=c(e),u=i.length,l=0;u>l;)o.f(t,n=i[l++],r[n]);return t}},5070:function(t,e,n){var r=n(9811),i=n(385),o=n(8290),a=n(2943),s=n(9370),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=l(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},2130:function(t,e,n){var r=n(9811),i=n(4550),o=n(2962),a=n(2424),s=n(829),c=n(9370),u=n(1285),l=n(385),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=c(e),l)try{return f(t,e)}catch(t){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},2205:function(t,e,n){var r=n(7178),i=n(3148).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},2693:function(t,e){e.f=Object.getOwnPropertySymbols},5651:function(t,e,n){var r=n(1285),i=n(6306),o=n(5769),a=n(759),s=n(457),c=a("IE_PROTO"),u=Object,l=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=o(t);if(r(e,c))return e[c];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},7240:function(t,e,n){var r=n(5317);t.exports=r({}.isPrototypeOf)},7178:function(t,e,n){var r=n(5317),i=n(1285),o=n(829),a=n(7255).indexOf,s=n(9841),c=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);for(;e.length>u;)i(r,n=e[u++])&&(~a(l,n)||c(l,n));return l}},2656:function(t,e,n){var r=n(7178),i=n(3148);t.exports=Object.keys||function(t){return r(t,i)}},2962:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},616:function(t,e,n){var r=n(186),i=n(2943),o=n(1892);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},1125:function(t,e,n){var r=n(4550),i=n(6306),o=n(4194),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},5732:function(t,e,n){var r=n(866),i=n(5317),o=n(2205),a=n(2693),s=n(2943),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},7526:function(t,e,n){var r=n(2586);t.exports=r},2780:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},8112:function(t,e,n){var r=n(2586),i=n(1471),o=n(6306),a=n(695),s=n(735),c=n(5373),u=n(3858),l=n(2641),f=n(8855),h=n(4875),p=i&&i.prototype,d=c("species"),g=!1,y=o(r.PromiseRejectionEvent),m=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!h||h<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[d]=r,!(g=n.then((function(){}))instanceof r))return!0}return!e&&(u||l)&&!y}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:y,SUBCLASSING:g}},1471:function(t,e,n){var r=n(2586);t.exports=r.Promise},8982:function(t,e,n){var r=n(2943),i=n(4194),o=n(6593);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},9163:function(t,e,n){var r=n(1471),i=n(3469),o=n(8112).CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},8226:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},877:function(t,e,n){var r=n(9268),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},4847:function(t,e,n){"use strict";var r=n(866),i=n(5766),o=n(5373),a=n(9811),s=o("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},6736:function(t,e,n){var r=n(5070).f,i=n(1285),o=n(5373)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},759:function(t,e,n){var r=n(4707),i=n(7214),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},2950:function(t,e,n){var r=n(2586),i=n(777),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},4707:function(t,e,n){var r=n(8855),i=n(2950);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.0/LICENSE",source:"https://github.com/zloirock/core-js"})},646:function(t,e,n){var r=n(2943),i=n(2126),o=n(9268),a=n(5373)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||o(n=r(s)[a])?e:i(n)}},6726:function(t,e,n){var r=n(5317),i=n(8553),o=n(978),a=n(877),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(t){return function(e,n){var r,l,f=o(a(e)),h=i(n),p=f.length;return h<0||h>=p?t?"":void 0:(r=c(f,h))<55296||r>56319||h+1===p||(l=c(f,h+1))<56320||l>57343?t?s(f,h):r:t?u(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},7983:function(t,e,n){var r=n(5317),i=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",c=RangeError,u=r(a.exec),l=Math.floor,f=String.fromCharCode,h=r("".charCodeAt),p=r([].join),d=r([].push),g=r("".replace),y=r("".split),m=r("".toLowerCase),b=function(t){return t+22+75*(t<26)},v=function(t,e,n){var r=0;for(t=n?l(t/700):t>>1,t+=l(t/e);t>455;)t=l(t/35),r+=36;return l(r+36*t/(t+38))},w=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n=55296&&i<=56319&&n=a&&rl((i-u)/_))throw c(s);for(u+=(w-a)*_,a=w,n=0;ni)throw c(s);if(r==a){for(var E=u,S=36;;){var x=S<=g?1:S>=g+26?26:S-g;if(E0?i(r(t),9007199254740991):0}},5769:function(t,e,n){var r=n(877),i=Object;t.exports=function(t){return i(r(t))}},6238:function(t,e,n){var r=n(4550),i=n(4194),o=n(8991),a=n(1701),s=n(1125),c=n(5373),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,c=a(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},9370:function(t,e,n){var r=n(6238),i=n(8991);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},4947:function(t,e,n){var r={};r[n(5373)("toStringTag")]="z",t.exports="[object z]"===String(r)},978:function(t,e,n){var r=n(4368),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},821:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},7214:function(t,e,n){var r=n(5317),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},6753:function(t,e,n){var r=n(5200),i=n(5373),o=n(9811),a=n(8855),s=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),a&&!t.toJSON||!e.size&&(a||!o)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},3880:function(t,e,n){var r=n(9464);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8290:function(t,e,n){var r=n(9811),i=n(5200);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2217:function(t){var e=TypeError;t.exports=function(t,n){if(t1?arguments[1]:void 0)}}),a("includes")},6668:function(t,e,n){"use strict";var r=n(829),i=n(9360),o=n(9806),a=n(9351),s=n(5070).f,c=n(4375),u=n(5620),l=n(8855),f=n(9811),h="Array Iterator",p=a.set,d=a.getterFor(h);t.exports=c(Array,"Array",(function(t,e){p(this,{type:h,target:r(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var g=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(t){}},2076:function(t,e,n){"use strict";var r=n(3064),i=n(4550),o=n(6406),a=n(6593),s=n(2780),c=n(3244);r({target:"Promise",stat:!0,forced:n(9163)},{all:function(t){var e=this,n=a.f(e),r=n.resolve,u=n.reject,l=s((function(){var n=o(e.resolve),a=[],s=0,l=1;c(t,(function(t){var o=s++,c=!1;l++,i(n,e,t).then((function(t){c||(c=!0,a[o]=t,--l||r(a))}),u)})),--l||r(a)}));return l.error&&u(l.value),n.promise}})},9970:function(t,e,n){"use strict";var r=n(3064),i=n(8855),o=n(8112).CONSTRUCTOR,a=n(1471),s=n(866),c=n(6306),u=n(3549),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&c(a)){var f=s("Promise").prototype.catch;l.catch!==f&&u(l,"catch",f,{unsafe:!0})}},8120:function(t,e,n){"use strict";var r,i,o,a=n(3064),s=n(8855),c=n(1292),u=n(2586),l=n(4550),f=n(3549),h=n(616),p=n(6736),d=n(4847),g=n(6406),y=n(6306),m=n(4194),b=n(6441),v=n(646),w=n(9250).set,_=n(119),E=n(9239),S=n(2780),x=n(8226),A=n(9351),O=n(1471),T=n(8112),k=n(6593),R="Promise",P=T.CONSTRUCTOR,j=T.REJECTION_EVENT,C=T.SUBCLASSING,L=A.getterFor(R),I=A.set,M=O&&O.prototype,B=O,U=M,N=u.TypeError,D=u.document,F=u.process,q=k.f,z=q,H=!!(D&&D.createEvent&&u.dispatchEvent),G="unhandledrejection",V=function(t){var e;return!(!m(t)||!y(e=t.then))&&e},W=function(t,e){var n,r,i,o=e.value,a=1==e.state,s=a?t.ok:t.fail,c=t.resolve,u=t.reject,f=t.domain;try{s?(a||(2===e.rejection&&Q(e),e.rejection=1),!0===s?n=o:(f&&f.enter(),n=s(o),f&&(f.exit(),i=!0)),n===t.promise?u(N("Promise-chain cycle")):(r=V(n))?l(r,n,c,u):c(n)):u(o)}catch(t){f&&!i&&f.exit(),u(t)}},Y=function(t,e){t.notified||(t.notified=!0,_((function(){for(var n,r=t.reactions;n=r.get();)W(n,t);t.notified=!1,e&&!t.rejection&&J(t)})))},$=function(t,e,n){var r,i;H?((r=D.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!j&&(i=u["on"+t])?i(r):t===G&&E("Unhandled promise rejection",n)},J=function(t){l(w,u,(function(){var e,n=t.facade,r=t.value;if(K(t)&&(e=S((function(){c?F.emit("unhandledRejection",r,n):$(G,n,r)})),t.rejection=c||K(t)?2:1,e.error))throw e.value}))},K=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){l(w,u,(function(){var e=t.facade;c?F.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},X=function(t,e,n){return function(r){t(e,r,n)}},Z=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Y(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw N("Promise can't be resolved itself");var r=V(e);r?_((function(){var n={done:!1};try{l(r,e,X(tt,n,t),X(Z,n,t))}catch(e){Z(n,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){Z({done:!1},e,t)}}};if(P&&(U=(B=function(t){b(this,U),g(t),l(r,this);var e=L(this);try{t(X(tt,e),X(Z,e))}catch(t){Z(e,t)}}).prototype,(r=function(t){I(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:void 0})}).prototype=f(U,"then",(function(t,e){var n=L(this),r=q(v(this,B));return n.parent=!0,r.ok=!y(t)||t,r.fail=y(e)&&e,r.domain=c?F.domain:void 0,0==n.state?n.reactions.add(r):_((function(){W(r,n)})),r.promise})),i=function(){var t=new r,e=L(t);this.promise=t,this.resolve=X(tt,e),this.reject=X(Z,e)},k.f=q=function(t){return t===B||void 0===t?new i(t):z(t)},!s&&y(O)&&M!==Object.prototype)){o=M.then,C||f(M,"then",(function(t,e){var n=this;return new B((function(t,e){l(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete M.constructor}catch(t){}h&&h(M,U)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:B}),p(B,R,!1,!0),d(R)},9282:function(t,e,n){"use strict";var r=n(3064),i=n(8855),o=n(1471),a=n(5200),s=n(866),c=n(6306),u=n(646),l=n(8982),f=n(3549),h=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,s("Promise")),n=c(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&c(o)){var p=s("Promise").prototype.finally;h.finally!==p&&f(h,"finally",p,{unsafe:!0})}},3739:function(t,e,n){n(8120),n(2076),n(9970),n(7695),n(5413),n(7281)},7695:function(t,e,n){"use strict";var r=n(3064),i=n(4550),o=n(6406),a=n(6593),s=n(2780),c=n(3244);r({target:"Promise",stat:!0,forced:n(9163)},{race:function(t){var e=this,n=a.f(e),r=n.reject,u=s((function(){var a=o(e.resolve);c(t,(function(t){i(a,e,t).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},5413:function(t,e,n){"use strict";var r=n(3064),i=n(4550),o=n(6593);r({target:"Promise",stat:!0,forced:n(8112).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},7281:function(t,e,n){"use strict";var r=n(3064),i=n(866),o=n(8855),a=n(1471),s=n(8112).CONSTRUCTOR,c=n(8982),u=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return c(l&&this===u?a:this,t)}})},6222:function(t,e,n){"use strict";var r=n(6726).charAt,i=n(978),o=n(9351),a=n(4375),s=n(5620),c="String Iterator",u=o.set,l=o.getterFor(c);a(String,"String",(function(t){u(this,{type:c,string:i(t),index:0})}),(function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},6141:function(t,e,n){var r=n(2586),i=n(5399),o=n(9908),a=n(980),s=n(1705),c=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var u in i)i[u]&&c(r[u]&&r[u].prototype);c(o)},6808:function(t,e,n){"use strict";n(6668);var r=n(3064),i=n(2586),o=n(4550),a=n(5317),s=n(9811),c=n(6753),u=n(3549),l=n(5766),f=n(8768),h=n(6736),p=n(4433),d=n(9351),g=n(6441),y=n(6306),m=n(1285),b=n(1801),v=n(4368),w=n(2943),_=n(4194),E=n(978),S=n(1578),x=n(2424),A=n(5221),O=n(2093),T=n(2217),k=n(5373),R=n(1766),P=k("iterator"),j="URLSearchParams",C=j+"Iterator",L=d.set,I=d.getterFor(j),M=d.getterFor(C),B=Object.getOwnPropertyDescriptor,U=function(t){if(!s)return i[t];var e=B(i,t);return e&&e.value},N=U("fetch"),D=U("Request"),F=U("Headers"),q=D&&D.prototype,z=F&&F.prototype,H=i.RegExp,G=i.TypeError,V=i.decodeURIComponent,W=i.encodeURIComponent,Y=a("".charAt),$=a([].join),J=a([].push),K=a("".replace),Q=a([].shift),X=a([].splice),Z=a("".split),tt=a("".slice),et=/\+/g,nt=Array(4),rt=function(t){return nt[t-1]||(nt[t-1]=H("((?:%[\\da-f]{2}){"+t+"})","gi"))},it=function(t){try{return V(t)}catch(e){return t}},ot=function(t){var e=K(t,et," "),n=4;try{return V(e)}catch(t){for(;n;)e=K(e,rt(n--),it);return e}},at=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ct=function(t){return st[t]},ut=function(t){return K(W(t),at,ct)},lt=p((function(t,e){L(this,{type:C,iterator:A(I(t).entries),kind:e})}),"Iterator",(function(){var t=M(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),!0),ft=function(t){this.entries=[],this.url=null,void 0!==t&&(_(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Y(t,0)?tt(t,1):t:E(t)))};ft.prototype={type:j,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,a,s,c,u=O(t);if(u)for(n=(e=A(t,u)).next;!(r=o(n,e)).done;){if(a=(i=A(w(r.value))).next,(s=o(a,i)).done||(c=o(a,i)).done||!o(a,i).done)throw G("Expected sequence with length 2");J(this.entries,{key:E(s.value),value:E(c.value)})}else for(var l in t)m(t,l)&&J(this.entries,{key:l,value:E(t[l])})},parseQuery:function(t){if(t)for(var e,n,r=Z(t,"&"),i=0;i0?arguments[0]:void 0));s||(this.length=t.entries.length)},pt=ht.prototype;if(f(pt,{append:function(t,e){T(arguments.length,2);var n=I(this);J(n.entries,{key:E(t),value:E(e)}),s||this.length++,n.updateURL()},delete:function(t){T(arguments.length,1);for(var e=I(this),n=e.entries,r=E(t),i=0;ie.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=I(this).entries,r=b(t,arguments.length>1?arguments[1]:void 0),i=0;i1?yt(arguments[1]):{})}}),y(D)){var mt=function(t){return g(this,q),new D(t,arguments.length>1?yt(arguments[1]):{})};q.constructor=mt,mt.prototype=q,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:mt})}}t.exports={URLSearchParams:ht,getState:I}},6253:function(t,e,n){n(6808)},7302:function(t,e,n){"use strict";var r=n(9811),i=n(5317),o=n(5766),a=URLSearchParams.prototype,s=i(a.forEach);r&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},9445:function(t,e,n){var r=n(3064),i=n(866),o=n(2217),a=n(978),s=i("URL");r({target:"URL",stat:!0},{canParse:function(t){var e=o(arguments.length,1),n=a(t),r=e<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return!!new s(n,r)}catch(t){return!1}}})},6905:function(t,e,n){"use strict";n(6222);var r,i=n(3064),o=n(9811),a=n(6753),s=n(2586),c=n(1801),u=n(5317),l=n(3549),f=n(5766),h=n(6441),p=n(1285),d=n(9103),g=n(4789),y=n(5521),m=n(6726).codeAt,b=n(7983),v=n(978),w=n(6736),_=n(2217),E=n(6808),S=n(9351),x=S.set,A=S.getterFor("URL"),O=E.URLSearchParams,T=E.getState,k=s.URL,R=s.TypeError,P=s.parseInt,j=Math.floor,C=Math.pow,L=u("".charAt),I=u(/./.exec),M=u([].join),B=u(1..toString),U=u([].pop),N=u([].push),D=u("".replace),F=u([].shift),q=u("".split),z=u("".slice),H=u("".toLowerCase),G=u([].unshift),V="Invalid scheme",W="Invalid host",Y="Invalid port",$=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,Q=/^0x/i,X=/^[0-7]+$/,Z=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+/,it=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ot=/[\t\n\r]/g,at=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)G(e,t%256),t=j(t/256);return M(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=B(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},st={},ct=d({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),ut=d({},ct,{"#":1,"?":1,"{":1,"}":1}),lt=d({},ut,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ft=function(t,e){var n=m(t,0);return n>32&&n<127&&!p(e,t)?t:encodeURIComponent(t)},ht={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pt=function(t,e){var n;return 2==t.length&&I($,L(t,0))&&(":"==(n=L(t,1))||!e&&"|"==n)},dt=function(t){var e;return t.length>1&&pt(z(t,0,2))&&(2==t.length||"/"===(e=L(t,2))||"\\"===e||"?"===e||"#"===e)},gt=function(t){return"."===t||"%2e"===H(t)},yt={},mt={},bt={},vt={},wt={},_t={},Et={},St={},xt={},At={},Ot={},Tt={},kt={},Rt={},Pt={},jt={},Ct={},Lt={},It={},Mt={},Bt={},Ut=function(t,e,n){var r,i,o,a=v(t);if(e){if(i=this.parse(a))throw R(i);this.searchParams=null}else{if(void 0!==n&&(r=new Ut(n,!0)),i=this.parse(a,null,r))throw R(i);(o=T(new O)).bindURL(this),this.searchParams=o}};Ut.prototype={type:"URL",parse:function(t,e,n){var i,o,a,s,c,u=this,l=e||yt,f=0,h="",d=!1,m=!1,b=!1;for(t=v(t),e||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,t=D(t,rt,""),t=D(t,it,"$1")),t=D(t,ot,""),i=g(t);f<=i.length;){switch(o=i[f],l){case yt:if(!o||!I($,o)){if(e)return V;l=bt;continue}h+=H(o),l=mt;break;case mt:if(o&&(I(J,o)||"+"==o||"-"==o||"."==o))h+=H(o);else{if(":"!=o){if(e)return V;h="",l=bt,f=0;continue}if(e&&(u.isSpecial()!=p(ht,h)||"file"==h&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=h,e)return void(u.isSpecial()&&ht[u.scheme]==u.port&&(u.port=null));h="","file"==u.scheme?l=Rt:u.isSpecial()&&n&&n.scheme==u.scheme?l=vt:u.isSpecial()?l=St:"/"==i[f+1]?(l=wt,f++):(u.cannotBeABaseURL=!0,N(u.path,""),l=It)}break;case bt:if(!n||n.cannotBeABaseURL&&"#"!=o)return V;if(n.cannotBeABaseURL&&"#"==o){u.scheme=n.scheme,u.path=y(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,l=Bt;break}l="file"==n.scheme?Rt:_t;continue;case vt:if("/"!=o||"/"!=i[f+1]){l=_t;continue}l=xt,f++;break;case wt:if("/"==o){l=At;break}l=Lt;continue;case _t:if(u.scheme=n.scheme,o==r)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=y(n.path),u.query=n.query;else if("/"==o||"\\"==o&&u.isSpecial())l=Et;else if("?"==o)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=y(n.path),u.query="",l=Mt;else{if("#"!=o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=y(n.path),u.path.length--,l=Lt;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=y(n.path),u.query=n.query,u.fragment="",l=Bt}break;case Et:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,l=Lt;continue}l=At}else l=xt;break;case St:if(l=xt,"/"!=o||"/"!=L(h,f+1))continue;f++;break;case xt:if("/"!=o&&"\\"!=o){l=At;continue}break;case At:if("@"==o){d&&(h="%40"+h),d=!0,a=g(h);for(var w=0;w65535)return Y;u.port=u.isSpecial()&&S===ht[u.scheme]?null:S,h=""}if(e)return;l=Ct;continue}return Y}h+=o;break;case Rt:if(u.scheme="file","/"==o||"\\"==o)l=Pt;else{if(!n||"file"!=n.scheme){l=Lt;continue}if(o==r)u.host=n.host,u.path=y(n.path),u.query=n.query;else if("?"==o)u.host=n.host,u.path=y(n.path),u.query="",l=Mt;else{if("#"!=o){dt(M(y(i,f),""))||(u.host=n.host,u.path=y(n.path),u.shortenPath()),l=Lt;continue}u.host=n.host,u.path=y(n.path),u.query=n.query,u.fragment="",l=Bt}}break;case Pt:if("/"==o||"\\"==o){l=jt;break}n&&"file"==n.scheme&&!dt(M(y(i,f),""))&&(pt(n.path[0],!0)?N(u.path,n.path[0]):u.host=n.host),l=Lt;continue;case jt:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&pt(h))l=Lt;else if(""==h){if(u.host="",e)return;l=Ct}else{if(s=u.parseHost(h))return s;if("localhost"==u.host&&(u.host=""),e)return;h="",l=Ct}continue}h+=o;break;case Ct:if(u.isSpecial()){if(l=Lt,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=r&&(l=Lt,"/"!=o))continue}else u.fragment="",l=Bt;else u.query="",l=Mt;break;case Lt:if(o==r||"/"==o||"\\"==o&&u.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(c=H(c=h))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||N(u.path,"")):gt(h)?"/"==o||"\\"==o&&u.isSpecial()||N(u.path,""):("file"==u.scheme&&!u.path.length&&pt(h)&&(u.host&&(u.host=""),h=L(h,0)+":"),N(u.path,h)),h="","file"==u.scheme&&(o==r||"?"==o||"#"==o))for(;u.path.length>1&&""===u.path[0];)F(u.path);"?"==o?(u.query="",l=Mt):"#"==o&&(u.fragment="",l=Bt)}else h+=ft(o,ut);break;case It:"?"==o?(u.query="",l=Mt):"#"==o?(u.fragment="",l=Bt):o!=r&&(u.path[0]+=ft(o,st));break;case Mt:e||"#"!=o?o!=r&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":ft(o,st)):(u.fragment="",l=Bt);break;case Bt:o!=r&&(u.fragment+=ft(o,ct))}f++}},parseHost:function(t){var e,n,r;if("["==L(t,0)){if("]"!=L(t,t.length-1))return W;if(e=function(t){var e,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return L(t,f)};if(":"==h()){if(":"!=L(t,1))return;f+=2,l=++u}for(;h();){if(8==u)return;if(":"!=h()){for(e=n=0;n<4&&I(tt,h());)e=16*e+P(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,u>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!I(K,h()))return;for(;I(K,h());){if(o=P(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[u]=256*c[u]+i,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[u++]=e}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c}(z(t,1,-1)),!e)return W;this.host=e}else if(this.isSpecial()){if(t=b(t),I(et,t))return W;if(e=function(t){var e,n,r,i,o,a,s,c=q(t,".");if(c.length&&""==c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(n=[],r=0;r1&&"0"==L(i,0)&&(o=I(Q,i)?16:8,i=z(i,8==o?1:2)),""===i)a=0;else{if(!I(10==o?Z:8==o?X:tt,i))return t;a=P(i,o)}N(n,a)}for(r=0;r=C(256,5-e))return null}else if(a>255)return null;for(s=U(n),r=0;r1?arguments[1]:void 0,r=x(e,new Ut(t,!1,n));o||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Dt=Nt.prototype,Ft=function(t,e){return{get:function(){return A(this)[t]()},set:e&&function(t){return A(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(f(Dt,"href",Ft("serialize","setHref")),f(Dt,"origin",Ft("getOrigin")),f(Dt,"protocol",Ft("getProtocol","setProtocol")),f(Dt,"username",Ft("getUsername","setUsername")),f(Dt,"password",Ft("getPassword","setPassword")),f(Dt,"host",Ft("getHost","setHost")),f(Dt,"hostname",Ft("getHostname","setHostname")),f(Dt,"port",Ft("getPort","setPort")),f(Dt,"pathname",Ft("getPathname","setPathname")),f(Dt,"search",Ft("getSearch","setSearch")),f(Dt,"searchParams",Ft("getSearchParams")),f(Dt,"hash",Ft("getHash","setHash"))),l(Dt,"toJSON",(function(){return A(this).serialize()}),{enumerable:!0}),l(Dt,"toString",(function(){return A(this).serialize()}),{enumerable:!0}),k){var qt=k.createObjectURL,zt=k.revokeObjectURL;qt&&l(Nt,"createObjectURL",c(qt,k)),zt&&l(Nt,"revokeObjectURL",c(zt,k))}w(Nt,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Nt})},4589:function(t,e,n){n(6905)},2781:function(t,e,n){"use strict";var r=n(3064),i=n(4550);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},591:function(t,e,n){var r=n(6965);t.exports=r},6965:function(t,e,n){n(4589),n(9445),n(2781),n(6253),n(7302);var r=n(7526);t.exports=r.URL},6043:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},6063:function(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},6313:function(t){"use strict";t.exports=function(t){return t[1]}},3259:function(t){"use strict";var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===n}(t)}(t)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function i(t,e,n){return t.concat(e).map((function(t){return r(t,n)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function a(t,e){try{return e in t}catch(t){return!1}}function s(t,n,c){(c=c||{}).arrayMerge=c.arrayMerge||i,c.isMergeableObject=c.isMergeableObject||e,c.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(t)?u?c.arrayMerge(t,n,c):function(t,e,n){var i={};return n.isMergeableObject(t)&&o(t).forEach((function(e){i[e]=r(t[e],n)})),o(e).forEach((function(o){(function(t,e){return a(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(a(t,o)&&n.isMergeableObject(e[o])?i[o]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(o,n)(t[o],e[o],n):i[o]=r(e[o],n))})),i}(t,n,c):r(n,c)}s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return s(t,n,e)}),{})};var c=s;t.exports=c},4333:function(t,e,n){"use strict";var r=n(2052),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,c=n(6853)(),u=s&&c,l=function(t,e,n,r){if(e in t)if(!0===r){if(t[e]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;u?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n},f=function(t,e){var n=arguments.length>2?arguments[2]:{},o=r(e);i&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;sf)&&(o[c]=f,p.push(c,f),i[c]=s));if(void 0!==r&&void 0===o[r]){var d=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(d)}return i},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,n,r){var i=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(t){var n,r=e.PriorityQueue,i={};for(n in t=t||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=t.sorter||r.default_sorter,i},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},3439:function(t){"use strict";t.exports=function(t){for(var e=[],n=t.length,r=0;r=55296&&i<=56319&&n>r+1){var o=t.charCodeAt(r+1);o>=56320&&o<=57343&&(i=1024*(i-55296)+o-56320+65536,r+=1)}i<128?e.push(i):i<2048?(e.push(i>>6|192),e.push(63&i|128)):i<55296||i>=57344&&i<65536?(e.push(i>>12|224),e.push(i>>6&63|128),e.push(63&i|128)):i>=65536&&i<=1114111?(e.push(i>>18|240),e.push(i>>12&63|128),e.push(i>>6&63|128),e.push(63&i|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},7926:function(t){"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),r=1;r0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,c=u,i&&i.warn&&i.warn(c)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function g(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=i[t];if(void 0===c)return!1;if("function"==typeof c)a(c,this,e);else{var u=c.length,l=m(c,u);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},c.prototype.listeners=function(t){return g(this,t,!0)},c.prototype.rawListeners=function(t){return g(this,t,!1)},c.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},c.prototype.listenerCount=y,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},9604:function(t,e,n){var r=n(6984),i=n(8823).Buffer,o=n(6207).parse,a=n(5101),s=n(9007),c=n(5479),u=n(4585),l=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","servername","checkServerIdentity"],f=[239,187,191];function h(t,e){var n=h.CONNECTING,a=e&&e.headers,u=!1;Object.defineProperty(this,"readyState",{get:function(){return n}}),Object.defineProperty(this,"url",{get:function(){return t}});var y,m=this;function b(e){n!==h.CLOSED&&(n=h.CONNECTING,A("error",new p("error",{message:e})),S&&(t=S,S=null,u=!1),setTimeout((function(){n!==h.CONNECTING||m.connectionInProgress||(m.connectionInProgress=!0,x())}),m.reconnectInterval))}m.reconnectInterval=1e3,m.connectionInProgress=!1;var v="";a&&a["Last-Event-ID"]&&(v=a["Last-Event-ID"],delete a["Last-Event-ID"]);var w=!1,_="",E="",S=null;function x(){var d=o(t),_="https:"===d.protocol;if(d.headers={"Cache-Control":"no-cache",Accept:"text/event-stream"},v&&(d.headers["Last-Event-ID"]=v),a){var E=u?function(t){var e={};for(var n in t)/^(cookie|authorization)$/i.test(n)||(e[n]=t[n]);return e}(a):a;for(var T in E){var k=E[T];k&&(d.headers[T]=k)}}if(d.rejectUnauthorized=!(e&&!e.rejectUnauthorized),e&&void 0!==e.createConnection&&(d.createConnection=e.createConnection),e&&e.proxy){var R=o(e.proxy);_="https:"===R.protocol,d.protocol=_?"https:":"http:",d.path=t,d.headers.Host=d.host,d.hostname=R.hostname,d.host=R.host,d.port=R.port}if(e&&e.https)for(var P in e.https)if(-1!==l.indexOf(P)){var j=e.https[P];void 0!==j&&(d[P]=j)}e&&void 0!==e.withCredentials&&(d.withCredentials=e.withCredentials),y=(_?s:c).request(d,(function(e){if(m.connectionInProgress=!1,500===e.statusCode||502===e.statusCode||503===e.statusCode||504===e.statusCode)return A("error",new p("error",{status:e.statusCode,message:e.statusMessage})),void b();if(301===e.statusCode||302===e.statusCode||307===e.statusCode){var o=e.headers.location;if(!o)return void A("error",new p("error",{status:e.statusCode,message:e.statusMessage}));var a=g(t),s=g(o);return u=a!==s,307===e.statusCode&&(S=t),t=o,void r.nextTick(x)}if(200!==e.statusCode)return A("error",new p("error",{status:e.statusCode,message:e.statusMessage})),m.close();n=h.OPEN,e.on("close",(function(){e.removeAllListeners("close"),e.removeAllListeners("end"),b()})),e.on("end",(function(){e.removeAllListeners("close"),e.removeAllListeners("end"),b()})),A("open",new p("open"));var c,l=!0,d=0,y=-1;e.on("data",(function(t){c=c?i.concat([c,t]):t,l&&function(t){return f.every((function(e,n){return t[n]===e}))}(c)&&(c=c.slice(f.length)),l=!1;for(var e=0,n=c.length;e0&&(c=c.slice(e))}))})),y.on("error",(function(t){m.connectionInProgress=!1,b(t.message)})),y.setNoDelay&&y.setNoDelay(!0),y.end()}function A(){m.listeners(arguments[0]).length>0&&m.emit.apply(m,arguments)}function O(e,n,r,i){if(0===i){if(_.length>0){var o=E||"message";A(o,new d(o,{data:_.slice(0,-1),lastEventId:v,origin:g(t)})),_=""}E=void 0}else if(r>0){var a,s=r<0,c=e.slice(n,n+(s?i:r)).toString();n+=a=s?i:32!==e[n+r+1]?r+1:r+2;var u=i-a,l=e.slice(n,n+u).toString();if("data"===c)_+=l+"\n";else if("event"===c)E=l;else if("id"===c)v=l;else if("retry"===c){var f=parseInt(l,10);Number.isNaN(f)||(m.reconnectInterval=f)}}}x(),this._close=function(){n!==h.CLOSED&&(n=h.CLOSED,y.abort&&y.abort(),y.xhr&&y.xhr.abort&&y.xhr.abort())}}function p(t,e){if(Object.defineProperty(this,"type",{writable:!1,value:t,enumerable:!0}),e)for(var n in e)e.hasOwnProperty(n)&&Object.defineProperty(this,n,{writable:!1,value:e[n],enumerable:!0})}function d(t,e){for(var n in Object.defineProperty(this,"type",{writable:!1,value:t,enumerable:!0}),e)e.hasOwnProperty(n)&&Object.defineProperty(this,n,{writable:!1,value:e[n],enumerable:!0})}function g(t){return"string"==typeof t&&(t=o(t)),t.protocol&&t.hostname?(t.protocol+"//"+t.host).toLowerCase():"null"}t.exports=h,u.inherits(h,a.EventEmitter),h.prototype.constructor=h,["open","error","message"].forEach((function(t){Object.defineProperty(h.prototype,"on"+t,{get:function(){var e=this.listeners(t)[0];return e?e._listener?e._listener:e:void 0},set:function(e){this.removeAllListeners(t),this.addEventListener(t,e)}})})),Object.defineProperty(h,"CONNECTING",{enumerable:!0,value:0}),Object.defineProperty(h,"OPEN",{enumerable:!0,value:1}),Object.defineProperty(h,"CLOSED",{enumerable:!0,value:2}),h.prototype.CONNECTING=0,h.prototype.OPEN=1,h.prototype.CLOSED=2,h.prototype.close=function(){this._close()},h.prototype.addEventListener=function(t,e){"function"==typeof e&&(e._listener=e,this.on(t,e))},h.prototype.dispatchEvent=function(t){if(!t.type)throw new Error("UNSPECIFIED_EVENT_TYPE_ERR");this.emit(t.type,t.detail)},h.prototype.removeEventListener=function(t,e){"function"==typeof e&&(e._listener=void 0,this.removeListener(t,e))}},8594:function(t,e,n){"use strict";var r=n(5301),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){if(!r(e))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(t)?function(t,e,n){for(var r=0,i=t.length;r1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(t){var e=x(t,0,1),n=x(t,-1);if("%"===e&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return S(t,O,(function(t,e,n,i){r[r.length]=n?S(i,T,"$1"):e||t})),r}(t),r=n.length>0?n[0]:"",o=k("%"+r+"%",e),s=o.name,u=o.value,l=!1,f=o.alias;f&&(r=f[0],E(n,_([0,1],f)));for(var h=1,p=!0;h=n.length){var b=c(u,d);u=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:u[d]}else p=w(u,d),u=u[d];p&&!l&&(g[s]=u)}}return u}},8929:function(t,e,n){"use strict";var r=n(5014)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},6853:function(t,e,n){"use strict";var r=n(5014)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},9123:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(2789);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},2789:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7228:function(t,e,n){"use strict";var r=n(2789);t.exports=function(){return r()&&!!Symbol.toStringTag}},4768:function(t,e,n){"use strict";var r=n(3171);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},9007:function(t,e,n){var r=n(5479),i=n(6207),o=t.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function s(t){if("string"==typeof t&&(t=i.parse(t)),t.protocol||(t.protocol="https:"),"https:"!==t.protocol)throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}o.request=function(t,e){return t=s(t),r.request.call(this,t,e)},o.get=function(t,e){return t=s(t),r.get.call(this,t,e)}},3419:function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,c=(1<>1,l=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*c-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<0;t[n+p]=255&a,p+=d,a/=256,u-=8);t[n+p-d]|=128*g}},4994:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},2404:function(t,e,n){"use strict";var r=n(7228)(),i=n(4565)("Object.prototype.toString"),o=function(t){return!(r&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},a=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=s?o:a},5301:function(t){"use strict";var e,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,e)}catch(t){t!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(t){try{var e=r.call(t);return o.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(r.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(f=function(t){if((l||!t)&&(void 0===t||"object"==typeof t))try{var e=c.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==n)return!1}return!a(t)&&s(t)}:function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(u)return s(t);if(a(t))return!1;var e=c.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},2674:function(t,e,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(7228)(),c=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(o.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(t);if(!c)return!1;if(void 0===r){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();r=!!e&&c(e)}return c(t)===r}},5073:function(t){"use strict";t.exports=function(t){return t!=t}},2015:function(t,e,n){"use strict";var r=n(8722),i=n(4333),o=n(5073),a=n(1563),s=n(4549),c=r(a(),Number);i(c,{getPolyfill:a,implementation:o,shim:s}),t.exports=c},1563:function(t,e,n){"use strict";var r=n(5073);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},4549:function(t,e,n){"use strict";var r=n(4333),i=n(1563);t.exports=function(){var t=i();return r(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},3253:function(t,e,n){"use strict";var r=n(8594),i=n(3294),o=n(4565),a=o("Object.prototype.toString"),s=n(7228)(),c=n(8929),u="undefined"==typeof globalThis?n.g:globalThis,l=i(),f=o("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n-1}return!!c&&function(t){var e=!1;return r(p,(function(n,r){if(!e)try{e=n.call(t)===r}catch(t){}})),e}(t)}},1049:function(t,e,n){n(7486),t.exports=self.fetch.bind(self)},6029:function(t){"use strict";var e=function(t){return t!=t};t.exports=function(t,n){return 0===t&&0===n?1/t==1/n:t===n||!(!e(t)||!e(n))}},5475:function(t,e,n){"use strict";var r=n(4333),i=n(8722),o=n(6029),a=n(4070),s=n(5440),c=i(a(),Object);r(c,{getPolyfill:a,implementation:o,shim:s}),t.exports=c},4070:function(t,e,n){"use strict";var r=n(6029);t.exports=function(){return"function"==typeof Object.is?Object.is:r}},5440:function(t,e,n){"use strict";var r=n(4070),i=n(4333);t.exports=function(){var t=r();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},4776:function(t,e,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(6721),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{f(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===o.call(t),r=a(t),s=e&&"[object String]"===o.call(t),h=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=u&&n;if(s&&t.length>0&&!i.call(t,0))for(var g=0;g0)for(var y=0;y=0&&"[object Function]"===e.call(t.callee)),r}},6984:function(t){var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var s,c=[],u=!1,l=-1;function f(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&h())}function h(){if(!u){var t=a(f);u=!0;for(var e=c.length;e;){for(s=c,c=[];++l1)for(var n=1;n>>7-t%8&1)},put:function(t,e){for(let n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},6259:function(t){function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,n,r){const i=t*this.size+e;this.data[i]=n,r&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},8642:function(t,e,n){const r=n(3439),i=n(191);function o(t){this.mode=i.BYTE,"string"==typeof t&&(t=r(t)),this.data=new Uint8Array(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(let e=0,n=this.data.length;e=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return n}}},3958:function(t,e,n){const r=n(2151).getSymbolSize;e.getPositions=function(t){const e=r(t);return[[0,0],[e-7,0],[0,e-7]]}},7845:function(t,e,n){const r=n(2151),i=r.getBCHDigit(1335);e.getEncodedBits=function(t,e){const n=t.bit<<3|e;let o=n<<10;for(;r.getBCHDigit(o)-i>=0;)o^=1335<=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=o},1481:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let n=0,r=0,i=0,o=null,a=null;for(let s=0;s=5&&(n+=r-5+3),o=e,r=1),e=t.get(c,s),e===a?i++:(i>=5&&(n+=i-5+3),a=e,i=1)}r>=5&&(n+=r-5+3),i>=5&&(n+=i-5+3)}return n},e.getPenaltyN2=function(t){const e=t.size;let n=0;for(let r=0;r=10&&(1488===r||93===r)&&n++,i=i<<1&2047|t.get(a,o),a>=10&&(1488===i||93===i)&&n++}return 40*n},e.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let r=0;r=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return i.testNumeric(t)?e.NUMERIC:i.testAlphanumeric(t)?e.ALPHANUMERIC:i.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return n}}},792:function(t,e,n){const r=n(191);function i(t){this.mode=r.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e,n,r;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),r=parseInt(n,10),t.put(r,10);const i=this.data.length-e;i>0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*i+1))},t.exports=i},9874:function(t,e,n){const r=n(2525);e.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let i=0;i=0;){const t=n[0];for(let i=0;i>o&1),o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(r-15+o,8,a,!0),o<8?t.set(8,r-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(r-8,8,1,!0)}function m(t,e,n,i){let p;if(Array.isArray(t))p=g.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let r=e;if(!r){const e=g.rawSplit(t);r=h.getBestVersionForData(e,n)}p=g.fromString(t,r||40)}}const m=h.getBestVersionForData(p,n);if(!m)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&e<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===e||6===e)||e>=2&&e<=4&&r>=2&&r<=4?t.set(i+e,o+r,!0,!0):t.set(i+e,o+r,!1,!0))}}(w,e),function(t){const e=t.size;for(let n=8;n=7&&function(t,e){const n=t.size,r=h.getEncodedBits(e);let i,o,a;for(let e=0;e<18;e++)i=Math.floor(e/3),o=e%3+n-8-3,a=1==(r>>e&1),t.set(i,o,a,!0),t.set(o,i,a,!0)}(w,e),function(t,e){const n=t.size;let r=-1,i=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!t.isReserved(i,s-n)){let r=!1;a>>o&1)),t.set(i,s-n,r),o--,-1===o&&(a++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}(w,b),isNaN(i)&&(i=u.getBestMask(w,y.bind(null,w,n))),u.applyMask(i,w),y(w,n,i),{modules:w,version:e,errorCorrectionLevel:n,maskPattern:i,segments:p}}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let n,o,a=i.M;return void 0!==e&&(a=i.from(e.errorCorrectionLevel,i.M),n=h.from(e.version),o=u.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),m(t,n,a,o)}},6542:function(t,e,n){const r=n(9874);function i(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=r.mod(e,this.genPoly),i=this.degree-n.length;if(i>0){const t=new Uint8Array(this.degree);return t.set(n,i),t}return n},t.exports=i},8905:function(t,e){const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";e.KANJI=new RegExp(r,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(i,"g"),e.NUMERIC=new RegExp(n,"g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+r+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return o.test(t)},e.testNumeric=function(t){return a.test(t)},e.testAlphanumeric=function(t){return s.test(t)}},902:function(t,e,n){const r=n(191),i=n(792),o=n(1186),a=n(8642),s=n(9279),c=n(8905),u=n(2151),l=n(7150);function f(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){const r=[];let i;for(;null!==(i=t.exec(n));)r.push({data:i[0],index:i.index,mode:e,length:i[0].length});return r}function p(t){const e=h(c.NUMERIC,r.NUMERIC,t),n=h(c.ALPHANUMERIC,r.ALPHANUMERIC,t);let i,o;return u.isKanjiModeEnabled()?(i=h(c.BYTE,r.BYTE,t),o=h(c.KANJI,r.KANJI,t)):(i=h(c.BYTE_KANJI,r.BYTE,t),o=[]),e.concat(n,i,o).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function d(t,e){switch(e){case r.NUMERIC:return i.getBitsLength(t);case r.ALPHANUMERIC:return o.getBitsLength(t);case r.KANJI:return s.getBitsLength(t);case r.BYTE:return a.getBitsLength(t)}}function g(t,e){let n;const c=r.getBestModeForData(t);if(n=r.from(e,c),n!==r.BYTE&&n.bit=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[]))},e.rawSplit=function(t){return e.fromArray(p(t,u.isKanjiModeEnabled()))}},2151:function(t,e){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return r[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(t){return n(t)}},469:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},4205:function(t,e,n){const r=n(2151),i=n(8797),o=n(5662),a=n(191),s=n(469),c=r.getBCHDigit(7973);function u(t,e){return a.getCharCountIndicator(t,e)+4}function l(t,e){let n=0;return t.forEach((function(t){const r=u(t.mode,e);n+=r+t.getBitsLength()})),n}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);const o=8*(r.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,e));if(n===a.MIXED)return o;const c=o-u(n,t);switch(n){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,n){let r;const i=o.from(n,o.M);if(Array.isArray(t)){if(t.length>1)return function(t,n){for(let r=1;r<=40;r++)if(l(t,r)<=e.getCapacity(r,n,a.MIXED))return r}(t,i);if(0===t.length)return 1;r=t[0]}else r=t;return function(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}(r.mode,r.getLength(),i)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;r.getBCHDigit(e)-c>=0;)e^=7973<':"",f="0&&u>0&&t[c-1]||(r+=a?o("M",u+n,.5+l+n):o("m",i,0),i=0,a=!1),u+1',h='viewBox="0 0 '+u+" "+u+'"',p=''+l+f+"\n";return"function"==typeof n&&n(null,p),p}},1326:function(t,e){function n(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:r,scale:r?4:i,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){const r=e.getScale(t,n);return Math.floor((t+2*n.margin)*r)},e.qrToImageData=function(t,n,r){const i=n.modules.size,o=n.modules.data,a=e.getScale(i,r),s=Math.floor((i+2*r.margin)*a),c=r.margin*a,u=[r.color.light,r.color.dark];for(let e=0;e=c&&n>=c&&e0&&c>s&&(c=s);for(var u=0;u=0?(l=d.substr(0,g),f=d.substr(g+1)):(l=d,f=""),h=decodeURIComponent(l),p=decodeURIComponent(f),e(o,h)?Array.isArray(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o}},3582:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,n,r,i){return n=n||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(i){var o=encodeURIComponent(e(i))+r;return Array.isArray(t[i])?t[i].map((function(t){return o+encodeURIComponent(e(t))})).join(n):o+encodeURIComponent(e(t[i]))})).join(n):i?encodeURIComponent(e(i))+r+encodeURIComponent(e(t)):""}},4510:function(t,e,n){"use strict";e.decode=e.parse=n(4959),e.encode=e.stringify=n(3582)},1750:function(t,e,n){var r=n(8823),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},5479:function(t,e,n){var r=n(8207),i=n(4942),o=n(6635),a=n(2301),s=n(6207),c=e;c.request=function(t,e){t="string"==typeof t?s.parse(t):o(t);var i=-1===n.g.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||i,c=t.hostname||t.host,u=t.port,l=t.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),t.url=(c?a+"//"+c:"")+(u?":"+u:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return e&&f.on("response",e),f},c.get=function(t,e){var n=c.request(t,e);return n.end(),n},c.ClientRequest=r,c.IncomingMessage=i.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.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"]},2368:function(t,e,n){var r;function i(){if(void 0!==r)return r;if(n.g.XMLHttpRequest){r=new n.g.XMLHttpRequest;try{r.open("GET",n.g.XDomainRequest?"/":"https://example.com")}catch(t){r=null}}else r=null;return r}function o(t){var e=i();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}function a(t){return"function"==typeof t}e.fetch=a(n.g.fetch)&&a(n.g.ReadableStream),e.writableStream=a(n.g.WritableStream),e.abortController=a(n.g.AbortController),e.arraybuffer=e.fetch||o("arraybuffer"),e.msstream=!e.fetch&&o("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&o("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!i()&&a(i().overrideMimeType),r=null},8207:function(t,e,n){var r=n(8823).Buffer,i=n(6984),o=n(2368),a=n(4994),s=n(4942),c=n(3723),u=s.IncomingMessage,l=s.readyStates,f=t.exports=function(t){var e,n=this;c.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+r.from(t.auth).toString("base64")),Object.keys(t.headers).forEach((function(e){n.setHeader(e,t.headers[e])}));var i=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!o.abortController)i=!1,e=!0;else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!o.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}n._mode=function(t,e){return o.fetch&&e?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&t?"arraybuffer":"text"}(e,i),n._fetchTimer=null,n._socketTimeout=null,n._socketTimer=null,n.on("finish",(function(){n._onFinish()}))};a(f,c.Writable),f.prototype.setHeader=function(t,e){var n=t.toLowerCase();-1===h.indexOf(n)&&(this._headers[n]={name:t,value:e})},f.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},f.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},f.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts;"timeout"in e&&0!==e.timeout&&t.setTimeout(e.timeout);var r=t._headers,a=null;"GET"!==e.method&&"HEAD"!==e.method&&(a=new Blob(t._body,{type:(r["content-type"]||{}).value||""}));var s=[];if(Object.keys(r).forEach((function(t){var e=r[t].name,n=r[t].value;Array.isArray(n)?n.forEach((function(t){s.push([e,t])})):s.push([e,n])})),"fetch"===t._mode){var c=null;if(o.abortController){var u=new AbortController;c=u.signal,t._fetchAbortController=u,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=n.g.setTimeout((function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()}),e.requestTimeout))}n.g.fetch(t._opts.url,{method:t._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:c}).then((function(e){t._fetchResponse=e,t._resetTimers(!1),t._connect()}),(function(e){t._resetTimers(!0),t._destroyed||t.emit("error",e)}))}else{var f=t._xhr=new n.g.XMLHttpRequest;try{f.open(t._opts.method,t._opts.url,!0)}catch(e){return void i.nextTick((function(){t.emit("error",e)}))}"responseType"in f&&(f.responseType=t._mode),"withCredentials"in f&&(f.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(f.timeout=e.requestTimeout,f.ontimeout=function(){t.emit("requestTimeout")}),s.forEach((function(t){f.setRequestHeader(t[0],t[1])})),t._response=null,f.onreadystatechange=function(){switch(f.readyState){case l.LOADING:case l.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(f.onprogress=function(){t._onXHRProgress()}),f.onerror=function(){t._destroyed||(t._resetTimers(!0),t.emit("error",new Error("XHR error")))};try{f.send(a)}catch(e){return void i.nextTick((function(){t.emit("error",e)}))}}}},f.prototype._onXHRProgress=function(){var t=this;t._resetTimers(!1),function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}}(t._xhr)&&!t._destroyed&&(t._response||t._connect(),t._response._onXHRProgress(t._resetTimers.bind(t)))},f.prototype._connect=function(){var t=this;t._destroyed||(t._response=new u(t._xhr,t._fetchResponse,t._mode,t._resetTimers.bind(t)),t._response.on("error",(function(e){t.emit("error",e)})),t.emit("response",t._response))},f.prototype._write=function(t,e,n){this._body.push(t),n()},f.prototype._resetTimers=function(t){var e=this;n.g.clearTimeout(e._socketTimer),e._socketTimer=null,t?(n.g.clearTimeout(e._fetchTimer),e._fetchTimer=null):e._socketTimeout&&(e._socketTimer=n.g.setTimeout((function(){e.emit("timeout")}),e._socketTimeout))},f.prototype.abort=f.prototype.destroy=function(t){var e=this;e._destroyed=!0,e._resetTimers(!0),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort(),t&&e.emit("error",t)},f.prototype.end=function(t,e,n){"function"==typeof t&&(n=t,t=void 0),c.Writable.prototype.end.call(this,t,e,n)},f.prototype.setTimeout=function(t,e){var n=this;e&&n.once("timeout",e),n._socketTimeout=t,n._resetTimers(!1)},f.prototype.flushHeaders=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var h=["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"]},4942:function(t,e,n){var r=n(6984),i=n(8823).Buffer,o=n(2368),a=n(4994),s=n(3723),c=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=e.IncomingMessage=function(t,e,n,a){var c=this;if(s.Readable.call(c),c._mode=n,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){r.nextTick((function(){c.emit("close")}))})),"fetch"===n){if(c._fetchResponse=e,c.url=e.url,c.statusCode=e.status,c.statusMessage=e.statusText,e.headers.forEach((function(t,e){c.headers[e.toLowerCase()]=t,c.rawHeaders.push(e,t)})),o.writableStream){var u=new WritableStream({write:function(t){return a(!1),new Promise((function(e,n){c._destroyed?n():c.push(i.from(t))?e():c._resumeFetch=e}))},close:function(){a(!0),c._destroyed||c.push(null)},abort:function(t){a(!0),c._destroyed||c.emit("error",t)}});try{return void e.body.pipeTo(u).catch((function(t){a(!0),c._destroyed||c.emit("error",t)}))}catch(t){}}var l=e.body.getReader();!function t(){l.read().then((function(e){c._destroyed||(a(e.done),e.done?c.push(null):(c.push(i.from(e.value)),t()))})).catch((function(t){a(!0),c._destroyed||c.emit("error",t)}))}()}else if(c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(e[2])):void 0!==c.headers[n]?c.headers[n]+=", "+e[2]:c.headers[n]=e[2],c.rawHeaders.push(e[1],e[2])}})),c._charset="x-user-defined",!o.overrideMimeType){var f=c.rawHeaders["mime-type"];if(f){var h=f.match(/;\s*charset=([^;])(;|$)/);h&&(c._charset=h[1].toLowerCase())}c._charset||(c._charset="utf-8")}};a(u,s.Readable),u.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},u.prototype._onXHRProgress=function(t){var e=this,r=e._xhr,o=null;switch(e._mode){case"text":if((o=r.responseText).length>e._pos){var a=o.substr(e._pos);if("x-user-defined"===e._charset){for(var s=i.alloc(a.length),u=0;ue._pos&&(e.push(i.from(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){t(!0),e.push(null)},l.readAsArrayBuffer(o)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&(t(!0),e.push(null))}},4728:function(t){"use strict";var e={};function n(t,n,r){r||(r=Error);var i=function(t){var e,r;function i(e,r,i){return t.call(this,function(t,e,r){return"string"==typeof n?n:n(t,e,r)}(e,r,i))||this}return r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=t,e[t]=i}function r(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}n("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,o,a,s,c;if("string"==typeof e&&(o="not ",e.substr(0,o.length)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))a="The ".concat(t," ").concat(i," ").concat(r(e,"type"));else{var u=("number"!=typeof c&&(c=0),c+".".length>(s=t).length||-1===s.indexOf(".",c)?"argument":"property");a='The "'.concat(t,'" ').concat(u," ").concat(i," ").concat(r(e,"type"))}return a+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},3243:function(t,e,n){"use strict";var r=n(6984),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var o=n(8286),a=n(8537);n(4994)(l,o);for(var s=i(a.prototype),c=0;c0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r)s.endEmitted?E(t,new _):T(t,s,e,!0);else if(s.ended)E(t,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?T(t,s,e,!1):C(t,s)):T(t,s,e,!1)}else r||(s.reading=!1,C(t,s));return!s.ended&&(s.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=k?t=k:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function P(t){var e=t._readableState;o("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(o("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(j,t))}function j(t){var e=t._readableState;o("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function C(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(L,t,e))}function L(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function M(t){o("readable nexttick read 0"),t.read(0)}function B(t,e){o("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;for(o("flow",e.flowing);e.flowing&&null!==t.read(););}function N(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function D(t){var e=t._readableState;o("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(F,e,t))}function F(t,e){if(o("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function q(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return o("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?D(this):P(this),null;if(0===(t=R(t,e))&&e.ended)return 0===e.length&&D(this),null;var r,i=e.needReadable;return o("need readable",i),(0===e.length||e.length-t0?N(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&D(this)),null!==r&&this.emit("data",r),r},A.prototype._read=function(t){E(this,new w("_read()"))},A.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,o("pipe count=%d opts=%j",r.pipesCount,e);var s=e&&!1===e.end||t===i.stdout||t===i.stderr?g:c;function c(){o("onend"),t.end()}r.endEmitted?i.nextTick(s):n.once("end",s),t.on("unpipe",(function e(i,a){o("onunpipe"),i===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),t.removeListener("close",p),t.removeListener("finish",d),t.removeListener("drain",u),t.removeListener("error",h),t.removeListener("unpipe",e),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",f),l=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}));var u=function(t){return function(){var e=t._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,U(t))}}(n);t.on("drain",u);var l=!1;function f(e){o("ondata");var i=t.write(e);o("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==q(r.pipes,t))&&!l&&(o("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(e){o("onerror",e),g(),t.removeListener("error",h),0===a(t,"error")&&E(t,e)}function p(){t.removeListener("finish",d),g()}function d(){o("onfinish"),t.removeListener("close",p),g()}function g(){o("unpipe"),n.unpipe(t)}return n.on("data",f),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",h),t.once("close",p),t.once("finish",d),t.emit("pipe",n),r.flowing||(o("pipe resume"),n.resume()),t},A.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,o("on readable",r.length,r.reading),r.length?P(this):r.reading||i.nextTick(M,this))),n},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(I,this),n},A.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(I,this),e},A.prototype.resume=function(){var t=this._readableState;return t.flowing||(o("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(B,t,e))}(this,t)),t.paused=!1,this},A.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(o("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,n){n(new g("_write()"))},A.prototype._writev=null,A.prototype.end=function(t,e,n){var r=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,n){e.ending=!0,j(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),A.prototype.destroy=f.destroy,A.prototype._undestroy=f.undestroy,A.prototype._destroy=function(t,e){e(t)}},7097:function(t,e,n){"use strict";var r,i=n(6984);function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(5859),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(t,e){return{value:t,done:e}}function g(t){var e=t[s];if(null!==e){var n=t[p].read();null!==n&&(t[f]=null,t[s]=null,t[c]=null,e(d(n,!1)))}}function y(t){i.nextTick(g,t)}var m=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((o(r={get stream(){return this[p]},next:function(){var t=this,e=this[u];if(null!==e)return Promise.reject(e);if(this[l])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise((function(e,n){i.nextTick((function(){t[u]?n(t[u]):e(d(void 0,!0))}))}));var n,r=this[f];if(r)n=new Promise(function(t,e){return function(n,r){t.then((function(){e[l]?n(d(void 0,!0)):e[h](n,r)}),r)}}(r,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));n=new Promise(this[h])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var t=this;return new Promise((function(e,n){t[p].destroy(null,(function(t){t?n(t):e(d(void 0,!0))}))}))})),r),m);t.exports=function(t){var e,n=Object.create(b,(o(e={},p,{value:t,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,c,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,l,{value:t._readableState.endEmitted,writable:!0}),o(e,h,{value:function(t,e){var r=n[p].read();r?(n[f]=null,n[s]=null,n[c]=null,t(d(r,!1))):(n[s]=t,n[c]=e)},writable:!0}),e));return n[f]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[c];return null!==e&&(n[f]=null,n[s]=null,n[c]=null,e(t)),void(n[u]=t)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[c]=null,r(d(void 0,!0))),n[l]=!0})),t.on("readable",y.bind(null,n)),n}},8110:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);for(var e,n,r,i=c.allocUnsafe(t>>>0),o=this.head,a=0;o;)e=o.data,n=i,r=a,c.prototype.copy.call(e,n,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0==(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:l,value:function(t,e){return u(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&a(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},799:function(t,e,n){"use strict";var r=n(6984);function i(t,e){a(t,e),o(t)}function o(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(a,this,t)):r.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?n._writableState?n._writableState.errorEmitted?r.nextTick(o,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,t)):r.nextTick(i,n,t):e?(r.nextTick(o,n),e(t)):r.nextTick(o,n)})),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(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}},5859:function(t,e,n){"use strict";var r=n(4728).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,n,o){if("function"==typeof n)return t(e,null,n);n||(n={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i0,(function(t){l||(l=t),t&&h.forEach(c),o||(h.forEach(c),f(l))}))}));return e.reduce(u)}},4068:function(t,e,n){"use strict";var r=n(4728).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,i){var o=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},9146:function(t,e,n){t.exports=n(5101).EventEmitter},3723:function(t,e,n){(e=t.exports=n(8286)).Stream=e,e.Readable=e,e.Writable=n(8537),e.Duplex=n(3243),e.Transform=n(3116),e.PassThrough=n(8636),e.finished=n(5859),e.pipeline=n(528)},6268:function(t,e,n){"use strict";var r=n(1750).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.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 o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=u,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=f,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.s=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},1619:function(t,e,n){var r;t=n.nmd(t),function(i){e&&e.nodeType,t&&t.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,c=36,u=26,l=38,f=700,h=/^xn--/,p=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=c-1,m=Math.floor,b=String.fromCharCode;function v(t){throw RangeError(g[t])}function w(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function _(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+w((t=t.replace(d,".")).split("."),e).join(".")}function E(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(e+=b((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+b(t)})).join("")}function x(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,n){var r=0;for(t=n?m(t/f):t>>1,t+=m(t/e);t>y*u>>1;r+=c)t=m(t/y);return m(r+(y+1)*t/(t+l))}function O(t){var e,n,r,i,o,a,l,f,h,p,d,g=[],y=t.length,b=0,w=128,_=72;for((n=t.lastIndexOf("-"))<0&&(n=0),r=0;r=128&&v("not-basic"),g.push(t.charCodeAt(r));for(i=n>0?n+1:0;i=y&&v("invalid-input"),((f=(d=t.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:c)>=c||f>m((s-b)/a))&&v("overflow"),b+=f*a,!(f<(h=l<=_?1:l>=_+u?u:l-_));l+=c)a>m(s/(p=c-h))&&v("overflow"),a*=p;_=A(b-o,e=g.length+1,0==o),m(b/e)>s-w&&v("overflow"),w+=m(b/e),b%=e,g.splice(b++,0,w)}return S(g)}function T(t){var e,n,r,i,o,a,l,f,h,p,d,g,y,w,_,S=[];for(g=(t=E(t)).length,e=128,n=0,o=72,a=0;a=e&&dm((s-n)/(y=r+1))&&v("overflow"),n+=(l-e)*y,e=l,a=0;as&&v("overflow"),d==e){for(f=n,h=c;!(f<(p=h<=o?1:h>=o+u?u:h-o));h+=c)_=f-p,w=c-p,S.push(b(x(p+_%w,0))),f=m(_/w);S.push(b(x(f,0))),o=A(n,y,r==i),n=0,++r}++n,++e}return S.join("")}a={version:"1.3.2",ucs2:{decode:E,encode:S},decode:O,encode:T,toASCII:function(t){return _(t,(function(t){return p.test(t)?"xn--"+T(t):t}))},toUnicode:function(t){return _(t,(function(t){return h.test(t)?O(t.slice(4).toLowerCase()):t}))}},void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}()},6207:function(t,e,n){"use strict";var r=n(1619),i=n(1431);function o(){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}e.parse=v,e.resolve=function(t,e){return v(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?v(t,!1,!0).resolveObject(e):e},e.format=function(t){return i.isString(t)&&(t=v(t)),t instanceof o?t.format():o.prototype.format.call(t)},e.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(4510);function v(t,e,n){if(t&&i.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}o.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o127?L+="x":L+=C[I];if(!L.match(p)){var B=P.slice(0,T),U=P.slice(T+1),N=C.match(d);N&&(B.push(N[1]),U.unshift(N[2])),U.length&&(v="/"+U.join(".")+v),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var D=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+D,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!g[E])for(T=0,j=l.length;T0)&&n.host.split("@"))&&(n.auth=R.shift(),n.host=n.hostname=R.shift())),n.search=t.search,n.query=t.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var A=S.slice(-1)[0],O=(n.host||t.host||S.length>1)&&("."===A||".."===A)||""===A,T=0,k=S.length;k>=0;k--)"."===(A=S[k])?S.splice(k,1):".."===A?(S.splice(k,1),T++):T&&(S.splice(k,1),T--);if(!_&&!E)for(;T--;T)S.unshift("..");!_||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),O&&"/"!==S.join("/").substr(-1)&&S.push("");var R,P=""===S[0]||S[0]&&"/"===S[0].charAt(0);return x&&(n.hostname=n.host=P?"":S.length?S.shift():"",(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.host=n.hostname=R.shift())),(_=_||n.host&&S.length)&&!P&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},1431:function(t){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},4232:function(t,e,n){var r=n(1086);function i(t){try{if(!n.g.localStorage)return!1}catch(t){return!1}var e=n.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(i("noDeprecation"))return t;var n=!1;return function(){if(!n){if(i("throwDeprecation"))throw new Error(e);i("traceDeprecation")?r.trace(e):r.warn(e),n=!0}return t.apply(this,arguments)}}},2050:function(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},2710:function(t,e,n){"use strict";var r=n(2404),i=n(2674),o=n(293),a=n(3253);function s(t){return t.call.bind(t)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(u)var g=s(Symbol.prototype.valueOf);function y(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===l(t)}function b(t){return"[object Set]"===l(t)}function v(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function _(t){return"[object ArrayBuffer]"===l(t)}function E(t){return"undefined"!=typeof ArrayBuffer&&(_.working?_(t):t instanceof ArrayBuffer)}function S(t){return"[object DataView]"===l(t)}function x(t){return"undefined"!=typeof DataView&&(S.working?S(t):t instanceof DataView)}e.isArgumentsObject=r,e.isGeneratorFunction=i,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||x(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},m.working="undefined"!=typeof Map&&m(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(m.working?m(t):t instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(b.working?b(t):t instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(v.working?v(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),e.isArrayBuffer=E,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=x;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(t){return"[object SharedArrayBuffer]"===l(t)}function T(t){return void 0!==A&&(void 0===O.working&&(O.working=O(new A)),O.working?O(t):t instanceof A)}function k(t){return y(t,f)}function R(t){return y(t,h)}function P(t){return y(t,p)}function j(t){return c&&y(t,d)}function C(t){return u&&y(t,g)}e.isSharedArrayBuffer=T,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},e.isNumberObject=k,e.isStringObject=R,e.isBooleanObject=P,e.isBigIntObject=j,e.isSymbolObject=C,e.isBoxedPrimitive=function(t){return k(t)||R(t)||P(t)||j(t)||C(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(E(t)||T(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},4585:function(t,e,n){var r=n(6984),i=n(1086),o=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&e._extend(r,n),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),p(r,t,r.depth)}function f(t,e){var n=l.styles[e];return n?"["+l.colors[n][0]+"m"+t+"["+l.colors[n][1]+"m":t}function h(t,e){return t}function p(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return w(i)||(i=p(t,i,r)),i}var o=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return v(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):b(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),A(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(O(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(E(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return t.stylize(Date.prototype.toString.call(n),"date");if(A(n))return d(n)}var u,l="",f=!1,h=["{","}"];return y(n)&&(f=!0,h=["[","]"]),O(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),E(n)&&(l=" "+RegExp.prototype.toString.call(n)),x(n)&&(l=" "+Date.prototype.toUTCString.call(n)),A(n)&&(l=" "+d(n)),0!==a.length||f&&0!=n.length?r<0?E(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=f?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(u,l,h)):h[0]+l+h[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function g(t,e,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(s=t.stylize("[Setter]","special")),P(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(c.value)<0?(s=b(n)?p(t,c.value,null):p(t,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),_(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function y(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function b(t){return null===t}function v(t){return"number"==typeof t}function w(t){return"string"==typeof t}function _(t){return void 0===t}function E(t){return S(t)&&"[object RegExp]"===T(t)}function S(t){return"object"==typeof t&&null!==t}function x(t){return S(t)&&"[object Date]"===T(t)}function A(t){return S(t)&&("[object Error]"===T(t)||t instanceof Error)}function O(t){return"function"==typeof t}function T(t){return Object.prototype.toString.call(t)}function k(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(c.test(t)){var n=r.pid;s[t]=function(){var r=e.format.apply(e,arguments);i.error("%s %d: %s",t,n,r)}}else s[t]=function(){};return s[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(2710),e.isArray=y,e.isBoolean=m,e.isNull=b,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=_,e.isRegExp=E,e.types.isRegExp=E,e.isObject=S,e.isDate=x,e.types.isDate=x,e.isError=A,e.types.isNativeError=A,e.isFunction=O,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(2050);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,n;i.log("%s - %s",(n=[k((t=new Date).getHours()),k(t.getMinutes()),k(t.getSeconds())].join(":"),[t.getDate(),R[t.getMonth()],n].join(" ")),e.format.apply(e,arguments))},e.inherits=n(4994),e._extend=function(t,e){if(!e||!S(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(j&&t[j]){var e;if("function"!=typeof(e=t[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function u(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function f(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function p(t){var e=new FileReader,n=h(e);return e.readAsArrayBuffer(t),n}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=f(this);if(t)return t;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?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(p)}),this.text=function(){var t,e,n,r=f(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,n=h(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function v(t,e){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},g.call(m.prototype),g.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var t=new v(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];v.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new v(null,{status:e,headers:{location:t}})};var _=r.DOMException;try{new _}catch(t){(_=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function E(t,e){return new Promise((function(n,o){var a=new m(t,e);if(a.signal&&a.signal.aborted)return o(new _("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var t,e,r={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout((function(){n(new v(i,r))}),0)},s.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){o(new _("Aborted","AbortError"))}),0)},s.open(a.method,function(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&(i.blob?s.responseType="blob":i.arrayBuffer&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof l?a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){s.setRequestHeader(t,c(e.headers[t]))})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=l,r.Request=m,r.Response=v)},293:function(t,e,n){"use strict";var r=n(8594),i=n(3294),o=n(4565),a=n(8929),s=o("Object.prototype.toString"),c=n(7228)(),u="undefined"==typeof globalThis?n.g:globalThis,l=i(),f=o("String.prototype.slice"),h={},p=Object.getPrototypeOf;c&&a&&p&&r(l,(function(t){if("function"==typeof u[t]){var e=new u[t];if(Symbol.toStringTag in e){var n=p(e),r=a(n,Symbol.toStringTag);if(!r){var i=p(n);r=a(i,Symbol.toStringTag)}h[t]=r.get}}}));var d=n(3253);t.exports=function(t){return!!d(t)&&(c&&Symbol.toStringTag in t?function(t){var e=!1;return r(h,(function(n,r){if(!e)try{var i=n.call(t);i===r&&(e=i)}catch(t){}})),e}(t):f(s(t),8,-1))}},6635:function(t){t.exports=function(){for(var t={},n=0;n*{margin:auto 0 !important;transform:scale(0.7)}.yivi-web-popup.yivi-web-popup-active{opacity:1;visibility:visible}.yivi-web-popup.yivi-web-popup-active>*{transform:scale(1)}.yivi-web-centered{background-color:inherit;box-sizing:border-box;margin:0;padding:0;height:auto;text-align:center}.yivi-web-centered img,.yivi-web-centered canvas{cursor:none}.yivi-web-centered>p:first-child{margin-top:0}.yivi-web-centered>p:last-child{margin-bottom:0}.yivi-web-form{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:flex;flex-direction:column;width:80%;min-width:262px;max-width:400px;height:480px;background-color:#dcecf5;border-radius:8px;box-shadow:0 5px 16px rgba(0,0,0,0.15)}@media screen and (max-width:768px){.yivi-web-form{min-height:440px}}.yivi-web-form .yivi-web-content{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:flex;align-items:center;justify-content:center;flex:1 1 auto;margin:0 1rem 1rem 1rem;background-color:white;border-radius:8px}.yivi-web-form .yivi-web-content p{background-color:inherit;box-sizing:border-box;margin:0;padding:0;font-family:"Open Sans","Roboto",Tahoma,Arial,sans-serif;font-weight:18px;font-size:16px;color:#484747;margin:1em 4em;color:#484747}.yivi-web-form .yivi-web-content p.yivi-web-error{color:#e12747}@media screen and (max-width:768px){.yivi-web-form .yivi-web-content p{margin:1em 2em}}.yivi-web-form .yivi-web-content a{background-color:inherit;box-sizing:border-box;margin:0;padding:0;font-family:"Open Sans","Roboto",Tahoma,Arial,sans-serif;font-weight:700;font-size:15px;color:#00508a;text-decoration:underline;cursor:pointer}.yivi-web-form .yivi-web-content a.yivi-web-error{color:#e12747}.yivi-web-form .yivi-web-content a:hover{color:#484747}.yivi-web-form .yivi-web-header{background-color:inherit;box-sizing:border-box;margin:0;padding:0;position:relative;flex:0 0 auto;padding:2rem;margin:0 1rem;overflow:hidden;text-align:center}@media screen and (max-width:768px){.yivi-web-form .yivi-web-header{padding:1em}}.yivi-web-form .yivi-web-header p{background-color:inherit;box-sizing:border-box;margin:0;padding:0;font-family:"Open Sans","Roboto",Tahoma,Arial,sans-serif;font-weight:700;font-size:18px;color:#484747}.yivi-web-form .yivi-web-header p.yivi-web-error{color:#e12747}@media screen and (max-width:768px){.yivi-web-form .yivi-web-header p{font-family:"Open Sans","Roboto",Tahoma,Arial,sans-serif;font-weight:600;font-size:16px;color:#484747}.yivi-web-form .yivi-web-header p.yivi-web-error{color:#e12747}}.yivi-web-form .yivi-web-header p i.yivi-web-logo{width:115px;height:64px}.yivi-web-form .yivi-web-header .yivi-web-helper{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:flex;align-items:center;justify-content:center;position:absolute;bottom:1rem;left:0;right:0;height:calc(100% - 2rem);background-color:#dcecf5;transform:translateX(120%);-webkit-transition:-webkit-transform .4s ease;-webkit-transition:transform .4s ease;transition:transform .4s ease}.yivi-web-form .yivi-web-header .yivi-web-helper a{font-family:"Open Sans","Roboto",Tahoma,Arial,sans-serif;font-weight:400;font-size:16px;color:#484747;text-decoration-line:underline}.yivi-web-form .yivi-web-header .yivi-web-helper a.yivi-web-error{color:#e12747}.yivi-web-form .yivi-web-header .yivi-web-helper p{margin:1em;text-align:center;font-family:"Open Sans","Roboto",Tahoma,Arial,sans-serif;font-weight:700;font-size:16px;color:#484747}.yivi-web-form .yivi-web-header .yivi-web-helper p.yivi-web-error{color:#e12747}.yivi-web-form .yivi-web-header>*:not(.yivi-web-helper):not(.yivi-web-close){transform:translateX(0);-webkit-transition:-webkit-transform .4s ease;-webkit-transition:transform .4s ease;transition:transform .4s ease}.yivi-web-form .yivi-web-header.yivi-web-show-helper>*:not(.yivi-web-helper):not(.yivi-web-close){transform:translateX(-120%)}.yivi-web-form .yivi-web-header.yivi-web-show-helper .yivi-web-helper{transform:translateX(0)}.yivi-web-form .yivi-web-header .yivi-web-close{background-color:inherit;box-sizing:border-box;margin:0;padding:0;position:absolute;top:1rem;right:0;width:26px;height:26px;background-color:white;border-radius:50%;border:0;cursor:pointer}.yivi-web-form .yivi-web-header .yivi-web-close:before,.yivi-web-form .yivi-web-header .yivi-web-close:after{content:" ";display:block;position:absolute;top:5.2px;left:10.92px;width:4.16px;height:15.6px;background-color:#dcecf5;transform:rotateZ(45deg);transform-origin:center}.yivi-web-form .yivi-web-header .yivi-web-close:after{transform:rotateZ(-45deg)}.yivi-web-button,.yivi-web-pairing-form button{background-color:inherit;box-sizing:border-box;margin:0;padding:0;font-family:"Open Sans","Roboto",Tahoma,Arial,sans-serif;font-weight:700;font-size:16px;color:#484747;display:inline-block;padding:12px 32px;background-image:url('+h+");background-position:right top;background-repeat:no-repeat;background-color:#e12747;border:0 solid transparent;border-radius:8px;text-decoration:none;color:white;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yivi-web-button.yivi-web-error,.yivi-web-pairing-form button.yivi-web-error{color:#e12747}.yivi-web-button:focus,.yivi-web-pairing-form button:focus{outline:0}.yivi-web-logo{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:inline-block;vertical-align:middle;background-image:url("+p+');background-size:contain;background-position:center;background-repeat:no-repeat;font-size:0;color:transparent}.yivi-web-button,.yivi-web-pairing-form button{background-color:inherit;box-sizing:border-box;margin:0;padding:0;font-family:"Open Sans","Roboto",Tahoma,Arial,sans-serif;font-weight:700;font-size:16px;color:#484747;display:inline-block;padding:12px 32px;background-image:url('+h+');background-position:right top;background-repeat:no-repeat;background-color:#e12747;border:0 solid transparent;border-radius:8px;text-decoration:none;color:white;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yivi-web-button.yivi-web-error,.yivi-web-pairing-form button.yivi-web-error{color:#e12747}.yivi-web-button:focus,.yivi-web-pairing-form button:focus{outline:0}.yivi-web-loading-animation,.yivi-web-pairing-form .yivi-web-pairing-loading-animation{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:inline-block;width:39px;height:39px}.yivi-web-loading-animation *,.yivi-web-pairing-form .yivi-web-pairing-loading-animation *{background-color:inherit;box-sizing:border-box;margin:0;padding:0}.yivi-web-loading-animation *,.yivi-web-pairing-form .yivi-web-pairing-loading-animation *{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:block;width:33%;height:33%;border-radius:50%;background-color:#00508a;float:left;-ms-animation:loading-animation 1.3s infinite ease-in-out;-webkit-animation:loading-animation 1.3s infinite ease-in-out;animation:loading-animation 1.3s infinite ease-in-out}.yivi-web-loading-animation *:nth-child(1),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(1){-ms-animation-delay:.2s;-webkit-animation-delay:.2s;animation-delay:.2s}.yivi-web-loading-animation *:nth-child(2),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(2){-ms-animation-delay:.3s;-webkit-animation-delay:.3s;animation-delay:.3s}.yivi-web-loading-animation *:nth-child(3),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(3){-ms-animation-delay:.4s;-webkit-animation-delay:.4s;animation-delay:.4s}.yivi-web-loading-animation *:nth-child(4),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(4){-ms-animation-delay:.1s;-webkit-animation-delay:.1s;animation-delay:.1s}.yivi-web-loading-animation *:nth-child(5),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(5){-ms-animation-delay:.2s;-webkit-animation-delay:.2s;animation-delay:.2s}.yivi-web-loading-animation *:nth-child(6),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(6){-ms-animation-delay:.3s;-webkit-animation-delay:.3s;animation-delay:.3s}.yivi-web-loading-animation *:nth-child(7),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(7){-ms-animation-delay:0s;-webkit-animation-delay:0s;animation-delay:0s}.yivi-web-loading-animation *:nth-child(8),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(8){-ms-animation-delay:.1s;-webkit-animation-delay:.1s;animation-delay:.1s}.yivi-web-loading-animation *:nth-child(9),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(9){-ms-animation-delay:.2s;-webkit-animation-delay:.2s;animation-delay:.2s}@-ms-keyframes loading-animation{0%,70%,100%{-webkit-transform:scale3D(1,1,1);transform:scale3D(1,1,1)}35%{-webkit-transform:scale3D(0,0,1);transform:scale3D(0,0,1)}}@-webkit-keyframes loading-animation{0%,70%,100%{-webkit-transform:scale3D(1,1,1);transform:scale3D(1,1,1)}35%{-webkit-transform:scale3D(0,0,1);transform:scale3D(0,0,1)}}@keyframes loading-animation{0%,70%,100%{-webkit-transform:scale3D(1,1,1);transform:scale3D(1,1,1)}35%{-webkit-transform:scale3D(0,0,1);transform:scale3D(0,0,1)}}.yivi-web-pairing-form{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:flex;align-items:center;justify-content:center;font-family:"Open Sans","Roboto",Tahoma,Arial,sans-serif;font-weight:700;font-size:16px;color:#484747;flex-direction:column}.yivi-web-pairing-form.yivi-web-error{color:#e12747}.yivi-web-pairing-form .yivi-web-pairing-code{background-color:inherit;box-sizing:border-box;margin:0;padding:0;margin:10px 0;display:flex;flex-direction:row;cursor:text}.yivi-web-pairing-form p{text-align:center;align-self:center}.yivi-web-pairing-form .yivi-web-pairing-loading-animation{visibility:hidden;margin:10px 0}.yivi-web-pairing-form input{background-color:inherit;box-sizing:border-box;margin:0;padding:0;margin:8px;height:40px;width:30px;text-align:center;font-size:1.5em;border:1px solid #00508a;border-radius:4px}@media screen and (max-width:310px){.yivi-web-pairing-form input{margin:4px;height:32px;width:24px;font-size:1em}}.yivi-web-pairing-form input[type=submit]{display:none}.yivi-web-qr-code{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:block;width:256px;height:256px;max-width:100%;background-color:white}.yivi-web-loading-animation,.yivi-web-pairing-form .yivi-web-pairing-loading-animation{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:inline-block;width:39px;height:39px}.yivi-web-loading-animation *,.yivi-web-pairing-form .yivi-web-pairing-loading-animation *{background-color:inherit;box-sizing:border-box;margin:0;padding:0}.yivi-web-loading-animation *,.yivi-web-pairing-form .yivi-web-pairing-loading-animation *{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:block;width:33%;height:33%;border-radius:50%;background-color:#00508a;float:left;-ms-animation:loading-animation 1.3s infinite ease-in-out;-webkit-animation:loading-animation 1.3s infinite ease-in-out;animation:loading-animation 1.3s infinite ease-in-out}.yivi-web-loading-animation *:nth-child(1),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(1){-ms-animation-delay:.2s;-webkit-animation-delay:.2s;animation-delay:.2s}.yivi-web-loading-animation *:nth-child(2),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(2){-ms-animation-delay:.3s;-webkit-animation-delay:.3s;animation-delay:.3s}.yivi-web-loading-animation *:nth-child(3),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(3){-ms-animation-delay:.4s;-webkit-animation-delay:.4s;animation-delay:.4s}.yivi-web-loading-animation *:nth-child(4),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(4){-ms-animation-delay:.1s;-webkit-animation-delay:.1s;animation-delay:.1s}.yivi-web-loading-animation *:nth-child(5),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(5){-ms-animation-delay:.2s;-webkit-animation-delay:.2s;animation-delay:.2s}.yivi-web-loading-animation *:nth-child(6),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(6){-ms-animation-delay:.3s;-webkit-animation-delay:.3s;animation-delay:.3s}.yivi-web-loading-animation *:nth-child(7),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(7){-ms-animation-delay:0s;-webkit-animation-delay:0s;animation-delay:0s}.yivi-web-loading-animation *:nth-child(8),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(8){-ms-animation-delay:.1s;-webkit-animation-delay:.1s;animation-delay:.1s}.yivi-web-loading-animation *:nth-child(9),.yivi-web-pairing-form .yivi-web-pairing-loading-animation *:nth-child(9){-ms-animation-delay:.2s;-webkit-animation-delay:.2s;animation-delay:.2s}@-ms-keyframes loading-animation{0%,70%,100%{-webkit-transform:scale3D(1,1,1);transform:scale3D(1,1,1)}35%{-webkit-transform:scale3D(0,0,1);transform:scale3D(0,0,1)}}@-webkit-keyframes loading-animation{0%,70%,100%{-webkit-transform:scale3D(1,1,1);transform:scale3D(1,1,1)}35%{-webkit-transform:scale3D(0,0,1);transform:scale3D(0,0,1)}}@keyframes loading-animation{0%,70%,100%{-webkit-transform:scale3D(1,1,1);transform:scale3D(1,1,1)}35%{-webkit-transform:scale3D(0,0,1);transform:scale3D(0,0,1)}}.yivi-web-waiting-for-user-animation{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:inline-block;width:23px;height:39px;position:relative;background-color:#00508a;border-radius:2px;-ms-animation:waiting-for-user-animation 2s infinite ease-in-out;-webkit-animation:waiting-for-user-animation 2s infinite ease-in-out;animation:waiting-for-user-animation 2s infinite ease-in-out}.yivi-web-waiting-for-user-animation:before,.yivi-web-waiting-for-user-animation:after{content:"";display:block;position:absolute;background-color:white}.yivi-web-waiting-for-user-animation:before{top:3px;left:3px;right:3px;bottom:8px;border-radius:1px}.yivi-web-waiting-for-user-animation:after{width:4px;height:4px;left:50%;bottom:2px;margin-left:-2px;border-radius:50%}@-ms-keyframes waiting-for-user-animation{0%,100%{-webkit-transform:scale3D(1.1,1.1,1);transform:scale3D(1.1,1.1,1)}50%{-webkit-transform:scale3D(0.9,0.9,1);transform:scale3D(0.9,0.9,1)}}@-webkit-keyframes waiting-for-user-animation{0%,100%{-webkit-transform:scale3D(1.1,1.1,1);transform:scale3D(1.1,1.1,1)}50%{-webkit-transform:scale3D(0.9,0.9,1);transform:scale3D(0.9,0.9,1)}}@keyframes waiting-for-user-animation{0%,100%{-webkit-transform:scale3D(1.1,1.1,1);transform:scale3D(1.1,1.1,1)}50%{-webkit-transform:scale3D(0.9,0.9,1);transform:scale3D(0.9,0.9,1)}}.yivi-web-checkmark-animation{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:inline-block;width:48px;height:39px}.yivi-web-checkmark-animation:before{content:" ";display:block;box-sizing:content-box;width:27px;height:15px;border:13px solid #00973a;border-top:0;border-right:0;transform:translate(0,18px) rotate(-45deg);transform-origin:left top;-ms-animation:checkmark-animation .6s 1 ease;-webkit-animation:checkmark-animation .6s 1 ease;animation:checkmark-animation .6s 1 ease}@-ms-keyframes checkmark-animation{0%{height:0;width:0;opacity:1}50%{height:15px;width:0;opacity:1}100%{height:15px;width:27px;opacity:1}}@-webkit-keyframes checkmark-animation{0%{height:0;width:0;opacity:1}50%{height:15px;width:0;opacity:1}100%{height:15px;width:27px;opacity:1}}@keyframes checkmark-animation{0%{height:0;width:0;opacity:1}50%{height:15px;width:0;opacity:1}100%{height:15px;width:27px;opacity:1}}.yivi-web-forbidden-animation{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:inline-block;position:relative;width:44px;height:44px}.yivi-web-forbidden-animation:before,.yivi-web-forbidden-animation:after{content:" ";display:block;position:absolute;box-sizing:border-box;width:22px;height:44px;top:0;left:22px;border:7px solid #e12747;border-radius:22px}.yivi-web-forbidden-animation:before{-ms-animation:complete-animation .8s linear 1 forwards;-webkit-animation:complete-animation .8s linear 1 forwards;animation:complete-animation .8s linear 1 forwards}.yivi-web-forbidden-animation:after{width:37px;-ms-animation:rotate-animation .8s linear 1 forwards;-webkit-animation:rotate-animation .8s linear 1 forwards;animation:rotate-animation .8s linear 1 forwards}@-ms-keyframes complete-animation{0%,65%{border-radius:0;border-left:0;border-top-right-radius:22px;border-bottom-right-radius:22px;width:22px;left:22px}66%,100%{border:7px solid #e12747;border-radius:22px;width:44px;left:0}}@-webkit-keyframes complete-animation{0%,65%{border-radius:0;border-left:0;border-top-right-radius:22px;border-bottom-right-radius:22px;width:22px;left:22px}66%,100%{border:7px solid #e12747;border-radius:22px;width:44px;left:0}}@keyframes complete-animation{0%,65%{border-radius:0;border-left:0;border-top-right-radius:22px;border-bottom-right-radius:22px;width:22px;left:22px}66%,100%{border:7px solid #e12747;border-radius:22px;width:44px;left:0}}@-ms-keyframes rotate-animation{0%,32.99%{border:0;border-radius:0;background-color:white;transform-origin:center left;width:22px}33%,65.99%{border:7px solid #e12747;border-radius:0;border-left:0;border-top-right-radius:22px;border-bottom-right-radius:22px;background-color:white;width:22px;height:44px;transform-origin:center left;left:22px}66%,100%{border:0;background-color:#e12747;height:7px;transform:rotate(-45deg) translate(-18.5px,27.5px);transform-origin:top left;left:0}0.01%{transform:rotate(1deg)}32.98%{transform:rotate(180deg)}33.01%{transform:rotate(1deg)}65.98%{transform:rotate(180deg)}66.01%{width:0}99.99%{width:37px}}@-webkit-keyframes rotate-animation{0%,32.99%{border:0;border-radius:0;background-color:white;transform-origin:center left;width:22px}33%,65.99%{border:7px solid #e12747;border-radius:0;border-left:0;border-top-right-radius:22px;border-bottom-right-radius:22px;background-color:white;width:22px;height:44px;transform-origin:center left;left:22px}66%,100%{border:0;background-color:#e12747;height:7px;transform:rotate(-45deg) translate(-18.5px,27.5px);transform-origin:top left;left:0}0.01%{transform:rotate(1deg)}32.98%{transform:rotate(180deg)}33.01%{transform:rotate(1deg)}65.98%{transform:rotate(180deg)}66.01%{width:0}99.99%{width:37px}}@keyframes rotate-animation{0%,32.99%{border:0;border-radius:0;background-color:white;transform-origin:center left;width:22px}33%,65.99%{border:7px solid #e12747;border-radius:0;border-left:0;border-top-right-radius:22px;border-bottom-right-radius:22px;background-color:white;width:22px;height:44px;transform-origin:center left;left:22px}66%,100%{border:0;background-color:#e12747;height:7px;transform:rotate(-45deg) translate(-18.5px,27.5px);transform-origin:top left;left:0}0.01%{transform:rotate(1deg)}32.98%{transform:rotate(180deg)}33.01%{transform:rotate(1deg)}65.98%{transform:rotate(180deg)}66.01%{width:0}99.99%{width:37px}}.yivi-web-clock-animation{background-color:inherit;box-sizing:border-box;margin:0;padding:0;display:inline-block;position:relative;width:42px;height:42px;border-radius:50%;border:5px solid #e12747;-ms-animation:shake-animation 1s infinite linear 2s;-webkit-animation:shake-animation 1s infinite linear 2s;animation:shake-animation 1s infinite linear 2s}.yivi-web-clock-animation:before{content:" ";position:absolute;display:block;width:5px;height:5px;top:-7.5px;left:13.5px;background-color:#e12747}.yivi-web-clock-animation:after{content:" ";position:absolute;display:block;width:5px;height:17.5px;top:2px;left:13.5px;background-color:#e12747;transform:rotate(0);transform-origin:bottom center;-ms-animation:clock-animation 2s 1 ease;-webkit-animation:clock-animation 2s 1 ease;animation:clock-animation 2s 1 ease}@-ms-keyframes clock-animation{0%{transform:rotate(-30deg)}40%{transform:rotate(-30deg)}50%{transform:rotate(-15deg)}90%{transform:rotate(-15deg)}100%{transform:rotate(0)}}@-webkit-keyframes clock-animation{0%{transform:rotate(-30deg)}40%{transform:rotate(-30deg)}50%{transform:rotate(-15deg)}90%{transform:rotate(-15deg)}100%{transform:rotate(0)}}@keyframes clock-animation{0%{transform:rotate(-30deg)}40%{transform:rotate(-30deg)}50%{transform:rotate(-15deg)}90%{transform:rotate(-15deg)}100%{transform:rotate(0)}}@-ms-keyframes shake-animation{10%,90%{transform:translate3d(-2px,1px,0)}20%,80%{transform:translate3d(2px,-1px,0)}30%,50%,70%{transform:translate3d(-2px,-1px,0)}40%,60%{transform:translate3d(2px,1px,0)}0%,100%{transform:translate3d(0,0,0)}}@-webkit-keyframes shake-animation{10%,90%{transform:translate3d(-2px,1px,0)}20%,80%{transform:translate3d(2px,-1px,0)}30%,50%,70%{transform:translate3d(-2px,-1px,0)}40%,60%{transform:translate3d(2px,1px,0)}0%,100%{transform:translate3d(0,0,0)}}@keyframes shake-animation{10%,90%{transform:translate3d(-2px,1px,0)}20%,80%{transform:translate3d(2px,-1px,0)}30%,50%,70%{transform:translate3d(-2px,-1px,0)}40%,60%{transform:translate3d(2px,1px,0)}0%,100%{transform:translate3d(0,0,0)}}',""]),e.Z=f},1443:function(t,e,n){"use strict";n.r(e);var r=n(3379),i=n.n(r),o=n(7795),a=n.n(o),s=n(569),c=n.n(s),u=n(3565),l=n.n(u),f=n(9216),h=n.n(f),p=n(6655),d=n.n(p),g=n(1236),y={};y.styleTagTransform=d(),y.setAttributes=l(),y.insert=c().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=h(),i()(g.Z,y),e.default=g.Z&&g.Z.locals?g.Z.locals:void 0},3379:function(t){"use strict";var e=[];function n(t){for(var n=-1,r=0;r0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},6655:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},726:function(t){"use strict";t.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27260%27 height=%2748%27 fill=%27none%27%3E%3Cpath fill=%27%23BA3555%27 fill-rule=%27evenodd%27 d=%27M160.129 48h26.344l20.652-48H139.5l20.629 48Z%27 clip-rule=%27evenodd%27/%3E%3Cpath fill=%27%23A03352%27 fill-rule=%27evenodd%27 d=%27m232.187 48 20.631-48h1.012a6 6 0 0 1 6 6v36a6 6 0 0 1-6 6h-21.643Z%27 clip-rule=%27evenodd%27/%3E%3Cpath fill=%27%2387314F%27 fill-rule=%27evenodd%27 d=%27M252.818 0h-33.362v48h12.731l20.631-48Z%27 clip-rule=%27evenodd%27/%3E%3Cpath fill=%27%23A03352%27 fill-rule=%27evenodd%27 d=%27M219.455 0h-12.33l-20.652 48h32.982V0Z%27 clip-rule=%27evenodd%27/%3E%3C/svg%3E"},6418:function(t){"use strict";t.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xml:space=%27preserve%27 width=%27765.355%27 height=%27425.197%27%3E%3Cg style=%27display:inline%27%3E%3Cpath fill=%27%233ea6de%27 d=%27M425.197 109.797h-85.039l85.039 228.449h85.039z%27/%3E%3Cpath fill=%27%23e02146%27 d=%27M590.156 45.326C590.156 20.814 609.582 0 637.795 0c28.213 0 47.639 20.814 47.639 45.326s-19.426 45.789-47.639 45.789c-28.213 0-47.639-21.277-47.639-45.789z%27/%3E%3Cpath fill=%27%2397c6dd%27 d=%27M680.314 109.799v228.447h.002l85.039-228.449h-85.041z%27/%3E%3Cpath fill=%27%23e02146%27 d=%27m595.275 338.246 85.039-228.447v-.002h-85.039z%27/%3E%3Cpath fill=%27%236a2e4a%27 d=%27M680.314 338.246V109.799l-85.039 228.447z%27/%3E%3Cpath fill=%27%2397c6dd%27 d=%27M340.156 109.799v228.447h.002l85.041-228.449h-85.041z%27/%3E%3Cpath fill=%27%23e02146%27 d=%27M255.117 109.797v228.449h.002l85.037-228.447v-.002z%27/%3E%3Cpath fill=%27%236a2e4a%27 d=%27M340.156 338.246V109.799l-85.037 228.447z%27/%3E%3Cpath fill=%27%23e02146%27 d=%27M85.039 338.246c-7.635 20.516-18.471 25.9-36.51 25.9-11.562 0-20.77-1.85-29.49-4.625l-1.441 61.051c11.947 3.238 27.178 4.625 40.59 4.625 59.201 0 87.168-20.521 105.021-68.488l6.871-18.463zM425.197 109.797h-85.039l85.039 228.449h85.039zM250 45.326C250 20.814 269.424 0 297.637 0s47.639 20.814 47.639 45.326-19.426 45.789-47.639 45.789C269.424 91.115 250 69.838 250 45.326z%27/%3E%3Cpath fill=%27%236a2e4a%27 d=%27m467.716 224.035 42.52 114.211h.002l85.039-228.449h-85.041z%27/%3E%3Cpath fill=%27%236a2e4a%27 d=%27m382.764 309.725-42.518 114.238 42.52 114.211 85.039-228.449z%27 style=%27display:inline%27 transform=%27translate%28-212.686 -199.928%29%27/%3E%3Cpath fill=%27%23e02146%27 d=%27M297.725 538.174h85.041l-85.039-228.449h-85.041z%27 style=%27display:inline%27 transform=%27translate%28-212.686 -199.928%29%27/%3E%3Cg style=%27display:inline%27%3E%3Cpath fill=%27%2397c6dd%27 d=%27M85.041 109.797v.002z%27/%3E%3Cpath fill=%27%23e02146%27 d=%27M0 109.799v-.002z%27/%3E%3Cpath fill=%27%236a2e4a%27 d=%27m42.519 224.039 42.522-114.24v-.002H0v.002z%27/%3E%3Cpath fill=%27%23ba3353%27 d=%27m382.677 224.039 42.52-114.24v-.002h-85.039v.002zM467.716 224.039l-42.519 114.209v.002h85.041v-.002zM127.56 224.039 85.039 338.248v.002h85.041v-.002z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"},1408:function(){},3646:function(){},3294:function(t,e,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;eAge check
You have not been verified to be over 18 years old yet, please verify down below.
- + -