@bdky/aaas-pilot-kit 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -23,7 +23,7 @@ b=TIAS:${1e3*f}\r
23
23
  `;for(let n=0;n<e.byteLength;n++)r+=i[n].toString(16).padStart(2,"0")+" ",(n+1)%16==0&&(console.info(r),r="")}console.info(r)}async sendFinalAudio(){let e=await this.fetchConnection();await e.send(new c.SpeechConnectionMessage(o.MessageType.Binary,"audio",this.privRequestSession.requestId,null,null))}async configureConnection(){let e=await this.connectImpl();return void 0!==this.configConnectionOverride?this.configConnectionOverride(e):(await this.sendSpeechServiceConfig(e,this.privRequestSession,this.privRecognizerConfig.SpeechServiceConfig.serialize()),await this.sendPrePayloadJSON(e,!1),e)}}r.ServiceRecognizerBase=S,S.telemetryDataEnabled=!0},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceTelemetryListener.Internal.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ServiceTelemetryListener=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/RecognitionEvents.js");r.ServiceTelemetryListener=class{constructor(e,r,i){this.privIsDisposed=!1,this.privListeningTriggerMetric=null,this.privMicMetric=null,this.privConnectionEstablishMetric=null,this.privRequestId=e,this.privAudioSourceId=r,this.privAudioNodeId=i,this.privReceivedMessages={},this.privPhraseLatencies=[],this.privHypothesisLatencies=[]}phraseReceived(e){e>0&&this.privPhraseLatencies.push(Date.now()-e)}hypothesisReceived(e){e>0&&this.privHypothesisLatencies.push(Date.now()-e)}onEvent(e){!this.privIsDisposed&&(e instanceof o.RecognitionTriggeredEvent&&e.requestId===this.privRequestId&&(this.privListeningTriggerMetric={End:e.eventTime,Name:"ListeningTrigger",Start:e.eventTime}),e instanceof n.AudioStreamNodeAttachingEvent&&e.audioSourceId===this.privAudioSourceId&&e.audioNodeId===this.privAudioNodeId&&(this.privMicStartTime=e.eventTime),e instanceof n.AudioStreamNodeAttachedEvent&&e.audioSourceId===this.privAudioSourceId&&e.audioNodeId===this.privAudioNodeId&&(this.privMicStartTime=e.eventTime),e instanceof n.AudioSourceErrorEvent&&e.audioSourceId===this.privAudioSourceId&&!this.privMicMetric&&(this.privMicMetric={End:e.eventTime,Error:e.error,Name:"Microphone",Start:this.privMicStartTime}),e instanceof n.AudioStreamNodeErrorEvent&&e.audioSourceId===this.privAudioSourceId&&e.audioNodeId===this.privAudioNodeId&&!this.privMicMetric&&(this.privMicMetric={End:e.eventTime,Error:e.error,Name:"Microphone",Start:this.privMicStartTime}),e instanceof n.AudioStreamNodeDetachedEvent&&e.audioSourceId===this.privAudioSourceId&&e.audioNodeId===this.privAudioNodeId&&!this.privMicMetric&&(this.privMicMetric={End:e.eventTime,Name:"Microphone",Start:this.privMicStartTime}),e instanceof o.ConnectingToServiceEvent&&e.requestId===this.privRequestId&&(this.privConnectionId=e.sessionId),e instanceof n.ConnectionStartEvent&&e.connectionId===this.privConnectionId&&(this.privConnectionStartTime=e.eventTime),e instanceof n.ConnectionEstablishedEvent&&e.connectionId===this.privConnectionId&&!this.privConnectionEstablishMetric&&(this.privConnectionEstablishMetric={End:e.eventTime,Id:this.privConnectionId,Name:"Connection",Start:this.privConnectionStartTime}),e instanceof n.ConnectionEstablishErrorEvent&&e.connectionId===this.privConnectionId&&!this.privConnectionEstablishMetric&&(this.privConnectionEstablishMetric={End:e.eventTime,Error:this.getConnectionError(e.statusCode),Id:this.privConnectionId,Name:"Connection",Start:this.privConnectionStartTime}),e instanceof n.ConnectionMessageReceivedEvent&&e.connectionId===this.privConnectionId&&e.message&&e.message.headers&&e.message.headers.path)&&(this.privReceivedMessages[e.message.headers.path]||(this.privReceivedMessages[e.message.headers.path]=[]),this.privReceivedMessages[e.message.headers.path].length<50&&this.privReceivedMessages[e.message.headers.path].push(e.networkReceivedTime))}getTelemetry(){let e=[];this.privListeningTriggerMetric&&e.push(this.privListeningTriggerMetric),this.privMicMetric&&e.push(this.privMicMetric),this.privConnectionEstablishMetric&&e.push(this.privConnectionEstablishMetric),this.privPhraseLatencies.length>0&&e.push({PhraseLatencyMs:this.privPhraseLatencies}),this.privHypothesisLatencies.length>0&&e.push({FirstHypothesisLatencyMs:this.privHypothesisLatencies});let r=JSON.stringify({Metrics:e,ReceivedMessages:this.privReceivedMessages});return this.privReceivedMessages={},this.privListeningTriggerMetric=null,this.privMicMetric=null,this.privConnectionEstablishMetric=null,this.privPhraseLatencies=[],this.privHypothesisLatencies=[],r}get hasTelemetry(){return 0!==Object.keys(this.privReceivedMessages).length||null!==this.privListeningTriggerMetric||null!==this.privMicMetric||null!==this.privConnectionEstablishMetric||0!==this.privPhraseLatencies.length||0!==this.privHypothesisLatencies.length}dispose(){this.privIsDisposed=!0}getConnectionError(e){switch(e){case 400:case 1002:case 1003:case 1005:case 1007:case 1008:case 1009:return"BadRequest";case 401:return"Unauthorized";case 403:return"Forbidden";case 503:case 1001:return"ServerUnavailable";case 500:case 1011:return"ServerError";case 408:case 504:return"Timeout";default:return"statuscode:"+e.toString()}}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechConnectionFactory.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechConnectionFactory=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ConnectionFactoryBase.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/HeaderNames.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/QueryParameterNames.js"),u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js");class p extends a.ConnectionFactoryBase{constructor(){super(...arguments),this.interactiveRelativeUri="/speech/recognition/interactive/cognitiveservices/v1",this.conversationRelativeUri="/speech/recognition/conversation/cognitiveservices/v1",this.dictationRelativeUri="/speech/recognition/dictation/cognitiveservices/v1",this.universalUri="/stt/speech/universal/v"}async create(e,r,i){let p=e.parameters.getProperty(s.PropertyId.SpeechServiceConnection_Endpoint,void 0),h=e.parameters.getProperty(s.PropertyId.SpeechServiceConnection_Region,void 0),f=a.ConnectionFactoryBase.getHostSuffix(h),m=e.parameters.getProperty(s.PropertyId.SpeechServiceConnection_Host,"wss://"+h+".stt.speech"+f),g={},y=e.parameters.getProperty(s.PropertyId.SpeechServiceConnection_EndpointId,void 0),b=e.parameters.getProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage,void 0);if(y?p&&-1!==p.search(l.QueryParameterNames.CustomSpeechDeploymentId)||(g[l.QueryParameterNames.CustomSpeechDeploymentId]=y):b&&(!p||-1===p.search(l.QueryParameterNames.Language))&&(g[l.QueryParameterNames.Language]=b),p&&-1!==p.search(l.QueryParameterNames.Format)||(g[l.QueryParameterNames.Format]=e.parameters.getProperty(o.OutputFormatPropertyName,s.OutputFormat[s.OutputFormat.Simple]).toLowerCase()),void 0!==e.autoDetectSourceLanguages&&(g[l.QueryParameterNames.EnableLanguageId]="true"),this.setCommonUrlParams(e,g,p),p){let r=new URL(p),i=r.pathname;(""===i||"/"===i)&&(r.pathname=this.universalUri+e.recognitionEndpointVersion,p=await a.ConnectionFactoryBase.getRedirectUrlFromEndpoint(r.toString()))}if(!p)switch(e.recognitionMode){case u.RecognitionMode.Conversation:p="true"===e.parameters.getProperty(o.ForceDictationPropertyName,"false")?m+this.dictationRelativeUri:void 0!==e.recognitionEndpointVersion&&parseInt(e.recognitionEndpointVersion,10)>1?`${m}${this.universalUri}${e.recognitionEndpointVersion}`:m+this.conversationRelativeUri;break;case u.RecognitionMode.Dictation:p=m+this.dictationRelativeUri;break;default:p=void 0!==e.recognitionEndpointVersion&&parseInt(e.recognitionEndpointVersion,10)>1?`${m}${this.universalUri}${e.recognitionEndpointVersion}`:m+this.interactiveRelativeUri}let S={};void 0!==r.token&&""!==r.token&&(S[r.headerName]=r.token),S[d.HeaderNames.ConnectionId]=i,S.connectionId=i;let C="true"===e.parameters.getProperty("SPEECH-EnableWebsocketCompression","false"),_=new n.WebsocketConnection(p,g,S,new c.WebsocketMessageFormatter,n.ProxyInfo.fromRecognizerConfig(e),C,i),w=_.uri;return e.parameters.setProperty(s.PropertyId.SpeechServiceConnection_Url,w),_}}r.SpeechConnectionFactory=p},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechConnectionMessage.Internal.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechConnectionMessage=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/HeaderNames.js");class s extends n.ConnectionMessage{constructor(e,r,i,s,a,c,d,l){if(!r)throw new n.ArgumentNullError("path");if(!i)throw new n.ArgumentNullError("requestId");let u={};if(u[o.HeaderNames.Path]=r,u[o.HeaderNames.RequestId]=i,u[o.HeaderNames.RequestTimestamp]=new Date().toISOString(),s&&(u[o.HeaderNames.ContentType]=s),c&&(u[o.HeaderNames.RequestStreamId]=c),d)for(let e in d)e&&(u[e]=d[e]);l?super(e,a,u,l):super(e,a,u),this.privPath=r,this.privRequestId=i,this.privContentType=s,this.privStreamId=c,this.privAdditionalHeaders=d}get path(){return this.privPath}get requestId(){return this.privRequestId}get contentType(){return this.privContentType}get streamId(){return this.privStreamId}get additionalHeaders(){return this.privAdditionalHeaders}static fromConnectionMessage(e){let r=null,i=null,n=null,a=null,c={};if(e.headers)for(let s in e.headers)s&&(s.toLowerCase()===o.HeaderNames.Path.toLowerCase()?r=e.headers[s]:s.toLowerCase()===o.HeaderNames.RequestId.toLowerCase()?i=e.headers[s]:s.toLowerCase()===o.HeaderNames.ContentType.toLowerCase()?n=e.headers[s]:s.toLowerCase()===o.HeaderNames.RequestStreamId.toLowerCase()?a=e.headers[s]:c[s]=e.headers[s]);return new s(e.messageType,r,i,n,e.body,a,c,e.id)}}r.SpeechConnectionMessage=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechContext.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechContext=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseOutput/PhraseOutput.js");r.SpeechContext=class{constructor(e){this.privContext={},this.privDynamicGrammar=e}getContext(){return this.privContext}setPronunciationAssessmentParams(e,r=!1){void 0===this.privContext.phraseDetection&&(this.privContext.phraseDetection={enrichment:{pronunciationAssessment:{}}}),void 0===this.privContext.phraseDetection.enrichment&&(this.privContext.phraseDetection.enrichment={pronunciationAssessment:{}}),this.privContext.phraseDetection.enrichment.pronunciationAssessment=JSON.parse(e)||{},r&&(this.privContext.phraseDetection.mode=n.RecognitionMode.Conversation),this.setWordLevelTimings(),this.privContext.phraseOutput.detailed.options.push(o.PhraseOption.PronunciationAssessment),-1===this.privContext.phraseOutput.detailed.options.indexOf(o.PhraseOption.SNR)&&this.privContext.phraseOutput.detailed.options.push(o.PhraseOption.SNR)}setDetailedOutputFormat(){void 0===this.privContext.phraseOutput&&(this.privContext.phraseOutput={detailed:{options:[]}}),void 0===this.privContext.phraseOutput.detailed&&(this.privContext.phraseOutput.detailed={options:[]}),this.privContext.phraseOutput.format=o.OutputFormat.Detailed}setWordLevelTimings(){void 0===this.privContext.phraseOutput&&(this.privContext.phraseOutput={detailed:{options:[]}}),void 0===this.privContext.phraseOutput.detailed&&(this.privContext.phraseOutput.detailed={options:[]}),this.privContext.phraseOutput.format=o.OutputFormat.Detailed,-1===this.privContext.phraseOutput.detailed.options.indexOf(o.PhraseOption.WordTimings)&&this.privContext.phraseOutput.detailed.options.push(o.PhraseOption.WordTimings)}setSpeakerDiarizationAudioOffsetMs(e){this.privContext.phraseDetection.speakerDiarization.audioOffsetMs=e}toJSON(){let e=this.privDynamicGrammar.generateGrammarObject();return this.privContext.dgi=e,JSON.stringify(this.privContext)}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceConfig.js":function(e,r){var i,n;Object.defineProperty(r,"__esModule",{value:!0}),r.type=r.connectivity=r.Device=r.OS=r.System=r.Context=r.SpeechServiceConfig=void 0,r.SpeechServiceConfig=class{constructor(e){this.context=e}serialize(){return JSON.stringify(this,(e,r)=>{if(r&&"object"==typeof r&&!Array.isArray(r)){let e={};for(let i in r)Object.hasOwnProperty.call(r,i)&&(e[i&&i.charAt(0).toLowerCase()+i.substring(1)]=r[i]);return e}return r})}get Context(){return this.context}get Recognition(){return this.recognition}set Recognition(e){this.recognition=e.toLowerCase()}},r.Context=class{constructor(e){this.system=new o,this.os=e}};class o{constructor(){this.name="SpeechSDK",this.version="1.47.0",this.build="JavaScript",this.lang="JavaScript"}}r.System=o,r.OS=class{constructor(e,r,i){this.platform=e,this.name=r,this.version=i}},r.Device=class{constructor(e,r,i){this.manufacturer=e,this.model=r,this.version=i}},(i=r.connectivity||(r.connectivity={})).Bluetooth="Bluetooth",i.Wired="Wired",i.WiFi="WiFi",i.Cellular="Cellular",i.InBuilt="InBuilt",i.Unknown="Unknown",(n=r.type||(r.type={})).Phone="Phone",n.Speaker="Speaker",n.Car="Car",n.Headset="Headset",n.Thermostat="Thermostat",n.Microphones="Microphones",n.Deskphone="Deskphone",n.RemoteControl="RemoteControl",n.Unknown="Unknown",n.File="File",n.Stream="Stream"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceInterfaces.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechServiceRecognizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js");class s extends o.ServiceRecognizerBase{constructor(e,r,i,n,o){super(e,r,i,n,o),this.privSpeechRecognizer=o}async processTypeSpecificMessages(e){let r,i=new n.PropertyCollection,s=!1;switch(e.path.toLowerCase()){case"speech.hypothesis":case"speech.fragment":let a=o.SpeechHypothesis.fromJSON(e.textBody,this.privRequestSession.currentTurnAudioOffset);i.setProperty(n.PropertyId.SpeechServiceResponse_JsonResult,a.asJson()),r=new n.SpeechRecognitionResult(this.privRequestSession.requestId,n.ResultReason.RecognizingSpeech,a.Text,a.Duration,a.Offset,a.Language,a.LanguageDetectionConfidence,void 0,void 0,a.asJson(),i),this.privRequestSession.onHypothesis(a.Offset);let c=new n.SpeechRecognitionEventArgs(r,a.Offset,this.privRequestSession.sessionId);if(this.privSpeechRecognizer.recognizing)try{this.privSpeechRecognizer.recognizing(this.privSpeechRecognizer,c)}catch(e){}s=!0;break;case"speech.phrase":let d=o.SimpleSpeechPhrase.fromJSON(e.textBody,this.privRequestSession.currentTurnAudioOffset);i.setProperty(n.PropertyId.SpeechServiceResponse_JsonResult,d.asJson());let l=o.EnumTranslation.implTranslateRecognitionResult(d.RecognitionStatus,this.privExpectContentAssessmentResponse);if(this.privRequestSession.onPhraseRecognized(d.Offset+d.Duration),n.ResultReason.Canceled===l){let e=o.EnumTranslation.implTranslateCancelResult(d.RecognitionStatus),r=o.EnumTranslation.implTranslateCancelErrorCode(d.RecognitionStatus);await this.cancelRecognitionLocal(e,r,o.EnumTranslation.implTranslateErrorDetails(r))}else{if(d.RecognitionStatus===o.RecognitionStatus.EndOfDictation)break;if(this.privRecognizerConfig.parameters.getProperty(o.OutputFormatPropertyName)===n.OutputFormat[n.OutputFormat.Simple])r=new n.SpeechRecognitionResult(this.privRequestSession.requestId,l,d.DisplayText,d.Duration,d.Offset,d.Language,d.LanguageDetectionConfidence,void 0,void 0,d.asJson(),i);else{let s=o.DetailedSpeechPhrase.fromJSON(e.textBody,this.privRequestSession.currentTurnAudioOffset);i.setProperty(n.PropertyId.SpeechServiceResponse_JsonResult,s.asJson()),r=new n.SpeechRecognitionResult(this.privRequestSession.requestId,l,s.RecognitionStatus===o.RecognitionStatus.Success?s.NBest[0].Display:"",s.Duration,s.Offset,s.Language,s.LanguageDetectionConfidence,void 0,void 0,s.asJson(),i)}let s=new n.SpeechRecognitionEventArgs(r,r.offset,this.privRequestSession.sessionId);if(this.privSpeechRecognizer.recognized)try{this.privSpeechRecognizer.recognized(this.privSpeechRecognizer,s)}catch(e){}if(this.privSuccessCallback){try{this.privSuccessCallback(r)}catch(e){this.privErrorCallback&&this.privErrorCallback(e)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}}s=!0}return s}cancelRecognition(e,r,i,s,a){let c=new n.PropertyCollection;if(c.setProperty(o.CancellationErrorCodePropertyName,n.CancellationErrorCode[s]),this.privSpeechRecognizer.canceled){let r=new n.SpeechRecognitionCanceledEventArgs(i,a,s,void 0,e);try{this.privSpeechRecognizer.canceled(this.privSpeechRecognizer,r)}catch{}}if(this.privSuccessCallback){let e=new n.SpeechRecognitionResult(r,n.ResultReason.Canceled,void 0,void 0,void 0,void 0,void 0,void 0,a,void 0,c);try{this.privSuccessCallback(e),this.privSuccessCallback=void 0}catch{}}}}r.SpeechServiceRecognizer=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechSynthesisAdapter.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisAdapter=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js");class s extends o.SynthesisAdapterBase{constructor(e,r,i,n,o){super(e,r,i,o),this.privSpeechSynthesizer=n,this.privSynthesizer=n}setSynthesisContextSynthesisSection(){this.privSynthesisContext.setSynthesisSection(this.privSpeechSynthesizer)}onSynthesisStarted(e){let r=new n.SpeechSynthesisEventArgs(new n.SpeechSynthesisResult(e,n.ResultReason.SynthesizingAudioStarted));this.privSpeechSynthesizer.synthesisStarted&&this.privSpeechSynthesizer.synthesisStarted(this.privSpeechSynthesizer,r)}onSynthesizing(e){if(this.privSpeechSynthesizer.synthesizing)try{let r=this.privSynthesisTurn.audioOutputFormat.addHeader(e),i=new n.SpeechSynthesisEventArgs(new n.SpeechSynthesisResult(this.privSynthesisTurn.requestId,n.ResultReason.SynthesizingAudio,r));this.privSpeechSynthesizer.synthesizing(this.privSpeechSynthesizer,i)}catch(e){}}onSynthesisCancelled(e){if(this.privSpeechSynthesizer.SynthesisCanceled){let r=new n.SpeechSynthesisEventArgs(e);try{this.privSpeechSynthesizer.SynthesisCanceled(this.privSpeechSynthesizer,r)}catch{}}}onSynthesisCompleted(e){if(this.privSpeechSynthesizer.synthesisCompleted)try{this.privSpeechSynthesizer.synthesisCompleted(this.privSpeechSynthesizer,new n.SpeechSynthesisEventArgs(e))}catch(e){}}onWordBoundary(e){if(this.privSpeechSynthesizer.wordBoundary)try{this.privSpeechSynthesizer.wordBoundary(this.privSpeechSynthesizer,e)}catch(e){}}onVisemeReceived(e){if(this.privSpeechSynthesizer.visemeReceived)try{this.privSpeechSynthesizer.visemeReceived(this.privSpeechSynthesizer,e)}catch(e){}}onBookmarkReached(e){if(this.privSpeechSynthesizer.bookmarkReached)try{this.privSpeechSynthesizer.bookmarkReached(this.privSpeechSynthesizer,e)}catch(e){}}}r.SpeechSynthesisAdapter=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechSynthesisConnectionFactory.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisConnectionFactory=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ConnectionFactoryBase.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/HeaderNames.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/QueryParameterNames.js");r.SpeechSynthesisConnectionFactory=class{constructor(){this.synthesisUri="/tts/cognitiveservices/websocket/v1"}async create(e,r,i){let l=e.parameters.getProperty(o.PropertyId.SpeechServiceConnection_Endpoint,void 0),u=e.parameters.getProperty(o.PropertyId.SpeechServiceConnection_Region,void 0),p=s.ConnectionFactoryBase.getHostSuffix(u),h=e.parameters.getProperty(o.PropertyId.SpeechServiceConnection_EndpointId,void 0),f=void 0===h?"tts":"voice",m=e.parameters.getProperty(o.PropertyId.SpeechServiceConnection_Host,"wss://"+u+"."+f+".speech"+p),g={},y={};if(void 0!==r.token&&""!==r.token&&(y[r.headerName]=r.token),y[c.HeaderNames.ConnectionId]=i,void 0===h||""===h||l&&-1!==l.search(d.QueryParameterNames.CustomVoiceDeploymentId)||(g[d.QueryParameterNames.CustomVoiceDeploymentId]=h),e.avatarEnabled&&(!l||-1===l.search(d.QueryParameterNames.EnableAvatar))&&(g[d.QueryParameterNames.EnableAvatar]="true"),l){let e=new URL(l),r=e.pathname;(""===r||"/"===r)&&(e.pathname=this.synthesisUri,l=await s.ConnectionFactoryBase.getRedirectUrlFromEndpoint(e.toString()))}l||(l=m+this.synthesisUri),e.parameters.setProperty(o.PropertyId.SpeechServiceConnection_Url,l);let b="true"===e.parameters.getProperty("SPEECH-EnableWebsocketCompression","false");return new n.WebsocketConnection(l,g,y,new a.WebsocketMessageFormatter,n.ProxyInfo.fromParameters(e.parameters),b,i)}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SynthesisAdapterBase.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisAdapterBase=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechConnectionMessage.Internal.js");class c{constructor(e,r,i,a){if(this.speakOverride=void 0,this.receiveMessageOverride=void 0,this.connectImplOverride=void 0,this.configConnectionOverride=void 0,this.privConnectionConfigurationPromise=void 0,!e)throw new n.ArgumentNullError("authentication");if(!r)throw new n.ArgumentNullError("connectionFactory");if(!i)throw new n.ArgumentNullError("synthesizerConfig");this.privAuthentication=e,this.privConnectionFactory=r,this.privSynthesizerConfig=i,this.privIsDisposed=!1,this.privSessionAudioDestination=a,this.privSynthesisTurn=new s.SynthesisTurn,this.privConnectionEvents=new n.EventSource,this.privServiceEvents=new n.EventSource,this.privSynthesisContext=new s.SynthesisContext,this.privAgentConfig=new s.AgentConfig,this.connectionEvents.attach(e=>{"ConnectionClosedEvent"===e.name&&1e3!==e.statusCode&&this.cancelSynthesisLocal(o.CancellationReason.Error,1007===e.statusCode?o.CancellationErrorCode.BadRequestParameters:o.CancellationErrorCode.ConnectionFailure,`${e.reason} websocket error code: ${e.statusCode}`)})}get synthesizerConfig(){return this.privSynthesizerConfig}get synthesisContext(){return this.privSynthesisContext}get agentConfig(){return this.privAgentConfig}get connectionEvents(){return this.privConnectionEvents}get serviceEvents(){return this.privServiceEvents}set activityTemplate(e){this.privActivityTemplate=e}get activityTemplate(){return this.privActivityTemplate}set audioOutputFormat(e){this.privAudioOutputFormat=e,this.privSynthesisTurn.audioOutputFormat=e,void 0!==this.privSessionAudioDestination&&(this.privSessionAudioDestination.format=e),void 0!==this.synthesisContext&&(this.synthesisContext.audioOutputFormat=e)}isDisposed(){return this.privIsDisposed}async dispose(e){if(this.privIsDisposed=!0,void 0!==this.privSessionAudioDestination&&this.privSessionAudioDestination.close(),void 0!==this.privConnectionConfigurationPromise){let r=await this.privConnectionConfigurationPromise;await r.dispose(e)}}async connect(){await this.connectImpl()}async sendNetworkMessage(e,r){let i="string"==typeof r?n.MessageType.Text:n.MessageType.Binary;return(await this.fetchConnection()).send(new a.SpeechConnectionMessage(i,e,this.privSynthesisTurn.requestId,"string"==typeof r?"application/json":"",r))}async Speak(e,r,i,n,s,a){let c;if(c=r?e:this.privSynthesizer.buildSsml(e),void 0!==this.speakOverride)return this.speakOverride(c,i,n,s);this.privSuccessCallback=n,this.privErrorCallback=s,this.privSynthesisTurn.startNewSynthesis(i,e,r,a);try{await this.connectImpl();let e=await this.fetchConnection();await this.sendSynthesisContext(e),await this.sendSsmlMessage(e,c,i),this.onSynthesisStarted(i),this.receiveMessage()}catch(e){return this.cancelSynthesisLocal(o.CancellationReason.Error,o.CancellationErrorCode.ConnectionFailure,e),Promise.reject(e)}}async stopSpeaking(){return await this.connectImpl(),(await this.fetchConnection()).send(new a.SpeechConnectionMessage(n.MessageType.Text,"synthesis.control",this.privSynthesisTurn.requestId,"application/json",JSON.stringify({action:"stop"})))}cancelSynthesis(e,r,i,n){let a=new o.PropertyCollection;a.setProperty(s.CancellationErrorCodePropertyName,o.CancellationErrorCode[i]);let c=new o.SpeechSynthesisResult(e,o.ResultReason.Canceled,void 0,n,a);if(this.onSynthesisCancelled(c),this.privSuccessCallback)try{this.privSuccessCallback(c)}catch{}}cancelSynthesisLocal(e,r,i){this.privSynthesisTurn.isSynthesizing&&(this.privSynthesisTurn.onStopSynthesizing(),this.cancelSynthesis(this.privSynthesisTurn.requestId,e,r,i))}processTypeSpecificMessages(e){return!0}async receiveMessage(){try{let e=await this.fetchConnection(),r=await e.read();if(void 0!==this.receiveMessageOverride)return this.receiveMessageOverride();if(this.privIsDisposed)return;if(!r)if(!this.privSynthesisTurn.isSynthesizing)return;else return this.receiveMessage();let i=a.SpeechConnectionMessage.fromConnectionMessage(r);if(i.requestId.toLowerCase()===this.privSynthesisTurn.requestId.toLowerCase())switch(i.path.toLowerCase()){case"turn.start":this.privSynthesisTurn.onServiceTurnStartResponse(i.textBody);break;case"response":this.privSynthesisTurn.onServiceResponseMessage(i.textBody);break;case"audio":this.privSynthesisTurn.streamId.toLowerCase()===i.streamId.toLowerCase()&&i.binaryBody&&(this.privSynthesisTurn.onAudioChunkReceived(i.binaryBody),this.onSynthesizing(i.binaryBody),void 0!==this.privSessionAudioDestination&&this.privSessionAudioDestination.write(i.binaryBody));break;case"audio.metadata":for(let e of s.SynthesisAudioMetadata.fromJSON(i.textBody).Metadata)switch(e.Type){case s.MetadataType.WordBoundary:case s.MetadataType.SentenceBoundary:this.privSynthesisTurn.onTextBoundaryEvent(e);let r=new o.SpeechSynthesisWordBoundaryEventArgs(e.Data.Offset,e.Data.Duration,e.Data.text.Text,e.Data.text.Length,e.Type===s.MetadataType.WordBoundary?this.privSynthesisTurn.currentTextOffset:this.privSynthesisTurn.currentSentenceOffset,e.Data.text.BoundaryType);this.onWordBoundary(r);break;case s.MetadataType.Bookmark:let i=new o.SpeechSynthesisBookmarkEventArgs(e.Data.Offset,e.Data.Bookmark);this.onBookmarkReached(i);break;case s.MetadataType.Viseme:if(this.privSynthesisTurn.onVisemeMetadataReceived(e),e.Data.IsLastAnimation){let r=new o.SpeechSynthesisVisemeEventArgs(e.Data.Offset,e.Data.VisemeId,this.privSynthesisTurn.getAndClearVisemeAnimation());this.onVisemeReceived(r)}break;case s.MetadataType.AvatarSignal:this.onAvatarEvent(e);break;case s.MetadataType.SessionEnd:this.privSynthesisTurn.onSessionEnd(e)}break;case"turn.end":let c;this.privSynthesisTurn.onServiceTurnEndResponse();try{c=await this.privSynthesisTurn.constructSynthesisResult(),this.privSuccessCallback&&this.privSuccessCallback(c)}catch(e){this.privErrorCallback&&this.privErrorCallback(e)}this.onSynthesisCompleted(c);break;default:!this.processTypeSpecificMessages(i)&&this.privServiceEvents&&this.serviceEvents.onEvent(new n.ServiceEvent(i.path.toLowerCase(),i.textBody))}return this.receiveMessage()}catch(e){}}sendSynthesisContext(e){this.setSynthesisContextSynthesisSection();let r=this.synthesisContext.toJSON();if(r)return e.send(new a.SpeechConnectionMessage(n.MessageType.Text,"synthesis.context",this.privSynthesisTurn.requestId,"application/json",r))}setSpeechConfigSynthesisSection(){}connectImpl(e=!1){if(null!=this.privConnectionPromise)return this.privConnectionPromise.then(e=>e.state()===n.ConnectionState.Disconnected?(this.privConnectionId=null,this.privConnectionPromise=null,this.connectImpl()):this.privConnectionPromise,()=>(this.privConnectionId=null,this.privConnectionPromise=null,this.connectImpl()));this.privAuthFetchEventId=(0,n.createNoDashGuid)(),this.privConnectionId=(0,n.createNoDashGuid)(),this.privSynthesisTurn.onPreConnectionStart(this.privAuthFetchEventId);let r=e?this.privAuthentication.fetchOnExpiry(this.privAuthFetchEventId):this.privAuthentication.fetch(this.privAuthFetchEventId);return this.privConnectionPromise=r.then(async r=>{this.privSynthesisTurn.onAuthCompleted(!1);let i=await this.privConnectionFactory.create(this.privSynthesizerConfig,r,this.privConnectionId);i.events.attach(e=>{this.connectionEvents.onEvent(e)});let n=await i.open();return 200===n.statusCode?(this.privSynthesisTurn.onConnectionEstablishCompleted(n.statusCode),Promise.resolve(i)):403!==n.statusCode||e?(this.privSynthesisTurn.onConnectionEstablishCompleted(n.statusCode),Promise.reject(`Unable to contact server. StatusCode: ${n.statusCode},
24
24
  ${this.privSynthesizerConfig.parameters.getProperty(o.PropertyId.SpeechServiceConnection_Url)} Reason: ${n.reason}`)):this.connectImpl(!0)},e=>{throw this.privSynthesisTurn.onAuthCompleted(!0),Error(e)}),this.privConnectionPromise.catch(()=>{}),this.privConnectionPromise}sendSpeechServiceConfig(e,r){if(r)return e.send(new a.SpeechConnectionMessage(n.MessageType.Text,"speech.config",this.privSynthesisTurn.requestId,"application/json",r))}sendSsmlMessage(e,r,i){return e.send(new a.SpeechConnectionMessage(n.MessageType.Text,"ssml",i,"application/ssml+xml",r))}async fetchConnection(){return void 0!==this.privConnectionConfigurationPromise?this.privConnectionConfigurationPromise.then(e=>e.state()===n.ConnectionState.Disconnected?(this.privConnectionId=null,this.privConnectionConfigurationPromise=void 0,this.fetchConnection()):this.privConnectionConfigurationPromise,()=>(this.privConnectionId=null,this.privConnectionConfigurationPromise=void 0,this.fetchConnection())):(this.privConnectionConfigurationPromise=this.configureConnection(),await this.privConnectionConfigurationPromise)}async configureConnection(){let e=await this.connectImpl();return void 0!==this.configConnectionOverride?this.configConnectionOverride(e):(this.setSpeechConfigSynthesisSection(),await this.sendSpeechServiceConfig(e,this.privSynthesizerConfig.SpeechServiceConfig.serialize()),e)}onAvatarEvent(e){}onSynthesisStarted(e){}onSynthesizing(e){}onSynthesisCancelled(e){}onSynthesisCompleted(e){}onWordBoundary(e){}onVisemeReceived(e){}onBookmarkReached(e){}}r.SynthesisAdapterBase=c,c.telemetryDataEnabled=!0},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SynthesisContext.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisContext=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");r.SynthesisContext=class{constructor(){this.privContext={}}setSection(e,r){this.privContext[e]=r}set audioOutputFormat(e){this.privAudioOutputFormat=e}toJSON(){return JSON.stringify(this.privContext)}setSynthesisSection(e){let r=this.buildSynthesisContext(e);this.setSection("synthesis",r)}buildSynthesisContext(e){return{audio:{metadataOptions:{bookmarkEnabled:!!e?.bookmarkReached,punctuationBoundaryEnabled:e?.properties.getProperty(n.PropertyId.SpeechServiceResponse_RequestPunctuationBoundary,!!e?.wordBoundary),sentenceBoundaryEnabled:e?.properties.getProperty(n.PropertyId.SpeechServiceResponse_RequestSentenceBoundary,!1),sessionEndEnabled:!0,visemeEnabled:!!e?.visemeReceived,wordBoundaryEnabled:e?.properties.getProperty(n.PropertyId.SpeechServiceResponse_RequestWordBoundary,!!e?.wordBoundary)},outputFormat:this.privAudioOutputFormat.requestAudioFormatString},language:{autoDetection:e?.autoDetectSourceLanguage}}}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SynthesisEvents.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisStartedEvent=r.ConnectingToSynthesisServiceEvent=r.SynthesisTriggeredEvent=r.SpeechSynthesisEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");class o extends n.PlatformEvent{constructor(e,r,i=n.EventType.Info){super(e,i),this.privRequestId=r}get requestId(){return this.privRequestId}}r.SpeechSynthesisEvent=o,r.SynthesisTriggeredEvent=class extends o{constructor(e,r,i){super("SynthesisTriggeredEvent",e),this.privSessionAudioDestinationId=r,this.privTurnAudioDestinationId=i}get audioSessionDestinationId(){return this.privSessionAudioDestinationId}get audioTurnDestinationId(){return this.privTurnAudioDestinationId}},r.ConnectingToSynthesisServiceEvent=class extends o{constructor(e,r){super("ConnectingToSynthesisServiceEvent",e),this.privAuthFetchEventId=r}get authFetchEventId(){return this.privAuthFetchEventId}},r.SynthesisStartedEvent=class extends o{constructor(e,r){super("SynthesisStartedEvent",e),this.privAuthFetchEventId=r}get authFetchEventId(){return this.privAuthFetchEventId}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SynthesisRestAdapter.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisRestAdapter=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ConnectionFactoryBase.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/HeaderNames.js");r.SynthesisRestAdapter=class{constructor(e,r){let i=e.parameters.getProperty(o.PropertyId.SpeechServiceConnection_Endpoint,void 0);if(!i){let r=e.parameters.getProperty(o.PropertyId.SpeechServiceConnection_Region,"westus"),n=s.ConnectionFactoryBase.getHostSuffix(r);i=e.parameters.getProperty(o.PropertyId.SpeechServiceConnection_Host,`https://${r}.tts.speech${n}`)}this.privUri=`${i}/cognitiveservices/voices/list`;let a=n.RestConfigBase.requestOptions;this.privRestAdapter=new n.RestMessageAdapter(a),this.privAuthentication=r}getVoicesList(e){return this.privRestAdapter.setHeaders(a.HeaderNames.ConnectionId,e),this.privAuthentication.fetch(e).then(e=>(this.privRestAdapter.setHeaders(e.headerName,e.token),this.privRestAdapter.request(n.RestRequestType.Get,this.privUri)))}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SynthesisTurn.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisTurn=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/SynthesisAudioMetadata.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SynthesisEvents.js");class d{constructor(){this.privIsDisposed=!1,this.privIsSynthesizing=!1,this.privIsSynthesisEnded=!1,this.privBytesReceived=0,this.privInTurn=!1,this.privTextOffset=0,this.privNextSearchTextIndex=0,this.privSentenceOffset=0,this.privNextSearchSentenceIndex=0,this.privRequestId=(0,n.createNoDashGuid)(),this.privTurnDeferral=new n.Deferred,this.privTurnDeferral.resolve()}get requestId(){return this.privRequestId}get streamId(){return this.privStreamId}set streamId(e){this.privStreamId=e}get audioOutputFormat(){return this.privAudioOutputFormat}set audioOutputFormat(e){this.privAudioOutputFormat=e}get turnCompletionPromise(){return this.privTurnDeferral.promise}get isSynthesisEnded(){return this.privIsSynthesisEnded}get isSynthesizing(){return this.privIsSynthesizing}get currentTextOffset(){return this.privTextOffset}get currentSentenceOffset(){return this.privSentenceOffset}get bytesReceived(){return this.privBytesReceived}get audioDuration(){return this.privAudioDuration}get extraProperties(){if(this.privWebRTCSDP){let e=new s.PropertyCollection;return e.setProperty(s.PropertyId.TalkingAvatarService_WebRTC_SDP,this.privWebRTCSDP),e}}async getAllReceivedAudio(){return this.privReceivedAudio?Promise.resolve(this.privReceivedAudio):this.privIsSynthesisEnded?(await this.readAllAudioFromStream(),Promise.resolve(this.privReceivedAudio)):null}async getAllReceivedAudioWithHeader(){if(this.privReceivedAudioWithHeader)return this.privReceivedAudioWithHeader;if(!this.privIsSynthesisEnded)return null;if(!this.audioOutputFormat.hasHeader)return this.getAllReceivedAudio();{let e=await this.getAllReceivedAudio();return this.privReceivedAudioWithHeader=this.audioOutputFormat.addHeader(e),this.privReceivedAudioWithHeader}}startNewSynthesis(e,r,i,n){this.privIsSynthesisEnded=!1,this.privIsSynthesizing=!0,this.privRequestId=e,this.privRawText=r,this.privIsSSML=i,this.privAudioOutputStream=new o.PullAudioOutputStreamImpl,this.privAudioOutputStream.format=this.privAudioOutputFormat,this.privReceivedAudio=null,this.privReceivedAudioWithHeader=null,this.privBytesReceived=0,this.privTextOffset=0,this.privNextSearchTextIndex=0,this.privSentenceOffset=0,this.privNextSearchSentenceIndex=0,this.privPartialVisemeAnimation="",this.privWebRTCSDP="",void 0!==n&&(this.privTurnAudioDestination=n,this.privTurnAudioDestination.format=this.privAudioOutputFormat),this.onEvent(new c.SynthesisTriggeredEvent(this.requestId,void 0,void 0===n?void 0:n.id()))}onPreConnectionStart(e){this.privAuthFetchEventId=e,this.onEvent(new c.ConnectingToSynthesisServiceEvent(this.privRequestId,this.privAuthFetchEventId))}onAuthCompleted(e){e&&this.onComplete()}onConnectionEstablishCompleted(e){if(200===e){this.onEvent(new c.SynthesisStartedEvent(this.requestId,this.privAuthFetchEventId)),this.privBytesReceived=0;return}403===e&&this.onComplete()}onServiceResponseMessage(e){let r=JSON.parse(e);this.streamId=r.audio.streamId}onServiceTurnEndResponse(){this.privInTurn=!1,this.privTurnDeferral.resolve(),this.onComplete()}onServiceTurnStartResponse(e){this.privTurnDeferral&&this.privInTurn&&(this.privTurnDeferral.reject("Another turn started before current completed."),this.privTurnDeferral.promise.then().catch(()=>{})),this.privInTurn=!0,this.privTurnDeferral=new n.Deferred;let r=JSON.parse(e);r.webrtc&&(this.privWebRTCSDP=r.webrtc.connectionString)}onAudioChunkReceived(e){this.isSynthesizing&&(this.privAudioOutputStream.write(e),this.privBytesReceived+=e.byteLength,void 0!==this.privTurnAudioDestination&&this.privTurnAudioDestination.write(e))}onTextBoundaryEvent(e){this.updateTextOffset(e.Data.text.Text,e.Type)}onVisemeMetadataReceived(e){void 0!==e.Data.AnimationChunk&&(this.privPartialVisemeAnimation+=e.Data.AnimationChunk)}onSessionEnd(e){this.privAudioDuration=e.Data.Offset}async constructSynthesisResult(){let e=await this.getAllReceivedAudioWithHeader();return new s.SpeechSynthesisResult(this.requestId,s.ResultReason.SynthesizingAudioCompleted,e,void 0,this.extraProperties,this.audioDuration)}dispose(){this.privIsDisposed||(this.privIsDisposed=!0)}onStopSynthesizing(){this.onComplete()}getAndClearVisemeAnimation(){let e=this.privPartialVisemeAnimation;return this.privPartialVisemeAnimation="",e}onEvent(e){n.Events.instance.onEvent(e)}static isXmlTag(e){return e.length>=2&&"<"===e[0]&&">"===e[e.length-1]}updateTextOffset(e,r){r===a.MetadataType.WordBoundary?(this.privTextOffset=this.privRawText.indexOf(e,this.privNextSearchTextIndex),this.privTextOffset>=0&&(this.privNextSearchTextIndex=this.privTextOffset+e.length,this.privIsSSML&&this.withinXmlTag(this.privTextOffset)&&!d.isXmlTag(e)&&this.updateTextOffset(e,r))):(this.privSentenceOffset=this.privRawText.indexOf(e,this.privNextSearchSentenceIndex),this.privSentenceOffset>=0&&(this.privNextSearchSentenceIndex=this.privSentenceOffset+e.length,this.privIsSSML&&this.withinXmlTag(this.privSentenceOffset)&&!d.isXmlTag(e)&&this.updateTextOffset(e,r)))}onComplete(){this.privIsSynthesizing&&(this.privIsSynthesizing=!1,this.privIsSynthesisEnded=!0,this.privAudioOutputStream.close(),this.privInTurn=!1,void 0!==this.privTurnAudioDestination&&(this.privTurnAudioDestination.close(),this.privTurnAudioDestination=void 0))}async readAllAudioFromStream(){if(this.privIsSynthesisEnded){this.privReceivedAudio=new ArrayBuffer(this.bytesReceived);try{await this.privAudioOutputStream.read(this.privReceivedAudio)}catch(e){this.privReceivedAudio=new ArrayBuffer(0)}}}withinXmlTag(e){return this.privRawText.indexOf("<",e+1)>this.privRawText.indexOf(">",e+1)}}r.SynthesisTurn=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SynthesizerConfig.js":function(e,r,i){var n,o;Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesizerConfig=r.SynthesisServiceType=void 0;let s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js");(o=n=r.SynthesisServiceType||(r.SynthesisServiceType={}))[o.Standard=0]="Standard",o[o.Custom=1]="Custom",r.SynthesizerConfig=class{constructor(e,r){this.privSynthesisServiceType=n.Standard,this.avatarEnabled=!1,this.privSpeechServiceConfig=e||new s.SpeechServiceConfig(new s.Context(null)),this.privParameters=r}get parameters(){return this.privParameters}get synthesisServiceType(){return this.privSynthesisServiceType}set synthesisServiceType(e){this.privSynthesisServiceType=e}set synthesisVideoSection(e){this.privSpeechServiceConfig.Context.synthesis={video:e}}get SpeechServiceConfig(){return this.privSpeechServiceConfig}setContextFromJson(e){let r=JSON.parse(e);r.system&&(this.privSpeechServiceConfig.Context.system=r.system),r.os&&(this.privSpeechServiceConfig.Context.os=r.os),r.audio&&(this.privSpeechServiceConfig.Context.audio=r.audio),r.synthesis&&(this.privSpeechServiceConfig.Context.synthesis=r.synthesis)}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/TranscriberConnectionFactory.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranscriberConnectionFactory=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ConnectionFactoryBase.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/HeaderNames.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/QueryParameterNames.js");class l extends s.ConnectionFactoryBase{constructor(){super(...arguments),this.multiaudioRelativeUri="/speech/recognition/multiaudio"}create(e,r,i){let d=e.parameters.getProperty(o.PropertyId.SpeechServiceConnection_Endpoint,void 0),l=e.parameters.getProperty(o.PropertyId.SpeechServiceConnection_Region,"centralus"),u=s.ConnectionFactoryBase.getHostSuffix(l),p="wss://transcribe."+l+".cts.speech"+u+this.multiaudioRelativeUri,h=e.parameters.getProperty(o.PropertyId.SpeechServiceConnection_Host,p),f={};this.setQueryParams(f,e,d),d||(d=h);let m={};void 0!==r.token&&""!==r.token&&(m[r.headerName]=r.token),m[c.HeaderNames.ConnectionId]=i,e.parameters.setProperty(o.PropertyId.SpeechServiceConnection_Url,d);let g="true"===e.parameters.getProperty("SPEECH-EnableWebsocketCompression","false");return Promise.resolve(new n.WebsocketConnection(d,f,m,new a.WebsocketMessageFormatter,n.ProxyInfo.fromRecognizerConfig(e),g,i))}setQueryParams(e,r,i){let n=r.parameters.getProperty(o.PropertyId.SpeechServiceConnection_EndpointId,void 0),s=r.parameters.getProperty(o.PropertyId.SpeechServiceConnection_RecoLanguage,void 0);!n||d.QueryParameterNames.CustomSpeechDeploymentId in e||(e[d.QueryParameterNames.CustomSpeechDeploymentId]=n),!s||d.QueryParameterNames.Language in e||(e[d.QueryParameterNames.Language]=s);let c="true"===r.parameters.getProperty(o.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps,"false").toLowerCase(),l=r.parameters.getProperty(a.OutputFormatPropertyName,o.OutputFormat[o.OutputFormat.Simple])!==o.OutputFormat[o.OutputFormat.Simple];(c||l)&&(e[d.QueryParameterNames.Format]=o.OutputFormat[o.OutputFormat.Detailed].toLowerCase()),this.setCommonUrlParams(r,e,i)}}r.TranscriberConnectionFactory=l},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationConnectionConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationConnectionConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/RestConfigBase.js");class o extends n.RestConfigBase{static get host(){return o.privHost}static get apiVersion(){return o.privApiVersion}static get clientAppId(){return o.privClientAppId}static get defaultLanguageCode(){return o.privDefaultLanguageCode}static get restPath(){return o.privRestPath}static get webSocketPath(){return o.privWebSocketPath}static get transcriptionEventKeys(){return o.privTranscriptionEventKeys}}r.ConversationConnectionConfig=o,o.privHost="dev.microsofttranslator.com",o.privRestPath="/capito/room",o.privApiVersion="2.0",o.privDefaultLanguageCode="en-US",o.privClientAppId="FC539C22-1767-4F1F-84BC-B4D811114F15",o.privWebSocketPath="/capito/translate",o.privTranscriptionEventKeys=["iCalUid","callId","organizer","FLAC","MTUri","DifferentiateGuestSpeakers","audiorecording","Threadid","OrganizerMri","OrganizerTenantId","UserToken"]},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationConnectionFactory.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationConnectionFactory=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ConnectionFactoryBase.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationConnectionConfig.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationWebsocketMessageFormatter.js");class u extends c.ConnectionFactoryBase{create(e,r,i){let c=e.parameters.getProperty(a.PropertyId.ConversationTranslator_Host,d.ConversationConnectionConfig.host),u=e.parameters.getProperty(a.PropertyId.ConversationTranslator_CorrelationId,(0,o.createGuid)()),p=`wss://${c}${d.ConversationConnectionConfig.webSocketPath}`,h=e.parameters.getProperty(a.PropertyId.ConversationTranslator_Token,void 0);s.Contracts.throwIfNullOrUndefined(h,"token");let f={};f[d.ConversationConnectionConfig.configParams.apiVersion]=d.ConversationConnectionConfig.apiVersion,f[d.ConversationConnectionConfig.configParams.token]=h,f[d.ConversationConnectionConfig.configParams.correlationId]=u;let m="true"===e.parameters.getProperty("SPEECH-EnableWebsocketCompression","false");return Promise.resolve(new n.WebsocketConnection(p,f,{},new l.ConversationWebsocketMessageFormatter,n.ProxyInfo.fromRecognizerConfig(e),m,i))}}r.ConversationConnectionFactory=u},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationConnectionMessage.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationConnectionMessage=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");class o extends n.ConnectionMessage{constructor(e,r,i,n){super(e,r,i,n);let o=JSON.parse(this.textBody);void 0!==o.type&&(this.privConversationMessageType=o.type)}get conversationMessageType(){return this.privConversationMessageType}}r.ConversationConnectionMessage=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationManager.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationManager=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationConnectionConfig.js");r.ConversationManager=class{constructor(){this.privRequestParams=a.ConversationConnectionConfig.configParams,this.privErrors=a.ConversationConnectionConfig.restErrors,this.privHost=a.ConversationConnectionConfig.host,this.privApiVersion=a.ConversationConnectionConfig.apiVersion,this.privRestPath=a.ConversationConnectionConfig.restPath,this.privRestAdapter=new n.RestMessageAdapter({})}createOrJoin(e,r,i,c){try{o.Contracts.throwIfNullOrUndefined(e,"args");let d=e.getProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage,a.ConversationConnectionConfig.defaultLanguageCode),l=e.getProperty(s.PropertyId.ConversationTranslator_Name,"conversation_host"),u=e.getProperty(s.PropertyId.ConversationTranslator_Host,this.privHost),p=e.getProperty(s.PropertyId.ConversationTranslator_CorrelationId),h=e.getProperty(s.PropertyId.SpeechServiceConnection_Key),f=e.getProperty(s.PropertyId.SpeechServiceConnection_Region),m=e.getProperty(s.PropertyId.SpeechServiceAuthorization_Token);o.Contracts.throwIfNullOrWhitespace(d,"languageCode"),o.Contracts.throwIfNullOrWhitespace(l,"nickname"),o.Contracts.throwIfNullOrWhitespace(u,"endpointHost");let g={};g[this.privRequestParams.apiVersion]=this.privApiVersion,g[this.privRequestParams.languageCode]=d,g[this.privRequestParams.nickname]=l;let y={};p&&(y[this.privRequestParams.correlationId]=p),y[this.privRequestParams.clientAppId]=a.ConversationConnectionConfig.clientAppId,void 0!==r?g[this.privRequestParams.roomId]=r:(o.Contracts.throwIfNullOrUndefined(f,this.privErrors.authInvalidSubscriptionRegion),y[this.privRequestParams.subscriptionRegion]=f,h?y[this.privRequestParams.subscriptionKey]=h:m?y[this.privRequestParams.authorization]=`Bearer ${m}`:o.Contracts.throwIfNullOrUndefined(h,this.privErrors.authInvalidSubscriptionKey));let b={};b.headers=y,this.privRestAdapter.options=b;let S=`https://${u}${this.privRestPath}`;this.privRestAdapter.request(n.RestRequestType.Post,S,g,null).then(e=>{let r=n.RestMessageAdapter.extractHeaderValue(this.privRequestParams.requestId,e.headers);if(!e.ok){if(c){let i,n=this.privErrors.invalidCreateJoinConversationResponse.replace("{status}",e.status.toString());try{i=JSON.parse(e.data),n+=` [${i.error.code}: ${i.error.message}]`}catch(r){n+=` [${e.data}]`}r&&(n+=` ${r}`),c(n)}return}let o=JSON.parse(e.data);if(o&&(o.requestId=r),i){try{i(o)}catch(e){c&&c(e)}i=void 0}}).catch(()=>{})}catch(e){c&&(e instanceof Error?c(e.name+": "+e.message):c(e))}}leave(e,r){return new Promise((i,a)=>{try{o.Contracts.throwIfNullOrUndefined(e,this.privErrors.invalidArgs.replace("{arg}","config")),o.Contracts.throwIfNullOrWhitespace(r,this.privErrors.invalidArgs.replace("{arg}","token"));let a=e.getProperty(s.PropertyId.ConversationTranslator_Host,this.privHost),c=e.getProperty(s.PropertyId.ConversationTranslator_CorrelationId),d={};d[this.privRequestParams.apiVersion]=this.privApiVersion,d[this.privRequestParams.sessionToken]=r;let l={};c&&(l[this.privRequestParams.correlationId]=c);let u={};u.headers=l,this.privRestAdapter.options=u;let p=`https://${a}${this.privRestPath}`;this.privRestAdapter.request(n.RestRequestType.Delete,p,d,null).then(e=>{e.ok,i()}).catch(()=>{})}catch(e){a(e instanceof Error?e.name+": "+e.message:e)}})}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationRequestSession.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationRequestSession=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");r.ConversationRequestSession=class{constructor(e){this.privIsDisposed=!1,this.privDetachables=[],this.privSessionId=e,this.privRequestId=(0,n.createNoDashGuid)(),this.privRequestCompletionDeferral=new n.Deferred}get sessionId(){return this.privSessionId}get requestId(){return this.privRequestId}get completionPromise(){return this.privRequestCompletionDeferral.promise}onPreConnectionStart(e,r){this.privSessionId=r}onAuthCompleted(e){e&&this.onComplete()}onConnectionEstablishCompleted(e){200===e||403===e&&this.onComplete()}onServiceTurnEndResponse(e){e?this.privRequestId=(0,n.createNoDashGuid)():this.onComplete()}async dispose(){if(!this.privIsDisposed)for(let e of(this.privIsDisposed=!0,this.privDetachables))await e.detach()}onComplete(){}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationServiceAdapter.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationServiceAdapter=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationConnectionMessage.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationRequestSession.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorEventArgs.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorInterfaces.js"),u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ServiceMessages/Exports.js");class p extends s.ServiceRecognizerBase{constructor(e,r,i,o,s){super(e,r,i,o,s),this.privConnectionConfigPromise=void 0,this.privLastPartialUtteranceId="",this.privConversationServiceConnector=s,this.privConversationAuthentication=e,this.receiveMessageOverride=()=>this.receiveConversationMessageOverride(),this.recognizeOverride=()=>this.noOp(),this.postConnectImplOverride=e=>this.conversationConnectImpl(e),this.configConnectionOverride=()=>this.configConnection(),this.disconnectOverride=()=>this.privDisconnect(),this.privConversationRequestSession=new c.ConversationRequestSession((0,n.createNoDashGuid)()),this.privConversationConnectionFactory=r,this.privConversationIsDisposed=!1}isDisposed(){return super.isDisposed()||this.privConversationIsDisposed}async dispose(e){if(this.privConversationIsDisposed=!0,void 0!==this.privConnectionConfigPromise){let r=await this.privConnectionConfigPromise;await r.dispose(e)}await super.dispose(e)}async sendMessage(e){return(await this.fetchConnection()).send(new a.ConversationConnectionMessage(n.MessageType.Text,e))}async sendMessageAsync(e){let r=await this.fetchConnection();await r.send(new a.ConversationConnectionMessage(n.MessageType.Text,e))}privDisconnect(){if(!this.terminateMessageLoop)return this.cancelRecognition(this.privConversationRequestSession.sessionId,this.privConversationRequestSession.requestId,o.CancellationReason.Error,o.CancellationErrorCode.NoError,"Disconnecting"),this.terminateMessageLoop=!0,Promise.resolve()}async processTypeSpecificMessages(){return!0}cancelRecognition(e,r,i,n,s){this.terminateMessageLoop=!0;let a=new o.ConversationTranslationCanceledEventArgs(i,s,n,void 0,e);try{this.privConversationServiceConnector.canceled&&this.privConversationServiceConnector.canceled(this.privConversationServiceConnector,a)}catch{}}async conversationConnectImpl(e){return this.privConnectionLoop=this.startMessageLoop(),e}async receiveConversationMessageOverride(){if(this.isDisposed()||this.terminateMessageLoop)return Promise.resolve();let e=new n.Deferred;try{let r=await this.fetchConnection(),i=await r.read();if(this.isDisposed()||this.terminateMessageLoop)return e.resolve(),Promise.resolve();if(!i)return this.receiveConversationMessageOverride();let n=this.privConversationRequestSession.sessionId,a=i.conversationMessageType.toLowerCase(),c=!1;try{switch(a){case"info":case"participant_command":case"command":let e=u.CommandResponsePayload.fromJSON(i.textBody);switch(e.command.toLowerCase()){case"participantlist":let r=u.ParticipantsListPayloadResponse.fromJSON(i.textBody),p=r.participants.map(e=>({avatar:e.avatar,displayName:e.nickname,id:e.participantId,isHost:e.ishost,isMuted:e.ismuted,isUsingTts:e.usetts,preferredLanguage:e.locale}));this.privConversationServiceConnector.participantsListReceived&&this.privConversationServiceConnector.participantsListReceived(this.privConversationServiceConnector,new d.ParticipantsListEventArgs(r.roomid,r.token,r.translateTo,r.profanityFilter,r.roomProfanityFilter,r.roomLocked,r.muteAll,p,n));break;case"settranslatetolanguages":this.privConversationServiceConnector.participantUpdateCommandReceived&&this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector,new d.ParticipantAttributeEventArgs(e.participantId,l.ConversationTranslatorCommandTypes.setTranslateToLanguages,e.value,n));break;case"setprofanityfiltering":this.privConversationServiceConnector.participantUpdateCommandReceived&&this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector,new d.ParticipantAttributeEventArgs(e.participantId,l.ConversationTranslatorCommandTypes.setProfanityFiltering,e.value,n));break;case"setmute":this.privConversationServiceConnector.participantUpdateCommandReceived&&this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector,new d.ParticipantAttributeEventArgs(e.participantId,l.ConversationTranslatorCommandTypes.setMute,e.value,n));break;case"setmuteall":this.privConversationServiceConnector.muteAllCommandReceived&&this.privConversationServiceConnector.muteAllCommandReceived(this.privConversationServiceConnector,new d.MuteAllEventArgs(e.value,n));break;case"roomexpirationwarning":this.privConversationServiceConnector.conversationExpiration&&this.privConversationServiceConnector.conversationExpiration(this.privConversationServiceConnector,new o.ConversationExpirationEventArgs(e.value,this.privConversationRequestSession.sessionId));break;case"setusetts":this.privConversationServiceConnector.participantUpdateCommandReceived&&this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector,new d.ParticipantAttributeEventArgs(e.participantId,l.ConversationTranslatorCommandTypes.setUseTTS,e.value,n));break;case"setlockstate":this.privConversationServiceConnector.lockRoomCommandReceived&&this.privConversationServiceConnector.lockRoomCommandReceived(this.privConversationServiceConnector,new d.LockRoomEventArgs(e.value,n));break;case"changenickname":this.privConversationServiceConnector.participantUpdateCommandReceived&&this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector,new d.ParticipantAttributeEventArgs(e.participantId,l.ConversationTranslatorCommandTypes.changeNickname,e.value,n));break;case"joinsession":let h=u.ParticipantPayloadResponse.fromJSON(i.textBody),f={avatar:h.avatar,displayName:h.nickname,id:h.participantId,isHost:h.ishost,isMuted:h.ismuted,isUsingTts:h.usetts,preferredLanguage:h.locale};this.privConversationServiceConnector.participantJoinCommandReceived&&this.privConversationServiceConnector.participantJoinCommandReceived(this.privConversationServiceConnector,new d.ParticipantEventArgs(f,n));break;case"leavesession":let m={id:e.participantId};this.privConversationServiceConnector.participantLeaveCommandReceived&&this.privConversationServiceConnector.participantLeaveCommandReceived(this.privConversationServiceConnector,new d.ParticipantEventArgs(m,n));break;case"disconnectsession":e.participantId;break;case"token":let g=new s.CognitiveTokenAuthentication(()=>{let r=e.token;return Promise.resolve(r)},()=>{let r=e.token;return Promise.resolve(r)});this.authentication=g,this.privConversationServiceConnector.onToken(g)}break;case"partial":case"final":let y=u.SpeechResponsePayload.fromJSON(i.textBody),b="final"===a?o.ResultReason.TranslatedParticipantSpeech:o.ResultReason.TranslatingParticipantSpeech,S=new o.ConversationTranslationResult(y.participantId,this.getTranslations(y.translations),y.language,y.id,b,y.recognition,void 0,void 0,i.textBody,void 0);y.isFinal?(void 0!==S.text&&S.text.length>0?c=!0:y.id===this.privLastPartialUtteranceId&&(c=!0),c&&this.privConversationServiceConnector.translationReceived&&this.privConversationServiceConnector.translationReceived(this.privConversationServiceConnector,new d.ConversationReceivedTranslationEventArgs(l.ConversationTranslatorMessageTypes.final,S,n))):void 0!==S.text&&(this.privLastPartialUtteranceId=y.id,this.privConversationServiceConnector.translationReceived&&this.privConversationServiceConnector.translationReceived(this.privConversationServiceConnector,new d.ConversationReceivedTranslationEventArgs(l.ConversationTranslatorMessageTypes.partial,S,n)));break;case"translated_message":let C=u.TextResponsePayload.fromJSON(i.textBody),_=new o.ConversationTranslationResult(C.participantId,this.getTranslations(C.translations),C.language,void 0,void 0,C.originalText,void 0,void 0,void 0,i.textBody,void 0);this.privConversationServiceConnector.translationReceived&&this.privConversationServiceConnector.translationReceived(this.privConversationServiceConnector,new d.ConversationReceivedTranslationEventArgs(l.ConversationTranslatorMessageTypes.instantMessage,_,n))}}catch(e){}return this.receiveConversationMessageOverride()}catch(e){this.terminateMessageLoop=!0}return e.promise}async startMessageLoop(){if(this.isDisposed())return Promise.resolve();this.terminateMessageLoop=!1;let e=this.receiveConversationMessageOverride();try{return await e}catch(e){return this.cancelRecognition(this.privRequestSession?this.privRequestSession.sessionId:"",this.privRequestSession?this.privRequestSession.requestId:"",o.CancellationReason.Error,o.CancellationErrorCode.RuntimeError,e),null}}configConnection(){return this.isDisposed()?Promise.resolve(void 0):void 0!==this.privConnectionConfigPromise?this.privConnectionConfigPromise.then(e=>e.state()===n.ConnectionState.Disconnected?(this.privConnectionId=null,this.privConnectionConfigPromise=void 0,this.configConnection()):this.privConnectionConfigPromise,()=>(this.privConnectionId=null,this.privConnectionConfigPromise=void 0,this.configConnection())):this.terminateMessageLoop?Promise.resolve(void 0):(this.privConnectionConfigPromise=this.connectImpl().then(e=>e),this.privConnectionConfigPromise)}getTranslations(e){let r;if(void 0!==e)for(let i of(r=new o.Translations,e))r.set(i.lang,i.translation);return r}}r.ConversationServiceAdapter=p},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorConnectionFactory.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslatorConnectionFactory=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/StringUtils.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/HeaderNames.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/QueryParameterNames.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ConnectionFactoryBase.js"),u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js");class p extends l.ConnectionFactoryBase{constructor(e){super(),s.Contracts.throwIfNullOrUndefined(e,"convGetter"),this.privConvGetter=e}create(e,r,i){let s="TRUE"===e.parameters.getProperty("ConversationTranslator_MultiChannelAudio","").toUpperCase(),h=this.privConvGetter().room,f=h.cognitiveSpeechRegion||e.parameters.getProperty(a.PropertyId.SpeechServiceConnection_Region,""),m={hostSuffix:l.ConnectionFactoryBase.getHostSuffix(f),path:p.CTS_VIRT_MIC_PATH,region:encodeURIComponent(f)};m[d.QueryParameterNames.Language]=encodeURIComponent(e.parameters.getProperty(a.PropertyId.SpeechServiceConnection_RecoLanguage,"")),m[d.QueryParameterNames.CtsMeetingId]=encodeURIComponent(h.roomId),m[d.QueryParameterNames.CtsDeviceId]=encodeURIComponent(h.participantId),m[d.QueryParameterNames.CtsIsParticipant]=h.isHost?"":"&"+d.QueryParameterNames.CtsIsParticipant;let g="",y={},b={};if(s){(g=e.parameters.getProperty(a.PropertyId.SpeechServiceConnection_Endpoint))||(g="wss://"+e.parameters.getProperty(a.PropertyId.SpeechServiceConnection_Host,"transcribe.{region}.cts.speech{hostSuffix}")+"{path}");let r=new URL(g=o.StringUtils.formatString(g,m));r.searchParams.forEach((e,r)=>{y[r]=e}),new u.TranscriberConnectionFactory().setQueryParams(y,e,g),y[d.QueryParameterNames.CtsMeetingId]=m[d.QueryParameterNames.CtsMeetingId],y[d.QueryParameterNames.CtsDeviceId]=m[d.QueryParameterNames.CtsDeviceId],h.isHost||(y[d.QueryParameterNames.CtsIsParticipant]=""),d.QueryParameterNames.Format in y||(y[d.QueryParameterNames.Format]="simple"),r.searchParams.forEach((e,i)=>{r.searchParams.set(i,y[i]),delete y[i]}),g=r.toString()}else{let r=new u.TranslationConnectionFactory;g=r.getEndpointUrl(e,!0),g=o.StringUtils.formatString(g,m),r.setQueryParams(y,e,g)}b[c.HeaderNames.ConnectionId]=i,b[n.RestConfigBase.configParams.token]=h.token,r.token&&(b[r.headerName]=r.token);let S="TRUE"===e.parameters.getProperty("SPEECH-EnableWebsocketCompression","").toUpperCase();return Promise.resolve(new n.WebsocketConnection(g,y,b,new u.WebsocketMessageFormatter,n.ProxyInfo.fromRecognizerConfig(e),S,i))}}r.ConversationTranslatorConnectionFactory=p,p.CTS_VIRT_MIC_PATH="/speech/recognition/dynamicaudio"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationReceivedTranslationEventArgs=r.ParticipantsListEventArgs=r.ParticipantAttributeEventArgs=r.ParticipantEventArgs=r.LockRoomEventArgs=r.MuteAllEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r){super(r),this.privIsMuted=e}get isMuted(){return this.privIsMuted}}r.MuteAllEventArgs=o;class s extends n.SessionEventArgs{constructor(e,r){super(r),this.privIsLocked=e}get isMuted(){return this.privIsLocked}}r.LockRoomEventArgs=s;class a extends n.SessionEventArgs{constructor(e,r){super(r),this.privParticipant=e}get participant(){return this.privParticipant}}r.ParticipantEventArgs=a;class c extends n.SessionEventArgs{constructor(e,r,i,n){super(n),this.privKey=r,this.privValue=i,this.privParticipantId=e}get value(){return this.privValue}get key(){return this.privKey}get id(){return this.privParticipantId}}r.ParticipantAttributeEventArgs=c;class d extends n.SessionEventArgs{constructor(e,r,i,n,o,s,a,c,d){super(d),this.privRoomId=e,this.privSessionToken=r,this.privTranslateTo=i,this.privProfanityFilter=n,this.privRoomProfanityFilter=o,this.privIsRoomLocked=s,this.privIsRoomLocked=a,this.privParticipants=c}get sessionToken(){return this.privSessionToken}get conversationId(){return this.privRoomId}get translateTo(){return this.privTranslateTo}get profanityFilter(){return this.privProfanityFilter}get roomProfanityFilter(){return this.privRoomProfanityFilter}get isRoomLocked(){return this.privIsRoomLocked}get isMuteAll(){return this.privIsMuteAll}get participants(){return this.privParticipants}}r.ParticipantsListEventArgs=d,r.ConversationReceivedTranslationEventArgs=class{constructor(e,r,i){this.privPayload=r,this.privCommand=e,this.privSessionId=i}get payload(){return this.privPayload}get command(){return this.privCommand}get sessionId(){return this.privSessionId}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorInterfaces.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslatorCommandTypes=r.ConversationTranslatorMessageTypes=r.InternalParticipants=void 0,r.InternalParticipants=class{constructor(e=[],r){this.participants=e,this.meId=r}addOrUpdateParticipant(e){if(void 0===e)return;let r=this.getParticipantIndex(e.id);return r>-1?this.participants.splice(r,1,e):this.participants.push(e),this.getParticipant(e.id)}getParticipantIndex(e){return this.participants.findIndex(r=>r.id===e)}getParticipant(e){return this.participants.find(r=>r.id===e)}deleteParticipant(e){this.participants=this.participants.filter(r=>r.id!==e)}get host(){return this.participants.find(e=>!0===e.isHost)}get me(){return this.getParticipant(this.meId)}},r.ConversationTranslatorMessageTypes={command:"command",final:"final",info:"info",instantMessage:"instant_message",keepAlive:"keep_alive",partial:"partial",participantCommand:"participant_command",translatedMessage:"translated_message"},r.ConversationTranslatorCommandTypes={changeNickname:"ChangeNickname",disconnectSession:"DisconnectSession",ejectParticipant:"EjectParticipant",instant_message:"instant_message",joinSession:"JoinSession",leaveSession:"LeaveSession",participantList:"ParticipantList",roomExpirationWarning:"RoomExpirationWarning",setLockState:"SetLockState",setMute:"SetMute",setMuteAll:"SetMuteAll",setProfanityFiltering:"SetProfanityFiltering",setTranslateToLanguages:"SetTranslateToLanguages",setUseTTS:"SetUseTTS"}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorRecognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslatorRecognizer=r.ConversationRecognizerFactory=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationConnectionFactory.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationServiceAdapter.js");r.ConversationRecognizerFactory=class{static fromConfig(e,r,i){return new l(e,r,i)}};class l extends a.Recognizer{constructor(e,r,i){s.Contracts.throwIfNull(r,"speechConfig"),s.Contracts.throwIfNull(e,"conversationImpl"),super(i,r.properties,new c.ConversationConnectionFactory),this.privConversation=e,this.privIsDisposed=!1,this.privProperties=r.properties.clone(),this.privConnection=a.Connection.fromRecognizer(this),"on"===this.privProperties.getProperty(a.PropertyId.WebWorkerLoadType,"on").toLowerCase()&&"undefined"!=typeof Blob&&"undefined"!=typeof Worker?(this.privSetTimeout=o.Timeout.setTimeout,this.privClearTimeout=o.Timeout.clearTimeout):"undefined"!=typeof window?(this.privSetTimeout=window.setTimeout.bind(window),this.privClearTimeout=window.clearTimeout.bind(window)):(this.privSetTimeout=setTimeout,this.privClearTimeout=clearTimeout)}set connected(e){this.privConnection.connected=e}set disconnected(e){this.privConnection.disconnected=e}get speechRecognitionLanguage(){return this.privSpeechRecognitionLanguage}get properties(){return this.privProperties}isDisposed(){return this.privIsDisposed}connect(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfNullOrWhitespace(e,"token"),this.privReco.conversationTranslatorToken=e,this.resetConversationTimeout(),this.privReco.connectAsync(r,i)}catch(e){i&&(e instanceof Error?i(e.name+": "+e.message):i(e))}}disconnect(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),void 0!==this.privTimeoutToken&&this.privClearTimeout(this.privTimeoutToken),this.privReco.disconnect().then(()=>{e&&e()},e=>{r&&r(e)})}catch(e){r&&(e instanceof Error?r(e.name+": "+e.message):r(e)),this.dispose(!0).catch(e=>{o.Events.instance.onEvent(new o.BackgroundEvent(e))})}}sendRequest(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),this.sendMessage(e,r,i)}catch(e){i&&(e instanceof Error?i(e.name+": "+e.message):i(e)),this.dispose(!0).catch(e=>{o.Events.instance.onEvent(new o.BackgroundEvent(e))})}}onToken(e){this.privConversation.onToken(e)}async close(){this.privIsDisposed||(this.privConnection&&(this.privConnection.closeConnection(),this.privConnection.close()),this.privConnection=void 0,await this.dispose(!0))}async dispose(e){!this.privIsDisposed&&e&&(void 0!==this.privTimeoutToken&&this.privClearTimeout(this.privTimeoutToken),this.privIsDisposed=!0,this.privConnection&&(this.privConnection.closeConnection(),this.privConnection.close(),this.privConnection=void 0),await super.dispose(e))}createRecognizerConfig(e){return new n.RecognizerConfig(e,this.privProperties)}createServiceRecognizer(e,r,i,n){return new d.ConversationServiceAdapter(e,r,i,n,this)}sendMessage(e,r,i){var n;n=this.privReco.sendMessageAsync(e),void 0!==n?n.then(()=>{try{r&&r()}catch(e){i&&i(`'Unhandled error on promise callback: ${e}'`)}},e=>{try{i&&i(e)}catch(e){}}):i&&i("Null promise"),this.resetConversationTimeout()}resetConversationTimeout(){void 0!==this.privTimeoutToken&&this.privClearTimeout(this.privTimeoutToken),this.privTimeoutToken=this.privSetTimeout(()=>{this.sendRequest(this.privConversation.getKeepAlive())},6e4)}}r.ConversationTranslatorRecognizer=l},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationWebsocketMessageFormatter.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationWebsocketMessageFormatter=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationConnectionMessage.js");r.ConversationWebsocketMessageFormatter=class{toConnectionMessage(e){let r=new n.Deferred;try{if(e.messageType===n.MessageType.Text){let i=new o.ConversationConnectionMessage(e.messageType,e.textContent,{},e.id);r.resolve(i)}else e.messageType===n.MessageType.Binary&&r.resolve(new o.ConversationConnectionMessage(e.messageType,e.binaryContent,void 0,e.id))}catch(e){r.reject(`Error formatting the message. Error: ${e}`)}return r.promise}fromConnectionMessage(e){let r=new n.Deferred;try{if(e.messageType===n.MessageType.Text){let i=`${e.textBody?e.textBody:""}`;r.resolve(new n.RawWebsocketMessage(n.MessageType.Text,i,e.id))}}catch(e){r.reject(`Error formatting the message. ${e}`)}return r.promise}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/Exports.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.InternalParticipants=r.ConversationTranslatorMessageTypes=r.ConversationTranslatorCommandTypes=r.ParticipantsListEventArgs=r.ParticipantEventArgs=r.ParticipantAttributeEventArgs=r.MuteAllEventArgs=r.LockRoomEventArgs=r.ConversationReceivedTranslationEventArgs=r.TranscriberRecognizer=r.ConversationRecognizerFactory=r.ConversationConnectionConfig=r.ConversationManager=void 0;var n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationManager.js");Object.defineProperty(r,"ConversationManager",{enumerable:!0,get:function(){return n.ConversationManager}});var o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationConnectionConfig.js");Object.defineProperty(r,"ConversationConnectionConfig",{enumerable:!0,get:function(){return o.ConversationConnectionConfig}});var s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorRecognizer.js");Object.defineProperty(r,"ConversationRecognizerFactory",{enumerable:!0,get:function(){return s.ConversationRecognizerFactory}});var a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/TranscriberRecognizer.js");Object.defineProperty(r,"TranscriberRecognizer",{enumerable:!0,get:function(){return a.TranscriberRecognizer}});var c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorEventArgs.js");Object.defineProperty(r,"ConversationReceivedTranslationEventArgs",{enumerable:!0,get:function(){return c.ConversationReceivedTranslationEventArgs}}),Object.defineProperty(r,"LockRoomEventArgs",{enumerable:!0,get:function(){return c.LockRoomEventArgs}}),Object.defineProperty(r,"MuteAllEventArgs",{enumerable:!0,get:function(){return c.MuteAllEventArgs}}),Object.defineProperty(r,"ParticipantAttributeEventArgs",{enumerable:!0,get:function(){return c.ParticipantAttributeEventArgs}}),Object.defineProperty(r,"ParticipantEventArgs",{enumerable:!0,get:function(){return c.ParticipantEventArgs}}),Object.defineProperty(r,"ParticipantsListEventArgs",{enumerable:!0,get:function(){return c.ParticipantsListEventArgs}});var d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorInterfaces.js");Object.defineProperty(r,"ConversationTranslatorCommandTypes",{enumerable:!0,get:function(){return d.ConversationTranslatorCommandTypes}}),Object.defineProperty(r,"ConversationTranslatorMessageTypes",{enumerable:!0,get:function(){return d.ConversationTranslatorMessageTypes}}),Object.defineProperty(r,"InternalParticipants",{enumerable:!0,get:function(){return d.InternalParticipants}})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ServiceMessages/CommandResponsePayload.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CommandResponsePayload=void 0;class i{constructor(e){this.privCommandResponse=JSON.parse(e)}get type(){return this.privCommandResponse.type}get command(){return this.privCommandResponse.command}get id(){return this.privCommandResponse.id}get nickname(){return this.privCommandResponse.nickname}get participantId(){return this.privCommandResponse.participantId}get roomid(){return this.privCommandResponse.roomid}get value(){return this.privCommandResponse.value}get token(){return this.privCommandResponse.token}static fromJSON(e){return new i(e)}}r.CommandResponsePayload=i},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ServiceMessages/Exports.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TextResponsePayload=r.SpeechResponsePayload=r.ParticipantPayloadResponse=r.ParticipantsListPayloadResponse=r.CommandResponsePayload=void 0;var n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ServiceMessages/CommandResponsePayload.js");Object.defineProperty(r,"CommandResponsePayload",{enumerable:!0,get:function(){return n.CommandResponsePayload}});var o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ServiceMessages/ParticipantResponsePayload.js");Object.defineProperty(r,"ParticipantsListPayloadResponse",{enumerable:!0,get:function(){return o.ParticipantsListPayloadResponse}}),Object.defineProperty(r,"ParticipantPayloadResponse",{enumerable:!0,get:function(){return o.ParticipantPayloadResponse}});var s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ServiceMessages/TranslationResponsePayload.js");Object.defineProperty(r,"SpeechResponsePayload",{enumerable:!0,get:function(){return s.SpeechResponsePayload}}),Object.defineProperty(r,"TextResponsePayload",{enumerable:!0,get:function(){return s.TextResponsePayload}})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ServiceMessages/ParticipantResponsePayload.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ParticipantPayloadResponse=r.ParticipantsListPayloadResponse=void 0;class i{constructor(e){this.privParticipantsPayloadResponse=JSON.parse(e)}get roomid(){return this.privParticipantsPayloadResponse.roomid}get id(){return this.privParticipantsPayloadResponse.id}get command(){return this.privParticipantsPayloadResponse.command}get participants(){return this.privParticipantsPayloadResponse.participants}get token(){return this.privParticipantsPayloadResponse.token}get translateTo(){return this.privParticipantsPayloadResponse.translateTo}get profanityFilter(){return this.privParticipantsPayloadResponse.profanityFilter}get roomProfanityFilter(){return this.privParticipantsPayloadResponse.roomProfanityFilter}get roomLocked(){return this.privParticipantsPayloadResponse.roomLocked}get muteAll(){return this.privParticipantsPayloadResponse.muteAll}get type(){return this.privParticipantsPayloadResponse.type}static fromJSON(e){return new i(e)}}r.ParticipantsListPayloadResponse=i;class n{constructor(e){this.privParticipantPayloadResponse=JSON.parse(e)}get nickname(){return this.privParticipantPayloadResponse.nickname}get locale(){return this.privParticipantPayloadResponse.locale}get usetts(){return this.privParticipantPayloadResponse.usetts}get ismuted(){return this.privParticipantPayloadResponse.ismuted}get ishost(){return this.privParticipantPayloadResponse.ishost}get participantId(){return this.privParticipantPayloadResponse.participantId}get avatar(){return this.privParticipantPayloadResponse.avatar}static fromJSON(e){return new n(e)}}r.ParticipantPayloadResponse=n},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ServiceMessages/TranslationResponsePayload.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TextResponsePayload=r.SpeechResponsePayload=void 0;class i{constructor(e){this.privSpeechResponse=JSON.parse(e)}get recognition(){return this.privSpeechResponse.recognition}get translations(){return this.privSpeechResponse.translations}get id(){return this.privSpeechResponse.id}get language(){return this.privSpeechResponse.language}get nickname(){return this.privSpeechResponse.nickname}get participantId(){return this.privSpeechResponse.participantId}get roomid(){return this.privSpeechResponse.roomid}get timestamp(){return this.privSpeechResponse.timestamp}get type(){return this.privSpeechResponse.type}get isFinal(){return"final"===this.privSpeechResponse.type}static fromJSON(e){return new i(e)}}r.SpeechResponsePayload=i;class n{constructor(e){this.privTextResponse=JSON.parse(e)}get originalText(){return this.privTextResponse.originalText}get translations(){return this.privTextResponse.translations}get id(){return this.privTextResponse.id}get language(){return this.privTextResponse.language}get nickname(){return this.privTextResponse.nickname}get participantId(){return this.privTextResponse.participantId}get roomid(){return this.privTextResponse.roomid}get timestamp(){return this.privTextResponse.timestamp}get type(){return this.privTextResponse.type}static fromJSON(e){return new n(e)}}r.TextResponsePayload=n},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/TranscriberRecognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranscriberRecognizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js");class d extends s.Recognizer{constructor(e,r){o.Contracts.throwIfNull(e,"speechTranslationConfig"),o.Contracts.throwIfNull(r,"audioConfigImpl"),o.Contracts.throwIfNullOrWhitespace(e.speechRecognitionLanguage,s.PropertyId[s.PropertyId.SpeechServiceConnection_RecoLanguage]),super(r,e.properties,new a.TranscriberConnectionFactory),this.privDisposedRecognizer=!1,this.isMeetingRecognizer=!1}get speechRecognitionLanguage(){return o.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage)}get properties(){return this.privProperties}get authorizationToken(){return this.properties.getProperty(s.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){o.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,e)}set conversation(e){o.Contracts.throwIfNullOrUndefined(e,"Conversation"),this.isMeetingRecognizer=!1,this.privConversation=e}getConversationInfo(){return o.Contracts.throwIfNullOrUndefined(this.privConversation,"Conversation"),this.privConversation.conversationInfo}set meeting(e){o.Contracts.throwIfNullOrUndefined(e,"Meeting"),this.isMeetingRecognizer=!0,this.privMeeting=e}getMeetingInfo(){return o.Contracts.throwIfNullOrUndefined(this.privMeeting,"Meeting"),this.privMeeting.meetingInfo}IsMeetingRecognizer(){return this.isMeetingRecognizer}startContinuousRecognitionAsync(e,r){(0,n.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(c.RecognitionMode.Conversation),e,r)}stopContinuousRecognitionAsync(e,r){(0,n.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),e,r)}async close(){this.privDisposedRecognizer||await this.dispose(!0)}async pushConversationEvent(e,r){let i=this.privReco;o.Contracts.throwIfNullOrUndefined(i,"serviceRecognizer"),await i.sendSpeechEventAsync(e,r)}async pushMeetingEvent(e,r){let i=this.privReco;o.Contracts.throwIfNullOrUndefined(i,"serviceRecognizer"),await i.sendMeetingSpeechEventAsync(e,r)}async enforceAudioGating(){let e=this.audioConfig,r=(await e.format).channels;if(1===r){if("true"!==this.properties.getProperty("f0f5debc-f8c9-4892-ac4b-90a7ab359fd2","false").toLowerCase())throw Error("Single channel audio configuration for MeetingTranscriber is currently under private preview, please contact diarizationrequest@microsoft.com for more details")}else if(8!==r)throw Error(`Unsupported audio configuration: Detected ${r}-channel audio`)}connectMeetingCallbacks(e){this.isMeetingRecognizer=!0,this.canceled=(r,i)=>{e.canceled&&e.canceled(e,i)},this.recognizing=(r,i)=>{e.transcribing&&e.transcribing(e,i)},this.recognized=(r,i)=>{e.transcribed&&e.transcribed(e,i)},this.sessionStarted=(r,i)=>{e.sessionStarted&&e.sessionStarted(e,i)},this.sessionStopped=(r,i)=>{e.sessionStopped&&e.sessionStopped(e,i)}}disconnectCallbacks(){this.canceled=void 0,this.recognizing=void 0,this.recognized=void 0,this.sessionStarted=void 0,this.sessionStopped=void 0}async dispose(e){this.privDisposedRecognizer||(e&&(this.privDisposedRecognizer=!0,await this.implRecognizerStop()),await super.dispose(e))}createRecognizerConfig(e){return new a.RecognizerConfig(e,this.properties)}createServiceRecognizer(e,r,i,n){return new a.TranscriptionServiceRecognizer(e,r,i,n,this)}}r.TranscriberRecognizer=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/TranscriptionServiceRecognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranscriptionServiceRecognizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechConnectionMessage.Internal.js");class c extends s.ConversationServiceRecognizer{constructor(e,r,i,n,s){super(e,r,i,n,s),this.privTranscriberRecognizer=s,this.sendPrePayloadJSONOverride=e=>this.sendTranscriptionStartJSON(e),"true"===this.privRecognizerConfig.parameters.getProperty(o.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps)&&this.privSpeechContext.setWordLevelTimings()}async sendSpeechEventAsync(e,r){if(this.privRequestSession.isRecognizing){let i=await this.fetchConnection();await this.sendSpeechEvent(i,this.createSpeechEventPayload(e,r))}}async sendMeetingSpeechEventAsync(e,r){if(this.privRequestSession.isRecognizing){let i=await this.fetchConnection();await this.sendSpeechEvent(i,this.createMeetingSpeechEventPayload(e,r))}}processTypeSpecificMessages(e){return this.processSpeechMessages(e)}handleRecognizedCallback(e,r,i){try{let n=new o.SpeechRecognitionEventArgs(e,r,i);if(this.privTranscriberRecognizer.recognized(this.privTranscriberRecognizer,n),this.privSuccessCallback){try{this.privSuccessCallback(e)}catch(e){this.privErrorCallback&&this.privErrorCallback(e)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}}catch(e){}}handleRecognizingCallback(e,r,i){try{let n=new o.SpeechRecognitionEventArgs(e,r,i);this.privTranscriberRecognizer.recognizing(this.privTranscriberRecognizer,n)}catch(e){}}cancelRecognition(e,r,i,n,a){let c=new o.PropertyCollection;if(c.setProperty(s.CancellationErrorCodePropertyName,o.CancellationErrorCode[n]),this.privTranscriberRecognizer.IsMeetingRecognizer()){if(this.privTranscriberRecognizer.canceled){let r=new o.MeetingTranscriptionCanceledEventArgs(i,a,n,void 0,e);try{this.privTranscriberRecognizer.canceled(this.privTranscriberRecognizer,r)}catch{}}}else if(this.privTranscriberRecognizer.canceled){let r=new o.ConversationTranscriptionCanceledEventArgs(i,a,n,void 0,e);try{this.privTranscriberRecognizer.canceled(this.privTranscriberRecognizer,r)}catch{}}if(this.privSuccessCallback){let e=new o.SpeechRecognitionResult(r,o.ResultReason.Canceled,void 0,void 0,void 0,void 0,void 0,void 0,a,void 0,c);try{this.privSuccessCallback(e),this.privSuccessCallback=void 0}catch{}}}async sendTranscriptionStartJSON(e){if(await this.sendSpeechContext(e,!0),this.privTranscriberRecognizer.IsMeetingRecognizer()){let r=this.privTranscriberRecognizer.getMeetingInfo(),i=this.createMeetingSpeechEventPayload(r,"start");await this.sendSpeechEvent(e,i)}else{let r=this.privTranscriberRecognizer.getConversationInfo(),i=this.createSpeechEventPayload(r,"start");await this.sendSpeechEvent(e,i)}await this.sendWaveHeader(e)}sendSpeechEvent(e,r){let i=JSON.stringify(r);if(i)return e.send(new a.SpeechConnectionMessage(n.MessageType.Text,"speech.event",this.privRequestSession.requestId,"application/json",i))}createSpeechEventPayload(e,r){let i={id:"meeting",name:r,meeting:e.conversationProperties};return i.meeting.id=e.id,i.meeting.attendees=e.participants,i}createMeetingSpeechEventPayload(e,r){let i={id:"meeting",name:r,meeting:e.meetingProperties};return i.meeting.id=e.id,i.meeting.attendees=e.participants,i}}r.TranscriptionServiceRecognizer=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/TranslationConnectionFactory.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationConnectionFactory=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/StringUtils.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ConnectionFactoryBase.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/HeaderNames.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/QueryParameterNames.js"),u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js");class p extends a.ConnectionFactoryBase{constructor(){super(...arguments),this.universalUri="/stt/speech/universal/v2",this.translationV1Uri="/speech/translation/cognitiveservices/v1"}async create(e,r,i){let o=this.getEndpointUrl(e),l={};if(this.setQueryParams(l,e,o),o){let e=new URL(o),r=e.pathname;(""===r||"/"===r)&&(e.pathname=this.universalUri,o=await a.ConnectionFactoryBase.getRedirectUrlFromEndpoint(e.toString()))}let u={};void 0!==r.token&&""!==r.token&&(u[r.headerName]=r.token),u[d.HeaderNames.ConnectionId]=i,e.parameters.setProperty(s.PropertyId.SpeechServiceConnection_Url,o);let p="true"===e.parameters.getProperty("SPEECH-EnableWebsocketCompression","false");return new n.WebsocketConnection(o,l,u,new c.WebsocketMessageFormatter,n.ProxyInfo.fromRecognizerConfig(e),p,i)}getEndpointUrl(e,r){let i=e.parameters.getProperty(s.PropertyId.SpeechServiceConnection_Region),n=a.ConnectionFactoryBase.getHostSuffix(i),c=e.parameters.getProperty(s.PropertyId.SpeechServiceConnection_Endpoint,void 0);return c?!0===r?c:o.StringUtils.formatString(c,{region:i}):(c="true"===e.parameters.getProperty("SPEECH-ForceV1Endpoint","false")?e.parameters.getProperty(s.PropertyId.SpeechServiceConnection_Host,"wss://{region}.s2s.speech"+n)+this.translationV1Uri:e.parameters.getProperty(s.PropertyId.SpeechServiceConnection_Host,"wss://{region}.stt.speech"+n)+this.universalUri,!0===r)?c:o.StringUtils.formatString(c,{region:i})}setQueryParams(e,r,i){e.from=r.parameters.getProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage),e.to=r.parameters.getProperty(s.PropertyId.SpeechServiceConnection_TranslationToLanguages),e.scenario=r.recognitionMode===u.RecognitionMode.Interactive?"interactive":r.recognitionMode===u.RecognitionMode.Conversation?"conversation":"",this.setCommonUrlParams(r,e,i),this.setUrlParameter(s.PropertyId.SpeechServiceResponse_TranslationRequestStablePartialResult,l.QueryParameterNames.StableTranslation,r,e,i);let n=r.parameters.getProperty(s.PropertyId.SpeechServiceConnection_TranslationVoice,void 0);void 0!==n&&(e.voice=n,e.features="requireVoice")}}r.TranslationConnectionFactory=p},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/TranslationServiceRecognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationServiceRecognizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js");class a extends s.ConversationServiceRecognizer{constructor(e,r,i,n,o){super(e,r,i,n,o),this.privTranslationRecognizer=o,this.connectionEvents.attach(e=>{"ConnectionEstablishedEvent"===e.name&&this.privTranslationRecognizer.onConnection()})}async processTypeSpecificMessages(e){let r=new o.PropertyCollection,i=await this.processSpeechMessages(e);if(i)return!0;let a=async e=>{if(r.setProperty(o.PropertyId.SpeechServiceResponse_JsonResult,e.asJson()),this.privRequestSession.onPhraseRecognized(e.Offset+e.Duration),e.RecognitionStatus===s.RecognitionStatus.Success){let i=this.fireEventForResult(e,r);if(this.privTranslationRecognizer.recognized)try{this.privTranslationRecognizer.recognized(this.privTranslationRecognizer,i)}catch(e){}if(this.privSuccessCallback){try{this.privSuccessCallback(i.result)}catch(e){this.privErrorCallback&&this.privErrorCallback(e)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}}else{let n=s.EnumTranslation.implTranslateRecognitionResult(e.RecognitionStatus),a=new o.TranslationRecognitionResult(void 0,this.privRequestSession.requestId,n,e.Text,e.Duration,e.Offset,e.Language,e.Confidence,void 0,e.asJson(),r);if(n===o.ResultReason.Canceled){let r=s.EnumTranslation.implTranslateCancelResult(e.RecognitionStatus),i=s.EnumTranslation.implTranslateCancelErrorCode(e.RecognitionStatus);await this.cancelRecognitionLocal(r,i,s.EnumTranslation.implTranslateErrorDetails(i))}else if(e.RecognitionStatus!==s.RecognitionStatus.EndOfDictation){let e=new o.TranslationRecognitionEventArgs(a,a.offset,this.privRequestSession.sessionId);if(this.privTranslationRecognizer.recognized)try{this.privTranslationRecognizer.recognized(this.privTranslationRecognizer,e)}catch(e){}if(this.privSuccessCallback){try{this.privSuccessCallback(a)}catch(e){this.privErrorCallback&&this.privErrorCallback(e)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}}i=!0}},c=e=>{r.setProperty(o.PropertyId.SpeechServiceResponse_JsonResult,e.asJson());let n=this.fireEventForResult(e,r);if(this.privRequestSession.onHypothesis(n.offset),this.privTranslationRecognizer.recognizing)try{this.privTranslationRecognizer.recognizing(this.privTranslationRecognizer,n)}catch(e){}i=!0};switch(e.messageType===n.MessageType.Text&&r.setProperty(o.PropertyId.SpeechServiceResponse_JsonResult,e.textBody),e.path.toLowerCase()){case"translation.hypothesis":c(s.TranslationHypothesis.fromJSON(e.textBody,this.privRequestSession.currentTurnAudioOffset));break;case"translation.response":let d=JSON.parse(e.textBody);if(d.SpeechPhrase)await a(s.TranslationPhrase.fromTranslationResponse(d,this.privRequestSession.currentTurnAudioOffset));else{let r=JSON.parse(e.textBody);r.SpeechHypothesis&&c(s.TranslationHypothesis.fromTranslationResponse(r,this.privRequestSession.currentTurnAudioOffset))}break;case"translation.phrase":await a(s.TranslationPhrase.fromJSON(e.textBody,this.privRequestSession.currentTurnAudioOffset));break;case"translation.synthesis":case"audio":this.sendSynthesisAudio(e.binaryBody,this.privRequestSession.sessionId),i=!0;break;case"audio.end":case"translation.synthesis.end":let l=s.TranslationSynthesisEnd.fromJSON(e.textBody);switch(l.SynthesisStatus){case s.SynthesisStatus.Error:if(this.privTranslationRecognizer.synthesizing){let e=new o.TranslationSynthesisResult(o.ResultReason.Canceled,void 0),r=new o.TranslationSynthesisEventArgs(e,this.privRequestSession.sessionId);try{this.privTranslationRecognizer.synthesizing(this.privTranslationRecognizer,r)}catch(e){}}if(this.privTranslationRecognizer.canceled){let e=new o.TranslationRecognitionCanceledEventArgs(this.privRequestSession.sessionId,o.CancellationReason.Error,l.FailureReason,o.CancellationErrorCode.ServiceError,null);try{this.privTranslationRecognizer.canceled(this.privTranslationRecognizer,e)}catch(e){}}break;case s.SynthesisStatus.Success:this.sendSynthesisAudio(void 0,this.privRequestSession.sessionId)}i=!0}return i}cancelRecognition(e,r,i,n,a){let c=new o.PropertyCollection;if(c.setProperty(s.CancellationErrorCodePropertyName,o.CancellationErrorCode[n]),this.privTranslationRecognizer.canceled){let r=new o.TranslationRecognitionCanceledEventArgs(e,i,a,n,void 0);try{this.privTranslationRecognizer.canceled(this.privTranslationRecognizer,r)}catch{}}if(this.privSuccessCallback){let e=new o.TranslationRecognitionResult(void 0,r,o.ResultReason.Canceled,void 0,void 0,void 0,void 0,void 0,a,void 0,c);try{this.privSuccessCallback(e),this.privSuccessCallback=void 0}catch{}}}handleRecognizingCallback(e,r,i){try{let n=new o.TranslationRecognitionEventArgs(o.TranslationRecognitionResult.fromSpeechRecognitionResult(e),r,i);this.privTranslationRecognizer.recognizing(this.privTranslationRecognizer,n)}catch(e){}}handleRecognizedCallback(e,r,i){try{let n=new o.TranslationRecognitionEventArgs(o.TranslationRecognitionResult.fromSpeechRecognitionResult(e),r,i);this.privTranslationRecognizer.recognized(this.privTranslationRecognizer,n)}catch(e){}}fireEventForResult(e,r){let i,a,c;if(void 0!==e.Translation.Translations)for(let r of(i=new o.Translations,e.Translation.Translations))i.set(r.Language,r.Text||r.DisplayText);e instanceof s.TranslationPhrase?(a=e.Translation&&e.Translation.TranslationStatus===n.TranslationStatus.Success?o.ResultReason.TranslatedSpeech:o.ResultReason.RecognizedSpeech,c=e.Confidence):a=o.ResultReason.TranslatingSpeech;let d=e.Language,l=new o.TranslationRecognitionResult(i,this.privRequestSession.requestId,a,e.Text,e.Duration,e.Offset,d,c,e.Translation.FailureReason,e.asJson(),r);return new o.TranslationRecognitionEventArgs(l,e.Offset,this.privRequestSession.sessionId)}sendSynthesisAudio(e,r){let i=void 0===e?o.ResultReason.SynthesizingAudioCompleted:o.ResultReason.SynthesizingAudio,n=new o.TranslationSynthesisResult(i,e),s=new o.TranslationSynthesisEventArgs(n,r);if(this.privTranslationRecognizer.synthesizing)try{this.privTranslationRecognizer.synthesizing(this.privTranslationRecognizer,s)}catch(e){}}}r.TranslationServiceRecognizer=a},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/TranslationStatus.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationStatus=void 0,(i=r.TranslationStatus||(r.TranslationStatus={}))[i.Success=0]="Success",i[i.Error=1]="Error"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/WebsocketMessageFormatter.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.WebsocketMessageFormatter=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");r.WebsocketMessageFormatter=class{toConnectionMessage(e){let r=new n.Deferred;try{if(e.messageType===n.MessageType.Text){let i=e.textContent,o={},s=null;if(i){let e=i.split("\r\n\r\n");e&&e.length>0&&(o=this.parseHeaders(e[0]),e.length>1&&(s=e[1]))}r.resolve(new n.ConnectionMessage(e.messageType,s,o,e.id))}else if(e.messageType===n.MessageType.Binary){let i=e.binaryContent,o={},s=null;if(!i||i.byteLength<2)throw Error("Invalid binary message format. Header length missing.");let a=new DataView(i),c=a.getInt16(0);if(i.byteLength<c+2)throw Error("Invalid binary message format. Header content missing.");let d="";for(let e=0;e<c;e++)d+=String.fromCharCode(a.getInt8(e+2));o=this.parseHeaders(d),i.byteLength>c+2&&(s=i.slice(2+c)),r.resolve(new n.ConnectionMessage(e.messageType,s,o,e.id))}}catch(e){r.reject(`Error formatting the message. Error: ${e}`)}return r.promise}fromConnectionMessage(e){let r=new n.Deferred;try{if(e.messageType===n.MessageType.Text){let i=`${this.makeHeaders(e)}\r
25
25
  ${e.textBody?e.textBody:""}`;r.resolve(new n.RawWebsocketMessage(n.MessageType.Text,i,e.id))}else if(e.messageType===n.MessageType.Binary){let i=this.makeHeaders(e),o=e.binaryBody,s=this.stringToArrayBuffer(i),a=new Int8Array(s),c=a.byteLength,d=new Int8Array(2+c+(o?o.byteLength:0));if(d[0]=c>>8&255,d[1]=255&c,d.set(a,2),o){let e=new Int8Array(o);d.set(e,2+c)}let l=d.buffer;r.resolve(new n.RawWebsocketMessage(n.MessageType.Binary,l,e.id))}}catch(e){r.reject(`Error formatting the message. ${e}`)}return r.promise}makeHeaders(e){let r="";if(e.headers)for(let i in e.headers)i&&(r+=`${i}: ${e.headers[i]}\r
26
- `);return r}parseHeaders(e){let r={};if(e){let i=e.match(/[^\r\n]+/g);if(r){for(let e of i)if(e){let i=e.indexOf(":"),n=i>0?e.substr(0,i).trim().toLowerCase():e,o=i>0&&e.length>i+1?e.substr(i+1).trim():"";r[n]=o}}}return r}stringToArrayBuffer(e){let r=new ArrayBuffer(e.length),i=new DataView(r);for(let r=0;r<e.length;r++)i.setUint8(r,e.charCodeAt(r));return r}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AudioStreamNodeErrorEvent=r.AudioStreamNodeDetachedEvent=r.AudioStreamNodeAttachedEvent=r.AudioStreamNodeAttachingEvent=r.AudioStreamNodeEvent=r.AudioSourceErrorEvent=r.AudioSourceOffEvent=r.AudioSourceReadyEvent=r.AudioSourceInitializingEvent=r.AudioSourceEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js");class o extends n.PlatformEvent{constructor(e,r,i=n.EventType.Info){super(e,i),this.privAudioSourceId=r}get audioSourceId(){return this.privAudioSourceId}}r.AudioSourceEvent=o,r.AudioSourceInitializingEvent=class extends o{constructor(e){super("AudioSourceInitializingEvent",e)}},r.AudioSourceReadyEvent=class extends o{constructor(e){super("AudioSourceReadyEvent",e)}},r.AudioSourceOffEvent=class extends o{constructor(e){super("AudioSourceOffEvent",e)}},r.AudioSourceErrorEvent=class extends o{constructor(e,r){super("AudioSourceErrorEvent",e,n.EventType.Error),this.privError=r}get error(){return this.privError}};class s extends o{constructor(e,r,i){super(e,r),this.privAudioNodeId=i}get audioNodeId(){return this.privAudioNodeId}}r.AudioStreamNodeEvent=s,r.AudioStreamNodeAttachingEvent=class extends s{constructor(e,r){super("AudioStreamNodeAttachingEvent",e,r)}},r.AudioStreamNodeAttachedEvent=class extends s{constructor(e,r){super("AudioStreamNodeAttachedEvent",e,r)}},r.AudioStreamNodeDetachedEvent=class extends s{constructor(e,r){super("AudioStreamNodeDetachedEvent",e,r)}},r.AudioStreamNodeErrorEvent=class extends s{constructor(e,r,i){super("AudioStreamNodeErrorEvent",e,r),this.privError=i}get error(){return this.privError}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/BackgroundError.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");class o extends n.PlatformEvent{constructor(e){super("BackgroundEvent",n.EventType.Error),this.privError=e}get error(){return this.privError}}r.BackgroundEvent=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ChunkedArrayBufferStream.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ChunkedArrayBufferStream=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");class o extends n.Stream{constructor(e,r){super(r),this.privTargetChunkSize=Math.round(e),this.privNextBufferReadyBytes=0}writeStreamChunk(e){if(e.isEnd||0===this.privNextBufferReadyBytes&&e.buffer.byteLength===this.privTargetChunkSize)return void super.writeStreamChunk(e);let r=0;for(;r<e.buffer.byteLength;){void 0===this.privNextBufferToWrite&&(this.privNextBufferToWrite=new ArrayBuffer(this.privTargetChunkSize),this.privNextBufferStartTime=e.timeReceived);let i=Math.min(e.buffer.byteLength-r,this.privTargetChunkSize-this.privNextBufferReadyBytes),n=new Uint8Array(this.privNextBufferToWrite),o=new Uint8Array(e.buffer.slice(r,i+r));n.set(o,this.privNextBufferReadyBytes),this.privNextBufferReadyBytes+=i,r+=i,this.privNextBufferReadyBytes===this.privTargetChunkSize&&(super.writeStreamChunk({buffer:this.privNextBufferToWrite,isEnd:!1,timeReceived:this.privNextBufferStartTime}),this.privNextBufferReadyBytes=0,this.privNextBufferToWrite=void 0)}}close(){0===this.privNextBufferReadyBytes||this.isClosed||super.writeStreamChunk({buffer:this.privNextBufferToWrite.slice(0,this.privNextBufferReadyBytes),isEnd:!1,timeReceived:this.privNextBufferStartTime}),super.close()}}r.ChunkedArrayBufferStream=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionEvents.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionRedirectEvent=r.ConnectionMessageSentEvent=r.ConnectionMessageReceivedEvent=r.ConnectionEstablishErrorEvent=r.ConnectionErrorEvent=r.ConnectionClosedEvent=r.ConnectionEstablishedEvent=r.ConnectionStartEvent=r.ConnectionEvent=r.ServiceEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js");class o extends n.PlatformEvent{constructor(e,r,i=n.EventType.Info){super(e,i),this.privJsonResult=r}get jsonString(){return this.privJsonResult}}r.ServiceEvent=o;class s extends n.PlatformEvent{constructor(e,r,i=n.EventType.Info){super(e,i),this.privConnectionId=r}get connectionId(){return this.privConnectionId}}r.ConnectionEvent=s,r.ConnectionStartEvent=class extends s{constructor(e,r,i){super("ConnectionStartEvent",e),this.privUri=r,this.privHeaders=i}get uri(){return this.privUri}get headers(){return this.privHeaders}},r.ConnectionEstablishedEvent=class extends s{constructor(e){super("ConnectionEstablishedEvent",e)}},r.ConnectionClosedEvent=class extends s{constructor(e,r,i){super("ConnectionClosedEvent",e,n.EventType.Debug),this.privReason=i,this.privStatusCode=r}get reason(){return this.privReason}get statusCode(){return this.privStatusCode}},r.ConnectionErrorEvent=class extends s{constructor(e,r,i){super("ConnectionErrorEvent",e,n.EventType.Debug),this.privMessage=r,this.privType=i}get message(){return this.privMessage}get type(){return this.privType}},r.ConnectionEstablishErrorEvent=class extends s{constructor(e,r,i){super("ConnectionEstablishErrorEvent",e,n.EventType.Error),this.privStatusCode=r,this.privReason=i}get reason(){return this.privReason}get statusCode(){return this.privStatusCode}},r.ConnectionMessageReceivedEvent=class extends s{constructor(e,r,i){super("ConnectionMessageReceivedEvent",e),this.privNetworkReceivedTime=r,this.privMessage=i}get networkReceivedTime(){return this.privNetworkReceivedTime}get message(){return this.privMessage}},r.ConnectionMessageSentEvent=class extends s{constructor(e,r,i){super("ConnectionMessageSentEvent",e),this.privNetworkSentTime=r,this.privMessage=i}get networkSentTime(){return this.privNetworkSentTime}get message(){return this.privMessage}},r.ConnectionRedirectEvent=class extends s{constructor(e,r,i,o){super("ConnectionRedirectEvent",e,n.EventType.Info),this.privRedirectUrl=r,this.privOriginalUrl=i,this.privContext=o}get redirectUrl(){return this.privRedirectUrl}get originalUrl(){return this.privOriginalUrl}get context(){return this.privContext}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionMessage.js":function(e,r,i){var n,o;Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionMessage=r.MessageType=void 0;let s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js");(o=n=r.MessageType||(r.MessageType={}))[o.Text=0]="Text",o[o.Binary=1]="Binary",r.ConnectionMessage=class{constructor(e,r,i,o){if(this.privBody=null,e===n.Text&&r&&"string"!=typeof r)throw new s.InvalidOperationError("Payload must be a string");if(e===n.Binary&&r&&!(r instanceof ArrayBuffer))throw new s.InvalidOperationError("Payload must be ArrayBuffer");switch(this.privMessageType=e,this.privBody=r,this.privHeaders=i||{},this.privId=o||(0,a.createNoDashGuid)(),this.messageType){case n.Binary:this.privSize=null!==this.binaryBody?this.binaryBody.byteLength:0;break;case n.Text:this.privSize=this.textBody.length}}get messageType(){return this.privMessageType}get headers(){return this.privHeaders}get body(){return this.privBody}get textBody(){if(this.privMessageType===n.Binary)throw new s.InvalidOperationError("Not supported for binary message");return this.privBody}get binaryBody(){if(this.privMessageType===n.Text)throw new s.InvalidOperationError("Not supported for text message");return this.privBody}get id(){return this.privId}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionOpenResponse.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionOpenResponse=void 0,r.ConnectionOpenResponse=class{constructor(e,r){this.privStatusCode=e,this.privReason=r}get statusCode(){return this.privStatusCode}get reason(){return this.privReason}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/DeferralMap.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DeferralMap=void 0,r.DeferralMap=class{constructor(){this.privMap={}}add(e,r){this.privMap[e]=r}getId(e){return this.privMap[e]}complete(e,r){try{this.privMap[e].resolve(r)}catch(r){this.privMap[e].reject(r)}finally{this.privMap[e]=void 0}}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/DialogEvents.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SendingAgentContextMessageEvent=r.DialogEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js");class o extends n.PlatformEvent{constructor(e,r=n.EventType.Info){super(e,r)}}r.DialogEvent=o,r.SendingAgentContextMessageEvent=class extends o{constructor(e){super("SendingAgentContextMessageEvent"),this.privAgentConfig=e}get agentConfig(){return this.privAgentConfig}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ObjectDisposedError=r.InvalidOperationError=r.ArgumentNullError=void 0,r.ArgumentNullError=class extends Error{constructor(e){super(e),this.name="ArgumentNull",this.message=e}},r.InvalidOperationError=class extends Error{constructor(e){super(e),this.name="InvalidOperation",this.message=e}},r.ObjectDisposedError=class extends Error{constructor(e,r){super(r),this.name=e+"ObjectDisposed",this.message=r}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/EventSource.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.EventSource=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js");r.EventSource=class{constructor(e){this.privEventListeners={},this.privIsDisposed=!1,this.privConsoleListener=void 0,this.privMetadata=e}onEvent(e){if(this.isDisposed())throw new n.ObjectDisposedError("EventSource");if(this.metadata)for(let r in this.metadata)r&&e.metadata&&!e.metadata[r]&&(e.metadata[r]=this.metadata[r]);for(let r in this.privEventListeners)r&&this.privEventListeners[r]&&this.privEventListeners[r](e)}attach(e){let r=(0,o.createNoDashGuid)();return this.privEventListeners[r]=e,{detach:()=>(delete this.privEventListeners[r],Promise.resolve())}}attachListener(e){return this.attach(r=>e.onEvent(r))}attachConsoleListener(e){return this.privConsoleListener&&this.privConsoleListener.detach(),this.privConsoleListener=this.attach(r=>e.onEvent(r)),this.privConsoleListener}isDisposed(){return this.privIsDisposed}dispose(){this.privEventListeners=null,this.privIsDisposed=!0}get metadata(){return this.privMetadata}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Events.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Events=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/EventSource.js");class s{static setEventSource(e){if(!e)throw new n.ArgumentNullError("eventSource");s.privInstance=e}static get instance(){return s.privInstance}}r.Events=s,s.privInstance=new o.EventSource},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js":function(e,r,i){var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[i]}})}:function(e,r,i,n){void 0===n&&(n=i),e[n]=r[i]}),o=this&&this.__exportStar||function(e,r){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(r,i)||n(r,e,i)};Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationStatus=void 0,o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionEvents.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionMessage.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionOpenResponse.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/DeferralMap.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/DialogEvents.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Events.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/EventSource.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IAudioSource.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IConnection.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDetachable.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDictionary.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDisposable.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IEventListener.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IEventSource.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IErrorMessages.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ITimer.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IWebsocketMessageFormatter.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/List.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Promise.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Queue.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/RawWebsocketMessage.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/RiffPcmEncoder.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Stream.js"),r);var s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/TranslationStatus.js");Object.defineProperty(r,"TranslationStatus",{enumerable:!0,get:function(){return s.TranslationStatus}}),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ChunkedArrayBufferStream.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IAudioDestination.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Timeout.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/OCSPEvents.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/BackgroundError.js"),r)},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.createNoDashGuid=r.createGuid=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/index.js"),o=()=>(0,n.v4)();r.createGuid=o,r.createNoDashGuid=()=>o().replace(/-/g,"").toUpperCase()},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IAudioDestination.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IAudioSource.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IConnection.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionState=void 0,(i=r.ConnectionState||(r.ConnectionState={}))[i.None=0]="None",i[i.Connected=1]="Connected",i[i.Connecting=2]="Connecting",i[i.Disconnected=3]="Disconnected"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDetachable.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDictionary.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDisposable.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IErrorMessages.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IEventListener.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IEventSource.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ITimer.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IWebsocketMessageFormatter.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/List.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.List=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js");class o{constructor(e){if(this.privSubscriptionIdCounter=0,this.privAddSubscriptions={},this.privRemoveSubscriptions={},this.privDisposedSubscriptions={},this.privDisposeReason=null,this.privList=[],e)for(let r of e)this.privList.push(r)}get(e){return this.throwIfDisposed(),this.privList[e]}first(){return this.get(0)}last(){return this.get(this.length()-1)}add(e){this.throwIfDisposed(),this.insertAt(this.privList.length,e)}insertAt(e,r){this.throwIfDisposed(),0===e?this.privList.unshift(r):e===this.privList.length?this.privList.push(r):this.privList.splice(e,0,r),this.triggerSubscriptions(this.privAddSubscriptions)}removeFirst(){return this.throwIfDisposed(),this.removeAt(0)}removeLast(){return this.throwIfDisposed(),this.removeAt(this.length()-1)}removeAt(e){return this.throwIfDisposed(),this.remove(e,1)[0]}remove(e,r){this.throwIfDisposed();let i=this.privList.splice(e,r);return this.triggerSubscriptions(this.privRemoveSubscriptions),i}clear(){this.throwIfDisposed(),this.remove(0,this.length())}length(){return this.throwIfDisposed(),this.privList.length}onAdded(e){this.throwIfDisposed();let r=this.privSubscriptionIdCounter++;return this.privAddSubscriptions[r]=e,{detach:()=>(delete this.privAddSubscriptions[r],Promise.resolve())}}onRemoved(e){this.throwIfDisposed();let r=this.privSubscriptionIdCounter++;return this.privRemoveSubscriptions[r]=e,{detach:()=>(delete this.privRemoveSubscriptions[r],Promise.resolve())}}onDisposed(e){this.throwIfDisposed();let r=this.privSubscriptionIdCounter++;return this.privDisposedSubscriptions[r]=e,{detach:()=>(delete this.privDisposedSubscriptions[r],Promise.resolve())}}join(e){return this.throwIfDisposed(),this.privList.join(e)}toArray(){let e=[];return this.privList.forEach(r=>{e.push(r)}),e}any(e){return(this.throwIfDisposed(),e)?this.where(e).length()>0:this.length()>0}all(e){return this.throwIfDisposed(),this.where(e).length()===this.length()}forEach(e){this.throwIfDisposed();for(let r=0;r<this.length();r++)e(this.privList[r],r)}select(e){this.throwIfDisposed();let r=[];for(let i=0;i<this.privList.length;i++)r.push(e(this.privList[i],i));return new o(r)}where(e){this.throwIfDisposed();let r=new o;for(let i=0;i<this.privList.length;i++)e(this.privList[i],i)&&r.add(this.privList[i]);return r}orderBy(e){return this.throwIfDisposed(),new o(this.toArray().sort(e))}orderByDesc(e){return this.throwIfDisposed(),this.orderBy((r,i)=>e(i,r))}clone(){return this.throwIfDisposed(),new o(this.toArray())}concat(e){return this.throwIfDisposed(),new o(this.privList.concat(e.toArray()))}concatArray(e){return this.throwIfDisposed(),new o(this.privList.concat(e))}isDisposed(){return null==this.privList}dispose(e){this.isDisposed()||(this.privDisposeReason=e,this.privList=null,this.privAddSubscriptions=null,this.privRemoveSubscriptions=null,this.triggerSubscriptions(this.privDisposedSubscriptions))}throwIfDisposed(){if(this.isDisposed())throw new n.ObjectDisposedError("List",this.privDisposeReason)}triggerSubscriptions(e){if(e)for(let r in e)r&&e[r]()}}r.List=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/OCSPEvents.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.OCSPCacheUpdateErrorEvent=r.OCSPResponseRetrievedEvent=r.OCSPCacheFetchErrorEvent=r.OCSPVerificationFailedEvent=r.OCSPCacheHitEvent=r.OCSPCacheEntryNeedsRefreshEvent=r.OCSPCacheEntryExpiredEvent=r.OCSPWSUpgradeStartedEvent=r.OCSPStapleReceivedEvent=r.OCSPCacheUpdateCompleteEvent=r.OCSPDiskCacheStoreEvent=r.OCSPMemoryCacheStoreEvent=r.OCSPCacheUpdateNeededEvent=r.OCSPDiskCacheHitEvent=r.OCSPCacheMissEvent=r.OCSPMemoryCacheHitEvent=r.OCSPEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js");class o extends n.PlatformEvent{constructor(e,r,i){super(e,r),this.privSignature=i}}r.OCSPEvent=o,r.OCSPMemoryCacheHitEvent=class extends o{constructor(e){super("OCSPMemoryCacheHitEvent",n.EventType.Debug,e)}},r.OCSPCacheMissEvent=class extends o{constructor(e){super("OCSPCacheMissEvent",n.EventType.Debug,e)}},r.OCSPDiskCacheHitEvent=class extends o{constructor(e){super("OCSPDiskCacheHitEvent",n.EventType.Debug,e)}},r.OCSPCacheUpdateNeededEvent=class extends o{constructor(e){super("OCSPCacheUpdateNeededEvent",n.EventType.Debug,e)}},r.OCSPMemoryCacheStoreEvent=class extends o{constructor(e){super("OCSPMemoryCacheStoreEvent",n.EventType.Debug,e)}},r.OCSPDiskCacheStoreEvent=class extends o{constructor(e){super("OCSPDiskCacheStoreEvent",n.EventType.Debug,e)}},r.OCSPCacheUpdateCompleteEvent=class extends o{constructor(e){super("OCSPCacheUpdateCompleteEvent",n.EventType.Debug,e)}},r.OCSPStapleReceivedEvent=class extends o{constructor(){super("OCSPStapleReceivedEvent",n.EventType.Debug,"")}},r.OCSPWSUpgradeStartedEvent=class extends o{constructor(e){super("OCSPWSUpgradeStartedEvent",n.EventType.Debug,e)}},r.OCSPCacheEntryExpiredEvent=class extends o{constructor(e,r){super("OCSPCacheEntryExpiredEvent",n.EventType.Debug,e),this.privExpireTime=r}},r.OCSPCacheEntryNeedsRefreshEvent=class extends o{constructor(e,r,i){super("OCSPCacheEntryNeedsRefreshEvent",n.EventType.Debug,e),this.privExpireTime=i,this.privStartTime=r}},r.OCSPCacheHitEvent=class extends o{constructor(e,r,i){super("OCSPCacheHitEvent",n.EventType.Debug,e),this.privExpireTime=i,this.privExpireTimeString=new Date(i).toLocaleDateString(),this.privStartTime=r,this.privStartTimeString=new Date(r).toLocaleTimeString()}},r.OCSPVerificationFailedEvent=class extends o{constructor(e,r){super("OCSPVerificationFailedEvent",n.EventType.Debug,e),this.privError=r}},r.OCSPCacheFetchErrorEvent=class extends o{constructor(e,r){super("OCSPCacheFetchErrorEvent",n.EventType.Debug,e),this.privError=r}},r.OCSPResponseRetrievedEvent=class extends o{constructor(e){super("OCSPResponseRetrievedEvent",n.EventType.Debug,e)}},r.OCSPCacheUpdateErrorEvent=class extends o{constructor(e,r){super("OCSPCacheUpdateErrorEvent",n.EventType.Debug,e),this.privError=r}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js":function(e,r,i){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.PlatformEvent=r.EventType=void 0;let o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js");(n=r.EventType||(r.EventType={}))[n.Debug=0]="Debug",n[n.Info=1]="Info",n[n.Warning=2]="Warning",n[n.Error=3]="Error",n[n.None=4]="None",r.PlatformEvent=class{constructor(e,r){this.privName=e,this.privEventId=(0,o.createNoDashGuid)(),this.privEventTime=new Date().toISOString(),this.privEventType=r,this.privMetadata={}}get name(){return this.privName}get eventId(){return this.privEventId}get eventTime(){return this.privEventTime}get eventType(){return this.privEventType}get metadata(){return this.privMetadata}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Promise.js":function(e,r){var i,n;Object.defineProperty(r,"__esModule",{value:!0}),r.marshalPromiseToCallbacks=r.Sink=r.Deferred=r.PromiseResultEventSource=r.PromiseResult=r.PromiseState=void 0,(n=i=r.PromiseState||(r.PromiseState={}))[n.None=0]="None",n[n.Resolved=1]="Resolved",n[n.Rejected=2]="Rejected";class o{constructor(e){this.throwIfError=()=>{if(this.isError)throw this.error},e.on(e=>{this.privIsCompleted||(this.privIsCompleted=!0,this.privIsError=!1,this.privResult=e)},e=>{this.privIsCompleted||(this.privIsCompleted=!0,this.privIsError=!0,this.privError=e)})}get isCompleted(){return this.privIsCompleted}get isError(){return this.privIsError}get error(){return this.privError}get result(){return this.privResult}}r.PromiseResult=o;class s{constructor(){this.setResult=e=>{this.privOnSetResult(e)},this.setError=e=>{this.privOnSetError(e)},this.on=(e,r)=>{this.privOnSetResult=e,this.privOnSetError=r}}}r.PromiseResultEventSource=s,r.Deferred=class{constructor(){this.resolve=e=>(this.privResolve(e),this),this.reject=e=>(this.privReject(e),this),this.privPromise=new Promise((e,r)=>{this.privResolve=e,this.privReject=r})}get promise(){return this.privPromise}},r.Sink=class{constructor(){this.privState=i.None,this.privPromiseResult=null,this.privPromiseResultEvents=null,this.privSuccessHandlers=[],this.privErrorHandlers=[],this.privPromiseResultEvents=new s,this.privPromiseResult=new o(this.privPromiseResultEvents)}get state(){return this.privState}get result(){return this.privPromiseResult}resolve(e){if(this.privState!==i.None)throw Error("'Cannot resolve a completed promise'");this.privState=i.Resolved,this.privPromiseResultEvents.setResult(e);for(let r=0;r<this.privSuccessHandlers.length;r++)this.executeSuccessCallback(e,this.privSuccessHandlers[r],this.privErrorHandlers[r]);this.detachHandlers()}reject(e){if(this.privState!==i.None)throw Error("'Cannot reject a completed promise'");for(let r of(this.privState=i.Rejected,this.privPromiseResultEvents.setError(e),this.privErrorHandlers))this.executeErrorCallback(e,r);this.detachHandlers()}on(e,r){null==e&&(e=()=>{}),this.privState===i.None?(this.privSuccessHandlers.push(e),this.privErrorHandlers.push(r)):(this.privState===i.Resolved?this.executeSuccessCallback(this.privPromiseResult.result,e,r):this.privState===i.Rejected&&this.executeErrorCallback(this.privPromiseResult.error,r),this.detachHandlers())}executeSuccessCallback(e,r,i){try{r(e)}catch(e){this.executeErrorCallback(`'Unhandled callback error: ${e}'`,i)}}executeErrorCallback(e,r){if(r)try{r(e)}catch(r){throw Error(`'Unhandled callback error: ${r}. InnerError: ${e}'`)}else throw Error(`'Unhandled error: ${e}'`)}detachHandlers(){this.privErrorHandlers=[],this.privSuccessHandlers=[]}},r.marshalPromiseToCallbacks=function(e,r,i){e.then(e=>{try{r&&r(e)}catch(e){if(i)try{e instanceof Error?i(e.name+": "+e.message):i(e)}catch(e){}}},e=>{if(i)try{e instanceof Error?i(e.name+": "+e.message):i(e)}catch(e){}})}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Queue.js":function(e,r,i){var n,o;Object.defineProperty(r,"__esModule",{value:!0}),r.Queue=void 0;let s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/List.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Promise.js");(o=n||(n={}))[o.Dequeue=0]="Dequeue",o[o.Peek=1]="Peek",r.Queue=class{constructor(e){this.privPromiseStore=new a.List,this.privIsDrainInProgress=!1,this.privIsDisposing=!1,this.privDisposeReason=null,this.privList=e||new a.List,this.privDetachables=[],this.privSubscribers=new a.List,this.privDetachables.push(this.privList.onAdded(()=>this.drain()))}enqueue(e){this.throwIfDispose(),this.enqueueFromPromise(new Promise(r=>r(e)))}enqueueFromPromise(e){this.throwIfDispose(),e.then(e=>{this.privList.add(e)},()=>{})}dequeue(){this.throwIfDispose();let e=new c.Deferred;return this.privSubscribers&&(this.privSubscribers.add({deferral:e,type:n.Dequeue}),this.drain()),e.promise}peek(){this.throwIfDispose();let e=new c.Deferred;return this.privSubscribers&&(this.privSubscribers.add({deferral:e,type:n.Peek}),this.drain()),e.promise}length(){return this.throwIfDispose(),this.privList.length()}isDisposed(){return null==this.privSubscribers}async drainAndDispose(e,r){if(!this.isDisposed()&&!this.privIsDisposing){this.privDisposeReason=r,this.privIsDisposing=!0;let i=this.privSubscribers;if(i){for(;i.length()>0;)i.removeFirst().deferral.resolve(void 0);this.privSubscribers===i&&(this.privSubscribers=i)}for(let e of this.privDetachables)await e.detach();if(this.privPromiseStore.length()>0&&e){let r=[];return this.privPromiseStore.toArray().forEach(e=>{r.push(e)}),Promise.all(r).finally(()=>{this.privSubscribers=null,this.privList.forEach(r=>{e(r)}),this.privList=null}).then()}this.privSubscribers=null,this.privList=null}}async dispose(e){await this.drainAndDispose(null,e)}drain(){if(!this.privIsDrainInProgress&&!this.privIsDisposing){this.privIsDrainInProgress=!0;let e=this.privSubscribers,r=this.privList;if(e&&r){for(;r.length()>0&&e.length()>0&&!this.privIsDisposing;){let i=e.removeFirst();if(i.type===n.Peek)i.deferral.resolve(r.first());else{let e=r.removeFirst();i.deferral.resolve(e)}}this.privSubscribers===e&&(this.privSubscribers=e),this.privList===r&&(this.privList=r)}this.privIsDrainInProgress=!1}}throwIfDispose(){if(this.isDisposed()){if(this.privDisposeReason)throw new s.InvalidOperationError(this.privDisposeReason);throw new s.ObjectDisposedError("Queue")}if(this.privIsDisposing)throw new s.InvalidOperationError("Queue disposing")}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/RawWebsocketMessage.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.RawWebsocketMessage=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionMessage.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js");r.RawWebsocketMessage=class{constructor(e,r,i){if(this.privPayload=null,!r)throw new o.ArgumentNullError("payload");if(e===n.MessageType.Binary&&"ArrayBuffer"!==Object.getPrototypeOf(r).constructor.name)throw new o.InvalidOperationError("Payload must be ArrayBuffer");if(e===n.MessageType.Text&&"string"!=typeof r)throw new o.InvalidOperationError("Payload must be a string");this.privMessageType=e,this.privPayload=r,this.privId=i||(0,s.createNoDashGuid)()}get messageType(){return this.privMessageType}get payload(){return this.privPayload}get textContent(){if(this.privMessageType===n.MessageType.Binary)throw new o.InvalidOperationError("Not supported for binary message");return this.privPayload}get binaryContent(){if(this.privMessageType===n.MessageType.Text)throw new o.InvalidOperationError("Not supported for text message");return this.privPayload}get id(){return this.privId}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/RiffPcmEncoder.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RiffPcmEncoder=void 0,r.RiffPcmEncoder=class{constructor(e,r){this.privActualSampleRate=e,this.privDesiredSampleRate=r}encode(e){let r=this.downSampleAudioFrame(e,this.privActualSampleRate,this.privDesiredSampleRate);if(!r)return null;let i=new ArrayBuffer(2*r.length),n=new DataView(i);return this.floatTo16BitPCM(n,0,r),i}setString(e,r,i){for(let n=0;n<i.length;n++)e.setUint8(r+n,i.charCodeAt(n))}floatTo16BitPCM(e,r,i){for(let n=0;n<i.length;n++,r+=2){let o=Math.max(-1,Math.min(1,i[n]));e.setInt16(r,o<0?32768*o:32767*o,!0)}}downSampleAudioFrame(e,r,i){if(!e)return null;if(i===r||i>r)return e;let n=r/i,o=Math.round(e.length/n),s=new Float32Array(o),a=0,c=0;for(;c<o;){let r=Math.round((c+1)*n),i=0,o=0;for(;a<r&&a<e.length;)i+=e[a++],o++;s[c++]=i/o}return s}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Stream.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Stream=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Queue.js");r.Stream=class{constructor(e){this.privIsWriteEnded=!1,this.privIsReadEnded=!1,this.privId=e||(0,o.createNoDashGuid)(),this.privReaderQueue=new s.Queue}get isClosed(){return this.privIsWriteEnded}get isReadEnded(){return this.privIsReadEnded}get id(){return this.privId}close(){this.privIsWriteEnded||(this.writeStreamChunk({buffer:null,isEnd:!0,timeReceived:Date.now()}),this.privIsWriteEnded=!0)}writeStreamChunk(e){if(this.throwIfClosed(),!this.privReaderQueue.isDisposed())try{this.privReaderQueue.enqueue(e)}catch(e){}}read(){if(this.privIsReadEnded)throw new n.InvalidOperationError("Stream read has already finished");return this.privReaderQueue.dequeue().then(async e=>((void 0===e||e.isEnd)&&await this.privReaderQueue.dispose("End of stream reached"),e))}readEnded(){this.privIsReadEnded||(this.privIsReadEnded=!0,this.privReaderQueue=new s.Queue)}throwIfClosed(){if(this.privIsWriteEnded)throw new n.InvalidOperationError("Stream closed")}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/StringUtils.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StringUtils=void 0,r.StringUtils=class{static formatString(e,r){if(!e)return"";if(!r)return e;let i="",n="",o=e=>{i+=e},s=e=>{n+=e},a=o;for(let c=0;c<e.length;c++){let d=e[c],l=c+1<e.length?e[c+1]:"";switch(d){case"{":"{"===l?(a("{"),c++):a=s;break;case"}":"}"===l?(a("}"),c++):(r.hasOwnProperty(n)&&(i+=r[n]),a=o,n="");break;default:a(d)}}return i}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Timeout.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Timeout=void 0;class i{static load(){let e=new Map([[0,()=>{}]]),r=new Map,n=new Worker("data:text/javascript;base64,"+btoa('!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return d}));const r=new Map,o=new Map,i=e=>{const t=r.get(e);if(void 0===t)throw new Error(\'There is no interval scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(t),r.delete(e)},u=e=>{const t=o.get(e);if(void 0===t)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(t),o.delete(e)},f=(e,t)=>{let n,r;if("performance"in self){const o=performance.now();n=o,r=e-Math.max(0,o-t)}else n=Date.now(),r=e;return{expected:n+r,remainingDelay:r}},c=(e,t,n,r)=>{const o="performance"in self?performance.now():Date.now();o>n?postMessage({id:null,method:"call",params:{timerId:t}}):e.set(t,setTimeout(c,n-o,e,t,n))},a=(e,t,n)=>{const{expected:o,remainingDelay:i}=f(e,n);r.set(t,setTimeout(c,i,r,t,o))},d=(e,t,n)=>{const{expected:r,remainingDelay:i}=f(e,n);o.set(t,setTimeout(c,i,o,t,r))}},function(e,t,n){"use strict";n.r(t);var r=n(2);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(3);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(4);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o);var f=n(5);for(var o in f)"default"!==o&&function(e){n.d(t,e,(function(){return f[e]}))}(o);var c=n(6);for(var o in c)"default"!==o&&function(e){n.d(t,e,(function(){return c[e]}))}(o);var a=n(7);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);var d=n(8);for(var o in d)"default"!==o&&function(e){n.d(t,e,(function(){return d[e]}))}(o);var s=n(9);for(var o in s)"default"!==o&&function(e){n.d(t,e,(function(){return s[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(11);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(12);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(13);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var u=n(10);for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);addEventListener("message",({data:e})=>{try{if("clear"===e.method){const{id:t,params:{timerId:n}}=e;Object(r.b)(n),postMessage({error:null,id:t})}else{if("set"!==e.method)throw new Error(\'The given method "\'.concat(e.method,\'" is not supported\'));{const{params:{delay:t,now:n,timerId:o}}=e;Object(r.d)(t,o,n)}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);'));return n.addEventListener("message",({data:n})=>{if(i.isCallNotification(n)){let{params:{timerId:i}}=n,o=e.get(i);if("number"==typeof o){let e=r.get(o);if(void 0===e||e!==i)throw Error("The timer is in an undefined state.")}else if(void 0!==o)o(),e.delete(i);else throw Error("The timer is in an undefined state.")}else if(i.isClearResponse(n)){let{id:i}=n,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");r.delete(i),e.delete(o)}else{let{error:{message:e}}=n;throw Error(e)}}),{clearTimeout:i=>{let o=Math.random();r.set(o,i),e.set(i,o),n.postMessage({id:o,method:"clear",params:{timerId:i}})},setTimeout:(r,i)=>{let o=Math.random();return e.set(o,r),n.postMessage({id:null,method:"set",params:{delay:i,now:performance.now(),timerId:o}}),o}}}static loadWorkerTimers(){return()=>(null!==i.workerTimers||(i.workerTimers=i.load()),i.workerTimers)}static isCallNotification(e){return void 0!==e.method&&"call"===e.method}static isClearResponse(e){return null===e.error&&"number"==typeof e.id}}r.Timeout=i,i.workerTimers=null,i.clearTimeout=e=>i.timers().clearTimeout(e),i.setTimeout=(e,r)=>i.timers().setTimeout(e,r),i.timers=i.loadWorkerTimers()},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ActivityReceivedEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ActivityReceivedEventArgs=void 0,r.ActivityReceivedEventArgs=class{constructor(e,r){this.privActivity=e,this.privAudioStream=r}get activity(){return this.privActivity}get audioStream(){return this.privAudioStream}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AudioOutputConfigImpl=r.AudioConfigImpl=r.AudioConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioFileWriter.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioInputStream.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js");class l{static fromDefaultMicrophoneInput(){let e=new n.PcmRecorder(!0);return new u(new n.MicAudioSource(e))}static fromMicrophoneInput(e){let r=new n.PcmRecorder(!0);return new u(new n.MicAudioSource(r,e))}static fromWavFileInput(e,r="unnamedBuffer.wav"){return new u(new n.FileAudioSource(e,r))}static fromStreamInput(e){if(e instanceof s.PullAudioInputStreamCallback)return new u(new c.PullAudioInputStreamImpl(e));if(e instanceof s.AudioInputStream)return new u(e);if("undefined"!=typeof MediaStream&&e instanceof MediaStream){let r=new n.PcmRecorder(!1);return new u(new n.MicAudioSource(r,null,null,e))}throw Error("Not Supported Type")}static fromDefaultSpeakerOutput(){return new p(new s.SpeakerAudioDestination)}static fromSpeakerOutput(e){if(void 0===e)return l.fromDefaultSpeakerOutput();if(e instanceof s.SpeakerAudioDestination)return new p(e);throw Error("Not Supported Type")}static fromAudioFileOutput(e){return new p(new a.AudioFileWriter(e))}static fromStreamOutput(e){if(e instanceof s.PushAudioOutputStreamCallback)return new p(new d.PushAudioOutputStreamImpl(e));if(e instanceof s.PushAudioOutputStream||e instanceof s.PullAudioOutputStream)return new p(e);throw Error("Not Supported Type")}}r.AudioConfig=l;class u extends l{constructor(e){super(),this.privSource=e}get format(){return this.privSource.format}close(e,r){this.privSource.turnOff().then(()=>{e&&e()},e=>{r&&r(e)})}id(){return this.privSource.id()}turnOn(){return this.privSource.turnOn()}attach(e){return this.privSource.attach(e)}detach(e){return this.privSource.detach(e)}turnOff(){return this.privSource.turnOff()}get events(){return this.privSource.events}setProperty(e,r){if(o.Contracts.throwIfNull(r,"value"),void 0!==this.privSource.setProperty)this.privSource.setProperty(e,r);else throw Error("This AudioConfig instance does not support setting properties.")}getProperty(e,r){if(void 0!==this.privSource.getProperty)return this.privSource.getProperty(e,r);throw Error("This AudioConfig instance does not support getting properties.")}get deviceInfo(){return this.privSource.deviceInfo}}r.AudioConfigImpl=u;class p extends l{constructor(e){super(),this.privDestination=e}set format(e){this.privDestination.format=e}write(e){this.privDestination.write(e)}close(){this.privDestination.close()}id(){return this.privDestination.id()}setProperty(){throw Error("This AudioConfig instance does not support setting properties.")}getProperty(){throw Error("This AudioConfig instance does not support getting properties.")}}r.AudioOutputConfigImpl=p},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioFileWriter.js":function(e,r,i){var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[i]}})}:function(e,r,i,n){void 0===n&&(n=i),e[n]=r[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(r,e,i);return o(r,e),r};Object.defineProperty(r,"__esModule",{value:!0}),r.AudioFileWriter=void 0;let a=s(i("?5898")),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js");r.AudioFileWriter=class{constructor(e){c.Contracts.throwIfNullOrUndefined(a.openSync,"\nFile System access not available, please use Push or PullAudioOutputStream"),this.privFd=a.openSync(e,"w")}set format(e){c.Contracts.throwIfNotUndefined(this.privAudioFormat,"format is already set"),this.privAudioFormat=e;let r=0;this.privAudioFormat.hasHeader&&(r=this.privAudioFormat.header.byteLength),void 0!==this.privFd&&(this.privWriteStream=a.createWriteStream("",{fd:this.privFd,start:r,autoClose:!1}))}write(e){c.Contracts.throwIfNullOrUndefined(this.privAudioFormat,"must set format before writing."),void 0!==this.privWriteStream&&this.privWriteStream.write(new Uint8Array(e.slice(0)))}close(){void 0!==this.privFd&&(this.privWriteStream.on("finish",()=>{this.privAudioFormat.hasHeader&&(this.privAudioFormat.updateHeader(this.privWriteStream.bytesWritten),a.writeSync(this.privFd,new Int8Array(this.privAudioFormat.header),0,this.privAudioFormat.header.byteLength,0)),a.closeSync(this.privFd),this.privFd=void 0}),this.privWriteStream.end())}id(){return this.privId}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioInputStream.js":function(e,r,i){var n=i("../../node_modules/buffer/index.js").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.PullAudioInputStreamImpl=r.PullAudioInputStream=r.PushAudioInputStreamImpl=r.PushAudioInputStream=r.AudioInputStream=void 0;let o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js");class l{constructor(){return}static createPushStream(e){return u.create(e)}static createPullStream(e,r){return h.create(e,r)}}r.AudioInputStream=l;class u extends l{static create(e){return new p(e)}}r.PushAudioInputStream=u;class p extends u{constructor(e){super(),void 0===e?this.privFormat=d.AudioStreamFormatImpl.getDefaultInputFormat():this.privFormat=e,this.privEvents=new s.EventSource,this.privId=(0,a.createNoDashGuid)(),this.privStream=new s.ChunkedArrayBufferStream(this.privFormat.avgBytesPerSec/10)}get format(){return Promise.resolve(this.privFormat)}write(e){this.privStream.writeStreamChunk({buffer:e,isEnd:!1,timeReceived:Date.now()})}close(){this.privStream.close()}id(){return this.privId}turnOn(){this.onEvent(new s.AudioSourceInitializingEvent(this.privId)),this.onEvent(new s.AudioSourceReadyEvent(this.privId))}async attach(e){this.onEvent(new s.AudioStreamNodeAttachingEvent(this.privId,e)),await this.turnOn();let r=this.privStream;return this.onEvent(new s.AudioStreamNodeAttachedEvent(this.privId,e)),{detach:async()=>(this.onEvent(new s.AudioStreamNodeDetachedEvent(this.privId,e)),this.turnOff()),id:()=>e,read:()=>r.read()}}detach(e){this.onEvent(new s.AudioStreamNodeDetachedEvent(this.privId,e))}turnOff(){}get events(){return this.privEvents}get deviceInfo(){return Promise.resolve({bitspersample:this.privFormat.bitsPerSample,channelcount:this.privFormat.channels,connectivity:o.connectivity.Unknown,manufacturer:"Speech SDK",model:"PushStream",samplerate:this.privFormat.samplesPerSec,type:o.type.Stream})}onEvent(e){this.privEvents.onEvent(e),s.Events.instance.onEvent(e)}toBuffer(e){let r=n.alloc(e.byteLength),i=new Uint8Array(e);for(let e=0;e<r.length;++e)r[e]=i[e];return r}}r.PushAudioInputStreamImpl=p;class h extends l{constructor(){super()}static create(e,r){return new f(e,r)}}r.PullAudioInputStream=h;class f extends h{constructor(e,r){super(),void 0===r?this.privFormat=c.AudioStreamFormat.getDefaultInputFormat():this.privFormat=r,this.privEvents=new s.EventSource,this.privId=(0,a.createNoDashGuid)(),this.privCallback=e,this.privIsClosed=!1,this.privBufferSize=this.privFormat.avgBytesPerSec/10}get format(){return Promise.resolve(this.privFormat)}close(){this.privIsClosed=!0,this.privCallback.close()}id(){return this.privId}turnOn(){this.onEvent(new s.AudioSourceInitializingEvent(this.privId)),this.onEvent(new s.AudioSourceReadyEvent(this.privId))}async attach(e){return this.onEvent(new s.AudioStreamNodeAttachingEvent(this.privId,e)),await this.turnOn(),this.onEvent(new s.AudioStreamNodeAttachedEvent(this.privId,e)),{detach:()=>(this.privCallback.close(),this.onEvent(new s.AudioStreamNodeDetachedEvent(this.privId,e)),this.turnOff()),id:()=>e,read:()=>{let e,r=0;for(;r<this.privBufferSize;){let i=new ArrayBuffer(this.privBufferSize-r),n=this.privCallback.read(i);if(void 0===e?e=i:new Int8Array(e).set(new Int8Array(i),r),0===n)break;r+=n}return Promise.resolve({buffer:e.slice(0,r),isEnd:this.privIsClosed||0===r,timeReceived:Date.now()})}}}detach(e){this.onEvent(new s.AudioStreamNodeDetachedEvent(this.privId,e))}turnOff(){}get events(){return this.privEvents}get deviceInfo(){return Promise.resolve({bitspersample:this.privFormat.bitsPerSample,channelcount:this.privFormat.channels,connectivity:o.connectivity.Unknown,manufacturer:"Speech SDK",model:"PullStream",samplerate:this.privFormat.samplesPerSec,type:o.type.Stream})}onEvent(e){this.privEvents.onEvent(e),s.Events.instance.onEvent(e)}}r.PullAudioInputStreamImpl=f},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputFormat.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AudioOutputFormatImpl=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisOutputFormat.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js");class s extends o.AudioStreamFormatImpl{constructor(e,r,i,n,o,s,a,c,d){super(i,s,r,e),this.formatTag=e,this.avgBytesPerSec=n,this.blockAlign=o,this.priAudioFormatString=a,this.priRequestAudioFormatString=c,this.priHasHeader=d}static fromSpeechSynthesisOutputFormat(e){return void 0===e?s.getDefaultOutputFormat():s.fromSpeechSynthesisOutputFormatString(s.SpeechSynthesisOutputFormatToString[e])}static fromSpeechSynthesisOutputFormatString(e){switch(e){case"raw-8khz-8bit-mono-mulaw":return new s(o.AudioFormatTag.MuLaw,1,8e3,8e3,1,8,e,e,!1);case"riff-16khz-16kbps-mono-siren":return new s(o.AudioFormatTag.Siren,1,16e3,2e3,40,0,e,"audio-16khz-16kbps-mono-siren",!0);case"audio-16khz-16kbps-mono-siren":return new s(o.AudioFormatTag.Siren,1,16e3,2e3,40,0,e,e,!1);case"audio-16khz-32kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,16e3,4096,2,16,e,e,!1);case"audio-16khz-128kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,16e3,16384,2,16,e,e,!1);case"audio-16khz-64kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,16e3,8192,2,16,e,e,!1);case"audio-24khz-48kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,24e3,6144,2,16,e,e,!1);case"audio-24khz-96kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,24e3,12288,2,16,e,e,!1);case"audio-24khz-160kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,24e3,20480,2,16,e,e,!1);case"raw-16khz-16bit-mono-truesilk":return new s(o.AudioFormatTag.SILKSkype,1,16e3,32e3,2,16,e,e,!1);case"riff-8khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,8e3,16e3,2,16,e,"raw-8khz-16bit-mono-pcm",!0);case"riff-24khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,24e3,48e3,2,16,e,"raw-24khz-16bit-mono-pcm",!0);case"riff-8khz-8bit-mono-mulaw":return new s(o.AudioFormatTag.MuLaw,1,8e3,8e3,1,8,e,"raw-8khz-8bit-mono-mulaw",!0);case"raw-16khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,16e3,32e3,2,16,e,"raw-16khz-16bit-mono-pcm",!1);case"raw-24khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,24e3,48e3,2,16,e,"raw-24khz-16bit-mono-pcm",!1);case"raw-8khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,8e3,16e3,2,16,e,"raw-8khz-16bit-mono-pcm",!1);case"ogg-16khz-16bit-mono-opus":return new s(o.AudioFormatTag.OGG_OPUS,1,16e3,8192,2,16,e,e,!1);case"ogg-24khz-16bit-mono-opus":return new s(o.AudioFormatTag.OGG_OPUS,1,24e3,8192,2,16,e,e,!1);case"raw-48khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,48e3,96e3,2,16,e,"raw-48khz-16bit-mono-pcm",!1);case"riff-48khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,48e3,96e3,2,16,e,"raw-48khz-16bit-mono-pcm",!0);case"audio-48khz-96kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,48e3,12288,2,16,e,e,!1);case"audio-48khz-192kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,48e3,24576,2,16,e,e,!1);case"ogg-48khz-16bit-mono-opus":return new s(o.AudioFormatTag.OGG_OPUS,1,48e3,12e3,2,16,e,e,!1);case"webm-16khz-16bit-mono-opus":return new s(o.AudioFormatTag.WEBM_OPUS,1,16e3,4e3,2,16,e,e,!1);case"webm-24khz-16bit-mono-opus":return new s(o.AudioFormatTag.WEBM_OPUS,1,24e3,6e3,2,16,e,e,!1);case"webm-24khz-16bit-24kbps-mono-opus":return new s(o.AudioFormatTag.WEBM_OPUS,1,24e3,3e3,2,16,e,e,!1);case"audio-16khz-16bit-32kbps-mono-opus":return new s(o.AudioFormatTag.OPUS,1,16e3,4e3,2,16,e,e,!1);case"audio-24khz-16bit-48kbps-mono-opus":return new s(o.AudioFormatTag.OPUS,1,24e3,6e3,2,16,e,e,!1);case"audio-24khz-16bit-24kbps-mono-opus":return new s(o.AudioFormatTag.OPUS,1,24e3,3e3,2,16,e,e,!1);case"audio-24khz-16bit-mono-flac":return new s(o.AudioFormatTag.FLAC,1,24e3,24e3,2,16,e,e,!1);case"audio-48khz-16bit-mono-flac":return new s(o.AudioFormatTag.FLAC,1,48e3,3e4,2,16,e,e,!1);case"raw-24khz-16bit-mono-truesilk":return new s(o.AudioFormatTag.SILKSkype,1,24e3,48e3,2,16,e,e,!1);case"raw-8khz-8bit-mono-alaw":return new s(o.AudioFormatTag.ALaw,1,8e3,8e3,1,8,e,e,!1);case"riff-8khz-8bit-mono-alaw":return new s(o.AudioFormatTag.ALaw,1,8e3,8e3,1,8,e,"raw-8khz-8bit-mono-alaw",!0);case"raw-22050hz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,22050,44100,2,16,e,e,!1);case"riff-22050hz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,22050,44100,2,16,e,"raw-22050hz-16bit-mono-pcm",!0);case"raw-44100hz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,44100,88200,2,16,e,e,!1);case"riff-44100hz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,44100,88200,2,16,e,"raw-44100hz-16bit-mono-pcm",!0);case"amr-wb-16000h":return new s(o.AudioFormatTag.AMR_WB,1,16e3,3052,2,16,e,e,!1);case"g722-16khz-64kbps":return new s(o.AudioFormatTag.G722,1,16e3,8e3,2,16,e,e,!1);default:return new s(o.AudioFormatTag.PCM,1,16e3,32e3,2,16,"riff-16khz-16bit-mono-pcm","raw-16khz-16bit-mono-pcm",!0)}}static getDefaultOutputFormat(){return s.fromSpeechSynthesisOutputFormatString("undefined"!=typeof window?"audio-24khz-48kbitrate-mono-mp3":"riff-16khz-16bit-mono-pcm")}get hasHeader(){return this.priHasHeader}get header(){if(this.hasHeader)return this.privHeader}updateHeader(e){if(this.priHasHeader){let r=new DataView(this.privHeader);r.setUint32(4,e+this.privHeader.byteLength-8,!0),r.setUint32(40,e,!0)}}get requestAudioFormatString(){return this.priRequestAudioFormatString}addHeader(e){if(!this.hasHeader)return e;this.updateHeader(e.byteLength);let r=new Uint8Array(e.byteLength+this.header.byteLength);return r.set(new Uint8Array(this.header),0),r.set(new Uint8Array(e),this.header.byteLength),r.buffer}}r.AudioOutputFormatImpl=s,s.SpeechSynthesisOutputFormatToString={[n.SpeechSynthesisOutputFormat.Raw8Khz8BitMonoMULaw]:"raw-8khz-8bit-mono-mulaw",[n.SpeechSynthesisOutputFormat.Riff16Khz16KbpsMonoSiren]:"riff-16khz-16kbps-mono-siren",[n.SpeechSynthesisOutputFormat.Audio16Khz16KbpsMonoSiren]:"audio-16khz-16kbps-mono-siren",[n.SpeechSynthesisOutputFormat.Audio16Khz32KBitRateMonoMp3]:"audio-16khz-32kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio16Khz128KBitRateMonoMp3]:"audio-16khz-128kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio16Khz64KBitRateMonoMp3]:"audio-16khz-64kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio24Khz48KBitRateMonoMp3]:"audio-24khz-48kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio24Khz96KBitRateMonoMp3]:"audio-24khz-96kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio24Khz160KBitRateMonoMp3]:"audio-24khz-160kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Raw16Khz16BitMonoTrueSilk]:"raw-16khz-16bit-mono-truesilk",[n.SpeechSynthesisOutputFormat.Riff16Khz16BitMonoPcm]:"riff-16khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff8Khz16BitMonoPcm]:"riff-8khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm]:"riff-24khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff8Khz8BitMonoMULaw]:"riff-8khz-8bit-mono-mulaw",[n.SpeechSynthesisOutputFormat.Raw16Khz16BitMonoPcm]:"raw-16khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Raw24Khz16BitMonoPcm]:"raw-24khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Raw8Khz16BitMonoPcm]:"raw-8khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Ogg16Khz16BitMonoOpus]:"ogg-16khz-16bit-mono-opus",[n.SpeechSynthesisOutputFormat.Ogg24Khz16BitMonoOpus]:"ogg-24khz-16bit-mono-opus",[n.SpeechSynthesisOutputFormat.Raw48Khz16BitMonoPcm]:"raw-48khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff48Khz16BitMonoPcm]:"riff-48khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Audio48Khz96KBitRateMonoMp3]:"audio-48khz-96kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio48Khz192KBitRateMonoMp3]:"audio-48khz-192kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Ogg48Khz16BitMonoOpus]:"ogg-48khz-16bit-mono-opus",[n.SpeechSynthesisOutputFormat.Webm16Khz16BitMonoOpus]:"webm-16khz-16bit-mono-opus",[n.SpeechSynthesisOutputFormat.Webm24Khz16BitMonoOpus]:"webm-24khz-16bit-mono-opus",[n.SpeechSynthesisOutputFormat.Webm24Khz16Bit24KbpsMonoOpus]:"webm-24khz-16bit-24kbps-mono-opus",[n.SpeechSynthesisOutputFormat.Raw24Khz16BitMonoTrueSilk]:"raw-24khz-16bit-mono-truesilk",[n.SpeechSynthesisOutputFormat.Raw8Khz8BitMonoALaw]:"raw-8khz-8bit-mono-alaw",[n.SpeechSynthesisOutputFormat.Riff8Khz8BitMonoALaw]:"riff-8khz-8bit-mono-alaw",[n.SpeechSynthesisOutputFormat.Audio16Khz16Bit32KbpsMonoOpus]:"audio-16khz-16bit-32kbps-mono-opus",[n.SpeechSynthesisOutputFormat.Audio24Khz16Bit48KbpsMonoOpus]:"audio-24khz-16bit-48kbps-mono-opus",[n.SpeechSynthesisOutputFormat.Audio24Khz16Bit24KbpsMonoOpus]:"audio-24khz-16bit-24kbps-mono-opus",[n.SpeechSynthesisOutputFormat.Raw22050Hz16BitMonoPcm]:"raw-22050hz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff22050Hz16BitMonoPcm]:"riff-22050hz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Raw44100Hz16BitMonoPcm]:"raw-44100hz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff44100Hz16BitMonoPcm]:"riff-44100hz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.AmrWb16000Hz]:"amr-wb-16000hz",[n.SpeechSynthesisOutputFormat.G72216Khz64Kbps]:"g722-16khz-64kbps"}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.PushAudioOutputStreamImpl=r.PushAudioOutputStream=r.PullAudioOutputStreamImpl=r.PullAudioOutputStream=r.AudioOutputStream=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputFormat.js");class a{constructor(){return}static createPullStream(){return c.create()}}r.AudioOutputStream=a;class c extends a{static create(){return new d}}r.PullAudioOutputStream=c;class d extends c{constructor(){super(),this.privId=(0,n.createNoDashGuid)(),this.privStream=new n.Stream}set format(e){null==e&&(this.privFormat=s.AudioOutputFormatImpl.getDefaultOutputFormat()),this.privFormat=e}get format(){return this.privFormat}get isClosed(){return this.privStream.isClosed}id(){return this.privId}async read(e){let r=new Int8Array(e),i=0;if(void 0!==this.privLastChunkView){if(this.privLastChunkView.length>e.byteLength)return r.set(this.privLastChunkView.slice(0,e.byteLength)),this.privLastChunkView=this.privLastChunkView.slice(e.byteLength),Promise.resolve(e.byteLength);r.set(this.privLastChunkView),i=this.privLastChunkView.length,this.privLastChunkView=void 0}for(;i<e.byteLength&&!this.privStream.isReadEnded;){let n=await this.privStream.read();if(void 0===n||n.isEnd)this.privStream.readEnded();else{let o;n.buffer.byteLength>e.byteLength-i?(o=n.buffer.slice(0,e.byteLength-i),this.privLastChunkView=new Int8Array(n.buffer.slice(e.byteLength-i))):o=n.buffer,r.set(new Int8Array(o),i),i+=o.byteLength}}return i}write(e){o.Contracts.throwIfNullOrUndefined(this.privStream,"must set format before writing"),this.privStream.writeStreamChunk({buffer:e,isEnd:!1,timeReceived:Date.now()})}close(){this.privStream.close()}}r.PullAudioOutputStreamImpl=d;class l extends a{constructor(){super()}static create(e){return new u(e)}}r.PushAudioOutputStream=l;class u extends l{constructor(e){super(),this.privId=(0,n.createNoDashGuid)(),this.privCallback=e}set format(e){}write(e){this.privCallback.write&&this.privCallback.write(e)}close(){this.privCallback.close&&this.privCallback.close()}id(){return this.privId}}r.PushAudioOutputStreamImpl=u},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js":function(e,r){var i,n;Object.defineProperty(r,"__esModule",{value:!0}),r.AudioStreamFormatImpl=r.AudioStreamFormat=r.AudioFormatTag=void 0,(n=i=r.AudioFormatTag||(r.AudioFormatTag={}))[n.PCM=1]="PCM",n[n.MuLaw=2]="MuLaw",n[n.Siren=3]="Siren",n[n.MP3=4]="MP3",n[n.SILKSkype=5]="SILKSkype",n[n.OGG_OPUS=6]="OGG_OPUS",n[n.WEBM_OPUS=7]="WEBM_OPUS",n[n.ALaw=8]="ALaw",n[n.FLAC=9]="FLAC",n[n.OPUS=10]="OPUS",n[n.AMR_WB=11]="AMR_WB",n[n.G722=12]="G722";class o{static getDefaultInputFormat(){return s.getDefaultInputFormat()}static getWaveFormat(e,r,i,n){return new s(e,r,i,n)}static getWaveFormatPCM(e,r,i){return new s(e,r,i)}}r.AudioStreamFormat=o;class s extends o{constructor(e=16e3,r=16,n=1,o=i.PCM){super();let s=!0;switch(o){case i.PCM:this.formatTag=1;break;case i.ALaw:this.formatTag=6;break;case i.MuLaw:this.formatTag=7;break;default:s=!1}if(this.bitsPerSample=r,this.samplesPerSec=e,this.channels=n,this.avgBytesPerSec=this.samplesPerSec*this.channels*(this.bitsPerSample/8),this.blockAlign=this.channels*Math.max(this.bitsPerSample,8),s){this.privHeader=new ArrayBuffer(44);let e=new DataView(this.privHeader);this.setString(e,0,"RIFF"),e.setUint32(4,0,!0),this.setString(e,8,"WAVEfmt "),e.setUint32(16,16,!0),e.setUint16(20,this.formatTag,!0),e.setUint16(22,this.channels,!0),e.setUint32(24,this.samplesPerSec,!0),e.setUint32(28,this.avgBytesPerSec,!0),e.setUint16(32,this.channels*(this.bitsPerSample/8),!0),e.setUint16(34,this.bitsPerSample,!0),this.setString(e,36,"data"),e.setUint32(40,0,!0)}}static getDefaultInputFormat(){return new s}static getAudioContext(e){let r=window.AudioContext||window.webkitAudioContext||!1;if(r)if(void 0!==e&&navigator.mediaDevices.getSupportedConstraints().sampleRate)return new r({sampleRate:e});else return new r;throw Error("Browser does not support Web Audio API (AudioContext is not available).")}close(){}get header(){return this.privHeader}setString(e,r,i){for(let n=0;n<i.length;n++)e.setUint8(r+n,i.charCodeAt(n))}}r.AudioStreamFormatImpl=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/BaseAudioPlayer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BaseAudioPlayer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js");r.BaseAudioPlayer=class{constructor(e){this.audioContext=null,this.gainNode=null,this.autoUpdateBufferTimer=0,void 0===e&&(e=o.AudioStreamFormat.getDefaultInputFormat()),this.init(e)}playAudioSample(e,r,i){try{this.ensureInitializedContext();let i=this.formatAudioData(e),n=new Float32Array(this.samples.length+i.length);n.set(this.samples,0),n.set(i,this.samples.length),this.samples=n,r&&r()}catch(e){i&&i(e)}}stopAudio(e,r){null!==this.audioContext&&(this.samples=new Float32Array,clearInterval(this.autoUpdateBufferTimer),this.audioContext.close().then(()=>{e&&e()},e=>{r&&r(e)}),this.audioContext=null)}init(e){this.audioFormat=e,this.samples=new Float32Array}ensureInitializedContext(){null===this.audioContext&&(this.createAudioContext(),this.autoUpdateBufferTimer=setInterval(()=>{this.updateAudioBuffer()},200))}createAudioContext(){this.audioContext=s.AudioStreamFormatImpl.getAudioContext(),this.gainNode=this.audioContext.createGain(),this.gainNode.gain.value=1,this.gainNode.connect(this.audioContext.destination),this.startTime=this.audioContext.currentTime}formatAudioData(e){switch(this.audioFormat.bitsPerSample){case 8:return this.formatArrayBuffer(new Int8Array(e),128);case 16:return this.formatArrayBuffer(new Int16Array(e),32768);case 32:return this.formatArrayBuffer(new Int32Array(e),0x80000000);default:throw new n.InvalidOperationError("Only WAVE_FORMAT_PCM (8/16/32 bps) format supported at this time")}}formatArrayBuffer(e,r){let i=new Float32Array(e.length);for(let n=0;n<e.length;n++)i[n]=e[n]/r;return i}updateAudioBuffer(){if(0===this.samples.length)return;let e=this.audioFormat.channels,r=this.audioContext.createBufferSource(),i=this.samples.length/e,n=this.audioContext.createBuffer(e,i,this.audioFormat.samplesPerSec);for(let r=0;r<e;r++){let i=r,o=n.getChannelData(r);for(let r=0;r<this.samples.length;r++,i+=e)o[r]=this.samples[i]}this.startTime<this.audioContext.currentTime&&(this.startTime=this.audioContext.currentTime),r.buffer=n,r.connect(this.gainNode),r.start(this.startTime),this.startTime+=n.duration,this.samples=new Float32Array}async playAudio(e){null===this.audioContext&&this.createAudioContext();let r=this.audioContext.createBufferSource(),i=this.audioContext.destination;await this.audioContext.decodeAudioData(e,e=>{r.buffer=e,r.connect(i),r.start(0)})}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/PullAudioInputStreamCallback.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PullAudioInputStreamCallback=void 0,r.PullAudioInputStreamCallback=class{}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/PushAudioOutputStreamCallback.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PushAudioOutputStreamCallback=void 0,r.PushAudioOutputStreamCallback=class{}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/SpeakerAudioDestination.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeakerAudioDestination=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js"),a={[s.AudioFormatTag.PCM]:"audio/wav",[s.AudioFormatTag.MuLaw]:"audio/x-wav",[s.AudioFormatTag.MP3]:"audio/mpeg",[s.AudioFormatTag.OGG_OPUS]:"audio/ogg",[s.AudioFormatTag.WEBM_OPUS]:"audio/webm; codecs=opus",[s.AudioFormatTag.ALaw]:"audio/x-wav",[s.AudioFormatTag.FLAC]:"audio/flac",[s.AudioFormatTag.AMR_WB]:"audio/amr-wb",[s.AudioFormatTag.G722]:"audio/G722"};r.SpeakerAudioDestination=class{constructor(e){this.privPlaybackStarted=!1,this.privAppendingToBuffer=!1,this.privMediaSourceOpened=!1,this.privBytesReceived=0,this.privId=e||(0,n.createNoDashGuid)(),this.privIsPaused=!1,this.privIsClosed=!1}id(){return this.privId}write(e,r,i){void 0!==this.privAudioBuffer?(this.privAudioBuffer.push(e),this.updateSourceBuffer().then(()=>{r&&r()},e=>{i&&i(e)})):void 0!==this.privAudioOutputStream&&(this.privAudioOutputStream.write(e),this.privBytesReceived+=e.byteLength)}close(e,r){if(this.privIsClosed=!0,void 0!==this.privSourceBuffer)this.handleSourceBufferUpdateEnd().then(()=>{e&&e()},e=>{r&&r(e)});else if(void 0!==this.privAudioOutputStream&&"undefined"!=typeof window)if((this.privFormat.formatTag===s.AudioFormatTag.PCM||this.privFormat.formatTag===s.AudioFormatTag.MuLaw||this.privFormat.formatTag===s.AudioFormatTag.ALaw)&&!1===this.privFormat.hasHeader)console.warn("Play back is not supported for raw PCM, mulaw or alaw format without header."),this.onAudioEnd&&this.onAudioEnd(this);else{let i=new ArrayBuffer(this.privBytesReceived);this.privAudioOutputStream.read(i).then(()=>{let n=new Blob([i=this.privFormat.addHeader(i)],{type:a[this.privFormat.formatTag]});this.privAudio.src=window.URL.createObjectURL(n),this.notifyPlayback().then(()=>{e&&e()},e=>{r&&r(e)})},e=>{r&&r(e)})}else this.onAudioEnd&&this.onAudioEnd(this)}set format(e){if("undefined"!=typeof AudioContext||"undefined"!=typeof window&&void 0!==window.webkitAudioContext){this.privFormat=e;let r=a[this.privFormat.formatTag];void 0===r?console.warn(`Unknown mimeType for format ${s.AudioFormatTag[this.privFormat.formatTag]}; playback is not supported.`):"undefined"!=typeof MediaSource&&MediaSource.isTypeSupported(r)?(this.privAudio=new Audio,this.privAudioBuffer=[],this.privMediaSource=new MediaSource,this.privAudio.src=URL.createObjectURL(this.privMediaSource),this.privAudio.load(),this.privMediaSource.onsourceopen=()=>{this.privMediaSourceOpened=!0,this.privMediaSource.duration=1800,this.privSourceBuffer=this.privMediaSource.addSourceBuffer(r),this.privSourceBuffer.onupdate=()=>{this.updateSourceBuffer().catch(e=>{n.Events.instance.onEvent(new n.BackgroundEvent(e))})},this.privSourceBuffer.onupdateend=()=>{this.handleSourceBufferUpdateEnd().catch(e=>{n.Events.instance.onEvent(new n.BackgroundEvent(e))})},this.privSourceBuffer.onupdatestart=()=>{this.privAppendingToBuffer=!1}},this.updateSourceBuffer().catch(e=>{n.Events.instance.onEvent(new n.BackgroundEvent(e))})):(console.warn(`Format ${s.AudioFormatTag[this.privFormat.formatTag]} could not be played by MSE, streaming playback is not enabled.`),this.privAudioOutputStream=new o.PullAudioOutputStreamImpl,this.privAudioOutputStream.format=this.privFormat,this.privAudio=new Audio)}}get volume(){return this.privAudio?.volume??-1}set volume(e){this.privAudio&&(this.privAudio.volume=e)}mute(){this.privAudio&&(this.privAudio.muted=!0)}unmute(){this.privAudio&&(this.privAudio.muted=!1)}get isClosed(){return this.privIsClosed}get currentTime(){return void 0!==this.privAudio?this.privAudio.currentTime:-1}pause(){this.privIsPaused||void 0===this.privAudio||(this.privAudio.pause(),this.privIsPaused=!0)}resume(e,r){this.privIsPaused&&void 0!==this.privAudio&&(this.privAudio.play().then(()=>{e&&e()},e=>{r&&r(e)}),this.privIsPaused=!1)}get internalAudio(){return this.privAudio}async updateSourceBuffer(){if(void 0!==this.privAudioBuffer&&this.privAudioBuffer.length>0&&this.sourceBufferAvailable()){this.privAppendingToBuffer=!0;let e=this.privAudioBuffer.shift();try{this.privSourceBuffer.appendBuffer(e)}catch(r){this.privAudioBuffer.unshift(e),console.log("buffer filled, pausing addition of binaries until space is made");return}await this.notifyPlayback()}else this.canEndStream()&&await this.handleSourceBufferUpdateEnd()}async handleSourceBufferUpdateEnd(){this.canEndStream()&&this.sourceBufferAvailable()&&(this.privMediaSource.endOfStream(),await this.notifyPlayback())}async notifyPlayback(){!this.privPlaybackStarted&&void 0!==this.privAudio&&(this.privPlaybackStarted=!0,this.onAudioStart&&this.onAudioStart(this),this.privAudio.onended=()=>{this.onAudioEnd&&this.onAudioEnd(this)},this.privIsPaused||await this.privAudio.play())}canEndStream(){return this.isClosed&&void 0!==this.privSourceBuffer&&0===this.privAudioBuffer.length&&this.privMediaSourceOpened&&!this.privAppendingToBuffer&&"open"===this.privMediaSource.readyState}sourceBufferAvailable(){return void 0!==this.privSourceBuffer&&!this.privSourceBuffer.updating}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AutoDetectSourceLanguageConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AutoDetectSourceLanguageConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/LanguageIdMode.js");class c{constructor(){this.privProperties=new s.PropertyCollection,this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_LanguageIdMode,"AtStart"),this.privLanguageIdMode=a.LanguageIdMode.AtStart}static fromOpenRange(){let e=new c;return e.properties.setProperty(s.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,n.AutoDetectSourceLanguagesOpenRangeOptionName),e.properties.setProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage,"en-US"),e}static fromLanguages(e){o.Contracts.throwIfArrayEmptyOrWhitespace(e,"languages");let r=new c;return r.properties.setProperty(s.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,e.join()),r}static fromSourceLanguageConfigs(e){if(e.length<1)throw Error("Expected non-empty SourceLanguageConfig array.");let r=new c,i=[];return e.forEach(e=>{if(i.push(e.language),void 0!==e.endpointId&&""!==e.endpointId){let i=e.language+s.PropertyId.SpeechServiceConnection_EndpointId.toString();r.properties.setProperty(i,e.endpointId)}}),r.properties.setProperty(s.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,i.join()),r}get properties(){return this.privProperties}set mode(e){e===a.LanguageIdMode.Continuous?(this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"2"),this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_LanguageIdMode,"Continuous")):(this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"1"),this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_LanguageIdMode,"AtStart")),this.privLanguageIdMode=e}}r.AutoDetectSourceLanguageConfig=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AutoDetectSourceLanguageResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AutoDetectSourceLanguageResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js");class o{constructor(e,r){n.Contracts.throwIfNullOrUndefined(e,"language"),n.Contracts.throwIfNullOrUndefined(r,"languageDetectionConfidence"),this.privLanguage=e,this.privLanguageDetectionConfidence=r}static fromResult(e){return new o(e.language,e.languageDetectionConfidence)}static fromConversationTranscriptionResult(e){return new o(e.language,e.languageDetectionConfidence)}get language(){return this.privLanguage}get languageDetectionConfidence(){return this.privLanguageDetectionConfidence}}r.AutoDetectSourceLanguageResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AvatarConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");r.AvatarConfig=class{constructor(e,r,i){this.privCustomized=!1,this.privUseBuiltInVoice=!1,n.Contracts.throwIfNullOrWhitespace(e,"character"),this.character=e,this.style=r,void 0===i&&(i=new o.AvatarVideoFormat),this.videoFormat=i}get customized(){return this.privCustomized}set customized(e){this.privCustomized=e}get useBuiltInVoice(){return this.privUseBuiltInVoice}set useBuiltInVoice(e){this.privUseBuiltInVoice=e}get photoAvatarBaseModel(){return this.privPhotoAvatarBaseModel}set photoAvatarBaseModel(e){this.privPhotoAvatarBaseModel=e}get backgroundColor(){return this.privBackgroundColor}set backgroundColor(e){this.privBackgroundColor=e}get backgroundImage(){return this.privBackgroundImage}set backgroundImage(e){this.privBackgroundImage=e}get remoteIceServers(){return this.privRemoteIceServers}set remoteIceServers(e){this.privRemoteIceServers=e}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarEventArgs.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.AvatarEventArgs=r.AvatarEventTypes=void 0,(i=r.AvatarEventTypes||(r.AvatarEventTypes={})).SwitchedToSpeaking="SwitchedToSpeaking",i.SwitchedToIdle="SwitchedToIdle",i.SessionClosed="SessionClosed",r.AvatarEventArgs=class{constructor(e,r){this.privOffset=e,this.privDescription=r}get type(){return this.privType}get offset(){return this.privOffset}get description(){return this.privDescription}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarSynthesizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AvatarSynthesizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechSynthesisConnectionFactory.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputFormat.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Synthesizer.js");class u extends c.Synthesizer{constructor(e,r){super(e),d.Contracts.throwIfNullOrUndefined(r,"avatarConfig"),this.privConnectionFactory=new n.SpeechSynthesisConnectionFactory,this.privAvatarConfig=r,this.implCommonSynthesizeSetup()}implCommonSynthesizeSetup(){super.implCommonSynthesizeSetup(),this.privAdapter.audioOutputFormat=a.AudioOutputFormatImpl.fromSpeechSynthesisOutputFormat(c.SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm)}async startAvatarAsync(e){d.Contracts.throwIfNullOrUndefined(e,"peerConnection"),this.privIceServers=e.getConfiguration().iceServers,d.Contracts.throwIfNullOrUndefined(this.privIceServers,"Ice servers must be set.");let r=new s.Deferred;e.onicegatheringstatechange=()=>{s.Events.instance.onEvent(new s.PlatformEvent("peer connection: ice gathering state: "+e.iceGatheringState,s.EventType.Debug)),"complete"===e.iceGatheringState&&(s.Events.instance.onEvent(new s.PlatformEvent("peer connection: ice gathering complete.",s.EventType.Info)),r.resolve())},e.onicecandidate=e=>{e.candidate?s.Events.instance.onEvent(new s.PlatformEvent("peer connection: ice candidate: "+e.candidate.candidate,s.EventType.Debug)):(s.Events.instance.onEvent(new s.PlatformEvent("peer connection: ice candidate: complete",s.EventType.Debug)),r.resolve())},setTimeout(()=>{"complete"!==e.iceGatheringState&&(s.Events.instance.onEvent(new s.PlatformEvent("peer connection: ice gathering timeout.",s.EventType.Warning)),r.resolve())},2e3);let i=await e.createOffer();await e.setLocalDescription(i),await r.promise,s.Events.instance.onEvent(new s.PlatformEvent("peer connection: got local SDP.",s.EventType.Info)),this.privProperties.setProperty(c.PropertyId.TalkingAvatarService_WebRTC_SDP,JSON.stringify(e.localDescription));let n=await this.speak("",!1);if(n.reason!==c.ResultReason.SynthesizingAudioCompleted)return new c.SynthesisResult(n.resultId,n.reason,n.errorDetails,n.properties);let o=new RTCSessionDescription(JSON.parse(atob(n.properties.getProperty(c.PropertyId.TalkingAvatarService_WebRTC_SDP))));return await e.setRemoteDescription(o),new c.SynthesisResult(n.resultId,n.reason,void 0,n.properties)}async speakTextAsync(e){let r=await this.speak(e,!1);return new c.SynthesisResult(r.resultId,r.reason,r.errorDetails,r.properties)}async speakSsmlAsync(e){let r=await this.speak(e,!0);return new c.SynthesisResult(r.resultId,r.reason,r.errorDetails,r.properties)}async stopSpeakingAsync(){for(;this.synthesisRequestQueue.length()>0;)(await this.synthesisRequestQueue.dequeue()).err("Synthesis is canceled by user.");return this.privAdapter.stopSpeaking()}async stopAvatarAsync(){return d.Contracts.throwIfDisposed(this.privDisposed),this.dispose(!0)}async close(){if(!this.privDisposed)return this.dispose(!0)}get iceServers(){return this.privIceServers}createSynthesisAdapter(e,r,i){return new o.AvatarSynthesisAdapter(e,r,i,this,this.privAvatarConfig)}createRestSynthesisAdapter(e,r){}createSynthesizerConfig(e){let r=super.createSynthesizerConfig(e);return r.avatarEnabled=!0,r}async speak(e,r){let i=(0,s.createNoDashGuid)(),n=new s.Deferred;return this.synthesisRequestQueue.enqueue(new l.SynthesisRequest(i,e,r,e=>{n.resolve(e),this.privSynthesizing=!1,this.adapterSpeak()},e=>{n.reject(e),this.privSynthesizing=!1})),this.adapterSpeak(),n.promise}}r.AvatarSynthesizer=u},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarVideoFormat.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AvatarVideoFormat=r.Coordinate=void 0,r.Coordinate=class{constructor(e,r){this.x=e,this.y=r}},r.AvatarVideoFormat=class{constructor(e="H264",r=2e6,i=1920,n=1080){this.codec=e,this.bitrate=r,this.width=i,this.height=n}setCropRange(e,r){this.cropRange={bottomRight:r,topLeft:e}}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarWebRTCConnectionResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AvatarWebRTCConnectionResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SynthesisResult{constructor(e,r,i,n,o){super(r,i,n,o),this.privSDPAnswer=e}get SDPAnswer(){return this.privSDPAnswer}}r.AvatarWebRTCConnectionResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/BotFrameworkConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BotFrameworkConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConfig.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class a extends o.DialogServiceConfigImpl{constructor(){super()}static fromSubscription(e,r,i){n.Contracts.throwIfNullOrWhitespace(e,"subscription"),n.Contracts.throwIfNullOrWhitespace(r,"region");let a=new o.DialogServiceConfigImpl;return a.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.BotFramework),a.setProperty(s.PropertyId.SpeechServiceConnection_Key,e),a.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i&&a.setProperty(s.PropertyId.Conversation_ApplicationId,i),a}static fromAuthorizationToken(e,r,i){n.Contracts.throwIfNullOrWhitespace(e,"authorizationToken"),n.Contracts.throwIfNullOrWhitespace(r,"region");let a=new o.DialogServiceConfigImpl;return a.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.BotFramework),a.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,e),a.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i&&a.setProperty(s.PropertyId.Conversation_ApplicationId,i),a}static fromHost(e,r,i){n.Contracts.throwIfNullOrUndefined(e,"host");let a=e instanceof URL?e:new URL(`wss://${e}.convai.speech.azure.us`);n.Contracts.throwIfNullOrUndefined(a,"resolvedHost");let c=new o.DialogServiceConfigImpl;return c.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.BotFramework),c.setProperty(s.PropertyId.SpeechServiceConnection_Host,a.toString()),void 0!==r&&c.setProperty(s.PropertyId.SpeechServiceConnection_Key,r),c}static fromEndpoint(e,r){n.Contracts.throwIfNull(e,"endpoint");let i=new o.DialogServiceConfigImpl;return i.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.BotFramework),i.setProperty(s.PropertyId.SpeechServiceConnection_Endpoint,e.toString()),void 0!==r&&i.setProperty(s.PropertyId.SpeechServiceConnection_Key,r),i}}r.BotFrameworkConfig=a},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationDetails.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationDetails=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationDetailsBase.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class a extends o.CancellationDetailsBase{constructor(e,r,i){super(e,r,i)}static fromResult(e){let r=s.CancellationReason.Error,i=s.CancellationErrorCode.NoError;if(e instanceof s.RecognitionResult&&e.json){let i=n.SimpleSpeechPhrase.fromJSON(e.json,0);r=n.EnumTranslation.implTranslateCancelResult(i.RecognitionStatus)}return e.properties&&(i=s.CancellationErrorCode[e.properties.getProperty(n.CancellationErrorCodePropertyName,s.CancellationErrorCode[s.CancellationErrorCode.NoError])]),new a(r,e.errorDetails||n.EnumTranslation.implTranslateErrorDetails(i),i)}}r.CancellationDetails=a},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationDetailsBase.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationDetailsBase=void 0,r.CancellationDetailsBase=class{constructor(e,r,i){this.privReason=e,this.privErrorDetails=r,this.privErrorCode=i}get reason(){return this.privReason}get errorDetails(){return this.privErrorDetails}get ErrorCode(){return this.privErrorCode}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationErrorCodes.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationErrorCode=void 0,(i=r.CancellationErrorCode||(r.CancellationErrorCode={}))[i.NoError=0]="NoError",i[i.AuthenticationFailure=1]="AuthenticationFailure",i[i.BadRequestParameters=2]="BadRequestParameters",i[i.TooManyRequests=3]="TooManyRequests",i[i.ConnectionFailure=4]="ConnectionFailure",i[i.ServiceTimeout=5]="ServiceTimeout",i[i.ServiceError=6]="ServiceError",i[i.RuntimeError=7]="RuntimeError",i[i.Forbidden=8]="Forbidden"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationEventArgsBase=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionEventArgs{constructor(e,r,i,n,o){super(n,o),this.privReason=e,this.privErrorDetails=r,this.privErrorCode=i}get reason(){return this.privReason}get errorCode(){return this.privErrorCode}get errorDetails(){return this.privErrorDetails}}r.CancellationEventArgsBase=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationReason.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationReason=void 0,(i=r.CancellationReason||(r.CancellationReason={}))[i.Error=0]="Error",i[i.EndOfStream=1]="EndOfStream"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Connection.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Connection=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionMessage.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class d{static fromRecognizer(e){let r=e.internalData,i=new d;return i.privInternalData=r,i.setupEvents(),i}static fromSynthesizer(e){let r=e.internalData,i=new d;return i.privInternalData=r,i.setupEvents(),i}openConnection(e,r){(0,o.marshalPromiseToCallbacks)(this.privInternalData.connect(),e,r)}closeConnection(e,r){if(this.privInternalData instanceof n.SynthesisAdapterBase)throw Error("Disconnecting a synthesizer's connection is currently not supported");(0,o.marshalPromiseToCallbacks)(this.privInternalData.disconnect(),e,r)}setMessageProperty(e,r,i){if(a.Contracts.throwIfNullOrWhitespace(r,"propertyName"),this.privInternalData instanceof n.ServiceRecognizerBase)if("speech.context"!==e.toLowerCase())throw Error("Only speech.context message property sets are currently supported for recognizer");else this.privInternalData.speechContext.getContext()[r]=i;else if(this.privInternalData instanceof n.SynthesisAdapterBase)if("speech.config"!==e.toLowerCase()&&"synthesis.context"!==e.toLowerCase())throw Error("Only speech.config and synthesis.context message paths are currently supported for synthesizer");else if("speech.config"===e.toLowerCase())if("context"!==r.toLowerCase())throw Error("Only context property is currently supported for speech.config message path for synthesizer");else this.privInternalData.synthesizerConfig.setContextFromJson(i);else this.privInternalData.synthesisContext.setSection(r,i)}sendMessageAsync(e,r,i,n){(0,o.marshalPromiseToCallbacks)(this.privInternalData.sendNetworkMessage(e,r),i,n)}close(){}setupEvents(){this.privEventListener=this.privInternalData.connectionEvents.attach(e=>{"ConnectionEstablishedEvent"===e.name?this.connected&&this.connected(new c.ConnectionEventArgs(e.connectionId)):"ConnectionClosedEvent"===e.name?this.disconnected&&this.disconnected(new c.ConnectionEventArgs(e.connectionId)):"ConnectionMessageSentEvent"===e.name?this.messageSent&&this.messageSent(new c.ConnectionMessageEventArgs(new s.ConnectionMessageImpl(e.message))):"ConnectionMessageReceivedEvent"===e.name&&this.messageReceived&&this.messageReceived(new c.ConnectionMessageEventArgs(new s.ConnectionMessageImpl(e.message)))}),this.privServiceEventListener=this.privInternalData.serviceEvents.attach(e=>{this.receivedServiceMessage&&this.receivedServiceMessage(new c.ServiceEventArgs(e.jsonString,e.name))})}}r.Connection=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{}r.ConnectionEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionMessage.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionMessageImpl=r.ConnectionMessage=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/HeaderNames.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyCollection.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyId.js");r.ConnectionMessage=class{},r.ConnectionMessageImpl=class{constructor(e){this.privConnectionMessage=e,this.privProperties=new s.PropertyCollection,this.privConnectionMessage.headers[n.HeaderNames.ConnectionId]&&this.privProperties.setProperty(a.PropertyId.Speech_SessionId,this.privConnectionMessage.headers[n.HeaderNames.ConnectionId]),Object.keys(this.privConnectionMessage.headers).forEach(e=>{this.privProperties.setProperty(e,this.privConnectionMessage.headers[e])})}get path(){return this.privConnectionMessage.headers[Object.keys(this.privConnectionMessage.headers).find(e=>"path"===e.toLowerCase())]}get isTextMessage(){return this.privConnectionMessage.messageType===o.MessageType.Text}get isBinaryMessage(){return this.privConnectionMessage.messageType===o.MessageType.Binary}get TextMessage(){return this.privConnectionMessage.textBody}get binaryMessage(){return this.privConnectionMessage.binaryBody}get properties(){return this.privProperties}toString(){return""}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionMessageEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionMessageEventArgs=void 0,r.ConnectionMessageEventArgs=class{constructor(e){this.privConnectionMessage=e}get message(){return this.privConnectionMessage}toString(){return"Message: "+this.privConnectionMessage.toString()}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Contracts=void 0;class i{static throwIfNullOrUndefined(e,r){if(null==e)throw Error("throwIfNullOrUndefined:"+r)}static throwIfNull(e,r){if(null===e)throw Error("throwIfNull:"+r)}static throwIfNullOrWhitespace(e,r){if(i.throwIfNullOrUndefined(e,r),(""+e).trim().length<1)throw Error("throwIfNullOrWhitespace:"+r)}static throwIfNullOrTooLong(e,r,n){if(i.throwIfNullOrUndefined(e,r),(""+e).length>n)throw Error("throwIfNullOrTooLong:"+r+" (more than "+n.toString()+" characters)")}static throwIfNullOrTooShort(e,r,n){if(i.throwIfNullOrUndefined(e,r),(""+e).length<n)throw Error("throwIfNullOrTooShort:"+r+" (less than "+n.toString()+" characters)")}static throwIfDisposed(e){if(e)throw Error("the object is already disposed")}static throwIfArrayEmptyOrWhitespace(e,r){if(i.throwIfNullOrUndefined(e,r),0===e.length)throw Error("throwIfArrayEmptyOrWhitespace:"+r);for(let n of e)i.throwIfNullOrWhitespace(n,r)}static throwIfFileDoesNotExist(e,r){i.throwIfNullOrWhitespace(e,r)}static throwIfNotUndefined(e,r){if(void 0!==e)throw Error("throwIfNotUndefined:"+r)}static throwIfNumberOutOfRange(e,r,n,o){if(i.throwIfNullOrUndefined(e,r),e<n||e>o)throw Error("throwIfNumberOutOfRange:"+r+" (must be between "+n.toString()+" and "+o.toString()+")")}}r.Contracts=i},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConversationTranscriptionCanceledEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranscriptionCanceledEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js");class o extends n.CancellationEventArgsBase{}r.ConversationTranscriptionCanceledEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CustomCommandsConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.CustomCommandsConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConfig.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class a extends o.DialogServiceConfigImpl{constructor(){super()}static fromSubscription(e,r,i){n.Contracts.throwIfNullOrWhitespace(e,"applicationId"),n.Contracts.throwIfNullOrWhitespace(r,"subscription"),n.Contracts.throwIfNullOrWhitespace(i,"region");let a=new o.DialogServiceConfigImpl;return a.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.CustomCommands),a.setProperty(s.PropertyId.Conversation_ApplicationId,e),a.setProperty(s.PropertyId.SpeechServiceConnection_Key,r),a.setProperty(s.PropertyId.SpeechServiceConnection_Region,i),a}static fromAuthorizationToken(e,r,i){n.Contracts.throwIfNullOrWhitespace(e,"applicationId"),n.Contracts.throwIfNullOrWhitespace(r,"authorizationToken"),n.Contracts.throwIfNullOrWhitespace(i,"region");let a=new o.DialogServiceConfigImpl;return a.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.CustomCommands),a.setProperty(s.PropertyId.Conversation_ApplicationId,e),a.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,r),a.setProperty(s.PropertyId.SpeechServiceConnection_Region,i),a}set applicationId(e){n.Contracts.throwIfNullOrWhitespace(e,"value"),this.setProperty(s.PropertyId.Conversation_ApplicationId,e)}get applicationId(){return this.getProperty(s.PropertyId.Conversation_ApplicationId)}}r.CustomCommandsConfig=a},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Diagnostics.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Diagnostics=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");class s{static SetLoggingLevel(e){this.privListener=new n.ConsoleLoggingListener(e),o.Events.instance.attachConsoleListener(this.privListener)}static StartConsoleOutput(){this.privListener&&(this.privListener.enableConsoleOutput=!0)}static StopConsoleOutput(){this.privListener&&(this.privListener.enableConsoleOutput=!1)}static SetLogOutputPath(e){if("undefined"==typeof window)this.privListener&&(this.privListener.logPath=e);else throw Error("File system logging not available in browser.")}static set onLogOutput(e){this.privListener&&(this.privListener.logCallback=e)}}r.Diagnostics=s,s.privListener=void 0},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DialogServiceConfigImpl=r.DialogServiceConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class s{constructor(){return}set applicationId(e){}static get DialogTypes(){return{BotFramework:"bot_framework",CustomCommands:"custom_commands"}}}r.DialogServiceConfig=s,r.DialogServiceConfigImpl=class extends s{constructor(){super(),this.privSpeechConfig=new o.SpeechConfigImpl}get properties(){return this.privSpeechConfig.properties}get speechRecognitionLanguage(){return this.privSpeechConfig.speechRecognitionLanguage}set speechRecognitionLanguage(e){n.Contracts.throwIfNullOrWhitespace(e,"value"),this.privSpeechConfig.speechRecognitionLanguage=e}get outputFormat(){return this.privSpeechConfig.outputFormat}set outputFormat(e){this.privSpeechConfig.outputFormat=e}setProperty(e,r){this.privSpeechConfig.setProperty(e,r)}getProperty(e,r){return this.privSpeechConfig.getProperty(e)}setProxy(e,r,i,n){this.setProperty(o.PropertyId.SpeechServiceConnection_ProxyHostName,e),this.setProperty(o.PropertyId.SpeechServiceConnection_ProxyPort,`${r}`),i&&this.setProperty(o.PropertyId.SpeechServiceConnection_ProxyUserName,i),n&&this.setProperty(o.PropertyId.SpeechServiceConnection_ProxyPassword,n)}setServiceProperty(e,r,i){this.privSpeechConfig.setServiceProperty(e,r)}close(){}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConnector.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DialogServiceConnector=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/DialogConnectorFactory.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyId.js");class u extends d.Recognizer{constructor(e,r){c.Contracts.throwIfNull(e,"dialogConfig"),super(r,e.properties,new n.DialogConnectionFactory),this.isTurnComplete=!0,this.privIsDisposed=!1,this.privProperties=e.properties.clone();let i=this.buildAgentConfig();this.privReco.agentConfig.set(i)}connect(e,r){(0,a.marshalPromiseToCallbacks)(this.privReco.connect(),e,r)}disconnect(e,r){(0,a.marshalPromiseToCallbacks)(this.privReco.disconnect(),e,r)}get authorizationToken(){return this.properties.getProperty(l.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){c.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(l.PropertyId.SpeechServiceAuthorization_Token,e)}get properties(){return this.privProperties}get speechActivityTemplate(){return this.properties.getProperty(l.PropertyId.Conversation_Speech_Activity_Template)}set speechActivityTemplate(e){this.properties.setProperty(l.PropertyId.Conversation_Speech_Activity_Template,e)}listenOnceAsync(e,r){if(this.isTurnComplete){c.Contracts.throwIfDisposed(this.privIsDisposed);let i=(async()=>{await this.privReco.connect(),await this.implRecognizerStop(),this.isTurnComplete=!1;let e=new a.Deferred;await this.privReco.recognize(s.RecognitionMode.Conversation,e.resolve,e.reject);let r=await e.promise;return await this.implRecognizerStop(),r})();i.catch(()=>{this.dispose(!0).catch(()=>{})}),(0,a.marshalPromiseToCallbacks)(i.finally(()=>{this.isTurnComplete=!0}),e,r)}}sendActivityAsync(e,r,i){(0,a.marshalPromiseToCallbacks)(this.privReco.sendMessage(e),r,i)}close(e,r){c.Contracts.throwIfDisposed(this.privIsDisposed),(0,a.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}async dispose(e){!this.privIsDisposed&&e&&(this.privIsDisposed=!0,await this.implRecognizerStop(),await super.dispose(e))}createRecognizerConfig(e){return new o.RecognizerConfig(e,this.privProperties)}createServiceRecognizer(e,r,i,n){return new o.DialogServiceAdapter(e,r,i,n,this)}buildAgentConfig(){return{botInfo:{commType:this.properties.getProperty("Conversation_Communication_Type","Default"),commandsCulture:void 0,connectionId:this.properties.getProperty(l.PropertyId.Conversation_Agent_Connection_Id),conversationId:this.properties.getProperty(l.PropertyId.Conversation_Conversation_Id,void 0),fromId:this.properties.getProperty(l.PropertyId.Conversation_From_Id,void 0),ttsAudioFormat:this.properties.getProperty(l.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)},version:.2}}}r.DialogServiceConnector=u},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.CustomCommandsConfig=r.BotFrameworkConfig=r.DialogServiceConfig=r.PhraseListGrammar=r.Connection=r.ServiceEventArgs=r.ConnectionEventArgs=r.CancellationErrorCode=r.CancellationDetails=r.CancellationDetailsBase=r.TranslationRecognitionCanceledEventArgs=r.NoMatchDetails=r.NoMatchReason=r.Translations=r.TranslationRecognizer=r.SpeechRecognizer=r.Recognizer=r.PropertyId=r.PropertyCollection=r.SpeechTranslationConfigImpl=r.SpeechTranslationConfig=r.SpeechConfigImpl=r.SpeechConfig=r.ResultReason=r.TranslationSynthesisResult=r.TranslationRecognitionResult=r.TranslationSynthesisEventArgs=r.TranslationRecognitionEventArgs=r.SpeechRecognitionCanceledEventArgs=r.MeetingTranscriptionEventArgs=r.ConversationTranscriptionEventArgs=r.SpeechRecognitionEventArgs=r.SpeechRecognitionResult=r.RecognitionResult=r.OutputFormat=r.RecognitionEventArgs=r.SessionEventArgs=r.KeywordRecognitionModel=r.PushAudioOutputStreamCallback=r.PullAudioInputStreamCallback=r.CancellationReason=r.PushAudioOutputStream=r.PullAudioOutputStream=r.AudioOutputStream=r.PushAudioInputStream=r.PullAudioInputStream=r.AudioInputStream=r.AudioFormatTag=r.AudioStreamFormat=r.AudioConfig=void 0,r.AvatarSynthesizer=r.AvatarEventArgs=r.AvatarConfig=r.LanguageIdMode=r.PronunciationAssessmentResult=r.PronunciationAssessmentConfig=r.PronunciationAssessmentGranularity=r.PronunciationAssessmentGradingSystem=r.MeetingTranscriptionCanceledEventArgs=r.ConversationTranscriptionCanceledEventArgs=r.SpeakerAudioDestination=r.VoiceInfo=r.SynthesisVoiceType=r.SynthesisVoiceGender=r.SynthesisVoicesResult=r.SpeechSynthesisBoundaryType=r.SpeechSynthesisVisemeEventArgs=r.SpeechSynthesisBookmarkEventArgs=r.SpeechSynthesisWordBoundaryEventArgs=r.SpeechSynthesisEventArgs=r.SpeechSynthesisResult=r.SynthesisResult=r.SpeechSynthesizer=r.SpeechSynthesisOutputFormat=r.Synthesizer=r.User=r.ParticipantChangedReason=r.Participant=r.MeetingTranscriber=r.Meeting=r.ConversationTranscriptionResult=r.ConversationTranscriber=r.ConversationTranslator=r.ConversationTranslationResult=r.ConversationTranslationEventArgs=r.ConversationTranslationCanceledEventArgs=r.ConversationParticipantsChangedEventArgs=r.ConversationExpirationEventArgs=r.Conversation=r.SourceLanguageConfig=r.AutoDetectSourceLanguageResult=r.AutoDetectSourceLanguageConfig=r.ConnectionMessage=r.ConnectionMessageEventArgs=r.BaseAudioPlayer=r.ProfanityOption=r.ServicePropertyChannel=r.TurnStatusReceivedEventArgs=r.ActivityReceivedEventArgs=r.DialogServiceConnector=void 0,r.LogLevel=r.Diagnostics=r.AvatarWebRTCConnectionResult=r.Coordinate=r.AvatarVideoFormat=void 0;var n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioConfig.js");Object.defineProperty(r,"AudioConfig",{enumerable:!0,get:function(){return n.AudioConfig}});var o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js");Object.defineProperty(r,"AudioStreamFormat",{enumerable:!0,get:function(){return o.AudioStreamFormat}}),Object.defineProperty(r,"AudioFormatTag",{enumerable:!0,get:function(){return o.AudioFormatTag}});var s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioInputStream.js");Object.defineProperty(r,"AudioInputStream",{enumerable:!0,get:function(){return s.AudioInputStream}}),Object.defineProperty(r,"PullAudioInputStream",{enumerable:!0,get:function(){return s.PullAudioInputStream}}),Object.defineProperty(r,"PushAudioInputStream",{enumerable:!0,get:function(){return s.PushAudioInputStream}});var a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js");Object.defineProperty(r,"AudioOutputStream",{enumerable:!0,get:function(){return a.AudioOutputStream}}),Object.defineProperty(r,"PullAudioOutputStream",{enumerable:!0,get:function(){return a.PullAudioOutputStream}}),Object.defineProperty(r,"PushAudioOutputStream",{enumerable:!0,get:function(){return a.PushAudioOutputStream}});var c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationReason.js");Object.defineProperty(r,"CancellationReason",{enumerable:!0,get:function(){return c.CancellationReason}});var d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/PullAudioInputStreamCallback.js");Object.defineProperty(r,"PullAudioInputStreamCallback",{enumerable:!0,get:function(){return d.PullAudioInputStreamCallback}});var l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/PushAudioOutputStreamCallback.js");Object.defineProperty(r,"PushAudioOutputStreamCallback",{enumerable:!0,get:function(){return l.PushAudioOutputStreamCallback}});var u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/KeywordRecognitionModel.js");Object.defineProperty(r,"KeywordRecognitionModel",{enumerable:!0,get:function(){return u.KeywordRecognitionModel}});var p=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SessionEventArgs.js");Object.defineProperty(r,"SessionEventArgs",{enumerable:!0,get:function(){return p.SessionEventArgs}});var h=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/RecognitionEventArgs.js");Object.defineProperty(r,"RecognitionEventArgs",{enumerable:!0,get:function(){return h.RecognitionEventArgs}});var f=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/OutputFormat.js");Object.defineProperty(r,"OutputFormat",{enumerable:!0,get:function(){return f.OutputFormat}});var m=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/RecognitionResult.js");Object.defineProperty(r,"RecognitionResult",{enumerable:!0,get:function(){return m.RecognitionResult}});var g=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionResult.js");Object.defineProperty(r,"SpeechRecognitionResult",{enumerable:!0,get:function(){return g.SpeechRecognitionResult}});var y=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionEventArgs.js");Object.defineProperty(r,"SpeechRecognitionEventArgs",{enumerable:!0,get:function(){return y.SpeechRecognitionEventArgs}}),Object.defineProperty(r,"ConversationTranscriptionEventArgs",{enumerable:!0,get:function(){return y.ConversationTranscriptionEventArgs}}),Object.defineProperty(r,"MeetingTranscriptionEventArgs",{enumerable:!0,get:function(){return y.MeetingTranscriptionEventArgs}});var b=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionCanceledEventArgs.js");Object.defineProperty(r,"SpeechRecognitionCanceledEventArgs",{enumerable:!0,get:function(){return b.SpeechRecognitionCanceledEventArgs}});var S=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionEventArgs.js");Object.defineProperty(r,"TranslationRecognitionEventArgs",{enumerable:!0,get:function(){return S.TranslationRecognitionEventArgs}});var C=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationSynthesisEventArgs.js");Object.defineProperty(r,"TranslationSynthesisEventArgs",{enumerable:!0,get:function(){return C.TranslationSynthesisEventArgs}});var _=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionResult.js");Object.defineProperty(r,"TranslationRecognitionResult",{enumerable:!0,get:function(){return _.TranslationRecognitionResult}});var w=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationSynthesisResult.js");Object.defineProperty(r,"TranslationSynthesisResult",{enumerable:!0,get:function(){return w.TranslationSynthesisResult}});var R=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ResultReason.js");Object.defineProperty(r,"ResultReason",{enumerable:!0,get:function(){return R.ResultReason}});var T=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechConfig.js");Object.defineProperty(r,"SpeechConfig",{enumerable:!0,get:function(){return T.SpeechConfig}}),Object.defineProperty(r,"SpeechConfigImpl",{enumerable:!0,get:function(){return T.SpeechConfigImpl}});var E=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechTranslationConfig.js");Object.defineProperty(r,"SpeechTranslationConfig",{enumerable:!0,get:function(){return E.SpeechTranslationConfig}}),Object.defineProperty(r,"SpeechTranslationConfigImpl",{enumerable:!0,get:function(){return E.SpeechTranslationConfigImpl}});var j=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyCollection.js");Object.defineProperty(r,"PropertyCollection",{enumerable:!0,get:function(){return j.PropertyCollection}});var P=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyId.js");Object.defineProperty(r,"PropertyId",{enumerable:!0,get:function(){return P.PropertyId}});var k=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Recognizer.js");Object.defineProperty(r,"Recognizer",{enumerable:!0,get:function(){return k.Recognizer}});var O=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognizer.js");Object.defineProperty(r,"SpeechRecognizer",{enumerable:!0,get:function(){return O.SpeechRecognizer}});var I=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognizer.js");Object.defineProperty(r,"TranslationRecognizer",{enumerable:!0,get:function(){return I.TranslationRecognizer}});var x=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Translations.js");Object.defineProperty(r,"Translations",{enumerable:!0,get:function(){return x.Translations}});var A=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/NoMatchReason.js");Object.defineProperty(r,"NoMatchReason",{enumerable:!0,get:function(){return A.NoMatchReason}});var M=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/NoMatchDetails.js");Object.defineProperty(r,"NoMatchDetails",{enumerable:!0,get:function(){return M.NoMatchDetails}});var D=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionCanceledEventArgs.js");Object.defineProperty(r,"TranslationRecognitionCanceledEventArgs",{enumerable:!0,get:function(){return D.TranslationRecognitionCanceledEventArgs}});var N=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationDetailsBase.js");Object.defineProperty(r,"CancellationDetailsBase",{enumerable:!0,get:function(){return N.CancellationDetailsBase}});var B=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationDetails.js");Object.defineProperty(r,"CancellationDetails",{enumerable:!0,get:function(){return B.CancellationDetails}});var L=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationErrorCodes.js");Object.defineProperty(r,"CancellationErrorCode",{enumerable:!0,get:function(){return L.CancellationErrorCode}});var F=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionEventArgs.js");Object.defineProperty(r,"ConnectionEventArgs",{enumerable:!0,get:function(){return F.ConnectionEventArgs}});var z=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ServiceEventArgs.js");Object.defineProperty(r,"ServiceEventArgs",{enumerable:!0,get:function(){return z.ServiceEventArgs}});var U=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Connection.js");Object.defineProperty(r,"Connection",{enumerable:!0,get:function(){return U.Connection}});var H=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PhraseListGrammar.js");Object.defineProperty(r,"PhraseListGrammar",{enumerable:!0,get:function(){return H.PhraseListGrammar}});var q=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConfig.js");Object.defineProperty(r,"DialogServiceConfig",{enumerable:!0,get:function(){return q.DialogServiceConfig}});var W=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/BotFrameworkConfig.js");Object.defineProperty(r,"BotFrameworkConfig",{enumerable:!0,get:function(){return W.BotFrameworkConfig}});var V=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CustomCommandsConfig.js");Object.defineProperty(r,"CustomCommandsConfig",{enumerable:!0,get:function(){return V.CustomCommandsConfig}});var G=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConnector.js");Object.defineProperty(r,"DialogServiceConnector",{enumerable:!0,get:function(){return G.DialogServiceConnector}});var K=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ActivityReceivedEventArgs.js");Object.defineProperty(r,"ActivityReceivedEventArgs",{enumerable:!0,get:function(){return K.ActivityReceivedEventArgs}});var J=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TurnStatusReceivedEventArgs.js");Object.defineProperty(r,"TurnStatusReceivedEventArgs",{enumerable:!0,get:function(){return J.TurnStatusReceivedEventArgs}});var X=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ServicePropertyChannel.js");Object.defineProperty(r,"ServicePropertyChannel",{enumerable:!0,get:function(){return X.ServicePropertyChannel}});var $=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ProfanityOption.js");Object.defineProperty(r,"ProfanityOption",{enumerable:!0,get:function(){return $.ProfanityOption}});var Q=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/BaseAudioPlayer.js");Object.defineProperty(r,"BaseAudioPlayer",{enumerable:!0,get:function(){return Q.BaseAudioPlayer}});var Y=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionMessageEventArgs.js");Object.defineProperty(r,"ConnectionMessageEventArgs",{enumerable:!0,get:function(){return Y.ConnectionMessageEventArgs}});var Z=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionMessage.js");Object.defineProperty(r,"ConnectionMessage",{enumerable:!0,get:function(){return Z.ConnectionMessage}});var ee=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AutoDetectSourceLanguageConfig.js");Object.defineProperty(r,"AutoDetectSourceLanguageConfig",{enumerable:!0,get:function(){return ee.AutoDetectSourceLanguageConfig}});var et=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AutoDetectSourceLanguageResult.js");Object.defineProperty(r,"AutoDetectSourceLanguageResult",{enumerable:!0,get:function(){return et.AutoDetectSourceLanguageResult}});var er=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SourceLanguageConfig.js");Object.defineProperty(r,"SourceLanguageConfig",{enumerable:!0,get:function(){return er.SourceLanguageConfig}});var ei=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Exports.js");Object.defineProperty(r,"Conversation",{enumerable:!0,get:function(){return ei.Conversation}}),Object.defineProperty(r,"ConversationExpirationEventArgs",{enumerable:!0,get:function(){return ei.ConversationExpirationEventArgs}}),Object.defineProperty(r,"ConversationParticipantsChangedEventArgs",{enumerable:!0,get:function(){return ei.ConversationParticipantsChangedEventArgs}}),Object.defineProperty(r,"ConversationTranslationCanceledEventArgs",{enumerable:!0,get:function(){return ei.ConversationTranslationCanceledEventArgs}}),Object.defineProperty(r,"ConversationTranslationEventArgs",{enumerable:!0,get:function(){return ei.ConversationTranslationEventArgs}}),Object.defineProperty(r,"ConversationTranslationResult",{enumerable:!0,get:function(){return ei.ConversationTranslationResult}}),Object.defineProperty(r,"ConversationTranslator",{enumerable:!0,get:function(){return ei.ConversationTranslator}}),Object.defineProperty(r,"ConversationTranscriber",{enumerable:!0,get:function(){return ei.ConversationTranscriber}}),Object.defineProperty(r,"ConversationTranscriptionResult",{enumerable:!0,get:function(){return ei.ConversationTranscriptionResult}}),Object.defineProperty(r,"Meeting",{enumerable:!0,get:function(){return ei.Meeting}}),Object.defineProperty(r,"MeetingTranscriber",{enumerable:!0,get:function(){return ei.MeetingTranscriber}}),Object.defineProperty(r,"Participant",{enumerable:!0,get:function(){return ei.Participant}}),Object.defineProperty(r,"ParticipantChangedReason",{enumerable:!0,get:function(){return ei.ParticipantChangedReason}}),Object.defineProperty(r,"User",{enumerable:!0,get:function(){return ei.User}});var en=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Synthesizer.js");Object.defineProperty(r,"Synthesizer",{enumerable:!0,get:function(){return en.Synthesizer}});var eo=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisOutputFormat.js");Object.defineProperty(r,"SpeechSynthesisOutputFormat",{enumerable:!0,get:function(){return eo.SpeechSynthesisOutputFormat}});var es=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesizer.js");Object.defineProperty(r,"SpeechSynthesizer",{enumerable:!0,get:function(){return es.SpeechSynthesizer}});var ea=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SynthesisResult.js");Object.defineProperty(r,"SynthesisResult",{enumerable:!0,get:function(){return ea.SynthesisResult}});var ec=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisResult.js");Object.defineProperty(r,"SpeechSynthesisResult",{enumerable:!0,get:function(){return ec.SpeechSynthesisResult}});var ed=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisEventArgs.js");Object.defineProperty(r,"SpeechSynthesisEventArgs",{enumerable:!0,get:function(){return ed.SpeechSynthesisEventArgs}});var el=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisWordBoundaryEventArgs.js");Object.defineProperty(r,"SpeechSynthesisWordBoundaryEventArgs",{enumerable:!0,get:function(){return el.SpeechSynthesisWordBoundaryEventArgs}});var eu=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisBookmarkEventArgs.js");Object.defineProperty(r,"SpeechSynthesisBookmarkEventArgs",{enumerable:!0,get:function(){return eu.SpeechSynthesisBookmarkEventArgs}});var ep=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisVisemeEventArgs.js");Object.defineProperty(r,"SpeechSynthesisVisemeEventArgs",{enumerable:!0,get:function(){return ep.SpeechSynthesisVisemeEventArgs}});var eh=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisBoundaryType.js");Object.defineProperty(r,"SpeechSynthesisBoundaryType",{enumerable:!0,get:function(){return eh.SpeechSynthesisBoundaryType}});var ef=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SynthesisVoicesResult.js");Object.defineProperty(r,"SynthesisVoicesResult",{enumerable:!0,get:function(){return ef.SynthesisVoicesResult}});var ev=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/VoiceInfo.js");Object.defineProperty(r,"SynthesisVoiceGender",{enumerable:!0,get:function(){return ev.SynthesisVoiceGender}}),Object.defineProperty(r,"SynthesisVoiceType",{enumerable:!0,get:function(){return ev.SynthesisVoiceType}}),Object.defineProperty(r,"VoiceInfo",{enumerable:!0,get:function(){return ev.VoiceInfo}});var em=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/SpeakerAudioDestination.js");Object.defineProperty(r,"SpeakerAudioDestination",{enumerable:!0,get:function(){return em.SpeakerAudioDestination}});var eg=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConversationTranscriptionCanceledEventArgs.js");Object.defineProperty(r,"ConversationTranscriptionCanceledEventArgs",{enumerable:!0,get:function(){return eg.ConversationTranscriptionCanceledEventArgs}});var ey=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/MeetingTranscriptionCanceledEventArgs.js");Object.defineProperty(r,"MeetingTranscriptionCanceledEventArgs",{enumerable:!0,get:function(){return ey.MeetingTranscriptionCanceledEventArgs}});var eb=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentGradingSystem.js");Object.defineProperty(r,"PronunciationAssessmentGradingSystem",{enumerable:!0,get:function(){return eb.PronunciationAssessmentGradingSystem}});var eS=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentGranularity.js");Object.defineProperty(r,"PronunciationAssessmentGranularity",{enumerable:!0,get:function(){return eS.PronunciationAssessmentGranularity}});var eC=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentConfig.js");Object.defineProperty(r,"PronunciationAssessmentConfig",{enumerable:!0,get:function(){return eC.PronunciationAssessmentConfig}});var e_=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentResult.js");Object.defineProperty(r,"PronunciationAssessmentResult",{enumerable:!0,get:function(){return e_.PronunciationAssessmentResult}});var ew=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/LanguageIdMode.js");Object.defineProperty(r,"LanguageIdMode",{enumerable:!0,get:function(){return ew.LanguageIdMode}});var eR=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarConfig.js");Object.defineProperty(r,"AvatarConfig",{enumerable:!0,get:function(){return eR.AvatarConfig}});var eT=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarEventArgs.js");Object.defineProperty(r,"AvatarEventArgs",{enumerable:!0,get:function(){return eT.AvatarEventArgs}});var eE=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarSynthesizer.js");Object.defineProperty(r,"AvatarSynthesizer",{enumerable:!0,get:function(){return eE.AvatarSynthesizer}});var ej=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarVideoFormat.js");Object.defineProperty(r,"AvatarVideoFormat",{enumerable:!0,get:function(){return ej.AvatarVideoFormat}}),Object.defineProperty(r,"Coordinate",{enumerable:!0,get:function(){return ej.Coordinate}});var eP=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarWebRTCConnectionResult.js");Object.defineProperty(r,"AvatarWebRTCConnectionResult",{enumerable:!0,get:function(){return eP.AvatarWebRTCConnectionResult}});var ek=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Diagnostics.js");Object.defineProperty(r,"Diagnostics",{enumerable:!0,get:function(){return ek.Diagnostics}});var eO=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/LogLevel.js");Object.defineProperty(r,"LogLevel",{enumerable:!0,get:function(){return eO.LogLevel}})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/KeywordRecognitionModel.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.KeywordRecognitionModel=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js");r.KeywordRecognitionModel=class{constructor(){this.privDisposed=!1;return}static fromFile(e){throw n.Contracts.throwIfFileDoesNotExist(e,"fileName"),Error("Not yet implemented.")}static fromStream(e){throw n.Contracts.throwIfNull(e,"file"),Error("Not yet implemented.")}close(){this.privDisposed||(this.privDisposed=!0)}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/LanguageIdMode.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.LanguageIdMode=void 0,(i=r.LanguageIdMode||(r.LanguageIdMode={}))[i.AtStart=0]="AtStart",i[i.Continuous=1]="Continuous"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/LogLevel.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.LogLevel=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");Object.defineProperty(r,"LogLevel",{enumerable:!0,get:function(){return n.EventType}})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/MeetingTranscriptionCanceledEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.MeetingTranscriptionCanceledEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js");class o extends n.CancellationEventArgsBase{}r.MeetingTranscriptionCanceledEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/NoMatchDetails.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.NoMatchDetails=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class s{constructor(e){this.privReason=e}static fromResult(e){let r=n.SimpleSpeechPhrase.fromJSON(e.json,0),i=o.NoMatchReason.NotRecognized;switch(r.RecognitionStatus){case n.RecognitionStatus.BabbleTimeout:i=o.NoMatchReason.InitialBabbleTimeout;break;case n.RecognitionStatus.InitialSilenceTimeout:i=o.NoMatchReason.InitialSilenceTimeout;break;default:i=o.NoMatchReason.NotRecognized}return new s(i)}get reason(){return this.privReason}}r.NoMatchDetails=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/NoMatchReason.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.NoMatchReason=void 0,(i=r.NoMatchReason||(r.NoMatchReason={}))[i.NotRecognized=0]="NotRecognized",i[i.InitialSilenceTimeout=1]="InitialSilenceTimeout",i[i.InitialBabbleTimeout=2]="InitialBabbleTimeout"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/OutputFormat.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.OutputFormat=void 0,(i=r.OutputFormat||(r.OutputFormat={}))[i.Simple=0]="Simple",i[i.Detailed=1]="Detailed"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PhraseListGrammar.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.PhraseListGrammar=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js");class o{constructor(e){this.privGrammerBuilder=e.dynamicGrammar}static fromRecognizer(e){return new o(e.internalData)}addPhrase(e){this.privGrammerBuilder.addPhrase(e)}addPhrases(e){this.privGrammerBuilder.addPhrase(e)}clear(){this.privGrammerBuilder.clearPhrases()}setWeight(e){n.Contracts.throwIfNumberOutOfRange(e,"weight",0,2),this.privGrammerBuilder.setWeight(e)}}r.PhraseListGrammar=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ProfanityOption.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.ProfanityOption=void 0,(i=r.ProfanityOption||(r.ProfanityOption={}))[i.Masked=0]="Masked",i[i.Removed=1]="Removed",i[i.Raw=2]="Raw"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.PronunciationAssessmentConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class s{constructor(e,r=o.PronunciationAssessmentGradingSystem.FivePoint,i=o.PronunciationAssessmentGranularity.Phoneme,s=!1){n.Contracts.throwIfNullOrUndefined(e,"referenceText"),this.privProperties=new o.PropertyCollection,this.privProperties.setProperty(o.PropertyId.PronunciationAssessment_ReferenceText,e),this.privProperties.setProperty(o.PropertyId.PronunciationAssessment_GradingSystem,o.PronunciationAssessmentGradingSystem[r]),this.privProperties.setProperty(o.PropertyId.PronunciationAssessment_Granularity,o.PronunciationAssessmentGranularity[i]),this.privProperties.setProperty(o.PropertyId.PronunciationAssessment_EnableMiscue,String(s))}static fromJSON(e){n.Contracts.throwIfNullOrUndefined(e,"json");let r=new s("");return r.privProperties=new o.PropertyCollection,r.properties.setProperty(o.PropertyId.PronunciationAssessment_Json,e),r}toJSON(){return this.updateJson(),this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_Params)}applyTo(e){this.updateJson();let r=e.internalData;r.speechContext.setPronunciationAssessmentParams(this.properties.getProperty(o.PropertyId.PronunciationAssessment_Params),r.isSpeakerDiarizationEnabled)}get referenceText(){return this.properties.getProperty(o.PropertyId.PronunciationAssessment_ReferenceText)}set referenceText(e){n.Contracts.throwIfNullOrWhitespace(e,"referenceText"),this.properties.setProperty(o.PropertyId.PronunciationAssessment_ReferenceText,e)}set phonemeAlphabet(e){n.Contracts.throwIfNullOrWhitespace(e,"phonemeAlphabet"),this.privPhonemeAlphabet=e}set enableMiscue(e){this.properties.setProperty(o.PropertyId.PronunciationAssessment_EnableMiscue,e?"true":"false")}get enableMiscue(){return"true"===this.properties.getProperty(o.PropertyId.PronunciationAssessment_EnableMiscue,"false").toLowerCase()}set nbestPhonemeCount(e){this.privNBestPhonemeCount=e}set enableProsodyAssessment(e){this.privEnableProsodyAssessment=e}get properties(){return this.privProperties}updateJson(){let e=JSON.parse(this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_Json,"{}")),r=this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_ReferenceText);r&&(e.referenceText=r);let i=this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_GradingSystem);i&&(e.gradingSystem=i);let n=this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_Granularity);n&&(e.granularity=n),this.privPhonemeAlphabet&&(e.phonemeAlphabet=this.privPhonemeAlphabet),this.privNBestPhonemeCount&&(e.nbestPhonemeCount=this.privNBestPhonemeCount),e.enableProsodyAssessment=this.privEnableProsodyAssessment,e.dimension="Comprehensive",this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_EnableMiscue)&&(e.enableMiscue=this.enableMiscue),this.privProperties.setProperty(o.PropertyId.PronunciationAssessment_Params,JSON.stringify(e))}}r.PronunciationAssessmentConfig=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentGradingSystem.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.PronunciationAssessmentGradingSystem=void 0,(i=r.PronunciationAssessmentGradingSystem||(r.PronunciationAssessmentGradingSystem={}))[i.FivePoint=1]="FivePoint",i[i.HundredMark=2]="HundredMark"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentGranularity.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.PronunciationAssessmentGranularity=void 0,(i=r.PronunciationAssessmentGranularity||(r.PronunciationAssessmentGranularity={}))[i.Phoneme=1]="Phoneme",i[i.Word=2]="Word",i[i.FullText=3]="FullText"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.PronunciationAssessmentResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class s{constructor(e){let r=JSON.parse(e);n.Contracts.throwIfNullOrUndefined(r.NBest[0],"NBest"),this.privPronJson=r.NBest[0]}static fromResult(e){n.Contracts.throwIfNullOrUndefined(e,"result");let r=e.properties.getProperty(o.PropertyId.SpeechServiceResponse_JsonResult);return n.Contracts.throwIfNullOrUndefined(r,"json"),new s(r)}get detailResult(){return this.privPronJson}get accuracyScore(){return this.detailResult.PronunciationAssessment?.AccuracyScore}get pronunciationScore(){return this.detailResult.PronunciationAssessment?.PronScore}get completenessScore(){return this.detailResult.PronunciationAssessment?.CompletenessScore}get fluencyScore(){return this.detailResult.PronunciationAssessment?.FluencyScore}get prosodyScore(){return this.detailResult.PronunciationAssessment?.ProsodyScore}}r.PronunciationAssessmentResult=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyCollection.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.PropertyCollection=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o{constructor(){this.privKeys=[],this.privValues=[]}getProperty(e,r){let i;i="string"==typeof e?e:n.PropertyId[e];for(let e=0;e<this.privKeys.length;e++)if(this.privKeys[e]===i)return this.privValues[e];if(void 0!==r)return String(r)}setProperty(e,r){let i;i="string"==typeof e?e:n.PropertyId[e];for(let e=0;e<this.privKeys.length;e++)if(this.privKeys[e]===i){this.privValues[e]=r;return}this.privKeys.push(i),this.privValues.push(r)}clone(){let e=new o;for(let r=0;r<this.privKeys.length;r++)e.privKeys.push(this.privKeys[r]),e.privValues.push(this.privValues[r]);return e}mergeTo(e){this.privKeys.forEach(r=>{if(void 0===e.getProperty(r,void 0)){let i=this.getProperty(r);e.setProperty(r,i)}})}get keys(){return this.privKeys}}r.PropertyCollection=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyId.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.PropertyId=void 0,(i=r.PropertyId||(r.PropertyId={}))[i.SpeechServiceConnection_Key=0]="SpeechServiceConnection_Key",i[i.SpeechServiceConnection_Endpoint=1]="SpeechServiceConnection_Endpoint",i[i.SpeechServiceConnection_Region=2]="SpeechServiceConnection_Region",i[i.SpeechServiceAuthorization_Token=3]="SpeechServiceAuthorization_Token",i[i.SpeechServiceAuthorization_Type=4]="SpeechServiceAuthorization_Type",i[i.SpeechServiceConnection_EndpointId=5]="SpeechServiceConnection_EndpointId",i[i.SpeechServiceConnection_TranslationToLanguages=6]="SpeechServiceConnection_TranslationToLanguages",i[i.SpeechServiceConnection_TranslationVoice=7]="SpeechServiceConnection_TranslationVoice",i[i.SpeechServiceConnection_TranslationFeatures=8]="SpeechServiceConnection_TranslationFeatures",i[i.SpeechServiceConnection_TranslationCategoryId=9]="SpeechServiceConnection_TranslationCategoryId",i[i.SpeechServiceConnection_ProxyHostName=10]="SpeechServiceConnection_ProxyHostName",i[i.SpeechServiceConnection_ProxyPort=11]="SpeechServiceConnection_ProxyPort",i[i.SpeechServiceConnection_ProxyUserName=12]="SpeechServiceConnection_ProxyUserName",i[i.SpeechServiceConnection_ProxyPassword=13]="SpeechServiceConnection_ProxyPassword",i[i.SpeechServiceConnection_RecoMode=14]="SpeechServiceConnection_RecoMode",i[i.SpeechServiceConnection_RecoLanguage=15]="SpeechServiceConnection_RecoLanguage",i[i.Speech_SessionId=16]="Speech_SessionId",i[i.SpeechServiceConnection_SynthLanguage=17]="SpeechServiceConnection_SynthLanguage",i[i.SpeechServiceConnection_SynthVoice=18]="SpeechServiceConnection_SynthVoice",i[i.SpeechServiceConnection_SynthOutputFormat=19]="SpeechServiceConnection_SynthOutputFormat",i[i.SpeechServiceConnection_AutoDetectSourceLanguages=20]="SpeechServiceConnection_AutoDetectSourceLanguages",i[i.SpeechServiceResponse_RequestDetailedResultTrueFalse=21]="SpeechServiceResponse_RequestDetailedResultTrueFalse",i[i.SpeechServiceResponse_RequestProfanityFilterTrueFalse=22]="SpeechServiceResponse_RequestProfanityFilterTrueFalse",i[i.SpeechServiceResponse_JsonResult=23]="SpeechServiceResponse_JsonResult",i[i.SpeechServiceResponse_JsonErrorDetails=24]="SpeechServiceResponse_JsonErrorDetails",i[i.CancellationDetails_Reason=25]="CancellationDetails_Reason",i[i.CancellationDetails_ReasonText=26]="CancellationDetails_ReasonText",i[i.CancellationDetails_ReasonDetailedText=27]="CancellationDetails_ReasonDetailedText",i[i.SpeechServiceConnection_Url=28]="SpeechServiceConnection_Url",i[i.SpeechServiceConnection_InitialSilenceTimeoutMs=29]="SpeechServiceConnection_InitialSilenceTimeoutMs",i[i.SpeechServiceConnection_EndSilenceTimeoutMs=30]="SpeechServiceConnection_EndSilenceTimeoutMs",i[i.Speech_SegmentationSilenceTimeoutMs=31]="Speech_SegmentationSilenceTimeoutMs",i[i.Speech_SegmentationMaximumTimeMs=32]="Speech_SegmentationMaximumTimeMs",i[i.Speech_SegmentationStrategy=33]="Speech_SegmentationStrategy",i[i.Speech_StartEventSensitivity=34]="Speech_StartEventSensitivity",i[i.SpeechServiceConnection_EnableAudioLogging=35]="SpeechServiceConnection_EnableAudioLogging",i[i.SpeechServiceConnection_LanguageIdMode=36]="SpeechServiceConnection_LanguageIdMode",i[i.SpeechServiceConnection_RecognitionEndpointVersion=37]="SpeechServiceConnection_RecognitionEndpointVersion",i[i.SpeechServiceResponse_ProfanityOption=38]="SpeechServiceResponse_ProfanityOption",i[i.SpeechServiceResponse_PostProcessingOption=39]="SpeechServiceResponse_PostProcessingOption",i[i.SpeechServiceResponse_RequestWordLevelTimestamps=40]="SpeechServiceResponse_RequestWordLevelTimestamps",i[i.SpeechServiceResponse_StablePartialResultThreshold=41]="SpeechServiceResponse_StablePartialResultThreshold",i[i.SpeechServiceResponse_OutputFormatOption=42]="SpeechServiceResponse_OutputFormatOption",i[i.SpeechServiceResponse_TranslationRequestStablePartialResult=43]="SpeechServiceResponse_TranslationRequestStablePartialResult",i[i.SpeechServiceResponse_RequestWordBoundary=44]="SpeechServiceResponse_RequestWordBoundary",i[i.SpeechServiceResponse_RequestPunctuationBoundary=45]="SpeechServiceResponse_RequestPunctuationBoundary",i[i.SpeechServiceResponse_RequestSentenceBoundary=46]="SpeechServiceResponse_RequestSentenceBoundary",i[i.SpeechServiceResponse_DiarizeIntermediateResults=47]="SpeechServiceResponse_DiarizeIntermediateResults",i[i.Conversation_ApplicationId=48]="Conversation_ApplicationId",i[i.Conversation_DialogType=49]="Conversation_DialogType",i[i.Conversation_Initial_Silence_Timeout=50]="Conversation_Initial_Silence_Timeout",i[i.Conversation_From_Id=51]="Conversation_From_Id",i[i.Conversation_Conversation_Id=52]="Conversation_Conversation_Id",i[i.Conversation_Custom_Voice_Deployment_Ids=53]="Conversation_Custom_Voice_Deployment_Ids",i[i.Conversation_Speech_Activity_Template=54]="Conversation_Speech_Activity_Template",i[i.Conversation_Request_Bot_Status_Messages=55]="Conversation_Request_Bot_Status_Messages",i[i.Conversation_Agent_Connection_Id=56]="Conversation_Agent_Connection_Id",i[i.SpeechServiceConnection_Host=57]="SpeechServiceConnection_Host",i[i.ConversationTranslator_Host=58]="ConversationTranslator_Host",i[i.ConversationTranslator_Name=59]="ConversationTranslator_Name",i[i.ConversationTranslator_CorrelationId=60]="ConversationTranslator_CorrelationId",i[i.ConversationTranslator_Token=61]="ConversationTranslator_Token",i[i.PronunciationAssessment_ReferenceText=62]="PronunciationAssessment_ReferenceText",i[i.PronunciationAssessment_GradingSystem=63]="PronunciationAssessment_GradingSystem",i[i.PronunciationAssessment_Granularity=64]="PronunciationAssessment_Granularity",i[i.PronunciationAssessment_EnableMiscue=65]="PronunciationAssessment_EnableMiscue",i[i.PronunciationAssessment_Json=66]="PronunciationAssessment_Json",i[i.PronunciationAssessment_Params=67]="PronunciationAssessment_Params",i[i.WebWorkerLoadType=68]="WebWorkerLoadType",i[i.TalkingAvatarService_WebRTC_SDP=69]="TalkingAvatarService_WebRTC_SDP"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/RecognitionEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.RecognitionEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r){super(r),this.privOffset=e}get offset(){return this.privOffset}}r.RecognitionEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/RecognitionResult.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RecognitionResult=void 0,r.RecognitionResult=class{constructor(e,r,i,n,o,s,a,c,d,l){this.privResultId=e,this.privReason=r,this.privText=i,this.privDuration=n,this.privOffset=o,this.privLanguage=s,this.privLanguageDetectionConfidence=a,this.privErrorDetails=c,this.privJson=d,this.privProperties=l}get resultId(){return this.privResultId}get reason(){return this.privReason}get text(){return this.privText}get duration(){return this.privDuration}get offset(){return this.privOffset}get language(){return this.privLanguage}get languageDetectionConfidence(){return this.privLanguageDetectionConfidence}get errorDetails(){return this.privErrorDetails}get json(){return this.privJson}get properties(){return this.privProperties}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Recognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Recognizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class c{constructor(e,r,i,n){this.audioConfig=void 0!==e?e:a.AudioConfig.fromDefaultMicrophoneInput(),this.privDisposed=!1,this.privProperties=r.clone(),this.privConnectionFactory=i,this.tokenCredential=n,this.implCommonRecognizerSetup()}close(e,r){s.Contracts.throwIfDisposed(this.privDisposed),(0,o.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}get internalData(){return this.privReco}async dispose(e){!this.privDisposed&&(this.privDisposed=!0,e&&this.privReco&&(await this.privReco.audioSource.turnOff(),await this.privReco.dispose()))}static get telemetryEnabled(){return n.ServiceRecognizerBase.telemetryDataEnabled}static enableTelemetry(e){n.ServiceRecognizerBase.telemetryDataEnabled=e}implCommonRecognizerSetup(){let e="undefined"!=typeof window?"Browser":"Node",r="unknown",i="unknown";"undefined"!=typeof navigator&&(e=e+"/"+navigator.platform,r=navigator.userAgent,i=navigator.appVersion);let o=this.createRecognizerConfig(new n.SpeechServiceConfig(new n.Context(new n.OS(e,r,i))));this.privReco=this.createServiceRecognizer(c.getAuth(this.privProperties,this.tokenCredential),this.privConnectionFactory,this.audioConfig,o)}async recognizeOnceAsyncImpl(e){s.Contracts.throwIfDisposed(this.privDisposed);let r=new o.Deferred;await this.implRecognizerStop(),await this.privReco.recognize(e,r.resolve,r.reject);let i=await r.promise;return await this.implRecognizerStop(),i}async startContinuousRecognitionAsyncImpl(e){s.Contracts.throwIfDisposed(this.privDisposed),await this.implRecognizerStop(),await this.privReco.recognize(e,void 0,void 0)}async stopContinuousRecognitionAsyncImpl(){s.Contracts.throwIfDisposed(this.privDisposed),await this.implRecognizerStop()}async implRecognizerStop(){this.privReco&&await this.privReco.stopRecognizing()}static getAuth(e,r){let i=e.getProperty(a.PropertyId.SpeechServiceConnection_Key,void 0);return i&&""!==i?new n.CognitiveSubscriptionKeyAuthentication(i):r?new n.CognitiveTokenAuthentication(async()=>{try{let e=await r.getToken("https://cognitiveservices.azure.com/.default");return e?.token??""}catch(e){throw e}},async()=>{try{let e=await r.getToken("https://cognitiveservices.azure.com/.default");return e?.token??""}catch(e){throw e}}):new n.CognitiveTokenAuthentication(()=>Promise.resolve(e.getProperty(a.PropertyId.SpeechServiceAuthorization_Token,void 0)),()=>Promise.resolve(e.getProperty(a.PropertyId.SpeechServiceAuthorization_Token,void 0)))}}r.Recognizer=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ResultReason.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.ResultReason=void 0,(i=r.ResultReason||(r.ResultReason={}))[i.NoMatch=0]="NoMatch",i[i.Canceled=1]="Canceled",i[i.RecognizingSpeech=2]="RecognizingSpeech",i[i.RecognizedSpeech=3]="RecognizedSpeech",i[i.RecognizedKeyword=4]="RecognizedKeyword",i[i.TranslatingSpeech=5]="TranslatingSpeech",i[i.TranslatedSpeech=6]="TranslatedSpeech",i[i.SynthesizingAudio=7]="SynthesizingAudio",i[i.SynthesizingAudioCompleted=8]="SynthesizingAudioCompleted",i[i.SynthesizingAudioStarted=9]="SynthesizingAudioStarted",i[i.VoicesListRetrieved=10]="VoicesListRetrieved",i[i.TranslatingParticipantSpeech=11]="TranslatingParticipantSpeech",i[i.TranslatedParticipantSpeech=12]="TranslatedParticipantSpeech",i[i.TranslatedInstantMessage=13]="TranslatedInstantMessage",i[i.TranslatedParticipantInstantMessage=14]="TranslatedParticipantInstantMessage"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ServiceEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ServiceEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r,i){super(i),this.privJsonResult=e,this.privEventName=r}get jsonString(){return this.privJsonResult}get eventName(){return this.privEventName}}r.ServiceEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ServicePropertyChannel.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.ServicePropertyChannel=void 0,(i=r.ServicePropertyChannel||(r.ServicePropertyChannel={}))[i.UriQueryParameter=0]="UriQueryParameter"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SessionEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SessionEventArgs=void 0,r.SessionEventArgs=class{constructor(e){this.privSessionId=e}get sessionId(){return this.privSessionId}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SourceLanguageConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SourceLanguageConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js");class o{constructor(e,r){n.Contracts.throwIfNullOrUndefined(e,"language"),this.privLanguage=e,this.privEndpointId=r}static fromLanguage(e,r){return new o(e,r)}get language(){return this.privLanguage}get endpointId(){return this.privEndpointId}}r.SourceLanguageConfig=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechConfigImpl=r.SpeechConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class a{constructor(){return}static fromSubscription(e,r){o.Contracts.throwIfNullOrWhitespace(e,"subscriptionKey"),o.Contracts.throwIfNullOrWhitespace(r,"region");let i=new c;return i.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i.setProperty(s.PropertyId.SpeechServiceConnection_Key,e),i}static fromEndpoint(e,r){let i;o.Contracts.throwIfNull(e,"endpoint");let n="string"==typeof r&&r.trim().length>0,a="object"==typeof r&&null!==r&&"function"==typeof r.getToken,d="object"==typeof r&&null!==r&&"string"==typeof r.key;if(void 0!==r&&!n&&!a&&!d)throw Error("Invalid 'auth' parameter: expected a non-empty API key string, a TokenCredential, or a KeyCredential.");return"string"==typeof r?(i=new c).setProperty(s.PropertyId.SpeechServiceConnection_Key,r):"object"==typeof r&&"function"==typeof r.getToken?i=new c(r):"object"==typeof r&&"string"==typeof r.key?(i=new c).setProperty(s.PropertyId.SpeechServiceConnection_Key,r.key):i=new c,i.setProperty(s.PropertyId.SpeechServiceConnection_Endpoint,e.href),i}static fromHost(e,r){o.Contracts.throwIfNull(e,"hostName");let i=new c;return i.setProperty(s.PropertyId.SpeechServiceConnection_Host,e.protocol+"//"+e.hostname+(""===e.port?"":":"+e.port)),i.setProperty(s.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"1"),void 0!==r&&i.setProperty(s.PropertyId.SpeechServiceConnection_Key,r),i}static fromAuthorizationToken(e,r){o.Contracts.throwIfNull(e,"authorizationToken"),o.Contracts.throwIfNullOrWhitespace(r,"region");let i=new c;return i.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i.authorizationToken=e,i}close(){}}r.SpeechConfig=a;class c extends a{constructor(e){super(),this.privProperties=new s.PropertyCollection,this.speechRecognitionLanguage="en-US",this.outputFormat=s.OutputFormat.Simple,this.privTokenCredential=e}get properties(){return this.privProperties}get endPoint(){return new URL(this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_Endpoint))}get subscriptionKey(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_Key)}get region(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_Region)}get authorizationToken(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,e)}get speechRecognitionLanguage(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage)}set speechRecognitionLanguage(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage,e)}get autoDetectSourceLanguages(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages)}set autoDetectSourceLanguages(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,e)}get outputFormat(){return s.OutputFormat[this.privProperties.getProperty(n.OutputFormatPropertyName,void 0)]}set outputFormat(e){this.privProperties.setProperty(n.OutputFormatPropertyName,s.OutputFormat[e])}get endpointId(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_EndpointId)}set endpointId(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_EndpointId,e)}get tokenCredential(){return this.privTokenCredential}setProperty(e,r){o.Contracts.throwIfNull(r,"value"),this.privProperties.setProperty(e,r)}getProperty(e,r){return this.privProperties.getProperty(e,r)}setProxy(e,r,i,n){this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyHostName],e),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyPort],r),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyUserName],i),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyPassword],n)}setServiceProperty(e,r){let i=JSON.parse(this.privProperties.getProperty(n.ServicePropertiesPropertyName,"{}"));i[e]=r,this.privProperties.setProperty(n.ServicePropertiesPropertyName,JSON.stringify(i))}setProfanity(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceResponse_ProfanityOption,s.ProfanityOption[e])}enableAudioLogging(){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_EnableAudioLogging,"true")}requestWordLevelTimestamps(){this.privProperties.setProperty(s.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps,"true"),this.privProperties.setProperty(n.OutputFormatPropertyName,s.OutputFormat[s.OutputFormat.Detailed])}enableDictation(){this.privProperties.setProperty(n.ForceDictationPropertyName,"true")}clone(){let e=new c(this.tokenCredential);return e.privProperties=this.privProperties.clone(),e}get speechSynthesisLanguage(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthLanguage)}set speechSynthesisLanguage(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthLanguage,e)}get speechSynthesisVoiceName(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthVoice)}set speechSynthesisVoiceName(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthVoice,e)}get speechSynthesisOutputFormat(){return s.SpeechSynthesisOutputFormat[this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)]}set speechSynthesisOutputFormat(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthOutputFormat,s.SpeechSynthesisOutputFormat[e])}}r.SpeechConfigImpl=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionCanceledEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechRecognitionCanceledEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js");class o extends n.CancellationEventArgsBase{}r.SpeechRecognitionCanceledEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.MeetingTranscriptionEventArgs=r.ConversationTranscriptionEventArgs=r.SpeechRecognitionEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionEventArgs{constructor(e,r,i){super(r,i),this.privResult=e}get result(){return this.privResult}}r.SpeechRecognitionEventArgs=o;class s extends n.RecognitionEventArgs{constructor(e,r,i){super(r,i),this.privResult=e}get result(){return this.privResult}}r.ConversationTranscriptionEventArgs=s,r.MeetingTranscriptionEventArgs=class extends o{}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechRecognitionResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionResult{constructor(e,r,i,n,o,s,a,c,d,l,u){super(e,r,i,n,o,s,a,d,l,u),this.privSpeakerId=c}get speakerId(){return this.privSpeakerId}}r.SpeechRecognitionResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechRecognizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class d extends c.Recognizer{constructor(e,r){a.Contracts.throwIfNull(e,"speechConfig"),a.Contracts.throwIfNullOrWhitespace(e.properties.getProperty(c.PropertyId.SpeechServiceConnection_RecoLanguage),c.PropertyId[c.PropertyId.SpeechServiceConnection_RecoLanguage]),super(r,e.properties,new n.SpeechConnectionFactory,e.tokenCredential),this.privDisposedRecognizer=!1}static FromConfig(e,r,i){return r.properties.mergeTo(e.properties),new d(e,i)}get endpointId(){return a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(c.PropertyId.SpeechServiceConnection_EndpointId,"00000000-0000-0000-0000-000000000000")}get authorizationToken(){return this.properties.getProperty(c.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){a.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(c.PropertyId.SpeechServiceAuthorization_Token,e)}get speechRecognitionLanguage(){return a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(c.PropertyId.SpeechServiceConnection_RecoLanguage)}get outputFormat(){return(a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(n.OutputFormatPropertyName,c.OutputFormat[c.OutputFormat.Simple])===c.OutputFormat[c.OutputFormat.Simple])?c.OutputFormat.Simple:c.OutputFormat.Detailed}get properties(){return this.privProperties}recognizeOnceAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.recognizeOnceAsyncImpl(o.RecognitionMode.Interactive),e,r)}startContinuousRecognitionAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(void 0===this.properties.getProperty(n.ForceDictationPropertyName,void 0)?o.RecognitionMode.Conversation:o.RecognitionMode.Dictation),e,r)}stopContinuousRecognitionAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),e,r)}startKeywordRecognitionAsync(e,r,i){a.Contracts.throwIfNull(e,"model"),i&&i("Not yet implemented.")}stopKeywordRecognitionAsync(e){e&&e()}close(e,r){a.Contracts.throwIfDisposed(this.privDisposedRecognizer),(0,s.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}async dispose(e){this.privDisposedRecognizer||(e&&(this.privDisposedRecognizer=!0,await this.implRecognizerStop()),await super.dispose(e))}createRecognizerConfig(e){return new n.RecognizerConfig(e,this.privProperties)}createServiceRecognizer(e,r,i,o){return new n.SpeechServiceRecognizer(e,r,i,o,this)}}r.SpeechRecognizer=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisBookmarkEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisBookmarkEventArgs=void 0,r.SpeechSynthesisBookmarkEventArgs=class{constructor(e,r){this.privAudioOffset=e,this.privText=r}get audioOffset(){return this.privAudioOffset}get text(){return this.privText}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisBoundaryType.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisBoundaryType=void 0,(i=r.SpeechSynthesisBoundaryType||(r.SpeechSynthesisBoundaryType={})).Word="WordBoundary",i.Punctuation="PunctuationBoundary",i.Sentence="SentenceBoundary"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisEventArgs=void 0,r.SpeechSynthesisEventArgs=class{constructor(e){this.privResult=e}get result(){return this.privResult}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisOutputFormat.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisOutputFormat=void 0,(i=r.SpeechSynthesisOutputFormat||(r.SpeechSynthesisOutputFormat={}))[i.Raw8Khz8BitMonoMULaw=0]="Raw8Khz8BitMonoMULaw",i[i.Riff16Khz16KbpsMonoSiren=1]="Riff16Khz16KbpsMonoSiren",i[i.Audio16Khz16KbpsMonoSiren=2]="Audio16Khz16KbpsMonoSiren",i[i.Audio16Khz32KBitRateMonoMp3=3]="Audio16Khz32KBitRateMonoMp3",i[i.Audio16Khz128KBitRateMonoMp3=4]="Audio16Khz128KBitRateMonoMp3",i[i.Audio16Khz64KBitRateMonoMp3=5]="Audio16Khz64KBitRateMonoMp3",i[i.Audio24Khz48KBitRateMonoMp3=6]="Audio24Khz48KBitRateMonoMp3",i[i.Audio24Khz96KBitRateMonoMp3=7]="Audio24Khz96KBitRateMonoMp3",i[i.Audio24Khz160KBitRateMonoMp3=8]="Audio24Khz160KBitRateMonoMp3",i[i.Raw16Khz16BitMonoTrueSilk=9]="Raw16Khz16BitMonoTrueSilk",i[i.Riff16Khz16BitMonoPcm=10]="Riff16Khz16BitMonoPcm",i[i.Riff8Khz16BitMonoPcm=11]="Riff8Khz16BitMonoPcm",i[i.Riff24Khz16BitMonoPcm=12]="Riff24Khz16BitMonoPcm",i[i.Riff8Khz8BitMonoMULaw=13]="Riff8Khz8BitMonoMULaw",i[i.Raw16Khz16BitMonoPcm=14]="Raw16Khz16BitMonoPcm",i[i.Raw24Khz16BitMonoPcm=15]="Raw24Khz16BitMonoPcm",i[i.Raw8Khz16BitMonoPcm=16]="Raw8Khz16BitMonoPcm",i[i.Ogg16Khz16BitMonoOpus=17]="Ogg16Khz16BitMonoOpus",i[i.Ogg24Khz16BitMonoOpus=18]="Ogg24Khz16BitMonoOpus",i[i.Raw48Khz16BitMonoPcm=19]="Raw48Khz16BitMonoPcm",i[i.Riff48Khz16BitMonoPcm=20]="Riff48Khz16BitMonoPcm",i[i.Audio48Khz96KBitRateMonoMp3=21]="Audio48Khz96KBitRateMonoMp3",i[i.Audio48Khz192KBitRateMonoMp3=22]="Audio48Khz192KBitRateMonoMp3",i[i.Ogg48Khz16BitMonoOpus=23]="Ogg48Khz16BitMonoOpus",i[i.Webm16Khz16BitMonoOpus=24]="Webm16Khz16BitMonoOpus",i[i.Webm24Khz16BitMonoOpus=25]="Webm24Khz16BitMonoOpus",i[i.Raw24Khz16BitMonoTrueSilk=26]="Raw24Khz16BitMonoTrueSilk",i[i.Raw8Khz8BitMonoALaw=27]="Raw8Khz8BitMonoALaw",i[i.Riff8Khz8BitMonoALaw=28]="Riff8Khz8BitMonoALaw",i[i.Webm24Khz16Bit24KbpsMonoOpus=29]="Webm24Khz16Bit24KbpsMonoOpus",i[i.Audio16Khz16Bit32KbpsMonoOpus=30]="Audio16Khz16Bit32KbpsMonoOpus",i[i.Audio24Khz16Bit48KbpsMonoOpus=31]="Audio24Khz16Bit48KbpsMonoOpus",i[i.Audio24Khz16Bit24KbpsMonoOpus=32]="Audio24Khz16Bit24KbpsMonoOpus",i[i.Raw22050Hz16BitMonoPcm=33]="Raw22050Hz16BitMonoPcm",i[i.Riff22050Hz16BitMonoPcm=34]="Riff22050Hz16BitMonoPcm",i[i.Raw44100Hz16BitMonoPcm=35]="Raw44100Hz16BitMonoPcm",i[i.Riff44100Hz16BitMonoPcm=36]="Riff44100Hz16BitMonoPcm",i[i.AmrWb16000Hz=37]="AmrWb16000Hz",i[i.G72216Khz64Kbps=38]="G72216Khz64Kbps"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SynthesisResult{constructor(e,r,i,n,o,s){super(e,r,n,o),this.privAudioData=i,this.privAudioDuration=s}get audioData(){return this.privAudioData}get audioDuration(){return this.privAudioDuration}}r.SpeechSynthesisResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisVisemeEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisVisemeEventArgs=void 0,r.SpeechSynthesisVisemeEventArgs=class{constructor(e,r,i){this.privAudioOffset=e,this.privVisemeId=r,this.privAnimation=i}get audioOffset(){return this.privAudioOffset}get visemeId(){return this.privVisemeId}get animation(){return this.privAnimation}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisWordBoundaryEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisWordBoundaryEventArgs=void 0,r.SpeechSynthesisWordBoundaryEventArgs=class{constructor(e,r,i,n,o,s){this.privAudioOffset=e,this.privDuration=r,this.privText=i,this.privWordLength=n,this.privTextOffset=o,this.privBoundaryType=s}get audioOffset(){return this.privAudioOffset}get duration(){return this.privDuration}get text(){return this.privText}get wordLength(){return this.privWordLength}get textOffset(){return this.privTextOffset}get boundaryType(){return this.privBoundaryType}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioFileWriter.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputFormat.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Synthesizer.js");class p extends l.Synthesizer{constructor(e,r){super(e),null!==r&&(void 0===r?this.audioConfig="undefined"==typeof window?void 0:l.AudioConfig.fromDefaultSpeakerOutput():this.audioConfig=r),this.privConnectionFactory=new n.SpeechSynthesisConnectionFactory,this.implCommonSynthesizeSetup()}static FromConfig(e,r,i){return r.properties.mergeTo(e.properties),new p(e,i)}speakTextAsync(e,r,i,n){this.speakImpl(e,!1,r,i,n)}speakSsmlAsync(e,r,i,n){this.speakImpl(e,!0,r,i,n)}async getVoicesAsync(e=""){return this.getVoices(e)}close(e,r){d.Contracts.throwIfDisposed(this.privDisposed),(0,o.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}get internalData(){return this.privAdapter}createSynthesisAdapter(e,r,i){return new n.SpeechSynthesisAdapter(e,r,i,this,this.audioConfig)}createRestSynthesisAdapter(e,r){return new n.SynthesisRestAdapter(r,e)}implCommonSynthesizeSetup(){super.implCommonSynthesizeSetup(),this.privAdapter.audioOutputFormat=a.AudioOutputFormatImpl.fromSpeechSynthesisOutputFormat(l.SpeechSynthesisOutputFormat[this.properties.getProperty(l.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)])}speakImpl(e,r,i,n,a){try{let p;d.Contracts.throwIfDisposed(this.privDisposed);let h=(0,o.createNoDashGuid)();p=a instanceof l.PushAudioOutputStreamCallback?new c.PushAudioOutputStreamImpl(a):a instanceof l.PullAudioOutputStream?a:void 0!==a?new s.AudioFileWriter(a):void 0,this.synthesisRequestQueue.enqueue(new u.SynthesisRequest(h,e,r,e=>{if(this.privSynthesizing=!1,i)try{i(e)}catch(e){n&&n(e)}i=void 0,this.adapterSpeak().catch(()=>{})},e=>{n&&n(e)},p)),this.adapterSpeak().catch(()=>{})}catch(e){n&&(e instanceof Error?n(e.name+": "+e.message):n(e)),this.dispose(!0).catch(()=>{})}}async getVoices(e){let r=(0,o.createNoDashGuid)(),i=await this.privRestAdapter.getVoicesList(r);if(!(i.ok&&Array.isArray(i.json)))return new l.SynthesisVoicesResult(r,void 0,`Error: ${i.status}: ${i.statusText}`);{let n=i.json;return e&&e.length>0&&(n=n.filter(r=>!!r.Locale&&r.Locale.toLowerCase()===e.toLowerCase())),new l.SynthesisVoicesResult(r,n,void 0)}}}r.SpeechSynthesizer=p},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechTranslationConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechTranslationConfigImpl=r.SpeechTranslationConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class a extends s.SpeechConfig{constructor(){super()}static fromSubscription(e,r){o.Contracts.throwIfNullOrWhitespace(e,"subscriptionKey"),o.Contracts.throwIfNullOrWhitespace(r,"region");let i=new c;return i.properties.setProperty(s.PropertyId.SpeechServiceConnection_Key,e),i.properties.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i}static fromAuthorizationToken(e,r){o.Contracts.throwIfNullOrWhitespace(e,"authorizationToken"),o.Contracts.throwIfNullOrWhitespace(r,"region");let i=new c;return i.properties.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,e),i.properties.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i}static fromHost(e,r){o.Contracts.throwIfNull(e,"hostName");let i=new c;return i.setProperty(s.PropertyId.SpeechServiceConnection_Host,e.protocol+"//"+e.hostname+(""===e.port?"":":"+e.port)),void 0!==r&&i.setProperty(s.PropertyId.SpeechServiceConnection_Key,r),i}static fromEndpoint(e,r){let i;o.Contracts.throwIfNull(e,"endpoint");let n="string"==typeof r&&r.trim().length>0,a="object"==typeof r&&null!==r&&"function"==typeof r.getToken,d="object"==typeof r&&null!==r&&"string"==typeof r.key;if(void 0!==r&&!n&&!a&&!d)throw Error("Invalid 'auth' parameter: expected a non-empty API key string, a TokenCredential, or a KeyCredential.");return"string"==typeof r?(i=new c).setProperty(s.PropertyId.SpeechServiceConnection_Key,r):"object"==typeof r&&"function"==typeof r.getToken?i=new c(r):"object"==typeof r&&"string"==typeof r.key?(i=new c).setProperty(s.PropertyId.SpeechServiceConnection_Key,r.key):i=new c,i.setProperty(s.PropertyId.SpeechServiceConnection_Endpoint,e.href),i}}r.SpeechTranslationConfig=a;class c extends a{constructor(e){super(),this.privSpeechProperties=new s.PropertyCollection,this.outputFormat=s.OutputFormat.Simple,this.privTokenCredential=e}set authorizationToken(e){o.Contracts.throwIfNullOrWhitespace(e,"value"),this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,e)}set speechRecognitionLanguage(e){o.Contracts.throwIfNullOrWhitespace(e,"value"),this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage,e)}get speechRecognitionLanguage(){return this.privSpeechProperties.getProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_RecoLanguage])}get subscriptionKey(){return this.privSpeechProperties.getProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_Key])}get outputFormat(){return s.OutputFormat[this.privSpeechProperties.getProperty(n.OutputFormatPropertyName,void 0)]}set outputFormat(e){this.privSpeechProperties.setProperty(n.OutputFormatPropertyName,s.OutputFormat[e])}get endpointId(){return this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_EndpointId)}set endpointId(e){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_EndpointId,e)}addTargetLanguage(e){o.Contracts.throwIfNullOrWhitespace(e,"value");let r=this.targetLanguages;r.includes(e)||(r.push(e),this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_TranslationToLanguages,r.join(",")))}get targetLanguages(){return void 0!==this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0)?this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(","):[]}get voiceName(){return this.getProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_TranslationVoice])}set voiceName(e){o.Contracts.throwIfNullOrWhitespace(e,"value"),this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_TranslationVoice,e)}get region(){return this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_Region)}get tokenCredential(){return this.privTokenCredential}setProxy(e,r,i,n){this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyHostName],e),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyPort],r),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyUserName],i),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyPassword],n)}getProperty(e,r){return this.privSpeechProperties.getProperty(e,r)}setProperty(e,r){this.privSpeechProperties.setProperty(e,r)}get properties(){return this.privSpeechProperties}close(){}setServiceProperty(e,r){let i=JSON.parse(this.privSpeechProperties.getProperty(n.ServicePropertiesPropertyName,"{}"));i[e]=r,this.privSpeechProperties.setProperty(n.ServicePropertiesPropertyName,JSON.stringify(i))}setProfanity(e){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceResponse_ProfanityOption,s.ProfanityOption[e])}enableAudioLogging(){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_EnableAudioLogging,"true")}requestWordLevelTimestamps(){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps,"true")}enableDictation(){this.privSpeechProperties.setProperty(n.ForceDictationPropertyName,"true")}get speechSynthesisLanguage(){return this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthLanguage)}set speechSynthesisLanguage(e){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthLanguage,e)}get speechSynthesisVoiceName(){return this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthVoice)}set speechSynthesisVoiceName(e){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthVoice,e)}get speechSynthesisOutputFormat(){return s.SpeechSynthesisOutputFormat[this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)]}set speechSynthesisOutputFormat(e){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthOutputFormat,s.SpeechSynthesisOutputFormat[e])}}r.SpeechTranslationConfigImpl=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SynthesisResult.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisResult=void 0,r.SynthesisResult=class{constructor(e,r,i,n){this.privResultId=e,this.privReason=r,this.privErrorDetails=i,this.privProperties=n}get resultId(){return this.privResultId}get reason(){return this.privReason}get errorDetails(){return this.privErrorDetails}get properties(){return this.privProperties}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SynthesisVoicesResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisVoicesResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SynthesisResult{constructor(e,r,i){if(Array.isArray(r))for(let i of(super(e,n.ResultReason.VoicesListRetrieved,void 0,new n.PropertyCollection),this.privVoices=[],r))this.privVoices.push(new n.VoiceInfo(i));else super(e,n.ResultReason.Canceled,i||"Error information unavailable",new n.PropertyCollection)}get voices(){return this.privVoices}}r.SynthesisVoicesResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Synthesizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisRequest=r.Synthesizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class c{constructor(e){s.Contracts.throwIfNull(e,"speechConfig"),this.privProperties=e.properties.clone(),this.privDisposed=!1,this.privSynthesizing=!1,this.synthesisRequestQueue=new o.Queue,this.tokenCredential=e.tokenCredential}get authorizationToken(){return this.properties.getProperty(a.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){s.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(a.PropertyId.SpeechServiceAuthorization_Token,e)}get properties(){return this.privProperties}get autoDetectSourceLanguage(){return this.properties.getProperty(a.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages)===n.AutoDetectSourceLanguagesOpenRangeOptionName}buildSsml(e){let r=this.properties.getProperty(a.PropertyId.SpeechServiceConnection_SynthLanguage,"en-US"),i=this.properties.getProperty(a.PropertyId.SpeechServiceConnection_SynthVoice,""),n=c.XMLEncode(e);return this.autoDetectSourceLanguage?r="en-US":i=i||({"af-ZA":"af-ZA-AdriNeural","am-ET":"am-ET-AmehaNeural","ar-AE":"ar-AE-FatimaNeural","ar-BH":"ar-BH-AliNeural","ar-DZ":"ar-DZ-AminaNeural","ar-EG":"ar-EG-SalmaNeural","ar-IQ":"ar-IQ-BasselNeural","ar-JO":"ar-JO-SanaNeural","ar-KW":"ar-KW-FahedNeural","ar-LY":"ar-LY-ImanNeural","ar-MA":"ar-MA-JamalNeural","ar-QA":"ar-QA-AmalNeural","ar-SA":"ar-SA-HamedNeural","ar-SY":"ar-SY-AmanyNeural","ar-TN":"ar-TN-HediNeural","ar-YE":"ar-YE-MaryamNeural","bg-BG":"bg-BG-BorislavNeural","bn-BD":"bn-BD-NabanitaNeural","bn-IN":"bn-IN-BashkarNeural","ca-ES":"ca-ES-JoanaNeural","cs-CZ":"cs-CZ-AntoninNeural","cy-GB":"cy-GB-AledNeural","da-DK":"da-DK-ChristelNeural","de-AT":"de-AT-IngridNeural","de-CH":"de-CH-JanNeural","de-DE":"de-DE-KatjaNeural","el-GR":"el-GR-AthinaNeural","en-AU":"en-AU-NatashaNeural","en-CA":"en-CA-ClaraNeural","en-GB":"en-GB-LibbyNeural","en-HK":"en-HK-SamNeural","en-IE":"en-IE-ConnorNeural","en-IN":"en-IN-NeerjaNeural","en-KE":"en-KE-AsiliaNeural","en-NG":"en-NG-AbeoNeural","en-NZ":"en-NZ-MitchellNeural","en-PH":"en-PH-JamesNeural","en-SG":"en-SG-LunaNeural","en-TZ":"en-TZ-ElimuNeural","en-US":"en-US-AvaMultilingualNeural","en-ZA":"en-ZA-LeahNeural","es-AR":"es-AR-ElenaNeural","es-BO":"es-BO-MarceloNeural","es-CL":"es-CL-CatalinaNeural","es-CO":"es-CO-GonzaloNeural","es-CR":"es-CR-JuanNeural","es-CU":"es-CU-BelkysNeural","es-DO":"es-DO-EmilioNeural","es-EC":"es-EC-AndreaNeural","es-ES":"es-ES-AlvaroNeural","es-GQ":"es-GQ-JavierNeural","es-GT":"es-GT-AndresNeural","es-HN":"es-HN-CarlosNeural","es-MX":"es-MX-DaliaNeural","es-NI":"es-NI-FedericoNeural","es-PA":"es-PA-MargaritaNeural","es-PE":"es-PE-AlexNeural","es-PR":"es-PR-KarinaNeural","es-PY":"es-PY-MarioNeural","es-SV":"es-SV-LorenaNeural","es-US":"es-US-AlonsoNeural","es-UY":"es-UY-MateoNeural","es-VE":"es-VE-PaolaNeural","et-EE":"et-EE-AnuNeural","fa-IR":"fa-IR-DilaraNeural","fi-FI":"fi-FI-SelmaNeural","fil-PH":"fil-PH-AngeloNeural","fr-BE":"fr-BE-CharlineNeural","fr-CA":"fr-CA-SylvieNeural","fr-CH":"fr-CH-ArianeNeural","fr-FR":"fr-FR-DeniseNeural","ga-IE":"ga-IE-ColmNeural","gl-ES":"gl-ES-RoiNeural","gu-IN":"gu-IN-DhwaniNeural","he-IL":"he-IL-AvriNeural","hi-IN":"hi-IN-MadhurNeural","hr-HR":"hr-HR-GabrijelaNeural","hu-HU":"hu-HU-NoemiNeural","id-ID":"id-ID-ArdiNeural","is-IS":"is-IS-GudrunNeural","it-IT":"it-IT-IsabellaNeural","ja-JP":"ja-JP-NanamiNeural","jv-ID":"jv-ID-DimasNeural","kk-KZ":"kk-KZ-AigulNeural","km-KH":"km-KH-PisethNeural","kn-IN":"kn-IN-GaganNeural","ko-KR":"ko-KR-SunHiNeural","lo-LA":"lo-LA-ChanthavongNeural","lt-LT":"lt-LT-LeonasNeural","lv-LV":"lv-LV-EveritaNeural","mk-MK":"mk-MK-AleksandarNeural","ml-IN":"ml-IN-MidhunNeural","mr-IN":"mr-IN-AarohiNeural","ms-MY":"ms-MY-OsmanNeural","mt-MT":"mt-MT-GraceNeural","my-MM":"my-MM-NilarNeural","nb-NO":"nb-NO-PernilleNeural","nl-BE":"nl-BE-ArnaudNeural","nl-NL":"nl-NL-ColetteNeural","pl-PL":"pl-PL-AgnieszkaNeural","ps-AF":"ps-AF-GulNawazNeural","pt-BR":"pt-BR-FranciscaNeural","pt-PT":"pt-PT-DuarteNeural","ro-RO":"ro-RO-AlinaNeural","ru-RU":"ru-RU-SvetlanaNeural","si-LK":"si-LK-SameeraNeural","sk-SK":"sk-SK-LukasNeural","sl-SI":"sl-SI-PetraNeural","so-SO":"so-SO-MuuseNeural","sr-RS":"sr-RS-NicholasNeural","su-ID":"su-ID-JajangNeural","sv-SE":"sv-SE-SofieNeural","sw-KE":"sw-KE-RafikiNeural","sw-TZ":"sw-TZ-DaudiNeural","ta-IN":"ta-IN-PallaviNeural","ta-LK":"ta-LK-KumarNeural","ta-SG":"ta-SG-AnbuNeural","te-IN":"te-IN-MohanNeural","th-TH":"th-TH-PremwadeeNeural","tr-TR":"tr-TR-AhmetNeural","uk-UA":"uk-UA-OstapNeural","ur-IN":"ur-IN-GulNeural","ur-PK":"ur-PK-AsadNeural","uz-UZ":"uz-UZ-MadinaNeural","vi-VN":"vi-VN-HoaiMyNeural","zh-CN":"zh-CN-XiaoxiaoNeural","zh-HK":"zh-HK-HiuMaanNeural","zh-TW":"zh-TW-HsiaoChenNeural","zu-ZA":"zu-ZA-ThandoNeural"})[r],i&&(n=`<voice name='${i}'>${n}</voice>`),n=`<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xmlns:mstts='http://www.w3.org/2001/mstts' xmlns:emo='http://www.w3.org/2009/10/emotionml' xml:lang='${r}'>${n}</speak>`}async dispose(e){this.privDisposed||(e&&this.privAdapter&&await this.privAdapter.dispose(),this.privDisposed=!0)}async adapterSpeak(){if(!this.privDisposed&&!this.privSynthesizing){this.privSynthesizing=!0;let e=await this.synthesisRequestQueue.dequeue();return this.privAdapter.Speak(e.text,e.isSSML,e.requestId,e.cb,e.err,e.dataStream)}}createSynthesizerConfig(e){return new n.SynthesizerConfig(e,this.privProperties)}implCommonSynthesizeSetup(){let e="undefined"!=typeof window?"Browser":"Node",r="unknown",i="unknown";"undefined"!=typeof navigator&&(e=e+"/"+navigator.platform,r=navigator.userAgent,i=navigator.appVersion);let o=this.createSynthesizerConfig(new n.SpeechServiceConfig(new n.Context(new n.OS(e,r,i)))),s=this.privProperties.getProperty(a.PropertyId.SpeechServiceConnection_Key,void 0),c=s&&""!==s?new n.CognitiveSubscriptionKeyAuthentication(s):this.tokenCredential?new n.CognitiveTokenAuthentication(async()=>{try{let e=await this.tokenCredential.getToken("https://cognitiveservices.azure.com/.default");return e?.token??""}catch(e){throw e}},async()=>{try{let e=await this.tokenCredential.getToken("https://cognitiveservices.azure.com/.default");return e?.token??""}catch(e){throw e}}):new n.CognitiveTokenAuthentication(()=>Promise.resolve(this.privProperties.getProperty(a.PropertyId.SpeechServiceAuthorization_Token,void 0)),()=>Promise.resolve(this.privProperties.getProperty(a.PropertyId.SpeechServiceAuthorization_Token,void 0)));this.privAdapter=this.createSynthesisAdapter(c,this.privConnectionFactory,o),this.privRestAdapter=this.createRestSynthesisAdapter(c,o)}static XMLEncode(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}}r.Synthesizer=c,r.SynthesisRequest=class{constructor(e,r,i,n,o,s){this.requestId=e,this.text=r,this.isSSML=i,this.cb=n,this.err=o,this.dataStream=s}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Conversation.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationImpl=r.Conversation=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class c{constructor(){return}static createConversationAsync(e,r,i,c){let l;return(s.Contracts.throwIfNullOrUndefined(e,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","config")),s.Contracts.throwIfNullOrUndefined(e.region,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Region")),e.subscriptionKey||e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceAuthorization_Token])||s.Contracts.throwIfNullOrUndefined(e.subscriptionKey,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Key")),"string"==typeof r)?(l=new d(e,r),(0,o.marshalPromiseToCallbacks)((async()=>{})(),i,c)):(l=new d(e)).createConversationAsync(()=>{r&&r()},e=>{i&&i(e)}),l}}r.Conversation=c;class d extends c{constructor(e,r){if(super(),this.privErrors=n.ConversationConnectionConfig.restErrors,this.onConnected=e=>{this.privIsConnected=!0;try{this.privConversationTranslator?.sessionStarted&&this.privConversationTranslator.sessionStarted(this.privConversationTranslator,e)}catch(e){}},this.onDisconnected=e=>{try{this.privConversationTranslator?.sessionStopped&&this.privConversationTranslator.sessionStopped(this.privConversationTranslator,e)}catch(e){}finally{this.close(!1)}},this.onCanceled=(e,r)=>{try{this.privConversationTranslator?.canceled&&this.privConversationTranslator.canceled(this.privConversationTranslator,r)}catch(e){}},this.onParticipantUpdateCommandReceived=(e,r)=>{try{let e=this.privParticipants.getParticipant(r.id);if(void 0!==e){switch(r.key){case n.ConversationTranslatorCommandTypes.changeNickname:e.displayName=r.value;break;case n.ConversationTranslatorCommandTypes.setUseTTS:e.isUsingTts=r.value;break;case n.ConversationTranslatorCommandTypes.setProfanityFiltering:e.profanity=r.value;break;case n.ConversationTranslatorCommandTypes.setMute:e.isMuted=r.value;break;case n.ConversationTranslatorCommandTypes.setTranslateToLanguages:e.translateToLanguages=r.value}this.privParticipants.addOrUpdateParticipant(e),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.Updated,[this.toParticipant(e)],r.sessionId))}}catch(e){}},this.onLockRoomCommandReceived=()=>{},this.onMuteAllCommandReceived=(e,r)=>{try{this.privParticipants.participants.forEach(e=>e.isMuted=!e.isHost&&r.isMuted),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.Updated,this.toParticipants(!1),r.sessionId))}catch(e){}},this.onParticipantJoinCommandReceived=(e,r)=>{try{let e=this.privParticipants.addOrUpdateParticipant(r.participant);void 0!==e&&this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.JoinedConversation,[this.toParticipant(e)],r.sessionId))}catch(e){}},this.onParticipantLeaveCommandReceived=(e,r)=>{try{let e=this.privParticipants.getParticipant(r.participant.id);void 0!==e&&(this.privParticipants.deleteParticipant(r.participant.id),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.LeftConversation,[this.toParticipant(e)],r.sessionId)))}catch(e){}},this.onTranslationReceived=(e,r)=>{try{switch(r.command){case n.ConversationTranslatorMessageTypes.final:this.privConversationTranslator&&this.privConversationTranslator.transcribed(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId));break;case n.ConversationTranslatorMessageTypes.partial:this.privConversationTranslator&&this.privConversationTranslator.transcribing(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId));break;case n.ConversationTranslatorMessageTypes.instantMessage:this.privConversationTranslator&&this.privConversationTranslator.textMessageReceived(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId))}}catch(e){}},this.onParticipantsListReceived=(e,r)=>{try{if(void 0!==r.sessionToken&&null!==r.sessionToken&&(this.privRoom.token=r.sessionToken),this.privParticipants.participants=[...r.participants],void 0!==this.privParticipants.me&&(this.privIsReady=!0),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.JoinedConversation,this.toParticipants(!0),r.sessionId)),this.me.isHost){let e=this.privConversationTranslator?.properties.getProperty(a.PropertyId.ConversationTranslator_Name);void 0!==e&&e.length>0&&e!==this.me.displayName&&this.changeNicknameAsync(e)}}catch(e){}},this.onConversationExpiration=(e,r)=>{try{this.privConversationTranslator&&this.privConversationTranslator.conversationExpiration(this.privConversationTranslator,r)}catch(e){}},this.privIsConnected=!1,this.privIsDisposed=!1,this.privConversationId="",this.privProperties=new a.PropertyCollection,this.privManager=new n.ConversationManager,e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage])||e.setProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage],n.ConversationConnectionConfig.defaultLanguageCode),this.privLanguage=e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage]),r)this.privConversationId=r;else{0===e.targetLanguages.length&&e.addTargetLanguage(this.privLanguage),e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceResponse_ProfanityOption])||e.setProfanity(a.ProfanityOption.Masked);let r=e.getProperty(a.PropertyId[a.PropertyId.ConversationTranslator_Name]);null==r&&(r="Host"),s.Contracts.throwIfNullOrTooLong(r,"nickname",50),s.Contracts.throwIfNullOrTooShort(r,"nickname",2),e.setProperty(a.PropertyId[a.PropertyId.ConversationTranslator_Name],r)}this.privConfig=e,s.Contracts.throwIfNull(e,"speechConfig"),this.privProperties=e.properties.clone(),this.privIsConnected=!1,this.privParticipants=new n.InternalParticipants,this.privIsReady=!1,this.privTextMessageMaxLength=1e3}get room(){return this.privRoom}get connection(){return this.privConversationRecognizer}get config(){return this.privConfig}get conversationId(){return this.privRoom?this.privRoom.roomId:this.privConversationId}get properties(){return this.privProperties}get speechRecognitionLanguage(){return this.privLanguage}get isMutedByHost(){return!this.privParticipants.me?.isHost&&this.privParticipants.me?.isMuted}get isConnected(){return this.privIsConnected&&this.privIsReady}get participants(){return this.toParticipants(!0)}get me(){return this.toParticipant(this.privParticipants.me)}get host(){return this.toParticipant(this.privParticipants.host)}get transcriberRecognizer(){return this.privTranscriberRecognizer}get conversationInfo(){let e=this.conversationId,r=this.participants.map(e=>({id:e.id,preferredLanguage:e.preferredLanguage,voice:e.voice})),i={};for(let e of n.ConversationConnectionConfig.transcriptionEventKeys){let r=this.properties.getProperty(e,"");""!==r&&(i[e]=r)}return{id:e,participants:r,conversationProperties:i}}get canSend(){return this.privIsConnected&&!this.privParticipants.me?.isMuted}get canSendAsHost(){return this.privIsConnected&&this.privParticipants.me?.isHost}get authorizationToken(){return this.privToken}set authorizationToken(e){s.Contracts.throwIfNullOrWhitespace(e,"authorizationToken"),this.privToken=e}set conversationTranslator(e){this.privConversationTranslator=e}onToken(e){this.privConversationTranslator.onToken(e)}createConversationAsync(e,r){try{this.privConversationRecognizer&&this.handleError(Error(this.privErrors.permissionDeniedStart),r),this.privManager.createOrJoin(this.privProperties,void 0,i=>{i||this.handleError(Error(this.privErrors.permissionDeniedConnect),r),this.privRoom=i,this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}startConversationAsync(e,r){try{this.privConversationRecognizer&&this.handleError(Error(this.privErrors.permissionDeniedStart),r),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedConnect),this.privParticipants.meId=this.privRoom.participantId,this.privConversationRecognizer=n.ConversationRecognizerFactory.fromConfig(this,this.privConfig),this.privConversationRecognizer.connected=this.onConnected,this.privConversationRecognizer.disconnected=this.onDisconnected,this.privConversationRecognizer.canceled=this.onCanceled,this.privConversationRecognizer.participantUpdateCommandReceived=this.onParticipantUpdateCommandReceived,this.privConversationRecognizer.lockRoomCommandReceived=this.onLockRoomCommandReceived,this.privConversationRecognizer.muteAllCommandReceived=this.onMuteAllCommandReceived,this.privConversationRecognizer.participantJoinCommandReceived=this.onParticipantJoinCommandReceived,this.privConversationRecognizer.participantLeaveCommandReceived=this.onParticipantLeaveCommandReceived,this.privConversationRecognizer.translationReceived=this.onTranslationReceived,this.privConversationRecognizer.participantsListReceived=this.onParticipantsListReceived,this.privConversationRecognizer.conversationExpiration=this.onConversationExpiration,this.privConversationRecognizer.connect(this.privRoom.token,()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}addParticipantAsync(e,r,i){s.Contracts.throwIfNullOrUndefined(e,"Participant"),(0,o.marshalPromiseToCallbacks)(this.addParticipantImplAsync(e),r,i)}joinConversationAsync(e,r,i,n,o){try{s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","conversationId")),s.Contracts.throwIfNullOrWhitespace(r,this.privErrors.invalidArgs.replace("{arg}","nickname")),s.Contracts.throwIfNullOrWhitespace(i,this.privErrors.invalidArgs.replace("{arg}","language")),this.privManager.createOrJoin(this.privProperties,e,e=>{s.Contracts.throwIfNullOrUndefined(e,this.privErrors.permissionDeniedConnect),this.privRoom=e,this.privConfig.authorizationToken=e.cognitiveSpeechAuthToken,n&&n(e.cognitiveSpeechAuthToken)},e=>{this.handleError(e,o)})}catch(e){this.handleError(e,o)}}deleteConversationAsync(e,r){(0,o.marshalPromiseToCallbacks)(this.deleteConversationImplAsync(),e,r)}async deleteConversationImplAsync(){s.Contracts.throwIfNullOrUndefined(this.privProperties,this.privErrors.permissionDeniedConnect),s.Contracts.throwIfNullOrWhitespace(this.privRoom.token,this.privErrors.permissionDeniedConnect),await this.privManager.leave(this.privProperties,this.privRoom.token),this.dispose()}endConversationAsync(e,r){(0,o.marshalPromiseToCallbacks)(this.endConversationImplAsync(),e,r)}endConversationImplAsync(){return this.close(!0)}lockConversationAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","lock")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!0),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}muteAllParticipantsAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privConversationRecognizer,this.privErrors.permissionDeniedSend),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","mute")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!0),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}muteParticipantAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","userId")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.me.isHost||this.me.id===e||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),i);let n=this.privParticipants.getParticipantIndex(e);-1===n&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(e,!0),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}removeParticipantAsync(e,r,i){try{if(s.Contracts.throwIfDisposed(this.privIsDisposed),this.privTranscriberRecognizer&&e.hasOwnProperty("id"))(0,o.marshalPromiseToCallbacks)(this.removeParticipantImplAsync(e),r,i);else{s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","remove")),i);let n="";"string"==typeof e?n=e:e.hasOwnProperty("id")?n=e.id:e.hasOwnProperty("userId")&&(n=e.userId),s.Contracts.throwIfNullOrWhitespace(n,this.privErrors.invalidArgs.replace("{arg}","userId"));let o=this.participants.findIndex(e=>e.id===n);-1===o&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getEjectCommand(n),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}}catch(e){this.handleError(e,i)}}unlockConversationAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","unlock")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!1),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}unmuteAllParticipantsAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","unmute all")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!1),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}unmuteParticipantAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","userId")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.me.isHost||this.me.id===e||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),i);let n=this.privParticipants.getParticipantIndex(e);-1===n&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(e,!1),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}sendTextMessageAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","message")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),e.length>this.privTextMessageMaxLength&&this.handleError(Error(this.privErrors.invalidArgs.replace("{arg}","message length")),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMessageCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}setTranslatedLanguagesAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfArrayEmptyOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","languages")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getSetTranslateToLanguagesCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}changeNicknameAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","nickname")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getChangeNicknameCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}isDisposed(){return this.privIsDisposed}dispose(){this.isDisposed||(this.privIsDisposed=!0,this.config&&this.config.close(),this.privConfig=void 0,this.privLanguage=void 0,this.privProperties=void 0,this.privRoom=void 0,this.privToken=void 0,this.privManager=void 0,this.privIsConnected=!1,this.privIsReady=!1,this.privParticipants=void 0)}async connectTranscriberRecognizer(e){this.privTranscriberRecognizer&&await this.privTranscriberRecognizer.close(),await e.enforceAudioGating(),this.privTranscriberRecognizer=e,this.privTranscriberRecognizer.conversation=this}getKeepAlive(){return JSON.stringify({id:"0",nickname:this.me?this.me.displayName:"default_nickname",participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.keepAlive})}addParticipantImplAsync(e){if(void 0!==this.privParticipants.addOrUpdateParticipant(e)&&this.privTranscriberRecognizer){let r=this.conversationInfo;return r.participants=[e],this.privTranscriberRecognizer.pushConversationEvent(r,"join")}}removeParticipantImplAsync(e){this.privParticipants.deleteParticipant(e.id);let r=this.conversationInfo;return r.participants=[e],this.privTranscriberRecognizer.pushConversationEvent(r,"leave")}async close(e){try{this.privIsConnected=!1,await this.privConversationRecognizer?.close(),this.privConversationRecognizer=void 0,this.privConversationTranslator&&this.privConversationTranslator.dispose()}catch(e){throw e}e&&this.dispose()}handleCallback(e,r){if(e){try{e()}catch(e){r&&r(e)}e=void 0}}handleError(e,r){r&&(e instanceof Error?r(e.name+": "+e.message):r(e))}toParticipants(e){let r=this.privParticipants.participants.map(e=>this.toParticipant(e));return e?r:r.filter(e=>!1===e.isHost)}toParticipant(e){return new a.Participant(e.id,e.avatar,e.displayName,e.isHost,e.isMuted,e.isUsingTts,e.preferredLanguage,e.voice)}getMuteAllCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setMuteAll,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getMuteCommand(e,r){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(e,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setMute,participantId:e,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:r})}getLockCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setLockState,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getEjectCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(e,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.ejectParticipant,participantId:e,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand})}getSetTranslateToLanguagesCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setTranslateToLanguages,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getChangeNicknameCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(e,"nickname"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.changeNickname,nickname:e,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getMessageCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),s.Contracts.throwIfNullOrWhitespace(e,"message"),JSON.stringify({participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,text:e,type:n.ConversationTranslatorMessageTypes.instantMessage})}}r.ConversationImpl=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationCommon.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationCommon=void 0,r.ConversationCommon=class{constructor(e){this.privAudioConfig=e}handleCallback(e,r){if(e){try{e()}catch(e){r&&r(e)}e=void 0}}handleError(e,r){r&&(e instanceof Error?r(e.name+": "+e.message):r(e))}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationExpirationEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationExpirationEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r){super(r),this.privExpirationTime=e}get expirationTime(){return this.privExpirationTime}}r.ConversationExpirationEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationParticipantsChangedEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationParticipantsChangedEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r,i){super(i),this.privReason=e,this.privParticipant=r}get reason(){return this.privReason}get participants(){return this.privParticipant}}r.ConversationParticipantsChangedEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranscriber.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranscriber=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class d extends c.Recognizer{constructor(e,r){a.Contracts.throwIfNull(e,"speechConfig"),a.Contracts.throwIfNullOrWhitespace(e.properties.getProperty(c.PropertyId.SpeechServiceConnection_RecoLanguage),c.PropertyId[c.PropertyId.SpeechServiceConnection_RecoLanguage]),super(r,e.properties,new n.ConversationTranscriberConnectionFactory,e.tokenCredential),this.privProperties.setProperty(c.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"2"),this.privDisposedRecognizer=!1}static FromConfig(e,r,i){return r.properties.mergeTo(e.properties),new d(e,i)}get endpointId(){return a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(c.PropertyId.SpeechServiceConnection_EndpointId,"00000000-0000-0000-0000-000000000000")}get authorizationToken(){return this.properties.getProperty(c.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){a.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(c.PropertyId.SpeechServiceAuthorization_Token,e)}get speechRecognitionLanguage(){return a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(c.PropertyId.SpeechServiceConnection_RecoLanguage)}get outputFormat(){return(a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(n.OutputFormatPropertyName,c.OutputFormat[c.OutputFormat.Simple])===c.OutputFormat[c.OutputFormat.Simple])?c.OutputFormat.Simple:c.OutputFormat.Detailed}get properties(){return this.privProperties}startTranscribingAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(o.RecognitionMode.Conversation),e,r)}stopTranscribingAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),e,r)}close(e,r){a.Contracts.throwIfDisposed(this.privDisposedRecognizer),(0,s.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}async dispose(e){this.privDisposedRecognizer||(e&&(this.privDisposedRecognizer=!0,await this.implRecognizerStop()),await super.dispose(e))}createRecognizerConfig(e){return new n.RecognizerConfig(e,this.privProperties)}createServiceRecognizer(e,r,i,o){return o.isSpeakerDiarizationEnabled=!0,new n.ConversationTranscriptionServiceRecognizer(e,r,i,o,this)}}r.ConversationTranscriber=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranscriptionResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranscriptionResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionResult{constructor(e,r,i,n,o,s,a,c,d,l,u){super(e,r,i,n,o,s,a,d,l,u),this.privSpeakerId=c}get speakerId(){return this.privSpeakerId}}r.ConversationTranscriptionResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationCanceledEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslationCanceledEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js");class o extends n.CancellationEventArgsBase{}r.ConversationTranslationCanceledEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslationEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionEventArgs{constructor(e,r,i){super(r,i),this.privResult=e}get result(){return this.privResult}}r.ConversationTranslationEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslationResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionResult.js");class o extends n.TranslationRecognitionResult{constructor(e,r,i,n,o,s,a,c,d,l,u){super(r,n,o,s,a,c,void 0,void 0,d,l,u),this.privId=e,this.privOrigLang=i}get participantId(){return this.privId}get originalLang(){return this.privOrigLang}}r.ConversationTranslationResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslator.js":function(e,r,i){var n,o;Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslator=r.SpeechState=void 0;let s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorConnectionFactory.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Conversation.js"),p=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Exports.js");(o=n=r.SpeechState||(r.SpeechState={}))[o.Inactive=0]="Inactive",o[o.Connecting=1]="Connecting",o[o.Connected=2]="Connected";class h extends l.TranslationRecognizer{constructor(e,r,i,o){super(e,r,new a.ConversationTranslatorConnectionFactory(o)),this.privSpeechState=n.Inactive,i&&(this.privTranslator=i,this.sessionStarted=()=>{this.privSpeechState=n.Connected},this.sessionStopped=()=>{this.privSpeechState=n.Inactive},this.recognizing=(e,r)=>{this.privTranslator.recognizing&&this.privTranslator.recognizing(this.privTranslator,r)},this.recognized=async(e,r)=>{r.result?.errorDetails?(await this.cancelSpeech(),this.fireCancelEvent(r.result.errorDetails)):this.privTranslator.recognized&&this.privTranslator.recognized(this.privTranslator,r)},this.canceled=async()=>{if(this.privSpeechState!==n.Inactive)try{await this.cancelSpeech()}catch(e){this.privSpeechState=n.Inactive}})}get state(){return this.privSpeechState}set state(e){this.privSpeechState=e}set authentication(e){this.privReco.authentication=e}onConnection(){this.privSpeechState=n.Connected}async onCancelSpeech(){this.privSpeechState=n.Inactive,await this.cancelSpeech()}fireCancelEvent(e){try{if(this.privTranslator.canceled){let r=new p.ConversationTranslationCanceledEventArgs(l.CancellationReason.Error,e,l.CancellationErrorCode.RuntimeError);this.privTranslator.canceled(this.privTranslator,r)}}catch(e){}}async cancelSpeech(){try{this.stopContinuousRecognitionAsync(),await this.privReco?.disconnect(),this.privSpeechState=n.Inactive}catch(e){}}}class f extends p.ConversationCommon{constructor(e){super(e),this.privErrors=s.ConversationConnectionConfig.restErrors,this.privIsDisposed=!1,this.privIsSpeaking=!1,this.privPlaceholderKey="abcdefghijklmnopqrstuvwxyz012345",this.privPlaceholderRegion="westus",this.privProperties=new l.PropertyCollection}get properties(){return this.privProperties}get speechRecognitionLanguage(){return this.privSpeechRecognitionLanguage}get participants(){return this.privConversation?.participants}get canSpeak(){return!!this.privConversation.isConnected&&!!this.privCTRecognizer&&!this.privIsSpeaking&&this.privCTRecognizer.state!==n.Connected&&this.privCTRecognizer.state!==n.Connecting&&!this.privConversation.isMutedByHost}onToken(e){this.privCTRecognizer.authentication=e}setServiceProperty(e,r){let i=JSON.parse(this.privProperties.getProperty(s.ServicePropertiesPropertyName,"{}"));i[e]=r,this.privProperties.setProperty(s.ServicePropertiesPropertyName,JSON.stringify(i))}joinConversationAsync(e,r,i,n,o){try{if("string"==typeof e){d.Contracts.throwIfNullOrUndefined(e,this.privErrors.invalidArgs.replace("{arg}","conversation id")),d.Contracts.throwIfNullOrWhitespace(r,this.privErrors.invalidArgs.replace("{arg}","nickname")),this.privConversation&&this.handleError(Error(this.privErrors.permissionDeniedStart),o);let a=i;for(let e of((null==a||""===a)&&(a=s.ConversationConnectionConfig.defaultLanguageCode),this.privSpeechTranslationConfig=l.SpeechTranslationConfig.fromSubscription(this.privPlaceholderKey,this.privPlaceholderRegion),this.privSpeechTranslationConfig.setProfanity(l.ProfanityOption.Masked),this.privSpeechTranslationConfig.addTargetLanguage(a),this.privSpeechTranslationConfig.setProperty(l.PropertyId[l.PropertyId.SpeechServiceConnection_RecoLanguage],a),this.privSpeechTranslationConfig.setProperty(l.PropertyId[l.PropertyId.ConversationTranslator_Name],r),[l.PropertyId.SpeechServiceConnection_Host,l.PropertyId.ConversationTranslator_Host,l.PropertyId.SpeechServiceConnection_Endpoint,l.PropertyId.SpeechServiceConnection_ProxyHostName,l.PropertyId.SpeechServiceConnection_ProxyPassword,l.PropertyId.SpeechServiceConnection_ProxyPort,l.PropertyId.SpeechServiceConnection_ProxyUserName,"ConversationTranslator_MultiChannelAudio","ConversationTranslator_Region"])){let r=this.privProperties.getProperty(e);if(r){let i="string"==typeof e?e:l.PropertyId[e];this.privSpeechTranslationConfig.setProperty(i,r)}}let c=JSON.parse(this.privProperties.getProperty(s.ServicePropertiesPropertyName,"{}"));for(let e of Object.keys(c))this.privSpeechTranslationConfig.setServiceProperty(e,c[e],l.ServicePropertyChannel.UriQueryParameter);this.privConversation=new u.ConversationImpl(this.privSpeechTranslationConfig),this.privConversation.conversationTranslator=this,this.privConversation.joinConversationAsync(e,r,a,e=>{e||this.handleError(Error(this.privErrors.permissionDeniedConnect),o),this.privSpeechTranslationConfig.authorizationToken=e,this.privConversation.room.isHost=!1,this.privConversation.startConversationAsync(()=>{this.handleCallback(n,o)},e=>{this.handleError(e,o)})},e=>{this.handleError(e,o)})}else"object"==typeof e?(d.Contracts.throwIfNullOrUndefined(e,this.privErrors.invalidArgs.replace("{arg}","conversation id")),d.Contracts.throwIfNullOrWhitespace(r,this.privErrors.invalidArgs.replace("{arg}","nickname")),this.privProperties.setProperty(l.PropertyId.ConversationTranslator_Name,r),this.privConversation=e,this.privConversation.conversationTranslator=this,this.privConversation.room.isHost=!0,d.Contracts.throwIfNullOrUndefined(this.privConversation,this.privErrors.permissionDeniedConnect),d.Contracts.throwIfNullOrUndefined(this.privConversation.room.token,this.privErrors.permissionDeniedConnect),this.privSpeechTranslationConfig=e.config,this.handleCallback(i,n)):this.handleError(Error(this.privErrors.invalidArgs.replace("{arg}","invalid conversation type")),n)}catch(e){this.handleError(e,"string"==typeof i?o:n)}}leaveConversationAsync(e,r){(0,c.marshalPromiseToCallbacks)((async()=>{await this.cancelSpeech(),await this.privConversation.endConversationImplAsync(),await this.privConversation.deleteConversationImplAsync(),this.dispose()})(),e,r)}sendTextMessageAsync(e,r,i){try{d.Contracts.throwIfNullOrUndefined(this.privConversation,this.privErrors.permissionDeniedSend),d.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}",e)),this.privConversation.sendTextMessageAsync(e,r,i)}catch(e){this.handleError(e,i)}}startTranscribingAsync(e,r){(0,c.marshalPromiseToCallbacks)((async()=>{try{d.Contracts.throwIfNullOrUndefined(this.privConversation,this.privErrors.permissionDeniedSend),d.Contracts.throwIfNullOrUndefined(this.privConversation.room.token,this.privErrors.permissionDeniedConnect),void 0===this.privCTRecognizer&&await this.connectTranslatorRecognizer(),d.Contracts.throwIfNullOrUndefined(this.privCTRecognizer,this.privErrors.permissionDeniedSend),this.canSpeak||this.handleError(Error(this.privErrors.permissionDeniedSend),r),await this.startContinuousRecognition(),this.privIsSpeaking=!0}catch(e){throw this.privIsSpeaking=!1,await this.cancelSpeech(),e}})(),e,r)}stopTranscribingAsync(e,r){(0,c.marshalPromiseToCallbacks)((async()=>{try{if(!this.privIsSpeaking)return void await this.cancelSpeech();this.privIsSpeaking=!1,await new Promise((e,r)=>{this.privCTRecognizer.stopContinuousRecognitionAsync(e,r)})}catch(e){await this.cancelSpeech()}})(),e,r)}isDisposed(){return this.privIsDisposed}dispose(e,r,i){(0,c.marshalPromiseToCallbacks)((async()=>{(!this.isDisposed||this.privIsSpeaking)&&(await this.cancelSpeech(),this.privIsDisposed=!0,this.privSpeechTranslationConfig.close(),this.privSpeechRecognitionLanguage=void 0,this.privProperties=void 0,this.privAudioConfig=void 0,this.privSpeechTranslationConfig=void 0,this.privConversation.dispose(),this.privConversation=void 0)})(),r,i)}async cancelSpeech(){try{this.privIsSpeaking=!1,await this.privCTRecognizer?.onCancelSpeech(),this.privCTRecognizer=void 0}catch(e){}}async connectTranslatorRecognizer(){try{void 0===this.privAudioConfig&&(this.privAudioConfig=l.AudioConfig.fromDefaultMicrophoneInput()),this.privSpeechTranslationConfig.getProperty(l.PropertyId[l.PropertyId.SpeechServiceConnection_Key])===this.privPlaceholderKey&&this.privSpeechTranslationConfig.setProperty(l.PropertyId[l.PropertyId.SpeechServiceConnection_Key],"");let e=()=>this.privConversation;this.privCTRecognizer=new h(this.privSpeechTranslationConfig,this.privAudioConfig,this,e)}catch(e){throw await this.cancelSpeech(),e}}startContinuousRecognition(){return new Promise((e,r)=>{this.privCTRecognizer.startContinuousRecognitionAsync(e,r)})}}r.ConversationTranslator=f},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Exports.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranscriptionResult=r.MeetingTranscriber=r.MeetingTranscriptionCanceledEventArgs=r.MeetingImpl=r.Meeting=r.ParticipantChangedReason=r.User=r.Participant=r.ConversationTranscriber=r.ConversationTranslator=r.ConversationTranslationResult=r.ConversationTranslationEventArgs=r.ConversationTranslationCanceledEventArgs=r.ConversationParticipantsChangedEventArgs=r.ConversationExpirationEventArgs=r.ConversationCommon=r.ConversationImpl=r.Conversation=void 0;var n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Conversation.js");Object.defineProperty(r,"Conversation",{enumerable:!0,get:function(){return n.Conversation}}),Object.defineProperty(r,"ConversationImpl",{enumerable:!0,get:function(){return n.ConversationImpl}});var o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationCommon.js");Object.defineProperty(r,"ConversationCommon",{enumerable:!0,get:function(){return o.ConversationCommon}});var s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationExpirationEventArgs.js");Object.defineProperty(r,"ConversationExpirationEventArgs",{enumerable:!0,get:function(){return s.ConversationExpirationEventArgs}});var a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationParticipantsChangedEventArgs.js");Object.defineProperty(r,"ConversationParticipantsChangedEventArgs",{enumerable:!0,get:function(){return a.ConversationParticipantsChangedEventArgs}});var c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationCanceledEventArgs.js");Object.defineProperty(r,"ConversationTranslationCanceledEventArgs",{enumerable:!0,get:function(){return c.ConversationTranslationCanceledEventArgs}});var d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationEventArgs.js");Object.defineProperty(r,"ConversationTranslationEventArgs",{enumerable:!0,get:function(){return d.ConversationTranslationEventArgs}});var l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationResult.js");Object.defineProperty(r,"ConversationTranslationResult",{enumerable:!0,get:function(){return l.ConversationTranslationResult}});var u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslator.js");Object.defineProperty(r,"ConversationTranslator",{enumerable:!0,get:function(){return u.ConversationTranslator}});var p=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranscriber.js");Object.defineProperty(r,"ConversationTranscriber",{enumerable:!0,get:function(){return p.ConversationTranscriber}});var h=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/IParticipant.js");Object.defineProperty(r,"Participant",{enumerable:!0,get:function(){return h.Participant}}),Object.defineProperty(r,"User",{enumerable:!0,get:function(){return h.User}});var f=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ParticipantChangedReason.js");Object.defineProperty(r,"ParticipantChangedReason",{enumerable:!0,get:function(){return f.ParticipantChangedReason}});var m=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Meeting.js");Object.defineProperty(r,"Meeting",{enumerable:!0,get:function(){return m.Meeting}}),Object.defineProperty(r,"MeetingImpl",{enumerable:!0,get:function(){return m.MeetingImpl}});var g=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/MeetingTranscriptionCanceledEventArgs.js");Object.defineProperty(r,"MeetingTranscriptionCanceledEventArgs",{enumerable:!0,get:function(){return g.MeetingTranscriptionCanceledEventArgs}});var y=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/MeetingTranscriber.js");Object.defineProperty(r,"MeetingTranscriber",{enumerable:!0,get:function(){return y.MeetingTranscriber}});var b=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranscriptionResult.js");Object.defineProperty(r,"ConversationTranscriptionResult",{enumerable:!0,get:function(){return b.ConversationTranscriptionResult}})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/IParticipant.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Participant=r.User=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");r.User=class{constructor(e){this.privUserId=e}get userId(){return this.privUserId}};class o{constructor(e,r,i,o,s,a,c,d){this.privId=e,this.privAvatar=r,this.privDisplayName=i,this.privIsHost=o,this.privIsMuted=s,this.privIsUsingTts=a,this.privPreferredLanguage=c,this.privVoice=d,this.privProperties=new n.PropertyCollection}get avatar(){return this.privAvatar}get displayName(){return this.privDisplayName}get id(){return this.privId}get preferredLanguage(){return this.privPreferredLanguage}get isHost(){return this.privIsHost}get isMuted(){return this.privIsMuted}get isUsingTts(){return this.privIsUsingTts}get voice(){return this.privVoice}get properties(){return this.privProperties}static From(e,r,i){return new o(e,"",e,!1,!1,!1,r,i)}}r.Participant=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Meeting.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.MeetingImpl=r.Meeting=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class c{constructor(){return}static createMeetingAsync(e,r,i,c){if(s.Contracts.throwIfNullOrUndefined(e,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","config")),s.Contracts.throwIfNullOrUndefined(e.region,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Region")),s.Contracts.throwIfNull(r,"meetingId"),0===r.length)throw Error("meetingId cannot be empty");e.subscriptionKey||e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceAuthorization_Token])||s.Contracts.throwIfNullOrUndefined(e.subscriptionKey,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Key"));let l=new d(e,r);return(0,o.marshalPromiseToCallbacks)((async()=>{})(),i,c),l}}r.Meeting=c;class d extends c{constructor(e,r){super(),this.privErrors=n.ConversationConnectionConfig.restErrors,this.onConnected=e=>{this.privIsConnected=!0;try{this.privConversationTranslator?.sessionStarted&&this.privConversationTranslator.sessionStarted(this.privConversationTranslator,e)}catch(e){}},this.onDisconnected=e=>{try{this.privConversationTranslator?.sessionStopped&&this.privConversationTranslator.sessionStopped(this.privConversationTranslator,e)}catch(e){}finally{this.close(!1)}},this.onCanceled=(e,r)=>{try{this.privConversationTranslator?.canceled&&this.privConversationTranslator.canceled(this.privConversationTranslator,r)}catch(e){}},this.onParticipantUpdateCommandReceived=(e,r)=>{try{let e=this.privParticipants.getParticipant(r.id);if(void 0!==e){switch(r.key){case n.ConversationTranslatorCommandTypes.changeNickname:e.displayName=r.value;break;case n.ConversationTranslatorCommandTypes.setUseTTS:e.isUsingTts=r.value;break;case n.ConversationTranslatorCommandTypes.setProfanityFiltering:e.profanity=r.value;break;case n.ConversationTranslatorCommandTypes.setMute:e.isMuted=r.value;break;case n.ConversationTranslatorCommandTypes.setTranslateToLanguages:e.translateToLanguages=r.value}this.privParticipants.addOrUpdateParticipant(e),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.Updated,[this.toParticipant(e)],r.sessionId))}}catch(e){}},this.onLockRoomCommandReceived=()=>{},this.onMuteAllCommandReceived=(e,r)=>{try{this.privParticipants.participants.forEach(e=>e.isMuted=!e.isHost&&r.isMuted),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.Updated,this.toParticipants(!1),r.sessionId))}catch(e){}},this.onParticipantJoinCommandReceived=(e,r)=>{try{let e=this.privParticipants.addOrUpdateParticipant(r.participant);void 0!==e&&this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.JoinedConversation,[this.toParticipant(e)],r.sessionId))}catch(e){}},this.onParticipantLeaveCommandReceived=(e,r)=>{try{let e=this.privParticipants.getParticipant(r.participant.id);void 0!==e&&(this.privParticipants.deleteParticipant(r.participant.id),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.LeftConversation,[this.toParticipant(e)],r.sessionId)))}catch(e){}},this.onTranslationReceived=(e,r)=>{try{switch(r.command){case n.ConversationTranslatorMessageTypes.final:this.privConversationTranslator&&this.privConversationTranslator.transcribed(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId));break;case n.ConversationTranslatorMessageTypes.partial:this.privConversationTranslator&&this.privConversationTranslator.transcribing(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId));break;case n.ConversationTranslatorMessageTypes.instantMessage:this.privConversationTranslator&&this.privConversationTranslator.textMessageReceived(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId))}}catch(e){}},this.onParticipantsListReceived=(e,r)=>{try{if(void 0!==r.sessionToken&&null!==r.sessionToken&&(this.privRoom.token=r.sessionToken),this.privParticipants.participants=[...r.participants],void 0!==this.privParticipants.me&&(this.privIsReady=!0),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.JoinedConversation,this.toParticipants(!0),r.sessionId)),this.me.isHost){let e=this.privConversationTranslator?.properties.getProperty(a.PropertyId.ConversationTranslator_Name);void 0!==e&&e.length>0&&e!==this.me.displayName&&this.changeNicknameAsync(e)}}catch(e){}},this.onConversationExpiration=(e,r)=>{try{this.privConversationTranslator&&this.privConversationTranslator.conversationExpiration(this.privConversationTranslator,r)}catch(e){}},this.privIsConnected=!1,this.privIsDisposed=!1,this.privConversationId="",this.privProperties=new a.PropertyCollection,this.privManager=new n.ConversationManager,e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage])||e.setProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage],n.ConversationConnectionConfig.defaultLanguageCode),this.privLanguage=e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage]),this.privConversationId=r,this.privConfig=e,s.Contracts.throwIfNull(e,"speechConfig"),this.privProperties=e.properties.clone(),this.privIsConnected=!1,this.privParticipants=new n.InternalParticipants,this.privIsReady=!1,this.privTextMessageMaxLength=1e3}get room(){return this.privRoom}get connection(){return this.privConversationRecognizer}get config(){return this.privConfig}get meetingId(){return this.privRoom?this.privRoom.roomId:this.privConversationId}get properties(){return this.privProperties}get speechRecognitionLanguage(){return this.privLanguage}get isMutedByHost(){return!this.privParticipants.me?.isHost&&this.privParticipants.me?.isMuted}get isConnected(){return this.privIsConnected&&this.privIsReady}get participants(){return this.toParticipants(!0)}get me(){return this.toParticipant(this.privParticipants.me)}get host(){return this.toParticipant(this.privParticipants.host)}get transcriberRecognizer(){return this.privTranscriberRecognizer}get meetingInfo(){let e=this.meetingId,r=this.participants.map(e=>({id:e.id,preferredLanguage:e.preferredLanguage,voice:e.voice})),i={};for(let e of n.ConversationConnectionConfig.transcriptionEventKeys){let r=this.properties.getProperty(e,"");""!==r&&(i[e]=r)}return{id:e,participants:r,meetingProperties:i}}get canSend(){return this.privIsConnected&&!this.privParticipants.me?.isMuted}get canSendAsHost(){return this.privIsConnected&&this.privParticipants.me?.isHost}get authorizationToken(){return this.privToken}set authorizationToken(e){s.Contracts.throwIfNullOrWhitespace(e,"authorizationToken"),this.privToken=e}createMeetingAsync(e,r){try{this.privConversationRecognizer&&this.handleError(Error(this.privErrors.permissionDeniedStart),r),this.privManager.createOrJoin(this.privProperties,void 0,i=>{i||this.handleError(Error(this.privErrors.permissionDeniedConnect),r),this.privRoom=i,this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}startMeetingAsync(e,r){try{this.privConversationRecognizer&&this.handleError(Error(this.privErrors.permissionDeniedStart),r),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedConnect),this.privParticipants.meId=this.privRoom.participantId,this.privConversationRecognizer.connected=this.onConnected,this.privConversationRecognizer.disconnected=this.onDisconnected,this.privConversationRecognizer.canceled=this.onCanceled,this.privConversationRecognizer.participantUpdateCommandReceived=this.onParticipantUpdateCommandReceived,this.privConversationRecognizer.lockRoomCommandReceived=this.onLockRoomCommandReceived,this.privConversationRecognizer.muteAllCommandReceived=this.onMuteAllCommandReceived,this.privConversationRecognizer.participantJoinCommandReceived=this.onParticipantJoinCommandReceived,this.privConversationRecognizer.participantLeaveCommandReceived=this.onParticipantLeaveCommandReceived,this.privConversationRecognizer.translationReceived=this.onTranslationReceived,this.privConversationRecognizer.participantsListReceived=this.onParticipantsListReceived,this.privConversationRecognizer.conversationExpiration=this.onConversationExpiration,this.privConversationRecognizer.connect(this.privRoom.token,()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}addParticipantAsync(e,r,i){s.Contracts.throwIfNullOrUndefined(e,"Participant"),(0,o.marshalPromiseToCallbacks)(this.addParticipantImplAsync(e),r,i)}joinMeetingAsync(e,r,i,n,o){try{s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","conversationId")),s.Contracts.throwIfNullOrWhitespace(r,this.privErrors.invalidArgs.replace("{arg}","nickname")),s.Contracts.throwIfNullOrWhitespace(i,this.privErrors.invalidArgs.replace("{arg}","language")),this.privManager.createOrJoin(this.privProperties,e,e=>{s.Contracts.throwIfNullOrUndefined(e,this.privErrors.permissionDeniedConnect),this.privRoom=e,this.privConfig.authorizationToken=e.cognitiveSpeechAuthToken,n&&n(e.cognitiveSpeechAuthToken)},e=>{this.handleError(e,o)})}catch(e){this.handleError(e,o)}}deleteMeetingAsync(e,r){(0,o.marshalPromiseToCallbacks)(this.deleteMeetingImplAsync(),e,r)}async deleteMeetingImplAsync(){s.Contracts.throwIfNullOrUndefined(this.privProperties,this.privErrors.permissionDeniedConnect),s.Contracts.throwIfNullOrWhitespace(this.privRoom.token,this.privErrors.permissionDeniedConnect),await this.privManager.leave(this.privProperties,this.privRoom.token),this.dispose()}endMeetingAsync(e,r){(0,o.marshalPromiseToCallbacks)(this.endMeetingImplAsync(),e,r)}endMeetingImplAsync(){return this.close(!0)}lockMeetingAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","lock")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!0),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}muteAllParticipantsAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privConversationRecognizer,this.privErrors.permissionDeniedSend),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","mute")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!0),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}muteParticipantAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","userId")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.me.isHost||this.me.id===e||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),i);let n=this.privParticipants.getParticipantIndex(e);-1===n&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(e,!0),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}removeParticipantAsync(e,r,i){try{if(s.Contracts.throwIfDisposed(this.privIsDisposed),this.privTranscriberRecognizer&&e.hasOwnProperty("id"))(0,o.marshalPromiseToCallbacks)(this.removeParticipantImplAsync(e),r,i);else{s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","remove")),i);let n="";"string"==typeof e?n=e:e.hasOwnProperty("id")?n=e.id:e.hasOwnProperty("userId")&&(n=e.userId),s.Contracts.throwIfNullOrWhitespace(n,this.privErrors.invalidArgs.replace("{arg}","userId"));let o=this.participants.findIndex(e=>e.id===n);-1===o&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getEjectCommand(n),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}}catch(e){this.handleError(e,i)}}unlockMeetingAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","unlock")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!1),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}unmuteAllParticipantsAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","unmute all")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!1),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}unmuteParticipantAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","userId")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.me.isHost||this.me.id===e||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),i);let n=this.privParticipants.getParticipantIndex(e);-1===n&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(e,!1),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}sendTextMessageAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","message")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),e.length>this.privTextMessageMaxLength&&this.handleError(Error(this.privErrors.invalidArgs.replace("{arg}","message length")),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMessageCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}setTranslatedLanguagesAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfArrayEmptyOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","languages")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getSetTranslateToLanguagesCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}changeNicknameAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","nickname")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getChangeNicknameCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}isDisposed(){return this.privIsDisposed}dispose(){this.isDisposed||(this.privIsDisposed=!0,this.config&&this.config.close(),this.privConfig=void 0,this.privLanguage=void 0,this.privProperties=void 0,this.privRoom=void 0,this.privToken=void 0,this.privManager=void 0,this.privIsConnected=!1,this.privIsReady=!1,this.privParticipants=void 0)}async connectTranscriberRecognizer(e){this.privTranscriberRecognizer&&await this.privTranscriberRecognizer.close(),await e.enforceAudioGating(),this.privTranscriberRecognizer=e,this.privTranscriberRecognizer.meeting=this}getKeepAlive(){return JSON.stringify({id:"0",nickname:this.me?this.me.displayName:"default_nickname",participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.keepAlive})}addParticipantImplAsync(e){if(void 0!==this.privParticipants.addOrUpdateParticipant(e)&&this.privTranscriberRecognizer){let r=this.meetingInfo;return r.participants=[e],this.privTranscriberRecognizer.pushMeetingEvent(r,"join")}}removeParticipantImplAsync(e){this.privParticipants.deleteParticipant(e.id);let r=this.meetingInfo;return r.participants=[e],this.privTranscriberRecognizer.pushMeetingEvent(r,"leave")}async close(e){try{this.privIsConnected=!1,await this.privConversationRecognizer?.close(),this.privConversationRecognizer=void 0,this.privConversationTranslator&&this.privConversationTranslator.dispose()}catch(e){throw e}e&&this.dispose()}handleCallback(e,r){if(e){try{e()}catch(e){r&&r(e)}e=void 0}}handleError(e,r){r&&(e instanceof Error?r(e.name+": "+e.message):r(e))}toParticipants(e){let r=this.privParticipants.participants.map(e=>this.toParticipant(e));return e?r:r.filter(e=>!1===e.isHost)}toParticipant(e){return new a.Participant(e.id,e.avatar,e.displayName,e.isHost,e.isMuted,e.isUsingTts,e.preferredLanguage,e.voice)}getMuteAllCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingd"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setMuteAll,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getMuteCommand(e,r){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(e,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setMute,participantId:e,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:r})}getLockCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setLockState,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getEjectCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),s.Contracts.throwIfNullOrWhitespace(e,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.ejectParticipant,participantId:e,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand})}getSetTranslateToLanguagesCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setTranslateToLanguages,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getChangeNicknameCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),s.Contracts.throwIfNullOrWhitespace(e,"nickname"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.changeNickname,nickname:e,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getMessageCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),s.Contracts.throwIfNullOrWhitespace(e,"message"),JSON.stringify({participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,text:e,type:n.ConversationTranslatorMessageTypes.instantMessage})}}r.MeetingImpl=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/MeetingTranscriber.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.MeetingTranscriber=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Exports.js");r.MeetingTranscriber=class{constructor(e){this.privAudioConfig=e,this.privProperties=new a.PropertyCollection,this.privRecognizer=void 0,this.privDisposedRecognizer=!1}get speechRecognitionLanguage(){return s.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(a.PropertyId.SpeechServiceConnection_RecoLanguage)}get properties(){return this.privProperties}get internalData(){return this.privRecognizer.internalData}get connection(){return a.Connection.fromRecognizer(this.privRecognizer)}get authorizationToken(){return this.properties.getProperty(a.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){s.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(a.PropertyId.SpeechServiceAuthorization_Token,e)}joinMeetingAsync(e,r,i){s.Contracts.throwIfNullOrUndefined(c.MeetingImpl,"Meeting"),this.privRecognizer=new n.TranscriberRecognizer(e.config,this.privAudioConfig),s.Contracts.throwIfNullOrUndefined(this.privRecognizer,"Recognizer"),this.privRecognizer.connectMeetingCallbacks(this),(0,o.marshalPromiseToCallbacks)(e.connectTranscriberRecognizer(this.privRecognizer),r,i)}startTranscribingAsync(e,r){this.privRecognizer.startContinuousRecognitionAsync(e,r)}stopTranscribingAsync(e,r){this.privRecognizer.stopContinuousRecognitionAsync(e,r)}leaveMeetingAsync(e,r){this.privRecognizer.disconnectCallbacks(),(0,o.marshalPromiseToCallbacks)((async()=>{})(),e,r)}close(e,r){s.Contracts.throwIfDisposed(this.privDisposedRecognizer),(0,o.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}async dispose(e){!this.privDisposedRecognizer&&(this.privRecognizer&&(await this.privRecognizer.close(),this.privRecognizer=void 0),e&&(this.privDisposedRecognizer=!0))}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/MeetingTranscriptionCanceledEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.MeetingTranscriptionCanceledEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js");class o extends n.CancellationEventArgsBase{}r.MeetingTranscriptionCanceledEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ParticipantChangedReason.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.ParticipantChangedReason=void 0,(i=r.ParticipantChangedReason||(r.ParticipantChangedReason={}))[i.JoinedConversation=0]="JoinedConversation",i[i.LeftConversation=1]="LeftConversation",i[i.Updated=2]="Updated"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionCanceledEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationRecognitionCanceledEventArgs=void 0,r.TranslationRecognitionCanceledEventArgs=class{constructor(e,r,i,n,o){this.privCancelReason=r,this.privErrorDetails=i,this.privResult=o,this.privSessionId=e,this.privErrorCode=n}get result(){return this.privResult}get sessionId(){return this.privSessionId}get reason(){return this.privCancelReason}get errorCode(){return this.privErrorCode}get errorDetails(){return this.privErrorDetails}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationRecognitionEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionEventArgs{constructor(e,r,i){super(r,i),this.privResult=e}get result(){return this.privResult}}r.TranslationRecognitionEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationRecognitionResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SpeechRecognitionResult{constructor(e,r,i,n,o,s,a,c,d,l,u){super(r,i,n,o,s,a,c,void 0,d,l,u),this.privTranslations=e}static fromSpeechRecognitionResult(e){return new o(void 0,e.resultId,e.reason,e.text,e.duration,e.offset,e.language,e.languageDetectionConfidence,e.errorDetails,e.json,e.properties)}get translations(){return this.privTranslations}}r.TranslationRecognitionResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationRecognizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Connection.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class l extends d.Recognizer{constructor(e,r,i){c.Contracts.throwIfNull(e,"speechConfig"),super(r,e.properties,i||new n.TranslationConnectionFactory,e.tokenCredential),this.privDisposedTranslationRecognizer=!1,void 0!==this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationVoice,void 0)&&c.Contracts.throwIfNullOrWhitespace(this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationVoice),d.PropertyId[d.PropertyId.SpeechServiceConnection_TranslationVoice]),c.Contracts.throwIfNullOrWhitespace(this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages),d.PropertyId[d.PropertyId.SpeechServiceConnection_TranslationToLanguages]),c.Contracts.throwIfNullOrWhitespace(this.properties.getProperty(d.PropertyId.SpeechServiceConnection_RecoLanguage),d.PropertyId[d.PropertyId.SpeechServiceConnection_RecoLanguage])}static FromConfig(e,r,i){return r.properties.mergeTo(e.properties),r.properties.getProperty(d.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,void 0)===n.AutoDetectSourceLanguagesOpenRangeOptionName&&e.properties.setProperty(d.PropertyId.SpeechServiceConnection_RecoLanguage,"en-US"),new l(e,i)}get speechRecognitionLanguage(){return c.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),this.properties.getProperty(d.PropertyId.SpeechServiceConnection_RecoLanguage)}get targetLanguages(){return c.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(",")}get voiceName(){return c.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationVoice,void 0)}get properties(){return this.privProperties}get authorizationToken(){return this.properties.getProperty(d.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){this.properties.setProperty(d.PropertyId.SpeechServiceAuthorization_Token,e)}recognizeOnceAsync(e,r){c.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),(0,s.marshalPromiseToCallbacks)(this.recognizeOnceAsyncImpl(o.RecognitionMode.Interactive),e,r)}startContinuousRecognitionAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(o.RecognitionMode.Conversation),e,r)}stopContinuousRecognitionAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),e,r)}removeTargetLanguage(e){if(c.Contracts.throwIfNullOrUndefined(e,"language to be removed"),void 0!==this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0)){let r=this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(","),i=r.indexOf(e);i>-1&&(r.splice(i,1),this.properties.setProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages,r.join(",")),this.updateLanguages(r))}}addTargetLanguage(e){c.Contracts.throwIfNullOrUndefined(e,"language to be added");let r=[];void 0!==this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0)?(r=this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(",")).includes(e)||(r.push(e),this.properties.setProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages,r.join(","))):(this.properties.setProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages,e),r=[e]),this.updateLanguages(r)}close(e,r){c.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),(0,s.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}onConnection(){}async dispose(e){!this.privDisposedTranslationRecognizer&&(this.privDisposedTranslationRecognizer=!0,e&&(await this.implRecognizerStop(),await super.dispose(e)))}createRecognizerConfig(e){return new n.RecognizerConfig(e,this.privProperties)}createServiceRecognizer(e,r,i,o){return new n.TranslationServiceRecognizer(e,r,i,o,this)}updateLanguages(e){let r=a.Connection.fromRecognizer(this);r&&(r.setMessageProperty("speech.context","translationcontext",{to:e}),r.sendMessageAsync("event",JSON.stringify({id:"translation",name:"updateLanguage",to:e})))}}r.TranslationRecognizer=l},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationSynthesisEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationSynthesisEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r){super(r),this.privResult=e}get result(){return this.privResult}}r.TranslationSynthesisEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationSynthesisResult.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationSynthesisResult=void 0,r.TranslationSynthesisResult=class{constructor(e,r){this.privReason=e,this.privAudio=r}get audio(){return this.privAudio}get reason(){return this.privReason}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Translations.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Translations=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");r.Translations=class{constructor(){this.privMap=new n.PropertyCollection}get languages(){return this.privMap.keys}get(e,r){return this.privMap.getProperty(e,r)}set(e,r){this.privMap.setProperty(e,r)}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TurnStatusReceivedEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TurnStatusReceivedEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/TurnStatusPayload.js");r.TurnStatusReceivedEventArgs=class{constructor(e){this.privTurnStatus=n.TurnStatusResponsePayload.fromJSON(e)}get interactionId(){return this.privTurnStatus.interactionId}get conversationId(){return this.privTurnStatus.conversationId}get statusCode(){return this.privTurnStatus.statusCode}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/VoiceInfo.js":function(e,r){var i,n,o,s;Object.defineProperty(r,"__esModule",{value:!0}),r.VoiceInfo=r.SynthesisVoiceType=r.SynthesisVoiceGender=void 0,(o=i=r.SynthesisVoiceGender||(r.SynthesisVoiceGender={}))[o.Unknown=0]="Unknown",o[o.Female=1]="Female",o[o.Male=2]="Male",o[o.Neutral=3]="Neutral",(s=n=r.SynthesisVoiceType||(r.SynthesisVoiceType={}))[s.Unknown=0]="Unknown",s[s.OnlineNeural=1]="OnlineNeural",s[s.OnlineStandard=2]="OnlineStandard",s[s.OfflineNeural=3]="OfflineNeural",s[s.OfflineStandard=4]="OfflineStandard",s[s.OnlineNeuralHD=5]="OnlineNeuralHD";let a={[i[i.Neutral]]:i.Neutral,[i[i.Male]]:i.Male,[i[i.Female]]:i.Female},c={Neural:n.OnlineNeural,NeuralHD:n.OnlineNeuralHD};r.VoiceInfo=class{constructor(e){if(this.privStyleList=[],e){if(this.privName=e.Name,this.privLocale=e.Locale,this.privShortName=e.ShortName,this.privLocaleName=e.LocaleName,this.privDisplayName=e.DisplayName,this.privLocalName=e.LocalName,this.privVoiceType=c[e.VoiceType]||n.Unknown,this.privGender=a[e.Gender]||i.Unknown,e.StyleList&&Array.isArray(e.StyleList))for(let r of e.StyleList)this.privStyleList.push(r);this.privSampleRateHertz=e.SampleRateHertz,this.privStatus=e.Status,e.ExtendedPropertyMap&&(this.privExtendedPropertyMap=e.ExtendedPropertyMap),this.privWordsPerMinute=e.WordsPerMinute,Array.isArray(e.SecondaryLocaleList)&&(this.privSecondaryLocaleList=[...e.SecondaryLocaleList]),Array.isArray(e.RolePlayList)&&(this.privRolePlayList=[...e.RolePlayList]),e.VoiceTag&&(this.privVoiceTag=e.VoiceTag)}}get name(){return this.privName}get locale(){return this.privLocale}get shortName(){return this.privShortName}get displayName(){return this.privDisplayName}get localName(){return this.privLocalName}get localeName(){return this.privLocaleName}get gender(){return this.privGender}get voiceType(){return this.privVoiceType}get styleList(){return this.privStyleList}get sampleRateHertz(){return this.privSampleRateHertz}get status(){return this.privStatus}get extendedPropertyMap(){return this.privExtendedPropertyMap}get wordsPerMinute(){return this.privWordsPerMinute}get secondaryLocaleList(){return this.privSecondaryLocaleList}get rolePlayList(){return this.privRolePlayList}get voiceTag(){return this.privVoiceTag}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/index.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return d.default}});var n=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v1.js")),o=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v3.js")),s=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v4.js")),a=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v5.js")),c=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/nil.js")),d=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/version.js")),l=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/validate.js")),u=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/stringify.js")),p=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/parse.js"));function h(e){return e&&e.__esModule?e:{default:e}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/md5.js":function(e,r){function i(e){return(e+64>>>9<<4)+14+1}function n(e,r){let i=(65535&e)+(65535&r);return(e>>16)+(r>>16)+(i>>16)<<16|65535&i}function o(e,r,i,o,s,a){var c;return n((c=n(n(r,e),n(o,a)))<<s|c>>>32-s,i)}function s(e,r,i,n,s,a,c){return o(r&i|~r&n,e,r,s,a,c)}function a(e,r,i,n,s,a,c){return o(r&n|i&~n,e,r,s,a,c)}function c(e,r,i,n,s,a,c){return o(r^i^n,e,r,s,a,c)}function d(e,r,i,n,s,a,c){return o(i^(r|~n),e,r,s,a,c)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){if("string"==typeof e){let r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(let i=0;i<r.length;++i)e[i]=r.charCodeAt(i)}return function(e){let r=[],i=32*e.length,n="0123456789abcdef";for(let o=0;o<i;o+=8){let i=e[o>>5]>>>o%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);r.push(s)}return r}(function(e,r){e[r>>5]|=128<<r%32,e[i(r)-1]=r;let o=0x67452301,l=-0x10325477,u=-0x67452302,p=0x10325476;for(let r=0;r<e.length;r+=16){let i=o,h=l,f=u,m=p;o=s(o,l,u,p,e[r],7,-0x28955b88),p=s(p,o,l,u,e[r+1],12,-0x173848aa),u=s(u,p,o,l,e[r+2],17,0x242070db),l=s(l,u,p,o,e[r+3],22,-0x3e423112),o=s(o,l,u,p,e[r+4],7,-0xa83f051),p=s(p,o,l,u,e[r+5],12,0x4787c62a),u=s(u,p,o,l,e[r+6],17,-0x57cfb9ed),l=s(l,u,p,o,e[r+7],22,-0x2b96aff),o=s(o,l,u,p,e[r+8],7,0x698098d8),p=s(p,o,l,u,e[r+9],12,-0x74bb0851),u=s(u,p,o,l,e[r+10],17,-42063),l=s(l,u,p,o,e[r+11],22,-0x76a32842),o=s(o,l,u,p,e[r+12],7,0x6b901122),p=s(p,o,l,u,e[r+13],12,-0x2678e6d),u=s(u,p,o,l,e[r+14],17,-0x5986bc72),l=s(l,u,p,o,e[r+15],22,0x49b40821),o=a(o,l,u,p,e[r+1],5,-0x9e1da9e),p=a(p,o,l,u,e[r+6],9,-0x3fbf4cc0),u=a(u,p,o,l,e[r+11],14,0x265e5a51),l=a(l,u,p,o,e[r],20,-0x16493856),o=a(o,l,u,p,e[r+5],5,-0x29d0efa3),p=a(p,o,l,u,e[r+10],9,0x2441453),u=a(u,p,o,l,e[r+15],14,-0x275e197f),l=a(l,u,p,o,e[r+4],20,-0x182c0438),o=a(o,l,u,p,e[r+9],5,0x21e1cde6),p=a(p,o,l,u,e[r+14],9,-0x3cc8f82a),u=a(u,p,o,l,e[r+3],14,-0xb2af279),l=a(l,u,p,o,e[r+8],20,0x455a14ed),o=a(o,l,u,p,e[r+13],5,-0x561c16fb),p=a(p,o,l,u,e[r+2],9,-0x3105c08),u=a(u,p,o,l,e[r+7],14,0x676f02d9),l=a(l,u,p,o,e[r+12],20,-0x72d5b376),o=c(o,l,u,p,e[r+5],4,-378558),p=c(p,o,l,u,e[r+8],11,-0x788e097f),u=c(u,p,o,l,e[r+11],16,0x6d9d6122),l=c(l,u,p,o,e[r+14],23,-0x21ac7f4),o=c(o,l,u,p,e[r+1],4,-0x5b4115bc),p=c(p,o,l,u,e[r+4],11,0x4bdecfa9),u=c(u,p,o,l,e[r+7],16,-0x944b4a0),l=c(l,u,p,o,e[r+10],23,-0x41404390),o=c(o,l,u,p,e[r+13],4,0x289b7ec6),p=c(p,o,l,u,e[r],11,-0x155ed806),u=c(u,p,o,l,e[r+3],16,-0x2b10cf7b),l=c(l,u,p,o,e[r+6],23,0x4881d05),o=c(o,l,u,p,e[r+9],4,-0x262b2fc7),p=c(p,o,l,u,e[r+12],11,-0x1924661b),u=c(u,p,o,l,e[r+15],16,0x1fa27cf8),l=c(l,u,p,o,e[r+2],23,-0x3b53a99b),o=d(o,l,u,p,e[r],6,-0xbd6ddbc),p=d(p,o,l,u,e[r+7],10,0x432aff97),u=d(u,p,o,l,e[r+14],15,-0x546bdc59),l=d(l,u,p,o,e[r+5],21,-0x36c5fc7),o=d(o,l,u,p,e[r+12],6,0x655b59c3),p=d(p,o,l,u,e[r+3],10,-0x70f3336e),u=d(u,p,o,l,e[r+10],15,-1051523),l=d(l,u,p,o,e[r+1],21,-0x7a7ba22f),o=d(o,l,u,p,e[r+8],6,0x6fa87e4f),p=d(p,o,l,u,e[r+15],10,-0x1d31920),u=d(u,p,o,l,e[r+6],15,-0x5cfebcec),l=d(l,u,p,o,e[r+13],21,0x4e0811a1),o=d(o,l,u,p,e[r+4],6,-0x8ac817e),p=d(p,o,l,u,e[r+11],10,-0x42c50dcb),u=d(u,p,o,l,e[r+2],15,0x2ad7d2bb),l=d(l,u,p,o,e[r+9],21,-0x14792c6f),o=n(o,i),l=n(l,h),u=n(u,f),p=n(p,m)}return[o,l,u,p]}(function(e){if(0===e.length)return[];let r=8*e.length,n=new Uint32Array(i(r));for(let i=0;i<r;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/native.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/nil.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default="00000000-0000-0000-0000-000000000000"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/parse.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/validate.js"))&&n.__esModule?n:{default:n};r.default=function(e){let r;if(!(0,o.default)(e))throw TypeError("Invalid UUID");let i=new Uint8Array(16);return i[0]=(r=parseInt(e.slice(0,8),16))>>>24,i[1]=r>>>16&255,i[2]=r>>>8&255,i[3]=255&r,i[4]=(r=parseInt(e.slice(9,13),16))>>>8,i[5]=255&r,i[6]=(r=parseInt(e.slice(14,18),16))>>>8,i[7]=255&r,i[8]=(r=parseInt(e.slice(19,23),16))>>>8,i[9]=255&r,i[10]=(r=parseInt(e.slice(24,36),16))/0x10000000000&255,i[11]=r/0x100000000&255,i[12]=r>>>24&255,i[13]=r>>>16&255,i[14]=r>>>8&255,i[15]=255&r,i}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/regex.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/rng.js":function(e,r){let i;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(n)};let n=new Uint8Array(16)},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/sha1.js":function(e,r){function i(e,r){return e<<r|e>>>32-r}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){let r=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],n=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0];if("string"==typeof e){let r=unescape(encodeURIComponent(e));e=[];for(let i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let o=Math.ceil((e.length/4+2)/16),s=Array(o);for(let r=0;r<o;++r){let i=new Uint32Array(16);for(let n=0;n<16;++n)i[n]=e[64*r+4*n]<<24|e[64*r+4*n+1]<<16|e[64*r+4*n+2]<<8|e[64*r+4*n+3];s[r]=i}s[o-1][14]=(e.length-1)*8/0x100000000,s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(e.length-1)*8|0;for(let e=0;e<o;++e){let o=new Uint32Array(80);for(let r=0;r<16;++r)o[r]=s[e][r];for(let e=16;e<80;++e)o[e]=i(o[e-3]^o[e-8]^o[e-14]^o[e-16],1);let a=n[0],c=n[1],d=n[2],l=n[3],u=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),s=i(a,5)+function(e,r,i,n){switch(e){case 0:return r&i^~r&n;case 1:case 3:return r^i^n;case 2:return r&i^r&n^i&n}}(n,c,d,l)+u+r[n]+o[e]>>>0;u=l,l=d,d=i(c,30)>>>0,c=a,a=s}n[0]=n[0]+a>>>0,n[1]=n[1]+c>>>0,n[2]=n[2]+d>>>0,n[3]=n[3]+l>>>0,n[4]=n[4]+u>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/stringify.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.unsafeStringify=a;var n,o=(n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/validate.js"))&&n.__esModule?n:{default:n};let s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function a(e,r=0){return s[e[r+0]]+s[e[r+1]]+s[e[r+2]]+s[e[r+3]]+"-"+s[e[r+4]]+s[e[r+5]]+"-"+s[e[r+6]]+s[e[r+7]]+"-"+s[e[r+8]]+s[e[r+9]]+"-"+s[e[r+10]]+s[e[r+11]]+s[e[r+12]]+s[e[r+13]]+s[e[r+14]]+s[e[r+15]]}r.default=function(e,r=0){let i=a(e,r);if(!(0,o.default)(i))throw TypeError("Stringified UUID is invalid");return i}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v1.js":function(e,r,i){let n,o;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var s,a=(s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/rng.js"))&&s.__esModule?s:{default:s},c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/stringify.js");let d=0,l=0;r.default=function(e,r,i){let s=r&&i||0,u=r||Array(16),p=(e=e||{}).node||n,h=void 0!==e.clockseq?e.clockseq:o;if(null==p||null==h){let r=e.random||(e.rng||a.default)();null==p&&(p=n=[1|r[0],r[1],r[2],r[3],r[4],r[5]]),null==h&&(h=o=(r[6]<<8|r[7])&16383)}let f=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:l+1,g=f-d+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(h=h+1&16383),(g<0||f>d)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");d=f,l=m,o=h;let y=((0xfffffff&(f+=122192928e5))*1e4+m)%0x100000000;u[s++]=y>>>24&255,u[s++]=y>>>16&255,u[s++]=y>>>8&255,u[s++]=255&y;let b=f/0x100000000*1e4&0xfffffff;u[s++]=b>>>8&255,u[s++]=255&b,u[s++]=b>>>24&15|16,u[s++]=b>>>16&255,u[s++]=h>>>8|128,u[s++]=255&h;for(let e=0;e<6;++e)u[s+e]=p[e];return r||(0,c.unsafeStringify)(u)}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v3.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=s(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v35.js")),o=s(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/md5.js"));function s(e){return e&&e.__esModule?e:{default:e}}r.default=(0,n.default)("v3",48,o.default)},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v35.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.URL=r.DNS=void 0,r.default=function(e,r,i){function n(e,n,a,c){var d;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let r=[];for(let i=0;i<e.length;++i)r.push(e.charCodeAt(i));return r}(e)),"string"==typeof n&&(n=(0,s.default)(n)),(null==(d=n)?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+e.length);if(l.set(n),l.set(e,n.length),(l=i(l))[6]=15&l[6]|r,l[8]=63&l[8]|128,a){c=c||0;for(let e=0;e<16;++e)a[c+e]=l[e];return a}return(0,o.unsafeStringify)(l)}try{n.name=e}catch(e){}return n.DNS=a,n.URL=c,n};var n,o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/stringify.js"),s=(n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/parse.js"))&&n.__esModule?n:{default:n};let a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=a;let c="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v4.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=a(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/native.js")),o=a(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/rng.js")),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/stringify.js");function a(e){return e&&e.__esModule?e:{default:e}}r.default=function(e,r,i){if(n.default.randomUUID&&!r&&!e)return n.default.randomUUID();let a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,r){i=i||0;for(let e=0;e<16;++e)r[i+e]=a[e];return r}return(0,s.unsafeStringify)(a)}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v5.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=s(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v35.js")),o=s(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/sha1.js"));function s(e){return e&&e.__esModule?e:{default:e}}r.default=(0,n.default)("v5",80,o.default)},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/validate.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/regex.js"))&&n.__esModule?n:{default:n};r.default=function(e){return"string"==typeof e&&o.default.test(e)}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/version.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/validate.js"))&&n.__esModule?n:{default:n};r.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},"../../node_modules/process/browser.js":function(e){var r,i,n,o=e.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(i){try{return r.call(null,e,0)}catch(i){return r.call(this,e,0)}}}var d=[],l=!1,u=-1;function p(){l&&n&&(l=!1,n.length?d=n.concat(d):u=-1,d.length&&h())}function h(){if(!l){var e=c(p);l=!0;for(var r=d.length;r;){for(n=d,d=[];++u<r;)n&&n[u].run();u=-1,r=d.length}n=null,l=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(r){try{return i.call(null,e)}catch(r){return i.call(this,e)}}}(e)}}function f(e,r){this.fun=e,this.array=r}function m(){}o.nextTick=function(e){var r=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)r[i-1]=arguments[i];d.push(new f(e,r)),1!==d.length||l||c(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},"../../node_modules/sdp/sdp.js":function(e){let r={};r.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},r.localCName=r.generateIdentifier(),r.splitLines=function(e){return e.trim().split("\n").map(e=>e.trim())},r.splitSections=function(e){return e.split("\nm=").map((e,r)=>(r>0?"m="+e:e).trim()+"\r\n")},r.getDescription=function(e){let i=r.splitSections(e);return i&&i[0]},r.getMediaSections=function(e){let i=r.splitSections(e);return i.shift(),i},r.matchPrefix=function(e,i){return r.splitLines(e).filter(e=>0===e.indexOf(i))},r.parseCandidate=function(e){let r,i={foundation:(r=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let e=8;e<r.length;e+=2)switch(r[e]){case"raddr":i.relatedAddress=r[e+1];break;case"rport":i.relatedPort=parseInt(r[e+1],10);break;case"tcptype":i.tcpType=r[e+1];break;case"ufrag":i.ufrag=r[e+1],i.usernameFragment=r[e+1];break;default:void 0===i[r[e]]&&(i[r[e]]=r[e+1])}return i},r.writeCandidate=function(e){let r=[];r.push(e.foundation);let i=e.component;"rtp"===i?r.push(1):"rtcp"===i?r.push(2):r.push(i),r.push(e.protocol.toUpperCase()),r.push(e.priority),r.push(e.address||e.ip),r.push(e.port);let n=e.type;return r.push("typ"),r.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(r.push("raddr"),r.push(e.relatedAddress),r.push("rport"),r.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(r.push("tcptype"),r.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(r.push("ufrag"),r.push(e.usernameFragment||e.ufrag)),"candidate:"+r.join(" ")},r.parseIceOptions=function(e){return e.substring(14).split(" ")},r.parseRtpMap=function(e){let r=e.substring(9).split(" "),i={payloadType:parseInt(r.shift(),10)};return i.name=(r=r[0].split("/"))[0],i.clockRate=parseInt(r[1],10),i.channels=3===r.length?parseInt(r[2],10):1,i.numChannels=i.channels,i},r.writeRtpMap=function(e){let r=e.payloadType;void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType);let i=e.channels||e.numChannels||1;return"a=rtpmap:"+r+" "+e.name+"/"+e.clockRate+(1!==i?"/"+i:"")+"\r\n"},r.parseExtmap=function(e){let r=e.substring(9).split(" ");return{id:parseInt(r[0],10),direction:r[0].indexOf("/")>0?r[0].split("/")[1]:"sendrecv",uri:r[1],attributes:r.slice(2).join(" ")}},r.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},r.parseFmtp=function(e){let r,i={},n=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e<n.length;e++)i[(r=n[e].trim().split("="))[0].trim()]=r[1];return i},r.writeFmtp=function(e){let r="",i=e.payloadType;if(void 0!==e.preferredPayloadType&&(i=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){let n=[];Object.keys(e.parameters).forEach(r=>{void 0!==e.parameters[r]?n.push(r+"="+e.parameters[r]):n.push(r)}),r+="a=fmtp:"+i+" "+n.join(";")+"\r\n"}return r},r.parseRtcpFb=function(e){let r=e.substring(e.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},r.writeRtcpFb=function(e){let r="",i=e.payloadType;return void 0!==e.preferredPayloadType&&(i=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{r+="a=rtcp-fb:"+i+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),r},r.parseSsrcMedia=function(e){let r=e.indexOf(" "),i={ssrc:parseInt(e.substring(7,r),10)},n=e.indexOf(":",r);return n>-1?(i.attribute=e.substring(r+1,n),i.value=e.substring(n+1)):i.attribute=e.substring(r+1),i},r.parseSsrcGroup=function(e){let r=e.substring(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(e=>parseInt(e,10))}},r.getMid=function(e){let i=r.matchPrefix(e,"a=mid:")[0];if(i)return i.substring(6)},r.parseFingerprint=function(e){let r=e.substring(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1].toUpperCase()}},r.getDtlsParameters=function(e,i){return{role:"auto",fingerprints:r.matchPrefix(e+i,"a=fingerprint:").map(r.parseFingerprint)}},r.writeDtlsParameters=function(e,r){let i="a=setup:"+r+"\r\n";return e.fingerprints.forEach(e=>{i+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),i},r.parseCryptoLine=function(e){let r=e.substring(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},r.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?r.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},r.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;let r=e.substring(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},r.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},r.getCryptoParameters=function(e,i){return r.matchPrefix(e+i,"a=crypto:").map(r.parseCryptoLine)},r.getIceParameters=function(e,i){let n=r.matchPrefix(e+i,"a=ice-ufrag:")[0],o=r.matchPrefix(e+i,"a=ice-pwd:")[0];return n&&o?{usernameFragment:n.substring(12),password:o.substring(10)}:null},r.writeIceParameters=function(e){let r="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(r+="a=ice-lite\r\n"),r},r.parseRtpParameters=function(e){let i={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=r.splitLines(e)[0].split(" ");i.profile=n[2];for(let o=3;o<n.length;o++){let s=n[o],a=r.matchPrefix(e,"a=rtpmap:"+s+" ")[0];if(a){let n=r.parseRtpMap(a),o=r.matchPrefix(e,"a=fmtp:"+s+" ");switch(n.parameters=o.length?r.parseFmtp(o[0]):{},n.rtcpFeedback=r.matchPrefix(e,"a=rtcp-fb:"+s+" ").map(r.parseRtcpFb),i.codecs.push(n),n.name.toUpperCase()){case"RED":case"ULPFEC":i.fecMechanisms.push(n.name.toUpperCase())}}}r.matchPrefix(e,"a=extmap:").forEach(e=>{i.headerExtensions.push(r.parseExtmap(e))});let o=r.matchPrefix(e,"a=rtcp-fb:* ").map(r.parseRtcpFb);return i.codecs.forEach(e=>{o.forEach(r=>{e.rtcpFeedback.find(e=>e.type===r.type&&e.parameter===r.parameter)||e.rtcpFeedback.push(r)})}),i},r.writeRtpDescription=function(e,i){let n="";n+="m="+e+" ",n+=i.codecs.length>0?"9":"0",n+=" "+(i.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=i.codecs.map(e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",i.codecs.forEach(e=>{n+=r.writeRtpMap(e),n+=r.writeFmtp(e),n+=r.writeRtcpFb(e)});let o=0;return i.codecs.forEach(e=>{e.maxptime>o&&(o=e.maxptime)}),o>0&&(n+="a=maxptime:"+o+"\r\n"),i.headerExtensions&&i.headerExtensions.forEach(e=>{n+=r.writeExtmap(e)}),n},r.parseRtpEncodingParameters=function(e){let i,n=[],o=r.parseRtpParameters(e),s=-1!==o.fecMechanisms.indexOf("RED"),a=-1!==o.fecMechanisms.indexOf("ULPFEC"),c=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),d=c.length>0&&c[0].ssrc,l=r.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substring(17).split(" ").map(e=>parseInt(e,10)));l.length>0&&l[0].length>1&&l[0][0]===d&&(i=l[0][1]),o.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let r={ssrc:d,codecPayloadType:parseInt(e.parameters.apt,10)};d&&i&&(r.rtx={ssrc:i}),n.push(r),s&&((r=JSON.parse(JSON.stringify(r))).fec={ssrc:d,mechanism:a?"red+ulpfec":"red"},n.push(r))}}),0===n.length&&d&&n.push({ssrc:d});let u=r.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substring(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substring(5),10)*.95-16e3:void 0,n.forEach(e=>{e.maxBitrate=u})),n},r.parseRtcpParameters=function(e){let i={},n=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];n&&(i.cname=n.value,i.ssrc=n.ssrc);let o=r.matchPrefix(e,"a=rtcp-rsize");return i.reducedSize=o.length>0,i.compound=0===o.length,i.mux=r.matchPrefix(e,"a=rtcp-mux").length>0,i},r.writeRtcpParameters=function(e){let r="";return e.reducedSize&&(r+="a=rtcp-rsize\r\n"),e.mux&&(r+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(r+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),r},r.parseMsid=function(e){let i,n=r.matchPrefix(e,"a=msid:");if(1===n.length)return{stream:(i=n[0].substring(7).split(" "))[0],track:i[1]};let o=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);if(o.length>0)return{stream:(i=o[0].value.split(" "))[0],track:i[1]}},r.parseSctpDescription=function(e){let i,n=r.parseMLine(e),o=r.matchPrefix(e,"a=max-message-size:");o.length>0&&(i=parseInt(o[0].substring(19),10)),isNaN(i)&&(i=65536);let s=r.matchPrefix(e,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substring(12),10),protocol:n.fmt,maxMessageSize:i};let a=r.matchPrefix(e,"a=sctpmap:");if(a.length>0){let e=a[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},r.writeSctpDescription=function(e,r){let i=[];return i="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+r.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+r.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+r.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+r.port+" "+r.protocol+" 65535\r\n"],void 0!==r.maxMessageSize&&i.push("a=max-message-size:"+r.maxMessageSize+"\r\n"),i.join("")},r.generateSessionId=function(){return Math.random().toString().substr(2,22)},r.writeSessionBoilerplate=function(e,i,n){return"v=0\r\no="+(n||"thisisadapterortc")+" "+(e||r.generateSessionId())+" "+(void 0!==i?i:2)+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},r.getDirection=function(e,i){let n=r.splitLines(e);for(let e=0;e<n.length;e++)switch(n[e]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[e].substring(2)}return i?r.getDirection(i):"sendrecv"},r.getKind=function(e){return r.splitLines(e)[0].split(" ")[0].substring(2)},r.isRejected=function(e){return"0"===e.split(" ",2)[1]},r.parseMLine=function(e){let i=r.splitLines(e)[0].substring(2).split(" ");return{kind:i[0],port:parseInt(i[1],10),protocol:i[2],fmt:i.slice(3).join(" ")}},r.parseOLine=function(e){let i=r.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:i[0],sessionId:i[1],sessionVersion:parseInt(i[2],10),netType:i[3],addressType:i[4],address:i[5]}},r.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;let i=r.splitLines(e);for(let e=0;e<i.length;e++)if(i[e].length<2||"="!==i[e].charAt(1))return!1;return!0},e.exports=r},"../../node_modules/typewriter-effect/dist/core.js":function(e,r,i){var n=i("../../node_modules/process/browser.js");"undefined"!=typeof self&&self,e.exports=(()=>{var e={3146:(e,r,i)=>{for(var n=i(3491),o="undefined"==typeof window?i.g:window,s=["moz","webkit"],a="AnimationFrame",c=o["request"+a],d=o["cancel"+a]||o["cancelRequest"+a],l=0;!c&&l<s.length;l++)c=o[s[l]+"Request"+a],d=o[s[l]+"Cancel"+a]||o[s[l]+"CancelRequest"+a];if(!c||!d){var u=0,p=0,h=[],f=1e3/60;c=function(e){if(0===h.length){var r=n(),i=Math.max(0,f-(r-u));u=i+r,setTimeout(function(){var e=h.slice(0);h.length=0;for(var r=0;r<e.length;r++)if(!e[r].cancelled)try{e[r].callback(u)}catch(e){setTimeout(function(){throw e},0)}},Math.round(i))}return h.push({handle:++p,callback:e,cancelled:!1}),p},d=function(e){for(var r=0;r<h.length;r++)h[r].handle===e&&(h[r].cancelled=!0)}}e.exports=function(e){return c.call(o,e)},e.exports.cancel=function(){d.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=c,e.cancelAnimationFrame=d}},3491:function(e){(function(){var r,i,o,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=n&&n.hrtime?(e.exports=function(){return(r()-s)/1e6},i=n.hrtime,s=(r=function(){var e;return 1e9*(e=i())[0]+e[1]})()-1e9*n.uptime()):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}},r={};function i(n){var o=r[n];if(void 0!==o)return o.exports;var s=r[n]={exports:{}};return e[n].call(s.exports,s,s.exports,i),s.exports}i.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return i.d(r,{a:r}),r},i.d=(e,r)=>{for(var n in r)i.o(r,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var o={};return(()=>{"use strict";i.d(o,{default:()=>j});var e=i(3146),r=i.n(e);let n=function(e){return new RegExp(/<[a-z][\s\S]*>/i).test(e)},s=function(e,r){return Math.floor(Math.random()*(r-e+1))+e};var a="TYPE_CHARACTER",c="REMOVE_CHARACTER",d="REMOVE_ALL",l="REMOVE_LAST_VISIBLE_NODE",u="PAUSE_FOR",p="CALL_FUNCTION",h="ADD_HTML_TAG_ELEMENT",f="CHANGE_DELETE_SPEED",m="CHANGE_DELAY",g="CHANGE_CURSOR",y="PASTE_STRING",b="HTML_TAG";function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function _(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?C(Object(i),!0).forEach(function(r){T(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):C(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function w(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return R(e,void 0);var i=({}).toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?R(e,void 0):void 0}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,r){(null==r||r>e.length)&&(r=e.length);for(var i=0,n=Array(r);i<r;i++)n[i]=e[i];return n}function T(e,r,i){return(r=E(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function E(e){var r=function(e){if("object"!=S(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!=S(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(r)?r:r+""}let j=function(){var i;function o(i,S){var C=this;if(function(e,r){if(!(e instanceof r))throw TypeError("Cannot call a class as a function")}(this,o),T(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),T(this,"options",{strings:null,cursor:"|",delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null,onCreateTextNode:null,onRemoveNode:null}),T(this,"setupWrapperElement",function(){C.state.elements.container&&(C.state.elements.wrapper.className=C.options.wrapperClassName,C.state.elements.cursor.className=C.options.cursorClassName,C.state.elements.cursor.innerHTML=C.options.cursor,C.state.elements.container.innerHTML="",C.state.elements.container.appendChild(C.state.elements.wrapper),C.state.elements.container.appendChild(C.state.elements.cursor))}),T(this,"start",function(){return C.state.eventLoopPaused=!1,C.runEventLoop(),C}),T(this,"pause",function(){return C.state.eventLoopPaused=!0,C}),T(this,"stop",function(){return C.state.eventLoop&&((0,e.cancel)(C.state.eventLoop),C.state.eventLoop=null),C}),T(this,"pauseFor",function(e){return C.addEventToQueue(u,{ms:e}),C}),T(this,"typeOutAllStrings",function(){return"string"==typeof C.options.strings?C.typeString(C.options.strings).pauseFor(C.options.pauseFor):C.options.strings.forEach(function(e){C.typeString(e).pauseFor(C.options.pauseFor).deleteAll(C.options.deleteSpeed)}),C}),T(this,"typeString",function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(n(e))return C.typeOutHTMLString(e,r);if(e){var i=(C.options||{}).stringSplitter,o="function"==typeof i?i(e):e.split("");C.typeCharacters(o,r)}return C}),T(this,"pasteString",function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n(e)?C.typeOutHTMLString(e,r,!0):(e&&C.addEventToQueue(y,{character:e,node:r}),C)}),T(this,"typeOutHTMLString",function(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,o=((r=document.createElement("div")).innerHTML=e,r.childNodes);if(o.length>0)for(var s=0;s<o.length;s++){var a=o[s],c=a.innerHTML;a&&3!==a.nodeType?(a.innerHTML="",C.addEventToQueue(h,{node:a,parentNode:i}),n?C.pasteString(c,a):C.typeString(c,a)):a.textContent&&(n?C.pasteString(a.textContent,i):C.typeString(a.textContent,i))}return C}),T(this,"deleteAll",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"natural";return C.addEventToQueue(d,{speed:e}),C}),T(this,"changeDeleteSpeed",function(e){if(!e)throw Error("Must provide new delete speed");return C.addEventToQueue(f,{speed:e}),C}),T(this,"changeDelay",function(e){if(!e)throw Error("Must provide new delay");return C.addEventToQueue(m,{delay:e}),C}),T(this,"changeCursor",function(e){if(!e)throw Error("Must provide new cursor");return C.addEventToQueue(g,{cursor:e}),C}),T(this,"deleteChars",function(e){if(!e)throw Error("Must provide amount of characters to delete");for(var r=0;r<e;r++)C.addEventToQueue(c);return C}),T(this,"callFunction",function(e,r){if(!e||"function"!=typeof e)throw Error("Callback must be a function");return C.addEventToQueue(p,{cb:e,thisArg:r}),C}),T(this,"typeCharacters",function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||!Array.isArray(e))throw Error("Characters must be an array");return e.forEach(function(e){C.addEventToQueue(a,{character:e,node:r})}),C}),T(this,"removeCharacters",function(e){if(!e||!Array.isArray(e))throw Error("Characters must be an array");return e.forEach(function(){C.addEventToQueue(c)}),C}),T(this,"addEventToQueue",function(e,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return C.addEventToStateProperty(e,r,i,"eventQueue")}),T(this,"addReverseCalledEvent",function(e,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return C.options.loop?C.addEventToStateProperty(e,r,i,"reverseCalledEvents"):C}),T(this,"addEventToStateProperty",function(e,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,o={eventName:e,eventArgs:r||{}};return C.state[n]=i?[o].concat(w(C.state[n])):[].concat(w(C.state[n]),[o]),C}),T(this,"runEventLoop",function(){C.state.lastFrameTime||(C.state.lastFrameTime=Date.now());var e=Date.now(),i=e-C.state.lastFrameTime;if(!C.state.eventQueue.length){if(!C.options.loop)return;C.state.eventQueue=w(C.state.calledEvents),C.state.calledEvents=[],C.options=_({},C.state.initialOptions)}if(C.state.eventLoop=r()(C.runEventLoop),!C.state.eventLoopPaused){if(C.state.pauseUntil){if(e<C.state.pauseUntil)return;C.state.pauseUntil=null}var n,o=w(C.state.eventQueue),S=o.shift();if(!(i<=(n=S.eventName===l||S.eventName===c?"natural"===C.options.deleteSpeed?s(40,80):C.options.deleteSpeed:"natural"===C.options.delay?s(120,160):C.options.delay))){var R=S.eventName,T=S.eventArgs;switch(C.logInDevMode({currentEvent:S,state:C.state,delay:n}),R){case y:case a:var E=T.character,j=T.node,P=document.createTextNode(E),k=P;C.options.onCreateTextNode&&"function"==typeof C.options.onCreateTextNode&&(k=C.options.onCreateTextNode(E,P)),k&&(j?j.appendChild(k):C.state.elements.wrapper.appendChild(k)),C.state.visibleNodes=[].concat(w(C.state.visibleNodes),[{type:"TEXT_NODE",character:E,node:k}]);break;case c:o.unshift({eventName:l,eventArgs:{removingCharacterNode:!0}});break;case u:var O=S.eventArgs.ms;C.state.pauseUntil=Date.now()+parseInt(O);break;case p:var I=S.eventArgs,x=I.cb,A=I.thisArg;x.call(A,{elements:C.state.elements});break;case h:var M=S.eventArgs,D=M.node,N=M.parentNode;N?N.appendChild(D):C.state.elements.wrapper.appendChild(D),C.state.visibleNodes=[].concat(w(C.state.visibleNodes),[{type:b,node:D,parentNode:N||C.state.elements.wrapper}]);break;case d:var B=C.state.visibleNodes,L=T.speed,F=[];L&&F.push({eventName:f,eventArgs:{speed:L,temp:!0}});for(var z=0,U=B.length;z<U;z++)F.push({eventName:l,eventArgs:{removingCharacterNode:!1}});L&&F.push({eventName:f,eventArgs:{speed:C.options.deleteSpeed,temp:!0}}),o.unshift.apply(o,F);break;case l:var H=S.eventArgs.removingCharacterNode;if(C.state.visibleNodes.length){var q=C.state.visibleNodes.pop(),W=q.type,V=q.node,G=q.character;C.options.onRemoveNode&&"function"==typeof C.options.onRemoveNode&&C.options.onRemoveNode({node:V,character:G}),V&&V.parentNode.removeChild(V),W===b&&H&&o.unshift({eventName:l,eventArgs:{}})}break;case f:C.options.deleteSpeed=S.eventArgs.speed;break;case m:C.options.delay=S.eventArgs.delay;break;case g:C.options.cursor=S.eventArgs.cursor,C.state.elements.cursor.innerHTML=S.eventArgs.cursor}C.options.loop&&(S.eventName===l||S.eventArgs&&S.eventArgs.temp||(C.state.calledEvents=[].concat(w(C.state.calledEvents),[S]))),C.state.eventQueue=o,C.state.lastFrameTime=e}}}),i)if("string"==typeof i){var R=document.querySelector(i);if(!R)throw Error("Could not find container element");this.state.elements.container=R}else this.state.elements.container=i;S&&(this.options=_(_({},this.options),S)),this.state.initialOptions=_({},this.options),this.init()}return i=[{key:"init",value:function(){var e;this.setupWrapperElement(),this.addEventToQueue(g,{cursor:this.options.cursor},!0),this.addEventToQueue(d,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||((e=document.createElement("style")).appendChild(document.createTextNode(".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}")),document.head.appendChild(e),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(e){this.options.devMode&&console.log(e)}}],function(e,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o}()})(),o.default})()},"../../node_modules/ua-parser-js/src/ua-parser.js":function(e,r,i){e=i.nmd(e),function(i,n){"use strict";var o="function",s="undefined",a="object",c="string",d="major",l="model",u="name",p="type",h="vendor",f="version",m="architecture",g="console",y="mobile",b="tablet",S="smarttv",C="wearable",_="embedded",w="Amazon",R="Apple",T="ASUS",E="BlackBerry",j="Browser",P="Chrome",k="Firefox",O="Google",I="Huawei",x="Microsoft",A="Motorola",M="Opera",D="Samsung",N="Sharp",B="Sony",L="Xiaomi",F="Zebra",z="Facebook",U="Chromium OS",H="Mac OS",q=" Browser",W=function(e,r){var i={};for(var n in e)r[n]&&r[n].length%2==0?i[n]=r[n].concat(e[n]):i[n]=e[n];return i},V=function(e){for(var r={},i=0;i<e.length;i++)r[e[i].toUpperCase()]=e[i];return r},G=function(e,r){return typeof e===c&&-1!==K(r).indexOf(K(e))},K=function(e){return e.toLowerCase()},J=function(e,r){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof r===s?e:e.substring(0,500)},X=function(e,r){for(var i,n,s,c,d,l,u=0;u<r.length&&!d;){var p=r[u],h=r[u+1];for(i=n=0;i<p.length&&!d&&p[i];)if(d=p[i++].exec(e))for(s=0;s<h.length;s++)l=d[++n],typeof(c=h[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):void 0:this[c[0]]=l?c[1].call(this,l,c[2]):void 0:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):void 0):this[c]=l||void 0;u+=2}},$=function(e,r){for(var i in r)if(typeof r[i]===a&&r[i].length>0){for(var n=0;n<r[i].length;n++)if(G(r[i][n],e))return"?"===i?void 0:i}else if(G(r[i],e))return"?"===i?void 0:i;return r.hasOwnProperty("*")?r["*"]:e},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,f],[/opios[\/ ]+([\w\.]+)/i],[f,[u,M+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[f,[u,M+" GX"]],[/\bopr\/([\w\.]+)/i],[f,[u,M]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[f,[u,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[f,[u,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,f],[/quark(?:pc)?\/([-\w\.]+)/i],[f,[u,"Quark"]],[/\bddg\/([\w\.]+)/i],[f,[u,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[u,"UC"+j]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[f,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[f,[u,"Smart Lenovo "+j]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+j],f],[/\bfocus\/([\w\.]+)/i],[f,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[u,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[u,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[f,[u,k]],[/\bqihoobrowser\/?([\w\.]*)/i],[f,[u,"360"]],[/\b(qq)\/([\w\.]+)/i],[[u,/(.+)/,"$1Browser"],f],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1"+q],f],[/samsungbrowser\/([\w\.]+)/i],[f,[u,D+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[f,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[u,f],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[u],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[f,u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,z],f],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[u,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,P+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[u,"Android "+j]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[f,$,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],f],[/(wolvic|librewolf)\/([\w\.]+)/i],[u,f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[u,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,[f,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[u,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,K]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[h,D],[p,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[h,D],[p,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[h,R],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[h,R],[p,b]],[/(macintosh);/i],[l,[h,R]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[h,N],[p,y]],[/(?:honor)([-\w ]+)[;\)]/i],[l,[h,"Honor"],[p,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[h,I],[p,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[h,I],[p,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[l,/_/g," "],[h,L],[p,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[h,L],[p,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[h,"OPPO"],[p,y]],[/\b(opd2\d{3}a?) bui/i],[l,[h,"OPPO"],[p,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[h,"Vivo"],[p,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[h,"Realme"],[p,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[h,A],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[h,A],[p,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[h,"LG"],[p,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[h,"LG"],[p,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[h,"Lenovo"],[p,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[h,"Nokia"],[p,y]],[/(pixel c)\b/i],[l,[h,O],[p,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[h,O],[p,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[h,B],[p,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[h,B],[p,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[h,"OnePlus"],[p,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[h,w],[p,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[h,w],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[l,h,[p,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[h,E],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[h,T],[p,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[h,T],[p,y]],[/(nexus 9)/i],[l,[h,"HTC"],[p,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[l,/_/g," "],[p,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[h,"TCL"],[p,b]],[/(itel) ((\w+))/i],[[h,K],l,[p,$,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[h,"Acer"],[p,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[h,"Meizu"],[p,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[h,"Ulefone"],[p,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[h,"Energizer"],[p,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[h,"Cat"],[p,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[h,"Smartfren"],[p,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[h,"Nothing"],[p,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,l,[p,y]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,l,[p,b]],[/(surface duo)/i],[l,[h,x],[p,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[h,"Fairphone"],[p,y]],[/(u304aa)/i],[l,[h,"AT&T"],[p,y]],[/\bsie-(\w*)/i],[l,[h,"Siemens"],[p,y]],[/\b(rct\w+) b/i],[l,[h,"RCA"],[p,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[h,"Dell"],[p,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[h,"Verizon"],[p,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[h,"Barnes & Noble"],[p,b]],[/\b(tm\d{3}\w+) b/i],[l,[h,"NuVision"],[p,b]],[/\b(k88) b/i],[l,[h,"ZTE"],[p,b]],[/\b(nx\d{3}j) b/i],[l,[h,"ZTE"],[p,y]],[/\b(gen\d{3}) b.+49h/i],[l,[h,"Swiss"],[p,y]],[/\b(zur\d{3}) b/i],[l,[h,"Swiss"],[p,b]],[/\b((zeki)?tb.*\b) b/i],[l,[h,"Zeki"],[p,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],l,[p,b]],[/\b(ns-?\w{0,9}) b/i],[l,[h,"Insignia"],[p,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[h,"NextBook"],[p,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],l,[p,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],l,[p,y]],[/\b(ph-1) /i],[l,[h,"Essential"],[p,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[h,"Envizen"],[p,b]],[/\b(trio[-\w\. ]+) b/i],[l,[h,"MachSpeed"],[p,b]],[/\btu_(1491) b/i],[l,[h,"Rotor"],[p,b]],[/(shield[\w ]+) b/i],[l,[h,"Nvidia"],[p,b]],[/(sprint) (\w+)/i],[h,l,[p,y]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[h,x],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[h,F],[p,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[h,F],[p,y]],[/smart-tv.+(samsung)/i],[h,[p,S]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[h,D],[p,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[p,S]],[/(apple) ?tv/i],[h,[l,R+" TV"],[p,S]],[/crkey/i],[[l,P+"cast"],[h,O],[p,S]],[/droid.+aft(\w+)( bui|\))/i],[l,[h,w],[p,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[h,N],[p,S]],[/(bravia[\w ]+)( bui|\))/i],[l,[h,B],[p,S]],[/(mitv-\w{5}) bui/i],[l,[h,L],[p,S]],[/Hbbtv.*(technisat) (.*);/i],[h,l,[p,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,J],[l,J],[p,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,l,[p,g]],[/droid.+; (shield) bui/i],[l,[h,"Nvidia"],[p,g]],[/(playstation [345portablevi]+)/i],[l,[h,B],[p,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[h,x],[p,g]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[l,[h,D],[p,C]],[/((pebble))app/i],[h,l,[p,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[h,R],[p,C]],[/droid.+; (glass) \d/i],[l,[h,O],[p,C]],[/droid.+; (wt63?0{2,3})\)/i],[l,[h,F],[p,C]],[/droid.+; (glass) \d/i],[l,[h,O],[p,C]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,l,[p,C]],[/; (quest( \d| pro)?)/i],[l,[h,z],[p,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,_]],[/(aeobc)\b/i],[l,[h,w],[p,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[p,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,y]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[u,f],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,f],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[f,$,Q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,$,Q],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,H],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,f],[/\(bb(10);/i],[f,[u,E]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[u,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,U],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,f],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,f]]},Z=function(e,r){if(typeof e===a&&(r=e,e=void 0),!(this instanceof Z))return new Z(e,r).getResult();var n=typeof i!==s&&i.navigator?i.navigator:void 0,g=e||(n&&n.userAgent?n.userAgent:""),S=n&&n.userAgentData?n.userAgentData:void 0,C=r?W(Y,r):Y,_=n&&n.userAgent==g;return this.getBrowser=function(){var e,r={};return r[u]=void 0,r[f]=void 0,X.call(r,g,C.browser),r[d]=typeof(e=r[f])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,_&&n&&n.brave&&typeof n.brave.isBrave==o&&(r[u]="Brave"),r},this.getCPU=function(){var e={};return e[m]=void 0,X.call(e,g,C.cpu),e},this.getDevice=function(){var e={};return e[h]=void 0,e[l]=void 0,e[p]=void 0,X.call(e,g,C.device),_&&!e[p]&&S&&S.mobile&&(e[p]=y),_&&"Macintosh"==e[l]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[l]="iPad",e[p]=b),e},this.getEngine=function(){var e={};return e[u]=void 0,e[f]=void 0,X.call(e,g,C.engine),e},this.getOS=function(){var e={};return e[u]=void 0,e[f]=void 0,X.call(e,g,C.os),_&&!e[u]&&S&&S.platform&&"Unknown"!=S.platform&&(e[u]=S.platform.replace(/chrome os/i,U).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===c&&e.length>500?J(e,500):e,this},this.setUA(g),this};Z.VERSION="1.0.40",Z.BROWSER=V([u,f,d]),Z.CPU=V([m]),Z.DEVICE=V([l,h,p,g,y,S,b,C,_]),Z.ENGINE=Z.OS=V([u,f]),typeof r!==s?(typeof e!==s&&e.exports&&(r=e.exports=Z),r.UAParser=Z):typeof define===o&&define.amd?define(function(){return Z}):typeof i!==s&&(i.UAParser=Z);var ee=typeof i!==s&&(i.jQuery||i.Zepto);if(ee&&!ee.ua){var et=new Z;ee.ua=et.getResult(),ee.ua.get=function(){return et.getUA()},ee.ua.set=function(e){et.setUA(e);var r=et.getResult();for(var i in r)ee.ua[i]=r[i]}}}("object"==typeof window?window:this)},"?9f47":function(){},"?bfaf":function(){},"?6a81":function(){},"?7dff":function(){},"?8dcf":function(){},"?de9d":function(){},"?5898":function(){},"../../node_modules/core-js/internals/a-callable.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js"),o=i("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(o(e)+" is not a function")}},"../../node_modules/core-js/internals/a-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-constructor.js"),o=i("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(o(e)+" is not a constructor")}},"../../node_modules/core-js/internals/a-possible-prototype.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-possible-prototype.js"),o=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s("Can't set "+o(e)+" as a prototype")}},"../../node_modules/core-js/internals/add-to-unscopables.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/well-known-symbol.js"),o=i("../../node_modules/core-js/internals/object-create.js"),s=i("../../node_modules/core-js/internals/object-define-property.js").f,a=n("unscopables"),c=Array.prototype;void 0===c[a]&&s(c,a,{configurable:!0,value:o(null)}),e.exports=function(e){c[a][e]=!0}},"../../node_modules/core-js/internals/advance-string-index.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/string-multibyte.js").charAt;e.exports=function(e,r,i){return r+(i?n(e,r).length:1)}},"../../node_modules/core-js/internals/an-instance.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),o=TypeError;e.exports=function(e,r){if(n(r,e))return e;throw new o("Incorrect invocation")}},"../../node_modules/core-js/internals/an-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-object.js"),o=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(o(e)+" is not an object")}},"../../node_modules/core-js/internals/array-buffer-basic-detection.js":function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"../../node_modules/core-js/internals/array-buffer-view-core.js":function(e,r,i){var n,o,s,a=i("../../node_modules/core-js/internals/array-buffer-basic-detection.js"),c=i("../../node_modules/core-js/internals/descriptors.js"),d=i("../../node_modules/core-js/internals/global-this.js"),l=i("../../node_modules/core-js/internals/is-callable.js"),u=i("../../node_modules/core-js/internals/is-object.js"),p=i("../../node_modules/core-js/internals/has-own-property.js"),h=i("../../node_modules/core-js/internals/classof.js"),f=i("../../node_modules/core-js/internals/try-to-string.js"),m=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),g=i("../../node_modules/core-js/internals/define-built-in.js"),y=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),b=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),S=i("../../node_modules/core-js/internals/object-get-prototype-of.js"),C=i("../../node_modules/core-js/internals/object-set-prototype-of.js"),_=i("../../node_modules/core-js/internals/well-known-symbol.js"),w=i("../../node_modules/core-js/internals/uid.js"),R=i("../../node_modules/core-js/internals/internal-state.js"),T=R.enforce,E=R.get,j=d.Int8Array,P=j&&j.prototype,k=d.Uint8ClampedArray,O=k&&k.prototype,I=j&&S(j),x=P&&S(P),A=Object.prototype,M=d.TypeError,D=_("toStringTag"),N=w("TYPED_ARRAY_TAG"),B="TypedArrayConstructor",L=a&&!!C&&"Opera"!==h(d.opera),F=!1,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},H=function(e){var r=S(e);if(u(r)){var i=E(r);return i&&p(i,B)?i[B]:H(r)}},q=function(e){if(!u(e))return!1;var r=h(e);return p(z,r)||p(U,r)};for(n in z)(s=(o=d[n])&&o.prototype)?T(s)[B]=o:L=!1;for(n in U)(s=(o=d[n])&&o.prototype)&&(T(s)[B]=o);if((!L||!l(I)||I===Function.prototype)&&(I=function(){throw new M("Incorrect invocation")},L))for(n in z)d[n]&&C(d[n],I);if((!L||!x||x===A)&&(x=I.prototype,L))for(n in z)d[n]&&C(d[n].prototype,x);if(L&&S(O)!==x&&C(O,x),c&&!p(x,D))for(n in F=!0,y(x,D,{configurable:!0,get:function(){return u(this)?this[N]:void 0}}),z)d[n]&&m(d[n],N,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:F&&N,aTypedArray:function(e){if(q(e))return e;throw new M("Target is not a typed array")},aTypedArrayConstructor:function(e){if(l(e)&&(!C||b(I,e)))return e;throw new M(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,r,i,n){if(c){if(i)for(var o in z){var s=d[o];if(s&&p(s.prototype,e))try{delete s.prototype[e]}catch(i){try{s.prototype[e]=r}catch(e){}}}(!x[e]||i)&&g(x,e,i?r:L&&P[e]||r,n)}},exportTypedArrayStaticMethod:function(e,r,i){var n,o;if(c){if(C){if(i){for(n in z)if((o=d[n])&&p(o,e))try{delete o[e]}catch(e){}}if(I[e]&&!i)return;try{return g(I,e,i?r:L&&I[e]||r)}catch(e){}}for(n in z)(o=d[n])&&(!o[e]||i)&&g(o,e,r)}},getTypedArrayConstructor:H,isView:function(e){if(!u(e))return!1;var r=h(e);return"DataView"===r||p(z,r)||p(U,r)},isTypedArray:q,TypedArray:I,TypedArrayPrototype:x}},"../../node_modules/core-js/internals/array-buffer.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/descriptors.js"),a=i("../../node_modules/core-js/internals/array-buffer-basic-detection.js"),c=i("../../node_modules/core-js/internals/function-name.js"),d=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),l=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),u=i("../../node_modules/core-js/internals/define-built-ins.js"),p=i("../../node_modules/core-js/internals/fails.js"),h=i("../../node_modules/core-js/internals/an-instance.js"),f=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),m=i("../../node_modules/core-js/internals/to-length.js"),g=i("../../node_modules/core-js/internals/to-index.js"),y=i("../../node_modules/core-js/internals/math-fround.js"),b=i("../../node_modules/core-js/internals/ieee754.js"),S=i("../../node_modules/core-js/internals/object-get-prototype-of.js"),C=i("../../node_modules/core-js/internals/object-set-prototype-of.js"),_=i("../../node_modules/core-js/internals/array-fill.js"),w=i("../../node_modules/core-js/internals/array-slice.js"),R=i("../../node_modules/core-js/internals/inherit-if-required.js"),T=i("../../node_modules/core-js/internals/copy-constructor-properties.js"),E=i("../../node_modules/core-js/internals/set-to-string-tag.js"),j=i("../../node_modules/core-js/internals/internal-state.js"),P=c.PROPER,k=c.CONFIGURABLE,O="ArrayBuffer",I="DataView",x="prototype",A="Wrong index",M=j.getterFor(O),D=j.getterFor(I),N=j.set,B=n[O],L=B,F=L&&L[x],z=n[I],U=z&&z[x],H=Object.prototype,q=n.Array,W=n.RangeError,V=o(_),G=o([].reverse),K=b.pack,J=b.unpack,X=function(e){return[255&e]},$=function(e){return[255&e,e>>8&255]},Q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Z=function(e){return K(y(e),23,4)},ee=function(e){return K(e,52,8)},et=function(e,r,i){l(e[x],r,{configurable:!0,get:function(){return i(this)[r]}})},er=function(e,r,i,n){var o=D(e),s=g(i);if(s+r>o.byteLength)throw new W(A);var a=o.bytes,c=s+o.byteOffset,d=w(a,c,c+r);return n?d:G(d)},ei=function(e,r,i,n,o,s){var a=D(e),c=g(i),d=n(+o),l=!!s;if(c+r>a.byteLength)throw new W(A);for(var u=a.bytes,p=c+a.byteOffset,h=0;h<r;h++)u[p+h]=d[l?h:r-h-1]};if(a){var en=P&&B.name!==O;!p(function(){B(1)})||!p(function(){new B(-1)})||p(function(){return new B,new B(1.5),new B(NaN),1!==B.length||en&&!k})?((L=function(e){return h(this,F),R(new B(g(e)),this,L)})[x]=F,F.constructor=L,T(L,B)):en&&k&&d(B,"name",O),C&&S(U)!==H&&C(U,H);var eo=new z(new L(2)),es=o(U.setInt8);eo.setInt8(0,0x80000000),eo.setInt8(1,0x80000001),(eo.getInt8(0)||!eo.getInt8(1))&&u(U,{setInt8:function(e,r){es(this,e,r<<24>>24)},setUint8:function(e,r){es(this,e,r<<24>>24)}},{unsafe:!0})}else F=(L=function(e){h(this,F);var r=g(e);N(this,{type:O,bytes:V(q(r),0),byteLength:r}),s||(this.byteLength=r,this.detached=!1)})[x],U=(z=function(e,r,i){h(this,U),h(e,F);var n=M(e),o=n.byteLength,a=f(r);if(a<0||a>o)throw new W("Wrong offset");if(i=void 0===i?o-a:m(i),a+i>o)throw new W("Wrong length");N(this,{type:I,buffer:e,byteLength:i,byteOffset:a,bytes:n.bytes}),s||(this.buffer=e,this.byteLength=i,this.byteOffset=a)})[x],s&&(et(L,"byteLength",M),et(z,"buffer",D),et(z,"byteLength",D),et(z,"byteOffset",D)),u(U,{getInt8:function(e){return er(this,1,e)[0]<<24>>24},getUint8:function(e){return er(this,1,e)[0]},getInt16:function(e){var r=er(this,2,e,arguments.length>1&&arguments[1]);return(r[1]<<8|r[0])<<16>>16},getUint16:function(e){var r=er(this,2,e,arguments.length>1&&arguments[1]);return r[1]<<8|r[0]},getInt32:function(e){return Y(er(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Y(er(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return J(er(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return J(er(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,r){ei(this,1,e,X,r)},setUint8:function(e,r){ei(this,1,e,X,r)},setInt16:function(e,r){ei(this,2,e,$,r,arguments.length>2&&arguments[2])},setUint16:function(e,r){ei(this,2,e,$,r,arguments.length>2&&arguments[2])},setInt32:function(e,r){ei(this,4,e,Q,r,arguments.length>2&&arguments[2])},setUint32:function(e,r){ei(this,4,e,Q,r,arguments.length>2&&arguments[2])},setFloat32:function(e,r){ei(this,4,e,Z,r,arguments.length>2&&arguments[2])},setFloat64:function(e,r){ei(this,8,e,ee,r,arguments.length>2&&arguments[2])}});E(L,O),E(z,I),e.exports={ArrayBuffer:L,DataView:z}},"../../node_modules/core-js/internals/array-fill.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-object.js"),o=i("../../node_modules/core-js/internals/to-absolute-index.js"),s=i("../../node_modules/core-js/internals/length-of-array-like.js");e.exports=function(e){for(var r=n(this),i=s(r),a=arguments.length,c=o(a>1?arguments[1]:void 0,i),d=a>2?arguments[2]:void 0,l=void 0===d?i:o(d,i);l>c;)r[c++]=e;return r}},"../../node_modules/core-js/internals/array-from-constructor-and-list.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/length-of-array-like.js");e.exports=function(e,r,i){for(var o=0,s=arguments.length>2?i:n(r),a=new e(s);s>o;)a[o]=r[o++];return a}},"../../node_modules/core-js/internals/array-from.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-context.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/to-object.js"),a=i("../../node_modules/core-js/internals/call-with-safe-iteration-closing.js"),c=i("../../node_modules/core-js/internals/is-array-iterator-method.js"),d=i("../../node_modules/core-js/internals/is-constructor.js"),l=i("../../node_modules/core-js/internals/length-of-array-like.js"),u=i("../../node_modules/core-js/internals/create-property.js"),p=i("../../node_modules/core-js/internals/get-iterator.js"),h=i("../../node_modules/core-js/internals/get-iterator-method.js"),f=Array;e.exports=function(e){var r,i,m,g,y,b,S=s(e),C=d(this),_=arguments.length,w=_>1?arguments[1]:void 0,R=void 0!==w;R&&(w=n(w,_>2?arguments[2]:void 0));var T=h(S),E=0;if(T&&!(this===f&&c(T)))for(i=C?new this:[],y=(g=p(S,T)).next;!(m=o(y,g)).done;E++)b=R?a(g,w,[m.value,E],!0):m.value,u(i,E,b);else for(r=l(S),i=C?new this(r):f(r);r>E;E++)b=R?w(S[E],E):S[E],u(i,E,b);return i.length=E,i}},"../../node_modules/core-js/internals/array-includes.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-indexed-object.js"),o=i("../../node_modules/core-js/internals/to-absolute-index.js"),s=i("../../node_modules/core-js/internals/length-of-array-like.js"),a=function(e){return function(r,i,a){var c,d=n(r),l=s(d);if(0===l)return!e&&-1;var u=o(a,l);if(e&&i!=i){for(;l>u;)if((c=d[u++])!=c)return!0}else for(;l>u;u++)if((e||u in d)&&d[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"../../node_modules/core-js/internals/array-iteration.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-context.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/indexed-object.js"),a=i("../../node_modules/core-js/internals/to-object.js"),c=i("../../node_modules/core-js/internals/length-of-array-like.js"),d=i("../../node_modules/core-js/internals/array-species-create.js"),l=o([].push),u=function(e){var r=1===e,i=2===e,o=3===e,u=4===e,p=6===e,h=7===e,f=5===e||p;return function(m,g,y,b){for(var S,C,_=a(m),w=s(_),R=c(w),T=n(g,y),E=0,j=b||d,P=r?j(m,R):i||h?j(m,0):void 0;R>E;E++)if((f||E in w)&&(C=T(S=w[E],E,_),e))if(r)P[E]=C;else if(C)switch(e){case 3:return!0;case 5:return S;case 6:return E;case 2:l(P,S)}else switch(e){case 4:return!1;case 7:l(P,S)}return p?-1:o||u?u:P}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},"../../node_modules/core-js/internals/array-method-is-strict.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js");e.exports=function(e,r){var i=[][e];return!!i&&n(function(){i.call(null,r||function(){return 1},1)})}},"../../node_modules/core-js/internals/array-reduce.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/a-callable.js"),o=i("../../node_modules/core-js/internals/to-object.js"),s=i("../../node_modules/core-js/internals/indexed-object.js"),a=i("../../node_modules/core-js/internals/length-of-array-like.js"),c=TypeError,d="Reduce of empty array with no initial value",l=function(e){return function(r,i,l,u){var p=o(r),h=s(p),f=a(p);if(n(i),0===f&&l<2)throw new c(d);var m=e?f-1:0,g=e?-1:1;if(l<2)for(;;){if(m in h){u=h[m],m+=g;break}if(m+=g,e?m<0:f<=m)throw new c(d)}for(;e?m>=0:f>m;m+=g)m in h&&(u=i(u,h[m],m,p));return u}};e.exports={left:l(!1),right:l(!0)}},"../../node_modules/core-js/internals/array-slice.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/function-uncurry-this.js")([].slice)},"../../node_modules/core-js/internals/array-sort.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/array-slice.js"),o=Math.floor,s=function(e,r){var i=e.length;if(i<8)for(var a,c,d=1;d<i;){for(c=d,a=e[d];c&&r(e[c-1],a)>0;)e[c]=e[--c];c!==d++&&(e[c]=a)}else for(var l=o(i/2),u=s(n(e,0,l),r),p=s(n(e,l),r),h=u.length,f=p.length,m=0,g=0;m<h||g<f;)e[m+g]=m<h&&g<f?0>=r(u[m],p[g])?u[m++]:p[g++]:m<h?u[m++]:p[g++];return e};e.exports=s},"../../node_modules/core-js/internals/array-species-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-array.js"),o=i("../../node_modules/core-js/internals/is-constructor.js"),s=i("../../node_modules/core-js/internals/is-object.js"),a=i("../../node_modules/core-js/internals/well-known-symbol.js")("species"),c=Array;e.exports=function(e){var r;return n(e)&&(o(r=e.constructor)&&(r===c||n(r.prototype))?r=void 0:s(r)&&null===(r=r[a])&&(r=void 0)),void 0===r?c:r}},"../../node_modules/core-js/internals/array-species-create.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/array-species-constructor.js");e.exports=function(e,r){return new(n(e))(0===r?0:r)}},"../../node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/an-object.js"),o=i("../../node_modules/core-js/internals/iterator-close.js");e.exports=function(e,r,i,s){try{return s?r(n(i)[0],i[1]):r(i)}catch(r){o(e,"throw",r)}}},"../../node_modules/core-js/internals/check-correctness-of-iteration.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/well-known-symbol.js")("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,r){try{if(!r&&!o)return!1}catch(e){return!1}var i=!1;try{var s={};s[n]=function(){return{next:function(){return{done:i=!0}}}},e(s)}catch(e){}return i}},"../../node_modules/core-js/internals/classof-raw.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=n({}.toString),s=n("".slice);e.exports=function(e){return s(o(e),8,-1)}},"../../node_modules/core-js/internals/classof.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-string-tag-support.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/classof-raw.js"),a=i("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),c=Object,d="Arguments"===s(function(){return arguments}()),l=function(e,r){try{return e[r]}catch(e){}};e.exports=n?s:function(e){var r,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=l(r=c(e),a))?i:d?s(r):"Object"===(n=s(r))&&o(r.callee)?"Arguments":n}},"../../node_modules/core-js/internals/copy-constructor-properties.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/has-own-property.js"),o=i("../../node_modules/core-js/internals/own-keys.js"),s=i("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=i("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,r,i){for(var c=o(r),d=a.f,l=s.f,u=0;u<c.length;u++){var p=c[u];n(e,p)||i&&n(i,p)||d(e,p,l(r,p))}}},"../../node_modules/core-js/internals/correct-prototype-getter.js":function(e,r,i){e.exports=!i("../../node_modules/core-js/internals/fails.js")(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"../../node_modules/core-js/internals/create-iter-result-object.js":function(e){e.exports=function(e,r){return{value:e,done:r}}},"../../node_modules/core-js/internals/create-non-enumerable-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/object-define-property.js"),s=i("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,r,i){return o.f(e,r,s(1,i))}:function(e,r,i){return e[r]=i,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},"../../node_modules/core-js/internals/create-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/object-define-property.js"),s=i("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,r,i){n?o.f(e,r,s(0,i)):e[r]=i}},"../../node_modules/core-js/internals/define-built-in-accessor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/make-built-in.js"),o=i("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,r,i){return i.get&&n(i.get,r,{getter:!0}),i.set&&n(i.set,r,{setter:!0}),o.f(e,r,i)}},"../../node_modules/core-js/internals/define-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js"),o=i("../../node_modules/core-js/internals/object-define-property.js"),s=i("../../node_modules/core-js/internals/make-built-in.js"),a=i("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,r,i,c){c||(c={});var d=c.enumerable,l=void 0!==c.name?c.name:r;if(n(i)&&s(i,l,c),c.global)d?e[r]=i:a(r,i);else{try{c.unsafe?e[r]&&(d=!0):delete e[r]}catch(e){}d?e[r]=i:o.f(e,r,{value:i,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return e}},"../../node_modules/core-js/internals/define-built-ins.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/define-built-in.js");e.exports=function(e,r,i){for(var o in r)n(e,o,r[o],i);return e}},"../../node_modules/core-js/internals/define-global-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=Object.defineProperty;e.exports=function(e,r){try{o(n,e,{value:r,configurable:!0,writable:!0})}catch(i){n[e]=r}return r}},"../../node_modules/core-js/internals/descriptors.js":function(e,r,i){e.exports=!i("../../node_modules/core-js/internals/fails.js")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=n.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},"../../node_modules/core-js/internals/dom-iterables.js":function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"../../node_modules/core-js/internals/dom-token-list-prototype.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/document-create-element.js")("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},"../../node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/environment-ff-version.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js").match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},"../../node_modules/core-js/internals/environment-is-ie-or-edge.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js");e.exports=/MSIE|Trident/.test(n)},"../../node_modules/core-js/internals/environment-is-ios-pebble.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js");e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},"../../node_modules/core-js/internals/environment-is-ios.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},"../../node_modules/core-js/internals/environment-is-node.js":function(e,r,i){e.exports="NODE"===i("../../node_modules/core-js/internals/environment.js")},"../../node_modules/core-js/internals/environment-is-webos-webkit.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js");e.exports=/web0s(?!.*chrome)/i.test(n)},"../../node_modules/core-js/internals/environment-user-agent.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js").navigator,o=n&&n.userAgent;e.exports=o?String(o):""},"../../node_modules/core-js/internals/environment-v8-version.js":function(e,r,i){var n,o,s=i("../../node_modules/core-js/internals/global-this.js"),a=i("../../node_modules/core-js/internals/environment-user-agent.js"),c=s.process,d=s.Deno,l=c&&c.versions||d&&d.version,u=l&&l.v8;u&&(o=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},"../../node_modules/core-js/internals/environment-webkit-version.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js").match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},"../../node_modules/core-js/internals/environment.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/environment-user-agent.js"),s=i("../../node_modules/core-js/internals/classof-raw.js"),a=function(e){return o.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},"../../node_modules/core-js/internals/export.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),a=i("../../node_modules/core-js/internals/define-built-in.js"),c=i("../../node_modules/core-js/internals/define-global-property.js"),d=i("../../node_modules/core-js/internals/copy-constructor-properties.js"),l=i("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,r){var i,u,p,h,f,m=e.target,g=e.global,y=e.stat;if(i=g?n:y?n[m]||c(m,{}):n[m]&&n[m].prototype)for(u in r){if(h=r[u],p=e.dontCallGetSet?(f=o(i,u))&&f.value:i[u],!l(g?u:m+(y?".":"#")+u,e.forced)&&void 0!==p){if(typeof h==typeof p)continue;d(h,p)}(e.sham||p&&p.sham)&&s(h,"sham",!0),a(i,u,h,e)}}},"../../node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":function(e,r,i){i("../../node_modules/core-js/modules/es.regexp.exec.js");var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/define-built-in.js"),s=i("../../node_modules/core-js/internals/regexp-exec.js"),a=i("../../node_modules/core-js/internals/fails.js"),c=i("../../node_modules/core-js/internals/well-known-symbol.js"),d=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),l=c("species"),u=RegExp.prototype;e.exports=function(e,r,i,p){var h=c(e),f=!a(function(){var r={};return r[h]=function(){return 7},7!==""[e](r)}),m=f&&!a(function(){var r=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[l]=function(){return i},i.flags="",i[h]=/./[h]),i.exec=function(){return r=!0,null},i[h](""),!r});if(!f||!m||i){var g=/./[h],y=r(h,""[e],function(e,r,i,o,a){var c=r.exec;return c===s||c===u.exec?f&&!a?{done:!0,value:n(g,r,i,o)}:{done:!0,value:n(e,i,r,o)}:{done:!1}});o(String.prototype,e,y[0]),o(u,h,y[1])}p&&d(u[h],"sham",!0)}},"../../node_modules/core-js/internals/function-apply.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(s):function(){return a.apply(s,arguments)})},"../../node_modules/core-js/internals/function-bind-context.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this-clause.js"),o=i("../../node_modules/core-js/internals/a-callable.js"),s=i("../../node_modules/core-js/internals/function-bind-native.js"),a=n(n.bind);e.exports=function(e,r){return o(e),void 0===r?e:s?a(e,r):function(){return e.apply(r,arguments)}}},"../../node_modules/core-js/internals/function-bind-native.js":function(e,r,i){e.exports=!i("../../node_modules/core-js/internals/fails.js")(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},"../../node_modules/core-js/internals/function-name.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(s,"name"),d=c&&(!n||n&&a(s,"name").configurable);e.exports={EXISTS:c,PROPER:c&&"something"===(function(){}).name,CONFIGURABLE:d}},"../../node_modules/core-js/internals/function-uncurry-this-accessor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/a-callable.js");e.exports=function(e,r,i){try{return n(o(Object.getOwnPropertyDescriptor(e,r)[i]))}catch(e){}}},"../../node_modules/core-js/internals/function-uncurry-this-clause.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/classof-raw.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js");e.exports=function(e){if("Function"===n(e))return o(e)}},"../../node_modules/core-js/internals/function-uncurry-this.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype,s=o.call,a=n&&o.bind.bind(s,s);e.exports=n?a:function(e){return function(){return s.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,r){var i;return arguments.length<2?o(i=n[e])?i:void 0:n[e]&&n[e][r]}},"../../node_modules/core-js/internals/get-iterator-method.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/classof.js"),o=i("../../node_modules/core-js/internals/get-method.js"),s=i("../../node_modules/core-js/internals/is-null-or-undefined.js"),a=i("../../node_modules/core-js/internals/iterators.js"),c=i("../../node_modules/core-js/internals/well-known-symbol.js")("iterator");e.exports=function(e){if(!s(e))return o(e,c)||o(e,"@@iterator")||a[n(e)]}},"../../node_modules/core-js/internals/get-iterator.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/a-callable.js"),s=i("../../node_modules/core-js/internals/an-object.js"),a=i("../../node_modules/core-js/internals/try-to-string.js"),c=i("../../node_modules/core-js/internals/get-iterator-method.js"),d=TypeError;e.exports=function(e,r){var i=arguments.length<2?c(e):r;if(o(i))return s(n(i,e));throw new d(a(e)+" is not iterable")}},"../../node_modules/core-js/internals/get-method.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/a-callable.js"),o=i("../../node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,r){var i=e[r];return o(i)?void 0:n(i)}},"../../node_modules/core-js/internals/get-substitution.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/to-object.js"),s=Math.floor,a=n("".charAt),c=n("".replace),d=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,r,i,n,p,h){var f=i+e.length,m=n.length,g=u;return void 0!==p&&(p=o(p),g=l),c(h,g,function(o,c){var l;switch(a(c,0)){case"$":return"$";case"&":return e;case"`":return d(r,0,i);case"'":return d(r,f);case"<":l=p[d(c,1,-1)];break;default:var u=+c;if(0===u)return o;if(u>m){var h=s(u/10);if(0===h)return o;if(h<=m)return void 0===n[h-1]?a(c,1):n[h-1]+a(c,1);return o}l=n[u-1]}return void 0===l?"":l})}},"../../node_modules/core-js/internals/global-this.js":function(e,r,i){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/to-object.js"),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,r){return s(o(e),r)}},"../../node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"../../node_modules/core-js/internals/html.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/get-built-in.js")("document","documentElement")},"../../node_modules/core-js/internals/ie8-dom-define.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/ieee754.js":function(e){var r=Array,i=Math.abs,n=Math.pow,o=Math.floor,s=Math.log,a=Math.LN2;e.exports={pack:function(e,c,d){var l,u,p,h=r(d),f=8*d-c-1,m=(1<<f)-1,g=m>>1,y=23===c?n(2,-24)-n(2,-77):0,b=+(e<0||0===e&&1/e<0),S=0;for((e=i(e))!=e||e===1/0?(u=+(e!=e),l=m):(p=n(2,-(l=o(s(e)/a))),e*p<1&&(l--,p*=2),l+g>=1?e+=y/p:e+=y*n(2,1-g),e*p>=2&&(l++,p/=2),l+g>=m?(u=0,l=m):l+g>=1?(u=(e*p-1)*n(2,c),l+=g):(u=e*n(2,g-1)*n(2,c),l=0));c>=8;)h[S++]=255&u,u/=256,c-=8;for(l=l<<c|u,f+=c;f>0;)h[S++]=255&l,l/=256,f-=8;return h[S-1]|=128*b,h},unpack:function(e,r){var i,o=e.length,s=8*o-r-1,a=(1<<s)-1,c=a>>1,d=s-7,l=o-1,u=e[l--],p=127&u;for(u>>=7;d>0;)p=256*p+e[l--],d-=8;for(i=p&(1<<-d)-1,p>>=-d,d+=r;d>0;)i=256*i+e[l--],d-=8;if(0===p)p=1-c;else{if(p===a)return i?NaN:u?-1/0:1/0;i+=n(2,r),p-=c}return(u?-1:1)*i*n(2,p-r)}}},"../../node_modules/core-js/internals/indexed-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/classof-raw.js"),a=Object,c=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?c(e,""):a(e)}:a},"../../node_modules/core-js/internals/inherit-if-required.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=i("../../node_modules/core-js/internals/object-set-prototype-of.js");e.exports=function(e,r,i){var a,c;return s&&n(a=r.constructor)&&a!==i&&o(c=a.prototype)&&c!==i.prototype&&s(e,c),e}},"../../node_modules/core-js/internals/inspect-source.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/shared-store.js"),a=n(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":function(e,r,i){var n,o,s,a=i("../../node_modules/core-js/internals/weak-map-basic-detection.js"),c=i("../../node_modules/core-js/internals/global-this.js"),d=i("../../node_modules/core-js/internals/is-object.js"),l=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),u=i("../../node_modules/core-js/internals/has-own-property.js"),p=i("../../node_modules/core-js/internals/shared-store.js"),h=i("../../node_modules/core-js/internals/shared-key.js"),f=i("../../node_modules/core-js/internals/hidden-keys.js"),m="Object already initialized",g=c.TypeError,y=c.WeakMap;if(a||p.state){var b=p.state||(p.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,r){if(b.has(e))throw new g(m);return r.facade=e,b.set(e,r),r},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var S=h("state");f[S]=!0,n=function(e,r){if(u(e,S))throw new g(m);return r.facade=e,l(e,S,r),r},o=function(e){return u(e,S)?e[S]:{}},s=function(e){return u(e,S)}}e.exports={set:n,get:o,has:s,enforce:function(e){return s(e)?o(e):n(e,{})},getterFor:function(e){return function(r){var i;if(!d(r)||(i=o(r)).type!==e)throw new g("Incompatible receiver, "+e+" required");return i}}}},"../../node_modules/core-js/internals/is-array-iterator-method.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/well-known-symbol.js"),o=i("../../node_modules/core-js/internals/iterators.js"),s=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},"../../node_modules/core-js/internals/is-array.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/classof-raw.js");e.exports=Array.isArray||function(e){return"Array"===n(e)}},"../../node_modules/core-js/internals/is-big-int-array.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/classof.js");e.exports=function(e){var r=n(e);return"BigInt64Array"===r||"BigUint64Array"===r}},"../../node_modules/core-js/internals/is-callable.js":function(e){var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/is-callable.js"),a=i("../../node_modules/core-js/internals/classof.js"),c=i("../../node_modules/core-js/internals/get-built-in.js"),d=i("../../node_modules/core-js/internals/inspect-source.js"),l=function(){},u=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=n(p.exec),f=!p.test(l),m=function(e){if(!s(e))return!1;try{return u(l,[],e),!0}catch(e){return!1}},g=function(e){if(!s(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(p,d(e))}catch(e){return!0}};g.sham=!0,e.exports=!u||o(function(){var e;return m(m.call)||!m(Object)||!m(function(){e=!0})||e})?g:m},"../../node_modules/core-js/internals/is-forced.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=/#|\.prototype\./,a=function(e,r){var i=d[c(e)];return i===u||i!==l&&(o(r)?n(r):!!r)},c=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},d=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},"../../node_modules/core-js/internals/is-integral-number.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-object.js"),o=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&o(e)===e}},"../../node_modules/core-js/internals/is-null-or-undefined.js":function(e){e.exports=function(e){return null==e}},"../../node_modules/core-js/internals/is-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},"../../node_modules/core-js/internals/is-possible-prototype.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-object.js");e.exports=function(e){return n(e)||null===e}},"../../node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"../../node_modules/core-js/internals/is-symbol.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/get-built-in.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),a=i("../../node_modules/core-js/internals/use-symbol-as-uid.js"),c=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var r=n("Symbol");return o(r)&&s(r.prototype,c(e))}},"../../node_modules/core-js/internals/iterate.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-context.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/an-object.js"),a=i("../../node_modules/core-js/internals/try-to-string.js"),c=i("../../node_modules/core-js/internals/is-array-iterator-method.js"),d=i("../../node_modules/core-js/internals/length-of-array-like.js"),l=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),u=i("../../node_modules/core-js/internals/get-iterator.js"),p=i("../../node_modules/core-js/internals/get-iterator-method.js"),h=i("../../node_modules/core-js/internals/iterator-close.js"),f=TypeError,m=function(e,r){this.stopped=e,this.result=r},g=m.prototype;e.exports=function(e,r,i){var y,b,S,C,_,w,R,T=i&&i.that,E=!!(i&&i.AS_ENTRIES),j=!!(i&&i.IS_RECORD),P=!!(i&&i.IS_ITERATOR),k=!!(i&&i.INTERRUPTED),O=n(r,T),I=function(e){return y&&h(y,"normal"),new m(!0,e)},x=function(e){return E?(s(e),k?O(e[0],e[1],I):O(e[0],e[1])):k?O(e,I):O(e)};if(j)y=e.iterator;else if(P)y=e;else{if(!(b=p(e)))throw new f(a(e)+" is not iterable");if(c(b)){for(S=0,C=d(e);C>S;S++)if((_=x(e[S]))&&l(g,_))return _;return new m(!1)}y=u(e,b)}for(w=j?e.next:y.next;!(R=o(w,y)).done;){try{_=x(R.value)}catch(e){h(y,"throw",e)}if("object"==typeof _&&_&&l(g,_))return _}return new m(!1)}},"../../node_modules/core-js/internals/iterator-close.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/an-object.js"),s=i("../../node_modules/core-js/internals/get-method.js");e.exports=function(e,r,i){var a,c;o(e);try{if(!(a=s(e,"return"))){if("throw"===r)throw i;return i}a=n(a,e)}catch(e){c=!0,a=e}if("throw"===r)throw i;if(c)throw a;return o(a),i}},"../../node_modules/core-js/internals/iterator-create-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/iterators-core.js").IteratorPrototype,o=i("../../node_modules/core-js/internals/object-create.js"),s=i("../../node_modules/core-js/internals/create-property-descriptor.js"),a=i("../../node_modules/core-js/internals/set-to-string-tag.js"),c=i("../../node_modules/core-js/internals/iterators.js"),d=function(){return this};e.exports=function(e,r,i,l){var u=r+" Iterator";return e.prototype=o(n,{next:s(+!l,i)}),a(e,u,!1,!0),c[u]=d,e}},"../../node_modules/core-js/internals/iterator-define.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/is-pure.js"),a=i("../../node_modules/core-js/internals/function-name.js"),c=i("../../node_modules/core-js/internals/is-callable.js"),d=i("../../node_modules/core-js/internals/iterator-create-constructor.js"),l=i("../../node_modules/core-js/internals/object-get-prototype-of.js"),u=i("../../node_modules/core-js/internals/object-set-prototype-of.js"),p=i("../../node_modules/core-js/internals/set-to-string-tag.js"),h=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),f=i("../../node_modules/core-js/internals/define-built-in.js"),m=i("../../node_modules/core-js/internals/well-known-symbol.js"),g=i("../../node_modules/core-js/internals/iterators.js"),y=i("../../node_modules/core-js/internals/iterators-core.js"),b=a.PROPER,S=a.CONFIGURABLE,C=y.IteratorPrototype,_=y.BUGGY_SAFARI_ITERATORS,w=m("iterator"),R="keys",T="values",E="entries",j=function(){return this};e.exports=function(e,r,i,a,m,y,P){d(i,r,a);var k,O,I,x=function(e){if(e===m&&B)return B;if(!_&&e&&e in D)return D[e];switch(e){case R:case T:case E:return function(){return new i(this,e)}}return function(){return new i(this)}},A=r+" Iterator",M=!1,D=e.prototype,N=D[w]||D["@@iterator"]||m&&D[m],B=!_&&N||x(m),L="Array"===r&&D.entries||N;if(L&&(k=l(L.call(new e)))!==Object.prototype&&k.next&&(!s&&l(k)!==C&&(u?u(k,C):c(k[w])||f(k,w,j)),p(k,A,!0,!0),s&&(g[A]=j)),b&&m===T&&N&&N.name!==T&&(!s&&S?h(D,"name",T):(M=!0,B=function(){return o(N,this)})),m)if(O={values:x(T),keys:y?B:x(R),entries:x(E)},P)for(I in O)!_&&!M&&I in D||f(D,I,O[I]);else n({target:r,proto:!0,forced:_||M},O);return(!s||P)&&D[w]!==B&&f(D,w,B,{name:m}),g[r]=B,O}},"../../node_modules/core-js/internals/iterators-core.js":function(e,r,i){var n,o,s,a=i("../../node_modules/core-js/internals/fails.js"),c=i("../../node_modules/core-js/internals/is-callable.js"),d=i("../../node_modules/core-js/internals/is-object.js"),l=i("../../node_modules/core-js/internals/object-create.js"),u=i("../../node_modules/core-js/internals/object-get-prototype-of.js"),p=i("../../node_modules/core-js/internals/define-built-in.js"),h=i("../../node_modules/core-js/internals/well-known-symbol.js"),f=i("../../node_modules/core-js/internals/is-pure.js"),m=h("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(o=u(u(s)))!==Object.prototype&&(n=o):g=!0),!d(n)||a(function(){var e={};return n[m].call(e)!==e})?n={}:f&&(n=l(n)),c(n[m])||p(n,m,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},"../../node_modules/core-js/internals/iterators.js":function(e){e.exports={}},"../../node_modules/core-js/internals/length-of-array-like.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return n(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/is-callable.js"),a=i("../../node_modules/core-js/internals/has-own-property.js"),c=i("../../node_modules/core-js/internals/descriptors.js"),d=i("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,l=i("../../node_modules/core-js/internals/inspect-source.js"),u=i("../../node_modules/core-js/internals/internal-state.js"),p=u.enforce,h=u.get,f=String,m=Object.defineProperty,g=n("".slice),y=n("".replace),b=n([].join),S=c&&!o(function(){return 8!==m(function(){},"length",{value:8}).length}),C=String(String).split("String"),_=e.exports=function(e,r,i){"Symbol("===g(f(r),0,7)&&(r="["+y(f(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!a(e,"name")||d&&e.name!==r)&&(c?m(e,"name",{value:r,configurable:!0}):e.name=r),S&&i&&a(i,"arity")&&e.length!==i.arity&&m(e,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?c&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=p(e);return a(n,"source")||(n.source=b(C,"string"==typeof r?r:"")),e};Function.prototype.toString=_(function(){return s(this)&&h(this).source||l(this)},"toString")},"../../node_modules/core-js/internals/math-float-round.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/math-sign.js"),o=i("../../node_modules/core-js/internals/math-round-ties-to-even.js"),s=Math.abs;e.exports=function(e,r,i,a){var c=+e,d=s(c),l=n(c);if(d<a)return l*o(d/a/r)*a*r;var u=(1+r/2220446049250313e-31)*d,p=u-(u-d);return p>i||p!=p?1/0*l:l*p}},"../../node_modules/core-js/internals/math-fround.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/math-float-round.js");e.exports=Math.fround||function(e){return n(e,11920928955078125e-23,34028234663852886e22,11754943508222875e-54)}},"../../node_modules/core-js/internals/math-round-ties-to-even.js":function(e){e.exports=function(e){return e+0x10000000000000-0x10000000000000}},"../../node_modules/core-js/internals/math-sign.js":function(e){e.exports=Math.sign||function(e){var r=+e;return 0===r||r!=r?r:r<0?-1:1}},"../../node_modules/core-js/internals/math-trunc.js":function(e){var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:r)(n)}},"../../node_modules/core-js/internals/microtask.js":function(e,r,i){var n,o,s,a,c,d=i("../../node_modules/core-js/internals/global-this.js"),l=i("../../node_modules/core-js/internals/safe-get-built-in.js"),u=i("../../node_modules/core-js/internals/function-bind-context.js"),p=i("../../node_modules/core-js/internals/task.js").set,h=i("../../node_modules/core-js/internals/queue.js"),f=i("../../node_modules/core-js/internals/environment-is-ios.js"),m=i("../../node_modules/core-js/internals/environment-is-ios-pebble.js"),g=i("../../node_modules/core-js/internals/environment-is-webos-webkit.js"),y=i("../../node_modules/core-js/internals/environment-is-node.js"),b=d.MutationObserver||d.WebKitMutationObserver,S=d.document,C=d.process,_=d.Promise,w=l("queueMicrotask");if(!w){var R=new h,T=function(){var e,r;for(y&&(e=C.domain)&&e.exit();r=R.get();)try{r()}catch(e){throw R.head&&n(),e}e&&e.enter()};f||y||g||!b||!S?!m&&_&&_.resolve?((a=_.resolve(void 0)).constructor=_,c=u(a.then,a),n=function(){c(T)}):y?n=function(){C.nextTick(T)}:(p=u(p,d),n=function(){p(T)}):(o=!0,s=S.createTextNode(""),new b(T).observe(s,{characterData:!0}),n=function(){s.data=o=!o}),w=function(e){R.head||n(),R.add(e)}}e.exports=w},"../../node_modules/core-js/internals/new-promise-capability.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/a-callable.js"),o=TypeError,s=function(e){var r,i;this.promise=new e(function(e,n){if(void 0!==r||void 0!==i)throw new o("Bad Promise constructor");r=e,i=n}),this.resolve=n(r),this.reject=n(i)};e.exports.f=function(e){return new s(e)}},"../../node_modules/core-js/internals/object-assign.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/function-call.js"),a=i("../../node_modules/core-js/internals/fails.js"),c=i("../../node_modules/core-js/internals/object-keys.js"),d=i("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),l=i("../../node_modules/core-js/internals/object-property-is-enumerable.js"),u=i("../../node_modules/core-js/internals/to-object.js"),p=i("../../node_modules/core-js/internals/indexed-object.js"),h=Object.assign,f=Object.defineProperty,m=o([].concat);e.exports=!h||a(function(){if(n&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},r={},i=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[i]=7,o.split("").forEach(function(e){r[e]=e}),7!==h({},e)[i]||c(h({},r)).join("")!==o})?function(e,r){for(var i=u(e),o=arguments.length,a=1,h=d.f,f=l.f;o>a;)for(var g,y=p(arguments[a++]),b=h?m(c(y),h(y)):c(y),S=b.length,C=0;S>C;)g=b[C++],(!n||s(f,y,g))&&(i[g]=y[g]);return i}:h},"../../node_modules/core-js/internals/object-create.js":function(e,r,i){var n,o=i("../../node_modules/core-js/internals/an-object.js"),s=i("../../node_modules/core-js/internals/object-define-properties.js"),a=i("../../node_modules/core-js/internals/enum-bug-keys.js"),c=i("../../node_modules/core-js/internals/hidden-keys.js"),d=i("../../node_modules/core-js/internals/html.js"),l=i("../../node_modules/core-js/internals/document-create-element.js"),u=i("../../node_modules/core-js/internals/shared-key.js"),p="prototype",h="script",f=u("IE_PROTO"),m=function(){},g=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(g("")),e.close();var r=e.parentWindow.Object;return e=null,r},b=function(){var e,r=l("iframe");return r.style.display="none",d.appendChild(r),r.src=String("java"+h+":"),(e=r.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F},S=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}S="undefined"!=typeof document?document.domain&&n?y(n):b():y(n);for(var e=a.length;e--;)delete S[p][a[e]];return S()};c[f]=!0,e.exports=Object.create||function(e,r){var i;return null!==e?(m[p]=o(e),i=new m,m[p]=null,i[f]=e):i=S(),void 0===r?i:s.f(i,r)}},"../../node_modules/core-js/internals/object-define-properties.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),s=i("../../node_modules/core-js/internals/object-define-property.js"),a=i("../../node_modules/core-js/internals/an-object.js"),c=i("../../node_modules/core-js/internals/to-indexed-object.js"),d=i("../../node_modules/core-js/internals/object-keys.js");r.f=n&&!o?Object.defineProperties:function(e,r){a(e);for(var i,n=c(r),o=d(r),l=o.length,u=0;l>u;)s.f(e,i=o[u++],n[i]);return e}},"../../node_modules/core-js/internals/object-define-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/ie8-dom-define.js"),s=i("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),a=i("../../node_modules/core-js/internals/an-object.js"),c=i("../../node_modules/core-js/internals/to-property-key.js"),d=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",f="writable";r.f=n?s?function(e,r,i){if(a(e),r=c(r),a(i),"function"==typeof e&&"prototype"===r&&"value"in i&&f in i&&!i[f]){var n=u(e,r);n&&n[f]&&(e[r]=i.value,i={configurable:h in i?i[h]:n[h],enumerable:p in i?i[p]:n[p],writable:!1})}return l(e,r,i)}:l:function(e,r,i){if(a(e),r=c(r),a(i),o)try{return l(e,r,i)}catch(e){}if("get"in i||"set"in i)throw new d("Accessors not supported");return"value"in i&&(e[r]=i.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/object-property-is-enumerable.js"),a=i("../../node_modules/core-js/internals/create-property-descriptor.js"),c=i("../../node_modules/core-js/internals/to-indexed-object.js"),d=i("../../node_modules/core-js/internals/to-property-key.js"),l=i("../../node_modules/core-js/internals/has-own-property.js"),u=i("../../node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(e,r){if(e=c(e),r=d(r),u)try{return p(e,r)}catch(e){}if(l(e,r))return a(!o(s.f,e,r),e[r])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/object-keys-internal.js"),o=i("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,r){r.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-get-prototype-of.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/has-own-property.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/to-object.js"),a=i("../../node_modules/core-js/internals/shared-key.js"),c=i("../../node_modules/core-js/internals/correct-prototype-getter.js"),d=a("IE_PROTO"),l=Object,u=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var r=s(e);if(n(r,d))return r[d];var i=r.constructor;return o(i)&&r instanceof i?i.prototype:r instanceof l?u:null}},"../../node_modules/core-js/internals/object-is-prototype-of.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/function-uncurry-this.js")({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/has-own-property.js"),s=i("../../node_modules/core-js/internals/to-indexed-object.js"),a=i("../../node_modules/core-js/internals/array-includes.js").indexOf,c=i("../../node_modules/core-js/internals/hidden-keys.js"),d=n([].push);e.exports=function(e,r){var i,n=s(e),l=0,u=[];for(i in n)!o(c,i)&&o(n,i)&&d(u,i);for(;r.length>l;)o(n,i=r[l++])&&(~a(u,i)||d(u,i));return u}},"../../node_modules/core-js/internals/object-keys.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/object-keys-internal.js"),o=i("../../node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,o)}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":function(e,r){var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;r.f=n&&!i.call({1:2},1)?function(e){var r=n(this,e);return!!r&&r.enumerable}:i},"../../node_modules/core-js/internals/object-set-prototype-of.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this-accessor.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=i("../../node_modules/core-js/internals/require-object-coercible.js"),a=i("../../node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,r=!1,i={};try{(e=n(Object.prototype,"__proto__","set"))(i,[]),r=i instanceof Array}catch(e){}return function(i,n){return s(i),a(n),o(i)&&(r?e(i,n):i.__proto__=n),i}}():void 0)},"../../node_modules/core-js/internals/ordinary-to-primitive.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/is-object.js"),a=TypeError;e.exports=function(e,r){var i,c;if("string"===r&&o(i=e.toString)&&!s(c=n(i,e))||o(i=e.valueOf)&&!s(c=n(i,e))||"string"!==r&&o(i=e.toString)&&!s(c=n(i,e)))return c;throw new a("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/get-built-in.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/object-get-own-property-names.js"),a=i("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),c=i("../../node_modules/core-js/internals/an-object.js"),d=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var r=s.f(c(e)),i=a.f;return i?d(r,i(e)):r}},"../../node_modules/core-js/internals/promise-native-constructor.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/global-this.js").Promise},"../../node_modules/core-js/internals/promise-resolve.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/an-object.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=i("../../node_modules/core-js/internals/new-promise-capability.js");e.exports=function(e,r){if(n(e),o(r)&&r.constructor===e)return r;var i=s.f(e);return(0,i.resolve)(r),i.promise}},"../../node_modules/core-js/internals/queue.js":function(e){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var r={item:e,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=r},"../../node_modules/core-js/internals/regexp-exec-abstract.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/an-object.js"),s=i("../../node_modules/core-js/internals/is-callable.js"),a=i("../../node_modules/core-js/internals/classof-raw.js"),c=i("../../node_modules/core-js/internals/regexp-exec.js"),d=TypeError;e.exports=function(e,r){var i=e.exec;if(s(i)){var l=n(i,e,r);return null!==l&&o(l),l}if("RegExp"===a(e))return n(c,e,r);throw new d("RegExp#exec called on incompatible receiver")}},"../../node_modules/core-js/internals/regexp-exec.js":function(e,r,i){var n,o,s=i("../../node_modules/core-js/internals/function-call.js"),a=i("../../node_modules/core-js/internals/function-uncurry-this.js"),c=i("../../node_modules/core-js/internals/to-string.js"),d=i("../../node_modules/core-js/internals/regexp-flags.js"),l=i("../../node_modules/core-js/internals/regexp-sticky-helpers.js"),u=i("../../node_modules/core-js/internals/shared.js"),p=i("../../node_modules/core-js/internals/object-create.js"),h=i("../../node_modules/core-js/internals/internal-state.js").get,f=i("../../node_modules/core-js/internals/regexp-unsupported-dot-all.js"),m=i("../../node_modules/core-js/internals/regexp-unsupported-ncg.js"),g=u("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,b=y,S=a("".charAt),C=a("".indexOf),_=a("".replace),w=a("".slice),R=(o=/b*/g,s(y,n=/a/,"a"),s(y,o,"a"),0!==n.lastIndex||0!==o.lastIndex),T=l.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(R||E||T||f||m)&&(b=function(e){var r,i,n,o,a,l,u,f=h(this),m=c(e),j=f.raw;if(j)return j.lastIndex=this.lastIndex,r=s(b,j,m),this.lastIndex=j.lastIndex,r;var P=f.groups,k=T&&this.sticky,O=s(d,this),I=this.source,x=0,A=m;if(k&&(-1===C(O=_(O,"y",""),"g")&&(O+="g"),A=w(m,this.lastIndex),this.lastIndex>0&&(!this.multiline||this.multiline&&"\n"!==S(m,this.lastIndex-1))&&(I="(?: "+I+")",A=" "+A,x++),i=RegExp("^(?:"+I+")",O)),E&&(i=RegExp("^"+I+"$(?!\\s)",O)),R&&(n=this.lastIndex),o=s(y,k?i:this,A),k?o?(o.input=w(o.input,x),o[0]=w(o[0],x),o.index=this.lastIndex,this.lastIndex+=o[0].length):this.lastIndex=0:R&&o&&(this.lastIndex=this.global?o.index+o[0].length:n),E&&o&&o.length>1&&s(g,o[0],i,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)}),o&&P)for(a=0,o.groups=l=p(null);a<P.length;a++)l[(u=P[a])[0]]=o[u[1]];return o}),e.exports=b},"../../node_modules/core-js/internals/regexp-flags-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=n.RegExp;e.exports={correct:!o(function(){var e=!0;try{s(".","d")}catch(r){e=!1}var r={},i="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(r,e,{get:function(){return i+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var c in e&&(a.hasIndices="d"),a)o(c,a[c]);return Object.getOwnPropertyDescriptor(s.prototype,"flags").get.call(r)!==n||i!==n})}},"../../node_modules/core-js/internals/regexp-flags.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/an-object.js");e.exports=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}},"../../node_modules/core-js/internals/regexp-get-flags.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/has-own-property.js"),s=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),a=i("../../node_modules/core-js/internals/regexp-flags-detection.js"),c=i("../../node_modules/core-js/internals/regexp-flags.js"),d=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return!a.correct&&s(d,e)&&!o(e,"flags")?n(c,e):e.flags}},"../../node_modules/core-js/internals/regexp-unsupported-dot-all.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/global-this.js").RegExp;e.exports=n(function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},"../../node_modules/core-js/internals/regexp-unsupported-ncg.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/global-this.js").RegExp;e.exports=n(function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},"../../node_modules/core-js/internals/require-object-coercible.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-null-or-undefined.js"),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/safe-get-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/descriptors.js"),s=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var r=s(n,e);return r&&r.value}},"../../node_modules/core-js/internals/set-species.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/get-built-in.js"),o=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),s=i("../../node_modules/core-js/internals/well-known-symbol.js"),a=i("../../node_modules/core-js/internals/descriptors.js"),c=s("species");e.exports=function(e){var r=n(e);a&&r&&!r[c]&&o(r,c,{configurable:!0,get:function(){return this}})}},"../../node_modules/core-js/internals/set-to-string-tag.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/object-define-property.js").f,o=i("../../node_modules/core-js/internals/has-own-property.js"),s=i("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,r,i){e&&!i&&(e=e.prototype),e&&!o(e,s)&&n(e,s,{configurable:!0,value:r})}},"../../node_modules/core-js/internals/shared-key.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/shared.js"),o=i("../../node_modules/core-js/internals/uid.js"),s=n("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},"../../node_modules/core-js/internals/shared-store.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-pure.js"),o=i("../../node_modules/core-js/internals/global-this.js"),s=i("../../node_modules/core-js/internals/define-global-property.js"),a="__core-js_shared__",c=e.exports=o[a]||s(a,{});(c.versions||(c.versions=[])).push({version:"3.44.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/shared.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/shared-store.js");e.exports=function(e,r){return n[e]||(n[e]=r||{})}},"../../node_modules/core-js/internals/species-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/an-object.js"),o=i("../../node_modules/core-js/internals/a-constructor.js"),s=i("../../node_modules/core-js/internals/is-null-or-undefined.js"),a=i("../../node_modules/core-js/internals/well-known-symbol.js")("species");e.exports=function(e,r){var i,c=n(e).constructor;return void 0===c||s(i=n(c)[a])?r:o(i)}},"../../node_modules/core-js/internals/string-multibyte.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),s=i("../../node_modules/core-js/internals/to-string.js"),a=i("../../node_modules/core-js/internals/require-object-coercible.js"),c=n("".charAt),d=n("".charCodeAt),l=n("".slice),u=function(e){return function(r,i){var n,u,p=s(a(r)),h=o(i),f=p.length;return h<0||h>=f?e?"":void 0:(n=d(p,h))<55296||n>56319||h+1===f||(u=d(p,h+1))<56320||u>57343?e?c(p,h):n:e?l(p,h,h+2):(n-55296<<10)+(u-56320)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},"../../node_modules/core-js/internals/string-punycode-to-ascii.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",c=RangeError,d=n(s.exec),l=Math.floor,u=String.fromCharCode,p=n("".charCodeAt),h=n([].join),f=n([].push),m=n("".replace),g=n("".split),y=n("".toLowerCase),b=function(e){for(var r=[],i=0,n=e.length;i<n;){var o=p(e,i++);if(o>=55296&&o<=56319&&i<n){var s=p(e,i++);(64512&s)==56320?f(r,((1023&o)<<10)+(1023&s)+65536):(f(r,o),i--)}else f(r,o)}return r},S=function(e){return e+22+75*(e<26)},C=function(e,r,i){var n=0;for(e=i?l(e/700):e>>1,e+=l(e/r);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},_=function(e){var r,i,n=[],o=(e=b(e)).length,s=128,d=0,p=72;for(r=0;r<e.length;r++)(i=e[r])<128&&f(n,u(i));var m=n.length,g=m;for(m&&f(n,"-");g<o;){var y=0x7fffffff;for(r=0;r<e.length;r++)(i=e[r])>=s&&i<y&&(y=i);var _=g+1;if(y-s>l((0x7fffffff-d)/_))throw new c(a);for(d+=(y-s)*_,s=y,r=0;r<e.length;r++){if((i=e[r])<s&&++d>0x7fffffff)throw new c(a);if(i===s){for(var w=d,R=36;;){var T=R<=p?1:R>=p+26?26:R-p;if(w<T)break;var E=w-T,j=36-T;f(n,u(S(T+E%j))),w=l(E/j),R+=36}f(n,u(S(w))),p=C(d,_,g===m),d=0,g++}}d++,s++}return h(n,"")};e.exports=function(e){var r,i,n=[],a=g(m(y(e),s,"."),".");for(r=0;r<a.length;r++)f(n,d(o,i=a[r])?"xn--"+_(i):i);return h(n,".")}},"../../node_modules/core-js/internals/string-trim-forced.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-name.js").PROPER,o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/whitespaces.js"),a="​\x85᠎";e.exports=function(e){return o(function(){return!!s[e]()||a[e]()!==a||n&&s[e].name!==e})}},"../../node_modules/core-js/internals/string-trim.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/require-object-coercible.js"),s=i("../../node_modules/core-js/internals/to-string.js"),a=i("../../node_modules/core-js/internals/whitespaces.js"),c=n("".replace),d=RegExp("^["+a+"]+"),l=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(e){return function(r){var i=s(o(r));return 1&e&&(i=c(i,d,"")),2&e&&(i=c(i,l,"$1")),i}};e.exports={start:u(1),end:u(2),trim:u(3)}},"../../node_modules/core-js/internals/symbol-constructor-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-v8-version.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},"../../node_modules/core-js/internals/task.js":function(e,r,i){var n,o,s,a,c=i("../../node_modules/core-js/internals/global-this.js"),d=i("../../node_modules/core-js/internals/function-apply.js"),l=i("../../node_modules/core-js/internals/function-bind-context.js"),u=i("../../node_modules/core-js/internals/is-callable.js"),p=i("../../node_modules/core-js/internals/has-own-property.js"),h=i("../../node_modules/core-js/internals/fails.js"),f=i("../../node_modules/core-js/internals/html.js"),m=i("../../node_modules/core-js/internals/array-slice.js"),g=i("../../node_modules/core-js/internals/document-create-element.js"),y=i("../../node_modules/core-js/internals/validate-arguments-length.js"),b=i("../../node_modules/core-js/internals/environment-is-ios.js"),S=i("../../node_modules/core-js/internals/environment-is-node.js"),C=c.setImmediate,_=c.clearImmediate,w=c.process,R=c.Dispatch,T=c.Function,E=c.MessageChannel,j=c.String,P=0,k={},O="onreadystatechange";h(function(){n=c.location});var I=function(e){if(p(k,e)){var r=k[e];delete k[e],r()}},x=function(e){return function(){I(e)}},A=function(e){I(e.data)},M=function(e){c.postMessage(j(e),n.protocol+"//"+n.host)};C&&_||(C=function(e){y(arguments.length,1);var r=u(e)?e:T(e),i=m(arguments,1);return k[++P]=function(){d(r,void 0,i)},o(P),P},_=function(e){delete k[e]},S?o=function(e){w.nextTick(x(e))}:R&&R.now?o=function(e){R.now(x(e))}:E&&!b?(a=(s=new E).port2,s.port1.onmessage=A,o=l(a.postMessage,a)):c.addEventListener&&u(c.postMessage)&&!c.importScripts&&n&&"file:"!==n.protocol&&!h(M)?(o=M,c.addEventListener("message",A,!1)):o=O in g("script")?function(e){f.appendChild(g("script"))[O]=function(){f.removeChild(this),I(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:C,clear:_}},"../../node_modules/core-js/internals/to-absolute-index.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.max,s=Math.min;e.exports=function(e,r){var i=n(e);return i<0?o(i+r,0):s(i,r)}},"../../node_modules/core-js/internals/to-big-int.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-primitive.js"),o=TypeError;e.exports=function(e){var r=n(e,"number");if("number"==typeof r)throw new o("Can't convert number to bigint");return BigInt(r)}},"../../node_modules/core-js/internals/to-index.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=i("../../node_modules/core-js/internals/to-length.js"),s=RangeError;e.exports=function(e){if(void 0===e)return 0;var r=n(e),i=o(r);if(r!==i)throw new s("Wrong length or index");return i}},"../../node_modules/core-js/internals/to-indexed-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/indexed-object.js"),o=i("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(o(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var r=+e;return r!=r||0===r?0:n(r)}},"../../node_modules/core-js/internals/to-length.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.min;e.exports=function(e){var r=n(e);return r>0?o(r,0x1fffffffffffff):0}},"../../node_modules/core-js/internals/to-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/require-object-coercible.js"),o=Object;e.exports=function(e){return o(n(e))}},"../../node_modules/core-js/internals/to-offset.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-positive-integer.js"),o=RangeError;e.exports=function(e,r){var i=n(e);if(i%r)throw new o("Wrong offset");return i}},"../../node_modules/core-js/internals/to-positive-integer.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=RangeError;e.exports=function(e){var r=n(e);if(r<0)throw new o("The argument can't be less than 0");return r}},"../../node_modules/core-js/internals/to-primitive.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=i("../../node_modules/core-js/internals/is-symbol.js"),a=i("../../node_modules/core-js/internals/get-method.js"),c=i("../../node_modules/core-js/internals/ordinary-to-primitive.js"),d=i("../../node_modules/core-js/internals/well-known-symbol.js"),l=TypeError,u=d("toPrimitive");e.exports=function(e,r){if(!o(e)||s(e))return e;var i,d=a(e,u);if(d){if(void 0===r&&(r="default"),!o(i=n(d,e,r))||s(i))return i;throw new l("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(e,r)}},"../../node_modules/core-js/internals/to-property-key.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-primitive.js"),o=i("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var r=n(e,"string");return o(r)?r:r+""}},"../../node_modules/core-js/internals/to-string-tag-support.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),o={};o[n]="z",e.exports="[object z]"===String(o)},"../../node_modules/core-js/internals/to-string.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/classof.js"),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},"../../node_modules/core-js/internals/to-uint8-clamped.js":function(e){var r=Math.round;e.exports=function(e){var i=r(e);return i<0?0:i>255?255:255&i}},"../../node_modules/core-js/internals/try-to-string.js":function(e){var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/typed-array-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/global-this.js"),s=i("../../node_modules/core-js/internals/function-call.js"),a=i("../../node_modules/core-js/internals/descriptors.js"),c=i("../../node_modules/core-js/internals/typed-array-constructors-require-wrappers.js"),d=i("../../node_modules/core-js/internals/array-buffer-view-core.js"),l=i("../../node_modules/core-js/internals/array-buffer.js"),u=i("../../node_modules/core-js/internals/an-instance.js"),p=i("../../node_modules/core-js/internals/create-property-descriptor.js"),h=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),f=i("../../node_modules/core-js/internals/is-integral-number.js"),m=i("../../node_modules/core-js/internals/to-length.js"),g=i("../../node_modules/core-js/internals/to-index.js"),y=i("../../node_modules/core-js/internals/to-offset.js"),b=i("../../node_modules/core-js/internals/to-uint8-clamped.js"),S=i("../../node_modules/core-js/internals/to-property-key.js"),C=i("../../node_modules/core-js/internals/has-own-property.js"),_=i("../../node_modules/core-js/internals/classof.js"),w=i("../../node_modules/core-js/internals/is-object.js"),R=i("../../node_modules/core-js/internals/is-symbol.js"),T=i("../../node_modules/core-js/internals/object-create.js"),E=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),j=i("../../node_modules/core-js/internals/object-set-prototype-of.js"),P=i("../../node_modules/core-js/internals/object-get-own-property-names.js").f,k=i("../../node_modules/core-js/internals/typed-array-from.js"),O=i("../../node_modules/core-js/internals/array-iteration.js").forEach,I=i("../../node_modules/core-js/internals/set-species.js"),x=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),A=i("../../node_modules/core-js/internals/object-define-property.js"),M=i("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),D=i("../../node_modules/core-js/internals/array-from-constructor-and-list.js"),N=i("../../node_modules/core-js/internals/internal-state.js"),B=i("../../node_modules/core-js/internals/inherit-if-required.js"),L=N.get,F=N.set,z=N.enforce,U=A.f,H=M.f,q=o.RangeError,W=l.ArrayBuffer,V=W.prototype,G=l.DataView,K=d.NATIVE_ARRAY_BUFFER_VIEWS,J=d.TYPED_ARRAY_TAG,X=d.TypedArray,$=d.TypedArrayPrototype,Q=d.isTypedArray,Y="BYTES_PER_ELEMENT",Z="Wrong length",ee=function(e,r){x(e,r,{configurable:!0,get:function(){return L(this)[r]}})},et=function(e){var r;return E(V,e)||"ArrayBuffer"===(r=_(e))||"SharedArrayBuffer"===r},er=function(e,r){return Q(e)&&!R(r)&&r in e&&f(+r)&&r>=0},ei=function(e,r){return er(e,r=S(r))?p(2,e[r]):H(e,r)},en=function(e,r,i){return er(e,r=S(r))&&w(i)&&C(i,"value")&&!C(i,"get")&&!C(i,"set")&&!i.configurable&&(!C(i,"writable")||i.writable)&&(!C(i,"enumerable")||i.enumerable)?(e[r]=i.value,e):U(e,r,i)};a?(K||(M.f=ei,A.f=en,ee($,"buffer"),ee($,"byteOffset"),ee($,"byteLength"),ee($,"length")),n({target:"Object",stat:!0,forced:!K},{getOwnPropertyDescriptor:ei,defineProperty:en}),e.exports=function(e,r,i){var a=e.match(/\d+/)[0]/8,d=e+(i?"Clamped":"")+"Array",l="get"+e,p="set"+e,f=o[d],S=f,C=S&&S.prototype,_={},R=function(e,r){var i=L(e);return i.view[l](r*a+i.byteOffset,!0)},E=function(e,r,n){var o=L(e);o.view[p](r*a+o.byteOffset,i?b(n):n,!0)},x=function(e,r){U(e,r,{get:function(){return R(this,r)},set:function(e){return E(this,r,e)},enumerable:!0})};K?c&&(S=r(function(e,r,i,n){return u(e,C),B(w(r)?et(r)?void 0!==n?new f(r,y(i,a),n):void 0!==i?new f(r,y(i,a)):new f(r):Q(r)?D(S,r):s(k,S,r):new f(g(r)),e,S)}),j&&j(S,X),O(P(f),function(e){e in S||h(S,e,f[e])}),S.prototype=C):(S=r(function(e,r,i,n){u(e,C);var o,c,d,l=0,p=0;if(w(r))if(et(r)){o=r,p=y(i,a);var h=r.byteLength;if(void 0===n){if(h%a||(c=h-p)<0)throw new q(Z)}else if((c=m(n)*a)+p>h)throw new q(Z);d=c/a}else if(Q(r))return D(S,r);else return s(k,S,r);else o=new W(c=(d=g(r))*a);for(F(e,{buffer:o,byteOffset:p,byteLength:c,length:d,view:new G(o)});l<d;)x(e,l++)}),j&&j(S,X),C=S.prototype=T($)),C.constructor!==S&&h(C,"constructor",S),z(C).TypedArrayConstructor=S,J&&h(C,J,d);var A=S!==f;_[d]=S,n({global:!0,constructor:!0,forced:A,sham:!K},_),Y in S||h(S,Y,a),Y in C||h(C,Y,a),I(d)}):e.exports=function(){}},"../../node_modules/core-js/internals/typed-array-constructors-require-wrappers.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/check-correctness-of-iteration.js"),a=i("../../node_modules/core-js/internals/array-buffer-view-core.js").NATIVE_ARRAY_BUFFER_VIEWS,c=n.ArrayBuffer,d=n.Int8Array;e.exports=!a||!o(function(){d(1)})||!o(function(){new d(-1)})||!s(function(e){new d,new d(null),new d(1.5),new d(e)},!0)||o(function(){return 1!==new d(new c(2),1,void 0).length})},"../../node_modules/core-js/internals/typed-array-from.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-context.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/a-constructor.js"),a=i("../../node_modules/core-js/internals/to-object.js"),c=i("../../node_modules/core-js/internals/length-of-array-like.js"),d=i("../../node_modules/core-js/internals/get-iterator.js"),l=i("../../node_modules/core-js/internals/get-iterator-method.js"),u=i("../../node_modules/core-js/internals/is-array-iterator-method.js"),p=i("../../node_modules/core-js/internals/is-big-int-array.js"),h=i("../../node_modules/core-js/internals/array-buffer-view-core.js").aTypedArrayConstructor,f=i("../../node_modules/core-js/internals/to-big-int.js");e.exports=function(e){var r,i,m,g,y,b,S,C,_=s(this),w=a(e),R=arguments.length,T=R>1?arguments[1]:void 0,E=void 0!==T,j=l(w);if(j&&!u(j))for(C=(S=d(w,j)).next,w=[];!(b=o(C,S)).done;)w.push(b.value);for(E&&R>2&&(T=n(T,arguments[2])),i=c(w),g=p(m=new(h(_))(i)),r=0;i>r;r++)y=E?T(w[r],r):w[r],m[r]=g?f(y):+y;return m}},"../../node_modules/core-js/internals/uid.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=0,s=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},"../../node_modules/core-js/internals/url-constructor-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/well-known-symbol.js"),s=i("../../node_modules/core-js/internals/descriptors.js"),a=i("../../node_modules/core-js/internals/is-pure.js"),c=o("iterator");e.exports=!n(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),r=e.searchParams,i=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",r.forEach(function(e,i){r.delete("b"),n+=i+e}),i.delete("a",2),i.delete("b",void 0),a&&(!e.toJSON||!i.has("a",1)||i.has("a",2)||!i.has("a",void 0)||i.has("b"))||!r.size&&(a||!s)||!r.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[c]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})},"../../node_modules/core-js/internals/use-symbol-as-uid.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/symbol-constructor-detection.js")&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/fails.js");e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/validate-arguments-length.js":function(e){var r=TypeError;e.exports=function(e,i){if(e<i)throw new r("Not enough arguments");return e}},"../../node_modules/core-js/internals/weak-map-basic-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=n.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},"../../node_modules/core-js/internals/well-known-symbol.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/shared.js"),s=i("../../node_modules/core-js/internals/has-own-property.js"),a=i("../../node_modules/core-js/internals/uid.js"),c=i("../../node_modules/core-js/internals/symbol-constructor-detection.js"),d=i("../../node_modules/core-js/internals/use-symbol-as-uid.js"),l=n.Symbol,u=o("wks"),p=d?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(u,e)||(u[e]=c&&s(l,e)?l[e]:p("Symbol."+e)),u[e]}},"../../node_modules/core-js/internals/whitespaces.js":function(e){e.exports=" \n\v\f\r \xa0               \u2028\u2029\uFEFF"},"../../node_modules/core-js/modules/es.array-buffer.slice.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this-clause.js"),s=i("../../node_modules/core-js/internals/fails.js"),a=i("../../node_modules/core-js/internals/array-buffer.js"),c=i("../../node_modules/core-js/internals/an-object.js"),d=i("../../node_modules/core-js/internals/to-absolute-index.js"),l=i("../../node_modules/core-js/internals/to-length.js"),u=a.ArrayBuffer,p=a.DataView,h=p.prototype,f=o(u.prototype.slice),m=o(h.getUint8),g=o(h.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:s(function(){return!new u(2).slice(1,void 0).byteLength})},{slice:function(e,r){if(f&&void 0===r)return f(c(this),e);for(var i=c(this).byteLength,n=d(e,i),o=d(void 0===r?i:r,i),s=new u(l(o-n)),a=new p(this),h=new p(s),y=0;n<o;)g(h,y++,m(a,n++));return s}})},"../../node_modules/core-js/modules/es.array.includes.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/array-includes.js").includes,s=i("../../node_modules/core-js/internals/fails.js"),a=i("../../node_modules/core-js/internals/add-to-unscopables.js");n({target:"Array",proto:!0,forced:s(function(){return![,].includes()})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},"../../node_modules/core-js/modules/es.array.iterator.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-indexed-object.js"),o=i("../../node_modules/core-js/internals/add-to-unscopables.js"),s=i("../../node_modules/core-js/internals/iterators.js"),a=i("../../node_modules/core-js/internals/internal-state.js"),c=i("../../node_modules/core-js/internals/object-define-property.js").f,d=i("../../node_modules/core-js/internals/iterator-define.js"),l=i("../../node_modules/core-js/internals/create-iter-result-object.js"),u=i("../../node_modules/core-js/internals/is-pure.js"),p=i("../../node_modules/core-js/internals/descriptors.js"),h="Array Iterator",f=a.set,m=a.getterFor(h);e.exports=d(Array,"Array",function(e,r){f(this,{type:h,target:n(e),index:0,kind:r})},function(){var e=m(this),r=e.target,i=e.index++;if(!r||i>=r.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(i,!1);case"values":return l(r[i],!1)}return l([i,r[i]],!1)},"values");var g=s.Arguments=s.Array;if(o("keys"),o("values"),o("entries"),!u&&p&&"values"!==g.name)try{c(g,"name",{value:"values"})}catch(e){}},"../../node_modules/core-js/modules/es.array.reduce.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/array-reduce.js").left,s=i("../../node_modules/core-js/internals/array-method-is-strict.js"),a=i("../../node_modules/core-js/internals/environment-v8-version.js");n({target:"Array",proto:!0,forced:!i("../../node_modules/core-js/internals/environment-is-node.js")&&a>79&&a<83||!s("reduce")},{reduce:function(e){var r=arguments.length;return o(this,e,r,r>1?arguments[1]:void 0)}})},"../../node_modules/core-js/modules/es.array.reverse.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/is-array.js"),a=o([].reverse),c=[1,2];n({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return s(this)&&(this.length=this.length),a(this)}})},"../../node_modules/core-js/modules/es.object.from-entries.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/iterate.js"),s=i("../../node_modules/core-js/internals/create-property.js");n({target:"Object",stat:!0},{fromEntries:function(e){var r={};return o(e,function(e,i){s(r,e,i)},{AS_ENTRIES:!0}),r}})},"../../node_modules/core-js/modules/es.object.has-own.js":function(e,r,i){i("../../node_modules/core-js/internals/export.js")({target:"Object",stat:!0},{hasOwn:i("../../node_modules/core-js/internals/has-own-property.js")})},"../../node_modules/core-js/modules/es.promise.finally.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/is-pure.js"),s=i("../../node_modules/core-js/internals/promise-native-constructor.js"),a=i("../../node_modules/core-js/internals/fails.js"),c=i("../../node_modules/core-js/internals/get-built-in.js"),d=i("../../node_modules/core-js/internals/is-callable.js"),l=i("../../node_modules/core-js/internals/species-constructor.js"),u=i("../../node_modules/core-js/internals/promise-resolve.js"),p=i("../../node_modules/core-js/internals/define-built-in.js"),h=s&&s.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!s&&a(function(){h.finally.call({then:function(){}},function(){})})},{finally:function(e){var r=l(this,c("Promise")),i=d(e);return this.then(i?function(i){return u(r,e()).then(function(){return i})}:e,i?function(i){return u(r,e()).then(function(){throw i})}:e)}}),!o&&d(s)){var f=c("Promise").prototype.finally;h.finally!==f&&p(h,"finally",f,{unsafe:!0})}},"../../node_modules/core-js/modules/es.regexp.exec.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/regexp-exec.js");n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},"../../node_modules/core-js/modules/es.string.from-code-point.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/to-absolute-index.js"),a=RangeError,c=String.fromCharCode,d=String.fromCodePoint,l=o([].join);n({target:"String",stat:!0,arity:1,forced:!!d&&1!==d.length},{fromCodePoint:function(e){for(var r,i=[],n=arguments.length,o=0;n>o;){if(r=+arguments[o++],s(r,1114111)!==r)throw new a(r+" is not a valid code point");i[o]=r<65536?c(r):c(((r-=65536)>>10)+55296,r%1024+56320)}return l(i,"")}})},"../../node_modules/core-js/modules/es.string.iterator.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/string-multibyte.js").charAt,o=i("../../node_modules/core-js/internals/to-string.js"),s=i("../../node_modules/core-js/internals/internal-state.js"),a=i("../../node_modules/core-js/internals/iterator-define.js"),c=i("../../node_modules/core-js/internals/create-iter-result-object.js"),d="String Iterator",l=s.set,u=s.getterFor(d);a(String,"String",function(e){l(this,{type:d,string:o(e),index:0})},function(){var e,r=u(this),i=r.string,o=r.index;return o>=i.length?c(void 0,!0):(e=n(i,o),r.index+=e.length,c(e,!1))})},"../../node_modules/core-js/modules/es.string.replace.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-apply.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/function-uncurry-this.js"),a=i("../../node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),c=i("../../node_modules/core-js/internals/fails.js"),d=i("../../node_modules/core-js/internals/an-object.js"),l=i("../../node_modules/core-js/internals/is-callable.js"),u=i("../../node_modules/core-js/internals/is-object.js"),p=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),h=i("../../node_modules/core-js/internals/to-length.js"),f=i("../../node_modules/core-js/internals/to-string.js"),m=i("../../node_modules/core-js/internals/require-object-coercible.js"),g=i("../../node_modules/core-js/internals/advance-string-index.js"),y=i("../../node_modules/core-js/internals/get-method.js"),b=i("../../node_modules/core-js/internals/get-substitution.js"),S=i("../../node_modules/core-js/internals/regexp-get-flags.js"),C=i("../../node_modules/core-js/internals/regexp-exec-abstract.js"),_=i("../../node_modules/core-js/internals/well-known-symbol.js")("replace"),w=Math.max,R=Math.min,T=s([].concat),E=s([].push),j=s("".indexOf),P=s("".slice),k="$0"==="a".replace(/./,"$0"),O=!!/./[_]&&""===/./[_]("a","$0");a("replace",function(e,r,i){var s=O?"$":"$0";return[function(e,i){var n=m(this),s=u(e)?y(e,_):void 0;return s?o(s,e,n,i):o(r,f(n),e,i)},function(e,o){var a=d(this),c=f(e);if("string"==typeof o&&-1===j(o,s)&&-1===j(o,"$<")){var u=i(r,a,c,o);if(u.done)return u.value}var m=l(o);m||(o=f(o));var y=f(S(a)),_=-1!==j(y,"g");_&&(M=-1!==j(y,"u"),a.lastIndex=0);for(var k=[];null!==(N=C(a,c))&&(E(k,N),_);){;""===f(N[0])&&(a.lastIndex=g(c,h(a.lastIndex),M))}for(var O="",I=0,x=0;x<k.length;x++){for(var A,M,D,N=k[x],B=f(N[0]),L=w(R(p(N.index),c.length),0),F=[],z=1;z<N.length;z++)E(F,void 0===(A=N[z])?A:String(A));var U=N.groups;if(m){var H=T([B],F,L,c);void 0!==U&&E(H,U),D=f(n(o,void 0,H))}else D=b(B,c,L,F,U,o);L>=I&&(O+=P(c,I,L)+D,I=L+B.length)}return O+P(c,I)}]},!!c(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!k||O)},"../../node_modules/core-js/modules/es.string.trim.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/string-trim.js").trim;n({target:"String",proto:!0,forced:i("../../node_modules/core-js/internals/string-trim-forced.js")("trim")},{trim:function(){return o(this)}})},"../../node_modules/core-js/modules/es.symbol.description.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/descriptors.js"),s=i("../../node_modules/core-js/internals/global-this.js"),a=i("../../node_modules/core-js/internals/function-uncurry-this.js"),c=i("../../node_modules/core-js/internals/has-own-property.js"),d=i("../../node_modules/core-js/internals/is-callable.js"),l=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),u=i("../../node_modules/core-js/internals/to-string.js"),p=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),h=i("../../node_modules/core-js/internals/copy-constructor-properties.js"),f=s.Symbol,m=f&&f.prototype;if(o&&d(f)&&(!("description"in m)||void 0!==f().description)){var g={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),r=l(m,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[r]=!0),r};h(y,f),y.prototype=m,m.constructor=y;var b="Symbol(description detection)"===String(f("description detection")),S=a(m.valueOf),C=a(m.toString),_=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),R=a("".slice);p(m,"description",{configurable:!0,get:function(){var e=S(this);if(c(g,e))return"";var r=C(e),i=b?R(r,7,-1):w(r,_,"$1");return""===i?void 0:i}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},"../../node_modules/core-js/modules/es.typed-array.fill.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/array-buffer-view-core.js"),o=i("../../node_modules/core-js/internals/array-fill.js"),s=i("../../node_modules/core-js/internals/to-big-int.js"),a=i("../../node_modules/core-js/internals/classof.js"),c=i("../../node_modules/core-js/internals/function-call.js"),d=i("../../node_modules/core-js/internals/function-uncurry-this.js"),l=i("../../node_modules/core-js/internals/fails.js"),u=n.aTypedArray,p=n.exportTypedArrayMethod,h=d("".slice);p("fill",function(e){var r=arguments.length;return u(this),c(o,this,"Big"===h(a(this),0,3)?s(e):+e,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)},l(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))},"../../node_modules/core-js/modules/es.typed-array.set.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/array-buffer-view-core.js"),a=i("../../node_modules/core-js/internals/length-of-array-like.js"),c=i("../../node_modules/core-js/internals/to-offset.js"),d=i("../../node_modules/core-js/internals/to-object.js"),l=i("../../node_modules/core-js/internals/fails.js"),u=n.RangeError,p=n.Int8Array,h=p&&p.prototype,f=h&&h.set,m=s.aTypedArray,g=s.exportTypedArrayMethod,y=!l(function(){var e=new Uint8ClampedArray(2);return o(f,e,{length:1,0:3},1),3!==e[1]}),b=y&&s.NATIVE_ARRAY_BUFFER_VIEWS&&l(function(){var e=new p(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});g("set",function(e){m(this);var r=c(arguments.length>1?arguments[1]:void 0,1),i=d(e);if(y)return o(f,this,i,r);var n=this.length,s=a(i),l=0;if(s+r>n)throw new u("Wrong length");for(;l<s;)this[r+l]=i[l++]},!y||b)},"../../node_modules/core-js/modules/es.typed-array.sort.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this-clause.js"),s=i("../../node_modules/core-js/internals/fails.js"),a=i("../../node_modules/core-js/internals/a-callable.js"),c=i("../../node_modules/core-js/internals/array-sort.js"),d=i("../../node_modules/core-js/internals/array-buffer-view-core.js"),l=i("../../node_modules/core-js/internals/environment-ff-version.js"),u=i("../../node_modules/core-js/internals/environment-is-ie-or-edge.js"),p=i("../../node_modules/core-js/internals/environment-v8-version.js"),h=i("../../node_modules/core-js/internals/environment-webkit-version.js"),f=d.aTypedArray,m=d.exportTypedArrayMethod,g=n.Uint16Array,y=g&&o(g.prototype.sort),b=!!y&&!(s(function(){y(new g(2),null)})&&s(function(){y(new g(2),{})})),S=!!y&&!s(function(){if(p)return p<74;if(l)return l<67;if(u)return!0;if(h)return h<602;var e,r,i=new g(516),n=Array(516);for(e=0;e<516;e++)r=e%4,i[e]=515-e,n[e]=e-2*r+3;for(y(i,function(e,r){return(e/4|0)-(r/4|0)}),e=0;e<516;e++)if(i[e]!==n[e])return!0});m("sort",function(e){return(void 0!==e&&a(e),S)?y(this,e):c(f(this),function(r,i){return void 0!==e?+e(r,i)||0:i!=i?-1:r!=r?1:0===r&&0===i?1/r>0&&1/i<0?1:-1:r>i})},!S||b)},"../../node_modules/core-js/modules/es.typed-array.uint8-array.js":function(e,r,i){i("../../node_modules/core-js/internals/typed-array-constructor.js")("Uint8",function(e){return function(r,i,n){return e(this,r,i,n)}})},"../../node_modules/core-js/modules/web.dom-collections.iterator.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/dom-iterables.js"),s=i("../../node_modules/core-js/internals/dom-token-list-prototype.js"),a=i("../../node_modules/core-js/modules/es.array.iterator.js"),c=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),d=i("../../node_modules/core-js/internals/set-to-string-tag.js"),l=i("../../node_modules/core-js/internals/well-known-symbol.js")("iterator"),u=a.values,p=function(e,r){if(e){if(e[l]!==u)try{c(e,l,u)}catch(r){e[l]=u}if(d(e,r,!0),o[r]){for(var i in a)if(e[i]!==a[i])try{c(e,i,a[i])}catch(r){e[i]=a[i]}}}};for(var h in o)p(n[h]&&n[h].prototype,h);p(s,"DOMTokenList")},"../../node_modules/core-js/modules/web.queue-microtask.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/global-this.js"),s=i("../../node_modules/core-js/internals/microtask.js"),a=i("../../node_modules/core-js/internals/a-callable.js"),c=i("../../node_modules/core-js/internals/validate-arguments-length.js"),d=i("../../node_modules/core-js/internals/fails.js"),l=i("../../node_modules/core-js/internals/descriptors.js");n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:d(function(){return l&&1!==Object.getOwnPropertyDescriptor(o,"queueMicrotask").value.length})},{queueMicrotask:function(e){c(arguments.length,1),s(a(e))}})},"../../node_modules/core-js/modules/web.url-search-params.constructor.js":function(e,r,i){i("../../node_modules/core-js/modules/es.array.iterator.js"),i("../../node_modules/core-js/modules/es.string.from-code-point.js");var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/global-this.js"),s=i("../../node_modules/core-js/internals/safe-get-built-in.js"),a=i("../../node_modules/core-js/internals/get-built-in.js"),c=i("../../node_modules/core-js/internals/function-call.js"),d=i("../../node_modules/core-js/internals/function-uncurry-this.js"),l=i("../../node_modules/core-js/internals/descriptors.js"),u=i("../../node_modules/core-js/internals/url-constructor-detection.js"),p=i("../../node_modules/core-js/internals/define-built-in.js"),h=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),f=i("../../node_modules/core-js/internals/define-built-ins.js"),m=i("../../node_modules/core-js/internals/set-to-string-tag.js"),g=i("../../node_modules/core-js/internals/iterator-create-constructor.js"),y=i("../../node_modules/core-js/internals/internal-state.js"),b=i("../../node_modules/core-js/internals/an-instance.js"),S=i("../../node_modules/core-js/internals/is-callable.js"),C=i("../../node_modules/core-js/internals/has-own-property.js"),_=i("../../node_modules/core-js/internals/function-bind-context.js"),w=i("../../node_modules/core-js/internals/classof.js"),R=i("../../node_modules/core-js/internals/an-object.js"),T=i("../../node_modules/core-js/internals/is-object.js"),E=i("../../node_modules/core-js/internals/to-string.js"),j=i("../../node_modules/core-js/internals/object-create.js"),P=i("../../node_modules/core-js/internals/create-property-descriptor.js"),k=i("../../node_modules/core-js/internals/get-iterator.js"),O=i("../../node_modules/core-js/internals/get-iterator-method.js"),I=i("../../node_modules/core-js/internals/create-iter-result-object.js"),x=i("../../node_modules/core-js/internals/validate-arguments-length.js"),A=i("../../node_modules/core-js/internals/well-known-symbol.js"),M=i("../../node_modules/core-js/internals/array-sort.js"),D=A("iterator"),N="URLSearchParams",B=N+"Iterator",L=y.set,F=y.getterFor(N),z=y.getterFor(B),U=s("fetch"),H=s("Request"),q=s("Headers"),W=H&&H.prototype,V=q&&q.prototype,G=o.TypeError,K=o.encodeURIComponent,J=String.fromCharCode,X=a("String","fromCodePoint"),$=parseInt,Q=d("".charAt),Y=d([].join),Z=d([].push),ee=d("".replace),et=d([].shift),er=d([].splice),ei=d("".split),en=d("".slice),eo=d(/./.exec),es=/\+/g,ea=/^[0-9a-f]+$/i,ec=function(e,r){var i=en(e,r,r+2);return eo(ea,i)?$(i,16):NaN},ed=function(e){for(var r=0,i=128;i>0&&(e&i)!=0;i>>=1)r++;return r},el=function(e){var r=null;switch(e.length){case 1:r=e[0];break;case 2:r=(31&e[0])<<6|63&e[1];break;case 3:r=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:r=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return r>1114111?null:r},eu=function(e){for(var r=(e=ee(e,es," ")).length,i="",n=0;n<r;){var o=Q(e,n);if("%"===o){if("%"===Q(e,n+1)||n+3>r){i+="%",n++;continue}var s=ec(e,n+1);if(s!=s){i+=o,n++;continue}n+=2;var a=ed(s);if(0===a)o=J(s);else{if(1===a||a>4){i+="�",n++;continue}for(var c=[s],d=1;d<a&&!(++n+3>r)&&"%"===Q(e,n);){var l=ec(e,n+1);if(l!=l){n+=3;break}if(l>191||l<128)break;Z(c,l),n+=2,d++}if(c.length!==a){i+="�";continue}var u=el(c);null===u?i+="�":o=X(u)}}i+=o,n++}return i},ep=/[!'()~]|%20/g,eh={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ef=function(e){return eh[e]},ev=function(e){return ee(K(e),ep,ef)},em=g(function(e,r){L(this,{type:B,target:F(e).entries,index:0,kind:r})},N,function(){var e=z(this),r=e.target,i=e.index++;if(!r||i>=r.length)return e.target=null,I(void 0,!0);var n=r[i];switch(e.kind){case"keys":return I(n.key,!1);case"values":return I(n.value,!1)}return I([n.key,n.value],!1)},!0),eg=function(e){this.entries=[],this.url=null,void 0!==e&&(T(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Q(e,0)?en(e,1):e:E(e)))};eg.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var r,i,n,o,s,a,d,l=this.entries,u=O(e);if(u)for(i=(r=k(e,u)).next;!(n=c(i,r)).done;){if((a=c(s=(o=k(R(n.value))).next,o)).done||(d=c(s,o)).done||!c(s,o).done)throw new G("Expected sequence with length 2");Z(l,{key:E(a.value),value:E(d.value)})}else for(var p in e)C(e,p)&&Z(l,{key:p,value:E(e[p])})},parseQuery:function(e){if(e)for(var r,i,n=this.entries,o=ei(e,"&"),s=0;s<o.length;)(r=o[s++]).length&&Z(n,{key:eu(et(i=ei(r,"="))),value:eu(Y(i,"="))})},serialize:function(){for(var e,r=this.entries,i=[],n=0;n<r.length;)Z(i,ev((e=r[n++]).key)+"="+ev(e.value));return Y(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ey=function(){b(this,eb);var e=arguments.length>0?arguments[0]:void 0,r=L(this,new eg(e));l||(this.size=r.entries.length)},eb=ey.prototype;if(f(eb,{append:function(e,r){var i=F(this);x(arguments.length,2),Z(i.entries,{key:E(e),value:E(r)}),!l&&this.length++,i.updateURL()},delete:function(e){for(var r=F(this),i=x(arguments.length,1),n=r.entries,o=E(e),s=i<2?void 0:arguments[1],a=void 0===s?s:E(s),c=0;c<n.length;){var d=n[c];if(d.key===o&&(void 0===a||d.value===a)){if(er(n,c,1),void 0!==a)break}else c++}l||(this.size=n.length),r.updateURL()},get:function(e){var r=F(this).entries;x(arguments.length,1);for(var i=E(e),n=0;n<r.length;n++)if(r[n].key===i)return r[n].value;return null},getAll:function(e){var r=F(this).entries;x(arguments.length,1);for(var i=E(e),n=[],o=0;o<r.length;o++)r[o].key===i&&Z(n,r[o].value);return n},has:function(e){for(var r=F(this).entries,i=x(arguments.length,1),n=E(e),o=i<2?void 0:arguments[1],s=void 0===o?o:E(o),a=0;a<r.length;){var c=r[a++];if(c.key===n&&(void 0===s||c.value===s))return!0}return!1},set:function(e,r){var i,n=F(this);x(arguments.length,1);for(var o=n.entries,s=!1,a=E(e),c=E(r),d=0;d<o.length;d++)(i=o[d]).key===a&&(s?er(o,d--,1):(s=!0,i.value=c));s||Z(o,{key:a,value:c}),l||(this.size=o.length),n.updateURL()},sort:function(){var e=F(this);M(e.entries,function(e,r){return e.key>r.key?1:-1}),e.updateURL()},forEach:function(e){for(var r,i=F(this).entries,n=_(e,arguments.length>1?arguments[1]:void 0),o=0;o<i.length;)n((r=i[o++]).value,r.key,this)},keys:function(){return new em(this,"keys")},values:function(){return new em(this,"values")},entries:function(){return new em(this,"entries")}},{enumerable:!0}),p(eb,D,eb.entries,{name:"entries"}),p(eb,"toString",function(){return F(this).serialize()},{enumerable:!0}),l&&h(eb,"size",{get:function(){return F(this).entries.length},configurable:!0,enumerable:!0}),m(ey,N),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:ey}),!u&&S(q)){var eS=d(V.has),eC=d(V.set),e_=function(e){if(T(e)){var r,i=e.body;if(w(i)===N)return eS(r=e.headers?new q(e.headers):new q,"content-type")||eC(r,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),j(e,{body:P(0,E(i)),headers:P(0,r)})}return e};if(S(U)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return U(e,arguments.length>1?e_(arguments[1]):{})}}),S(H)){var ew=function(e){return b(this,W),new H(e,arguments.length>1?e_(arguments[1]):{})};W.constructor=ew,ew.prototype=W,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ew})}}e.exports={URLSearchParams:ey,getState:F}},"../../node_modules/core-js/modules/web.url-search-params.js":function(e,r,i){i("../../node_modules/core-js/modules/web.url-search-params.constructor.js")},"../../node_modules/core-js/modules/web.url.constructor.js":function(e,r,i){i("../../node_modules/core-js/modules/es.string.iterator.js");var n,o=i("../../node_modules/core-js/internals/export.js"),s=i("../../node_modules/core-js/internals/descriptors.js"),a=i("../../node_modules/core-js/internals/url-constructor-detection.js"),c=i("../../node_modules/core-js/internals/global-this.js"),d=i("../../node_modules/core-js/internals/function-bind-context.js"),l=i("../../node_modules/core-js/internals/function-uncurry-this.js"),u=i("../../node_modules/core-js/internals/define-built-in.js"),p=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),h=i("../../node_modules/core-js/internals/an-instance.js"),f=i("../../node_modules/core-js/internals/has-own-property.js"),m=i("../../node_modules/core-js/internals/object-assign.js"),g=i("../../node_modules/core-js/internals/array-from.js"),y=i("../../node_modules/core-js/internals/array-slice.js"),b=i("../../node_modules/core-js/internals/string-multibyte.js").codeAt,S=i("../../node_modules/core-js/internals/string-punycode-to-ascii.js"),C=i("../../node_modules/core-js/internals/to-string.js"),_=i("../../node_modules/core-js/internals/set-to-string-tag.js"),w=i("../../node_modules/core-js/internals/validate-arguments-length.js"),R=i("../../node_modules/core-js/modules/web.url-search-params.constructor.js"),T=i("../../node_modules/core-js/internals/internal-state.js"),E=T.set,j=T.getterFor("URL"),P=R.URLSearchParams,k=R.getState,O=c.URL,I=c.TypeError,x=c.parseInt,A=Math.floor,M=Math.pow,D=l("".charAt),N=l(/./.exec),B=l([].join),L=l(1.1.toString),F=l([].pop),z=l([].push),U=l("".replace),H=l([].shift),q=l("".split),W=l("".slice),V=l("".toLowerCase),G=l([].unshift),K="Invalid scheme",J="Invalid host",X="Invalid port",$=/[a-z]/i,Q=/[\d+-.a-z]/i,Y=/\d/,Z=/^0x/i,ee=/^[0-7]+$/,et=/^\d+$/,er=/^[\da-f]+$/i,ei=/[\0\t\n\r #%/:<>?@[\\\]^|]/,en=/[\0\t\n\r #/:<>?@[\\\]^|]/,eo=/^[\u0000-\u0020]+/,es=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ea=/[\t\n\r]/g,ec=function(e){var r,i,n,o,s,a,c,d=q(e,".");if(d.length&&""===d[d.length-1]&&d.length--,(r=d.length)>4)return e;for(n=0,i=[];n<r;n++){if(""===(o=d[n]))return e;if(s=10,o.length>1&&"0"===D(o,0)&&(s=N(Z,o)?16:8,o=W(o,8===s?1:2)),""===o)a=0;else{if(!N(10===s?et:8===s?ee:er,o))return e;a=x(o,s)}z(i,a)}for(n=0;n<r;n++)if(a=i[n],n===r-1){if(a>=M(256,5-r))return null}else if(a>255)return null;for(n=0,c=F(i);n<i.length;n++)c+=i[n]*M(256,3-n);return c},ed=function(e){var r,i,n,o,s,a,c,d=[0,0,0,0,0,0,0,0],l=0,u=null,p=0,h=function(){return D(e,p)};if(":"===h()){if(":"!==D(e,1))return;p+=2,u=++l}for(;h();){if(8===l)return;if(":"===h()){if(null!==u)return;p++,u=++l;continue}for(r=i=0;i<4&&N(er,h());)r=16*r+x(h(),16),p++,i++;if("."===h()){if(0===i||(p-=i,l>6))return;for(n=0;h();){if(o=null,n>0)if("."!==h()||!(n<4))return;else p++;if(!N(Y,h()))return;for(;N(Y,h());){if(s=x(h(),10),null===o)o=s;else{if(0===o)return;o=10*o+s}if(o>255)return;p++}d[l]=256*d[l]+o,(2==++n||4===n)&&l++}if(4!==n)return;break}if(":"===h()){if(p++,!h())return}else if(h())return;d[l++]=r}if(null!==u)for(a=l-u,l=7;0!==l&&a>0;)c=d[l],d[l--]=d[u+a-1],d[u+--a]=c;else if(8!==l)return;return d},el=function(e){for(var r=null,i=1,n=null,o=0,s=0;s<8;s++)0!==e[s]?(o>i&&(r=n,i=o),n=null,o=0):(null===n&&(n=s),++o);return o>i?n:r},eu=function(e){var r,i,n,o;if("number"==typeof e){for(i=0,r=[];i<4;i++)G(r,e%256),e=A(e/256);return B(r,".")}if("object"==typeof e){for(i=0,r="",n=el(e);i<8;i++)(!o||0!==e[i])&&(o&&(o=!1),n===i?(r+=i?":":"::",o=!0):(r+=L(e[i],16),i<7&&(r+=":")));return"["+r+"]"}return e},ep={},eh=m({},ep,{" ":1,'"':1,"<":1,">":1,"`":1}),ef=m({},eh,{"#":1,"?":1,"{":1,"}":1}),ev=m({},ef,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),em=function(e,r){var i=b(e,0);return i>32&&i<127&&!f(r,e)?e:encodeURIComponent(e)},eg={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ey=function(e,r){var i;return 2===e.length&&N($,D(e,0))&&(":"===(i=D(e,1))||!r&&"|"===i)},eb=function(e){var r;return e.length>1&&ey(W(e,0,2))&&(2===e.length||"/"===(r=D(e,2))||"\\"===r||"?"===r||"#"===r)},eS={},eC={},e_={},ew={},eR={},eT={},eE={},ej={},eP={},ek={},eO={},eI={},ex={},eA={},eM={},eD={},eN={},eB={},eL={},eF={},ez={},eU=function(e,r,i){var n,o,s,a=C(e);if(r){if(o=this.parse(a))throw new I(o);this.searchParams=null}else{if(void 0!==i&&(n=new eU(i,!0)),o=this.parse(a,null,n))throw new I(o);(s=k(new P)).bindURL(this),this.searchParams=s}};eU.prototype={type:"URL",parse:function(e,r,i){var o=r||eS,s=0,a="",c=!1,d=!1,l=!1;for(e=C(e),r||(this.scheme="",this.username="",this.password="",this.host=null,this.port=null,this.path=[],this.query=null,this.fragment=null,this.cannotBeABaseURL=!1,e=U(e,eo,""),e=U(e,es,"$1")),u=g(e=U(e,ea,""));s<=u.length;){switch(p=u[s],o){case eS:if(p&&N($,p))a+=V(p),o=eC;else{if(r)return K;o=e_;continue}break;case eC:if(p&&(N(Q,p)||"+"===p||"-"===p||"."===p))a+=V(p);else if(":"===p){if(r&&(this.isSpecial()!==f(eg,a)||"file"===a&&(this.includesCredentials()||null!==this.port)||"file"===this.scheme&&!this.host))return;if(this.scheme=a,r){this.isSpecial()&&eg[this.scheme]===this.port&&(this.port=null);return}a="","file"===this.scheme?o=eA:this.isSpecial()&&i&&i.scheme===this.scheme?o=ew:this.isSpecial()?o=ej:"/"===u[s+1]?(o=eR,s++):(this.cannotBeABaseURL=!0,z(this.path,""),o=eL)}else{if(r)return K;a="",o=e_,s=0;continue}break;case e_:if(!i||i.cannotBeABaseURL&&"#"!==p)return K;if(i.cannotBeABaseURL&&"#"===p){this.scheme=i.scheme,this.path=y(i.path),this.query=i.query,this.fragment="",this.cannotBeABaseURL=!0,o=ez;break}o="file"===i.scheme?eA:eT;continue;case ew:if("/"===p&&"/"===u[s+1])o=eP,s++;else{o=eT;continue}break;case eR:if("/"===p){o=ek;break}o=eB;continue;case eT:if(this.scheme=i.scheme,p===n)this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=y(i.path),this.query=i.query;else if("/"===p||"\\"===p&&this.isSpecial())o=eE;else if("?"===p)this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=y(i.path),this.query="",o=eF;else if("#"===p)this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=y(i.path),this.query=i.query,this.fragment="",o=ez;else{this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=y(i.path),this.path.length--,o=eB;continue}break;case eE:if(this.isSpecial()&&("/"===p||"\\"===p))o=eP;else if("/"===p)o=ek;else{this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,o=eB;continue}break;case ej:if(o=eP,"/"!==p||"/"!==D(a,s+1))continue;s++;break;case eP:if("/"!==p&&"\\"!==p){o=ek;continue}break;case ek:if("@"===p){c&&(a="%40"+a),c=!0,h=g(a);for(var u,p,h,m,b,S,_=0;_<h.length;_++){var w=h[_];if(":"===w&&!l){l=!0;continue}var R=em(w,ev);l?this.password+=R:this.username+=R}a=""}else if(p===n||"/"===p||"?"===p||"#"===p||"\\"===p&&this.isSpecial()){if(c&&""===a)return"Invalid authority";s-=g(a).length+1,a="",o=eO}else a+=p;break;case eO:case eI:if(r&&"file"===this.scheme){o=eD;continue}if(":"!==p||d)if(p===n||"/"===p||"?"===p||"#"===p||"\\"===p&&this.isSpecial()){if(this.isSpecial()&&""===a)return J;if(r&&""===a&&(this.includesCredentials()||null!==this.port))return;if(m=this.parseHost(a))return m;if(a="",o=eN,r)return;continue}else"["===p?d=!0:"]"===p&&(d=!1),a+=p;else{if(""===a)return J;if(m=this.parseHost(a))return m;if(a="",o=ex,r===eI)return}break;case ex:if(N(Y,p))a+=p;else{if(!(p===n||"/"===p||"?"===p||"#"===p||"\\"===p&&this.isSpecial())&&!r)return X;if(""!==a){var T=x(a,10);if(T>65535)return X;this.port=this.isSpecial()&&T===eg[this.scheme]?null:T,a=""}if(r)return;o=eN;continue}break;case eA:if(this.scheme="file","/"===p||"\\"===p)o=eM;else if(i&&"file"===i.scheme)switch(p){case n:this.host=i.host,this.path=y(i.path),this.query=i.query;break;case"?":this.host=i.host,this.path=y(i.path),this.query="",o=eF;break;case"#":this.host=i.host,this.path=y(i.path),this.query=i.query,this.fragment="",o=ez;break;default:eb(B(y(u,s),""))||(this.host=i.host,this.path=y(i.path),this.shortenPath()),o=eB;continue}else{o=eB;continue}break;case eM:if("/"===p||"\\"===p){o=eD;break}i&&"file"===i.scheme&&!eb(B(y(u,s),""))&&(ey(i.path[0],!0)?z(this.path,i.path[0]):this.host=i.host),o=eB;continue;case eD:if(p===n||"/"===p||"\\"===p||"?"===p||"#"===p){if(!r&&ey(a))o=eB;else if(""===a){if(this.host="",r)return;o=eN}else{if(m=this.parseHost(a))return m;if("localhost"===this.host&&(this.host=""),r)return;a="",o=eN}continue}a+=p;break;case eN:if(this.isSpecial()){if(o=eB,"/"!==p&&"\\"!==p)continue}else if(r||"?"!==p)if(r||"#"!==p){if(p!==n&&(o=eB,"/"!==p))continue}else this.fragment="",o=ez;else this.query="",o=eF;break;case eB:if(p===n||"/"===p||"\\"===p&&this.isSpecial()||!r&&("?"===p||"#"===p)){if(".."===(b=V(b=a))||"%2e."===b||".%2e"===b||"%2e%2e"===b?(this.shortenPath(),"/"===p||"\\"===p&&this.isSpecial()||z(this.path,"")):"."===(S=a)||"%2e"===V(S)?"/"===p||"\\"===p&&this.isSpecial()||z(this.path,""):("file"===this.scheme&&!this.path.length&&ey(a)&&(this.host&&(this.host=""),a=D(a,0)+":"),z(this.path,a)),a="","file"===this.scheme&&(p===n||"?"===p||"#"===p))for(;this.path.length>1&&""===this.path[0];)H(this.path);"?"===p?(this.query="",o=eF):"#"===p&&(this.fragment="",o=ez)}else a+=em(p,ef);break;case eL:"?"===p?(this.query="",o=eF):"#"===p?(this.fragment="",o=ez):p!==n&&(this.path[0]+=em(p,ep));break;case eF:r||"#"!==p?p!==n&&("'"===p&&this.isSpecial()?this.query+="%27":"#"===p?this.query+="%23":this.query+=em(p,ep)):(this.fragment="",o=ez);break;case ez:p!==n&&(this.fragment+=em(p,eh))}s++}},parseHost:function(e){var r,i,n;if("["===D(e,0)){if("]"!==D(e,e.length-1)||!(r=ed(W(e,1,-1))))return J;this.host=r}else if(this.isSpecial()){if(N(ei,e=S(e))||null===(r=ec(e)))return J;this.host=r}else{if(N(en,e))return J;for(n=0,r="",i=g(e);n<i.length;n++)r+=em(i[n],ep);this.host=r}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return f(eg,this.scheme)},shortenPath:function(){var e=this.path,r=e.length;r&&("file"!==this.scheme||1!==r||!ey(e[0],!0))&&e.length--},serialize:function(){var e=this.scheme,r=this.username,i=this.password,n=this.host,o=this.port,s=this.path,a=this.query,c=this.fragment,d=e+":";return null!==n?(d+="//",this.includesCredentials()&&(d+=r+(i?":"+i:"")+"@"),d+=eu(n),null!==o&&(d+=":"+o)):"file"===e&&(d+="//"),d+=this.cannotBeABaseURL?s[0]:s.length?"/"+B(s,"/"):"",null!==a&&(d+="?"+a),null!==c&&(d+="#"+c),d},setHref:function(e){var r=this.parse(e);if(r)throw new I(r);this.searchParams.update()},getOrigin:function(){var e=this.scheme,r=this.port;if("blob"===e)try{return new eH(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+eu(this.host)+(null!==r?":"+r:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(C(e)+":",eS)},getUsername:function(){return this.username},setUsername:function(e){var r=g(C(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<r.length;i++)this.username+=em(r[i],ev)}},getPassword:function(){return this.password},setPassword:function(e){var r=g(C(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<r.length;i++)this.password+=em(r[i],ev)}},getHost:function(){var e=this.host,r=this.port;return null===e?"":null===r?eu(e):eu(e)+":"+r},setHost:function(e){this.cannotBeABaseURL||this.parse(e,eO)},getHostname:function(){var e=this.host;return null===e?"":eu(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,eI)},getPort:function(){var e=this.port;return null===e?"":C(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=C(e))?this.port=null:this.parse(e,ex))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+B(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,eN))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=C(e))?this.query=null:("?"===D(e,0)&&(e=W(e,1)),this.query="",this.parse(e,eF)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){if(""===(e=C(e))){this.fragment=null;return}"#"===D(e,0)&&(e=W(e,1)),this.fragment="",this.parse(e,ez)},update:function(){this.query=this.searchParams.serialize()||null}};var eH=function(e){var r=h(this,eq),i=w(arguments.length,1)>1?arguments[1]:void 0,n=E(r,new eU(e,!1,i));s||(r.href=n.serialize(),r.origin=n.getOrigin(),r.protocol=n.getProtocol(),r.username=n.getUsername(),r.password=n.getPassword(),r.host=n.getHost(),r.hostname=n.getHostname(),r.port=n.getPort(),r.pathname=n.getPathname(),r.search=n.getSearch(),r.searchParams=n.getSearchParams(),r.hash=n.getHash())},eq=eH.prototype,eW=function(e,r){return{get:function(){return j(this)[e]()},set:r&&function(e){return j(this)[r](e)},configurable:!0,enumerable:!0}};if(s&&(p(eq,"href",eW("serialize","setHref")),p(eq,"origin",eW("getOrigin")),p(eq,"protocol",eW("getProtocol","setProtocol")),p(eq,"username",eW("getUsername","setUsername")),p(eq,"password",eW("getPassword","setPassword")),p(eq,"host",eW("getHost","setHost")),p(eq,"hostname",eW("getHostname","setHostname")),p(eq,"port",eW("getPort","setPort")),p(eq,"pathname",eW("getPathname","setPathname")),p(eq,"search",eW("getSearch","setSearch")),p(eq,"searchParams",eW("getSearchParams")),p(eq,"hash",eW("getHash","setHash"))),u(eq,"toJSON",function(){return j(this).serialize()},{enumerable:!0}),u(eq,"toString",function(){return j(this).serialize()},{enumerable:!0}),O){var eV=O.createObjectURL,eG=O.revokeObjectURL;eV&&u(eH,"createObjectURL",d(eV,O)),eG&&u(eH,"revokeObjectURL",d(eG,O))}_(eH,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!s},{URL:eH})},"../../node_modules/core-js/modules/web.url.js":function(e,r,i){i("../../node_modules/core-js/modules/web.url.constructor.js")},"../../node_modules/core-js/modules/web.url.to-json.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/function-call.js");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},"../../node_modules/reflect-metadata/Reflect.js":function(e,r,i){var n,o;o=n||(n={}),function(e){var r="object"==typeof globalThis?globalThis:"object"==typeof i.g?i.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=s(o);function s(e,r){return function(i,n){Object.defineProperty(e,i,{configurable:!0,writable:!0,value:n}),r&&r(i,n)}}void 0!==r.Reflect&&(n=s(r.Reflect,n)),e(n,r),void 0===r.Reflect&&(r.Reflect=o)}(function(e,r){var i,n=Object.prototype.hasOwnProperty,o="function"==typeof Symbol,s=o&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=o&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",c="function"==typeof Object.create,d=({__proto__:[]})instanceof Array,l=!c&&!d,u={create:c?function(){return F(Object.create(null))}:d?function(){return F({__proto__:null})}:function(){return F({})},has:l?function(e,r){return n.call(e,r)}:function(e,r){return r in e},get:l?function(e,r){return n.call(e,r)?e[r]:void 0}:function(e,r){return e[r]}},p=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},r=[],i=function(){function e(e,r,i){this._index=0,this._keys=e,this._values=r,this._selector=i}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var i=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=r,this._values=r):this._index++,{value:i,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=r,this._values=r),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=r,this._values=r),{value:e,done:!0}},e}();function n(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(n.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),n.prototype.has=function(e){return this._find(e,!1)>=0},n.prototype.get=function(e){var r=this._find(e,!1);return r>=0?this._values[r]:void 0},n.prototype.set=function(e,r){var i=this._find(e,!0);return this._values[i]=r,this},n.prototype.delete=function(r){var i=this._find(r,!1);if(i>=0){for(var n=this._keys.length,o=i+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,x(r,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},n.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},n.prototype.keys=function(){return new i(this._keys,this._values,o)},n.prototype.values=function(){return new i(this._keys,this._values,s)},n.prototype.entries=function(){return new i(this._keys,this._values,c)},n.prototype["@@iterator"]=function(){return this.entries()},n.prototype[a]=function(){return this.entries()},n.prototype._find=function(e,r){if(!x(this._cacheKey,e)){this._cacheIndex=-1;for(var i=0;i<this._keys.length;i++)if(x(this._keys[i],e)){this._cacheIndex=i;break}}return this._cacheIndex<0&&r&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},n;function o(e,r){return e}function s(e,r){return r}function c(e,r){return[e,r]}}(),f="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new h}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),m="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),r=o();function i(){this._key=o()}return i.prototype.has=function(e){var r=s(e,!1);return void 0!==r&&u.has(r,this._key)},i.prototype.get=function(e){var r=s(e,!1);return void 0!==r?u.get(r,this._key):void 0},i.prototype.set=function(e,r){return s(e,!0)[this._key]=r,this},i.prototype.delete=function(e){var r=s(e,!1);return void 0!==r&&delete r[this._key]},i.prototype.clear=function(){this._key=o()},i;function o(){var r;do r="@@WeakMap@@"+function(){var e=function(e){if("function"==typeof Uint8Array){var r=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(r):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(r):a(r,16),r}return a(Array(16),16)}(0);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",i=0;i<16;++i){var n=e[i];(4===i||6===i||8===i)&&(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}();while(u.has(e,r));return e[r]=!0,r}function s(e,i){if(!n.call(e,r)){if(!i)return;Object.defineProperty(e,r,{value:u.create()})}return e[r]}function a(e,r){for(var i=0;i<r;++i)e[i]=255*Math.random()|0;return e}}(),g=o?Symbol.for("@reflect-metadata:registry"):void 0,y=(!T(g)&&j(r.Reflect)&&Object.isExtensible(r.Reflect)&&(i=r.Reflect[g]),T(i)&&(i=function(){T(g)||void 0===r.Reflect||g in r.Reflect||"function"!=typeof r.Reflect.defineMetadata||(i=(e=r.Reflect).defineMetadata,n=e.hasOwnMetadata,o=e.getOwnMetadata,s=e.getOwnMetadataKeys,a=e.deleteMetadata,c=new m,d={isProviderFor:function(e,r){var i=c.get(e);return!!(!T(i)&&i.has(r))||!!s(e,r).length&&(T(i)&&(i=new f,c.set(e,i)),i.add(r),!0)},OrdinaryDefineOwnMetadata:i,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:s,OrdinaryDeleteMetadata:a});var e,i,n,o,s,a,c,d,l,u,p,y=new m,b={registerProvider:function(e){if(!Object.isExtensible(b))throw Error("Cannot add provider to a frozen registry.");switch(!0){case d===e:break;case T(l):l=e;break;case l===e:break;case T(u):u=e;break;case u===e:break;default:void 0===p&&(p=new f),p.add(e)}},getProvider:S,setProvider:function(e,r,i){if(!function(e){if(T(e))throw TypeError();return l===e||u===e||!T(p)&&p.has(e)}(i))throw Error("Metadata provider not registered.");var n=S(e,r);if(n!==i){if(!T(n))return!1;var o=y.get(e);T(o)&&(o=new h,y.set(e,o)),o.set(r,i)}return!0}};return b;function S(e,r){var i,n=y.get(e);return T(n)||(i=n.get(r)),T(i)&&(i=function(e,r){if(!T(l)){if(l.isProviderFor(e,r))return l;if(!T(u)){if(u.isProviderFor(e,r))return l;if(!T(p))for(var i=M(p);;){var n=D(i);if(!n)return;var o=n.value;if(o.isProviderFor(e,r))return N(i),o}}}if(!T(d)&&d.isProviderFor(e,r))return d}(e,r),T(i)||(T(n)&&(n=new h,y.set(e,n)),n.set(r,i))),i}}()),!T(g)&&j(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,g,{enumerable:!1,configurable:!1,writable:!1,value:i}),i),b=function(e){var r=new m,i={isProviderFor:function(e,i){var n=r.get(e);return!T(n)&&n.has(i)},OrdinaryDefineOwnMetadata:function(e,r,i,o){n(i,o,!0).set(e,r)},OrdinaryHasOwnMetadata:function(e,r,i){var o=n(r,i,!1);return!T(o)&&!!o.has(e)},OrdinaryGetOwnMetadata:function(e,r,i){var o=n(r,i,!1);if(!T(o))return o.get(e)},OrdinaryOwnMetadataKeys:function(e,r){var i=[],o=n(e,r,!1);if(T(o))return i;for(var s=M(o.keys()),a=0;;){var c=D(s);if(!c)return i.length=a,i;var d=c.value;try{i[a]=d}catch(e){try{N(s)}finally{throw e}}a++}},OrdinaryDeleteMetadata:function(e,i,o){var s=n(i,o,!1);if(T(s)||!s.delete(e))return!1;if(0===s.size){var a=r.get(i);T(a)||(a.delete(o),0===a.size&&r.delete(a))}return!0}};return y.registerProvider(i),i;function n(n,o,s){var a=r.get(n),c=!1;if(T(a)){if(!s)return;a=new h,r.set(n,a),c=!0}var d=a.get(o);if(T(d)){if(!s)return;if(d=new h,a.set(o,d),!e.setProvider(n,o,i))throw a.delete(o),c&&r.delete(n),Error("Wrong provider for target.")}return d}}(y);function S(e,r,i){var n=L(r,i,!1);return!T(n)&&!!n.OrdinaryHasOwnMetadata(e,r,i)}function C(e,r,i){var n=L(r,i,!1);if(!T(n))return n.OrdinaryGetOwnMetadata(e,r,i)}function _(e,r,i,n){L(i,n,!0).OrdinaryDefineOwnMetadata(e,r,i,n)}function w(e,r){var i=L(e,r,!1);return i?i.OrdinaryOwnMetadataKeys(e,r):[]}function R(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function T(e){return void 0===e}function E(e){return null===e}function j(e){return"object"==typeof e?null!==e:"function"==typeof e}e("decorate",function(e,r,i,n){if(T(i)){if(!k(e)||!I(r))throw TypeError();for(var o=e,s=r,a=o.length-1;a>=0;--a){var c=(0,o[a])(s);if(!T(c)&&!E(c)){if(!I(c))throw TypeError();s=c}}return s}if(!k(e)||!j(r)||!j(n)&&!T(n)&&!E(n))throw TypeError();return E(n)&&(n=void 0),function(e,r,i,n){for(var o=e.length-1;o>=0;--o){var s=(0,e[o])(r,i,n);if(!T(s)&&!E(s)){if(!j(s))throw TypeError();n=s}}return n}(e,r,i=P(i),n)}),e("metadata",function(e,r){return function(i,n){if(!j(i)||!T(n)&&!function(e){switch(R(e)){case 3:case 4:return!0;default:return!1}}(n))throw TypeError();_(e,r,i,n)}}),e("defineMetadata",function(e,r,i,n){if(!j(i))throw TypeError();return T(n)||(n=P(n)),_(e,r,i,n)}),e("hasMetadata",function(e,r,i){if(!j(r))throw TypeError();return T(i)||(i=P(i)),function e(r,i,n){if(S(r,i,n))return!0;var o=B(i);return!E(o)&&e(r,o,n)}(e,r,i)}),e("hasOwnMetadata",function(e,r,i){if(!j(r))throw TypeError();return T(i)||(i=P(i)),S(e,r,i)}),e("getMetadata",function(e,r,i){if(!j(r))throw TypeError();return T(i)||(i=P(i)),function e(r,i,n){if(S(r,i,n))return C(r,i,n);var o=B(i);if(!E(o))return e(r,o,n)}(e,r,i)}),e("getOwnMetadata",function(e,r,i){if(!j(r))throw TypeError();return T(i)||(i=P(i)),C(e,r,i)}),e("getMetadataKeys",function(e,r){if(!j(e))throw TypeError();return T(r)||(r=P(r)),function e(r,i){var n=w(r,i),o=B(r);if(null===o)return n;var s=e(o,i);if(s.length<=0)return n;if(n.length<=0)return s;for(var a=new f,c=[],d=0;d<n.length;d++){var l=n[d],u=a.has(l);u||(a.add(l),c.push(l))}for(var p=0;p<s.length;p++){var l=s[p],u=a.has(l);u||(a.add(l),c.push(l))}return c}(e,r)}),e("getOwnMetadataKeys",function(e,r){if(!j(e))throw TypeError();return T(r)||(r=P(r)),w(e,r)}),e("deleteMetadata",function(e,r,i){if(!j(r)||(T(i)||(i=P(i)),!j(r)))throw TypeError();T(i)||(i=P(i));var n=L(r,i,!1);return!T(n)&&n.OrdinaryDeleteMetadata(e,r,i)});function P(e){var r=function(e,r){switch(R(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var i="string",n=A(e,s);if(void 0!==n){var o=n.call(e,i);if(j(o))throw TypeError();return o}return function(e,r){if("string"===r){var i=e.toString;if(O(i)){var n=i.call(e);if(!j(n))return n}var o=e.valueOf;if(O(o)){var n=o.call(e);if(!j(n))return n}}else{var o=e.valueOf;if(O(o)){var n=o.call(e);if(!j(n))return n}var s=e.toString;if(O(s)){var n=s.call(e);if(!j(n))return n}}throw TypeError()}(e,i)}(e,0);return"symbol"==typeof r?r:""+r}function k(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function O(e){return"function"==typeof e}function I(e){return"function"==typeof e}function x(e,r){return e===r||e!=e&&r!=r}function A(e,r){var i=e[r];if(null!=i){if(!O(i))throw TypeError();return i}}function M(e){var r=A(e,a);if(!O(r))throw TypeError();var i=r.call(e);if(!j(i))throw TypeError();return i}function D(e){var r=e.next();return!r.done&&r}function N(e){var r=e.return;r&&r.call(e)}function B(e){var r=Object.getPrototypeOf(e);if("function"!=typeof e||e===p||r!==p)return r;var i=e.prototype,n=i&&Object.getPrototypeOf(i);if(null==n||n===Object.prototype)return r;var o=n.constructor;return"function"!=typeof o||o===e?r:o}function L(e,r,i){var n=y.getProvider(e,r);if(!T(n))return n;if(i){if(y.setProvider(e,r,b))return b;throw Error("Illegal state.")}}function F(e){return e.__=void 0,delete e.__,e}})},"../../node_modules/core-js/internals/regexp-sticky-helpers.js":function(e,r,i){i("../../node_modules/core-js/modules/es.object.has-own.js");var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/global-this.js").RegExp,s=n(function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),a=s||n(function(){return!o("a","y").sticky});e.exports={BROKEN_CARET:s||n(function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:a,UNSUPPORTED_Y:s}}},S={};function C(e){var r=S[e];if(void 0!==r)return r.exports;var i=S[e]={id:e,loaded:!1,exports:{}};return b[e].call(i.exports,i,i.exports,C),i.loaded=!0,i.exports}C.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return C.d(r,{a:r}),r},C.d=(e,r)=>{for(var i in r)C.o(r,i)&&!C.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},C.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),C.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),C.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},C.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var _={};C.r(_),C.d(_,{fixNegotiationNeeded:()=>uP,shimAddTrackRemoveTrack:()=>uE,shimAddTrackRemoveTrackWithNative:()=>uT,shimGetSendersWithDtmf:()=>uw,shimGetUserMedia:()=>uS,shimMediaStream:()=>uC,shimOnTrack:()=>u_,shimPeerConnection:()=>uj,shimSenderReceiverGetStats:()=>uR});var w={};C.r(w),C.d(w,{shimAddTransceiver:()=>uB,shimCreateAnswer:()=>uz,shimCreateOffer:()=>uF,shimGetDisplayMedia:()=>uO,shimGetParameters:()=>uL,shimGetUserMedia:()=>uk,shimOnTrack:()=>uI,shimPeerConnection:()=>ux,shimRTCDataChannel:()=>uN,shimReceiverGetStats:()=>uM,shimRemoveStream:()=>uD,shimSenderGetStats:()=>uA});var R={};C.r(R),C.d(R,{shimAudioContext:()=>uX,shimCallbacksAPI:()=>uq,shimConstraints:()=>uV,shimCreateOfferLegacy:()=>uJ,shimGetUserMedia:()=>uW,shimLocalStreamsAPI:()=>uU,shimRTCIceServerUrls:()=>uG,shimRemoteStreamsAPI:()=>uH,shimTrackEventTransceiver:()=>uK});var T={};C.r(T),C.d(T,{removeExtmapAllowMixed:()=>u3,shimAddIceCandidateNullOrEmpty:()=>u4,shimConnectionState:()=>u2,shimMaxMessageSize:()=>u0,shimParameterlessSetLocalDescription:()=>u6,shimRTCIceCandidate:()=>uY,shimRTCIceCandidateRelayProtocol:()=>uZ,shimSendThrowTypeError:()=>u1});var E={};C.r(E),C.d(E,{default:()=>u5});var j={};function P(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function k(e){return("object"==typeof e&&null!==e||"function"==typeof e)&&"function"==typeof e.then}function O(e){switch(typeof e){case"string":case"symbol":return e.toString();case"function":return e.name;default:throw Error("Unexpected ".concat(typeof e," service id type"))}}C.r(j),C.d(j,{clearInterval:()=>hI,clearTimeout:()=>hx,setInterval:()=>hA,setTimeout:()=>hM}),C("../../node_modules/core-js/modules/es.object.has-own.js"),C("../../node_modules/reflect-metadata/Reflect.js"),C("../../node_modules/core-js/modules/es.symbol.description.js"),C("../../node_modules/core-js/modules/web.dom-collections.iterator.js");let I=Symbol.for("@inversifyjs/common/islazyServiceIdentifier");var x=new WeakMap;class A{static is(e){return"object"==typeof e&&null!==e&&!0===e[I]}unwrap(){var e;return(e=P(this,x,"get"),e.get?e.get.call(this):e.value).call(this)}constructor(e){!function(e,r,i){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");r.set(e,i)}(this,x,{writable:!0,value:void 0}),function(e,r,i){var n=P(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}}(this,x,e),this[I]=!0}}function M(e,r,i){return Reflect.getOwnMetadata(r,e,i)}function D(e,r,i,n){Reflect.defineMetadata(r,i,e,n)}function N(e,r,i,n,o){var s;let a=n(null!=(s=M(e,r,o))?s:i());Reflect.defineMetadata(r,a,e,o)}function B(e,r){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function L(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function F(e,r){var i=L(e,r,"get");return i.get?i.get.call(e):i.value}function z(e,r,i){B(e,r),r.set(e,i)}function U(e,r,i){var n=L(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function H(e,r,i){if(!r.has(e))throw TypeError("attempted to get private field on non-instance");return i}function q(e,r){B(e,r),r.add(e)}C("../../node_modules/core-js/modules/es.array.includes.js"),C("../../node_modules/core-js/modules/es.array.reverse.js");let W="@inversifyjs/container/bindingId";function V(){var e;let r=null!=(e=M(Object,W))?e:0;return r===Number.MAX_SAFE_INTEGER?D(Object,W,Number.MIN_SAFE_INTEGER):N(Object,W,()=>r,e=>e+1),r}let G="Request",K="Singleton",J="Transient",X="ConstantValue",$="DynamicValue",Q="Factory",Y="Instance",Z="Provider",ee="ResolvedValue",et="ServiceRedirection";function*er(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];for(let e of r)yield*e}var ei=new WeakMap,en=new WeakMap,eo=new WeakMap,es=new WeakSet,ea=new WeakSet,ec=new WeakSet,ed=new WeakSet,el=new WeakSet,eu=new WeakSet,ep=new WeakSet,eh=new WeakSet,ef=new WeakSet,ev=new WeakSet;class em{add(e,r){for(let i of(H(this,ec,eb).call(this,e).push(r),Reflect.ownKeys(r)))H(this,ed,eS).call(this,i,r[i]).push(e)}clone(){let e=H(this,es,eg).call(this),r=H(this,ea,ey).call(this),i=Reflect.ownKeys(F(this,eo)),n=this._buildNewInstance(F(this,eo));for(let o of(H(this,eh,eR).call(this,F(this,ei),F(n,ei),e,r),i))H(this,ep,ew).call(this,F(this,en)[o],F(n,en)[o],e);return n}get(e,r){return F(this,en)[e].get(r)}getAllKeys(e){return F(this,en)[e].keys()}removeByRelation(e,r){let i=this.get(e,r);if(void 0!==i)for(let n of new Set(i)){let i=F(this,ei).get(n);if(void 0===i)throw Error("Expecting model relation, none found");for(let o of i)o[e]===r&&H(this,ef,eT).call(this,n,o);F(this,ei).delete(n)}}_buildNewInstance(e){return new em(e)}_cloneModel(e){return e}_cloneRelation(e){return e}constructor(e){for(let r of(q(this,es),q(this,ea),q(this,ec),q(this,ed),q(this,el),q(this,eu),q(this,ep),q(this,eh),q(this,ef),q(this,ev),z(this,ei,{writable:!0,value:void 0}),z(this,en,{writable:!0,value:void 0}),z(this,eo,{writable:!0,value:void 0}),U(this,ei,new Map),U(this,en,{}),Reflect.ownKeys(e)))F(this,en)[r]=new Map;U(this,eo,e)}}function eg(){let e=new Map;for(let r of F(this,ei).keys()){let i=this._cloneModel(r);e.set(r,i)}return e}function ey(){let e=new Map;for(let r of F(this,ei).values())for(let i of r){let r=this._cloneRelation(i);e.set(i,r)}return e}function eb(e){let r=F(this,ei).get(e);return void 0===r&&(r=[],F(this,ei).set(e,r)),r}function eS(e,r){let i=F(this,en)[e].get(r);return void 0===i&&(i=[],F(this,en)[e].set(r,i)),i}function eC(e,r){let i=r.get(e);if(void 0===i)throw Error("Expecting model to be cloned, none found");return i}function e_(e,r){let i=r.get(e);if(void 0===i)throw Error("Expecting relation to be cloned, none found");return i}function ew(e,r,i){for(let[n,o]of e){let e=[];for(let r of o)e.push(H(this,el,eC).call(this,r,i));r.set(n,e)}}function eR(e,r,i,n){for(let[o,s]of e){let e=[];for(let r of s)e.push(H(this,eu,e_).call(this,r,n));r.set(H(this,el,eC).call(this,o,i),e)}}function eT(e,r){for(let i of Reflect.ownKeys(r))H(this,ev,eE).call(this,e,i,r[i])}function eE(e,r,i){let n=F(this,en)[r].get(i);if(void 0!==n){let o=n.indexOf(e);-1!==o&&n.splice(o,1),0===n.length&&F(this,en)[r].delete(i)}}(pb=pU||(pU={})).moduleId="moduleId",pb.serviceId="serviceId";var ej=new WeakMap,eP=new WeakMap;class ek{static build(e){return new ek(e)}add(e,r){F(this,ej).add(e,r)}clone(){return new ek(F(this,eP),F(this,ej).clone())}get(e){var r;let i=[],n=F(this,ej).get(pU.serviceId,e);void 0!==n&&i.push(n);let o=null==(r=F(this,eP).call(this))?void 0:r.get(e);if(void 0!==o&&i.push(o),0!==i.length)return er(...i)}removeAllByModuleId(e){F(this,ej).removeByRelation(pU.moduleId,e)}removeAllByServiceId(e){F(this,ej).removeByRelation(pU.serviceId,e)}constructor(e,r){z(this,ej,{writable:!0,value:void 0}),z(this,eP,{writable:!0,value:void 0}),U(this,ej,null!=r?r:new em({moduleId:{isOptional:!0},serviceId:{isOptional:!1}})),U(this,eP,e)}}let eO="@inversifyjs/core/classMetadataReflectKey";function eI(){return{constructorArguments:[],lifecycle:{postConstructMethodNames:new Set,preDestroyMethodNames:new Set},properties:new Map,scope:void 0}}let ex="@inversifyjs/core/pendingClassMetadataCountReflectKey",eA=Symbol.for("@inversifyjs/core/InversifyCoreError");class eM extends Error{static is(e){return"object"==typeof e&&null!==e&&!0===e[eA]}static isErrorOfKind(e,r){return eM.is(e)&&e.kind===r}constructor(e,r,i){super(r,i),this[eA]=!0,this.kind=e}}function eD(e){var r;let i,n=null!=(r=M(e,eO))?r:eI();if(void 0===(i=M(e,ex))||0===i)return function(e,r){let i=[];if(r.length<e.length)throw new eM(pH.missingInjectionDecorator,'Found unexpected missing metadata on type "'.concat(e.name,'". "').concat(e.name,'" constructor requires at least ').concat(e.length.toString()," arguments, found ").concat(r.length.toString(),' instead.\nAre you using @inject, @multiInject or @unmanaged decorators in every non optional constructor argument?\n\nIf you\'re using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true'));for(let e=0;e<r.length;++e)void 0===r[e]&&i.push(e);if(i.length>0)throw new eM(pH.missingInjectionDecorator,'Found unexpected missing metadata on type "'.concat(e.name,'" at constructor indexes "').concat(i.join('", "'),'".\n\nAre you using @inject, @multiInject or @unmanaged decorators at those indexes?\n\nIf you\'re using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true'))}(e,n.constructorArguments),n;let o=[];for(let r=0;r<n.constructorArguments.length;++r){let i=n.constructorArguments[r];void 0!==i&&i.kind!==pq.unknown||o.push(' - Missing or incomplete metadata for type "'.concat(e.name,'" at constructor argument with index ').concat(r.toString(),".\nEvery constructor parameter must be decorated either with @inject, @multiInject or @unmanaged decorator."))}for(let[r,i]of n.properties)i.kind===pq.unknown&&o.push(' - Missing or incomplete metadata for type "'.concat(e.name,'" at property "').concat(r.toString(),'".\nThis property must be decorated either with @inject or @multiInject decorator.'));if(0===o.length)throw new eM(pH.unknown,'Unexpected class metadata for type "'.concat(e.name,'" with uncompletion traces.\nThis might be caused by one of the following reasons:\n\n1. A third party library is targeting inversify reflection metadata.\n2. A bug is causing the issue. Consider submiting an issue to fix it.'));throw new eM(pH.missingInjectionDecorator,"Invalid class metadata at type ".concat(e.name,":\n\n").concat(o.join("\n\n")))}function eN(e,r){var i;let n=null!=(i=eD(r).scope)?i:e.scope;return{cache:{isRight:!1,value:void 0},id:V(),implementationType:r,isSatisfiedBy:()=>!0,moduleId:void 0,onActivation:void 0,onDeactivation:void 0,scope:n,serviceIdentifier:r,type:Y}}function eB(e){return e.isRight?{isRight:!0,value:e.value}:e}(pS=pH||(pH={}))[pS.injectionDecoratorConflict=0]="injectionDecoratorConflict",pS[pS.missingInjectionDecorator=1]="missingInjectionDecorator",pS[pS.planning=2]="planning",pS[pS.resolution=3]="resolution",pS[pS.unknown=4]="unknown",(pC=pq||(pq={}))[pC.unknown=32]="unknown",(p_=pW||(pW={})).id="id",p_.moduleId="moduleId",p_.serviceId="serviceId";class eL extends em{_buildNewInstance(e){return new eL(e)}_cloneModel(e){return function(e){switch(e.type){case X:case $:return{cache:eB(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type,value:e.value};case Q:return{cache:eB(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type};case Y:return{cache:eB(e.cache),id:e.id,implementationType:e.implementationType,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type};case Z:return{cache:eB(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,provider:e.provider,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type};case ee:return{cache:eB(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,metadata:e.metadata,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type};case et:return{id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,serviceIdentifier:e.serviceIdentifier,targetServiceIdentifier:e.targetServiceIdentifier,type:e.type}}}(e)}}var eF=new WeakMap,ez=new WeakMap,eU=new WeakMap,eH=new WeakSet;class eq{static build(e,r){return new eq(e,r)}clone(){return new eq(F(this,eU),F(this,eF),F(this,ez).clone())}get(e){var r,i;let n=null!=(i=this.getNonParentBindings(e))?i:null==(r=F(this,eU).call(this))?void 0:r.get(e);if(void 0!==n)return n;let o=H(this,eH,eW).call(this,e);return void 0===o?o:[o]}*getChained(e){let r=this.getNonParentBindings(e);void 0!==r&&(yield*r);let i=F(this,eU).call(this);if(void 0===i){if(void 0===r){let r=H(this,eH,eW).call(this,e);void 0!==r&&(yield r)}}else yield*i.getChained(e)}getBoundServices(){let e=new Set(F(this,ez).getAllKeys(pW.serviceId)),r=F(this,eU).call(this);if(void 0!==r)for(let i of r.getBoundServices())e.add(i);return e}getById(e){var r,i;return null!=(i=F(this,ez).get(pW.id,e))?i:null==(r=F(this,eU).call(this))?void 0:r.getById(e)}getByModuleId(e){var r,i;return null!=(i=F(this,ez).get(pW.moduleId,e))?i:null==(r=F(this,eU).call(this))?void 0:r.getByModuleId(e)}getNonParentBindings(e){return F(this,ez).get(pW.serviceId,e)}getNonParentBoundServices(){return F(this,ez).getAllKeys(pW.serviceId)}removeById(e){F(this,ez).removeByRelation(pW.id,e)}removeAllByModuleId(e){F(this,ez).removeByRelation(pW.moduleId,e)}removeAllByServiceId(e){F(this,ez).removeByRelation(pW.serviceId,e)}set(e){let r={[pW.id]:e.id,[pW.serviceId]:e.serviceIdentifier};void 0!==e.moduleId&&(r[pW.moduleId]=e.moduleId),F(this,ez).add(e,r)}constructor(e,r,i){q(this,eH),z(this,eF,{writable:!0,value:void 0}),z(this,ez,{writable:!0,value:void 0}),z(this,eU,{writable:!0,value:void 0}),U(this,ez,null!=i?i:new eL({id:{isOptional:!1},moduleId:{isOptional:!0},serviceId:{isOptional:!1}})),U(this,eU,e),U(this,eF,r)}}function eW(e){if(void 0===F(this,eF)||"function"!=typeof e)return;let r=eN(F(this,eF),e);return this.set(r),r}(pw=pV||(pV={})).moduleId="moduleId",pw.serviceId="serviceId";var eV=new WeakMap,eG=new WeakMap;class eK{static build(e){return new eK(e)}add(e,r){F(this,eV).add(e,r)}clone(){return new eK(F(this,eG),F(this,eV).clone())}get(e){var r;let i=[],n=F(this,eV).get(pV.serviceId,e);void 0!==n&&i.push(n);let o=null==(r=F(this,eG).call(this))?void 0:r.get(e);if(void 0!==o&&i.push(o),0!==i.length)return er(...i)}removeAllByModuleId(e){F(this,eV).removeByRelation(pV.moduleId,e)}removeAllByServiceId(e){F(this,eV).removeByRelation(pV.serviceId,e)}constructor(e,r){z(this,eV,{writable:!0,value:void 0}),z(this,eG,{writable:!0,value:void 0}),U(this,eV,null!=r?r:new em({moduleId:{isOptional:!0},serviceId:{isOptional:!1}})),U(this,eG,e)}}function eJ(e,r,i,n){let o=Array.isArray(e)?e:[e];if(void 0!==i)if("number"!=typeof i)if(void 0!==n)for(let e of o)e(r,i,n);else Reflect.decorate(o,r.prototype,i);else for(let e of o)e(r,void 0,i);else Reflect.decorate(o,r)}function eX(){return 0}function e$(e){return r=>{void 0!==r&&r.kind===pq.unknown&&N(e,ex,eX,e=>e-1)}}function eQ(e,r){return function(){for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return i=>{if(void 0===i)return e(...n);if(i.kind===pG.unmanaged)throw new eM(pH.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found");return r(i,...n)}}}function eY(e){if(e.kind!==pq.unknown&&!0!==e.isFromTypescriptParamType)throw new eM(pH.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found")}(pR=pG||(pG={}))[pR.multipleInjection=0]="multipleInjection",pR[pR.singleInjection=1]="singleInjection",pR[pR.unmanaged=2]="unmanaged";let eZ=eQ(function(e,r,i){var n;return e===pG.multipleInjection?{chained:null!=(n=null==i?void 0:i.chained)&&n,kind:e,name:void 0,optional:!1,tags:new Map,value:r}:{kind:e,name:void 0,optional:!1,tags:new Map,value:r}},function(e,r,i,n){var o;return eY(e),r===pG.multipleInjection?{...e,chained:null!=(o=null==n?void 0:n.chained)&&o,kind:r,value:i}:{...e,kind:r,value:i}});function e0(e,r){return i=>{let n=i.properties.get(r);return i.properties.set(r,e(n)),i}}function e1(e,r){return(i,n,o)=>{try{let s,a,c;void 0===o?(s=e2(e,r),(e,r)=>{N(e.constructor,eO,eI,e0(s(e),r))})(i,n):"number"==typeof o?(a=e2(e,r),(e,r,i)=>{var n,o;if("function"!=typeof e||void 0!==r)throw new eM(pH.injectionDecoratorConflict,'Found an @inject decorator in a non constructor parameter.\nFound @inject decorator at method "'.concat(null!=(n=null==r?void 0:r.toString())?n:"",'" at class "').concat(e.constructor.name,'"'));N(e,eO,eI,(o=a(e),e=>{let r=e.constructorArguments[i];return e.constructorArguments[i]=o(r),e}))})(i,n,o):(c=e2(e,r),(e,r,i)=>{if(void 0===i.set)throw new eM(pH.injectionDecoratorConflict,'Found an @inject decorator in a non setter property method.\nFound @inject decorator at method "'.concat(r.toString(),'" at class "').concat(e.constructor.name,'"'));N(e.constructor,eO,eI,e0(c(e),r))})(i,n,o)}catch(e){if(eM.isErrorOfKind(e,pH.injectionDecoratorConflict)){let r=function(e,r,i){if(void 0===i){if(void 0===r)throw new eM(pH.unknown,"Unexpected undefined property and index values");return{kind:pK.property,property:r,targetClass:e.constructor}}return"number"==typeof i?{index:i,kind:pK.parameter,targetClass:e}:{kind:pK.method,method:r,targetClass:e}}(i,n,o);throw new eM(pH.injectionDecoratorConflict,"Unexpected injection error.\n\nCause:\n\n".concat(e.message,"\n\nDetails\n\n").concat(function(e){switch(e.kind){case pK.method:return'[class: "'.concat(e.targetClass.name,'", method: "').concat(e.method.toString(),'"]');case pK.parameter:return'[class: "'.concat(e.targetClass.name,'", index: "').concat(e.index.toString(),'"]');case pK.property:return'[class: "'.concat(e.targetClass.name,'", property: "').concat(e.property.toString(),'"]')}}(r)),{cause:e})}throw e}}}function e2(e,r){return i=>{let n=r(i);return r=>(n(r),e(r))}}function e3(e){return e1(eZ(pG.singleInjection,e),e$)}(pT=pK||(pK={}))[pT.method=0]="method",pT[pT.parameter=1]="parameter",pT[pT.property=2]="property";let e4="@inversifyjs/core/classIsInjectableFlagReflectKey",e6=[Array,BigInt,Boolean,Function,Number,Object,String];function e5(e){return r=>{let i;!function(e){if(void 0!==M(e,e4))throw new eM(pH.injectionDecoratorConflict,'Cannot apply @injectable decorator multiple times at class "'.concat(e.name,'"'));D(e,e4,!0)}(r),void 0!==(i=M(r,"design:paramtypes"))&&N(r,eO,eI,e=>(i.forEach((r,i)=>{void 0!==e.constructorArguments[i]||e6.includes(r)||(e.constructorArguments[i]={isFromTypescriptParamType:!0,kind:pG.singleInjection,name:void 0,optional:!1,tags:new Map,value:r})}),e)),void 0!==e&&N(r,eO,eI,r=>({...r,scope:e}))}}function e8(e,r,i){return e?new Set([...r,...i]):i}function e9(e){return r=>{var i;let n,o=null==(n=Object.getPrototypeOf(r.prototype))?void 0:n.constructor;if(void 0===o)throw new eM(pH.injectionDecoratorConflict,'Expected base type for type "'.concat(r.name,'", none found.'));(i={...e,type:o},e=>{let r=eD(i.type);N(e,eO,eI,e=>{var n,o,s,a,c,d;let l,u,p;return{constructorArguments:(null==(n=i.extendConstructorArguments)||n?(l=[...r.constructorArguments],e.constructorArguments.map((e,r)=>{l[r]=e})):l=e.constructorArguments,l),lifecycle:(u=null==(a=null==(o=i.lifecycle)?void 0:o.extendPostConstructMethods)||a,p=e8(null==(c=null==(s=i.lifecycle)?void 0:s.extendPreDestroyMethods)||c,r.lifecycle.preDestroyMethodNames,e.lifecycle.preDestroyMethodNames),{postConstructMethodNames:e8(u,r.lifecycle.postConstructMethodNames,e.lifecycle.postConstructMethodNames),preDestroyMethodNames:p}),properties:null==(d=i.extendProperties)||d?new Map(er(r.properties,e.properties)):e.properties,scope:e.scope}})})(r)}}function e7(e){return r=>{void 0===r&&N(e,ex,eX,e=>e+1)}}function te(e){if(e.optional)throw new eM(pH.injectionDecoratorConflict,"Unexpected duplicated optional decorator");return e.optional=!0,e}function tt(){return e1(e=>{let r=null!=e?e:{kind:pq.unknown,name:void 0,optional:!1,tags:new Map};if(r.kind===pG.unmanaged)throw new eM(pH.injectionDecoratorConflict,"Unexpected injection found. Found @unmanaged injection with additional @named, @optional, @tagged or @targetName injections");return te(r)},e7)}function tr(){return{kind:pG.unmanaged}}function ti(e){return e instanceof Error&&(e instanceof RangeError&&/stack space|call stack|too much recursion/i.test(e.message)||"InternalError"===e.name&&/too much recursion/.test(e.message))}eQ(tr,function(e){if(eY(e),void 0!==e.name||e.optional||e.tags.size>0)throw new eM(pH.injectionDecoratorConflict,"Unexpected injection found. Found @unmanaged injection with additional @named, @optional, @tagged or @targetName injections");return tr()}),(pE=pJ||(pJ={}))[pE.multipleInjection=0]="multipleInjection",pE[pE.singleInjection=1]="singleInjection";let tn=Symbol.for("@inversifyjs/core/LazyPlanServiceNode");class to{get bindings(){return this._getNode().bindings}get isContextFree(){return this._getNode().isContextFree}get serviceIdentifier(){return this._serviceIdentifier}set bindings(e){this._getNode().bindings=e}set isContextFree(e){this._getNode().isContextFree=e}static is(e){return"object"==typeof e&&null!==e&&!0===e[tn]}invalidate(){this._serviceNode=void 0}isExpanded(){return void 0!==this._serviceNode}_getNode(){return void 0===this._serviceNode&&(this._serviceNode=this._buildPlanServiceNode()),this._serviceNode}constructor(e,r){this[tn]=!0,this._serviceNode=e,this._serviceIdentifier=r}}var ts=new WeakMap;class ta{get name(){return F(this,ts).elem.name}get serviceIdentifier(){return F(this,ts).elem.serviceIdentifier}get tags(){return F(this,ts).elem.tags}getAncestor(){if(F(this,ts).elem.getAncestorsCalled=!0,void 0!==F(this,ts).previous)return new ta(F(this,ts).previous)}constructor(e){z(this,ts,{writable:!0,value:void 0}),U(this,ts,e)}}function tc(e,r,i){var n,o;let s=null!=(n=null==i?void 0:i.customServiceIdentifier)?n:r.serviceIdentifier,a=(!0===(null==i?void 0:i.chained)?[...e.operations.getBindingsChained(s)]:[...null!=(o=e.operations.getBindings(s))?o:[]]).filter(e=>e.isSatisfiedBy(r));if(0===a.length&&void 0!==e.autobindOptions&&"function"==typeof s){let i=eN(e.autobindOptions,s);e.operations.setBinding(i),i.isSatisfiedBy(r)&&a.push(i)}return a}class td{concat(e){return new td({elem:e,previous:this.last})}[Symbol.iterator](){let e=this.last;return{next:()=>{if(void 0===e)return{done:!0,value:void 0};let r=e.elem;return e=e.previous,{done:!1,value:r}}}}constructor(e){this.last=e}}function tl(e){let r=new Map;return void 0!==e.rootConstraints.tag&&r.set(e.rootConstraints.tag.key,e.rootConstraints.tag.value),new td({elem:{getAncestorsCalled:!1,name:e.rootConstraints.name,serviceIdentifier:e.rootConstraints.serviceIdentifier,tags:r},previous:void 0})}function tu(e){return void 0!==e.redirections}function tp(e,r,i,n){var o,s;let a=i.elem.serviceIdentifier,c=null==(o=i.previous)?void 0:o.elem.serviceIdentifier;Array.isArray(e)?function(e,r,i,n,o,s){if(0!==e.length){var a;let r=null!=(a=s[s.length-1])?a:i,c='Ambiguous bindings found for service: "'.concat(O(r),'".').concat(tm(s),"\n\nRegistered bindings:\n\n").concat(e.map(e=>(function(e){switch(e.type){case Y:return'[ type: "'.concat(e.type,'", serviceIdentifier: "').concat(O(e.serviceIdentifier),'", scope: "').concat(e.scope,'", implementationType: "').concat(e.implementationType.name,'" ]');case et:return'[ type: "'.concat(e.type,'", serviceIdentifier: "').concat(O(e.serviceIdentifier),'", redirection: "').concat(O(e.targetServiceIdentifier),'" ]');default:return'[ type: "'.concat(e.type,'", serviceIdentifier: "').concat(O(e.serviceIdentifier),'", scope: "').concat(e.scope,'" ]')}})(e.binding)).join("\n"),'\n\nTrying to resolve bindings for "').concat(tf(i,n),'".').concat(tv(o));throw new eM(pH.planning,c)}r||th(i,n,o,s)}(e,r,a,c,i.elem,n):(s=i.elem,void 0!==e||r||th(a,c,s,n))}function th(e,r,i,n){var o;let s=null!=(o=n[n.length-1])?o:e,a='No bindings found for service: "'.concat(O(s),'".\n\nTrying to resolve bindings for "').concat(tf(e,r),'".').concat(tm(n)).concat(tv(i));throw new eM(pH.planning,a)}function tf(e,r){return void 0===r?"".concat(O(e)," (Root service)"):O(r)}function tv(e){var r,i;let n=0===e.tags.size?"":"\n- tags:\n - ".concat([...e.tags.keys()].map(e=>e.toString()).join("\n - "));return"\n\nBinding constraints:\n- service identifier: ".concat(O(e.serviceIdentifier),"\n- name: ").concat(null!=(i=null==(r=e.name)?void 0:r.toString())?i:"-").concat(n)}function tm(e){return 0===e.length?"":"\n\n- service redirections:\n - ".concat(e.map(e=>O(e)).join("\n - "))}function tg(e,r,i){if(Array.isArray(e.bindings)&&1===e.bindings.length){let[n]=e.bindings;return void(tu(n)&&function e(r,i,n,o){if(1===r.redirections.length){let[s]=r.redirections;return void(tu(s)&&e(s,i,n,[...o,s.binding.targetServiceIdentifier]))}tp(r.redirections,i,n,o)}(n,r,i,[n.binding.targetServiceIdentifier]))}tp(e.bindings,r,i,[])}function ty(e){return A.is(e)?e.unwrap():e}function tb(e){return(r,i,n)=>{let o=ty(n.value),s=i.concat({getAncestorsCalled:!1,name:n.name,serviceIdentifier:o,tags:n.tags}),a=new ta(s.last),c=n.kind===pG.multipleInjection&&n.chained,d=tc(r,a,{chained:c}),l=[],u={bindings:l,isContextFree:!0,serviceIdentifier:o};if(l.push(...e(r,s,d,u,c)),u.isContextFree=!s.last.elem.getAncestorsCalled,n.kind===pG.singleInjection){tg(u,n.optional,s.last);let[e]=l;u.bindings=e}return u}}function tS(e){return(r,i,n)=>{let o=ty(n.value),s=i.concat({getAncestorsCalled:!1,name:n.name,serviceIdentifier:o,tags:n.tags}),a=new ta(s.last),c=n.kind===pJ.multipleInjection&&n.chained,d=tc(r,a,{chained:c}),l=[],u={bindings:l,isContextFree:!0,serviceIdentifier:o};if(l.push(...e(r,s,d,u,c)),u.isContextFree=!s.last.elem.getAncestorsCalled,n.kind===pJ.singleInjection){tg(u,n.optional,s.last);let[e]=l;u.bindings=e}return u}}function tC(e){let r=(r,i,n)=>{let o={binding:i,classMetadata:r.operations.getClassMetadata(i.implementationType),constructorParams:[],propertyParams:new Map};return e({autobindOptions:r.autobindOptions,node:o,operations:r.operations,servicesBranch:r.servicesBranch},n)},i=(r,i,n)=>e({autobindOptions:r.autobindOptions,node:{binding:i,params:[]},operations:r.operations,servicesBranch:r.servicesBranch},n),n=(e,n,s,a,c)=>{let d=tu(a)?a.binding.targetServiceIdentifier:a.serviceIdentifier;e.servicesBranch.push(d);let l=[];for(let a of s)switch(a.type){case Y:l.push(r(e,a,n));break;case ee:l.push(i(e,a,n));break;case et:{let r=o(e,n,a,c);l.push(r);break}default:l.push({binding:a})}return e.servicesBranch.pop(),l},o=(e,r,i,o)=>{let s={binding:i,redirections:[]},a=tc(e,new ta(r.last),{chained:o,customServiceIdentifier:i.targetServiceIdentifier});return s.redirections.push(...n(e,r,a,s,o)),s};return n}function t_(e,r,i,n){void 0!==e&&(to.is(i)&&!i.isExpanded()||i.isContextFree)?r.setPlan(e,{tree:{root:i}}):r.setNonCachedServiceNode(i,n)}var tw=new WeakMap,tR=new WeakMap,tT=new WeakMap,tE=new WeakMap;class tj extends to{_buildPlanServiceNode(){return F(this,tR).call(this,F(this,tw),F(this,tT),F(this,tE))}constructor(e,r,i,n,o){super(o,ty(n.value)),z(this,tw,{writable:!0,value:void 0}),z(this,tR,{writable:!0,value:void 0}),z(this,tT,{writable:!0,value:void 0}),z(this,tE,{writable:!0,value:void 0}),U(this,tR,r),U(this,tw,e),U(this,tT,i),U(this,tE,n)}}var tP=new WeakMap,tk=new WeakMap,tO=new WeakMap,tI=new WeakMap;class tx extends to{_buildPlanServiceNode(){return F(this,tk).call(this,F(this,tP),F(this,tO),F(this,tI))}constructor(e,r,i,n,o){super(o,ty(n.value)),z(this,tP,{writable:!0,value:void 0}),z(this,tk,{writable:!0,value:void 0}),z(this,tO,{writable:!0,value:void 0}),z(this,tI,{writable:!0,value:void 0}),U(this,tP,e),U(this,tk,r),U(this,tO,i),U(this,tI,n)}}function tA(e,r,i,n){let o,s,a=(o=(r,n,o)=>{if(o.kind===pG.unmanaged)return;let s=function(e){let r;if(0===e.tags.size)r=void 0;else{if(1!==e.tags.size)return;{let[i,n]=e.tags.entries().next().value;r={key:i,value:n}}}let i=A.is(e.value)?e.value.unwrap():e.value;return e.kind===pG.multipleInjection?{chained:e.chained,isMultiple:!0,name:e.name,optional:e.optional,serviceIdentifier:i,tag:r}:{isMultiple:!1,name:e.name,optional:e.optional,serviceIdentifier:i,tag:r}}(o);if(void 0!==s){let e=r.operations.getPlan(s);if(void 0!==e&&e.tree.root.isContextFree)return e.tree.root}let a=i(r,n,o),c=new tj(r,e,n,o,a);return t_(s,r.operations,c,{bindingConstraintsList:n,chainedBindings:o.kind===pG.multipleInjection&&o.chained,optionalBindings:o.optional}),c},(e,r,i)=>{let n=r.classMetadata;for(let[s,a]of n.constructorArguments.entries())r.constructorParams[s]=o(e,i,a);for(let[s,a]of n.properties){let n=o(e,i,a);void 0!==n&&r.propertyParams.set(s,n)}return e.node}),c=(s=(e,i,o)=>{let s=function(e){let r;if(0===e.tags.size)r=void 0;else{if(1!==e.tags.size)return;{let[i,n]=e.tags.entries().next().value;r={key:i,value:n}}}let i=A.is(e.value)?e.value.unwrap():e.value;return e.kind===pJ.multipleInjection?{chained:e.chained,isMultiple:!0,name:e.name,optional:e.optional,serviceIdentifier:i,tag:r}:{isMultiple:!1,name:e.name,optional:e.optional,serviceIdentifier:i,tag:r}}(o);if(void 0!==s){let r=e.operations.getPlan(s);if(void 0!==r&&r.tree.root.isContextFree)return r.tree.root}let a=n(e,i,o),c=new tx(e,r,i,o,a);return t_(s,e.operations,c,{bindingConstraintsList:i,chainedBindings:o.kind===pJ.multipleInjection&&o.chained,optionalBindings:o.optional}),c},(e,r,i)=>{for(let[n,o]of r.binding.metadata.arguments.entries())r.params[n]=s(e,i,o);return e.node});return(e,r)=>e.node.binding.type===Y?a(e,e.node,r):c(e,e.node,r)}var tM=new WeakMap;class tD extends to{_buildPlanServiceNode(){return tz(F(this,tM))}constructor(e,r){super(r,r.serviceIdentifier),z(this,tM,{writable:!0,value:void 0}),U(this,tM,e)}}let tN=tb(tF),tB=tS(tF),tL=tC(tA(tN,tB,tN,tB));function tF(e,r,i,n,o){return tL(e,r,i,n,o)}let tz=e=>{let r=tl(e),i=new ta(r.last),n=e.rootConstraints.isMultiple&&e.rootConstraints.chained,o=tc(e,i,{chained:n}),s=[],a={bindings:s,isContextFree:!0,serviceIdentifier:e.rootConstraints.serviceIdentifier};if(s.push(...tL(e,r,o,a,n)),a.isContextFree=!r.last.elem.getAncestorsCalled,!e.rootConstraints.isMultiple){var c;tg(a,null!=(c=e.rootConstraints.isOptional)&&c,r.last);let[i]=s;a.bindings=i}return a};(pj=pX||(pX={})).bindingAdded="bindingAdded",pj.bindingRemoved="bindingRemoved";var tU=new WeakMap,tH=new WeakMap,tq=new WeakMap,tW=new WeakSet,tV=new WeakSet;class tG{*[Symbol.iterator](){let e=0;for(let r of F(this,tU)){let i=r.deref();void 0===i?++e:yield i}F(this,tU).length>=F(this,tH)&&H(this,tV,tJ).call(this,e)&&H(this,tW,tK).call(this,e)}push(e){let r=new WeakRef(e);if(F(this,tU).push(r),F(this,tU).length>=F(this,tH)&&F(this,tU).length%F(this,tq)==0){let e=0;for(let r of F(this,tU))void 0===r.deref()&&++e;H(this,tV,tJ).call(this,e)&&H(this,tW,tK).call(this,e)}}constructor(){q(this,tW),q(this,tV),z(this,tU,{writable:!0,value:void 0}),z(this,tH,{writable:!0,value:void 0}),z(this,tq,{writable:!0,value:void 0}),U(this,tU,[]),U(this,tH,8),U(this,tq,1024)}}function tK(e){let r=Array(F(this,tU).length-e),i=0;for(let e of F(this,tU))e.deref()&&(r[i++]=e);U(this,tU,r)}function tJ(e){return e>=.5*F(this,tU).length}let tX=tC(tA(tN,tB,function(e,r,i){return t$(e,r,i)},function(e,r,i){return tQ(e,r,i)})),t$=(i=tb(tX),(e,r,n)=>{try{return i(e,r,n)}catch(e){if(eM.isErrorOfKind(e,pH.planning))return;throw e}}),tQ=(n=tS(tX),(e,r,i)=>{try{return n(e,r,i)}catch(e){if(eM.isErrorOfKind(e,pH.planning))return;throw e}});function tY(e,r,i,n,o){if(to.is(r)&&!r.isExpanded())return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1};let s=new ta(n.last);return!i.isSatisfiedBy(s)||n.last.elem.getAncestorsCalled?{isContextFreeBinding:!n.last.elem.getAncestorsCalled,shouldInvalidateServiceNode:!1}:function(e,r,i,n,o){let s;try{[s]=tX(e,n,[i],r,o)}catch(e){if(ti(e))return{isContextFreeBinding:!1,shouldInvalidateServiceNode:!0};throw e}var a=s;if(Array.isArray(r.bindings))r.bindings.push(a);else{if(void 0!==r.bindings){if(!to.is(r))throw new eM(pH.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!0}}r.bindings=a}return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}}(e,r,i,n,o)}function tZ(e,r,i,n){var o;let s;if(to.is(e)&&!e.isExpanded())return{bindingNodeRemoved:void 0,isContextFreeBinding:!0};let a=new ta(i.last);if(!r.isSatisfiedBy(a)||i.last.elem.getAncestorsCalled)return{bindingNodeRemoved:void 0,isContextFreeBinding:!i.last.elem.getAncestorsCalled};if(Array.isArray(e.bindings))e.bindings=e.bindings.filter(e=>e.binding!==r||(s=e,!1));else if((null==(o=e.bindings)?void 0:o.binding)===r)if(s=e.bindings,n)e.bindings=void 0;else{if(!to.is(e))throw new eM(pH.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");e.invalidate()}return{bindingNodeRemoved:s,isContextFreeBinding:!0}}var t0=new WeakMap,t1=new WeakMap,t2=new WeakMap,t3=new WeakMap,t4=new WeakMap,t6=new WeakMap,t5=new WeakSet,t8=new WeakSet,t9=new WeakSet,t7=new WeakSet,re=new WeakSet,rt=new WeakSet,rr=new WeakSet,ri=new WeakSet,rn=new WeakSet,ro=new WeakSet,rs=new WeakSet,ra=new WeakSet,rc=new WeakSet,rd=new WeakSet,rl=new WeakSet;class ru{clearCache(){for(let e of H(this,re,rm).call(this))e.clear();for(let e of F(this,t6))e.clearCache()}get(e){var r,i,n,o,s,a;return void 0===e.name?void 0===e.tag?H(this,t7,rv).call(this,F(this,t1),e).get(e.serviceIdentifier):null==(i=H(this,t7,rv).call(this,F(this,t4),e).get(e.serviceIdentifier))||null==(r=i.get(e.tag.key))?void 0:r.get(e.tag.value):void 0===e.tag?null==(n=H(this,t7,rv).call(this,F(this,t2),e).get(e.serviceIdentifier))?void 0:n.get(e.name):null==(a=H(this,t7,rv).call(this,F(this,t3),e).get(e.serviceIdentifier))||null==(s=a.get(e.name))||null==(o=s.get(e.tag.key))?void 0:o.get(e.tag.value)}invalidateServiceBinding(e){for(let r of(H(this,rc,rR).call(this,e),H(this,rr,ry).call(this,e),H(this,ri,rb).call(this,e),H(this,rd,rT).call(this,e),H(this,ra,rw).call(this,e),F(this,t6)))r.invalidateServiceBinding(e)}set(e,r){void 0===e.name?void 0===e.tag?H(this,t7,rv).call(this,F(this,t1),e).set(e.serviceIdentifier,r):H(this,t9,rf).call(this,H(this,t9,rf).call(this,H(this,t7,rv).call(this,F(this,t4),e),e.serviceIdentifier),e.tag.key).set(e.tag.value,r):void 0===e.tag?H(this,t9,rf).call(this,H(this,t7,rv).call(this,F(this,t2),e),e.serviceIdentifier).set(e.name,r):H(this,t9,rf).call(this,H(this,t9,rf).call(this,H(this,t9,rf).call(this,H(this,t7,rv).call(this,F(this,t3),e),e.serviceIdentifier),e.name),e.tag.key).set(e.tag.value,r)}setNonCachedServiceNode(e,r){let i=F(this,t0).get(e.serviceIdentifier);void 0===i&&(i=new Map,F(this,t0).set(e.serviceIdentifier,i)),i.set(e,r)}subscribe(e){F(this,t6).push(e)}constructor(){q(this,t5),q(this,t8),q(this,t9),q(this,t7),q(this,re),q(this,rt),q(this,rr),q(this,ri),q(this,rn),q(this,ro),q(this,rs),q(this,ra),q(this,rc),q(this,rd),q(this,rl),z(this,t0,{writable:!0,value:void 0}),z(this,t1,{writable:!0,value:void 0}),z(this,t2,{writable:!0,value:void 0}),z(this,t3,{writable:!0,value:void 0}),z(this,t4,{writable:!0,value:void 0}),z(this,t6,{writable:!0,value:void 0}),U(this,t0,new Map),U(this,t1,H(this,t5,rp).call(this)),U(this,t2,H(this,t5,rp).call(this)),U(this,t3,H(this,t5,rp).call(this)),U(this,t4,H(this,t5,rp).call(this)),U(this,t6,new tG)}}function rp(){let e=Array(8);for(let r=0;r<e.length;++r)e[r]=new Map;return e}function rh(e,r,i,n){let o,s=!!(2&r);return o=s?{chained:!!(0&r),isMultiple:s,serviceIdentifier:e.binding.serviceIdentifier}:{isMultiple:s,serviceIdentifier:e.binding.serviceIdentifier},1&r&&(o.isOptional=!0),void 0!==i&&(o.name=i),void 0!==n&&(o.tag=n),{autobindOptions:void 0,operations:e.operations,rootConstraints:o,servicesBranch:[]}}function rf(e,r){let i=e.get(r);return void 0===i&&(i=new Map,e.set(r,i)),i}function rv(e,r){return e[H(this,rt,rg).call(this,r)]}function rm(){return[F(this,t0),...F(this,t1),...F(this,t2),...F(this,t3),...F(this,t4)]}function rg(e){return e.isMultiple?4*!!e.chained|!!e.optional|2:+!!e.optional}function ry(e){for(let[r,i]of F(this,t2).entries()){let n=i.get(e.binding.serviceIdentifier);if(void 0!==n)for(let[i,o]of n.entries())H(this,rl,rE).call(this,e,o,r,i,void 0)}}function rb(e){for(let[r,i]of F(this,t3).entries()){let n=i.get(e.binding.serviceIdentifier);if(void 0!==n)for(let[i,o]of n.entries())for(let[n,s]of o.entries())for(let[o,a]of s.entries())H(this,rl,rE).call(this,e,a,r,i,{key:n,value:o})}}function rS(e){switch(e.binding.type){case et:for(let r of e.redirections)H(this,rn,rS).call(this,r);break;case Y:for(let r of e.constructorParams)void 0!==r&&H(this,ro,rC).call(this,r);for(let r of e.propertyParams.values())H(this,ro,rC).call(this,r);break;case ee:for(let r of e.params)H(this,ro,rC).call(this,r)}}function rC(e){let r=F(this,t0).get(e.serviceIdentifier);void 0!==r&&r.has(e)&&(r.delete(e),H(this,rs,r_).call(this,e))}function r_(e){if((!to.is(e)||e.isExpanded())&&void 0!==e.bindings)if(Array.isArray(e.bindings))for(let r of e.bindings)H(this,rn,rS).call(this,r);else H(this,rn,rS).call(this,e.bindings)}function rw(e){let r=F(this,t0).get(e.binding.serviceIdentifier);if(void 0!==r)switch(e.kind){case pX.bindingAdded:for(let[i,n]of r){let r=tY({autobindOptions:void 0,operations:e.operations,servicesBranch:[]},i,e.binding,n.bindingConstraintsList,n.chainedBindings);r.isContextFreeBinding?r.shouldInvalidateServiceNode&&to.is(i)&&(H(this,rs,r_).call(this,i),i.invalidate()):this.clearCache()}break;case pX.bindingRemoved:for(let[i,n]of r){let r=tZ(i,e.binding,n.bindingConstraintsList,n.optionalBindings);r.isContextFreeBinding?void 0!==r.bindingNodeRemoved&&H(this,rn,rS).call(this,r.bindingNodeRemoved):this.clearCache()}}}function rR(e){for(let[r,i]of F(this,t1).entries()){let n=i.get(e.binding.serviceIdentifier);H(this,rl,rE).call(this,e,n,r,void 0,void 0)}}function rT(e){for(let[r,i]of F(this,t4).entries()){let n=i.get(e.binding.serviceIdentifier);if(void 0!==n)for(let[i,o]of n.entries())for(let[n,s]of o.entries())H(this,rl,rE).call(this,e,s,r,void 0,{key:i,value:n})}}function rE(e,r,i,n,o){var s,a,c,d,l;if(void 0!==r&&to.is(r.tree.root)){let u=H(this,t8,rh).call(this,e,i,n,o);switch(e.kind){case pX.bindingAdded:{let i=(s=r.tree.root,a=e.binding,to.is(s)&&!s.isExpanded()?{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}:tY(u,s,a,tl(u),u.rootConstraints.isMultiple&&u.rootConstraints.chained));i.isContextFreeBinding?i.shouldInvalidateServiceNode&&(H(this,rs,r_).call(this,r.tree.root),r.tree.root.invalidate()):this.clearCache()}break;case pX.bindingRemoved:{let i=(c=r.tree.root,d=e.binding,to.is(c)&&!c.isExpanded()?{bindingNodeRemoved:void 0,isContextFreeBinding:!0}:tZ(c,d,tl(u),null!=(l=u.rootConstraints.isOptional)&&l));i.isContextFreeBinding?void 0!==i.bindingNodeRemoved&&H(this,rn,rS).call(this,i.bindingNodeRemoved):this.clearCache()}}}}function rj(e,r){return k(r)?(e.cache={isRight:!0,value:r},r.then(r=>rP(e,r))):rP(e,r)}function rP(e,r){return e.cache={isRight:!0,value:r},r}async function rk(e,r,i){let n=await r,o=i.next();for(;!0!==o.done;)n=await o.value(e.context,n),o=i.next();return n}function rO(e,r,i){var n,o;let s,a=i;if(void 0!==r.onActivation){let i=r.onActivation;a=k(a)?a.then(r=>i(e.context,r)):i(e.context,a)}return n=r.serviceIdentifier,o=a,void 0===(s=e.getActivations(n))?o:k(o)?rk(e,o,s[Symbol.iterator]()):function(e,r,i){let n=r,o=i.next();for(;!0!==o.done;){let r=o.value(e.context,n);if(k(r))return rk(e,r,i);n=r,o=i.next()}return n}(e,o,s[Symbol.iterator]())}function rI(e){return(r,i)=>i.cache.isRight?i.cache.value:rj(i,rO(r,i,e(r,i)))}let rx=rI(function(e,r){return r.value});function rA(e,r){return(i,n)=>{let o=e(n);switch(o.scope){case K:if(o.cache.isRight)return o.cache.value;return rj(o,rO(i,o,r(i,n)));case G:{if(i.requestScopeCache.has(o.id))return i.requestScopeCache.get(o.id);let e=rO(i,o,r(i,n));return i.requestScopeCache.set(o.id,e),e}case J:return rO(i,o,r(i,n))}}}let rM=rA(function(e){return e},function(e,r){return r.value(e.context)}),rD=rI(function(e,r){return r.factory(e.context)});function rN(e,r,i){let n=function(e,r,i){if(!(i in e))throw new eM(pH.resolution,'Expecting a "'.concat(i.toString(),'" property when resolving "').concat(r.implementationType.name,'" class @postConstruct decorated method, none found.'));if("function"!=typeof e[i])throw new eM(pH.resolution,'Expecting a "'.concat(i.toString(),'" method when resolving "').concat(r.implementationType.name,'" class @postConstruct decorated method, a non function property was found instead.'));{let n;try{n=e[i]()}catch(e){throw new eM(pH.resolution,'Unexpected error found when calling "'.concat(i.toString(),'" @postConstruct decorated method on class "').concat(r.implementationType.name,'"'),{cause:e})}if(k(n))return async function(e,r,i){try{await i}catch(i){throw new eM(pH.resolution,'Unexpected error found when calling "'.concat(r.toString(),'" @postConstruct decorated method on class "').concat(e.implementationType.name,'"'),{cause:i})}}(r,i,n)}}(e,r,i);return k(n)?n.then(()=>e):e}function rB(e,r,i){if(0===i.size)return e;let n=e;for(let e of i)n=k(n)?n.then(i=>rN(i,r,e)):rN(n,r,e);return n}function rL(e){return(r,i,n)=>{let o=new n.binding.implementationType(...r),s=e(i,o,n);return k(s)?s.then(()=>rB(o,n.binding,n.classMetadata.lifecycle.postConstructMethodNames)):rB(o,n.binding,n.classMetadata.lifecycle.postConstructMethodNames)}}let rF=rI(function(e,r){return r.provider(e.context)}),rz=(pP=rK,(e,r,i)=>{let n=[];for(let[o,s]of i.propertyParams){let a=i.classMetadata.properties.get(o);if(void 0===a)throw new eM(pH.resolution,'Expecting metadata at property "'.concat(o.toString(),'", none found'));a.kind!==pG.unmanaged&&void 0!==s.bindings&&(r[o]=pP(e,s),k(r[o])&&n.push((async()=>{r[o]=await r[o]})()))}if(n.length>0)return Promise.all(n).then(()=>{})}),rU=(pk=rG,function e(r,i){let n=[];for(let o of i.redirections)tu(o)?n.push(...e(r,o)):n.push(pk(r,o));return n}),rH=(pO=rK,px=(e,r)=>{let i=[];for(let n of r.constructorParams)void 0===n?i.push(void 0):i.push(pO(e,n));return i.some(k)?Promise.all(i):i},pI=rL(rz),pA=async(e,r,i)=>pI(await e,r,i),pM=rL(rz),(e,r)=>{let i=px(e,r);return k(i)?pA(i,e,r):pM(i,e,r)}),rq=(pD=rK,pN=(e,r)=>{let i=[];for(let n of r.params)i.push(pD(e,n));return i.some(k)?Promise.all(i):i},(e,r)=>{let i=pN(e,r);return k(i)?i.then(e=>r.binding.factory(...e)):r.binding.factory(...i)}),rW=rA(function(e){return e.binding},rH),rV=rA(function(e){return e.binding},rq);function rG(e,r){switch(r.binding.type){case X:return rx(e,r.binding);case $:return rM(e,r.binding);case Q:return rD(e,r.binding);case Y:return rW(e,r);case Z:return rF(e,r.binding);case ee:return rV(e,r)}}function rK(e,r){if(void 0!==r.bindings)return Array.isArray(r.bindings)?function(e,r){let i=[];for(let n of r)tu(n)?i.push(...rU(e,n)):i.push(rG(e,n));return i.some(k)?Promise.all(i):i}(e,r.bindings):function(e,r){if(tu(r)){let i=rU(e,r);if(1===i.length)return i[0];throw new eM(pH.resolution,"Unexpected multiple resolved values on single injection")}return rG(e,r)}(e,r.bindings)}function rJ(e,r){if("function"==typeof e[r])return e[r]()}function rX(e,r){let i,n=e.lifecycle.preDestroyMethodNames;if(0!==n.size){for(let e of n)i=void 0===i?rJ(r,e):i.then(()=>rJ(r,e));return i}}function r$(e,r,i){let n=e.getDeactivations(r);if(void 0!==n)return k(i)?rQ(i,n[Symbol.iterator]()):function(e,r){let i=r.next();for(;!0!==i.done;){if(k(i.value(e)))return rQ(e,r);i=r.next()}}(i,n[Symbol.iterator]())}async function rQ(e,r){let i=await e,n=r.next();for(;!0!==n.done;)await n.value(i),n=r.next()}function rY(e,r){let i=r.cache;return k(i.value)?i.value.then(i=>rZ(e,r,i)):rZ(e,r,i.value)}function rZ(e,r,i){let n;return void 0!==r.onDeactivation&&(n=(0,r.onDeactivation)(i)),void 0===n?r$(e,r.serviceIdentifier,i):n.then(()=>r$(e,r.serviceIdentifier,i))}function r0(e,r){if(void 0===r)return;let i=function(e){let r=[];for(let i of e)void 0!==i.scope&&i.scope===K&&i.cache.isRight&&r.push(i);return r}(r),n=[];for(let r of i){let i=function(e,r){let i=function(e,r){if(r.type===Y){let i=e.getClassMetadata(r.implementationType),n=r.cache.value;return k(n)?n.then(e=>rX(i,e)):rX(i,n)}}(e,r);return void 0===i?rY(e,r):i.then(()=>rY(e,r))}(e,r);void 0!==i&&n.push(i)}return n.length>0?Promise.all(n).then(()=>{}):void 0}let r1=Symbol.for("@inversifyjs/plugin/isPlugin");function r2(e,r){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function r3(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function r4(e,r){var i=r3(e,r,"get");return i.get?i.get.call(e):i.value}function r6(e,r,i){r2(e,r),r.set(e,i)}function r5(e,r,i){var n=r3(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function r8(e,r,i){if(!r.has(e))throw TypeError("attempted to get private field on non-instance");return i}function r9(e,r){r2(e,r),r.add(e)}let r7=Symbol.for("@inversifyjs/container/bindingIdentifier");function ie(e){return"object"==typeof e&&null!==e&&!0===e[r7]}class it{}it.always=e=>!0;let ir=Symbol.for("@inversifyjs/container/InversifyContainerError");class ii extends Error{static is(e){return"object"==typeof e&&null!==e&&!0===e[ir]}static isErrorOfKind(e,r){return ii.is(e)&&e.kind===r}constructor(e,r,i){super(r,i),this[ir]=!0,this.kind=e}}function io(e){return{[r7]:!0,id:e.id}}function is(e){return r=>{for(let i=r.getAncestor();void 0!==i;i=i.getAncestor())if(e(i))return!0;return!1}}function ia(e){return r=>r.name===e}function ic(e){return r=>r.serviceIdentifier===e}function id(e,r){return i=>i.tags.has(e)&&i.tags.get(e)===r}function il(e){return void 0===e.name&&0===e.tags.size}function iu(e){let r=is(e);return e=>!r(e)}function ip(e){return r=>{let i=r.getAncestor();return void 0===i||!e(i)}}function ih(e){return r=>{let i=r.getAncestor();return void 0!==i&&e(i)}}(pB=p$||(p$={}))[pB.invalidOperation=0]="invalidOperation";var iv=new WeakMap;class im{getIdentifier(){return io(r4(this,iv))}inRequestScope(){return r4(this,iv).scope=G,new ik(r4(this,iv))}inSingletonScope(){return r4(this,iv).scope=K,new ik(r4(this,iv))}inTransientScope(){return r4(this,iv).scope=J,new ik(r4(this,iv))}constructor(e){r6(this,iv,{writable:!0,value:void 0}),r5(this,iv,e)}}var ig=new WeakMap,iy=new WeakMap,ib=new WeakMap,iS=new WeakMap,iC=new WeakSet;class i_{to(e){var r;let i=eD(e),n={cache:{isRight:!1,value:void 0},id:V(),implementationType:e,isSatisfiedBy:it.always,moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,scope:null!=(r=i.scope)?r:r4(this,ib),serviceIdentifier:r4(this,iS),type:Y};return r4(this,ig).call(this,n),new iI(n)}toSelf(){if("function"!=typeof r4(this,iS))throw Error('"toSelf" function can only be applied when a newable function is used as service identifier');return this.to(r4(this,iS))}toConstantValue(e){let r={cache:{isRight:!1,value:void 0},id:V(),isSatisfiedBy:it.always,moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,scope:K,serviceIdentifier:r4(this,iS),type:X,value:e};return r4(this,ig).call(this,r),new ik(r)}toDynamicValue(e){let r={cache:{isRight:!1,value:void 0},id:V(),isSatisfiedBy:it.always,moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,scope:r4(this,ib),serviceIdentifier:r4(this,iS),type:$,value:e};return r4(this,ig).call(this,r),new iI(r)}toResolvedValue(e,r){let i={cache:{isRight:!1,value:void 0},factory:e,id:V(),isSatisfiedBy:it.always,metadata:r8(this,iC,iw).call(this,r),moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,scope:r4(this,ib),serviceIdentifier:r4(this,iS),type:ee};return r4(this,ig).call(this,i),new iI(i)}toFactory(e){let r={cache:{isRight:!1,value:void 0},factory:e,id:V(),isSatisfiedBy:it.always,moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,scope:K,serviceIdentifier:r4(this,iS),type:Q};return r4(this,ig).call(this,r),new ik(r)}toProvider(e){let r={cache:{isRight:!1,value:void 0},id:V(),isSatisfiedBy:it.always,moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,provider:e,scope:K,serviceIdentifier:r4(this,iS),type:Z};return r4(this,ig).call(this,r),new ik(r)}toService(e){let r={id:V(),isSatisfiedBy:it.always,moduleId:r4(this,iy),serviceIdentifier:r4(this,iS),targetServiceIdentifier:e,type:et};r4(this,ig).call(this,r)}constructor(e,r,i,n){r9(this,iC),r6(this,ig,{writable:!0,value:void 0}),r6(this,iy,{writable:!0,value:void 0}),r6(this,ib,{writable:!0,value:void 0}),r6(this,iS,{writable:!0,value:void 0}),r5(this,ig,e),r5(this,iy,r),r5(this,ib,i),r5(this,iS,n)}}function iw(e){return{arguments:(null!=e?e:[]).map(e=>{var r,i,n,o,s;return"object"!=typeof e||A.is(e)?{kind:pJ.singleInjection,name:void 0,optional:!1,tags:new Map,value:e}:!0===e.isMultiple?{chained:null!=(r=e.chained)&&r,kind:pJ.multipleInjection,name:e.name,optional:null!=(i=e.optional)&&i,tags:new Map((null!=(n=e.tags)?n:[]).map(e=>[e.key,e.value])),value:e.serviceIdentifier}:{kind:pJ.singleInjection,name:e.name,optional:null!=(o=e.optional)&&o,tags:new Map((null!=(s=e.tags)?s:[]).map(e=>[e.key,e.value])),value:e.serviceIdentifier}})}}var iR=new WeakMap;class iT{getIdentifier(){return io(r4(this,iR))}onActivation(e){return r4(this,iR).onActivation=e,new ij(r4(this,iR))}onDeactivation(e){if(r4(this,iR).onDeactivation=e,r4(this,iR).scope!==K)throw new ii(p$.invalidOperation,'Binding for service "'.concat(O(r4(this,iR).serviceIdentifier),'" has a deactivation function, but its scope is not singleton. Deactivation functions can only be used with singleton bindings.'));return new ij(r4(this,iR))}constructor(e){r6(this,iR,{writable:!0,value:void 0}),r5(this,iR,e)}}var iE=new WeakMap;class ij{getIdentifier(){return io(r4(this,iE))}when(e){return r4(this,iE).isSatisfiedBy=e,new iT(r4(this,iE))}whenAnyAncestor(e){return this.when(is(e))}whenAnyAncestorIs(e){return this.when(is(ic(e)))}whenAnyAncestorNamed(e){return this.when(is(ia(e)))}whenAnyAncestorTagged(e,r){return this.when(is(id(e,r)))}whenDefault(){return this.when(il)}whenNamed(e){return this.when(ia(e))}whenNoParent(e){return this.when(ip(e))}whenNoParentIs(e){return this.when(ip(ic(e)))}whenNoParentNamed(e){return this.when(ip(ia(e)))}whenNoParentTagged(e,r){return this.when(ip(id(e,r)))}whenParent(e){return this.when(ih(e))}whenParentIs(e){return this.when(ih(ic(e)))}whenParentNamed(e){return this.when(ih(ia(e)))}whenParentTagged(e,r){return this.when(ih(id(e,r)))}whenTagged(e,r){return this.when(id(e,r))}whenNoAncestor(e){return this.when(iu(e))}whenNoAncestorIs(e){return this.when(iu(ic(e)))}whenNoAncestorNamed(e){return this.when(iu(ia(e)))}whenNoAncestorTagged(e,r){return this.when(iu(id(e,r)))}constructor(e){r6(this,iE,{writable:!0,value:void 0}),r5(this,iE,e)}}var iP=new WeakMap;class ik extends ij{onActivation(e){return r4(this,iP).onActivation(e)}onDeactivation(e){return r4(this,iP).onDeactivation(e)}constructor(e){super(e),r6(this,iP,{writable:!0,value:void 0}),r5(this,iP,new iT(e))}}var iO=new WeakMap;class iI extends ik{inRequestScope(){return r4(this,iO).inRequestScope()}inSingletonScope(){return r4(this,iO).inSingletonScope()}inTransientScope(){return r4(this,iO).inTransientScope()}constructor(e){super(e),r6(this,iO,{writable:!0,value:void 0}),r5(this,iO,new im(e))}}var ix=new WeakMap,iA=new WeakMap,iM=new WeakMap,iD=new WeakMap,iN=new WeakSet,iB=new WeakSet,iL=new WeakSet,iF=new WeakSet,iz=new WeakSet,iU=new WeakSet,iH=new WeakSet,iq=new WeakSet;class iW{bind(e){return new i_(e=>{r8(this,iN,iV).call(this,e)},void 0,r4(this,iA),e)}isBound(e,r){let i=r4(this,iD).bindingService.get(e);return r8(this,iq,iY).call(this,e,i,r)}isCurrentBound(e,r){let i=r4(this,iD).bindingService.getNonParentBindings(e);return r8(this,iq,iY).call(this,e,i,r)}async rebind(e){return await this.unbind(e),this.bind(e)}rebindSync(e){return this.unbindSync(e),this.bind(e)}async unbind(e){await r8(this,iL,iK).call(this,e)}async unbindAll(){let e=[...r4(this,iD).bindingService.getNonParentBoundServices()];for(let r of(await Promise.all(e.map(async e=>{var r;let i;return r=r4(this,ix),i=r.getBindings(e),r0(r,i)})),e))r4(this,iD).activationService.removeAllByServiceId(r),r4(this,iD).bindingService.removeAllByServiceId(r),r4(this,iD).deactivationService.removeAllByServiceId(r);r4(this,iD).planResultCacheService.clearCache()}unbindSync(e){void 0!==r8(this,iL,iK).call(this,e)&&r8(this,iB,iG).call(this,e)}constructor(e,r,i,n){r9(this,iN),r9(this,iB),r9(this,iL),r9(this,iF),r9(this,iz),r9(this,iU),r9(this,iH),r9(this,iq),r6(this,ix,{writable:!0,value:void 0}),r6(this,iA,{writable:!0,value:void 0}),r6(this,iM,{writable:!0,value:void 0}),r6(this,iD,{writable:!0,value:void 0}),r5(this,ix,e),r5(this,iA,r),r5(this,iM,i),r5(this,iD,n)}}function iV(e){r4(this,iD).bindingService.set(e),r4(this,iM).invalidateService({binding:e,kind:pX.bindingAdded})}function iG(e){var r;let i;if(ie(e)){let n=r4(this,iD).bindingService.getById(e.id),o=null==(r=function(e){if(void 0===e)return;let r=e.next();return!0!==r.done?r.value:void 0}(null==n?void 0:n[Symbol.iterator]()))?void 0:r.serviceIdentifier;i=void 0===o?"Unexpected asynchronous deactivation when unbinding binding identifier. Consider using Container.unbind() instead.":'Unexpected asynchronous deactivation when unbinding "'.concat(O(o),'" binding. Consider using Container.unbind() instead.')}else i='Unexpected asynchronous deactivation when unbinding "'.concat(O(e),'" service. Consider using Container.unbind() instead.');throw new ii(p$.invalidOperation,i)}function iK(e){return ie(e)?r8(this,iF,iJ).call(this,e):r8(this,iU,i$).call(this,e)}function iJ(e){let r=r4(this,iD).bindingService.getById(e.id),i=void 0===r?void 0:[...r],n=r0(r4(this,ix),r);if(void 0!==n)return n.then(()=>{r8(this,iz,iX).call(this,i,e)});r8(this,iz,iX).call(this,i,e)}function iX(e,r){if(r4(this,iD).bindingService.removeById(r.id),void 0!==e)for(let r of e)r4(this,iM).invalidateService({binding:r,kind:pX.bindingRemoved})}function i$(e){let r=r4(this,iD).bindingService.get(e),i=void 0===r?void 0:[...r],n=r0(r4(this,ix),r);if(void 0!==n)return n.then(()=>{r8(this,iH,iQ).call(this,e,i)});r8(this,iH,iQ).call(this,e,i)}function iQ(e,r){if(r4(this,iD).activationService.removeAllByServiceId(e),r4(this,iD).bindingService.removeAllByServiceId(e),r4(this,iD).deactivationService.removeAllByServiceId(e),void 0!==r)for(let e of r)r4(this,iM).invalidateService({binding:e,kind:pX.bindingRemoved})}function iY(e,r,i){if(void 0===r)return!1;let n={getAncestor:()=>{},name:null==i?void 0:i.name,serviceIdentifier:e,tags:new Map};for(let e of(void 0!==(null==i?void 0:i.tag)&&n.tags.set(i.tag.key,i.tag.value),r))if(e.isSatisfiedBy(n))return!0;return!1}var iZ=new WeakMap,i0=new WeakMap,i1=new WeakMap,i2=new WeakMap,i3=new WeakMap,i4=new WeakSet,i6=new WeakSet,i5=new WeakSet,i8=new WeakSet,i9=new WeakSet;class i7{async load(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];await Promise.all(r8(this,i5,nr).call(this,...r))}loadSync(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];for(let e of r8(this,i5,nr).call(this,...r))if(void 0!==e)throw new ii(p$.invalidOperation,"Unexpected asynchronous module load. Consider using Container.load() instead.")}async unload(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];await Promise.all(r8(this,i9,nn).call(this,...r)),r8(this,i6,nt).call(this,r)}unloadSync(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];for(let e of r8(this,i9,nn).call(this,...r))if(void 0!==e)throw new ii(p$.invalidOperation,"Unexpected asynchronous module unload. Consider using Container.unload() instead.");r8(this,i6,nt).call(this,r)}constructor(e,r,i,n,o){r9(this,i4),r9(this,i6),r9(this,i5),r9(this,i8),r9(this,i9),r6(this,iZ,{writable:!0,value:void 0}),r6(this,i0,{writable:!0,value:void 0}),r6(this,i1,{writable:!0,value:void 0}),r6(this,i2,{writable:!0,value:void 0}),r6(this,i3,{writable:!0,value:void 0}),r5(this,iZ,e),r5(this,i0,r),r5(this,i1,i),r5(this,i2,n),r5(this,i3,o)}}function ne(e){return{bind:r=>new i_(e=>{r8(this,i8,ni).call(this,e)},e,r4(this,i1),r),isBound:r4(this,iZ).isBound.bind(r4(this,iZ)),onActivation:(r,i)=>{r4(this,i3).activationService.add(i,{moduleId:e,serviceId:r})},onDeactivation:(r,i)=>{r4(this,i3).deactivationService.add(i,{moduleId:e,serviceId:r})},rebind:r4(this,iZ).rebind.bind(r4(this,iZ)),rebindSync:r4(this,iZ).rebindSync.bind(r4(this,iZ)),unbind:r4(this,iZ).unbind.bind(r4(this,iZ)),unbindSync:r4(this,iZ).unbindSync.bind(r4(this,iZ))}}function nt(e){for(let r of e)r4(this,i3).activationService.removeAllByModuleId(r.id),r4(this,i3).bindingService.removeAllByModuleId(r.id),r4(this,i3).deactivationService.removeAllByModuleId(r.id);r4(this,i3).planResultCacheService.clearCache()}function nr(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r.map(e=>e.load(r8(this,i4,ne).call(this,e.id)))}function ni(e){r4(this,i3).bindingService.set(e),r4(this,i2).invalidateService({binding:e,kind:pX.bindingAdded})}function nn(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r.map(e=>{var r,i;let n;return r=r4(this,i0),i=e.id,n=r.getBindingsFromModule(i),r0(r,n)})}class no{constructor(e){this.deactivationParams={getBindings:e.bindingService.get.bind(e.bindingService),getBindingsFromModule:e.bindingService.getByModuleId.bind(e.bindingService),getClassMetadata:eD,getDeactivations:e.deactivationService.get.bind(e.deactivationService)},e.onReset(()=>{var r;(r=this.deactivationParams).getBindings=e.bindingService.get.bind(e.bindingService),r.getBindingsFromModule=e.bindingService.getByModuleId.bind(e.bindingService),r.getDeactivations=e.deactivationService.get.bind(e.deactivationService)})}}var ns=new WeakMap,na=new WeakSet,nc=new WeakSet;class nd{constructor(e){r9(this,na),r9(this,nc),r6(this,ns,{writable:!0,value:void 0}),r5(this,ns,e),this.planParamsOperations={getBindings:r4(this,ns).bindingService.get.bind(r4(this,ns).bindingService),getBindingsChained:r4(this,ns).bindingService.getChained.bind(r4(this,ns).bindingService),getClassMetadata:eD,getPlan:r4(this,ns).planResultCacheService.get.bind(r4(this,ns).planResultCacheService),setBinding:r8(this,nc,nu).bind(this),setNonCachedServiceNode:r4(this,ns).planResultCacheService.setNonCachedServiceNode.bind(r4(this,ns).planResultCacheService),setPlan:r4(this,ns).planResultCacheService.set.bind(r4(this,ns).planResultCacheService)},r4(this,ns).onReset(()=>{r8(this,na,nl).call(this)})}}function nl(){this.planParamsOperations.getBindings=r4(this,ns).bindingService.get.bind(r4(this,ns).bindingService),this.planParamsOperations.getBindingsChained=r4(this,ns).bindingService.getChained.bind(r4(this,ns).bindingService),this.planParamsOperations.setBinding=r8(this,nc,nu).bind(this)}function nu(e){r4(this,ns).bindingService.set(e),r4(this,ns).planResultCacheService.invalidateServiceBinding({binding:e,kind:pX.bindingAdded,operations:this.planParamsOperations})}var np=new WeakMap,nh=new WeakMap;class nf{invalidateService(e){r4(this,nh).planResultCacheService.invalidateServiceBinding({...e,operations:r4(this,np).planParamsOperations})}constructor(e,r){r6(this,np,{writable:!0,value:void 0}),r6(this,nh,{writable:!0,value:void 0}),r5(this,np,e),r5(this,nh,r)}}var nv=new WeakMap,nm=new WeakMap,ng=new WeakMap,ny=new WeakMap,nb=new WeakSet,nS=new WeakSet;class nC{register(e,r){let i=new r(e,r4(this,nm));if(!0!==i[r1])throw new ii(p$.invalidOperation,"Invalid plugin. The plugin must extend the Plugin class");i.load(r4(this,nv))}constructor(e,r,i){r9(this,nb),r9(this,nS),r6(this,nv,{writable:!0,value:void 0}),r6(this,nm,{writable:!0,value:void 0}),r6(this,ng,{writable:!0,value:void 0}),r6(this,ny,{writable:!0,value:void 0}),r5(this,ny,r),r5(this,ng,i),r5(this,nv,r8(this,nb,n_).call(this,e)),r5(this,nm,r8(this,nS,nw).call(this))}}function n_(e){return{define:(r,i)=>{if(Object.prototype.hasOwnProperty.call(e,r))throw new ii(p$.invalidOperation,'Container already has a method named "'.concat(String(r),'"'));e[r]=i},onPlan:r4(this,ng).onPlan.bind(r4(this,ng))}}function nw(){let e=r4(this,ny);return{get activationService(){return e.activationService},get bindingService(){return e.bindingService},get deactivationService(){return e.deactivationService},get planResultCacheService(){return e.planResultCacheService}}}var nR=new WeakMap;class nT{reset(e,r,i){for(let n of(this.activationService=e,this.bindingService=r,this.deactivationService=i,this.planResultCacheService.clearCache(),r4(this,nR)))n()}onReset(e){r4(this,nR).push(e)}constructor(e,r,i,n){r6(this,nR,{writable:!0,value:void 0}),this.activationService=e,this.bindingService=r,this.deactivationService=i,this.planResultCacheService=n,r5(this,nR,[])}}var nE=new WeakMap,nj=new WeakMap,nP=new WeakMap,nk=new WeakMap,nO=new WeakMap,nI=new WeakMap,nx=new WeakMap,nA=new WeakSet,nM=new WeakSet,nD=new WeakSet,nN=new WeakSet,nB=new WeakSet,nL=new WeakSet,nF=new WeakSet,nz=new WeakSet;class nU{get(e,r){let i=r8(this,nB,nG).call(this,!1,e,r),n=r8(this,nF,nJ).call(this,i);if(k(n))throw new ii(p$.invalidOperation,'Unexpected asynchronous service when resolving service "'.concat(O(e),'"'));return n}getAll(e,r){let i=r8(this,nB,nG).call(this,!0,e,r),n=r8(this,nF,nJ).call(this,i);if(k(n))throw new ii(p$.invalidOperation,'Unexpected asynchronous service when resolving service "'.concat(O(e),'"'));return n}async getAllAsync(e,r){let i=r8(this,nB,nG).call(this,!0,e,r);return r8(this,nF,nJ).call(this,i)}async getAsync(e,r){let i=r8(this,nB,nG).call(this,!1,e,r);return r8(this,nF,nJ).call(this,i)}onPlan(e){r4(this,nO).push(e)}constructor(e,r,i,n){r9(this,nA),r9(this,nM),r9(this,nD),r9(this,nN),r9(this,nB),r9(this,nL),r9(this,nF),r9(this,nz),r6(this,nE,{writable:!0,value:void 0}),r6(this,nj,{writable:!0,value:void 0}),r6(this,nP,{writable:!0,value:void 0}),r6(this,nk,{writable:!0,value:void 0}),r6(this,nO,{writable:!0,value:void 0}),r6(this,nI,{writable:!0,value:void 0}),r6(this,nx,{writable:!0,value:void 0}),r5(this,nI,e),r5(this,nx,r),r5(this,nk,r8(this,nL,nK).call(this)),r5(this,nE,i),r5(this,nj,n),r5(this,nP,e=>r4(this,nx).activationService.get(e)),r5(this,nO,[]),r4(this,nx).onReset(()=>{r8(this,nA,nH).call(this)})}}function nH(){r5(this,nk,r8(this,nL,nK).call(this))}function nq(e,r,i){var n,o;let s=null==i?void 0:i.name,a=null!=(n=null==i?void 0:i.optional)&&n,c=null==i?void 0:i.tag;return e?{chained:null!=(o=null==i?void 0:i.chained)&&o,isMultiple:e,name:s,optional:a,serviceIdentifier:r,tag:c}:{isMultiple:e,name:s,optional:a,serviceIdentifier:r,tag:c}}function nW(e,r,i){var n;let o={autobindOptions:(null!=(n=null==i?void 0:i.autobind)?n:r4(this,nE))?{scope:r4(this,nj)}:void 0,operations:r4(this,nI).planParamsOperations,rootConstraints:r8(this,nN,nV).call(this,e,r,i),servicesBranch:[]};return r8(this,nz,nX).call(this,o,i),o}function nV(e,r,i){var n;return r?{chained:null!=(n=null==i?void 0:i.chained)&&n,isMultiple:r,serviceIdentifier:e}:{isMultiple:r,serviceIdentifier:e}}function nG(e,r,i){let n=r8(this,nM,nq).call(this,e,r,i),o=r4(this,nx).planResultCacheService.get(n);if(void 0!==o)return o;let s=function(e){try{var r,i;let n=e.rootConstraints.isMultiple?{chained:e.rootConstraints.chained,isMultiple:!0,name:e.rootConstraints.name,optional:null!=(r=e.rootConstraints.isOptional)&&r,serviceIdentifier:e.rootConstraints.serviceIdentifier,tag:e.rootConstraints.tag}:{isMultiple:!1,name:e.rootConstraints.name,optional:null!=(i=e.rootConstraints.isOptional)&&i,serviceIdentifier:e.rootConstraints.serviceIdentifier,tag:e.rootConstraints.tag},o=e.operations.getPlan(n);if(void 0!==o)return o;let s=tz(e),a={tree:{root:new tD(e,s)}};return e.operations.setPlan(n,a),a}catch(r){if(ti(r)){let i,n=0===(i=[...function(e){let r=new Set;for(let i of e.servicesBranch){if(r.has(i))return[...r,i];r.add(i)}return[...r]}(e)]).length?"(No dependency trace)":i.map(O).join(" -> ");throw new eM(pH.planning,"Circular dependency found: ".concat(n),{cause:r})}throw r}}(r8(this,nD,nW).call(this,r,e,i));for(let e of r4(this,nO))e(n,s);return s}function nK(){return{get:this.get.bind(this),getAll:this.getAll.bind(this),getAllAsync:this.getAllAsync.bind(this),getAsync:this.getAsync.bind(this)}}function nJ(e){var r={context:r4(this,nk),getActivations:r4(this,nP),planResult:e,requestScopeCache:new Map};try{return rK(r,r.planResult.tree.root)}catch(e){!function(e,r){if(ti(r)){var i;let n,o,s,a=0===(s=[...(n=e.planResult.tree.root,o=[],null!=(i=function e(r){let i=o.indexOf(r);if(-1!==i)return[...o.slice(i),r].map(e=>e.serviceIdentifier);o.push(r);try{for(let i of function(e){let r=[],i=e.bindings;if(void 0===i)return r;let n=e=>{if(tu(e))for(let r of e.redirections)n(r);else switch(e.binding.type){case Y:for(let i of e.constructorParams)void 0!==i&&r.push(i);for(let i of e.propertyParams.values())r.push(i);break;case ee:for(let i of e.params)r.push(i)}};if(Array.isArray(i))for(let e of i)n(e);else n(i);return r}(r)){let r=e(i);if(void 0!==r)return r}}finally{o.pop()}}(n))?i:[])]).length?"(No dependency trace)":s.map(O).join(" -> ");throw new eM(pH.planning,"Circular dependency found: ".concat(a),{cause:r})}throw r}(r,e)}}function nX(e,r){var i;void 0!==r&&(void 0!==r.name&&(e.rootConstraints.name=r.name),!0===r.optional&&(e.rootConstraints.isOptional=!0),void 0!==r.tag&&(e.rootConstraints.tag={key:r.tag.key,value:r.tag.value}),e.rootConstraints.isMultiple&&(e.rootConstraints.chained=null!=(i=null==r?void 0:r.chained)&&i))}var n$=new WeakMap,nQ=new WeakMap;class nY{restore(){let e=r4(this,nQ).pop();if(void 0===e)throw new ii(p$.invalidOperation,"No snapshot available to restore");r4(this,n$).reset(e.activationService,e.bindingService,e.deactivationService)}snapshot(){r4(this,nQ).push({activationService:r4(this,n$).activationService.clone(),bindingService:r4(this,n$).bindingService.clone(),deactivationService:r4(this,n$).deactivationService.clone()})}constructor(e){r6(this,n$,{writable:!0,value:void 0}),r6(this,nQ,{writable:!0,value:void 0}),r5(this,n$,e),r5(this,nQ,[])}}var nZ=new WeakMap,n0=new WeakMap,n1=new WeakMap,n2=new WeakMap,n3=new WeakMap,n4=new WeakMap,n6=new WeakSet,n5=new WeakSet;class n8{bind(e){return r4(this,nZ).bind(e)}get(e,r){return r4(this,n3).get(e,r)}getAll(e,r){return r4(this,n3).getAll(e,r)}async getAllAsync(e,r){return r4(this,n3).getAllAsync(e,r)}async getAsync(e,r){return r4(this,n3).getAsync(e,r)}isBound(e,r){return r4(this,nZ).isBound(e,r)}isCurrentBound(e,r){return r4(this,nZ).isCurrentBound(e,r)}async load(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r4(this,n0).load(...r)}loadSync(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];r4(this,n0).loadSync(...r)}onActivation(e,r){r4(this,n2).activationService.add(r,{serviceId:e})}onDeactivation(e,r){r4(this,n2).deactivationService.add(r,{serviceId:e})}register(e){r4(this,n1).register(this,e)}restore(){r4(this,n4).restore()}async rebind(e){return r4(this,nZ).rebind(e)}rebindSync(e){return r4(this,nZ).rebindSync(e)}snapshot(){r4(this,n4).snapshot()}async unbind(e){await r4(this,nZ).unbind(e)}async unbindAll(){return r4(this,nZ).unbindAll()}unbindSync(e){r4(this,nZ).unbindSync(e)}async unload(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r4(this,n0).unload(...r)}unloadSync(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];r4(this,n0).unloadSync(...r)}constructor(e){var r,i;r9(this,n6),r9(this,n5),r6(this,nZ,{writable:!0,value:void 0}),r6(this,n0,{writable:!0,value:void 0}),r6(this,n1,{writable:!0,value:void 0}),r6(this,n2,{writable:!0,value:void 0}),r6(this,n3,{writable:!0,value:void 0}),r6(this,n4,{writable:!0,value:void 0});let n=null!=(r=null==e?void 0:e.autobind)&&r,o=null!=(i=null==e?void 0:e.defaultScope)?i:J;r5(this,n2,r8(this,n5,n7).call(this,e,n,o));let s=new nd(r4(this,n2)),a=new nf(s,r4(this,n2)),c=new no(r4(this,n2));r5(this,nZ,new iW(c.deactivationParams,o,a,r4(this,n2))),r5(this,n0,new i7(r4(this,nZ),c.deactivationParams,o,a,r4(this,n2))),r5(this,n3,new nU(s,r4(this,n2),n,o)),r5(this,n1,new nC(this,r4(this,n2),r4(this,n3))),r5(this,n4,new nY(r4(this,n2)))}}function n9(e,r){if(e)return{scope:r}}function n7(e,r,i){let n=r8(this,n6,n9).call(this,r,i);if(void 0===(null==e?void 0:e.parent))return new nT(ek.build(()=>{}),eq.build(()=>{},n),eK.build(()=>{}),new ru);let o=new ru,s=e.parent;return r4(s,n2).planResultCacheService.subscribe(o),new nT(ek.build(()=>r4(s,n2).activationService),eq.build(()=>r4(s,n2).bindingService,n),eK.build(()=>r4(s,n2).deactivationService),o)}let oe=new WeakMap,ot=new WeakMap,or=new WeakMap,oi=Symbol("anyProducer"),on=Promise.resolve(),oo=Symbol("listenerAdded"),os=Symbol("listenerRemoved"),oa=!1,oc=!1,od=e=>"string"==typeof e||"symbol"==typeof e||"number"==typeof e;function ol(e){if(!od(e))throw TypeError("`eventName` must be a string, symbol, or number")}function ou(e){if("function"!=typeof e)throw TypeError("listener must be a function")}function op(e,r){let i=ot.get(e);if(i.has(r))return i.get(r)}function oh(e,r){let i=od(r)?r:oi,n=or.get(e);if(n.has(i))return n.get(i)}function of(e,r){r=Array.isArray(r)?r:[r];let i=!1,n=()=>{},o=[],s={enqueue(e){o.push(e),n()},finish(){i=!0,n()}};for(let i of r){let r=oh(e,i);r||(r=new Set,or.get(e).set(i,r)),r.add(s)}return{async next(){return o?0===o.length?(i?o=void 0:await new Promise(e=>{n=e}),this.next()):{done:!1,value:await o.shift()}:{done:!0}},async return(i){for(let i of(o=void 0,r)){let r=oh(e,i);r&&(r.delete(s),0===r.size&&or.get(e).delete(i))}return n(),arguments.length>0?{done:!0,value:await i}:{done:!0}},[Symbol.asyncIterator](){return this}}}function ov(e){if(void 0===e)return ob;if(!Array.isArray(e))throw TypeError("`methodNames` must be an array of strings");for(let r of e)if(!ob.includes(r)){if("string"!=typeof r)throw TypeError("`methodNames` element must be a string");throw Error("".concat(r," is not Emittery method"))}return e}let om=e=>e===oo||e===os;function og(e,r,i){if(om(r))try{oa=!0,e.emit(r,i)}finally{oa=!1}}class oy{static mixin(e,r){return r=ov(r),i=>{if("function"!=typeof i)throw TypeError("`target` must be function");for(let e of r)if(void 0!==i.prototype[e])throw Error("The property `".concat(e,"` already exists on `target`"));Object.defineProperty(i.prototype,e,{enumerable:!1,get:function(){return Object.defineProperty(this,e,{enumerable:!1,value:new oy}),this[e]}});let n=r=>function(){for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return this[e][r](...n)};for(let e of r)Object.defineProperty(i.prototype,e,{enumerable:!1,value:n(e)});return i}}static get isDebugEnabled(){var e,r;if("object"!=typeof(null==(e=globalThis.process)?void 0:e.env))return oc;let{env:i}=null!=(r=globalThis.process)?r:{env:{}};return"emittery"===i.DEBUG||"*"===i.DEBUG||oc}static set isDebugEnabled(e){oc=e}logIfDebugEnabled(e,r,i){(oy.isDebugEnabled||this.debug.enabled)&&this.debug.logger(e,this.debug.name,r,i)}on(e,r){let{signal:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(let i of(ou(r),e=Array.isArray(e)?e:[e])){ol(i);let e=op(this,i);e||(e=new Set,ot.get(this).set(i,e)),e.add(r),this.logIfDebugEnabled("subscribe",i,void 0),om(i)||og(this,oo,{eventName:i,listener:r})}let n=()=>{this.off(e,r),null==i||i.removeEventListener("abort",n)};return null==i||i.addEventListener("abort",n,{once:!0}),(null==i?void 0:i.aborted)&&n(),n}off(e,r){for(let i of(ou(r),e=Array.isArray(e)?e:[e])){ol(i);let e=op(this,i);e&&(e.delete(r),0===e.size&&ot.get(this).delete(i)),this.logIfDebugEnabled("unsubscribe",i,void 0),om(i)||og(this,os,{eventName:i,listener:r})}}once(e,r){let i;if(void 0!==r&&"function"!=typeof r)throw TypeError("predicate must be a function");let n=new Promise(n=>{i=this.on(e,e=>{(!r||r(e))&&(i(),n(e))})});return n.off=i,n}events(e){for(let r of e=Array.isArray(e)?e:[e])ol(r);return of(this,e)}async emit(e,r){var i;if(ol(e),om(e)&&!oa)throw TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled("emit",e,r);let n=or.get(this);if(n.has(e))for(let i of n.get(e))i.enqueue(r);if(n.has(oi)){let i=Promise.all([e,r]);for(let e of n.get(oi))e.enqueue(i)}let o=null!=(i=op(this,e))?i:new Set,s=oe.get(this),a=[...o],c=om(e)?[]:[...s];await on,await Promise.all([...a.map(async e=>{if(o.has(e))return e(r)}),...c.map(async i=>{if(s.has(i))return i(e,r)})])}async emitSerial(e,r){var i;if(ol(e),om(e)&&!oa)throw TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled("emitSerial",e,r);let n=null!=(i=op(this,e))?i:new Set,o=oe.get(this),s=[...n],a=[...o];for(let e of(await on,s))n.has(e)&&await e(r);for(let i of a)o.has(i)&&await i(e,r)}onAny(e){let{signal:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ou(e),this.logIfDebugEnabled("subscribeAny",void 0,void 0),oe.get(this).add(e),og(this,oo,{listener:e});let i=()=>{this.offAny(e),null==r||r.removeEventListener("abort",i)};return null==r||r.addEventListener("abort",i,{once:!0}),(null==r?void 0:r.aborted)&&i(),i}anyEvent(){return of(this)}offAny(e){ou(e),this.logIfDebugEnabled("unsubscribeAny",void 0,void 0),og(this,os,{listener:e}),oe.get(this).delete(e)}clearListeners(e){for(let r of e=Array.isArray(e)?e:[e])if(this.logIfDebugEnabled("clear",r,void 0),od(r)){let e=op(this,r);e&&e.clear();let i=oh(this,r);if(i){for(let e of i)e.finish();i.clear()}}else{for(let[e,r]of(oe.get(this).clear(),ot.get(this).entries()))r.clear(),ot.get(this).delete(e);for(let[e,r]of or.get(this).entries()){for(let e of r)e.finish();r.clear(),or.get(this).delete(e)}}}listenerCount(e){e=Array.isArray(e)?e:[e];let r=0;for(let d of e){if(od(d)){var i,n,o,s,a,c;r+=oe.get(this).size+(null!=(s=null==(i=op(this,d))?void 0:i.size)?s:0)+(null!=(a=null==(n=oh(this,d))?void 0:n.size)?a:0)+(null!=(c=null==(o=oh(this))?void 0:o.size)?c:0);continue}for(let e of(void 0!==d&&ol(d),r+=oe.get(this).size,ot.get(this).values()))r+=e.size;for(let e of or.get(this).values())r+=e.size}return r}bindMethods(e,r){if("object"!=typeof e||null===e)throw TypeError("`target` must be an object");for(let i of r=ov(r)){if(void 0!==e[i])throw Error("The property `".concat(i,"` already exists on `target`"));Object.defineProperty(e,i,{enumerable:!1,value:this[i].bind(this)})}}constructor(e={}){var r;oe.set(this,new Set),ot.set(this,new Map),or.set(this,new Map),or.get(this).set(oi,new Set),this.debug=null!=(r=e.debug)?r:{},void 0===this.debug.enabled&&(this.debug.enabled=!1),this.debug.logger||(this.debug.logger=(e,r,i,n)=>{try{n=JSON.stringify(n)}catch{n="Object with the following keys failed to stringify: ".concat(Object.keys(n).join(","))}("symbol"==typeof i||"number"==typeof i)&&(i=i.toString());let o=new Date,s="".concat(o.getHours(),":").concat(o.getMinutes(),":").concat(o.getSeconds(),".").concat(o.getMilliseconds());console.log("[".concat(s,"][emittery:").concat(e,"][").concat(r,"] Event Name: ").concat(i,"\n data: ").concat(n))})}}let ob=Object.getOwnPropertyNames(oy.prototype).filter(e=>"constructor"!==e);Object.defineProperty(oy,"listenerAdded",{value:oo,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(oy,"listenerRemoved",{value:os,writable:!1,enumerable:!0,configurable:!1});let oS={AaaSPilotKitController:Symbol.for("AaaSPilotKitController"),SignalingService:Symbol.for("SignalingService"),ASRService:Symbol.for("ASRService"),AgentService:Symbol.for("AgentService"),DigitalHumanService:Symbol.for("DigitalHumanService"),ConversationService:Symbol.for("ConversationService"),CommonRequest:Symbol.for("CommonRequest"),ErrorManager:Symbol.for("ErrorManager"),MediaStreamManager:Symbol.for("MediaStreamManager"),IOptions:Symbol.for("IOptions")};C("../../node_modules/core-js/modules/es.promise.finally.js"),C("../../node_modules/core-js/modules/web.url.js"),C("../../node_modules/core-js/modules/web.url.to-json.js"),C("../../node_modules/core-js/modules/web.url-search-params.js"),C("../../node_modules/core-js/modules/es.string.replace.js"),C("../../node_modules/core-js/modules/es.object.from-entries.js"),C("../../node_modules/core-js/modules/es.string.trim.js");class oC extends Error{constructor(e,r,i){var n;let o=e.status||0===e.status?e.status:"",s=null!=(n=e.statusText)?n:"",a="".concat(o," ").concat(s).trim();super("Request failed with ".concat(a?"status code ".concat(a):"an unknown error",": ").concat(r.method," ").concat(r.url)),this.name="HTTPError",this.response=e,this.request=r,this.options=i}}class o_ extends Error{constructor(e){let r="Non-error value was thrown";try{"string"==typeof e?r=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(r=e.message)}catch{}super(r),this.name="NonError",this.value=e}}class ow extends Error{constructor(e){let r=(null==e?void 0:e.cause)?e.cause instanceof Error?e.cause:new o_(e.cause):void 0;super((null==e?void 0:e.code)?"Forced retry: ".concat(e.code):"Forced retry",r?{cause:r}:void 0),this.name="ForceRetryError",this.customDelay=null==e?void 0:e.delay,this.code=null==e?void 0:e.code,this.customRequest=null==e?void 0:e.request}}C("../../node_modules/core-js/modules/es.array-buffer.slice.js");let oR=(()=>{let e=!1,r=!1,i="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&i)try{r=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!r})(),oT="function"==typeof globalThis.AbortController,oE="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,oj="function"==typeof globalThis.ReadableStream,oP="function"==typeof globalThis.FormData,ok=["get","post","put","patch","head","delete"],oO={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},oI=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,ox=Symbol("stop");class oA{constructor(e){this.options=e}}let oM=e=>new oA(e),oD={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},oN={next:!0},oB={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},oL=(e,r,i)=>{let n,o=0;return e.pipeThrough(new TransformStream({transform(e,s){if(s.enqueue(e),n){o+=n.byteLength;let e=0===r?0:o/r;e>=1&&(e=1-Number.EPSILON),null==i||i({percent:e,totalBytes:Math.max(r,o),transferredBytes:o},n)}n=e},flush(){n&&(o+=n.byteLength,null==i||i({percent:1,totalBytes:Math.max(r,o),transferredBytes:o},n))}}))},oF=e=>null!==e&&"object"==typeof e,oz=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];for(let e of r)if((!oF(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return oV({},...r)},oU=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new globalThis.Headers(e),n=r instanceof globalThis.Headers;for(let[e,o]of new globalThis.Headers(r).entries())n&&"undefined"===o||void 0===o?i.delete(e):i.set(e,o);return i};function oH(e,r,i){var n,o;return Object.hasOwn(r,i)&&void 0===r[i]?[]:oV(null!=(n=e[i])?n:[],null!=(o=r[i])?o:[])}let oq=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{beforeRequest:oH(e,r,"beforeRequest"),beforeRetry:oH(e,r,"beforeRetry"),afterResponse:oH(e,r,"afterResponse"),beforeError:oH(e,r,"beforeError")}},oW=(e,r)=>{let i=new URLSearchParams;for(let n of[e,r])if(void 0!==n)if(n instanceof URLSearchParams)for(let[e,r]of n.entries())i.append(e,r);else if(Array.isArray(n))for(let e of n){if(!Array.isArray(e)||2!==e.length)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");i.append(String(e[0]),String(e[1]))}else if(oF(n))for(let[e,r]of Object.entries(n))void 0!==r&&i.append(e,String(r));else for(let[e,r]of new URLSearchParams(n).entries())i.append(e,r);return i},oV=function(){let e;for(var r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];let o={},s={},a={},c=[];for(let r of i)if(Array.isArray(r))Array.isArray(o)||(o=[]),o=[...o,...r];else if(oF(r)){for(let[i,n]of Object.entries(r)){if("signal"===i&&n instanceof globalThis.AbortSignal){c.push(n);continue}if("context"===i){if(null!=n&&(!oF(n)||Array.isArray(n)))throw TypeError("The `context` option must be an object");o={...o,context:null==n?{}:{...o.context,...n}};continue}if("searchParams"===i){e=null==n?void 0:void 0===e?n:oW(e,n);continue}oF(n)&&i in o&&(n=oV(o[i],n)),o={...o,[i]:n}}oF(r.hooks)&&(a=oq(a,r.hooks),o.hooks=a),oF(r.headers)&&(s=oU(s,r.headers),o.headers=s)}return void 0!==e&&(o.searchParams=e),c.length>0&&(1===c.length?o.signal=c[0]:oE?o.signal=AbortSignal.any(c):o.signal=c.at(-1)),void 0===o.context&&(o.context={}),o},oG={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},oK=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("number"==typeof e)return{...oG,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...oG,...e}};class oJ extends Error{constructor(e){super("Request timed out: ".concat(e.method," ").concat(e.url)),this.name="TimeoutError",this.request=e}}async function oX(e,r,i,n){return new Promise((o,s)=>{let a=setTimeout(()=>{i&&i.abort(),s(new oJ(e))},n.timeout);n.fetch(e,r).then(o).catch(s).then(()=>{clearTimeout(a)})})}async function o$(e,r){let{signal:i}=r;return new Promise((r,n)=>{function o(){clearTimeout(s),n(i.reason)}i&&(i.throwIfAborted(),i.addEventListener("abort",o,{once:!0}));let s=setTimeout(()=>{null==i||i.removeEventListener("abort",o),r()},e)})}function oQ(e,r){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function oY(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function oZ(e,r){var i=oY(e,r,"get");return i.get?i.get.call(e):i.value}function o0(e,r,i){oQ(e,r),r.set(e,i)}function o1(e,r,i){var n=oY(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function o2(e,r,i){if(!r.has(e))throw TypeError("attempted to get private field on non-instance");return i}function o3(e,r){oQ(e,r),r.add(e)}var o4=new WeakMap,o6=new WeakMap,o5=new WeakMap,o8=new WeakMap,o9=new WeakMap,o7=new WeakMap,se=new WeakMap,st=new WeakSet,sr=new WeakSet,si=new WeakSet,sn=new WeakSet,so=new WeakSet,ss=new WeakSet,sa=new WeakSet,sc=new WeakSet;class sd{static create(e,r){let i=new sd(e,r),n=async()=>{if("number"==typeof oZ(i,o8).timeout&&oZ(i,o8).timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than ".concat(0x7fffffff));await Promise.resolve();let e=await o2(i,so,sv).call(i);for(let o of oZ(i,o8).hooks.afterResponse){let s=o2(i,si,sh).call(i,e.clone()),a=await o(i.request,o2(i,ss,sm).call(i),s,{retryCount:oZ(i,o6)});if(a instanceof globalThis.Response&&(e=a),a instanceof oA){var r,n;throw await Promise.all([null==(r=s.body)?void 0:r.cancel(),null==(n=e.body)?void 0:n.cancel()]),new ow(a.options)}}if(o2(i,si,sh).call(i,e),!e.ok&&("function"==typeof oZ(i,o8).throwHttpErrors?oZ(i,o8).throwHttpErrors(e.status):oZ(i,o8).throwHttpErrors)){let r=new oC(e,i.request,o2(i,ss,sm).call(i));for(let e of oZ(i,o8).hooks.beforeError)r=await e(r,{retryCount:oZ(i,o6)});throw r}if(oZ(i,o8).onDownloadProgress){if("function"!=typeof oZ(i,o8).onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!oj)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return((e,r)=>{if(!e.body)return e;if(204===e.status)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});let i=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(oL(e.body,i,r),{status:e.status,statusText:e.statusText,headers:e.headers})})(e.clone(),oZ(i,o8).onDownloadProgress)}return e},o=o2(i,sn,sf).call(i,n).finally(async()=>{var e,r;let n=oZ(i,o9),o=[];n&&!n.bodyUsed&&o.push(null==(e=n.body)?void 0:e.cancel()),i.request.bodyUsed||o.push(null==(r=i.request.body)?void 0:r.cancel()),await Promise.all(o)});for(let[e,n]of Object.entries(oO)){var s,a;("bytes"!==e||"function"==typeof(null==(a=globalThis.Response)||null==(s=a.prototype)?void 0:s.bytes))&&(o[e]=async()=>{i.request.headers.set("accept",i.request.headers.get("accept")||n);let s=await o;if("json"===e){if(204===s.status)return"";let e=await s.text();return""===e?"":r.parseJson?r.parseJson(e):JSON.parse(e)}return s[e]()})}return o}constructor(e,r={}){var i,n,o,s,a,c,d,l,u,p,h,f,m;let g;if(o3(this,st),o3(this,sr),o3(this,si),o3(this,sn),o3(this,so),o3(this,ss),o3(this,sa),o3(this,sc),o0(this,o4,{writable:!0,value:void 0}),o0(this,o6,{writable:!0,value:void 0}),o0(this,o5,{writable:!0,value:void 0}),o0(this,o8,{writable:!0,value:void 0}),o0(this,o9,{writable:!0,value:void 0}),o0(this,o7,{writable:!0,value:void 0}),o0(this,se,{writable:!0,value:void 0}),o1(this,o6,0),o1(this,o5,e),o1(this,o8,{...r,headers:oU(oZ(this,o5).headers,r.headers),hooks:oq({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:(g=null!=(n=null!=(i=r.method)?i:oZ(this,o5).method)?n:"GET",ok.includes(g)?g.toUpperCase():g),prefixUrl:String(r.prefixUrl||""),retry:oK(r.retry),throwHttpErrors:null==(o=r.throwHttpErrors)||o,timeout:null!=(s=r.timeout)?s:1e4,fetch:null!=(a=r.fetch)?a:globalThis.fetch.bind(globalThis),context:null!=(c=r.context)?c:{}}),"string"!=typeof oZ(this,o5)&&!(oZ(this,o5)instanceof URL||oZ(this,o5)instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(oZ(this,o8).prefixUrl&&"string"==typeof oZ(this,o5)){if(oZ(this,o5).startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");oZ(this,o8).prefixUrl.endsWith("/")||(oZ(this,o8).prefixUrl+="/"),o1(this,o5,oZ(this,o8).prefixUrl+oZ(this,o5))}oT&&oE&&(o1(this,o7,null!=(d=oZ(this,o8).signal)?d:oZ(this,o5).signal),o1(this,o4,new globalThis.AbortController),oZ(this,o8).signal=oZ(this,o7)?AbortSignal.any([oZ(this,o7),oZ(this,o4).signal]):oZ(this,o4).signal),oR&&(oZ(this,o8).duplex="half"),void 0!==oZ(this,o8).json&&(oZ(this,o8).body=null!=(p=null==(l=(u=oZ(this,o8)).stringifyJson)?void 0:l.call(u,oZ(this,o8).json))?p:JSON.stringify(oZ(this,o8).json),oZ(this,o8).headers.set("content-type",null!=(h=oZ(this,o8).headers.get("content-type"))?h:"application/json"));let y=r.headers&&new globalThis.Headers(r.headers).has("content-type");if(oZ(this,o5)instanceof globalThis.Request&&(oP&&oZ(this,o8).body instanceof globalThis.FormData||oZ(this,o8).body instanceof URLSearchParams)&&!y&&oZ(this,o8).headers.delete("content-type"),this.request=new globalThis.Request(oZ(this,o5),oZ(this,o8)),void 0!==(m=oZ(this,o8).searchParams)&&(Array.isArray(m)?m.length>0:m instanceof URLSearchParams?m.size>0:"object"==typeof m?Object.keys(m).length>0:"string"==typeof m?m.trim().length>0:!!m)){let e="string"==typeof oZ(this,o8).searchParams?oZ(this,o8).searchParams.replace(/^\?/,""):new URLSearchParams(((function(e,r){if(e!==r)throw TypeError("Private static access of wrong provenance")})(sd,sd),sl).call(sd,oZ(this,o8).searchParams)).toString(),r=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);this.request=new globalThis.Request(r,oZ(this,o8))}if(oZ(this,o8).onUploadProgress){if("function"!=typeof oZ(this,o8).onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!oR)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=o2(this,sc,sy).call(this,this.request,null!=(f=oZ(this,o8).body)?f:void 0)}}}function sl(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(e=>{let[,r]=e;return void 0!==r}))}function su(){let e=oZ(this,o8).retry.delay(oZ(this,o6)),r=e;return!0===oZ(this,o8).retry.jitter?r=Math.random()*e:"function"==typeof oZ(this,o8).retry.jitter&&(!Number.isFinite(r=oZ(this,o8).retry.jitter(e))||r<0)&&(r=e),Math.min(oZ(this,o8).retry.backoffLimit,r)}async function sp(e){var r,i,n,o,s,a;if(function(e,r){var i=oY(e,r,"update");if(i.set){if(!i.get)throw TypeError("attempted to read set only private field");return"__destrWrapper"in i||(i.__destrWrapper={set value(v){i.set.call(e,v)},get value(){return i.get.call(e)}}),i.__destrWrapper}if(!i.writable)throw TypeError("attempted to set read only private field");return i}(this,o6).value++,oZ(this,o6)>oZ(this,o8).retry.limit)throw e;let c=e instanceof Error?e:new o_(e);if(c instanceof ow)return null!=(r=c.customDelay)?r:o2(this,st,su).call(this);if(!oZ(this,o8).retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==oZ(this,o8).retry.shouldRetry){let r=await oZ(this,o8).retry.shouldRetry({error:c,retryCount:oZ(this,o6)});if(!1===r)throw e;if(!0===r)return o2(this,st,su).call(this)}if((e instanceof oJ||(null==e?void 0:e.name)===oJ.name)&&!oZ(this,o8).retry.retryOnTimeout)throw e;if(e instanceof oC||(null==e?void 0:e.name)===oC.name){if(!oZ(this,o8).retry.statusCodes.includes(e.response.status))throw e;let r=null!=(s=null!=(o=null!=(n=null!=(i=e.response.headers.get("Retry-After"))?i:e.response.headers.get("RateLimit-Reset"))?n:e.response.headers.get("X-RateLimit-Retry-After"))?o:e.response.headers.get("X-RateLimit-Reset"))?s:e.response.headers.get("X-Rate-Limit-Reset");if(r&&oZ(this,o8).retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(r);Number.isNaN(e)?e=Date.parse(r)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let i=null!=(a=oZ(this,o8).retry.maxRetryAfter)?a:e;return e<i?e:i}if(413===e.response.status)throw e}return o2(this,st,su).call(this)}function sh(e){return oZ(this,o8).parseJson&&(e.json=async()=>oZ(this,o8).parseJson(await e.text())),e}async function sf(e){try{return await e()}catch(i){let r=Math.min(await o2(this,sr,sp).call(this,i),0x7fffffff);if(1>oZ(this,o6))throw i;if(await o$(r,oZ(this,o7)?{signal:oZ(this,o7)}:{}),i instanceof ow&&i.customRequest){let e=oZ(this,o8).signal?new globalThis.Request(i.customRequest,{signal:oZ(this,o8).signal}):new globalThis.Request(i.customRequest);o2(this,sa,sg).call(this,e)}for(let e of oZ(this,o8).hooks.beforeRetry){let r=await e({request:this.request,options:o2(this,ss,sm).call(this),error:i,retryCount:oZ(this,o6)});if(r instanceof globalThis.Request){o2(this,sa,sg).call(this,r);break}if(r instanceof globalThis.Response)return r;if(r===ox)return}return o2(this,sn,sf).call(this,e)}}async function sv(){var e;for(let r of((null==(e=oZ(this,o4))?void 0:e.signal.aborted)&&(o1(this,o4,new globalThis.AbortController),oZ(this,o8).signal=oZ(this,o7)?AbortSignal.any([oZ(this,o7),oZ(this,o4).signal]):oZ(this,o4).signal,this.request=new globalThis.Request(this.request,{signal:oZ(this,o8).signal})),oZ(this,o8).hooks.beforeRequest)){let e=await r(this.request,o2(this,ss,sm).call(this),{retryCount:oZ(this,o6)});if(e instanceof Response)return e;if(e instanceof globalThis.Request){o2(this,sa,sg).call(this,e);break}}let r=((e,r)=>{let i={};for(let n in r)Object.hasOwn(r,n)&&(n in oB||n in oD||n in e&&!(n in oN)||(i[n]=r[n]));return i})(this.request,oZ(this,o8));return(o1(this,o9,this.request),this.request=oZ(this,o9).clone(),!1===oZ(this,o8).timeout)?oZ(this,o8).fetch(oZ(this,o9),r):oX(oZ(this,o9),r,oZ(this,o4),oZ(this,o8))}function sm(){if(!oZ(this,se)){let{hooks:e,...r}=oZ(this,o8);o1(this,se,Object.freeze(r))}return oZ(this,se)}function sg(e){o1(this,se,void 0),this.request=o2(this,sc,sy).call(this,e)}function sy(e,r){var i;return oZ(this,o8).onUploadProgress&&e.body?((e,r,i)=>{if(!e.body)return e;let n=(e=>{if(!e)return 0;if(e instanceof FormData){let r=0;for(let[i,n]of e)r+=oI,r+=new TextEncoder().encode('Content-Disposition: form-data; name="'.concat(i,'"')).length,r+="string"==typeof n?new TextEncoder().encode(n).length:n.size;return r}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let r=JSON.stringify(e);return new TextEncoder().encode(r).length}catch{}return 0})(null!=i?i:e.body);return new Request(e,{duplex:"half",body:oL(e.body,n,r)})})(e,oZ(this,o8).onUploadProgress,null!=(i=null!=r?r:oZ(this,o8).body)?i:void 0):e}let sb=e=>{let r=(r,i)=>sd.create(r,oz(e,i));for(let i of ok)r[i]=(r,n)=>sd.create(r,oz(e,n,{method:i}));return r.create=e=>sb(oz(e)),r.extend=r=>("function"==typeof r&&(r=r(null!=e?e:{})),sb(oz(e,r))),r.stop=ox,r.retry=oM,r},sS=sb();function sC(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function s_(e,r){return function(i,n){r(i,n,e)}}class sw{constructor(e){this.opts=e,"production"===this.opts.env?this.client=sS.create({prefixUrl:sw.ONLINE_HOST}):this.client=sS.create({prefixUrl:sw.SANDBOX_HOST})}}sw.ONLINE_HOST="https://ky.cloud.baidu.com",sw.SANDBOX_HOST="https://ky-test.cloud.baidu.com",sw=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),s_(0,e3(oS.IOptions)),s_(0,tt()),sC("design:type",Function),sC("design:paramtypes",["undefined"==typeof IResolvedOptions?Object:IResolvedOptions])],sw);class sR extends Error{static fromError(e,r,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"MEDIUM";return new sR(r,e.message,i,n,{originalError:e,stack:e.stack})}toJSON(){return{code:this.code,message:this.message,category:this.category,severity:this.severity,metadata:this.metadata,actionRequired:this.actionRequired}}toString(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}constructor(e,r,i,n="MEDIUM",o={},s){super(r),this.name=this.constructor.name,this.code=e,this.category=i,this.severity=n,this.actionRequired=s,this.metadata={timestamp:Date.now(),stack:this.stack,...o},Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error(r).stack}}let sT={1e3:"发生未知错误",1001:"网络连接错误",1002:"请求超时",1003:"配置无效",1004:"身份验证失败",1005:"权限验证失败",1006:"数据验证失败",1007:"资源未找到",1008:"资源不可用",1009:"内部错误",2001:"Agent查询失败",2002:"Agent响应解析错误",2003:"Agent请求超时",2004:"Agent响应无效",2005:"Agent连接失败",2006:"Agent指令无效",3001:"ASR初始化失败",3002:"ASR启动失败",3003:"ASR停止失败",3004:"ASR信令错误",3005:"ASR音频捕获错误",3006:"ASR识别错误",3007:"ASR网络错误",3008:"ASR权限被拒绝",3009:"ASR设备未找到",3010:"ASR消息解析错误",3011:"ASR会话无效",3012:"ASR静音失败",3013:"ASR消息间隔超时",3014:"ASR运行时错误",3100:"浏览器不支持 MediaDevices API",3101:"需要 HTTPS 安全上下文",3102:"音频设备枚举失败",3103:"用户关闭权限请求",3104:"设备被占用或不可读",3105:"音频设备检测超时",4001:"数字人挂载失败",4002:"数字人iframe加载错误",4003:"数字人渲染错误",4004:"数字人WebSocket错误",4005:"数字人RTC错误",4006:"数字人认证错误",4007:"数字人会话数量达到上限",4008:"数字人资源不足",4009:"数字人超时",4010:"数字人中断失败",4011:"数字人SSML解析错误",4012:"数字人形象ID无效",4013:"数字人token无效",4014:"数字人流式渲染错误",4015:"数字人控制器未就绪",4016:"数字人播报文本长度不匹配",5001:"会话创建失败",5002:"会话类型无效",5003:"会话快照无效",5004:"会话Bean未找到",5005:"会话序列化错误",5006:"会话反序列化错误",5007:"会话状态无效",5008:"会话清除失败"};class sE extends sR{constructor(e,r,i="MEDIUM",n={},o){super(e,r||sT[e]||"Agent服务错误","SERVICE",i,n,o)}}class sj extends sE{constructor(e,r={}){super("2001",e,"HIGH",r)}}class sP extends sE{constructor(e,r={}){super("2002",e,"HIGH",r)}}class sk extends sE{constructor(e,r={}){super("2005",e,"HIGH",r)}}class sO extends sE{constructor(e,r={}){super("2006",e,"MEDIUM",r)}}var sI=C("../../node_modules/ua-parser-js/src/ua-parser.js"),sx=C.n(sI);let sA=()=>{let e=new(sx()),r=e.getBrowser(),i=e.getOS(),n=e.getDevice();return{userAgent:e.getUA(),browser:{name:r.name,version:r.version},os:{name:i.name,version:i.version},device:{type:n.type,vendor:n.vendor,model:n.model}}},sM=()=>"iOS"===new(sx())().getOS().name,sD=()=>{let e=new(sx()),r=e.getOS(),i=e.getDevice();return"Mac OS"===r.name&&"tablet"===i.type};class sN extends sR{constructor(e,r,i="MEDIUM",n={}){super(e,r||sT[e]||"ASR服务错误","SERVICE",i,n)}}class sB extends sN{constructor(e,r={}){super("3001",e,"HIGH",r)}}class sL extends sN{constructor(e,r={}){super("3003",e,"MEDIUM",r)}}class sF extends sN{constructor(e,r={}){super("3008",e,"MEDIUM",{...r,context:{...r.context,browserInfo:sA()}})}}class sz extends sN{constructor(e,r={}){super("3010",e,"MEDIUM",r)}}class sU extends sN{constructor(e,r={}){super("3013",e,"MEDIUM",r)}}class sH extends sN{constructor(e,r={}){super("3014",e,"HIGH",r)}}class sq extends sN{constructor(e,r={}){super("3009",e,"HIGH",{...r,context:{...r.context,browserInfo:sA()}})}}class sW extends sN{constructor(e,r={}){super("3104",e,"MEDIUM",{...r,context:{...r.context,browserInfo:sA()}})}}class sV extends sN{constructor(e,r={}){super("3100",e,"CRITICAL",{...r,context:{...r.context,browserInfo:sA()}})}}class sG extends sN{constructor(e,r={}){super("3101",e,"HIGH",r)}}class sK extends sN{constructor(e,r={}){super("3103",e,"MEDIUM",r)}}class sJ extends sN{constructor(e,r={}){super("3105",e,"MEDIUM",r)}}class sX extends sR{constructor(e,r,i="MEDIUM",n={}){super(e,r||sT[e]||"数字人服务错误","SERVICE",i,n)}}class s$ extends sX{constructor(e,r={}){super("4001",e,"HIGH",r)}}class sQ extends sX{constructor(e,r={}){super("4002",e,"HIGH",r)}}class sY extends sX{constructor(e,r={}){super("4003",e,"MEDIUM",r)}}class sZ extends sX{constructor(e,r={}){super("4004",e,"HIGH",r)}}class s0 extends sX{constructor(e,r={}){super("4005",e,"HIGH",r)}}class s1 extends sX{constructor(e,r={}){super("4006",e,"CRITICAL",r)}}class s2 extends sX{constructor(e,r={}){super("4008",e,"CRITICAL",r)}}class s3{addReporter(e){this.reporters.push(e)}removeReporter(e){let r=this.reporters.indexOf(e);r>-1&&this.reporters.splice(r,1)}async handle(e){let r;r=e instanceof sR?e.toJSON():this.isErrorDetails(e)?e:sR.fromError(e,"UNKNOWN_ERROR","INTERNAL").toJSON(),await this.processError(r)}async processError(e){try{this.shouldLogError()&&this.logError(e),this.shouldReportError(e)&&await this.reportError(e)}catch(e){console.error("Error in error handler:",e)}}shouldLogError(){var e;return(null==(e=this.opts)?void 0:e.enableErrorLogging)!==!1}shouldReportError(e){var r;return(null==(r=this.opts)?void 0:r.enableErrorReporting)!==!1&&"LOW"!==e.severity&&this.reporters.length>0}logError(e){let r=this.getLogLevel(e.severity),i="[".concat(e.code,"] ").concat(e.message);"error"===r?console.error(i,e):"warn"===r?console.warn(i,e):console.log(i,e)}getLogLevel(e){switch(e){case"CRITICAL":case"HIGH":return"error";case"MEDIUM":return"warn";default:return"log"}}async reportError(e){let r=this.reporters.map(r=>r.report(e).catch(e=>{console.error("Error reporter failed:",e)}));await Promise.allSettled(r)}isErrorDetails(e){return e&&"object"==typeof e&&"code"in e&&"message"in e&&"category"in e&&"severity"in e}constructor(e){this.opts=e,this.reporters=[]}}class s4{async report(e){console.error("Error Report:",{code:e.code,message:e.message,category:e.category,severity:e.severity,timestamp:new Date(e.metadata.timestamp).toISOString(),sessionId:e.metadata.sessionId,requestId:e.metadata.requestId,context:e.metadata.context})}}class s6{async report(e){let r=this.buildPayload(e);for(let e=0;e<=this.options.retryCount;e++)try{await this.sendRequest(r);return}catch(r){if(e===this.options.retryCount)throw r;await this.delay(this.options.retryDelay*(e+1))}}buildPayload(e){return{error:{code:e.code,message:e.message,category:e.category,severity:e.severity,actionRequired:e.actionRequired},metadata:{timestamp:e.metadata.timestamp,sessionId:e.metadata.sessionId,requestId:e.metadata.requestId,userId:e.metadata.userId,context:e.metadata.context,userAgent:navigator.userAgent,url:window.location.href}}}async sendRequest(e){let r=new AbortController,i=setTimeout(()=>r.abort(),this.options.timeout);try{let i=await fetch(this.options.endpoint,{method:"POST",headers:this.options.headers,body:JSON.stringify(e),signal:r.signal});if(!i.ok)throw Error("HTTP ".concat(i.status,": ").concat(i.statusText))}finally{clearTimeout(i)}}delay(e){return new Promise(r=>setTimeout(r,e))}constructor(e){this.options={timeout:5e3,headers:{"Content-Type":"application/json"},retryCount:3,retryDelay:1e3,...e}}}class s5{static getErrorSeverity(e){if(e instanceof sR)return e.severity;let r=e.message.toLowerCase();return r.includes("permission")||r.includes("unauthorized")||r.includes("forbidden")?"CRITICAL":r.includes("network")||r.includes("timeout")||r.includes("connection")?"HIGH":"MEDIUM"}static shouldReport(e){return!(e instanceof sR)||"LOW"!==e.severity}static extractMetadata(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={timestamp:Date.now(),context:r,stack:e.stack};return e instanceof sR?{...i,...e.metadata}:i}static getActionRequired(e){if(e instanceof sR){var r;return null!=(r=e.actionRequired)?r:null}let i=e.message.toLowerCase();return i.includes("permission")||i.includes("unauthorized")?"请检查用户权限":i.includes("network")||i.includes("timeout")?"请检查网络连接后重试":i.includes("validation")||i.includes("invalid")?"请检查输入数据的格式和有效性":null}}class s8{constructor(){this.emitter=new oy,this.emit=e=>{let r=this.transformErrorToPayload(e);this.emitter.emit("error",r)},this.on=e=>{this.emitter.on("error",e)},this.off=e=>{this.emitter.off("error",e)},this.clearListeners=()=>{this.emitter.clearListeners()},this.transformErrorToPayload=e=>{if(e instanceof sR){var r;return{code:e.code,message:e.toString(),stack:e.stack,actionRequired:null!=(r=e.actionRequired)?r:null,severity:e.severity,metadata:{timestamp:e.metadata.timestamp,sessionId:e.metadata.sessionId,requestId:e.metadata.requestId,userId:e.metadata.userId,context:e.metadata.context,service:this.extractServiceFromError(e)},originalError:e}}return{code:"UNKNOWN_ERROR",message:e.toString(),stack:e.stack,actionRequired:s5.getActionRequired(e),severity:s5.getErrorSeverity(e),metadata:{timestamp:Date.now(),context:{errorName:e.name}},originalError:e}},this.extractServiceFromError=e=>{let r=e.constructor.name.toLowerCase();return r.includes("agent")?"agent":r.includes("asr")?"asr":r.includes("digitalHuman")||r.includes("dh")?"digital-human":r.includes("conversation")?"conversation":"unknown"}}}class s9 extends Error{static createForMonitoring(e,r,i){return new s9(e,r,i)}getMonitoringData(){return{type:this.name,message:this.message,stack:this.stack,timestamp:Date.now(),...this.data}}getSimplifiedData(){return{type:this.name,message:this.message,userId:this.data.userId,sessionId:this.data.sessionId,page:this.data.page}}toString(){return this.message}toJSON(){return this.getMonitoringData()}constructor(e,r,i={}){super(r),this.name=e||"AaaSPilotKitError",this.message=r,this.data=i,Error.captureStackTrace?Error.captureStackTrace(this,s9):this.stack=Error().stack||"",Object.setPrototypeOf(this,s9.prototype)}}function s7(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function ae(e,r){return function(i,n){r(i,n,e)}}class at extends s8{constructor(e){super(),this.opts=e,this.handleError=async e=>{await this.errorHandler.handle(e),this.emit(e)},this.getErrorHandler=()=>this.errorHandler,this.getActionRequired=e=>s5.getActionRequired(e),this.createMonitoringError=e=>{var r,i;let n=this.buildEnhancedMessage(e),o={page:null==(r=e.metadata.context)?void 0:r.page,userId:e.metadata.userId,sessionId:e.metadata.sessionId,requestId:e.metadata.requestId,context:e.metadata.context,severity:e.severity,category:e.metadata.service||"unknown",code:e.code,originalMessage:null==(i=e.originalError)?void 0:i.message};return s9.createForMonitoring(e.code,n,o)},this.buildEnhancedMessage=e=>{let r=[],i=e.severity.toUpperCase();r.push("[".concat(i,"]: ").concat(e.message)),e.metadata.service&&r.push("category=".concat(e.metadata.service));let n=new Date(e.metadata.timestamp||Date.now()),o=n.getFullYear()+"-"+String(n.getMonth()+1).padStart(2,"0")+"-"+String(n.getDate()).padStart(2,"0")+" "+String(n.getHours()).padStart(2,"0")+":"+String(n.getMinutes()).padStart(2,"0")+":"+String(n.getSeconds()).padStart(2,"0");if(r.push("time=".concat(o)),e.metadata&&Object.keys(e.metadata).length>0){let i=this.stringifyMetadata(e.metadata);i&&"{}"!==i&&r.push("metadata=".concat(i))}return r.join(" | ")},this.stringifyMetadata=e=>{if(!e||"object"!=typeof e)return"{}";let r=new Set(["timestamp","stack"]),i={};for(let[n,o]of Object.entries(e))r.has(n)||null==o||(i[n]=o);try{return JSON.stringify(i)}catch{return"{}"}},this.initializeReporters=()=>{this.options.enableConsoleReporter&&this.errorHandler.addReporter(new s4),this.options.enableHttpReporter&&this.options.httpReporterEndpoint&&this.errorHandler.addReporter(new s6({endpoint:this.options.httpReporterEndpoint}))},this.options={enableConsoleReporter:this.opts.enableDebugMode,enableHttpReporter:!1,enableErrorLogging:this.opts.enableDebugMode,enableErrorReporting:!0},this.errorHandler=new s3(this.options),this.initializeReporters()}}at=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),ae(0,e3(oS.IOptions)),ae(0,tt()),s7("design:type",Function),s7("design:paramtypes",["undefined"==typeof IOptions?Object:IOptions])],at);let ar="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ai=new Uint8Array(16),an=[];for(let e=0;e<256;++e)an.push((e+256).toString(16).slice(1));let ao=function(r,i,n){if(ar&&!i&&!r)return ar();var o=r,s=n;let a=(o=o||{}).random??o.rng?.()??function(){if(!e){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");e=crypto.getRandomValues.bind(crypto)}return e(ai)}();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,i){if((s=s||0)<0||s+16>i.length)throw RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let e=0;e<16;++e)i[s+e]=a[e];return i}return function(e,r=0){return(an[e[r+0]]+an[e[r+1]]+an[e[r+2]]+an[e[r+3]]+"-"+an[e[r+4]]+an[e[r+5]]+"-"+an[e[r+6]]+an[e[r+7]]+"-"+an[e[r+8]]+an[e[r+9]]+"-"+an[e[r+10]]+an[e[r+11]]+an[e[r+12]]+an[e[r+13]]+an[e[r+14]]+an[e[r+15]]).toLowerCase()}(a)},as=()=>{};class aa{constructor(e,r){this.getText=()=>"string"==typeof this.data?this.data:this.data&&"object"==typeof this.data&&"answer"in this.data&&this.data.answer||"",this.toJSON=()=>({data:this.data,index:this.index}),this.data=e,this.index=r}}class ac{get endTime(){return this._endTime}constructor(e,r){this.emitter=new oy,this.id=ao(),this._endTime=0,this._isCompleted=!1,this.chunks=[],this.appendChunk=e=>{this._isCompleted?console.warn("Response ".concat(this.id," 已完成,无法添加新的 chunk")):(this.chunks.push(e),this.emitter.emit("update",{sessionId:this.sessionId,queryId:this.queryId,response:this}).catch(as))},this.complete=()=>{this._isCompleted||(this._isCompleted=!0,this._endTime=Date.now())},this.getChunks=()=>this.chunks,this.getFullText=()=>this.chunks.map(e=>e.getText()).join(""),this.getDuration=()=>(this._endTime||Date.now())-this.startTime,this.isCompleted=()=>this._isCompleted,this.toJSON=()=>({id:this.id,sessionId:this.sessionId,queryId:this.queryId,startTime:this.startTime,endTime:this._endTime,duration:this.getDuration(),isCompleted:this._isCompleted,chunks:this.chunks.map(e=>e.toJSON()),fullText:this.getFullText()}),this.toString=()=>this.getFullText(),this.sessionId=e,this.queryId=r,this.startTime=Date.now()}}class ad{constructor(e=0){this.currentResponse=null,this.responses=[],this.maxSize=0,this.onResponse=(e,r,i)=>{if(this.currentResponse&&this.currentResponse.queryId===i){let r=new aa(e,this.currentResponse.getChunks().length);this.currentResponse.appendChunk(r);return}if(!this.currentResponse||this.currentResponse.queryId!==i){let n=new ac(r,i),o=new aa(e,0);n.appendChunk(o),this.currentResponse=n,this.addResponse(n)}},this.onComplete=()=>{this.currentResponse&&(this.currentResponse.complete(),this.currentResponse=null)},this.getResponses=()=>this.responses,this.getResponseById=e=>this.responses.find(r=>r.id===e),this.getResponseByQueryId=e=>this.responses.find(r=>r.queryId===e),this.getLastResponse=()=>this.responses[this.responses.length-1]||null,this.clear=()=>{this.responses=[],this.currentResponse=null},this.toJSON=()=>this.responses.map(e=>e.toJSON()),this.addResponse=e=>{this.responses.push(e),this.maxSize>0&&this.responses.length>this.maxSize&&(this.responses=this.responses.slice(-this.maxSize))},this.maxSize=e}}function al(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function au(e,r){return function(i,n){r(i,n,e)}}class ap{get sessionId(){return this.conversationSessionId}get queryId(){return this._queryId}get lastQueryId(){return this._lastQueryId}getResponses(){return this.responseManager.getResponses()}getResponseManager(){return this.responseManager}constructor(e,r,i){this.request=e,this.errorManager=r,this.opts=i,this.emitter=new oy,this.conversationSessionId="",this.abortController=null,this._queryId="",this._lastQueryId="",this.hasTtftEmitted=!1,this.setSessionId=e=>{this.conversationSessionId=e},this.setQueryId=e=>{this._queryId=e},this.setLastQueryId=e=>{this._lastQueryId=e},this.abort=e=>{var r;null==(r=this.abortController)||r.abort(e),this.abortController&&(this.abortController=null)},this.checkIsRepeat=()=>{let e=!!this.lastQueryId&&this.lastQueryId===this.queryId;return e&&this.opts.enableDebugMode&&console.warn("重复的completed查询被忽略:",this.queryId),e},this.onData=e=>{this.emitter.emit("data",e)},this.onCompleted=e=>{this.emitter.emit("completed",e),this.responseManager.onComplete()},this.onHangup=e=>{this.emitter.emit("hangup",e)},this.onTimeout=e=>{this.emitter.emit("timeout",e)},this.onInstructionReceived=e=>{this.emitter.emit("instruction_received",e)},this.onResponse=e=>{this.responseManager.onResponse(e,this.sessionId,this.queryId)},this.onUsageQuotaReached=e=>{this.emitter.emit("usage_quota_reached",e)},this.onQuotaExpired=e=>{this.emitter.emit("quota_expired",e)},this.onTtft=e=>{this.hasTtftEmitted||(this.hasTtftEmitted=!0,this.emitter.emit("ttft",e))},this.resetTtftFlag=()=>{this.hasTtftEmitted=!1},this._dispose=()=>{this.abort(),this.conversationSessionId="",this._queryId="",this._lastQueryId="",this.responseManager.clear()},this.responseManager=new ad}}ap=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),au(0,e3(oS.CommonRequest)),au(1,e3(oS.ErrorManager)),au(2,e3(oS.IOptions)),au(2,tt()),al("design:type",Function),al("design:paramtypes",[void 0===sw?Object:sw,void 0===at?Object:at,"undefined"==typeof IResolvedOptions?Object:IResolvedOptions])],ap),C("../../node_modules/core-js/modules/es.array.reduce.js");let ah=[{pattern:/客悦\s*one/gi,replacement:"客悦\xb7ONE"},{pattern:/\bSARS\b/gi,replacement:"SaaS"},{pattern:/\bSAS\b/gi,replacement:"SaaS"}],af=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ah;return r.reduce((e,r)=>{let{pattern:i,replacement:n}=r;return e.replace(i,n)},e)},av={CHINESE:"zh",ENGLISH:"en",JAPANESE:"ja",SPANISH:"es",RUSSIAN:"ru",KOREAN:"ko",VIETNAMESE:"vi",GERMAN:"de",INDONESIAN:"id",THAI:"th"},am={[av.CHINESE]:"zh",[av.ENGLISH]:"en",[av.JAPANESE]:"ja",[av.SPANISH]:"es",[av.RUSSIAN]:"ru",[av.KOREAN]:"ko",[av.VIETNAMESE]:"vi",[av.GERMAN]:"de",[av.INDONESIAN]:"id",[av.THAI]:"th",ar:"ar",ms:"ms"},ag={[av.CHINESE]:"Chinese",[av.ENGLISH]:"English",[av.JAPANESE]:"Japanese",[av.SPANISH]:"Spanish",[av.RUSSIAN]:"Russian",[av.KOREAN]:"Korean",[av.VIETNAMESE]:"Vietnamese",[av.GERMAN]:"German",[av.INDONESIAN]:"Indonesian",[av.THAI]:"Thai",yue:"Chinese,Yue",fr:"French",pt:"Portuguese",tr:"Turkish",nl:"Dutch",uk:"Ukrainian",it:"Italian",pl:"Polish",ro:"Romanian",el:"Greek",cs:"Czech",fi:"Finnish",hi:"Hindi",auto:"auto"},ay=av.CHINESE,ab=e=>{if(!e)return ag[ay];let r=ag[e];return r||(console.warn('[AaaSPilotKit] 不支持的语言代码 "'.concat(e,'",已自动回退到中文。')+"支持的语言:".concat(Object.keys(ag).join(", "))),ag[ay])},aS={enableDebugMode:!1,minSplitLen:5,ttsModel:"turbo_v2",env:"production",interruptible:!0,rendererMode:"cloud",autoChromaKey:!0,typeDelay:163,enTypeDelay:45,inactivityPrompt:"您这么久没讲话,是不是有其它事情要忙,那我先挂断了",getMountContainer:()=>document.body,hotWordReplacementRules:ah,checkAudioDeviceBeforeStart:!0,microphoneFailureHandling:"error",rtcID:"appreimunmd7utp"};class aC{constructor(e,r){this.opts=r,this.emitter=new oy,this.id="",this.text="",this.update=e=>{let{id:r,...i}=e;r?this.id=r:this.id||(this.id=ao()),Object.assign(this,i)},this.toJSON=()=>({id:this.id,type:this.type,text:this.text}),this.type=e.type,this.update(e)}}class a_ extends aC{static create(e){return new a_({},e)}constructor(e,r){super({...e,type:"client"},r),this.opts=r,this.appendText=e=>{this.text=e,this.emitter.emit("content_change",{mod:"text",content:e,completed:!0}).catch(as)},this.dispose=()=>{},this.interrupt=()=>{}}}C("../../node_modules/core-js/modules/web.queue-microtask.js");var aw=C("../../node_modules/eventemitter3/index.js"),aR=C.n(aw);class aT extends Error{constructor(e,r){var i,n;super(e,r),this.name="TimeoutError",null==(i=(n=Error).captureStackTrace)||i.call(n,this,aT)}}let aE=e=>{var r;return null!=(r=e.reason)?r:new DOMException("This operation was aborted.","AbortError")};function aj(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function aP(e,r){var i=aj(e,r,"get");return i.get?i.get.call(e):i.value}var ak=new WeakMap;class aO{enqueue(e,r){let{priority:i=0,id:n}=null!=r?r:{},o={priority:i,id:n,run:e};if(0===this.size||aP(this,ak)[this.size-1].priority>=i)return void aP(this,ak).push(o);let s=function(e,r,i){let n=0,o=e.length;for(;o>0;){let s=Math.trunc(o/2),a=n+s;0>=i(e[a],r)?(n=++a,o-=s+1):o=s}return n}(aP(this,ak),o,(e,r)=>r.priority-e.priority);aP(this,ak).splice(s,0,o)}setPriority(e,r){let i=aP(this,ak).findIndex(r=>r.id===e);if(-1===i)throw ReferenceError('No promise function with the id "'.concat(e,'" exists in the queue.'));let[n]=aP(this,ak).splice(i,1);this.enqueue(n.run,{priority:r,id:e})}dequeue(){let e=aP(this,ak).shift();return null==e?void 0:e.run}filter(e){return aP(this,ak).filter(r=>r.priority===e.priority).map(e=>e.run)}get size(){return aP(this,ak).length}constructor(){!function(e,r,i){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");r.set(e,i)}(this,ak,{writable:!0,value:void 0}),function(e,r,i){var n=aj(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}}(this,ak,[])}}function aI(e,r){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function ax(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function aA(e,r){var i=ax(e,r,"get");return i.get?i.get.call(e):i.value}function aM(e,r,i){aI(e,r),r.set(e,i)}function aD(e,r,i){var n=ax(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function aN(e,r){var i=ax(e,r,"update");if(i.set){if(!i.get)throw TypeError("attempted to read set only private field");return"__destrWrapper"in i||(i.__destrWrapper={set value(v){i.set.call(e,v)},get value(){return i.get.call(e)}}),i.__destrWrapper}if(!i.writable)throw TypeError("attempted to set read only private field");return i}function aB(e,r,i){if(!r.has(e))throw TypeError("attempted to get private field on non-instance");return i}function aL(e,r){aI(e,r),r.add(e)}var aF=new WeakMap,az=new WeakMap,aU=new WeakMap,aH=new WeakMap,aq=new WeakMap,aW=new WeakMap,aV=new WeakMap,aG=new WeakMap,aK=new WeakMap,aJ=new WeakMap,aX=new WeakMap,a$=new WeakMap,aQ=new WeakMap,aY=new WeakMap,aZ=new WeakMap,a0=new WeakMap,a1=new WeakMap,a2=new WeakMap,a3=new WeakMap,a4=new WeakMap,a6=new WeakSet,a5=new WeakSet,a8=new WeakMap,a9=new WeakSet,a7=new WeakSet,ce=new WeakSet,ct=new WeakSet,cr=new WeakSet,ci=new WeakSet,cn=new WeakSet,co=new WeakSet,cs=new WeakSet,ca=new WeakSet,cc=new WeakSet,cd=new WeakSet;class cl extends aR(){get concurrency(){return aA(this,aZ)}set concurrency(e){if(!("number"==typeof e&&e>=1))throw TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(typeof e,")"));aD(this,aZ,e),aB(this,cn,c_).call(this)}setPriority(e,r){if("number"!=typeof r||!Number.isFinite(r))throw TypeError("Expected `priority` to be a finite number, got `".concat(r,"` (").concat(typeof r,")"));aA(this,a$).setPriority(e,r)}async add(e){var r;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=(r=i).id||(r.id=(aN(this,a1).value++).toString()),i={timeout:this.timeout,...i},new Promise((r,n)=>{let o=Symbol("task-".concat(i.id));aA(this,a$).enqueue(async()=>{var s,a;aN(this,aY).value++,aA(this,a2).set(o,{id:i.id,priority:null!=(s=i.priority)?s:0,startTime:Date.now(),timeout:i.timeout});try{try{null==(a=i.signal)||a.throwIfAborted()}catch(e){throw!aA(this,az)&&aN(this,aU).value--,aA(this,a2).delete(o),e}let n=e({signal:i.signal});i.timeout&&(n=function(e,r){let i,n,{milliseconds:o,fallback:s,message:a,customTimers:c={setTimeout,clearTimeout},signal:d}=r,l=new Promise((r,l)=>{if("number"!=typeof o||1!==Math.sign(o))throw TypeError("Expected `milliseconds` to be a positive number, got `".concat(o,"`"));if(null==d?void 0:d.aborted)return void l(aE(d));if(d&&(n=()=>{l(aE(d))},d.addEventListener("abort",n,{once:!0})),e.then(r,l),o===1/0)return;let u=new aT;i=c.setTimeout.call(void 0,()=>{if(s){try{r(s())}catch(e){l(e)}return}"function"==typeof e.cancel&&e.cancel(),!1===a?r():a instanceof Error?l(a):(u.message=null!=a?a:"Promise timed out after ".concat(o," milliseconds"),l(u))},o)}).finally(()=>{l.clear(),n&&d&&d.removeEventListener("abort",n)});return l.clear=()=>{c.clearTimeout.call(void 0,i),i=void 0},l}(Promise.resolve(n),{milliseconds:i.timeout,message:"Task timed out after ".concat(i.timeout,"ms (queue has ").concat(aA(this,aY)," running, ").concat(aA(this,a$).size," waiting)")})),i.signal&&(n=Promise.race([n,aB(this,co,cw).call(this,i.signal)]));let s=await n;r(s),this.emit("completed",s)}catch(e){n(e),this.emit("error",e)}finally{aA(this,a2).delete(o),queueMicrotask(()=>{aB(this,a6,ch).call(this)})}},i),this.emit("add"),aB(this,ct,cb).call(this)})}async addAll(e,r){return Promise.all(e.map(async e=>this.add(e,r)))}start(){return aA(this,a0)&&(aD(this,a0,!1),aB(this,cn,c_).call(this)),this}pause(){aD(this,a0,!0)}clear(){aD(this,a$,new(aA(this,aQ))),aB(this,cd,cj).call(this)}async onEmpty(){0!==aA(this,a$).size&&await aB(this,cs,cR).call(this,"empty")}async onSizeLessThan(e){aA(this,a$).size<e||await aB(this,cs,cR).call(this,"next",()=>aA(this,a$).size<e)}async onIdle(){(0!==aA(this,aY)||0!==aA(this,a$).size)&&await aB(this,cs,cR).call(this,"idle")}async onPendingZero(){0!==aA(this,aY)&&await aB(this,cs,cR).call(this,"pendingZero")}async onRateLimit(){this.isRateLimited||await aB(this,cs,cR).call(this,"rateLimit")}async onRateLimitCleared(){this.isRateLimited&&await aB(this,cs,cR).call(this,"rateLimitCleared")}async onError(){return new Promise((e,r)=>{let i=e=>{this.off("error",i),r(e)};this.on("error",i)})}get size(){return aA(this,a$).size}sizeBy(e){return aA(this,a$).filter(e).length}get pending(){return aA(this,aY)}get isPaused(){return aA(this,a0)}get isRateLimited(){return aA(this,aq)}get isSaturated(){return aA(this,aY)===aA(this,aZ)&&aA(this,a$).size>0||this.isRateLimited&&aA(this,a$).size>0}get runningTasks(){return[...aA(this,a2).values()].map(e=>({...e}))}constructor(e){var r,i,n,o,s,a;if(super(),aM(this,a3,{get:cu,set:void 0}),aM(this,a4,{get:cp,set:void 0}),aL(this,a6),aL(this,a5),aM(this,a8,{get:cv,set:void 0}),aL(this,a9),aL(this,a7),aL(this,ce),aL(this,ct),aL(this,cr),aL(this,ci),aL(this,cn),aL(this,co),aL(this,cs),aL(this,ca),aL(this,cc),aL(this,cd),aM(this,aF,{writable:!0,value:void 0}),aM(this,az,{writable:!0,value:void 0}),aM(this,aU,{writable:!0,value:void 0}),aM(this,aH,{writable:!0,value:void 0}),aM(this,aq,{writable:!0,value:void 0}),aM(this,aW,{writable:!0,value:void 0}),aM(this,aV,{writable:!0,value:void 0}),aM(this,aG,{writable:!0,value:void 0}),aM(this,aK,{writable:!0,value:void 0}),aM(this,aJ,{writable:!0,value:void 0}),aM(this,aX,{writable:!0,value:void 0}),aM(this,a$,{writable:!0,value:void 0}),aM(this,aQ,{writable:!0,value:void 0}),aM(this,aY,{writable:!0,value:void 0}),aM(this,aZ,{writable:!0,value:void 0}),aM(this,a0,{writable:!0,value:void 0}),aM(this,a1,{writable:!0,value:void 0}),aM(this,a2,{writable:!0,value:void 0}),aD(this,aU,0),aD(this,aq,!1),aD(this,aW,!1),aD(this,aG,0),aD(this,aK,0),aD(this,aY,0),aD(this,a1,1n),aD(this,a2,new Map),!("number"==typeof(e={carryoverIntervalCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:aO,...e}).intervalCap&&e.intervalCap>=1))throw TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!=(i=null==(r=e.intervalCap)?void 0:r.toString())?i:"","` (").concat(typeof e.intervalCap,")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!=(o=null==(n=e.interval)?void 0:n.toString())?o:"","` (").concat(typeof e.interval,")"));if(aD(this,aF,null!=(a=null!=(s=e.carryoverIntervalCount)?s:e.carryoverConcurrencyCount)&&a),aD(this,az,e.intervalCap===1/0||0===e.interval),aD(this,aH,e.intervalCap),aD(this,aV,e.interval),aD(this,a$,new e.queueClass),aD(this,aQ,e.queueClass),this.concurrency=e.concurrency,void 0!==e.timeout&&!(Number.isFinite(e.timeout)&&e.timeout>0))throw TypeError("Expected `timeout` to be a positive finite number, got `".concat(e.timeout,"` (").concat(typeof e.timeout,")"));this.timeout=e.timeout,aD(this,a0,!1===e.autoStart),aB(this,ca,cT).call(this)}}function cu(){return aA(this,az)||aA(this,aU)<aA(this,aH)}function cp(){return aA(this,aY)<aA(this,aZ)}function ch(){aN(this,aY).value--,0===aA(this,aY)&&this.emit("pendingZero"),aB(this,ct,cb).call(this),this.emit("next")}function cf(){aB(this,ci,cC).call(this),aB(this,cr,cS).call(this),aD(this,aX,void 0)}function cv(){let e=Date.now();if(void 0===aA(this,aJ)){let r=aA(this,aG)-e;if(!(r<0))return aB(this,a9,cm).call(this,r),!0;if(aA(this,aK)>0){let r=e-aA(this,aK);if(r<aA(this,aV))return aB(this,a9,cm).call(this,aA(this,aV)-r),!0}aD(this,aU,aA(this,aF)?aA(this,aY):0)}return!1}function cm(e){void 0===aA(this,aX)&&aD(this,aX,setTimeout(()=>{aB(this,a5,cf).call(this)},e))}function cg(){aA(this,aJ)&&(clearInterval(aA(this,aJ)),aD(this,aJ,void 0))}function cy(){aA(this,aX)&&(clearTimeout(aA(this,aX)),aD(this,aX,void 0))}function cb(){if(0===aA(this,a$).size)return aB(this,a7,cg).call(this),this.emit("empty"),0===aA(this,aY)&&(aB(this,ce,cy).call(this),this.emit("idle")),!1;let e=!1;if(!aA(this,a0)){let r=!aA(this,a8);if(aA(this,a3)&&aA(this,a4)){let i=aA(this,a$).dequeue();aA(this,az)||(aN(this,aU).value++,aB(this,cc,cE).call(this)),this.emit("active"),aD(this,aK,Date.now()),i(),r&&aB(this,cr,cS).call(this),e=!0}}return e}function cS(){aA(this,az)||void 0!==aA(this,aJ)||(aD(this,aJ,setInterval(()=>{aB(this,ci,cC).call(this)},aA(this,aV))),aD(this,aG,Date.now()+aA(this,aV)))}function cC(){0===aA(this,aU)&&0===aA(this,aY)&&aA(this,aJ)&&aB(this,a7,cg).call(this),aD(this,aU,aA(this,aF)?aA(this,aY):0),aB(this,cn,c_).call(this),aB(this,cc,cE).call(this)}function c_(){for(;aB(this,ct,cb).call(this););}async function cw(e){return new Promise((r,i)=>{e.addEventListener("abort",()=>{i(e.reason)},{once:!0})})}async function cR(e,r){return new Promise(i=>{let n=()=>{(!r||r())&&(this.off(e,n),i())};this.on(e,n)})}function cT(){aA(this,az)||(this.on("add",()=>{aA(this,a$).size>0&&aB(this,cc,cE).call(this)}),this.on("next",()=>{aB(this,cc,cE).call(this)}))}function cE(){aA(this,az)||aA(this,aW)||(aD(this,aW,!0),queueMicrotask(()=>{aD(this,aW,!1),aB(this,cd,cj).call(this)}))}function cj(){let e=aA(this,aq),r=!aA(this,az)&&aA(this,aU)>=aA(this,aH)&&aA(this,a$).size>0;r!==e&&(aD(this,aq,r),this.emit(r?"rateLimit":"rateLimitCleared"))}class cP{constructor(e){this.id=ao(),this.createdAt=Date.now(),this.updatedAt=Date.now(),this.emitter=new oy,this.getConfig=()=>({...this.config}),this.updateConfig=e=>{this.config={...this.config,...e},this.updatedAt=Date.now()},this.toJSON=()=>({id:this.id,mod:this.mod,config:this.getConfig(),createdAt:this.createdAt,updatedAt:this.updatedAt}),this.updateTimestamp=()=>{this.updatedAt=Date.now()},this._dispose=()=>{this.emitter.clearListeners()},this.config={...e},this.config.timestamp||(this.config.timestamp=this.createdAt)}}var ck=C("../../node_modules/typewriter-effect/dist/core.js"),cO=C.n(ck);let cI=e=>/[\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF\u3000-\u303F]/.test(e);class cx extends cP{get mod(){return"text"}static fromSnapshot(e){return new cx(e.config)}static fromString(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new cx({content:e,...r})}setTargetElement(e){this.targetElement=e}isEmpty(){return!this.config.content}constructor(...e){super(...e),this.typewriter=null,this.targetElement=null,this.index=0,this.stopTypewriter=()=>{this.typewriter&&(this.typewriter.stop(),this.typewriter=null)},this.runTask=()=>new Promise((e,r)=>{if(this.ensureTarget(),this.isEmpty())return void e({mod:"text",content:""});try{var i,n,o,s,a;let r=null!=(o=null==(i=this.config.typewriterOptions)?void 0:i.delay)?o:163,c=null!=(s=null==(n=this.config.typewriterOptions)?void 0:n.enDelay)?s:r;this.typewriter=new(cO())(this.targetElement,{autoStart:!0,loop:!1,...this.config.typewriterOptions,delay:0,onCreateTextNode:e=>{let r=this.index===this.config.content.length-1;return this.emitter.emit("data",{char:e,index:this.index++,done:r}),document.createTextNode(e)}});let d=[],l="",u=null;for(let e of Array.from(this.config.content)){let r=cI(e);null===u||r===u?l+=e:(d.push({s:l,cn:u}),l=e),u=r}l&&d.push({s:l,cn:u});let p=this.typewriter;if(0===d.length)p=p.changeDelay(r).typeString(this.config.content);else for(let e=0;e<d.length;e++){let{s:i,cn:n}=d[e];if(0===e){let e=null!=(a=i[0])?a:"",o=i.slice(1);p=p.typeString(e),o&&(p=p.changeDelay(n?r:c).typeString(o));continue}p=p.changeDelay(n?r:c).typeString(i)}p.callFunction(()=>{e({mod:"text",content:this.config.content})}).start()}catch(e){r(e)}}),this.dispose=()=>{this._dispose(),this.stopTypewriter(),this.targetElement=null,this.index=0},this.interrupt=()=>{this.stopTypewriter()},this.ensureTarget=()=>{if(this.targetElement)return;let e=document.createElement("span");e.className="text-content-typewriter",this.targetElement=e}}}class cA extends cP{get mod(){return"image"}static fromSnapshot(e){return new cA(e.config)}static fromSrc(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new cA({src:e,...r})}isEmpty(){return!this.config.src}ensureImageElement(){if(this.imgElement)return this.imgElement;let e=document.createElement("img");return this.imgElement=e,e}constructor(...e){super(...e),this.imgElement=null,this.setTargetElement=e=>{this.imgElement=e},this.runTask=()=>new Promise((e,r)=>{var i;if(this.isEmpty())return void e({mod:"image",src:""});let n=this.ensureImageElement(),o=()=>{e({mod:"image",...this.config}),n.removeEventListener("load",o)},s=()=>{r(Error("Failed to load image: ".concat(this.config.src))),n.removeEventListener("error",s)};n.addEventListener("load",o,{once:!0}),n.addEventListener("error",s,{once:!0}),n.alt=null!=(i=this.config.alt)?i:"",this.config.width&&(n.width=this.config.width),this.config.height&&(n.height=this.config.height),n.src=this.config.src}),this.dispose=()=>{this._dispose(),this.imgElement&&(this.imgElement.src="",this.imgElement=null)},this.interrupt=()=>{}}}class cM extends cP{get mod(){return"video"}static fromSnapshot(e){return new cM(e.config)}static fromSrc(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new cM({src:e,...r})}isEmpty(){return!this.config.src}ensureVideoElement(){if(this.videoElement)return this.videoElement;let e=document.createElement("video");return e.muted=!0,e.playsInline=!0,this.videoElement=e,e}constructor(...e){super(...e),this.videoElement=null,this.setTargetElement=e=>{this.videoElement=e},this.runTask=()=>new Promise((e,r)=>{if(this.isEmpty())return void e({mod:"video",src:""});let i=this.ensureVideoElement(),n=()=>{e({mod:"video",...this.config}),i.removeEventListener("loadedmetadata",n)},o=()=>{r(Error("Failed to load video: ".concat(this.config.src))),i.removeEventListener("error",o)};i.addEventListener("loadedmetadata",n,{once:!0}),i.addEventListener("error",o,{once:!0}),this.config.poster&&(i.poster=this.config.poster),this.config.preload&&(i.preload=this.config.preload),this.config.width&&(i.width=this.config.width),this.config.height&&(i.height=this.config.height),i.src=this.config.src,i.load()}),this.dispose=()=>{this._dispose(),this.videoElement&&(this.videoElement.src="",this.videoElement.load(),this.videoElement=null)},this.interrupt=()=>{}}}let cD={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,r){return r},attributeValueProcessor:function(e,r){return r},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,r,i){return e},captureMetaData:!1},cN=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",cB=RegExp("^"+("["+cN+"]["+cN)+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function cL(e,r){let i=[],n=r.exec(e);for(;n;){let o=[];o.startIndex=r.lastIndex-n[0].length;let s=n.length;for(let e=0;e<s;e++)o.push(n[e]);i.push(o),n=r.exec(e)}return i}let cF=function(e){return null!=cB.exec(e)};r="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class cz{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,i){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==i&&(this.child[this.child.length-1][r]={startIndex:i})}static getMetaDataSymbol(){return r}}let cU=(e,r)=>{for(;r<e.length&&/\s/.test(e[r]);)r++;return r};function cH(e,r,i){let n="",o=e[r];if('"'!==o&&"'"!==o)throw Error(`Expected quoted string, found "${o}"`);for(r++;r<e.length&&e[r]!==o;)n+=e[r],r++;if(e[r]!==o)throw Error(`Unterminated ${i} value`);return[++r,n]}function cq(e,r,i){for(let n=0;n<r.length;n++)if(r[n]!==e[i+n+1])return!1;return!0}function cW(e){if(cF(e))return e;throw Error(`Invalid entity name ${e}`)}let cV=/^[-+]?0x[a-fA-F0-9]+$/,cG=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,cK={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0},cJ=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class cX{constructor(e){var r;this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,r)=>String.fromCodePoint(Number.parseInt(r,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,r)=>String.fromCodePoint(Number.parseInt(r,16))}},this.addExternalEntities=c$,this.parseXml=c1,this.parseTextData=cQ,this.resolveNameSpace=cY,this.buildAttributesMap=c0,this.isItStopNode=c6,this.replaceEntitiesValue=c3,this.readStopNodeData=c9,this.saveTextToParentTag=c4,this.addChild=c2,this.ignoreAttributesFn="function"==typeof(r=this.options.ignoreAttributes)?r:Array.isArray(r)?e=>{for(let i of r)if("string"==typeof i&&e===i||i instanceof RegExp&&i.test(e))return!0}:()=>!1}}function c$(e){let r=Object.keys(e);for(let i=0;i<r.length;i++){let n=r[i];this.lastEntities[n]={regex:RegExp("&"+n+";","g"),val:e[n]}}}function cQ(e,r,i,n,o,s,a){if(void 0!==e&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));let n=this.options.tagValueProcessor(r,e,i,o,s);return null==n?e:typeof n!=typeof e||n!==e?n:this.options.trimValues||e.trim()===e?c7(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function cY(e){if(this.options.removeNSPrefix){let r=e.split(":"),i="/"===e.charAt(0)?"/":"";if("xmlns"===r[0])return"";2===r.length&&(e=i+r[1])}return e}let cZ=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function c0(e,r,i){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){let i=cL(e,cZ),n=i.length,o={};for(let e=0;e<n;e++){let n=this.resolveNameSpace(i[e][1]);if(this.ignoreAttributesFn(n,r))continue;let s=i[e][4],a=this.options.attributeNamePrefix+n;if(n.length)if(this.options.transformAttributeName&&(a=this.options.transformAttributeName(a)),"__proto__"===a&&(a="#__proto__"),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s);let e=this.options.attributeValueProcessor(n,s,r);null==e?o[a]=s:typeof e!=typeof s||e!==s?o[a]=e:o[a]=c7(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[a]=!0)}if(Object.keys(o).length){if(this.options.attributesGroupName){let e={};return e[this.options.attributesGroupName]=o,e}return o}}}let c1=function(e){e=e.replace(/\r\n?/g,"\n");let r=new cz("!xml"),i=r,n="",o="";for(let s=0;s<e.length;s++)if("<"===e[s])if("/"===e[s+1]){let r=c5(e,">",s,"Closing Tag is not closed."),a=e.substring(s+2,r).trim();if(this.options.removeNSPrefix){let e=a.indexOf(":");-1!==e&&(a=a.substr(e+1))}this.options.transformTagName&&(a=this.options.transformTagName(a)),i&&(n=this.saveTextToParentTag(n,i,o));let c=o.substring(o.lastIndexOf(".")+1);if(a&&-1!==this.options.unpairedTags.indexOf(a))throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);let d=0;c&&-1!==this.options.unpairedTags.indexOf(c)?(d=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):d=o.lastIndexOf("."),o=o.substring(0,d),i=this.tagsNodeStack.pop(),n="",s=r}else if("?"===e[s+1]){let r=c8(e,s,!1,"?>");if(!r)throw Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,i,o),this.options.ignoreDeclaration&&"?xml"===r.tagName||this.options.ignorePiTags);else{let e=new cz(r.tagName);e.add(this.options.textNodeName,""),r.tagName!==r.tagExp&&r.attrExpPresent&&(e[":@"]=this.buildAttributesMap(r.tagExp,o,r.tagName)),this.addChild(i,e,o,s)}s=r.closeIndex+1}else if("!--"===e.substr(s+1,3)){let r=c5(e,"--\x3e",s+4,"Comment is not closed.");if(this.options.commentPropName){let a=e.substring(s+4,r-2);n=this.saveTextToParentTag(n,i,o),i.add(this.options.commentPropName,[{[this.options.textNodeName]:a}])}s=r}else if("!D"===e.substr(s+1,2)){let r=function(e,r){let i={};if("O"===e[r+3]&&"C"===e[r+4]&&"T"===e[r+5]&&"Y"===e[r+6]&&"P"===e[r+7]&&"E"===e[r+8]){r+=9;let n=1,o=!1,s=!1;for(;r<e.length;r++)if("<"!==e[r]||s)if(">"===e[r]){if(s?"-"===e[r-1]&&"-"===e[r-2]&&(s=!1,n--):n--,0===n)break}else"["===e[r]?o=!0:e[r];else{if(o&&cq(e,"!ENTITY",r)){let n,o;r+=7,[n,o,r]=function(e,r){r=cU(e,r);let i="";for(;r<e.length&&!/\s/.test(e[r])&&'"'!==e[r]&&"'"!==e[r];)i+=e[r],r++;if(cW(i),r=cU(e,r),"SYSTEM"===e.substring(r,r+6).toUpperCase())throw Error("External entities are not supported");if("%"===e[r])throw Error("Parameter entities are not supported");let n="";return[r,n]=cH(e,r,"entity"),[i,n,--r]}(e,r+1),-1===o.indexOf("&")&&(i[n]={regx:RegExp(`&${n};`,"g"),val:o})}else if(o&&cq(e,"!ELEMENT",r)){let{index:i}=function(e,r){r=cU(e,r);let i="";for(;r<e.length&&!/\s/.test(e[r]);)i+=e[r],r++;if(!cW(i))throw Error(`Invalid element name: "${i}"`);r=cU(e,r);let n="";if("E"===e[r]&&cq(e,"MPTY",r))r+=4;else if("A"===e[r]&&cq(e,"NY",r))r+=2;else if("("===e[r]){for(r++;r<e.length&&")"!==e[r];)n+=e[r],r++;if(")"!==e[r])throw Error("Unterminated content model")}else throw Error(`Invalid Element Expression, found "${e[r]}"`);return{elementName:i,contentModel:n.trim(),index:r}}(e,(r+=8)+1);r=i}else if(o&&cq(e,"!ATTLIST",r))r+=8;else if(o&&cq(e,"!NOTATION",r)){let{index:i}=function(e,r){r=cU(e,r);let i="";for(;r<e.length&&!/\s/.test(e[r]);)i+=e[r],r++;cW(i),r=cU(e,r);let n=e.substring(r,r+6).toUpperCase();if("SYSTEM"!==n&&"PUBLIC"!==n)throw Error(`Expected SYSTEM or PUBLIC, found "${n}"`);r+=n.length,r=cU(e,r);let o=null,s=null;if("PUBLIC"===n)[r,o]=cH(e,r,"publicIdentifier"),r=cU(e,r),('"'===e[r]||"'"===e[r])&&([r,s]=cH(e,r,"systemIdentifier"));else if("SYSTEM"===n&&([r,s]=cH(e,r,"systemIdentifier"),!s))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:o,systemIdentifier:s,index:--r}}(e,(r+=9)+1);r=i}else if(cq(e,"!--",r))s=!0;else throw Error("Invalid DOCTYPE");n++}if(0!==n)throw Error("Unclosed DOCTYPE")}else throw Error("Invalid Tag instead of DOCTYPE");return{entities:i,i:r}}(e,s);this.docTypeEntities=r.entities,s=r.i}else if("!["===e.substr(s+1,2)){let r=c5(e,"]]>",s,"CDATA is not closed.")-2,a=e.substring(s+9,r);n=this.saveTextToParentTag(n,i,o);let c=this.parseTextData(a,i.tagname,o,!0,!1,!0,!0);void 0==c&&(c=""),this.options.cdataPropName?i.add(this.options.cdataPropName,[{[this.options.textNodeName]:a}]):i.add(this.options.textNodeName,c),s=r+2}else{let a=c8(e,s,this.options.removeNSPrefix),c=a.tagName,d=a.rawTagName,l=a.tagExp,u=a.attrExpPresent,p=a.closeIndex;this.options.transformTagName&&(c=this.options.transformTagName(c)),i&&n&&"!xml"!==i.tagname&&(n=this.saveTextToParentTag(n,i,o,!1));let h=i;h&&-1!==this.options.unpairedTags.indexOf(h.tagname)&&(i=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),c!==r.tagname&&(o+=o?"."+c:c);let f=s;if(this.isItStopNode(this.options.stopNodes,o,c)){let r="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)"/"===c[c.length-1]?(c=c.substr(0,c.length-1),o=o.substr(0,o.length-1),l=c):l=l.substr(0,l.length-1),s=a.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(c))s=a.closeIndex;else{let i=this.readStopNodeData(e,d,p+1);if(!i)throw Error(`Unexpected end of ${d}`);s=i.i,r=i.tagContent}let n=new cz(c);c!==l&&u&&(n[":@"]=this.buildAttributesMap(l,o,c)),r&&(r=this.parseTextData(r,c,o,!0,u,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),n.add(this.options.textNodeName,r),this.addChild(i,n,o,f)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){"/"===c[c.length-1]?(c=c.substr(0,c.length-1),o=o.substr(0,o.length-1),l=c):l=l.substr(0,l.length-1),this.options.transformTagName&&(c=this.options.transformTagName(c));let e=new cz(c);c!==l&&u&&(e[":@"]=this.buildAttributesMap(l,o,c)),this.addChild(i,e,o,f),o=o.substr(0,o.lastIndexOf("."))}else{let e=new cz(c);this.tagsNodeStack.push(i),c!==l&&u&&(e[":@"]=this.buildAttributesMap(l,o,c)),this.addChild(i,e,o,f),i=e}n="",s=p}}else n+=e[s];return r.child};function c2(e,r,i,n){this.options.captureMetaData||(n=void 0);let o=this.options.updateTag(r.tagname,i,r[":@"]);!1===o||("string"==typeof o&&(r.tagname=o),e.addChild(r,n))}let c3=function(e){if(this.options.processEntities){for(let r in this.docTypeEntities){let i=this.docTypeEntities[r];e=e.replace(i.regx,i.val)}for(let r in this.lastEntities){let i=this.lastEntities[r];e=e.replace(i.regex,i.val)}if(this.options.htmlEntities)for(let r in this.htmlEntities){let i=this.htmlEntities[r];e=e.replace(i.regex,i.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function c4(e,r,i,n){return e&&(void 0===n&&(n=0===r.child.length),void 0!==(e=this.parseTextData(e,r.tagname,i,!1,!!r[":@"]&&0!==Object.keys(r[":@"]).length,n))&&""!==e&&r.add(this.options.textNodeName,e),e=""),e}function c6(e,r,i){let n="*."+i;for(let i in e){let o=e[i];if(n===o||r===o)return!0}return!1}function c5(e,r,i,n){let o=e.indexOf(r,i);if(-1!==o)return o+r.length-1;throw Error(n)}function c8(e,r,i,n=">"){let o=function(e,r,i=">"){let n,o="";for(let s=r;s<e.length;s++){let r=e[s];if(n)r===n&&(n="");else if('"'===r||"'"===r)n=r;else if(r===i[0]){if(!i[1])return{data:o,index:s};else if(e[s+1]===i[1])return{data:o,index:s}}else" "===r&&(r=" ");o+=r}}(e,r+1,n);if(!o)return;let s=o.data,a=o.index,c=s.search(/\s/),d=s,l=!0;-1!==c&&(d=s.substring(0,c),s=s.substring(c+1).trimStart());let u=d;if(i){let e=d.indexOf(":");-1!==e&&(l=(d=d.substr(e+1))!==o.data.substr(e+1))}return{tagName:d,tagExp:s,closeIndex:a,attrExpPresent:l,rawTagName:u}}function c9(e,r,i){let n=i,o=1;for(;i<e.length;i++)if("<"===e[i])if("/"===e[i+1]){let s=c5(e,">",i,`${r} is not closed`);if(e.substring(i+2,s).trim()===r&&0==--o)return{tagContent:e.substring(n,i),i:s};i=s}else if("?"===e[i+1])i=c5(e,"?>",i+1,"StopNode is not closed.");else if("!--"===e.substr(i+1,3))i=c5(e,"--\x3e",i+3,"StopNode is not closed.");else if("!["===e.substr(i+1,2))i=c5(e,"]]>",i,"StopNode is not closed.")-2;else{let n=c8(e,i,">");n&&((n&&n.tagName)===r&&"/"!==n.tagExp[n.tagExp.length-1]&&o++,i=n.closeIndex)}}function c7(e,r,i){if(r&&"string"==typeof e){let r=e.trim();return"true"===r||"false"!==r&&function(e,r={}){if(r=Object.assign({},cK,r),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==r.skipLike&&r.skipLike.test(i))return e;{if("0"===e)return 0;if(r.hex&&cV.test(i)){var n,o=i;if(parseInt)return parseInt(o,16);if(Number.parseInt)return Number.parseInt(o,16);if(window&&window.parseInt)return window.parseInt(o,16);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}if(-1!==i.search(/.+[eE].+/))return function(e,r,i){if(!i.eNotation)return e;let n=r.match(cJ);if(!n)return e;{let o=n[1]||"",s=-1===n[3].indexOf("e")?"E":"e",a=n[2],c=o?e[a.length+1]===s:e[a.length]===s;return a.length>1&&c?e:1===a.length&&(n[3].startsWith(`.${s}`)||n[3][0]===s)?Number(r):i.leadingZeros&&!c?Number(r=(n[1]||"")+n[3]):e}}(e,i,r);let s=cG.exec(i);if(!s)return e;{let o=s[1]||"",a=s[2],c=((n=s[3])&&-1!==n.indexOf(".")&&("."===(n=n.replace(/0+$/,""))?n="0":"."===n[0]?n="0"+n:"."===n[n.length-1]&&(n=n.substring(0,n.length-1))),n),d=o?"."===e[a.length+1]:"."===e[a.length];if(!r.leadingZeros&&(a.length>1||1===a.length&&!d))return e;{let n=Number(i),s=String(n);if(0===n)return n;if(-1!==s.search(/[eE]/))if(r.eNotation)return n;else return e;if(-1!==i.indexOf("."))if("0"===s)return n;else if(s===c)return n;else if(s===`${o}${c}`)return n;else return e;let d=a?c:i;return a?d===s||o+d===s?n:e:d===s||d===o+s?n:e}}}}(e,i)}return void 0!==e?e:""}let de=cz.getMetaDataSymbol(),dt={allowBooleanAttributes:!1,unpairedTags:[]};function dr(e,r){r=Object.assign({},dt,r);let i=[],n=!1,o=!1;"\uFEFF"===e[0]&&(e=e.substr(1));for(let s=0;s<e.length;s++)if("<"===e[s]&&"?"===e[s+1]){if(s+=2,(s=dn(e,s)).err)return s}else if("<"===e[s]){let a=s;if("!"===e[++s]){s=ds(e,s);continue}{let c=!1;"/"===e[s]&&(c=!0,s++);let d="";for(;s<e.length&&">"!==e[s]&&" "!==e[s]&&" "!==e[s]&&"\n"!==e[s]&&"\r"!==e[s];s++)d+=e[s];if("/"===(d=d.trim())[d.length-1]&&(d=d.substring(0,d.length-1),s--),!cF(d))return dd("InvalidTag",0===d.trim().length?"Invalid space after '<'.":"Tag '"+d+"' is an invalid name.",dl(e,s));let l=function(e,r){let i="",n="",o=!1;for(;r<e.length;r++){if('"'===e[r]||"'"===e[r])""===n?n=e[r]:n!==e[r]||(n="");else if(">"===e[r]&&""===n){o=!0;break}i+=e[r]}return""===n&&{value:i,index:r,tagClosed:o}}(e,s);if(!1===l)return dd("InvalidAttr","Attributes for '"+d+"' have open quote.",dl(e,s));let u=l.value;if(s=l.index,"/"===u[u.length-1]){let i=s-u.length,o=dc(u=u.substring(0,u.length-1),r);if(!0!==o)return dd(o.err.code,o.err.msg,dl(e,i+o.err.line));n=!0}else if(c)if(!l.tagClosed)return dd("InvalidTag","Closing tag '"+d+"' doesn't have proper closing.",dl(e,s));else{if(u.trim().length>0)return dd("InvalidTag","Closing tag '"+d+"' can't have attributes or invalid starting.",dl(e,a));if(0===i.length)return dd("InvalidTag","Closing tag '"+d+"' has not been opened.",dl(e,a));let r=i.pop();if(d!==r.tagName){let i=dl(e,r.tagStartPos);return dd("InvalidTag","Expected closing tag '"+r.tagName+"' (opened in line "+i.line+", col "+i.col+") instead of closing tag '"+d+"'.",dl(e,a))}0==i.length&&(o=!0)}else{let c=dc(u,r);if(!0!==c)return dd(c.err.code,c.err.msg,dl(e,s-u.length+c.err.line));if(!0===o)return dd("InvalidXml","Multiple possible root nodes found.",dl(e,s));-1!==r.unpairedTags.indexOf(d)||i.push({tagName:d,tagStartPos:a}),n=!0}for(s++;s<e.length;s++)if("<"===e[s])if("!"===e[s+1]){s=ds(e,++s);continue}else if("?"===e[s+1]){if((s=dn(e,++s)).err)return s}else break;else if("&"===e[s]){let r=function(e,r){if(";"===e[++r])return -1;if("#"===e[r]){var i=++r;let n=/\d/;for("x"===e[i]&&(i++,n=/[\da-fA-F]/);i<e.length;i++){if(";"===e[i])return i;if(!e[i].match(n))break}return -1}let n=0;for(;r<e.length;r++,n++)if(!e[r].match(/\w/)||!(n<20)){if(";"===e[r])break;return -1}return r}(e,s);if(-1==r)return dd("InvalidChar","char '&' is not expected.",dl(e,s));s=r}else if(!0===o&&!di(e[s]))return dd("InvalidXml","Extra text at the end",dl(e,s));"<"===e[s]&&s--}}else{if(di(e[s]))continue;return dd("InvalidChar","char '"+e[s]+"' is not expected.",dl(e,s))}return n?1==i.length?dd("InvalidTag","Unclosed tag '"+i[0].tagName+"'.",dl(e,i[0].tagStartPos)):!(i.length>0)||dd("InvalidXml","Invalid '"+JSON.stringify(i.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):dd("InvalidXml","Start tag expected.",1)}function di(e){return" "===e||" "===e||"\n"===e||"\r"===e}function dn(e,r){let i=r;for(;r<e.length;r++)if("?"==e[r]||" "==e[r]){let n=e.substr(i,r-i);if(r>5&&"xml"===n)return dd("InvalidXml","XML declaration allowed only at the start of the document.",dl(e,r));if("?"!=e[r]||">"!=e[r+1])continue;r++;break}return r}function ds(e,r){if(e.length>r+5&&"-"===e[r+1]&&"-"===e[r+2]){for(r+=3;r<e.length;r++)if("-"===e[r]&&"-"===e[r+1]&&">"===e[r+2]){r+=2;break}}else if(e.length>r+8&&"D"===e[r+1]&&"O"===e[r+2]&&"C"===e[r+3]&&"T"===e[r+4]&&"Y"===e[r+5]&&"P"===e[r+6]&&"E"===e[r+7]){let i=1;for(r+=8;r<e.length;r++)if("<"===e[r])i++;else if(">"===e[r]&&0==--i)break}else if(e.length>r+9&&"["===e[r+1]&&"C"===e[r+2]&&"D"===e[r+3]&&"A"===e[r+4]&&"T"===e[r+5]&&"A"===e[r+6]&&"["===e[r+7]){for(r+=8;r<e.length;r++)if("]"===e[r]&&"]"===e[r+1]&&">"===e[r+2]){r+=2;break}}return r}let da=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function dc(e,r){let i=cL(e,da),n={};for(let e=0;e<i.length;e++){if(0===i[e][1].length)return dd("InvalidAttr","Attribute '"+i[e][2]+"' has no space in starting.",du(i[e]));if(void 0!==i[e][3]&&void 0===i[e][4])return dd("InvalidAttr","Attribute '"+i[e][2]+"' is without value.",du(i[e]));if(void 0===i[e][3]&&!r.allowBooleanAttributes)return dd("InvalidAttr","boolean attribute '"+i[e][2]+"' is not allowed.",du(i[e]));let o=i[e][2];if(!cF(o))return dd("InvalidAttr","Attribute '"+o+"' is an invalid name.",du(i[e]));if(n.hasOwnProperty(o))return dd("InvalidAttr","Attribute '"+o+"' is repeated.",du(i[e]));n[o]=1}return!0}function dd(e,r,i){return{err:{code:e,msg:r,line:i.line||i,col:i.col}}}function dl(e,r){let i=e.substring(0,r).split(/\r?\n/);return{line:i.length,col:i[i.length-1].length+1}}function du(e){return e.startIndex+e[1].length}class dp{constructor(e){this.externalEntities={},this.options=Object.assign({},cD,e)}parse(e,r){if("string"==typeof e);else if(e.toString)e=e.toString();else throw Error("XML data is accepted in String or Bytes[] form.");if(r){!0===r&&(r={});let i=dr(e,r);if(!0!==i)throw Error(`${i.err.msg}:${i.err.line}:${i.err.col}`)}let i=new cX(this.options);i.addExternalEntities(this.externalEntities);let n=i.parseXml(e);return this.options.preserveOrder||void 0===n?n:function e(r,i,n){let o,s={};for(let a=0;a<r.length;a++){let c=r[a],d=function(e){let r=Object.keys(e);for(let e=0;e<r.length;e++){let i=r[e];if(":@"!==i)return i}}(c),l="";if(l=void 0===n?d:n+"."+d,d===i.textNodeName)void 0===o?o=c[d]:o+=""+c[d];else if(void 0===d)continue;else if(c[d]){let r=e(c[d],i,l),n=function(e,r){let{textNodeName:i}=r,n=Object.keys(e).length;return 0===n||1===n&&(!!e[i]||"boolean"==typeof e[i]||0===e[i])}(r,i);void 0!==c[de]&&(r[de]=c[de]),c[":@"]?function(e,r,i,n){if(r){let o=Object.keys(r),s=o.length;for(let a=0;a<s;a++){let s=o[a];n.isArray(s,i+"."+s,!0,!0)?e[s]=[r[s]]:e[s]=r[s]}}}(r,c[":@"],l,i):1!==Object.keys(r).length||void 0===r[i.textNodeName]||i.alwaysCreateTextNode?0===Object.keys(r).length&&(i.alwaysCreateTextNode?r[i.textNodeName]="":r=""):r=r[i.textNodeName],void 0!==s[d]&&s.hasOwnProperty(d)?(Array.isArray(s[d])||(s[d]=[s[d]]),s[d].push(r)):i.isArray(d,l,n)?s[d]=[r]:s[d]=r}}return"string"==typeof o?o.length>0&&(s[i.textNodeName]=o):void 0!==o&&(s[i.textNodeName]=o),s}(n,this.options)}addEntity(e,r){if(-1!==r.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===r)throw Error("An entity with value '&' is not permitted");this.externalEntities[e]=r}static getMetaDataSymbol(){return cz.getMetaDataSymbol()}}class dh{constructor(){this.isXml=e=>dh.isXml(e),this.parseXmlOrText=e=>{try{let r=this.xmlParser.parse(e);if(Array.isArray(r)&&!r.length);else if(Array.isArray(r)&&r.length)return r;return e}catch(r){return e}},this.hasMixContentByParsedXml=e=>Array.isArray(e),this.xmlParser=new dp({preserveOrder:!0,ignoreAttributes:!1,attributeNamePrefix:"",textNodeName:"#text",alwaysCreateTextNode:!0})}}dh.isTextNode=e=>"text"in e,dh.isImageNode=e=>"image"in e,dh.isVideoNode=e=>"video"in e,dh.isXml=e=>"string"==typeof e&&!0===dr(e,{allowBooleanAttributes:!0});class df extends aC{get fulltext(){return this.contents.map(e=>df.isTextContent(e)?e.getConfig().content:"").join("")}constructor(e,r){super({...e,type:"aiWorker"},r),this.opts=r,this.contents=[],this.hasReceivedEndSignal=!1,this.addContentRenderTask=e=>{if(df.isTextContent(e)){let r=e=>{this.emitter.emit("content_change",{mod:"text",content:e.char,completed:e.done})};e.emitter.on("data",r),this.queue.add(e.runTask).finally(()=>{e.dispose()})}else df.isImageContent(e)?this.queue.add(e.runTask).then(e=>{e&&this.emitter.emit("content_change",{mod:"image",content:e.src,completed:!0})}).finally(()=>{e.dispose()}):df.isVideoContent(e)&&this.queue.add(e.runTask).then(e=>{e&&this.emitter.emit("content_change",{mod:"video",content:e.src,completed:!0})}).finally(()=>{e.dispose()})},this.addAllContents=e=>{for(let r of(this.contents=e,e))this.addContentRenderTask(r)},this.createContentsFromXmlString=e=>{let r=this.customXmlParser.parseXmlOrText(e);return this.customXmlParser.hasMixContentByParsedXml(r)?r[0].root[0].content.map(e=>dh.isTextNode(e)?cx.fromString(e.text[0]["#text"],{typewriterOptions:{delay:this.opts.typeDelay,enDelay:this.opts.enTypeDelay}}):dh.isImageNode(e)?cA.fromSrc(e.image[0]["#text"]):dh.isVideoNode(e)?cM.fromSrc(e.video[0]["#text"]):null).filter(Boolean):[]},this.appendText=e=>{if(this.customXmlParser.isXml(e)){let r=this.createContentsFromXmlString(e);this.addAllContents(r)}else{let r=cx.fromString(e,{typewriterOptions:{delay:this.opts.typeDelay,enDelay:this.opts.enTypeDelay}});this.addContentRenderTask(r),this.contents.push(r)}},this.dispose=()=>{this.queue.removeAllListeners(),this.contents=[]},this.interrupt=()=>{for(let e of this.contents)e.interrupt();this.queue.clear(),this.emitter.emit("interrupt").catch(as)},this.markAsEnded=()=>{if(this.hasReceivedEndSignal=!0,0===this.queue.size&&0===this.queue.pending&&this.contents.length>0){let e={id:this.id,type:this.type,text:this.fulltext,contents:this.contents.map(e=>e.toJSON()),timestamp:Date.now()};this.emitter.emit("conversation_end",e).catch(as),this.hasReceivedEndSignal=!1}},this.bindEvents=()=>{this.queue.on("empty",()=>{if(this.emitter.emit("queue_empty").catch(as),this.hasReceivedEndSignal&&this.contents.length>0){let e={id:this.id,type:this.type,text:this.fulltext,contents:this.contents.map(e=>e.toJSON()),timestamp:Date.now()};this.emitter.emit("conversation_end",e).catch(as),this.hasReceivedEndSignal=!1}})},this.queue=new cl({concurrency:1}),this.customXmlParser=new dh,this.bindEvents()}}function dv(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function dm(e,r){return function(i,n){r(i,n,e)}}df.create=e=>new df({},e),df.isAllTextContents=e=>e.every(e=>"text"===e.mod),df.isTextContent=e=>e instanceof cx&&"text"===e.mod,df.isImageContent=e=>e instanceof cA&&"image"===e.mod,df.isVideoContent=e=>e instanceof cM&&"video"===e.mod;class dg{get last(){var e;return null!=(e=this.beans[this.beans.length-1])?e:null}get currentClientConversation(){return dg.isClientConversation(this.currentConversation)?this.currentConversation:null}get currentAIWorkerConversation(){return dg.isAIWorkerConversation(this.currentConversation)?this.currentConversation:null}static isClientConversation(e){return(null==e?void 0:e.type)==="client"}static isAIWorkerConversation(e){return(null==e?void 0:e.type)==="aiWorker"}constructor(e){var r=this;this.opts=e,this.beans=[],this.currentConversation=null,this.aiWorkerConversationFormatters=[],this.uiStateCache=new Map,this.add=e=>{this.beans.push(e)},this.addBySnapshot=function(){let e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(i.type){case"client":e=new a_(i,r.opts);break;case"aiWorker":e=new df(i,r.opts);break;default:throw Error("Unknown conversation type: ".concat(i.type))}return r.beans.push(e),e},this.setCurrentConversation=e=>{this.currentConversation=e},this.clear=()=>{this.beans=[]},this.toJSON=()=>this.beans.map(e=>e.toJSON()),this.getUIState=e=>{let r=this.uiStateCache.get(e);if(r)return{mode:r.mode,contents:r.contents.map(e=>({...e}))}},this.setUIState=(e,r)=>{this.uiStateCache.set(e,{mode:r.mode,contents:r.contents.map(e=>({...e}))})},this.clearUIState=e=>{this.uiStateCache.delete(e)},this.buildSnapshotUIState=e=>({contents:e.contents.map(e=>{var r,i;let n=e.getConfig();return"text"===e.mod?{uiId:ao(),mod:"text",content:null!=(r=n.content)?r:"",completed:!0}:"image"===e.mod||"video"===e.mod?{uiId:ao(),mod:e.mod,content:null!=(i=n.src)?i:"",completed:!0}:null}).filter(e=>!!e),mode:"snapshot"}),this.dispose=()=>{for(let e of this.beans)e.dispose();this.beans=[],this.currentConversation=null,this.aiWorkerConversationFormatters=[],this.uiStateCache.clear()},this.registerAIWorkerConversationFormatter=e=>{this.aiWorkerConversationFormatters.push(e)},this.runAIWorkerConversationFormatters=e=>{let r=e;for(let e of this.aiWorkerConversationFormatters)r=e(r);return r},this.interruptAll=()=>{for(let e of this.beans)e.interrupt()}}}dg=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),dm(0,e3(oS.IOptions)),dm(0,tt()),dv("design:type",Function),dv("design:paramtypes",["undefined"==typeof IResolvedOptions?Object:IResolvedOptions])],dg);var dy=C("../../node_modules/abort-signal-polyfill/dist/staticMethods/any.js"),db=C("../../node_modules/abort-signal-polyfill/dist/staticMethods/timeout.js"),dS=C("../../node_modules/abort-signal-polyfill/dist/staticMethods/abort.js");let dC=(e,r)=>{e in AbortSignal||Object.defineProperty(AbortSignal,e,{value:r,configurable:!0,writable:!0})};var d_=function(){return(d_=Object.assign||function(e){for(var r,i=1,n=arguments.length;i<n;i++)for(var o in r=arguments[i])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)},dw=C("../../node_modules/@baidu/weirwood-perf/esm/index.js"),dR=function(){return(dR=Object.assign||function(e){for(var r,i=1,n=arguments.length;i<n;i++)for(var o in r=arguments[i])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function dT(e){var r="function"==typeof Symbol&&Symbol.iterator,i=r&&e[r],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function dE(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(function(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,s=i.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}(arguments[r]));return e}function dj(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function dP(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function dk(e){return void 0===e}function dO(e){return"function"==typeof e}function dI(e){return"[object String]"===Object.prototype.toString.call(e)}function dx(e){return"[object Number]"===Object.prototype.toString.call(e)}function dA(e){return"[object Array]"===Object.prototype.toString.call(e)}function dM(e){return"[object Object]"===Object.prototype.toString.call(e)}function dD(e){if(!dM(e))return!1;for(var r in e)if(e.hasOwnProperty(r))return!1;return!0}var dN={};function dB(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==C.g?C.g:"undefined"!=typeof self?self:dN}var dL=dB(),dF={wrap:function(){return function(){}},report:!1,collectWindowErrors:!1,computeStackTrace:!1,remoteFetching:!1,linesOfContext:!1,extendToAsynchronousCallbacks:!1},dz=[].slice,dU=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function dH(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function dq(){return"undefined"==typeof document||null==document.location?"":document.location.href}dF.wrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){throw dF.report(e),e}}},dF.report=function(){var e,r,i,n,o=[],s=null,a=null;function c(e,r,i,n,s,a){var c=null;if(!r||dF.collectWindowErrors){for(var d in o)if(dH(o,d))try{o[d](e,r,i,n,s,a)}catch(e){c=e}if(c)throw c}}function d(r,i,n,o,s){var d=null;if(s=dP(s)?s.error:s,r=dP(r)?r.message:r,a)dF.computeStackTrace.augmentStackTraceWithInitialElement(a,i,n,r),u();else if(s&&dj(s))(d=dF.computeStackTrace(s)).mechanism="onerror",c(d,!0,s,i,n,o);else{var l,p={url:i,line:n,column:o},h=r;if("[object String]"===({}).toString.call(r)){var f=r.match(dU);f&&(l=f[1],h=f[2])}p.func=dF.computeStackTrace.guessFunctionName(p.url,p.line),p.context=dF.computeStackTrace.gatherContext(p.url,p.line),c(d={name:l,message:h,mode:"onerror",mechanism:"onerror",stack:[dR(dR({},p),{url:p.url||dq()})]},!0,null,i,n,o)}return!!e&&e.apply(this,arguments)}function l(e){var r=e&&(e.detail?e.detail.reason:e.reason)||e,i=dF.computeStackTrace(r);i.mechanism="onunhandledrejection",c(i,!0,r)}function u(){var e=a,r=s;a=null,s=null,c(e,!1,r)}function p(e){if(a)if(s===e)return;else u();var r=dF.computeStackTrace(e);throw a=r,s=e,setTimeout(function(){s===e&&u()},2e3*!!r.incomplete),e}return p.subscribe=function(e){o.push(e)},p.unsubscribe=function(s){for(var a=o.length-1;a>=0;--a)o[a]===s&&o.splice(a,1);0===o.length&&(r&&(dL.onerror=e,r=!1),n&&(dL.onunhandledrejection=i,n=!1))},p.installGlobalHandler=function(){!0!==r&&(e=dL.onerror,dL.onerror=d,r=!0)},p.installGlobalUnhandledRejectionHandler=function(){!0!==n&&(i=dL.onunhandledrejection,dL.onunhandledrejection=l,n=!0)},p}(),dF.computeStackTrace=function(){var e={};function r(r){if("string"!=typeof r)return[];if(!dH(e,r)){var i="",n="";try{n=dL.document.domain}catch(e){}var o=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(r);o&&o[2]===n&&(i=function(e){if(!dF.remoteFetching)return"";try{var r=function(){try{return new dL.XMLHttpRequest}catch(e){return new dL.ActiveXObject("Microsoft.XMLHTTP")}}();return r.open("GET",e,!1),r.send(""),r.responseText}catch(e){return""}}(r)),e[r]=i?i.split("\n"):[]}return e[r]}function i(e,i){var n,o=/function ([^(]*)\(([^)]*)\)/,s=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,a="",c=r(e);if(!c.length)return"?";for(var d=0;d<10;++d)if(!dk(a=c[i-d]+a)){if(n=s.exec(a))return n[1];else if(n=o.exec(a))return n[1]}return"?"}function n(e,i){var n=r(e);if(!n.length)return null;var o=[],s=Math.floor(dF.linesOfContext/2),a=s+dF.linesOfContext%2,c=Math.max(0,i-s-1),d=Math.min(n.length,i+a-1);i-=1;for(var l=c;l<d;++l)dk(n[l])||o.push(n[l]);return o.length>0?o:null}function o(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function s(e){return o(e).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function a(e,i){for(var n,o,s=0,a=i.length;s<a;++s)if((n=r(i[s])).length&&(n=n.join("\n"),o=e.exec(n)))return{url:i[s],line:n.substring(0,o.index).split("\n").length,column:o.index-n.lastIndexOf("\n",o.index)-1};return null}function c(e,i,n){var s,a=r(i),c=RegExp("\\b"+o(e)+"\\b");return(n-=1,a&&a.length>n&&(s=c.exec(a[n])))?s.index:null}function d(e){if(!e.stack)return null;for(var r,o,s,a,d=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,h=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=e.stack.split("\n"),m=[],g=/^(.*) is undefined$/.exec(e.message),y=0,b=f.length;y<b;++y){if(s=d.exec(f[y])){var S=s[2]&&0===s[2].indexOf("native");s[2]&&0===s[2].indexOf("eval")&&(o=h.exec(s[2]))&&(s[2]=o[1]),a={url:S?null:s[2],func:s[1]||"?",args:S?[s[2]]:[],line:s[3]?+s[3]:null,column:s[4]?+s[4]:null}}else if(s=u.exec(f[y]))a={url:s[2],func:s[1]||"?",args:[],line:+s[3],column:s[4]?+s[4]:null};else{if(!(s=l.exec(f[y])))continue;s[3]&&s[3].indexOf(" > eval")>-1&&(o=p.exec(s[3]))?s[3]=o[1]:0!==y||s[5]||dk(e.columnNumber)||(m[0].column=e.columnNumber+1),a={url:s[3],func:s[1]||"?",args:s[2]?s[2].split(","):[],line:s[4]?+s[4]:null,column:s[5]?+s[5]:null}}if(!a.func&&a.line&&(a.func=i(a.url,a.line)),dF.remoteFetching&&a.url&&"blob:"===a.url.substr(0,5)){var C=new XMLHttpRequest;if(C.open("GET",a.url,!1),C.send(""),200===C.status){var _=C.responseText||"",w=(_=_.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(w){var R=w[1];"~"===R.charAt(0)&&(R=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+R.slice(1)),a.url=R.slice(0,-4)}}}a.context=a.line?n(a.url,a.line):null,m.push(a)}return m.length?(m[0]&&m[0].line&&!m[0].column&&g&&(m[0].column=c(g[1],m[0].url,m[0].line)),{mode:"stack",name:e.name,message:e.message,stack:m}):null}function l(e,r,o,s){var a={url:r,line:o};if(a.url&&a.line){e.incomplete=!1,a.func||(a.func=i(a.url,a.line)),a.context||(a.context=n(a.url,a.line));var d=/ '([^']+)' /.exec(s);if(d&&(a.column=c(d[1],a.url,a.line)),e.stack.length>0&&e.stack[0].url===a.url){if(e.stack[0].line===a.line)return!1;else if(!e.stack[0].line&&e.stack[0].func===a.func)return e.stack[0].line=a.line,e.stack[0].context=a.context,!1}return e.stack.unshift(a),e.partial=!0,!0}return e.incomplete=!0,!1}function u(e,p){var h=null;p=null==p?0:+p;try{if(h=function(e){var r=e.stacktrace;if(r){for(var o,s=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,a=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,c=r.split("\n"),d=[],l=0;l<c.length;l+=2){var u=null;if((o=s.exec(c[l]))?u={url:o[2],line:+o[1],column:null,func:o[3],args:[]}:(o=a.exec(c[l]))&&(u={url:o[6],line:+o[1],column:+o[2],func:o[3]||o[4],args:o[5]?o[5].split(","):[]}),u){if(!u.func&&u.line&&(u.func=i(u.url,u.line)),u.line)try{u.context=n(u.url,u.line)}catch(e){}u.context||(u.context=[c[l+1]]),d.push(u)}}return d.length?{mode:"stacktrace",name:e.name,message:e.message,stack:d}:null}}(e))return h}catch(e){}try{if(h=d(e))return h}catch(e){}try{if(h=function(e){var o=e.message.split("\n");if(o.length<4)return null;var c,d=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,l=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,u=/^\s*Line (\d+) of function script\s*$/i,p=[],h=dL&&dL.document&&dL.document.getElementsByTagName("script"),f=[];for(var m in h)dH(h,m)&&!h[m].src&&f.push(h[m]);for(var g=2;g<o.length;g+=2){var y=null;if(c=d.exec(o[g]))y={url:c[2],func:c[3],args:[],line:+c[1],column:null};else if(c=l.exec(o[g])){y={url:c[3],func:c[4],args:[],line:+c[1],column:null};var b=+c[1],S=f[c[2]-1];if(S){var C=r(y.url);if(C){var _=(C=C.join("\n")).indexOf(S.innerText);_>=0&&(y.line=b+C.substring(0,_).split("\n").length)}}}else if(c=u.exec(o[g])){var w=dq().replace(/#.*$/,""),R=a(new RegExp(s(o[g+1])),[w]);y={url:w,func:"",args:[],line:R?R.line:c[1],column:null}}if(y){y.func||(y.func=i(y.url,y.line));var T=n(y.url,y.line),E=T?T[Math.floor(T.length/2)]:null;T&&E.replace(/^\s*/,"")===o[g+1].replace(/^\s*/,"")?y.context=T:y.context=[o[g+1]],p.push(y)}}return p.length?{mode:"multiline",name:e.name,message:o[0],stack:p}:null}(e))return h}catch(e){}try{if(h=function e(r,n){for(var d,p,h,f=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,m=[],g={},y=!1,b=e.caller;b&&!y;b=b.caller)if(b!==u&&b!==dF.report){if(p={url:null,func:"?",args:[],line:null,column:null},b.name?p.func=b.name:(d=f.exec(b.toString()))&&(p.func=d[1]),void 0===p.func)try{p.func=d.input.substring(0,d.input.indexOf("{"))}catch(e){}if(h=function(e){if(!dk(dL&&dL.document)){for(var r,i,n,c,d=[dq()],l=dL.document.getElementsByTagName("script"),u=""+e,p=0;p<l.length;++p){var h=l[p];h.src&&d.push(h.src)}if(n=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(u)){var f=n[1]?"\\s+"+n[1]:"",m=n[2].split(",").join("\\s*,\\s*");i=RegExp("function"+f+"\\s*\\(\\s*"+m+"\\s*\\)\\s*{\\s*"+(r=o(n[3]).replace(/;$/,";?"))+"\\s*}")}else i=new RegExp(o(u).replace(/\s+/g,"\\s+"));if(c=a(i,d))return c;if(n=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(u)){var g=n[1];if((c=a(i=RegExp("on"+g+"=[\\'\"]\\s*"+(r=s(n[2]))+"\\s*[\\'\"]","i"),d[0]))||(c=a(i=new RegExp(r),d)))return c}return null}}(b)){p.url=h.url,p.line=h.line,"?"===p.func&&(p.func=i(p.url,p.line));var S=/ '([^']+)' /.exec(r.message||r.description);S&&(p.column=c(S[1],h.url,h.line))}g[""+b]?y=!0:g[""+b]=!0,m.push(p)}n&&m.splice(0,n);var C={mode:"callers",name:r.name,message:r.message,stack:m};return l(C,r.sourceURL||r.fileName,r.line||r.lineNumber,r.message||r.description),C}(e,p+1))return h}catch(e){}return{original:e,name:e.name,message:e.message,mode:"failed"}}return u.augmentStackTraceWithInitialElement=l,u.computeStackTraceFromStackProp=d,u.guessFunctionName=i,u.gatherContext=n,u.ofCaller=function(e){e=(null==e?0:+e)+1;try{throw Error()}catch(r){return u(r,e+1)}},u.getSource=r,u}(),dF.extendToAsynchronousCallbacks=function(){var e=function(e){var r=dL[e];dL[e]=function(){var e=dz.call(arguments),i=e[0];return("function"==typeof i&&(e[0]=dF.wrap(i)),r.apply)?r.apply(this,e):r(e[0],e[1])}};e("setTimeout"),e("setInterval")},dF.remoteFetching=!1,dF.collectWindowErrors=!0,dF.linesOfContext=11,dF.report;var dW=dF.report.subscribe,dV=dF.report.unsubscribe,dG=dF.report.installGlobalHandler,dK=dF.report.installGlobalUnhandledRejectionHandler,dJ=dF.computeStackTrace;function dX(e,r){var i=(65535&e)+(65535&r);return(e>>16)+(r>>16)+(i>>16)<<16|65535&i}function d$(e,r,i,n,o,s){var a;return dX((a=dX(dX(r,e),dX(n,s)))<<o|a>>>32-o,i)}function dQ(e,r,i,n,o,s,a){return d$(r&i|~r&n,e,r,o,s,a)}function dY(e,r,i,n,o,s,a){return d$(r&n|i&~n,e,r,o,s,a)}function dZ(e,r,i,n,o,s,a){return d$(r^i^n,e,r,o,s,a)}function d0(e,r,i,n,o,s,a){return d$(i^(r|~n),e,r,o,s,a)}function d1(e,r){e[r>>5]|=128<<r%32,e[(r+64>>>9<<4)+14]=r;var i,n,o,s,a,c=0x67452301,d=-0x10325477,l=-0x67452302,u=0x10325476;for(i=0;i<e.length;i+=16)n=c,o=d,s=l,a=u,c=dQ(c,d,l,u,e[i],7,-0x28955b88),u=dQ(u,c,d,l,e[i+1],12,-0x173848aa),l=dQ(l,u,c,d,e[i+2],17,0x242070db),d=dQ(d,l,u,c,e[i+3],22,-0x3e423112),c=dQ(c,d,l,u,e[i+4],7,-0xa83f051),u=dQ(u,c,d,l,e[i+5],12,0x4787c62a),l=dQ(l,u,c,d,e[i+6],17,-0x57cfb9ed),d=dQ(d,l,u,c,e[i+7],22,-0x2b96aff),c=dQ(c,d,l,u,e[i+8],7,0x698098d8),u=dQ(u,c,d,l,e[i+9],12,-0x74bb0851),l=dQ(l,u,c,d,e[i+10],17,-42063),d=dQ(d,l,u,c,e[i+11],22,-0x76a32842),c=dQ(c,d,l,u,e[i+12],7,0x6b901122),u=dQ(u,c,d,l,e[i+13],12,-0x2678e6d),l=dQ(l,u,c,d,e[i+14],17,-0x5986bc72),d=dQ(d,l,u,c,e[i+15],22,0x49b40821),c=dY(c,d,l,u,e[i+1],5,-0x9e1da9e),u=dY(u,c,d,l,e[i+6],9,-0x3fbf4cc0),l=dY(l,u,c,d,e[i+11],14,0x265e5a51),d=dY(d,l,u,c,e[i],20,-0x16493856),c=dY(c,d,l,u,e[i+5],5,-0x29d0efa3),u=dY(u,c,d,l,e[i+10],9,0x2441453),l=dY(l,u,c,d,e[i+15],14,-0x275e197f),d=dY(d,l,u,c,e[i+4],20,-0x182c0438),c=dY(c,d,l,u,e[i+9],5,0x21e1cde6),u=dY(u,c,d,l,e[i+14],9,-0x3cc8f82a),l=dY(l,u,c,d,e[i+3],14,-0xb2af279),d=dY(d,l,u,c,e[i+8],20,0x455a14ed),c=dY(c,d,l,u,e[i+13],5,-0x561c16fb),u=dY(u,c,d,l,e[i+2],9,-0x3105c08),l=dY(l,u,c,d,e[i+7],14,0x676f02d9),d=dY(d,l,u,c,e[i+12],20,-0x72d5b376),c=dZ(c,d,l,u,e[i+5],4,-378558),u=dZ(u,c,d,l,e[i+8],11,-0x788e097f),l=dZ(l,u,c,d,e[i+11],16,0x6d9d6122),d=dZ(d,l,u,c,e[i+14],23,-0x21ac7f4),c=dZ(c,d,l,u,e[i+1],4,-0x5b4115bc),u=dZ(u,c,d,l,e[i+4],11,0x4bdecfa9),l=dZ(l,u,c,d,e[i+7],16,-0x944b4a0),d=dZ(d,l,u,c,e[i+10],23,-0x41404390),c=dZ(c,d,l,u,e[i+13],4,0x289b7ec6),u=dZ(u,c,d,l,e[i],11,-0x155ed806),l=dZ(l,u,c,d,e[i+3],16,-0x2b10cf7b),d=dZ(d,l,u,c,e[i+6],23,0x4881d05),c=dZ(c,d,l,u,e[i+9],4,-0x262b2fc7),u=dZ(u,c,d,l,e[i+12],11,-0x1924661b),l=dZ(l,u,c,d,e[i+15],16,0x1fa27cf8),d=dZ(d,l,u,c,e[i+2],23,-0x3b53a99b),c=d0(c,d,l,u,e[i],6,-0xbd6ddbc),u=d0(u,c,d,l,e[i+7],10,0x432aff97),l=d0(l,u,c,d,e[i+14],15,-0x546bdc59),d=d0(d,l,u,c,e[i+5],21,-0x36c5fc7),c=d0(c,d,l,u,e[i+12],6,0x655b59c3),u=d0(u,c,d,l,e[i+3],10,-0x70f3336e),l=d0(l,u,c,d,e[i+10],15,-1051523),d=d0(d,l,u,c,e[i+1],21,-0x7a7ba22f),c=d0(c,d,l,u,e[i+8],6,0x6fa87e4f),u=d0(u,c,d,l,e[i+15],10,-0x1d31920),l=d0(l,u,c,d,e[i+6],15,-0x5cfebcec),d=d0(d,l,u,c,e[i+13],21,0x4e0811a1),c=d0(c,d,l,u,e[i+4],6,-0x8ac817e),u=d0(u,c,d,l,e[i+11],10,-0x42c50dcb),l=d0(l,u,c,d,e[i+2],15,0x2ad7d2bb),d=d0(d,l,u,c,e[i+9],21,-0x14792c6f),c=dX(c,n),d=dX(d,o),l=dX(l,s),u=dX(u,a);return[c,d,l,u]}function d2(e){var r,i="",n=32*e.length;for(r=0;r<n;r+=8)i+=String.fromCharCode(e[r>>5]>>>r%32&255);return i}function d3(e){var r,i=[];for(r=0,i[(e.length>>2)-1]=void 0;r<i.length;r+=1)i[r]=0;var n=8*e.length;for(r=0;r<n;r+=8)i[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return i}function d4(e){var r,i,n="0123456789abcdef",o="";for(i=0;i<e.length;i+=1)o+=n.charAt((r=e.charCodeAt(i))>>>4&15)+n.charAt(15&r);return o}function d6(e){return unescape(encodeURIComponent(e))}function d5(e){var r;return d2(d1(d3(r=d6(e)),8*r.length))}function d8(e,r){return function(e,r){var i,n,o=d3(e),s=[],a=[];for(s[15]=a[15]=void 0,o.length>16&&(o=d1(o,8*e.length)),i=0;i<16;i+=1)s[i]=0x36363636^o[i],a[i]=0x5c5c5c5c^o[i];return n=d1(s.concat(d3(r)),512+8*r.length),d2(d1(a.concat(n),640))}(d6(e),d6(r))}function d9(e,r,i){if(!r)return i?d5(e):d4(d5(e));return i?d8(r,e):d4(d8(r,e))}function d7(e){return(e||"").replace(/#.*$/,"").replace(/\?.*$/,"")}function le(){if(!("fetch"in dB()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function lt(e,r){for(var i=0;i<e.length;++i)if(e[i]===r)return i;return -1}function lr(e,r,i,n){var o,s,a,c;return JSON.stringify(e,(o=r,a=[],c=[],null==(s=n)&&(s=function(e,r){return a[0]===r?"[Circular ~]":"[Circular ~."+c.slice(0,lt(a,r)).join(".")+"]"}),function(e,r){if(a.length>0){var i=lt(a,this);~i?a.splice(i+1):a.push(this),~i?c.splice(i,1/0,e):c.push(e),~lt(a,r)&&(r=s.call(this,e,r))}else a.push(r);return null==o?r instanceof Error?function(e){var r={stack:e.stack,message:e.message,name:e.name};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}(r):r:o.call(this,e,r)}),i)}function li(e,r){if(Array.isArray(e))for(var i=e.length,n=0;n<i;n++)r.call(null,n,e[n]);else for(var o in e)Reflect.has(e,o)&&r.call(null,o,e[o])}function ln(e){var r={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];r[i]=dO(n)?n():n}return r}function lo(e){return dI(e)?ls(e,40):dx(e)||"[object Boolean]"===Object.prototype.toString.call(e)||dk(e)?e+"":dM(e)?"[Object]":dA(e)?"[Array]":dO(e)?e.name?"[Function: "+e.name+"]":"[Function]":e}function ls(e,r){return 0===r||e.length<=r?e:e.substr(0,r)+"…"}function la(e){var r={protocol:"",host:"",path:"",relative:""};if("string"!=typeof e)return r;var i=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(i&&i.length){var n=i[6]||"",o=i[8]||"";return{protocol:i[2]||"",host:i[4]||"",path:i[5]||"",relative:(i[5]||"")+n+o}}return r}function lc(e){var r=e.exception,i=[];return i.push("token="+r.token),i.push("type="+r.type),i.push("mechanism="+r.mechanism),i.push("value="+r.value),i.push("url="+r.url),r.stacktrace&&r.stacktrace.forEach(function(e){i.push("filename="+e.filename),i.push("lineno="+e.lineno),i.push("colno="+e.colno)}),i.join("***")}function ld(e){return e&&Array.isArray(e)&&e.length>0}function ll(e){for(var r=[],i=e.length,n=0;n<i;n++){var o=e[n];dI(o)?r.push(o.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):o&&o.source&&r.push(o.source)}return RegExp(r.join("|"),"i")}function lu(e,r){return!!dI(r)&&e.some(function(e){if(!e)return!1;if(dI(e))return -1!==r.indexOf(e);if("[object RegExp]"===Object.prototype.toString.call(e))try{return e.test(r)}catch(r){return console.error(e+"正则书写有误"),!1}return console.error(e+"忽略匹配项类型应该是String、RegExp"),!1})}function lp(e){return(dI(e)?e:JSON.stringify(e)).slice(0,256)}function lh(e,r,i){var n,o,s=[];if(e.stack&&e.stack.length){try{for(var a=dT(e.stack),c=a.next();!c.done;c=a.next()){var d=c.value,l=function(e,r,i){var n={filename:e.url||r,lineno:e.line,colno:e.column,function:e.func||"?"};if(i&&i.length>0){var o=ll(i).test(n.filename),s=/(Weirwood|Tracekit)/.test(n.function),a=/weirwood\-sdk/.test(n.filename);n.in_app=o,(s||a)&&(n.in_app=!1)}else n.in_app=!1;return n}(d,e.url||"",r.includePaths);s.push(l)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}if(r&&r.trimHeadFrames)for(var u=0;u<r.trimHeadFrames&&u<s.length;u++)s[u].in_app=!1}return(s=s.filter(function(e){var r,i,n;return i=-1!==(r=e.filename||"").indexOf("weirwood-sdk"),n=/captureException$/.test(r),!i&&!n})).slice(0,i)}function lf(e,r,i,n){if(null!=e){var o=e[r];return e[r]=i(o),e[r].__raven__=!0,e[r].__orig__=o,o.__raven_wrapper__=e[r],n&&n.push([e,r,o]),e[r]}}function lv(e,r,i){if(void 0===e&&(e={}),dk(r)&&!dO(e))return e;if(dO(e)&&(r=e,e=void 0),!dO(r))return r;try{if(r.__raven__)return r;if(r.__raven_wrapper__)return r.__raven_wrapper__}catch(e){return r}function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var s=[],a=n.length,c=!e||e&&!1!==e.deep;for(i&&dO(i)&&i.apply(this,n);a--;)s[a]=c?lv(e,n[a]):n[a];try{return r.apply(this,s)}catch(e){throw e}}for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o]);return n.prototype=r.prototype,r.__raven_wrapper__=n,n.__raven__=!0,n.__orig__=r,n}function lm(e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=r[0];return(dO(n)&&(r[0]=lv({mechanism:{type:"instrument",data:{function:(null==e?void 0:e.name)||"<anonymous>"}}},n)),e.apply)?e.apply(this,r):e(r[0],r[1])}}function lg(e,r){return function(i){if(pQ=void 0,pY!==i){pY=i;try{n=function(e){for(var r,i=[],n=0,o=0;e&&n++<5;){var s="html"===(r=function(e){if(!e||!e.tagName)return"";var r,i,n,o,s=[e.tagName.toLowerCase()];e.id&&s.push("#"+e.id);var a=e.className?e.className.split(/\s+/):[];try{for(var c=dT(a),d=c.next();!d.done;d=c.next()){var l=d.value;s.push("."+l)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}try{for(var u=dT(["type","name","title","alt"]),p=u.next();!p.done;p=u.next()){var h=p.value,f=e.getAttribute(h);f&&s.push("["+h+"="+f+"]")}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return s.join("")}(e)),a=n>1&&o+3*i.length+r.length>=80;if(s||a)break;i.push(r),o+=r.length,e=e.parentNode}return i.reverse().join(" > ")}(i.target)}catch(e){n="<unknown>"}if(n){var n,o={category:"ui."+r,message:n,name:r};"input"===r&&"password"!==n.type&&(o.data=i.target.value||""),e.captureBehavior(o)}}}}function ly(e){return function(r){try{i=r.target}catch(e){return}var i,n=i&&i.tagName;n&&("INPUT"===n||"TEXTAREA"===n||i.isContentEditable)&&(pQ||lg(e,"input")(r),clearTimeout(pQ),pQ=setTimeout(function(){pQ=void 0},1e3))}}C("../../node_modules/@baidu/weirwood-error/esm/plugins/Plugin.js");var lb=dB(),lS=[301,302,304],lC=function(){function e(r){this.name=e.id,this.options=dR({beacon:!0,console:!0,dom:!0,fetch:!0,history:!0,weirwood:!0,xhr:!0},r)}return e.prototype.setupOnce=function(e){this.client=e;var r,i,n=Object.keys(this.options);try{for(var o=dT(n),s=o.next();!s.done;s=o.next()){var a=s.value,c="instrument"+a[0].toUpperCase()+a.slice(1);this.options[a]&&this[c]&&"function"==typeof this[c]&&this[c].call(this)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}},e.prototype.instrumentDom=function(){if("document"in dB()){var e=lb.document;e.addEventListener("click",lg.call(this,this.client,"click"),!1),e.addEventListener("keypress",ly.call(this,this.client),!1)}},e.prototype.instrumentXhr=function(){var e=this.client,r=e.options,i=r.collectAutoAPIException,n=r.isApiException;if("XMLHttpRequest"in lb){var o=XMLHttpRequest.prototype,s=e._globalKey||"";lf(o,"open",function(e){return function(r,i){return dI(i)&&-1===i.indexOf(s)&&(this.__raven_xhr={method:r,url:i,status_code:null}),e.apply(this,arguments)}},e._wrappedBuiltIns),lf(o,"abort",function(e){return function(){return this.__raven_xhr&&(this.__raven_xhr.abortedFlag=!0),e.apply(this,arguments)}},e._wrappedBuiltIns),lf(o,"send",function(r){return function(){var o=this,s=arguments;function a(){if(o.__raven_xhr&&4===o.readyState){try{o.__raven_xhr.status_code=o.status}catch(e){}var r=function(e,r){if(void 0===e&&(e=""),void 0===r&&(r=""),(""===e||"text"===e)&&dI(r)&&r.length)try{return JSON.parse(r)}catch(e){return r}return"json"===e?JSON.parse(JSON.stringify(r)):""}(o.responseType,o.response);if((e.captureBehavior({type:"http",category:"xhr",data:dR(dR({},o.__raven_xhr),{response:lp(r),params:lp(s&&s[0]?s[0]:"")})}),i)&&(!o.__raven_xhr||!o.__raven_xhr.abortedFlag)){var a=!1,c=o.status>=200&&o.status<=299,d=-1!==lS.indexOf(o.status);if(c||d||(a=!0),c&&n&&dO(n)&&(a=!!n({method:o.__raven_xhr.method,url:o.responseURL,status:o.status,responseType:o.responseType,response:r})),a){var l="";dO(o.getAllResponseHeaders)&&(l=o.getAllResponseHeaders().trim().replace(/[\r\n]+/g,"***")),e.captureAPIException({url:o.responseURL||o.__raven_xhr.url,method:o.__raven_xhr.method,params:s&&s[0]?s[0]:"",status:o.status,response:(dI(r)?r:JSON.stringify(r)).slice(0,8192),responseHeaders:l,user:"",extra:"AUTO_XHR"})}}}}for(var c=["onload","onerror","onprogress"],d=0;d<c.length;d++)!function(e,r){e in r&&dO(r[e])&&lf(r,e,function(r){return lv({mechanism:{data:{function:e,handler:r&&r.name||"<anonymous>"},handled:!0,type:"instrument"}},r)})}(c[d],o);return"onreadystatechange"in o&&dO(o.onreadystatechange)?lf(o,"onreadystatechange",function(e){return lv({mechanism:{type:"instrument",data:{function:"onreadystatechange",handler:e&&e.name||"<anonymous>"}}},e,a)}):o.onreadystatechange=a,r.apply(this,arguments)}},e._wrappedBuiltIns)}},e.prototype.instrumentFetch=function(){if(le()){var e=dB(),r=this.client,i=r.options,n=i.collectAutoAPIException,o=i.isApiException,s=r._globalKey;lf(lb,"fetch",function(i){return function(){for(var a,c=Array(arguments.length),d=0;d<c.length;++d)c[d]=arguments[d];var l=c[0],u="GET";if("string"==typeof l?a=l:"Request"in e&&l instanceof e.Request?(a=l.url,(null==l?void 0:l.method)&&(u=l.method)):a=""+l,-1!==a.indexOf(s))return i.apply(this,c);c[1]&&c[1].method&&(u=c[1].method);var p={method:u,url:a,status_code:null};return i.apply(this,c).then(function(e){p.status_code=e.status;var i,s,a="";c[1]&&c[1].body&&(a=c[1].body);var d=dO(e.clone)?e.clone():null,l={type:"http",category:"fetch",data:dR(dR({},p),{params:lp(a),response:""})};if(d?d.text().then(function(e){var i;try{i=JSON.parse(e)}catch(r){i=e}l.data.response=lp(i),r.captureBehavior(l)}):r.captureBehavior(l),!n)return e;var u=!1,h=dO(e.clone)?e.clone():null,f=lS.includes(e.status);e.ok||f||(u=!0);var m={method:p.method,url:p.url,status:e.status,response:""},g=[];try{for(var y=dT(e.headers.entries()),b=y.next();!b.done;b=y.next()){var S=b.value;g.push(S[0]+": "+S[1])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(s=y.return)&&s.call(y)}finally{if(i)throw i.error}}var C=dR(dR({},m),{params:a,responseHeaders:g.join("***"),user:"",extra:"AUTO_FETCH"});return h?h.text().then(function(i){var n;try{n=JSON.parse(i)}catch(e){n=i}e.ok&&dO(o)&&(u=!!o(dR(dR({},m),{response:n}))),u&&r.captureAPIException(dR(dR({},C),{response:i.slice(0,8192)}))}).catch(function(e){console.error(e)}):(e.ok&&dO(o)&&(u=!!o(m)),u&&r.captureAPIException(C)),e}).catch(function(e){throw r.captureBehavior({type:"http",category:"fetch",data:p,level:"error"}),e})}},r._wrappedBuiltIns)}},e.prototype.instrumentHistory=function(){var e,r,i,n,o=this.client;if(i=(r=(e=dB()).chrome)&&r.app&&r.app.runtime,n="history"in e&&!!e.history.pushState&&!!e.history.replaceState,!i&&n){var s=function(e,r){var i=la(lb.location.href),n=la(r),s=la(e);s.path||(s=i),pZ=r,i.protocol===n.protocol&&i.host===n.host&&(r=n.relative),i.protocol===s.protocol&&i.host===s.host&&(e=s.relative),o.captureBehavior({category:"navigation",data:{from:e,to:r}})},a=lb.onpopstate;lb.onpopstate=function(e){var r=lb.location.href;if(s(pZ,r),a)return a.apply(lb,e)},lf(lb.history,"pushState",c),lf(lb.history,"replaceState",c)}function c(e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=r.length>2?r[2]:void 0;return n&&s(pZ,String(n)),e.apply(this,r)}}},e.prototype.instrumentConsole=function(){},e.prototype.instrumentBeacon=function(){},e.id="behaviors",e}(),l_=dB(),lw=function(){function e(r){this.name=e.id,this.options=dR({active:!0},r)}return e.prototype.setupOnce=function(e){this.client=e,this.options.active&&lf(l_,"setTimeout",lm,this.client._wrappedBuiltIns)},e.id="trycatch",e}(),lR=dB(),lT=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(e){this.client=e,this.client.captureUserAgent(this.getUserAgent())},e.prototype.getUserAgent=function(){return"navigator"in lR&&"document"in lR?{url:lR.location.href,headers:{"User-Agent":lR.navigator.userAgent,Referrer:lR.document.referrer}}:{}},e.id="UserAgent",e}(),lE={collectWindowErrors:!0,collectUnhandledRejections:!0,collectResourceLoadErrors:!1,collectAutoAPIException:!0,sampleRate:1,maxUrlLength:250,maxMessageLength:0,allowDuplicates:!1,stackTraceLimit:50,behaviorLimit:10,plugins:[],ignoreErrors:[],ignoreKeys:[],whitelistUrls:[],apiWhitelistUrls:[],resourceWhitelistUrls:[],ignoreUrls:[],ignoreJsUrls:[],ignoreApiUrls:[],ignoreApiStatus:[],ignoreResourceUrls:[],maxMessagePerMinute:10,endpoint:"https://fclog.baidu.com/log/weirwood?type=error"},lj="https://dmpstatic.cdn.bcebos.com/weirwood",lP=function(){function e(e){this.options=lE,this._globalContext={env:{},user:{},session_id:""},this._globalKey="fclog.baidu.com/log",this._currentExceptionContext={},this._currentExceptionStartTime=Date.now(),this._behaviors=[],this._lastData=null,this._lastAPIData=null,this._messagesSendLastMinute=0,this._messagesSendEmptyStartTime=Date.now(),this._installed=!1,this._globalErrorHandler=null,this._fetchDefaults={method:"POST",credentials:"include",referrerPolicy:!function(){if(!le())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(e){return!1}}()?"":"origin"},this._wrappedBuiltIns=[],this._requestInfo=null,e&&this.config(e)}return e.prototype.init=function(e){return this.config(e)},e.prototype.config=function(e){this.options=dR(dR({},this.options),e),this.options.sendWindow=this.options.sendWindow||dB(),this._globalContext.session_id=this.options.uuid4();var r=this.options,i=r.token,n=r.buildid;if(!i||!n)throw Error("error: token and buildid must be provided");return this.setFilters(),this.install(),this},e.prototype.install=function(){var e,r=this;return this._installed?(console.error("error: Weirwood Error SDK has been installed and configured"),!1):(this.options.collectWindowErrors&&dG(),this.options.maxMessagePerMinute>=60&&(this.options.maxMessagePerMinute=60),this.options.collectUnhandledRejections&&dK(),this._globalErrorHandler=this._getErrorHandler().bind(this),dW(this._globalErrorHandler),this.options.collectResourceLoadErrors&&(e=function(e){if(window.performance&&window.performance.getEntriesByName){var i,n=window.performance.getEntriesByName(e.asset);n.length>0&&(i=n[0],["name","serverTiming"].forEach(function(e){delete i[e]}))}var o={mechanism:e.type,name:"ResourceError",message:e.asset,stack:[],mode:"onerror",timing:i,page:e.page,element:e.element,elementPath:e.path.slice(0,255)};r._handleStackInfo(o,{trimHeadFrames:0,mechanism:o.mechanism||"generic",includePaths:r.options.includePaths})},window.addEventListener("error",function(r){if(r&&r.target&&r.target!==window){var i,n=r.target,o=null!=(i=null==n?void 0:n.tagName)?i:"unknown tagname";if(-1!==["SCRIPT","LINK","IMG"].indexOf(o)){var s=n.src||n.href,a=window.location.href,c=function(e){for(var r=e.path||[],i="",n=0;n<r.length;n++){var o=r[n];if(o===window){i+="Window";continue}i+=o.nodeName,i+=o.id?"#"+o.id:"",i+=o.className?"."+o.className.split(" ").join("."):"",n<r.length&&(i+=" > ")}return i}(r),d={type:o,asset:d7(s)===d7(a)?"空资源":s,integrity:n.integrity,element:n&&n.outerHTML&&n.outerHTML.replace(/"/g,""),path:c.replace(/"/g,""),page:window.location.href.slice(0,255)};e&&e(d)}}},!0)),this._installed=!0,this.installPlugins(),this)},e.prototype.installPlugins=function(){var e,r;this.options.plugins=dE([new lC(this.options.behaviorOptions),new lw(this.options.tryCatchOptions),new lT],this.options.plugins||[]);try{for(var i=dT(this.options.plugins),n=i.next();!n.done;n=i.next())n.value.setupOnce(this)}catch(r){e={error:r}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},e.prototype.setFilters=function(){var e=this.options;e.ignoreErrors&&(e.ignoreErrors=dE([/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,'{"isTrusted":true}','{"isTrusted":false}',"Network Error","ResizeObserver loop"],e.ignoreErrors||[])),e.ignoreJsUrls=dE(["chrome-extension","safari-extension","moz-extension",lj],e.ignoreJsUrls||[])},e.prototype._getErrorHandler=function(){var e=this;return function(r,i,n,o,s,a){if(n&&(n.stack||n.stacktrace)&&(r.originalStack=((n.stack||n.stacktrace)+"").slice(0,1e4)),r.stack&&!r.stack.length&&o&&(r.stack[0]={url:o,line:s,column:a}),!r.name&&!r.message&&"onunhandledrejection"===r.mechanism){var c=dB();r.name="unhandledrejection",r.url=r.url||c.location.href,r.message=n}e._handleStackInfo(r,{trimHeadFrames:0,mechanism:r.mechanism||"generic",includePaths:e.options.includePaths})}},e.prototype._handleStackInfo=function(e,r){var i=lh(e,r,this.options.stackTraceLimit);this._processException(e,i,r)},e.prototype._processException=function(e,r,i){var n=this.options,o=n.ignoreErrors,s=void 0===o?[]:o,a=n.ignoreKeys,c=void 0===a?[]:a,d=n.whitelistUrls,l=void 0===d?[]:d,u=n.resourceWhitelistUrls,p=void 0===u?[]:u,h=n.ignoreUrls,f=void 0===h?[]:h,m=n.ignoreJsUrls,g=void 0===m?[]:m,y=n.ignoreResourceUrls,b=void 0===y?[]:y,S=e.name,C=e.message,_=e.url,w=void 0===_?"":_,R=e.page,T=void 0===R?window.location.href:R,E=e.lineno,j=e.originalStack;if(!(s.length&&lu(s,C)||f.length&&lu(f,T))){var P=r&&r.length&&r[0].filename||w;if("ResourceError"===S){if(b.length&&lu(b,C)||p.length&&!lu(p,C))return}else if(c.length&&lu(c,S)||g.length&&lu(g,P)||l.length&&!lu(l,P))return;if(r&&r.length>0){var k=r[0].filename||"",O=-1!==k.indexOf("@baidu/weirwood-error"),I=-1!==k.indexOf(lj);if(O||I)return}if(-1===P.indexOf(lj)){var x,A=(x=void 0===E?0:E,r&&r.length?r.reverse():w?[{filename:w,lineno:x||0,in_app:!0}]:[]),M=dR(dR({},i),{exception:{type:S,value:C,originalStack:void 0===j?"":j,stacktrace:A,url:"ResourceError"===S?C:P,page:e.page,element:e.element,timing:e.timing,elementPath:e.elementPath}}),D=M.exception;null==D.type&&""===D.value&&(D.value="Unrecoverable error caught"),!M.exception.mechanism&&M.mechanism&&(M.exception.mechanism=M.mechanism,delete M.mechanism),this._send(M)}}},e.prototype.mergeGlobalContext=function(e){var r,i,n,o=dB();e.env=dR(dR(dR({},this._globalContext.env),e.env),{network:null==(n=o.navigator.connection)?void 0:n.effectiveType,windowHeight:(o.document.documentElement||o.document.body).clientHeight,windowWidth:(o.document.documentElement||o.document.body).clientWidth,documentTitle:o.document.title});try{for(var s=dT(Object.keys(this._currentExceptionContext)),a=s.next();!a.done;a=s.next()){var c=a.value;e.env[c]=this._currentExceptionContext[c]}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}e.env["session:duration"]=Date.now()-this._currentExceptionStartTime,this._globalContext.user&&(e.user=this._globalContext.user),this._globalContext.session_id&&(e.session_id=this._globalContext.session_id)},e.prototype._send=function(e){var r={request:this._requestInfo};if(dk(e.trimHeadFrames)||delete e.trimHeadFrames,e=dR(dR({},r),e),this.mergeGlobalContext(e),this._behaviors&&this._behaviors.length>0){var i=[].slice.call(this._behaviors,0);this.options.behaviorDataCallback&&(i=this.options.behaviorDataCallback(i)),e.behaviors=i}var n=this.options;if(n.token&&(e.token=n.token),n.buildid&&(e.buildid=n.buildid),Object.keys(e=this._sanitizeData(e)).forEach(function(r){(null==e[r]||""===e[r]||dD(e[r]))&&delete e[r]}),dO(n.dataCallback)&&(e=n.dataCallback(e)),!(!e||dD(e))){var o=Date.now()-this._messagesSendEmptyStartTime,s=this._messagesSendLastMinute>this.options.maxMessagePerMinute;if(o<6e4){if(s)return}else this._messagesSendEmptyStartTime=Date.now(),this._messagesSendLastMinute=1;"number"==typeof n.sampleRate?Math.random()<n.sampleRate&&(this._sendProcessedPayload(e),this._messagesSendLastMinute+=1):(this._sendProcessedPayload(e),this._messagesSendLastMinute+=1)}},e.prototype.isSetup=function(){return this._installed},e.prototype._trimPacket=function(e){var r,i,n=this.options.maxUrlLength||0,o=this.options.maxMessageLength||0;if(e.exception&&(e.exception.value=ls(e.exception.value,o)),e.request){var s=dB();e.request.url=ls(s.location.href,n);var a=e.request.headers.Referrer;e.request.headers.Referrer=ls(a,n)}if(e.behaviors&&e.behaviors.length){var c=["url","to","from"];try{for(var d=dT(e.behaviors),l=d.next();!l.done;l=d.next()){var u=l.value;!function(e){var r=e.data||{},i=function(e){r.hasOwnProperty(e)&&c.forEach(function(i){e===i&&(r[e]=ls(r[e],n))})};for(var o in r)i(o)}(u)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}return e},e.prototype._sendProcessedPayload=function(e,r){var i,n=this,o=this.options;if(e=this._trimPacket(e),!this.options.allowDuplicates&&this._isRepeatData(e))return void console.warn("Weirwood error SDK dropped repeat event:",e);var s=o.issueGroupby;s&&dO(s)&&(i=s(e.exception)),i&&dI(i)?(e.fingerprint=i.substr(0,255),e.event_id=d9(e.fingerprint)):e.event_id=d9(lc(e)),e.data_id=d9(function(e){var r=lc(e),i=[],n=e.request,o=e.env,s=e.behaviors;if(!n)return JSON.stringify(e);var a=n.headers,c=n.url;return i.push("Referrer="+a.Referrer),i.push("ua="+a["User-Agent"]),i.push("url="+c),li(o,function(e,r){"session:duration"!==e&&i.push(e+"="+r)}),li(s,function(e){i.push("behavior.category="+e.category),i.push("behavior.name="+e.name),i.push("behavior.message="+e.message)}),r+i.join("***")}(e)),e.version=this.options.version||"",e.sdkTimestamp=Date.now(),this._lastData=e;var a={weirwood_version:this.options.version||""};(o.transport||this._makeRequest).call(this,{url:this.options.endpoint,auth:a,data:e,options:o,onSuccess:function(){n._resetBackoff(),r&&r()},onError:function(e){e.request&&n._setBackoffState(e.request),e=e||Error("Raven send failed (no additional details provided)"),r&&r(e)}})},e.prototype._makeRequest=function(e){var r,i,n=this,o=e.url,s=null,a={};e.options.headers&&(s=ln(e.options.headers)),e.options.fetchParameters&&(a=ln(e.options.fetchParameters));var c=this.options.sendWindow;if(le()){a.body=lr(e.data);var d=dR(dR({},this._fetchDefaults),a);if(s){var l=new Headers;try{for(var u=dT(Object.keys(s)),p=u.next();!p.done;p=u.next()){var h=p.value;l.append(h,s[h])}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}l.append("Content-Type","text/plain"),d.headers=l}return c.fetch(o,d).then(function(r){if(r.ok)e.onSuccess&&e.onSuccess(),n._resetBackoff();else{var i=Error("Weirwood error SDK error code: "+r.status);i.request=r,e.onError&&e.onError(i)}}).catch(function(){e.onError&&e.onError(Error("Weirwood error SDK error code: network unavailable")),n._resetBackoff()})}var f=c.XMLHttpRequest&&new c.XMLHttpRequest;!f||("withCredentials"in f||"undefined"!=typeof XDomainRequest)&&("withCredentials"in f?f.onreadystatechange=function(){if(4!==f.readyState)return void n._resetBackoff();if(200===f.status)e.onSuccess&&e.onSuccess();else if(e.onError){n._resetBackoff();var r=Error("Weirwood error SDK error code: "+f.status);r.request=f,e.onError(r)}}:(f=new XDomainRequest,o=o.replace(/^https?:/,""),e.onSuccess&&(f.onload=e.onSuccess),e.onError&&(f.onerror=function(){var r=Error("Weirwood error SDK error code: XDomainRequest");r.request=f,e.onError(r)})),f.open("POST",o),s&&li(s,function(e,r){f.setRequestHeader(e,r)}),f.send(lr(e.data)))},e.prototype._sanitizeData=function(e){var r=this.options.sanitizeKeys||[];if(r.length){if(!Array.isArray(r)||Array.isArray(r)&&0===r.length)return e;var i,n=ll(r);try{i=JSON.parse(lr(e))}catch(r){return e}return function e(r){return Array.isArray(r)?r.map(function(r){return e(r)}):dM(r)?Object.keys(r).reduce(function(i,o){return n.test(o)?i[o]="********":i[o]=e(r[o]),i},{}):r}(i)}return e},e.prototype.captureUserAgent=function(e){this._requestInfo=e},e.prototype.captureException=function(e,r){if(r||(r={trimHeadFrames:0,includePaths:[],mechanism:"generic",message:""}),dj(e));else if(dP(e))e=e.error;else if(dM(e))e=Error((r=this._getCaptureExceptionOptionsFromPlainObject(r,e)).message);else{if(i=e,"[object DOMException]"!==Object.prototype.toString.call(i))return this.captureMessage(e,dR(dR({},r),{stacktrace:!0,trimHeadFrames:r.trimHeadFrames+1}));var i,n=e.name||"DOMException",o=e.message?n+": "+e.message:n;return this.captureMessage(o,r)}try{r=dR({trimHeadFrames:0,mechanism:"generic",includePaths:this.options.includePaths||[]},r);var s=dJ(e);this._handleStackInfo(s,r)}catch(r){if(e!==r)throw r}return this},e.prototype._isRepeatData=function(e){var r=this._lastData,i=e.exception,n=r?r.exception:{};return i.mechanism===n.mechanism&&i.type===n.type&&i.value===n.value&&i.url===n.url&&(0===i.stacktrace.length&&0===n.stacktrace.length||function(e,r){if(ld(e)&&ld(r)){var i,n,o=e.length;if(o!==r.length)return!1;for(var s=0;s<o;s++){if(i=e[s],n=r[s],i.filename!==n.filename||i.lineno!==n.lineno||i.colno!==n.colno||i.function!==n.function)return!1}return!0}return!1}(i.stacktrace,n.stacktrace))},e.prototype._resetBackoff=function(){this._currentExceptionStartTime=Date.now(),this._currentExceptionContext={}},e.prototype._setBackoffState=function(e){console.log(e)},e.prototype.captureMessage=function(e,r){void 0===r&&(r={});var i,n,o=this.options,s=o.ignoreErrors||[],a=o.ignoreKeys||[],c=o.whitelistUrls||[],d=o.ignoreUrls||[],l=o.ignoreJsUrls||[];if(!(s.length&&lu(s,e))){try{throw Error(e)}catch(e){n=e}var u=dJ(n),p=Array.isArray(u.stack)&&u.stack[1];(null==(i=null==p?void 0:p.func)?void 0:i.indexOf("captureException"))!==-1&&(p=u.stack[2]);var h=p&&p.url||"";if(!(d.length&&lu(d,window.location.href)||a.length&&lu(a,n.name)||l.length&&lu(l,h))&&(!c.length||lu(c,h))){r=dR(dR({},r),{trimHeadFrames:0,includePaths:o.includePaths}),r.trimHeadFrames+=1;var f=lh(u,r),m={exception:{mechanism:"manual",type:n.name,value:n.message,stacktrace:f.slice(1).reverse(),url:h}};return this._send(m),this}}},e.prototype.captureAPIException=function(e){var r,i=this,n=dB(),o=this.options,s=o.ignoreUrls,a=void 0===s?[]:s,c=o.ignoreApiUrls,d=void 0===c?[]:c,l=o.ignoreApiStatus,u=void 0===l?[]:l,p=o.buildid,h=o.token,f=o.version,m=o.apiWhitelistUrls;if(!(e.url&&e.method&&!dk(e.status)))return void console.error("API异常参数至少需要包含 method、url、status 参数。");if(!(a.length&&lu(a,n.location.href)||d.length&&lu(d,e.url))&&(!m.length||lu(m,e.url))&&(!u.length||-1===u.indexOf(Number(e.status)))){var g=dR(dR({},e),{type:"APIError"}),y={request:{headers:{"User-Agent":n.navigator.userAgent},url:n.location.href},exception:g,buildid:p,token:h,version:f||""},b=this.options;if(dO(b.dataCallback)&&(y=b.dataCallback(y)),!(!y||dD(y))){this.mergeGlobalContext(y);var S=this.options.issueGroupby;if((S&&dO(S)&&(r=S(y.exception)),r&&dI(r))?(y.fingerprint=r.substr(0,255),y.event_id=d9(y.fingerprint)):y.event_id=d9(e.method+"***"+function(e){if(!dI(e))return"";var r=e.split("?");return r[1]?(r[1]=r[1].replace(/\d+/g,"*").replace(/[\u4e00-\u9fa5]+/gi,"*"),r.join("?")):e}(e.url)),y.data_id=d9(lr(y)),this._lastAPIData!==y.data_id){this._lastAPIData=y.data_id;var C=function(){var e;((null==(e=i.options.globalOptions)?void 0:e.transport)||i._makeRequest).call(i,{url:i.options.endpoint,data:y,options:{},onSuccess:function(){},onError:function(){}})};"number"==typeof b.sampleRate?Math.random()<b.sampleRate&&C():C()}}}},e.prototype.captureEvent=function(){},e.prototype.afterLoad=function(){var e=dB().RavenConfig;e&&this.init(e)},e.prototype._getCaptureExceptionOptionsFromPlainObject=function(e,r){var i=Object.keys(r).sort(),n=dR(dR({},e),{message:"Non-Error exception captured with keys: "+function(e,r){if(void 0===r&&(r=40),dx(e)||dI(e))return e.toString();if(!dA(e))return"";if(0===(e=e.filter(function(e){return dI(e)})).length)return"[object has no keys]";if(r=dx(r)?r:40,e[0].length>=r)return e[0];for(var i=e.length;i>0;i--){var n=e.slice(0,i).join(", ");if(!(n.length>r)){if(i===e.length)return n;return n+"…"}}return""}(i),fingerprint:[d9(i.join(""))],env:e&&e.env||{}});return n.env.__serialized__=function e(r,i,n){if(void 0===i&&(i=3),void 0===n&&(n=51200),!dM(r))return r+"";var o=function e(r,i){return 0===i?lo(r):dM(r)?Object.keys(r).reduce(function(n,o){return n[o]=e(r[o],i-1),n},{}):Array.isArray(r)?r.map(function(r){return e(r,i-1)}):lo(r)}(r,i);return~-encodeURI(JSON.stringify(lr(o))).split(/%..|./).length>n?e(r,i-1):o}(r),n},e.prototype.captureBehavior=function(e){var r=dR(dR({},e),{timestamp:Date.now()/1e3});if(dO(this.options.breadcrumbCallback)){var i=this.options.breadcrumbCallback(r);if("object"!=typeof i||null===i||dD(i)){if(!1===i)return this}else r=i}return this._behaviors.push(r),this._behaviors.length>(this.options.behaviorLimit||10)&&this._behaviors.shift(),this},e.prototype.setContext=function(e,r){for(var i in void 0===r&&(r={persist:!0}),e)Reflect.has(e,i)&&(r.persist?this._globalContext.env[i]=e[i]:this._currentExceptionContext[i]=e[i])},e.prototype.clearContext=function(){this._globalContext.env={},this._currentExceptionContext={}},e.prototype._restoreBuiltIns=function(){for(var e;this._wrappedBuiltIns.length;){var r=(e=this._wrappedBuiltIns.shift())[0],i=e[1],n=e[2];r[i]=n}},e.prototype.noConflict=function(){},e.prototype.uninstall=function(){this.dispose()},e.prototype.dispose=function(){dV(this._globalErrorHandler),this._restoreBuiltIns(),this._globalErrorHandler=null,this._installed=!1},e}(),lk={};function lO(){var e=window.crypto||window.msCrypto;if(void 0===e||!e.getRandomValues)return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"===e?r:3&r|8).toString(16)});var r=new Uint16Array(8);e.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(e){for(var r=e.toString(16);r.length<4;)r="0"+r;return r};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}var lI=function(){function e(e){this.version="1.3.15",this.lastRouteTime=0,e&&this.init(e)}return e.prototype.init=function(e){var r,i,n,o,s=this.getSendWindow();if(!e.perf||e.perf&&!e.perf.disable){var a=d_(d_(d_({},e.perf),e.common),{version:this.version,sendWindow:s});this.perf=new dw.PerfClient(a)}if(!e.error||e.error&&!e.error.disable){var c=d_(d_(d_({},e.error),e.common),{version:this.version,sendWindow:s,uuid4:lO});this.error=new lP(c)}this.routeChange(window.document.URL),r=this.routeChange.bind(this),"function"==typeof(i=window.history).pushState&&(n=i.pushState,i.pushState=function(e,i,o){return r(o),n.apply(this,arguments)}),"function"==typeof i.replaceState&&(o=i.replaceState,i.replaceState=function(e,i,n){return n!==window.document.URL&&r(n),o.apply(this,arguments)}),window.addEventListener("hashchange",function(e){r((e||{}).newURL)}),window.addEventListener("popstate",function(e){r(window.document.URL)})},e.prototype.routeChange=function(e){var r=new Date().getTime();if(r-this.lastRouteTime>100){this.lastRouteTime=r;var i=lO()+"-"+r;this.error&&this.error.setContext({pageId:i})}},e.prototype.getSendWindow=function(){var e="undefined"!=typeof window?window:void 0!==C.g?C.g:"undefined"!=typeof self?self:lk;if(["fetch","ajax","sendBeacon"].some(function(e){var r;return!((r=window[e])&&r.toString&&!r.hasOwnProperty("toString")&&/\[native code\]/.test(String(r)))})&&document.body){var r=document.createElement("iframe");r.style.setProperty("display","none","important"),document.body.appendChild(r),e=r?r.contentWindow:e}return e},e.prototype.afterLoad=function(){},e}(),lx=((pL={}).NO_API_SUPPORT="NO_API_SUPPORT",pL.INSECURE_CONTEXT="INSECURE_CONTEXT",pL.NO_DEVICE_FOUND="NO_DEVICE_FOUND",pL.PERMISSION_DENIED="PERMISSION_DENIED",pL.PERMISSION_DISMISSED="PERMISSION_DISMISSED",pL.DEVICE_IN_USE="DEVICE_IN_USE",pL.TIMEOUT="TIMEOUT",pL.UNKNOWN_ERROR="UNKNOWN_ERROR",pL);class lA{cleanup(){this.mediaStream&&(this.mediaStream.getTracks().forEach(e=>{e.stop()}),this.mediaStream=null)}async checkAudioDevice(){try{return await this.withTimeout(this.performCheck(),this.options.timeout)}catch(e){if(e instanceof Error&&"TIMEOUT"===e.message)return this.createErrorResult("TIMEOUT","设备检测超时");return this.createErrorResult("UNKNOWN_ERROR",e instanceof Error?e.message:"未知错误")}finally{this.options.autoCleanup&&this.cleanup()}}async performCheck(){let e=this.checkAPISupport();if(!e.available)return e;let r=await this.checkDeviceEnumeration();if(!r.available)return r;let i=await this.checkPermissionState(),n=await this.checkMediaStream();return n.available?{available:!0,passedLevel:4,devices:r.devices,permissionState:i.permissionState,message:"音频设备可用"}:n}checkAPISupport(){return navigator.mediaDevices?navigator.mediaDevices.getUserMedia?"undefined"==typeof window||window.isSecureContext?{available:!0,passedLevel:1}:this.createErrorResult("INSECURE_CONTEXT","需要 HTTPS 环境才能访问麦克风 (localhost 除外)"):this.createErrorResult("NO_API_SUPPORT","浏览器不支持 getUserMedia API"):this.createErrorResult("NO_API_SUPPORT","浏览器不支持 navigator.mediaDevices API")}async checkDeviceEnumeration(){try{let e=(await navigator.mediaDevices.enumerateDevices()).filter(e=>"audioinput"===e.kind);if(0===e.length)return this.createErrorResult("NO_DEVICE_FOUND","系统中未找到音频输入设备");let r=e.some(e=>""!==e.deviceId);return{available:!0,passedLevel:2,devices:e,message:r?"找到 ".concat(e.length," 个音频输入设备"):"找到设备但需要权限才能获取详细信息"}}catch(e){return this.createErrorResult("UNKNOWN_ERROR","设备枚举失败: ".concat(e instanceof Error?e.message:"未知错误"))}}async checkPermissionState(){try{if(!navigator.permissions||!navigator.permissions.query)return{available:!0,passedLevel:3,message:"浏览器不支持 Permissions API,跳过权限检查"};let e=await navigator.permissions.query({name:"microphone"});if("denied"===e.state)return this.createErrorResult("PERMISSION_DENIED","麦克风权限已被拒绝,请在浏览器设置中开启");return{available:!0,passedLevel:3,permissionState:e.state,message:"权限状态: ".concat(e.state)}}catch(e){return{available:!0,passedLevel:3,message:"Permissions API 检查失败,继续后续检测"}}}async checkMediaStream(){try{this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:!0});let e=this.mediaStream.getAudioTracks();if(0===e.length)return this.createErrorResult("NO_DEVICE_FOUND","未能获取音频轨道");let r=e[0];if("live"!==r.readyState)return this.createErrorResult("DEVICE_IN_USE","音频轨道状态异常: ".concat(r.readyState));if(!r.enabled)return this.createErrorResult("DEVICE_IN_USE","音频轨道已被禁用");if(r.muted)return this.createErrorResult("DEVICE_IN_USE","音频轨道处于静音状态");return{available:!0,passedLevel:4,message:"成功获取音频流: ".concat(r.label)}}catch(e){if(e instanceof Error){if("NotAllowedError"===e.name||"PermissionDeniedError"===e.name)return this.createErrorResult("PERMISSION_DENIED","用户拒绝了麦克风权限请求");if("NotFoundError"===e.name||"DevicesNotFoundError"===e.name)return this.createErrorResult("NO_DEVICE_FOUND","未找到可用的音频输入设备");if("NotReadableError"===e.name||"TrackStartError"===e.name)return this.createErrorResult("DEVICE_IN_USE","设备正被其他程序占用或无法访问");if("AbortError"===e.name)return this.createErrorResult("PERMISSION_DISMISSED","权限请求被中止或超时")}return this.createErrorResult("UNKNOWN_ERROR","获取音频流失败: ".concat(e instanceof Error?e.message:"未知错误"))}}createErrorResult(e,r){return{available:!1,error:e,message:r}}withTimeout(e,r){return Promise.race([e,new Promise((e,i)=>{setTimeout(()=>i(Error("TIMEOUT")),r)})])}constructor(e={}){var r,i;this.mediaStream=null,this.options={timeout:null!=(r=e.timeout)?r:3e4,autoCleanup:null==(i=e.autoCleanup)||i}}}async function lM(e){return new lA(e).checkAudioDevice()}let lD=e=>{let r={NO_API_SUPPORT:"您的浏览器不支持语音功能,请使用最新版 Chrome、Firefox 或 Edge 浏览器。",INSECURE_CONTEXT:"出于安全考虑,语音功能仅在 HTTPS 网站下可用。",NO_DEVICE_FOUND:"未检测到麦克风设备,请连接麦克风后重试。",PERMISSION_DENIED:"您已拒绝麦克风权限,请在浏览器设置中允许访问麦克风。",PERMISSION_DISMISSED:"麦克风权限请求已关闭,请刷新页面重新授权。",DEVICE_IN_USE:"麦克风正被其他程序占用,请关闭其他使用麦克风的应用后重试。",TIMEOUT:"设备检测超时,请检查网络连接或刷新页面重试。",UNKNOWN_ERROR:"发生未知错误,请刷新页面重试或联系技术支持。"};return r[e]||r.UNKNOWN_ERROR};class lN{}function lB(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}lN.cachedResult=null,lN.check=async e=>(lN.cachedResult||(lN.cachedResult=await lN.performCheck(e)),lN.cachedResult),lN.reset=()=>{lN.cachedResult=null},lN.checkSync=e=>e.audioWorklet&&"function"==typeof e.audioWorklet.addModule&&"function"==typeof AudioWorkletNode,lN.performCheck=async e=>{if(!e.audioWorklet)return{supported:!1,reason:"no-audio-worklet"};if("function"!=typeof e.audioWorklet.addModule)return{supported:!1,reason:"no-add-module"};if("function"!=typeof AudioWorkletNode)return{supported:!1,reason:"no-constructor"};try{let r="\n class TestProcessor extends AudioWorkletProcessor {\n process() {\n return true;\n }\n }\n registerProcessor('test-processor-".concat(Date.now(),"', TestProcessor);\n "),i=new Blob([r],{type:"application/javascript"}),n=URL.createObjectURL(i);return await e.audioWorklet.addModule(n),URL.revokeObjectURL(n),{supported:!0}}catch(e){return{supported:!1,reason:"test-load-failed"}}},C("../../node_modules/core-js/modules/es.typed-array.uint8-array.js"),C("../../node_modules/core-js/modules/es.typed-array.fill.js"),C("../../node_modules/core-js/modules/es.typed-array.set.js"),C("../../node_modules/core-js/modules/es.typed-array.sort.js");class lL{async setupAudioGraph(){let e=await lN.check(this.context);e.supported?await this.setupWithAudioWorklet():(this.options.debug&&console.warn("[EnergyGate] AudioWorklet not supported, reason:",e.reason,"Falling back to ScriptProcessorNode"),this.setupWithScriptProcessor()),this.gate.connect(this.destination),this.gate.gain.value=1}async setupWithAudioWorklet(){try{let e=this.getEnergyGateWorkletCode(),r=new Blob([e],{type:"application/javascript"}),i=URL.createObjectURL(r);await this.context.audioWorklet.addModule(i),URL.revokeObjectURL(i),this.processor=new AudioWorkletNode(this.context,"energy-gate-processor",{processorOptions:{idleThreshold:this.options.idleThreshold,energyMultiplier:this.options.suppressionEnergyMultiplier,smoothingFactor:this.options.smoothingFactor,suppressionActivationDelay:this.options.suppressionActivationDelay,suppressionRecoveryDelay:this.options.suppressionRecoveryDelay,maxHistoryLength:this.audioWorkletMaxHistoryLength,statsIntervalFrames:this.audioWorkletMaxHistoryLength,debug:this.options.debug}}),this.processor.port.onmessage=e=>{let{type:r,payload:i}=e.data;"stats"===r&&(this.currentEnergy=i.microphoneEnergy,this.smoothedEnergy=i.microphoneEnergy,this.effectiveSuppressionState=!!i.isSuppressionEnabled,this.workletPassRate="number"==typeof i.passRate?i.passRate:this.workletPassRate,this.workletIsGateOpen=!!i.isGateOpen,this.options.debug&&console.log("[EnergyGate] Worklet stats:",i)),"log"===r&&this.options.debug&&console.log("[EnergyGate] Worklet log:",i)},this.processor.port.postMessage({type:"setEnergyMultiplier",payload:{value:this.options.suppressionEnergyMultiplier}}),this.processor.port.postMessage({type:"setSuppressionEnabled",payload:{enabled:this.isSuppressionEnabled}}),this.input.connect(this.processor),this.processor.connect(this.gate),this.processorType="audioworklet",this.options.debug&&console.log("[EnergyGate] Using AudioWorklet implementation")}catch(e){console.error("[EnergyGate] AudioWorklet setup failed:",e),this.setupWithScriptProcessor()}}setupWithScriptProcessor(){this.processor=this.context.createScriptProcessor(2048,1,1),this.processor.onaudioprocess=this.processAudioScriptProcessor,this.input.connect(this.processor),this.processor.connect(this.gate),this.processorType="scriptprocessor",this.options.debug&&console.log("[EnergyGate] Using ScriptProcessorNode fallback")}getEnergyGateWorkletCode(){return"\n/**\n * Energy-based Gate AudioWorklet Processor\n * 在独立的音频线程中进行能量检测和门控\n */\nclass EnergyGateProcessor extends AudioWorkletProcessor {\n constructor(options) {\n super();\n\n const params = options.processorOptions || {};\n\n this.idleThreshold = params.idleThreshold ?? -45;\n this.energyMultiplier = params.energyMultiplier ?? 3.0;\n this.smoothingFactor = params.smoothingFactor ?? 0.7;\n this.suppressionActivationDelay = params.suppressionActivationDelay ?? 100;\n this.suppressionRecoveryDelay = params.suppressionRecoveryDelay ?? 500;\n const renderQuantumSize = 128;\n this.maxHistoryLength = params.maxHistoryLength ?? Math.round(sampleRate / renderQuantumSize);\n this.statsIntervalFrames = params.statsIntervalFrames ?? Math.round(sampleRate / renderQuantumSize);\n this.debug = params.debug ?? false;\n\n this.smoothedEnergy = -100;\n this.isSuppressionEnabled = false;\n this.effectiveSuppressionState = false;\n this.pendingSuppressionState = false;\n this.started = false;\n\n this.gateHistory = [];\n this.frameCount = 0;\n\n this.port.onmessage = this.handleMessage.bind(this);\n }\n\n handleMessage(event) {\n const {type, payload} = event.data;\n\n switch (type) {\n case 'start':\n this.started = true;\n break;\n case 'stop':\n this.started = false;\n break;\n case 'setSuppressionEnabled':\n this.setSuppressionEnabled(payload.enabled);\n break;\n case 'setEnergyMultiplier':\n this.energyMultiplier = Math.max(1.0, payload.value);\n break;\n case 'getStats':\n this.sendStats();\n break;\n }\n }\n\n setSuppressionEnabled(enabled) {\n if (this.isSuppressionEnabled === enabled) {\n return;\n }\n\n this.isSuppressionEnabled = enabled;\n\n // AudioWorklet 中没有 setTimeout,使用帧计数实现延迟\n // render quantum 固定为 128 samples/frame,采样率由全局 sampleRate 提供\n const delay = enabled\n ? this.suppressionActivationDelay\n : this.suppressionRecoveryDelay;\n\n // 转换毫秒到帧数 (128 samples/frame, sampleRate Hz)\n this.delayFramesRemaining = Math.floor((delay / 1000) * (sampleRate / 128));\n this.pendingSuppressionState = enabled;\n }\n\n calculateRMS(samples) {\n let sum = 0;\n\n for (let i = 0; i < samples.length; i++) {\n const sample = samples[i];\n sum += sample * sample;\n }\n\n return Math.sqrt(sum / samples.length);\n }\n\n rmsToDb(rms) {\n if (rms < 0.00001) {\n return -100;\n }\n\n return 20 * Math.log10(rms);\n }\n\n getCurrentThreshold() {\n if (this.effectiveSuppressionState) {\n return this.idleThreshold + 20 * Math.log10(this.energyMultiplier);\n }\n\n return this.idleThreshold;\n }\n\n shouldGateOpen(energyDb) {\n return energyDb > this.getCurrentThreshold();\n }\n\n sendStats() {\n const passRate = this.gateHistory.length > 0\n ? this.gateHistory.filter(Boolean).length / this.gateHistory.length\n : 0;\n\n this.port.postMessage({\n type: 'stats',\n payload: {\n microphoneEnergy: this.smoothedEnergy,\n isSuppressionEnabled: this.effectiveSuppressionState,\n currentThreshold: this.getCurrentThreshold(),\n isGateOpen: this.shouldGateOpen(this.smoothedEnergy),\n passRate\n }\n });\n }\n\n sendLog(message) {\n if (!this.debug) {\n return;\n }\n\n this.port.postMessage({type: 'log', payload: message});\n }\n\n process(inputs, outputs, parameters) {\n const input = inputs[0];\n const output = outputs[0];\n\n if (!input || !input[0] || !output || !output[0]) {\n return true;\n }\n\n const inputChannel = input[0];\n const outputChannel = output[0];\n\n // 与 ScriptProcessor 保持一致: !started 时静音\n if (!this.started) {\n outputChannel.fill(0);\n return true;\n }\n\n // 处理延迟状态切换 (基于帧计数)\n if (this.delayFramesRemaining > 0) {\n this.delayFramesRemaining--;\n if (this.delayFramesRemaining === 0) {\n this.effectiveSuppressionState = this.pendingSuppressionState;\n }\n }\n\n const rms = this.calculateRMS(inputChannel);\n const currentEnergy = this.rmsToDb(rms);\n\n this.smoothedEnergy = this.smoothingFactor * this.smoothedEnergy\n + (1 - this.smoothingFactor) * currentEnergy;\n\n const isGateOpen = this.shouldGateOpen(this.smoothedEnergy);\n\n this.gateHistory.push(isGateOpen);\n\n if (this.gateHistory.length > this.maxHistoryLength) {\n this.gateHistory.shift();\n }\n\n if (isGateOpen) {\n outputChannel.set(inputChannel);\n }\n else {\n outputChannel.fill(0);\n }\n\n // 调试日志 (与 ScriptProcessor 保持一致,2% 采样率)\n if (this.debug && Math.random() < 0.02) {\n const passRate = this.gateHistory.length > 0\n ? this.gateHistory.filter(Boolean).length / this.gateHistory.length\n : 0;\n\n console.log('[EnergyGate]', {\n energy: this.smoothedEnergy.toFixed(1),\n suppression: this.effectiveSuppressionState,\n threshold: this.getCurrentThreshold().toFixed(1),\n open: isGateOpen,\n passRate: (passRate * 100).toFixed(1) + '%',\n impl: 'audioworklet'\n });\n }\n\n // 定期发送统计数据到主线程(约每秒 1 次)\n if (this.frameCount === undefined) {\n this.frameCount = 0;\n }\n\n this.frameCount++;\n\n if (this.frameCount % this.statsIntervalFrames === 0) {\n this.sendStats();\n }\n\n return true;\n }\n}\n\nregisterProcessor('energy-gate-processor', EnergyGateProcessor);\n "}constructor(e,r={}){var i,n,o,s,a,c;this.processor=null,this.processorType="scriptprocessor",this.gateHistory=[],this.isSuppressionEnabled=!1,this.suppressionStateTimer=null,this.effectiveSuppressionState=!1,this.currentEnergy=-100,this.smoothedEnergy=-100,this.workletPassRate=0,this.workletIsGateOpen=!1,this.started=!1,this.setupAudioGraphPromise=null,this.setSuppressionEnabled=e=>{if(this.isSuppressionEnabled===e)return;if(this.isSuppressionEnabled=e,"audioworklet"===this.processorType&&this.processor instanceof AudioWorkletNode)return void this.processor.port.postMessage({type:"setSuppressionEnabled",payload:{enabled:e}});this.suppressionStateTimer&&clearTimeout(this.suppressionStateTimer);let r=e?this.options.suppressionActivationDelay:this.options.suppressionRecoveryDelay;this.suppressionStateTimer=setTimeout(()=>{if(this.effectiveSuppressionState=e,this.options.debug){let r=e?"已启用":"已关闭";console.log("[EnergyGate] 外部播放抑制状态切换: ".concat(r))}},r)},this.start=()=>{this.started||(this.started=!0,this.setupAudioGraphPromise&&this.setupAudioGraphPromise.then(()=>{this.started&&"audioworklet"===this.processorType&&this.processor instanceof AudioWorkletNode&&this.processor.port.postMessage({type:"start"})}))},this.stop=()=>{this.started&&(this.started=!1,"audioworklet"===this.processorType&&this.processor instanceof AudioWorkletNode&&this.processor.port.postMessage({type:"stop"}))},this.getOutputStream=()=>this.destination.stream,this.getStats=()=>{let e="audioworklet"===this.processorType?this.workletPassRate:this.gateHistory.length>0?this.gateHistory.filter(Boolean).length/this.gateHistory.length:0,r="audioworklet"===this.processorType?this.workletIsGateOpen:this.shouldGateOpen(this.smoothedEnergy);return{microphoneEnergy:this.smoothedEnergy,isSuppressionEnabled:this.effectiveSuppressionState,currentThreshold:this.getCurrentThreshold(),isGateOpen:r,passRate:e}},this.setEnergyMultiplier=e=>{let r=Math.max(1,e);this.options.suppressionEnergyMultiplier=r,"audioworklet"===this.processorType&&this.processor instanceof AudioWorkletNode&&this.processor.port.postMessage({type:"setEnergyMultiplier",payload:{value:r}})},this.dispose=()=>{this.stop(),this.suppressionStateTimer&&clearTimeout(this.suppressionStateTimer),this.processor&&(this.processor.disconnect(),this.processor=null),this.input.disconnect(),this.gate.disconnect()},this.processAudioScriptProcessor=e=>{let r=e.inputBuffer,i=e.outputBuffer,n=r.getChannelData(0),o=i.getChannelData(0);if(!this.started)return void o.fill(0);let s=function(e){let r=0;for(let i of e)r+=i*i;return Math.sqrt(r/e.length)}(n);this.currentEnergy=s<1e-5?-100:20*Math.log10(s),this.smoothedEnergy=this.options.smoothingFactor*this.smoothedEnergy+(1-this.options.smoothingFactor)*this.currentEnergy;let a=this.shouldGateOpen(this.smoothedEnergy);if(this.gateHistory.push(a),this.gateHistory.length>this.scriptProcessorMaxHistoryLength&&this.gateHistory.shift(),a?o.set(n):o.fill(0),this.options.debug&&.02>Math.random()){let e=this.gateHistory.filter(Boolean).length/this.gateHistory.length;console.log("[EnergyGate]",{energy:this.smoothedEnergy.toFixed(1),suppression:this.effectiveSuppressionState,threshold:this.getCurrentThreshold().toFixed(1),open:a,passRate:(100*e).toFixed(1)+"%",impl:this.processorType})}},this.shouldGateOpen=e=>e>this.getCurrentThreshold(),this.getCurrentThreshold=()=>{if(this.effectiveSuppressionState){let e=this.options.suppressionEnergyMultiplier;return this.options.idleThreshold+20*Math.log10(e)}return this.options.idleThreshold},this.context=e,this.options={suppressionEnergyMultiplier:null!=(i=r.suppressionEnergyMultiplier)?i:3,idleThreshold:null!=(n=r.idleThreshold)?n:-45,smoothingFactor:null!=(o=r.smoothingFactor)?o:.7,suppressionActivationDelay:null!=(s=r.suppressionActivationDelay)?s:100,suppressionRecoveryDelay:null!=(a=r.suppressionRecoveryDelay)?a:500,debug:null!=(c=r.debug)&&c},this.input=this.context.createGain(),this.gate=this.context.createGain(),this.destination=this.context.createMediaStreamDestination(),this.scriptProcessorMaxHistoryLength=Math.round(this.context.sampleRate/2048*1),this.audioWorkletMaxHistoryLength=Math.round(this.context.sampleRate/128*1),this.setupAudioGraphPromise=this.setupAudioGraph().catch(e=>{console.error("[EnergyGate] Setup failed:",e)})}}lL=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),lB("design:type",Function),lB("design:paramtypes",["undefined"==typeof AudioContext?Object:AudioContext,"undefined"==typeof IEnergyGateOptions?Object:IEnergyGateOptions])],lL);class lF{constructor(e,r={}){var i,n,o,s;this.isMonitoring=!1,this.startMonitoring=()=>{this.isMonitoring||(document.addEventListener("visibilitychange",this.boundHandleVisibilityChange),this.context.addEventListener("statechange",this.boundHandleStateChange),window.addEventListener("pagehide",this.boundHandleVisibilityChange),window.addEventListener("pageshow",this.boundHandleVisibilityChange),this.isMonitoring=!0)},this.stopMonitoring=()=>{this.isMonitoring&&(document.removeEventListener("visibilitychange",this.boundHandleVisibilityChange),this.context.removeEventListener("statechange",this.boundHandleStateChange),window.removeEventListener("pagehide",this.boundHandleVisibilityChange),window.removeEventListener("pageshow",this.boundHandleVisibilityChange),this.isMonitoring=!1)},this.ensureRunning=async()=>{let e=this.context.state;if("running"===e)return!0;if("suspended"===e)try{return await this.context.resume(),"running"===this.context.state}catch(e){return console.error("[AudioContextLifecycle] Resume failed:",e),!1}return"closed"===e&&console.error("[AudioContextLifecycle] Context is closed, cannot resume"),!1},this.getState=()=>this.context.state,this.dispose=()=>{this.stopMonitoring()},this.handleVisibilityChange=()=>{document.hidden?"running"===this.context.state&&this.options.onSuspended():this.options.autoResume&&"suspended"===this.context.state&&this.ensureRunning().then(e=>{e&&this.options.onResumed()}).catch(e=>{console.error("[AudioContextLifecycle] Auto-resume failed:",e)})},this.handleStateChange=()=>{switch(this.context.state){case"suspended":this.options.onSuspended();break;case"running":this.options.onResumed();break;case"interrupted":this.options.onInterrupted();break;case"closed":this.stopMonitoring()}},this.context=e,this.options={onSuspended:null!=(i=r.onSuspended)?i:()=>{},onResumed:null!=(n=r.onResumed)?n:()=>{},onInterrupted:null!=(o=r.onInterrupted)?o:()=>{},autoResume:null==(s=r.autoResume)||s},this.boundHandleVisibilityChange=this.handleVisibilityChange.bind(this),this.boundHandleStateChange=this.handleStateChange.bind(this)}}function lz(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function lU(e,r){return function(i,n){r(i,n,e)}}(pz=(pF=p0||(p0={})).EMessageType||(pF.EMessageType={}))[pz.Query=0]="Query",pz[pz.Event=1]="Event";class lH{get sessionId(){return this.customSessionId?this.customSessionId:this.started&&this.signalingService?this.signalingService.GetSessionID():null}constructor(e,r,i,n){var o=this;this.opts=e,this.signalingService=r,this.errorManager=i,this.disabled=!1,this.mutedByUser=!1,this.muted=!1,this.emitter=new oy,this.started=!1,this.customSessionId=null,this.energyGate=null,this.audioContext=null,this.audioContextLifecycle=null,this.lastCheckResult=null,this.lastCheckTime=0,this.CHECK_CACHE_TTL=5e3,this.mute=e=>{var r;null==(r=this.signalingService)||r.Mute(e),this.muted=e},this.setMutedByUser=e=>{this.mutedByUser=e},this.tryUnmuteAsr=()=>!this.disabled&&!this.mutedByUser&&(this.muted&&this.mute(!1),!0),this.disable=()=>{this.disabled=!0},this.enable=()=>{this.disabled=!1},this.setPlaybackSuppressionEnabled=e=>{this.energyGate&&this.energyGate.setSuppressionEnabled(e)},this.checkAudioDevice=async e=>{var r;let i=Date.now();if(!(null==e?void 0:e.forceCheck)&&(null==(r=this.lastCheckResult)?void 0:r.available)&&i-this.lastCheckTime<this.CHECK_CACHE_TTL)return this.lastCheckResult;let n=new lA(e),o=await n.checkAudioDevice();return this.lastCheckResult=o,this.lastCheckTime=i,await this.emitter.emit("device_check_completed",o),!o.available&&o.error&&this.errorManager.handleError(this.mapToAsrError(o)),o},this.setupPlaybackSuppression=async function(e){var r,i,n,s,a,c;let d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[ASR]",l=null==(r=o.opts.asr)?void 0:r.config;if(!(null==l?void 0:l.enablePlaybackSuppression))return e;try{o.audioContext=new AudioContext,o.audioContextLifecycle=new lF(o.audioContext,{onSuspended:()=>{o.opts.enableDebugMode&&console.log("".concat(d," AudioContext suspended (页面后台或锁屏)"))},onResumed:()=>{o.opts.enableDebugMode&&console.log("".concat(d," AudioContext resumed (页面前台)"))},onInterrupted:()=>{o.opts.enableDebugMode&&console.log("".concat(d," AudioContext interrupted (如来电)"))},autoResume:!0}),o.audioContextLifecycle.startMonitoring(),await o.audioContextLifecycle.ensureRunning();let r=o.audioContext.createMediaStreamSource(e);o.energyGate=new lL(o.audioContext,{suppressionEnergyMultiplier:null==(i=l.playbackSuppressionConfig)?void 0:i.energyMultiplier,idleThreshold:null==(n=l.playbackSuppressionConfig)?void 0:n.idleThreshold,smoothingFactor:null==(s=l.playbackSuppressionConfig)?void 0:s.smoothingFactor,suppressionActivationDelay:null==(a=l.playbackSuppressionConfig)?void 0:a.activationDelay,suppressionRecoveryDelay:null==(c=l.playbackSuppressionConfig)?void 0:c.recoveryDelay,debug:o.opts.enableDebugMode}),r.connect(o.energyGate.input),o.energyGate.start();let u=o.energyGate.getOutputStream();return console.log("".concat(d," 外部播放抑制已启用")),u}catch(r){return console.warn("".concat(d," 外部播放抑制启动失败,将使用原始音频流"),r),e}},this.cleanupPlaybackSuppression=()=>{this.energyGate&&(this.energyGate.dispose(),this.energyGate=null),this.audioContextLifecycle&&(this.audioContextLifecycle.dispose(),this.audioContextLifecycle=null),this.audioContext&&("closed"!==this.audioContext.state&&this.audioContext.close().catch(()=>{}),this.audioContext=null)},this.handleMicrophoneCheckFailure=async(e,r,i)=>{switch(await this.emitter.emit("device_check_completed",r),e){case"error":return!1;case"warn":return console.warn("[AaaSPilotKit] 麦克风检测失败,已降级为仅文本输入模式",{error:r.error,message:r.message,permissionState:r.permissionState,devices:r.devices}),!0;case"silent":return!0;case"prompt":if(!i)return console.warn('[AaaSPilotKit] microphoneFailureHandling 设置为 "prompt" 但未提供 onMicrophoneCheckFailed 回调,降级为 "error" 策略'),!1;try{let e=await i(r);return e&&console.info("[AaaSPilotKit] 用户确认继续(仅文本模式)"),e}catch(e){return console.error("[AaaSPilotKit] onMicrophoneCheckFailed 回调执行失败",e),!1}default:return console.error("[AaaSPilotKit] 未知的 microphoneFailureHandling 策略: ".concat(e)),!1}},this._stop=async()=>{this.started&&(await this.signalingService.Stop(),this.started=!1,this.disabled=!1)},this._dispose=()=>{this.stop().finally(()=>{this.signalingService.Dispose()}).catch(as),this.emitter.clearListeners(),this.lastCheckTime=0,this.disabled=!1,this.cleanupPlaybackSuppression()},this.mapToAsrError=e=>new({[lx.NO_API_SUPPORT]:sV,[lx.INSECURE_CONTEXT]:sG,[lx.NO_DEVICE_FOUND]:sq,[lx.PERMISSION_DENIED]:sF,[lx.PERMISSION_DISMISSED]:sK,[lx.DEVICE_IN_USE]:sW,[lx.TIMEOUT]:sJ,[lx.UNKNOWN_ERROR]:sB})[e.error](e.message,{passedLevel:e.passedLevel,devices:e.devices,permissionState:e.permissionState}),this.streamManager=n}}function lq(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function lW(e,r){return function(i,n){r(i,n,e)}}lH=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),lU(0,e3(oS.IOptions)),lU(0,tt()),lU(1,e3(oS.SignalingService)),lU(1,tt()),lU(2,e3(oS.ErrorManager)),lU(3,e3(oS.MediaStreamManager)),lz("design:type",Function),lz("design:paramtypes",["undefined"==typeof IResolvedOptions?Object:IResolvedOptions,"undefined"==typeof BaseSignalingService?Object:BaseSignalingService,void 0===at?Object:at,"undefined"==typeof MediaStreamManager?Object:MediaStreamManager])],lH);class lV{get isRendering(){return this._isRendering}get isMuted(){return this._isMuted}get canInterrupt(){return this._canInterrupt}setIsRendering(e){this._isRendering=e}setIsMuted(e){this._isMuted=e}setCanInterrupt(e){this._canInterrupt=e}registerSSMLHandler(e){return this.ssmlHandlers.push(e),this}runSsmlHandlers(e){let r=e;for(let e of this.ssmlHandlers)r=e(r);return r}constructor(e,r,i){this.opts=e,this.request=r,this.errorManager=i,this.emitter=new oy,this._isRendering=!1,this._isMuted=!1,this._canInterrupt=!0,this.ssmlHandlers=[],this.token="",this.latencyStartMap=new Map,this.getAccessToken=async()=>{try{let{data:e}=await this.request.client.get(lV.GET_ACCESS_TOKEN_REQUEST_URI,{retry:3,timeout:15e3}).json();return e.authorization}catch(e){throw e instanceof Error&&this.errorManager.handleError(new s1(e.message)),e}}}}lV.GET_ACCESS_TOKEN_REQUEST_URI="employee-console/v1/access/r/ai-agent/get_digital_token",lV=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),lW(0,e3(oS.IOptions)),lW(1,e3(oS.CommonRequest)),lW(2,e3(oS.ErrorManager)),lq("design:type",Function),lq("design:paramtypes",["undefined"==typeof IOptions?Object:IOptions,void 0===sw?Object:sw,void 0===at?Object:at])],lV);let lG=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return new Promise(r=>setTimeout(r,e))};function lK(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function lJ(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?lK(Object(i),!0).forEach(function(r){lZ(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):lK(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function lX(e){return(lX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l$(e,r){if(!(e instanceof r))throw TypeError("Cannot call a class as a function")}function lQ(e,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l0(n.key),n)}}function lY(e,r,i){return r&&lQ(e.prototype,r),i&&lQ(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function lZ(e,r,i){return(r=l0(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function l0(e){var r=function(e,r){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,r||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:String(r)}(p1||(p1={})).INIT="INIT";var l1=function(){function e(r){l$(this,e),lZ(this,"iframeId",void 0),this.iframeId=r}return lY(e,[{key:"registerMessageReceived",value:function(e){void 0!==window.addEventListener&&"function"==typeof e&&window.addEventListener("message",e,!1)}},{key:"removeMessageReceived",value:function(e){void 0!==window.addEventListener&&window.removeEventListener("message",e,!1)}},{key:"sendMessageToIframe",value:function(e,r){if(this.iframeId){var i=document.getElementById(this.iframeId);e&&null!==i&&i.contentWindow.postMessage({type:e,content:r},"*")}else if(window.self!==window.top&&window&&window.parent&&window.parent.postMessage){var n=JSON.parse(JSON.stringify(r||{}));window.parent.postMessage({type:e,content:n},"*")}}},{key:"sendCommand",value:function(e){this.sendMessageToIframe("command",e)}},{key:"sendMessage",value:function(e){var r=e.requestId,i=void 0===r?ao():r;return this.sendMessageToIframe("message",lJ(lJ({},e),{},{requestId:i})),i}},{key:"textRender",value:function(e){return this.sendMessage({action:"TEXT_RENDER",body:e})}},{key:"textQuery",value:function(e){return this.sendMessage({action:"TEXT_QUERY",body:e})}},{key:"changeBackGround",value:function(e){return this.textRender("<display><background><type>image</type><source>http</source><value>".concat(e,"</value></background></display>"))}},{key:"mute",value:function(e){this.sendCommand({subType:"mute",subContent:e})}},{key:"muteAudio",value:function(e){this.sendCommand({subType:"muteAudio",subContent:e})}},{key:"muteRemoteAudio",value:function(e){this.sendCommand({subType:"muteRemoteAudio",subContent:e})}},{key:"playVideo",value:function(e){this.sendCommand({subType:"playVideo",subContent:e})}},{key:"sendAudioData",value:function(e){this.sendMessageToIframe("audioData",e)}},{key:"onStateUpdate",value:function(e){this.sendMessageToIframe("state",e)}},{key:"sendRtcState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.sendMessageToIframe("rtcState",e)}},{key:"sendWsState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.sendMessageToIframe("wsState",e)}}]),e}();lY(function e(r){l$(this,e),lZ(this,"iframeId",void 0),lZ(this,"namespace","dhIframeNameSpace"),lZ(this,"listener",null),this.iframeId=r},[{key:"onEventListener",value:function(e){var r=this;return function(i){if("object"===lX(i.data))if("onListener"===i.data.type&&i.data.content.listenerId){var n=window[r.namespace][i.data.content.listenerId];null==n||n(i.data.content.data)}else"onListenerRemove"===i.data.type&&i.data.content.listenerId?delete window[r.namespace][i.data.content.listenerId]:i.data.listenerId?e(i.data,function(e){r.sendMessage("onListener",{listenerId:i.data.listenerId,data:e})},function(){r.sendMessage("onListenerRemove",{listenerId:i.data.listenerId})}):e(i.data)}}},{key:"registerMessageReceived",value:function(e){void 0!==window.addEventListener&&"function"==typeof e&&(this.listener=this.onEventListener(e),window.addEventListener("message",this.listener,!1))}},{key:"removeMessageReceived",value:function(){void 0!==window.addEventListener&&this.listener&&(window[this.namespace]=void 0,window.removeEventListener("message",this.listener,!1))}},{key:"sendMessage",value:function(e,r,i){var n=this;if(this.iframeId){var o="";i&&(o=ao(),window[this.namespace]||(window[this.namespace]={}),window[this.namespace][o]=i);var s=document.getElementById(this.iframeId);return e&&null!==s&&s.contentWindow.postMessage({type:e,content:r,listenerId:o},"*"),function(){o&&(window[n.namespace][o]=void 0)}}if(window.self!==window.top&&window&&window.parent&&window.parent.postMessage){var a=JSON.parse(JSON.stringify(r||{}));window.parent.postMessage({type:e,content:a},"*")}}},{key:"textRender",value:function(e,r){return this.sendMessage("TEXT_RENDER",e,r)}},{key:"textMTRender",value:function(e,r){return this.sendMessage("TEXT_MT_RENDER",e,r)}},{key:"audioRender",value:function(e,r){return this.sendMessage("AUDIO_RENDER",e,r)}},{key:"textQuery",value:function(e,r){return this.sendMessage("TEXT_QUERY",e,r)}},{key:"startAudioQuery",value:function(e,r){return this.sendMessage("AUDIO_QUERY_START",e,r)}},{key:"stopAudioQuery",value:function(){return this.sendMessage("AUDIO_QUERY_STOP",{})}},{key:"setModelPackage",value:function(e,r){return this.sendMessage("SET_MODEL_URLS",{urls:e,needInitConfig:r})}},{key:"changeCamera",value:function(e){return this.sendMessage("CHANGE_CAMERA",e)}},{key:"changeParts",value:function(e){return this.sendMessage("CHANGE_PARTS",e)}},{key:"setRenderConfig",value:function(e){return this.sendMessage("SET_RENDER_CONFIG",e)}},{key:"animojiRender",value:function(e,r){return this.sendMessage("ANIMOJI_RENDER",e,r)}},{key:"destroy",value:function(){return this.sendMessage("DESTROY",{})}},{key:"startAudioRender",value:function(e,r){return this.sendMessage("AUDIO_RENDER_START",e,r)}},{key:"stopAudioRender",value:function(){return this.sendMessage("AUDIO_RENDER_STOP",{})}},{key:"interrupt",value:function(){return this.sendMessage("INTERRUPT",{})}},{key:"load",value:function(e){return this.sendMessage("LOAD",e)}},{key:"onStateUpdate",value:function(e){this.sendMessage("state",e)}}]);class l2 extends lV{get ready(){return!!this.iframeController&&!!this.token}constructor(...e){super(...e),this.origin="https://open.xiling.baidu.com",this.iframeId=ao(),this.iframeController=null,this.iframe=null,this.$iframeContainer=null,this.requestId=ao(),this.isWSConnected=!1,this.isRtcReady=!1,this.silenceMessageRequestIds=[],this.isStreamTextRendering=!1,this.wsClosedCount=0,this.mount=async e=>{if(!e)return void this.errorManager.handleError(new s$("容器元素不能为空"));if(this.$iframeContainer=e,this.iframe){e.contains(this.iframe)||e.appendChild(this.iframe);return}this.opts.enableDebugMode&&"development"===this.opts.env&&!this.opts.token?this.token=await this.getAccessToken():this.token=this.opts.token,this.iframe=document.createElement("iframe"),this.applyOptions(),e.appendChild(this.iframe),this.iframeController=new l1(this.iframeId),this.bindEvents()},this.bindEvents=()=>{var e,r;return this.ready&&(null==(e=this.iframe)||e.addEventListener("error",this.onIFrameErrorHandler),null==(r=this.iframeController)||r.registerMessageReceived(this.onMessageHandler)),this},this.unbindEvents=()=>{var e,r;return this.ready&&(null==(e=this.iframe)||e.removeEventListener("error",this.onIFrameErrorHandler),null==(r=this.iframeController)||r.removeMessageReceived(this.onMessageHandler)),this},this.cancelMute=()=>{var e;null==(e=this.iframeController)||e.sendCommand({subType:"muteAudio",subContent:!1}),setTimeout(()=>{this._isMuted=!1},1500)},this.muteHuman=()=>{var e;null==(e=this.iframeController)||e.sendCommand({subType:"muteAudio",subContent:!0}),setTimeout(()=>{this._isMuted=!0},1500)},this.play=async()=>{var e;null==(e=this.iframeController)||e.sendCommand({subType:"playVideo",subContent:!0})},this.pause=()=>{var e;null==(e=this.iframeController)||e.sendCommand({subType:"playVideo",subContent:!1})},this.renderPlainText=e=>{var r;if(!this.ready)return this;let i=this.runSsmlHandlers(e);return this.refreshRequestId(),null==(r=this.iframeController)||r.sendMessage({action:"TEXT_RENDER",body:i,requestId:this.requestId}),this},this.renderStreamText=(e,r)=>{var i,n,o;if(!this.ready)return this;let s=this.runSsmlHandlers(e);return r?(this.isStreamTextRendering||this.refreshRequestId(),null==(n=this.iframeController)||n.sendMessage({action:"TEXT_STREAM_RENDER",body:JSON.stringify({first:!this.isStreamTextRendering,last:!0,text:s}),requestId:this.requestId}),this.isStreamTextRendering=!1):this.isStreamTextRendering?null==(i=this.iframeController)||i.sendMessage({action:"TEXT_STREAM_RENDER",body:JSON.stringify({first:!1,last:!1,text:s}),requestId:this.requestId}):(this.refreshRequestId(),this.isStreamTextRendering=!0,this.latencyStartMap.set(this.requestId,performance.now()),null==(o=this.iframeController)||o.sendMessage({action:"TEXT_STREAM_RENDER",body:JSON.stringify({first:!0,last:!1,text:s}),requestId:this.requestId})),this},this.interrupt=()=>{var e;return this.ready&&(null==(e=this.iframeController)||e.sendMessage({action:"TEXT_RENDER",body:"<interrupt></interrupt>",requestId:this.requestId}),this.isRendering||this.onRenderFinished(this.requestId)),this},this.sendSilenceMessage=()=>{var e;if(!this.ready)return this;let r=ao();return null==(e=this.iframeController)||e.sendMessage({action:"TEXT_RENDER",body:"",requestId:r}),this.silenceMessageRequestIds.push(r),this.emitter.emit("send_silence_message",{requestId:r}).catch(as),this},this.dispose=()=>{if(this.unbindEvents(),this.silenceMessageRequestIds=[],this.ssmlHandlers=[],this.wsClosedCount=0,this.isStreamTextRendering=!1,this.emitter.clearListeners(),this.latencyStartMap.clear(),this.iframe){var e;null==(e=this.$iframeContainer)||e.removeChild(this.iframe),this.iframe=null,this.iframeController=null}return this},this.GetRequestId=()=>this.requestId,this.checkIsReady=()=>{let e=this.isWSConnected&&this.isRtcReady;return e&&this.emitter.emit("ready").catch(as),e},this.onIFrameErrorHandler=e=>{let r=new sQ("数字人iframe加载失败: ".concat(e.message),{context:{method:"onIFrameErrorHandler",iframeId:this.iframeId,filename:e.filename,lineno:e.lineno,colno:e.colno,type:e.type,target:e.target}});this.errorManager.handleError(r)},this.onMessageHandler=e=>{if(e.origin!==this.origin)return;let r=e.data;switch(r.type){case"msg":this.onReceiveMsgTypedMessageHandler(r);break;case"rtcState":this.onReceiveRtcStateTypedMessageHandler(r);break;case"wsState":this.onReceiveWsStateTypedMessageHandler(r)}},this.onReceiveMsgTypedMessageHandler=e=>{let r=e.content.requestId;if((1004===e.content.code||3001===e.content.code)&&(this.emitter.emit("reach_session_limit",{requestId:r}).catch(as),this.errorManager.handleError(new s2("资源配额已用尽,请联系技术支持申请扩容"))),["RENDER_START","FINISHED","DOWN_SUBTITLE","RENDER_INTERRUPTED","DOWN_SUBTITLE","TEXT_RENDER","TEXT_STREAM_RENDER"].includes(e.content.action)){if(r!==this.requestId)return;switch(e.content.action){case"RENDER_START":this._isRendering=!0,this.emitter.emit("is_rendering_change",!0).catch(as);break;case"FINISHED":case"RENDER_INTERRUPTED":this.onRenderFinished(r);break;case"DOWN_SUBTITLE":{let i=JSON.parse(e.content.body);if(this.silenceMessageRequestIds.includes(r))this.silenceMessageRequestIds=this.silenceMessageRequestIds.filter(e=>e!==r);else{let e,n=this.latencyStartMap.get(r);void 0!==n&&(e=performance.now()-n,this.latencyStartMap.clear()),this.emitter.emit("render_subtitle",{subtitle:i,requestId:r,latency:e}).catch(as)}break}case"TEXT_RENDER":case"TEXT_STREAM_RENDER":0!==e.content.code&&this.onRenderFinished(r)}return}switch(e.content.action){case"RENDER_ERROR":this.onRenderFinished(r),this.errorManager.handleError(new sY("数字员工文本驱动渲染失败,请确认配置后重试",{requestId:r,context:{msg:e.content.message}}));break;case"DISCONNECT_ALERT":this.emitter.emit("disconnect_alert",{requestId:r}).catch(as);break;case"TIMEOUT_EXIT":this.onRenderFinished(r),this.emitter.emit("timeout",{requestId:e.content.requestId}).catch(as)}},this.onReceiveRtcStateTypedMessageHandler=e=>{if(e.content.action,"localVideoMuted"===e.content.action&&e.content.body&&(this._isMuted=!0),"remotevideoon"===e.content.action&&(this.isRtcReady=!0,this.checkIsReady(),this.iframe&&(this.iframe.style.opacity="1")),"error"===e.content.action){let r="string"==typeof e.content.body?e.content.body:"";this.errorManager.handleError(new s0("RTC 房间连接失败,请检查网络后重试"+r))}},this.onReceiveWsStateTypedMessageHandler=e=>{1===e.content.readyState?(this.isWSConnected=!0,this.wsClosedCount=0,this.checkIsReady()):(3===e.content.readyState||2===e.content.readyState)&&(this.isWSConnected=!1),3===e.content.readyState&&(this.wsClosedCount++,this.wsClosedCount>=3&&(this.emitter.emit("reconnect_failed").catch(as),this.errorManager.handleError(new sZ("检测到 Websocket 链接异常断开,如长时间无法恢复,请联系技术支持。"))))},this.applyOptions=()=>{var e,r,i,n,o,s,a,c,d,l,u,p,h,f;if(!this.iframe)return;this.iframe.id=this.iframeId,this.iframe.allow="autoplay",this.iframe.style.border="none",this.iframe.style.opacity="0",this.iframe.style.pointerEvents="none",this.iframe.style.overflow="hidden";let m=null!=(o=null==(e=this.opts)?void 0:e.scaleX)?o:1,g=null!=(s=null==(r=this.opts)?void 0:r.scaleY)?s:1,y=null!=(a=null==(i=this.opts)?void 0:i.translateX)?a:0,b=null!=(c=null==(n=this.opts)?void 0:n.translateY)?c:0;this.iframe.style.width="".concat(100*m,"% "),this.iframe.style.height="".concat(100*g,"%"),this.iframe.style.transform="translate(".concat(y,"px, ").concat(b,"px)");let S=new URLSearchParams(Object.entries({figureId:this.opts.figureId,ttsPer:this.opts.ttsPer,initMode:"noAudio","cp-inactiveDisconnectSec":null!=(d=this.opts.timeoutSec)?d:130,"cp-preAlertSec":null!=(l=this.opts.disconnectAlertSec)?l:10,mode:"crop",resolutionWidth:null!=(u=this.opts.figureResolutionWidth)?u:1920,resolutionHeight:null!=(p=this.opts.figureResolutionHeight)?p:1080,ttsSpeed:null!=(h=this.opts.speechSpeed)?h:6,"cp-ttsSample":this.opts.ttsSample,"cp-minSplitLen":this.opts.minSplitLen,"cp-ttsModel":this.opts.ttsModel,"cp-positionV2":JSON.stringify(this.opts.position),"cp-ttsLang":ab(this.opts.lang),autoChromaKey:this.opts.autoChromaKey,closeLog:null==(f=this.opts.enableDebugMode)||f,token:this.token}).filter(e=>{let[,r]=e;return null!=r&&""!==r}).reduce((e,r)=>{let[i,n]=r;return e[i]=String(n),e},{})).toString();this.iframe.src="".concat(this.origin,"/cloud/realtime?").concat(S)},this.refreshRequestId=()=>{this.requestId=ao()},this.onRenderFinished=e=>{this._isRendering=!1,this.isStreamTextRendering=!1,this.emitter.emit("is_rendering_change",!1).catch(as),this.refreshRequestId(),this.emitter.emit("render_finished",{requestId:e}).catch(as)}}}function l3(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function l4(e,r){return function(i,n){r(i,n,e)}}l2=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),e9()],l2);class l6{constructor(e,r,i,n,o,s){this.opts=e,this.errorManager=r,this.agentService=i,this.asrService=n,this.digitalHumanService=o,this.conversationService=s,this.interruptible=!0,this.isRenderingMultiModConversation=!1,this.isDigitalHumanServiceReady=!1,this.isAsrServiceReady=!1,this.lastReplyStartRequestId=null,this.aiWorkerMessageCache=null,this.multiModAbortControllers=[],this.playWaitForListener=null,this.queryStartTime=0,this.hasRenderStartTriggered=!1,this.mount=async e=>{var r,i;let n=null!=e?e:null==(r=(i=this.opts).getMountContainer)?void 0:r.call(i);n&&(await Promise.all([this.digitalHumanService.mount(n),this.asrService.preloadDeps()]),await this.asrService.start(),this.isAsrServiceReady=!0,this.checkServiceReady())},this.getOptions=()=>this.opts,this.checkNeedsManualActivation=()=>"cloud-native"!==this.opts.rendererMode&&(sM()||sD()),this.activateManually=async()=>{if(this.digitalHumanService instanceof l2){let e,r;this.digitalHumanService.cancelMute(),r=(e=new(sx())).getUA(),("WeChat"===e.getBrowser().name||/MicroMessenger/i.test(r))&&(sM()||sD())&&await lG(500)}},this.keepAlive=()=>(this.digitalHumanService.sendSilenceMessage(),this),this.playWaitFor=async(e,r)=>(this.playWaitForListener&&this.digitalHumanService.emitter.off("render_finished",this.playWaitForListener),this.digitalHumanService.isRendering)?await new Promise(i=>{this.playWaitForListener=()=>{r&&!r()?i(!1):(this.digitalHumanService.renderPlainText(e),this.playWaitForListener&&this.digitalHumanService.emitter.off("render_finished",this.playWaitForListener),i(!0))},this.digitalHumanService.emitter.on("render_finished",this.playWaitForListener)}):(this.digitalHumanService.renderPlainText(e),!0),this.playFromFullText=e=>(this.digitalHumanService.renderPlainText(e),this),this.playFromStreamText=(e,r)=>(this.digitalHumanService.renderStreamText(e,r),this),this.mute=e=>(this.asrService.setMutedByUser(e),this.emitter.emit("mute",e).catch(as),e?(this.asrService.mute(!0),this.conversationService.currentClientConversation&&this.query(this.conversationService.currentClientConversation.text,!0).catch(as)):this.asrService.muted&&this.asrService.mute(!1),this),this.interrupt=()=>(this.interruptAIWorkerConversation(),this),this.playPrologue=()=>{this.opts.prologue&&this.opts.prologue.length>0?this.playFromFullText(this.opts.prologue):this.agentService.query("").catch(as)},this.query=async(e,r)=>{if(this.checkServiceReady()){if(this.agentService.sessionId||this.agentService.setSessionId(ao()),this.digitalHumanService.sendSilenceMessage(),this.agentService.queryId||this.agentService.setQueryId(ao()),r){if(this.agentService.checkIsRepeat())return;this.agentService.setLastQueryId(this.agentService.queryId)}if(await this.emitter.emit("asr_message",{text:e,completed:r,id:this.agentService.queryId,sessionId:this.agentService.sessionId}),await this.handleClientConversation(e),r){this.asrService.mute(!0);let r=async()=>{this.agentService.setQueryId(""),this.digitalHumanService.canInterrupt&&(this.asrService.tryUnmuteAsr(),await this.emitter.emit("asr_start"),this.digitalHumanService.emitter.off("render_subtitle",r))};this.digitalHumanService.emitter.on("render_subtitle",r);let i=async()=>{this.agentService.setQueryId(""),this.asrService.tryUnmuteAsr(),await this.emitter.emit("asr_start"),this.digitalHumanService.emitter.off("render_finished",i)};this.digitalHumanService.emitter.on("render_finished",i),this.handleClientConversationCompleted(),this.queryStartTime=performance.now(),await this.agentService.query(e)}}},this.input=e=>(this.digitalHumanService.isRendering&&!this.interruptible||this.query(e,!0).catch(as),this),this.dispose=()=>(this.agentService.dispose(),this.asrService.dispose(),this.digitalHumanService.dispose(),this.conversationService.dispose(),this.emitter.clearListeners(),this.isDigitalHumanServiceReady=!1,this.isAsrServiceReady=!1,this.aiWorkerMessageCache=null,this.isRenderingMultiModConversation=!1,this.multiModAbortControllers=[],this.lastReplyStartRequestId=null,this.hasRenderStartTriggered=!1,this),this.setInterruptible=e=>(this.interruptible=e,this),this.checkAudioDevice=async e=>this.asrService.checkAudioDevice(e),this.bindAsrServiceEvents=()=>{this.asrService.emitter.on("start",this.handleAsrServiceStarted),this.asrService.emitter.on("message",this.handleAsrMessage),this.asrService.emitter.on("device_check_completed",this.handleDeviceCheckCompleted)},this.bindAgentServiceEvents=()=>{this.agentService.emitter.on("data",this.handleAgentAnswer),this.agentService.emitter.on("completed",this.handleAgentAnswerCompleted),this.agentService.emitter.on("instruction_received",this.handleAgentInstructionReceived),this.agentService.emitter.on("usage_quota_reached",async e=>{await this.emitter.emit("busy",{...e})}),this.agentService.emitter.on("ttft",this.handleTtft)},this.bindDigitalHumanServiceEvents=()=>{this.digitalHumanService.bindEvents(),this.digitalHumanService.emitter.once("ready").then(()=>{this.isDigitalHumanServiceReady=!0,this.checkServiceReady()}),this.digitalHumanService.emitter.on("render_subtitle",this.aiWorkerSubtitleToConversation),this.digitalHumanService.emitter.on("is_rendering_change",e=>{this.asrService.setPlaybackSuppressionEnabled(e),this.emitter.emit("is_rendering_change",e).catch(as)}),this.digitalHumanService.emitter.on("render_subtitle",async e=>{this.hasRenderStartTriggered=!0,await this.emitter.emit("render_start",{...e,sessionId:this.agentService.sessionId,queryId:this.agentService.queryId});let{requestId:r}=e;if(r!==this.lastReplyStartRequestId){this.lastReplyStartRequestId=r;let i=this.agentService.getResponseManager().getLastResponse();this.emitter.emit("reply_start",{agentResponse:i,latency:e.latency,requestId:e.requestId}).catch(as)}}),this.digitalHumanService.emitter.on("disconnect_alert",e=>{let r=this.digitalHumanService.emitter.on("render_finished",()=>{this.asrService.mute(!0),this.emitter.emit("inactivity",e).catch(as),r()}),i=this.digitalHumanService.emitter.on("send_silence_message",()=>{r(),i()});this.playFromFullText(this.opts.inactivityPrompt)}),this.digitalHumanService.emitter.on("reach_session_limit",async e=>{this.isDigitalHumanServiceReady&&this.isAsrServiceReady&&await this.emitter.emit("busy",{...e})}),this.digitalHumanService.emitter.on("reconnect_failed",async()=>{await this.emitter.emit("busy",{requestId:"reconnect_failed"})});let e=this.digitalHumanService.emitter.on("render_finished",()=>{this.asrService.tryUnmuteAsr(),e()})},this.bindErrorEvents=()=>{this.errorManager.on(e=>{let r=this.errorManager.createMonitoringError(e);this.emitter.emit("error",e).catch(as);try{this.weirwood.error.captureException(r)}catch(e){console.error(e)}})},this.bindEvents=()=>{this.bindErrorEvents(),this.bindAsrServiceEvents(),this.bindAgentServiceEvents(),this.bindDigitalHumanServiceEvents()},this.registerFormatters=()=>{var e,r;let i=null!=(e=this.opts.speechFormatters)?e:[],n=null!=(r=this.opts.conversationFormatters)?r:[];for(let e of i)this.digitalHumanService.registerSSMLHandler(e);for(let e of n)this.conversationService.registerAIWorkerConversationFormatter(e)},this.aiWorkerSubtitleToConversation=async e=>{let r=e.subtitle;if(this.isRenderingMultiModConversation)return;let i=this.conversationService;await this.createNewAIWorkerConversation();let n=i.currentAIWorkerConversation;n&&this.handleAIWorkerConversationChange(n);let o=i.runAIWorkerConversationFormatters(r.content);if(null==n||n.appendText(o),r.completed){let e=i.currentAIWorkerConversation;e&&e.markAsEnded(),i.setCurrentConversation(null)}},this.handleAgentAnswer=e=>{let{answer:r}=e;dh.isXml(r)?this.handleXmlAgentAnswer(e).catch(as):(this.aiWorkerMessageCache&&this.playFromStreamText(this.aiWorkerMessageCache,!1),this.aiWorkerMessageCache=r)},this.handleXmlAgentAnswer=async e=>{let{answer:r}=e,i=this.conversationService;await this.createNewAIWorkerConversation();let n=i.currentAIWorkerConversation;if(!n)return;let o=()=>{this.emitter.emit("conversation_change",{...n.toJSON(),text:n.fulltext,completed:!1})};n.emitter.on("content_change",o),this.isRenderingMultiModConversation=!0;let s=i.runAIWorkerConversationFormatters(r),a=n.createContentsFromXmlString(s),c=new AbortController;for(let e of(this.multiModAbortControllers.push(c),a)){if(c.signal.aborted){n.emitter.off("content_change",o);break}if(df.isTextContent(e)){let r=e.getConfig().content;this.playFromFullText(r),await this.digitalHumanService.emitter.once("render_subtitle")}n.addContentRenderTask(e),n.contents.push(e),await n.emitter.once("queue_empty")}n.markAsEnded(),this.isRenderingMultiModConversation=!1,n.emitter.off("content_change",o),await this.emitter.emit("conversation_change",{...n.toJSON(),text:n.fulltext,completed:!0})},this.createNewAIWorkerConversation=async()=>{let e=this.conversationService;if(!e.currentAIWorkerConversation){let r=df.create(this.opts);e.setCurrentConversation(r),e.add(r),await this.emitter.emit("conversation_add",r)}},this.handleAgentAnswerCompleted=async()=>{if(this.aiWorkerMessageCache){this.playFromStreamText(this.aiWorkerMessageCache,!0),this.aiWorkerMessageCache=null;return}this.agentService.setQueryId(""),this.asrService.tryUnmuteAsr(),await this.emitter.emit("asr_start")},this.handleAgentInstructionReceived=e=>{this.emitter.emit("instruction_received",e).catch(as)},this.handleTtft=async e=>{let r=e.timestamp-this.queryStartTime;await this.emitter.emit("ttft",{...e,totalLatency:r})},this.handleAsrServiceStarted=async()=>{if("baidu"===this.opts.asr.provider&&await lG(800),this.asrService.mute(!0),this.interruptible){if(this.hasRenderStartTriggered)return void this.asrService.tryUnmuteAsr();this.emitter.once("render_start").then(()=>{this.asrService.tryUnmuteAsr()})}},this.handleAsrMessage=async e=>{this.digitalHumanService.isRendering&&!this.digitalHumanService.canInterrupt||this.asrService.mutedByUser||e.type===p0.EMessageType.Query&&(this.opts.enableDebugMode&&console.log("message",e,this.agentService.sessionId,Date.now()),await this.query(af(e.data,this.opts.hotWordReplacementRules),e.completed))},this.handleDeviceCheckCompleted=async e=>{await this.emitter.emit("microphone_available",{available:e.available,error:e.error,userMessage:e.error?lD(e.error):void 0,devices:e.devices,permissionState:e.permissionState})},this.handleClientConversation=async e=>{let r=this.conversationService;if(!r.currentClientConversation){let e=a_.create(this.opts);r.setCurrentConversation(e),r.add(e),await this.emitter.emit("conversation_add",e)}let i=r.currentClientConversation;(this.digitalHumanService.isRendering||this.isRenderingMultiModConversation)&&this.interruptAIWorkerConversation(),null==i||i.appendText(e)},this.handleClientConversationCompleted=()=>{this.conversationService.setCurrentConversation(null)},this.interruptAIWorkerConversation=()=>{for(let e of(this.aiWorkerMessageCache&&this.digitalHumanService.renderStreamText(this.aiWorkerMessageCache,!0),this.multiModAbortControllers))e.abort();this.multiModAbortControllers=[];let e=this.digitalHumanService.GetRequestId();this.digitalHumanService.interrupt(),this.conversationService.interruptAll(),this.agentService.abort(),this.aiWorkerMessageCache=null,this.emitter.emit("interrupt",{requestId:e,queryId:this.agentService.queryId?this.agentService.queryId:this.agentService.lastQueryId,sessionId:this.agentService.sessionId}).catch(as)},this.checkServiceReady=()=>!!this.isDigitalHumanServiceReady&&!!this.isAsrServiceReady&&(this.emitter.emit("ready").catch(as),!0),this.handleAIWorkerConversationChange=e=>{let r=i=>{this.emitter.emit("conversation_change",{...e.toJSON(),text:e.fulltext,completed:i.completed}).catch(as),i.completed&&e.emitter.off("content_change",r)},i=()=>{e.emitter.off("interrupt",i),e.emitter.off("content_change",r)};e.emitter.on("content_change",r),e.emitter.on("interrupt",i)},this.weirwood=new lI({common:{buildid:"AAAS_PILOT_KIT_1.0.0",token:"8f3abab4743f4114bd632999224323af"},error:{collectWindowErrors:!1,collectUnhandledRejections:!1,collectResourceLoadErrors:!1,ignoreUrls:["localhost","127.0.0.1"]},perf:{disable:!0}}),this.emitter=new oy(this.opts.enableDebugMode?{debug:{name:l6.ENTRY_EMITTER_NAME,enabled:!0}}:void 0),this.bindEvents(),this.registerFormatters(),this.interruptible=this.opts.interruptible}}l6.ENTRY_EMITTER_NAME="AaaSPilotKitEmitter",l6=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),l4(0,e3(oS.IOptions)),l4(0,tt()),l4(1,e3(oS.ErrorManager)),l4(2,e3(oS.AgentService)),l4(3,e3(oS.ASRService)),l4(4,e3(oS.DigitalHumanService)),l4(5,e3(oS.ConversationService)),l3("design:type",Function),l3("design:paramtypes",["undefined"==typeof IResolvedOptions?Object:IResolvedOptions,void 0===at?Object:at,"undefined"==typeof AS?Object:AS,void 0===lH?Object:lH,void 0===lV?Object:lV,void 0===dg?Object:dg])],l6);class l5 extends Error{constructor(e,r){super(e),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}}function l8(e){}var l9={"../../node_modules/core-js/internals/a-callable.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js"),o=i("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(o(e)+" is not a function")}},"../../node_modules/core-js/internals/an-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-object.js"),o=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(o(e)+" is not an object")}},"../../node_modules/core-js/internals/array-includes.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-indexed-object.js"),o=i("../../node_modules/core-js/internals/to-absolute-index.js"),s=i("../../node_modules/core-js/internals/length-of-array-like.js"),a=function(e){return function(r,i,a){var c,d=n(r),l=s(d);if(0===l)return!e&&-1;var u=o(a,l);if(e&&i!=i){for(;l>u;)if((c=d[u++])!=c)return!0}else for(;l>u;u++)if((e||u in d)&&d[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"../../node_modules/core-js/internals/classof-raw.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=n({}.toString),s=n("".slice);e.exports=function(e){return s(o(e),8,-1)}},"../../node_modules/core-js/internals/copy-constructor-properties.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/has-own-property.js"),o=i("../../node_modules/core-js/internals/own-keys.js"),s=i("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=i("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,r,i){for(var c=o(r),d=a.f,l=s.f,u=0;u<c.length;u++){var p=c[u];n(e,p)||i&&n(i,p)||d(e,p,l(r,p))}}},"../../node_modules/core-js/internals/create-non-enumerable-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/object-define-property.js"),s=i("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,r,i){return o.f(e,r,s(1,i))}:function(e,r,i){return e[r]=i,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},"../../node_modules/core-js/internals/define-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js"),o=i("../../node_modules/core-js/internals/object-define-property.js"),s=i("../../node_modules/core-js/internals/make-built-in.js"),a=i("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,r,i,c){c||(c={});var d=c.enumerable,l=void 0!==c.name?c.name:r;if(n(i)&&s(i,l,c),c.global)d?e[r]=i:a(r,i);else{try{c.unsafe?e[r]&&(d=!0):delete e[r]}catch(e){}d?e[r]=i:o.f(e,r,{value:i,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return e}},"../../node_modules/core-js/internals/define-global-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=Object.defineProperty;e.exports=function(e,r){try{o(n,e,{value:r,configurable:!0,writable:!0})}catch(i){n[e]=r}return r}},"../../node_modules/core-js/internals/descriptors.js":function(e,r,i){e.exports=!i("../../node_modules/core-js/internals/fails.js")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=n.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},"../../node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/environment-user-agent.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js").navigator,o=n&&n.userAgent;e.exports=o?String(o):""},"../../node_modules/core-js/internals/environment-v8-version.js":function(e,r,i){var n,o,s=i("../../node_modules/core-js/internals/global-this.js"),a=i("../../node_modules/core-js/internals/environment-user-agent.js"),c=s.process,d=s.Deno,l=c&&c.versions||d&&d.version,u=l&&l.v8;u&&(o=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},"../../node_modules/core-js/internals/export.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),a=i("../../node_modules/core-js/internals/define-built-in.js"),c=i("../../node_modules/core-js/internals/define-global-property.js"),d=i("../../node_modules/core-js/internals/copy-constructor-properties.js"),l=i("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,r){var i,u,p,h,f,m=e.target,g=e.global,y=e.stat;if(i=g?n:y?n[m]||c(m,{}):n[m]&&n[m].prototype)for(u in r){if(h=r[u],p=e.dontCallGetSet?(f=o(i,u))&&f.value:i[u],!l(g?u:m+(y?".":"#")+u,e.forced)&&void 0!==p){if(typeof h==typeof p)continue;d(h,p)}(e.sham||p&&p.sham)&&s(h,"sham",!0),a(i,u,h,e)}}},"../../node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/function-bind-native.js":function(e,r,i){e.exports=!i("../../node_modules/core-js/internals/fails.js")(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},"../../node_modules/core-js/internals/function-name.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(s,"name"),d=c&&(!n||n&&a(s,"name").configurable);e.exports={EXISTS:c,PROPER:c&&"something"===(function(){}).name,CONFIGURABLE:d}},"../../node_modules/core-js/internals/function-uncurry-this.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype,s=o.call,a=n&&o.bind.bind(s,s);e.exports=n?a:function(e){return function(){return s.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,r){var i;return arguments.length<2?o(i=n[e])?i:void 0:n[e]&&n[e][r]}},"../../node_modules/core-js/internals/get-method.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/a-callable.js"),o=i("../../node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,r){var i=e[r];return o(i)?void 0:n(i)}},"../../node_modules/core-js/internals/global-this.js":function(e,r,i){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/to-object.js"),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,r){return s(o(e),r)}},"../../node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"../../node_modules/core-js/internals/ie8-dom-define.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/indexed-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/classof-raw.js"),a=Object,c=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?c(e,""):a(e)}:a},"../../node_modules/core-js/internals/inspect-source.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/shared-store.js"),a=n(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":function(e,r,i){var n,o,s,a=i("../../node_modules/core-js/internals/weak-map-basic-detection.js"),c=i("../../node_modules/core-js/internals/global-this.js"),d=i("../../node_modules/core-js/internals/is-object.js"),l=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),u=i("../../node_modules/core-js/internals/has-own-property.js"),p=i("../../node_modules/core-js/internals/shared-store.js"),h=i("../../node_modules/core-js/internals/shared-key.js"),f=i("../../node_modules/core-js/internals/hidden-keys.js"),m="Object already initialized",g=c.TypeError,y=c.WeakMap;if(a||p.state){var b=p.state||(p.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,r){if(b.has(e))throw new g(m);return r.facade=e,b.set(e,r),r},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var S=h("state");f[S]=!0,n=function(e,r){if(u(e,S))throw new g(m);return r.facade=e,l(e,S,r),r},o=function(e){return u(e,S)?e[S]:{}},s=function(e){return u(e,S)}}e.exports={set:n,get:o,has:s,enforce:function(e){return s(e)?o(e):n(e,{})},getterFor:function(e){return function(r){var i;if(!d(r)||(i=o(r)).type!==e)throw new g("Incompatible receiver, "+e+" required");return i}}}},"../../node_modules/core-js/internals/is-callable.js":function(e){var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-forced.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=/#|\.prototype\./,a=function(e,r){var i=d[c(e)];return i===u||i!==l&&(o(r)?n(r):!!r)},c=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},d=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},"../../node_modules/core-js/internals/is-null-or-undefined.js":function(e){e.exports=function(e){return null==e}},"../../node_modules/core-js/internals/is-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},"../../node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"../../node_modules/core-js/internals/is-symbol.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/get-built-in.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),a=i("../../node_modules/core-js/internals/use-symbol-as-uid.js"),c=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var r=n("Symbol");return o(r)&&s(r.prototype,c(e))}},"../../node_modules/core-js/internals/length-of-array-like.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return n(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/is-callable.js"),a=i("../../node_modules/core-js/internals/has-own-property.js"),c=i("../../node_modules/core-js/internals/descriptors.js"),d=i("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,l=i("../../node_modules/core-js/internals/inspect-source.js"),u=i("../../node_modules/core-js/internals/internal-state.js"),p=u.enforce,h=u.get,f=String,m=Object.defineProperty,g=n("".slice),y=n("".replace),b=n([].join),S=c&&!o(function(){return 8!==m(function(){},"length",{value:8}).length}),C=String(String).split("String"),_=e.exports=function(e,r,i){"Symbol("===g(f(r),0,7)&&(r="["+y(f(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!a(e,"name")||d&&e.name!==r)&&(c?m(e,"name",{value:r,configurable:!0}):e.name=r),S&&i&&a(i,"arity")&&e.length!==i.arity&&m(e,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?c&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=p(e);return a(n,"source")||(n.source=b(C,"string"==typeof r?r:"")),e};Function.prototype.toString=_(function(){return s(this)&&h(this).source||l(this)},"toString")},"../../node_modules/core-js/internals/math-trunc.js":function(e){var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:r)(n)}},"../../node_modules/core-js/internals/object-define-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/ie8-dom-define.js"),s=i("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),a=i("../../node_modules/core-js/internals/an-object.js"),c=i("../../node_modules/core-js/internals/to-property-key.js"),d=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",f="writable";r.f=n?s?function(e,r,i){if(a(e),r=c(r),a(i),"function"==typeof e&&"prototype"===r&&"value"in i&&f in i&&!i[f]){var n=u(e,r);n&&n[f]&&(e[r]=i.value,i={configurable:h in i?i[h]:n[h],enumerable:p in i?i[p]:n[p],writable:!1})}return l(e,r,i)}:l:function(e,r,i){if(a(e),r=c(r),a(i),o)try{return l(e,r,i)}catch(e){}if("get"in i||"set"in i)throw new d("Accessors not supported");return"value"in i&&(e[r]=i.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/object-property-is-enumerable.js"),a=i("../../node_modules/core-js/internals/create-property-descriptor.js"),c=i("../../node_modules/core-js/internals/to-indexed-object.js"),d=i("../../node_modules/core-js/internals/to-property-key.js"),l=i("../../node_modules/core-js/internals/has-own-property.js"),u=i("../../node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(e,r){if(e=c(e),r=d(r),u)try{return p(e,r)}catch(e){}if(l(e,r))return a(!o(s.f,e,r),e[r])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/object-keys-internal.js"),o=i("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,r){r.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-is-prototype-of.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/function-uncurry-this.js")({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/has-own-property.js"),s=i("../../node_modules/core-js/internals/to-indexed-object.js"),a=i("../../node_modules/core-js/internals/array-includes.js").indexOf,c=i("../../node_modules/core-js/internals/hidden-keys.js"),d=n([].push);e.exports=function(e,r){var i,n=s(e),l=0,u=[];for(i in n)!o(c,i)&&o(n,i)&&d(u,i);for(;r.length>l;)o(n,i=r[l++])&&(~a(u,i)||d(u,i));return u}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":function(e,r){var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;r.f=n&&!i.call({1:2},1)?function(e){var r=n(this,e);return!!r&&r.enumerable}:i},"../../node_modules/core-js/internals/ordinary-to-primitive.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/is-object.js"),a=TypeError;e.exports=function(e,r){var i,c;if("string"===r&&o(i=e.toString)&&!s(c=n(i,e))||o(i=e.valueOf)&&!s(c=n(i,e))||"string"!==r&&o(i=e.toString)&&!s(c=n(i,e)))return c;throw new a("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/get-built-in.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/object-get-own-property-names.js"),a=i("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),c=i("../../node_modules/core-js/internals/an-object.js"),d=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var r=s.f(c(e)),i=a.f;return i?d(r,i(e)):r}},"../../node_modules/core-js/internals/require-object-coercible.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-null-or-undefined.js"),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/shared-key.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/shared.js"),o=i("../../node_modules/core-js/internals/uid.js"),s=n("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},"../../node_modules/core-js/internals/shared-store.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-pure.js"),o=i("../../node_modules/core-js/internals/global-this.js"),s=i("../../node_modules/core-js/internals/define-global-property.js"),a="__core-js_shared__",c=e.exports=o[a]||s(a,{});(c.versions||(c.versions=[])).push({version:"3.44.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/shared.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/shared-store.js");e.exports=function(e,r){return n[e]||(n[e]=r||{})}},"../../node_modules/core-js/internals/symbol-constructor-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-v8-version.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},"../../node_modules/core-js/internals/to-absolute-index.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.max,s=Math.min;e.exports=function(e,r){var i=n(e);return i<0?o(i+r,0):s(i,r)}},"../../node_modules/core-js/internals/to-indexed-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/indexed-object.js"),o=i("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(o(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var r=+e;return r!=r||0===r?0:n(r)}},"../../node_modules/core-js/internals/to-length.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.min;e.exports=function(e){var r=n(e);return r>0?o(r,0x1fffffffffffff):0}},"../../node_modules/core-js/internals/to-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/require-object-coercible.js"),o=Object;e.exports=function(e){return o(n(e))}},"../../node_modules/core-js/internals/to-primitive.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=i("../../node_modules/core-js/internals/is-symbol.js"),a=i("../../node_modules/core-js/internals/get-method.js"),c=i("../../node_modules/core-js/internals/ordinary-to-primitive.js"),d=i("../../node_modules/core-js/internals/well-known-symbol.js"),l=TypeError,u=d("toPrimitive");e.exports=function(e,r){if(!o(e)||s(e))return e;var i,d=a(e,u);if(d){if(void 0===r&&(r="default"),!o(i=n(d,e,r))||s(i))return i;throw new l("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(e,r)}},"../../node_modules/core-js/internals/to-property-key.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-primitive.js"),o=i("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var r=n(e,"string");return o(r)?r:r+""}},"../../node_modules/core-js/internals/try-to-string.js":function(e){var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/uid.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=0,s=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},"../../node_modules/core-js/internals/use-symbol-as-uid.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/symbol-constructor-detection.js")&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/fails.js");e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/weak-map-basic-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=n.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},"../../node_modules/core-js/internals/well-known-symbol.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/shared.js"),s=i("../../node_modules/core-js/internals/has-own-property.js"),a=i("../../node_modules/core-js/internals/uid.js"),c=i("../../node_modules/core-js/internals/symbol-constructor-detection.js"),d=i("../../node_modules/core-js/internals/use-symbol-as-uid.js"),l=n.Symbol,u=o("wks"),p=d?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(u,e)||(u[e]=c&&s(l,e)?l[e]:p("Symbol."+e)),u[e]}},"../../node_modules/core-js/modules/es.object.has-own.js":function(e,r,i){i("../../node_modules/core-js/internals/export.js")({target:"Object",stat:!0},{hasOwn:i("../../node_modules/core-js/internals/has-own-property.js")})}},l7={};function ue(e){var r=l7[e];if(void 0!==r)return r.exports;var i=l7[e]={exports:{}};return l9[e].call(i.exports,i,i.exports,ue),i.exports}ue.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return Function("return this")()}catch(e){if("object"==typeof window)return window}})(),ue("../../node_modules/core-js/modules/es.object.has-own.js");let ut=e=>async(r,i,n)=>{if(!n.ok||!n.body)return;let o=!1,s=r=>{var i;o||(o=!0,null==(i=e.onCompleted)||i.call(e,r))},a=n.body.getReader(),c=new TextDecoder("utf8"),d=function(e){if("function"==typeof e)throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:r=l8,onError:i=l8,onRetry:n=l8,onComment:o}=e,s="",a=!0,c,d="",l="";function u(e){if(""===e)return void(d.length>0&&r({id:c,event:l||void 0,data:d.endsWith(`
26
+ `);return r}parseHeaders(e){let r={};if(e){let i=e.match(/[^\r\n]+/g);if(r){for(let e of i)if(e){let i=e.indexOf(":"),n=i>0?e.substr(0,i).trim().toLowerCase():e,o=i>0&&e.length>i+1?e.substr(i+1).trim():"";r[n]=o}}}return r}stringToArrayBuffer(e){let r=new ArrayBuffer(e.length),i=new DataView(r);for(let r=0;r<e.length;r++)i.setUint8(r,e.charCodeAt(r));return r}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AudioStreamNodeErrorEvent=r.AudioStreamNodeDetachedEvent=r.AudioStreamNodeAttachedEvent=r.AudioStreamNodeAttachingEvent=r.AudioStreamNodeEvent=r.AudioSourceErrorEvent=r.AudioSourceOffEvent=r.AudioSourceReadyEvent=r.AudioSourceInitializingEvent=r.AudioSourceEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js");class o extends n.PlatformEvent{constructor(e,r,i=n.EventType.Info){super(e,i),this.privAudioSourceId=r}get audioSourceId(){return this.privAudioSourceId}}r.AudioSourceEvent=o,r.AudioSourceInitializingEvent=class extends o{constructor(e){super("AudioSourceInitializingEvent",e)}},r.AudioSourceReadyEvent=class extends o{constructor(e){super("AudioSourceReadyEvent",e)}},r.AudioSourceOffEvent=class extends o{constructor(e){super("AudioSourceOffEvent",e)}},r.AudioSourceErrorEvent=class extends o{constructor(e,r){super("AudioSourceErrorEvent",e,n.EventType.Error),this.privError=r}get error(){return this.privError}};class s extends o{constructor(e,r,i){super(e,r),this.privAudioNodeId=i}get audioNodeId(){return this.privAudioNodeId}}r.AudioStreamNodeEvent=s,r.AudioStreamNodeAttachingEvent=class extends s{constructor(e,r){super("AudioStreamNodeAttachingEvent",e,r)}},r.AudioStreamNodeAttachedEvent=class extends s{constructor(e,r){super("AudioStreamNodeAttachedEvent",e,r)}},r.AudioStreamNodeDetachedEvent=class extends s{constructor(e,r){super("AudioStreamNodeDetachedEvent",e,r)}},r.AudioStreamNodeErrorEvent=class extends s{constructor(e,r,i){super("AudioStreamNodeErrorEvent",e,r),this.privError=i}get error(){return this.privError}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/BackgroundError.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");class o extends n.PlatformEvent{constructor(e){super("BackgroundEvent",n.EventType.Error),this.privError=e}get error(){return this.privError}}r.BackgroundEvent=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ChunkedArrayBufferStream.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ChunkedArrayBufferStream=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");class o extends n.Stream{constructor(e,r){super(r),this.privTargetChunkSize=Math.round(e),this.privNextBufferReadyBytes=0}writeStreamChunk(e){if(e.isEnd||0===this.privNextBufferReadyBytes&&e.buffer.byteLength===this.privTargetChunkSize)return void super.writeStreamChunk(e);let r=0;for(;r<e.buffer.byteLength;){void 0===this.privNextBufferToWrite&&(this.privNextBufferToWrite=new ArrayBuffer(this.privTargetChunkSize),this.privNextBufferStartTime=e.timeReceived);let i=Math.min(e.buffer.byteLength-r,this.privTargetChunkSize-this.privNextBufferReadyBytes),n=new Uint8Array(this.privNextBufferToWrite),o=new Uint8Array(e.buffer.slice(r,i+r));n.set(o,this.privNextBufferReadyBytes),this.privNextBufferReadyBytes+=i,r+=i,this.privNextBufferReadyBytes===this.privTargetChunkSize&&(super.writeStreamChunk({buffer:this.privNextBufferToWrite,isEnd:!1,timeReceived:this.privNextBufferStartTime}),this.privNextBufferReadyBytes=0,this.privNextBufferToWrite=void 0)}}close(){0===this.privNextBufferReadyBytes||this.isClosed||super.writeStreamChunk({buffer:this.privNextBufferToWrite.slice(0,this.privNextBufferReadyBytes),isEnd:!1,timeReceived:this.privNextBufferStartTime}),super.close()}}r.ChunkedArrayBufferStream=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionEvents.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionRedirectEvent=r.ConnectionMessageSentEvent=r.ConnectionMessageReceivedEvent=r.ConnectionEstablishErrorEvent=r.ConnectionErrorEvent=r.ConnectionClosedEvent=r.ConnectionEstablishedEvent=r.ConnectionStartEvent=r.ConnectionEvent=r.ServiceEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js");class o extends n.PlatformEvent{constructor(e,r,i=n.EventType.Info){super(e,i),this.privJsonResult=r}get jsonString(){return this.privJsonResult}}r.ServiceEvent=o;class s extends n.PlatformEvent{constructor(e,r,i=n.EventType.Info){super(e,i),this.privConnectionId=r}get connectionId(){return this.privConnectionId}}r.ConnectionEvent=s,r.ConnectionStartEvent=class extends s{constructor(e,r,i){super("ConnectionStartEvent",e),this.privUri=r,this.privHeaders=i}get uri(){return this.privUri}get headers(){return this.privHeaders}},r.ConnectionEstablishedEvent=class extends s{constructor(e){super("ConnectionEstablishedEvent",e)}},r.ConnectionClosedEvent=class extends s{constructor(e,r,i){super("ConnectionClosedEvent",e,n.EventType.Debug),this.privReason=i,this.privStatusCode=r}get reason(){return this.privReason}get statusCode(){return this.privStatusCode}},r.ConnectionErrorEvent=class extends s{constructor(e,r,i){super("ConnectionErrorEvent",e,n.EventType.Debug),this.privMessage=r,this.privType=i}get message(){return this.privMessage}get type(){return this.privType}},r.ConnectionEstablishErrorEvent=class extends s{constructor(e,r,i){super("ConnectionEstablishErrorEvent",e,n.EventType.Error),this.privStatusCode=r,this.privReason=i}get reason(){return this.privReason}get statusCode(){return this.privStatusCode}},r.ConnectionMessageReceivedEvent=class extends s{constructor(e,r,i){super("ConnectionMessageReceivedEvent",e),this.privNetworkReceivedTime=r,this.privMessage=i}get networkReceivedTime(){return this.privNetworkReceivedTime}get message(){return this.privMessage}},r.ConnectionMessageSentEvent=class extends s{constructor(e,r,i){super("ConnectionMessageSentEvent",e),this.privNetworkSentTime=r,this.privMessage=i}get networkSentTime(){return this.privNetworkSentTime}get message(){return this.privMessage}},r.ConnectionRedirectEvent=class extends s{constructor(e,r,i,o){super("ConnectionRedirectEvent",e,n.EventType.Info),this.privRedirectUrl=r,this.privOriginalUrl=i,this.privContext=o}get redirectUrl(){return this.privRedirectUrl}get originalUrl(){return this.privOriginalUrl}get context(){return this.privContext}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionMessage.js":function(e,r,i){var n,o;Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionMessage=r.MessageType=void 0;let s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js");(o=n=r.MessageType||(r.MessageType={}))[o.Text=0]="Text",o[o.Binary=1]="Binary",r.ConnectionMessage=class{constructor(e,r,i,o){if(this.privBody=null,e===n.Text&&r&&"string"!=typeof r)throw new s.InvalidOperationError("Payload must be a string");if(e===n.Binary&&r&&!(r instanceof ArrayBuffer))throw new s.InvalidOperationError("Payload must be ArrayBuffer");switch(this.privMessageType=e,this.privBody=r,this.privHeaders=i||{},this.privId=o||(0,a.createNoDashGuid)(),this.messageType){case n.Binary:this.privSize=null!==this.binaryBody?this.binaryBody.byteLength:0;break;case n.Text:this.privSize=this.textBody.length}}get messageType(){return this.privMessageType}get headers(){return this.privHeaders}get body(){return this.privBody}get textBody(){if(this.privMessageType===n.Binary)throw new s.InvalidOperationError("Not supported for binary message");return this.privBody}get binaryBody(){if(this.privMessageType===n.Text)throw new s.InvalidOperationError("Not supported for text message");return this.privBody}get id(){return this.privId}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionOpenResponse.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionOpenResponse=void 0,r.ConnectionOpenResponse=class{constructor(e,r){this.privStatusCode=e,this.privReason=r}get statusCode(){return this.privStatusCode}get reason(){return this.privReason}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/DeferralMap.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DeferralMap=void 0,r.DeferralMap=class{constructor(){this.privMap={}}add(e,r){this.privMap[e]=r}getId(e){return this.privMap[e]}complete(e,r){try{this.privMap[e].resolve(r)}catch(r){this.privMap[e].reject(r)}finally{this.privMap[e]=void 0}}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/DialogEvents.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SendingAgentContextMessageEvent=r.DialogEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js");class o extends n.PlatformEvent{constructor(e,r=n.EventType.Info){super(e,r)}}r.DialogEvent=o,r.SendingAgentContextMessageEvent=class extends o{constructor(e){super("SendingAgentContextMessageEvent"),this.privAgentConfig=e}get agentConfig(){return this.privAgentConfig}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ObjectDisposedError=r.InvalidOperationError=r.ArgumentNullError=void 0,r.ArgumentNullError=class extends Error{constructor(e){super(e),this.name="ArgumentNull",this.message=e}},r.InvalidOperationError=class extends Error{constructor(e){super(e),this.name="InvalidOperation",this.message=e}},r.ObjectDisposedError=class extends Error{constructor(e,r){super(r),this.name=e+"ObjectDisposed",this.message=r}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/EventSource.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.EventSource=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js");r.EventSource=class{constructor(e){this.privEventListeners={},this.privIsDisposed=!1,this.privConsoleListener=void 0,this.privMetadata=e}onEvent(e){if(this.isDisposed())throw new n.ObjectDisposedError("EventSource");if(this.metadata)for(let r in this.metadata)r&&e.metadata&&!e.metadata[r]&&(e.metadata[r]=this.metadata[r]);for(let r in this.privEventListeners)r&&this.privEventListeners[r]&&this.privEventListeners[r](e)}attach(e){let r=(0,o.createNoDashGuid)();return this.privEventListeners[r]=e,{detach:()=>(delete this.privEventListeners[r],Promise.resolve())}}attachListener(e){return this.attach(r=>e.onEvent(r))}attachConsoleListener(e){return this.privConsoleListener&&this.privConsoleListener.detach(),this.privConsoleListener=this.attach(r=>e.onEvent(r)),this.privConsoleListener}isDisposed(){return this.privIsDisposed}dispose(){this.privEventListeners=null,this.privIsDisposed=!0}get metadata(){return this.privMetadata}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Events.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Events=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/EventSource.js");class s{static setEventSource(e){if(!e)throw new n.ArgumentNullError("eventSource");s.privInstance=e}static get instance(){return s.privInstance}}r.Events=s,s.privInstance=new o.EventSource},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js":function(e,r,i){var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[i]}})}:function(e,r,i,n){void 0===n&&(n=i),e[n]=r[i]}),o=this&&this.__exportStar||function(e,r){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(r,i)||n(r,e,i)};Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationStatus=void 0,o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionEvents.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionMessage.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionOpenResponse.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/DeferralMap.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/DialogEvents.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Events.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/EventSource.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IAudioSource.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IConnection.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDetachable.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDictionary.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDisposable.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IEventListener.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IEventSource.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IErrorMessages.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ITimer.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IWebsocketMessageFormatter.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/List.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Promise.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Queue.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/RawWebsocketMessage.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/RiffPcmEncoder.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Stream.js"),r);var s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/TranslationStatus.js");Object.defineProperty(r,"TranslationStatus",{enumerable:!0,get:function(){return s.TranslationStatus}}),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ChunkedArrayBufferStream.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IAudioDestination.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Timeout.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/OCSPEvents.js"),r),o(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/BackgroundError.js"),r)},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.createNoDashGuid=r.createGuid=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/index.js"),o=()=>(0,n.v4)();r.createGuid=o,r.createNoDashGuid=()=>o().replace(/-/g,"").toUpperCase()},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IAudioDestination.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IAudioSource.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IConnection.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionState=void 0,(i=r.ConnectionState||(r.ConnectionState={}))[i.None=0]="None",i[i.Connected=1]="Connected",i[i.Connecting=2]="Connecting",i[i.Disconnected=3]="Disconnected"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDetachable.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDictionary.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IDisposable.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IErrorMessages.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IEventListener.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IEventSource.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ITimer.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/IWebsocketMessageFormatter.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/List.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.List=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js");class o{constructor(e){if(this.privSubscriptionIdCounter=0,this.privAddSubscriptions={},this.privRemoveSubscriptions={},this.privDisposedSubscriptions={},this.privDisposeReason=null,this.privList=[],e)for(let r of e)this.privList.push(r)}get(e){return this.throwIfDisposed(),this.privList[e]}first(){return this.get(0)}last(){return this.get(this.length()-1)}add(e){this.throwIfDisposed(),this.insertAt(this.privList.length,e)}insertAt(e,r){this.throwIfDisposed(),0===e?this.privList.unshift(r):e===this.privList.length?this.privList.push(r):this.privList.splice(e,0,r),this.triggerSubscriptions(this.privAddSubscriptions)}removeFirst(){return this.throwIfDisposed(),this.removeAt(0)}removeLast(){return this.throwIfDisposed(),this.removeAt(this.length()-1)}removeAt(e){return this.throwIfDisposed(),this.remove(e,1)[0]}remove(e,r){this.throwIfDisposed();let i=this.privList.splice(e,r);return this.triggerSubscriptions(this.privRemoveSubscriptions),i}clear(){this.throwIfDisposed(),this.remove(0,this.length())}length(){return this.throwIfDisposed(),this.privList.length}onAdded(e){this.throwIfDisposed();let r=this.privSubscriptionIdCounter++;return this.privAddSubscriptions[r]=e,{detach:()=>(delete this.privAddSubscriptions[r],Promise.resolve())}}onRemoved(e){this.throwIfDisposed();let r=this.privSubscriptionIdCounter++;return this.privRemoveSubscriptions[r]=e,{detach:()=>(delete this.privRemoveSubscriptions[r],Promise.resolve())}}onDisposed(e){this.throwIfDisposed();let r=this.privSubscriptionIdCounter++;return this.privDisposedSubscriptions[r]=e,{detach:()=>(delete this.privDisposedSubscriptions[r],Promise.resolve())}}join(e){return this.throwIfDisposed(),this.privList.join(e)}toArray(){let e=[];return this.privList.forEach(r=>{e.push(r)}),e}any(e){return(this.throwIfDisposed(),e)?this.where(e).length()>0:this.length()>0}all(e){return this.throwIfDisposed(),this.where(e).length()===this.length()}forEach(e){this.throwIfDisposed();for(let r=0;r<this.length();r++)e(this.privList[r],r)}select(e){this.throwIfDisposed();let r=[];for(let i=0;i<this.privList.length;i++)r.push(e(this.privList[i],i));return new o(r)}where(e){this.throwIfDisposed();let r=new o;for(let i=0;i<this.privList.length;i++)e(this.privList[i],i)&&r.add(this.privList[i]);return r}orderBy(e){return this.throwIfDisposed(),new o(this.toArray().sort(e))}orderByDesc(e){return this.throwIfDisposed(),this.orderBy((r,i)=>e(i,r))}clone(){return this.throwIfDisposed(),new o(this.toArray())}concat(e){return this.throwIfDisposed(),new o(this.privList.concat(e.toArray()))}concatArray(e){return this.throwIfDisposed(),new o(this.privList.concat(e))}isDisposed(){return null==this.privList}dispose(e){this.isDisposed()||(this.privDisposeReason=e,this.privList=null,this.privAddSubscriptions=null,this.privRemoveSubscriptions=null,this.triggerSubscriptions(this.privDisposedSubscriptions))}throwIfDisposed(){if(this.isDisposed())throw new n.ObjectDisposedError("List",this.privDisposeReason)}triggerSubscriptions(e){if(e)for(let r in e)r&&e[r]()}}r.List=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/OCSPEvents.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.OCSPCacheUpdateErrorEvent=r.OCSPResponseRetrievedEvent=r.OCSPCacheFetchErrorEvent=r.OCSPVerificationFailedEvent=r.OCSPCacheHitEvent=r.OCSPCacheEntryNeedsRefreshEvent=r.OCSPCacheEntryExpiredEvent=r.OCSPWSUpgradeStartedEvent=r.OCSPStapleReceivedEvent=r.OCSPCacheUpdateCompleteEvent=r.OCSPDiskCacheStoreEvent=r.OCSPMemoryCacheStoreEvent=r.OCSPCacheUpdateNeededEvent=r.OCSPDiskCacheHitEvent=r.OCSPCacheMissEvent=r.OCSPMemoryCacheHitEvent=r.OCSPEvent=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js");class o extends n.PlatformEvent{constructor(e,r,i){super(e,r),this.privSignature=i}}r.OCSPEvent=o,r.OCSPMemoryCacheHitEvent=class extends o{constructor(e){super("OCSPMemoryCacheHitEvent",n.EventType.Debug,e)}},r.OCSPCacheMissEvent=class extends o{constructor(e){super("OCSPCacheMissEvent",n.EventType.Debug,e)}},r.OCSPDiskCacheHitEvent=class extends o{constructor(e){super("OCSPDiskCacheHitEvent",n.EventType.Debug,e)}},r.OCSPCacheUpdateNeededEvent=class extends o{constructor(e){super("OCSPCacheUpdateNeededEvent",n.EventType.Debug,e)}},r.OCSPMemoryCacheStoreEvent=class extends o{constructor(e){super("OCSPMemoryCacheStoreEvent",n.EventType.Debug,e)}},r.OCSPDiskCacheStoreEvent=class extends o{constructor(e){super("OCSPDiskCacheStoreEvent",n.EventType.Debug,e)}},r.OCSPCacheUpdateCompleteEvent=class extends o{constructor(e){super("OCSPCacheUpdateCompleteEvent",n.EventType.Debug,e)}},r.OCSPStapleReceivedEvent=class extends o{constructor(){super("OCSPStapleReceivedEvent",n.EventType.Debug,"")}},r.OCSPWSUpgradeStartedEvent=class extends o{constructor(e){super("OCSPWSUpgradeStartedEvent",n.EventType.Debug,e)}},r.OCSPCacheEntryExpiredEvent=class extends o{constructor(e,r){super("OCSPCacheEntryExpiredEvent",n.EventType.Debug,e),this.privExpireTime=r}},r.OCSPCacheEntryNeedsRefreshEvent=class extends o{constructor(e,r,i){super("OCSPCacheEntryNeedsRefreshEvent",n.EventType.Debug,e),this.privExpireTime=i,this.privStartTime=r}},r.OCSPCacheHitEvent=class extends o{constructor(e,r,i){super("OCSPCacheHitEvent",n.EventType.Debug,e),this.privExpireTime=i,this.privExpireTimeString=new Date(i).toLocaleDateString(),this.privStartTime=r,this.privStartTimeString=new Date(r).toLocaleTimeString()}},r.OCSPVerificationFailedEvent=class extends o{constructor(e,r){super("OCSPVerificationFailedEvent",n.EventType.Debug,e),this.privError=r}},r.OCSPCacheFetchErrorEvent=class extends o{constructor(e,r){super("OCSPCacheFetchErrorEvent",n.EventType.Debug,e),this.privError=r}},r.OCSPResponseRetrievedEvent=class extends o{constructor(e){super("OCSPResponseRetrievedEvent",n.EventType.Debug,e)}},r.OCSPCacheUpdateErrorEvent=class extends o{constructor(e,r){super("OCSPCacheUpdateErrorEvent",n.EventType.Debug,e),this.privError=r}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/PlatformEvent.js":function(e,r,i){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.PlatformEvent=r.EventType=void 0;let o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js");(n=r.EventType||(r.EventType={}))[n.Debug=0]="Debug",n[n.Info=1]="Info",n[n.Warning=2]="Warning",n[n.Error=3]="Error",n[n.None=4]="None",r.PlatformEvent=class{constructor(e,r){this.privName=e,this.privEventId=(0,o.createNoDashGuid)(),this.privEventTime=new Date().toISOString(),this.privEventType=r,this.privMetadata={}}get name(){return this.privName}get eventId(){return this.privEventId}get eventTime(){return this.privEventTime}get eventType(){return this.privEventType}get metadata(){return this.privMetadata}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Promise.js":function(e,r){var i,n;Object.defineProperty(r,"__esModule",{value:!0}),r.marshalPromiseToCallbacks=r.Sink=r.Deferred=r.PromiseResultEventSource=r.PromiseResult=r.PromiseState=void 0,(n=i=r.PromiseState||(r.PromiseState={}))[n.None=0]="None",n[n.Resolved=1]="Resolved",n[n.Rejected=2]="Rejected";class o{constructor(e){this.throwIfError=()=>{if(this.isError)throw this.error},e.on(e=>{this.privIsCompleted||(this.privIsCompleted=!0,this.privIsError=!1,this.privResult=e)},e=>{this.privIsCompleted||(this.privIsCompleted=!0,this.privIsError=!0,this.privError=e)})}get isCompleted(){return this.privIsCompleted}get isError(){return this.privIsError}get error(){return this.privError}get result(){return this.privResult}}r.PromiseResult=o;class s{constructor(){this.setResult=e=>{this.privOnSetResult(e)},this.setError=e=>{this.privOnSetError(e)},this.on=(e,r)=>{this.privOnSetResult=e,this.privOnSetError=r}}}r.PromiseResultEventSource=s,r.Deferred=class{constructor(){this.resolve=e=>(this.privResolve(e),this),this.reject=e=>(this.privReject(e),this),this.privPromise=new Promise((e,r)=>{this.privResolve=e,this.privReject=r})}get promise(){return this.privPromise}},r.Sink=class{constructor(){this.privState=i.None,this.privPromiseResult=null,this.privPromiseResultEvents=null,this.privSuccessHandlers=[],this.privErrorHandlers=[],this.privPromiseResultEvents=new s,this.privPromiseResult=new o(this.privPromiseResultEvents)}get state(){return this.privState}get result(){return this.privPromiseResult}resolve(e){if(this.privState!==i.None)throw Error("'Cannot resolve a completed promise'");this.privState=i.Resolved,this.privPromiseResultEvents.setResult(e);for(let r=0;r<this.privSuccessHandlers.length;r++)this.executeSuccessCallback(e,this.privSuccessHandlers[r],this.privErrorHandlers[r]);this.detachHandlers()}reject(e){if(this.privState!==i.None)throw Error("'Cannot reject a completed promise'");for(let r of(this.privState=i.Rejected,this.privPromiseResultEvents.setError(e),this.privErrorHandlers))this.executeErrorCallback(e,r);this.detachHandlers()}on(e,r){null==e&&(e=()=>{}),this.privState===i.None?(this.privSuccessHandlers.push(e),this.privErrorHandlers.push(r)):(this.privState===i.Resolved?this.executeSuccessCallback(this.privPromiseResult.result,e,r):this.privState===i.Rejected&&this.executeErrorCallback(this.privPromiseResult.error,r),this.detachHandlers())}executeSuccessCallback(e,r,i){try{r(e)}catch(e){this.executeErrorCallback(`'Unhandled callback error: ${e}'`,i)}}executeErrorCallback(e,r){if(r)try{r(e)}catch(r){throw Error(`'Unhandled callback error: ${r}. InnerError: ${e}'`)}else throw Error(`'Unhandled error: ${e}'`)}detachHandlers(){this.privErrorHandlers=[],this.privSuccessHandlers=[]}},r.marshalPromiseToCallbacks=function(e,r,i){e.then(e=>{try{r&&r(e)}catch(e){if(i)try{e instanceof Error?i(e.name+": "+e.message):i(e)}catch(e){}}},e=>{if(i)try{e instanceof Error?i(e.name+": "+e.message):i(e)}catch(e){}})}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Queue.js":function(e,r,i){var n,o;Object.defineProperty(r,"__esModule",{value:!0}),r.Queue=void 0;let s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/List.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Promise.js");(o=n||(n={}))[o.Dequeue=0]="Dequeue",o[o.Peek=1]="Peek",r.Queue=class{constructor(e){this.privPromiseStore=new a.List,this.privIsDrainInProgress=!1,this.privIsDisposing=!1,this.privDisposeReason=null,this.privList=e||new a.List,this.privDetachables=[],this.privSubscribers=new a.List,this.privDetachables.push(this.privList.onAdded(()=>this.drain()))}enqueue(e){this.throwIfDispose(),this.enqueueFromPromise(new Promise(r=>r(e)))}enqueueFromPromise(e){this.throwIfDispose(),e.then(e=>{this.privList.add(e)},()=>{})}dequeue(){this.throwIfDispose();let e=new c.Deferred;return this.privSubscribers&&(this.privSubscribers.add({deferral:e,type:n.Dequeue}),this.drain()),e.promise}peek(){this.throwIfDispose();let e=new c.Deferred;return this.privSubscribers&&(this.privSubscribers.add({deferral:e,type:n.Peek}),this.drain()),e.promise}length(){return this.throwIfDispose(),this.privList.length()}isDisposed(){return null==this.privSubscribers}async drainAndDispose(e,r){if(!this.isDisposed()&&!this.privIsDisposing){this.privDisposeReason=r,this.privIsDisposing=!0;let i=this.privSubscribers;if(i){for(;i.length()>0;)i.removeFirst().deferral.resolve(void 0);this.privSubscribers===i&&(this.privSubscribers=i)}for(let e of this.privDetachables)await e.detach();if(this.privPromiseStore.length()>0&&e){let r=[];return this.privPromiseStore.toArray().forEach(e=>{r.push(e)}),Promise.all(r).finally(()=>{this.privSubscribers=null,this.privList.forEach(r=>{e(r)}),this.privList=null}).then()}this.privSubscribers=null,this.privList=null}}async dispose(e){await this.drainAndDispose(null,e)}drain(){if(!this.privIsDrainInProgress&&!this.privIsDisposing){this.privIsDrainInProgress=!0;let e=this.privSubscribers,r=this.privList;if(e&&r){for(;r.length()>0&&e.length()>0&&!this.privIsDisposing;){let i=e.removeFirst();if(i.type===n.Peek)i.deferral.resolve(r.first());else{let e=r.removeFirst();i.deferral.resolve(e)}}this.privSubscribers===e&&(this.privSubscribers=e),this.privList===r&&(this.privList=r)}this.privIsDrainInProgress=!1}}throwIfDispose(){if(this.isDisposed()){if(this.privDisposeReason)throw new s.InvalidOperationError(this.privDisposeReason);throw new s.ObjectDisposedError("Queue")}if(this.privIsDisposing)throw new s.InvalidOperationError("Queue disposing")}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/RawWebsocketMessage.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.RawWebsocketMessage=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/ConnectionMessage.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js");r.RawWebsocketMessage=class{constructor(e,r,i){if(this.privPayload=null,!r)throw new o.ArgumentNullError("payload");if(e===n.MessageType.Binary&&"ArrayBuffer"!==Object.getPrototypeOf(r).constructor.name)throw new o.InvalidOperationError("Payload must be ArrayBuffer");if(e===n.MessageType.Text&&"string"!=typeof r)throw new o.InvalidOperationError("Payload must be a string");this.privMessageType=e,this.privPayload=r,this.privId=i||(0,s.createNoDashGuid)()}get messageType(){return this.privMessageType}get payload(){return this.privPayload}get textContent(){if(this.privMessageType===n.MessageType.Binary)throw new o.InvalidOperationError("Not supported for binary message");return this.privPayload}get binaryContent(){if(this.privMessageType===n.MessageType.Text)throw new o.InvalidOperationError("Not supported for text message");return this.privPayload}get id(){return this.privId}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/RiffPcmEncoder.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RiffPcmEncoder=void 0,r.RiffPcmEncoder=class{constructor(e,r){this.privActualSampleRate=e,this.privDesiredSampleRate=r}encode(e){let r=this.downSampleAudioFrame(e,this.privActualSampleRate,this.privDesiredSampleRate);if(!r)return null;let i=new ArrayBuffer(2*r.length),n=new DataView(i);return this.floatTo16BitPCM(n,0,r),i}setString(e,r,i){for(let n=0;n<i.length;n++)e.setUint8(r+n,i.charCodeAt(n))}floatTo16BitPCM(e,r,i){for(let n=0;n<i.length;n++,r+=2){let o=Math.max(-1,Math.min(1,i[n]));e.setInt16(r,o<0?32768*o:32767*o,!0)}}downSampleAudioFrame(e,r,i){if(!e)return null;if(i===r||i>r)return e;let n=r/i,o=Math.round(e.length/n),s=new Float32Array(o),a=0,c=0;for(;c<o;){let r=Math.round((c+1)*n),i=0,o=0;for(;a<r&&a<e.length;)i+=e[a++],o++;s[c++]=i/o}return s}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Stream.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Stream=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Queue.js");r.Stream=class{constructor(e){this.privIsWriteEnded=!1,this.privIsReadEnded=!1,this.privId=e||(0,o.createNoDashGuid)(),this.privReaderQueue=new s.Queue}get isClosed(){return this.privIsWriteEnded}get isReadEnded(){return this.privIsReadEnded}get id(){return this.privId}close(){this.privIsWriteEnded||(this.writeStreamChunk({buffer:null,isEnd:!0,timeReceived:Date.now()}),this.privIsWriteEnded=!0)}writeStreamChunk(e){if(this.throwIfClosed(),!this.privReaderQueue.isDisposed())try{this.privReaderQueue.enqueue(e)}catch(e){}}read(){if(this.privIsReadEnded)throw new n.InvalidOperationError("Stream read has already finished");return this.privReaderQueue.dequeue().then(async e=>((void 0===e||e.isEnd)&&await this.privReaderQueue.dispose("End of stream reached"),e))}readEnded(){this.privIsReadEnded||(this.privIsReadEnded=!0,this.privReaderQueue=new s.Queue)}throwIfClosed(){if(this.privIsWriteEnded)throw new n.InvalidOperationError("Stream closed")}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/StringUtils.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StringUtils=void 0,r.StringUtils=class{static formatString(e,r){if(!e)return"";if(!r)return e;let i="",n="",o=e=>{i+=e},s=e=>{n+=e},a=o;for(let c=0;c<e.length;c++){let d=e[c],l=c+1<e.length?e[c+1]:"";switch(d){case"{":"{"===l?(a("{"),c++):a=s;break;case"}":"}"===l?(a("}"),c++):(r.hasOwnProperty(n)&&(i+=r[n]),a=o,n="");break;default:a(d)}}return i}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Timeout.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Timeout=void 0;class i{static load(){let e=new Map([[0,()=>{}]]),r=new Map,n=new Worker("data:text/javascript;base64,"+btoa('!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return d}));const r=new Map,o=new Map,i=e=>{const t=r.get(e);if(void 0===t)throw new Error(\'There is no interval scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(t),r.delete(e)},u=e=>{const t=o.get(e);if(void 0===t)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(t),o.delete(e)},f=(e,t)=>{let n,r;if("performance"in self){const o=performance.now();n=o,r=e-Math.max(0,o-t)}else n=Date.now(),r=e;return{expected:n+r,remainingDelay:r}},c=(e,t,n,r)=>{const o="performance"in self?performance.now():Date.now();o>n?postMessage({id:null,method:"call",params:{timerId:t}}):e.set(t,setTimeout(c,n-o,e,t,n))},a=(e,t,n)=>{const{expected:o,remainingDelay:i}=f(e,n);r.set(t,setTimeout(c,i,r,t,o))},d=(e,t,n)=>{const{expected:r,remainingDelay:i}=f(e,n);o.set(t,setTimeout(c,i,o,t,r))}},function(e,t,n){"use strict";n.r(t);var r=n(2);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(3);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(4);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o);var f=n(5);for(var o in f)"default"!==o&&function(e){n.d(t,e,(function(){return f[e]}))}(o);var c=n(6);for(var o in c)"default"!==o&&function(e){n.d(t,e,(function(){return c[e]}))}(o);var a=n(7);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);var d=n(8);for(var o in d)"default"!==o&&function(e){n.d(t,e,(function(){return d[e]}))}(o);var s=n(9);for(var o in s)"default"!==o&&function(e){n.d(t,e,(function(){return s[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(11);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(12);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(13);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var u=n(10);for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);addEventListener("message",({data:e})=>{try{if("clear"===e.method){const{id:t,params:{timerId:n}}=e;Object(r.b)(n),postMessage({error:null,id:t})}else{if("set"!==e.method)throw new Error(\'The given method "\'.concat(e.method,\'" is not supported\'));{const{params:{delay:t,now:n,timerId:o}}=e;Object(r.d)(t,o,n)}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);'));return n.addEventListener("message",({data:n})=>{if(i.isCallNotification(n)){let{params:{timerId:i}}=n,o=e.get(i);if("number"==typeof o){let e=r.get(o);if(void 0===e||e!==i)throw Error("The timer is in an undefined state.")}else if(void 0!==o)o(),e.delete(i);else throw Error("The timer is in an undefined state.")}else if(i.isClearResponse(n)){let{id:i}=n,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");r.delete(i),e.delete(o)}else{let{error:{message:e}}=n;throw Error(e)}}),{clearTimeout:i=>{let o=Math.random();r.set(o,i),e.set(i,o),n.postMessage({id:o,method:"clear",params:{timerId:i}})},setTimeout:(r,i)=>{let o=Math.random();return e.set(o,r),n.postMessage({id:null,method:"set",params:{delay:i,now:performance.now(),timerId:o}}),o}}}static loadWorkerTimers(){return()=>(null!==i.workerTimers||(i.workerTimers=i.load()),i.workerTimers)}static isCallNotification(e){return void 0!==e.method&&"call"===e.method}static isClearResponse(e){return null===e.error&&"number"==typeof e.id}}r.Timeout=i,i.workerTimers=null,i.clearTimeout=e=>i.timers().clearTimeout(e),i.setTimeout=(e,r)=>i.timers().setTimeout(e,r),i.timers=i.loadWorkerTimers()},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ActivityReceivedEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ActivityReceivedEventArgs=void 0,r.ActivityReceivedEventArgs=class{constructor(e,r){this.privActivity=e,this.privAudioStream=r}get activity(){return this.privActivity}get audioStream(){return this.privAudioStream}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AudioOutputConfigImpl=r.AudioConfigImpl=r.AudioConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioFileWriter.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioInputStream.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js");class l{static fromDefaultMicrophoneInput(){let e=new n.PcmRecorder(!0);return new u(new n.MicAudioSource(e))}static fromMicrophoneInput(e){let r=new n.PcmRecorder(!0);return new u(new n.MicAudioSource(r,e))}static fromWavFileInput(e,r="unnamedBuffer.wav"){return new u(new n.FileAudioSource(e,r))}static fromStreamInput(e){if(e instanceof s.PullAudioInputStreamCallback)return new u(new c.PullAudioInputStreamImpl(e));if(e instanceof s.AudioInputStream)return new u(e);if("undefined"!=typeof MediaStream&&e instanceof MediaStream){let r=new n.PcmRecorder(!1);return new u(new n.MicAudioSource(r,null,null,e))}throw Error("Not Supported Type")}static fromDefaultSpeakerOutput(){return new p(new s.SpeakerAudioDestination)}static fromSpeakerOutput(e){if(void 0===e)return l.fromDefaultSpeakerOutput();if(e instanceof s.SpeakerAudioDestination)return new p(e);throw Error("Not Supported Type")}static fromAudioFileOutput(e){return new p(new a.AudioFileWriter(e))}static fromStreamOutput(e){if(e instanceof s.PushAudioOutputStreamCallback)return new p(new d.PushAudioOutputStreamImpl(e));if(e instanceof s.PushAudioOutputStream||e instanceof s.PullAudioOutputStream)return new p(e);throw Error("Not Supported Type")}}r.AudioConfig=l;class u extends l{constructor(e){super(),this.privSource=e}get format(){return this.privSource.format}close(e,r){this.privSource.turnOff().then(()=>{e&&e()},e=>{r&&r(e)})}id(){return this.privSource.id()}turnOn(){return this.privSource.turnOn()}attach(e){return this.privSource.attach(e)}detach(e){return this.privSource.detach(e)}turnOff(){return this.privSource.turnOff()}get events(){return this.privSource.events}setProperty(e,r){if(o.Contracts.throwIfNull(r,"value"),void 0!==this.privSource.setProperty)this.privSource.setProperty(e,r);else throw Error("This AudioConfig instance does not support setting properties.")}getProperty(e,r){if(void 0!==this.privSource.getProperty)return this.privSource.getProperty(e,r);throw Error("This AudioConfig instance does not support getting properties.")}get deviceInfo(){return this.privSource.deviceInfo}}r.AudioConfigImpl=u;class p extends l{constructor(e){super(),this.privDestination=e}set format(e){this.privDestination.format=e}write(e){this.privDestination.write(e)}close(){this.privDestination.close()}id(){return this.privDestination.id()}setProperty(){throw Error("This AudioConfig instance does not support setting properties.")}getProperty(){throw Error("This AudioConfig instance does not support getting properties.")}}r.AudioOutputConfigImpl=p},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioFileWriter.js":function(e,r,i){var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[i]}})}:function(e,r,i,n){void 0===n&&(n=i),e[n]=r[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(r,e,i);return o(r,e),r};Object.defineProperty(r,"__esModule",{value:!0}),r.AudioFileWriter=void 0;let a=s(i("?5898")),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js");r.AudioFileWriter=class{constructor(e){c.Contracts.throwIfNullOrUndefined(a.openSync,"\nFile System access not available, please use Push or PullAudioOutputStream"),this.privFd=a.openSync(e,"w")}set format(e){c.Contracts.throwIfNotUndefined(this.privAudioFormat,"format is already set"),this.privAudioFormat=e;let r=0;this.privAudioFormat.hasHeader&&(r=this.privAudioFormat.header.byteLength),void 0!==this.privFd&&(this.privWriteStream=a.createWriteStream("",{fd:this.privFd,start:r,autoClose:!1}))}write(e){c.Contracts.throwIfNullOrUndefined(this.privAudioFormat,"must set format before writing."),void 0!==this.privWriteStream&&this.privWriteStream.write(new Uint8Array(e.slice(0)))}close(){void 0!==this.privFd&&(this.privWriteStream.on("finish",()=>{this.privAudioFormat.hasHeader&&(this.privAudioFormat.updateHeader(this.privWriteStream.bytesWritten),a.writeSync(this.privFd,new Int8Array(this.privAudioFormat.header),0,this.privAudioFormat.header.byteLength,0)),a.closeSync(this.privFd),this.privFd=void 0}),this.privWriteStream.end())}id(){return this.privId}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioInputStream.js":function(e,r,i){var n=i("../../node_modules/buffer/index.js").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.PullAudioInputStreamImpl=r.PullAudioInputStream=r.PushAudioInputStreamImpl=r.PushAudioInputStream=r.AudioInputStream=void 0;let o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Guid.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js");class l{constructor(){return}static createPushStream(e){return u.create(e)}static createPullStream(e,r){return h.create(e,r)}}r.AudioInputStream=l;class u extends l{static create(e){return new p(e)}}r.PushAudioInputStream=u;class p extends u{constructor(e){super(),void 0===e?this.privFormat=d.AudioStreamFormatImpl.getDefaultInputFormat():this.privFormat=e,this.privEvents=new s.EventSource,this.privId=(0,a.createNoDashGuid)(),this.privStream=new s.ChunkedArrayBufferStream(this.privFormat.avgBytesPerSec/10)}get format(){return Promise.resolve(this.privFormat)}write(e){this.privStream.writeStreamChunk({buffer:e,isEnd:!1,timeReceived:Date.now()})}close(){this.privStream.close()}id(){return this.privId}turnOn(){this.onEvent(new s.AudioSourceInitializingEvent(this.privId)),this.onEvent(new s.AudioSourceReadyEvent(this.privId))}async attach(e){this.onEvent(new s.AudioStreamNodeAttachingEvent(this.privId,e)),await this.turnOn();let r=this.privStream;return this.onEvent(new s.AudioStreamNodeAttachedEvent(this.privId,e)),{detach:async()=>(this.onEvent(new s.AudioStreamNodeDetachedEvent(this.privId,e)),this.turnOff()),id:()=>e,read:()=>r.read()}}detach(e){this.onEvent(new s.AudioStreamNodeDetachedEvent(this.privId,e))}turnOff(){}get events(){return this.privEvents}get deviceInfo(){return Promise.resolve({bitspersample:this.privFormat.bitsPerSample,channelcount:this.privFormat.channels,connectivity:o.connectivity.Unknown,manufacturer:"Speech SDK",model:"PushStream",samplerate:this.privFormat.samplesPerSec,type:o.type.Stream})}onEvent(e){this.privEvents.onEvent(e),s.Events.instance.onEvent(e)}toBuffer(e){let r=n.alloc(e.byteLength),i=new Uint8Array(e);for(let e=0;e<r.length;++e)r[e]=i[e];return r}}r.PushAudioInputStreamImpl=p;class h extends l{constructor(){super()}static create(e,r){return new f(e,r)}}r.PullAudioInputStream=h;class f extends h{constructor(e,r){super(),void 0===r?this.privFormat=c.AudioStreamFormat.getDefaultInputFormat():this.privFormat=r,this.privEvents=new s.EventSource,this.privId=(0,a.createNoDashGuid)(),this.privCallback=e,this.privIsClosed=!1,this.privBufferSize=this.privFormat.avgBytesPerSec/10}get format(){return Promise.resolve(this.privFormat)}close(){this.privIsClosed=!0,this.privCallback.close()}id(){return this.privId}turnOn(){this.onEvent(new s.AudioSourceInitializingEvent(this.privId)),this.onEvent(new s.AudioSourceReadyEvent(this.privId))}async attach(e){return this.onEvent(new s.AudioStreamNodeAttachingEvent(this.privId,e)),await this.turnOn(),this.onEvent(new s.AudioStreamNodeAttachedEvent(this.privId,e)),{detach:()=>(this.privCallback.close(),this.onEvent(new s.AudioStreamNodeDetachedEvent(this.privId,e)),this.turnOff()),id:()=>e,read:()=>{let e,r=0;for(;r<this.privBufferSize;){let i=new ArrayBuffer(this.privBufferSize-r),n=this.privCallback.read(i);if(void 0===e?e=i:new Int8Array(e).set(new Int8Array(i),r),0===n)break;r+=n}return Promise.resolve({buffer:e.slice(0,r),isEnd:this.privIsClosed||0===r,timeReceived:Date.now()})}}}detach(e){this.onEvent(new s.AudioStreamNodeDetachedEvent(this.privId,e))}turnOff(){}get events(){return this.privEvents}get deviceInfo(){return Promise.resolve({bitspersample:this.privFormat.bitsPerSample,channelcount:this.privFormat.channels,connectivity:o.connectivity.Unknown,manufacturer:"Speech SDK",model:"PullStream",samplerate:this.privFormat.samplesPerSec,type:o.type.Stream})}onEvent(e){this.privEvents.onEvent(e),s.Events.instance.onEvent(e)}}r.PullAudioInputStreamImpl=f},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputFormat.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AudioOutputFormatImpl=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisOutputFormat.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js");class s extends o.AudioStreamFormatImpl{constructor(e,r,i,n,o,s,a,c,d){super(i,s,r,e),this.formatTag=e,this.avgBytesPerSec=n,this.blockAlign=o,this.priAudioFormatString=a,this.priRequestAudioFormatString=c,this.priHasHeader=d}static fromSpeechSynthesisOutputFormat(e){return void 0===e?s.getDefaultOutputFormat():s.fromSpeechSynthesisOutputFormatString(s.SpeechSynthesisOutputFormatToString[e])}static fromSpeechSynthesisOutputFormatString(e){switch(e){case"raw-8khz-8bit-mono-mulaw":return new s(o.AudioFormatTag.MuLaw,1,8e3,8e3,1,8,e,e,!1);case"riff-16khz-16kbps-mono-siren":return new s(o.AudioFormatTag.Siren,1,16e3,2e3,40,0,e,"audio-16khz-16kbps-mono-siren",!0);case"audio-16khz-16kbps-mono-siren":return new s(o.AudioFormatTag.Siren,1,16e3,2e3,40,0,e,e,!1);case"audio-16khz-32kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,16e3,4096,2,16,e,e,!1);case"audio-16khz-128kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,16e3,16384,2,16,e,e,!1);case"audio-16khz-64kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,16e3,8192,2,16,e,e,!1);case"audio-24khz-48kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,24e3,6144,2,16,e,e,!1);case"audio-24khz-96kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,24e3,12288,2,16,e,e,!1);case"audio-24khz-160kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,24e3,20480,2,16,e,e,!1);case"raw-16khz-16bit-mono-truesilk":return new s(o.AudioFormatTag.SILKSkype,1,16e3,32e3,2,16,e,e,!1);case"riff-8khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,8e3,16e3,2,16,e,"raw-8khz-16bit-mono-pcm",!0);case"riff-24khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,24e3,48e3,2,16,e,"raw-24khz-16bit-mono-pcm",!0);case"riff-8khz-8bit-mono-mulaw":return new s(o.AudioFormatTag.MuLaw,1,8e3,8e3,1,8,e,"raw-8khz-8bit-mono-mulaw",!0);case"raw-16khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,16e3,32e3,2,16,e,"raw-16khz-16bit-mono-pcm",!1);case"raw-24khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,24e3,48e3,2,16,e,"raw-24khz-16bit-mono-pcm",!1);case"raw-8khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,8e3,16e3,2,16,e,"raw-8khz-16bit-mono-pcm",!1);case"ogg-16khz-16bit-mono-opus":return new s(o.AudioFormatTag.OGG_OPUS,1,16e3,8192,2,16,e,e,!1);case"ogg-24khz-16bit-mono-opus":return new s(o.AudioFormatTag.OGG_OPUS,1,24e3,8192,2,16,e,e,!1);case"raw-48khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,48e3,96e3,2,16,e,"raw-48khz-16bit-mono-pcm",!1);case"riff-48khz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,48e3,96e3,2,16,e,"raw-48khz-16bit-mono-pcm",!0);case"audio-48khz-96kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,48e3,12288,2,16,e,e,!1);case"audio-48khz-192kbitrate-mono-mp3":return new s(o.AudioFormatTag.MP3,1,48e3,24576,2,16,e,e,!1);case"ogg-48khz-16bit-mono-opus":return new s(o.AudioFormatTag.OGG_OPUS,1,48e3,12e3,2,16,e,e,!1);case"webm-16khz-16bit-mono-opus":return new s(o.AudioFormatTag.WEBM_OPUS,1,16e3,4e3,2,16,e,e,!1);case"webm-24khz-16bit-mono-opus":return new s(o.AudioFormatTag.WEBM_OPUS,1,24e3,6e3,2,16,e,e,!1);case"webm-24khz-16bit-24kbps-mono-opus":return new s(o.AudioFormatTag.WEBM_OPUS,1,24e3,3e3,2,16,e,e,!1);case"audio-16khz-16bit-32kbps-mono-opus":return new s(o.AudioFormatTag.OPUS,1,16e3,4e3,2,16,e,e,!1);case"audio-24khz-16bit-48kbps-mono-opus":return new s(o.AudioFormatTag.OPUS,1,24e3,6e3,2,16,e,e,!1);case"audio-24khz-16bit-24kbps-mono-opus":return new s(o.AudioFormatTag.OPUS,1,24e3,3e3,2,16,e,e,!1);case"audio-24khz-16bit-mono-flac":return new s(o.AudioFormatTag.FLAC,1,24e3,24e3,2,16,e,e,!1);case"audio-48khz-16bit-mono-flac":return new s(o.AudioFormatTag.FLAC,1,48e3,3e4,2,16,e,e,!1);case"raw-24khz-16bit-mono-truesilk":return new s(o.AudioFormatTag.SILKSkype,1,24e3,48e3,2,16,e,e,!1);case"raw-8khz-8bit-mono-alaw":return new s(o.AudioFormatTag.ALaw,1,8e3,8e3,1,8,e,e,!1);case"riff-8khz-8bit-mono-alaw":return new s(o.AudioFormatTag.ALaw,1,8e3,8e3,1,8,e,"raw-8khz-8bit-mono-alaw",!0);case"raw-22050hz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,22050,44100,2,16,e,e,!1);case"riff-22050hz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,22050,44100,2,16,e,"raw-22050hz-16bit-mono-pcm",!0);case"raw-44100hz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,44100,88200,2,16,e,e,!1);case"riff-44100hz-16bit-mono-pcm":return new s(o.AudioFormatTag.PCM,1,44100,88200,2,16,e,"raw-44100hz-16bit-mono-pcm",!0);case"amr-wb-16000h":return new s(o.AudioFormatTag.AMR_WB,1,16e3,3052,2,16,e,e,!1);case"g722-16khz-64kbps":return new s(o.AudioFormatTag.G722,1,16e3,8e3,2,16,e,e,!1);default:return new s(o.AudioFormatTag.PCM,1,16e3,32e3,2,16,"riff-16khz-16bit-mono-pcm","raw-16khz-16bit-mono-pcm",!0)}}static getDefaultOutputFormat(){return s.fromSpeechSynthesisOutputFormatString("undefined"!=typeof window?"audio-24khz-48kbitrate-mono-mp3":"riff-16khz-16bit-mono-pcm")}get hasHeader(){return this.priHasHeader}get header(){if(this.hasHeader)return this.privHeader}updateHeader(e){if(this.priHasHeader){let r=new DataView(this.privHeader);r.setUint32(4,e+this.privHeader.byteLength-8,!0),r.setUint32(40,e,!0)}}get requestAudioFormatString(){return this.priRequestAudioFormatString}addHeader(e){if(!this.hasHeader)return e;this.updateHeader(e.byteLength);let r=new Uint8Array(e.byteLength+this.header.byteLength);return r.set(new Uint8Array(this.header),0),r.set(new Uint8Array(e),this.header.byteLength),r.buffer}}r.AudioOutputFormatImpl=s,s.SpeechSynthesisOutputFormatToString={[n.SpeechSynthesisOutputFormat.Raw8Khz8BitMonoMULaw]:"raw-8khz-8bit-mono-mulaw",[n.SpeechSynthesisOutputFormat.Riff16Khz16KbpsMonoSiren]:"riff-16khz-16kbps-mono-siren",[n.SpeechSynthesisOutputFormat.Audio16Khz16KbpsMonoSiren]:"audio-16khz-16kbps-mono-siren",[n.SpeechSynthesisOutputFormat.Audio16Khz32KBitRateMonoMp3]:"audio-16khz-32kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio16Khz128KBitRateMonoMp3]:"audio-16khz-128kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio16Khz64KBitRateMonoMp3]:"audio-16khz-64kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio24Khz48KBitRateMonoMp3]:"audio-24khz-48kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio24Khz96KBitRateMonoMp3]:"audio-24khz-96kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio24Khz160KBitRateMonoMp3]:"audio-24khz-160kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Raw16Khz16BitMonoTrueSilk]:"raw-16khz-16bit-mono-truesilk",[n.SpeechSynthesisOutputFormat.Riff16Khz16BitMonoPcm]:"riff-16khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff8Khz16BitMonoPcm]:"riff-8khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm]:"riff-24khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff8Khz8BitMonoMULaw]:"riff-8khz-8bit-mono-mulaw",[n.SpeechSynthesisOutputFormat.Raw16Khz16BitMonoPcm]:"raw-16khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Raw24Khz16BitMonoPcm]:"raw-24khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Raw8Khz16BitMonoPcm]:"raw-8khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Ogg16Khz16BitMonoOpus]:"ogg-16khz-16bit-mono-opus",[n.SpeechSynthesisOutputFormat.Ogg24Khz16BitMonoOpus]:"ogg-24khz-16bit-mono-opus",[n.SpeechSynthesisOutputFormat.Raw48Khz16BitMonoPcm]:"raw-48khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff48Khz16BitMonoPcm]:"riff-48khz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Audio48Khz96KBitRateMonoMp3]:"audio-48khz-96kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Audio48Khz192KBitRateMonoMp3]:"audio-48khz-192kbitrate-mono-mp3",[n.SpeechSynthesisOutputFormat.Ogg48Khz16BitMonoOpus]:"ogg-48khz-16bit-mono-opus",[n.SpeechSynthesisOutputFormat.Webm16Khz16BitMonoOpus]:"webm-16khz-16bit-mono-opus",[n.SpeechSynthesisOutputFormat.Webm24Khz16BitMonoOpus]:"webm-24khz-16bit-mono-opus",[n.SpeechSynthesisOutputFormat.Webm24Khz16Bit24KbpsMonoOpus]:"webm-24khz-16bit-24kbps-mono-opus",[n.SpeechSynthesisOutputFormat.Raw24Khz16BitMonoTrueSilk]:"raw-24khz-16bit-mono-truesilk",[n.SpeechSynthesisOutputFormat.Raw8Khz8BitMonoALaw]:"raw-8khz-8bit-mono-alaw",[n.SpeechSynthesisOutputFormat.Riff8Khz8BitMonoALaw]:"riff-8khz-8bit-mono-alaw",[n.SpeechSynthesisOutputFormat.Audio16Khz16Bit32KbpsMonoOpus]:"audio-16khz-16bit-32kbps-mono-opus",[n.SpeechSynthesisOutputFormat.Audio24Khz16Bit48KbpsMonoOpus]:"audio-24khz-16bit-48kbps-mono-opus",[n.SpeechSynthesisOutputFormat.Audio24Khz16Bit24KbpsMonoOpus]:"audio-24khz-16bit-24kbps-mono-opus",[n.SpeechSynthesisOutputFormat.Raw22050Hz16BitMonoPcm]:"raw-22050hz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff22050Hz16BitMonoPcm]:"riff-22050hz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Raw44100Hz16BitMonoPcm]:"raw-44100hz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.Riff44100Hz16BitMonoPcm]:"riff-44100hz-16bit-mono-pcm",[n.SpeechSynthesisOutputFormat.AmrWb16000Hz]:"amr-wb-16000hz",[n.SpeechSynthesisOutputFormat.G72216Khz64Kbps]:"g722-16khz-64kbps"}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.PushAudioOutputStreamImpl=r.PushAudioOutputStream=r.PullAudioOutputStreamImpl=r.PullAudioOutputStream=r.AudioOutputStream=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputFormat.js");class a{constructor(){return}static createPullStream(){return c.create()}}r.AudioOutputStream=a;class c extends a{static create(){return new d}}r.PullAudioOutputStream=c;class d extends c{constructor(){super(),this.privId=(0,n.createNoDashGuid)(),this.privStream=new n.Stream}set format(e){null==e&&(this.privFormat=s.AudioOutputFormatImpl.getDefaultOutputFormat()),this.privFormat=e}get format(){return this.privFormat}get isClosed(){return this.privStream.isClosed}id(){return this.privId}async read(e){let r=new Int8Array(e),i=0;if(void 0!==this.privLastChunkView){if(this.privLastChunkView.length>e.byteLength)return r.set(this.privLastChunkView.slice(0,e.byteLength)),this.privLastChunkView=this.privLastChunkView.slice(e.byteLength),Promise.resolve(e.byteLength);r.set(this.privLastChunkView),i=this.privLastChunkView.length,this.privLastChunkView=void 0}for(;i<e.byteLength&&!this.privStream.isReadEnded;){let n=await this.privStream.read();if(void 0===n||n.isEnd)this.privStream.readEnded();else{let o;n.buffer.byteLength>e.byteLength-i?(o=n.buffer.slice(0,e.byteLength-i),this.privLastChunkView=new Int8Array(n.buffer.slice(e.byteLength-i))):o=n.buffer,r.set(new Int8Array(o),i),i+=o.byteLength}}return i}write(e){o.Contracts.throwIfNullOrUndefined(this.privStream,"must set format before writing"),this.privStream.writeStreamChunk({buffer:e,isEnd:!1,timeReceived:Date.now()})}close(){this.privStream.close()}}r.PullAudioOutputStreamImpl=d;class l extends a{constructor(){super()}static create(e){return new u(e)}}r.PushAudioOutputStream=l;class u extends l{constructor(e){super(),this.privId=(0,n.createNoDashGuid)(),this.privCallback=e}set format(e){}write(e){this.privCallback.write&&this.privCallback.write(e)}close(){this.privCallback.close&&this.privCallback.close()}id(){return this.privId}}r.PushAudioOutputStreamImpl=u},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js":function(e,r){var i,n;Object.defineProperty(r,"__esModule",{value:!0}),r.AudioStreamFormatImpl=r.AudioStreamFormat=r.AudioFormatTag=void 0,(n=i=r.AudioFormatTag||(r.AudioFormatTag={}))[n.PCM=1]="PCM",n[n.MuLaw=2]="MuLaw",n[n.Siren=3]="Siren",n[n.MP3=4]="MP3",n[n.SILKSkype=5]="SILKSkype",n[n.OGG_OPUS=6]="OGG_OPUS",n[n.WEBM_OPUS=7]="WEBM_OPUS",n[n.ALaw=8]="ALaw",n[n.FLAC=9]="FLAC",n[n.OPUS=10]="OPUS",n[n.AMR_WB=11]="AMR_WB",n[n.G722=12]="G722";class o{static getDefaultInputFormat(){return s.getDefaultInputFormat()}static getWaveFormat(e,r,i,n){return new s(e,r,i,n)}static getWaveFormatPCM(e,r,i){return new s(e,r,i)}}r.AudioStreamFormat=o;class s extends o{constructor(e=16e3,r=16,n=1,o=i.PCM){super();let s=!0;switch(o){case i.PCM:this.formatTag=1;break;case i.ALaw:this.formatTag=6;break;case i.MuLaw:this.formatTag=7;break;default:s=!1}if(this.bitsPerSample=r,this.samplesPerSec=e,this.channels=n,this.avgBytesPerSec=this.samplesPerSec*this.channels*(this.bitsPerSample/8),this.blockAlign=this.channels*Math.max(this.bitsPerSample,8),s){this.privHeader=new ArrayBuffer(44);let e=new DataView(this.privHeader);this.setString(e,0,"RIFF"),e.setUint32(4,0,!0),this.setString(e,8,"WAVEfmt "),e.setUint32(16,16,!0),e.setUint16(20,this.formatTag,!0),e.setUint16(22,this.channels,!0),e.setUint32(24,this.samplesPerSec,!0),e.setUint32(28,this.avgBytesPerSec,!0),e.setUint16(32,this.channels*(this.bitsPerSample/8),!0),e.setUint16(34,this.bitsPerSample,!0),this.setString(e,36,"data"),e.setUint32(40,0,!0)}}static getDefaultInputFormat(){return new s}static getAudioContext(e){let r=window.AudioContext||window.webkitAudioContext||!1;if(r)if(void 0!==e&&navigator.mediaDevices.getSupportedConstraints().sampleRate)return new r({sampleRate:e});else return new r;throw Error("Browser does not support Web Audio API (AudioContext is not available).")}close(){}get header(){return this.privHeader}setString(e,r,i){for(let n=0;n<i.length;n++)e.setUint8(r+n,i.charCodeAt(n))}}r.AudioStreamFormatImpl=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/BaseAudioPlayer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BaseAudioPlayer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js");r.BaseAudioPlayer=class{constructor(e){this.audioContext=null,this.gainNode=null,this.autoUpdateBufferTimer=0,void 0===e&&(e=o.AudioStreamFormat.getDefaultInputFormat()),this.init(e)}playAudioSample(e,r,i){try{this.ensureInitializedContext();let i=this.formatAudioData(e),n=new Float32Array(this.samples.length+i.length);n.set(this.samples,0),n.set(i,this.samples.length),this.samples=n,r&&r()}catch(e){i&&i(e)}}stopAudio(e,r){null!==this.audioContext&&(this.samples=new Float32Array,clearInterval(this.autoUpdateBufferTimer),this.audioContext.close().then(()=>{e&&e()},e=>{r&&r(e)}),this.audioContext=null)}init(e){this.audioFormat=e,this.samples=new Float32Array}ensureInitializedContext(){null===this.audioContext&&(this.createAudioContext(),this.autoUpdateBufferTimer=setInterval(()=>{this.updateAudioBuffer()},200))}createAudioContext(){this.audioContext=s.AudioStreamFormatImpl.getAudioContext(),this.gainNode=this.audioContext.createGain(),this.gainNode.gain.value=1,this.gainNode.connect(this.audioContext.destination),this.startTime=this.audioContext.currentTime}formatAudioData(e){switch(this.audioFormat.bitsPerSample){case 8:return this.formatArrayBuffer(new Int8Array(e),128);case 16:return this.formatArrayBuffer(new Int16Array(e),32768);case 32:return this.formatArrayBuffer(new Int32Array(e),0x80000000);default:throw new n.InvalidOperationError("Only WAVE_FORMAT_PCM (8/16/32 bps) format supported at this time")}}formatArrayBuffer(e,r){let i=new Float32Array(e.length);for(let n=0;n<e.length;n++)i[n]=e[n]/r;return i}updateAudioBuffer(){if(0===this.samples.length)return;let e=this.audioFormat.channels,r=this.audioContext.createBufferSource(),i=this.samples.length/e,n=this.audioContext.createBuffer(e,i,this.audioFormat.samplesPerSec);for(let r=0;r<e;r++){let i=r,o=n.getChannelData(r);for(let r=0;r<this.samples.length;r++,i+=e)o[r]=this.samples[i]}this.startTime<this.audioContext.currentTime&&(this.startTime=this.audioContext.currentTime),r.buffer=n,r.connect(this.gainNode),r.start(this.startTime),this.startTime+=n.duration,this.samples=new Float32Array}async playAudio(e){null===this.audioContext&&this.createAudioContext();let r=this.audioContext.createBufferSource(),i=this.audioContext.destination;await this.audioContext.decodeAudioData(e,e=>{r.buffer=e,r.connect(i),r.start(0)})}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/PullAudioInputStreamCallback.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PullAudioInputStreamCallback=void 0,r.PullAudioInputStreamCallback=class{}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/PushAudioOutputStreamCallback.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PushAudioOutputStreamCallback=void 0,r.PushAudioOutputStreamCallback=class{}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/SpeakerAudioDestination.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeakerAudioDestination=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js"),a={[s.AudioFormatTag.PCM]:"audio/wav",[s.AudioFormatTag.MuLaw]:"audio/x-wav",[s.AudioFormatTag.MP3]:"audio/mpeg",[s.AudioFormatTag.OGG_OPUS]:"audio/ogg",[s.AudioFormatTag.WEBM_OPUS]:"audio/webm; codecs=opus",[s.AudioFormatTag.ALaw]:"audio/x-wav",[s.AudioFormatTag.FLAC]:"audio/flac",[s.AudioFormatTag.AMR_WB]:"audio/amr-wb",[s.AudioFormatTag.G722]:"audio/G722"};r.SpeakerAudioDestination=class{constructor(e){this.privPlaybackStarted=!1,this.privAppendingToBuffer=!1,this.privMediaSourceOpened=!1,this.privBytesReceived=0,this.privId=e||(0,n.createNoDashGuid)(),this.privIsPaused=!1,this.privIsClosed=!1}id(){return this.privId}write(e,r,i){void 0!==this.privAudioBuffer?(this.privAudioBuffer.push(e),this.updateSourceBuffer().then(()=>{r&&r()},e=>{i&&i(e)})):void 0!==this.privAudioOutputStream&&(this.privAudioOutputStream.write(e),this.privBytesReceived+=e.byteLength)}close(e,r){if(this.privIsClosed=!0,void 0!==this.privSourceBuffer)this.handleSourceBufferUpdateEnd().then(()=>{e&&e()},e=>{r&&r(e)});else if(void 0!==this.privAudioOutputStream&&"undefined"!=typeof window)if((this.privFormat.formatTag===s.AudioFormatTag.PCM||this.privFormat.formatTag===s.AudioFormatTag.MuLaw||this.privFormat.formatTag===s.AudioFormatTag.ALaw)&&!1===this.privFormat.hasHeader)console.warn("Play back is not supported for raw PCM, mulaw or alaw format without header."),this.onAudioEnd&&this.onAudioEnd(this);else{let i=new ArrayBuffer(this.privBytesReceived);this.privAudioOutputStream.read(i).then(()=>{let n=new Blob([i=this.privFormat.addHeader(i)],{type:a[this.privFormat.formatTag]});this.privAudio.src=window.URL.createObjectURL(n),this.notifyPlayback().then(()=>{e&&e()},e=>{r&&r(e)})},e=>{r&&r(e)})}else this.onAudioEnd&&this.onAudioEnd(this)}set format(e){if("undefined"!=typeof AudioContext||"undefined"!=typeof window&&void 0!==window.webkitAudioContext){this.privFormat=e;let r=a[this.privFormat.formatTag];void 0===r?console.warn(`Unknown mimeType for format ${s.AudioFormatTag[this.privFormat.formatTag]}; playback is not supported.`):"undefined"!=typeof MediaSource&&MediaSource.isTypeSupported(r)?(this.privAudio=new Audio,this.privAudioBuffer=[],this.privMediaSource=new MediaSource,this.privAudio.src=URL.createObjectURL(this.privMediaSource),this.privAudio.load(),this.privMediaSource.onsourceopen=()=>{this.privMediaSourceOpened=!0,this.privMediaSource.duration=1800,this.privSourceBuffer=this.privMediaSource.addSourceBuffer(r),this.privSourceBuffer.onupdate=()=>{this.updateSourceBuffer().catch(e=>{n.Events.instance.onEvent(new n.BackgroundEvent(e))})},this.privSourceBuffer.onupdateend=()=>{this.handleSourceBufferUpdateEnd().catch(e=>{n.Events.instance.onEvent(new n.BackgroundEvent(e))})},this.privSourceBuffer.onupdatestart=()=>{this.privAppendingToBuffer=!1}},this.updateSourceBuffer().catch(e=>{n.Events.instance.onEvent(new n.BackgroundEvent(e))})):(console.warn(`Format ${s.AudioFormatTag[this.privFormat.formatTag]} could not be played by MSE, streaming playback is not enabled.`),this.privAudioOutputStream=new o.PullAudioOutputStreamImpl,this.privAudioOutputStream.format=this.privFormat,this.privAudio=new Audio)}}get volume(){return this.privAudio?.volume??-1}set volume(e){this.privAudio&&(this.privAudio.volume=e)}mute(){this.privAudio&&(this.privAudio.muted=!0)}unmute(){this.privAudio&&(this.privAudio.muted=!1)}get isClosed(){return this.privIsClosed}get currentTime(){return void 0!==this.privAudio?this.privAudio.currentTime:-1}pause(){this.privIsPaused||void 0===this.privAudio||(this.privAudio.pause(),this.privIsPaused=!0)}resume(e,r){this.privIsPaused&&void 0!==this.privAudio&&(this.privAudio.play().then(()=>{e&&e()},e=>{r&&r(e)}),this.privIsPaused=!1)}get internalAudio(){return this.privAudio}async updateSourceBuffer(){if(void 0!==this.privAudioBuffer&&this.privAudioBuffer.length>0&&this.sourceBufferAvailable()){this.privAppendingToBuffer=!0;let e=this.privAudioBuffer.shift();try{this.privSourceBuffer.appendBuffer(e)}catch(r){this.privAudioBuffer.unshift(e),console.log("buffer filled, pausing addition of binaries until space is made");return}await this.notifyPlayback()}else this.canEndStream()&&await this.handleSourceBufferUpdateEnd()}async handleSourceBufferUpdateEnd(){this.canEndStream()&&this.sourceBufferAvailable()&&(this.privMediaSource.endOfStream(),await this.notifyPlayback())}async notifyPlayback(){!this.privPlaybackStarted&&void 0!==this.privAudio&&(this.privPlaybackStarted=!0,this.onAudioStart&&this.onAudioStart(this),this.privAudio.onended=()=>{this.onAudioEnd&&this.onAudioEnd(this)},this.privIsPaused||await this.privAudio.play())}canEndStream(){return this.isClosed&&void 0!==this.privSourceBuffer&&0===this.privAudioBuffer.length&&this.privMediaSourceOpened&&!this.privAppendingToBuffer&&"open"===this.privMediaSource.readyState}sourceBufferAvailable(){return void 0!==this.privSourceBuffer&&!this.privSourceBuffer.updating}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AutoDetectSourceLanguageConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AutoDetectSourceLanguageConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/LanguageIdMode.js");class c{constructor(){this.privProperties=new s.PropertyCollection,this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_LanguageIdMode,"AtStart"),this.privLanguageIdMode=a.LanguageIdMode.AtStart}static fromOpenRange(){let e=new c;return e.properties.setProperty(s.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,n.AutoDetectSourceLanguagesOpenRangeOptionName),e.properties.setProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage,"en-US"),e}static fromLanguages(e){o.Contracts.throwIfArrayEmptyOrWhitespace(e,"languages");let r=new c;return r.properties.setProperty(s.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,e.join()),r}static fromSourceLanguageConfigs(e){if(e.length<1)throw Error("Expected non-empty SourceLanguageConfig array.");let r=new c,i=[];return e.forEach(e=>{if(i.push(e.language),void 0!==e.endpointId&&""!==e.endpointId){let i=e.language+s.PropertyId.SpeechServiceConnection_EndpointId.toString();r.properties.setProperty(i,e.endpointId)}}),r.properties.setProperty(s.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,i.join()),r}get properties(){return this.privProperties}set mode(e){e===a.LanguageIdMode.Continuous?(this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"2"),this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_LanguageIdMode,"Continuous")):(this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"1"),this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_LanguageIdMode,"AtStart")),this.privLanguageIdMode=e}}r.AutoDetectSourceLanguageConfig=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AutoDetectSourceLanguageResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AutoDetectSourceLanguageResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js");class o{constructor(e,r){n.Contracts.throwIfNullOrUndefined(e,"language"),n.Contracts.throwIfNullOrUndefined(r,"languageDetectionConfidence"),this.privLanguage=e,this.privLanguageDetectionConfidence=r}static fromResult(e){return new o(e.language,e.languageDetectionConfidence)}static fromConversationTranscriptionResult(e){return new o(e.language,e.languageDetectionConfidence)}get language(){return this.privLanguage}get languageDetectionConfidence(){return this.privLanguageDetectionConfidence}}r.AutoDetectSourceLanguageResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AvatarConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");r.AvatarConfig=class{constructor(e,r,i){this.privCustomized=!1,this.privUseBuiltInVoice=!1,n.Contracts.throwIfNullOrWhitespace(e,"character"),this.character=e,this.style=r,void 0===i&&(i=new o.AvatarVideoFormat),this.videoFormat=i}get customized(){return this.privCustomized}set customized(e){this.privCustomized=e}get useBuiltInVoice(){return this.privUseBuiltInVoice}set useBuiltInVoice(e){this.privUseBuiltInVoice=e}get photoAvatarBaseModel(){return this.privPhotoAvatarBaseModel}set photoAvatarBaseModel(e){this.privPhotoAvatarBaseModel=e}get backgroundColor(){return this.privBackgroundColor}set backgroundColor(e){this.privBackgroundColor=e}get backgroundImage(){return this.privBackgroundImage}set backgroundImage(e){this.privBackgroundImage=e}get remoteIceServers(){return this.privRemoteIceServers}set remoteIceServers(e){this.privRemoteIceServers=e}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarEventArgs.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.AvatarEventArgs=r.AvatarEventTypes=void 0,(i=r.AvatarEventTypes||(r.AvatarEventTypes={})).SwitchedToSpeaking="SwitchedToSpeaking",i.SwitchedToIdle="SwitchedToIdle",i.SessionClosed="SessionClosed",r.AvatarEventArgs=class{constructor(e,r){this.privOffset=e,this.privDescription=r}get type(){return this.privType}get offset(){return this.privOffset}get description(){return this.privDescription}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarSynthesizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AvatarSynthesizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechSynthesisConnectionFactory.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputFormat.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Synthesizer.js");class u extends c.Synthesizer{constructor(e,r){super(e),d.Contracts.throwIfNullOrUndefined(r,"avatarConfig"),this.privConnectionFactory=new n.SpeechSynthesisConnectionFactory,this.privAvatarConfig=r,this.implCommonSynthesizeSetup()}implCommonSynthesizeSetup(){super.implCommonSynthesizeSetup(),this.privAdapter.audioOutputFormat=a.AudioOutputFormatImpl.fromSpeechSynthesisOutputFormat(c.SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm)}async startAvatarAsync(e){d.Contracts.throwIfNullOrUndefined(e,"peerConnection"),this.privIceServers=e.getConfiguration().iceServers,d.Contracts.throwIfNullOrUndefined(this.privIceServers,"Ice servers must be set.");let r=new s.Deferred;e.onicegatheringstatechange=()=>{s.Events.instance.onEvent(new s.PlatformEvent("peer connection: ice gathering state: "+e.iceGatheringState,s.EventType.Debug)),"complete"===e.iceGatheringState&&(s.Events.instance.onEvent(new s.PlatformEvent("peer connection: ice gathering complete.",s.EventType.Info)),r.resolve())},e.onicecandidate=e=>{e.candidate?s.Events.instance.onEvent(new s.PlatformEvent("peer connection: ice candidate: "+e.candidate.candidate,s.EventType.Debug)):(s.Events.instance.onEvent(new s.PlatformEvent("peer connection: ice candidate: complete",s.EventType.Debug)),r.resolve())},setTimeout(()=>{"complete"!==e.iceGatheringState&&(s.Events.instance.onEvent(new s.PlatformEvent("peer connection: ice gathering timeout.",s.EventType.Warning)),r.resolve())},2e3);let i=await e.createOffer();await e.setLocalDescription(i),await r.promise,s.Events.instance.onEvent(new s.PlatformEvent("peer connection: got local SDP.",s.EventType.Info)),this.privProperties.setProperty(c.PropertyId.TalkingAvatarService_WebRTC_SDP,JSON.stringify(e.localDescription));let n=await this.speak("",!1);if(n.reason!==c.ResultReason.SynthesizingAudioCompleted)return new c.SynthesisResult(n.resultId,n.reason,n.errorDetails,n.properties);let o=new RTCSessionDescription(JSON.parse(atob(n.properties.getProperty(c.PropertyId.TalkingAvatarService_WebRTC_SDP))));return await e.setRemoteDescription(o),new c.SynthesisResult(n.resultId,n.reason,void 0,n.properties)}async speakTextAsync(e){let r=await this.speak(e,!1);return new c.SynthesisResult(r.resultId,r.reason,r.errorDetails,r.properties)}async speakSsmlAsync(e){let r=await this.speak(e,!0);return new c.SynthesisResult(r.resultId,r.reason,r.errorDetails,r.properties)}async stopSpeakingAsync(){for(;this.synthesisRequestQueue.length()>0;)(await this.synthesisRequestQueue.dequeue()).err("Synthesis is canceled by user.");return this.privAdapter.stopSpeaking()}async stopAvatarAsync(){return d.Contracts.throwIfDisposed(this.privDisposed),this.dispose(!0)}async close(){if(!this.privDisposed)return this.dispose(!0)}get iceServers(){return this.privIceServers}createSynthesisAdapter(e,r,i){return new o.AvatarSynthesisAdapter(e,r,i,this,this.privAvatarConfig)}createRestSynthesisAdapter(e,r){}createSynthesizerConfig(e){let r=super.createSynthesizerConfig(e);return r.avatarEnabled=!0,r}async speak(e,r){let i=(0,s.createNoDashGuid)(),n=new s.Deferred;return this.synthesisRequestQueue.enqueue(new l.SynthesisRequest(i,e,r,e=>{n.resolve(e),this.privSynthesizing=!1,this.adapterSpeak()},e=>{n.reject(e),this.privSynthesizing=!1})),this.adapterSpeak(),n.promise}}r.AvatarSynthesizer=u},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarVideoFormat.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AvatarVideoFormat=r.Coordinate=void 0,r.Coordinate=class{constructor(e,r){this.x=e,this.y=r}},r.AvatarVideoFormat=class{constructor(e="H264",r=2e6,i=1920,n=1080){this.codec=e,this.bitrate=r,this.width=i,this.height=n}setCropRange(e,r){this.cropRange={bottomRight:r,topLeft:e}}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarWebRTCConnectionResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AvatarWebRTCConnectionResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SynthesisResult{constructor(e,r,i,n,o){super(r,i,n,o),this.privSDPAnswer=e}get SDPAnswer(){return this.privSDPAnswer}}r.AvatarWebRTCConnectionResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/BotFrameworkConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BotFrameworkConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConfig.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class a extends o.DialogServiceConfigImpl{constructor(){super()}static fromSubscription(e,r,i){n.Contracts.throwIfNullOrWhitespace(e,"subscription"),n.Contracts.throwIfNullOrWhitespace(r,"region");let a=new o.DialogServiceConfigImpl;return a.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.BotFramework),a.setProperty(s.PropertyId.SpeechServiceConnection_Key,e),a.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i&&a.setProperty(s.PropertyId.Conversation_ApplicationId,i),a}static fromAuthorizationToken(e,r,i){n.Contracts.throwIfNullOrWhitespace(e,"authorizationToken"),n.Contracts.throwIfNullOrWhitespace(r,"region");let a=new o.DialogServiceConfigImpl;return a.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.BotFramework),a.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,e),a.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i&&a.setProperty(s.PropertyId.Conversation_ApplicationId,i),a}static fromHost(e,r,i){n.Contracts.throwIfNullOrUndefined(e,"host");let a=e instanceof URL?e:new URL(`wss://${e}.convai.speech.azure.us`);n.Contracts.throwIfNullOrUndefined(a,"resolvedHost");let c=new o.DialogServiceConfigImpl;return c.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.BotFramework),c.setProperty(s.PropertyId.SpeechServiceConnection_Host,a.toString()),void 0!==r&&c.setProperty(s.PropertyId.SpeechServiceConnection_Key,r),c}static fromEndpoint(e,r){n.Contracts.throwIfNull(e,"endpoint");let i=new o.DialogServiceConfigImpl;return i.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.BotFramework),i.setProperty(s.PropertyId.SpeechServiceConnection_Endpoint,e.toString()),void 0!==r&&i.setProperty(s.PropertyId.SpeechServiceConnection_Key,r),i}}r.BotFrameworkConfig=a},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationDetails.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationDetails=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationDetailsBase.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class a extends o.CancellationDetailsBase{constructor(e,r,i){super(e,r,i)}static fromResult(e){let r=s.CancellationReason.Error,i=s.CancellationErrorCode.NoError;if(e instanceof s.RecognitionResult&&e.json){let i=n.SimpleSpeechPhrase.fromJSON(e.json,0);r=n.EnumTranslation.implTranslateCancelResult(i.RecognitionStatus)}return e.properties&&(i=s.CancellationErrorCode[e.properties.getProperty(n.CancellationErrorCodePropertyName,s.CancellationErrorCode[s.CancellationErrorCode.NoError])]),new a(r,e.errorDetails||n.EnumTranslation.implTranslateErrorDetails(i),i)}}r.CancellationDetails=a},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationDetailsBase.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationDetailsBase=void 0,r.CancellationDetailsBase=class{constructor(e,r,i){this.privReason=e,this.privErrorDetails=r,this.privErrorCode=i}get reason(){return this.privReason}get errorDetails(){return this.privErrorDetails}get ErrorCode(){return this.privErrorCode}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationErrorCodes.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationErrorCode=void 0,(i=r.CancellationErrorCode||(r.CancellationErrorCode={}))[i.NoError=0]="NoError",i[i.AuthenticationFailure=1]="AuthenticationFailure",i[i.BadRequestParameters=2]="BadRequestParameters",i[i.TooManyRequests=3]="TooManyRequests",i[i.ConnectionFailure=4]="ConnectionFailure",i[i.ServiceTimeout=5]="ServiceTimeout",i[i.ServiceError=6]="ServiceError",i[i.RuntimeError=7]="RuntimeError",i[i.Forbidden=8]="Forbidden"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationEventArgsBase=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionEventArgs{constructor(e,r,i,n,o){super(n,o),this.privReason=e,this.privErrorDetails=r,this.privErrorCode=i}get reason(){return this.privReason}get errorCode(){return this.privErrorCode}get errorDetails(){return this.privErrorDetails}}r.CancellationEventArgsBase=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationReason.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationReason=void 0,(i=r.CancellationReason||(r.CancellationReason={}))[i.Error=0]="Error",i[i.EndOfStream=1]="EndOfStream"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Connection.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Connection=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionMessage.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class d{static fromRecognizer(e){let r=e.internalData,i=new d;return i.privInternalData=r,i.setupEvents(),i}static fromSynthesizer(e){let r=e.internalData,i=new d;return i.privInternalData=r,i.setupEvents(),i}openConnection(e,r){(0,o.marshalPromiseToCallbacks)(this.privInternalData.connect(),e,r)}closeConnection(e,r){if(this.privInternalData instanceof n.SynthesisAdapterBase)throw Error("Disconnecting a synthesizer's connection is currently not supported");(0,o.marshalPromiseToCallbacks)(this.privInternalData.disconnect(),e,r)}setMessageProperty(e,r,i){if(a.Contracts.throwIfNullOrWhitespace(r,"propertyName"),this.privInternalData instanceof n.ServiceRecognizerBase)if("speech.context"!==e.toLowerCase())throw Error("Only speech.context message property sets are currently supported for recognizer");else this.privInternalData.speechContext.getContext()[r]=i;else if(this.privInternalData instanceof n.SynthesisAdapterBase)if("speech.config"!==e.toLowerCase()&&"synthesis.context"!==e.toLowerCase())throw Error("Only speech.config and synthesis.context message paths are currently supported for synthesizer");else if("speech.config"===e.toLowerCase())if("context"!==r.toLowerCase())throw Error("Only context property is currently supported for speech.config message path for synthesizer");else this.privInternalData.synthesizerConfig.setContextFromJson(i);else this.privInternalData.synthesisContext.setSection(r,i)}sendMessageAsync(e,r,i,n){(0,o.marshalPromiseToCallbacks)(this.privInternalData.sendNetworkMessage(e,r),i,n)}close(){}setupEvents(){this.privEventListener=this.privInternalData.connectionEvents.attach(e=>{"ConnectionEstablishedEvent"===e.name?this.connected&&this.connected(new c.ConnectionEventArgs(e.connectionId)):"ConnectionClosedEvent"===e.name?this.disconnected&&this.disconnected(new c.ConnectionEventArgs(e.connectionId)):"ConnectionMessageSentEvent"===e.name?this.messageSent&&this.messageSent(new c.ConnectionMessageEventArgs(new s.ConnectionMessageImpl(e.message))):"ConnectionMessageReceivedEvent"===e.name&&this.messageReceived&&this.messageReceived(new c.ConnectionMessageEventArgs(new s.ConnectionMessageImpl(e.message)))}),this.privServiceEventListener=this.privInternalData.serviceEvents.attach(e=>{this.receivedServiceMessage&&this.receivedServiceMessage(new c.ServiceEventArgs(e.jsonString,e.name))})}}r.Connection=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{}r.ConnectionEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionMessage.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionMessageImpl=r.ConnectionMessage=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/HeaderNames.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyCollection.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyId.js");r.ConnectionMessage=class{},r.ConnectionMessageImpl=class{constructor(e){this.privConnectionMessage=e,this.privProperties=new s.PropertyCollection,this.privConnectionMessage.headers[n.HeaderNames.ConnectionId]&&this.privProperties.setProperty(a.PropertyId.Speech_SessionId,this.privConnectionMessage.headers[n.HeaderNames.ConnectionId]),Object.keys(this.privConnectionMessage.headers).forEach(e=>{this.privProperties.setProperty(e,this.privConnectionMessage.headers[e])})}get path(){return this.privConnectionMessage.headers[Object.keys(this.privConnectionMessage.headers).find(e=>"path"===e.toLowerCase())]}get isTextMessage(){return this.privConnectionMessage.messageType===o.MessageType.Text}get isBinaryMessage(){return this.privConnectionMessage.messageType===o.MessageType.Binary}get TextMessage(){return this.privConnectionMessage.textBody}get binaryMessage(){return this.privConnectionMessage.binaryBody}get properties(){return this.privProperties}toString(){return""}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionMessageEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionMessageEventArgs=void 0,r.ConnectionMessageEventArgs=class{constructor(e){this.privConnectionMessage=e}get message(){return this.privConnectionMessage}toString(){return"Message: "+this.privConnectionMessage.toString()}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Contracts=void 0;class i{static throwIfNullOrUndefined(e,r){if(null==e)throw Error("throwIfNullOrUndefined:"+r)}static throwIfNull(e,r){if(null===e)throw Error("throwIfNull:"+r)}static throwIfNullOrWhitespace(e,r){if(i.throwIfNullOrUndefined(e,r),(""+e).trim().length<1)throw Error("throwIfNullOrWhitespace:"+r)}static throwIfNullOrTooLong(e,r,n){if(i.throwIfNullOrUndefined(e,r),(""+e).length>n)throw Error("throwIfNullOrTooLong:"+r+" (more than "+n.toString()+" characters)")}static throwIfNullOrTooShort(e,r,n){if(i.throwIfNullOrUndefined(e,r),(""+e).length<n)throw Error("throwIfNullOrTooShort:"+r+" (less than "+n.toString()+" characters)")}static throwIfDisposed(e){if(e)throw Error("the object is already disposed")}static throwIfArrayEmptyOrWhitespace(e,r){if(i.throwIfNullOrUndefined(e,r),0===e.length)throw Error("throwIfArrayEmptyOrWhitespace:"+r);for(let n of e)i.throwIfNullOrWhitespace(n,r)}static throwIfFileDoesNotExist(e,r){i.throwIfNullOrWhitespace(e,r)}static throwIfNotUndefined(e,r){if(void 0!==e)throw Error("throwIfNotUndefined:"+r)}static throwIfNumberOutOfRange(e,r,n,o){if(i.throwIfNullOrUndefined(e,r),e<n||e>o)throw Error("throwIfNumberOutOfRange:"+r+" (must be between "+n.toString()+" and "+o.toString()+")")}}r.Contracts=i},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConversationTranscriptionCanceledEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranscriptionCanceledEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js");class o extends n.CancellationEventArgsBase{}r.ConversationTranscriptionCanceledEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CustomCommandsConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.CustomCommandsConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConfig.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class a extends o.DialogServiceConfigImpl{constructor(){super()}static fromSubscription(e,r,i){n.Contracts.throwIfNullOrWhitespace(e,"applicationId"),n.Contracts.throwIfNullOrWhitespace(r,"subscription"),n.Contracts.throwIfNullOrWhitespace(i,"region");let a=new o.DialogServiceConfigImpl;return a.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.CustomCommands),a.setProperty(s.PropertyId.Conversation_ApplicationId,e),a.setProperty(s.PropertyId.SpeechServiceConnection_Key,r),a.setProperty(s.PropertyId.SpeechServiceConnection_Region,i),a}static fromAuthorizationToken(e,r,i){n.Contracts.throwIfNullOrWhitespace(e,"applicationId"),n.Contracts.throwIfNullOrWhitespace(r,"authorizationToken"),n.Contracts.throwIfNullOrWhitespace(i,"region");let a=new o.DialogServiceConfigImpl;return a.setProperty(s.PropertyId.Conversation_DialogType,o.DialogServiceConfig.DialogTypes.CustomCommands),a.setProperty(s.PropertyId.Conversation_ApplicationId,e),a.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,r),a.setProperty(s.PropertyId.SpeechServiceConnection_Region,i),a}set applicationId(e){n.Contracts.throwIfNullOrWhitespace(e,"value"),this.setProperty(s.PropertyId.Conversation_ApplicationId,e)}get applicationId(){return this.getProperty(s.PropertyId.Conversation_ApplicationId)}}r.CustomCommandsConfig=a},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Diagnostics.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Diagnostics=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");class s{static SetLoggingLevel(e){this.privListener=new n.ConsoleLoggingListener(e),o.Events.instance.attachConsoleListener(this.privListener)}static StartConsoleOutput(){this.privListener&&(this.privListener.enableConsoleOutput=!0)}static StopConsoleOutput(){this.privListener&&(this.privListener.enableConsoleOutput=!1)}static SetLogOutputPath(e){if("undefined"==typeof window)this.privListener&&(this.privListener.logPath=e);else throw Error("File system logging not available in browser.")}static set onLogOutput(e){this.privListener&&(this.privListener.logCallback=e)}}r.Diagnostics=s,s.privListener=void 0},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DialogServiceConfigImpl=r.DialogServiceConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class s{constructor(){return}set applicationId(e){}static get DialogTypes(){return{BotFramework:"bot_framework",CustomCommands:"custom_commands"}}}r.DialogServiceConfig=s,r.DialogServiceConfigImpl=class extends s{constructor(){super(),this.privSpeechConfig=new o.SpeechConfigImpl}get properties(){return this.privSpeechConfig.properties}get speechRecognitionLanguage(){return this.privSpeechConfig.speechRecognitionLanguage}set speechRecognitionLanguage(e){n.Contracts.throwIfNullOrWhitespace(e,"value"),this.privSpeechConfig.speechRecognitionLanguage=e}get outputFormat(){return this.privSpeechConfig.outputFormat}set outputFormat(e){this.privSpeechConfig.outputFormat=e}setProperty(e,r){this.privSpeechConfig.setProperty(e,r)}getProperty(e,r){return this.privSpeechConfig.getProperty(e)}setProxy(e,r,i,n){this.setProperty(o.PropertyId.SpeechServiceConnection_ProxyHostName,e),this.setProperty(o.PropertyId.SpeechServiceConnection_ProxyPort,`${r}`),i&&this.setProperty(o.PropertyId.SpeechServiceConnection_ProxyUserName,i),n&&this.setProperty(o.PropertyId.SpeechServiceConnection_ProxyPassword,n)}setServiceProperty(e,r,i){this.privSpeechConfig.setServiceProperty(e,r)}close(){}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConnector.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DialogServiceConnector=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/DialogConnectorFactory.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyId.js");class u extends d.Recognizer{constructor(e,r){c.Contracts.throwIfNull(e,"dialogConfig"),super(r,e.properties,new n.DialogConnectionFactory),this.isTurnComplete=!0,this.privIsDisposed=!1,this.privProperties=e.properties.clone();let i=this.buildAgentConfig();this.privReco.agentConfig.set(i)}connect(e,r){(0,a.marshalPromiseToCallbacks)(this.privReco.connect(),e,r)}disconnect(e,r){(0,a.marshalPromiseToCallbacks)(this.privReco.disconnect(),e,r)}get authorizationToken(){return this.properties.getProperty(l.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){c.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(l.PropertyId.SpeechServiceAuthorization_Token,e)}get properties(){return this.privProperties}get speechActivityTemplate(){return this.properties.getProperty(l.PropertyId.Conversation_Speech_Activity_Template)}set speechActivityTemplate(e){this.properties.setProperty(l.PropertyId.Conversation_Speech_Activity_Template,e)}listenOnceAsync(e,r){if(this.isTurnComplete){c.Contracts.throwIfDisposed(this.privIsDisposed);let i=(async()=>{await this.privReco.connect(),await this.implRecognizerStop(),this.isTurnComplete=!1;let e=new a.Deferred;await this.privReco.recognize(s.RecognitionMode.Conversation,e.resolve,e.reject);let r=await e.promise;return await this.implRecognizerStop(),r})();i.catch(()=>{this.dispose(!0).catch(()=>{})}),(0,a.marshalPromiseToCallbacks)(i.finally(()=>{this.isTurnComplete=!0}),e,r)}}sendActivityAsync(e,r,i){(0,a.marshalPromiseToCallbacks)(this.privReco.sendMessage(e),r,i)}close(e,r){c.Contracts.throwIfDisposed(this.privIsDisposed),(0,a.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}async dispose(e){!this.privIsDisposed&&e&&(this.privIsDisposed=!0,await this.implRecognizerStop(),await super.dispose(e))}createRecognizerConfig(e){return new o.RecognizerConfig(e,this.privProperties)}createServiceRecognizer(e,r,i,n){return new o.DialogServiceAdapter(e,r,i,n,this)}buildAgentConfig(){return{botInfo:{commType:this.properties.getProperty("Conversation_Communication_Type","Default"),commandsCulture:void 0,connectionId:this.properties.getProperty(l.PropertyId.Conversation_Agent_Connection_Id),conversationId:this.properties.getProperty(l.PropertyId.Conversation_Conversation_Id,void 0),fromId:this.properties.getProperty(l.PropertyId.Conversation_From_Id,void 0),ttsAudioFormat:this.properties.getProperty(l.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)},version:.2}}}r.DialogServiceConnector=u},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.CustomCommandsConfig=r.BotFrameworkConfig=r.DialogServiceConfig=r.PhraseListGrammar=r.Connection=r.ServiceEventArgs=r.ConnectionEventArgs=r.CancellationErrorCode=r.CancellationDetails=r.CancellationDetailsBase=r.TranslationRecognitionCanceledEventArgs=r.NoMatchDetails=r.NoMatchReason=r.Translations=r.TranslationRecognizer=r.SpeechRecognizer=r.Recognizer=r.PropertyId=r.PropertyCollection=r.SpeechTranslationConfigImpl=r.SpeechTranslationConfig=r.SpeechConfigImpl=r.SpeechConfig=r.ResultReason=r.TranslationSynthesisResult=r.TranslationRecognitionResult=r.TranslationSynthesisEventArgs=r.TranslationRecognitionEventArgs=r.SpeechRecognitionCanceledEventArgs=r.MeetingTranscriptionEventArgs=r.ConversationTranscriptionEventArgs=r.SpeechRecognitionEventArgs=r.SpeechRecognitionResult=r.RecognitionResult=r.OutputFormat=r.RecognitionEventArgs=r.SessionEventArgs=r.KeywordRecognitionModel=r.PushAudioOutputStreamCallback=r.PullAudioInputStreamCallback=r.CancellationReason=r.PushAudioOutputStream=r.PullAudioOutputStream=r.AudioOutputStream=r.PushAudioInputStream=r.PullAudioInputStream=r.AudioInputStream=r.AudioFormatTag=r.AudioStreamFormat=r.AudioConfig=void 0,r.AvatarSynthesizer=r.AvatarEventArgs=r.AvatarConfig=r.LanguageIdMode=r.PronunciationAssessmentResult=r.PronunciationAssessmentConfig=r.PronunciationAssessmentGranularity=r.PronunciationAssessmentGradingSystem=r.MeetingTranscriptionCanceledEventArgs=r.ConversationTranscriptionCanceledEventArgs=r.SpeakerAudioDestination=r.VoiceInfo=r.SynthesisVoiceType=r.SynthesisVoiceGender=r.SynthesisVoicesResult=r.SpeechSynthesisBoundaryType=r.SpeechSynthesisVisemeEventArgs=r.SpeechSynthesisBookmarkEventArgs=r.SpeechSynthesisWordBoundaryEventArgs=r.SpeechSynthesisEventArgs=r.SpeechSynthesisResult=r.SynthesisResult=r.SpeechSynthesizer=r.SpeechSynthesisOutputFormat=r.Synthesizer=r.User=r.ParticipantChangedReason=r.Participant=r.MeetingTranscriber=r.Meeting=r.ConversationTranscriptionResult=r.ConversationTranscriber=r.ConversationTranslator=r.ConversationTranslationResult=r.ConversationTranslationEventArgs=r.ConversationTranslationCanceledEventArgs=r.ConversationParticipantsChangedEventArgs=r.ConversationExpirationEventArgs=r.Conversation=r.SourceLanguageConfig=r.AutoDetectSourceLanguageResult=r.AutoDetectSourceLanguageConfig=r.ConnectionMessage=r.ConnectionMessageEventArgs=r.BaseAudioPlayer=r.ProfanityOption=r.ServicePropertyChannel=r.TurnStatusReceivedEventArgs=r.ActivityReceivedEventArgs=r.DialogServiceConnector=void 0,r.LogLevel=r.Diagnostics=r.AvatarWebRTCConnectionResult=r.Coordinate=r.AvatarVideoFormat=void 0;var n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioConfig.js");Object.defineProperty(r,"AudioConfig",{enumerable:!0,get:function(){return n.AudioConfig}});var o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js");Object.defineProperty(r,"AudioStreamFormat",{enumerable:!0,get:function(){return o.AudioStreamFormat}}),Object.defineProperty(r,"AudioFormatTag",{enumerable:!0,get:function(){return o.AudioFormatTag}});var s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioInputStream.js");Object.defineProperty(r,"AudioInputStream",{enumerable:!0,get:function(){return s.AudioInputStream}}),Object.defineProperty(r,"PullAudioInputStream",{enumerable:!0,get:function(){return s.PullAudioInputStream}}),Object.defineProperty(r,"PushAudioInputStream",{enumerable:!0,get:function(){return s.PushAudioInputStream}});var a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js");Object.defineProperty(r,"AudioOutputStream",{enumerable:!0,get:function(){return a.AudioOutputStream}}),Object.defineProperty(r,"PullAudioOutputStream",{enumerable:!0,get:function(){return a.PullAudioOutputStream}}),Object.defineProperty(r,"PushAudioOutputStream",{enumerable:!0,get:function(){return a.PushAudioOutputStream}});var c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationReason.js");Object.defineProperty(r,"CancellationReason",{enumerable:!0,get:function(){return c.CancellationReason}});var d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/PullAudioInputStreamCallback.js");Object.defineProperty(r,"PullAudioInputStreamCallback",{enumerable:!0,get:function(){return d.PullAudioInputStreamCallback}});var l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/PushAudioOutputStreamCallback.js");Object.defineProperty(r,"PushAudioOutputStreamCallback",{enumerable:!0,get:function(){return l.PushAudioOutputStreamCallback}});var u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/KeywordRecognitionModel.js");Object.defineProperty(r,"KeywordRecognitionModel",{enumerable:!0,get:function(){return u.KeywordRecognitionModel}});var p=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SessionEventArgs.js");Object.defineProperty(r,"SessionEventArgs",{enumerable:!0,get:function(){return p.SessionEventArgs}});var h=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/RecognitionEventArgs.js");Object.defineProperty(r,"RecognitionEventArgs",{enumerable:!0,get:function(){return h.RecognitionEventArgs}});var f=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/OutputFormat.js");Object.defineProperty(r,"OutputFormat",{enumerable:!0,get:function(){return f.OutputFormat}});var m=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/RecognitionResult.js");Object.defineProperty(r,"RecognitionResult",{enumerable:!0,get:function(){return m.RecognitionResult}});var g=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionResult.js");Object.defineProperty(r,"SpeechRecognitionResult",{enumerable:!0,get:function(){return g.SpeechRecognitionResult}});var y=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionEventArgs.js");Object.defineProperty(r,"SpeechRecognitionEventArgs",{enumerable:!0,get:function(){return y.SpeechRecognitionEventArgs}}),Object.defineProperty(r,"ConversationTranscriptionEventArgs",{enumerable:!0,get:function(){return y.ConversationTranscriptionEventArgs}}),Object.defineProperty(r,"MeetingTranscriptionEventArgs",{enumerable:!0,get:function(){return y.MeetingTranscriptionEventArgs}});var b=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionCanceledEventArgs.js");Object.defineProperty(r,"SpeechRecognitionCanceledEventArgs",{enumerable:!0,get:function(){return b.SpeechRecognitionCanceledEventArgs}});var S=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionEventArgs.js");Object.defineProperty(r,"TranslationRecognitionEventArgs",{enumerable:!0,get:function(){return S.TranslationRecognitionEventArgs}});var C=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationSynthesisEventArgs.js");Object.defineProperty(r,"TranslationSynthesisEventArgs",{enumerable:!0,get:function(){return C.TranslationSynthesisEventArgs}});var _=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionResult.js");Object.defineProperty(r,"TranslationRecognitionResult",{enumerable:!0,get:function(){return _.TranslationRecognitionResult}});var w=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationSynthesisResult.js");Object.defineProperty(r,"TranslationSynthesisResult",{enumerable:!0,get:function(){return w.TranslationSynthesisResult}});var R=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ResultReason.js");Object.defineProperty(r,"ResultReason",{enumerable:!0,get:function(){return R.ResultReason}});var T=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechConfig.js");Object.defineProperty(r,"SpeechConfig",{enumerable:!0,get:function(){return T.SpeechConfig}}),Object.defineProperty(r,"SpeechConfigImpl",{enumerable:!0,get:function(){return T.SpeechConfigImpl}});var E=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechTranslationConfig.js");Object.defineProperty(r,"SpeechTranslationConfig",{enumerable:!0,get:function(){return E.SpeechTranslationConfig}}),Object.defineProperty(r,"SpeechTranslationConfigImpl",{enumerable:!0,get:function(){return E.SpeechTranslationConfigImpl}});var j=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyCollection.js");Object.defineProperty(r,"PropertyCollection",{enumerable:!0,get:function(){return j.PropertyCollection}});var P=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyId.js");Object.defineProperty(r,"PropertyId",{enumerable:!0,get:function(){return P.PropertyId}});var k=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Recognizer.js");Object.defineProperty(r,"Recognizer",{enumerable:!0,get:function(){return k.Recognizer}});var O=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognizer.js");Object.defineProperty(r,"SpeechRecognizer",{enumerable:!0,get:function(){return O.SpeechRecognizer}});var I=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognizer.js");Object.defineProperty(r,"TranslationRecognizer",{enumerable:!0,get:function(){return I.TranslationRecognizer}});var x=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Translations.js");Object.defineProperty(r,"Translations",{enumerable:!0,get:function(){return x.Translations}});var A=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/NoMatchReason.js");Object.defineProperty(r,"NoMatchReason",{enumerable:!0,get:function(){return A.NoMatchReason}});var M=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/NoMatchDetails.js");Object.defineProperty(r,"NoMatchDetails",{enumerable:!0,get:function(){return M.NoMatchDetails}});var D=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionCanceledEventArgs.js");Object.defineProperty(r,"TranslationRecognitionCanceledEventArgs",{enumerable:!0,get:function(){return D.TranslationRecognitionCanceledEventArgs}});var N=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationDetailsBase.js");Object.defineProperty(r,"CancellationDetailsBase",{enumerable:!0,get:function(){return N.CancellationDetailsBase}});var B=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationDetails.js");Object.defineProperty(r,"CancellationDetails",{enumerable:!0,get:function(){return B.CancellationDetails}});var L=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationErrorCodes.js");Object.defineProperty(r,"CancellationErrorCode",{enumerable:!0,get:function(){return L.CancellationErrorCode}});var F=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionEventArgs.js");Object.defineProperty(r,"ConnectionEventArgs",{enumerable:!0,get:function(){return F.ConnectionEventArgs}});var z=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ServiceEventArgs.js");Object.defineProperty(r,"ServiceEventArgs",{enumerable:!0,get:function(){return z.ServiceEventArgs}});var U=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Connection.js");Object.defineProperty(r,"Connection",{enumerable:!0,get:function(){return U.Connection}});var H=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PhraseListGrammar.js");Object.defineProperty(r,"PhraseListGrammar",{enumerable:!0,get:function(){return H.PhraseListGrammar}});var q=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConfig.js");Object.defineProperty(r,"DialogServiceConfig",{enumerable:!0,get:function(){return q.DialogServiceConfig}});var W=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/BotFrameworkConfig.js");Object.defineProperty(r,"BotFrameworkConfig",{enumerable:!0,get:function(){return W.BotFrameworkConfig}});var V=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CustomCommandsConfig.js");Object.defineProperty(r,"CustomCommandsConfig",{enumerable:!0,get:function(){return V.CustomCommandsConfig}});var G=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConnector.js");Object.defineProperty(r,"DialogServiceConnector",{enumerable:!0,get:function(){return G.DialogServiceConnector}});var K=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ActivityReceivedEventArgs.js");Object.defineProperty(r,"ActivityReceivedEventArgs",{enumerable:!0,get:function(){return K.ActivityReceivedEventArgs}});var J=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TurnStatusReceivedEventArgs.js");Object.defineProperty(r,"TurnStatusReceivedEventArgs",{enumerable:!0,get:function(){return J.TurnStatusReceivedEventArgs}});var X=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ServicePropertyChannel.js");Object.defineProperty(r,"ServicePropertyChannel",{enumerable:!0,get:function(){return X.ServicePropertyChannel}});var $=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ProfanityOption.js");Object.defineProperty(r,"ProfanityOption",{enumerable:!0,get:function(){return $.ProfanityOption}});var Q=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/BaseAudioPlayer.js");Object.defineProperty(r,"BaseAudioPlayer",{enumerable:!0,get:function(){return Q.BaseAudioPlayer}});var Y=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionMessageEventArgs.js");Object.defineProperty(r,"ConnectionMessageEventArgs",{enumerable:!0,get:function(){return Y.ConnectionMessageEventArgs}});var Z=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConnectionMessage.js");Object.defineProperty(r,"ConnectionMessage",{enumerable:!0,get:function(){return Z.ConnectionMessage}});var ee=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AutoDetectSourceLanguageConfig.js");Object.defineProperty(r,"AutoDetectSourceLanguageConfig",{enumerable:!0,get:function(){return ee.AutoDetectSourceLanguageConfig}});var et=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AutoDetectSourceLanguageResult.js");Object.defineProperty(r,"AutoDetectSourceLanguageResult",{enumerable:!0,get:function(){return et.AutoDetectSourceLanguageResult}});var er=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SourceLanguageConfig.js");Object.defineProperty(r,"SourceLanguageConfig",{enumerable:!0,get:function(){return er.SourceLanguageConfig}});var ei=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Exports.js");Object.defineProperty(r,"Conversation",{enumerable:!0,get:function(){return ei.Conversation}}),Object.defineProperty(r,"ConversationExpirationEventArgs",{enumerable:!0,get:function(){return ei.ConversationExpirationEventArgs}}),Object.defineProperty(r,"ConversationParticipantsChangedEventArgs",{enumerable:!0,get:function(){return ei.ConversationParticipantsChangedEventArgs}}),Object.defineProperty(r,"ConversationTranslationCanceledEventArgs",{enumerable:!0,get:function(){return ei.ConversationTranslationCanceledEventArgs}}),Object.defineProperty(r,"ConversationTranslationEventArgs",{enumerable:!0,get:function(){return ei.ConversationTranslationEventArgs}}),Object.defineProperty(r,"ConversationTranslationResult",{enumerable:!0,get:function(){return ei.ConversationTranslationResult}}),Object.defineProperty(r,"ConversationTranslator",{enumerable:!0,get:function(){return ei.ConversationTranslator}}),Object.defineProperty(r,"ConversationTranscriber",{enumerable:!0,get:function(){return ei.ConversationTranscriber}}),Object.defineProperty(r,"ConversationTranscriptionResult",{enumerable:!0,get:function(){return ei.ConversationTranscriptionResult}}),Object.defineProperty(r,"Meeting",{enumerable:!0,get:function(){return ei.Meeting}}),Object.defineProperty(r,"MeetingTranscriber",{enumerable:!0,get:function(){return ei.MeetingTranscriber}}),Object.defineProperty(r,"Participant",{enumerable:!0,get:function(){return ei.Participant}}),Object.defineProperty(r,"ParticipantChangedReason",{enumerable:!0,get:function(){return ei.ParticipantChangedReason}}),Object.defineProperty(r,"User",{enumerable:!0,get:function(){return ei.User}});var en=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Synthesizer.js");Object.defineProperty(r,"Synthesizer",{enumerable:!0,get:function(){return en.Synthesizer}});var eo=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisOutputFormat.js");Object.defineProperty(r,"SpeechSynthesisOutputFormat",{enumerable:!0,get:function(){return eo.SpeechSynthesisOutputFormat}});var es=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesizer.js");Object.defineProperty(r,"SpeechSynthesizer",{enumerable:!0,get:function(){return es.SpeechSynthesizer}});var ea=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SynthesisResult.js");Object.defineProperty(r,"SynthesisResult",{enumerable:!0,get:function(){return ea.SynthesisResult}});var ec=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisResult.js");Object.defineProperty(r,"SpeechSynthesisResult",{enumerable:!0,get:function(){return ec.SpeechSynthesisResult}});var ed=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisEventArgs.js");Object.defineProperty(r,"SpeechSynthesisEventArgs",{enumerable:!0,get:function(){return ed.SpeechSynthesisEventArgs}});var el=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisWordBoundaryEventArgs.js");Object.defineProperty(r,"SpeechSynthesisWordBoundaryEventArgs",{enumerable:!0,get:function(){return el.SpeechSynthesisWordBoundaryEventArgs}});var eu=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisBookmarkEventArgs.js");Object.defineProperty(r,"SpeechSynthesisBookmarkEventArgs",{enumerable:!0,get:function(){return eu.SpeechSynthesisBookmarkEventArgs}});var ep=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisVisemeEventArgs.js");Object.defineProperty(r,"SpeechSynthesisVisemeEventArgs",{enumerable:!0,get:function(){return ep.SpeechSynthesisVisemeEventArgs}});var eh=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisBoundaryType.js");Object.defineProperty(r,"SpeechSynthesisBoundaryType",{enumerable:!0,get:function(){return eh.SpeechSynthesisBoundaryType}});var ef=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SynthesisVoicesResult.js");Object.defineProperty(r,"SynthesisVoicesResult",{enumerable:!0,get:function(){return ef.SynthesisVoicesResult}});var ev=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/VoiceInfo.js");Object.defineProperty(r,"SynthesisVoiceGender",{enumerable:!0,get:function(){return ev.SynthesisVoiceGender}}),Object.defineProperty(r,"SynthesisVoiceType",{enumerable:!0,get:function(){return ev.SynthesisVoiceType}}),Object.defineProperty(r,"VoiceInfo",{enumerable:!0,get:function(){return ev.VoiceInfo}});var em=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/SpeakerAudioDestination.js");Object.defineProperty(r,"SpeakerAudioDestination",{enumerable:!0,get:function(){return em.SpeakerAudioDestination}});var eg=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ConversationTranscriptionCanceledEventArgs.js");Object.defineProperty(r,"ConversationTranscriptionCanceledEventArgs",{enumerable:!0,get:function(){return eg.ConversationTranscriptionCanceledEventArgs}});var ey=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/MeetingTranscriptionCanceledEventArgs.js");Object.defineProperty(r,"MeetingTranscriptionCanceledEventArgs",{enumerable:!0,get:function(){return ey.MeetingTranscriptionCanceledEventArgs}});var eb=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentGradingSystem.js");Object.defineProperty(r,"PronunciationAssessmentGradingSystem",{enumerable:!0,get:function(){return eb.PronunciationAssessmentGradingSystem}});var eS=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentGranularity.js");Object.defineProperty(r,"PronunciationAssessmentGranularity",{enumerable:!0,get:function(){return eS.PronunciationAssessmentGranularity}});var eC=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentConfig.js");Object.defineProperty(r,"PronunciationAssessmentConfig",{enumerable:!0,get:function(){return eC.PronunciationAssessmentConfig}});var e_=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentResult.js");Object.defineProperty(r,"PronunciationAssessmentResult",{enumerable:!0,get:function(){return e_.PronunciationAssessmentResult}});var ew=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/LanguageIdMode.js");Object.defineProperty(r,"LanguageIdMode",{enumerable:!0,get:function(){return ew.LanguageIdMode}});var eR=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarConfig.js");Object.defineProperty(r,"AvatarConfig",{enumerable:!0,get:function(){return eR.AvatarConfig}});var eT=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarEventArgs.js");Object.defineProperty(r,"AvatarEventArgs",{enumerable:!0,get:function(){return eT.AvatarEventArgs}});var eE=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarSynthesizer.js");Object.defineProperty(r,"AvatarSynthesizer",{enumerable:!0,get:function(){return eE.AvatarSynthesizer}});var ej=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarVideoFormat.js");Object.defineProperty(r,"AvatarVideoFormat",{enumerable:!0,get:function(){return ej.AvatarVideoFormat}}),Object.defineProperty(r,"Coordinate",{enumerable:!0,get:function(){return ej.Coordinate}});var eP=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarWebRTCConnectionResult.js");Object.defineProperty(r,"AvatarWebRTCConnectionResult",{enumerable:!0,get:function(){return eP.AvatarWebRTCConnectionResult}});var ek=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Diagnostics.js");Object.defineProperty(r,"Diagnostics",{enumerable:!0,get:function(){return ek.Diagnostics}});var eO=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/LogLevel.js");Object.defineProperty(r,"LogLevel",{enumerable:!0,get:function(){return eO.LogLevel}})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/KeywordRecognitionModel.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.KeywordRecognitionModel=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js");r.KeywordRecognitionModel=class{constructor(){this.privDisposed=!1;return}static fromFile(e){throw n.Contracts.throwIfFileDoesNotExist(e,"fileName"),Error("Not yet implemented.")}static fromStream(e){throw n.Contracts.throwIfNull(e,"file"),Error("Not yet implemented.")}close(){this.privDisposed||(this.privDisposed=!0)}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/LanguageIdMode.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.LanguageIdMode=void 0,(i=r.LanguageIdMode||(r.LanguageIdMode={}))[i.AtStart=0]="AtStart",i[i.Continuous=1]="Continuous"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/LogLevel.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.LogLevel=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js");Object.defineProperty(r,"LogLevel",{enumerable:!0,get:function(){return n.EventType}})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/MeetingTranscriptionCanceledEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.MeetingTranscriptionCanceledEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js");class o extends n.CancellationEventArgsBase{}r.MeetingTranscriptionCanceledEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/NoMatchDetails.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.NoMatchDetails=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class s{constructor(e){this.privReason=e}static fromResult(e){let r=n.SimpleSpeechPhrase.fromJSON(e.json,0),i=o.NoMatchReason.NotRecognized;switch(r.RecognitionStatus){case n.RecognitionStatus.BabbleTimeout:i=o.NoMatchReason.InitialBabbleTimeout;break;case n.RecognitionStatus.InitialSilenceTimeout:i=o.NoMatchReason.InitialSilenceTimeout;break;default:i=o.NoMatchReason.NotRecognized}return new s(i)}get reason(){return this.privReason}}r.NoMatchDetails=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/NoMatchReason.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.NoMatchReason=void 0,(i=r.NoMatchReason||(r.NoMatchReason={}))[i.NotRecognized=0]="NotRecognized",i[i.InitialSilenceTimeout=1]="InitialSilenceTimeout",i[i.InitialBabbleTimeout=2]="InitialBabbleTimeout"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/OutputFormat.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.OutputFormat=void 0,(i=r.OutputFormat||(r.OutputFormat={}))[i.Simple=0]="Simple",i[i.Detailed=1]="Detailed"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PhraseListGrammar.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.PhraseListGrammar=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js");class o{constructor(e){this.privGrammerBuilder=e.dynamicGrammar}static fromRecognizer(e){return new o(e.internalData)}addPhrase(e){this.privGrammerBuilder.addPhrase(e)}addPhrases(e){this.privGrammerBuilder.addPhrase(e)}clear(){this.privGrammerBuilder.clearPhrases()}setWeight(e){n.Contracts.throwIfNumberOutOfRange(e,"weight",0,2),this.privGrammerBuilder.setWeight(e)}}r.PhraseListGrammar=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ProfanityOption.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.ProfanityOption=void 0,(i=r.ProfanityOption||(r.ProfanityOption={}))[i.Masked=0]="Masked",i[i.Removed=1]="Removed",i[i.Raw=2]="Raw"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.PronunciationAssessmentConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class s{constructor(e,r=o.PronunciationAssessmentGradingSystem.FivePoint,i=o.PronunciationAssessmentGranularity.Phoneme,s=!1){n.Contracts.throwIfNullOrUndefined(e,"referenceText"),this.privProperties=new o.PropertyCollection,this.privProperties.setProperty(o.PropertyId.PronunciationAssessment_ReferenceText,e),this.privProperties.setProperty(o.PropertyId.PronunciationAssessment_GradingSystem,o.PronunciationAssessmentGradingSystem[r]),this.privProperties.setProperty(o.PropertyId.PronunciationAssessment_Granularity,o.PronunciationAssessmentGranularity[i]),this.privProperties.setProperty(o.PropertyId.PronunciationAssessment_EnableMiscue,String(s))}static fromJSON(e){n.Contracts.throwIfNullOrUndefined(e,"json");let r=new s("");return r.privProperties=new o.PropertyCollection,r.properties.setProperty(o.PropertyId.PronunciationAssessment_Json,e),r}toJSON(){return this.updateJson(),this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_Params)}applyTo(e){this.updateJson();let r=e.internalData;r.speechContext.setPronunciationAssessmentParams(this.properties.getProperty(o.PropertyId.PronunciationAssessment_Params),r.isSpeakerDiarizationEnabled)}get referenceText(){return this.properties.getProperty(o.PropertyId.PronunciationAssessment_ReferenceText)}set referenceText(e){n.Contracts.throwIfNullOrWhitespace(e,"referenceText"),this.properties.setProperty(o.PropertyId.PronunciationAssessment_ReferenceText,e)}set phonemeAlphabet(e){n.Contracts.throwIfNullOrWhitespace(e,"phonemeAlphabet"),this.privPhonemeAlphabet=e}set enableMiscue(e){this.properties.setProperty(o.PropertyId.PronunciationAssessment_EnableMiscue,e?"true":"false")}get enableMiscue(){return"true"===this.properties.getProperty(o.PropertyId.PronunciationAssessment_EnableMiscue,"false").toLowerCase()}set nbestPhonemeCount(e){this.privNBestPhonemeCount=e}set enableProsodyAssessment(e){this.privEnableProsodyAssessment=e}get properties(){return this.privProperties}updateJson(){let e=JSON.parse(this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_Json,"{}")),r=this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_ReferenceText);r&&(e.referenceText=r);let i=this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_GradingSystem);i&&(e.gradingSystem=i);let n=this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_Granularity);n&&(e.granularity=n),this.privPhonemeAlphabet&&(e.phonemeAlphabet=this.privPhonemeAlphabet),this.privNBestPhonemeCount&&(e.nbestPhonemeCount=this.privNBestPhonemeCount),e.enableProsodyAssessment=this.privEnableProsodyAssessment,e.dimension="Comprehensive",this.privProperties.getProperty(o.PropertyId.PronunciationAssessment_EnableMiscue)&&(e.enableMiscue=this.enableMiscue),this.privProperties.setProperty(o.PropertyId.PronunciationAssessment_Params,JSON.stringify(e))}}r.PronunciationAssessmentConfig=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentGradingSystem.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.PronunciationAssessmentGradingSystem=void 0,(i=r.PronunciationAssessmentGradingSystem||(r.PronunciationAssessmentGradingSystem={}))[i.FivePoint=1]="FivePoint",i[i.HundredMark=2]="HundredMark"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentGranularity.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.PronunciationAssessmentGranularity=void 0,(i=r.PronunciationAssessmentGranularity||(r.PronunciationAssessmentGranularity={}))[i.Phoneme=1]="Phoneme",i[i.Word=2]="Word",i[i.FullText=3]="FullText"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PronunciationAssessmentResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.PronunciationAssessmentResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class s{constructor(e){let r=JSON.parse(e);n.Contracts.throwIfNullOrUndefined(r.NBest[0],"NBest"),this.privPronJson=r.NBest[0]}static fromResult(e){n.Contracts.throwIfNullOrUndefined(e,"result");let r=e.properties.getProperty(o.PropertyId.SpeechServiceResponse_JsonResult);return n.Contracts.throwIfNullOrUndefined(r,"json"),new s(r)}get detailResult(){return this.privPronJson}get accuracyScore(){return this.detailResult.PronunciationAssessment?.AccuracyScore}get pronunciationScore(){return this.detailResult.PronunciationAssessment?.PronScore}get completenessScore(){return this.detailResult.PronunciationAssessment?.CompletenessScore}get fluencyScore(){return this.detailResult.PronunciationAssessment?.FluencyScore}get prosodyScore(){return this.detailResult.PronunciationAssessment?.ProsodyScore}}r.PronunciationAssessmentResult=s},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyCollection.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.PropertyCollection=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o{constructor(){this.privKeys=[],this.privValues=[]}getProperty(e,r){let i;i="string"==typeof e?e:n.PropertyId[e];for(let e=0;e<this.privKeys.length;e++)if(this.privKeys[e]===i)return this.privValues[e];if(void 0!==r)return String(r)}setProperty(e,r){let i;i="string"==typeof e?e:n.PropertyId[e];for(let e=0;e<this.privKeys.length;e++)if(this.privKeys[e]===i){this.privValues[e]=r;return}this.privKeys.push(i),this.privValues.push(r)}clone(){let e=new o;for(let r=0;r<this.privKeys.length;r++)e.privKeys.push(this.privKeys[r]),e.privValues.push(this.privValues[r]);return e}mergeTo(e){this.privKeys.forEach(r=>{if(void 0===e.getProperty(r,void 0)){let i=this.getProperty(r);e.setProperty(r,i)}})}get keys(){return this.privKeys}}r.PropertyCollection=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/PropertyId.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.PropertyId=void 0,(i=r.PropertyId||(r.PropertyId={}))[i.SpeechServiceConnection_Key=0]="SpeechServiceConnection_Key",i[i.SpeechServiceConnection_Endpoint=1]="SpeechServiceConnection_Endpoint",i[i.SpeechServiceConnection_Region=2]="SpeechServiceConnection_Region",i[i.SpeechServiceAuthorization_Token=3]="SpeechServiceAuthorization_Token",i[i.SpeechServiceAuthorization_Type=4]="SpeechServiceAuthorization_Type",i[i.SpeechServiceConnection_EndpointId=5]="SpeechServiceConnection_EndpointId",i[i.SpeechServiceConnection_TranslationToLanguages=6]="SpeechServiceConnection_TranslationToLanguages",i[i.SpeechServiceConnection_TranslationVoice=7]="SpeechServiceConnection_TranslationVoice",i[i.SpeechServiceConnection_TranslationFeatures=8]="SpeechServiceConnection_TranslationFeatures",i[i.SpeechServiceConnection_TranslationCategoryId=9]="SpeechServiceConnection_TranslationCategoryId",i[i.SpeechServiceConnection_ProxyHostName=10]="SpeechServiceConnection_ProxyHostName",i[i.SpeechServiceConnection_ProxyPort=11]="SpeechServiceConnection_ProxyPort",i[i.SpeechServiceConnection_ProxyUserName=12]="SpeechServiceConnection_ProxyUserName",i[i.SpeechServiceConnection_ProxyPassword=13]="SpeechServiceConnection_ProxyPassword",i[i.SpeechServiceConnection_RecoMode=14]="SpeechServiceConnection_RecoMode",i[i.SpeechServiceConnection_RecoLanguage=15]="SpeechServiceConnection_RecoLanguage",i[i.Speech_SessionId=16]="Speech_SessionId",i[i.SpeechServiceConnection_SynthLanguage=17]="SpeechServiceConnection_SynthLanguage",i[i.SpeechServiceConnection_SynthVoice=18]="SpeechServiceConnection_SynthVoice",i[i.SpeechServiceConnection_SynthOutputFormat=19]="SpeechServiceConnection_SynthOutputFormat",i[i.SpeechServiceConnection_AutoDetectSourceLanguages=20]="SpeechServiceConnection_AutoDetectSourceLanguages",i[i.SpeechServiceResponse_RequestDetailedResultTrueFalse=21]="SpeechServiceResponse_RequestDetailedResultTrueFalse",i[i.SpeechServiceResponse_RequestProfanityFilterTrueFalse=22]="SpeechServiceResponse_RequestProfanityFilterTrueFalse",i[i.SpeechServiceResponse_JsonResult=23]="SpeechServiceResponse_JsonResult",i[i.SpeechServiceResponse_JsonErrorDetails=24]="SpeechServiceResponse_JsonErrorDetails",i[i.CancellationDetails_Reason=25]="CancellationDetails_Reason",i[i.CancellationDetails_ReasonText=26]="CancellationDetails_ReasonText",i[i.CancellationDetails_ReasonDetailedText=27]="CancellationDetails_ReasonDetailedText",i[i.SpeechServiceConnection_Url=28]="SpeechServiceConnection_Url",i[i.SpeechServiceConnection_InitialSilenceTimeoutMs=29]="SpeechServiceConnection_InitialSilenceTimeoutMs",i[i.SpeechServiceConnection_EndSilenceTimeoutMs=30]="SpeechServiceConnection_EndSilenceTimeoutMs",i[i.Speech_SegmentationSilenceTimeoutMs=31]="Speech_SegmentationSilenceTimeoutMs",i[i.Speech_SegmentationMaximumTimeMs=32]="Speech_SegmentationMaximumTimeMs",i[i.Speech_SegmentationStrategy=33]="Speech_SegmentationStrategy",i[i.Speech_StartEventSensitivity=34]="Speech_StartEventSensitivity",i[i.SpeechServiceConnection_EnableAudioLogging=35]="SpeechServiceConnection_EnableAudioLogging",i[i.SpeechServiceConnection_LanguageIdMode=36]="SpeechServiceConnection_LanguageIdMode",i[i.SpeechServiceConnection_RecognitionEndpointVersion=37]="SpeechServiceConnection_RecognitionEndpointVersion",i[i.SpeechServiceResponse_ProfanityOption=38]="SpeechServiceResponse_ProfanityOption",i[i.SpeechServiceResponse_PostProcessingOption=39]="SpeechServiceResponse_PostProcessingOption",i[i.SpeechServiceResponse_RequestWordLevelTimestamps=40]="SpeechServiceResponse_RequestWordLevelTimestamps",i[i.SpeechServiceResponse_StablePartialResultThreshold=41]="SpeechServiceResponse_StablePartialResultThreshold",i[i.SpeechServiceResponse_OutputFormatOption=42]="SpeechServiceResponse_OutputFormatOption",i[i.SpeechServiceResponse_TranslationRequestStablePartialResult=43]="SpeechServiceResponse_TranslationRequestStablePartialResult",i[i.SpeechServiceResponse_RequestWordBoundary=44]="SpeechServiceResponse_RequestWordBoundary",i[i.SpeechServiceResponse_RequestPunctuationBoundary=45]="SpeechServiceResponse_RequestPunctuationBoundary",i[i.SpeechServiceResponse_RequestSentenceBoundary=46]="SpeechServiceResponse_RequestSentenceBoundary",i[i.SpeechServiceResponse_DiarizeIntermediateResults=47]="SpeechServiceResponse_DiarizeIntermediateResults",i[i.Conversation_ApplicationId=48]="Conversation_ApplicationId",i[i.Conversation_DialogType=49]="Conversation_DialogType",i[i.Conversation_Initial_Silence_Timeout=50]="Conversation_Initial_Silence_Timeout",i[i.Conversation_From_Id=51]="Conversation_From_Id",i[i.Conversation_Conversation_Id=52]="Conversation_Conversation_Id",i[i.Conversation_Custom_Voice_Deployment_Ids=53]="Conversation_Custom_Voice_Deployment_Ids",i[i.Conversation_Speech_Activity_Template=54]="Conversation_Speech_Activity_Template",i[i.Conversation_Request_Bot_Status_Messages=55]="Conversation_Request_Bot_Status_Messages",i[i.Conversation_Agent_Connection_Id=56]="Conversation_Agent_Connection_Id",i[i.SpeechServiceConnection_Host=57]="SpeechServiceConnection_Host",i[i.ConversationTranslator_Host=58]="ConversationTranslator_Host",i[i.ConversationTranslator_Name=59]="ConversationTranslator_Name",i[i.ConversationTranslator_CorrelationId=60]="ConversationTranslator_CorrelationId",i[i.ConversationTranslator_Token=61]="ConversationTranslator_Token",i[i.PronunciationAssessment_ReferenceText=62]="PronunciationAssessment_ReferenceText",i[i.PronunciationAssessment_GradingSystem=63]="PronunciationAssessment_GradingSystem",i[i.PronunciationAssessment_Granularity=64]="PronunciationAssessment_Granularity",i[i.PronunciationAssessment_EnableMiscue=65]="PronunciationAssessment_EnableMiscue",i[i.PronunciationAssessment_Json=66]="PronunciationAssessment_Json",i[i.PronunciationAssessment_Params=67]="PronunciationAssessment_Params",i[i.WebWorkerLoadType=68]="WebWorkerLoadType",i[i.TalkingAvatarService_WebRTC_SDP=69]="TalkingAvatarService_WebRTC_SDP"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/RecognitionEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.RecognitionEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r){super(r),this.privOffset=e}get offset(){return this.privOffset}}r.RecognitionEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/RecognitionResult.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RecognitionResult=void 0,r.RecognitionResult=class{constructor(e,r,i,n,o,s,a,c,d,l){this.privResultId=e,this.privReason=r,this.privText=i,this.privDuration=n,this.privOffset=o,this.privLanguage=s,this.privLanguageDetectionConfidence=a,this.privErrorDetails=c,this.privJson=d,this.privProperties=l}get resultId(){return this.privResultId}get reason(){return this.privReason}get text(){return this.privText}get duration(){return this.privDuration}get offset(){return this.privOffset}get language(){return this.privLanguage}get languageDetectionConfidence(){return this.privLanguageDetectionConfidence}get errorDetails(){return this.privErrorDetails}get json(){return this.privJson}get properties(){return this.privProperties}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Recognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Recognizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class c{constructor(e,r,i,n){this.audioConfig=void 0!==e?e:a.AudioConfig.fromDefaultMicrophoneInput(),this.privDisposed=!1,this.privProperties=r.clone(),this.privConnectionFactory=i,this.tokenCredential=n,this.implCommonRecognizerSetup()}close(e,r){s.Contracts.throwIfDisposed(this.privDisposed),(0,o.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}get internalData(){return this.privReco}async dispose(e){!this.privDisposed&&(this.privDisposed=!0,e&&this.privReco&&(await this.privReco.audioSource.turnOff(),await this.privReco.dispose()))}static get telemetryEnabled(){return n.ServiceRecognizerBase.telemetryDataEnabled}static enableTelemetry(e){n.ServiceRecognizerBase.telemetryDataEnabled=e}implCommonRecognizerSetup(){let e="undefined"!=typeof window?"Browser":"Node",r="unknown",i="unknown";"undefined"!=typeof navigator&&(e=e+"/"+navigator.platform,r=navigator.userAgent,i=navigator.appVersion);let o=this.createRecognizerConfig(new n.SpeechServiceConfig(new n.Context(new n.OS(e,r,i))));this.privReco=this.createServiceRecognizer(c.getAuth(this.privProperties,this.tokenCredential),this.privConnectionFactory,this.audioConfig,o)}async recognizeOnceAsyncImpl(e){s.Contracts.throwIfDisposed(this.privDisposed);let r=new o.Deferred;await this.implRecognizerStop(),await this.privReco.recognize(e,r.resolve,r.reject);let i=await r.promise;return await this.implRecognizerStop(),i}async startContinuousRecognitionAsyncImpl(e){s.Contracts.throwIfDisposed(this.privDisposed),await this.implRecognizerStop(),await this.privReco.recognize(e,void 0,void 0)}async stopContinuousRecognitionAsyncImpl(){s.Contracts.throwIfDisposed(this.privDisposed),await this.implRecognizerStop()}async implRecognizerStop(){this.privReco&&await this.privReco.stopRecognizing()}static getAuth(e,r){let i=e.getProperty(a.PropertyId.SpeechServiceConnection_Key,void 0);return i&&""!==i?new n.CognitiveSubscriptionKeyAuthentication(i):r?new n.CognitiveTokenAuthentication(async()=>{try{let e=await r.getToken("https://cognitiveservices.azure.com/.default");return e?.token??""}catch(e){throw e}},async()=>{try{let e=await r.getToken("https://cognitiveservices.azure.com/.default");return e?.token??""}catch(e){throw e}}):new n.CognitiveTokenAuthentication(()=>Promise.resolve(e.getProperty(a.PropertyId.SpeechServiceAuthorization_Token,void 0)),()=>Promise.resolve(e.getProperty(a.PropertyId.SpeechServiceAuthorization_Token,void 0)))}}r.Recognizer=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ResultReason.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.ResultReason=void 0,(i=r.ResultReason||(r.ResultReason={}))[i.NoMatch=0]="NoMatch",i[i.Canceled=1]="Canceled",i[i.RecognizingSpeech=2]="RecognizingSpeech",i[i.RecognizedSpeech=3]="RecognizedSpeech",i[i.RecognizedKeyword=4]="RecognizedKeyword",i[i.TranslatingSpeech=5]="TranslatingSpeech",i[i.TranslatedSpeech=6]="TranslatedSpeech",i[i.SynthesizingAudio=7]="SynthesizingAudio",i[i.SynthesizingAudioCompleted=8]="SynthesizingAudioCompleted",i[i.SynthesizingAudioStarted=9]="SynthesizingAudioStarted",i[i.VoicesListRetrieved=10]="VoicesListRetrieved",i[i.TranslatingParticipantSpeech=11]="TranslatingParticipantSpeech",i[i.TranslatedParticipantSpeech=12]="TranslatedParticipantSpeech",i[i.TranslatedInstantMessage=13]="TranslatedInstantMessage",i[i.TranslatedParticipantInstantMessage=14]="TranslatedParticipantInstantMessage"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ServiceEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ServiceEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r,i){super(i),this.privJsonResult=e,this.privEventName=r}get jsonString(){return this.privJsonResult}get eventName(){return this.privEventName}}r.ServiceEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/ServicePropertyChannel.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.ServicePropertyChannel=void 0,(i=r.ServicePropertyChannel||(r.ServicePropertyChannel={}))[i.UriQueryParameter=0]="UriQueryParameter"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SessionEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SessionEventArgs=void 0,r.SessionEventArgs=class{constructor(e){this.privSessionId=e}get sessionId(){return this.privSessionId}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SourceLanguageConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SourceLanguageConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js");class o{constructor(e,r){n.Contracts.throwIfNullOrUndefined(e,"language"),this.privLanguage=e,this.privEndpointId=r}static fromLanguage(e,r){return new o(e,r)}get language(){return this.privLanguage}get endpointId(){return this.privEndpointId}}r.SourceLanguageConfig=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechConfigImpl=r.SpeechConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class a{constructor(){return}static fromSubscription(e,r){o.Contracts.throwIfNullOrWhitespace(e,"subscriptionKey"),o.Contracts.throwIfNullOrWhitespace(r,"region");let i=new c;return i.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i.setProperty(s.PropertyId.SpeechServiceConnection_Key,e),i}static fromEndpoint(e,r){let i;o.Contracts.throwIfNull(e,"endpoint");let n="string"==typeof r&&r.trim().length>0,a="object"==typeof r&&null!==r&&"function"==typeof r.getToken,d="object"==typeof r&&null!==r&&"string"==typeof r.key;if(void 0!==r&&!n&&!a&&!d)throw Error("Invalid 'auth' parameter: expected a non-empty API key string, a TokenCredential, or a KeyCredential.");return"string"==typeof r?(i=new c).setProperty(s.PropertyId.SpeechServiceConnection_Key,r):"object"==typeof r&&"function"==typeof r.getToken?i=new c(r):"object"==typeof r&&"string"==typeof r.key?(i=new c).setProperty(s.PropertyId.SpeechServiceConnection_Key,r.key):i=new c,i.setProperty(s.PropertyId.SpeechServiceConnection_Endpoint,e.href),i}static fromHost(e,r){o.Contracts.throwIfNull(e,"hostName");let i=new c;return i.setProperty(s.PropertyId.SpeechServiceConnection_Host,e.protocol+"//"+e.hostname+(""===e.port?"":":"+e.port)),i.setProperty(s.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"1"),void 0!==r&&i.setProperty(s.PropertyId.SpeechServiceConnection_Key,r),i}static fromAuthorizationToken(e,r){o.Contracts.throwIfNull(e,"authorizationToken"),o.Contracts.throwIfNullOrWhitespace(r,"region");let i=new c;return i.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i.authorizationToken=e,i}close(){}}r.SpeechConfig=a;class c extends a{constructor(e){super(),this.privProperties=new s.PropertyCollection,this.speechRecognitionLanguage="en-US",this.outputFormat=s.OutputFormat.Simple,this.privTokenCredential=e}get properties(){return this.privProperties}get endPoint(){return new URL(this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_Endpoint))}get subscriptionKey(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_Key)}get region(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_Region)}get authorizationToken(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,e)}get speechRecognitionLanguage(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage)}set speechRecognitionLanguage(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage,e)}get autoDetectSourceLanguages(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages)}set autoDetectSourceLanguages(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,e)}get outputFormat(){return s.OutputFormat[this.privProperties.getProperty(n.OutputFormatPropertyName,void 0)]}set outputFormat(e){this.privProperties.setProperty(n.OutputFormatPropertyName,s.OutputFormat[e])}get endpointId(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_EndpointId)}set endpointId(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_EndpointId,e)}get tokenCredential(){return this.privTokenCredential}setProperty(e,r){o.Contracts.throwIfNull(r,"value"),this.privProperties.setProperty(e,r)}getProperty(e,r){return this.privProperties.getProperty(e,r)}setProxy(e,r,i,n){this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyHostName],e),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyPort],r),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyUserName],i),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyPassword],n)}setServiceProperty(e,r){let i=JSON.parse(this.privProperties.getProperty(n.ServicePropertiesPropertyName,"{}"));i[e]=r,this.privProperties.setProperty(n.ServicePropertiesPropertyName,JSON.stringify(i))}setProfanity(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceResponse_ProfanityOption,s.ProfanityOption[e])}enableAudioLogging(){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_EnableAudioLogging,"true")}requestWordLevelTimestamps(){this.privProperties.setProperty(s.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps,"true"),this.privProperties.setProperty(n.OutputFormatPropertyName,s.OutputFormat[s.OutputFormat.Detailed])}enableDictation(){this.privProperties.setProperty(n.ForceDictationPropertyName,"true")}clone(){let e=new c(this.tokenCredential);return e.privProperties=this.privProperties.clone(),e}get speechSynthesisLanguage(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthLanguage)}set speechSynthesisLanguage(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthLanguage,e)}get speechSynthesisVoiceName(){return this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthVoice)}set speechSynthesisVoiceName(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthVoice,e)}get speechSynthesisOutputFormat(){return s.SpeechSynthesisOutputFormat[this.privProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)]}set speechSynthesisOutputFormat(e){this.privProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthOutputFormat,s.SpeechSynthesisOutputFormat[e])}}r.SpeechConfigImpl=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionCanceledEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechRecognitionCanceledEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js");class o extends n.CancellationEventArgsBase{}r.SpeechRecognitionCanceledEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.MeetingTranscriptionEventArgs=r.ConversationTranscriptionEventArgs=r.SpeechRecognitionEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionEventArgs{constructor(e,r,i){super(r,i),this.privResult=e}get result(){return this.privResult}}r.SpeechRecognitionEventArgs=o;class s extends n.RecognitionEventArgs{constructor(e,r,i){super(r,i),this.privResult=e}get result(){return this.privResult}}r.ConversationTranscriptionEventArgs=s,r.MeetingTranscriptionEventArgs=class extends o{}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognitionResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechRecognitionResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionResult{constructor(e,r,i,n,o,s,a,c,d,l,u){super(e,r,i,n,o,s,a,d,l,u),this.privSpeakerId=c}get speakerId(){return this.privSpeakerId}}r.SpeechRecognitionResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechRecognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechRecognizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class d extends c.Recognizer{constructor(e,r){a.Contracts.throwIfNull(e,"speechConfig"),a.Contracts.throwIfNullOrWhitespace(e.properties.getProperty(c.PropertyId.SpeechServiceConnection_RecoLanguage),c.PropertyId[c.PropertyId.SpeechServiceConnection_RecoLanguage]),super(r,e.properties,new n.SpeechConnectionFactory,e.tokenCredential),this.privDisposedRecognizer=!1}static FromConfig(e,r,i){return r.properties.mergeTo(e.properties),new d(e,i)}get endpointId(){return a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(c.PropertyId.SpeechServiceConnection_EndpointId,"00000000-0000-0000-0000-000000000000")}get authorizationToken(){return this.properties.getProperty(c.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){a.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(c.PropertyId.SpeechServiceAuthorization_Token,e)}get speechRecognitionLanguage(){return a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(c.PropertyId.SpeechServiceConnection_RecoLanguage)}get outputFormat(){return(a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(n.OutputFormatPropertyName,c.OutputFormat[c.OutputFormat.Simple])===c.OutputFormat[c.OutputFormat.Simple])?c.OutputFormat.Simple:c.OutputFormat.Detailed}get properties(){return this.privProperties}recognizeOnceAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.recognizeOnceAsyncImpl(o.RecognitionMode.Interactive),e,r)}startContinuousRecognitionAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(void 0===this.properties.getProperty(n.ForceDictationPropertyName,void 0)?o.RecognitionMode.Conversation:o.RecognitionMode.Dictation),e,r)}stopContinuousRecognitionAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),e,r)}startKeywordRecognitionAsync(e,r,i){a.Contracts.throwIfNull(e,"model"),i&&i("Not yet implemented.")}stopKeywordRecognitionAsync(e){e&&e()}close(e,r){a.Contracts.throwIfDisposed(this.privDisposedRecognizer),(0,s.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}async dispose(e){this.privDisposedRecognizer||(e&&(this.privDisposedRecognizer=!0,await this.implRecognizerStop()),await super.dispose(e))}createRecognizerConfig(e){return new n.RecognizerConfig(e,this.privProperties)}createServiceRecognizer(e,r,i,o){return new n.SpeechServiceRecognizer(e,r,i,o,this)}}r.SpeechRecognizer=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisBookmarkEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisBookmarkEventArgs=void 0,r.SpeechSynthesisBookmarkEventArgs=class{constructor(e,r){this.privAudioOffset=e,this.privText=r}get audioOffset(){return this.privAudioOffset}get text(){return this.privText}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisBoundaryType.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisBoundaryType=void 0,(i=r.SpeechSynthesisBoundaryType||(r.SpeechSynthesisBoundaryType={})).Word="WordBoundary",i.Punctuation="PunctuationBoundary",i.Sentence="SentenceBoundary"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisEventArgs=void 0,r.SpeechSynthesisEventArgs=class{constructor(e){this.privResult=e}get result(){return this.privResult}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisOutputFormat.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisOutputFormat=void 0,(i=r.SpeechSynthesisOutputFormat||(r.SpeechSynthesisOutputFormat={}))[i.Raw8Khz8BitMonoMULaw=0]="Raw8Khz8BitMonoMULaw",i[i.Riff16Khz16KbpsMonoSiren=1]="Riff16Khz16KbpsMonoSiren",i[i.Audio16Khz16KbpsMonoSiren=2]="Audio16Khz16KbpsMonoSiren",i[i.Audio16Khz32KBitRateMonoMp3=3]="Audio16Khz32KBitRateMonoMp3",i[i.Audio16Khz128KBitRateMonoMp3=4]="Audio16Khz128KBitRateMonoMp3",i[i.Audio16Khz64KBitRateMonoMp3=5]="Audio16Khz64KBitRateMonoMp3",i[i.Audio24Khz48KBitRateMonoMp3=6]="Audio24Khz48KBitRateMonoMp3",i[i.Audio24Khz96KBitRateMonoMp3=7]="Audio24Khz96KBitRateMonoMp3",i[i.Audio24Khz160KBitRateMonoMp3=8]="Audio24Khz160KBitRateMonoMp3",i[i.Raw16Khz16BitMonoTrueSilk=9]="Raw16Khz16BitMonoTrueSilk",i[i.Riff16Khz16BitMonoPcm=10]="Riff16Khz16BitMonoPcm",i[i.Riff8Khz16BitMonoPcm=11]="Riff8Khz16BitMonoPcm",i[i.Riff24Khz16BitMonoPcm=12]="Riff24Khz16BitMonoPcm",i[i.Riff8Khz8BitMonoMULaw=13]="Riff8Khz8BitMonoMULaw",i[i.Raw16Khz16BitMonoPcm=14]="Raw16Khz16BitMonoPcm",i[i.Raw24Khz16BitMonoPcm=15]="Raw24Khz16BitMonoPcm",i[i.Raw8Khz16BitMonoPcm=16]="Raw8Khz16BitMonoPcm",i[i.Ogg16Khz16BitMonoOpus=17]="Ogg16Khz16BitMonoOpus",i[i.Ogg24Khz16BitMonoOpus=18]="Ogg24Khz16BitMonoOpus",i[i.Raw48Khz16BitMonoPcm=19]="Raw48Khz16BitMonoPcm",i[i.Riff48Khz16BitMonoPcm=20]="Riff48Khz16BitMonoPcm",i[i.Audio48Khz96KBitRateMonoMp3=21]="Audio48Khz96KBitRateMonoMp3",i[i.Audio48Khz192KBitRateMonoMp3=22]="Audio48Khz192KBitRateMonoMp3",i[i.Ogg48Khz16BitMonoOpus=23]="Ogg48Khz16BitMonoOpus",i[i.Webm16Khz16BitMonoOpus=24]="Webm16Khz16BitMonoOpus",i[i.Webm24Khz16BitMonoOpus=25]="Webm24Khz16BitMonoOpus",i[i.Raw24Khz16BitMonoTrueSilk=26]="Raw24Khz16BitMonoTrueSilk",i[i.Raw8Khz8BitMonoALaw=27]="Raw8Khz8BitMonoALaw",i[i.Riff8Khz8BitMonoALaw=28]="Riff8Khz8BitMonoALaw",i[i.Webm24Khz16Bit24KbpsMonoOpus=29]="Webm24Khz16Bit24KbpsMonoOpus",i[i.Audio16Khz16Bit32KbpsMonoOpus=30]="Audio16Khz16Bit32KbpsMonoOpus",i[i.Audio24Khz16Bit48KbpsMonoOpus=31]="Audio24Khz16Bit48KbpsMonoOpus",i[i.Audio24Khz16Bit24KbpsMonoOpus=32]="Audio24Khz16Bit24KbpsMonoOpus",i[i.Raw22050Hz16BitMonoPcm=33]="Raw22050Hz16BitMonoPcm",i[i.Riff22050Hz16BitMonoPcm=34]="Riff22050Hz16BitMonoPcm",i[i.Raw44100Hz16BitMonoPcm=35]="Raw44100Hz16BitMonoPcm",i[i.Riff44100Hz16BitMonoPcm=36]="Riff44100Hz16BitMonoPcm",i[i.AmrWb16000Hz=37]="AmrWb16000Hz",i[i.G72216Khz64Kbps=38]="G72216Khz64Kbps"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SynthesisResult{constructor(e,r,i,n,o,s){super(e,r,n,o),this.privAudioData=i,this.privAudioDuration=s}get audioData(){return this.privAudioData}get audioDuration(){return this.privAudioDuration}}r.SpeechSynthesisResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisVisemeEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisVisemeEventArgs=void 0,r.SpeechSynthesisVisemeEventArgs=class{constructor(e,r,i){this.privAudioOffset=e,this.privVisemeId=r,this.privAnimation=i}get audioOffset(){return this.privAudioOffset}get visemeId(){return this.privVisemeId}get animation(){return this.privAnimation}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesisWordBoundaryEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesisWordBoundaryEventArgs=void 0,r.SpeechSynthesisWordBoundaryEventArgs=class{constructor(e,r,i,n,o,s){this.privAudioOffset=e,this.privDuration=r,this.privText=i,this.privWordLength=n,this.privTextOffset=o,this.privBoundaryType=s}get audioOffset(){return this.privAudioOffset}get duration(){return this.privDuration}get text(){return this.privText}get wordLength(){return this.privWordLength}get textOffset(){return this.privTextOffset}get boundaryType(){return this.privBoundaryType}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechSynthesizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechSynthesizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioFileWriter.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputFormat.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioOutputStream.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Synthesizer.js");class p extends l.Synthesizer{constructor(e,r){super(e),null!==r&&(void 0===r?this.audioConfig="undefined"==typeof window?void 0:l.AudioConfig.fromDefaultSpeakerOutput():this.audioConfig=r),this.privConnectionFactory=new n.SpeechSynthesisConnectionFactory,this.implCommonSynthesizeSetup()}static FromConfig(e,r,i){return r.properties.mergeTo(e.properties),new p(e,i)}speakTextAsync(e,r,i,n){this.speakImpl(e,!1,r,i,n)}speakSsmlAsync(e,r,i,n){this.speakImpl(e,!0,r,i,n)}async getVoicesAsync(e=""){return this.getVoices(e)}close(e,r){d.Contracts.throwIfDisposed(this.privDisposed),(0,o.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}get internalData(){return this.privAdapter}createSynthesisAdapter(e,r,i){return new n.SpeechSynthesisAdapter(e,r,i,this,this.audioConfig)}createRestSynthesisAdapter(e,r){return new n.SynthesisRestAdapter(r,e)}implCommonSynthesizeSetup(){super.implCommonSynthesizeSetup(),this.privAdapter.audioOutputFormat=a.AudioOutputFormatImpl.fromSpeechSynthesisOutputFormat(l.SpeechSynthesisOutputFormat[this.properties.getProperty(l.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)])}speakImpl(e,r,i,n,a){try{let p;d.Contracts.throwIfDisposed(this.privDisposed);let h=(0,o.createNoDashGuid)();p=a instanceof l.PushAudioOutputStreamCallback?new c.PushAudioOutputStreamImpl(a):a instanceof l.PullAudioOutputStream?a:void 0!==a?new s.AudioFileWriter(a):void 0,this.synthesisRequestQueue.enqueue(new u.SynthesisRequest(h,e,r,e=>{if(this.privSynthesizing=!1,i)try{i(e)}catch(e){n&&n(e)}i=void 0,this.adapterSpeak().catch(()=>{})},e=>{n&&n(e)},p)),this.adapterSpeak().catch(()=>{})}catch(e){n&&(e instanceof Error?n(e.name+": "+e.message):n(e)),this.dispose(!0).catch(()=>{})}}async getVoices(e){let r=(0,o.createNoDashGuid)(),i=await this.privRestAdapter.getVoicesList(r);if(!(i.ok&&Array.isArray(i.json)))return new l.SynthesisVoicesResult(r,void 0,`Error: ${i.status}: ${i.statusText}`);{let n=i.json;return e&&e.length>0&&(n=n.filter(r=>!!r.Locale&&r.Locale.toLowerCase()===e.toLowerCase())),new l.SynthesisVoicesResult(r,n,void 0)}}}r.SpeechSynthesizer=p},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SpeechTranslationConfig.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SpeechTranslationConfigImpl=r.SpeechTranslationConfig=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class a extends s.SpeechConfig{constructor(){super()}static fromSubscription(e,r){o.Contracts.throwIfNullOrWhitespace(e,"subscriptionKey"),o.Contracts.throwIfNullOrWhitespace(r,"region");let i=new c;return i.properties.setProperty(s.PropertyId.SpeechServiceConnection_Key,e),i.properties.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i}static fromAuthorizationToken(e,r){o.Contracts.throwIfNullOrWhitespace(e,"authorizationToken"),o.Contracts.throwIfNullOrWhitespace(r,"region");let i=new c;return i.properties.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,e),i.properties.setProperty(s.PropertyId.SpeechServiceConnection_Region,r),i}static fromHost(e,r){o.Contracts.throwIfNull(e,"hostName");let i=new c;return i.setProperty(s.PropertyId.SpeechServiceConnection_Host,e.protocol+"//"+e.hostname+(""===e.port?"":":"+e.port)),void 0!==r&&i.setProperty(s.PropertyId.SpeechServiceConnection_Key,r),i}static fromEndpoint(e,r){let i;o.Contracts.throwIfNull(e,"endpoint");let n="string"==typeof r&&r.trim().length>0,a="object"==typeof r&&null!==r&&"function"==typeof r.getToken,d="object"==typeof r&&null!==r&&"string"==typeof r.key;if(void 0!==r&&!n&&!a&&!d)throw Error("Invalid 'auth' parameter: expected a non-empty API key string, a TokenCredential, or a KeyCredential.");return"string"==typeof r?(i=new c).setProperty(s.PropertyId.SpeechServiceConnection_Key,r):"object"==typeof r&&"function"==typeof r.getToken?i=new c(r):"object"==typeof r&&"string"==typeof r.key?(i=new c).setProperty(s.PropertyId.SpeechServiceConnection_Key,r.key):i=new c,i.setProperty(s.PropertyId.SpeechServiceConnection_Endpoint,e.href),i}}r.SpeechTranslationConfig=a;class c extends a{constructor(e){super(),this.privSpeechProperties=new s.PropertyCollection,this.outputFormat=s.OutputFormat.Simple,this.privTokenCredential=e}set authorizationToken(e){o.Contracts.throwIfNullOrWhitespace(e,"value"),this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceAuthorization_Token,e)}set speechRecognitionLanguage(e){o.Contracts.throwIfNullOrWhitespace(e,"value"),this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_RecoLanguage,e)}get speechRecognitionLanguage(){return this.privSpeechProperties.getProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_RecoLanguage])}get subscriptionKey(){return this.privSpeechProperties.getProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_Key])}get outputFormat(){return s.OutputFormat[this.privSpeechProperties.getProperty(n.OutputFormatPropertyName,void 0)]}set outputFormat(e){this.privSpeechProperties.setProperty(n.OutputFormatPropertyName,s.OutputFormat[e])}get endpointId(){return this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_EndpointId)}set endpointId(e){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_EndpointId,e)}addTargetLanguage(e){o.Contracts.throwIfNullOrWhitespace(e,"value");let r=this.targetLanguages;r.includes(e)||(r.push(e),this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_TranslationToLanguages,r.join(",")))}get targetLanguages(){return void 0!==this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0)?this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(","):[]}get voiceName(){return this.getProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_TranslationVoice])}set voiceName(e){o.Contracts.throwIfNullOrWhitespace(e,"value"),this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_TranslationVoice,e)}get region(){return this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_Region)}get tokenCredential(){return this.privTokenCredential}setProxy(e,r,i,n){this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyHostName],e),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyPort],r),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyUserName],i),this.setProperty(s.PropertyId[s.PropertyId.SpeechServiceConnection_ProxyPassword],n)}getProperty(e,r){return this.privSpeechProperties.getProperty(e,r)}setProperty(e,r){this.privSpeechProperties.setProperty(e,r)}get properties(){return this.privSpeechProperties}close(){}setServiceProperty(e,r){let i=JSON.parse(this.privSpeechProperties.getProperty(n.ServicePropertiesPropertyName,"{}"));i[e]=r,this.privSpeechProperties.setProperty(n.ServicePropertiesPropertyName,JSON.stringify(i))}setProfanity(e){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceResponse_ProfanityOption,s.ProfanityOption[e])}enableAudioLogging(){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_EnableAudioLogging,"true")}requestWordLevelTimestamps(){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps,"true")}enableDictation(){this.privSpeechProperties.setProperty(n.ForceDictationPropertyName,"true")}get speechSynthesisLanguage(){return this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthLanguage)}set speechSynthesisLanguage(e){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthLanguage,e)}get speechSynthesisVoiceName(){return this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthVoice)}set speechSynthesisVoiceName(e){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthVoice,e)}get speechSynthesisOutputFormat(){return s.SpeechSynthesisOutputFormat[this.privSpeechProperties.getProperty(s.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)]}set speechSynthesisOutputFormat(e){this.privSpeechProperties.setProperty(s.PropertyId.SpeechServiceConnection_SynthOutputFormat,s.SpeechSynthesisOutputFormat[e])}}r.SpeechTranslationConfigImpl=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SynthesisResult.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisResult=void 0,r.SynthesisResult=class{constructor(e,r,i,n){this.privResultId=e,this.privReason=r,this.privErrorDetails=i,this.privProperties=n}get resultId(){return this.privResultId}get reason(){return this.privReason}get errorDetails(){return this.privErrorDetails}get properties(){return this.privProperties}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/SynthesisVoicesResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisVoicesResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SynthesisResult{constructor(e,r,i){if(Array.isArray(r))for(let i of(super(e,n.ResultReason.VoicesListRetrieved,void 0,new n.PropertyCollection),this.privVoices=[],r))this.privVoices.push(new n.VoiceInfo(i));else super(e,n.ResultReason.Canceled,i||"Error information unavailable",new n.PropertyCollection)}get voices(){return this.privVoices}}r.SynthesisVoicesResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Synthesizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SynthesisRequest=r.Synthesizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class c{constructor(e){s.Contracts.throwIfNull(e,"speechConfig"),this.privProperties=e.properties.clone(),this.privDisposed=!1,this.privSynthesizing=!1,this.synthesisRequestQueue=new o.Queue,this.tokenCredential=e.tokenCredential}get authorizationToken(){return this.properties.getProperty(a.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){s.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(a.PropertyId.SpeechServiceAuthorization_Token,e)}get properties(){return this.privProperties}get autoDetectSourceLanguage(){return this.properties.getProperty(a.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages)===n.AutoDetectSourceLanguagesOpenRangeOptionName}buildSsml(e){let r=this.properties.getProperty(a.PropertyId.SpeechServiceConnection_SynthLanguage,"en-US"),i=this.properties.getProperty(a.PropertyId.SpeechServiceConnection_SynthVoice,""),n=c.XMLEncode(e);return this.autoDetectSourceLanguage?r="en-US":i=i||({"af-ZA":"af-ZA-AdriNeural","am-ET":"am-ET-AmehaNeural","ar-AE":"ar-AE-FatimaNeural","ar-BH":"ar-BH-AliNeural","ar-DZ":"ar-DZ-AminaNeural","ar-EG":"ar-EG-SalmaNeural","ar-IQ":"ar-IQ-BasselNeural","ar-JO":"ar-JO-SanaNeural","ar-KW":"ar-KW-FahedNeural","ar-LY":"ar-LY-ImanNeural","ar-MA":"ar-MA-JamalNeural","ar-QA":"ar-QA-AmalNeural","ar-SA":"ar-SA-HamedNeural","ar-SY":"ar-SY-AmanyNeural","ar-TN":"ar-TN-HediNeural","ar-YE":"ar-YE-MaryamNeural","bg-BG":"bg-BG-BorislavNeural","bn-BD":"bn-BD-NabanitaNeural","bn-IN":"bn-IN-BashkarNeural","ca-ES":"ca-ES-JoanaNeural","cs-CZ":"cs-CZ-AntoninNeural","cy-GB":"cy-GB-AledNeural","da-DK":"da-DK-ChristelNeural","de-AT":"de-AT-IngridNeural","de-CH":"de-CH-JanNeural","de-DE":"de-DE-KatjaNeural","el-GR":"el-GR-AthinaNeural","en-AU":"en-AU-NatashaNeural","en-CA":"en-CA-ClaraNeural","en-GB":"en-GB-LibbyNeural","en-HK":"en-HK-SamNeural","en-IE":"en-IE-ConnorNeural","en-IN":"en-IN-NeerjaNeural","en-KE":"en-KE-AsiliaNeural","en-NG":"en-NG-AbeoNeural","en-NZ":"en-NZ-MitchellNeural","en-PH":"en-PH-JamesNeural","en-SG":"en-SG-LunaNeural","en-TZ":"en-TZ-ElimuNeural","en-US":"en-US-AvaMultilingualNeural","en-ZA":"en-ZA-LeahNeural","es-AR":"es-AR-ElenaNeural","es-BO":"es-BO-MarceloNeural","es-CL":"es-CL-CatalinaNeural","es-CO":"es-CO-GonzaloNeural","es-CR":"es-CR-JuanNeural","es-CU":"es-CU-BelkysNeural","es-DO":"es-DO-EmilioNeural","es-EC":"es-EC-AndreaNeural","es-ES":"es-ES-AlvaroNeural","es-GQ":"es-GQ-JavierNeural","es-GT":"es-GT-AndresNeural","es-HN":"es-HN-CarlosNeural","es-MX":"es-MX-DaliaNeural","es-NI":"es-NI-FedericoNeural","es-PA":"es-PA-MargaritaNeural","es-PE":"es-PE-AlexNeural","es-PR":"es-PR-KarinaNeural","es-PY":"es-PY-MarioNeural","es-SV":"es-SV-LorenaNeural","es-US":"es-US-AlonsoNeural","es-UY":"es-UY-MateoNeural","es-VE":"es-VE-PaolaNeural","et-EE":"et-EE-AnuNeural","fa-IR":"fa-IR-DilaraNeural","fi-FI":"fi-FI-SelmaNeural","fil-PH":"fil-PH-AngeloNeural","fr-BE":"fr-BE-CharlineNeural","fr-CA":"fr-CA-SylvieNeural","fr-CH":"fr-CH-ArianeNeural","fr-FR":"fr-FR-DeniseNeural","ga-IE":"ga-IE-ColmNeural","gl-ES":"gl-ES-RoiNeural","gu-IN":"gu-IN-DhwaniNeural","he-IL":"he-IL-AvriNeural","hi-IN":"hi-IN-MadhurNeural","hr-HR":"hr-HR-GabrijelaNeural","hu-HU":"hu-HU-NoemiNeural","id-ID":"id-ID-ArdiNeural","is-IS":"is-IS-GudrunNeural","it-IT":"it-IT-IsabellaNeural","ja-JP":"ja-JP-NanamiNeural","jv-ID":"jv-ID-DimasNeural","kk-KZ":"kk-KZ-AigulNeural","km-KH":"km-KH-PisethNeural","kn-IN":"kn-IN-GaganNeural","ko-KR":"ko-KR-SunHiNeural","lo-LA":"lo-LA-ChanthavongNeural","lt-LT":"lt-LT-LeonasNeural","lv-LV":"lv-LV-EveritaNeural","mk-MK":"mk-MK-AleksandarNeural","ml-IN":"ml-IN-MidhunNeural","mr-IN":"mr-IN-AarohiNeural","ms-MY":"ms-MY-OsmanNeural","mt-MT":"mt-MT-GraceNeural","my-MM":"my-MM-NilarNeural","nb-NO":"nb-NO-PernilleNeural","nl-BE":"nl-BE-ArnaudNeural","nl-NL":"nl-NL-ColetteNeural","pl-PL":"pl-PL-AgnieszkaNeural","ps-AF":"ps-AF-GulNawazNeural","pt-BR":"pt-BR-FranciscaNeural","pt-PT":"pt-PT-DuarteNeural","ro-RO":"ro-RO-AlinaNeural","ru-RU":"ru-RU-SvetlanaNeural","si-LK":"si-LK-SameeraNeural","sk-SK":"sk-SK-LukasNeural","sl-SI":"sl-SI-PetraNeural","so-SO":"so-SO-MuuseNeural","sr-RS":"sr-RS-NicholasNeural","su-ID":"su-ID-JajangNeural","sv-SE":"sv-SE-SofieNeural","sw-KE":"sw-KE-RafikiNeural","sw-TZ":"sw-TZ-DaudiNeural","ta-IN":"ta-IN-PallaviNeural","ta-LK":"ta-LK-KumarNeural","ta-SG":"ta-SG-AnbuNeural","te-IN":"te-IN-MohanNeural","th-TH":"th-TH-PremwadeeNeural","tr-TR":"tr-TR-AhmetNeural","uk-UA":"uk-UA-OstapNeural","ur-IN":"ur-IN-GulNeural","ur-PK":"ur-PK-AsadNeural","uz-UZ":"uz-UZ-MadinaNeural","vi-VN":"vi-VN-HoaiMyNeural","zh-CN":"zh-CN-XiaoxiaoNeural","zh-HK":"zh-HK-HiuMaanNeural","zh-TW":"zh-TW-HsiaoChenNeural","zu-ZA":"zu-ZA-ThandoNeural"})[r],i&&(n=`<voice name='${i}'>${n}</voice>`),n=`<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xmlns:mstts='http://www.w3.org/2001/mstts' xmlns:emo='http://www.w3.org/2009/10/emotionml' xml:lang='${r}'>${n}</speak>`}async dispose(e){this.privDisposed||(e&&this.privAdapter&&await this.privAdapter.dispose(),this.privDisposed=!0)}async adapterSpeak(){if(!this.privDisposed&&!this.privSynthesizing){this.privSynthesizing=!0;let e=await this.synthesisRequestQueue.dequeue();return this.privAdapter.Speak(e.text,e.isSSML,e.requestId,e.cb,e.err,e.dataStream)}}createSynthesizerConfig(e){return new n.SynthesizerConfig(e,this.privProperties)}implCommonSynthesizeSetup(){let e="undefined"!=typeof window?"Browser":"Node",r="unknown",i="unknown";"undefined"!=typeof navigator&&(e=e+"/"+navigator.platform,r=navigator.userAgent,i=navigator.appVersion);let o=this.createSynthesizerConfig(new n.SpeechServiceConfig(new n.Context(new n.OS(e,r,i)))),s=this.privProperties.getProperty(a.PropertyId.SpeechServiceConnection_Key,void 0),c=s&&""!==s?new n.CognitiveSubscriptionKeyAuthentication(s):this.tokenCredential?new n.CognitiveTokenAuthentication(async()=>{try{let e=await this.tokenCredential.getToken("https://cognitiveservices.azure.com/.default");return e?.token??""}catch(e){throw e}},async()=>{try{let e=await this.tokenCredential.getToken("https://cognitiveservices.azure.com/.default");return e?.token??""}catch(e){throw e}}):new n.CognitiveTokenAuthentication(()=>Promise.resolve(this.privProperties.getProperty(a.PropertyId.SpeechServiceAuthorization_Token,void 0)),()=>Promise.resolve(this.privProperties.getProperty(a.PropertyId.SpeechServiceAuthorization_Token,void 0)));this.privAdapter=this.createSynthesisAdapter(c,this.privConnectionFactory,o),this.privRestAdapter=this.createRestSynthesisAdapter(c,o)}static XMLEncode(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}}r.Synthesizer=c,r.SynthesisRequest=class{constructor(e,r,i,n,o,s){this.requestId=e,this.text=r,this.isSSML=i,this.cb=n,this.err=o,this.dataStream=s}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Conversation.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationImpl=r.Conversation=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class c{constructor(){return}static createConversationAsync(e,r,i,c){let l;return(s.Contracts.throwIfNullOrUndefined(e,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","config")),s.Contracts.throwIfNullOrUndefined(e.region,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Region")),e.subscriptionKey||e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceAuthorization_Token])||s.Contracts.throwIfNullOrUndefined(e.subscriptionKey,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Key")),"string"==typeof r)?(l=new d(e,r),(0,o.marshalPromiseToCallbacks)((async()=>{})(),i,c)):(l=new d(e)).createConversationAsync(()=>{r&&r()},e=>{i&&i(e)}),l}}r.Conversation=c;class d extends c{constructor(e,r){if(super(),this.privErrors=n.ConversationConnectionConfig.restErrors,this.onConnected=e=>{this.privIsConnected=!0;try{this.privConversationTranslator?.sessionStarted&&this.privConversationTranslator.sessionStarted(this.privConversationTranslator,e)}catch(e){}},this.onDisconnected=e=>{try{this.privConversationTranslator?.sessionStopped&&this.privConversationTranslator.sessionStopped(this.privConversationTranslator,e)}catch(e){}finally{this.close(!1)}},this.onCanceled=(e,r)=>{try{this.privConversationTranslator?.canceled&&this.privConversationTranslator.canceled(this.privConversationTranslator,r)}catch(e){}},this.onParticipantUpdateCommandReceived=(e,r)=>{try{let e=this.privParticipants.getParticipant(r.id);if(void 0!==e){switch(r.key){case n.ConversationTranslatorCommandTypes.changeNickname:e.displayName=r.value;break;case n.ConversationTranslatorCommandTypes.setUseTTS:e.isUsingTts=r.value;break;case n.ConversationTranslatorCommandTypes.setProfanityFiltering:e.profanity=r.value;break;case n.ConversationTranslatorCommandTypes.setMute:e.isMuted=r.value;break;case n.ConversationTranslatorCommandTypes.setTranslateToLanguages:e.translateToLanguages=r.value}this.privParticipants.addOrUpdateParticipant(e),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.Updated,[this.toParticipant(e)],r.sessionId))}}catch(e){}},this.onLockRoomCommandReceived=()=>{},this.onMuteAllCommandReceived=(e,r)=>{try{this.privParticipants.participants.forEach(e=>e.isMuted=!e.isHost&&r.isMuted),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.Updated,this.toParticipants(!1),r.sessionId))}catch(e){}},this.onParticipantJoinCommandReceived=(e,r)=>{try{let e=this.privParticipants.addOrUpdateParticipant(r.participant);void 0!==e&&this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.JoinedConversation,[this.toParticipant(e)],r.sessionId))}catch(e){}},this.onParticipantLeaveCommandReceived=(e,r)=>{try{let e=this.privParticipants.getParticipant(r.participant.id);void 0!==e&&(this.privParticipants.deleteParticipant(r.participant.id),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.LeftConversation,[this.toParticipant(e)],r.sessionId)))}catch(e){}},this.onTranslationReceived=(e,r)=>{try{switch(r.command){case n.ConversationTranslatorMessageTypes.final:this.privConversationTranslator&&this.privConversationTranslator.transcribed(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId));break;case n.ConversationTranslatorMessageTypes.partial:this.privConversationTranslator&&this.privConversationTranslator.transcribing(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId));break;case n.ConversationTranslatorMessageTypes.instantMessage:this.privConversationTranslator&&this.privConversationTranslator.textMessageReceived(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId))}}catch(e){}},this.onParticipantsListReceived=(e,r)=>{try{if(void 0!==r.sessionToken&&null!==r.sessionToken&&(this.privRoom.token=r.sessionToken),this.privParticipants.participants=[...r.participants],void 0!==this.privParticipants.me&&(this.privIsReady=!0),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.JoinedConversation,this.toParticipants(!0),r.sessionId)),this.me.isHost){let e=this.privConversationTranslator?.properties.getProperty(a.PropertyId.ConversationTranslator_Name);void 0!==e&&e.length>0&&e!==this.me.displayName&&this.changeNicknameAsync(e)}}catch(e){}},this.onConversationExpiration=(e,r)=>{try{this.privConversationTranslator&&this.privConversationTranslator.conversationExpiration(this.privConversationTranslator,r)}catch(e){}},this.privIsConnected=!1,this.privIsDisposed=!1,this.privConversationId="",this.privProperties=new a.PropertyCollection,this.privManager=new n.ConversationManager,e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage])||e.setProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage],n.ConversationConnectionConfig.defaultLanguageCode),this.privLanguage=e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage]),r)this.privConversationId=r;else{0===e.targetLanguages.length&&e.addTargetLanguage(this.privLanguage),e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceResponse_ProfanityOption])||e.setProfanity(a.ProfanityOption.Masked);let r=e.getProperty(a.PropertyId[a.PropertyId.ConversationTranslator_Name]);null==r&&(r="Host"),s.Contracts.throwIfNullOrTooLong(r,"nickname",50),s.Contracts.throwIfNullOrTooShort(r,"nickname",2),e.setProperty(a.PropertyId[a.PropertyId.ConversationTranslator_Name],r)}this.privConfig=e,s.Contracts.throwIfNull(e,"speechConfig"),this.privProperties=e.properties.clone(),this.privIsConnected=!1,this.privParticipants=new n.InternalParticipants,this.privIsReady=!1,this.privTextMessageMaxLength=1e3}get room(){return this.privRoom}get connection(){return this.privConversationRecognizer}get config(){return this.privConfig}get conversationId(){return this.privRoom?this.privRoom.roomId:this.privConversationId}get properties(){return this.privProperties}get speechRecognitionLanguage(){return this.privLanguage}get isMutedByHost(){return!this.privParticipants.me?.isHost&&this.privParticipants.me?.isMuted}get isConnected(){return this.privIsConnected&&this.privIsReady}get participants(){return this.toParticipants(!0)}get me(){return this.toParticipant(this.privParticipants.me)}get host(){return this.toParticipant(this.privParticipants.host)}get transcriberRecognizer(){return this.privTranscriberRecognizer}get conversationInfo(){let e=this.conversationId,r=this.participants.map(e=>({id:e.id,preferredLanguage:e.preferredLanguage,voice:e.voice})),i={};for(let e of n.ConversationConnectionConfig.transcriptionEventKeys){let r=this.properties.getProperty(e,"");""!==r&&(i[e]=r)}return{id:e,participants:r,conversationProperties:i}}get canSend(){return this.privIsConnected&&!this.privParticipants.me?.isMuted}get canSendAsHost(){return this.privIsConnected&&this.privParticipants.me?.isHost}get authorizationToken(){return this.privToken}set authorizationToken(e){s.Contracts.throwIfNullOrWhitespace(e,"authorizationToken"),this.privToken=e}set conversationTranslator(e){this.privConversationTranslator=e}onToken(e){this.privConversationTranslator.onToken(e)}createConversationAsync(e,r){try{this.privConversationRecognizer&&this.handleError(Error(this.privErrors.permissionDeniedStart),r),this.privManager.createOrJoin(this.privProperties,void 0,i=>{i||this.handleError(Error(this.privErrors.permissionDeniedConnect),r),this.privRoom=i,this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}startConversationAsync(e,r){try{this.privConversationRecognizer&&this.handleError(Error(this.privErrors.permissionDeniedStart),r),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedConnect),this.privParticipants.meId=this.privRoom.participantId,this.privConversationRecognizer=n.ConversationRecognizerFactory.fromConfig(this,this.privConfig),this.privConversationRecognizer.connected=this.onConnected,this.privConversationRecognizer.disconnected=this.onDisconnected,this.privConversationRecognizer.canceled=this.onCanceled,this.privConversationRecognizer.participantUpdateCommandReceived=this.onParticipantUpdateCommandReceived,this.privConversationRecognizer.lockRoomCommandReceived=this.onLockRoomCommandReceived,this.privConversationRecognizer.muteAllCommandReceived=this.onMuteAllCommandReceived,this.privConversationRecognizer.participantJoinCommandReceived=this.onParticipantJoinCommandReceived,this.privConversationRecognizer.participantLeaveCommandReceived=this.onParticipantLeaveCommandReceived,this.privConversationRecognizer.translationReceived=this.onTranslationReceived,this.privConversationRecognizer.participantsListReceived=this.onParticipantsListReceived,this.privConversationRecognizer.conversationExpiration=this.onConversationExpiration,this.privConversationRecognizer.connect(this.privRoom.token,()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}addParticipantAsync(e,r,i){s.Contracts.throwIfNullOrUndefined(e,"Participant"),(0,o.marshalPromiseToCallbacks)(this.addParticipantImplAsync(e),r,i)}joinConversationAsync(e,r,i,n,o){try{s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","conversationId")),s.Contracts.throwIfNullOrWhitespace(r,this.privErrors.invalidArgs.replace("{arg}","nickname")),s.Contracts.throwIfNullOrWhitespace(i,this.privErrors.invalidArgs.replace("{arg}","language")),this.privManager.createOrJoin(this.privProperties,e,e=>{s.Contracts.throwIfNullOrUndefined(e,this.privErrors.permissionDeniedConnect),this.privRoom=e,this.privConfig.authorizationToken=e.cognitiveSpeechAuthToken,n&&n(e.cognitiveSpeechAuthToken)},e=>{this.handleError(e,o)})}catch(e){this.handleError(e,o)}}deleteConversationAsync(e,r){(0,o.marshalPromiseToCallbacks)(this.deleteConversationImplAsync(),e,r)}async deleteConversationImplAsync(){s.Contracts.throwIfNullOrUndefined(this.privProperties,this.privErrors.permissionDeniedConnect),s.Contracts.throwIfNullOrWhitespace(this.privRoom.token,this.privErrors.permissionDeniedConnect),await this.privManager.leave(this.privProperties,this.privRoom.token),this.dispose()}endConversationAsync(e,r){(0,o.marshalPromiseToCallbacks)(this.endConversationImplAsync(),e,r)}endConversationImplAsync(){return this.close(!0)}lockConversationAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","lock")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!0),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}muteAllParticipantsAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privConversationRecognizer,this.privErrors.permissionDeniedSend),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","mute")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!0),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}muteParticipantAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","userId")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.me.isHost||this.me.id===e||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),i);let n=this.privParticipants.getParticipantIndex(e);-1===n&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(e,!0),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}removeParticipantAsync(e,r,i){try{if(s.Contracts.throwIfDisposed(this.privIsDisposed),this.privTranscriberRecognizer&&e.hasOwnProperty("id"))(0,o.marshalPromiseToCallbacks)(this.removeParticipantImplAsync(e),r,i);else{s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","remove")),i);let n="";"string"==typeof e?n=e:e.hasOwnProperty("id")?n=e.id:e.hasOwnProperty("userId")&&(n=e.userId),s.Contracts.throwIfNullOrWhitespace(n,this.privErrors.invalidArgs.replace("{arg}","userId"));let o=this.participants.findIndex(e=>e.id===n);-1===o&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getEjectCommand(n),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}}catch(e){this.handleError(e,i)}}unlockConversationAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","unlock")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!1),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}unmuteAllParticipantsAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","unmute all")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!1),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}unmuteParticipantAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","userId")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.me.isHost||this.me.id===e||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),i);let n=this.privParticipants.getParticipantIndex(e);-1===n&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(e,!1),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}sendTextMessageAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","message")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),e.length>this.privTextMessageMaxLength&&this.handleError(Error(this.privErrors.invalidArgs.replace("{arg}","message length")),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMessageCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}setTranslatedLanguagesAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfArrayEmptyOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","languages")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getSetTranslateToLanguagesCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}changeNicknameAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","nickname")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getChangeNicknameCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}isDisposed(){return this.privIsDisposed}dispose(){this.isDisposed||(this.privIsDisposed=!0,this.config&&this.config.close(),this.privConfig=void 0,this.privLanguage=void 0,this.privProperties=void 0,this.privRoom=void 0,this.privToken=void 0,this.privManager=void 0,this.privIsConnected=!1,this.privIsReady=!1,this.privParticipants=void 0)}async connectTranscriberRecognizer(e){this.privTranscriberRecognizer&&await this.privTranscriberRecognizer.close(),await e.enforceAudioGating(),this.privTranscriberRecognizer=e,this.privTranscriberRecognizer.conversation=this}getKeepAlive(){return JSON.stringify({id:"0",nickname:this.me?this.me.displayName:"default_nickname",participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.keepAlive})}addParticipantImplAsync(e){if(void 0!==this.privParticipants.addOrUpdateParticipant(e)&&this.privTranscriberRecognizer){let r=this.conversationInfo;return r.participants=[e],this.privTranscriberRecognizer.pushConversationEvent(r,"join")}}removeParticipantImplAsync(e){this.privParticipants.deleteParticipant(e.id);let r=this.conversationInfo;return r.participants=[e],this.privTranscriberRecognizer.pushConversationEvent(r,"leave")}async close(e){try{this.privIsConnected=!1,await this.privConversationRecognizer?.close(),this.privConversationRecognizer=void 0,this.privConversationTranslator&&this.privConversationTranslator.dispose()}catch(e){throw e}e&&this.dispose()}handleCallback(e,r){if(e){try{e()}catch(e){r&&r(e)}e=void 0}}handleError(e,r){r&&(e instanceof Error?r(e.name+": "+e.message):r(e))}toParticipants(e){let r=this.privParticipants.participants.map(e=>this.toParticipant(e));return e?r:r.filter(e=>!1===e.isHost)}toParticipant(e){return new a.Participant(e.id,e.avatar,e.displayName,e.isHost,e.isMuted,e.isUsingTts,e.preferredLanguage,e.voice)}getMuteAllCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setMuteAll,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getMuteCommand(e,r){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(e,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setMute,participantId:e,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:r})}getLockCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setLockState,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getEjectCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(e,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.ejectParticipant,participantId:e,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand})}getSetTranslateToLanguagesCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setTranslateToLanguages,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getChangeNicknameCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(e,"nickname"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.changeNickname,nickname:e,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getMessageCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),s.Contracts.throwIfNullOrWhitespace(e,"message"),JSON.stringify({participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,text:e,type:n.ConversationTranslatorMessageTypes.instantMessage})}}r.ConversationImpl=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationCommon.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationCommon=void 0,r.ConversationCommon=class{constructor(e){this.privAudioConfig=e}handleCallback(e,r){if(e){try{e()}catch(e){r&&r(e)}e=void 0}}handleError(e,r){r&&(e instanceof Error?r(e.name+": "+e.message):r(e))}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationExpirationEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationExpirationEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r){super(r),this.privExpirationTime=e}get expirationTime(){return this.privExpirationTime}}r.ConversationExpirationEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationParticipantsChangedEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationParticipantsChangedEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r,i){super(i),this.privReason=e,this.privParticipant=r}get reason(){return this.privReason}get participants(){return this.privParticipant}}r.ConversationParticipantsChangedEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranscriber.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranscriber=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class d extends c.Recognizer{constructor(e,r){a.Contracts.throwIfNull(e,"speechConfig"),a.Contracts.throwIfNullOrWhitespace(e.properties.getProperty(c.PropertyId.SpeechServiceConnection_RecoLanguage),c.PropertyId[c.PropertyId.SpeechServiceConnection_RecoLanguage]),super(r,e.properties,new n.ConversationTranscriberConnectionFactory,e.tokenCredential),this.privProperties.setProperty(c.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"2"),this.privDisposedRecognizer=!1}static FromConfig(e,r,i){return r.properties.mergeTo(e.properties),new d(e,i)}get endpointId(){return a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(c.PropertyId.SpeechServiceConnection_EndpointId,"00000000-0000-0000-0000-000000000000")}get authorizationToken(){return this.properties.getProperty(c.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){a.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(c.PropertyId.SpeechServiceAuthorization_Token,e)}get speechRecognitionLanguage(){return a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(c.PropertyId.SpeechServiceConnection_RecoLanguage)}get outputFormat(){return(a.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(n.OutputFormatPropertyName,c.OutputFormat[c.OutputFormat.Simple])===c.OutputFormat[c.OutputFormat.Simple])?c.OutputFormat.Simple:c.OutputFormat.Detailed}get properties(){return this.privProperties}startTranscribingAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(o.RecognitionMode.Conversation),e,r)}stopTranscribingAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),e,r)}close(e,r){a.Contracts.throwIfDisposed(this.privDisposedRecognizer),(0,s.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}async dispose(e){this.privDisposedRecognizer||(e&&(this.privDisposedRecognizer=!0,await this.implRecognizerStop()),await super.dispose(e))}createRecognizerConfig(e){return new n.RecognizerConfig(e,this.privProperties)}createServiceRecognizer(e,r,i,o){return o.isSpeakerDiarizationEnabled=!0,new n.ConversationTranscriptionServiceRecognizer(e,r,i,o,this)}}r.ConversationTranscriber=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranscriptionResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranscriptionResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionResult{constructor(e,r,i,n,o,s,a,c,d,l,u){super(e,r,i,n,o,s,a,d,l,u),this.privSpeakerId=c}get speakerId(){return this.privSpeakerId}}r.ConversationTranscriptionResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationCanceledEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslationCanceledEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js");class o extends n.CancellationEventArgsBase{}r.ConversationTranslationCanceledEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslationEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionEventArgs{constructor(e,r,i){super(r,i),this.privResult=e}get result(){return this.privResult}}r.ConversationTranslationEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslationResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionResult.js");class o extends n.TranslationRecognitionResult{constructor(e,r,i,n,o,s,a,c,d,l,u){super(r,n,o,s,a,c,void 0,void 0,d,l,u),this.privId=e,this.privOrigLang=i}get participantId(){return this.privId}get originalLang(){return this.privOrigLang}}r.ConversationTranslationResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslator.js":function(e,r,i){var n,o;Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranslator=r.SpeechState=void 0;let s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Transcription/ConversationTranslatorConnectionFactory.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Conversation.js"),p=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Exports.js");(o=n=r.SpeechState||(r.SpeechState={}))[o.Inactive=0]="Inactive",o[o.Connecting=1]="Connecting",o[o.Connected=2]="Connected";class h extends l.TranslationRecognizer{constructor(e,r,i,o){super(e,r,new a.ConversationTranslatorConnectionFactory(o)),this.privSpeechState=n.Inactive,i&&(this.privTranslator=i,this.sessionStarted=()=>{this.privSpeechState=n.Connected},this.sessionStopped=()=>{this.privSpeechState=n.Inactive},this.recognizing=(e,r)=>{this.privTranslator.recognizing&&this.privTranslator.recognizing(this.privTranslator,r)},this.recognized=async(e,r)=>{r.result?.errorDetails?(await this.cancelSpeech(),this.fireCancelEvent(r.result.errorDetails)):this.privTranslator.recognized&&this.privTranslator.recognized(this.privTranslator,r)},this.canceled=async()=>{if(this.privSpeechState!==n.Inactive)try{await this.cancelSpeech()}catch(e){this.privSpeechState=n.Inactive}})}get state(){return this.privSpeechState}set state(e){this.privSpeechState=e}set authentication(e){this.privReco.authentication=e}onConnection(){this.privSpeechState=n.Connected}async onCancelSpeech(){this.privSpeechState=n.Inactive,await this.cancelSpeech()}fireCancelEvent(e){try{if(this.privTranslator.canceled){let r=new p.ConversationTranslationCanceledEventArgs(l.CancellationReason.Error,e,l.CancellationErrorCode.RuntimeError);this.privTranslator.canceled(this.privTranslator,r)}}catch(e){}}async cancelSpeech(){try{this.stopContinuousRecognitionAsync(),await this.privReco?.disconnect(),this.privSpeechState=n.Inactive}catch(e){}}}class f extends p.ConversationCommon{constructor(e){super(e),this.privErrors=s.ConversationConnectionConfig.restErrors,this.privIsDisposed=!1,this.privIsSpeaking=!1,this.privPlaceholderKey="abcdefghijklmnopqrstuvwxyz012345",this.privPlaceholderRegion="westus",this.privProperties=new l.PropertyCollection}get properties(){return this.privProperties}get speechRecognitionLanguage(){return this.privSpeechRecognitionLanguage}get participants(){return this.privConversation?.participants}get canSpeak(){return!!this.privConversation.isConnected&&!!this.privCTRecognizer&&!this.privIsSpeaking&&this.privCTRecognizer.state!==n.Connected&&this.privCTRecognizer.state!==n.Connecting&&!this.privConversation.isMutedByHost}onToken(e){this.privCTRecognizer.authentication=e}setServiceProperty(e,r){let i=JSON.parse(this.privProperties.getProperty(s.ServicePropertiesPropertyName,"{}"));i[e]=r,this.privProperties.setProperty(s.ServicePropertiesPropertyName,JSON.stringify(i))}joinConversationAsync(e,r,i,n,o){try{if("string"==typeof e){d.Contracts.throwIfNullOrUndefined(e,this.privErrors.invalidArgs.replace("{arg}","conversation id")),d.Contracts.throwIfNullOrWhitespace(r,this.privErrors.invalidArgs.replace("{arg}","nickname")),this.privConversation&&this.handleError(Error(this.privErrors.permissionDeniedStart),o);let a=i;for(let e of((null==a||""===a)&&(a=s.ConversationConnectionConfig.defaultLanguageCode),this.privSpeechTranslationConfig=l.SpeechTranslationConfig.fromSubscription(this.privPlaceholderKey,this.privPlaceholderRegion),this.privSpeechTranslationConfig.setProfanity(l.ProfanityOption.Masked),this.privSpeechTranslationConfig.addTargetLanguage(a),this.privSpeechTranslationConfig.setProperty(l.PropertyId[l.PropertyId.SpeechServiceConnection_RecoLanguage],a),this.privSpeechTranslationConfig.setProperty(l.PropertyId[l.PropertyId.ConversationTranslator_Name],r),[l.PropertyId.SpeechServiceConnection_Host,l.PropertyId.ConversationTranslator_Host,l.PropertyId.SpeechServiceConnection_Endpoint,l.PropertyId.SpeechServiceConnection_ProxyHostName,l.PropertyId.SpeechServiceConnection_ProxyPassword,l.PropertyId.SpeechServiceConnection_ProxyPort,l.PropertyId.SpeechServiceConnection_ProxyUserName,"ConversationTranslator_MultiChannelAudio","ConversationTranslator_Region"])){let r=this.privProperties.getProperty(e);if(r){let i="string"==typeof e?e:l.PropertyId[e];this.privSpeechTranslationConfig.setProperty(i,r)}}let c=JSON.parse(this.privProperties.getProperty(s.ServicePropertiesPropertyName,"{}"));for(let e of Object.keys(c))this.privSpeechTranslationConfig.setServiceProperty(e,c[e],l.ServicePropertyChannel.UriQueryParameter);this.privConversation=new u.ConversationImpl(this.privSpeechTranslationConfig),this.privConversation.conversationTranslator=this,this.privConversation.joinConversationAsync(e,r,a,e=>{e||this.handleError(Error(this.privErrors.permissionDeniedConnect),o),this.privSpeechTranslationConfig.authorizationToken=e,this.privConversation.room.isHost=!1,this.privConversation.startConversationAsync(()=>{this.handleCallback(n,o)},e=>{this.handleError(e,o)})},e=>{this.handleError(e,o)})}else"object"==typeof e?(d.Contracts.throwIfNullOrUndefined(e,this.privErrors.invalidArgs.replace("{arg}","conversation id")),d.Contracts.throwIfNullOrWhitespace(r,this.privErrors.invalidArgs.replace("{arg}","nickname")),this.privProperties.setProperty(l.PropertyId.ConversationTranslator_Name,r),this.privConversation=e,this.privConversation.conversationTranslator=this,this.privConversation.room.isHost=!0,d.Contracts.throwIfNullOrUndefined(this.privConversation,this.privErrors.permissionDeniedConnect),d.Contracts.throwIfNullOrUndefined(this.privConversation.room.token,this.privErrors.permissionDeniedConnect),this.privSpeechTranslationConfig=e.config,this.handleCallback(i,n)):this.handleError(Error(this.privErrors.invalidArgs.replace("{arg}","invalid conversation type")),n)}catch(e){this.handleError(e,"string"==typeof i?o:n)}}leaveConversationAsync(e,r){(0,c.marshalPromiseToCallbacks)((async()=>{await this.cancelSpeech(),await this.privConversation.endConversationImplAsync(),await this.privConversation.deleteConversationImplAsync(),this.dispose()})(),e,r)}sendTextMessageAsync(e,r,i){try{d.Contracts.throwIfNullOrUndefined(this.privConversation,this.privErrors.permissionDeniedSend),d.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}",e)),this.privConversation.sendTextMessageAsync(e,r,i)}catch(e){this.handleError(e,i)}}startTranscribingAsync(e,r){(0,c.marshalPromiseToCallbacks)((async()=>{try{d.Contracts.throwIfNullOrUndefined(this.privConversation,this.privErrors.permissionDeniedSend),d.Contracts.throwIfNullOrUndefined(this.privConversation.room.token,this.privErrors.permissionDeniedConnect),void 0===this.privCTRecognizer&&await this.connectTranslatorRecognizer(),d.Contracts.throwIfNullOrUndefined(this.privCTRecognizer,this.privErrors.permissionDeniedSend),this.canSpeak||this.handleError(Error(this.privErrors.permissionDeniedSend),r),await this.startContinuousRecognition(),this.privIsSpeaking=!0}catch(e){throw this.privIsSpeaking=!1,await this.cancelSpeech(),e}})(),e,r)}stopTranscribingAsync(e,r){(0,c.marshalPromiseToCallbacks)((async()=>{try{if(!this.privIsSpeaking)return void await this.cancelSpeech();this.privIsSpeaking=!1,await new Promise((e,r)=>{this.privCTRecognizer.stopContinuousRecognitionAsync(e,r)})}catch(e){await this.cancelSpeech()}})(),e,r)}isDisposed(){return this.privIsDisposed}dispose(e,r,i){(0,c.marshalPromiseToCallbacks)((async()=>{(!this.isDisposed||this.privIsSpeaking)&&(await this.cancelSpeech(),this.privIsDisposed=!0,this.privSpeechTranslationConfig.close(),this.privSpeechRecognitionLanguage=void 0,this.privProperties=void 0,this.privAudioConfig=void 0,this.privSpeechTranslationConfig=void 0,this.privConversation.dispose(),this.privConversation=void 0)})(),r,i)}async cancelSpeech(){try{this.privIsSpeaking=!1,await this.privCTRecognizer?.onCancelSpeech(),this.privCTRecognizer=void 0}catch(e){}}async connectTranslatorRecognizer(){try{void 0===this.privAudioConfig&&(this.privAudioConfig=l.AudioConfig.fromDefaultMicrophoneInput()),this.privSpeechTranslationConfig.getProperty(l.PropertyId[l.PropertyId.SpeechServiceConnection_Key])===this.privPlaceholderKey&&this.privSpeechTranslationConfig.setProperty(l.PropertyId[l.PropertyId.SpeechServiceConnection_Key],"");let e=()=>this.privConversation;this.privCTRecognizer=new h(this.privSpeechTranslationConfig,this.privAudioConfig,this,e)}catch(e){throw await this.cancelSpeech(),e}}startContinuousRecognition(){return new Promise((e,r)=>{this.privCTRecognizer.startContinuousRecognitionAsync(e,r)})}}r.ConversationTranslator=f},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Exports.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ConversationTranscriptionResult=r.MeetingTranscriber=r.MeetingTranscriptionCanceledEventArgs=r.MeetingImpl=r.Meeting=r.ParticipantChangedReason=r.User=r.Participant=r.ConversationTranscriber=r.ConversationTranslator=r.ConversationTranslationResult=r.ConversationTranslationEventArgs=r.ConversationTranslationCanceledEventArgs=r.ConversationParticipantsChangedEventArgs=r.ConversationExpirationEventArgs=r.ConversationCommon=r.ConversationImpl=r.Conversation=void 0;var n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Conversation.js");Object.defineProperty(r,"Conversation",{enumerable:!0,get:function(){return n.Conversation}}),Object.defineProperty(r,"ConversationImpl",{enumerable:!0,get:function(){return n.ConversationImpl}});var o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationCommon.js");Object.defineProperty(r,"ConversationCommon",{enumerable:!0,get:function(){return o.ConversationCommon}});var s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationExpirationEventArgs.js");Object.defineProperty(r,"ConversationExpirationEventArgs",{enumerable:!0,get:function(){return s.ConversationExpirationEventArgs}});var a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationParticipantsChangedEventArgs.js");Object.defineProperty(r,"ConversationParticipantsChangedEventArgs",{enumerable:!0,get:function(){return a.ConversationParticipantsChangedEventArgs}});var c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationCanceledEventArgs.js");Object.defineProperty(r,"ConversationTranslationCanceledEventArgs",{enumerable:!0,get:function(){return c.ConversationTranslationCanceledEventArgs}});var d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationEventArgs.js");Object.defineProperty(r,"ConversationTranslationEventArgs",{enumerable:!0,get:function(){return d.ConversationTranslationEventArgs}});var l=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslationResult.js");Object.defineProperty(r,"ConversationTranslationResult",{enumerable:!0,get:function(){return l.ConversationTranslationResult}});var u=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranslator.js");Object.defineProperty(r,"ConversationTranslator",{enumerable:!0,get:function(){return u.ConversationTranslator}});var p=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranscriber.js");Object.defineProperty(r,"ConversationTranscriber",{enumerable:!0,get:function(){return p.ConversationTranscriber}});var h=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/IParticipant.js");Object.defineProperty(r,"Participant",{enumerable:!0,get:function(){return h.Participant}}),Object.defineProperty(r,"User",{enumerable:!0,get:function(){return h.User}});var f=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ParticipantChangedReason.js");Object.defineProperty(r,"ParticipantChangedReason",{enumerable:!0,get:function(){return f.ParticipantChangedReason}});var m=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Meeting.js");Object.defineProperty(r,"Meeting",{enumerable:!0,get:function(){return m.Meeting}}),Object.defineProperty(r,"MeetingImpl",{enumerable:!0,get:function(){return m.MeetingImpl}});var g=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/MeetingTranscriptionCanceledEventArgs.js");Object.defineProperty(r,"MeetingTranscriptionCanceledEventArgs",{enumerable:!0,get:function(){return g.MeetingTranscriptionCanceledEventArgs}});var y=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/MeetingTranscriber.js");Object.defineProperty(r,"MeetingTranscriber",{enumerable:!0,get:function(){return y.MeetingTranscriber}});var b=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationTranscriptionResult.js");Object.defineProperty(r,"ConversationTranscriptionResult",{enumerable:!0,get:function(){return b.ConversationTranscriptionResult}})},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/IParticipant.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Participant=r.User=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");r.User=class{constructor(e){this.privUserId=e}get userId(){return this.privUserId}};class o{constructor(e,r,i,o,s,a,c,d){this.privId=e,this.privAvatar=r,this.privDisplayName=i,this.privIsHost=o,this.privIsMuted=s,this.privIsUsingTts=a,this.privPreferredLanguage=c,this.privVoice=d,this.privProperties=new n.PropertyCollection}get avatar(){return this.privAvatar}get displayName(){return this.privDisplayName}get id(){return this.privId}get preferredLanguage(){return this.privPreferredLanguage}get isHost(){return this.privIsHost}get isMuted(){return this.privIsMuted}get isUsingTts(){return this.privIsUsingTts}get voice(){return this.privVoice}get properties(){return this.privProperties}static From(e,r,i){return new o(e,"",e,!1,!1,!1,r,i)}}r.Participant=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Meeting.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.MeetingImpl=r.Meeting=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class c{constructor(){return}static createMeetingAsync(e,r,i,c){if(s.Contracts.throwIfNullOrUndefined(e,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","config")),s.Contracts.throwIfNullOrUndefined(e.region,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Region")),s.Contracts.throwIfNull(r,"meetingId"),0===r.length)throw Error("meetingId cannot be empty");e.subscriptionKey||e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceAuthorization_Token])||s.Contracts.throwIfNullOrUndefined(e.subscriptionKey,n.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Key"));let l=new d(e,r);return(0,o.marshalPromiseToCallbacks)((async()=>{})(),i,c),l}}r.Meeting=c;class d extends c{constructor(e,r){super(),this.privErrors=n.ConversationConnectionConfig.restErrors,this.onConnected=e=>{this.privIsConnected=!0;try{this.privConversationTranslator?.sessionStarted&&this.privConversationTranslator.sessionStarted(this.privConversationTranslator,e)}catch(e){}},this.onDisconnected=e=>{try{this.privConversationTranslator?.sessionStopped&&this.privConversationTranslator.sessionStopped(this.privConversationTranslator,e)}catch(e){}finally{this.close(!1)}},this.onCanceled=(e,r)=>{try{this.privConversationTranslator?.canceled&&this.privConversationTranslator.canceled(this.privConversationTranslator,r)}catch(e){}},this.onParticipantUpdateCommandReceived=(e,r)=>{try{let e=this.privParticipants.getParticipant(r.id);if(void 0!==e){switch(r.key){case n.ConversationTranslatorCommandTypes.changeNickname:e.displayName=r.value;break;case n.ConversationTranslatorCommandTypes.setUseTTS:e.isUsingTts=r.value;break;case n.ConversationTranslatorCommandTypes.setProfanityFiltering:e.profanity=r.value;break;case n.ConversationTranslatorCommandTypes.setMute:e.isMuted=r.value;break;case n.ConversationTranslatorCommandTypes.setTranslateToLanguages:e.translateToLanguages=r.value}this.privParticipants.addOrUpdateParticipant(e),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.Updated,[this.toParticipant(e)],r.sessionId))}}catch(e){}},this.onLockRoomCommandReceived=()=>{},this.onMuteAllCommandReceived=(e,r)=>{try{this.privParticipants.participants.forEach(e=>e.isMuted=!e.isHost&&r.isMuted),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.Updated,this.toParticipants(!1),r.sessionId))}catch(e){}},this.onParticipantJoinCommandReceived=(e,r)=>{try{let e=this.privParticipants.addOrUpdateParticipant(r.participant);void 0!==e&&this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.JoinedConversation,[this.toParticipant(e)],r.sessionId))}catch(e){}},this.onParticipantLeaveCommandReceived=(e,r)=>{try{let e=this.privParticipants.getParticipant(r.participant.id);void 0!==e&&(this.privParticipants.deleteParticipant(r.participant.id),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.LeftConversation,[this.toParticipant(e)],r.sessionId)))}catch(e){}},this.onTranslationReceived=(e,r)=>{try{switch(r.command){case n.ConversationTranslatorMessageTypes.final:this.privConversationTranslator&&this.privConversationTranslator.transcribed(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId));break;case n.ConversationTranslatorMessageTypes.partial:this.privConversationTranslator&&this.privConversationTranslator.transcribing(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId));break;case n.ConversationTranslatorMessageTypes.instantMessage:this.privConversationTranslator&&this.privConversationTranslator.textMessageReceived(this.privConversationTranslator,new a.ConversationTranslationEventArgs(r.payload,void 0,r.sessionId))}}catch(e){}},this.onParticipantsListReceived=(e,r)=>{try{if(void 0!==r.sessionToken&&null!==r.sessionToken&&(this.privRoom.token=r.sessionToken),this.privParticipants.participants=[...r.participants],void 0!==this.privParticipants.me&&(this.privIsReady=!0),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new a.ConversationParticipantsChangedEventArgs(a.ParticipantChangedReason.JoinedConversation,this.toParticipants(!0),r.sessionId)),this.me.isHost){let e=this.privConversationTranslator?.properties.getProperty(a.PropertyId.ConversationTranslator_Name);void 0!==e&&e.length>0&&e!==this.me.displayName&&this.changeNicknameAsync(e)}}catch(e){}},this.onConversationExpiration=(e,r)=>{try{this.privConversationTranslator&&this.privConversationTranslator.conversationExpiration(this.privConversationTranslator,r)}catch(e){}},this.privIsConnected=!1,this.privIsDisposed=!1,this.privConversationId="",this.privProperties=new a.PropertyCollection,this.privManager=new n.ConversationManager,e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage])||e.setProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage],n.ConversationConnectionConfig.defaultLanguageCode),this.privLanguage=e.getProperty(a.PropertyId[a.PropertyId.SpeechServiceConnection_RecoLanguage]),this.privConversationId=r,this.privConfig=e,s.Contracts.throwIfNull(e,"speechConfig"),this.privProperties=e.properties.clone(),this.privIsConnected=!1,this.privParticipants=new n.InternalParticipants,this.privIsReady=!1,this.privTextMessageMaxLength=1e3}get room(){return this.privRoom}get connection(){return this.privConversationRecognizer}get config(){return this.privConfig}get meetingId(){return this.privRoom?this.privRoom.roomId:this.privConversationId}get properties(){return this.privProperties}get speechRecognitionLanguage(){return this.privLanguage}get isMutedByHost(){return!this.privParticipants.me?.isHost&&this.privParticipants.me?.isMuted}get isConnected(){return this.privIsConnected&&this.privIsReady}get participants(){return this.toParticipants(!0)}get me(){return this.toParticipant(this.privParticipants.me)}get host(){return this.toParticipant(this.privParticipants.host)}get transcriberRecognizer(){return this.privTranscriberRecognizer}get meetingInfo(){let e=this.meetingId,r=this.participants.map(e=>({id:e.id,preferredLanguage:e.preferredLanguage,voice:e.voice})),i={};for(let e of n.ConversationConnectionConfig.transcriptionEventKeys){let r=this.properties.getProperty(e,"");""!==r&&(i[e]=r)}return{id:e,participants:r,meetingProperties:i}}get canSend(){return this.privIsConnected&&!this.privParticipants.me?.isMuted}get canSendAsHost(){return this.privIsConnected&&this.privParticipants.me?.isHost}get authorizationToken(){return this.privToken}set authorizationToken(e){s.Contracts.throwIfNullOrWhitespace(e,"authorizationToken"),this.privToken=e}createMeetingAsync(e,r){try{this.privConversationRecognizer&&this.handleError(Error(this.privErrors.permissionDeniedStart),r),this.privManager.createOrJoin(this.privProperties,void 0,i=>{i||this.handleError(Error(this.privErrors.permissionDeniedConnect),r),this.privRoom=i,this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}startMeetingAsync(e,r){try{this.privConversationRecognizer&&this.handleError(Error(this.privErrors.permissionDeniedStart),r),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedConnect),this.privParticipants.meId=this.privRoom.participantId,this.privConversationRecognizer.connected=this.onConnected,this.privConversationRecognizer.disconnected=this.onDisconnected,this.privConversationRecognizer.canceled=this.onCanceled,this.privConversationRecognizer.participantUpdateCommandReceived=this.onParticipantUpdateCommandReceived,this.privConversationRecognizer.lockRoomCommandReceived=this.onLockRoomCommandReceived,this.privConversationRecognizer.muteAllCommandReceived=this.onMuteAllCommandReceived,this.privConversationRecognizer.participantJoinCommandReceived=this.onParticipantJoinCommandReceived,this.privConversationRecognizer.participantLeaveCommandReceived=this.onParticipantLeaveCommandReceived,this.privConversationRecognizer.translationReceived=this.onTranslationReceived,this.privConversationRecognizer.participantsListReceived=this.onParticipantsListReceived,this.privConversationRecognizer.conversationExpiration=this.onConversationExpiration,this.privConversationRecognizer.connect(this.privRoom.token,()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}addParticipantAsync(e,r,i){s.Contracts.throwIfNullOrUndefined(e,"Participant"),(0,o.marshalPromiseToCallbacks)(this.addParticipantImplAsync(e),r,i)}joinMeetingAsync(e,r,i,n,o){try{s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","conversationId")),s.Contracts.throwIfNullOrWhitespace(r,this.privErrors.invalidArgs.replace("{arg}","nickname")),s.Contracts.throwIfNullOrWhitespace(i,this.privErrors.invalidArgs.replace("{arg}","language")),this.privManager.createOrJoin(this.privProperties,e,e=>{s.Contracts.throwIfNullOrUndefined(e,this.privErrors.permissionDeniedConnect),this.privRoom=e,this.privConfig.authorizationToken=e.cognitiveSpeechAuthToken,n&&n(e.cognitiveSpeechAuthToken)},e=>{this.handleError(e,o)})}catch(e){this.handleError(e,o)}}deleteMeetingAsync(e,r){(0,o.marshalPromiseToCallbacks)(this.deleteMeetingImplAsync(),e,r)}async deleteMeetingImplAsync(){s.Contracts.throwIfNullOrUndefined(this.privProperties,this.privErrors.permissionDeniedConnect),s.Contracts.throwIfNullOrWhitespace(this.privRoom.token,this.privErrors.permissionDeniedConnect),await this.privManager.leave(this.privProperties,this.privRoom.token),this.dispose()}endMeetingAsync(e,r){(0,o.marshalPromiseToCallbacks)(this.endMeetingImplAsync(),e,r)}endMeetingImplAsync(){return this.close(!0)}lockMeetingAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","lock")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!0),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}muteAllParticipantsAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privConversationRecognizer,this.privErrors.permissionDeniedSend),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","mute")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!0),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}muteParticipantAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","userId")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.me.isHost||this.me.id===e||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),i);let n=this.privParticipants.getParticipantIndex(e);-1===n&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(e,!0),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}removeParticipantAsync(e,r,i){try{if(s.Contracts.throwIfDisposed(this.privIsDisposed),this.privTranscriberRecognizer&&e.hasOwnProperty("id"))(0,o.marshalPromiseToCallbacks)(this.removeParticipantImplAsync(e),r,i);else{s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","remove")),i);let n="";"string"==typeof e?n=e:e.hasOwnProperty("id")?n=e.id:e.hasOwnProperty("userId")&&(n=e.userId),s.Contracts.throwIfNullOrWhitespace(n,this.privErrors.invalidArgs.replace("{arg}","userId"));let o=this.participants.findIndex(e=>e.id===n);-1===o&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getEjectCommand(n),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}}catch(e){this.handleError(e,i)}}unlockMeetingAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","unlock")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!1),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}unmuteAllParticipantsAsync(e,r){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(Error(this.privErrors.permissionDeniedConversation.replace("{command}","unmute all")),r),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!1),()=>{this.handleCallback(e,r)},e=>{this.handleError(e,r)})}catch(e){this.handleError(e,r)}}unmuteParticipantAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","userId")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.me.isHost||this.me.id===e||this.handleError(Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),i);let n=this.privParticipants.getParticipantIndex(e);-1===n&&this.handleError(Error(this.privErrors.invalidParticipantRequest),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(e,!1),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}sendTextMessageAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","message")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),e.length>this.privTextMessageMaxLength&&this.handleError(Error(this.privErrors.invalidArgs.replace("{arg}","message length")),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMessageCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}setTranslatedLanguagesAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfArrayEmptyOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","languages")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getSetTranslateToLanguagesCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}changeNicknameAsync(e,r,i){try{s.Contracts.throwIfDisposed(this.privIsDisposed),s.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),s.Contracts.throwIfNullOrWhitespace(e,this.privErrors.invalidArgs.replace("{arg}","nickname")),s.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(Error(this.privErrors.permissionDeniedSend),i),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getChangeNicknameCommand(e),()=>{this.handleCallback(r,i)},e=>{this.handleError(e,i)})}catch(e){this.handleError(e,i)}}isDisposed(){return this.privIsDisposed}dispose(){this.isDisposed||(this.privIsDisposed=!0,this.config&&this.config.close(),this.privConfig=void 0,this.privLanguage=void 0,this.privProperties=void 0,this.privRoom=void 0,this.privToken=void 0,this.privManager=void 0,this.privIsConnected=!1,this.privIsReady=!1,this.privParticipants=void 0)}async connectTranscriberRecognizer(e){this.privTranscriberRecognizer&&await this.privTranscriberRecognizer.close(),await e.enforceAudioGating(),this.privTranscriberRecognizer=e,this.privTranscriberRecognizer.meeting=this}getKeepAlive(){return JSON.stringify({id:"0",nickname:this.me?this.me.displayName:"default_nickname",participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.keepAlive})}addParticipantImplAsync(e){if(void 0!==this.privParticipants.addOrUpdateParticipant(e)&&this.privTranscriberRecognizer){let r=this.meetingInfo;return r.participants=[e],this.privTranscriberRecognizer.pushMeetingEvent(r,"join")}}removeParticipantImplAsync(e){this.privParticipants.deleteParticipant(e.id);let r=this.meetingInfo;return r.participants=[e],this.privTranscriberRecognizer.pushMeetingEvent(r,"leave")}async close(e){try{this.privIsConnected=!1,await this.privConversationRecognizer?.close(),this.privConversationRecognizer=void 0,this.privConversationTranslator&&this.privConversationTranslator.dispose()}catch(e){throw e}e&&this.dispose()}handleCallback(e,r){if(e){try{e()}catch(e){r&&r(e)}e=void 0}}handleError(e,r){r&&(e instanceof Error?r(e.name+": "+e.message):r(e))}toParticipants(e){let r=this.privParticipants.participants.map(e=>this.toParticipant(e));return e?r:r.filter(e=>!1===e.isHost)}toParticipant(e){return new a.Participant(e.id,e.avatar,e.displayName,e.isHost,e.isMuted,e.isUsingTts,e.preferredLanguage,e.voice)}getMuteAllCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingd"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setMuteAll,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getMuteCommand(e,r){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),s.Contracts.throwIfNullOrWhitespace(e,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setMute,participantId:e,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:r})}getLockCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setLockState,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getEjectCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),s.Contracts.throwIfNullOrWhitespace(e,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.ejectParticipant,participantId:e,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand})}getSetTranslateToLanguagesCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.setTranslateToLanguages,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getChangeNicknameCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),s.Contracts.throwIfNullOrWhitespace(e,"nickname"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:n.ConversationTranslatorCommandTypes.changeNickname,nickname:e,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:n.ConversationTranslatorMessageTypes.participantCommand,value:e})}getMessageCommand(e){return s.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),s.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),s.Contracts.throwIfNullOrWhitespace(e,"message"),JSON.stringify({participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,text:e,type:n.ConversationTranslatorMessageTypes.instantMessage})}}r.MeetingImpl=d},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/MeetingTranscriber.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.MeetingTranscriber=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/Exports.js");r.MeetingTranscriber=class{constructor(e){this.privAudioConfig=e,this.privProperties=new a.PropertyCollection,this.privRecognizer=void 0,this.privDisposedRecognizer=!1}get speechRecognitionLanguage(){return s.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(a.PropertyId.SpeechServiceConnection_RecoLanguage)}get properties(){return this.privProperties}get internalData(){return this.privRecognizer.internalData}get connection(){return a.Connection.fromRecognizer(this.privRecognizer)}get authorizationToken(){return this.properties.getProperty(a.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){s.Contracts.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(a.PropertyId.SpeechServiceAuthorization_Token,e)}joinMeetingAsync(e,r,i){s.Contracts.throwIfNullOrUndefined(c.MeetingImpl,"Meeting"),this.privRecognizer=new n.TranscriberRecognizer(e.config,this.privAudioConfig),s.Contracts.throwIfNullOrUndefined(this.privRecognizer,"Recognizer"),this.privRecognizer.connectMeetingCallbacks(this),(0,o.marshalPromiseToCallbacks)(e.connectTranscriberRecognizer(this.privRecognizer),r,i)}startTranscribingAsync(e,r){this.privRecognizer.startContinuousRecognitionAsync(e,r)}stopTranscribingAsync(e,r){this.privRecognizer.stopContinuousRecognitionAsync(e,r)}leaveMeetingAsync(e,r){this.privRecognizer.disconnectCallbacks(),(0,o.marshalPromiseToCallbacks)((async()=>{})(),e,r)}close(e,r){s.Contracts.throwIfDisposed(this.privDisposedRecognizer),(0,o.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}async dispose(e){!this.privDisposedRecognizer&&(this.privRecognizer&&(await this.privRecognizer.close(),this.privRecognizer=void 0),e&&(this.privDisposedRecognizer=!0))}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/MeetingTranscriptionCanceledEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.MeetingTranscriptionCanceledEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/CancellationEventArgsBase.js");class o extends n.CancellationEventArgsBase{}r.MeetingTranscriptionCanceledEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ParticipantChangedReason.js":function(e,r){var i;Object.defineProperty(r,"__esModule",{value:!0}),r.ParticipantChangedReason=void 0,(i=r.ParticipantChangedReason||(r.ParticipantChangedReason={}))[i.JoinedConversation=0]="JoinedConversation",i[i.LeftConversation=1]="LeftConversation",i[i.Updated=2]="Updated"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionCanceledEventArgs.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationRecognitionCanceledEventArgs=void 0,r.TranslationRecognitionCanceledEventArgs=class{constructor(e,r,i,n,o){this.privCancelReason=r,this.privErrorDetails=i,this.privResult=o,this.privSessionId=e,this.privErrorCode=n}get result(){return this.privResult}get sessionId(){return this.privSessionId}get reason(){return this.privCancelReason}get errorCode(){return this.privErrorCode}get errorDetails(){return this.privErrorDetails}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationRecognitionEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.RecognitionEventArgs{constructor(e,r,i){super(r,i),this.privResult=e}get result(){return this.privResult}}r.TranslationRecognitionEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognitionResult.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationRecognitionResult=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SpeechRecognitionResult{constructor(e,r,i,n,o,s,a,c,d,l,u){super(r,i,n,o,s,a,c,void 0,d,l,u),this.privTranslations=e}static fromSpeechRecognitionResult(e){return new o(void 0,e.resultId,e.reason,e.text,e.duration,e.offset,e.language,e.languageDetectionConfidence,e.errorDetails,e.json,e.properties)}get translations(){return this.privTranslations}}r.TranslationRecognitionResult=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationRecognizer.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationRecognizer=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js"),o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/PhraseDetection/PhraseDetectionContext.js"),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js"),a=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Connection.js"),c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Contracts.js"),d=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class l extends d.Recognizer{constructor(e,r,i){c.Contracts.throwIfNull(e,"speechConfig"),super(r,e.properties,i||new n.TranslationConnectionFactory,e.tokenCredential),this.privDisposedTranslationRecognizer=!1,void 0!==this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationVoice,void 0)&&c.Contracts.throwIfNullOrWhitespace(this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationVoice),d.PropertyId[d.PropertyId.SpeechServiceConnection_TranslationVoice]),c.Contracts.throwIfNullOrWhitespace(this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages),d.PropertyId[d.PropertyId.SpeechServiceConnection_TranslationToLanguages]),c.Contracts.throwIfNullOrWhitespace(this.properties.getProperty(d.PropertyId.SpeechServiceConnection_RecoLanguage),d.PropertyId[d.PropertyId.SpeechServiceConnection_RecoLanguage])}static FromConfig(e,r,i){return r.properties.mergeTo(e.properties),r.properties.getProperty(d.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,void 0)===n.AutoDetectSourceLanguagesOpenRangeOptionName&&e.properties.setProperty(d.PropertyId.SpeechServiceConnection_RecoLanguage,"en-US"),new l(e,i)}get speechRecognitionLanguage(){return c.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),this.properties.getProperty(d.PropertyId.SpeechServiceConnection_RecoLanguage)}get targetLanguages(){return c.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(",")}get voiceName(){return c.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationVoice,void 0)}get properties(){return this.privProperties}get authorizationToken(){return this.properties.getProperty(d.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(e){this.properties.setProperty(d.PropertyId.SpeechServiceAuthorization_Token,e)}recognizeOnceAsync(e,r){c.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),(0,s.marshalPromiseToCallbacks)(this.recognizeOnceAsyncImpl(o.RecognitionMode.Interactive),e,r)}startContinuousRecognitionAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(o.RecognitionMode.Conversation),e,r)}stopContinuousRecognitionAsync(e,r){(0,s.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),e,r)}removeTargetLanguage(e){if(c.Contracts.throwIfNullOrUndefined(e,"language to be removed"),void 0!==this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0)){let r=this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(","),i=r.indexOf(e);i>-1&&(r.splice(i,1),this.properties.setProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages,r.join(",")),this.updateLanguages(r))}}addTargetLanguage(e){c.Contracts.throwIfNullOrUndefined(e,"language to be added");let r=[];void 0!==this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0)?(r=this.properties.getProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(",")).includes(e)||(r.push(e),this.properties.setProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages,r.join(","))):(this.properties.setProperty(d.PropertyId.SpeechServiceConnection_TranslationToLanguages,e),r=[e]),this.updateLanguages(r)}close(e,r){c.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),(0,s.marshalPromiseToCallbacks)(this.dispose(!0),e,r)}onConnection(){}async dispose(e){!this.privDisposedTranslationRecognizer&&(this.privDisposedTranslationRecognizer=!0,e&&(await this.implRecognizerStop(),await super.dispose(e)))}createRecognizerConfig(e){return new n.RecognizerConfig(e,this.privProperties)}createServiceRecognizer(e,r,i,o){return new n.TranslationServiceRecognizer(e,r,i,o,this)}updateLanguages(e){let r=a.Connection.fromRecognizer(this);r&&(r.setMessageProperty("speech.context","translationcontext",{to:e}),r.sendMessageAsync("event",JSON.stringify({id:"translation",name:"updateLanguage",to:e})))}}r.TranslationRecognizer=l},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationSynthesisEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationSynthesisEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");class o extends n.SessionEventArgs{constructor(e,r){super(r),this.privResult=e}get result(){return this.privResult}}r.TranslationSynthesisEventArgs=o},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TranslationSynthesisResult.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TranslationSynthesisResult=void 0,r.TranslationSynthesisResult=class{constructor(e,r){this.privReason=e,this.privAudio=r}get audio(){return this.privAudio}get reason(){return this.privReason}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Translations.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.Translations=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js");r.Translations=class{constructor(){this.privMap=new n.PropertyCollection}get languages(){return this.privMap.keys}get(e,r){return this.privMap.getProperty(e,r)}set(e,r){this.privMap.setProperty(e,r)}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/TurnStatusReceivedEventArgs.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.TurnStatusReceivedEventArgs=void 0;let n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/ServiceMessages/TurnStatusPayload.js");r.TurnStatusReceivedEventArgs=class{constructor(e){this.privTurnStatus=n.TurnStatusResponsePayload.fromJSON(e)}get interactionId(){return this.privTurnStatus.interactionId}get conversationId(){return this.privTurnStatus.conversationId}get statusCode(){return this.privTurnStatus.statusCode}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/VoiceInfo.js":function(e,r){var i,n,o,s;Object.defineProperty(r,"__esModule",{value:!0}),r.VoiceInfo=r.SynthesisVoiceType=r.SynthesisVoiceGender=void 0,(o=i=r.SynthesisVoiceGender||(r.SynthesisVoiceGender={}))[o.Unknown=0]="Unknown",o[o.Female=1]="Female",o[o.Male=2]="Male",o[o.Neutral=3]="Neutral",(s=n=r.SynthesisVoiceType||(r.SynthesisVoiceType={}))[s.Unknown=0]="Unknown",s[s.OnlineNeural=1]="OnlineNeural",s[s.OnlineStandard=2]="OnlineStandard",s[s.OfflineNeural=3]="OfflineNeural",s[s.OfflineStandard=4]="OfflineStandard",s[s.OnlineNeuralHD=5]="OnlineNeuralHD";let a={[i[i.Neutral]]:i.Neutral,[i[i.Male]]:i.Male,[i[i.Female]]:i.Female},c={Neural:n.OnlineNeural,NeuralHD:n.OnlineNeuralHD};r.VoiceInfo=class{constructor(e){if(this.privStyleList=[],e){if(this.privName=e.Name,this.privLocale=e.Locale,this.privShortName=e.ShortName,this.privLocaleName=e.LocaleName,this.privDisplayName=e.DisplayName,this.privLocalName=e.LocalName,this.privVoiceType=c[e.VoiceType]||n.Unknown,this.privGender=a[e.Gender]||i.Unknown,e.StyleList&&Array.isArray(e.StyleList))for(let r of e.StyleList)this.privStyleList.push(r);this.privSampleRateHertz=e.SampleRateHertz,this.privStatus=e.Status,e.ExtendedPropertyMap&&(this.privExtendedPropertyMap=e.ExtendedPropertyMap),this.privWordsPerMinute=e.WordsPerMinute,Array.isArray(e.SecondaryLocaleList)&&(this.privSecondaryLocaleList=[...e.SecondaryLocaleList]),Array.isArray(e.RolePlayList)&&(this.privRolePlayList=[...e.RolePlayList]),e.VoiceTag&&(this.privVoiceTag=e.VoiceTag)}}get name(){return this.privName}get locale(){return this.privLocale}get shortName(){return this.privShortName}get displayName(){return this.privDisplayName}get localName(){return this.privLocalName}get localeName(){return this.privLocaleName}get gender(){return this.privGender}get voiceType(){return this.privVoiceType}get styleList(){return this.privStyleList}get sampleRateHertz(){return this.privSampleRateHertz}get status(){return this.privStatus}get extendedPropertyMap(){return this.privExtendedPropertyMap}get wordsPerMinute(){return this.privWordsPerMinute}get secondaryLocaleList(){return this.privSecondaryLocaleList}get rolePlayList(){return this.privRolePlayList}get voiceTag(){return this.privVoiceTag}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/index.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return d.default}});var n=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v1.js")),o=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v3.js")),s=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v4.js")),a=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v5.js")),c=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/nil.js")),d=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/version.js")),l=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/validate.js")),u=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/stringify.js")),p=h(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/parse.js"));function h(e){return e&&e.__esModule?e:{default:e}}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/md5.js":function(e,r){function i(e){return(e+64>>>9<<4)+14+1}function n(e,r){let i=(65535&e)+(65535&r);return(e>>16)+(r>>16)+(i>>16)<<16|65535&i}function o(e,r,i,o,s,a){var c;return n((c=n(n(r,e),n(o,a)))<<s|c>>>32-s,i)}function s(e,r,i,n,s,a,c){return o(r&i|~r&n,e,r,s,a,c)}function a(e,r,i,n,s,a,c){return o(r&n|i&~n,e,r,s,a,c)}function c(e,r,i,n,s,a,c){return o(r^i^n,e,r,s,a,c)}function d(e,r,i,n,s,a,c){return o(i^(r|~n),e,r,s,a,c)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){if("string"==typeof e){let r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(let i=0;i<r.length;++i)e[i]=r.charCodeAt(i)}return function(e){let r=[],i=32*e.length,n="0123456789abcdef";for(let o=0;o<i;o+=8){let i=e[o>>5]>>>o%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);r.push(s)}return r}(function(e,r){e[r>>5]|=128<<r%32,e[i(r)-1]=r;let o=0x67452301,l=-0x10325477,u=-0x67452302,p=0x10325476;for(let r=0;r<e.length;r+=16){let i=o,h=l,f=u,m=p;o=s(o,l,u,p,e[r],7,-0x28955b88),p=s(p,o,l,u,e[r+1],12,-0x173848aa),u=s(u,p,o,l,e[r+2],17,0x242070db),l=s(l,u,p,o,e[r+3],22,-0x3e423112),o=s(o,l,u,p,e[r+4],7,-0xa83f051),p=s(p,o,l,u,e[r+5],12,0x4787c62a),u=s(u,p,o,l,e[r+6],17,-0x57cfb9ed),l=s(l,u,p,o,e[r+7],22,-0x2b96aff),o=s(o,l,u,p,e[r+8],7,0x698098d8),p=s(p,o,l,u,e[r+9],12,-0x74bb0851),u=s(u,p,o,l,e[r+10],17,-42063),l=s(l,u,p,o,e[r+11],22,-0x76a32842),o=s(o,l,u,p,e[r+12],7,0x6b901122),p=s(p,o,l,u,e[r+13],12,-0x2678e6d),u=s(u,p,o,l,e[r+14],17,-0x5986bc72),l=s(l,u,p,o,e[r+15],22,0x49b40821),o=a(o,l,u,p,e[r+1],5,-0x9e1da9e),p=a(p,o,l,u,e[r+6],9,-0x3fbf4cc0),u=a(u,p,o,l,e[r+11],14,0x265e5a51),l=a(l,u,p,o,e[r],20,-0x16493856),o=a(o,l,u,p,e[r+5],5,-0x29d0efa3),p=a(p,o,l,u,e[r+10],9,0x2441453),u=a(u,p,o,l,e[r+15],14,-0x275e197f),l=a(l,u,p,o,e[r+4],20,-0x182c0438),o=a(o,l,u,p,e[r+9],5,0x21e1cde6),p=a(p,o,l,u,e[r+14],9,-0x3cc8f82a),u=a(u,p,o,l,e[r+3],14,-0xb2af279),l=a(l,u,p,o,e[r+8],20,0x455a14ed),o=a(o,l,u,p,e[r+13],5,-0x561c16fb),p=a(p,o,l,u,e[r+2],9,-0x3105c08),u=a(u,p,o,l,e[r+7],14,0x676f02d9),l=a(l,u,p,o,e[r+12],20,-0x72d5b376),o=c(o,l,u,p,e[r+5],4,-378558),p=c(p,o,l,u,e[r+8],11,-0x788e097f),u=c(u,p,o,l,e[r+11],16,0x6d9d6122),l=c(l,u,p,o,e[r+14],23,-0x21ac7f4),o=c(o,l,u,p,e[r+1],4,-0x5b4115bc),p=c(p,o,l,u,e[r+4],11,0x4bdecfa9),u=c(u,p,o,l,e[r+7],16,-0x944b4a0),l=c(l,u,p,o,e[r+10],23,-0x41404390),o=c(o,l,u,p,e[r+13],4,0x289b7ec6),p=c(p,o,l,u,e[r],11,-0x155ed806),u=c(u,p,o,l,e[r+3],16,-0x2b10cf7b),l=c(l,u,p,o,e[r+6],23,0x4881d05),o=c(o,l,u,p,e[r+9],4,-0x262b2fc7),p=c(p,o,l,u,e[r+12],11,-0x1924661b),u=c(u,p,o,l,e[r+15],16,0x1fa27cf8),l=c(l,u,p,o,e[r+2],23,-0x3b53a99b),o=d(o,l,u,p,e[r],6,-0xbd6ddbc),p=d(p,o,l,u,e[r+7],10,0x432aff97),u=d(u,p,o,l,e[r+14],15,-0x546bdc59),l=d(l,u,p,o,e[r+5],21,-0x36c5fc7),o=d(o,l,u,p,e[r+12],6,0x655b59c3),p=d(p,o,l,u,e[r+3],10,-0x70f3336e),u=d(u,p,o,l,e[r+10],15,-1051523),l=d(l,u,p,o,e[r+1],21,-0x7a7ba22f),o=d(o,l,u,p,e[r+8],6,0x6fa87e4f),p=d(p,o,l,u,e[r+15],10,-0x1d31920),u=d(u,p,o,l,e[r+6],15,-0x5cfebcec),l=d(l,u,p,o,e[r+13],21,0x4e0811a1),o=d(o,l,u,p,e[r+4],6,-0x8ac817e),p=d(p,o,l,u,e[r+11],10,-0x42c50dcb),u=d(u,p,o,l,e[r+2],15,0x2ad7d2bb),l=d(l,u,p,o,e[r+9],21,-0x14792c6f),o=n(o,i),l=n(l,h),u=n(u,f),p=n(p,m)}return[o,l,u,p]}(function(e){if(0===e.length)return[];let r=8*e.length,n=new Uint32Array(i(r));for(let i=0;i<r;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/native.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/nil.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default="00000000-0000-0000-0000-000000000000"},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/parse.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/validate.js"))&&n.__esModule?n:{default:n};r.default=function(e){let r;if(!(0,o.default)(e))throw TypeError("Invalid UUID");let i=new Uint8Array(16);return i[0]=(r=parseInt(e.slice(0,8),16))>>>24,i[1]=r>>>16&255,i[2]=r>>>8&255,i[3]=255&r,i[4]=(r=parseInt(e.slice(9,13),16))>>>8,i[5]=255&r,i[6]=(r=parseInt(e.slice(14,18),16))>>>8,i[7]=255&r,i[8]=(r=parseInt(e.slice(19,23),16))>>>8,i[9]=255&r,i[10]=(r=parseInt(e.slice(24,36),16))/0x10000000000&255,i[11]=r/0x100000000&255,i[12]=r>>>24&255,i[13]=r>>>16&255,i[14]=r>>>8&255,i[15]=255&r,i}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/regex.js":function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/rng.js":function(e,r){let i;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(n)};let n=new Uint8Array(16)},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/sha1.js":function(e,r){function i(e,r){return e<<r|e>>>32-r}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){let r=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],n=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0];if("string"==typeof e){let r=unescape(encodeURIComponent(e));e=[];for(let i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let o=Math.ceil((e.length/4+2)/16),s=Array(o);for(let r=0;r<o;++r){let i=new Uint32Array(16);for(let n=0;n<16;++n)i[n]=e[64*r+4*n]<<24|e[64*r+4*n+1]<<16|e[64*r+4*n+2]<<8|e[64*r+4*n+3];s[r]=i}s[o-1][14]=(e.length-1)*8/0x100000000,s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(e.length-1)*8|0;for(let e=0;e<o;++e){let o=new Uint32Array(80);for(let r=0;r<16;++r)o[r]=s[e][r];for(let e=16;e<80;++e)o[e]=i(o[e-3]^o[e-8]^o[e-14]^o[e-16],1);let a=n[0],c=n[1],d=n[2],l=n[3],u=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),s=i(a,5)+function(e,r,i,n){switch(e){case 0:return r&i^~r&n;case 1:case 3:return r^i^n;case 2:return r&i^r&n^i&n}}(n,c,d,l)+u+r[n]+o[e]>>>0;u=l,l=d,d=i(c,30)>>>0,c=a,a=s}n[0]=n[0]+a>>>0,n[1]=n[1]+c>>>0,n[2]=n[2]+d>>>0,n[3]=n[3]+l>>>0,n[4]=n[4]+u>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/stringify.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.unsafeStringify=a;var n,o=(n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/validate.js"))&&n.__esModule?n:{default:n};let s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function a(e,r=0){return s[e[r+0]]+s[e[r+1]]+s[e[r+2]]+s[e[r+3]]+"-"+s[e[r+4]]+s[e[r+5]]+"-"+s[e[r+6]]+s[e[r+7]]+"-"+s[e[r+8]]+s[e[r+9]]+"-"+s[e[r+10]]+s[e[r+11]]+s[e[r+12]]+s[e[r+13]]+s[e[r+14]]+s[e[r+15]]}r.default=function(e,r=0){let i=a(e,r);if(!(0,o.default)(i))throw TypeError("Stringified UUID is invalid");return i}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v1.js":function(e,r,i){let n,o;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var s,a=(s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/rng.js"))&&s.__esModule?s:{default:s},c=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/stringify.js");let d=0,l=0;r.default=function(e,r,i){let s=r&&i||0,u=r||Array(16),p=(e=e||{}).node||n,h=void 0!==e.clockseq?e.clockseq:o;if(null==p||null==h){let r=e.random||(e.rng||a.default)();null==p&&(p=n=[1|r[0],r[1],r[2],r[3],r[4],r[5]]),null==h&&(h=o=(r[6]<<8|r[7])&16383)}let f=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:l+1,g=f-d+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(h=h+1&16383),(g<0||f>d)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");d=f,l=m,o=h;let y=((0xfffffff&(f+=122192928e5))*1e4+m)%0x100000000;u[s++]=y>>>24&255,u[s++]=y>>>16&255,u[s++]=y>>>8&255,u[s++]=255&y;let b=f/0x100000000*1e4&0xfffffff;u[s++]=b>>>8&255,u[s++]=255&b,u[s++]=b>>>24&15|16,u[s++]=b>>>16&255,u[s++]=h>>>8|128,u[s++]=255&h;for(let e=0;e<6;++e)u[s+e]=p[e];return r||(0,c.unsafeStringify)(u)}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v3.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=s(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v35.js")),o=s(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/md5.js"));function s(e){return e&&e.__esModule?e:{default:e}}r.default=(0,n.default)("v3",48,o.default)},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v35.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.URL=r.DNS=void 0,r.default=function(e,r,i){function n(e,n,a,c){var d;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let r=[];for(let i=0;i<e.length;++i)r.push(e.charCodeAt(i));return r}(e)),"string"==typeof n&&(n=(0,s.default)(n)),(null==(d=n)?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+e.length);if(l.set(n),l.set(e,n.length),(l=i(l))[6]=15&l[6]|r,l[8]=63&l[8]|128,a){c=c||0;for(let e=0;e<16;++e)a[c+e]=l[e];return a}return(0,o.unsafeStringify)(l)}try{n.name=e}catch(e){}return n.DNS=a,n.URL=c,n};var n,o=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/stringify.js"),s=(n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/parse.js"))&&n.__esModule?n:{default:n};let a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=a;let c="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=c},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v4.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=a(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/native.js")),o=a(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/rng.js")),s=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/stringify.js");function a(e){return e&&e.__esModule?e:{default:e}}r.default=function(e,r,i){if(n.default.randomUUID&&!r&&!e)return n.default.randomUUID();let a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,r){i=i||0;for(let e=0;e<16;++e)r[i+e]=a[e];return r}return(0,s.unsafeStringify)(a)}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v5.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=s(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/v35.js")),o=s(i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/sha1.js"));function s(e){return e&&e.__esModule?e:{default:e}}r.default=(0,n.default)("v5",80,o.default)},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/validate.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/regex.js"))&&n.__esModule?n:{default:n};r.default=function(e){return"string"==typeof e&&o.default.test(e)}},"../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/version.js":function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=i("../../node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/validate.js"))&&n.__esModule?n:{default:n};r.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},"../../node_modules/process/browser.js":function(e){var r,i,n,o=e.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(i){try{return r.call(null,e,0)}catch(i){return r.call(this,e,0)}}}var d=[],l=!1,u=-1;function p(){l&&n&&(l=!1,n.length?d=n.concat(d):u=-1,d.length&&h())}function h(){if(!l){var e=c(p);l=!0;for(var r=d.length;r;){for(n=d,d=[];++u<r;)n&&n[u].run();u=-1,r=d.length}n=null,l=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(r){try{return i.call(null,e)}catch(r){return i.call(this,e)}}}(e)}}function f(e,r){this.fun=e,this.array=r}function m(){}o.nextTick=function(e){var r=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)r[i-1]=arguments[i];d.push(new f(e,r)),1!==d.length||l||c(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},"../../node_modules/sdp/sdp.js":function(e){let r={};r.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},r.localCName=r.generateIdentifier(),r.splitLines=function(e){return e.trim().split("\n").map(e=>e.trim())},r.splitSections=function(e){return e.split("\nm=").map((e,r)=>(r>0?"m="+e:e).trim()+"\r\n")},r.getDescription=function(e){let i=r.splitSections(e);return i&&i[0]},r.getMediaSections=function(e){let i=r.splitSections(e);return i.shift(),i},r.matchPrefix=function(e,i){return r.splitLines(e).filter(e=>0===e.indexOf(i))},r.parseCandidate=function(e){let r,i={foundation:(r=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let e=8;e<r.length;e+=2)switch(r[e]){case"raddr":i.relatedAddress=r[e+1];break;case"rport":i.relatedPort=parseInt(r[e+1],10);break;case"tcptype":i.tcpType=r[e+1];break;case"ufrag":i.ufrag=r[e+1],i.usernameFragment=r[e+1];break;default:void 0===i[r[e]]&&(i[r[e]]=r[e+1])}return i},r.writeCandidate=function(e){let r=[];r.push(e.foundation);let i=e.component;"rtp"===i?r.push(1):"rtcp"===i?r.push(2):r.push(i),r.push(e.protocol.toUpperCase()),r.push(e.priority),r.push(e.address||e.ip),r.push(e.port);let n=e.type;return r.push("typ"),r.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(r.push("raddr"),r.push(e.relatedAddress),r.push("rport"),r.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(r.push("tcptype"),r.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(r.push("ufrag"),r.push(e.usernameFragment||e.ufrag)),"candidate:"+r.join(" ")},r.parseIceOptions=function(e){return e.substring(14).split(" ")},r.parseRtpMap=function(e){let r=e.substring(9).split(" "),i={payloadType:parseInt(r.shift(),10)};return i.name=(r=r[0].split("/"))[0],i.clockRate=parseInt(r[1],10),i.channels=3===r.length?parseInt(r[2],10):1,i.numChannels=i.channels,i},r.writeRtpMap=function(e){let r=e.payloadType;void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType);let i=e.channels||e.numChannels||1;return"a=rtpmap:"+r+" "+e.name+"/"+e.clockRate+(1!==i?"/"+i:"")+"\r\n"},r.parseExtmap=function(e){let r=e.substring(9).split(" ");return{id:parseInt(r[0],10),direction:r[0].indexOf("/")>0?r[0].split("/")[1]:"sendrecv",uri:r[1],attributes:r.slice(2).join(" ")}},r.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},r.parseFmtp=function(e){let r,i={},n=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e<n.length;e++)i[(r=n[e].trim().split("="))[0].trim()]=r[1];return i},r.writeFmtp=function(e){let r="",i=e.payloadType;if(void 0!==e.preferredPayloadType&&(i=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){let n=[];Object.keys(e.parameters).forEach(r=>{void 0!==e.parameters[r]?n.push(r+"="+e.parameters[r]):n.push(r)}),r+="a=fmtp:"+i+" "+n.join(";")+"\r\n"}return r},r.parseRtcpFb=function(e){let r=e.substring(e.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},r.writeRtcpFb=function(e){let r="",i=e.payloadType;return void 0!==e.preferredPayloadType&&(i=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{r+="a=rtcp-fb:"+i+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),r},r.parseSsrcMedia=function(e){let r=e.indexOf(" "),i={ssrc:parseInt(e.substring(7,r),10)},n=e.indexOf(":",r);return n>-1?(i.attribute=e.substring(r+1,n),i.value=e.substring(n+1)):i.attribute=e.substring(r+1),i},r.parseSsrcGroup=function(e){let r=e.substring(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(e=>parseInt(e,10))}},r.getMid=function(e){let i=r.matchPrefix(e,"a=mid:")[0];if(i)return i.substring(6)},r.parseFingerprint=function(e){let r=e.substring(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1].toUpperCase()}},r.getDtlsParameters=function(e,i){return{role:"auto",fingerprints:r.matchPrefix(e+i,"a=fingerprint:").map(r.parseFingerprint)}},r.writeDtlsParameters=function(e,r){let i="a=setup:"+r+"\r\n";return e.fingerprints.forEach(e=>{i+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),i},r.parseCryptoLine=function(e){let r=e.substring(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},r.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?r.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},r.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;let r=e.substring(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},r.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},r.getCryptoParameters=function(e,i){return r.matchPrefix(e+i,"a=crypto:").map(r.parseCryptoLine)},r.getIceParameters=function(e,i){let n=r.matchPrefix(e+i,"a=ice-ufrag:")[0],o=r.matchPrefix(e+i,"a=ice-pwd:")[0];return n&&o?{usernameFragment:n.substring(12),password:o.substring(10)}:null},r.writeIceParameters=function(e){let r="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(r+="a=ice-lite\r\n"),r},r.parseRtpParameters=function(e){let i={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=r.splitLines(e)[0].split(" ");i.profile=n[2];for(let o=3;o<n.length;o++){let s=n[o],a=r.matchPrefix(e,"a=rtpmap:"+s+" ")[0];if(a){let n=r.parseRtpMap(a),o=r.matchPrefix(e,"a=fmtp:"+s+" ");switch(n.parameters=o.length?r.parseFmtp(o[0]):{},n.rtcpFeedback=r.matchPrefix(e,"a=rtcp-fb:"+s+" ").map(r.parseRtcpFb),i.codecs.push(n),n.name.toUpperCase()){case"RED":case"ULPFEC":i.fecMechanisms.push(n.name.toUpperCase())}}}r.matchPrefix(e,"a=extmap:").forEach(e=>{i.headerExtensions.push(r.parseExtmap(e))});let o=r.matchPrefix(e,"a=rtcp-fb:* ").map(r.parseRtcpFb);return i.codecs.forEach(e=>{o.forEach(r=>{e.rtcpFeedback.find(e=>e.type===r.type&&e.parameter===r.parameter)||e.rtcpFeedback.push(r)})}),i},r.writeRtpDescription=function(e,i){let n="";n+="m="+e+" ",n+=i.codecs.length>0?"9":"0",n+=" "+(i.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=i.codecs.map(e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",i.codecs.forEach(e=>{n+=r.writeRtpMap(e),n+=r.writeFmtp(e),n+=r.writeRtcpFb(e)});let o=0;return i.codecs.forEach(e=>{e.maxptime>o&&(o=e.maxptime)}),o>0&&(n+="a=maxptime:"+o+"\r\n"),i.headerExtensions&&i.headerExtensions.forEach(e=>{n+=r.writeExtmap(e)}),n},r.parseRtpEncodingParameters=function(e){let i,n=[],o=r.parseRtpParameters(e),s=-1!==o.fecMechanisms.indexOf("RED"),a=-1!==o.fecMechanisms.indexOf("ULPFEC"),c=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),d=c.length>0&&c[0].ssrc,l=r.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substring(17).split(" ").map(e=>parseInt(e,10)));l.length>0&&l[0].length>1&&l[0][0]===d&&(i=l[0][1]),o.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let r={ssrc:d,codecPayloadType:parseInt(e.parameters.apt,10)};d&&i&&(r.rtx={ssrc:i}),n.push(r),s&&((r=JSON.parse(JSON.stringify(r))).fec={ssrc:d,mechanism:a?"red+ulpfec":"red"},n.push(r))}}),0===n.length&&d&&n.push({ssrc:d});let u=r.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substring(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substring(5),10)*.95-16e3:void 0,n.forEach(e=>{e.maxBitrate=u})),n},r.parseRtcpParameters=function(e){let i={},n=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];n&&(i.cname=n.value,i.ssrc=n.ssrc);let o=r.matchPrefix(e,"a=rtcp-rsize");return i.reducedSize=o.length>0,i.compound=0===o.length,i.mux=r.matchPrefix(e,"a=rtcp-mux").length>0,i},r.writeRtcpParameters=function(e){let r="";return e.reducedSize&&(r+="a=rtcp-rsize\r\n"),e.mux&&(r+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(r+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),r},r.parseMsid=function(e){let i,n=r.matchPrefix(e,"a=msid:");if(1===n.length)return{stream:(i=n[0].substring(7).split(" "))[0],track:i[1]};let o=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);if(o.length>0)return{stream:(i=o[0].value.split(" "))[0],track:i[1]}},r.parseSctpDescription=function(e){let i,n=r.parseMLine(e),o=r.matchPrefix(e,"a=max-message-size:");o.length>0&&(i=parseInt(o[0].substring(19),10)),isNaN(i)&&(i=65536);let s=r.matchPrefix(e,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substring(12),10),protocol:n.fmt,maxMessageSize:i};let a=r.matchPrefix(e,"a=sctpmap:");if(a.length>0){let e=a[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},r.writeSctpDescription=function(e,r){let i=[];return i="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+r.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+r.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+r.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+r.port+" "+r.protocol+" 65535\r\n"],void 0!==r.maxMessageSize&&i.push("a=max-message-size:"+r.maxMessageSize+"\r\n"),i.join("")},r.generateSessionId=function(){return Math.random().toString().substr(2,22)},r.writeSessionBoilerplate=function(e,i,n){return"v=0\r\no="+(n||"thisisadapterortc")+" "+(e||r.generateSessionId())+" "+(void 0!==i?i:2)+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},r.getDirection=function(e,i){let n=r.splitLines(e);for(let e=0;e<n.length;e++)switch(n[e]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[e].substring(2)}return i?r.getDirection(i):"sendrecv"},r.getKind=function(e){return r.splitLines(e)[0].split(" ")[0].substring(2)},r.isRejected=function(e){return"0"===e.split(" ",2)[1]},r.parseMLine=function(e){let i=r.splitLines(e)[0].substring(2).split(" ");return{kind:i[0],port:parseInt(i[1],10),protocol:i[2],fmt:i.slice(3).join(" ")}},r.parseOLine=function(e){let i=r.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:i[0],sessionId:i[1],sessionVersion:parseInt(i[2],10),netType:i[3],addressType:i[4],address:i[5]}},r.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;let i=r.splitLines(e);for(let e=0;e<i.length;e++)if(i[e].length<2||"="!==i[e].charAt(1))return!1;return!0},e.exports=r},"../../node_modules/typewriter-effect/dist/core.js":function(e,r,i){var n=i("../../node_modules/process/browser.js");"undefined"!=typeof self&&self,e.exports=(()=>{var e={3146:(e,r,i)=>{for(var n=i(3491),o="undefined"==typeof window?i.g:window,s=["moz","webkit"],a="AnimationFrame",c=o["request"+a],d=o["cancel"+a]||o["cancelRequest"+a],l=0;!c&&l<s.length;l++)c=o[s[l]+"Request"+a],d=o[s[l]+"Cancel"+a]||o[s[l]+"CancelRequest"+a];if(!c||!d){var u=0,p=0,h=[],f=1e3/60;c=function(e){if(0===h.length){var r=n(),i=Math.max(0,f-(r-u));u=i+r,setTimeout(function(){var e=h.slice(0);h.length=0;for(var r=0;r<e.length;r++)if(!e[r].cancelled)try{e[r].callback(u)}catch(e){setTimeout(function(){throw e},0)}},Math.round(i))}return h.push({handle:++p,callback:e,cancelled:!1}),p},d=function(e){for(var r=0;r<h.length;r++)h[r].handle===e&&(h[r].cancelled=!0)}}e.exports=function(e){return c.call(o,e)},e.exports.cancel=function(){d.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=c,e.cancelAnimationFrame=d}},3491:function(e){(function(){var r,i,o,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=n&&n.hrtime?(e.exports=function(){return(r()-s)/1e6},i=n.hrtime,s=(r=function(){var e;return 1e9*(e=i())[0]+e[1]})()-1e9*n.uptime()):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}},r={};function i(n){var o=r[n];if(void 0!==o)return o.exports;var s=r[n]={exports:{}};return e[n].call(s.exports,s,s.exports,i),s.exports}i.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return i.d(r,{a:r}),r},i.d=(e,r)=>{for(var n in r)i.o(r,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var o={};return(()=>{"use strict";i.d(o,{default:()=>j});var e=i(3146),r=i.n(e);let n=function(e){return new RegExp(/<[a-z][\s\S]*>/i).test(e)},s=function(e,r){return Math.floor(Math.random()*(r-e+1))+e};var a="TYPE_CHARACTER",c="REMOVE_CHARACTER",d="REMOVE_ALL",l="REMOVE_LAST_VISIBLE_NODE",u="PAUSE_FOR",p="CALL_FUNCTION",h="ADD_HTML_TAG_ELEMENT",f="CHANGE_DELETE_SPEED",m="CHANGE_DELAY",g="CHANGE_CURSOR",y="PASTE_STRING",b="HTML_TAG";function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function _(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?C(Object(i),!0).forEach(function(r){T(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):C(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function w(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return R(e,void 0);var i=({}).toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?R(e,void 0):void 0}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,r){(null==r||r>e.length)&&(r=e.length);for(var i=0,n=Array(r);i<r;i++)n[i]=e[i];return n}function T(e,r,i){return(r=E(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function E(e){var r=function(e){if("object"!=S(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!=S(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(r)?r:r+""}let j=function(){var i;function o(i,S){var C=this;if(function(e,r){if(!(e instanceof r))throw TypeError("Cannot call a class as a function")}(this,o),T(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),T(this,"options",{strings:null,cursor:"|",delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null,onCreateTextNode:null,onRemoveNode:null}),T(this,"setupWrapperElement",function(){C.state.elements.container&&(C.state.elements.wrapper.className=C.options.wrapperClassName,C.state.elements.cursor.className=C.options.cursorClassName,C.state.elements.cursor.innerHTML=C.options.cursor,C.state.elements.container.innerHTML="",C.state.elements.container.appendChild(C.state.elements.wrapper),C.state.elements.container.appendChild(C.state.elements.cursor))}),T(this,"start",function(){return C.state.eventLoopPaused=!1,C.runEventLoop(),C}),T(this,"pause",function(){return C.state.eventLoopPaused=!0,C}),T(this,"stop",function(){return C.state.eventLoop&&((0,e.cancel)(C.state.eventLoop),C.state.eventLoop=null),C}),T(this,"pauseFor",function(e){return C.addEventToQueue(u,{ms:e}),C}),T(this,"typeOutAllStrings",function(){return"string"==typeof C.options.strings?C.typeString(C.options.strings).pauseFor(C.options.pauseFor):C.options.strings.forEach(function(e){C.typeString(e).pauseFor(C.options.pauseFor).deleteAll(C.options.deleteSpeed)}),C}),T(this,"typeString",function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(n(e))return C.typeOutHTMLString(e,r);if(e){var i=(C.options||{}).stringSplitter,o="function"==typeof i?i(e):e.split("");C.typeCharacters(o,r)}return C}),T(this,"pasteString",function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n(e)?C.typeOutHTMLString(e,r,!0):(e&&C.addEventToQueue(y,{character:e,node:r}),C)}),T(this,"typeOutHTMLString",function(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,o=((r=document.createElement("div")).innerHTML=e,r.childNodes);if(o.length>0)for(var s=0;s<o.length;s++){var a=o[s],c=a.innerHTML;a&&3!==a.nodeType?(a.innerHTML="",C.addEventToQueue(h,{node:a,parentNode:i}),n?C.pasteString(c,a):C.typeString(c,a)):a.textContent&&(n?C.pasteString(a.textContent,i):C.typeString(a.textContent,i))}return C}),T(this,"deleteAll",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"natural";return C.addEventToQueue(d,{speed:e}),C}),T(this,"changeDeleteSpeed",function(e){if(!e)throw Error("Must provide new delete speed");return C.addEventToQueue(f,{speed:e}),C}),T(this,"changeDelay",function(e){if(!e)throw Error("Must provide new delay");return C.addEventToQueue(m,{delay:e}),C}),T(this,"changeCursor",function(e){if(!e)throw Error("Must provide new cursor");return C.addEventToQueue(g,{cursor:e}),C}),T(this,"deleteChars",function(e){if(!e)throw Error("Must provide amount of characters to delete");for(var r=0;r<e;r++)C.addEventToQueue(c);return C}),T(this,"callFunction",function(e,r){if(!e||"function"!=typeof e)throw Error("Callback must be a function");return C.addEventToQueue(p,{cb:e,thisArg:r}),C}),T(this,"typeCharacters",function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||!Array.isArray(e))throw Error("Characters must be an array");return e.forEach(function(e){C.addEventToQueue(a,{character:e,node:r})}),C}),T(this,"removeCharacters",function(e){if(!e||!Array.isArray(e))throw Error("Characters must be an array");return e.forEach(function(){C.addEventToQueue(c)}),C}),T(this,"addEventToQueue",function(e,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return C.addEventToStateProperty(e,r,i,"eventQueue")}),T(this,"addReverseCalledEvent",function(e,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return C.options.loop?C.addEventToStateProperty(e,r,i,"reverseCalledEvents"):C}),T(this,"addEventToStateProperty",function(e,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,o={eventName:e,eventArgs:r||{}};return C.state[n]=i?[o].concat(w(C.state[n])):[].concat(w(C.state[n]),[o]),C}),T(this,"runEventLoop",function(){C.state.lastFrameTime||(C.state.lastFrameTime=Date.now());var e=Date.now(),i=e-C.state.lastFrameTime;if(!C.state.eventQueue.length){if(!C.options.loop)return;C.state.eventQueue=w(C.state.calledEvents),C.state.calledEvents=[],C.options=_({},C.state.initialOptions)}if(C.state.eventLoop=r()(C.runEventLoop),!C.state.eventLoopPaused){if(C.state.pauseUntil){if(e<C.state.pauseUntil)return;C.state.pauseUntil=null}var n,o=w(C.state.eventQueue),S=o.shift();if(!(i<=(n=S.eventName===l||S.eventName===c?"natural"===C.options.deleteSpeed?s(40,80):C.options.deleteSpeed:"natural"===C.options.delay?s(120,160):C.options.delay))){var R=S.eventName,T=S.eventArgs;switch(C.logInDevMode({currentEvent:S,state:C.state,delay:n}),R){case y:case a:var E=T.character,j=T.node,P=document.createTextNode(E),k=P;C.options.onCreateTextNode&&"function"==typeof C.options.onCreateTextNode&&(k=C.options.onCreateTextNode(E,P)),k&&(j?j.appendChild(k):C.state.elements.wrapper.appendChild(k)),C.state.visibleNodes=[].concat(w(C.state.visibleNodes),[{type:"TEXT_NODE",character:E,node:k}]);break;case c:o.unshift({eventName:l,eventArgs:{removingCharacterNode:!0}});break;case u:var O=S.eventArgs.ms;C.state.pauseUntil=Date.now()+parseInt(O);break;case p:var I=S.eventArgs,x=I.cb,A=I.thisArg;x.call(A,{elements:C.state.elements});break;case h:var M=S.eventArgs,D=M.node,N=M.parentNode;N?N.appendChild(D):C.state.elements.wrapper.appendChild(D),C.state.visibleNodes=[].concat(w(C.state.visibleNodes),[{type:b,node:D,parentNode:N||C.state.elements.wrapper}]);break;case d:var B=C.state.visibleNodes,L=T.speed,F=[];L&&F.push({eventName:f,eventArgs:{speed:L,temp:!0}});for(var z=0,U=B.length;z<U;z++)F.push({eventName:l,eventArgs:{removingCharacterNode:!1}});L&&F.push({eventName:f,eventArgs:{speed:C.options.deleteSpeed,temp:!0}}),o.unshift.apply(o,F);break;case l:var H=S.eventArgs.removingCharacterNode;if(C.state.visibleNodes.length){var q=C.state.visibleNodes.pop(),W=q.type,V=q.node,G=q.character;C.options.onRemoveNode&&"function"==typeof C.options.onRemoveNode&&C.options.onRemoveNode({node:V,character:G}),V&&V.parentNode.removeChild(V),W===b&&H&&o.unshift({eventName:l,eventArgs:{}})}break;case f:C.options.deleteSpeed=S.eventArgs.speed;break;case m:C.options.delay=S.eventArgs.delay;break;case g:C.options.cursor=S.eventArgs.cursor,C.state.elements.cursor.innerHTML=S.eventArgs.cursor}C.options.loop&&(S.eventName===l||S.eventArgs&&S.eventArgs.temp||(C.state.calledEvents=[].concat(w(C.state.calledEvents),[S]))),C.state.eventQueue=o,C.state.lastFrameTime=e}}}),i)if("string"==typeof i){var R=document.querySelector(i);if(!R)throw Error("Could not find container element");this.state.elements.container=R}else this.state.elements.container=i;S&&(this.options=_(_({},this.options),S)),this.state.initialOptions=_({},this.options),this.init()}return i=[{key:"init",value:function(){var e;this.setupWrapperElement(),this.addEventToQueue(g,{cursor:this.options.cursor},!0),this.addEventToQueue(d,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||((e=document.createElement("style")).appendChild(document.createTextNode(".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}")),document.head.appendChild(e),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(e){this.options.devMode&&console.log(e)}}],function(e,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o}()})(),o.default})()},"../../node_modules/ua-parser-js/src/ua-parser.js":function(e,r,i){e=i.nmd(e),function(i,n){"use strict";var o="function",s="undefined",a="object",c="string",d="major",l="model",u="name",p="type",h="vendor",f="version",m="architecture",g="console",y="mobile",b="tablet",S="smarttv",C="wearable",_="embedded",w="Amazon",R="Apple",T="ASUS",E="BlackBerry",j="Browser",P="Chrome",k="Firefox",O="Google",I="Huawei",x="Microsoft",A="Motorola",M="Opera",D="Samsung",N="Sharp",B="Sony",L="Xiaomi",F="Zebra",z="Facebook",U="Chromium OS",H="Mac OS",q=" Browser",W=function(e,r){var i={};for(var n in e)r[n]&&r[n].length%2==0?i[n]=r[n].concat(e[n]):i[n]=e[n];return i},V=function(e){for(var r={},i=0;i<e.length;i++)r[e[i].toUpperCase()]=e[i];return r},G=function(e,r){return typeof e===c&&-1!==K(r).indexOf(K(e))},K=function(e){return e.toLowerCase()},J=function(e,r){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof r===s?e:e.substring(0,500)},X=function(e,r){for(var i,n,s,c,d,l,u=0;u<r.length&&!d;){var p=r[u],h=r[u+1];for(i=n=0;i<p.length&&!d&&p[i];)if(d=p[i++].exec(e))for(s=0;s<h.length;s++)l=d[++n],typeof(c=h[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):void 0:this[c[0]]=l?c[1].call(this,l,c[2]):void 0:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):void 0):this[c]=l||void 0;u+=2}},$=function(e,r){for(var i in r)if(typeof r[i]===a&&r[i].length>0){for(var n=0;n<r[i].length;n++)if(G(r[i][n],e))return"?"===i?void 0:i}else if(G(r[i],e))return"?"===i?void 0:i;return r.hasOwnProperty("*")?r["*"]:e},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,f],[/opios[\/ ]+([\w\.]+)/i],[f,[u,M+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[f,[u,M+" GX"]],[/\bopr\/([\w\.]+)/i],[f,[u,M]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[f,[u,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[f,[u,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,f],[/quark(?:pc)?\/([-\w\.]+)/i],[f,[u,"Quark"]],[/\bddg\/([\w\.]+)/i],[f,[u,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[u,"UC"+j]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[f,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[f,[u,"Smart Lenovo "+j]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+j],f],[/\bfocus\/([\w\.]+)/i],[f,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[u,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[u,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[f,[u,k]],[/\bqihoobrowser\/?([\w\.]*)/i],[f,[u,"360"]],[/\b(qq)\/([\w\.]+)/i],[[u,/(.+)/,"$1Browser"],f],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1"+q],f],[/samsungbrowser\/([\w\.]+)/i],[f,[u,D+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[f,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[u,f],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[u],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[f,u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,z],f],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[u,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,P+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[u,"Android "+j]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[f,$,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],f],[/(wolvic|librewolf)\/([\w\.]+)/i],[u,f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[u,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,[f,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[u,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,K]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[h,D],[p,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[h,D],[p,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[h,R],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[h,R],[p,b]],[/(macintosh);/i],[l,[h,R]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[h,N],[p,y]],[/(?:honor)([-\w ]+)[;\)]/i],[l,[h,"Honor"],[p,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[h,I],[p,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[h,I],[p,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[l,/_/g," "],[h,L],[p,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[h,L],[p,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[h,"OPPO"],[p,y]],[/\b(opd2\d{3}a?) bui/i],[l,[h,"OPPO"],[p,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[h,"Vivo"],[p,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[h,"Realme"],[p,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[h,A],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[h,A],[p,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[h,"LG"],[p,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[h,"LG"],[p,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[h,"Lenovo"],[p,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[h,"Nokia"],[p,y]],[/(pixel c)\b/i],[l,[h,O],[p,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[h,O],[p,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[h,B],[p,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[h,B],[p,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[h,"OnePlus"],[p,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[h,w],[p,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[h,w],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[l,h,[p,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[h,E],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[h,T],[p,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[h,T],[p,y]],[/(nexus 9)/i],[l,[h,"HTC"],[p,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[l,/_/g," "],[p,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[h,"TCL"],[p,b]],[/(itel) ((\w+))/i],[[h,K],l,[p,$,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[h,"Acer"],[p,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[h,"Meizu"],[p,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[h,"Ulefone"],[p,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[h,"Energizer"],[p,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[h,"Cat"],[p,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[h,"Smartfren"],[p,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[h,"Nothing"],[p,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,l,[p,y]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,l,[p,b]],[/(surface duo)/i],[l,[h,x],[p,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[h,"Fairphone"],[p,y]],[/(u304aa)/i],[l,[h,"AT&T"],[p,y]],[/\bsie-(\w*)/i],[l,[h,"Siemens"],[p,y]],[/\b(rct\w+) b/i],[l,[h,"RCA"],[p,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[h,"Dell"],[p,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[h,"Verizon"],[p,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[h,"Barnes & Noble"],[p,b]],[/\b(tm\d{3}\w+) b/i],[l,[h,"NuVision"],[p,b]],[/\b(k88) b/i],[l,[h,"ZTE"],[p,b]],[/\b(nx\d{3}j) b/i],[l,[h,"ZTE"],[p,y]],[/\b(gen\d{3}) b.+49h/i],[l,[h,"Swiss"],[p,y]],[/\b(zur\d{3}) b/i],[l,[h,"Swiss"],[p,b]],[/\b((zeki)?tb.*\b) b/i],[l,[h,"Zeki"],[p,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],l,[p,b]],[/\b(ns-?\w{0,9}) b/i],[l,[h,"Insignia"],[p,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[h,"NextBook"],[p,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],l,[p,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],l,[p,y]],[/\b(ph-1) /i],[l,[h,"Essential"],[p,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[h,"Envizen"],[p,b]],[/\b(trio[-\w\. ]+) b/i],[l,[h,"MachSpeed"],[p,b]],[/\btu_(1491) b/i],[l,[h,"Rotor"],[p,b]],[/(shield[\w ]+) b/i],[l,[h,"Nvidia"],[p,b]],[/(sprint) (\w+)/i],[h,l,[p,y]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[h,x],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[h,F],[p,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[h,F],[p,y]],[/smart-tv.+(samsung)/i],[h,[p,S]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[h,D],[p,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[p,S]],[/(apple) ?tv/i],[h,[l,R+" TV"],[p,S]],[/crkey/i],[[l,P+"cast"],[h,O],[p,S]],[/droid.+aft(\w+)( bui|\))/i],[l,[h,w],[p,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[h,N],[p,S]],[/(bravia[\w ]+)( bui|\))/i],[l,[h,B],[p,S]],[/(mitv-\w{5}) bui/i],[l,[h,L],[p,S]],[/Hbbtv.*(technisat) (.*);/i],[h,l,[p,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,J],[l,J],[p,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,l,[p,g]],[/droid.+; (shield) bui/i],[l,[h,"Nvidia"],[p,g]],[/(playstation [345portablevi]+)/i],[l,[h,B],[p,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[h,x],[p,g]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[l,[h,D],[p,C]],[/((pebble))app/i],[h,l,[p,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[h,R],[p,C]],[/droid.+; (glass) \d/i],[l,[h,O],[p,C]],[/droid.+; (wt63?0{2,3})\)/i],[l,[h,F],[p,C]],[/droid.+; (glass) \d/i],[l,[h,O],[p,C]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,l,[p,C]],[/; (quest( \d| pro)?)/i],[l,[h,z],[p,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,_]],[/(aeobc)\b/i],[l,[h,w],[p,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[p,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,y]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[u,f],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,f],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[f,$,Q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,$,Q],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,H],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,f],[/\(bb(10);/i],[f,[u,E]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[u,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,U],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,f],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,f]]},Z=function(e,r){if(typeof e===a&&(r=e,e=void 0),!(this instanceof Z))return new Z(e,r).getResult();var n=typeof i!==s&&i.navigator?i.navigator:void 0,g=e||(n&&n.userAgent?n.userAgent:""),S=n&&n.userAgentData?n.userAgentData:void 0,C=r?W(Y,r):Y,_=n&&n.userAgent==g;return this.getBrowser=function(){var e,r={};return r[u]=void 0,r[f]=void 0,X.call(r,g,C.browser),r[d]=typeof(e=r[f])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,_&&n&&n.brave&&typeof n.brave.isBrave==o&&(r[u]="Brave"),r},this.getCPU=function(){var e={};return e[m]=void 0,X.call(e,g,C.cpu),e},this.getDevice=function(){var e={};return e[h]=void 0,e[l]=void 0,e[p]=void 0,X.call(e,g,C.device),_&&!e[p]&&S&&S.mobile&&(e[p]=y),_&&"Macintosh"==e[l]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[l]="iPad",e[p]=b),e},this.getEngine=function(){var e={};return e[u]=void 0,e[f]=void 0,X.call(e,g,C.engine),e},this.getOS=function(){var e={};return e[u]=void 0,e[f]=void 0,X.call(e,g,C.os),_&&!e[u]&&S&&S.platform&&"Unknown"!=S.platform&&(e[u]=S.platform.replace(/chrome os/i,U).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===c&&e.length>500?J(e,500):e,this},this.setUA(g),this};Z.VERSION="1.0.40",Z.BROWSER=V([u,f,d]),Z.CPU=V([m]),Z.DEVICE=V([l,h,p,g,y,S,b,C,_]),Z.ENGINE=Z.OS=V([u,f]),typeof r!==s?(typeof e!==s&&e.exports&&(r=e.exports=Z),r.UAParser=Z):typeof define===o&&define.amd?define(function(){return Z}):typeof i!==s&&(i.UAParser=Z);var ee=typeof i!==s&&(i.jQuery||i.Zepto);if(ee&&!ee.ua){var et=new Z;ee.ua=et.getResult(),ee.ua.get=function(){return et.getUA()},ee.ua.set=function(e){et.setUA(e);var r=et.getResult();for(var i in r)ee.ua[i]=r[i]}}}("object"==typeof window?window:this)},"?9f47":function(){},"?bfaf":function(){},"?6a81":function(){},"?7dff":function(){},"?8dcf":function(){},"?de9d":function(){},"?5898":function(){},"../../node_modules/core-js/internals/a-callable.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js"),o=i("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(o(e)+" is not a function")}},"../../node_modules/core-js/internals/a-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-constructor.js"),o=i("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(o(e)+" is not a constructor")}},"../../node_modules/core-js/internals/a-possible-prototype.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-possible-prototype.js"),o=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s("Can't set "+o(e)+" as a prototype")}},"../../node_modules/core-js/internals/add-to-unscopables.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/well-known-symbol.js"),o=i("../../node_modules/core-js/internals/object-create.js"),s=i("../../node_modules/core-js/internals/object-define-property.js").f,a=n("unscopables"),c=Array.prototype;void 0===c[a]&&s(c,a,{configurable:!0,value:o(null)}),e.exports=function(e){c[a][e]=!0}},"../../node_modules/core-js/internals/advance-string-index.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/string-multibyte.js").charAt;e.exports=function(e,r,i){return r+(i?n(e,r).length:1)}},"../../node_modules/core-js/internals/an-instance.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),o=TypeError;e.exports=function(e,r){if(n(r,e))return e;throw new o("Incorrect invocation")}},"../../node_modules/core-js/internals/an-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-object.js"),o=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(o(e)+" is not an object")}},"../../node_modules/core-js/internals/array-buffer-basic-detection.js":function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"../../node_modules/core-js/internals/array-buffer-view-core.js":function(e,r,i){var n,o,s,a=i("../../node_modules/core-js/internals/array-buffer-basic-detection.js"),c=i("../../node_modules/core-js/internals/descriptors.js"),d=i("../../node_modules/core-js/internals/global-this.js"),l=i("../../node_modules/core-js/internals/is-callable.js"),u=i("../../node_modules/core-js/internals/is-object.js"),p=i("../../node_modules/core-js/internals/has-own-property.js"),h=i("../../node_modules/core-js/internals/classof.js"),f=i("../../node_modules/core-js/internals/try-to-string.js"),m=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),g=i("../../node_modules/core-js/internals/define-built-in.js"),y=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),b=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),S=i("../../node_modules/core-js/internals/object-get-prototype-of.js"),C=i("../../node_modules/core-js/internals/object-set-prototype-of.js"),_=i("../../node_modules/core-js/internals/well-known-symbol.js"),w=i("../../node_modules/core-js/internals/uid.js"),R=i("../../node_modules/core-js/internals/internal-state.js"),T=R.enforce,E=R.get,j=d.Int8Array,P=j&&j.prototype,k=d.Uint8ClampedArray,O=k&&k.prototype,I=j&&S(j),x=P&&S(P),A=Object.prototype,M=d.TypeError,D=_("toStringTag"),N=w("TYPED_ARRAY_TAG"),B="TypedArrayConstructor",L=a&&!!C&&"Opera"!==h(d.opera),F=!1,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},H=function(e){var r=S(e);if(u(r)){var i=E(r);return i&&p(i,B)?i[B]:H(r)}},q=function(e){if(!u(e))return!1;var r=h(e);return p(z,r)||p(U,r)};for(n in z)(s=(o=d[n])&&o.prototype)?T(s)[B]=o:L=!1;for(n in U)(s=(o=d[n])&&o.prototype)&&(T(s)[B]=o);if((!L||!l(I)||I===Function.prototype)&&(I=function(){throw new M("Incorrect invocation")},L))for(n in z)d[n]&&C(d[n],I);if((!L||!x||x===A)&&(x=I.prototype,L))for(n in z)d[n]&&C(d[n].prototype,x);if(L&&S(O)!==x&&C(O,x),c&&!p(x,D))for(n in F=!0,y(x,D,{configurable:!0,get:function(){return u(this)?this[N]:void 0}}),z)d[n]&&m(d[n],N,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:F&&N,aTypedArray:function(e){if(q(e))return e;throw new M("Target is not a typed array")},aTypedArrayConstructor:function(e){if(l(e)&&(!C||b(I,e)))return e;throw new M(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,r,i,n){if(c){if(i)for(var o in z){var s=d[o];if(s&&p(s.prototype,e))try{delete s.prototype[e]}catch(i){try{s.prototype[e]=r}catch(e){}}}(!x[e]||i)&&g(x,e,i?r:L&&P[e]||r,n)}},exportTypedArrayStaticMethod:function(e,r,i){var n,o;if(c){if(C){if(i){for(n in z)if((o=d[n])&&p(o,e))try{delete o[e]}catch(e){}}if(I[e]&&!i)return;try{return g(I,e,i?r:L&&I[e]||r)}catch(e){}}for(n in z)(o=d[n])&&(!o[e]||i)&&g(o,e,r)}},getTypedArrayConstructor:H,isView:function(e){if(!u(e))return!1;var r=h(e);return"DataView"===r||p(z,r)||p(U,r)},isTypedArray:q,TypedArray:I,TypedArrayPrototype:x}},"../../node_modules/core-js/internals/array-buffer.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/descriptors.js"),a=i("../../node_modules/core-js/internals/array-buffer-basic-detection.js"),c=i("../../node_modules/core-js/internals/function-name.js"),d=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),l=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),u=i("../../node_modules/core-js/internals/define-built-ins.js"),p=i("../../node_modules/core-js/internals/fails.js"),h=i("../../node_modules/core-js/internals/an-instance.js"),f=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),m=i("../../node_modules/core-js/internals/to-length.js"),g=i("../../node_modules/core-js/internals/to-index.js"),y=i("../../node_modules/core-js/internals/math-fround.js"),b=i("../../node_modules/core-js/internals/ieee754.js"),S=i("../../node_modules/core-js/internals/object-get-prototype-of.js"),C=i("../../node_modules/core-js/internals/object-set-prototype-of.js"),_=i("../../node_modules/core-js/internals/array-fill.js"),w=i("../../node_modules/core-js/internals/array-slice.js"),R=i("../../node_modules/core-js/internals/inherit-if-required.js"),T=i("../../node_modules/core-js/internals/copy-constructor-properties.js"),E=i("../../node_modules/core-js/internals/set-to-string-tag.js"),j=i("../../node_modules/core-js/internals/internal-state.js"),P=c.PROPER,k=c.CONFIGURABLE,O="ArrayBuffer",I="DataView",x="prototype",A="Wrong index",M=j.getterFor(O),D=j.getterFor(I),N=j.set,B=n[O],L=B,F=L&&L[x],z=n[I],U=z&&z[x],H=Object.prototype,q=n.Array,W=n.RangeError,V=o(_),G=o([].reverse),K=b.pack,J=b.unpack,X=function(e){return[255&e]},$=function(e){return[255&e,e>>8&255]},Q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Z=function(e){return K(y(e),23,4)},ee=function(e){return K(e,52,8)},et=function(e,r,i){l(e[x],r,{configurable:!0,get:function(){return i(this)[r]}})},er=function(e,r,i,n){var o=D(e),s=g(i);if(s+r>o.byteLength)throw new W(A);var a=o.bytes,c=s+o.byteOffset,d=w(a,c,c+r);return n?d:G(d)},ei=function(e,r,i,n,o,s){var a=D(e),c=g(i),d=n(+o),l=!!s;if(c+r>a.byteLength)throw new W(A);for(var u=a.bytes,p=c+a.byteOffset,h=0;h<r;h++)u[p+h]=d[l?h:r-h-1]};if(a){var en=P&&B.name!==O;!p(function(){B(1)})||!p(function(){new B(-1)})||p(function(){return new B,new B(1.5),new B(NaN),1!==B.length||en&&!k})?((L=function(e){return h(this,F),R(new B(g(e)),this,L)})[x]=F,F.constructor=L,T(L,B)):en&&k&&d(B,"name",O),C&&S(U)!==H&&C(U,H);var eo=new z(new L(2)),es=o(U.setInt8);eo.setInt8(0,0x80000000),eo.setInt8(1,0x80000001),(eo.getInt8(0)||!eo.getInt8(1))&&u(U,{setInt8:function(e,r){es(this,e,r<<24>>24)},setUint8:function(e,r){es(this,e,r<<24>>24)}},{unsafe:!0})}else F=(L=function(e){h(this,F);var r=g(e);N(this,{type:O,bytes:V(q(r),0),byteLength:r}),s||(this.byteLength=r,this.detached=!1)})[x],U=(z=function(e,r,i){h(this,U),h(e,F);var n=M(e),o=n.byteLength,a=f(r);if(a<0||a>o)throw new W("Wrong offset");if(i=void 0===i?o-a:m(i),a+i>o)throw new W("Wrong length");N(this,{type:I,buffer:e,byteLength:i,byteOffset:a,bytes:n.bytes}),s||(this.buffer=e,this.byteLength=i,this.byteOffset=a)})[x],s&&(et(L,"byteLength",M),et(z,"buffer",D),et(z,"byteLength",D),et(z,"byteOffset",D)),u(U,{getInt8:function(e){return er(this,1,e)[0]<<24>>24},getUint8:function(e){return er(this,1,e)[0]},getInt16:function(e){var r=er(this,2,e,arguments.length>1&&arguments[1]);return(r[1]<<8|r[0])<<16>>16},getUint16:function(e){var r=er(this,2,e,arguments.length>1&&arguments[1]);return r[1]<<8|r[0]},getInt32:function(e){return Y(er(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Y(er(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return J(er(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return J(er(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,r){ei(this,1,e,X,r)},setUint8:function(e,r){ei(this,1,e,X,r)},setInt16:function(e,r){ei(this,2,e,$,r,arguments.length>2&&arguments[2])},setUint16:function(e,r){ei(this,2,e,$,r,arguments.length>2&&arguments[2])},setInt32:function(e,r){ei(this,4,e,Q,r,arguments.length>2&&arguments[2])},setUint32:function(e,r){ei(this,4,e,Q,r,arguments.length>2&&arguments[2])},setFloat32:function(e,r){ei(this,4,e,Z,r,arguments.length>2&&arguments[2])},setFloat64:function(e,r){ei(this,8,e,ee,r,arguments.length>2&&arguments[2])}});E(L,O),E(z,I),e.exports={ArrayBuffer:L,DataView:z}},"../../node_modules/core-js/internals/array-fill.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-object.js"),o=i("../../node_modules/core-js/internals/to-absolute-index.js"),s=i("../../node_modules/core-js/internals/length-of-array-like.js");e.exports=function(e){for(var r=n(this),i=s(r),a=arguments.length,c=o(a>1?arguments[1]:void 0,i),d=a>2?arguments[2]:void 0,l=void 0===d?i:o(d,i);l>c;)r[c++]=e;return r}},"../../node_modules/core-js/internals/array-from-constructor-and-list.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/length-of-array-like.js");e.exports=function(e,r,i){for(var o=0,s=arguments.length>2?i:n(r),a=new e(s);s>o;)a[o]=r[o++];return a}},"../../node_modules/core-js/internals/array-from.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-context.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/to-object.js"),a=i("../../node_modules/core-js/internals/call-with-safe-iteration-closing.js"),c=i("../../node_modules/core-js/internals/is-array-iterator-method.js"),d=i("../../node_modules/core-js/internals/is-constructor.js"),l=i("../../node_modules/core-js/internals/length-of-array-like.js"),u=i("../../node_modules/core-js/internals/create-property.js"),p=i("../../node_modules/core-js/internals/get-iterator.js"),h=i("../../node_modules/core-js/internals/get-iterator-method.js"),f=Array;e.exports=function(e){var r,i,m,g,y,b,S=s(e),C=d(this),_=arguments.length,w=_>1?arguments[1]:void 0,R=void 0!==w;R&&(w=n(w,_>2?arguments[2]:void 0));var T=h(S),E=0;if(T&&!(this===f&&c(T)))for(i=C?new this:[],y=(g=p(S,T)).next;!(m=o(y,g)).done;E++)b=R?a(g,w,[m.value,E],!0):m.value,u(i,E,b);else for(r=l(S),i=C?new this(r):f(r);r>E;E++)b=R?w(S[E],E):S[E],u(i,E,b);return i.length=E,i}},"../../node_modules/core-js/internals/array-includes.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-indexed-object.js"),o=i("../../node_modules/core-js/internals/to-absolute-index.js"),s=i("../../node_modules/core-js/internals/length-of-array-like.js"),a=function(e){return function(r,i,a){var c,d=n(r),l=s(d);if(0===l)return!e&&-1;var u=o(a,l);if(e&&i!=i){for(;l>u;)if((c=d[u++])!=c)return!0}else for(;l>u;u++)if((e||u in d)&&d[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"../../node_modules/core-js/internals/array-iteration.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-context.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/indexed-object.js"),a=i("../../node_modules/core-js/internals/to-object.js"),c=i("../../node_modules/core-js/internals/length-of-array-like.js"),d=i("../../node_modules/core-js/internals/array-species-create.js"),l=o([].push),u=function(e){var r=1===e,i=2===e,o=3===e,u=4===e,p=6===e,h=7===e,f=5===e||p;return function(m,g,y,b){for(var S,C,_=a(m),w=s(_),R=c(w),T=n(g,y),E=0,j=b||d,P=r?j(m,R):i||h?j(m,0):void 0;R>E;E++)if((f||E in w)&&(C=T(S=w[E],E,_),e))if(r)P[E]=C;else if(C)switch(e){case 3:return!0;case 5:return S;case 6:return E;case 2:l(P,S)}else switch(e){case 4:return!1;case 7:l(P,S)}return p?-1:o||u?u:P}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},"../../node_modules/core-js/internals/array-method-is-strict.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js");e.exports=function(e,r){var i=[][e];return!!i&&n(function(){i.call(null,r||function(){return 1},1)})}},"../../node_modules/core-js/internals/array-reduce.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/a-callable.js"),o=i("../../node_modules/core-js/internals/to-object.js"),s=i("../../node_modules/core-js/internals/indexed-object.js"),a=i("../../node_modules/core-js/internals/length-of-array-like.js"),c=TypeError,d="Reduce of empty array with no initial value",l=function(e){return function(r,i,l,u){var p=o(r),h=s(p),f=a(p);if(n(i),0===f&&l<2)throw new c(d);var m=e?f-1:0,g=e?-1:1;if(l<2)for(;;){if(m in h){u=h[m],m+=g;break}if(m+=g,e?m<0:f<=m)throw new c(d)}for(;e?m>=0:f>m;m+=g)m in h&&(u=i(u,h[m],m,p));return u}};e.exports={left:l(!1),right:l(!0)}},"../../node_modules/core-js/internals/array-slice.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/function-uncurry-this.js")([].slice)},"../../node_modules/core-js/internals/array-sort.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/array-slice.js"),o=Math.floor,s=function(e,r){var i=e.length;if(i<8)for(var a,c,d=1;d<i;){for(c=d,a=e[d];c&&r(e[c-1],a)>0;)e[c]=e[--c];c!==d++&&(e[c]=a)}else for(var l=o(i/2),u=s(n(e,0,l),r),p=s(n(e,l),r),h=u.length,f=p.length,m=0,g=0;m<h||g<f;)e[m+g]=m<h&&g<f?0>=r(u[m],p[g])?u[m++]:p[g++]:m<h?u[m++]:p[g++];return e};e.exports=s},"../../node_modules/core-js/internals/array-species-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-array.js"),o=i("../../node_modules/core-js/internals/is-constructor.js"),s=i("../../node_modules/core-js/internals/is-object.js"),a=i("../../node_modules/core-js/internals/well-known-symbol.js")("species"),c=Array;e.exports=function(e){var r;return n(e)&&(o(r=e.constructor)&&(r===c||n(r.prototype))?r=void 0:s(r)&&null===(r=r[a])&&(r=void 0)),void 0===r?c:r}},"../../node_modules/core-js/internals/array-species-create.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/array-species-constructor.js");e.exports=function(e,r){return new(n(e))(0===r?0:r)}},"../../node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/an-object.js"),o=i("../../node_modules/core-js/internals/iterator-close.js");e.exports=function(e,r,i,s){try{return s?r(n(i)[0],i[1]):r(i)}catch(r){o(e,"throw",r)}}},"../../node_modules/core-js/internals/check-correctness-of-iteration.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/well-known-symbol.js")("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,r){try{if(!r&&!o)return!1}catch(e){return!1}var i=!1;try{var s={};s[n]=function(){return{next:function(){return{done:i=!0}}}},e(s)}catch(e){}return i}},"../../node_modules/core-js/internals/classof-raw.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=n({}.toString),s=n("".slice);e.exports=function(e){return s(o(e),8,-1)}},"../../node_modules/core-js/internals/classof.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-string-tag-support.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/classof-raw.js"),a=i("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),c=Object,d="Arguments"===s(function(){return arguments}()),l=function(e,r){try{return e[r]}catch(e){}};e.exports=n?s:function(e){var r,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=l(r=c(e),a))?i:d?s(r):"Object"===(n=s(r))&&o(r.callee)?"Arguments":n}},"../../node_modules/core-js/internals/copy-constructor-properties.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/has-own-property.js"),o=i("../../node_modules/core-js/internals/own-keys.js"),s=i("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=i("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,r,i){for(var c=o(r),d=a.f,l=s.f,u=0;u<c.length;u++){var p=c[u];n(e,p)||i&&n(i,p)||d(e,p,l(r,p))}}},"../../node_modules/core-js/internals/correct-prototype-getter.js":function(e,r,i){e.exports=!i("../../node_modules/core-js/internals/fails.js")(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"../../node_modules/core-js/internals/create-iter-result-object.js":function(e){e.exports=function(e,r){return{value:e,done:r}}},"../../node_modules/core-js/internals/create-non-enumerable-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/object-define-property.js"),s=i("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,r,i){return o.f(e,r,s(1,i))}:function(e,r,i){return e[r]=i,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},"../../node_modules/core-js/internals/create-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/object-define-property.js"),s=i("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,r,i){n?o.f(e,r,s(0,i)):e[r]=i}},"../../node_modules/core-js/internals/define-built-in-accessor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/make-built-in.js"),o=i("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,r,i){return i.get&&n(i.get,r,{getter:!0}),i.set&&n(i.set,r,{setter:!0}),o.f(e,r,i)}},"../../node_modules/core-js/internals/define-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js"),o=i("../../node_modules/core-js/internals/object-define-property.js"),s=i("../../node_modules/core-js/internals/make-built-in.js"),a=i("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,r,i,c){c||(c={});var d=c.enumerable,l=void 0!==c.name?c.name:r;if(n(i)&&s(i,l,c),c.global)d?e[r]=i:a(r,i);else{try{c.unsafe?e[r]&&(d=!0):delete e[r]}catch(e){}d?e[r]=i:o.f(e,r,{value:i,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return e}},"../../node_modules/core-js/internals/define-built-ins.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/define-built-in.js");e.exports=function(e,r,i){for(var o in r)n(e,o,r[o],i);return e}},"../../node_modules/core-js/internals/define-global-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=Object.defineProperty;e.exports=function(e,r){try{o(n,e,{value:r,configurable:!0,writable:!0})}catch(i){n[e]=r}return r}},"../../node_modules/core-js/internals/descriptors.js":function(e,r,i){e.exports=!i("../../node_modules/core-js/internals/fails.js")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=n.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},"../../node_modules/core-js/internals/dom-iterables.js":function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"../../node_modules/core-js/internals/dom-token-list-prototype.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/document-create-element.js")("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},"../../node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/environment-ff-version.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js").match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},"../../node_modules/core-js/internals/environment-is-ie-or-edge.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js");e.exports=/MSIE|Trident/.test(n)},"../../node_modules/core-js/internals/environment-is-ios-pebble.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js");e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},"../../node_modules/core-js/internals/environment-is-ios.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},"../../node_modules/core-js/internals/environment-is-node.js":function(e,r,i){e.exports="NODE"===i("../../node_modules/core-js/internals/environment.js")},"../../node_modules/core-js/internals/environment-is-webos-webkit.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js");e.exports=/web0s(?!.*chrome)/i.test(n)},"../../node_modules/core-js/internals/environment-user-agent.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js").navigator,o=n&&n.userAgent;e.exports=o?String(o):""},"../../node_modules/core-js/internals/environment-v8-version.js":function(e,r,i){var n,o,s=i("../../node_modules/core-js/internals/global-this.js"),a=i("../../node_modules/core-js/internals/environment-user-agent.js"),c=s.process,d=s.Deno,l=c&&c.versions||d&&d.version,u=l&&l.v8;u&&(o=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},"../../node_modules/core-js/internals/environment-webkit-version.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-user-agent.js").match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},"../../node_modules/core-js/internals/environment.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/environment-user-agent.js"),s=i("../../node_modules/core-js/internals/classof-raw.js"),a=function(e){return o.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},"../../node_modules/core-js/internals/export.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),a=i("../../node_modules/core-js/internals/define-built-in.js"),c=i("../../node_modules/core-js/internals/define-global-property.js"),d=i("../../node_modules/core-js/internals/copy-constructor-properties.js"),l=i("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,r){var i,u,p,h,f,m=e.target,g=e.global,y=e.stat;if(i=g?n:y?n[m]||c(m,{}):n[m]&&n[m].prototype)for(u in r){if(h=r[u],p=e.dontCallGetSet?(f=o(i,u))&&f.value:i[u],!l(g?u:m+(y?".":"#")+u,e.forced)&&void 0!==p){if(typeof h==typeof p)continue;d(h,p)}(e.sham||p&&p.sham)&&s(h,"sham",!0),a(i,u,h,e)}}},"../../node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":function(e,r,i){i("../../node_modules/core-js/modules/es.regexp.exec.js");var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/define-built-in.js"),s=i("../../node_modules/core-js/internals/regexp-exec.js"),a=i("../../node_modules/core-js/internals/fails.js"),c=i("../../node_modules/core-js/internals/well-known-symbol.js"),d=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),l=c("species"),u=RegExp.prototype;e.exports=function(e,r,i,p){var h=c(e),f=!a(function(){var r={};return r[h]=function(){return 7},7!==""[e](r)}),m=f&&!a(function(){var r=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[l]=function(){return i},i.flags="",i[h]=/./[h]),i.exec=function(){return r=!0,null},i[h](""),!r});if(!f||!m||i){var g=/./[h],y=r(h,""[e],function(e,r,i,o,a){var c=r.exec;return c===s||c===u.exec?f&&!a?{done:!0,value:n(g,r,i,o)}:{done:!0,value:n(e,i,r,o)}:{done:!1}});o(String.prototype,e,y[0]),o(u,h,y[1])}p&&d(u[h],"sham",!0)}},"../../node_modules/core-js/internals/function-apply.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(s):function(){return a.apply(s,arguments)})},"../../node_modules/core-js/internals/function-bind-context.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this-clause.js"),o=i("../../node_modules/core-js/internals/a-callable.js"),s=i("../../node_modules/core-js/internals/function-bind-native.js"),a=n(n.bind);e.exports=function(e,r){return o(e),void 0===r?e:s?a(e,r):function(){return e.apply(r,arguments)}}},"../../node_modules/core-js/internals/function-bind-native.js":function(e,r,i){e.exports=!i("../../node_modules/core-js/internals/fails.js")(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},"../../node_modules/core-js/internals/function-name.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(s,"name"),d=c&&(!n||n&&a(s,"name").configurable);e.exports={EXISTS:c,PROPER:c&&"something"===(function(){}).name,CONFIGURABLE:d}},"../../node_modules/core-js/internals/function-uncurry-this-accessor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/a-callable.js");e.exports=function(e,r,i){try{return n(o(Object.getOwnPropertyDescriptor(e,r)[i]))}catch(e){}}},"../../node_modules/core-js/internals/function-uncurry-this-clause.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/classof-raw.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js");e.exports=function(e){if("Function"===n(e))return o(e)}},"../../node_modules/core-js/internals/function-uncurry-this.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype,s=o.call,a=n&&o.bind.bind(s,s);e.exports=n?a:function(e){return function(){return s.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,r){var i;return arguments.length<2?o(i=n[e])?i:void 0:n[e]&&n[e][r]}},"../../node_modules/core-js/internals/get-iterator-method.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/classof.js"),o=i("../../node_modules/core-js/internals/get-method.js"),s=i("../../node_modules/core-js/internals/is-null-or-undefined.js"),a=i("../../node_modules/core-js/internals/iterators.js"),c=i("../../node_modules/core-js/internals/well-known-symbol.js")("iterator");e.exports=function(e){if(!s(e))return o(e,c)||o(e,"@@iterator")||a[n(e)]}},"../../node_modules/core-js/internals/get-iterator.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/a-callable.js"),s=i("../../node_modules/core-js/internals/an-object.js"),a=i("../../node_modules/core-js/internals/try-to-string.js"),c=i("../../node_modules/core-js/internals/get-iterator-method.js"),d=TypeError;e.exports=function(e,r){var i=arguments.length<2?c(e):r;if(o(i))return s(n(i,e));throw new d(a(e)+" is not iterable")}},"../../node_modules/core-js/internals/get-method.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/a-callable.js"),o=i("../../node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,r){var i=e[r];return o(i)?void 0:n(i)}},"../../node_modules/core-js/internals/get-substitution.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/to-object.js"),s=Math.floor,a=n("".charAt),c=n("".replace),d=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,r,i,n,p,h){var f=i+e.length,m=n.length,g=u;return void 0!==p&&(p=o(p),g=l),c(h,g,function(o,c){var l;switch(a(c,0)){case"$":return"$";case"&":return e;case"`":return d(r,0,i);case"'":return d(r,f);case"<":l=p[d(c,1,-1)];break;default:var u=+c;if(0===u)return o;if(u>m){var h=s(u/10);if(0===h)return o;if(h<=m)return void 0===n[h-1]?a(c,1):n[h-1]+a(c,1);return o}l=n[u-1]}return void 0===l?"":l})}},"../../node_modules/core-js/internals/global-this.js":function(e,r,i){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/to-object.js"),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,r){return s(o(e),r)}},"../../node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"../../node_modules/core-js/internals/html.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/get-built-in.js")("document","documentElement")},"../../node_modules/core-js/internals/ie8-dom-define.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/ieee754.js":function(e){var r=Array,i=Math.abs,n=Math.pow,o=Math.floor,s=Math.log,a=Math.LN2;e.exports={pack:function(e,c,d){var l,u,p,h=r(d),f=8*d-c-1,m=(1<<f)-1,g=m>>1,y=23===c?n(2,-24)-n(2,-77):0,b=+(e<0||0===e&&1/e<0),S=0;for((e=i(e))!=e||e===1/0?(u=+(e!=e),l=m):(p=n(2,-(l=o(s(e)/a))),e*p<1&&(l--,p*=2),l+g>=1?e+=y/p:e+=y*n(2,1-g),e*p>=2&&(l++,p/=2),l+g>=m?(u=0,l=m):l+g>=1?(u=(e*p-1)*n(2,c),l+=g):(u=e*n(2,g-1)*n(2,c),l=0));c>=8;)h[S++]=255&u,u/=256,c-=8;for(l=l<<c|u,f+=c;f>0;)h[S++]=255&l,l/=256,f-=8;return h[S-1]|=128*b,h},unpack:function(e,r){var i,o=e.length,s=8*o-r-1,a=(1<<s)-1,c=a>>1,d=s-7,l=o-1,u=e[l--],p=127&u;for(u>>=7;d>0;)p=256*p+e[l--],d-=8;for(i=p&(1<<-d)-1,p>>=-d,d+=r;d>0;)i=256*i+e[l--],d-=8;if(0===p)p=1-c;else{if(p===a)return i?NaN:u?-1/0:1/0;i+=n(2,r),p-=c}return(u?-1:1)*i*n(2,p-r)}}},"../../node_modules/core-js/internals/indexed-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/classof-raw.js"),a=Object,c=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?c(e,""):a(e)}:a},"../../node_modules/core-js/internals/inherit-if-required.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=i("../../node_modules/core-js/internals/object-set-prototype-of.js");e.exports=function(e,r,i){var a,c;return s&&n(a=r.constructor)&&a!==i&&o(c=a.prototype)&&c!==i.prototype&&s(e,c),e}},"../../node_modules/core-js/internals/inspect-source.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/shared-store.js"),a=n(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":function(e,r,i){var n,o,s,a=i("../../node_modules/core-js/internals/weak-map-basic-detection.js"),c=i("../../node_modules/core-js/internals/global-this.js"),d=i("../../node_modules/core-js/internals/is-object.js"),l=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),u=i("../../node_modules/core-js/internals/has-own-property.js"),p=i("../../node_modules/core-js/internals/shared-store.js"),h=i("../../node_modules/core-js/internals/shared-key.js"),f=i("../../node_modules/core-js/internals/hidden-keys.js"),m="Object already initialized",g=c.TypeError,y=c.WeakMap;if(a||p.state){var b=p.state||(p.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,r){if(b.has(e))throw new g(m);return r.facade=e,b.set(e,r),r},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var S=h("state");f[S]=!0,n=function(e,r){if(u(e,S))throw new g(m);return r.facade=e,l(e,S,r),r},o=function(e){return u(e,S)?e[S]:{}},s=function(e){return u(e,S)}}e.exports={set:n,get:o,has:s,enforce:function(e){return s(e)?o(e):n(e,{})},getterFor:function(e){return function(r){var i;if(!d(r)||(i=o(r)).type!==e)throw new g("Incompatible receiver, "+e+" required");return i}}}},"../../node_modules/core-js/internals/is-array-iterator-method.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/well-known-symbol.js"),o=i("../../node_modules/core-js/internals/iterators.js"),s=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},"../../node_modules/core-js/internals/is-array.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/classof-raw.js");e.exports=Array.isArray||function(e){return"Array"===n(e)}},"../../node_modules/core-js/internals/is-big-int-array.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/classof.js");e.exports=function(e){var r=n(e);return"BigInt64Array"===r||"BigUint64Array"===r}},"../../node_modules/core-js/internals/is-callable.js":function(e){var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/is-callable.js"),a=i("../../node_modules/core-js/internals/classof.js"),c=i("../../node_modules/core-js/internals/get-built-in.js"),d=i("../../node_modules/core-js/internals/inspect-source.js"),l=function(){},u=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=n(p.exec),f=!p.test(l),m=function(e){if(!s(e))return!1;try{return u(l,[],e),!0}catch(e){return!1}},g=function(e){if(!s(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(p,d(e))}catch(e){return!0}};g.sham=!0,e.exports=!u||o(function(){var e;return m(m.call)||!m(Object)||!m(function(){e=!0})||e})?g:m},"../../node_modules/core-js/internals/is-forced.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=/#|\.prototype\./,a=function(e,r){var i=d[c(e)];return i===u||i!==l&&(o(r)?n(r):!!r)},c=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},d=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},"../../node_modules/core-js/internals/is-integral-number.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-object.js"),o=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&o(e)===e}},"../../node_modules/core-js/internals/is-null-or-undefined.js":function(e){e.exports=function(e){return null==e}},"../../node_modules/core-js/internals/is-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},"../../node_modules/core-js/internals/is-possible-prototype.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-object.js");e.exports=function(e){return n(e)||null===e}},"../../node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"../../node_modules/core-js/internals/is-symbol.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/get-built-in.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),a=i("../../node_modules/core-js/internals/use-symbol-as-uid.js"),c=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var r=n("Symbol");return o(r)&&s(r.prototype,c(e))}},"../../node_modules/core-js/internals/iterate.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-context.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/an-object.js"),a=i("../../node_modules/core-js/internals/try-to-string.js"),c=i("../../node_modules/core-js/internals/is-array-iterator-method.js"),d=i("../../node_modules/core-js/internals/length-of-array-like.js"),l=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),u=i("../../node_modules/core-js/internals/get-iterator.js"),p=i("../../node_modules/core-js/internals/get-iterator-method.js"),h=i("../../node_modules/core-js/internals/iterator-close.js"),f=TypeError,m=function(e,r){this.stopped=e,this.result=r},g=m.prototype;e.exports=function(e,r,i){var y,b,S,C,_,w,R,T=i&&i.that,E=!!(i&&i.AS_ENTRIES),j=!!(i&&i.IS_RECORD),P=!!(i&&i.IS_ITERATOR),k=!!(i&&i.INTERRUPTED),O=n(r,T),I=function(e){return y&&h(y,"normal"),new m(!0,e)},x=function(e){return E?(s(e),k?O(e[0],e[1],I):O(e[0],e[1])):k?O(e,I):O(e)};if(j)y=e.iterator;else if(P)y=e;else{if(!(b=p(e)))throw new f(a(e)+" is not iterable");if(c(b)){for(S=0,C=d(e);C>S;S++)if((_=x(e[S]))&&l(g,_))return _;return new m(!1)}y=u(e,b)}for(w=j?e.next:y.next;!(R=o(w,y)).done;){try{_=x(R.value)}catch(e){h(y,"throw",e)}if("object"==typeof _&&_&&l(g,_))return _}return new m(!1)}},"../../node_modules/core-js/internals/iterator-close.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/an-object.js"),s=i("../../node_modules/core-js/internals/get-method.js");e.exports=function(e,r,i){var a,c;o(e);try{if(!(a=s(e,"return"))){if("throw"===r)throw i;return i}a=n(a,e)}catch(e){c=!0,a=e}if("throw"===r)throw i;if(c)throw a;return o(a),i}},"../../node_modules/core-js/internals/iterator-create-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/iterators-core.js").IteratorPrototype,o=i("../../node_modules/core-js/internals/object-create.js"),s=i("../../node_modules/core-js/internals/create-property-descriptor.js"),a=i("../../node_modules/core-js/internals/set-to-string-tag.js"),c=i("../../node_modules/core-js/internals/iterators.js"),d=function(){return this};e.exports=function(e,r,i,l){var u=r+" Iterator";return e.prototype=o(n,{next:s(+!l,i)}),a(e,u,!1,!0),c[u]=d,e}},"../../node_modules/core-js/internals/iterator-define.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/is-pure.js"),a=i("../../node_modules/core-js/internals/function-name.js"),c=i("../../node_modules/core-js/internals/is-callable.js"),d=i("../../node_modules/core-js/internals/iterator-create-constructor.js"),l=i("../../node_modules/core-js/internals/object-get-prototype-of.js"),u=i("../../node_modules/core-js/internals/object-set-prototype-of.js"),p=i("../../node_modules/core-js/internals/set-to-string-tag.js"),h=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),f=i("../../node_modules/core-js/internals/define-built-in.js"),m=i("../../node_modules/core-js/internals/well-known-symbol.js"),g=i("../../node_modules/core-js/internals/iterators.js"),y=i("../../node_modules/core-js/internals/iterators-core.js"),b=a.PROPER,S=a.CONFIGURABLE,C=y.IteratorPrototype,_=y.BUGGY_SAFARI_ITERATORS,w=m("iterator"),R="keys",T="values",E="entries",j=function(){return this};e.exports=function(e,r,i,a,m,y,P){d(i,r,a);var k,O,I,x=function(e){if(e===m&&B)return B;if(!_&&e&&e in D)return D[e];switch(e){case R:case T:case E:return function(){return new i(this,e)}}return function(){return new i(this)}},A=r+" Iterator",M=!1,D=e.prototype,N=D[w]||D["@@iterator"]||m&&D[m],B=!_&&N||x(m),L="Array"===r&&D.entries||N;if(L&&(k=l(L.call(new e)))!==Object.prototype&&k.next&&(!s&&l(k)!==C&&(u?u(k,C):c(k[w])||f(k,w,j)),p(k,A,!0,!0),s&&(g[A]=j)),b&&m===T&&N&&N.name!==T&&(!s&&S?h(D,"name",T):(M=!0,B=function(){return o(N,this)})),m)if(O={values:x(T),keys:y?B:x(R),entries:x(E)},P)for(I in O)!_&&!M&&I in D||f(D,I,O[I]);else n({target:r,proto:!0,forced:_||M},O);return(!s||P)&&D[w]!==B&&f(D,w,B,{name:m}),g[r]=B,O}},"../../node_modules/core-js/internals/iterators-core.js":function(e,r,i){var n,o,s,a=i("../../node_modules/core-js/internals/fails.js"),c=i("../../node_modules/core-js/internals/is-callable.js"),d=i("../../node_modules/core-js/internals/is-object.js"),l=i("../../node_modules/core-js/internals/object-create.js"),u=i("../../node_modules/core-js/internals/object-get-prototype-of.js"),p=i("../../node_modules/core-js/internals/define-built-in.js"),h=i("../../node_modules/core-js/internals/well-known-symbol.js"),f=i("../../node_modules/core-js/internals/is-pure.js"),m=h("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(o=u(u(s)))!==Object.prototype&&(n=o):g=!0),!d(n)||a(function(){var e={};return n[m].call(e)!==e})?n={}:f&&(n=l(n)),c(n[m])||p(n,m,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},"../../node_modules/core-js/internals/iterators.js":function(e){e.exports={}},"../../node_modules/core-js/internals/length-of-array-like.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return n(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/is-callable.js"),a=i("../../node_modules/core-js/internals/has-own-property.js"),c=i("../../node_modules/core-js/internals/descriptors.js"),d=i("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,l=i("../../node_modules/core-js/internals/inspect-source.js"),u=i("../../node_modules/core-js/internals/internal-state.js"),p=u.enforce,h=u.get,f=String,m=Object.defineProperty,g=n("".slice),y=n("".replace),b=n([].join),S=c&&!o(function(){return 8!==m(function(){},"length",{value:8}).length}),C=String(String).split("String"),_=e.exports=function(e,r,i){"Symbol("===g(f(r),0,7)&&(r="["+y(f(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!a(e,"name")||d&&e.name!==r)&&(c?m(e,"name",{value:r,configurable:!0}):e.name=r),S&&i&&a(i,"arity")&&e.length!==i.arity&&m(e,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?c&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=p(e);return a(n,"source")||(n.source=b(C,"string"==typeof r?r:"")),e};Function.prototype.toString=_(function(){return s(this)&&h(this).source||l(this)},"toString")},"../../node_modules/core-js/internals/math-float-round.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/math-sign.js"),o=i("../../node_modules/core-js/internals/math-round-ties-to-even.js"),s=Math.abs;e.exports=function(e,r,i,a){var c=+e,d=s(c),l=n(c);if(d<a)return l*o(d/a/r)*a*r;var u=(1+r/2220446049250313e-31)*d,p=u-(u-d);return p>i||p!=p?1/0*l:l*p}},"../../node_modules/core-js/internals/math-fround.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/math-float-round.js");e.exports=Math.fround||function(e){return n(e,11920928955078125e-23,34028234663852886e22,11754943508222875e-54)}},"../../node_modules/core-js/internals/math-round-ties-to-even.js":function(e){e.exports=function(e){return e+0x10000000000000-0x10000000000000}},"../../node_modules/core-js/internals/math-sign.js":function(e){e.exports=Math.sign||function(e){var r=+e;return 0===r||r!=r?r:r<0?-1:1}},"../../node_modules/core-js/internals/math-trunc.js":function(e){var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:r)(n)}},"../../node_modules/core-js/internals/microtask.js":function(e,r,i){var n,o,s,a,c,d=i("../../node_modules/core-js/internals/global-this.js"),l=i("../../node_modules/core-js/internals/safe-get-built-in.js"),u=i("../../node_modules/core-js/internals/function-bind-context.js"),p=i("../../node_modules/core-js/internals/task.js").set,h=i("../../node_modules/core-js/internals/queue.js"),f=i("../../node_modules/core-js/internals/environment-is-ios.js"),m=i("../../node_modules/core-js/internals/environment-is-ios-pebble.js"),g=i("../../node_modules/core-js/internals/environment-is-webos-webkit.js"),y=i("../../node_modules/core-js/internals/environment-is-node.js"),b=d.MutationObserver||d.WebKitMutationObserver,S=d.document,C=d.process,_=d.Promise,w=l("queueMicrotask");if(!w){var R=new h,T=function(){var e,r;for(y&&(e=C.domain)&&e.exit();r=R.get();)try{r()}catch(e){throw R.head&&n(),e}e&&e.enter()};f||y||g||!b||!S?!m&&_&&_.resolve?((a=_.resolve(void 0)).constructor=_,c=u(a.then,a),n=function(){c(T)}):y?n=function(){C.nextTick(T)}:(p=u(p,d),n=function(){p(T)}):(o=!0,s=S.createTextNode(""),new b(T).observe(s,{characterData:!0}),n=function(){s.data=o=!o}),w=function(e){R.head||n(),R.add(e)}}e.exports=w},"../../node_modules/core-js/internals/new-promise-capability.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/a-callable.js"),o=TypeError,s=function(e){var r,i;this.promise=new e(function(e,n){if(void 0!==r||void 0!==i)throw new o("Bad Promise constructor");r=e,i=n}),this.resolve=n(r),this.reject=n(i)};e.exports.f=function(e){return new s(e)}},"../../node_modules/core-js/internals/object-assign.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/function-call.js"),a=i("../../node_modules/core-js/internals/fails.js"),c=i("../../node_modules/core-js/internals/object-keys.js"),d=i("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),l=i("../../node_modules/core-js/internals/object-property-is-enumerable.js"),u=i("../../node_modules/core-js/internals/to-object.js"),p=i("../../node_modules/core-js/internals/indexed-object.js"),h=Object.assign,f=Object.defineProperty,m=o([].concat);e.exports=!h||a(function(){if(n&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},r={},i=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[i]=7,o.split("").forEach(function(e){r[e]=e}),7!==h({},e)[i]||c(h({},r)).join("")!==o})?function(e,r){for(var i=u(e),o=arguments.length,a=1,h=d.f,f=l.f;o>a;)for(var g,y=p(arguments[a++]),b=h?m(c(y),h(y)):c(y),S=b.length,C=0;S>C;)g=b[C++],(!n||s(f,y,g))&&(i[g]=y[g]);return i}:h},"../../node_modules/core-js/internals/object-create.js":function(e,r,i){var n,o=i("../../node_modules/core-js/internals/an-object.js"),s=i("../../node_modules/core-js/internals/object-define-properties.js"),a=i("../../node_modules/core-js/internals/enum-bug-keys.js"),c=i("../../node_modules/core-js/internals/hidden-keys.js"),d=i("../../node_modules/core-js/internals/html.js"),l=i("../../node_modules/core-js/internals/document-create-element.js"),u=i("../../node_modules/core-js/internals/shared-key.js"),p="prototype",h="script",f=u("IE_PROTO"),m=function(){},g=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(g("")),e.close();var r=e.parentWindow.Object;return e=null,r},b=function(){var e,r=l("iframe");return r.style.display="none",d.appendChild(r),r.src=String("java"+h+":"),(e=r.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F},S=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}S="undefined"!=typeof document?document.domain&&n?y(n):b():y(n);for(var e=a.length;e--;)delete S[p][a[e]];return S()};c[f]=!0,e.exports=Object.create||function(e,r){var i;return null!==e?(m[p]=o(e),i=new m,m[p]=null,i[f]=e):i=S(),void 0===r?i:s.f(i,r)}},"../../node_modules/core-js/internals/object-define-properties.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),s=i("../../node_modules/core-js/internals/object-define-property.js"),a=i("../../node_modules/core-js/internals/an-object.js"),c=i("../../node_modules/core-js/internals/to-indexed-object.js"),d=i("../../node_modules/core-js/internals/object-keys.js");r.f=n&&!o?Object.defineProperties:function(e,r){a(e);for(var i,n=c(r),o=d(r),l=o.length,u=0;l>u;)s.f(e,i=o[u++],n[i]);return e}},"../../node_modules/core-js/internals/object-define-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/ie8-dom-define.js"),s=i("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),a=i("../../node_modules/core-js/internals/an-object.js"),c=i("../../node_modules/core-js/internals/to-property-key.js"),d=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",f="writable";r.f=n?s?function(e,r,i){if(a(e),r=c(r),a(i),"function"==typeof e&&"prototype"===r&&"value"in i&&f in i&&!i[f]){var n=u(e,r);n&&n[f]&&(e[r]=i.value,i={configurable:h in i?i[h]:n[h],enumerable:p in i?i[p]:n[p],writable:!1})}return l(e,r,i)}:l:function(e,r,i){if(a(e),r=c(r),a(i),o)try{return l(e,r,i)}catch(e){}if("get"in i||"set"in i)throw new d("Accessors not supported");return"value"in i&&(e[r]=i.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/object-property-is-enumerable.js"),a=i("../../node_modules/core-js/internals/create-property-descriptor.js"),c=i("../../node_modules/core-js/internals/to-indexed-object.js"),d=i("../../node_modules/core-js/internals/to-property-key.js"),l=i("../../node_modules/core-js/internals/has-own-property.js"),u=i("../../node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(e,r){if(e=c(e),r=d(r),u)try{return p(e,r)}catch(e){}if(l(e,r))return a(!o(s.f,e,r),e[r])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/object-keys-internal.js"),o=i("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,r){r.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-get-prototype-of.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/has-own-property.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/to-object.js"),a=i("../../node_modules/core-js/internals/shared-key.js"),c=i("../../node_modules/core-js/internals/correct-prototype-getter.js"),d=a("IE_PROTO"),l=Object,u=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var r=s(e);if(n(r,d))return r[d];var i=r.constructor;return o(i)&&r instanceof i?i.prototype:r instanceof l?u:null}},"../../node_modules/core-js/internals/object-is-prototype-of.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/function-uncurry-this.js")({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/has-own-property.js"),s=i("../../node_modules/core-js/internals/to-indexed-object.js"),a=i("../../node_modules/core-js/internals/array-includes.js").indexOf,c=i("../../node_modules/core-js/internals/hidden-keys.js"),d=n([].push);e.exports=function(e,r){var i,n=s(e),l=0,u=[];for(i in n)!o(c,i)&&o(n,i)&&d(u,i);for(;r.length>l;)o(n,i=r[l++])&&(~a(u,i)||d(u,i));return u}},"../../node_modules/core-js/internals/object-keys.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/object-keys-internal.js"),o=i("../../node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,o)}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":function(e,r){var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;r.f=n&&!i.call({1:2},1)?function(e){var r=n(this,e);return!!r&&r.enumerable}:i},"../../node_modules/core-js/internals/object-set-prototype-of.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this-accessor.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=i("../../node_modules/core-js/internals/require-object-coercible.js"),a=i("../../node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,r=!1,i={};try{(e=n(Object.prototype,"__proto__","set"))(i,[]),r=i instanceof Array}catch(e){}return function(i,n){return s(i),a(n),o(i)&&(r?e(i,n):i.__proto__=n),i}}():void 0)},"../../node_modules/core-js/internals/ordinary-to-primitive.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/is-object.js"),a=TypeError;e.exports=function(e,r){var i,c;if("string"===r&&o(i=e.toString)&&!s(c=n(i,e))||o(i=e.valueOf)&&!s(c=n(i,e))||"string"!==r&&o(i=e.toString)&&!s(c=n(i,e)))return c;throw new a("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/get-built-in.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/object-get-own-property-names.js"),a=i("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),c=i("../../node_modules/core-js/internals/an-object.js"),d=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var r=s.f(c(e)),i=a.f;return i?d(r,i(e)):r}},"../../node_modules/core-js/internals/promise-native-constructor.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/global-this.js").Promise},"../../node_modules/core-js/internals/promise-resolve.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/an-object.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=i("../../node_modules/core-js/internals/new-promise-capability.js");e.exports=function(e,r){if(n(e),o(r)&&r.constructor===e)return r;var i=s.f(e);return(0,i.resolve)(r),i.promise}},"../../node_modules/core-js/internals/queue.js":function(e){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var r={item:e,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=r},"../../node_modules/core-js/internals/regexp-exec-abstract.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/an-object.js"),s=i("../../node_modules/core-js/internals/is-callable.js"),a=i("../../node_modules/core-js/internals/classof-raw.js"),c=i("../../node_modules/core-js/internals/regexp-exec.js"),d=TypeError;e.exports=function(e,r){var i=e.exec;if(s(i)){var l=n(i,e,r);return null!==l&&o(l),l}if("RegExp"===a(e))return n(c,e,r);throw new d("RegExp#exec called on incompatible receiver")}},"../../node_modules/core-js/internals/regexp-exec.js":function(e,r,i){var n,o,s=i("../../node_modules/core-js/internals/function-call.js"),a=i("../../node_modules/core-js/internals/function-uncurry-this.js"),c=i("../../node_modules/core-js/internals/to-string.js"),d=i("../../node_modules/core-js/internals/regexp-flags.js"),l=i("../../node_modules/core-js/internals/regexp-sticky-helpers.js"),u=i("../../node_modules/core-js/internals/shared.js"),p=i("../../node_modules/core-js/internals/object-create.js"),h=i("../../node_modules/core-js/internals/internal-state.js").get,f=i("../../node_modules/core-js/internals/regexp-unsupported-dot-all.js"),m=i("../../node_modules/core-js/internals/regexp-unsupported-ncg.js"),g=u("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,b=y,S=a("".charAt),C=a("".indexOf),_=a("".replace),w=a("".slice),R=(o=/b*/g,s(y,n=/a/,"a"),s(y,o,"a"),0!==n.lastIndex||0!==o.lastIndex),T=l.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(R||E||T||f||m)&&(b=function(e){var r,i,n,o,a,l,u,f=h(this),m=c(e),j=f.raw;if(j)return j.lastIndex=this.lastIndex,r=s(b,j,m),this.lastIndex=j.lastIndex,r;var P=f.groups,k=T&&this.sticky,O=s(d,this),I=this.source,x=0,A=m;if(k&&(-1===C(O=_(O,"y",""),"g")&&(O+="g"),A=w(m,this.lastIndex),this.lastIndex>0&&(!this.multiline||this.multiline&&"\n"!==S(m,this.lastIndex-1))&&(I="(?: "+I+")",A=" "+A,x++),i=RegExp("^(?:"+I+")",O)),E&&(i=RegExp("^"+I+"$(?!\\s)",O)),R&&(n=this.lastIndex),o=s(y,k?i:this,A),k?o?(o.input=w(o.input,x),o[0]=w(o[0],x),o.index=this.lastIndex,this.lastIndex+=o[0].length):this.lastIndex=0:R&&o&&(this.lastIndex=this.global?o.index+o[0].length:n),E&&o&&o.length>1&&s(g,o[0],i,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)}),o&&P)for(a=0,o.groups=l=p(null);a<P.length;a++)l[(u=P[a])[0]]=o[u[1]];return o}),e.exports=b},"../../node_modules/core-js/internals/regexp-flags-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=n.RegExp;e.exports={correct:!o(function(){var e=!0;try{s(".","d")}catch(r){e=!1}var r={},i="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(r,e,{get:function(){return i+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var c in e&&(a.hasIndices="d"),a)o(c,a[c]);return Object.getOwnPropertyDescriptor(s.prototype,"flags").get.call(r)!==n||i!==n})}},"../../node_modules/core-js/internals/regexp-flags.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/an-object.js");e.exports=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}},"../../node_modules/core-js/internals/regexp-get-flags.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/has-own-property.js"),s=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),a=i("../../node_modules/core-js/internals/regexp-flags-detection.js"),c=i("../../node_modules/core-js/internals/regexp-flags.js"),d=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return!a.correct&&s(d,e)&&!o(e,"flags")?n(c,e):e.flags}},"../../node_modules/core-js/internals/regexp-unsupported-dot-all.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/global-this.js").RegExp;e.exports=n(function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},"../../node_modules/core-js/internals/regexp-unsupported-ncg.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/global-this.js").RegExp;e.exports=n(function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},"../../node_modules/core-js/internals/require-object-coercible.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-null-or-undefined.js"),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/safe-get-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/descriptors.js"),s=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var r=s(n,e);return r&&r.value}},"../../node_modules/core-js/internals/set-species.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/get-built-in.js"),o=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),s=i("../../node_modules/core-js/internals/well-known-symbol.js"),a=i("../../node_modules/core-js/internals/descriptors.js"),c=s("species");e.exports=function(e){var r=n(e);a&&r&&!r[c]&&o(r,c,{configurable:!0,get:function(){return this}})}},"../../node_modules/core-js/internals/set-to-string-tag.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/object-define-property.js").f,o=i("../../node_modules/core-js/internals/has-own-property.js"),s=i("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,r,i){e&&!i&&(e=e.prototype),e&&!o(e,s)&&n(e,s,{configurable:!0,value:r})}},"../../node_modules/core-js/internals/shared-key.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/shared.js"),o=i("../../node_modules/core-js/internals/uid.js"),s=n("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},"../../node_modules/core-js/internals/shared-store.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-pure.js"),o=i("../../node_modules/core-js/internals/global-this.js"),s=i("../../node_modules/core-js/internals/define-global-property.js"),a="__core-js_shared__",c=e.exports=o[a]||s(a,{});(c.versions||(c.versions=[])).push({version:"3.44.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/shared.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/shared-store.js");e.exports=function(e,r){return n[e]||(n[e]=r||{})}},"../../node_modules/core-js/internals/species-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/an-object.js"),o=i("../../node_modules/core-js/internals/a-constructor.js"),s=i("../../node_modules/core-js/internals/is-null-or-undefined.js"),a=i("../../node_modules/core-js/internals/well-known-symbol.js")("species");e.exports=function(e,r){var i,c=n(e).constructor;return void 0===c||s(i=n(c)[a])?r:o(i)}},"../../node_modules/core-js/internals/string-multibyte.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),s=i("../../node_modules/core-js/internals/to-string.js"),a=i("../../node_modules/core-js/internals/require-object-coercible.js"),c=n("".charAt),d=n("".charCodeAt),l=n("".slice),u=function(e){return function(r,i){var n,u,p=s(a(r)),h=o(i),f=p.length;return h<0||h>=f?e?"":void 0:(n=d(p,h))<55296||n>56319||h+1===f||(u=d(p,h+1))<56320||u>57343?e?c(p,h):n:e?l(p,h,h+2):(n-55296<<10)+(u-56320)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},"../../node_modules/core-js/internals/string-punycode-to-ascii.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",c=RangeError,d=n(s.exec),l=Math.floor,u=String.fromCharCode,p=n("".charCodeAt),h=n([].join),f=n([].push),m=n("".replace),g=n("".split),y=n("".toLowerCase),b=function(e){for(var r=[],i=0,n=e.length;i<n;){var o=p(e,i++);if(o>=55296&&o<=56319&&i<n){var s=p(e,i++);(64512&s)==56320?f(r,((1023&o)<<10)+(1023&s)+65536):(f(r,o),i--)}else f(r,o)}return r},S=function(e){return e+22+75*(e<26)},C=function(e,r,i){var n=0;for(e=i?l(e/700):e>>1,e+=l(e/r);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},_=function(e){var r,i,n=[],o=(e=b(e)).length,s=128,d=0,p=72;for(r=0;r<e.length;r++)(i=e[r])<128&&f(n,u(i));var m=n.length,g=m;for(m&&f(n,"-");g<o;){var y=0x7fffffff;for(r=0;r<e.length;r++)(i=e[r])>=s&&i<y&&(y=i);var _=g+1;if(y-s>l((0x7fffffff-d)/_))throw new c(a);for(d+=(y-s)*_,s=y,r=0;r<e.length;r++){if((i=e[r])<s&&++d>0x7fffffff)throw new c(a);if(i===s){for(var w=d,R=36;;){var T=R<=p?1:R>=p+26?26:R-p;if(w<T)break;var E=w-T,j=36-T;f(n,u(S(T+E%j))),w=l(E/j),R+=36}f(n,u(S(w))),p=C(d,_,g===m),d=0,g++}}d++,s++}return h(n,"")};e.exports=function(e){var r,i,n=[],a=g(m(y(e),s,"."),".");for(r=0;r<a.length;r++)f(n,d(o,i=a[r])?"xn--"+_(i):i);return h(n,".")}},"../../node_modules/core-js/internals/string-trim-forced.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-name.js").PROPER,o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/whitespaces.js"),a="​\x85᠎";e.exports=function(e){return o(function(){return!!s[e]()||a[e]()!==a||n&&s[e].name!==e})}},"../../node_modules/core-js/internals/string-trim.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/require-object-coercible.js"),s=i("../../node_modules/core-js/internals/to-string.js"),a=i("../../node_modules/core-js/internals/whitespaces.js"),c=n("".replace),d=RegExp("^["+a+"]+"),l=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(e){return function(r){var i=s(o(r));return 1&e&&(i=c(i,d,"")),2&e&&(i=c(i,l,"$1")),i}};e.exports={start:u(1),end:u(2),trim:u(3)}},"../../node_modules/core-js/internals/symbol-constructor-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-v8-version.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},"../../node_modules/core-js/internals/task.js":function(e,r,i){var n,o,s,a,c=i("../../node_modules/core-js/internals/global-this.js"),d=i("../../node_modules/core-js/internals/function-apply.js"),l=i("../../node_modules/core-js/internals/function-bind-context.js"),u=i("../../node_modules/core-js/internals/is-callable.js"),p=i("../../node_modules/core-js/internals/has-own-property.js"),h=i("../../node_modules/core-js/internals/fails.js"),f=i("../../node_modules/core-js/internals/html.js"),m=i("../../node_modules/core-js/internals/array-slice.js"),g=i("../../node_modules/core-js/internals/document-create-element.js"),y=i("../../node_modules/core-js/internals/validate-arguments-length.js"),b=i("../../node_modules/core-js/internals/environment-is-ios.js"),S=i("../../node_modules/core-js/internals/environment-is-node.js"),C=c.setImmediate,_=c.clearImmediate,w=c.process,R=c.Dispatch,T=c.Function,E=c.MessageChannel,j=c.String,P=0,k={},O="onreadystatechange";h(function(){n=c.location});var I=function(e){if(p(k,e)){var r=k[e];delete k[e],r()}},x=function(e){return function(){I(e)}},A=function(e){I(e.data)},M=function(e){c.postMessage(j(e),n.protocol+"//"+n.host)};C&&_||(C=function(e){y(arguments.length,1);var r=u(e)?e:T(e),i=m(arguments,1);return k[++P]=function(){d(r,void 0,i)},o(P),P},_=function(e){delete k[e]},S?o=function(e){w.nextTick(x(e))}:R&&R.now?o=function(e){R.now(x(e))}:E&&!b?(a=(s=new E).port2,s.port1.onmessage=A,o=l(a.postMessage,a)):c.addEventListener&&u(c.postMessage)&&!c.importScripts&&n&&"file:"!==n.protocol&&!h(M)?(o=M,c.addEventListener("message",A,!1)):o=O in g("script")?function(e){f.appendChild(g("script"))[O]=function(){f.removeChild(this),I(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:C,clear:_}},"../../node_modules/core-js/internals/to-absolute-index.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.max,s=Math.min;e.exports=function(e,r){var i=n(e);return i<0?o(i+r,0):s(i,r)}},"../../node_modules/core-js/internals/to-big-int.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-primitive.js"),o=TypeError;e.exports=function(e){var r=n(e,"number");if("number"==typeof r)throw new o("Can't convert number to bigint");return BigInt(r)}},"../../node_modules/core-js/internals/to-index.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=i("../../node_modules/core-js/internals/to-length.js"),s=RangeError;e.exports=function(e){if(void 0===e)return 0;var r=n(e),i=o(r);if(r!==i)throw new s("Wrong length or index");return i}},"../../node_modules/core-js/internals/to-indexed-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/indexed-object.js"),o=i("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(o(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var r=+e;return r!=r||0===r?0:n(r)}},"../../node_modules/core-js/internals/to-length.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.min;e.exports=function(e){var r=n(e);return r>0?o(r,0x1fffffffffffff):0}},"../../node_modules/core-js/internals/to-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/require-object-coercible.js"),o=Object;e.exports=function(e){return o(n(e))}},"../../node_modules/core-js/internals/to-offset.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-positive-integer.js"),o=RangeError;e.exports=function(e,r){var i=n(e);if(i%r)throw new o("Wrong offset");return i}},"../../node_modules/core-js/internals/to-positive-integer.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=RangeError;e.exports=function(e){var r=n(e);if(r<0)throw new o("The argument can't be less than 0");return r}},"../../node_modules/core-js/internals/to-primitive.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=i("../../node_modules/core-js/internals/is-symbol.js"),a=i("../../node_modules/core-js/internals/get-method.js"),c=i("../../node_modules/core-js/internals/ordinary-to-primitive.js"),d=i("../../node_modules/core-js/internals/well-known-symbol.js"),l=TypeError,u=d("toPrimitive");e.exports=function(e,r){if(!o(e)||s(e))return e;var i,d=a(e,u);if(d){if(void 0===r&&(r="default"),!o(i=n(d,e,r))||s(i))return i;throw new l("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(e,r)}},"../../node_modules/core-js/internals/to-property-key.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-primitive.js"),o=i("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var r=n(e,"string");return o(r)?r:r+""}},"../../node_modules/core-js/internals/to-string-tag-support.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),o={};o[n]="z",e.exports="[object z]"===String(o)},"../../node_modules/core-js/internals/to-string.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/classof.js"),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},"../../node_modules/core-js/internals/to-uint8-clamped.js":function(e){var r=Math.round;e.exports=function(e){var i=r(e);return i<0?0:i>255?255:255&i}},"../../node_modules/core-js/internals/try-to-string.js":function(e){var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/typed-array-constructor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/global-this.js"),s=i("../../node_modules/core-js/internals/function-call.js"),a=i("../../node_modules/core-js/internals/descriptors.js"),c=i("../../node_modules/core-js/internals/typed-array-constructors-require-wrappers.js"),d=i("../../node_modules/core-js/internals/array-buffer-view-core.js"),l=i("../../node_modules/core-js/internals/array-buffer.js"),u=i("../../node_modules/core-js/internals/an-instance.js"),p=i("../../node_modules/core-js/internals/create-property-descriptor.js"),h=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),f=i("../../node_modules/core-js/internals/is-integral-number.js"),m=i("../../node_modules/core-js/internals/to-length.js"),g=i("../../node_modules/core-js/internals/to-index.js"),y=i("../../node_modules/core-js/internals/to-offset.js"),b=i("../../node_modules/core-js/internals/to-uint8-clamped.js"),S=i("../../node_modules/core-js/internals/to-property-key.js"),C=i("../../node_modules/core-js/internals/has-own-property.js"),_=i("../../node_modules/core-js/internals/classof.js"),w=i("../../node_modules/core-js/internals/is-object.js"),R=i("../../node_modules/core-js/internals/is-symbol.js"),T=i("../../node_modules/core-js/internals/object-create.js"),E=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),j=i("../../node_modules/core-js/internals/object-set-prototype-of.js"),P=i("../../node_modules/core-js/internals/object-get-own-property-names.js").f,k=i("../../node_modules/core-js/internals/typed-array-from.js"),O=i("../../node_modules/core-js/internals/array-iteration.js").forEach,I=i("../../node_modules/core-js/internals/set-species.js"),x=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),A=i("../../node_modules/core-js/internals/object-define-property.js"),M=i("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),D=i("../../node_modules/core-js/internals/array-from-constructor-and-list.js"),N=i("../../node_modules/core-js/internals/internal-state.js"),B=i("../../node_modules/core-js/internals/inherit-if-required.js"),L=N.get,F=N.set,z=N.enforce,U=A.f,H=M.f,q=o.RangeError,W=l.ArrayBuffer,V=W.prototype,G=l.DataView,K=d.NATIVE_ARRAY_BUFFER_VIEWS,J=d.TYPED_ARRAY_TAG,X=d.TypedArray,$=d.TypedArrayPrototype,Q=d.isTypedArray,Y="BYTES_PER_ELEMENT",Z="Wrong length",ee=function(e,r){x(e,r,{configurable:!0,get:function(){return L(this)[r]}})},et=function(e){var r;return E(V,e)||"ArrayBuffer"===(r=_(e))||"SharedArrayBuffer"===r},er=function(e,r){return Q(e)&&!R(r)&&r in e&&f(+r)&&r>=0},ei=function(e,r){return er(e,r=S(r))?p(2,e[r]):H(e,r)},en=function(e,r,i){return er(e,r=S(r))&&w(i)&&C(i,"value")&&!C(i,"get")&&!C(i,"set")&&!i.configurable&&(!C(i,"writable")||i.writable)&&(!C(i,"enumerable")||i.enumerable)?(e[r]=i.value,e):U(e,r,i)};a?(K||(M.f=ei,A.f=en,ee($,"buffer"),ee($,"byteOffset"),ee($,"byteLength"),ee($,"length")),n({target:"Object",stat:!0,forced:!K},{getOwnPropertyDescriptor:ei,defineProperty:en}),e.exports=function(e,r,i){var a=e.match(/\d+/)[0]/8,d=e+(i?"Clamped":"")+"Array",l="get"+e,p="set"+e,f=o[d],S=f,C=S&&S.prototype,_={},R=function(e,r){var i=L(e);return i.view[l](r*a+i.byteOffset,!0)},E=function(e,r,n){var o=L(e);o.view[p](r*a+o.byteOffset,i?b(n):n,!0)},x=function(e,r){U(e,r,{get:function(){return R(this,r)},set:function(e){return E(this,r,e)},enumerable:!0})};K?c&&(S=r(function(e,r,i,n){return u(e,C),B(w(r)?et(r)?void 0!==n?new f(r,y(i,a),n):void 0!==i?new f(r,y(i,a)):new f(r):Q(r)?D(S,r):s(k,S,r):new f(g(r)),e,S)}),j&&j(S,X),O(P(f),function(e){e in S||h(S,e,f[e])}),S.prototype=C):(S=r(function(e,r,i,n){u(e,C);var o,c,d,l=0,p=0;if(w(r))if(et(r)){o=r,p=y(i,a);var h=r.byteLength;if(void 0===n){if(h%a||(c=h-p)<0)throw new q(Z)}else if((c=m(n)*a)+p>h)throw new q(Z);d=c/a}else if(Q(r))return D(S,r);else return s(k,S,r);else o=new W(c=(d=g(r))*a);for(F(e,{buffer:o,byteOffset:p,byteLength:c,length:d,view:new G(o)});l<d;)x(e,l++)}),j&&j(S,X),C=S.prototype=T($)),C.constructor!==S&&h(C,"constructor",S),z(C).TypedArrayConstructor=S,J&&h(C,J,d);var A=S!==f;_[d]=S,n({global:!0,constructor:!0,forced:A,sham:!K},_),Y in S||h(S,Y,a),Y in C||h(C,Y,a),I(d)}):e.exports=function(){}},"../../node_modules/core-js/internals/typed-array-constructors-require-wrappers.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/check-correctness-of-iteration.js"),a=i("../../node_modules/core-js/internals/array-buffer-view-core.js").NATIVE_ARRAY_BUFFER_VIEWS,c=n.ArrayBuffer,d=n.Int8Array;e.exports=!a||!o(function(){d(1)})||!o(function(){new d(-1)})||!s(function(e){new d,new d(null),new d(1.5),new d(e)},!0)||o(function(){return 1!==new d(new c(2),1,void 0).length})},"../../node_modules/core-js/internals/typed-array-from.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-context.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/a-constructor.js"),a=i("../../node_modules/core-js/internals/to-object.js"),c=i("../../node_modules/core-js/internals/length-of-array-like.js"),d=i("../../node_modules/core-js/internals/get-iterator.js"),l=i("../../node_modules/core-js/internals/get-iterator-method.js"),u=i("../../node_modules/core-js/internals/is-array-iterator-method.js"),p=i("../../node_modules/core-js/internals/is-big-int-array.js"),h=i("../../node_modules/core-js/internals/array-buffer-view-core.js").aTypedArrayConstructor,f=i("../../node_modules/core-js/internals/to-big-int.js");e.exports=function(e){var r,i,m,g,y,b,S,C,_=s(this),w=a(e),R=arguments.length,T=R>1?arguments[1]:void 0,E=void 0!==T,j=l(w);if(j&&!u(j))for(C=(S=d(w,j)).next,w=[];!(b=o(C,S)).done;)w.push(b.value);for(E&&R>2&&(T=n(T,arguments[2])),i=c(w),g=p(m=new(h(_))(i)),r=0;i>r;r++)y=E?T(w[r],r):w[r],m[r]=g?f(y):+y;return m}},"../../node_modules/core-js/internals/uid.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=0,s=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},"../../node_modules/core-js/internals/url-constructor-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/well-known-symbol.js"),s=i("../../node_modules/core-js/internals/descriptors.js"),a=i("../../node_modules/core-js/internals/is-pure.js"),c=o("iterator");e.exports=!n(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),r=e.searchParams,i=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",r.forEach(function(e,i){r.delete("b"),n+=i+e}),i.delete("a",2),i.delete("b",void 0),a&&(!e.toJSON||!i.has("a",1)||i.has("a",2)||!i.has("a",void 0)||i.has("b"))||!r.size&&(a||!s)||!r.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[c]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})},"../../node_modules/core-js/internals/use-symbol-as-uid.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/symbol-constructor-detection.js")&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/fails.js");e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/validate-arguments-length.js":function(e){var r=TypeError;e.exports=function(e,i){if(e<i)throw new r("Not enough arguments");return e}},"../../node_modules/core-js/internals/weak-map-basic-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=n.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},"../../node_modules/core-js/internals/well-known-symbol.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/shared.js"),s=i("../../node_modules/core-js/internals/has-own-property.js"),a=i("../../node_modules/core-js/internals/uid.js"),c=i("../../node_modules/core-js/internals/symbol-constructor-detection.js"),d=i("../../node_modules/core-js/internals/use-symbol-as-uid.js"),l=n.Symbol,u=o("wks"),p=d?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(u,e)||(u[e]=c&&s(l,e)?l[e]:p("Symbol."+e)),u[e]}},"../../node_modules/core-js/internals/whitespaces.js":function(e){e.exports=" \n\v\f\r \xa0               \u2028\u2029\uFEFF"},"../../node_modules/core-js/modules/es.array-buffer.slice.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this-clause.js"),s=i("../../node_modules/core-js/internals/fails.js"),a=i("../../node_modules/core-js/internals/array-buffer.js"),c=i("../../node_modules/core-js/internals/an-object.js"),d=i("../../node_modules/core-js/internals/to-absolute-index.js"),l=i("../../node_modules/core-js/internals/to-length.js"),u=a.ArrayBuffer,p=a.DataView,h=p.prototype,f=o(u.prototype.slice),m=o(h.getUint8),g=o(h.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:s(function(){return!new u(2).slice(1,void 0).byteLength})},{slice:function(e,r){if(f&&void 0===r)return f(c(this),e);for(var i=c(this).byteLength,n=d(e,i),o=d(void 0===r?i:r,i),s=new u(l(o-n)),a=new p(this),h=new p(s),y=0;n<o;)g(h,y++,m(a,n++));return s}})},"../../node_modules/core-js/modules/es.array.includes.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/array-includes.js").includes,s=i("../../node_modules/core-js/internals/fails.js"),a=i("../../node_modules/core-js/internals/add-to-unscopables.js");n({target:"Array",proto:!0,forced:s(function(){return![,].includes()})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},"../../node_modules/core-js/modules/es.array.iterator.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-indexed-object.js"),o=i("../../node_modules/core-js/internals/add-to-unscopables.js"),s=i("../../node_modules/core-js/internals/iterators.js"),a=i("../../node_modules/core-js/internals/internal-state.js"),c=i("../../node_modules/core-js/internals/object-define-property.js").f,d=i("../../node_modules/core-js/internals/iterator-define.js"),l=i("../../node_modules/core-js/internals/create-iter-result-object.js"),u=i("../../node_modules/core-js/internals/is-pure.js"),p=i("../../node_modules/core-js/internals/descriptors.js"),h="Array Iterator",f=a.set,m=a.getterFor(h);e.exports=d(Array,"Array",function(e,r){f(this,{type:h,target:n(e),index:0,kind:r})},function(){var e=m(this),r=e.target,i=e.index++;if(!r||i>=r.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(i,!1);case"values":return l(r[i],!1)}return l([i,r[i]],!1)},"values");var g=s.Arguments=s.Array;if(o("keys"),o("values"),o("entries"),!u&&p&&"values"!==g.name)try{c(g,"name",{value:"values"})}catch(e){}},"../../node_modules/core-js/modules/es.array.reduce.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/array-reduce.js").left,s=i("../../node_modules/core-js/internals/array-method-is-strict.js"),a=i("../../node_modules/core-js/internals/environment-v8-version.js");n({target:"Array",proto:!0,forced:!i("../../node_modules/core-js/internals/environment-is-node.js")&&a>79&&a<83||!s("reduce")},{reduce:function(e){var r=arguments.length;return o(this,e,r,r>1?arguments[1]:void 0)}})},"../../node_modules/core-js/modules/es.array.reverse.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/is-array.js"),a=o([].reverse),c=[1,2];n({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return s(this)&&(this.length=this.length),a(this)}})},"../../node_modules/core-js/modules/es.object.from-entries.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/iterate.js"),s=i("../../node_modules/core-js/internals/create-property.js");n({target:"Object",stat:!0},{fromEntries:function(e){var r={};return o(e,function(e,i){s(r,e,i)},{AS_ENTRIES:!0}),r}})},"../../node_modules/core-js/modules/es.object.has-own.js":function(e,r,i){i("../../node_modules/core-js/internals/export.js")({target:"Object",stat:!0},{hasOwn:i("../../node_modules/core-js/internals/has-own-property.js")})},"../../node_modules/core-js/modules/es.promise.finally.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/is-pure.js"),s=i("../../node_modules/core-js/internals/promise-native-constructor.js"),a=i("../../node_modules/core-js/internals/fails.js"),c=i("../../node_modules/core-js/internals/get-built-in.js"),d=i("../../node_modules/core-js/internals/is-callable.js"),l=i("../../node_modules/core-js/internals/species-constructor.js"),u=i("../../node_modules/core-js/internals/promise-resolve.js"),p=i("../../node_modules/core-js/internals/define-built-in.js"),h=s&&s.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!s&&a(function(){h.finally.call({then:function(){}},function(){})})},{finally:function(e){var r=l(this,c("Promise")),i=d(e);return this.then(i?function(i){return u(r,e()).then(function(){return i})}:e,i?function(i){return u(r,e()).then(function(){throw i})}:e)}}),!o&&d(s)){var f=c("Promise").prototype.finally;h.finally!==f&&p(h,"finally",f,{unsafe:!0})}},"../../node_modules/core-js/modules/es.regexp.exec.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/regexp-exec.js");n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},"../../node_modules/core-js/modules/es.string.from-code-point.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/to-absolute-index.js"),a=RangeError,c=String.fromCharCode,d=String.fromCodePoint,l=o([].join);n({target:"String",stat:!0,arity:1,forced:!!d&&1!==d.length},{fromCodePoint:function(e){for(var r,i=[],n=arguments.length,o=0;n>o;){if(r=+arguments[o++],s(r,1114111)!==r)throw new a(r+" is not a valid code point");i[o]=r<65536?c(r):c(((r-=65536)>>10)+55296,r%1024+56320)}return l(i,"")}})},"../../node_modules/core-js/modules/es.string.iterator.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/string-multibyte.js").charAt,o=i("../../node_modules/core-js/internals/to-string.js"),s=i("../../node_modules/core-js/internals/internal-state.js"),a=i("../../node_modules/core-js/internals/iterator-define.js"),c=i("../../node_modules/core-js/internals/create-iter-result-object.js"),d="String Iterator",l=s.set,u=s.getterFor(d);a(String,"String",function(e){l(this,{type:d,string:o(e),index:0})},function(){var e,r=u(this),i=r.string,o=r.index;return o>=i.length?c(void 0,!0):(e=n(i,o),r.index+=e.length,c(e,!1))})},"../../node_modules/core-js/modules/es.string.replace.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-apply.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/function-uncurry-this.js"),a=i("../../node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),c=i("../../node_modules/core-js/internals/fails.js"),d=i("../../node_modules/core-js/internals/an-object.js"),l=i("../../node_modules/core-js/internals/is-callable.js"),u=i("../../node_modules/core-js/internals/is-object.js"),p=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),h=i("../../node_modules/core-js/internals/to-length.js"),f=i("../../node_modules/core-js/internals/to-string.js"),m=i("../../node_modules/core-js/internals/require-object-coercible.js"),g=i("../../node_modules/core-js/internals/advance-string-index.js"),y=i("../../node_modules/core-js/internals/get-method.js"),b=i("../../node_modules/core-js/internals/get-substitution.js"),S=i("../../node_modules/core-js/internals/regexp-get-flags.js"),C=i("../../node_modules/core-js/internals/regexp-exec-abstract.js"),_=i("../../node_modules/core-js/internals/well-known-symbol.js")("replace"),w=Math.max,R=Math.min,T=s([].concat),E=s([].push),j=s("".indexOf),P=s("".slice),k="$0"==="a".replace(/./,"$0"),O=!!/./[_]&&""===/./[_]("a","$0");a("replace",function(e,r,i){var s=O?"$":"$0";return[function(e,i){var n=m(this),s=u(e)?y(e,_):void 0;return s?o(s,e,n,i):o(r,f(n),e,i)},function(e,o){var a=d(this),c=f(e);if("string"==typeof o&&-1===j(o,s)&&-1===j(o,"$<")){var u=i(r,a,c,o);if(u.done)return u.value}var m=l(o);m||(o=f(o));var y=f(S(a)),_=-1!==j(y,"g");_&&(M=-1!==j(y,"u"),a.lastIndex=0);for(var k=[];null!==(N=C(a,c))&&(E(k,N),_);){;""===f(N[0])&&(a.lastIndex=g(c,h(a.lastIndex),M))}for(var O="",I=0,x=0;x<k.length;x++){for(var A,M,D,N=k[x],B=f(N[0]),L=w(R(p(N.index),c.length),0),F=[],z=1;z<N.length;z++)E(F,void 0===(A=N[z])?A:String(A));var U=N.groups;if(m){var H=T([B],F,L,c);void 0!==U&&E(H,U),D=f(n(o,void 0,H))}else D=b(B,c,L,F,U,o);L>=I&&(O+=P(c,I,L)+D,I=L+B.length)}return O+P(c,I)}]},!!c(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!k||O)},"../../node_modules/core-js/modules/es.string.trim.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/string-trim.js").trim;n({target:"String",proto:!0,forced:i("../../node_modules/core-js/internals/string-trim-forced.js")("trim")},{trim:function(){return o(this)}})},"../../node_modules/core-js/modules/es.symbol.description.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/descriptors.js"),s=i("../../node_modules/core-js/internals/global-this.js"),a=i("../../node_modules/core-js/internals/function-uncurry-this.js"),c=i("../../node_modules/core-js/internals/has-own-property.js"),d=i("../../node_modules/core-js/internals/is-callable.js"),l=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),u=i("../../node_modules/core-js/internals/to-string.js"),p=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),h=i("../../node_modules/core-js/internals/copy-constructor-properties.js"),f=s.Symbol,m=f&&f.prototype;if(o&&d(f)&&(!("description"in m)||void 0!==f().description)){var g={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),r=l(m,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[r]=!0),r};h(y,f),y.prototype=m,m.constructor=y;var b="Symbol(description detection)"===String(f("description detection")),S=a(m.valueOf),C=a(m.toString),_=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),R=a("".slice);p(m,"description",{configurable:!0,get:function(){var e=S(this);if(c(g,e))return"";var r=C(e),i=b?R(r,7,-1):w(r,_,"$1");return""===i?void 0:i}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},"../../node_modules/core-js/modules/es.typed-array.fill.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/array-buffer-view-core.js"),o=i("../../node_modules/core-js/internals/array-fill.js"),s=i("../../node_modules/core-js/internals/to-big-int.js"),a=i("../../node_modules/core-js/internals/classof.js"),c=i("../../node_modules/core-js/internals/function-call.js"),d=i("../../node_modules/core-js/internals/function-uncurry-this.js"),l=i("../../node_modules/core-js/internals/fails.js"),u=n.aTypedArray,p=n.exportTypedArrayMethod,h=d("".slice);p("fill",function(e){var r=arguments.length;return u(this),c(o,this,"Big"===h(a(this),0,3)?s(e):+e,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)},l(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))},"../../node_modules/core-js/modules/es.typed-array.set.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/array-buffer-view-core.js"),a=i("../../node_modules/core-js/internals/length-of-array-like.js"),c=i("../../node_modules/core-js/internals/to-offset.js"),d=i("../../node_modules/core-js/internals/to-object.js"),l=i("../../node_modules/core-js/internals/fails.js"),u=n.RangeError,p=n.Int8Array,h=p&&p.prototype,f=h&&h.set,m=s.aTypedArray,g=s.exportTypedArrayMethod,y=!l(function(){var e=new Uint8ClampedArray(2);return o(f,e,{length:1,0:3},1),3!==e[1]}),b=y&&s.NATIVE_ARRAY_BUFFER_VIEWS&&l(function(){var e=new p(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});g("set",function(e){m(this);var r=c(arguments.length>1?arguments[1]:void 0,1),i=d(e);if(y)return o(f,this,i,r);var n=this.length,s=a(i),l=0;if(s+r>n)throw new u("Wrong length");for(;l<s;)this[r+l]=i[l++]},!y||b)},"../../node_modules/core-js/modules/es.typed-array.sort.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this-clause.js"),s=i("../../node_modules/core-js/internals/fails.js"),a=i("../../node_modules/core-js/internals/a-callable.js"),c=i("../../node_modules/core-js/internals/array-sort.js"),d=i("../../node_modules/core-js/internals/array-buffer-view-core.js"),l=i("../../node_modules/core-js/internals/environment-ff-version.js"),u=i("../../node_modules/core-js/internals/environment-is-ie-or-edge.js"),p=i("../../node_modules/core-js/internals/environment-v8-version.js"),h=i("../../node_modules/core-js/internals/environment-webkit-version.js"),f=d.aTypedArray,m=d.exportTypedArrayMethod,g=n.Uint16Array,y=g&&o(g.prototype.sort),b=!!y&&!(s(function(){y(new g(2),null)})&&s(function(){y(new g(2),{})})),S=!!y&&!s(function(){if(p)return p<74;if(l)return l<67;if(u)return!0;if(h)return h<602;var e,r,i=new g(516),n=Array(516);for(e=0;e<516;e++)r=e%4,i[e]=515-e,n[e]=e-2*r+3;for(y(i,function(e,r){return(e/4|0)-(r/4|0)}),e=0;e<516;e++)if(i[e]!==n[e])return!0});m("sort",function(e){return(void 0!==e&&a(e),S)?y(this,e):c(f(this),function(r,i){return void 0!==e?+e(r,i)||0:i!=i?-1:r!=r?1:0===r&&0===i?1/r>0&&1/i<0?1:-1:r>i})},!S||b)},"../../node_modules/core-js/modules/es.typed-array.uint8-array.js":function(e,r,i){i("../../node_modules/core-js/internals/typed-array-constructor.js")("Uint8",function(e){return function(r,i,n){return e(this,r,i,n)}})},"../../node_modules/core-js/modules/web.dom-collections.iterator.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/dom-iterables.js"),s=i("../../node_modules/core-js/internals/dom-token-list-prototype.js"),a=i("../../node_modules/core-js/modules/es.array.iterator.js"),c=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),d=i("../../node_modules/core-js/internals/set-to-string-tag.js"),l=i("../../node_modules/core-js/internals/well-known-symbol.js")("iterator"),u=a.values,p=function(e,r){if(e){if(e[l]!==u)try{c(e,l,u)}catch(r){e[l]=u}if(d(e,r,!0),o[r]){for(var i in a)if(e[i]!==a[i])try{c(e,i,a[i])}catch(r){e[i]=a[i]}}}};for(var h in o)p(n[h]&&n[h].prototype,h);p(s,"DOMTokenList")},"../../node_modules/core-js/modules/web.queue-microtask.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/global-this.js"),s=i("../../node_modules/core-js/internals/microtask.js"),a=i("../../node_modules/core-js/internals/a-callable.js"),c=i("../../node_modules/core-js/internals/validate-arguments-length.js"),d=i("../../node_modules/core-js/internals/fails.js"),l=i("../../node_modules/core-js/internals/descriptors.js");n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:d(function(){return l&&1!==Object.getOwnPropertyDescriptor(o,"queueMicrotask").value.length})},{queueMicrotask:function(e){c(arguments.length,1),s(a(e))}})},"../../node_modules/core-js/modules/web.url-search-params.constructor.js":function(e,r,i){i("../../node_modules/core-js/modules/es.array.iterator.js"),i("../../node_modules/core-js/modules/es.string.from-code-point.js");var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/global-this.js"),s=i("../../node_modules/core-js/internals/safe-get-built-in.js"),a=i("../../node_modules/core-js/internals/get-built-in.js"),c=i("../../node_modules/core-js/internals/function-call.js"),d=i("../../node_modules/core-js/internals/function-uncurry-this.js"),l=i("../../node_modules/core-js/internals/descriptors.js"),u=i("../../node_modules/core-js/internals/url-constructor-detection.js"),p=i("../../node_modules/core-js/internals/define-built-in.js"),h=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),f=i("../../node_modules/core-js/internals/define-built-ins.js"),m=i("../../node_modules/core-js/internals/set-to-string-tag.js"),g=i("../../node_modules/core-js/internals/iterator-create-constructor.js"),y=i("../../node_modules/core-js/internals/internal-state.js"),b=i("../../node_modules/core-js/internals/an-instance.js"),S=i("../../node_modules/core-js/internals/is-callable.js"),C=i("../../node_modules/core-js/internals/has-own-property.js"),_=i("../../node_modules/core-js/internals/function-bind-context.js"),w=i("../../node_modules/core-js/internals/classof.js"),R=i("../../node_modules/core-js/internals/an-object.js"),T=i("../../node_modules/core-js/internals/is-object.js"),E=i("../../node_modules/core-js/internals/to-string.js"),j=i("../../node_modules/core-js/internals/object-create.js"),P=i("../../node_modules/core-js/internals/create-property-descriptor.js"),k=i("../../node_modules/core-js/internals/get-iterator.js"),O=i("../../node_modules/core-js/internals/get-iterator-method.js"),I=i("../../node_modules/core-js/internals/create-iter-result-object.js"),x=i("../../node_modules/core-js/internals/validate-arguments-length.js"),A=i("../../node_modules/core-js/internals/well-known-symbol.js"),M=i("../../node_modules/core-js/internals/array-sort.js"),D=A("iterator"),N="URLSearchParams",B=N+"Iterator",L=y.set,F=y.getterFor(N),z=y.getterFor(B),U=s("fetch"),H=s("Request"),q=s("Headers"),W=H&&H.prototype,V=q&&q.prototype,G=o.TypeError,K=o.encodeURIComponent,J=String.fromCharCode,X=a("String","fromCodePoint"),$=parseInt,Q=d("".charAt),Y=d([].join),Z=d([].push),ee=d("".replace),et=d([].shift),er=d([].splice),ei=d("".split),en=d("".slice),eo=d(/./.exec),es=/\+/g,ea=/^[0-9a-f]+$/i,ec=function(e,r){var i=en(e,r,r+2);return eo(ea,i)?$(i,16):NaN},ed=function(e){for(var r=0,i=128;i>0&&(e&i)!=0;i>>=1)r++;return r},el=function(e){var r=null;switch(e.length){case 1:r=e[0];break;case 2:r=(31&e[0])<<6|63&e[1];break;case 3:r=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:r=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return r>1114111?null:r},eu=function(e){for(var r=(e=ee(e,es," ")).length,i="",n=0;n<r;){var o=Q(e,n);if("%"===o){if("%"===Q(e,n+1)||n+3>r){i+="%",n++;continue}var s=ec(e,n+1);if(s!=s){i+=o,n++;continue}n+=2;var a=ed(s);if(0===a)o=J(s);else{if(1===a||a>4){i+="�",n++;continue}for(var c=[s],d=1;d<a&&!(++n+3>r)&&"%"===Q(e,n);){var l=ec(e,n+1);if(l!=l){n+=3;break}if(l>191||l<128)break;Z(c,l),n+=2,d++}if(c.length!==a){i+="�";continue}var u=el(c);null===u?i+="�":o=X(u)}}i+=o,n++}return i},ep=/[!'()~]|%20/g,eh={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ef=function(e){return eh[e]},ev=function(e){return ee(K(e),ep,ef)},em=g(function(e,r){L(this,{type:B,target:F(e).entries,index:0,kind:r})},N,function(){var e=z(this),r=e.target,i=e.index++;if(!r||i>=r.length)return e.target=null,I(void 0,!0);var n=r[i];switch(e.kind){case"keys":return I(n.key,!1);case"values":return I(n.value,!1)}return I([n.key,n.value],!1)},!0),eg=function(e){this.entries=[],this.url=null,void 0!==e&&(T(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Q(e,0)?en(e,1):e:E(e)))};eg.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var r,i,n,o,s,a,d,l=this.entries,u=O(e);if(u)for(i=(r=k(e,u)).next;!(n=c(i,r)).done;){if((a=c(s=(o=k(R(n.value))).next,o)).done||(d=c(s,o)).done||!c(s,o).done)throw new G("Expected sequence with length 2");Z(l,{key:E(a.value),value:E(d.value)})}else for(var p in e)C(e,p)&&Z(l,{key:p,value:E(e[p])})},parseQuery:function(e){if(e)for(var r,i,n=this.entries,o=ei(e,"&"),s=0;s<o.length;)(r=o[s++]).length&&Z(n,{key:eu(et(i=ei(r,"="))),value:eu(Y(i,"="))})},serialize:function(){for(var e,r=this.entries,i=[],n=0;n<r.length;)Z(i,ev((e=r[n++]).key)+"="+ev(e.value));return Y(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ey=function(){b(this,eb);var e=arguments.length>0?arguments[0]:void 0,r=L(this,new eg(e));l||(this.size=r.entries.length)},eb=ey.prototype;if(f(eb,{append:function(e,r){var i=F(this);x(arguments.length,2),Z(i.entries,{key:E(e),value:E(r)}),!l&&this.length++,i.updateURL()},delete:function(e){for(var r=F(this),i=x(arguments.length,1),n=r.entries,o=E(e),s=i<2?void 0:arguments[1],a=void 0===s?s:E(s),c=0;c<n.length;){var d=n[c];if(d.key===o&&(void 0===a||d.value===a)){if(er(n,c,1),void 0!==a)break}else c++}l||(this.size=n.length),r.updateURL()},get:function(e){var r=F(this).entries;x(arguments.length,1);for(var i=E(e),n=0;n<r.length;n++)if(r[n].key===i)return r[n].value;return null},getAll:function(e){var r=F(this).entries;x(arguments.length,1);for(var i=E(e),n=[],o=0;o<r.length;o++)r[o].key===i&&Z(n,r[o].value);return n},has:function(e){for(var r=F(this).entries,i=x(arguments.length,1),n=E(e),o=i<2?void 0:arguments[1],s=void 0===o?o:E(o),a=0;a<r.length;){var c=r[a++];if(c.key===n&&(void 0===s||c.value===s))return!0}return!1},set:function(e,r){var i,n=F(this);x(arguments.length,1);for(var o=n.entries,s=!1,a=E(e),c=E(r),d=0;d<o.length;d++)(i=o[d]).key===a&&(s?er(o,d--,1):(s=!0,i.value=c));s||Z(o,{key:a,value:c}),l||(this.size=o.length),n.updateURL()},sort:function(){var e=F(this);M(e.entries,function(e,r){return e.key>r.key?1:-1}),e.updateURL()},forEach:function(e){for(var r,i=F(this).entries,n=_(e,arguments.length>1?arguments[1]:void 0),o=0;o<i.length;)n((r=i[o++]).value,r.key,this)},keys:function(){return new em(this,"keys")},values:function(){return new em(this,"values")},entries:function(){return new em(this,"entries")}},{enumerable:!0}),p(eb,D,eb.entries,{name:"entries"}),p(eb,"toString",function(){return F(this).serialize()},{enumerable:!0}),l&&h(eb,"size",{get:function(){return F(this).entries.length},configurable:!0,enumerable:!0}),m(ey,N),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:ey}),!u&&S(q)){var eS=d(V.has),eC=d(V.set),e_=function(e){if(T(e)){var r,i=e.body;if(w(i)===N)return eS(r=e.headers?new q(e.headers):new q,"content-type")||eC(r,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),j(e,{body:P(0,E(i)),headers:P(0,r)})}return e};if(S(U)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return U(e,arguments.length>1?e_(arguments[1]):{})}}),S(H)){var ew=function(e){return b(this,W),new H(e,arguments.length>1?e_(arguments[1]):{})};W.constructor=ew,ew.prototype=W,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ew})}}e.exports={URLSearchParams:ey,getState:F}},"../../node_modules/core-js/modules/web.url-search-params.js":function(e,r,i){i("../../node_modules/core-js/modules/web.url-search-params.constructor.js")},"../../node_modules/core-js/modules/web.url.constructor.js":function(e,r,i){i("../../node_modules/core-js/modules/es.string.iterator.js");var n,o=i("../../node_modules/core-js/internals/export.js"),s=i("../../node_modules/core-js/internals/descriptors.js"),a=i("../../node_modules/core-js/internals/url-constructor-detection.js"),c=i("../../node_modules/core-js/internals/global-this.js"),d=i("../../node_modules/core-js/internals/function-bind-context.js"),l=i("../../node_modules/core-js/internals/function-uncurry-this.js"),u=i("../../node_modules/core-js/internals/define-built-in.js"),p=i("../../node_modules/core-js/internals/define-built-in-accessor.js"),h=i("../../node_modules/core-js/internals/an-instance.js"),f=i("../../node_modules/core-js/internals/has-own-property.js"),m=i("../../node_modules/core-js/internals/object-assign.js"),g=i("../../node_modules/core-js/internals/array-from.js"),y=i("../../node_modules/core-js/internals/array-slice.js"),b=i("../../node_modules/core-js/internals/string-multibyte.js").codeAt,S=i("../../node_modules/core-js/internals/string-punycode-to-ascii.js"),C=i("../../node_modules/core-js/internals/to-string.js"),_=i("../../node_modules/core-js/internals/set-to-string-tag.js"),w=i("../../node_modules/core-js/internals/validate-arguments-length.js"),R=i("../../node_modules/core-js/modules/web.url-search-params.constructor.js"),T=i("../../node_modules/core-js/internals/internal-state.js"),E=T.set,j=T.getterFor("URL"),P=R.URLSearchParams,k=R.getState,O=c.URL,I=c.TypeError,x=c.parseInt,A=Math.floor,M=Math.pow,D=l("".charAt),N=l(/./.exec),B=l([].join),L=l(1.1.toString),F=l([].pop),z=l([].push),U=l("".replace),H=l([].shift),q=l("".split),W=l("".slice),V=l("".toLowerCase),G=l([].unshift),K="Invalid scheme",J="Invalid host",X="Invalid port",$=/[a-z]/i,Q=/[\d+-.a-z]/i,Y=/\d/,Z=/^0x/i,ee=/^[0-7]+$/,et=/^\d+$/,er=/^[\da-f]+$/i,ei=/[\0\t\n\r #%/:<>?@[\\\]^|]/,en=/[\0\t\n\r #/:<>?@[\\\]^|]/,eo=/^[\u0000-\u0020]+/,es=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ea=/[\t\n\r]/g,ec=function(e){var r,i,n,o,s,a,c,d=q(e,".");if(d.length&&""===d[d.length-1]&&d.length--,(r=d.length)>4)return e;for(n=0,i=[];n<r;n++){if(""===(o=d[n]))return e;if(s=10,o.length>1&&"0"===D(o,0)&&(s=N(Z,o)?16:8,o=W(o,8===s?1:2)),""===o)a=0;else{if(!N(10===s?et:8===s?ee:er,o))return e;a=x(o,s)}z(i,a)}for(n=0;n<r;n++)if(a=i[n],n===r-1){if(a>=M(256,5-r))return null}else if(a>255)return null;for(n=0,c=F(i);n<i.length;n++)c+=i[n]*M(256,3-n);return c},ed=function(e){var r,i,n,o,s,a,c,d=[0,0,0,0,0,0,0,0],l=0,u=null,p=0,h=function(){return D(e,p)};if(":"===h()){if(":"!==D(e,1))return;p+=2,u=++l}for(;h();){if(8===l)return;if(":"===h()){if(null!==u)return;p++,u=++l;continue}for(r=i=0;i<4&&N(er,h());)r=16*r+x(h(),16),p++,i++;if("."===h()){if(0===i||(p-=i,l>6))return;for(n=0;h();){if(o=null,n>0)if("."!==h()||!(n<4))return;else p++;if(!N(Y,h()))return;for(;N(Y,h());){if(s=x(h(),10),null===o)o=s;else{if(0===o)return;o=10*o+s}if(o>255)return;p++}d[l]=256*d[l]+o,(2==++n||4===n)&&l++}if(4!==n)return;break}if(":"===h()){if(p++,!h())return}else if(h())return;d[l++]=r}if(null!==u)for(a=l-u,l=7;0!==l&&a>0;)c=d[l],d[l--]=d[u+a-1],d[u+--a]=c;else if(8!==l)return;return d},el=function(e){for(var r=null,i=1,n=null,o=0,s=0;s<8;s++)0!==e[s]?(o>i&&(r=n,i=o),n=null,o=0):(null===n&&(n=s),++o);return o>i?n:r},eu=function(e){var r,i,n,o;if("number"==typeof e){for(i=0,r=[];i<4;i++)G(r,e%256),e=A(e/256);return B(r,".")}if("object"==typeof e){for(i=0,r="",n=el(e);i<8;i++)(!o||0!==e[i])&&(o&&(o=!1),n===i?(r+=i?":":"::",o=!0):(r+=L(e[i],16),i<7&&(r+=":")));return"["+r+"]"}return e},ep={},eh=m({},ep,{" ":1,'"':1,"<":1,">":1,"`":1}),ef=m({},eh,{"#":1,"?":1,"{":1,"}":1}),ev=m({},ef,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),em=function(e,r){var i=b(e,0);return i>32&&i<127&&!f(r,e)?e:encodeURIComponent(e)},eg={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ey=function(e,r){var i;return 2===e.length&&N($,D(e,0))&&(":"===(i=D(e,1))||!r&&"|"===i)},eb=function(e){var r;return e.length>1&&ey(W(e,0,2))&&(2===e.length||"/"===(r=D(e,2))||"\\"===r||"?"===r||"#"===r)},eS={},eC={},e_={},ew={},eR={},eT={},eE={},ej={},eP={},ek={},eO={},eI={},ex={},eA={},eM={},eD={},eN={},eB={},eL={},eF={},ez={},eU=function(e,r,i){var n,o,s,a=C(e);if(r){if(o=this.parse(a))throw new I(o);this.searchParams=null}else{if(void 0!==i&&(n=new eU(i,!0)),o=this.parse(a,null,n))throw new I(o);(s=k(new P)).bindURL(this),this.searchParams=s}};eU.prototype={type:"URL",parse:function(e,r,i){var o=r||eS,s=0,a="",c=!1,d=!1,l=!1;for(e=C(e),r||(this.scheme="",this.username="",this.password="",this.host=null,this.port=null,this.path=[],this.query=null,this.fragment=null,this.cannotBeABaseURL=!1,e=U(e,eo,""),e=U(e,es,"$1")),u=g(e=U(e,ea,""));s<=u.length;){switch(p=u[s],o){case eS:if(p&&N($,p))a+=V(p),o=eC;else{if(r)return K;o=e_;continue}break;case eC:if(p&&(N(Q,p)||"+"===p||"-"===p||"."===p))a+=V(p);else if(":"===p){if(r&&(this.isSpecial()!==f(eg,a)||"file"===a&&(this.includesCredentials()||null!==this.port)||"file"===this.scheme&&!this.host))return;if(this.scheme=a,r){this.isSpecial()&&eg[this.scheme]===this.port&&(this.port=null);return}a="","file"===this.scheme?o=eA:this.isSpecial()&&i&&i.scheme===this.scheme?o=ew:this.isSpecial()?o=ej:"/"===u[s+1]?(o=eR,s++):(this.cannotBeABaseURL=!0,z(this.path,""),o=eL)}else{if(r)return K;a="",o=e_,s=0;continue}break;case e_:if(!i||i.cannotBeABaseURL&&"#"!==p)return K;if(i.cannotBeABaseURL&&"#"===p){this.scheme=i.scheme,this.path=y(i.path),this.query=i.query,this.fragment="",this.cannotBeABaseURL=!0,o=ez;break}o="file"===i.scheme?eA:eT;continue;case ew:if("/"===p&&"/"===u[s+1])o=eP,s++;else{o=eT;continue}break;case eR:if("/"===p){o=ek;break}o=eB;continue;case eT:if(this.scheme=i.scheme,p===n)this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=y(i.path),this.query=i.query;else if("/"===p||"\\"===p&&this.isSpecial())o=eE;else if("?"===p)this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=y(i.path),this.query="",o=eF;else if("#"===p)this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=y(i.path),this.query=i.query,this.fragment="",o=ez;else{this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=y(i.path),this.path.length--,o=eB;continue}break;case eE:if(this.isSpecial()&&("/"===p||"\\"===p))o=eP;else if("/"===p)o=ek;else{this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,o=eB;continue}break;case ej:if(o=eP,"/"!==p||"/"!==D(a,s+1))continue;s++;break;case eP:if("/"!==p&&"\\"!==p){o=ek;continue}break;case ek:if("@"===p){c&&(a="%40"+a),c=!0,h=g(a);for(var u,p,h,m,b,S,_=0;_<h.length;_++){var w=h[_];if(":"===w&&!l){l=!0;continue}var R=em(w,ev);l?this.password+=R:this.username+=R}a=""}else if(p===n||"/"===p||"?"===p||"#"===p||"\\"===p&&this.isSpecial()){if(c&&""===a)return"Invalid authority";s-=g(a).length+1,a="",o=eO}else a+=p;break;case eO:case eI:if(r&&"file"===this.scheme){o=eD;continue}if(":"!==p||d)if(p===n||"/"===p||"?"===p||"#"===p||"\\"===p&&this.isSpecial()){if(this.isSpecial()&&""===a)return J;if(r&&""===a&&(this.includesCredentials()||null!==this.port))return;if(m=this.parseHost(a))return m;if(a="",o=eN,r)return;continue}else"["===p?d=!0:"]"===p&&(d=!1),a+=p;else{if(""===a)return J;if(m=this.parseHost(a))return m;if(a="",o=ex,r===eI)return}break;case ex:if(N(Y,p))a+=p;else{if(!(p===n||"/"===p||"?"===p||"#"===p||"\\"===p&&this.isSpecial())&&!r)return X;if(""!==a){var T=x(a,10);if(T>65535)return X;this.port=this.isSpecial()&&T===eg[this.scheme]?null:T,a=""}if(r)return;o=eN;continue}break;case eA:if(this.scheme="file","/"===p||"\\"===p)o=eM;else if(i&&"file"===i.scheme)switch(p){case n:this.host=i.host,this.path=y(i.path),this.query=i.query;break;case"?":this.host=i.host,this.path=y(i.path),this.query="",o=eF;break;case"#":this.host=i.host,this.path=y(i.path),this.query=i.query,this.fragment="",o=ez;break;default:eb(B(y(u,s),""))||(this.host=i.host,this.path=y(i.path),this.shortenPath()),o=eB;continue}else{o=eB;continue}break;case eM:if("/"===p||"\\"===p){o=eD;break}i&&"file"===i.scheme&&!eb(B(y(u,s),""))&&(ey(i.path[0],!0)?z(this.path,i.path[0]):this.host=i.host),o=eB;continue;case eD:if(p===n||"/"===p||"\\"===p||"?"===p||"#"===p){if(!r&&ey(a))o=eB;else if(""===a){if(this.host="",r)return;o=eN}else{if(m=this.parseHost(a))return m;if("localhost"===this.host&&(this.host=""),r)return;a="",o=eN}continue}a+=p;break;case eN:if(this.isSpecial()){if(o=eB,"/"!==p&&"\\"!==p)continue}else if(r||"?"!==p)if(r||"#"!==p){if(p!==n&&(o=eB,"/"!==p))continue}else this.fragment="",o=ez;else this.query="",o=eF;break;case eB:if(p===n||"/"===p||"\\"===p&&this.isSpecial()||!r&&("?"===p||"#"===p)){if(".."===(b=V(b=a))||"%2e."===b||".%2e"===b||"%2e%2e"===b?(this.shortenPath(),"/"===p||"\\"===p&&this.isSpecial()||z(this.path,"")):"."===(S=a)||"%2e"===V(S)?"/"===p||"\\"===p&&this.isSpecial()||z(this.path,""):("file"===this.scheme&&!this.path.length&&ey(a)&&(this.host&&(this.host=""),a=D(a,0)+":"),z(this.path,a)),a="","file"===this.scheme&&(p===n||"?"===p||"#"===p))for(;this.path.length>1&&""===this.path[0];)H(this.path);"?"===p?(this.query="",o=eF):"#"===p&&(this.fragment="",o=ez)}else a+=em(p,ef);break;case eL:"?"===p?(this.query="",o=eF):"#"===p?(this.fragment="",o=ez):p!==n&&(this.path[0]+=em(p,ep));break;case eF:r||"#"!==p?p!==n&&("'"===p&&this.isSpecial()?this.query+="%27":"#"===p?this.query+="%23":this.query+=em(p,ep)):(this.fragment="",o=ez);break;case ez:p!==n&&(this.fragment+=em(p,eh))}s++}},parseHost:function(e){var r,i,n;if("["===D(e,0)){if("]"!==D(e,e.length-1)||!(r=ed(W(e,1,-1))))return J;this.host=r}else if(this.isSpecial()){if(N(ei,e=S(e))||null===(r=ec(e)))return J;this.host=r}else{if(N(en,e))return J;for(n=0,r="",i=g(e);n<i.length;n++)r+=em(i[n],ep);this.host=r}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return f(eg,this.scheme)},shortenPath:function(){var e=this.path,r=e.length;r&&("file"!==this.scheme||1!==r||!ey(e[0],!0))&&e.length--},serialize:function(){var e=this.scheme,r=this.username,i=this.password,n=this.host,o=this.port,s=this.path,a=this.query,c=this.fragment,d=e+":";return null!==n?(d+="//",this.includesCredentials()&&(d+=r+(i?":"+i:"")+"@"),d+=eu(n),null!==o&&(d+=":"+o)):"file"===e&&(d+="//"),d+=this.cannotBeABaseURL?s[0]:s.length?"/"+B(s,"/"):"",null!==a&&(d+="?"+a),null!==c&&(d+="#"+c),d},setHref:function(e){var r=this.parse(e);if(r)throw new I(r);this.searchParams.update()},getOrigin:function(){var e=this.scheme,r=this.port;if("blob"===e)try{return new eH(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+eu(this.host)+(null!==r?":"+r:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(C(e)+":",eS)},getUsername:function(){return this.username},setUsername:function(e){var r=g(C(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<r.length;i++)this.username+=em(r[i],ev)}},getPassword:function(){return this.password},setPassword:function(e){var r=g(C(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<r.length;i++)this.password+=em(r[i],ev)}},getHost:function(){var e=this.host,r=this.port;return null===e?"":null===r?eu(e):eu(e)+":"+r},setHost:function(e){this.cannotBeABaseURL||this.parse(e,eO)},getHostname:function(){var e=this.host;return null===e?"":eu(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,eI)},getPort:function(){var e=this.port;return null===e?"":C(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=C(e))?this.port=null:this.parse(e,ex))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+B(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,eN))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=C(e))?this.query=null:("?"===D(e,0)&&(e=W(e,1)),this.query="",this.parse(e,eF)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){if(""===(e=C(e))){this.fragment=null;return}"#"===D(e,0)&&(e=W(e,1)),this.fragment="",this.parse(e,ez)},update:function(){this.query=this.searchParams.serialize()||null}};var eH=function(e){var r=h(this,eq),i=w(arguments.length,1)>1?arguments[1]:void 0,n=E(r,new eU(e,!1,i));s||(r.href=n.serialize(),r.origin=n.getOrigin(),r.protocol=n.getProtocol(),r.username=n.getUsername(),r.password=n.getPassword(),r.host=n.getHost(),r.hostname=n.getHostname(),r.port=n.getPort(),r.pathname=n.getPathname(),r.search=n.getSearch(),r.searchParams=n.getSearchParams(),r.hash=n.getHash())},eq=eH.prototype,eW=function(e,r){return{get:function(){return j(this)[e]()},set:r&&function(e){return j(this)[r](e)},configurable:!0,enumerable:!0}};if(s&&(p(eq,"href",eW("serialize","setHref")),p(eq,"origin",eW("getOrigin")),p(eq,"protocol",eW("getProtocol","setProtocol")),p(eq,"username",eW("getUsername","setUsername")),p(eq,"password",eW("getPassword","setPassword")),p(eq,"host",eW("getHost","setHost")),p(eq,"hostname",eW("getHostname","setHostname")),p(eq,"port",eW("getPort","setPort")),p(eq,"pathname",eW("getPathname","setPathname")),p(eq,"search",eW("getSearch","setSearch")),p(eq,"searchParams",eW("getSearchParams")),p(eq,"hash",eW("getHash","setHash"))),u(eq,"toJSON",function(){return j(this).serialize()},{enumerable:!0}),u(eq,"toString",function(){return j(this).serialize()},{enumerable:!0}),O){var eV=O.createObjectURL,eG=O.revokeObjectURL;eV&&u(eH,"createObjectURL",d(eV,O)),eG&&u(eH,"revokeObjectURL",d(eG,O))}_(eH,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!s},{URL:eH})},"../../node_modules/core-js/modules/web.url.js":function(e,r,i){i("../../node_modules/core-js/modules/web.url.constructor.js")},"../../node_modules/core-js/modules/web.url.to-json.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/export.js"),o=i("../../node_modules/core-js/internals/function-call.js");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},"../../node_modules/reflect-metadata/Reflect.js":function(e,r,i){var n,o;o=n||(n={}),function(e){var r="object"==typeof globalThis?globalThis:"object"==typeof i.g?i.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=s(o);function s(e,r){return function(i,n){Object.defineProperty(e,i,{configurable:!0,writable:!0,value:n}),r&&r(i,n)}}void 0!==r.Reflect&&(n=s(r.Reflect,n)),e(n,r),void 0===r.Reflect&&(r.Reflect=o)}(function(e,r){var i,n=Object.prototype.hasOwnProperty,o="function"==typeof Symbol,s=o&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=o&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",c="function"==typeof Object.create,d=({__proto__:[]})instanceof Array,l=!c&&!d,u={create:c?function(){return F(Object.create(null))}:d?function(){return F({__proto__:null})}:function(){return F({})},has:l?function(e,r){return n.call(e,r)}:function(e,r){return r in e},get:l?function(e,r){return n.call(e,r)?e[r]:void 0}:function(e,r){return e[r]}},p=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},r=[],i=function(){function e(e,r,i){this._index=0,this._keys=e,this._values=r,this._selector=i}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var i=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=r,this._values=r):this._index++,{value:i,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=r,this._values=r),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=r,this._values=r),{value:e,done:!0}},e}();function n(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(n.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),n.prototype.has=function(e){return this._find(e,!1)>=0},n.prototype.get=function(e){var r=this._find(e,!1);return r>=0?this._values[r]:void 0},n.prototype.set=function(e,r){var i=this._find(e,!0);return this._values[i]=r,this},n.prototype.delete=function(r){var i=this._find(r,!1);if(i>=0){for(var n=this._keys.length,o=i+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,x(r,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},n.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},n.prototype.keys=function(){return new i(this._keys,this._values,o)},n.prototype.values=function(){return new i(this._keys,this._values,s)},n.prototype.entries=function(){return new i(this._keys,this._values,c)},n.prototype["@@iterator"]=function(){return this.entries()},n.prototype[a]=function(){return this.entries()},n.prototype._find=function(e,r){if(!x(this._cacheKey,e)){this._cacheIndex=-1;for(var i=0;i<this._keys.length;i++)if(x(this._keys[i],e)){this._cacheIndex=i;break}}return this._cacheIndex<0&&r&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},n;function o(e,r){return e}function s(e,r){return r}function c(e,r){return[e,r]}}(),f="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new h}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),m="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),r=o();function i(){this._key=o()}return i.prototype.has=function(e){var r=s(e,!1);return void 0!==r&&u.has(r,this._key)},i.prototype.get=function(e){var r=s(e,!1);return void 0!==r?u.get(r,this._key):void 0},i.prototype.set=function(e,r){return s(e,!0)[this._key]=r,this},i.prototype.delete=function(e){var r=s(e,!1);return void 0!==r&&delete r[this._key]},i.prototype.clear=function(){this._key=o()},i;function o(){var r;do r="@@WeakMap@@"+function(){var e=function(e){if("function"==typeof Uint8Array){var r=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(r):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(r):a(r,16),r}return a(Array(16),16)}(0);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",i=0;i<16;++i){var n=e[i];(4===i||6===i||8===i)&&(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}();while(u.has(e,r));return e[r]=!0,r}function s(e,i){if(!n.call(e,r)){if(!i)return;Object.defineProperty(e,r,{value:u.create()})}return e[r]}function a(e,r){for(var i=0;i<r;++i)e[i]=255*Math.random()|0;return e}}(),g=o?Symbol.for("@reflect-metadata:registry"):void 0,y=(!T(g)&&j(r.Reflect)&&Object.isExtensible(r.Reflect)&&(i=r.Reflect[g]),T(i)&&(i=function(){T(g)||void 0===r.Reflect||g in r.Reflect||"function"!=typeof r.Reflect.defineMetadata||(i=(e=r.Reflect).defineMetadata,n=e.hasOwnMetadata,o=e.getOwnMetadata,s=e.getOwnMetadataKeys,a=e.deleteMetadata,c=new m,d={isProviderFor:function(e,r){var i=c.get(e);return!!(!T(i)&&i.has(r))||!!s(e,r).length&&(T(i)&&(i=new f,c.set(e,i)),i.add(r),!0)},OrdinaryDefineOwnMetadata:i,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:s,OrdinaryDeleteMetadata:a});var e,i,n,o,s,a,c,d,l,u,p,y=new m,b={registerProvider:function(e){if(!Object.isExtensible(b))throw Error("Cannot add provider to a frozen registry.");switch(!0){case d===e:break;case T(l):l=e;break;case l===e:break;case T(u):u=e;break;case u===e:break;default:void 0===p&&(p=new f),p.add(e)}},getProvider:S,setProvider:function(e,r,i){if(!function(e){if(T(e))throw TypeError();return l===e||u===e||!T(p)&&p.has(e)}(i))throw Error("Metadata provider not registered.");var n=S(e,r);if(n!==i){if(!T(n))return!1;var o=y.get(e);T(o)&&(o=new h,y.set(e,o)),o.set(r,i)}return!0}};return b;function S(e,r){var i,n=y.get(e);return T(n)||(i=n.get(r)),T(i)&&(i=function(e,r){if(!T(l)){if(l.isProviderFor(e,r))return l;if(!T(u)){if(u.isProviderFor(e,r))return l;if(!T(p))for(var i=M(p);;){var n=D(i);if(!n)return;var o=n.value;if(o.isProviderFor(e,r))return N(i),o}}}if(!T(d)&&d.isProviderFor(e,r))return d}(e,r),T(i)||(T(n)&&(n=new h,y.set(e,n)),n.set(r,i))),i}}()),!T(g)&&j(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,g,{enumerable:!1,configurable:!1,writable:!1,value:i}),i),b=function(e){var r=new m,i={isProviderFor:function(e,i){var n=r.get(e);return!T(n)&&n.has(i)},OrdinaryDefineOwnMetadata:function(e,r,i,o){n(i,o,!0).set(e,r)},OrdinaryHasOwnMetadata:function(e,r,i){var o=n(r,i,!1);return!T(o)&&!!o.has(e)},OrdinaryGetOwnMetadata:function(e,r,i){var o=n(r,i,!1);if(!T(o))return o.get(e)},OrdinaryOwnMetadataKeys:function(e,r){var i=[],o=n(e,r,!1);if(T(o))return i;for(var s=M(o.keys()),a=0;;){var c=D(s);if(!c)return i.length=a,i;var d=c.value;try{i[a]=d}catch(e){try{N(s)}finally{throw e}}a++}},OrdinaryDeleteMetadata:function(e,i,o){var s=n(i,o,!1);if(T(s)||!s.delete(e))return!1;if(0===s.size){var a=r.get(i);T(a)||(a.delete(o),0===a.size&&r.delete(a))}return!0}};return y.registerProvider(i),i;function n(n,o,s){var a=r.get(n),c=!1;if(T(a)){if(!s)return;a=new h,r.set(n,a),c=!0}var d=a.get(o);if(T(d)){if(!s)return;if(d=new h,a.set(o,d),!e.setProvider(n,o,i))throw a.delete(o),c&&r.delete(n),Error("Wrong provider for target.")}return d}}(y);function S(e,r,i){var n=L(r,i,!1);return!T(n)&&!!n.OrdinaryHasOwnMetadata(e,r,i)}function C(e,r,i){var n=L(r,i,!1);if(!T(n))return n.OrdinaryGetOwnMetadata(e,r,i)}function _(e,r,i,n){L(i,n,!0).OrdinaryDefineOwnMetadata(e,r,i,n)}function w(e,r){var i=L(e,r,!1);return i?i.OrdinaryOwnMetadataKeys(e,r):[]}function R(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function T(e){return void 0===e}function E(e){return null===e}function j(e){return"object"==typeof e?null!==e:"function"==typeof e}e("decorate",function(e,r,i,n){if(T(i)){if(!k(e)||!I(r))throw TypeError();for(var o=e,s=r,a=o.length-1;a>=0;--a){var c=(0,o[a])(s);if(!T(c)&&!E(c)){if(!I(c))throw TypeError();s=c}}return s}if(!k(e)||!j(r)||!j(n)&&!T(n)&&!E(n))throw TypeError();return E(n)&&(n=void 0),function(e,r,i,n){for(var o=e.length-1;o>=0;--o){var s=(0,e[o])(r,i,n);if(!T(s)&&!E(s)){if(!j(s))throw TypeError();n=s}}return n}(e,r,i=P(i),n)}),e("metadata",function(e,r){return function(i,n){if(!j(i)||!T(n)&&!function(e){switch(R(e)){case 3:case 4:return!0;default:return!1}}(n))throw TypeError();_(e,r,i,n)}}),e("defineMetadata",function(e,r,i,n){if(!j(i))throw TypeError();return T(n)||(n=P(n)),_(e,r,i,n)}),e("hasMetadata",function(e,r,i){if(!j(r))throw TypeError();return T(i)||(i=P(i)),function e(r,i,n){if(S(r,i,n))return!0;var o=B(i);return!E(o)&&e(r,o,n)}(e,r,i)}),e("hasOwnMetadata",function(e,r,i){if(!j(r))throw TypeError();return T(i)||(i=P(i)),S(e,r,i)}),e("getMetadata",function(e,r,i){if(!j(r))throw TypeError();return T(i)||(i=P(i)),function e(r,i,n){if(S(r,i,n))return C(r,i,n);var o=B(i);if(!E(o))return e(r,o,n)}(e,r,i)}),e("getOwnMetadata",function(e,r,i){if(!j(r))throw TypeError();return T(i)||(i=P(i)),C(e,r,i)}),e("getMetadataKeys",function(e,r){if(!j(e))throw TypeError();return T(r)||(r=P(r)),function e(r,i){var n=w(r,i),o=B(r);if(null===o)return n;var s=e(o,i);if(s.length<=0)return n;if(n.length<=0)return s;for(var a=new f,c=[],d=0;d<n.length;d++){var l=n[d],u=a.has(l);u||(a.add(l),c.push(l))}for(var p=0;p<s.length;p++){var l=s[p],u=a.has(l);u||(a.add(l),c.push(l))}return c}(e,r)}),e("getOwnMetadataKeys",function(e,r){if(!j(e))throw TypeError();return T(r)||(r=P(r)),w(e,r)}),e("deleteMetadata",function(e,r,i){if(!j(r)||(T(i)||(i=P(i)),!j(r)))throw TypeError();T(i)||(i=P(i));var n=L(r,i,!1);return!T(n)&&n.OrdinaryDeleteMetadata(e,r,i)});function P(e){var r=function(e,r){switch(R(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var i="string",n=A(e,s);if(void 0!==n){var o=n.call(e,i);if(j(o))throw TypeError();return o}return function(e,r){if("string"===r){var i=e.toString;if(O(i)){var n=i.call(e);if(!j(n))return n}var o=e.valueOf;if(O(o)){var n=o.call(e);if(!j(n))return n}}else{var o=e.valueOf;if(O(o)){var n=o.call(e);if(!j(n))return n}var s=e.toString;if(O(s)){var n=s.call(e);if(!j(n))return n}}throw TypeError()}(e,i)}(e,0);return"symbol"==typeof r?r:""+r}function k(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function O(e){return"function"==typeof e}function I(e){return"function"==typeof e}function x(e,r){return e===r||e!=e&&r!=r}function A(e,r){var i=e[r];if(null!=i){if(!O(i))throw TypeError();return i}}function M(e){var r=A(e,a);if(!O(r))throw TypeError();var i=r.call(e);if(!j(i))throw TypeError();return i}function D(e){var r=e.next();return!r.done&&r}function N(e){var r=e.return;r&&r.call(e)}function B(e){var r=Object.getPrototypeOf(e);if("function"!=typeof e||e===p||r!==p)return r;var i=e.prototype,n=i&&Object.getPrototypeOf(i);if(null==n||n===Object.prototype)return r;var o=n.constructor;return"function"!=typeof o||o===e?r:o}function L(e,r,i){var n=y.getProvider(e,r);if(!T(n))return n;if(i){if(y.setProvider(e,r,b))return b;throw Error("Illegal state.")}}function F(e){return e.__=void 0,delete e.__,e}})},"../../node_modules/core-js/internals/regexp-sticky-helpers.js":function(e,r,i){i("../../node_modules/core-js/modules/es.object.has-own.js");var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/global-this.js").RegExp,s=n(function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),a=s||n(function(){return!o("a","y").sticky});e.exports={BROKEN_CARET:s||n(function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:a,UNSUPPORTED_Y:s}}},S={};function C(e){var r=S[e];if(void 0!==r)return r.exports;var i=S[e]={id:e,loaded:!1,exports:{}};return b[e].call(i.exports,i,i.exports,C),i.loaded=!0,i.exports}C.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return C.d(r,{a:r}),r},C.d=(e,r)=>{for(var i in r)C.o(r,i)&&!C.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},C.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),C.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),C.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},C.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var _={};C.r(_),C.d(_,{fixNegotiationNeeded:()=>uP,shimAddTrackRemoveTrack:()=>uE,shimAddTrackRemoveTrackWithNative:()=>uT,shimGetSendersWithDtmf:()=>uw,shimGetUserMedia:()=>uS,shimMediaStream:()=>uC,shimOnTrack:()=>u_,shimPeerConnection:()=>uj,shimSenderReceiverGetStats:()=>uR});var w={};C.r(w),C.d(w,{shimAddTransceiver:()=>uB,shimCreateAnswer:()=>uz,shimCreateOffer:()=>uF,shimGetDisplayMedia:()=>uO,shimGetParameters:()=>uL,shimGetUserMedia:()=>uk,shimOnTrack:()=>uI,shimPeerConnection:()=>ux,shimRTCDataChannel:()=>uN,shimReceiverGetStats:()=>uM,shimRemoveStream:()=>uD,shimSenderGetStats:()=>uA});var R={};C.r(R),C.d(R,{shimAudioContext:()=>uX,shimCallbacksAPI:()=>uq,shimConstraints:()=>uV,shimCreateOfferLegacy:()=>uJ,shimGetUserMedia:()=>uW,shimLocalStreamsAPI:()=>uU,shimRTCIceServerUrls:()=>uG,shimRemoteStreamsAPI:()=>uH,shimTrackEventTransceiver:()=>uK});var T={};C.r(T),C.d(T,{removeExtmapAllowMixed:()=>u3,shimAddIceCandidateNullOrEmpty:()=>u4,shimConnectionState:()=>u2,shimMaxMessageSize:()=>u0,shimParameterlessSetLocalDescription:()=>u6,shimRTCIceCandidate:()=>uY,shimRTCIceCandidateRelayProtocol:()=>uZ,shimSendThrowTypeError:()=>u1});var E={};C.r(E),C.d(E,{default:()=>u5});var j={};function P(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function k(e){return("object"==typeof e&&null!==e||"function"==typeof e)&&"function"==typeof e.then}function O(e){switch(typeof e){case"string":case"symbol":return e.toString();case"function":return e.name;default:throw Error("Unexpected ".concat(typeof e," service id type"))}}C.r(j),C.d(j,{clearInterval:()=>hI,clearTimeout:()=>hx,setInterval:()=>hA,setTimeout:()=>hM}),C("../../node_modules/core-js/modules/es.object.has-own.js"),C("../../node_modules/reflect-metadata/Reflect.js"),C("../../node_modules/core-js/modules/es.symbol.description.js"),C("../../node_modules/core-js/modules/web.dom-collections.iterator.js");let I=Symbol.for("@inversifyjs/common/islazyServiceIdentifier");var x=new WeakMap;class A{static is(e){return"object"==typeof e&&null!==e&&!0===e[I]}unwrap(){var e;return(e=P(this,x,"get"),e.get?e.get.call(this):e.value).call(this)}constructor(e){!function(e,r,i){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");r.set(e,i)}(this,x,{writable:!0,value:void 0}),function(e,r,i){var n=P(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}}(this,x,e),this[I]=!0}}function M(e,r,i){return Reflect.getOwnMetadata(r,e,i)}function D(e,r,i,n){Reflect.defineMetadata(r,i,e,n)}function N(e,r,i,n,o){var s;let a=n(null!=(s=M(e,r,o))?s:i());Reflect.defineMetadata(r,a,e,o)}function B(e,r){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function L(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function F(e,r){var i=L(e,r,"get");return i.get?i.get.call(e):i.value}function z(e,r,i){B(e,r),r.set(e,i)}function U(e,r,i){var n=L(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function H(e,r,i){if(!r.has(e))throw TypeError("attempted to get private field on non-instance");return i}function q(e,r){B(e,r),r.add(e)}C("../../node_modules/core-js/modules/es.array.includes.js"),C("../../node_modules/core-js/modules/es.array.reverse.js");let W="@inversifyjs/container/bindingId";function V(){var e;let r=null!=(e=M(Object,W))?e:0;return r===Number.MAX_SAFE_INTEGER?D(Object,W,Number.MIN_SAFE_INTEGER):N(Object,W,()=>r,e=>e+1),r}let G="Request",K="Singleton",J="Transient",X="ConstantValue",$="DynamicValue",Q="Factory",Y="Instance",Z="Provider",ee="ResolvedValue",et="ServiceRedirection";function*er(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];for(let e of r)yield*e}var ei=new WeakMap,en=new WeakMap,eo=new WeakMap,es=new WeakSet,ea=new WeakSet,ec=new WeakSet,ed=new WeakSet,el=new WeakSet,eu=new WeakSet,ep=new WeakSet,eh=new WeakSet,ef=new WeakSet,ev=new WeakSet;class em{add(e,r){for(let i of(H(this,ec,eb).call(this,e).push(r),Reflect.ownKeys(r)))H(this,ed,eS).call(this,i,r[i]).push(e)}clone(){let e=H(this,es,eg).call(this),r=H(this,ea,ey).call(this),i=Reflect.ownKeys(F(this,eo)),n=this._buildNewInstance(F(this,eo));for(let o of(H(this,eh,eR).call(this,F(this,ei),F(n,ei),e,r),i))H(this,ep,ew).call(this,F(this,en)[o],F(n,en)[o],e);return n}get(e,r){return F(this,en)[e].get(r)}getAllKeys(e){return F(this,en)[e].keys()}removeByRelation(e,r){let i=this.get(e,r);if(void 0!==i)for(let n of new Set(i)){let i=F(this,ei).get(n);if(void 0===i)throw Error("Expecting model relation, none found");for(let o of i)o[e]===r&&H(this,ef,eT).call(this,n,o);F(this,ei).delete(n)}}_buildNewInstance(e){return new em(e)}_cloneModel(e){return e}_cloneRelation(e){return e}constructor(e){for(let r of(q(this,es),q(this,ea),q(this,ec),q(this,ed),q(this,el),q(this,eu),q(this,ep),q(this,eh),q(this,ef),q(this,ev),z(this,ei,{writable:!0,value:void 0}),z(this,en,{writable:!0,value:void 0}),z(this,eo,{writable:!0,value:void 0}),U(this,ei,new Map),U(this,en,{}),Reflect.ownKeys(e)))F(this,en)[r]=new Map;U(this,eo,e)}}function eg(){let e=new Map;for(let r of F(this,ei).keys()){let i=this._cloneModel(r);e.set(r,i)}return e}function ey(){let e=new Map;for(let r of F(this,ei).values())for(let i of r){let r=this._cloneRelation(i);e.set(i,r)}return e}function eb(e){let r=F(this,ei).get(e);return void 0===r&&(r=[],F(this,ei).set(e,r)),r}function eS(e,r){let i=F(this,en)[e].get(r);return void 0===i&&(i=[],F(this,en)[e].set(r,i)),i}function eC(e,r){let i=r.get(e);if(void 0===i)throw Error("Expecting model to be cloned, none found");return i}function e_(e,r){let i=r.get(e);if(void 0===i)throw Error("Expecting relation to be cloned, none found");return i}function ew(e,r,i){for(let[n,o]of e){let e=[];for(let r of o)e.push(H(this,el,eC).call(this,r,i));r.set(n,e)}}function eR(e,r,i,n){for(let[o,s]of e){let e=[];for(let r of s)e.push(H(this,eu,e_).call(this,r,n));r.set(H(this,el,eC).call(this,o,i),e)}}function eT(e,r){for(let i of Reflect.ownKeys(r))H(this,ev,eE).call(this,e,i,r[i])}function eE(e,r,i){let n=F(this,en)[r].get(i);if(void 0!==n){let o=n.indexOf(e);-1!==o&&n.splice(o,1),0===n.length&&F(this,en)[r].delete(i)}}(pb=pU||(pU={})).moduleId="moduleId",pb.serviceId="serviceId";var ej=new WeakMap,eP=new WeakMap;class ek{static build(e){return new ek(e)}add(e,r){F(this,ej).add(e,r)}clone(){return new ek(F(this,eP),F(this,ej).clone())}get(e){var r;let i=[],n=F(this,ej).get(pU.serviceId,e);void 0!==n&&i.push(n);let o=null==(r=F(this,eP).call(this))?void 0:r.get(e);if(void 0!==o&&i.push(o),0!==i.length)return er(...i)}removeAllByModuleId(e){F(this,ej).removeByRelation(pU.moduleId,e)}removeAllByServiceId(e){F(this,ej).removeByRelation(pU.serviceId,e)}constructor(e,r){z(this,ej,{writable:!0,value:void 0}),z(this,eP,{writable:!0,value:void 0}),U(this,ej,null!=r?r:new em({moduleId:{isOptional:!0},serviceId:{isOptional:!1}})),U(this,eP,e)}}let eO="@inversifyjs/core/classMetadataReflectKey";function eI(){return{constructorArguments:[],lifecycle:{postConstructMethodNames:new Set,preDestroyMethodNames:new Set},properties:new Map,scope:void 0}}let ex="@inversifyjs/core/pendingClassMetadataCountReflectKey",eA=Symbol.for("@inversifyjs/core/InversifyCoreError");class eM extends Error{static is(e){return"object"==typeof e&&null!==e&&!0===e[eA]}static isErrorOfKind(e,r){return eM.is(e)&&e.kind===r}constructor(e,r,i){super(r,i),this[eA]=!0,this.kind=e}}function eD(e){var r;let i,n=null!=(r=M(e,eO))?r:eI();if(void 0===(i=M(e,ex))||0===i)return function(e,r){let i=[];if(r.length<e.length)throw new eM(pH.missingInjectionDecorator,'Found unexpected missing metadata on type "'.concat(e.name,'". "').concat(e.name,'" constructor requires at least ').concat(e.length.toString()," arguments, found ").concat(r.length.toString(),' instead.\nAre you using @inject, @multiInject or @unmanaged decorators in every non optional constructor argument?\n\nIf you\'re using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true'));for(let e=0;e<r.length;++e)void 0===r[e]&&i.push(e);if(i.length>0)throw new eM(pH.missingInjectionDecorator,'Found unexpected missing metadata on type "'.concat(e.name,'" at constructor indexes "').concat(i.join('", "'),'".\n\nAre you using @inject, @multiInject or @unmanaged decorators at those indexes?\n\nIf you\'re using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true'))}(e,n.constructorArguments),n;let o=[];for(let r=0;r<n.constructorArguments.length;++r){let i=n.constructorArguments[r];void 0!==i&&i.kind!==pq.unknown||o.push(' - Missing or incomplete metadata for type "'.concat(e.name,'" at constructor argument with index ').concat(r.toString(),".\nEvery constructor parameter must be decorated either with @inject, @multiInject or @unmanaged decorator."))}for(let[r,i]of n.properties)i.kind===pq.unknown&&o.push(' - Missing or incomplete metadata for type "'.concat(e.name,'" at property "').concat(r.toString(),'".\nThis property must be decorated either with @inject or @multiInject decorator.'));if(0===o.length)throw new eM(pH.unknown,'Unexpected class metadata for type "'.concat(e.name,'" with uncompletion traces.\nThis might be caused by one of the following reasons:\n\n1. A third party library is targeting inversify reflection metadata.\n2. A bug is causing the issue. Consider submiting an issue to fix it.'));throw new eM(pH.missingInjectionDecorator,"Invalid class metadata at type ".concat(e.name,":\n\n").concat(o.join("\n\n")))}function eN(e,r){var i;let n=null!=(i=eD(r).scope)?i:e.scope;return{cache:{isRight:!1,value:void 0},id:V(),implementationType:r,isSatisfiedBy:()=>!0,moduleId:void 0,onActivation:void 0,onDeactivation:void 0,scope:n,serviceIdentifier:r,type:Y}}function eB(e){return e.isRight?{isRight:!0,value:e.value}:e}(pS=pH||(pH={}))[pS.injectionDecoratorConflict=0]="injectionDecoratorConflict",pS[pS.missingInjectionDecorator=1]="missingInjectionDecorator",pS[pS.planning=2]="planning",pS[pS.resolution=3]="resolution",pS[pS.unknown=4]="unknown",(pC=pq||(pq={}))[pC.unknown=32]="unknown",(p_=pW||(pW={})).id="id",p_.moduleId="moduleId",p_.serviceId="serviceId";class eL extends em{_buildNewInstance(e){return new eL(e)}_cloneModel(e){return function(e){switch(e.type){case X:case $:return{cache:eB(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type,value:e.value};case Q:return{cache:eB(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type};case Y:return{cache:eB(e.cache),id:e.id,implementationType:e.implementationType,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type};case Z:return{cache:eB(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,provider:e.provider,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type};case ee:return{cache:eB(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,metadata:e.metadata,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type};case et:return{id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,serviceIdentifier:e.serviceIdentifier,targetServiceIdentifier:e.targetServiceIdentifier,type:e.type}}}(e)}}var eF=new WeakMap,ez=new WeakMap,eU=new WeakMap,eH=new WeakSet;class eq{static build(e,r){return new eq(e,r)}clone(){return new eq(F(this,eU),F(this,eF),F(this,ez).clone())}get(e){var r,i;let n=null!=(i=this.getNonParentBindings(e))?i:null==(r=F(this,eU).call(this))?void 0:r.get(e);if(void 0!==n)return n;let o=H(this,eH,eW).call(this,e);return void 0===o?o:[o]}*getChained(e){let r=this.getNonParentBindings(e);void 0!==r&&(yield*r);let i=F(this,eU).call(this);if(void 0===i){if(void 0===r){let r=H(this,eH,eW).call(this,e);void 0!==r&&(yield r)}}else yield*i.getChained(e)}getBoundServices(){let e=new Set(F(this,ez).getAllKeys(pW.serviceId)),r=F(this,eU).call(this);if(void 0!==r)for(let i of r.getBoundServices())e.add(i);return e}getById(e){var r,i;return null!=(i=F(this,ez).get(pW.id,e))?i:null==(r=F(this,eU).call(this))?void 0:r.getById(e)}getByModuleId(e){var r,i;return null!=(i=F(this,ez).get(pW.moduleId,e))?i:null==(r=F(this,eU).call(this))?void 0:r.getByModuleId(e)}getNonParentBindings(e){return F(this,ez).get(pW.serviceId,e)}getNonParentBoundServices(){return F(this,ez).getAllKeys(pW.serviceId)}removeById(e){F(this,ez).removeByRelation(pW.id,e)}removeAllByModuleId(e){F(this,ez).removeByRelation(pW.moduleId,e)}removeAllByServiceId(e){F(this,ez).removeByRelation(pW.serviceId,e)}set(e){let r={[pW.id]:e.id,[pW.serviceId]:e.serviceIdentifier};void 0!==e.moduleId&&(r[pW.moduleId]=e.moduleId),F(this,ez).add(e,r)}constructor(e,r,i){q(this,eH),z(this,eF,{writable:!0,value:void 0}),z(this,ez,{writable:!0,value:void 0}),z(this,eU,{writable:!0,value:void 0}),U(this,ez,null!=i?i:new eL({id:{isOptional:!1},moduleId:{isOptional:!0},serviceId:{isOptional:!1}})),U(this,eU,e),U(this,eF,r)}}function eW(e){if(void 0===F(this,eF)||"function"!=typeof e)return;let r=eN(F(this,eF),e);return this.set(r),r}(pw=pV||(pV={})).moduleId="moduleId",pw.serviceId="serviceId";var eV=new WeakMap,eG=new WeakMap;class eK{static build(e){return new eK(e)}add(e,r){F(this,eV).add(e,r)}clone(){return new eK(F(this,eG),F(this,eV).clone())}get(e){var r;let i=[],n=F(this,eV).get(pV.serviceId,e);void 0!==n&&i.push(n);let o=null==(r=F(this,eG).call(this))?void 0:r.get(e);if(void 0!==o&&i.push(o),0!==i.length)return er(...i)}removeAllByModuleId(e){F(this,eV).removeByRelation(pV.moduleId,e)}removeAllByServiceId(e){F(this,eV).removeByRelation(pV.serviceId,e)}constructor(e,r){z(this,eV,{writable:!0,value:void 0}),z(this,eG,{writable:!0,value:void 0}),U(this,eV,null!=r?r:new em({moduleId:{isOptional:!0},serviceId:{isOptional:!1}})),U(this,eG,e)}}function eJ(e,r,i,n){let o=Array.isArray(e)?e:[e];if(void 0!==i)if("number"!=typeof i)if(void 0!==n)for(let e of o)e(r,i,n);else Reflect.decorate(o,r.prototype,i);else for(let e of o)e(r,void 0,i);else Reflect.decorate(o,r)}function eX(){return 0}function e$(e){return r=>{void 0!==r&&r.kind===pq.unknown&&N(e,ex,eX,e=>e-1)}}function eQ(e,r){return function(){for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return i=>{if(void 0===i)return e(...n);if(i.kind===pG.unmanaged)throw new eM(pH.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found");return r(i,...n)}}}function eY(e){if(e.kind!==pq.unknown&&!0!==e.isFromTypescriptParamType)throw new eM(pH.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found")}(pR=pG||(pG={}))[pR.multipleInjection=0]="multipleInjection",pR[pR.singleInjection=1]="singleInjection",pR[pR.unmanaged=2]="unmanaged";let eZ=eQ(function(e,r,i){var n;return e===pG.multipleInjection?{chained:null!=(n=null==i?void 0:i.chained)&&n,kind:e,name:void 0,optional:!1,tags:new Map,value:r}:{kind:e,name:void 0,optional:!1,tags:new Map,value:r}},function(e,r,i,n){var o;return eY(e),r===pG.multipleInjection?{...e,chained:null!=(o=null==n?void 0:n.chained)&&o,kind:r,value:i}:{...e,kind:r,value:i}});function e0(e,r){return i=>{let n=i.properties.get(r);return i.properties.set(r,e(n)),i}}function e1(e,r){return(i,n,o)=>{try{let s,a,c;void 0===o?(s=e2(e,r),(e,r)=>{N(e.constructor,eO,eI,e0(s(e),r))})(i,n):"number"==typeof o?(a=e2(e,r),(e,r,i)=>{var n,o;if("function"!=typeof e||void 0!==r)throw new eM(pH.injectionDecoratorConflict,'Found an @inject decorator in a non constructor parameter.\nFound @inject decorator at method "'.concat(null!=(n=null==r?void 0:r.toString())?n:"",'" at class "').concat(e.constructor.name,'"'));N(e,eO,eI,(o=a(e),e=>{let r=e.constructorArguments[i];return e.constructorArguments[i]=o(r),e}))})(i,n,o):(c=e2(e,r),(e,r,i)=>{if(void 0===i.set)throw new eM(pH.injectionDecoratorConflict,'Found an @inject decorator in a non setter property method.\nFound @inject decorator at method "'.concat(r.toString(),'" at class "').concat(e.constructor.name,'"'));N(e.constructor,eO,eI,e0(c(e),r))})(i,n,o)}catch(e){if(eM.isErrorOfKind(e,pH.injectionDecoratorConflict)){let r=function(e,r,i){if(void 0===i){if(void 0===r)throw new eM(pH.unknown,"Unexpected undefined property and index values");return{kind:pK.property,property:r,targetClass:e.constructor}}return"number"==typeof i?{index:i,kind:pK.parameter,targetClass:e}:{kind:pK.method,method:r,targetClass:e}}(i,n,o);throw new eM(pH.injectionDecoratorConflict,"Unexpected injection error.\n\nCause:\n\n".concat(e.message,"\n\nDetails\n\n").concat(function(e){switch(e.kind){case pK.method:return'[class: "'.concat(e.targetClass.name,'", method: "').concat(e.method.toString(),'"]');case pK.parameter:return'[class: "'.concat(e.targetClass.name,'", index: "').concat(e.index.toString(),'"]');case pK.property:return'[class: "'.concat(e.targetClass.name,'", property: "').concat(e.property.toString(),'"]')}}(r)),{cause:e})}throw e}}}function e2(e,r){return i=>{let n=r(i);return r=>(n(r),e(r))}}function e3(e){return e1(eZ(pG.singleInjection,e),e$)}(pT=pK||(pK={}))[pT.method=0]="method",pT[pT.parameter=1]="parameter",pT[pT.property=2]="property";let e4="@inversifyjs/core/classIsInjectableFlagReflectKey",e6=[Array,BigInt,Boolean,Function,Number,Object,String];function e5(e){return r=>{let i;!function(e){if(void 0!==M(e,e4))throw new eM(pH.injectionDecoratorConflict,'Cannot apply @injectable decorator multiple times at class "'.concat(e.name,'"'));D(e,e4,!0)}(r),void 0!==(i=M(r,"design:paramtypes"))&&N(r,eO,eI,e=>(i.forEach((r,i)=>{void 0!==e.constructorArguments[i]||e6.includes(r)||(e.constructorArguments[i]={isFromTypescriptParamType:!0,kind:pG.singleInjection,name:void 0,optional:!1,tags:new Map,value:r})}),e)),void 0!==e&&N(r,eO,eI,r=>({...r,scope:e}))}}function e8(e,r,i){return e?new Set([...r,...i]):i}function e9(e){return r=>{var i;let n,o=null==(n=Object.getPrototypeOf(r.prototype))?void 0:n.constructor;if(void 0===o)throw new eM(pH.injectionDecoratorConflict,'Expected base type for type "'.concat(r.name,'", none found.'));(i={...e,type:o},e=>{let r=eD(i.type);N(e,eO,eI,e=>{var n,o,s,a,c,d;let l,u,p;return{constructorArguments:(null==(n=i.extendConstructorArguments)||n?(l=[...r.constructorArguments],e.constructorArguments.map((e,r)=>{l[r]=e})):l=e.constructorArguments,l),lifecycle:(u=null==(a=null==(o=i.lifecycle)?void 0:o.extendPostConstructMethods)||a,p=e8(null==(c=null==(s=i.lifecycle)?void 0:s.extendPreDestroyMethods)||c,r.lifecycle.preDestroyMethodNames,e.lifecycle.preDestroyMethodNames),{postConstructMethodNames:e8(u,r.lifecycle.postConstructMethodNames,e.lifecycle.postConstructMethodNames),preDestroyMethodNames:p}),properties:null==(d=i.extendProperties)||d?new Map(er(r.properties,e.properties)):e.properties,scope:e.scope}})})(r)}}function e7(e){return r=>{void 0===r&&N(e,ex,eX,e=>e+1)}}function te(e){if(e.optional)throw new eM(pH.injectionDecoratorConflict,"Unexpected duplicated optional decorator");return e.optional=!0,e}function tt(){return e1(e=>{let r=null!=e?e:{kind:pq.unknown,name:void 0,optional:!1,tags:new Map};if(r.kind===pG.unmanaged)throw new eM(pH.injectionDecoratorConflict,"Unexpected injection found. Found @unmanaged injection with additional @named, @optional, @tagged or @targetName injections");return te(r)},e7)}function tr(){return{kind:pG.unmanaged}}function ti(e){return e instanceof Error&&(e instanceof RangeError&&/stack space|call stack|too much recursion/i.test(e.message)||"InternalError"===e.name&&/too much recursion/.test(e.message))}eQ(tr,function(e){if(eY(e),void 0!==e.name||e.optional||e.tags.size>0)throw new eM(pH.injectionDecoratorConflict,"Unexpected injection found. Found @unmanaged injection with additional @named, @optional, @tagged or @targetName injections");return tr()}),(pE=pJ||(pJ={}))[pE.multipleInjection=0]="multipleInjection",pE[pE.singleInjection=1]="singleInjection";let tn=Symbol.for("@inversifyjs/core/LazyPlanServiceNode");class to{get bindings(){return this._getNode().bindings}get isContextFree(){return this._getNode().isContextFree}get serviceIdentifier(){return this._serviceIdentifier}set bindings(e){this._getNode().bindings=e}set isContextFree(e){this._getNode().isContextFree=e}static is(e){return"object"==typeof e&&null!==e&&!0===e[tn]}invalidate(){this._serviceNode=void 0}isExpanded(){return void 0!==this._serviceNode}_getNode(){return void 0===this._serviceNode&&(this._serviceNode=this._buildPlanServiceNode()),this._serviceNode}constructor(e,r){this[tn]=!0,this._serviceNode=e,this._serviceIdentifier=r}}var ts=new WeakMap;class ta{get name(){return F(this,ts).elem.name}get serviceIdentifier(){return F(this,ts).elem.serviceIdentifier}get tags(){return F(this,ts).elem.tags}getAncestor(){if(F(this,ts).elem.getAncestorsCalled=!0,void 0!==F(this,ts).previous)return new ta(F(this,ts).previous)}constructor(e){z(this,ts,{writable:!0,value:void 0}),U(this,ts,e)}}function tc(e,r,i){var n,o;let s=null!=(n=null==i?void 0:i.customServiceIdentifier)?n:r.serviceIdentifier,a=(!0===(null==i?void 0:i.chained)?[...e.operations.getBindingsChained(s)]:[...null!=(o=e.operations.getBindings(s))?o:[]]).filter(e=>e.isSatisfiedBy(r));if(0===a.length&&void 0!==e.autobindOptions&&"function"==typeof s){let i=eN(e.autobindOptions,s);e.operations.setBinding(i),i.isSatisfiedBy(r)&&a.push(i)}return a}class td{concat(e){return new td({elem:e,previous:this.last})}[Symbol.iterator](){let e=this.last;return{next:()=>{if(void 0===e)return{done:!0,value:void 0};let r=e.elem;return e=e.previous,{done:!1,value:r}}}}constructor(e){this.last=e}}function tl(e){let r=new Map;return void 0!==e.rootConstraints.tag&&r.set(e.rootConstraints.tag.key,e.rootConstraints.tag.value),new td({elem:{getAncestorsCalled:!1,name:e.rootConstraints.name,serviceIdentifier:e.rootConstraints.serviceIdentifier,tags:r},previous:void 0})}function tu(e){return void 0!==e.redirections}function tp(e,r,i,n){var o,s;let a=i.elem.serviceIdentifier,c=null==(o=i.previous)?void 0:o.elem.serviceIdentifier;Array.isArray(e)?function(e,r,i,n,o,s){if(0!==e.length){var a;let r=null!=(a=s[s.length-1])?a:i,c='Ambiguous bindings found for service: "'.concat(O(r),'".').concat(tm(s),"\n\nRegistered bindings:\n\n").concat(e.map(e=>(function(e){switch(e.type){case Y:return'[ type: "'.concat(e.type,'", serviceIdentifier: "').concat(O(e.serviceIdentifier),'", scope: "').concat(e.scope,'", implementationType: "').concat(e.implementationType.name,'" ]');case et:return'[ type: "'.concat(e.type,'", serviceIdentifier: "').concat(O(e.serviceIdentifier),'", redirection: "').concat(O(e.targetServiceIdentifier),'" ]');default:return'[ type: "'.concat(e.type,'", serviceIdentifier: "').concat(O(e.serviceIdentifier),'", scope: "').concat(e.scope,'" ]')}})(e.binding)).join("\n"),'\n\nTrying to resolve bindings for "').concat(tf(i,n),'".').concat(tv(o));throw new eM(pH.planning,c)}r||th(i,n,o,s)}(e,r,a,c,i.elem,n):(s=i.elem,void 0!==e||r||th(a,c,s,n))}function th(e,r,i,n){var o;let s=null!=(o=n[n.length-1])?o:e,a='No bindings found for service: "'.concat(O(s),'".\n\nTrying to resolve bindings for "').concat(tf(e,r),'".').concat(tm(n)).concat(tv(i));throw new eM(pH.planning,a)}function tf(e,r){return void 0===r?"".concat(O(e)," (Root service)"):O(r)}function tv(e){var r,i;let n=0===e.tags.size?"":"\n- tags:\n - ".concat([...e.tags.keys()].map(e=>e.toString()).join("\n - "));return"\n\nBinding constraints:\n- service identifier: ".concat(O(e.serviceIdentifier),"\n- name: ").concat(null!=(i=null==(r=e.name)?void 0:r.toString())?i:"-").concat(n)}function tm(e){return 0===e.length?"":"\n\n- service redirections:\n - ".concat(e.map(e=>O(e)).join("\n - "))}function tg(e,r,i){if(Array.isArray(e.bindings)&&1===e.bindings.length){let[n]=e.bindings;return void(tu(n)&&function e(r,i,n,o){if(1===r.redirections.length){let[s]=r.redirections;return void(tu(s)&&e(s,i,n,[...o,s.binding.targetServiceIdentifier]))}tp(r.redirections,i,n,o)}(n,r,i,[n.binding.targetServiceIdentifier]))}tp(e.bindings,r,i,[])}function ty(e){return A.is(e)?e.unwrap():e}function tb(e){return(r,i,n)=>{let o=ty(n.value),s=i.concat({getAncestorsCalled:!1,name:n.name,serviceIdentifier:o,tags:n.tags}),a=new ta(s.last),c=n.kind===pG.multipleInjection&&n.chained,d=tc(r,a,{chained:c}),l=[],u={bindings:l,isContextFree:!0,serviceIdentifier:o};if(l.push(...e(r,s,d,u,c)),u.isContextFree=!s.last.elem.getAncestorsCalled,n.kind===pG.singleInjection){tg(u,n.optional,s.last);let[e]=l;u.bindings=e}return u}}function tS(e){return(r,i,n)=>{let o=ty(n.value),s=i.concat({getAncestorsCalled:!1,name:n.name,serviceIdentifier:o,tags:n.tags}),a=new ta(s.last),c=n.kind===pJ.multipleInjection&&n.chained,d=tc(r,a,{chained:c}),l=[],u={bindings:l,isContextFree:!0,serviceIdentifier:o};if(l.push(...e(r,s,d,u,c)),u.isContextFree=!s.last.elem.getAncestorsCalled,n.kind===pJ.singleInjection){tg(u,n.optional,s.last);let[e]=l;u.bindings=e}return u}}function tC(e){let r=(r,i,n)=>{let o={binding:i,classMetadata:r.operations.getClassMetadata(i.implementationType),constructorParams:[],propertyParams:new Map};return e({autobindOptions:r.autobindOptions,node:o,operations:r.operations,servicesBranch:r.servicesBranch},n)},i=(r,i,n)=>e({autobindOptions:r.autobindOptions,node:{binding:i,params:[]},operations:r.operations,servicesBranch:r.servicesBranch},n),n=(e,n,s,a,c)=>{let d=tu(a)?a.binding.targetServiceIdentifier:a.serviceIdentifier;e.servicesBranch.push(d);let l=[];for(let a of s)switch(a.type){case Y:l.push(r(e,a,n));break;case ee:l.push(i(e,a,n));break;case et:{let r=o(e,n,a,c);l.push(r);break}default:l.push({binding:a})}return e.servicesBranch.pop(),l},o=(e,r,i,o)=>{let s={binding:i,redirections:[]},a=tc(e,new ta(r.last),{chained:o,customServiceIdentifier:i.targetServiceIdentifier});return s.redirections.push(...n(e,r,a,s,o)),s};return n}function t_(e,r,i,n){void 0!==e&&(to.is(i)&&!i.isExpanded()||i.isContextFree)?r.setPlan(e,{tree:{root:i}}):r.setNonCachedServiceNode(i,n)}var tw=new WeakMap,tR=new WeakMap,tT=new WeakMap,tE=new WeakMap;class tj extends to{_buildPlanServiceNode(){return F(this,tR).call(this,F(this,tw),F(this,tT),F(this,tE))}constructor(e,r,i,n,o){super(o,ty(n.value)),z(this,tw,{writable:!0,value:void 0}),z(this,tR,{writable:!0,value:void 0}),z(this,tT,{writable:!0,value:void 0}),z(this,tE,{writable:!0,value:void 0}),U(this,tR,r),U(this,tw,e),U(this,tT,i),U(this,tE,n)}}var tP=new WeakMap,tk=new WeakMap,tO=new WeakMap,tI=new WeakMap;class tx extends to{_buildPlanServiceNode(){return F(this,tk).call(this,F(this,tP),F(this,tO),F(this,tI))}constructor(e,r,i,n,o){super(o,ty(n.value)),z(this,tP,{writable:!0,value:void 0}),z(this,tk,{writable:!0,value:void 0}),z(this,tO,{writable:!0,value:void 0}),z(this,tI,{writable:!0,value:void 0}),U(this,tP,e),U(this,tk,r),U(this,tO,i),U(this,tI,n)}}function tA(e,r,i,n){let o,s,a=(o=(r,n,o)=>{if(o.kind===pG.unmanaged)return;let s=function(e){let r;if(0===e.tags.size)r=void 0;else{if(1!==e.tags.size)return;{let[i,n]=e.tags.entries().next().value;r={key:i,value:n}}}let i=A.is(e.value)?e.value.unwrap():e.value;return e.kind===pG.multipleInjection?{chained:e.chained,isMultiple:!0,name:e.name,optional:e.optional,serviceIdentifier:i,tag:r}:{isMultiple:!1,name:e.name,optional:e.optional,serviceIdentifier:i,tag:r}}(o);if(void 0!==s){let e=r.operations.getPlan(s);if(void 0!==e&&e.tree.root.isContextFree)return e.tree.root}let a=i(r,n,o),c=new tj(r,e,n,o,a);return t_(s,r.operations,c,{bindingConstraintsList:n,chainedBindings:o.kind===pG.multipleInjection&&o.chained,optionalBindings:o.optional}),c},(e,r,i)=>{let n=r.classMetadata;for(let[s,a]of n.constructorArguments.entries())r.constructorParams[s]=o(e,i,a);for(let[s,a]of n.properties){let n=o(e,i,a);void 0!==n&&r.propertyParams.set(s,n)}return e.node}),c=(s=(e,i,o)=>{let s=function(e){let r;if(0===e.tags.size)r=void 0;else{if(1!==e.tags.size)return;{let[i,n]=e.tags.entries().next().value;r={key:i,value:n}}}let i=A.is(e.value)?e.value.unwrap():e.value;return e.kind===pJ.multipleInjection?{chained:e.chained,isMultiple:!0,name:e.name,optional:e.optional,serviceIdentifier:i,tag:r}:{isMultiple:!1,name:e.name,optional:e.optional,serviceIdentifier:i,tag:r}}(o);if(void 0!==s){let r=e.operations.getPlan(s);if(void 0!==r&&r.tree.root.isContextFree)return r.tree.root}let a=n(e,i,o),c=new tx(e,r,i,o,a);return t_(s,e.operations,c,{bindingConstraintsList:i,chainedBindings:o.kind===pJ.multipleInjection&&o.chained,optionalBindings:o.optional}),c},(e,r,i)=>{for(let[n,o]of r.binding.metadata.arguments.entries())r.params[n]=s(e,i,o);return e.node});return(e,r)=>e.node.binding.type===Y?a(e,e.node,r):c(e,e.node,r)}var tM=new WeakMap;class tD extends to{_buildPlanServiceNode(){return tz(F(this,tM))}constructor(e,r){super(r,r.serviceIdentifier),z(this,tM,{writable:!0,value:void 0}),U(this,tM,e)}}let tN=tb(tF),tB=tS(tF),tL=tC(tA(tN,tB,tN,tB));function tF(e,r,i,n,o){return tL(e,r,i,n,o)}let tz=e=>{let r=tl(e),i=new ta(r.last),n=e.rootConstraints.isMultiple&&e.rootConstraints.chained,o=tc(e,i,{chained:n}),s=[],a={bindings:s,isContextFree:!0,serviceIdentifier:e.rootConstraints.serviceIdentifier};if(s.push(...tL(e,r,o,a,n)),a.isContextFree=!r.last.elem.getAncestorsCalled,!e.rootConstraints.isMultiple){var c;tg(a,null!=(c=e.rootConstraints.isOptional)&&c,r.last);let[i]=s;a.bindings=i}return a};(pj=pX||(pX={})).bindingAdded="bindingAdded",pj.bindingRemoved="bindingRemoved";var tU=new WeakMap,tH=new WeakMap,tq=new WeakMap,tW=new WeakSet,tV=new WeakSet;class tG{*[Symbol.iterator](){let e=0;for(let r of F(this,tU)){let i=r.deref();void 0===i?++e:yield i}F(this,tU).length>=F(this,tH)&&H(this,tV,tJ).call(this,e)&&H(this,tW,tK).call(this,e)}push(e){let r=new WeakRef(e);if(F(this,tU).push(r),F(this,tU).length>=F(this,tH)&&F(this,tU).length%F(this,tq)==0){let e=0;for(let r of F(this,tU))void 0===r.deref()&&++e;H(this,tV,tJ).call(this,e)&&H(this,tW,tK).call(this,e)}}constructor(){q(this,tW),q(this,tV),z(this,tU,{writable:!0,value:void 0}),z(this,tH,{writable:!0,value:void 0}),z(this,tq,{writable:!0,value:void 0}),U(this,tU,[]),U(this,tH,8),U(this,tq,1024)}}function tK(e){let r=Array(F(this,tU).length-e),i=0;for(let e of F(this,tU))e.deref()&&(r[i++]=e);U(this,tU,r)}function tJ(e){return e>=.5*F(this,tU).length}let tX=tC(tA(tN,tB,function(e,r,i){return t$(e,r,i)},function(e,r,i){return tQ(e,r,i)})),t$=(i=tb(tX),(e,r,n)=>{try{return i(e,r,n)}catch(e){if(eM.isErrorOfKind(e,pH.planning))return;throw e}}),tQ=(n=tS(tX),(e,r,i)=>{try{return n(e,r,i)}catch(e){if(eM.isErrorOfKind(e,pH.planning))return;throw e}});function tY(e,r,i,n,o){if(to.is(r)&&!r.isExpanded())return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1};let s=new ta(n.last);return!i.isSatisfiedBy(s)||n.last.elem.getAncestorsCalled?{isContextFreeBinding:!n.last.elem.getAncestorsCalled,shouldInvalidateServiceNode:!1}:function(e,r,i,n,o){let s;try{[s]=tX(e,n,[i],r,o)}catch(e){if(ti(e))return{isContextFreeBinding:!1,shouldInvalidateServiceNode:!0};throw e}var a=s;if(Array.isArray(r.bindings))r.bindings.push(a);else{if(void 0!==r.bindings){if(!to.is(r))throw new eM(pH.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!0}}r.bindings=a}return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}}(e,r,i,n,o)}function tZ(e,r,i,n){var o;let s;if(to.is(e)&&!e.isExpanded())return{bindingNodeRemoved:void 0,isContextFreeBinding:!0};let a=new ta(i.last);if(!r.isSatisfiedBy(a)||i.last.elem.getAncestorsCalled)return{bindingNodeRemoved:void 0,isContextFreeBinding:!i.last.elem.getAncestorsCalled};if(Array.isArray(e.bindings))e.bindings=e.bindings.filter(e=>e.binding!==r||(s=e,!1));else if((null==(o=e.bindings)?void 0:o.binding)===r)if(s=e.bindings,n)e.bindings=void 0;else{if(!to.is(e))throw new eM(pH.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");e.invalidate()}return{bindingNodeRemoved:s,isContextFreeBinding:!0}}var t0=new WeakMap,t1=new WeakMap,t2=new WeakMap,t3=new WeakMap,t4=new WeakMap,t6=new WeakMap,t5=new WeakSet,t8=new WeakSet,t9=new WeakSet,t7=new WeakSet,re=new WeakSet,rt=new WeakSet,rr=new WeakSet,ri=new WeakSet,rn=new WeakSet,ro=new WeakSet,rs=new WeakSet,ra=new WeakSet,rc=new WeakSet,rd=new WeakSet,rl=new WeakSet;class ru{clearCache(){for(let e of H(this,re,rm).call(this))e.clear();for(let e of F(this,t6))e.clearCache()}get(e){var r,i,n,o,s,a;return void 0===e.name?void 0===e.tag?H(this,t7,rv).call(this,F(this,t1),e).get(e.serviceIdentifier):null==(i=H(this,t7,rv).call(this,F(this,t4),e).get(e.serviceIdentifier))||null==(r=i.get(e.tag.key))?void 0:r.get(e.tag.value):void 0===e.tag?null==(n=H(this,t7,rv).call(this,F(this,t2),e).get(e.serviceIdentifier))?void 0:n.get(e.name):null==(a=H(this,t7,rv).call(this,F(this,t3),e).get(e.serviceIdentifier))||null==(s=a.get(e.name))||null==(o=s.get(e.tag.key))?void 0:o.get(e.tag.value)}invalidateServiceBinding(e){for(let r of(H(this,rc,rR).call(this,e),H(this,rr,ry).call(this,e),H(this,ri,rb).call(this,e),H(this,rd,rT).call(this,e),H(this,ra,rw).call(this,e),F(this,t6)))r.invalidateServiceBinding(e)}set(e,r){void 0===e.name?void 0===e.tag?H(this,t7,rv).call(this,F(this,t1),e).set(e.serviceIdentifier,r):H(this,t9,rf).call(this,H(this,t9,rf).call(this,H(this,t7,rv).call(this,F(this,t4),e),e.serviceIdentifier),e.tag.key).set(e.tag.value,r):void 0===e.tag?H(this,t9,rf).call(this,H(this,t7,rv).call(this,F(this,t2),e),e.serviceIdentifier).set(e.name,r):H(this,t9,rf).call(this,H(this,t9,rf).call(this,H(this,t9,rf).call(this,H(this,t7,rv).call(this,F(this,t3),e),e.serviceIdentifier),e.name),e.tag.key).set(e.tag.value,r)}setNonCachedServiceNode(e,r){let i=F(this,t0).get(e.serviceIdentifier);void 0===i&&(i=new Map,F(this,t0).set(e.serviceIdentifier,i)),i.set(e,r)}subscribe(e){F(this,t6).push(e)}constructor(){q(this,t5),q(this,t8),q(this,t9),q(this,t7),q(this,re),q(this,rt),q(this,rr),q(this,ri),q(this,rn),q(this,ro),q(this,rs),q(this,ra),q(this,rc),q(this,rd),q(this,rl),z(this,t0,{writable:!0,value:void 0}),z(this,t1,{writable:!0,value:void 0}),z(this,t2,{writable:!0,value:void 0}),z(this,t3,{writable:!0,value:void 0}),z(this,t4,{writable:!0,value:void 0}),z(this,t6,{writable:!0,value:void 0}),U(this,t0,new Map),U(this,t1,H(this,t5,rp).call(this)),U(this,t2,H(this,t5,rp).call(this)),U(this,t3,H(this,t5,rp).call(this)),U(this,t4,H(this,t5,rp).call(this)),U(this,t6,new tG)}}function rp(){let e=Array(8);for(let r=0;r<e.length;++r)e[r]=new Map;return e}function rh(e,r,i,n){let o,s=!!(2&r);return o=s?{chained:!!(0&r),isMultiple:s,serviceIdentifier:e.binding.serviceIdentifier}:{isMultiple:s,serviceIdentifier:e.binding.serviceIdentifier},1&r&&(o.isOptional=!0),void 0!==i&&(o.name=i),void 0!==n&&(o.tag=n),{autobindOptions:void 0,operations:e.operations,rootConstraints:o,servicesBranch:[]}}function rf(e,r){let i=e.get(r);return void 0===i&&(i=new Map,e.set(r,i)),i}function rv(e,r){return e[H(this,rt,rg).call(this,r)]}function rm(){return[F(this,t0),...F(this,t1),...F(this,t2),...F(this,t3),...F(this,t4)]}function rg(e){return e.isMultiple?4*!!e.chained|!!e.optional|2:+!!e.optional}function ry(e){for(let[r,i]of F(this,t2).entries()){let n=i.get(e.binding.serviceIdentifier);if(void 0!==n)for(let[i,o]of n.entries())H(this,rl,rE).call(this,e,o,r,i,void 0)}}function rb(e){for(let[r,i]of F(this,t3).entries()){let n=i.get(e.binding.serviceIdentifier);if(void 0!==n)for(let[i,o]of n.entries())for(let[n,s]of o.entries())for(let[o,a]of s.entries())H(this,rl,rE).call(this,e,a,r,i,{key:n,value:o})}}function rS(e){switch(e.binding.type){case et:for(let r of e.redirections)H(this,rn,rS).call(this,r);break;case Y:for(let r of e.constructorParams)void 0!==r&&H(this,ro,rC).call(this,r);for(let r of e.propertyParams.values())H(this,ro,rC).call(this,r);break;case ee:for(let r of e.params)H(this,ro,rC).call(this,r)}}function rC(e){let r=F(this,t0).get(e.serviceIdentifier);void 0!==r&&r.has(e)&&(r.delete(e),H(this,rs,r_).call(this,e))}function r_(e){if((!to.is(e)||e.isExpanded())&&void 0!==e.bindings)if(Array.isArray(e.bindings))for(let r of e.bindings)H(this,rn,rS).call(this,r);else H(this,rn,rS).call(this,e.bindings)}function rw(e){let r=F(this,t0).get(e.binding.serviceIdentifier);if(void 0!==r)switch(e.kind){case pX.bindingAdded:for(let[i,n]of r){let r=tY({autobindOptions:void 0,operations:e.operations,servicesBranch:[]},i,e.binding,n.bindingConstraintsList,n.chainedBindings);r.isContextFreeBinding?r.shouldInvalidateServiceNode&&to.is(i)&&(H(this,rs,r_).call(this,i),i.invalidate()):this.clearCache()}break;case pX.bindingRemoved:for(let[i,n]of r){let r=tZ(i,e.binding,n.bindingConstraintsList,n.optionalBindings);r.isContextFreeBinding?void 0!==r.bindingNodeRemoved&&H(this,rn,rS).call(this,r.bindingNodeRemoved):this.clearCache()}}}function rR(e){for(let[r,i]of F(this,t1).entries()){let n=i.get(e.binding.serviceIdentifier);H(this,rl,rE).call(this,e,n,r,void 0,void 0)}}function rT(e){for(let[r,i]of F(this,t4).entries()){let n=i.get(e.binding.serviceIdentifier);if(void 0!==n)for(let[i,o]of n.entries())for(let[n,s]of o.entries())H(this,rl,rE).call(this,e,s,r,void 0,{key:i,value:n})}}function rE(e,r,i,n,o){var s,a,c,d,l;if(void 0!==r&&to.is(r.tree.root)){let u=H(this,t8,rh).call(this,e,i,n,o);switch(e.kind){case pX.bindingAdded:{let i=(s=r.tree.root,a=e.binding,to.is(s)&&!s.isExpanded()?{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}:tY(u,s,a,tl(u),u.rootConstraints.isMultiple&&u.rootConstraints.chained));i.isContextFreeBinding?i.shouldInvalidateServiceNode&&(H(this,rs,r_).call(this,r.tree.root),r.tree.root.invalidate()):this.clearCache()}break;case pX.bindingRemoved:{let i=(c=r.tree.root,d=e.binding,to.is(c)&&!c.isExpanded()?{bindingNodeRemoved:void 0,isContextFreeBinding:!0}:tZ(c,d,tl(u),null!=(l=u.rootConstraints.isOptional)&&l));i.isContextFreeBinding?void 0!==i.bindingNodeRemoved&&H(this,rn,rS).call(this,i.bindingNodeRemoved):this.clearCache()}}}}function rj(e,r){return k(r)?(e.cache={isRight:!0,value:r},r.then(r=>rP(e,r))):rP(e,r)}function rP(e,r){return e.cache={isRight:!0,value:r},r}async function rk(e,r,i){let n=await r,o=i.next();for(;!0!==o.done;)n=await o.value(e.context,n),o=i.next();return n}function rO(e,r,i){var n,o;let s,a=i;if(void 0!==r.onActivation){let i=r.onActivation;a=k(a)?a.then(r=>i(e.context,r)):i(e.context,a)}return n=r.serviceIdentifier,o=a,void 0===(s=e.getActivations(n))?o:k(o)?rk(e,o,s[Symbol.iterator]()):function(e,r,i){let n=r,o=i.next();for(;!0!==o.done;){let r=o.value(e.context,n);if(k(r))return rk(e,r,i);n=r,o=i.next()}return n}(e,o,s[Symbol.iterator]())}function rI(e){return(r,i)=>i.cache.isRight?i.cache.value:rj(i,rO(r,i,e(r,i)))}let rx=rI(function(e,r){return r.value});function rA(e,r){return(i,n)=>{let o=e(n);switch(o.scope){case K:if(o.cache.isRight)return o.cache.value;return rj(o,rO(i,o,r(i,n)));case G:{if(i.requestScopeCache.has(o.id))return i.requestScopeCache.get(o.id);let e=rO(i,o,r(i,n));return i.requestScopeCache.set(o.id,e),e}case J:return rO(i,o,r(i,n))}}}let rM=rA(function(e){return e},function(e,r){return r.value(e.context)}),rD=rI(function(e,r){return r.factory(e.context)});function rN(e,r,i){let n=function(e,r,i){if(!(i in e))throw new eM(pH.resolution,'Expecting a "'.concat(i.toString(),'" property when resolving "').concat(r.implementationType.name,'" class @postConstruct decorated method, none found.'));if("function"!=typeof e[i])throw new eM(pH.resolution,'Expecting a "'.concat(i.toString(),'" method when resolving "').concat(r.implementationType.name,'" class @postConstruct decorated method, a non function property was found instead.'));{let n;try{n=e[i]()}catch(e){throw new eM(pH.resolution,'Unexpected error found when calling "'.concat(i.toString(),'" @postConstruct decorated method on class "').concat(r.implementationType.name,'"'),{cause:e})}if(k(n))return async function(e,r,i){try{await i}catch(i){throw new eM(pH.resolution,'Unexpected error found when calling "'.concat(r.toString(),'" @postConstruct decorated method on class "').concat(e.implementationType.name,'"'),{cause:i})}}(r,i,n)}}(e,r,i);return k(n)?n.then(()=>e):e}function rB(e,r,i){if(0===i.size)return e;let n=e;for(let e of i)n=k(n)?n.then(i=>rN(i,r,e)):rN(n,r,e);return n}function rL(e){return(r,i,n)=>{let o=new n.binding.implementationType(...r),s=e(i,o,n);return k(s)?s.then(()=>rB(o,n.binding,n.classMetadata.lifecycle.postConstructMethodNames)):rB(o,n.binding,n.classMetadata.lifecycle.postConstructMethodNames)}}let rF=rI(function(e,r){return r.provider(e.context)}),rz=(pP=rK,(e,r,i)=>{let n=[];for(let[o,s]of i.propertyParams){let a=i.classMetadata.properties.get(o);if(void 0===a)throw new eM(pH.resolution,'Expecting metadata at property "'.concat(o.toString(),'", none found'));a.kind!==pG.unmanaged&&void 0!==s.bindings&&(r[o]=pP(e,s),k(r[o])&&n.push((async()=>{r[o]=await r[o]})()))}if(n.length>0)return Promise.all(n).then(()=>{})}),rU=(pk=rG,function e(r,i){let n=[];for(let o of i.redirections)tu(o)?n.push(...e(r,o)):n.push(pk(r,o));return n}),rH=(pO=rK,px=(e,r)=>{let i=[];for(let n of r.constructorParams)void 0===n?i.push(void 0):i.push(pO(e,n));return i.some(k)?Promise.all(i):i},pI=rL(rz),pA=async(e,r,i)=>pI(await e,r,i),pM=rL(rz),(e,r)=>{let i=px(e,r);return k(i)?pA(i,e,r):pM(i,e,r)}),rq=(pD=rK,pN=(e,r)=>{let i=[];for(let n of r.params)i.push(pD(e,n));return i.some(k)?Promise.all(i):i},(e,r)=>{let i=pN(e,r);return k(i)?i.then(e=>r.binding.factory(...e)):r.binding.factory(...i)}),rW=rA(function(e){return e.binding},rH),rV=rA(function(e){return e.binding},rq);function rG(e,r){switch(r.binding.type){case X:return rx(e,r.binding);case $:return rM(e,r.binding);case Q:return rD(e,r.binding);case Y:return rW(e,r);case Z:return rF(e,r.binding);case ee:return rV(e,r)}}function rK(e,r){if(void 0!==r.bindings)return Array.isArray(r.bindings)?function(e,r){let i=[];for(let n of r)tu(n)?i.push(...rU(e,n)):i.push(rG(e,n));return i.some(k)?Promise.all(i):i}(e,r.bindings):function(e,r){if(tu(r)){let i=rU(e,r);if(1===i.length)return i[0];throw new eM(pH.resolution,"Unexpected multiple resolved values on single injection")}return rG(e,r)}(e,r.bindings)}function rJ(e,r){if("function"==typeof e[r])return e[r]()}function rX(e,r){let i,n=e.lifecycle.preDestroyMethodNames;if(0!==n.size){for(let e of n)i=void 0===i?rJ(r,e):i.then(()=>rJ(r,e));return i}}function r$(e,r,i){let n=e.getDeactivations(r);if(void 0!==n)return k(i)?rQ(i,n[Symbol.iterator]()):function(e,r){let i=r.next();for(;!0!==i.done;){if(k(i.value(e)))return rQ(e,r);i=r.next()}}(i,n[Symbol.iterator]())}async function rQ(e,r){let i=await e,n=r.next();for(;!0!==n.done;)await n.value(i),n=r.next()}function rY(e,r){let i=r.cache;return k(i.value)?i.value.then(i=>rZ(e,r,i)):rZ(e,r,i.value)}function rZ(e,r,i){let n;return void 0!==r.onDeactivation&&(n=(0,r.onDeactivation)(i)),void 0===n?r$(e,r.serviceIdentifier,i):n.then(()=>r$(e,r.serviceIdentifier,i))}function r0(e,r){if(void 0===r)return;let i=function(e){let r=[];for(let i of e)void 0!==i.scope&&i.scope===K&&i.cache.isRight&&r.push(i);return r}(r),n=[];for(let r of i){let i=function(e,r){let i=function(e,r){if(r.type===Y){let i=e.getClassMetadata(r.implementationType),n=r.cache.value;return k(n)?n.then(e=>rX(i,e)):rX(i,n)}}(e,r);return void 0===i?rY(e,r):i.then(()=>rY(e,r))}(e,r);void 0!==i&&n.push(i)}return n.length>0?Promise.all(n).then(()=>{}):void 0}let r1=Symbol.for("@inversifyjs/plugin/isPlugin");function r2(e,r){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function r3(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function r4(e,r){var i=r3(e,r,"get");return i.get?i.get.call(e):i.value}function r6(e,r,i){r2(e,r),r.set(e,i)}function r5(e,r,i){var n=r3(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function r8(e,r,i){if(!r.has(e))throw TypeError("attempted to get private field on non-instance");return i}function r9(e,r){r2(e,r),r.add(e)}let r7=Symbol.for("@inversifyjs/container/bindingIdentifier");function ie(e){return"object"==typeof e&&null!==e&&!0===e[r7]}class it{}it.always=e=>!0;let ir=Symbol.for("@inversifyjs/container/InversifyContainerError");class ii extends Error{static is(e){return"object"==typeof e&&null!==e&&!0===e[ir]}static isErrorOfKind(e,r){return ii.is(e)&&e.kind===r}constructor(e,r,i){super(r,i),this[ir]=!0,this.kind=e}}function io(e){return{[r7]:!0,id:e.id}}function is(e){return r=>{for(let i=r.getAncestor();void 0!==i;i=i.getAncestor())if(e(i))return!0;return!1}}function ia(e){return r=>r.name===e}function ic(e){return r=>r.serviceIdentifier===e}function id(e,r){return i=>i.tags.has(e)&&i.tags.get(e)===r}function il(e){return void 0===e.name&&0===e.tags.size}function iu(e){let r=is(e);return e=>!r(e)}function ip(e){return r=>{let i=r.getAncestor();return void 0===i||!e(i)}}function ih(e){return r=>{let i=r.getAncestor();return void 0!==i&&e(i)}}(pB=p$||(p$={}))[pB.invalidOperation=0]="invalidOperation";var iv=new WeakMap;class im{getIdentifier(){return io(r4(this,iv))}inRequestScope(){return r4(this,iv).scope=G,new ik(r4(this,iv))}inSingletonScope(){return r4(this,iv).scope=K,new ik(r4(this,iv))}inTransientScope(){return r4(this,iv).scope=J,new ik(r4(this,iv))}constructor(e){r6(this,iv,{writable:!0,value:void 0}),r5(this,iv,e)}}var ig=new WeakMap,iy=new WeakMap,ib=new WeakMap,iS=new WeakMap,iC=new WeakSet;class i_{to(e){var r;let i=eD(e),n={cache:{isRight:!1,value:void 0},id:V(),implementationType:e,isSatisfiedBy:it.always,moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,scope:null!=(r=i.scope)?r:r4(this,ib),serviceIdentifier:r4(this,iS),type:Y};return r4(this,ig).call(this,n),new iI(n)}toSelf(){if("function"!=typeof r4(this,iS))throw Error('"toSelf" function can only be applied when a newable function is used as service identifier');return this.to(r4(this,iS))}toConstantValue(e){let r={cache:{isRight:!1,value:void 0},id:V(),isSatisfiedBy:it.always,moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,scope:K,serviceIdentifier:r4(this,iS),type:X,value:e};return r4(this,ig).call(this,r),new ik(r)}toDynamicValue(e){let r={cache:{isRight:!1,value:void 0},id:V(),isSatisfiedBy:it.always,moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,scope:r4(this,ib),serviceIdentifier:r4(this,iS),type:$,value:e};return r4(this,ig).call(this,r),new iI(r)}toResolvedValue(e,r){let i={cache:{isRight:!1,value:void 0},factory:e,id:V(),isSatisfiedBy:it.always,metadata:r8(this,iC,iw).call(this,r),moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,scope:r4(this,ib),serviceIdentifier:r4(this,iS),type:ee};return r4(this,ig).call(this,i),new iI(i)}toFactory(e){let r={cache:{isRight:!1,value:void 0},factory:e,id:V(),isSatisfiedBy:it.always,moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,scope:K,serviceIdentifier:r4(this,iS),type:Q};return r4(this,ig).call(this,r),new ik(r)}toProvider(e){let r={cache:{isRight:!1,value:void 0},id:V(),isSatisfiedBy:it.always,moduleId:r4(this,iy),onActivation:void 0,onDeactivation:void 0,provider:e,scope:K,serviceIdentifier:r4(this,iS),type:Z};return r4(this,ig).call(this,r),new ik(r)}toService(e){let r={id:V(),isSatisfiedBy:it.always,moduleId:r4(this,iy),serviceIdentifier:r4(this,iS),targetServiceIdentifier:e,type:et};r4(this,ig).call(this,r)}constructor(e,r,i,n){r9(this,iC),r6(this,ig,{writable:!0,value:void 0}),r6(this,iy,{writable:!0,value:void 0}),r6(this,ib,{writable:!0,value:void 0}),r6(this,iS,{writable:!0,value:void 0}),r5(this,ig,e),r5(this,iy,r),r5(this,ib,i),r5(this,iS,n)}}function iw(e){return{arguments:(null!=e?e:[]).map(e=>{var r,i,n,o,s;return"object"!=typeof e||A.is(e)?{kind:pJ.singleInjection,name:void 0,optional:!1,tags:new Map,value:e}:!0===e.isMultiple?{chained:null!=(r=e.chained)&&r,kind:pJ.multipleInjection,name:e.name,optional:null!=(i=e.optional)&&i,tags:new Map((null!=(n=e.tags)?n:[]).map(e=>[e.key,e.value])),value:e.serviceIdentifier}:{kind:pJ.singleInjection,name:e.name,optional:null!=(o=e.optional)&&o,tags:new Map((null!=(s=e.tags)?s:[]).map(e=>[e.key,e.value])),value:e.serviceIdentifier}})}}var iR=new WeakMap;class iT{getIdentifier(){return io(r4(this,iR))}onActivation(e){return r4(this,iR).onActivation=e,new ij(r4(this,iR))}onDeactivation(e){if(r4(this,iR).onDeactivation=e,r4(this,iR).scope!==K)throw new ii(p$.invalidOperation,'Binding for service "'.concat(O(r4(this,iR).serviceIdentifier),'" has a deactivation function, but its scope is not singleton. Deactivation functions can only be used with singleton bindings.'));return new ij(r4(this,iR))}constructor(e){r6(this,iR,{writable:!0,value:void 0}),r5(this,iR,e)}}var iE=new WeakMap;class ij{getIdentifier(){return io(r4(this,iE))}when(e){return r4(this,iE).isSatisfiedBy=e,new iT(r4(this,iE))}whenAnyAncestor(e){return this.when(is(e))}whenAnyAncestorIs(e){return this.when(is(ic(e)))}whenAnyAncestorNamed(e){return this.when(is(ia(e)))}whenAnyAncestorTagged(e,r){return this.when(is(id(e,r)))}whenDefault(){return this.when(il)}whenNamed(e){return this.when(ia(e))}whenNoParent(e){return this.when(ip(e))}whenNoParentIs(e){return this.when(ip(ic(e)))}whenNoParentNamed(e){return this.when(ip(ia(e)))}whenNoParentTagged(e,r){return this.when(ip(id(e,r)))}whenParent(e){return this.when(ih(e))}whenParentIs(e){return this.when(ih(ic(e)))}whenParentNamed(e){return this.when(ih(ia(e)))}whenParentTagged(e,r){return this.when(ih(id(e,r)))}whenTagged(e,r){return this.when(id(e,r))}whenNoAncestor(e){return this.when(iu(e))}whenNoAncestorIs(e){return this.when(iu(ic(e)))}whenNoAncestorNamed(e){return this.when(iu(ia(e)))}whenNoAncestorTagged(e,r){return this.when(iu(id(e,r)))}constructor(e){r6(this,iE,{writable:!0,value:void 0}),r5(this,iE,e)}}var iP=new WeakMap;class ik extends ij{onActivation(e){return r4(this,iP).onActivation(e)}onDeactivation(e){return r4(this,iP).onDeactivation(e)}constructor(e){super(e),r6(this,iP,{writable:!0,value:void 0}),r5(this,iP,new iT(e))}}var iO=new WeakMap;class iI extends ik{inRequestScope(){return r4(this,iO).inRequestScope()}inSingletonScope(){return r4(this,iO).inSingletonScope()}inTransientScope(){return r4(this,iO).inTransientScope()}constructor(e){super(e),r6(this,iO,{writable:!0,value:void 0}),r5(this,iO,new im(e))}}var ix=new WeakMap,iA=new WeakMap,iM=new WeakMap,iD=new WeakMap,iN=new WeakSet,iB=new WeakSet,iL=new WeakSet,iF=new WeakSet,iz=new WeakSet,iU=new WeakSet,iH=new WeakSet,iq=new WeakSet;class iW{bind(e){return new i_(e=>{r8(this,iN,iV).call(this,e)},void 0,r4(this,iA),e)}isBound(e,r){let i=r4(this,iD).bindingService.get(e);return r8(this,iq,iY).call(this,e,i,r)}isCurrentBound(e,r){let i=r4(this,iD).bindingService.getNonParentBindings(e);return r8(this,iq,iY).call(this,e,i,r)}async rebind(e){return await this.unbind(e),this.bind(e)}rebindSync(e){return this.unbindSync(e),this.bind(e)}async unbind(e){await r8(this,iL,iK).call(this,e)}async unbindAll(){let e=[...r4(this,iD).bindingService.getNonParentBoundServices()];for(let r of(await Promise.all(e.map(async e=>{var r;let i;return r=r4(this,ix),i=r.getBindings(e),r0(r,i)})),e))r4(this,iD).activationService.removeAllByServiceId(r),r4(this,iD).bindingService.removeAllByServiceId(r),r4(this,iD).deactivationService.removeAllByServiceId(r);r4(this,iD).planResultCacheService.clearCache()}unbindSync(e){void 0!==r8(this,iL,iK).call(this,e)&&r8(this,iB,iG).call(this,e)}constructor(e,r,i,n){r9(this,iN),r9(this,iB),r9(this,iL),r9(this,iF),r9(this,iz),r9(this,iU),r9(this,iH),r9(this,iq),r6(this,ix,{writable:!0,value:void 0}),r6(this,iA,{writable:!0,value:void 0}),r6(this,iM,{writable:!0,value:void 0}),r6(this,iD,{writable:!0,value:void 0}),r5(this,ix,e),r5(this,iA,r),r5(this,iM,i),r5(this,iD,n)}}function iV(e){r4(this,iD).bindingService.set(e),r4(this,iM).invalidateService({binding:e,kind:pX.bindingAdded})}function iG(e){var r;let i;if(ie(e)){let n=r4(this,iD).bindingService.getById(e.id),o=null==(r=function(e){if(void 0===e)return;let r=e.next();return!0!==r.done?r.value:void 0}(null==n?void 0:n[Symbol.iterator]()))?void 0:r.serviceIdentifier;i=void 0===o?"Unexpected asynchronous deactivation when unbinding binding identifier. Consider using Container.unbind() instead.":'Unexpected asynchronous deactivation when unbinding "'.concat(O(o),'" binding. Consider using Container.unbind() instead.')}else i='Unexpected asynchronous deactivation when unbinding "'.concat(O(e),'" service. Consider using Container.unbind() instead.');throw new ii(p$.invalidOperation,i)}function iK(e){return ie(e)?r8(this,iF,iJ).call(this,e):r8(this,iU,i$).call(this,e)}function iJ(e){let r=r4(this,iD).bindingService.getById(e.id),i=void 0===r?void 0:[...r],n=r0(r4(this,ix),r);if(void 0!==n)return n.then(()=>{r8(this,iz,iX).call(this,i,e)});r8(this,iz,iX).call(this,i,e)}function iX(e,r){if(r4(this,iD).bindingService.removeById(r.id),void 0!==e)for(let r of e)r4(this,iM).invalidateService({binding:r,kind:pX.bindingRemoved})}function i$(e){let r=r4(this,iD).bindingService.get(e),i=void 0===r?void 0:[...r],n=r0(r4(this,ix),r);if(void 0!==n)return n.then(()=>{r8(this,iH,iQ).call(this,e,i)});r8(this,iH,iQ).call(this,e,i)}function iQ(e,r){if(r4(this,iD).activationService.removeAllByServiceId(e),r4(this,iD).bindingService.removeAllByServiceId(e),r4(this,iD).deactivationService.removeAllByServiceId(e),void 0!==r)for(let e of r)r4(this,iM).invalidateService({binding:e,kind:pX.bindingRemoved})}function iY(e,r,i){if(void 0===r)return!1;let n={getAncestor:()=>{},name:null==i?void 0:i.name,serviceIdentifier:e,tags:new Map};for(let e of(void 0!==(null==i?void 0:i.tag)&&n.tags.set(i.tag.key,i.tag.value),r))if(e.isSatisfiedBy(n))return!0;return!1}var iZ=new WeakMap,i0=new WeakMap,i1=new WeakMap,i2=new WeakMap,i3=new WeakMap,i4=new WeakSet,i6=new WeakSet,i5=new WeakSet,i8=new WeakSet,i9=new WeakSet;class i7{async load(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];await Promise.all(r8(this,i5,nr).call(this,...r))}loadSync(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];for(let e of r8(this,i5,nr).call(this,...r))if(void 0!==e)throw new ii(p$.invalidOperation,"Unexpected asynchronous module load. Consider using Container.load() instead.")}async unload(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];await Promise.all(r8(this,i9,nn).call(this,...r)),r8(this,i6,nt).call(this,r)}unloadSync(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];for(let e of r8(this,i9,nn).call(this,...r))if(void 0!==e)throw new ii(p$.invalidOperation,"Unexpected asynchronous module unload. Consider using Container.unload() instead.");r8(this,i6,nt).call(this,r)}constructor(e,r,i,n,o){r9(this,i4),r9(this,i6),r9(this,i5),r9(this,i8),r9(this,i9),r6(this,iZ,{writable:!0,value:void 0}),r6(this,i0,{writable:!0,value:void 0}),r6(this,i1,{writable:!0,value:void 0}),r6(this,i2,{writable:!0,value:void 0}),r6(this,i3,{writable:!0,value:void 0}),r5(this,iZ,e),r5(this,i0,r),r5(this,i1,i),r5(this,i2,n),r5(this,i3,o)}}function ne(e){return{bind:r=>new i_(e=>{r8(this,i8,ni).call(this,e)},e,r4(this,i1),r),isBound:r4(this,iZ).isBound.bind(r4(this,iZ)),onActivation:(r,i)=>{r4(this,i3).activationService.add(i,{moduleId:e,serviceId:r})},onDeactivation:(r,i)=>{r4(this,i3).deactivationService.add(i,{moduleId:e,serviceId:r})},rebind:r4(this,iZ).rebind.bind(r4(this,iZ)),rebindSync:r4(this,iZ).rebindSync.bind(r4(this,iZ)),unbind:r4(this,iZ).unbind.bind(r4(this,iZ)),unbindSync:r4(this,iZ).unbindSync.bind(r4(this,iZ))}}function nt(e){for(let r of e)r4(this,i3).activationService.removeAllByModuleId(r.id),r4(this,i3).bindingService.removeAllByModuleId(r.id),r4(this,i3).deactivationService.removeAllByModuleId(r.id);r4(this,i3).planResultCacheService.clearCache()}function nr(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r.map(e=>e.load(r8(this,i4,ne).call(this,e.id)))}function ni(e){r4(this,i3).bindingService.set(e),r4(this,i2).invalidateService({binding:e,kind:pX.bindingAdded})}function nn(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r.map(e=>{var r,i;let n;return r=r4(this,i0),i=e.id,n=r.getBindingsFromModule(i),r0(r,n)})}class no{constructor(e){this.deactivationParams={getBindings:e.bindingService.get.bind(e.bindingService),getBindingsFromModule:e.bindingService.getByModuleId.bind(e.bindingService),getClassMetadata:eD,getDeactivations:e.deactivationService.get.bind(e.deactivationService)},e.onReset(()=>{var r;(r=this.deactivationParams).getBindings=e.bindingService.get.bind(e.bindingService),r.getBindingsFromModule=e.bindingService.getByModuleId.bind(e.bindingService),r.getDeactivations=e.deactivationService.get.bind(e.deactivationService)})}}var ns=new WeakMap,na=new WeakSet,nc=new WeakSet;class nd{constructor(e){r9(this,na),r9(this,nc),r6(this,ns,{writable:!0,value:void 0}),r5(this,ns,e),this.planParamsOperations={getBindings:r4(this,ns).bindingService.get.bind(r4(this,ns).bindingService),getBindingsChained:r4(this,ns).bindingService.getChained.bind(r4(this,ns).bindingService),getClassMetadata:eD,getPlan:r4(this,ns).planResultCacheService.get.bind(r4(this,ns).planResultCacheService),setBinding:r8(this,nc,nu).bind(this),setNonCachedServiceNode:r4(this,ns).planResultCacheService.setNonCachedServiceNode.bind(r4(this,ns).planResultCacheService),setPlan:r4(this,ns).planResultCacheService.set.bind(r4(this,ns).planResultCacheService)},r4(this,ns).onReset(()=>{r8(this,na,nl).call(this)})}}function nl(){this.planParamsOperations.getBindings=r4(this,ns).bindingService.get.bind(r4(this,ns).bindingService),this.planParamsOperations.getBindingsChained=r4(this,ns).bindingService.getChained.bind(r4(this,ns).bindingService),this.planParamsOperations.setBinding=r8(this,nc,nu).bind(this)}function nu(e){r4(this,ns).bindingService.set(e),r4(this,ns).planResultCacheService.invalidateServiceBinding({binding:e,kind:pX.bindingAdded,operations:this.planParamsOperations})}var np=new WeakMap,nh=new WeakMap;class nf{invalidateService(e){r4(this,nh).planResultCacheService.invalidateServiceBinding({...e,operations:r4(this,np).planParamsOperations})}constructor(e,r){r6(this,np,{writable:!0,value:void 0}),r6(this,nh,{writable:!0,value:void 0}),r5(this,np,e),r5(this,nh,r)}}var nv=new WeakMap,nm=new WeakMap,ng=new WeakMap,ny=new WeakMap,nb=new WeakSet,nS=new WeakSet;class nC{register(e,r){let i=new r(e,r4(this,nm));if(!0!==i[r1])throw new ii(p$.invalidOperation,"Invalid plugin. The plugin must extend the Plugin class");i.load(r4(this,nv))}constructor(e,r,i){r9(this,nb),r9(this,nS),r6(this,nv,{writable:!0,value:void 0}),r6(this,nm,{writable:!0,value:void 0}),r6(this,ng,{writable:!0,value:void 0}),r6(this,ny,{writable:!0,value:void 0}),r5(this,ny,r),r5(this,ng,i),r5(this,nv,r8(this,nb,n_).call(this,e)),r5(this,nm,r8(this,nS,nw).call(this))}}function n_(e){return{define:(r,i)=>{if(Object.prototype.hasOwnProperty.call(e,r))throw new ii(p$.invalidOperation,'Container already has a method named "'.concat(String(r),'"'));e[r]=i},onPlan:r4(this,ng).onPlan.bind(r4(this,ng))}}function nw(){let e=r4(this,ny);return{get activationService(){return e.activationService},get bindingService(){return e.bindingService},get deactivationService(){return e.deactivationService},get planResultCacheService(){return e.planResultCacheService}}}var nR=new WeakMap;class nT{reset(e,r,i){for(let n of(this.activationService=e,this.bindingService=r,this.deactivationService=i,this.planResultCacheService.clearCache(),r4(this,nR)))n()}onReset(e){r4(this,nR).push(e)}constructor(e,r,i,n){r6(this,nR,{writable:!0,value:void 0}),this.activationService=e,this.bindingService=r,this.deactivationService=i,this.planResultCacheService=n,r5(this,nR,[])}}var nE=new WeakMap,nj=new WeakMap,nP=new WeakMap,nk=new WeakMap,nO=new WeakMap,nI=new WeakMap,nx=new WeakMap,nA=new WeakSet,nM=new WeakSet,nD=new WeakSet,nN=new WeakSet,nB=new WeakSet,nL=new WeakSet,nF=new WeakSet,nz=new WeakSet;class nU{get(e,r){let i=r8(this,nB,nG).call(this,!1,e,r),n=r8(this,nF,nJ).call(this,i);if(k(n))throw new ii(p$.invalidOperation,'Unexpected asynchronous service when resolving service "'.concat(O(e),'"'));return n}getAll(e,r){let i=r8(this,nB,nG).call(this,!0,e,r),n=r8(this,nF,nJ).call(this,i);if(k(n))throw new ii(p$.invalidOperation,'Unexpected asynchronous service when resolving service "'.concat(O(e),'"'));return n}async getAllAsync(e,r){let i=r8(this,nB,nG).call(this,!0,e,r);return r8(this,nF,nJ).call(this,i)}async getAsync(e,r){let i=r8(this,nB,nG).call(this,!1,e,r);return r8(this,nF,nJ).call(this,i)}onPlan(e){r4(this,nO).push(e)}constructor(e,r,i,n){r9(this,nA),r9(this,nM),r9(this,nD),r9(this,nN),r9(this,nB),r9(this,nL),r9(this,nF),r9(this,nz),r6(this,nE,{writable:!0,value:void 0}),r6(this,nj,{writable:!0,value:void 0}),r6(this,nP,{writable:!0,value:void 0}),r6(this,nk,{writable:!0,value:void 0}),r6(this,nO,{writable:!0,value:void 0}),r6(this,nI,{writable:!0,value:void 0}),r6(this,nx,{writable:!0,value:void 0}),r5(this,nI,e),r5(this,nx,r),r5(this,nk,r8(this,nL,nK).call(this)),r5(this,nE,i),r5(this,nj,n),r5(this,nP,e=>r4(this,nx).activationService.get(e)),r5(this,nO,[]),r4(this,nx).onReset(()=>{r8(this,nA,nH).call(this)})}}function nH(){r5(this,nk,r8(this,nL,nK).call(this))}function nq(e,r,i){var n,o;let s=null==i?void 0:i.name,a=null!=(n=null==i?void 0:i.optional)&&n,c=null==i?void 0:i.tag;return e?{chained:null!=(o=null==i?void 0:i.chained)&&o,isMultiple:e,name:s,optional:a,serviceIdentifier:r,tag:c}:{isMultiple:e,name:s,optional:a,serviceIdentifier:r,tag:c}}function nW(e,r,i){var n;let o={autobindOptions:(null!=(n=null==i?void 0:i.autobind)?n:r4(this,nE))?{scope:r4(this,nj)}:void 0,operations:r4(this,nI).planParamsOperations,rootConstraints:r8(this,nN,nV).call(this,e,r,i),servicesBranch:[]};return r8(this,nz,nX).call(this,o,i),o}function nV(e,r,i){var n;return r?{chained:null!=(n=null==i?void 0:i.chained)&&n,isMultiple:r,serviceIdentifier:e}:{isMultiple:r,serviceIdentifier:e}}function nG(e,r,i){let n=r8(this,nM,nq).call(this,e,r,i),o=r4(this,nx).planResultCacheService.get(n);if(void 0!==o)return o;let s=function(e){try{var r,i;let n=e.rootConstraints.isMultiple?{chained:e.rootConstraints.chained,isMultiple:!0,name:e.rootConstraints.name,optional:null!=(r=e.rootConstraints.isOptional)&&r,serviceIdentifier:e.rootConstraints.serviceIdentifier,tag:e.rootConstraints.tag}:{isMultiple:!1,name:e.rootConstraints.name,optional:null!=(i=e.rootConstraints.isOptional)&&i,serviceIdentifier:e.rootConstraints.serviceIdentifier,tag:e.rootConstraints.tag},o=e.operations.getPlan(n);if(void 0!==o)return o;let s=tz(e),a={tree:{root:new tD(e,s)}};return e.operations.setPlan(n,a),a}catch(r){if(ti(r)){let i,n=0===(i=[...function(e){let r=new Set;for(let i of e.servicesBranch){if(r.has(i))return[...r,i];r.add(i)}return[...r]}(e)]).length?"(No dependency trace)":i.map(O).join(" -> ");throw new eM(pH.planning,"Circular dependency found: ".concat(n),{cause:r})}throw r}}(r8(this,nD,nW).call(this,r,e,i));for(let e of r4(this,nO))e(n,s);return s}function nK(){return{get:this.get.bind(this),getAll:this.getAll.bind(this),getAllAsync:this.getAllAsync.bind(this),getAsync:this.getAsync.bind(this)}}function nJ(e){var r={context:r4(this,nk),getActivations:r4(this,nP),planResult:e,requestScopeCache:new Map};try{return rK(r,r.planResult.tree.root)}catch(e){!function(e,r){if(ti(r)){var i;let n,o,s,a=0===(s=[...(n=e.planResult.tree.root,o=[],null!=(i=function e(r){let i=o.indexOf(r);if(-1!==i)return[...o.slice(i),r].map(e=>e.serviceIdentifier);o.push(r);try{for(let i of function(e){let r=[],i=e.bindings;if(void 0===i)return r;let n=e=>{if(tu(e))for(let r of e.redirections)n(r);else switch(e.binding.type){case Y:for(let i of e.constructorParams)void 0!==i&&r.push(i);for(let i of e.propertyParams.values())r.push(i);break;case ee:for(let i of e.params)r.push(i)}};if(Array.isArray(i))for(let e of i)n(e);else n(i);return r}(r)){let r=e(i);if(void 0!==r)return r}}finally{o.pop()}}(n))?i:[])]).length?"(No dependency trace)":s.map(O).join(" -> ");throw new eM(pH.planning,"Circular dependency found: ".concat(a),{cause:r})}throw r}(r,e)}}function nX(e,r){var i;void 0!==r&&(void 0!==r.name&&(e.rootConstraints.name=r.name),!0===r.optional&&(e.rootConstraints.isOptional=!0),void 0!==r.tag&&(e.rootConstraints.tag={key:r.tag.key,value:r.tag.value}),e.rootConstraints.isMultiple&&(e.rootConstraints.chained=null!=(i=null==r?void 0:r.chained)&&i))}var n$=new WeakMap,nQ=new WeakMap;class nY{restore(){let e=r4(this,nQ).pop();if(void 0===e)throw new ii(p$.invalidOperation,"No snapshot available to restore");r4(this,n$).reset(e.activationService,e.bindingService,e.deactivationService)}snapshot(){r4(this,nQ).push({activationService:r4(this,n$).activationService.clone(),bindingService:r4(this,n$).bindingService.clone(),deactivationService:r4(this,n$).deactivationService.clone()})}constructor(e){r6(this,n$,{writable:!0,value:void 0}),r6(this,nQ,{writable:!0,value:void 0}),r5(this,n$,e),r5(this,nQ,[])}}var nZ=new WeakMap,n0=new WeakMap,n1=new WeakMap,n2=new WeakMap,n3=new WeakMap,n4=new WeakMap,n6=new WeakSet,n5=new WeakSet;class n8{bind(e){return r4(this,nZ).bind(e)}get(e,r){return r4(this,n3).get(e,r)}getAll(e,r){return r4(this,n3).getAll(e,r)}async getAllAsync(e,r){return r4(this,n3).getAllAsync(e,r)}async getAsync(e,r){return r4(this,n3).getAsync(e,r)}isBound(e,r){return r4(this,nZ).isBound(e,r)}isCurrentBound(e,r){return r4(this,nZ).isCurrentBound(e,r)}async load(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r4(this,n0).load(...r)}loadSync(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];r4(this,n0).loadSync(...r)}onActivation(e,r){r4(this,n2).activationService.add(r,{serviceId:e})}onDeactivation(e,r){r4(this,n2).deactivationService.add(r,{serviceId:e})}register(e){r4(this,n1).register(this,e)}restore(){r4(this,n4).restore()}async rebind(e){return r4(this,nZ).rebind(e)}rebindSync(e){return r4(this,nZ).rebindSync(e)}snapshot(){r4(this,n4).snapshot()}async unbind(e){await r4(this,nZ).unbind(e)}async unbindAll(){return r4(this,nZ).unbindAll()}unbindSync(e){r4(this,nZ).unbindSync(e)}async unload(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r4(this,n0).unload(...r)}unloadSync(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];r4(this,n0).unloadSync(...r)}constructor(e){var r,i;r9(this,n6),r9(this,n5),r6(this,nZ,{writable:!0,value:void 0}),r6(this,n0,{writable:!0,value:void 0}),r6(this,n1,{writable:!0,value:void 0}),r6(this,n2,{writable:!0,value:void 0}),r6(this,n3,{writable:!0,value:void 0}),r6(this,n4,{writable:!0,value:void 0});let n=null!=(r=null==e?void 0:e.autobind)&&r,o=null!=(i=null==e?void 0:e.defaultScope)?i:J;r5(this,n2,r8(this,n5,n7).call(this,e,n,o));let s=new nd(r4(this,n2)),a=new nf(s,r4(this,n2)),c=new no(r4(this,n2));r5(this,nZ,new iW(c.deactivationParams,o,a,r4(this,n2))),r5(this,n0,new i7(r4(this,nZ),c.deactivationParams,o,a,r4(this,n2))),r5(this,n3,new nU(s,r4(this,n2),n,o)),r5(this,n1,new nC(this,r4(this,n2),r4(this,n3))),r5(this,n4,new nY(r4(this,n2)))}}function n9(e,r){if(e)return{scope:r}}function n7(e,r,i){let n=r8(this,n6,n9).call(this,r,i);if(void 0===(null==e?void 0:e.parent))return new nT(ek.build(()=>{}),eq.build(()=>{},n),eK.build(()=>{}),new ru);let o=new ru,s=e.parent;return r4(s,n2).planResultCacheService.subscribe(o),new nT(ek.build(()=>r4(s,n2).activationService),eq.build(()=>r4(s,n2).bindingService,n),eK.build(()=>r4(s,n2).deactivationService),o)}let oe=new WeakMap,ot=new WeakMap,or=new WeakMap,oi=Symbol("anyProducer"),on=Promise.resolve(),oo=Symbol("listenerAdded"),os=Symbol("listenerRemoved"),oa=!1,oc=!1,od=e=>"string"==typeof e||"symbol"==typeof e||"number"==typeof e;function ol(e){if(!od(e))throw TypeError("`eventName` must be a string, symbol, or number")}function ou(e){if("function"!=typeof e)throw TypeError("listener must be a function")}function op(e,r){let i=ot.get(e);if(i.has(r))return i.get(r)}function oh(e,r){let i=od(r)?r:oi,n=or.get(e);if(n.has(i))return n.get(i)}function of(e,r){r=Array.isArray(r)?r:[r];let i=!1,n=()=>{},o=[],s={enqueue(e){o.push(e),n()},finish(){i=!0,n()}};for(let i of r){let r=oh(e,i);r||(r=new Set,or.get(e).set(i,r)),r.add(s)}return{async next(){return o?0===o.length?(i?o=void 0:await new Promise(e=>{n=e}),this.next()):{done:!1,value:await o.shift()}:{done:!0}},async return(i){for(let i of(o=void 0,r)){let r=oh(e,i);r&&(r.delete(s),0===r.size&&or.get(e).delete(i))}return n(),arguments.length>0?{done:!0,value:await i}:{done:!0}},[Symbol.asyncIterator](){return this}}}function ov(e){if(void 0===e)return ob;if(!Array.isArray(e))throw TypeError("`methodNames` must be an array of strings");for(let r of e)if(!ob.includes(r)){if("string"!=typeof r)throw TypeError("`methodNames` element must be a string");throw Error("".concat(r," is not Emittery method"))}return e}let om=e=>e===oo||e===os;function og(e,r,i){if(om(r))try{oa=!0,e.emit(r,i)}finally{oa=!1}}class oy{static mixin(e,r){return r=ov(r),i=>{if("function"!=typeof i)throw TypeError("`target` must be function");for(let e of r)if(void 0!==i.prototype[e])throw Error("The property `".concat(e,"` already exists on `target`"));Object.defineProperty(i.prototype,e,{enumerable:!1,get:function(){return Object.defineProperty(this,e,{enumerable:!1,value:new oy}),this[e]}});let n=r=>function(){for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return this[e][r](...n)};for(let e of r)Object.defineProperty(i.prototype,e,{enumerable:!1,value:n(e)});return i}}static get isDebugEnabled(){var e,r;if("object"!=typeof(null==(e=globalThis.process)?void 0:e.env))return oc;let{env:i}=null!=(r=globalThis.process)?r:{env:{}};return"emittery"===i.DEBUG||"*"===i.DEBUG||oc}static set isDebugEnabled(e){oc=e}logIfDebugEnabled(e,r,i){(oy.isDebugEnabled||this.debug.enabled)&&this.debug.logger(e,this.debug.name,r,i)}on(e,r){let{signal:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(let i of(ou(r),e=Array.isArray(e)?e:[e])){ol(i);let e=op(this,i);e||(e=new Set,ot.get(this).set(i,e)),e.add(r),this.logIfDebugEnabled("subscribe",i,void 0),om(i)||og(this,oo,{eventName:i,listener:r})}let n=()=>{this.off(e,r),null==i||i.removeEventListener("abort",n)};return null==i||i.addEventListener("abort",n,{once:!0}),(null==i?void 0:i.aborted)&&n(),n}off(e,r){for(let i of(ou(r),e=Array.isArray(e)?e:[e])){ol(i);let e=op(this,i);e&&(e.delete(r),0===e.size&&ot.get(this).delete(i)),this.logIfDebugEnabled("unsubscribe",i,void 0),om(i)||og(this,os,{eventName:i,listener:r})}}once(e,r){let i;if(void 0!==r&&"function"!=typeof r)throw TypeError("predicate must be a function");let n=new Promise(n=>{i=this.on(e,e=>{(!r||r(e))&&(i(),n(e))})});return n.off=i,n}events(e){for(let r of e=Array.isArray(e)?e:[e])ol(r);return of(this,e)}async emit(e,r){var i;if(ol(e),om(e)&&!oa)throw TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled("emit",e,r);let n=or.get(this);if(n.has(e))for(let i of n.get(e))i.enqueue(r);if(n.has(oi)){let i=Promise.all([e,r]);for(let e of n.get(oi))e.enqueue(i)}let o=null!=(i=op(this,e))?i:new Set,s=oe.get(this),a=[...o],c=om(e)?[]:[...s];await on,await Promise.all([...a.map(async e=>{if(o.has(e))return e(r)}),...c.map(async i=>{if(s.has(i))return i(e,r)})])}async emitSerial(e,r){var i;if(ol(e),om(e)&&!oa)throw TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled("emitSerial",e,r);let n=null!=(i=op(this,e))?i:new Set,o=oe.get(this),s=[...n],a=[...o];for(let e of(await on,s))n.has(e)&&await e(r);for(let i of a)o.has(i)&&await i(e,r)}onAny(e){let{signal:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ou(e),this.logIfDebugEnabled("subscribeAny",void 0,void 0),oe.get(this).add(e),og(this,oo,{listener:e});let i=()=>{this.offAny(e),null==r||r.removeEventListener("abort",i)};return null==r||r.addEventListener("abort",i,{once:!0}),(null==r?void 0:r.aborted)&&i(),i}anyEvent(){return of(this)}offAny(e){ou(e),this.logIfDebugEnabled("unsubscribeAny",void 0,void 0),og(this,os,{listener:e}),oe.get(this).delete(e)}clearListeners(e){for(let r of e=Array.isArray(e)?e:[e])if(this.logIfDebugEnabled("clear",r,void 0),od(r)){let e=op(this,r);e&&e.clear();let i=oh(this,r);if(i){for(let e of i)e.finish();i.clear()}}else{for(let[e,r]of(oe.get(this).clear(),ot.get(this).entries()))r.clear(),ot.get(this).delete(e);for(let[e,r]of or.get(this).entries()){for(let e of r)e.finish();r.clear(),or.get(this).delete(e)}}}listenerCount(e){e=Array.isArray(e)?e:[e];let r=0;for(let d of e){if(od(d)){var i,n,o,s,a,c;r+=oe.get(this).size+(null!=(s=null==(i=op(this,d))?void 0:i.size)?s:0)+(null!=(a=null==(n=oh(this,d))?void 0:n.size)?a:0)+(null!=(c=null==(o=oh(this))?void 0:o.size)?c:0);continue}for(let e of(void 0!==d&&ol(d),r+=oe.get(this).size,ot.get(this).values()))r+=e.size;for(let e of or.get(this).values())r+=e.size}return r}bindMethods(e,r){if("object"!=typeof e||null===e)throw TypeError("`target` must be an object");for(let i of r=ov(r)){if(void 0!==e[i])throw Error("The property `".concat(i,"` already exists on `target`"));Object.defineProperty(e,i,{enumerable:!1,value:this[i].bind(this)})}}constructor(e={}){var r;oe.set(this,new Set),ot.set(this,new Map),or.set(this,new Map),or.get(this).set(oi,new Set),this.debug=null!=(r=e.debug)?r:{},void 0===this.debug.enabled&&(this.debug.enabled=!1),this.debug.logger||(this.debug.logger=(e,r,i,n)=>{try{n=JSON.stringify(n)}catch{n="Object with the following keys failed to stringify: ".concat(Object.keys(n).join(","))}("symbol"==typeof i||"number"==typeof i)&&(i=i.toString());let o=new Date,s="".concat(o.getHours(),":").concat(o.getMinutes(),":").concat(o.getSeconds(),".").concat(o.getMilliseconds());console.log("[".concat(s,"][emittery:").concat(e,"][").concat(r,"] Event Name: ").concat(i,"\n data: ").concat(n))})}}let ob=Object.getOwnPropertyNames(oy.prototype).filter(e=>"constructor"!==e);Object.defineProperty(oy,"listenerAdded",{value:oo,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(oy,"listenerRemoved",{value:os,writable:!1,enumerable:!0,configurable:!1});let oS={AaaSPilotKitController:Symbol.for("AaaSPilotKitController"),SignalingService:Symbol.for("SignalingService"),ASRService:Symbol.for("ASRService"),AgentService:Symbol.for("AgentService"),DigitalHumanService:Symbol.for("DigitalHumanService"),ConversationService:Symbol.for("ConversationService"),CommonRequest:Symbol.for("CommonRequest"),ErrorManager:Symbol.for("ErrorManager"),MediaStreamManager:Symbol.for("MediaStreamManager"),IOptions:Symbol.for("IOptions")};C("../../node_modules/core-js/modules/es.promise.finally.js"),C("../../node_modules/core-js/modules/web.url.js"),C("../../node_modules/core-js/modules/web.url.to-json.js"),C("../../node_modules/core-js/modules/web.url-search-params.js"),C("../../node_modules/core-js/modules/es.string.replace.js"),C("../../node_modules/core-js/modules/es.object.from-entries.js"),C("../../node_modules/core-js/modules/es.string.trim.js");class oC extends Error{constructor(e,r,i){var n;let o=e.status||0===e.status?e.status:"",s=null!=(n=e.statusText)?n:"",a="".concat(o," ").concat(s).trim();super("Request failed with ".concat(a?"status code ".concat(a):"an unknown error",": ").concat(r.method," ").concat(r.url)),this.name="HTTPError",this.response=e,this.request=r,this.options=i}}class o_ extends Error{constructor(e){let r="Non-error value was thrown";try{"string"==typeof e?r=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(r=e.message)}catch{}super(r),this.name="NonError",this.value=e}}class ow extends Error{constructor(e){let r=(null==e?void 0:e.cause)?e.cause instanceof Error?e.cause:new o_(e.cause):void 0;super((null==e?void 0:e.code)?"Forced retry: ".concat(e.code):"Forced retry",r?{cause:r}:void 0),this.name="ForceRetryError",this.customDelay=null==e?void 0:e.delay,this.code=null==e?void 0:e.code,this.customRequest=null==e?void 0:e.request}}C("../../node_modules/core-js/modules/es.array-buffer.slice.js");let oR=(()=>{let e=!1,r=!1,i="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&i)try{r=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!r})(),oT="function"==typeof globalThis.AbortController,oE="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,oj="function"==typeof globalThis.ReadableStream,oP="function"==typeof globalThis.FormData,ok=["get","post","put","patch","head","delete"],oO={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},oI=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,ox=Symbol("stop");class oA{constructor(e){this.options=e}}let oM=e=>new oA(e),oD={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},oN={next:!0},oB={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},oL=(e,r,i)=>{let n,o=0;return e.pipeThrough(new TransformStream({transform(e,s){if(s.enqueue(e),n){o+=n.byteLength;let e=0===r?0:o/r;e>=1&&(e=1-Number.EPSILON),null==i||i({percent:e,totalBytes:Math.max(r,o),transferredBytes:o},n)}n=e},flush(){n&&(o+=n.byteLength,null==i||i({percent:1,totalBytes:Math.max(r,o),transferredBytes:o},n))}}))},oF=e=>null!==e&&"object"==typeof e,oz=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];for(let e of r)if((!oF(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return oV({},...r)},oU=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new globalThis.Headers(e),n=r instanceof globalThis.Headers;for(let[e,o]of new globalThis.Headers(r).entries())n&&"undefined"===o||void 0===o?i.delete(e):i.set(e,o);return i};function oH(e,r,i){var n,o;return Object.hasOwn(r,i)&&void 0===r[i]?[]:oV(null!=(n=e[i])?n:[],null!=(o=r[i])?o:[])}let oq=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{beforeRequest:oH(e,r,"beforeRequest"),beforeRetry:oH(e,r,"beforeRetry"),afterResponse:oH(e,r,"afterResponse"),beforeError:oH(e,r,"beforeError")}},oW=(e,r)=>{let i=new URLSearchParams;for(let n of[e,r])if(void 0!==n)if(n instanceof URLSearchParams)for(let[e,r]of n.entries())i.append(e,r);else if(Array.isArray(n))for(let e of n){if(!Array.isArray(e)||2!==e.length)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");i.append(String(e[0]),String(e[1]))}else if(oF(n))for(let[e,r]of Object.entries(n))void 0!==r&&i.append(e,String(r));else for(let[e,r]of new URLSearchParams(n).entries())i.append(e,r);return i},oV=function(){let e;for(var r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];let o={},s={},a={},c=[];for(let r of i)if(Array.isArray(r))Array.isArray(o)||(o=[]),o=[...o,...r];else if(oF(r)){for(let[i,n]of Object.entries(r)){if("signal"===i&&n instanceof globalThis.AbortSignal){c.push(n);continue}if("context"===i){if(null!=n&&(!oF(n)||Array.isArray(n)))throw TypeError("The `context` option must be an object");o={...o,context:null==n?{}:{...o.context,...n}};continue}if("searchParams"===i){e=null==n?void 0:void 0===e?n:oW(e,n);continue}oF(n)&&i in o&&(n=oV(o[i],n)),o={...o,[i]:n}}oF(r.hooks)&&(a=oq(a,r.hooks),o.hooks=a),oF(r.headers)&&(s=oU(s,r.headers),o.headers=s)}return void 0!==e&&(o.searchParams=e),c.length>0&&(1===c.length?o.signal=c[0]:oE?o.signal=AbortSignal.any(c):o.signal=c.at(-1)),void 0===o.context&&(o.context={}),o},oG={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},oK=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("number"==typeof e)return{...oG,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...oG,...e}};class oJ extends Error{constructor(e){super("Request timed out: ".concat(e.method," ").concat(e.url)),this.name="TimeoutError",this.request=e}}async function oX(e,r,i,n){return new Promise((o,s)=>{let a=setTimeout(()=>{i&&i.abort(),s(new oJ(e))},n.timeout);n.fetch(e,r).then(o).catch(s).then(()=>{clearTimeout(a)})})}async function o$(e,r){let{signal:i}=r;return new Promise((r,n)=>{function o(){clearTimeout(s),n(i.reason)}i&&(i.throwIfAborted(),i.addEventListener("abort",o,{once:!0}));let s=setTimeout(()=>{null==i||i.removeEventListener("abort",o),r()},e)})}function oQ(e,r){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function oY(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function oZ(e,r){var i=oY(e,r,"get");return i.get?i.get.call(e):i.value}function o0(e,r,i){oQ(e,r),r.set(e,i)}function o1(e,r,i){var n=oY(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function o2(e,r,i){if(!r.has(e))throw TypeError("attempted to get private field on non-instance");return i}function o3(e,r){oQ(e,r),r.add(e)}var o4=new WeakMap,o6=new WeakMap,o5=new WeakMap,o8=new WeakMap,o9=new WeakMap,o7=new WeakMap,se=new WeakMap,st=new WeakSet,sr=new WeakSet,si=new WeakSet,sn=new WeakSet,so=new WeakSet,ss=new WeakSet,sa=new WeakSet,sc=new WeakSet;class sd{static create(e,r){let i=new sd(e,r),n=async()=>{if("number"==typeof oZ(i,o8).timeout&&oZ(i,o8).timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than ".concat(0x7fffffff));await Promise.resolve();let e=await o2(i,so,sv).call(i);for(let o of oZ(i,o8).hooks.afterResponse){let s=o2(i,si,sh).call(i,e.clone()),a=await o(i.request,o2(i,ss,sm).call(i),s,{retryCount:oZ(i,o6)});if(a instanceof globalThis.Response&&(e=a),a instanceof oA){var r,n;throw await Promise.all([null==(r=s.body)?void 0:r.cancel(),null==(n=e.body)?void 0:n.cancel()]),new ow(a.options)}}if(o2(i,si,sh).call(i,e),!e.ok&&("function"==typeof oZ(i,o8).throwHttpErrors?oZ(i,o8).throwHttpErrors(e.status):oZ(i,o8).throwHttpErrors)){let r=new oC(e,i.request,o2(i,ss,sm).call(i));for(let e of oZ(i,o8).hooks.beforeError)r=await e(r,{retryCount:oZ(i,o6)});throw r}if(oZ(i,o8).onDownloadProgress){if("function"!=typeof oZ(i,o8).onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!oj)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return((e,r)=>{if(!e.body)return e;if(204===e.status)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});let i=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(oL(e.body,i,r),{status:e.status,statusText:e.statusText,headers:e.headers})})(e.clone(),oZ(i,o8).onDownloadProgress)}return e},o=o2(i,sn,sf).call(i,n).finally(async()=>{var e,r;let n=oZ(i,o9),o=[];n&&!n.bodyUsed&&o.push(null==(e=n.body)?void 0:e.cancel()),i.request.bodyUsed||o.push(null==(r=i.request.body)?void 0:r.cancel()),await Promise.all(o)});for(let[e,n]of Object.entries(oO)){var s,a;("bytes"!==e||"function"==typeof(null==(a=globalThis.Response)||null==(s=a.prototype)?void 0:s.bytes))&&(o[e]=async()=>{i.request.headers.set("accept",i.request.headers.get("accept")||n);let s=await o;if("json"===e){if(204===s.status)return"";let e=await s.text();return""===e?"":r.parseJson?r.parseJson(e):JSON.parse(e)}return s[e]()})}return o}constructor(e,r={}){var i,n,o,s,a,c,d,l,u,p,h,f,m;let g;if(o3(this,st),o3(this,sr),o3(this,si),o3(this,sn),o3(this,so),o3(this,ss),o3(this,sa),o3(this,sc),o0(this,o4,{writable:!0,value:void 0}),o0(this,o6,{writable:!0,value:void 0}),o0(this,o5,{writable:!0,value:void 0}),o0(this,o8,{writable:!0,value:void 0}),o0(this,o9,{writable:!0,value:void 0}),o0(this,o7,{writable:!0,value:void 0}),o0(this,se,{writable:!0,value:void 0}),o1(this,o6,0),o1(this,o5,e),o1(this,o8,{...r,headers:oU(oZ(this,o5).headers,r.headers),hooks:oq({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:(g=null!=(n=null!=(i=r.method)?i:oZ(this,o5).method)?n:"GET",ok.includes(g)?g.toUpperCase():g),prefixUrl:String(r.prefixUrl||""),retry:oK(r.retry),throwHttpErrors:null==(o=r.throwHttpErrors)||o,timeout:null!=(s=r.timeout)?s:1e4,fetch:null!=(a=r.fetch)?a:globalThis.fetch.bind(globalThis),context:null!=(c=r.context)?c:{}}),"string"!=typeof oZ(this,o5)&&!(oZ(this,o5)instanceof URL||oZ(this,o5)instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(oZ(this,o8).prefixUrl&&"string"==typeof oZ(this,o5)){if(oZ(this,o5).startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");oZ(this,o8).prefixUrl.endsWith("/")||(oZ(this,o8).prefixUrl+="/"),o1(this,o5,oZ(this,o8).prefixUrl+oZ(this,o5))}oT&&oE&&(o1(this,o7,null!=(d=oZ(this,o8).signal)?d:oZ(this,o5).signal),o1(this,o4,new globalThis.AbortController),oZ(this,o8).signal=oZ(this,o7)?AbortSignal.any([oZ(this,o7),oZ(this,o4).signal]):oZ(this,o4).signal),oR&&(oZ(this,o8).duplex="half"),void 0!==oZ(this,o8).json&&(oZ(this,o8).body=null!=(p=null==(l=(u=oZ(this,o8)).stringifyJson)?void 0:l.call(u,oZ(this,o8).json))?p:JSON.stringify(oZ(this,o8).json),oZ(this,o8).headers.set("content-type",null!=(h=oZ(this,o8).headers.get("content-type"))?h:"application/json"));let y=r.headers&&new globalThis.Headers(r.headers).has("content-type");if(oZ(this,o5)instanceof globalThis.Request&&(oP&&oZ(this,o8).body instanceof globalThis.FormData||oZ(this,o8).body instanceof URLSearchParams)&&!y&&oZ(this,o8).headers.delete("content-type"),this.request=new globalThis.Request(oZ(this,o5),oZ(this,o8)),void 0!==(m=oZ(this,o8).searchParams)&&(Array.isArray(m)?m.length>0:m instanceof URLSearchParams?m.size>0:"object"==typeof m?Object.keys(m).length>0:"string"==typeof m?m.trim().length>0:!!m)){let e="string"==typeof oZ(this,o8).searchParams?oZ(this,o8).searchParams.replace(/^\?/,""):new URLSearchParams(((function(e,r){if(e!==r)throw TypeError("Private static access of wrong provenance")})(sd,sd),sl).call(sd,oZ(this,o8).searchParams)).toString(),r=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);this.request=new globalThis.Request(r,oZ(this,o8))}if(oZ(this,o8).onUploadProgress){if("function"!=typeof oZ(this,o8).onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!oR)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=o2(this,sc,sy).call(this,this.request,null!=(f=oZ(this,o8).body)?f:void 0)}}}function sl(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(e=>{let[,r]=e;return void 0!==r}))}function su(){let e=oZ(this,o8).retry.delay(oZ(this,o6)),r=e;return!0===oZ(this,o8).retry.jitter?r=Math.random()*e:"function"==typeof oZ(this,o8).retry.jitter&&(!Number.isFinite(r=oZ(this,o8).retry.jitter(e))||r<0)&&(r=e),Math.min(oZ(this,o8).retry.backoffLimit,r)}async function sp(e){var r,i,n,o,s,a;if(function(e,r){var i=oY(e,r,"update");if(i.set){if(!i.get)throw TypeError("attempted to read set only private field");return"__destrWrapper"in i||(i.__destrWrapper={set value(v){i.set.call(e,v)},get value(){return i.get.call(e)}}),i.__destrWrapper}if(!i.writable)throw TypeError("attempted to set read only private field");return i}(this,o6).value++,oZ(this,o6)>oZ(this,o8).retry.limit)throw e;let c=e instanceof Error?e:new o_(e);if(c instanceof ow)return null!=(r=c.customDelay)?r:o2(this,st,su).call(this);if(!oZ(this,o8).retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==oZ(this,o8).retry.shouldRetry){let r=await oZ(this,o8).retry.shouldRetry({error:c,retryCount:oZ(this,o6)});if(!1===r)throw e;if(!0===r)return o2(this,st,su).call(this)}if((e instanceof oJ||(null==e?void 0:e.name)===oJ.name)&&!oZ(this,o8).retry.retryOnTimeout)throw e;if(e instanceof oC||(null==e?void 0:e.name)===oC.name){if(!oZ(this,o8).retry.statusCodes.includes(e.response.status))throw e;let r=null!=(s=null!=(o=null!=(n=null!=(i=e.response.headers.get("Retry-After"))?i:e.response.headers.get("RateLimit-Reset"))?n:e.response.headers.get("X-RateLimit-Retry-After"))?o:e.response.headers.get("X-RateLimit-Reset"))?s:e.response.headers.get("X-Rate-Limit-Reset");if(r&&oZ(this,o8).retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(r);Number.isNaN(e)?e=Date.parse(r)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let i=null!=(a=oZ(this,o8).retry.maxRetryAfter)?a:e;return e<i?e:i}if(413===e.response.status)throw e}return o2(this,st,su).call(this)}function sh(e){return oZ(this,o8).parseJson&&(e.json=async()=>oZ(this,o8).parseJson(await e.text())),e}async function sf(e){try{return await e()}catch(i){let r=Math.min(await o2(this,sr,sp).call(this,i),0x7fffffff);if(1>oZ(this,o6))throw i;if(await o$(r,oZ(this,o7)?{signal:oZ(this,o7)}:{}),i instanceof ow&&i.customRequest){let e=oZ(this,o8).signal?new globalThis.Request(i.customRequest,{signal:oZ(this,o8).signal}):new globalThis.Request(i.customRequest);o2(this,sa,sg).call(this,e)}for(let e of oZ(this,o8).hooks.beforeRetry){let r=await e({request:this.request,options:o2(this,ss,sm).call(this),error:i,retryCount:oZ(this,o6)});if(r instanceof globalThis.Request){o2(this,sa,sg).call(this,r);break}if(r instanceof globalThis.Response)return r;if(r===ox)return}return o2(this,sn,sf).call(this,e)}}async function sv(){var e;for(let r of((null==(e=oZ(this,o4))?void 0:e.signal.aborted)&&(o1(this,o4,new globalThis.AbortController),oZ(this,o8).signal=oZ(this,o7)?AbortSignal.any([oZ(this,o7),oZ(this,o4).signal]):oZ(this,o4).signal,this.request=new globalThis.Request(this.request,{signal:oZ(this,o8).signal})),oZ(this,o8).hooks.beforeRequest)){let e=await r(this.request,o2(this,ss,sm).call(this),{retryCount:oZ(this,o6)});if(e instanceof Response)return e;if(e instanceof globalThis.Request){o2(this,sa,sg).call(this,e);break}}let r=((e,r)=>{let i={};for(let n in r)Object.hasOwn(r,n)&&(n in oB||n in oD||n in e&&!(n in oN)||(i[n]=r[n]));return i})(this.request,oZ(this,o8));return(o1(this,o9,this.request),this.request=oZ(this,o9).clone(),!1===oZ(this,o8).timeout)?oZ(this,o8).fetch(oZ(this,o9),r):oX(oZ(this,o9),r,oZ(this,o4),oZ(this,o8))}function sm(){if(!oZ(this,se)){let{hooks:e,...r}=oZ(this,o8);o1(this,se,Object.freeze(r))}return oZ(this,se)}function sg(e){o1(this,se,void 0),this.request=o2(this,sc,sy).call(this,e)}function sy(e,r){var i;return oZ(this,o8).onUploadProgress&&e.body?((e,r,i)=>{if(!e.body)return e;let n=(e=>{if(!e)return 0;if(e instanceof FormData){let r=0;for(let[i,n]of e)r+=oI,r+=new TextEncoder().encode('Content-Disposition: form-data; name="'.concat(i,'"')).length,r+="string"==typeof n?new TextEncoder().encode(n).length:n.size;return r}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let r=JSON.stringify(e);return new TextEncoder().encode(r).length}catch{}return 0})(null!=i?i:e.body);return new Request(e,{duplex:"half",body:oL(e.body,n,r)})})(e,oZ(this,o8).onUploadProgress,null!=(i=null!=r?r:oZ(this,o8).body)?i:void 0):e}let sb=e=>{let r=(r,i)=>sd.create(r,oz(e,i));for(let i of ok)r[i]=(r,n)=>sd.create(r,oz(e,n,{method:i}));return r.create=e=>sb(oz(e)),r.extend=r=>("function"==typeof r&&(r=r(null!=e?e:{})),sb(oz(e,r))),r.stop=ox,r.retry=oM,r},sS=sb();function sC(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function s_(e,r){return function(i,n){r(i,n,e)}}class sw{constructor(e){this.opts=e,"production"===this.opts.env?this.client=sS.create({prefixUrl:sw.ONLINE_HOST}):this.client=sS.create({prefixUrl:sw.SANDBOX_HOST})}}sw.ONLINE_HOST="https://ky.cloud.baidu.com",sw.SANDBOX_HOST="https://ky-test.cloud.baidu.com",sw=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),s_(0,e3(oS.IOptions)),s_(0,tt()),sC("design:type",Function),sC("design:paramtypes",["undefined"==typeof IResolvedOptions?Object:IResolvedOptions])],sw);class sR extends Error{static fromError(e,r,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"MEDIUM";return new sR(r,e.message,i,n,{originalError:e,stack:e.stack})}toJSON(){return{code:this.code,message:this.message,category:this.category,severity:this.severity,metadata:this.metadata,actionRequired:this.actionRequired}}toString(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}constructor(e,r,i,n="MEDIUM",o={},s){super(r),this.name=this.constructor.name,this.code=e,this.category=i,this.severity=n,this.actionRequired=s,this.metadata={timestamp:Date.now(),stack:this.stack,...o},Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error(r).stack}}let sT={1e3:"发生未知错误",1001:"网络连接错误",1002:"请求超时",1003:"配置无效",1004:"身份验证失败",1005:"权限验证失败",1006:"数据验证失败",1007:"资源未找到",1008:"资源不可用",1009:"内部错误",2001:"Agent查询失败",2002:"Agent响应解析错误",2003:"Agent请求超时",2004:"Agent响应无效",2005:"Agent连接失败",2006:"Agent指令无效",3001:"ASR初始化失败",3002:"ASR启动失败",3003:"ASR停止失败",3004:"ASR信令错误",3005:"ASR音频捕获错误",3006:"ASR识别错误",3007:"ASR网络错误",3008:"ASR权限被拒绝",3009:"ASR设备未找到",3010:"ASR消息解析错误",3011:"ASR会话无效",3012:"ASR静音失败",3013:"ASR消息间隔超时",3014:"ASR运行时错误",3100:"浏览器不支持 MediaDevices API",3101:"需要 HTTPS 安全上下文",3102:"音频设备枚举失败",3103:"用户关闭权限请求",3104:"设备被占用或不可读",3105:"音频设备检测超时",4001:"数字人挂载失败",4002:"数字人iframe加载错误",4003:"数字人渲染错误",4004:"数字人WebSocket错误",4005:"数字人RTC错误",4006:"数字人认证错误",4007:"数字人会话数量达到上限",4008:"数字人资源不足",4009:"数字人超时",4010:"数字人中断失败",4011:"数字人SSML解析错误",4012:"数字人形象ID无效",4013:"数字人token无效",4014:"数字人流式渲染错误",4015:"数字人控制器未就绪",4016:"数字人播报文本长度不匹配",5001:"会话创建失败",5002:"会话类型无效",5003:"会话快照无效",5004:"会话Bean未找到",5005:"会话序列化错误",5006:"会话反序列化错误",5007:"会话状态无效",5008:"会话清除失败"};class sE extends sR{constructor(e,r,i="MEDIUM",n={},o){super(e,r||sT[e]||"Agent服务错误","SERVICE",i,n,o)}}class sj extends sE{constructor(e,r={}){super("2001",e,"HIGH",r)}}class sP extends sE{constructor(e,r={}){super("2002",e,"HIGH",r)}}class sk extends sE{constructor(e,r={}){super("2005",e,"HIGH",r)}}class sO extends sE{constructor(e,r={}){super("2006",e,"MEDIUM",r)}}var sI=C("../../node_modules/ua-parser-js/src/ua-parser.js"),sx=C.n(sI);let sA=()=>{let e=new(sx()),r=e.getBrowser(),i=e.getOS(),n=e.getDevice();return{userAgent:e.getUA(),browser:{name:r.name,version:r.version},os:{name:i.name,version:i.version},device:{type:n.type,vendor:n.vendor,model:n.model}}},sM=()=>"iOS"===new(sx())().getOS().name,sD=()=>{let e=new(sx()),r=e.getOS(),i=e.getDevice();return"Mac OS"===r.name&&"tablet"===i.type};class sN extends sR{constructor(e,r,i="MEDIUM",n={}){super(e,r||sT[e]||"ASR服务错误","SERVICE",i,n)}}class sB extends sN{constructor(e,r={}){super("3001",e,"HIGH",r)}}class sL extends sN{constructor(e,r={}){super("3003",e,"MEDIUM",r)}}class sF extends sN{constructor(e,r={}){super("3008",e,"MEDIUM",{...r,context:{...r.context,browserInfo:sA()}})}}class sz extends sN{constructor(e,r={}){super("3010",e,"MEDIUM",r)}}class sU extends sN{constructor(e,r={}){super("3013",e,"MEDIUM",r)}}class sH extends sN{constructor(e,r={}){super("3014",e,"HIGH",r)}}class sq extends sN{constructor(e,r={}){super("3009",e,"HIGH",{...r,context:{...r.context,browserInfo:sA()}})}}class sW extends sN{constructor(e,r={}){super("3104",e,"MEDIUM",{...r,context:{...r.context,browserInfo:sA()}})}}class sV extends sN{constructor(e,r={}){super("3100",e,"CRITICAL",{...r,context:{...r.context,browserInfo:sA()}})}}class sG extends sN{constructor(e,r={}){super("3101",e,"HIGH",r)}}class sK extends sN{constructor(e,r={}){super("3103",e,"MEDIUM",r)}}class sJ extends sN{constructor(e,r={}){super("3105",e,"MEDIUM",r)}}class sX extends sR{constructor(e,r,i="MEDIUM",n={}){super(e,r||sT[e]||"数字人服务错误","SERVICE",i,n)}}class s$ extends sX{constructor(e,r={}){super("4001",e,"HIGH",r)}}class sQ extends sX{constructor(e,r={}){super("4002",e,"HIGH",r)}}class sY extends sX{constructor(e,r={}){super("4003",e,"MEDIUM",r)}}class sZ extends sX{constructor(e,r={}){super("4004",e,"HIGH",r)}}class s0 extends sX{constructor(e,r={}){super("4005",e,"HIGH",r)}}class s1 extends sX{constructor(e,r={}){super("4006",e,"CRITICAL",r)}}class s2 extends sX{constructor(e,r={}){super("4008",e,"CRITICAL",r)}}class s3{addReporter(e){this.reporters.push(e)}removeReporter(e){let r=this.reporters.indexOf(e);r>-1&&this.reporters.splice(r,1)}async handle(e){let r;r=e instanceof sR?e.toJSON():this.isErrorDetails(e)?e:sR.fromError(e,"UNKNOWN_ERROR","INTERNAL").toJSON(),await this.processError(r)}async processError(e){try{this.shouldLogError()&&this.logError(e),this.shouldReportError(e)&&await this.reportError(e)}catch(e){console.error("Error in error handler:",e)}}shouldLogError(){var e;return(null==(e=this.opts)?void 0:e.enableErrorLogging)!==!1}shouldReportError(e){var r;return(null==(r=this.opts)?void 0:r.enableErrorReporting)!==!1&&"LOW"!==e.severity&&this.reporters.length>0}logError(e){let r=this.getLogLevel(e.severity),i="[".concat(e.code,"] ").concat(e.message);"error"===r?console.error(i,e):"warn"===r?console.warn(i,e):console.log(i,e)}getLogLevel(e){switch(e){case"CRITICAL":case"HIGH":return"error";case"MEDIUM":return"warn";default:return"log"}}async reportError(e){let r=this.reporters.map(r=>r.report(e).catch(e=>{console.error("Error reporter failed:",e)}));await Promise.allSettled(r)}isErrorDetails(e){return e&&"object"==typeof e&&"code"in e&&"message"in e&&"category"in e&&"severity"in e}constructor(e){this.opts=e,this.reporters=[]}}class s4{async report(e){console.error("Error Report:",{code:e.code,message:e.message,category:e.category,severity:e.severity,timestamp:new Date(e.metadata.timestamp).toISOString(),sessionId:e.metadata.sessionId,requestId:e.metadata.requestId,context:e.metadata.context})}}class s6{async report(e){let r=this.buildPayload(e);for(let e=0;e<=this.options.retryCount;e++)try{await this.sendRequest(r);return}catch(r){if(e===this.options.retryCount)throw r;await this.delay(this.options.retryDelay*(e+1))}}buildPayload(e){return{error:{code:e.code,message:e.message,category:e.category,severity:e.severity,actionRequired:e.actionRequired},metadata:{timestamp:e.metadata.timestamp,sessionId:e.metadata.sessionId,requestId:e.metadata.requestId,userId:e.metadata.userId,context:e.metadata.context,userAgent:navigator.userAgent,url:window.location.href}}}async sendRequest(e){let r=new AbortController,i=setTimeout(()=>r.abort(),this.options.timeout);try{let i=await fetch(this.options.endpoint,{method:"POST",headers:this.options.headers,body:JSON.stringify(e),signal:r.signal});if(!i.ok)throw Error("HTTP ".concat(i.status,": ").concat(i.statusText))}finally{clearTimeout(i)}}delay(e){return new Promise(r=>setTimeout(r,e))}constructor(e){this.options={timeout:5e3,headers:{"Content-Type":"application/json"},retryCount:3,retryDelay:1e3,...e}}}class s5{static getErrorSeverity(e){if(e instanceof sR)return e.severity;let r=e.message.toLowerCase();return r.includes("permission")||r.includes("unauthorized")||r.includes("forbidden")?"CRITICAL":r.includes("network")||r.includes("timeout")||r.includes("connection")?"HIGH":"MEDIUM"}static shouldReport(e){return!(e instanceof sR)||"LOW"!==e.severity}static extractMetadata(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={timestamp:Date.now(),context:r,stack:e.stack};return e instanceof sR?{...i,...e.metadata}:i}static getActionRequired(e){if(e instanceof sR){var r;return null!=(r=e.actionRequired)?r:null}let i=e.message.toLowerCase();return i.includes("permission")||i.includes("unauthorized")?"请检查用户权限":i.includes("network")||i.includes("timeout")?"请检查网络连接后重试":i.includes("validation")||i.includes("invalid")?"请检查输入数据的格式和有效性":null}}class s8{constructor(){this.emitter=new oy,this.emit=e=>{let r=this.transformErrorToPayload(e);this.emitter.emit("error",r)},this.on=e=>{this.emitter.on("error",e)},this.off=e=>{this.emitter.off("error",e)},this.clearListeners=()=>{this.emitter.clearListeners()},this.transformErrorToPayload=e=>{if(e instanceof sR){var r;return{code:e.code,message:e.toString(),stack:e.stack,actionRequired:null!=(r=e.actionRequired)?r:null,severity:e.severity,metadata:{timestamp:e.metadata.timestamp,sessionId:e.metadata.sessionId,requestId:e.metadata.requestId,userId:e.metadata.userId,context:e.metadata.context,service:this.extractServiceFromError(e)},originalError:e}}return{code:"UNKNOWN_ERROR",message:e.toString(),stack:e.stack,actionRequired:s5.getActionRequired(e),severity:s5.getErrorSeverity(e),metadata:{timestamp:Date.now(),context:{errorName:e.name}},originalError:e}},this.extractServiceFromError=e=>{let r=e.constructor.name.toLowerCase();return r.includes("agent")?"agent":r.includes("asr")?"asr":r.includes("digitalHuman")||r.includes("dh")?"digital-human":r.includes("conversation")?"conversation":"unknown"}}}class s9 extends Error{static createForMonitoring(e,r,i){return new s9(e,r,i)}getMonitoringData(){return{type:this.name,message:this.message,stack:this.stack,timestamp:Date.now(),...this.data}}getSimplifiedData(){return{type:this.name,message:this.message,userId:this.data.userId,sessionId:this.data.sessionId,page:this.data.page}}toString(){return this.message}toJSON(){return this.getMonitoringData()}constructor(e,r,i={}){super(r),this.name=e||"AaaSPilotKitError",this.message=r,this.data=i,Error.captureStackTrace?Error.captureStackTrace(this,s9):this.stack=Error().stack||"",Object.setPrototypeOf(this,s9.prototype)}}function s7(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function ae(e,r){return function(i,n){r(i,n,e)}}class at extends s8{constructor(e){super(),this.opts=e,this.handleError=async e=>{await this.errorHandler.handle(e),this.emit(e)},this.getErrorHandler=()=>this.errorHandler,this.getActionRequired=e=>s5.getActionRequired(e),this.createMonitoringError=e=>{var r,i;let n=this.buildEnhancedMessage(e),o={page:null==(r=e.metadata.context)?void 0:r.page,userId:e.metadata.userId,sessionId:e.metadata.sessionId,requestId:e.metadata.requestId,context:e.metadata.context,severity:e.severity,category:e.metadata.service||"unknown",code:e.code,originalMessage:null==(i=e.originalError)?void 0:i.message};return s9.createForMonitoring(e.code,n,o)},this.buildEnhancedMessage=e=>{let r=[],i=e.severity.toUpperCase();r.push("[".concat(i,"]: ").concat(e.message)),e.metadata.service&&r.push("category=".concat(e.metadata.service));let n=new Date(e.metadata.timestamp||Date.now()),o=n.getFullYear()+"-"+String(n.getMonth()+1).padStart(2,"0")+"-"+String(n.getDate()).padStart(2,"0")+" "+String(n.getHours()).padStart(2,"0")+":"+String(n.getMinutes()).padStart(2,"0")+":"+String(n.getSeconds()).padStart(2,"0");if(r.push("time=".concat(o)),e.metadata&&Object.keys(e.metadata).length>0){let i=this.stringifyMetadata(e.metadata);i&&"{}"!==i&&r.push("metadata=".concat(i))}return r.join(" | ")},this.stringifyMetadata=e=>{if(!e||"object"!=typeof e)return"{}";let r=new Set(["timestamp","stack"]),i={};for(let[n,o]of Object.entries(e))r.has(n)||null==o||(i[n]=o);try{return JSON.stringify(i)}catch{return"{}"}},this.initializeReporters=()=>{this.options.enableConsoleReporter&&this.errorHandler.addReporter(new s4),this.options.enableHttpReporter&&this.options.httpReporterEndpoint&&this.errorHandler.addReporter(new s6({endpoint:this.options.httpReporterEndpoint}))},this.options={enableConsoleReporter:this.opts.enableDebugMode,enableHttpReporter:!1,enableErrorLogging:this.opts.enableDebugMode,enableErrorReporting:!0},this.errorHandler=new s3(this.options),this.initializeReporters()}}at=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),ae(0,e3(oS.IOptions)),ae(0,tt()),s7("design:type",Function),s7("design:paramtypes",["undefined"==typeof IOptions?Object:IOptions])],at);let ar="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ai=new Uint8Array(16),an=[];for(let e=0;e<256;++e)an.push((e+256).toString(16).slice(1));let ao=function(r,i,n){if(ar&&!i&&!r)return ar();var o=r,s=n;let a=(o=o||{}).random??o.rng?.()??function(){if(!e){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");e=crypto.getRandomValues.bind(crypto)}return e(ai)}();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,i){if((s=s||0)<0||s+16>i.length)throw RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let e=0;e<16;++e)i[s+e]=a[e];return i}return function(e,r=0){return(an[e[r+0]]+an[e[r+1]]+an[e[r+2]]+an[e[r+3]]+"-"+an[e[r+4]]+an[e[r+5]]+"-"+an[e[r+6]]+an[e[r+7]]+"-"+an[e[r+8]]+an[e[r+9]]+"-"+an[e[r+10]]+an[e[r+11]]+an[e[r+12]]+an[e[r+13]]+an[e[r+14]]+an[e[r+15]]).toLowerCase()}(a)},as=()=>{};class aa{constructor(e,r){this.getText=()=>"string"==typeof this.data?this.data:this.data&&"object"==typeof this.data&&"answer"in this.data&&this.data.answer||"",this.toJSON=()=>({data:this.data,index:this.index}),this.data=e,this.index=r}}class ac{get endTime(){return this._endTime}constructor(e,r){this.emitter=new oy,this.id=ao(),this._endTime=0,this._isCompleted=!1,this.chunks=[],this.appendChunk=e=>{this._isCompleted?console.warn("Response ".concat(this.id," 已完成,无法添加新的 chunk")):(this.chunks.push(e),this.emitter.emit("update",{sessionId:this.sessionId,queryId:this.queryId,response:this}).catch(as))},this.complete=()=>{this._isCompleted||(this._isCompleted=!0,this._endTime=Date.now())},this.getChunks=()=>this.chunks,this.getFullText=()=>this.chunks.map(e=>e.getText()).join(""),this.getDuration=()=>(this._endTime||Date.now())-this.startTime,this.isCompleted=()=>this._isCompleted,this.toJSON=()=>({id:this.id,sessionId:this.sessionId,queryId:this.queryId,startTime:this.startTime,endTime:this._endTime,duration:this.getDuration(),isCompleted:this._isCompleted,chunks:this.chunks.map(e=>e.toJSON()),fullText:this.getFullText()}),this.toString=()=>this.getFullText(),this.sessionId=e,this.queryId=r,this.startTime=Date.now()}}class ad{constructor(e=0){this.currentResponse=null,this.responses=[],this.maxSize=0,this.onResponse=(e,r,i)=>{if(this.currentResponse&&this.currentResponse.queryId===i){let r=new aa(e,this.currentResponse.getChunks().length);this.currentResponse.appendChunk(r);return}if(!this.currentResponse||this.currentResponse.queryId!==i){let n=new ac(r,i),o=new aa(e,0);n.appendChunk(o),this.currentResponse=n,this.addResponse(n)}},this.onComplete=()=>{this.currentResponse&&(this.currentResponse.complete(),this.currentResponse=null)},this.getResponses=()=>this.responses,this.getResponseById=e=>this.responses.find(r=>r.id===e),this.getResponseByQueryId=e=>this.responses.find(r=>r.queryId===e),this.getLastResponse=()=>this.responses[this.responses.length-1]||null,this.clear=()=>{this.responses=[],this.currentResponse=null},this.toJSON=()=>this.responses.map(e=>e.toJSON()),this.addResponse=e=>{this.responses.push(e),this.maxSize>0&&this.responses.length>this.maxSize&&(this.responses=this.responses.slice(-this.maxSize))},this.maxSize=e}}function al(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function au(e,r){return function(i,n){r(i,n,e)}}class ap{get sessionId(){return this.conversationSessionId}get queryId(){return this._queryId}get lastQueryId(){return this._lastQueryId}getResponses(){return this.responseManager.getResponses()}getResponseManager(){return this.responseManager}constructor(e,r,i){this.request=e,this.errorManager=r,this.opts=i,this.emitter=new oy,this.conversationSessionId="",this.abortController=null,this._queryId="",this._lastQueryId="",this.hasTtftEmitted=!1,this.setSessionId=e=>{this.conversationSessionId=e},this.setQueryId=e=>{this._queryId=e},this.setLastQueryId=e=>{this._lastQueryId=e},this.abort=e=>{var r;null==(r=this.abortController)||r.abort(e),this.abortController&&(this.abortController=null)},this.checkIsRepeat=()=>{let e=!!this.lastQueryId&&this.lastQueryId===this.queryId;return e&&this.opts.enableDebugMode&&console.warn("重复的completed查询被忽略:",this.queryId),e},this.onData=e=>{this.emitter.emit("data",e)},this.onCompleted=e=>{this.emitter.emit("completed",e),this.responseManager.onComplete()},this.onHangup=e=>{this.emitter.emit("hangup",e)},this.onTimeout=e=>{this.emitter.emit("timeout",e)},this.onInstructionReceived=e=>{this.emitter.emit("instruction_received",e)},this.onResponse=e=>{this.responseManager.onResponse(e,this.sessionId,this.queryId)},this.onUsageQuotaReached=e=>{this.emitter.emit("usage_quota_reached",e)},this.onQuotaExpired=e=>{this.emitter.emit("quota_expired",e)},this.onTtft=e=>{this.hasTtftEmitted||(this.hasTtftEmitted=!0,this.emitter.emit("ttft",e))},this.resetTtftFlag=()=>{this.hasTtftEmitted=!1},this._dispose=()=>{this.abort(),this.conversationSessionId="",this._queryId="",this._lastQueryId="",this.responseManager.clear()},this.responseManager=new ad}}ap=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),au(0,e3(oS.CommonRequest)),au(1,e3(oS.ErrorManager)),au(2,e3(oS.IOptions)),au(2,tt()),al("design:type",Function),al("design:paramtypes",[void 0===sw?Object:sw,void 0===at?Object:at,"undefined"==typeof IResolvedOptions?Object:IResolvedOptions])],ap),C("../../node_modules/core-js/modules/es.array.reduce.js");let ah=[{pattern:/客悦\s*one/gi,replacement:"客悦\xb7ONE"},{pattern:/\bSARS\b/gi,replacement:"SaaS"},{pattern:/\bSAS\b/gi,replacement:"SaaS"}],af=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ah;return r.reduce((e,r)=>{let{pattern:i,replacement:n}=r;return e.replace(i,n)},e)},av={CHINESE:"zh",ENGLISH:"en",JAPANESE:"ja",SPANISH:"es",RUSSIAN:"ru",KOREAN:"ko",VIETNAMESE:"vi",GERMAN:"de",INDONESIAN:"id",THAI:"th"},am={[av.CHINESE]:"zh",[av.ENGLISH]:"en",[av.JAPANESE]:"ja",[av.SPANISH]:"es",[av.RUSSIAN]:"ru",[av.KOREAN]:"ko",[av.VIETNAMESE]:"vi",[av.GERMAN]:"de",[av.INDONESIAN]:"id",[av.THAI]:"th",ar:"ar",ms:"ms"},ag={[av.CHINESE]:"Chinese",[av.ENGLISH]:"English",[av.JAPANESE]:"Japanese",[av.SPANISH]:"Spanish",[av.RUSSIAN]:"Russian",[av.KOREAN]:"Korean",[av.VIETNAMESE]:"Vietnamese",[av.GERMAN]:"German",[av.INDONESIAN]:"Indonesian",[av.THAI]:"Thai",yue:"Chinese,Yue",fr:"French",pt:"Portuguese",tr:"Turkish",nl:"Dutch",uk:"Ukrainian",it:"Italian",pl:"Polish",ro:"Romanian",el:"Greek",cs:"Czech",fi:"Finnish",hi:"Hindi",auto:"auto"},ay=av.CHINESE,ab=e=>{if(!e)return ag[ay];let r=ag[e];return r||(console.warn('[AaaSPilotKit] 不支持的语言代码 "'.concat(e,'",已自动回退到中文。')+"支持的语言:".concat(Object.keys(ag).join(", "))),ag[ay])},aS={enableDebugMode:!1,minSplitLen:5,ttsModel:"turbo_v2",env:"production",interruptible:!0,rendererMode:"cloud",autoChromaKey:!0,typeDelay:163,enTypeDelay:45,inactivityPrompt:"您这么久没讲话,是不是有其它事情要忙,那我先挂断了",getMountContainer:()=>document.body,hotWordReplacementRules:ah,checkAudioDeviceBeforeStart:!0,microphoneFailureHandling:"error",rtcID:"appreimunmd7utp"};class aC{constructor(e,r){this.opts=r,this.emitter=new oy,this.id="",this.text="",this.update=e=>{let{id:r,...i}=e;r?this.id=r:this.id||(this.id=ao()),Object.assign(this,i)},this.toJSON=()=>({id:this.id,type:this.type,text:this.text}),this.type=e.type,this.update(e)}}class a_ extends aC{static create(e){return new a_({},e)}constructor(e,r){super({...e,type:"client"},r),this.opts=r,this.appendText=e=>{this.text=e,this.emitter.emit("content_change",{mod:"text",content:e,completed:!0}).catch(as)},this.dispose=()=>{},this.interrupt=()=>{}}}C("../../node_modules/core-js/modules/web.queue-microtask.js");var aw=C("../../node_modules/eventemitter3/index.js"),aR=C.n(aw);class aT extends Error{constructor(e,r){var i,n;super(e,r),this.name="TimeoutError",null==(i=(n=Error).captureStackTrace)||i.call(n,this,aT)}}let aE=e=>{var r;return null!=(r=e.reason)?r:new DOMException("This operation was aborted.","AbortError")};function aj(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function aP(e,r){var i=aj(e,r,"get");return i.get?i.get.call(e):i.value}var ak=new WeakMap;class aO{enqueue(e,r){let{priority:i=0,id:n}=null!=r?r:{},o={priority:i,id:n,run:e};if(0===this.size||aP(this,ak)[this.size-1].priority>=i)return void aP(this,ak).push(o);let s=function(e,r,i){let n=0,o=e.length;for(;o>0;){let s=Math.trunc(o/2),a=n+s;0>=i(e[a],r)?(n=++a,o-=s+1):o=s}return n}(aP(this,ak),o,(e,r)=>r.priority-e.priority);aP(this,ak).splice(s,0,o)}setPriority(e,r){let i=aP(this,ak).findIndex(r=>r.id===e);if(-1===i)throw ReferenceError('No promise function with the id "'.concat(e,'" exists in the queue.'));let[n]=aP(this,ak).splice(i,1);this.enqueue(n.run,{priority:r,id:e})}dequeue(){let e=aP(this,ak).shift();return null==e?void 0:e.run}filter(e){return aP(this,ak).filter(r=>r.priority===e.priority).map(e=>e.run)}get size(){return aP(this,ak).length}constructor(){!function(e,r,i){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");r.set(e,i)}(this,ak,{writable:!0,value:void 0}),function(e,r,i){var n=aj(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}}(this,ak,[])}}function aI(e,r){if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function ax(e,r,i){if(!r.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return r.get(e)}function aA(e,r){var i=ax(e,r,"get");return i.get?i.get.call(e):i.value}function aM(e,r,i){aI(e,r),r.set(e,i)}function aD(e,r,i){var n=ax(e,r,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function aN(e,r){var i=ax(e,r,"update");if(i.set){if(!i.get)throw TypeError("attempted to read set only private field");return"__destrWrapper"in i||(i.__destrWrapper={set value(v){i.set.call(e,v)},get value(){return i.get.call(e)}}),i.__destrWrapper}if(!i.writable)throw TypeError("attempted to set read only private field");return i}function aB(e,r,i){if(!r.has(e))throw TypeError("attempted to get private field on non-instance");return i}function aL(e,r){aI(e,r),r.add(e)}var aF=new WeakMap,az=new WeakMap,aU=new WeakMap,aH=new WeakMap,aq=new WeakMap,aW=new WeakMap,aV=new WeakMap,aG=new WeakMap,aK=new WeakMap,aJ=new WeakMap,aX=new WeakMap,a$=new WeakMap,aQ=new WeakMap,aY=new WeakMap,aZ=new WeakMap,a0=new WeakMap,a1=new WeakMap,a2=new WeakMap,a3=new WeakMap,a4=new WeakMap,a6=new WeakSet,a5=new WeakSet,a8=new WeakMap,a9=new WeakSet,a7=new WeakSet,ce=new WeakSet,ct=new WeakSet,cr=new WeakSet,ci=new WeakSet,cn=new WeakSet,co=new WeakSet,cs=new WeakSet,ca=new WeakSet,cc=new WeakSet,cd=new WeakSet;class cl extends aR(){get concurrency(){return aA(this,aZ)}set concurrency(e){if(!("number"==typeof e&&e>=1))throw TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(typeof e,")"));aD(this,aZ,e),aB(this,cn,c_).call(this)}setPriority(e,r){if("number"!=typeof r||!Number.isFinite(r))throw TypeError("Expected `priority` to be a finite number, got `".concat(r,"` (").concat(typeof r,")"));aA(this,a$).setPriority(e,r)}async add(e){var r;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=(r=i).id||(r.id=(aN(this,a1).value++).toString()),i={timeout:this.timeout,...i},new Promise((r,n)=>{let o=Symbol("task-".concat(i.id));aA(this,a$).enqueue(async()=>{var s,a;aN(this,aY).value++,aA(this,a2).set(o,{id:i.id,priority:null!=(s=i.priority)?s:0,startTime:Date.now(),timeout:i.timeout});try{try{null==(a=i.signal)||a.throwIfAborted()}catch(e){throw!aA(this,az)&&aN(this,aU).value--,aA(this,a2).delete(o),e}let n=e({signal:i.signal});i.timeout&&(n=function(e,r){let i,n,{milliseconds:o,fallback:s,message:a,customTimers:c={setTimeout,clearTimeout},signal:d}=r,l=new Promise((r,l)=>{if("number"!=typeof o||1!==Math.sign(o))throw TypeError("Expected `milliseconds` to be a positive number, got `".concat(o,"`"));if(null==d?void 0:d.aborted)return void l(aE(d));if(d&&(n=()=>{l(aE(d))},d.addEventListener("abort",n,{once:!0})),e.then(r,l),o===1/0)return;let u=new aT;i=c.setTimeout.call(void 0,()=>{if(s){try{r(s())}catch(e){l(e)}return}"function"==typeof e.cancel&&e.cancel(),!1===a?r():a instanceof Error?l(a):(u.message=null!=a?a:"Promise timed out after ".concat(o," milliseconds"),l(u))},o)}).finally(()=>{l.clear(),n&&d&&d.removeEventListener("abort",n)});return l.clear=()=>{c.clearTimeout.call(void 0,i),i=void 0},l}(Promise.resolve(n),{milliseconds:i.timeout,message:"Task timed out after ".concat(i.timeout,"ms (queue has ").concat(aA(this,aY)," running, ").concat(aA(this,a$).size," waiting)")})),i.signal&&(n=Promise.race([n,aB(this,co,cw).call(this,i.signal)]));let s=await n;r(s),this.emit("completed",s)}catch(e){n(e),this.emit("error",e)}finally{aA(this,a2).delete(o),queueMicrotask(()=>{aB(this,a6,ch).call(this)})}},i),this.emit("add"),aB(this,ct,cb).call(this)})}async addAll(e,r){return Promise.all(e.map(async e=>this.add(e,r)))}start(){return aA(this,a0)&&(aD(this,a0,!1),aB(this,cn,c_).call(this)),this}pause(){aD(this,a0,!0)}clear(){aD(this,a$,new(aA(this,aQ))),aB(this,cd,cj).call(this)}async onEmpty(){0!==aA(this,a$).size&&await aB(this,cs,cR).call(this,"empty")}async onSizeLessThan(e){aA(this,a$).size<e||await aB(this,cs,cR).call(this,"next",()=>aA(this,a$).size<e)}async onIdle(){(0!==aA(this,aY)||0!==aA(this,a$).size)&&await aB(this,cs,cR).call(this,"idle")}async onPendingZero(){0!==aA(this,aY)&&await aB(this,cs,cR).call(this,"pendingZero")}async onRateLimit(){this.isRateLimited||await aB(this,cs,cR).call(this,"rateLimit")}async onRateLimitCleared(){this.isRateLimited&&await aB(this,cs,cR).call(this,"rateLimitCleared")}async onError(){return new Promise((e,r)=>{let i=e=>{this.off("error",i),r(e)};this.on("error",i)})}get size(){return aA(this,a$).size}sizeBy(e){return aA(this,a$).filter(e).length}get pending(){return aA(this,aY)}get isPaused(){return aA(this,a0)}get isRateLimited(){return aA(this,aq)}get isSaturated(){return aA(this,aY)===aA(this,aZ)&&aA(this,a$).size>0||this.isRateLimited&&aA(this,a$).size>0}get runningTasks(){return[...aA(this,a2).values()].map(e=>({...e}))}constructor(e){var r,i,n,o,s,a;if(super(),aM(this,a3,{get:cu,set:void 0}),aM(this,a4,{get:cp,set:void 0}),aL(this,a6),aL(this,a5),aM(this,a8,{get:cv,set:void 0}),aL(this,a9),aL(this,a7),aL(this,ce),aL(this,ct),aL(this,cr),aL(this,ci),aL(this,cn),aL(this,co),aL(this,cs),aL(this,ca),aL(this,cc),aL(this,cd),aM(this,aF,{writable:!0,value:void 0}),aM(this,az,{writable:!0,value:void 0}),aM(this,aU,{writable:!0,value:void 0}),aM(this,aH,{writable:!0,value:void 0}),aM(this,aq,{writable:!0,value:void 0}),aM(this,aW,{writable:!0,value:void 0}),aM(this,aV,{writable:!0,value:void 0}),aM(this,aG,{writable:!0,value:void 0}),aM(this,aK,{writable:!0,value:void 0}),aM(this,aJ,{writable:!0,value:void 0}),aM(this,aX,{writable:!0,value:void 0}),aM(this,a$,{writable:!0,value:void 0}),aM(this,aQ,{writable:!0,value:void 0}),aM(this,aY,{writable:!0,value:void 0}),aM(this,aZ,{writable:!0,value:void 0}),aM(this,a0,{writable:!0,value:void 0}),aM(this,a1,{writable:!0,value:void 0}),aM(this,a2,{writable:!0,value:void 0}),aD(this,aU,0),aD(this,aq,!1),aD(this,aW,!1),aD(this,aG,0),aD(this,aK,0),aD(this,aY,0),aD(this,a1,1n),aD(this,a2,new Map),!("number"==typeof(e={carryoverIntervalCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:aO,...e}).intervalCap&&e.intervalCap>=1))throw TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!=(i=null==(r=e.intervalCap)?void 0:r.toString())?i:"","` (").concat(typeof e.intervalCap,")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!=(o=null==(n=e.interval)?void 0:n.toString())?o:"","` (").concat(typeof e.interval,")"));if(aD(this,aF,null!=(a=null!=(s=e.carryoverIntervalCount)?s:e.carryoverConcurrencyCount)&&a),aD(this,az,e.intervalCap===1/0||0===e.interval),aD(this,aH,e.intervalCap),aD(this,aV,e.interval),aD(this,a$,new e.queueClass),aD(this,aQ,e.queueClass),this.concurrency=e.concurrency,void 0!==e.timeout&&!(Number.isFinite(e.timeout)&&e.timeout>0))throw TypeError("Expected `timeout` to be a positive finite number, got `".concat(e.timeout,"` (").concat(typeof e.timeout,")"));this.timeout=e.timeout,aD(this,a0,!1===e.autoStart),aB(this,ca,cT).call(this)}}function cu(){return aA(this,az)||aA(this,aU)<aA(this,aH)}function cp(){return aA(this,aY)<aA(this,aZ)}function ch(){aN(this,aY).value--,0===aA(this,aY)&&this.emit("pendingZero"),aB(this,ct,cb).call(this),this.emit("next")}function cf(){aB(this,ci,cC).call(this),aB(this,cr,cS).call(this),aD(this,aX,void 0)}function cv(){let e=Date.now();if(void 0===aA(this,aJ)){let r=aA(this,aG)-e;if(!(r<0))return aB(this,a9,cm).call(this,r),!0;if(aA(this,aK)>0){let r=e-aA(this,aK);if(r<aA(this,aV))return aB(this,a9,cm).call(this,aA(this,aV)-r),!0}aD(this,aU,aA(this,aF)?aA(this,aY):0)}return!1}function cm(e){void 0===aA(this,aX)&&aD(this,aX,setTimeout(()=>{aB(this,a5,cf).call(this)},e))}function cg(){aA(this,aJ)&&(clearInterval(aA(this,aJ)),aD(this,aJ,void 0))}function cy(){aA(this,aX)&&(clearTimeout(aA(this,aX)),aD(this,aX,void 0))}function cb(){if(0===aA(this,a$).size)return aB(this,a7,cg).call(this),this.emit("empty"),0===aA(this,aY)&&(aB(this,ce,cy).call(this),this.emit("idle")),!1;let e=!1;if(!aA(this,a0)){let r=!aA(this,a8);if(aA(this,a3)&&aA(this,a4)){let i=aA(this,a$).dequeue();aA(this,az)||(aN(this,aU).value++,aB(this,cc,cE).call(this)),this.emit("active"),aD(this,aK,Date.now()),i(),r&&aB(this,cr,cS).call(this),e=!0}}return e}function cS(){aA(this,az)||void 0!==aA(this,aJ)||(aD(this,aJ,setInterval(()=>{aB(this,ci,cC).call(this)},aA(this,aV))),aD(this,aG,Date.now()+aA(this,aV)))}function cC(){0===aA(this,aU)&&0===aA(this,aY)&&aA(this,aJ)&&aB(this,a7,cg).call(this),aD(this,aU,aA(this,aF)?aA(this,aY):0),aB(this,cn,c_).call(this),aB(this,cc,cE).call(this)}function c_(){for(;aB(this,ct,cb).call(this););}async function cw(e){return new Promise((r,i)=>{e.addEventListener("abort",()=>{i(e.reason)},{once:!0})})}async function cR(e,r){return new Promise(i=>{let n=()=>{(!r||r())&&(this.off(e,n),i())};this.on(e,n)})}function cT(){aA(this,az)||(this.on("add",()=>{aA(this,a$).size>0&&aB(this,cc,cE).call(this)}),this.on("next",()=>{aB(this,cc,cE).call(this)}))}function cE(){aA(this,az)||aA(this,aW)||(aD(this,aW,!0),queueMicrotask(()=>{aD(this,aW,!1),aB(this,cd,cj).call(this)}))}function cj(){let e=aA(this,aq),r=!aA(this,az)&&aA(this,aU)>=aA(this,aH)&&aA(this,a$).size>0;r!==e&&(aD(this,aq,r),this.emit(r?"rateLimit":"rateLimitCleared"))}class cP{constructor(e){this.id=ao(),this.createdAt=Date.now(),this.updatedAt=Date.now(),this.emitter=new oy,this.getConfig=()=>({...this.config}),this.updateConfig=e=>{this.config={...this.config,...e},this.updatedAt=Date.now()},this.toJSON=()=>({id:this.id,mod:this.mod,config:this.getConfig(),createdAt:this.createdAt,updatedAt:this.updatedAt}),this.updateTimestamp=()=>{this.updatedAt=Date.now()},this._dispose=()=>{this.emitter.clearListeners()},this.config={...e},this.config.timestamp||(this.config.timestamp=this.createdAt)}}var ck=C("../../node_modules/typewriter-effect/dist/core.js"),cO=C.n(ck);let cI=e=>/[\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF\u3000-\u303F]/.test(e);class cx extends cP{get mod(){return"text"}static fromSnapshot(e){return new cx(e.config)}static fromString(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new cx({content:e,...r})}setTargetElement(e){this.targetElement=e}isEmpty(){return!this.config.content}constructor(...e){super(...e),this.typewriter=null,this.targetElement=null,this.index=0,this.stopTypewriter=()=>{this.typewriter&&(this.typewriter.stop(),this.typewriter=null)},this.runTask=()=>new Promise((e,r)=>{if(this.ensureTarget(),this.isEmpty())return void e({mod:"text",content:""});try{var i,n,o,s,a;let r=null!=(o=null==(i=this.config.typewriterOptions)?void 0:i.delay)?o:163,c=null!=(s=null==(n=this.config.typewriterOptions)?void 0:n.enDelay)?s:r;this.typewriter=new(cO())(this.targetElement,{autoStart:!0,loop:!1,...this.config.typewriterOptions,delay:0,onCreateTextNode:e=>{let r=this.index===this.config.content.length-1;return this.emitter.emit("data",{char:e,index:this.index++,done:r}),document.createTextNode(e)}});let d=[],l="",u=null;for(let e of Array.from(this.config.content)){let r=cI(e);null===u||r===u?l+=e:(d.push({s:l,cn:u}),l=e),u=r}l&&d.push({s:l,cn:u});let p=this.typewriter;if(0===d.length)p=p.changeDelay(r).typeString(this.config.content);else for(let e=0;e<d.length;e++){let{s:i,cn:n}=d[e];if(0===e){let e=null!=(a=i[0])?a:"",o=i.slice(1);p=p.typeString(e),o&&(p=p.changeDelay(n?r:c).typeString(o));continue}p=p.changeDelay(n?r:c).typeString(i)}p.callFunction(()=>{e({mod:"text",content:this.config.content})}).start()}catch(e){r(e)}}),this.dispose=()=>{this._dispose(),this.stopTypewriter(),this.targetElement=null,this.index=0},this.interrupt=()=>{this.stopTypewriter()},this.ensureTarget=()=>{if(this.targetElement)return;let e=document.createElement("span");e.className="text-content-typewriter",this.targetElement=e}}}class cA extends cP{get mod(){return"image"}static fromSnapshot(e){return new cA(e.config)}static fromSrc(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new cA({src:e,...r})}isEmpty(){return!this.config.src}ensureImageElement(){if(this.imgElement)return this.imgElement;let e=document.createElement("img");return this.imgElement=e,e}constructor(...e){super(...e),this.imgElement=null,this.setTargetElement=e=>{this.imgElement=e},this.runTask=()=>new Promise((e,r)=>{var i;if(this.isEmpty())return void e({mod:"image",src:""});let n=this.ensureImageElement(),o=()=>{e({mod:"image",...this.config}),n.removeEventListener("load",o)},s=()=>{r(Error("Failed to load image: ".concat(this.config.src))),n.removeEventListener("error",s)};n.addEventListener("load",o,{once:!0}),n.addEventListener("error",s,{once:!0}),n.alt=null!=(i=this.config.alt)?i:"",this.config.width&&(n.width=this.config.width),this.config.height&&(n.height=this.config.height),n.src=this.config.src}),this.dispose=()=>{this._dispose(),this.imgElement&&(this.imgElement.src="",this.imgElement=null)},this.interrupt=()=>{}}}class cM extends cP{get mod(){return"video"}static fromSnapshot(e){return new cM(e.config)}static fromSrc(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new cM({src:e,...r})}isEmpty(){return!this.config.src}ensureVideoElement(){if(this.videoElement)return this.videoElement;let e=document.createElement("video");return e.muted=!0,e.playsInline=!0,this.videoElement=e,e}constructor(...e){super(...e),this.videoElement=null,this.setTargetElement=e=>{this.videoElement=e},this.runTask=()=>new Promise((e,r)=>{if(this.isEmpty())return void e({mod:"video",src:""});let i=this.ensureVideoElement(),n=()=>{e({mod:"video",...this.config}),i.removeEventListener("loadedmetadata",n)},o=()=>{r(Error("Failed to load video: ".concat(this.config.src))),i.removeEventListener("error",o)};i.addEventListener("loadedmetadata",n,{once:!0}),i.addEventListener("error",o,{once:!0}),this.config.poster&&(i.poster=this.config.poster),this.config.preload&&(i.preload=this.config.preload),this.config.width&&(i.width=this.config.width),this.config.height&&(i.height=this.config.height),i.src=this.config.src,i.load()}),this.dispose=()=>{this._dispose(),this.videoElement&&(this.videoElement.src="",this.videoElement.load(),this.videoElement=null)},this.interrupt=()=>{}}}let cD={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,r){return r},attributeValueProcessor:function(e,r){return r},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,r,i){return e},captureMetaData:!1},cN=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",cB=RegExp("^"+("["+cN+"]["+cN)+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function cL(e,r){let i=[],n=r.exec(e);for(;n;){let o=[];o.startIndex=r.lastIndex-n[0].length;let s=n.length;for(let e=0;e<s;e++)o.push(n[e]);i.push(o),n=r.exec(e)}return i}let cF=function(e){return null!=cB.exec(e)};r="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class cz{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,i){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==i&&(this.child[this.child.length-1][r]={startIndex:i})}static getMetaDataSymbol(){return r}}let cU=(e,r)=>{for(;r<e.length&&/\s/.test(e[r]);)r++;return r};function cH(e,r,i){let n="",o=e[r];if('"'!==o&&"'"!==o)throw Error(`Expected quoted string, found "${o}"`);for(r++;r<e.length&&e[r]!==o;)n+=e[r],r++;if(e[r]!==o)throw Error(`Unterminated ${i} value`);return[++r,n]}function cq(e,r,i){for(let n=0;n<r.length;n++)if(r[n]!==e[i+n+1])return!1;return!0}function cW(e){if(cF(e))return e;throw Error(`Invalid entity name ${e}`)}let cV=/^[-+]?0x[a-fA-F0-9]+$/,cG=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,cK={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0},cJ=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class cX{constructor(e){var r;this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,r)=>String.fromCodePoint(Number.parseInt(r,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,r)=>String.fromCodePoint(Number.parseInt(r,16))}},this.addExternalEntities=c$,this.parseXml=c1,this.parseTextData=cQ,this.resolveNameSpace=cY,this.buildAttributesMap=c0,this.isItStopNode=c6,this.replaceEntitiesValue=c3,this.readStopNodeData=c9,this.saveTextToParentTag=c4,this.addChild=c2,this.ignoreAttributesFn="function"==typeof(r=this.options.ignoreAttributes)?r:Array.isArray(r)?e=>{for(let i of r)if("string"==typeof i&&e===i||i instanceof RegExp&&i.test(e))return!0}:()=>!1}}function c$(e){let r=Object.keys(e);for(let i=0;i<r.length;i++){let n=r[i];this.lastEntities[n]={regex:RegExp("&"+n+";","g"),val:e[n]}}}function cQ(e,r,i,n,o,s,a){if(void 0!==e&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));let n=this.options.tagValueProcessor(r,e,i,o,s);return null==n?e:typeof n!=typeof e||n!==e?n:this.options.trimValues||e.trim()===e?c7(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function cY(e){if(this.options.removeNSPrefix){let r=e.split(":"),i="/"===e.charAt(0)?"/":"";if("xmlns"===r[0])return"";2===r.length&&(e=i+r[1])}return e}let cZ=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function c0(e,r,i){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){let i=cL(e,cZ),n=i.length,o={};for(let e=0;e<n;e++){let n=this.resolveNameSpace(i[e][1]);if(this.ignoreAttributesFn(n,r))continue;let s=i[e][4],a=this.options.attributeNamePrefix+n;if(n.length)if(this.options.transformAttributeName&&(a=this.options.transformAttributeName(a)),"__proto__"===a&&(a="#__proto__"),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s);let e=this.options.attributeValueProcessor(n,s,r);null==e?o[a]=s:typeof e!=typeof s||e!==s?o[a]=e:o[a]=c7(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[a]=!0)}if(Object.keys(o).length){if(this.options.attributesGroupName){let e={};return e[this.options.attributesGroupName]=o,e}return o}}}let c1=function(e){e=e.replace(/\r\n?/g,"\n");let r=new cz("!xml"),i=r,n="",o="";for(let s=0;s<e.length;s++)if("<"===e[s])if("/"===e[s+1]){let r=c5(e,">",s,"Closing Tag is not closed."),a=e.substring(s+2,r).trim();if(this.options.removeNSPrefix){let e=a.indexOf(":");-1!==e&&(a=a.substr(e+1))}this.options.transformTagName&&(a=this.options.transformTagName(a)),i&&(n=this.saveTextToParentTag(n,i,o));let c=o.substring(o.lastIndexOf(".")+1);if(a&&-1!==this.options.unpairedTags.indexOf(a))throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);let d=0;c&&-1!==this.options.unpairedTags.indexOf(c)?(d=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):d=o.lastIndexOf("."),o=o.substring(0,d),i=this.tagsNodeStack.pop(),n="",s=r}else if("?"===e[s+1]){let r=c8(e,s,!1,"?>");if(!r)throw Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,i,o),this.options.ignoreDeclaration&&"?xml"===r.tagName||this.options.ignorePiTags);else{let e=new cz(r.tagName);e.add(this.options.textNodeName,""),r.tagName!==r.tagExp&&r.attrExpPresent&&(e[":@"]=this.buildAttributesMap(r.tagExp,o,r.tagName)),this.addChild(i,e,o,s)}s=r.closeIndex+1}else if("!--"===e.substr(s+1,3)){let r=c5(e,"--\x3e",s+4,"Comment is not closed.");if(this.options.commentPropName){let a=e.substring(s+4,r-2);n=this.saveTextToParentTag(n,i,o),i.add(this.options.commentPropName,[{[this.options.textNodeName]:a}])}s=r}else if("!D"===e.substr(s+1,2)){let r=function(e,r){let i={};if("O"===e[r+3]&&"C"===e[r+4]&&"T"===e[r+5]&&"Y"===e[r+6]&&"P"===e[r+7]&&"E"===e[r+8]){r+=9;let n=1,o=!1,s=!1;for(;r<e.length;r++)if("<"!==e[r]||s)if(">"===e[r]){if(s?"-"===e[r-1]&&"-"===e[r-2]&&(s=!1,n--):n--,0===n)break}else"["===e[r]?o=!0:e[r];else{if(o&&cq(e,"!ENTITY",r)){let n,o;r+=7,[n,o,r]=function(e,r){r=cU(e,r);let i="";for(;r<e.length&&!/\s/.test(e[r])&&'"'!==e[r]&&"'"!==e[r];)i+=e[r],r++;if(cW(i),r=cU(e,r),"SYSTEM"===e.substring(r,r+6).toUpperCase())throw Error("External entities are not supported");if("%"===e[r])throw Error("Parameter entities are not supported");let n="";return[r,n]=cH(e,r,"entity"),[i,n,--r]}(e,r+1),-1===o.indexOf("&")&&(i[n]={regx:RegExp(`&${n};`,"g"),val:o})}else if(o&&cq(e,"!ELEMENT",r)){let{index:i}=function(e,r){r=cU(e,r);let i="";for(;r<e.length&&!/\s/.test(e[r]);)i+=e[r],r++;if(!cW(i))throw Error(`Invalid element name: "${i}"`);r=cU(e,r);let n="";if("E"===e[r]&&cq(e,"MPTY",r))r+=4;else if("A"===e[r]&&cq(e,"NY",r))r+=2;else if("("===e[r]){for(r++;r<e.length&&")"!==e[r];)n+=e[r],r++;if(")"!==e[r])throw Error("Unterminated content model")}else throw Error(`Invalid Element Expression, found "${e[r]}"`);return{elementName:i,contentModel:n.trim(),index:r}}(e,(r+=8)+1);r=i}else if(o&&cq(e,"!ATTLIST",r))r+=8;else if(o&&cq(e,"!NOTATION",r)){let{index:i}=function(e,r){r=cU(e,r);let i="";for(;r<e.length&&!/\s/.test(e[r]);)i+=e[r],r++;cW(i),r=cU(e,r);let n=e.substring(r,r+6).toUpperCase();if("SYSTEM"!==n&&"PUBLIC"!==n)throw Error(`Expected SYSTEM or PUBLIC, found "${n}"`);r+=n.length,r=cU(e,r);let o=null,s=null;if("PUBLIC"===n)[r,o]=cH(e,r,"publicIdentifier"),r=cU(e,r),('"'===e[r]||"'"===e[r])&&([r,s]=cH(e,r,"systemIdentifier"));else if("SYSTEM"===n&&([r,s]=cH(e,r,"systemIdentifier"),!s))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:o,systemIdentifier:s,index:--r}}(e,(r+=9)+1);r=i}else if(cq(e,"!--",r))s=!0;else throw Error("Invalid DOCTYPE");n++}if(0!==n)throw Error("Unclosed DOCTYPE")}else throw Error("Invalid Tag instead of DOCTYPE");return{entities:i,i:r}}(e,s);this.docTypeEntities=r.entities,s=r.i}else if("!["===e.substr(s+1,2)){let r=c5(e,"]]>",s,"CDATA is not closed.")-2,a=e.substring(s+9,r);n=this.saveTextToParentTag(n,i,o);let c=this.parseTextData(a,i.tagname,o,!0,!1,!0,!0);void 0==c&&(c=""),this.options.cdataPropName?i.add(this.options.cdataPropName,[{[this.options.textNodeName]:a}]):i.add(this.options.textNodeName,c),s=r+2}else{let a=c8(e,s,this.options.removeNSPrefix),c=a.tagName,d=a.rawTagName,l=a.tagExp,u=a.attrExpPresent,p=a.closeIndex;this.options.transformTagName&&(c=this.options.transformTagName(c)),i&&n&&"!xml"!==i.tagname&&(n=this.saveTextToParentTag(n,i,o,!1));let h=i;h&&-1!==this.options.unpairedTags.indexOf(h.tagname)&&(i=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),c!==r.tagname&&(o+=o?"."+c:c);let f=s;if(this.isItStopNode(this.options.stopNodes,o,c)){let r="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)"/"===c[c.length-1]?(c=c.substr(0,c.length-1),o=o.substr(0,o.length-1),l=c):l=l.substr(0,l.length-1),s=a.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(c))s=a.closeIndex;else{let i=this.readStopNodeData(e,d,p+1);if(!i)throw Error(`Unexpected end of ${d}`);s=i.i,r=i.tagContent}let n=new cz(c);c!==l&&u&&(n[":@"]=this.buildAttributesMap(l,o,c)),r&&(r=this.parseTextData(r,c,o,!0,u,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),n.add(this.options.textNodeName,r),this.addChild(i,n,o,f)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){"/"===c[c.length-1]?(c=c.substr(0,c.length-1),o=o.substr(0,o.length-1),l=c):l=l.substr(0,l.length-1),this.options.transformTagName&&(c=this.options.transformTagName(c));let e=new cz(c);c!==l&&u&&(e[":@"]=this.buildAttributesMap(l,o,c)),this.addChild(i,e,o,f),o=o.substr(0,o.lastIndexOf("."))}else{let e=new cz(c);this.tagsNodeStack.push(i),c!==l&&u&&(e[":@"]=this.buildAttributesMap(l,o,c)),this.addChild(i,e,o,f),i=e}n="",s=p}}else n+=e[s];return r.child};function c2(e,r,i,n){this.options.captureMetaData||(n=void 0);let o=this.options.updateTag(r.tagname,i,r[":@"]);!1===o||("string"==typeof o&&(r.tagname=o),e.addChild(r,n))}let c3=function(e){if(this.options.processEntities){for(let r in this.docTypeEntities){let i=this.docTypeEntities[r];e=e.replace(i.regx,i.val)}for(let r in this.lastEntities){let i=this.lastEntities[r];e=e.replace(i.regex,i.val)}if(this.options.htmlEntities)for(let r in this.htmlEntities){let i=this.htmlEntities[r];e=e.replace(i.regex,i.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function c4(e,r,i,n){return e&&(void 0===n&&(n=0===r.child.length),void 0!==(e=this.parseTextData(e,r.tagname,i,!1,!!r[":@"]&&0!==Object.keys(r[":@"]).length,n))&&""!==e&&r.add(this.options.textNodeName,e),e=""),e}function c6(e,r,i){let n="*."+i;for(let i in e){let o=e[i];if(n===o||r===o)return!0}return!1}function c5(e,r,i,n){let o=e.indexOf(r,i);if(-1!==o)return o+r.length-1;throw Error(n)}function c8(e,r,i,n=">"){let o=function(e,r,i=">"){let n,o="";for(let s=r;s<e.length;s++){let r=e[s];if(n)r===n&&(n="");else if('"'===r||"'"===r)n=r;else if(r===i[0]){if(!i[1])return{data:o,index:s};else if(e[s+1]===i[1])return{data:o,index:s}}else" "===r&&(r=" ");o+=r}}(e,r+1,n);if(!o)return;let s=o.data,a=o.index,c=s.search(/\s/),d=s,l=!0;-1!==c&&(d=s.substring(0,c),s=s.substring(c+1).trimStart());let u=d;if(i){let e=d.indexOf(":");-1!==e&&(l=(d=d.substr(e+1))!==o.data.substr(e+1))}return{tagName:d,tagExp:s,closeIndex:a,attrExpPresent:l,rawTagName:u}}function c9(e,r,i){let n=i,o=1;for(;i<e.length;i++)if("<"===e[i])if("/"===e[i+1]){let s=c5(e,">",i,`${r} is not closed`);if(e.substring(i+2,s).trim()===r&&0==--o)return{tagContent:e.substring(n,i),i:s};i=s}else if("?"===e[i+1])i=c5(e,"?>",i+1,"StopNode is not closed.");else if("!--"===e.substr(i+1,3))i=c5(e,"--\x3e",i+3,"StopNode is not closed.");else if("!["===e.substr(i+1,2))i=c5(e,"]]>",i,"StopNode is not closed.")-2;else{let n=c8(e,i,">");n&&((n&&n.tagName)===r&&"/"!==n.tagExp[n.tagExp.length-1]&&o++,i=n.closeIndex)}}function c7(e,r,i){if(r&&"string"==typeof e){let r=e.trim();return"true"===r||"false"!==r&&function(e,r={}){if(r=Object.assign({},cK,r),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==r.skipLike&&r.skipLike.test(i))return e;{if("0"===e)return 0;if(r.hex&&cV.test(i)){var n,o=i;if(parseInt)return parseInt(o,16);if(Number.parseInt)return Number.parseInt(o,16);if(window&&window.parseInt)return window.parseInt(o,16);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}if(-1!==i.search(/.+[eE].+/))return function(e,r,i){if(!i.eNotation)return e;let n=r.match(cJ);if(!n)return e;{let o=n[1]||"",s=-1===n[3].indexOf("e")?"E":"e",a=n[2],c=o?e[a.length+1]===s:e[a.length]===s;return a.length>1&&c?e:1===a.length&&(n[3].startsWith(`.${s}`)||n[3][0]===s)?Number(r):i.leadingZeros&&!c?Number(r=(n[1]||"")+n[3]):e}}(e,i,r);let s=cG.exec(i);if(!s)return e;{let o=s[1]||"",a=s[2],c=((n=s[3])&&-1!==n.indexOf(".")&&("."===(n=n.replace(/0+$/,""))?n="0":"."===n[0]?n="0"+n:"."===n[n.length-1]&&(n=n.substring(0,n.length-1))),n),d=o?"."===e[a.length+1]:"."===e[a.length];if(!r.leadingZeros&&(a.length>1||1===a.length&&!d))return e;{let n=Number(i),s=String(n);if(0===n)return n;if(-1!==s.search(/[eE]/))if(r.eNotation)return n;else return e;if(-1!==i.indexOf("."))if("0"===s)return n;else if(s===c)return n;else if(s===`${o}${c}`)return n;else return e;let d=a?c:i;return a?d===s||o+d===s?n:e:d===s||d===o+s?n:e}}}}(e,i)}return void 0!==e?e:""}let de=cz.getMetaDataSymbol(),dt={allowBooleanAttributes:!1,unpairedTags:[]};function dr(e,r){r=Object.assign({},dt,r);let i=[],n=!1,o=!1;"\uFEFF"===e[0]&&(e=e.substr(1));for(let s=0;s<e.length;s++)if("<"===e[s]&&"?"===e[s+1]){if(s+=2,(s=dn(e,s)).err)return s}else if("<"===e[s]){let a=s;if("!"===e[++s]){s=ds(e,s);continue}{let c=!1;"/"===e[s]&&(c=!0,s++);let d="";for(;s<e.length&&">"!==e[s]&&" "!==e[s]&&" "!==e[s]&&"\n"!==e[s]&&"\r"!==e[s];s++)d+=e[s];if("/"===(d=d.trim())[d.length-1]&&(d=d.substring(0,d.length-1),s--),!cF(d))return dd("InvalidTag",0===d.trim().length?"Invalid space after '<'.":"Tag '"+d+"' is an invalid name.",dl(e,s));let l=function(e,r){let i="",n="",o=!1;for(;r<e.length;r++){if('"'===e[r]||"'"===e[r])""===n?n=e[r]:n!==e[r]||(n="");else if(">"===e[r]&&""===n){o=!0;break}i+=e[r]}return""===n&&{value:i,index:r,tagClosed:o}}(e,s);if(!1===l)return dd("InvalidAttr","Attributes for '"+d+"' have open quote.",dl(e,s));let u=l.value;if(s=l.index,"/"===u[u.length-1]){let i=s-u.length,o=dc(u=u.substring(0,u.length-1),r);if(!0!==o)return dd(o.err.code,o.err.msg,dl(e,i+o.err.line));n=!0}else if(c)if(!l.tagClosed)return dd("InvalidTag","Closing tag '"+d+"' doesn't have proper closing.",dl(e,s));else{if(u.trim().length>0)return dd("InvalidTag","Closing tag '"+d+"' can't have attributes or invalid starting.",dl(e,a));if(0===i.length)return dd("InvalidTag","Closing tag '"+d+"' has not been opened.",dl(e,a));let r=i.pop();if(d!==r.tagName){let i=dl(e,r.tagStartPos);return dd("InvalidTag","Expected closing tag '"+r.tagName+"' (opened in line "+i.line+", col "+i.col+") instead of closing tag '"+d+"'.",dl(e,a))}0==i.length&&(o=!0)}else{let c=dc(u,r);if(!0!==c)return dd(c.err.code,c.err.msg,dl(e,s-u.length+c.err.line));if(!0===o)return dd("InvalidXml","Multiple possible root nodes found.",dl(e,s));-1!==r.unpairedTags.indexOf(d)||i.push({tagName:d,tagStartPos:a}),n=!0}for(s++;s<e.length;s++)if("<"===e[s])if("!"===e[s+1]){s=ds(e,++s);continue}else if("?"===e[s+1]){if((s=dn(e,++s)).err)return s}else break;else if("&"===e[s]){let r=function(e,r){if(";"===e[++r])return -1;if("#"===e[r]){var i=++r;let n=/\d/;for("x"===e[i]&&(i++,n=/[\da-fA-F]/);i<e.length;i++){if(";"===e[i])return i;if(!e[i].match(n))break}return -1}let n=0;for(;r<e.length;r++,n++)if(!e[r].match(/\w/)||!(n<20)){if(";"===e[r])break;return -1}return r}(e,s);if(-1==r)return dd("InvalidChar","char '&' is not expected.",dl(e,s));s=r}else if(!0===o&&!di(e[s]))return dd("InvalidXml","Extra text at the end",dl(e,s));"<"===e[s]&&s--}}else{if(di(e[s]))continue;return dd("InvalidChar","char '"+e[s]+"' is not expected.",dl(e,s))}return n?1==i.length?dd("InvalidTag","Unclosed tag '"+i[0].tagName+"'.",dl(e,i[0].tagStartPos)):!(i.length>0)||dd("InvalidXml","Invalid '"+JSON.stringify(i.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):dd("InvalidXml","Start tag expected.",1)}function di(e){return" "===e||" "===e||"\n"===e||"\r"===e}function dn(e,r){let i=r;for(;r<e.length;r++)if("?"==e[r]||" "==e[r]){let n=e.substr(i,r-i);if(r>5&&"xml"===n)return dd("InvalidXml","XML declaration allowed only at the start of the document.",dl(e,r));if("?"!=e[r]||">"!=e[r+1])continue;r++;break}return r}function ds(e,r){if(e.length>r+5&&"-"===e[r+1]&&"-"===e[r+2]){for(r+=3;r<e.length;r++)if("-"===e[r]&&"-"===e[r+1]&&">"===e[r+2]){r+=2;break}}else if(e.length>r+8&&"D"===e[r+1]&&"O"===e[r+2]&&"C"===e[r+3]&&"T"===e[r+4]&&"Y"===e[r+5]&&"P"===e[r+6]&&"E"===e[r+7]){let i=1;for(r+=8;r<e.length;r++)if("<"===e[r])i++;else if(">"===e[r]&&0==--i)break}else if(e.length>r+9&&"["===e[r+1]&&"C"===e[r+2]&&"D"===e[r+3]&&"A"===e[r+4]&&"T"===e[r+5]&&"A"===e[r+6]&&"["===e[r+7]){for(r+=8;r<e.length;r++)if("]"===e[r]&&"]"===e[r+1]&&">"===e[r+2]){r+=2;break}}return r}let da=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function dc(e,r){let i=cL(e,da),n={};for(let e=0;e<i.length;e++){if(0===i[e][1].length)return dd("InvalidAttr","Attribute '"+i[e][2]+"' has no space in starting.",du(i[e]));if(void 0!==i[e][3]&&void 0===i[e][4])return dd("InvalidAttr","Attribute '"+i[e][2]+"' is without value.",du(i[e]));if(void 0===i[e][3]&&!r.allowBooleanAttributes)return dd("InvalidAttr","boolean attribute '"+i[e][2]+"' is not allowed.",du(i[e]));let o=i[e][2];if(!cF(o))return dd("InvalidAttr","Attribute '"+o+"' is an invalid name.",du(i[e]));if(n.hasOwnProperty(o))return dd("InvalidAttr","Attribute '"+o+"' is repeated.",du(i[e]));n[o]=1}return!0}function dd(e,r,i){return{err:{code:e,msg:r,line:i.line||i,col:i.col}}}function dl(e,r){let i=e.substring(0,r).split(/\r?\n/);return{line:i.length,col:i[i.length-1].length+1}}function du(e){return e.startIndex+e[1].length}class dp{constructor(e){this.externalEntities={},this.options=Object.assign({},cD,e)}parse(e,r){if("string"==typeof e);else if(e.toString)e=e.toString();else throw Error("XML data is accepted in String or Bytes[] form.");if(r){!0===r&&(r={});let i=dr(e,r);if(!0!==i)throw Error(`${i.err.msg}:${i.err.line}:${i.err.col}`)}let i=new cX(this.options);i.addExternalEntities(this.externalEntities);let n=i.parseXml(e);return this.options.preserveOrder||void 0===n?n:function e(r,i,n){let o,s={};for(let a=0;a<r.length;a++){let c=r[a],d=function(e){let r=Object.keys(e);for(let e=0;e<r.length;e++){let i=r[e];if(":@"!==i)return i}}(c),l="";if(l=void 0===n?d:n+"."+d,d===i.textNodeName)void 0===o?o=c[d]:o+=""+c[d];else if(void 0===d)continue;else if(c[d]){let r=e(c[d],i,l),n=function(e,r){let{textNodeName:i}=r,n=Object.keys(e).length;return 0===n||1===n&&(!!e[i]||"boolean"==typeof e[i]||0===e[i])}(r,i);void 0!==c[de]&&(r[de]=c[de]),c[":@"]?function(e,r,i,n){if(r){let o=Object.keys(r),s=o.length;for(let a=0;a<s;a++){let s=o[a];n.isArray(s,i+"."+s,!0,!0)?e[s]=[r[s]]:e[s]=r[s]}}}(r,c[":@"],l,i):1!==Object.keys(r).length||void 0===r[i.textNodeName]||i.alwaysCreateTextNode?0===Object.keys(r).length&&(i.alwaysCreateTextNode?r[i.textNodeName]="":r=""):r=r[i.textNodeName],void 0!==s[d]&&s.hasOwnProperty(d)?(Array.isArray(s[d])||(s[d]=[s[d]]),s[d].push(r)):i.isArray(d,l,n)?s[d]=[r]:s[d]=r}}return"string"==typeof o?o.length>0&&(s[i.textNodeName]=o):void 0!==o&&(s[i.textNodeName]=o),s}(n,this.options)}addEntity(e,r){if(-1!==r.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===r)throw Error("An entity with value '&' is not permitted");this.externalEntities[e]=r}static getMetaDataSymbol(){return cz.getMetaDataSymbol()}}class dh{constructor(){this.isXml=e=>dh.isXml(e),this.parseXmlOrText=e=>{try{let r=this.xmlParser.parse(e);if(Array.isArray(r)&&!r.length);else if(Array.isArray(r)&&r.length)return r;return e}catch(r){return e}},this.hasMixContentByParsedXml=e=>Array.isArray(e),this.xmlParser=new dp({preserveOrder:!0,ignoreAttributes:!1,attributeNamePrefix:"",textNodeName:"#text",alwaysCreateTextNode:!0})}}dh.isTextNode=e=>"text"in e,dh.isImageNode=e=>"image"in e,dh.isVideoNode=e=>"video"in e,dh.isXml=e=>"string"==typeof e&&!0===dr(e,{allowBooleanAttributes:!0});class df extends aC{get fulltext(){return this.contents.map(e=>df.isTextContent(e)?e.getConfig().content:"").join("")}constructor(e,r){super({...e,type:"aiWorker"},r),this.opts=r,this.contents=[],this.hasReceivedEndSignal=!1,this.addContentRenderTask=e=>{if(df.isTextContent(e)){let r=e=>{this.emitter.emit("content_change",{mod:"text",content:e.char,completed:e.done})};e.emitter.on("data",r),this.queue.add(e.runTask).finally(()=>{e.dispose()})}else df.isImageContent(e)?this.queue.add(e.runTask).then(e=>{e&&this.emitter.emit("content_change",{mod:"image",content:e.src,completed:!0})}).finally(()=>{e.dispose()}):df.isVideoContent(e)&&this.queue.add(e.runTask).then(e=>{e&&this.emitter.emit("content_change",{mod:"video",content:e.src,completed:!0})}).finally(()=>{e.dispose()})},this.addAllContents=e=>{for(let r of(this.contents=e,e))this.addContentRenderTask(r)},this.createContentsFromXmlString=e=>{let r=this.customXmlParser.parseXmlOrText(e);return this.customXmlParser.hasMixContentByParsedXml(r)?r[0].root[0].content.map(e=>dh.isTextNode(e)?cx.fromString(e.text[0]["#text"],{typewriterOptions:{delay:this.opts.typeDelay,enDelay:this.opts.enTypeDelay}}):dh.isImageNode(e)?cA.fromSrc(e.image[0]["#text"]):dh.isVideoNode(e)?cM.fromSrc(e.video[0]["#text"]):null).filter(Boolean):[]},this.appendText=e=>{if(this.customXmlParser.isXml(e)){let r=this.createContentsFromXmlString(e);this.addAllContents(r)}else{let r=cx.fromString(e,{typewriterOptions:{delay:this.opts.typeDelay,enDelay:this.opts.enTypeDelay}});this.addContentRenderTask(r),this.contents.push(r)}},this.dispose=()=>{this.queue.removeAllListeners(),this.contents=[]},this.interrupt=()=>{for(let e of this.contents)e.interrupt();this.queue.clear(),this.emitter.emit("interrupt").catch(as)},this.markAsEnded=()=>{if(this.hasReceivedEndSignal=!0,0===this.queue.size&&0===this.queue.pending&&this.contents.length>0){let e={id:this.id,type:this.type,text:this.fulltext,contents:this.contents.map(e=>e.toJSON()),timestamp:Date.now()};this.emitter.emit("conversation_end",e).catch(as),this.hasReceivedEndSignal=!1}},this.bindEvents=()=>{this.queue.on("empty",()=>{if(this.emitter.emit("queue_empty").catch(as),this.hasReceivedEndSignal&&this.contents.length>0){let e={id:this.id,type:this.type,text:this.fulltext,contents:this.contents.map(e=>e.toJSON()),timestamp:Date.now()};this.emitter.emit("conversation_end",e).catch(as),this.hasReceivedEndSignal=!1}})},this.queue=new cl({concurrency:1}),this.customXmlParser=new dh,this.bindEvents()}}function dv(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function dm(e,r){return function(i,n){r(i,n,e)}}df.create=e=>new df({},e),df.isAllTextContents=e=>e.every(e=>"text"===e.mod),df.isTextContent=e=>e instanceof cx&&"text"===e.mod,df.isImageContent=e=>e instanceof cA&&"image"===e.mod,df.isVideoContent=e=>e instanceof cM&&"video"===e.mod;class dg{get last(){var e;return null!=(e=this.beans[this.beans.length-1])?e:null}get currentClientConversation(){return dg.isClientConversation(this.currentConversation)?this.currentConversation:null}get currentAIWorkerConversation(){return dg.isAIWorkerConversation(this.currentConversation)?this.currentConversation:null}static isClientConversation(e){return(null==e?void 0:e.type)==="client"}static isAIWorkerConversation(e){return(null==e?void 0:e.type)==="aiWorker"}constructor(e){var r=this;this.opts=e,this.beans=[],this.currentConversation=null,this.aiWorkerConversationFormatters=[],this.uiStateCache=new Map,this.add=e=>{this.beans.push(e)},this.addBySnapshot=function(){let e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(i.type){case"client":e=new a_(i,r.opts);break;case"aiWorker":e=new df(i,r.opts);break;default:throw Error("Unknown conversation type: ".concat(i.type))}return r.beans.push(e),e},this.setCurrentConversation=e=>{this.currentConversation=e},this.clear=()=>{this.beans=[]},this.toJSON=()=>this.beans.map(e=>e.toJSON()),this.getUIState=e=>{let r=this.uiStateCache.get(e);if(r)return{mode:r.mode,contents:r.contents.map(e=>({...e}))}},this.setUIState=(e,r)=>{this.uiStateCache.set(e,{mode:r.mode,contents:r.contents.map(e=>({...e}))})},this.clearUIState=e=>{this.uiStateCache.delete(e)},this.buildSnapshotUIState=e=>({contents:e.contents.map(e=>{var r,i;let n=e.getConfig();return"text"===e.mod?{uiId:ao(),mod:"text",content:null!=(r=n.content)?r:"",completed:!0}:"image"===e.mod||"video"===e.mod?{uiId:ao(),mod:e.mod,content:null!=(i=n.src)?i:"",completed:!0}:null}).filter(e=>!!e),mode:"snapshot"}),this.dispose=()=>{for(let e of this.beans)e.dispose();this.beans=[],this.currentConversation=null,this.aiWorkerConversationFormatters=[],this.uiStateCache.clear()},this.registerAIWorkerConversationFormatter=e=>{this.aiWorkerConversationFormatters.push(e)},this.runAIWorkerConversationFormatters=e=>{let r=e;for(let e of this.aiWorkerConversationFormatters)r=e(r);return r},this.interruptAll=()=>{for(let e of this.beans)e.interrupt()}}}dg=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),dm(0,e3(oS.IOptions)),dm(0,tt()),dv("design:type",Function),dv("design:paramtypes",["undefined"==typeof IResolvedOptions?Object:IResolvedOptions])],dg);var dy=C("../../node_modules/abort-signal-polyfill/dist/staticMethods/any.js"),db=C("../../node_modules/abort-signal-polyfill/dist/staticMethods/timeout.js"),dS=C("../../node_modules/abort-signal-polyfill/dist/staticMethods/abort.js");let dC=(e,r)=>{e in AbortSignal||Object.defineProperty(AbortSignal,e,{value:r,configurable:!0,writable:!0})};var d_=function(){return(d_=Object.assign||function(e){for(var r,i=1,n=arguments.length;i<n;i++)for(var o in r=arguments[i])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)},dw=C("../../node_modules/@baidu/weirwood-perf/esm/index.js"),dR=function(){return(dR=Object.assign||function(e){for(var r,i=1,n=arguments.length;i<n;i++)for(var o in r=arguments[i])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function dT(e){var r="function"==typeof Symbol&&Symbol.iterator,i=r&&e[r],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function dE(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(function(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,s=i.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}(arguments[r]));return e}function dj(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function dP(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function dk(e){return void 0===e}function dO(e){return"function"==typeof e}function dI(e){return"[object String]"===Object.prototype.toString.call(e)}function dx(e){return"[object Number]"===Object.prototype.toString.call(e)}function dA(e){return"[object Array]"===Object.prototype.toString.call(e)}function dM(e){return"[object Object]"===Object.prototype.toString.call(e)}function dD(e){if(!dM(e))return!1;for(var r in e)if(e.hasOwnProperty(r))return!1;return!0}var dN={};function dB(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==C.g?C.g:"undefined"!=typeof self?self:dN}var dL=dB(),dF={wrap:function(){return function(){}},report:!1,collectWindowErrors:!1,computeStackTrace:!1,remoteFetching:!1,linesOfContext:!1,extendToAsynchronousCallbacks:!1},dz=[].slice,dU=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function dH(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function dq(){return"undefined"==typeof document||null==document.location?"":document.location.href}dF.wrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){throw dF.report(e),e}}},dF.report=function(){var e,r,i,n,o=[],s=null,a=null;function c(e,r,i,n,s,a){var c=null;if(!r||dF.collectWindowErrors){for(var d in o)if(dH(o,d))try{o[d](e,r,i,n,s,a)}catch(e){c=e}if(c)throw c}}function d(r,i,n,o,s){var d=null;if(s=dP(s)?s.error:s,r=dP(r)?r.message:r,a)dF.computeStackTrace.augmentStackTraceWithInitialElement(a,i,n,r),u();else if(s&&dj(s))(d=dF.computeStackTrace(s)).mechanism="onerror",c(d,!0,s,i,n,o);else{var l,p={url:i,line:n,column:o},h=r;if("[object String]"===({}).toString.call(r)){var f=r.match(dU);f&&(l=f[1],h=f[2])}p.func=dF.computeStackTrace.guessFunctionName(p.url,p.line),p.context=dF.computeStackTrace.gatherContext(p.url,p.line),c(d={name:l,message:h,mode:"onerror",mechanism:"onerror",stack:[dR(dR({},p),{url:p.url||dq()})]},!0,null,i,n,o)}return!!e&&e.apply(this,arguments)}function l(e){var r=e&&(e.detail?e.detail.reason:e.reason)||e,i=dF.computeStackTrace(r);i.mechanism="onunhandledrejection",c(i,!0,r)}function u(){var e=a,r=s;a=null,s=null,c(e,!1,r)}function p(e){if(a)if(s===e)return;else u();var r=dF.computeStackTrace(e);throw a=r,s=e,setTimeout(function(){s===e&&u()},2e3*!!r.incomplete),e}return p.subscribe=function(e){o.push(e)},p.unsubscribe=function(s){for(var a=o.length-1;a>=0;--a)o[a]===s&&o.splice(a,1);0===o.length&&(r&&(dL.onerror=e,r=!1),n&&(dL.onunhandledrejection=i,n=!1))},p.installGlobalHandler=function(){!0!==r&&(e=dL.onerror,dL.onerror=d,r=!0)},p.installGlobalUnhandledRejectionHandler=function(){!0!==n&&(i=dL.onunhandledrejection,dL.onunhandledrejection=l,n=!0)},p}(),dF.computeStackTrace=function(){var e={};function r(r){if("string"!=typeof r)return[];if(!dH(e,r)){var i="",n="";try{n=dL.document.domain}catch(e){}var o=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(r);o&&o[2]===n&&(i=function(e){if(!dF.remoteFetching)return"";try{var r=function(){try{return new dL.XMLHttpRequest}catch(e){return new dL.ActiveXObject("Microsoft.XMLHTTP")}}();return r.open("GET",e,!1),r.send(""),r.responseText}catch(e){return""}}(r)),e[r]=i?i.split("\n"):[]}return e[r]}function i(e,i){var n,o=/function ([^(]*)\(([^)]*)\)/,s=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,a="",c=r(e);if(!c.length)return"?";for(var d=0;d<10;++d)if(!dk(a=c[i-d]+a)){if(n=s.exec(a))return n[1];else if(n=o.exec(a))return n[1]}return"?"}function n(e,i){var n=r(e);if(!n.length)return null;var o=[],s=Math.floor(dF.linesOfContext/2),a=s+dF.linesOfContext%2,c=Math.max(0,i-s-1),d=Math.min(n.length,i+a-1);i-=1;for(var l=c;l<d;++l)dk(n[l])||o.push(n[l]);return o.length>0?o:null}function o(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function s(e){return o(e).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function a(e,i){for(var n,o,s=0,a=i.length;s<a;++s)if((n=r(i[s])).length&&(n=n.join("\n"),o=e.exec(n)))return{url:i[s],line:n.substring(0,o.index).split("\n").length,column:o.index-n.lastIndexOf("\n",o.index)-1};return null}function c(e,i,n){var s,a=r(i),c=RegExp("\\b"+o(e)+"\\b");return(n-=1,a&&a.length>n&&(s=c.exec(a[n])))?s.index:null}function d(e){if(!e.stack)return null;for(var r,o,s,a,d=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,h=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=e.stack.split("\n"),m=[],g=/^(.*) is undefined$/.exec(e.message),y=0,b=f.length;y<b;++y){if(s=d.exec(f[y])){var S=s[2]&&0===s[2].indexOf("native");s[2]&&0===s[2].indexOf("eval")&&(o=h.exec(s[2]))&&(s[2]=o[1]),a={url:S?null:s[2],func:s[1]||"?",args:S?[s[2]]:[],line:s[3]?+s[3]:null,column:s[4]?+s[4]:null}}else if(s=u.exec(f[y]))a={url:s[2],func:s[1]||"?",args:[],line:+s[3],column:s[4]?+s[4]:null};else{if(!(s=l.exec(f[y])))continue;s[3]&&s[3].indexOf(" > eval")>-1&&(o=p.exec(s[3]))?s[3]=o[1]:0!==y||s[5]||dk(e.columnNumber)||(m[0].column=e.columnNumber+1),a={url:s[3],func:s[1]||"?",args:s[2]?s[2].split(","):[],line:s[4]?+s[4]:null,column:s[5]?+s[5]:null}}if(!a.func&&a.line&&(a.func=i(a.url,a.line)),dF.remoteFetching&&a.url&&"blob:"===a.url.substr(0,5)){var C=new XMLHttpRequest;if(C.open("GET",a.url,!1),C.send(""),200===C.status){var _=C.responseText||"",w=(_=_.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(w){var R=w[1];"~"===R.charAt(0)&&(R=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+R.slice(1)),a.url=R.slice(0,-4)}}}a.context=a.line?n(a.url,a.line):null,m.push(a)}return m.length?(m[0]&&m[0].line&&!m[0].column&&g&&(m[0].column=c(g[1],m[0].url,m[0].line)),{mode:"stack",name:e.name,message:e.message,stack:m}):null}function l(e,r,o,s){var a={url:r,line:o};if(a.url&&a.line){e.incomplete=!1,a.func||(a.func=i(a.url,a.line)),a.context||(a.context=n(a.url,a.line));var d=/ '([^']+)' /.exec(s);if(d&&(a.column=c(d[1],a.url,a.line)),e.stack.length>0&&e.stack[0].url===a.url){if(e.stack[0].line===a.line)return!1;else if(!e.stack[0].line&&e.stack[0].func===a.func)return e.stack[0].line=a.line,e.stack[0].context=a.context,!1}return e.stack.unshift(a),e.partial=!0,!0}return e.incomplete=!0,!1}function u(e,p){var h=null;p=null==p?0:+p;try{if(h=function(e){var r=e.stacktrace;if(r){for(var o,s=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,a=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,c=r.split("\n"),d=[],l=0;l<c.length;l+=2){var u=null;if((o=s.exec(c[l]))?u={url:o[2],line:+o[1],column:null,func:o[3],args:[]}:(o=a.exec(c[l]))&&(u={url:o[6],line:+o[1],column:+o[2],func:o[3]||o[4],args:o[5]?o[5].split(","):[]}),u){if(!u.func&&u.line&&(u.func=i(u.url,u.line)),u.line)try{u.context=n(u.url,u.line)}catch(e){}u.context||(u.context=[c[l+1]]),d.push(u)}}return d.length?{mode:"stacktrace",name:e.name,message:e.message,stack:d}:null}}(e))return h}catch(e){}try{if(h=d(e))return h}catch(e){}try{if(h=function(e){var o=e.message.split("\n");if(o.length<4)return null;var c,d=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,l=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,u=/^\s*Line (\d+) of function script\s*$/i,p=[],h=dL&&dL.document&&dL.document.getElementsByTagName("script"),f=[];for(var m in h)dH(h,m)&&!h[m].src&&f.push(h[m]);for(var g=2;g<o.length;g+=2){var y=null;if(c=d.exec(o[g]))y={url:c[2],func:c[3],args:[],line:+c[1],column:null};else if(c=l.exec(o[g])){y={url:c[3],func:c[4],args:[],line:+c[1],column:null};var b=+c[1],S=f[c[2]-1];if(S){var C=r(y.url);if(C){var _=(C=C.join("\n")).indexOf(S.innerText);_>=0&&(y.line=b+C.substring(0,_).split("\n").length)}}}else if(c=u.exec(o[g])){var w=dq().replace(/#.*$/,""),R=a(new RegExp(s(o[g+1])),[w]);y={url:w,func:"",args:[],line:R?R.line:c[1],column:null}}if(y){y.func||(y.func=i(y.url,y.line));var T=n(y.url,y.line),E=T?T[Math.floor(T.length/2)]:null;T&&E.replace(/^\s*/,"")===o[g+1].replace(/^\s*/,"")?y.context=T:y.context=[o[g+1]],p.push(y)}}return p.length?{mode:"multiline",name:e.name,message:o[0],stack:p}:null}(e))return h}catch(e){}try{if(h=function e(r,n){for(var d,p,h,f=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,m=[],g={},y=!1,b=e.caller;b&&!y;b=b.caller)if(b!==u&&b!==dF.report){if(p={url:null,func:"?",args:[],line:null,column:null},b.name?p.func=b.name:(d=f.exec(b.toString()))&&(p.func=d[1]),void 0===p.func)try{p.func=d.input.substring(0,d.input.indexOf("{"))}catch(e){}if(h=function(e){if(!dk(dL&&dL.document)){for(var r,i,n,c,d=[dq()],l=dL.document.getElementsByTagName("script"),u=""+e,p=0;p<l.length;++p){var h=l[p];h.src&&d.push(h.src)}if(n=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(u)){var f=n[1]?"\\s+"+n[1]:"",m=n[2].split(",").join("\\s*,\\s*");i=RegExp("function"+f+"\\s*\\(\\s*"+m+"\\s*\\)\\s*{\\s*"+(r=o(n[3]).replace(/;$/,";?"))+"\\s*}")}else i=new RegExp(o(u).replace(/\s+/g,"\\s+"));if(c=a(i,d))return c;if(n=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(u)){var g=n[1];if((c=a(i=RegExp("on"+g+"=[\\'\"]\\s*"+(r=s(n[2]))+"\\s*[\\'\"]","i"),d[0]))||(c=a(i=new RegExp(r),d)))return c}return null}}(b)){p.url=h.url,p.line=h.line,"?"===p.func&&(p.func=i(p.url,p.line));var S=/ '([^']+)' /.exec(r.message||r.description);S&&(p.column=c(S[1],h.url,h.line))}g[""+b]?y=!0:g[""+b]=!0,m.push(p)}n&&m.splice(0,n);var C={mode:"callers",name:r.name,message:r.message,stack:m};return l(C,r.sourceURL||r.fileName,r.line||r.lineNumber,r.message||r.description),C}(e,p+1))return h}catch(e){}return{original:e,name:e.name,message:e.message,mode:"failed"}}return u.augmentStackTraceWithInitialElement=l,u.computeStackTraceFromStackProp=d,u.guessFunctionName=i,u.gatherContext=n,u.ofCaller=function(e){e=(null==e?0:+e)+1;try{throw Error()}catch(r){return u(r,e+1)}},u.getSource=r,u}(),dF.extendToAsynchronousCallbacks=function(){var e=function(e){var r=dL[e];dL[e]=function(){var e=dz.call(arguments),i=e[0];return("function"==typeof i&&(e[0]=dF.wrap(i)),r.apply)?r.apply(this,e):r(e[0],e[1])}};e("setTimeout"),e("setInterval")},dF.remoteFetching=!1,dF.collectWindowErrors=!0,dF.linesOfContext=11,dF.report;var dW=dF.report.subscribe,dV=dF.report.unsubscribe,dG=dF.report.installGlobalHandler,dK=dF.report.installGlobalUnhandledRejectionHandler,dJ=dF.computeStackTrace;function dX(e,r){var i=(65535&e)+(65535&r);return(e>>16)+(r>>16)+(i>>16)<<16|65535&i}function d$(e,r,i,n,o,s){var a;return dX((a=dX(dX(r,e),dX(n,s)))<<o|a>>>32-o,i)}function dQ(e,r,i,n,o,s,a){return d$(r&i|~r&n,e,r,o,s,a)}function dY(e,r,i,n,o,s,a){return d$(r&n|i&~n,e,r,o,s,a)}function dZ(e,r,i,n,o,s,a){return d$(r^i^n,e,r,o,s,a)}function d0(e,r,i,n,o,s,a){return d$(i^(r|~n),e,r,o,s,a)}function d1(e,r){e[r>>5]|=128<<r%32,e[(r+64>>>9<<4)+14]=r;var i,n,o,s,a,c=0x67452301,d=-0x10325477,l=-0x67452302,u=0x10325476;for(i=0;i<e.length;i+=16)n=c,o=d,s=l,a=u,c=dQ(c,d,l,u,e[i],7,-0x28955b88),u=dQ(u,c,d,l,e[i+1],12,-0x173848aa),l=dQ(l,u,c,d,e[i+2],17,0x242070db),d=dQ(d,l,u,c,e[i+3],22,-0x3e423112),c=dQ(c,d,l,u,e[i+4],7,-0xa83f051),u=dQ(u,c,d,l,e[i+5],12,0x4787c62a),l=dQ(l,u,c,d,e[i+6],17,-0x57cfb9ed),d=dQ(d,l,u,c,e[i+7],22,-0x2b96aff),c=dQ(c,d,l,u,e[i+8],7,0x698098d8),u=dQ(u,c,d,l,e[i+9],12,-0x74bb0851),l=dQ(l,u,c,d,e[i+10],17,-42063),d=dQ(d,l,u,c,e[i+11],22,-0x76a32842),c=dQ(c,d,l,u,e[i+12],7,0x6b901122),u=dQ(u,c,d,l,e[i+13],12,-0x2678e6d),l=dQ(l,u,c,d,e[i+14],17,-0x5986bc72),d=dQ(d,l,u,c,e[i+15],22,0x49b40821),c=dY(c,d,l,u,e[i+1],5,-0x9e1da9e),u=dY(u,c,d,l,e[i+6],9,-0x3fbf4cc0),l=dY(l,u,c,d,e[i+11],14,0x265e5a51),d=dY(d,l,u,c,e[i],20,-0x16493856),c=dY(c,d,l,u,e[i+5],5,-0x29d0efa3),u=dY(u,c,d,l,e[i+10],9,0x2441453),l=dY(l,u,c,d,e[i+15],14,-0x275e197f),d=dY(d,l,u,c,e[i+4],20,-0x182c0438),c=dY(c,d,l,u,e[i+9],5,0x21e1cde6),u=dY(u,c,d,l,e[i+14],9,-0x3cc8f82a),l=dY(l,u,c,d,e[i+3],14,-0xb2af279),d=dY(d,l,u,c,e[i+8],20,0x455a14ed),c=dY(c,d,l,u,e[i+13],5,-0x561c16fb),u=dY(u,c,d,l,e[i+2],9,-0x3105c08),l=dY(l,u,c,d,e[i+7],14,0x676f02d9),d=dY(d,l,u,c,e[i+12],20,-0x72d5b376),c=dZ(c,d,l,u,e[i+5],4,-378558),u=dZ(u,c,d,l,e[i+8],11,-0x788e097f),l=dZ(l,u,c,d,e[i+11],16,0x6d9d6122),d=dZ(d,l,u,c,e[i+14],23,-0x21ac7f4),c=dZ(c,d,l,u,e[i+1],4,-0x5b4115bc),u=dZ(u,c,d,l,e[i+4],11,0x4bdecfa9),l=dZ(l,u,c,d,e[i+7],16,-0x944b4a0),d=dZ(d,l,u,c,e[i+10],23,-0x41404390),c=dZ(c,d,l,u,e[i+13],4,0x289b7ec6),u=dZ(u,c,d,l,e[i],11,-0x155ed806),l=dZ(l,u,c,d,e[i+3],16,-0x2b10cf7b),d=dZ(d,l,u,c,e[i+6],23,0x4881d05),c=dZ(c,d,l,u,e[i+9],4,-0x262b2fc7),u=dZ(u,c,d,l,e[i+12],11,-0x1924661b),l=dZ(l,u,c,d,e[i+15],16,0x1fa27cf8),d=dZ(d,l,u,c,e[i+2],23,-0x3b53a99b),c=d0(c,d,l,u,e[i],6,-0xbd6ddbc),u=d0(u,c,d,l,e[i+7],10,0x432aff97),l=d0(l,u,c,d,e[i+14],15,-0x546bdc59),d=d0(d,l,u,c,e[i+5],21,-0x36c5fc7),c=d0(c,d,l,u,e[i+12],6,0x655b59c3),u=d0(u,c,d,l,e[i+3],10,-0x70f3336e),l=d0(l,u,c,d,e[i+10],15,-1051523),d=d0(d,l,u,c,e[i+1],21,-0x7a7ba22f),c=d0(c,d,l,u,e[i+8],6,0x6fa87e4f),u=d0(u,c,d,l,e[i+15],10,-0x1d31920),l=d0(l,u,c,d,e[i+6],15,-0x5cfebcec),d=d0(d,l,u,c,e[i+13],21,0x4e0811a1),c=d0(c,d,l,u,e[i+4],6,-0x8ac817e),u=d0(u,c,d,l,e[i+11],10,-0x42c50dcb),l=d0(l,u,c,d,e[i+2],15,0x2ad7d2bb),d=d0(d,l,u,c,e[i+9],21,-0x14792c6f),c=dX(c,n),d=dX(d,o),l=dX(l,s),u=dX(u,a);return[c,d,l,u]}function d2(e){var r,i="",n=32*e.length;for(r=0;r<n;r+=8)i+=String.fromCharCode(e[r>>5]>>>r%32&255);return i}function d3(e){var r,i=[];for(r=0,i[(e.length>>2)-1]=void 0;r<i.length;r+=1)i[r]=0;var n=8*e.length;for(r=0;r<n;r+=8)i[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return i}function d4(e){var r,i,n="0123456789abcdef",o="";for(i=0;i<e.length;i+=1)o+=n.charAt((r=e.charCodeAt(i))>>>4&15)+n.charAt(15&r);return o}function d6(e){return unescape(encodeURIComponent(e))}function d5(e){var r;return d2(d1(d3(r=d6(e)),8*r.length))}function d8(e,r){return function(e,r){var i,n,o=d3(e),s=[],a=[];for(s[15]=a[15]=void 0,o.length>16&&(o=d1(o,8*e.length)),i=0;i<16;i+=1)s[i]=0x36363636^o[i],a[i]=0x5c5c5c5c^o[i];return n=d1(s.concat(d3(r)),512+8*r.length),d2(d1(a.concat(n),640))}(d6(e),d6(r))}function d9(e,r,i){if(!r)return i?d5(e):d4(d5(e));return i?d8(r,e):d4(d8(r,e))}function d7(e){return(e||"").replace(/#.*$/,"").replace(/\?.*$/,"")}function le(){if(!("fetch"in dB()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function lt(e,r){for(var i=0;i<e.length;++i)if(e[i]===r)return i;return -1}function lr(e,r,i,n){var o,s,a,c;return JSON.stringify(e,(o=r,a=[],c=[],null==(s=n)&&(s=function(e,r){return a[0]===r?"[Circular ~]":"[Circular ~."+c.slice(0,lt(a,r)).join(".")+"]"}),function(e,r){if(a.length>0){var i=lt(a,this);~i?a.splice(i+1):a.push(this),~i?c.splice(i,1/0,e):c.push(e),~lt(a,r)&&(r=s.call(this,e,r))}else a.push(r);return null==o?r instanceof Error?function(e){var r={stack:e.stack,message:e.message,name:e.name};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}(r):r:o.call(this,e,r)}),i)}function li(e,r){if(Array.isArray(e))for(var i=e.length,n=0;n<i;n++)r.call(null,n,e[n]);else for(var o in e)Reflect.has(e,o)&&r.call(null,o,e[o])}function ln(e){var r={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];r[i]=dO(n)?n():n}return r}function lo(e){return dI(e)?ls(e,40):dx(e)||"[object Boolean]"===Object.prototype.toString.call(e)||dk(e)?e+"":dM(e)?"[Object]":dA(e)?"[Array]":dO(e)?e.name?"[Function: "+e.name+"]":"[Function]":e}function ls(e,r){return 0===r||e.length<=r?e:e.substr(0,r)+"…"}function la(e){var r={protocol:"",host:"",path:"",relative:""};if("string"!=typeof e)return r;var i=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(i&&i.length){var n=i[6]||"",o=i[8]||"";return{protocol:i[2]||"",host:i[4]||"",path:i[5]||"",relative:(i[5]||"")+n+o}}return r}function lc(e){var r=e.exception,i=[];return i.push("token="+r.token),i.push("type="+r.type),i.push("mechanism="+r.mechanism),i.push("value="+r.value),i.push("url="+r.url),r.stacktrace&&r.stacktrace.forEach(function(e){i.push("filename="+e.filename),i.push("lineno="+e.lineno),i.push("colno="+e.colno)}),i.join("***")}function ld(e){return e&&Array.isArray(e)&&e.length>0}function ll(e){for(var r=[],i=e.length,n=0;n<i;n++){var o=e[n];dI(o)?r.push(o.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):o&&o.source&&r.push(o.source)}return RegExp(r.join("|"),"i")}function lu(e,r){return!!dI(r)&&e.some(function(e){if(!e)return!1;if(dI(e))return -1!==r.indexOf(e);if("[object RegExp]"===Object.prototype.toString.call(e))try{return e.test(r)}catch(r){return console.error(e+"正则书写有误"),!1}return console.error(e+"忽略匹配项类型应该是String、RegExp"),!1})}function lp(e){return(dI(e)?e:JSON.stringify(e)).slice(0,256)}function lh(e,r,i){var n,o,s=[];if(e.stack&&e.stack.length){try{for(var a=dT(e.stack),c=a.next();!c.done;c=a.next()){var d=c.value,l=function(e,r,i){var n={filename:e.url||r,lineno:e.line,colno:e.column,function:e.func||"?"};if(i&&i.length>0){var o=ll(i).test(n.filename),s=/(Weirwood|Tracekit)/.test(n.function),a=/weirwood\-sdk/.test(n.filename);n.in_app=o,(s||a)&&(n.in_app=!1)}else n.in_app=!1;return n}(d,e.url||"",r.includePaths);s.push(l)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}if(r&&r.trimHeadFrames)for(var u=0;u<r.trimHeadFrames&&u<s.length;u++)s[u].in_app=!1}return(s=s.filter(function(e){var r,i,n;return i=-1!==(r=e.filename||"").indexOf("weirwood-sdk"),n=/captureException$/.test(r),!i&&!n})).slice(0,i)}function lf(e,r,i,n){if(null!=e){var o=e[r];return e[r]=i(o),e[r].__raven__=!0,e[r].__orig__=o,o.__raven_wrapper__=e[r],n&&n.push([e,r,o]),e[r]}}function lv(e,r,i){if(void 0===e&&(e={}),dk(r)&&!dO(e))return e;if(dO(e)&&(r=e,e=void 0),!dO(r))return r;try{if(r.__raven__)return r;if(r.__raven_wrapper__)return r.__raven_wrapper__}catch(e){return r}function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var s=[],a=n.length,c=!e||e&&!1!==e.deep;for(i&&dO(i)&&i.apply(this,n);a--;)s[a]=c?lv(e,n[a]):n[a];try{return r.apply(this,s)}catch(e){throw e}}for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o]);return n.prototype=r.prototype,r.__raven_wrapper__=n,n.__raven__=!0,n.__orig__=r,n}function lm(e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=r[0];return(dO(n)&&(r[0]=lv({mechanism:{type:"instrument",data:{function:(null==e?void 0:e.name)||"<anonymous>"}}},n)),e.apply)?e.apply(this,r):e(r[0],r[1])}}function lg(e,r){return function(i){if(pQ=void 0,pY!==i){pY=i;try{n=function(e){for(var r,i=[],n=0,o=0;e&&n++<5;){var s="html"===(r=function(e){if(!e||!e.tagName)return"";var r,i,n,o,s=[e.tagName.toLowerCase()];e.id&&s.push("#"+e.id);var a=e.className?e.className.split(/\s+/):[];try{for(var c=dT(a),d=c.next();!d.done;d=c.next()){var l=d.value;s.push("."+l)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}try{for(var u=dT(["type","name","title","alt"]),p=u.next();!p.done;p=u.next()){var h=p.value,f=e.getAttribute(h);f&&s.push("["+h+"="+f+"]")}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return s.join("")}(e)),a=n>1&&o+3*i.length+r.length>=80;if(s||a)break;i.push(r),o+=r.length,e=e.parentNode}return i.reverse().join(" > ")}(i.target)}catch(e){n="<unknown>"}if(n){var n,o={category:"ui."+r,message:n,name:r};"input"===r&&"password"!==n.type&&(o.data=i.target.value||""),e.captureBehavior(o)}}}}function ly(e){return function(r){try{i=r.target}catch(e){return}var i,n=i&&i.tagName;n&&("INPUT"===n||"TEXTAREA"===n||i.isContentEditable)&&(pQ||lg(e,"input")(r),clearTimeout(pQ),pQ=setTimeout(function(){pQ=void 0},1e3))}}C("../../node_modules/@baidu/weirwood-error/esm/plugins/Plugin.js");var lb=dB(),lS=[301,302,304],lC=function(){function e(r){this.name=e.id,this.options=dR({beacon:!0,console:!0,dom:!0,fetch:!0,history:!0,weirwood:!0,xhr:!0},r)}return e.prototype.setupOnce=function(e){this.client=e;var r,i,n=Object.keys(this.options);try{for(var o=dT(n),s=o.next();!s.done;s=o.next()){var a=s.value,c="instrument"+a[0].toUpperCase()+a.slice(1);this.options[a]&&this[c]&&"function"==typeof this[c]&&this[c].call(this)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}},e.prototype.instrumentDom=function(){if("document"in dB()){var e=lb.document;e.addEventListener("click",lg.call(this,this.client,"click"),!1),e.addEventListener("keypress",ly.call(this,this.client),!1)}},e.prototype.instrumentXhr=function(){var e=this.client,r=e.options,i=r.collectAutoAPIException,n=r.isApiException;if("XMLHttpRequest"in lb){var o=XMLHttpRequest.prototype,s=e._globalKey||"";lf(o,"open",function(e){return function(r,i){return dI(i)&&-1===i.indexOf(s)&&(this.__raven_xhr={method:r,url:i,status_code:null}),e.apply(this,arguments)}},e._wrappedBuiltIns),lf(o,"abort",function(e){return function(){return this.__raven_xhr&&(this.__raven_xhr.abortedFlag=!0),e.apply(this,arguments)}},e._wrappedBuiltIns),lf(o,"send",function(r){return function(){var o=this,s=arguments;function a(){if(o.__raven_xhr&&4===o.readyState){try{o.__raven_xhr.status_code=o.status}catch(e){}var r=function(e,r){if(void 0===e&&(e=""),void 0===r&&(r=""),(""===e||"text"===e)&&dI(r)&&r.length)try{return JSON.parse(r)}catch(e){return r}return"json"===e?JSON.parse(JSON.stringify(r)):""}(o.responseType,o.response);if((e.captureBehavior({type:"http",category:"xhr",data:dR(dR({},o.__raven_xhr),{response:lp(r),params:lp(s&&s[0]?s[0]:"")})}),i)&&(!o.__raven_xhr||!o.__raven_xhr.abortedFlag)){var a=!1,c=o.status>=200&&o.status<=299,d=-1!==lS.indexOf(o.status);if(c||d||(a=!0),c&&n&&dO(n)&&(a=!!n({method:o.__raven_xhr.method,url:o.responseURL,status:o.status,responseType:o.responseType,response:r})),a){var l="";dO(o.getAllResponseHeaders)&&(l=o.getAllResponseHeaders().trim().replace(/[\r\n]+/g,"***")),e.captureAPIException({url:o.responseURL||o.__raven_xhr.url,method:o.__raven_xhr.method,params:s&&s[0]?s[0]:"",status:o.status,response:(dI(r)?r:JSON.stringify(r)).slice(0,8192),responseHeaders:l,user:"",extra:"AUTO_XHR"})}}}}for(var c=["onload","onerror","onprogress"],d=0;d<c.length;d++)!function(e,r){e in r&&dO(r[e])&&lf(r,e,function(r){return lv({mechanism:{data:{function:e,handler:r&&r.name||"<anonymous>"},handled:!0,type:"instrument"}},r)})}(c[d],o);return"onreadystatechange"in o&&dO(o.onreadystatechange)?lf(o,"onreadystatechange",function(e){return lv({mechanism:{type:"instrument",data:{function:"onreadystatechange",handler:e&&e.name||"<anonymous>"}}},e,a)}):o.onreadystatechange=a,r.apply(this,arguments)}},e._wrappedBuiltIns)}},e.prototype.instrumentFetch=function(){if(le()){var e=dB(),r=this.client,i=r.options,n=i.collectAutoAPIException,o=i.isApiException,s=r._globalKey;lf(lb,"fetch",function(i){return function(){for(var a,c=Array(arguments.length),d=0;d<c.length;++d)c[d]=arguments[d];var l=c[0],u="GET";if("string"==typeof l?a=l:"Request"in e&&l instanceof e.Request?(a=l.url,(null==l?void 0:l.method)&&(u=l.method)):a=""+l,-1!==a.indexOf(s))return i.apply(this,c);c[1]&&c[1].method&&(u=c[1].method);var p={method:u,url:a,status_code:null};return i.apply(this,c).then(function(e){p.status_code=e.status;var i,s,a="";c[1]&&c[1].body&&(a=c[1].body);var d=dO(e.clone)?e.clone():null,l={type:"http",category:"fetch",data:dR(dR({},p),{params:lp(a),response:""})};if(d?d.text().then(function(e){var i;try{i=JSON.parse(e)}catch(r){i=e}l.data.response=lp(i),r.captureBehavior(l)}):r.captureBehavior(l),!n)return e;var u=!1,h=dO(e.clone)?e.clone():null,f=lS.includes(e.status);e.ok||f||(u=!0);var m={method:p.method,url:p.url,status:e.status,response:""},g=[];try{for(var y=dT(e.headers.entries()),b=y.next();!b.done;b=y.next()){var S=b.value;g.push(S[0]+": "+S[1])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(s=y.return)&&s.call(y)}finally{if(i)throw i.error}}var C=dR(dR({},m),{params:a,responseHeaders:g.join("***"),user:"",extra:"AUTO_FETCH"});return h?h.text().then(function(i){var n;try{n=JSON.parse(i)}catch(e){n=i}e.ok&&dO(o)&&(u=!!o(dR(dR({},m),{response:n}))),u&&r.captureAPIException(dR(dR({},C),{response:i.slice(0,8192)}))}).catch(function(e){console.error(e)}):(e.ok&&dO(o)&&(u=!!o(m)),u&&r.captureAPIException(C)),e}).catch(function(e){throw r.captureBehavior({type:"http",category:"fetch",data:p,level:"error"}),e})}},r._wrappedBuiltIns)}},e.prototype.instrumentHistory=function(){var e,r,i,n,o=this.client;if(i=(r=(e=dB()).chrome)&&r.app&&r.app.runtime,n="history"in e&&!!e.history.pushState&&!!e.history.replaceState,!i&&n){var s=function(e,r){var i=la(lb.location.href),n=la(r),s=la(e);s.path||(s=i),pZ=r,i.protocol===n.protocol&&i.host===n.host&&(r=n.relative),i.protocol===s.protocol&&i.host===s.host&&(e=s.relative),o.captureBehavior({category:"navigation",data:{from:e,to:r}})},a=lb.onpopstate;lb.onpopstate=function(e){var r=lb.location.href;if(s(pZ,r),a)return a.apply(lb,e)},lf(lb.history,"pushState",c),lf(lb.history,"replaceState",c)}function c(e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=r.length>2?r[2]:void 0;return n&&s(pZ,String(n)),e.apply(this,r)}}},e.prototype.instrumentConsole=function(){},e.prototype.instrumentBeacon=function(){},e.id="behaviors",e}(),l_=dB(),lw=function(){function e(r){this.name=e.id,this.options=dR({active:!0},r)}return e.prototype.setupOnce=function(e){this.client=e,this.options.active&&lf(l_,"setTimeout",lm,this.client._wrappedBuiltIns)},e.id="trycatch",e}(),lR=dB(),lT=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(e){this.client=e,this.client.captureUserAgent(this.getUserAgent())},e.prototype.getUserAgent=function(){return"navigator"in lR&&"document"in lR?{url:lR.location.href,headers:{"User-Agent":lR.navigator.userAgent,Referrer:lR.document.referrer}}:{}},e.id="UserAgent",e}(),lE={collectWindowErrors:!0,collectUnhandledRejections:!0,collectResourceLoadErrors:!1,collectAutoAPIException:!0,sampleRate:1,maxUrlLength:250,maxMessageLength:0,allowDuplicates:!1,stackTraceLimit:50,behaviorLimit:10,plugins:[],ignoreErrors:[],ignoreKeys:[],whitelistUrls:[],apiWhitelistUrls:[],resourceWhitelistUrls:[],ignoreUrls:[],ignoreJsUrls:[],ignoreApiUrls:[],ignoreApiStatus:[],ignoreResourceUrls:[],maxMessagePerMinute:10,endpoint:"https://fclog.baidu.com/log/weirwood?type=error"},lj="https://dmpstatic.cdn.bcebos.com/weirwood",lP=function(){function e(e){this.options=lE,this._globalContext={env:{},user:{},session_id:""},this._globalKey="fclog.baidu.com/log",this._currentExceptionContext={},this._currentExceptionStartTime=Date.now(),this._behaviors=[],this._lastData=null,this._lastAPIData=null,this._messagesSendLastMinute=0,this._messagesSendEmptyStartTime=Date.now(),this._installed=!1,this._globalErrorHandler=null,this._fetchDefaults={method:"POST",credentials:"include",referrerPolicy:!function(){if(!le())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(e){return!1}}()?"":"origin"},this._wrappedBuiltIns=[],this._requestInfo=null,e&&this.config(e)}return e.prototype.init=function(e){return this.config(e)},e.prototype.config=function(e){this.options=dR(dR({},this.options),e),this.options.sendWindow=this.options.sendWindow||dB(),this._globalContext.session_id=this.options.uuid4();var r=this.options,i=r.token,n=r.buildid;if(!i||!n)throw Error("error: token and buildid must be provided");return this.setFilters(),this.install(),this},e.prototype.install=function(){var e,r=this;return this._installed?(console.error("error: Weirwood Error SDK has been installed and configured"),!1):(this.options.collectWindowErrors&&dG(),this.options.maxMessagePerMinute>=60&&(this.options.maxMessagePerMinute=60),this.options.collectUnhandledRejections&&dK(),this._globalErrorHandler=this._getErrorHandler().bind(this),dW(this._globalErrorHandler),this.options.collectResourceLoadErrors&&(e=function(e){if(window.performance&&window.performance.getEntriesByName){var i,n=window.performance.getEntriesByName(e.asset);n.length>0&&(i=n[0],["name","serverTiming"].forEach(function(e){delete i[e]}))}var o={mechanism:e.type,name:"ResourceError",message:e.asset,stack:[],mode:"onerror",timing:i,page:e.page,element:e.element,elementPath:e.path.slice(0,255)};r._handleStackInfo(o,{trimHeadFrames:0,mechanism:o.mechanism||"generic",includePaths:r.options.includePaths})},window.addEventListener("error",function(r){if(r&&r.target&&r.target!==window){var i,n=r.target,o=null!=(i=null==n?void 0:n.tagName)?i:"unknown tagname";if(-1!==["SCRIPT","LINK","IMG"].indexOf(o)){var s=n.src||n.href,a=window.location.href,c=function(e){for(var r=e.path||[],i="",n=0;n<r.length;n++){var o=r[n];if(o===window){i+="Window";continue}i+=o.nodeName,i+=o.id?"#"+o.id:"",i+=o.className?"."+o.className.split(" ").join("."):"",n<r.length&&(i+=" > ")}return i}(r),d={type:o,asset:d7(s)===d7(a)?"空资源":s,integrity:n.integrity,element:n&&n.outerHTML&&n.outerHTML.replace(/"/g,""),path:c.replace(/"/g,""),page:window.location.href.slice(0,255)};e&&e(d)}}},!0)),this._installed=!0,this.installPlugins(),this)},e.prototype.installPlugins=function(){var e,r;this.options.plugins=dE([new lC(this.options.behaviorOptions),new lw(this.options.tryCatchOptions),new lT],this.options.plugins||[]);try{for(var i=dT(this.options.plugins),n=i.next();!n.done;n=i.next())n.value.setupOnce(this)}catch(r){e={error:r}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},e.prototype.setFilters=function(){var e=this.options;e.ignoreErrors&&(e.ignoreErrors=dE([/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,'{"isTrusted":true}','{"isTrusted":false}',"Network Error","ResizeObserver loop"],e.ignoreErrors||[])),e.ignoreJsUrls=dE(["chrome-extension","safari-extension","moz-extension",lj],e.ignoreJsUrls||[])},e.prototype._getErrorHandler=function(){var e=this;return function(r,i,n,o,s,a){if(n&&(n.stack||n.stacktrace)&&(r.originalStack=((n.stack||n.stacktrace)+"").slice(0,1e4)),r.stack&&!r.stack.length&&o&&(r.stack[0]={url:o,line:s,column:a}),!r.name&&!r.message&&"onunhandledrejection"===r.mechanism){var c=dB();r.name="unhandledrejection",r.url=r.url||c.location.href,r.message=n}e._handleStackInfo(r,{trimHeadFrames:0,mechanism:r.mechanism||"generic",includePaths:e.options.includePaths})}},e.prototype._handleStackInfo=function(e,r){var i=lh(e,r,this.options.stackTraceLimit);this._processException(e,i,r)},e.prototype._processException=function(e,r,i){var n=this.options,o=n.ignoreErrors,s=void 0===o?[]:o,a=n.ignoreKeys,c=void 0===a?[]:a,d=n.whitelistUrls,l=void 0===d?[]:d,u=n.resourceWhitelistUrls,p=void 0===u?[]:u,h=n.ignoreUrls,f=void 0===h?[]:h,m=n.ignoreJsUrls,g=void 0===m?[]:m,y=n.ignoreResourceUrls,b=void 0===y?[]:y,S=e.name,C=e.message,_=e.url,w=void 0===_?"":_,R=e.page,T=void 0===R?window.location.href:R,E=e.lineno,j=e.originalStack;if(!(s.length&&lu(s,C)||f.length&&lu(f,T))){var P=r&&r.length&&r[0].filename||w;if("ResourceError"===S){if(b.length&&lu(b,C)||p.length&&!lu(p,C))return}else if(c.length&&lu(c,S)||g.length&&lu(g,P)||l.length&&!lu(l,P))return;if(r&&r.length>0){var k=r[0].filename||"",O=-1!==k.indexOf("@baidu/weirwood-error"),I=-1!==k.indexOf(lj);if(O||I)return}if(-1===P.indexOf(lj)){var x,A=(x=void 0===E?0:E,r&&r.length?r.reverse():w?[{filename:w,lineno:x||0,in_app:!0}]:[]),M=dR(dR({},i),{exception:{type:S,value:C,originalStack:void 0===j?"":j,stacktrace:A,url:"ResourceError"===S?C:P,page:e.page,element:e.element,timing:e.timing,elementPath:e.elementPath}}),D=M.exception;null==D.type&&""===D.value&&(D.value="Unrecoverable error caught"),!M.exception.mechanism&&M.mechanism&&(M.exception.mechanism=M.mechanism,delete M.mechanism),this._send(M)}}},e.prototype.mergeGlobalContext=function(e){var r,i,n,o=dB();e.env=dR(dR(dR({},this._globalContext.env),e.env),{network:null==(n=o.navigator.connection)?void 0:n.effectiveType,windowHeight:(o.document.documentElement||o.document.body).clientHeight,windowWidth:(o.document.documentElement||o.document.body).clientWidth,documentTitle:o.document.title});try{for(var s=dT(Object.keys(this._currentExceptionContext)),a=s.next();!a.done;a=s.next()){var c=a.value;e.env[c]=this._currentExceptionContext[c]}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}e.env["session:duration"]=Date.now()-this._currentExceptionStartTime,this._globalContext.user&&(e.user=this._globalContext.user),this._globalContext.session_id&&(e.session_id=this._globalContext.session_id)},e.prototype._send=function(e){var r={request:this._requestInfo};if(dk(e.trimHeadFrames)||delete e.trimHeadFrames,e=dR(dR({},r),e),this.mergeGlobalContext(e),this._behaviors&&this._behaviors.length>0){var i=[].slice.call(this._behaviors,0);this.options.behaviorDataCallback&&(i=this.options.behaviorDataCallback(i)),e.behaviors=i}var n=this.options;if(n.token&&(e.token=n.token),n.buildid&&(e.buildid=n.buildid),Object.keys(e=this._sanitizeData(e)).forEach(function(r){(null==e[r]||""===e[r]||dD(e[r]))&&delete e[r]}),dO(n.dataCallback)&&(e=n.dataCallback(e)),!(!e||dD(e))){var o=Date.now()-this._messagesSendEmptyStartTime,s=this._messagesSendLastMinute>this.options.maxMessagePerMinute;if(o<6e4){if(s)return}else this._messagesSendEmptyStartTime=Date.now(),this._messagesSendLastMinute=1;"number"==typeof n.sampleRate?Math.random()<n.sampleRate&&(this._sendProcessedPayload(e),this._messagesSendLastMinute+=1):(this._sendProcessedPayload(e),this._messagesSendLastMinute+=1)}},e.prototype.isSetup=function(){return this._installed},e.prototype._trimPacket=function(e){var r,i,n=this.options.maxUrlLength||0,o=this.options.maxMessageLength||0;if(e.exception&&(e.exception.value=ls(e.exception.value,o)),e.request){var s=dB();e.request.url=ls(s.location.href,n);var a=e.request.headers.Referrer;e.request.headers.Referrer=ls(a,n)}if(e.behaviors&&e.behaviors.length){var c=["url","to","from"];try{for(var d=dT(e.behaviors),l=d.next();!l.done;l=d.next()){var u=l.value;!function(e){var r=e.data||{},i=function(e){r.hasOwnProperty(e)&&c.forEach(function(i){e===i&&(r[e]=ls(r[e],n))})};for(var o in r)i(o)}(u)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}return e},e.prototype._sendProcessedPayload=function(e,r){var i,n=this,o=this.options;if(e=this._trimPacket(e),!this.options.allowDuplicates&&this._isRepeatData(e))return void console.warn("Weirwood error SDK dropped repeat event:",e);var s=o.issueGroupby;s&&dO(s)&&(i=s(e.exception)),i&&dI(i)?(e.fingerprint=i.substr(0,255),e.event_id=d9(e.fingerprint)):e.event_id=d9(lc(e)),e.data_id=d9(function(e){var r=lc(e),i=[],n=e.request,o=e.env,s=e.behaviors;if(!n)return JSON.stringify(e);var a=n.headers,c=n.url;return i.push("Referrer="+a.Referrer),i.push("ua="+a["User-Agent"]),i.push("url="+c),li(o,function(e,r){"session:duration"!==e&&i.push(e+"="+r)}),li(s,function(e){i.push("behavior.category="+e.category),i.push("behavior.name="+e.name),i.push("behavior.message="+e.message)}),r+i.join("***")}(e)),e.version=this.options.version||"",e.sdkTimestamp=Date.now(),this._lastData=e;var a={weirwood_version:this.options.version||""};(o.transport||this._makeRequest).call(this,{url:this.options.endpoint,auth:a,data:e,options:o,onSuccess:function(){n._resetBackoff(),r&&r()},onError:function(e){e.request&&n._setBackoffState(e.request),e=e||Error("Raven send failed (no additional details provided)"),r&&r(e)}})},e.prototype._makeRequest=function(e){var r,i,n=this,o=e.url,s=null,a={};e.options.headers&&(s=ln(e.options.headers)),e.options.fetchParameters&&(a=ln(e.options.fetchParameters));var c=this.options.sendWindow;if(le()){a.body=lr(e.data);var d=dR(dR({},this._fetchDefaults),a);if(s){var l=new Headers;try{for(var u=dT(Object.keys(s)),p=u.next();!p.done;p=u.next()){var h=p.value;l.append(h,s[h])}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}l.append("Content-Type","text/plain"),d.headers=l}return c.fetch(o,d).then(function(r){if(r.ok)e.onSuccess&&e.onSuccess(),n._resetBackoff();else{var i=Error("Weirwood error SDK error code: "+r.status);i.request=r,e.onError&&e.onError(i)}}).catch(function(){e.onError&&e.onError(Error("Weirwood error SDK error code: network unavailable")),n._resetBackoff()})}var f=c.XMLHttpRequest&&new c.XMLHttpRequest;!f||("withCredentials"in f||"undefined"!=typeof XDomainRequest)&&("withCredentials"in f?f.onreadystatechange=function(){if(4!==f.readyState)return void n._resetBackoff();if(200===f.status)e.onSuccess&&e.onSuccess();else if(e.onError){n._resetBackoff();var r=Error("Weirwood error SDK error code: "+f.status);r.request=f,e.onError(r)}}:(f=new XDomainRequest,o=o.replace(/^https?:/,""),e.onSuccess&&(f.onload=e.onSuccess),e.onError&&(f.onerror=function(){var r=Error("Weirwood error SDK error code: XDomainRequest");r.request=f,e.onError(r)})),f.open("POST",o),s&&li(s,function(e,r){f.setRequestHeader(e,r)}),f.send(lr(e.data)))},e.prototype._sanitizeData=function(e){var r=this.options.sanitizeKeys||[];if(r.length){if(!Array.isArray(r)||Array.isArray(r)&&0===r.length)return e;var i,n=ll(r);try{i=JSON.parse(lr(e))}catch(r){return e}return function e(r){return Array.isArray(r)?r.map(function(r){return e(r)}):dM(r)?Object.keys(r).reduce(function(i,o){return n.test(o)?i[o]="********":i[o]=e(r[o]),i},{}):r}(i)}return e},e.prototype.captureUserAgent=function(e){this._requestInfo=e},e.prototype.captureException=function(e,r){if(r||(r={trimHeadFrames:0,includePaths:[],mechanism:"generic",message:""}),dj(e));else if(dP(e))e=e.error;else if(dM(e))e=Error((r=this._getCaptureExceptionOptionsFromPlainObject(r,e)).message);else{if(i=e,"[object DOMException]"!==Object.prototype.toString.call(i))return this.captureMessage(e,dR(dR({},r),{stacktrace:!0,trimHeadFrames:r.trimHeadFrames+1}));var i,n=e.name||"DOMException",o=e.message?n+": "+e.message:n;return this.captureMessage(o,r)}try{r=dR({trimHeadFrames:0,mechanism:"generic",includePaths:this.options.includePaths||[]},r);var s=dJ(e);this._handleStackInfo(s,r)}catch(r){if(e!==r)throw r}return this},e.prototype._isRepeatData=function(e){var r=this._lastData,i=e.exception,n=r?r.exception:{};return i.mechanism===n.mechanism&&i.type===n.type&&i.value===n.value&&i.url===n.url&&(0===i.stacktrace.length&&0===n.stacktrace.length||function(e,r){if(ld(e)&&ld(r)){var i,n,o=e.length;if(o!==r.length)return!1;for(var s=0;s<o;s++){if(i=e[s],n=r[s],i.filename!==n.filename||i.lineno!==n.lineno||i.colno!==n.colno||i.function!==n.function)return!1}return!0}return!1}(i.stacktrace,n.stacktrace))},e.prototype._resetBackoff=function(){this._currentExceptionStartTime=Date.now(),this._currentExceptionContext={}},e.prototype._setBackoffState=function(e){console.log(e)},e.prototype.captureMessage=function(e,r){void 0===r&&(r={});var i,n,o=this.options,s=o.ignoreErrors||[],a=o.ignoreKeys||[],c=o.whitelistUrls||[],d=o.ignoreUrls||[],l=o.ignoreJsUrls||[];if(!(s.length&&lu(s,e))){try{throw Error(e)}catch(e){n=e}var u=dJ(n),p=Array.isArray(u.stack)&&u.stack[1];(null==(i=null==p?void 0:p.func)?void 0:i.indexOf("captureException"))!==-1&&(p=u.stack[2]);var h=p&&p.url||"";if(!(d.length&&lu(d,window.location.href)||a.length&&lu(a,n.name)||l.length&&lu(l,h))&&(!c.length||lu(c,h))){r=dR(dR({},r),{trimHeadFrames:0,includePaths:o.includePaths}),r.trimHeadFrames+=1;var f=lh(u,r),m={exception:{mechanism:"manual",type:n.name,value:n.message,stacktrace:f.slice(1).reverse(),url:h}};return this._send(m),this}}},e.prototype.captureAPIException=function(e){var r,i=this,n=dB(),o=this.options,s=o.ignoreUrls,a=void 0===s?[]:s,c=o.ignoreApiUrls,d=void 0===c?[]:c,l=o.ignoreApiStatus,u=void 0===l?[]:l,p=o.buildid,h=o.token,f=o.version,m=o.apiWhitelistUrls;if(!(e.url&&e.method&&!dk(e.status)))return void console.error("API异常参数至少需要包含 method、url、status 参数。");if(!(a.length&&lu(a,n.location.href)||d.length&&lu(d,e.url))&&(!m.length||lu(m,e.url))&&(!u.length||-1===u.indexOf(Number(e.status)))){var g=dR(dR({},e),{type:"APIError"}),y={request:{headers:{"User-Agent":n.navigator.userAgent},url:n.location.href},exception:g,buildid:p,token:h,version:f||""},b=this.options;if(dO(b.dataCallback)&&(y=b.dataCallback(y)),!(!y||dD(y))){this.mergeGlobalContext(y);var S=this.options.issueGroupby;if((S&&dO(S)&&(r=S(y.exception)),r&&dI(r))?(y.fingerprint=r.substr(0,255),y.event_id=d9(y.fingerprint)):y.event_id=d9(e.method+"***"+function(e){if(!dI(e))return"";var r=e.split("?");return r[1]?(r[1]=r[1].replace(/\d+/g,"*").replace(/[\u4e00-\u9fa5]+/gi,"*"),r.join("?")):e}(e.url)),y.data_id=d9(lr(y)),this._lastAPIData!==y.data_id){this._lastAPIData=y.data_id;var C=function(){var e;((null==(e=i.options.globalOptions)?void 0:e.transport)||i._makeRequest).call(i,{url:i.options.endpoint,data:y,options:{},onSuccess:function(){},onError:function(){}})};"number"==typeof b.sampleRate?Math.random()<b.sampleRate&&C():C()}}}},e.prototype.captureEvent=function(){},e.prototype.afterLoad=function(){var e=dB().RavenConfig;e&&this.init(e)},e.prototype._getCaptureExceptionOptionsFromPlainObject=function(e,r){var i=Object.keys(r).sort(),n=dR(dR({},e),{message:"Non-Error exception captured with keys: "+function(e,r){if(void 0===r&&(r=40),dx(e)||dI(e))return e.toString();if(!dA(e))return"";if(0===(e=e.filter(function(e){return dI(e)})).length)return"[object has no keys]";if(r=dx(r)?r:40,e[0].length>=r)return e[0];for(var i=e.length;i>0;i--){var n=e.slice(0,i).join(", ");if(!(n.length>r)){if(i===e.length)return n;return n+"…"}}return""}(i),fingerprint:[d9(i.join(""))],env:e&&e.env||{}});return n.env.__serialized__=function e(r,i,n){if(void 0===i&&(i=3),void 0===n&&(n=51200),!dM(r))return r+"";var o=function e(r,i){return 0===i?lo(r):dM(r)?Object.keys(r).reduce(function(n,o){return n[o]=e(r[o],i-1),n},{}):Array.isArray(r)?r.map(function(r){return e(r,i-1)}):lo(r)}(r,i);return~-encodeURI(JSON.stringify(lr(o))).split(/%..|./).length>n?e(r,i-1):o}(r),n},e.prototype.captureBehavior=function(e){var r=dR(dR({},e),{timestamp:Date.now()/1e3});if(dO(this.options.breadcrumbCallback)){var i=this.options.breadcrumbCallback(r);if("object"!=typeof i||null===i||dD(i)){if(!1===i)return this}else r=i}return this._behaviors.push(r),this._behaviors.length>(this.options.behaviorLimit||10)&&this._behaviors.shift(),this},e.prototype.setContext=function(e,r){for(var i in void 0===r&&(r={persist:!0}),e)Reflect.has(e,i)&&(r.persist?this._globalContext.env[i]=e[i]:this._currentExceptionContext[i]=e[i])},e.prototype.clearContext=function(){this._globalContext.env={},this._currentExceptionContext={}},e.prototype._restoreBuiltIns=function(){for(var e;this._wrappedBuiltIns.length;){var r=(e=this._wrappedBuiltIns.shift())[0],i=e[1],n=e[2];r[i]=n}},e.prototype.noConflict=function(){},e.prototype.uninstall=function(){this.dispose()},e.prototype.dispose=function(){dV(this._globalErrorHandler),this._restoreBuiltIns(),this._globalErrorHandler=null,this._installed=!1},e}(),lk={};function lO(){var e=window.crypto||window.msCrypto;if(void 0===e||!e.getRandomValues)return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"===e?r:3&r|8).toString(16)});var r=new Uint16Array(8);e.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(e){for(var r=e.toString(16);r.length<4;)r="0"+r;return r};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}var lI=function(){function e(e){this.version="1.3.15",this.lastRouteTime=0,e&&this.init(e)}return e.prototype.init=function(e){var r,i,n,o,s=this.getSendWindow();if(!e.perf||e.perf&&!e.perf.disable){var a=d_(d_(d_({},e.perf),e.common),{version:this.version,sendWindow:s});this.perf=new dw.PerfClient(a)}if(!e.error||e.error&&!e.error.disable){var c=d_(d_(d_({},e.error),e.common),{version:this.version,sendWindow:s,uuid4:lO});this.error=new lP(c)}this.routeChange(window.document.URL),r=this.routeChange.bind(this),"function"==typeof(i=window.history).pushState&&(n=i.pushState,i.pushState=function(e,i,o){return r(o),n.apply(this,arguments)}),"function"==typeof i.replaceState&&(o=i.replaceState,i.replaceState=function(e,i,n){return n!==window.document.URL&&r(n),o.apply(this,arguments)}),window.addEventListener("hashchange",function(e){r((e||{}).newURL)}),window.addEventListener("popstate",function(e){r(window.document.URL)})},e.prototype.routeChange=function(e){var r=new Date().getTime();if(r-this.lastRouteTime>100){this.lastRouteTime=r;var i=lO()+"-"+r;this.error&&this.error.setContext({pageId:i})}},e.prototype.getSendWindow=function(){var e="undefined"!=typeof window?window:void 0!==C.g?C.g:"undefined"!=typeof self?self:lk;if(["fetch","ajax","sendBeacon"].some(function(e){var r;return!((r=window[e])&&r.toString&&!r.hasOwnProperty("toString")&&/\[native code\]/.test(String(r)))})&&document.body){var r=document.createElement("iframe");r.style.setProperty("display","none","important"),document.body.appendChild(r),e=r?r.contentWindow:e}return e},e.prototype.afterLoad=function(){},e}(),lx=((pL={}).NO_API_SUPPORT="NO_API_SUPPORT",pL.INSECURE_CONTEXT="INSECURE_CONTEXT",pL.NO_DEVICE_FOUND="NO_DEVICE_FOUND",pL.PERMISSION_DENIED="PERMISSION_DENIED",pL.PERMISSION_DISMISSED="PERMISSION_DISMISSED",pL.DEVICE_IN_USE="DEVICE_IN_USE",pL.TIMEOUT="TIMEOUT",pL.UNKNOWN_ERROR="UNKNOWN_ERROR",pL);class lA{cleanup(){this.mediaStream&&(this.mediaStream.getTracks().forEach(e=>{e.stop()}),this.mediaStream=null)}async checkAudioDevice(){try{return await this.withTimeout(this.performCheck(),this.options.timeout)}catch(e){if(e instanceof Error&&"TIMEOUT"===e.message)return this.createErrorResult("TIMEOUT","设备检测超时");return this.createErrorResult("UNKNOWN_ERROR",e instanceof Error?e.message:"未知错误")}finally{this.options.autoCleanup&&this.cleanup()}}async performCheck(){let e=this.checkAPISupport();if(!e.available)return e;let r=await this.checkDeviceEnumeration();if(!r.available)return r;let i=await this.checkPermissionState(),n=await this.checkMediaStream();return n.available?{available:!0,passedLevel:4,devices:r.devices,permissionState:i.permissionState,message:"音频设备可用"}:n}checkAPISupport(){return navigator.mediaDevices?navigator.mediaDevices.getUserMedia?"undefined"==typeof window||window.isSecureContext?{available:!0,passedLevel:1}:this.createErrorResult("INSECURE_CONTEXT","需要 HTTPS 环境才能访问麦克风 (localhost 除外)"):this.createErrorResult("NO_API_SUPPORT","浏览器不支持 getUserMedia API"):this.createErrorResult("NO_API_SUPPORT","浏览器不支持 navigator.mediaDevices API")}async checkDeviceEnumeration(){try{let e=(await navigator.mediaDevices.enumerateDevices()).filter(e=>"audioinput"===e.kind);if(0===e.length)return this.createErrorResult("NO_DEVICE_FOUND","系统中未找到音频输入设备");let r=e.some(e=>""!==e.deviceId);return{available:!0,passedLevel:2,devices:e,message:r?"找到 ".concat(e.length," 个音频输入设备"):"找到设备但需要权限才能获取详细信息"}}catch(e){return this.createErrorResult("UNKNOWN_ERROR","设备枚举失败: ".concat(e instanceof Error?e.message:"未知错误"))}}async checkPermissionState(){try{if(!navigator.permissions||!navigator.permissions.query)return{available:!0,passedLevel:3,message:"浏览器不支持 Permissions API,跳过权限检查"};let e=await navigator.permissions.query({name:"microphone"});if("denied"===e.state)return this.createErrorResult("PERMISSION_DENIED","麦克风权限已被拒绝,请在浏览器设置中开启");return{available:!0,passedLevel:3,permissionState:e.state,message:"权限状态: ".concat(e.state)}}catch(e){return{available:!0,passedLevel:3,message:"Permissions API 检查失败,继续后续检测"}}}async checkMediaStream(){try{this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:!0});let e=this.mediaStream.getAudioTracks();if(0===e.length)return this.createErrorResult("NO_DEVICE_FOUND","未能获取音频轨道");let r=e[0];if("live"!==r.readyState)return this.createErrorResult("DEVICE_IN_USE","音频轨道状态异常: ".concat(r.readyState));if(!r.enabled)return this.createErrorResult("DEVICE_IN_USE","音频轨道已被禁用");if(r.muted)return this.createErrorResult("DEVICE_IN_USE","音频轨道处于静音状态");return{available:!0,passedLevel:4,message:"成功获取音频流: ".concat(r.label)}}catch(e){if(e instanceof Error){if("NotAllowedError"===e.name||"PermissionDeniedError"===e.name)return this.createErrorResult("PERMISSION_DENIED","用户拒绝了麦克风权限请求");if("NotFoundError"===e.name||"DevicesNotFoundError"===e.name)return this.createErrorResult("NO_DEVICE_FOUND","未找到可用的音频输入设备");if("NotReadableError"===e.name||"TrackStartError"===e.name)return this.createErrorResult("DEVICE_IN_USE","设备正被其他程序占用或无法访问");if("AbortError"===e.name)return this.createErrorResult("PERMISSION_DISMISSED","权限请求被中止或超时")}return this.createErrorResult("UNKNOWN_ERROR","获取音频流失败: ".concat(e instanceof Error?e.message:"未知错误"))}}createErrorResult(e,r){return{available:!1,error:e,message:r}}withTimeout(e,r){return Promise.race([e,new Promise((e,i)=>{setTimeout(()=>i(Error("TIMEOUT")),r)})])}constructor(e={}){var r,i;this.mediaStream=null,this.options={timeout:null!=(r=e.timeout)?r:3e4,autoCleanup:null==(i=e.autoCleanup)||i}}}async function lM(e){return new lA(e).checkAudioDevice()}let lD=e=>{let r={NO_API_SUPPORT:"您的浏览器不支持语音功能,请使用最新版 Chrome、Firefox 或 Edge 浏览器。",INSECURE_CONTEXT:"出于安全考虑,语音功能仅在 HTTPS 网站下可用。",NO_DEVICE_FOUND:"未检测到麦克风设备,请连接麦克风后重试。",PERMISSION_DENIED:"您已拒绝麦克风权限,请在浏览器设置中允许访问麦克风。",PERMISSION_DISMISSED:"麦克风权限请求已关闭,请刷新页面重新授权。",DEVICE_IN_USE:"麦克风正被其他程序占用,请关闭其他使用麦克风的应用后重试。",TIMEOUT:"设备检测超时,请检查网络连接或刷新页面重试。",UNKNOWN_ERROR:"发生未知错误,请刷新页面重试或联系技术支持。"};return r[e]||r.UNKNOWN_ERROR};class lN{}function lB(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}lN.cachedResult=null,lN.check=async e=>(lN.cachedResult||(lN.cachedResult=await lN.performCheck(e)),lN.cachedResult),lN.reset=()=>{lN.cachedResult=null},lN.checkSync=e=>e.audioWorklet&&"function"==typeof e.audioWorklet.addModule&&"function"==typeof AudioWorkletNode,lN.performCheck=async e=>{if(!e.audioWorklet)return{supported:!1,reason:"no-audio-worklet"};if("function"!=typeof e.audioWorklet.addModule)return{supported:!1,reason:"no-add-module"};if("function"!=typeof AudioWorkletNode)return{supported:!1,reason:"no-constructor"};try{let r="\n class TestProcessor extends AudioWorkletProcessor {\n process() {\n return true;\n }\n }\n registerProcessor('test-processor-".concat(Date.now(),"', TestProcessor);\n "),i=new Blob([r],{type:"application/javascript"}),n=URL.createObjectURL(i);return await e.audioWorklet.addModule(n),URL.revokeObjectURL(n),{supported:!0}}catch(e){return{supported:!1,reason:"test-load-failed"}}},C("../../node_modules/core-js/modules/es.typed-array.uint8-array.js"),C("../../node_modules/core-js/modules/es.typed-array.fill.js"),C("../../node_modules/core-js/modules/es.typed-array.set.js"),C("../../node_modules/core-js/modules/es.typed-array.sort.js");class lL{async setupAudioGraph(){let e=await lN.check(this.context);e.supported?await this.setupWithAudioWorklet():(this.options.debug&&console.warn("[EnergyGate] AudioWorklet not supported, reason:",e.reason,"Falling back to ScriptProcessorNode"),this.setupWithScriptProcessor()),this.gate.connect(this.destination),this.gate.gain.value=1}async setupWithAudioWorklet(){try{let e=this.getEnergyGateWorkletCode(),r=new Blob([e],{type:"application/javascript"}),i=URL.createObjectURL(r);await this.context.audioWorklet.addModule(i),URL.revokeObjectURL(i),this.processor=new AudioWorkletNode(this.context,"energy-gate-processor",{processorOptions:{idleThreshold:this.options.idleThreshold,energyMultiplier:this.options.suppressionEnergyMultiplier,smoothingFactor:this.options.smoothingFactor,suppressionActivationDelay:this.options.suppressionActivationDelay,suppressionRecoveryDelay:this.options.suppressionRecoveryDelay,maxHistoryLength:this.audioWorkletMaxHistoryLength,statsIntervalFrames:this.audioWorkletMaxHistoryLength,debug:this.options.debug}}),this.processor.port.onmessage=e=>{let{type:r,payload:i}=e.data;"stats"===r&&(this.currentEnergy=i.microphoneEnergy,this.smoothedEnergy=i.microphoneEnergy,this.effectiveSuppressionState=!!i.isSuppressionEnabled,this.workletPassRate="number"==typeof i.passRate?i.passRate:this.workletPassRate,this.workletIsGateOpen=!!i.isGateOpen,this.options.debug&&console.log("[EnergyGate] Worklet stats:",i)),"log"===r&&this.options.debug&&console.log("[EnergyGate] Worklet log:",i)},this.processor.port.postMessage({type:"setEnergyMultiplier",payload:{value:this.options.suppressionEnergyMultiplier}}),this.processor.port.postMessage({type:"setSuppressionEnabled",payload:{enabled:this.isSuppressionEnabled}}),this.input.connect(this.processor),this.processor.connect(this.gate),this.processorType="audioworklet",this.options.debug&&console.log("[EnergyGate] Using AudioWorklet implementation")}catch(e){console.error("[EnergyGate] AudioWorklet setup failed:",e),this.setupWithScriptProcessor()}}setupWithScriptProcessor(){this.processor=this.context.createScriptProcessor(2048,1,1),this.processor.onaudioprocess=this.processAudioScriptProcessor,this.input.connect(this.processor),this.processor.connect(this.gate),this.processorType="scriptprocessor",this.options.debug&&console.log("[EnergyGate] Using ScriptProcessorNode fallback")}getEnergyGateWorkletCode(){return"\n/**\n * Energy-based Gate AudioWorklet Processor\n * 在独立的音频线程中进行能量检测和门控\n */\nclass EnergyGateProcessor extends AudioWorkletProcessor {\n constructor(options) {\n super();\n\n const params = options.processorOptions || {};\n\n this.idleThreshold = params.idleThreshold ?? -45;\n this.energyMultiplier = params.energyMultiplier ?? 3.0;\n this.smoothingFactor = params.smoothingFactor ?? 0.7;\n this.suppressionActivationDelay = params.suppressionActivationDelay ?? 100;\n this.suppressionRecoveryDelay = params.suppressionRecoveryDelay ?? 500;\n const renderQuantumSize = 128;\n this.maxHistoryLength = params.maxHistoryLength ?? Math.round(sampleRate / renderQuantumSize);\n this.statsIntervalFrames = params.statsIntervalFrames ?? Math.round(sampleRate / renderQuantumSize);\n this.debug = params.debug ?? false;\n\n this.smoothedEnergy = -100;\n this.isSuppressionEnabled = false;\n this.effectiveSuppressionState = false;\n this.pendingSuppressionState = false;\n this.started = false;\n\n this.gateHistory = [];\n this.frameCount = 0;\n\n this.port.onmessage = this.handleMessage.bind(this);\n }\n\n handleMessage(event) {\n const {type, payload} = event.data;\n\n switch (type) {\n case 'start':\n this.started = true;\n break;\n case 'stop':\n this.started = false;\n break;\n case 'setSuppressionEnabled':\n this.setSuppressionEnabled(payload.enabled);\n break;\n case 'setEnergyMultiplier':\n this.energyMultiplier = Math.max(1.0, payload.value);\n break;\n case 'getStats':\n this.sendStats();\n break;\n }\n }\n\n setSuppressionEnabled(enabled) {\n if (this.isSuppressionEnabled === enabled) {\n return;\n }\n\n this.isSuppressionEnabled = enabled;\n\n // AudioWorklet 中没有 setTimeout,使用帧计数实现延迟\n // render quantum 固定为 128 samples/frame,采样率由全局 sampleRate 提供\n const delay = enabled\n ? this.suppressionActivationDelay\n : this.suppressionRecoveryDelay;\n\n // 转换毫秒到帧数 (128 samples/frame, sampleRate Hz)\n this.delayFramesRemaining = Math.floor((delay / 1000) * (sampleRate / 128));\n this.pendingSuppressionState = enabled;\n }\n\n calculateRMS(samples) {\n let sum = 0;\n\n for (let i = 0; i < samples.length; i++) {\n const sample = samples[i];\n sum += sample * sample;\n }\n\n return Math.sqrt(sum / samples.length);\n }\n\n rmsToDb(rms) {\n if (rms < 0.00001) {\n return -100;\n }\n\n return 20 * Math.log10(rms);\n }\n\n getCurrentThreshold() {\n if (this.effectiveSuppressionState) {\n return this.idleThreshold + 20 * Math.log10(this.energyMultiplier);\n }\n\n return this.idleThreshold;\n }\n\n shouldGateOpen(energyDb) {\n return energyDb > this.getCurrentThreshold();\n }\n\n sendStats() {\n const passRate = this.gateHistory.length > 0\n ? this.gateHistory.filter(Boolean).length / this.gateHistory.length\n : 0;\n\n this.port.postMessage({\n type: 'stats',\n payload: {\n microphoneEnergy: this.smoothedEnergy,\n isSuppressionEnabled: this.effectiveSuppressionState,\n currentThreshold: this.getCurrentThreshold(),\n isGateOpen: this.shouldGateOpen(this.smoothedEnergy),\n passRate\n }\n });\n }\n\n sendLog(message) {\n if (!this.debug) {\n return;\n }\n\n this.port.postMessage({type: 'log', payload: message});\n }\n\n process(inputs, outputs, parameters) {\n const input = inputs[0];\n const output = outputs[0];\n\n if (!input || !input[0] || !output || !output[0]) {\n return true;\n }\n\n const inputChannel = input[0];\n const outputChannel = output[0];\n\n // 与 ScriptProcessor 保持一致: !started 时静音\n if (!this.started) {\n outputChannel.fill(0);\n return true;\n }\n\n // 处理延迟状态切换 (基于帧计数)\n if (this.delayFramesRemaining > 0) {\n this.delayFramesRemaining--;\n if (this.delayFramesRemaining === 0) {\n this.effectiveSuppressionState = this.pendingSuppressionState;\n }\n }\n\n const rms = this.calculateRMS(inputChannel);\n const currentEnergy = this.rmsToDb(rms);\n\n this.smoothedEnergy = this.smoothingFactor * this.smoothedEnergy\n + (1 - this.smoothingFactor) * currentEnergy;\n\n const isGateOpen = this.shouldGateOpen(this.smoothedEnergy);\n\n this.gateHistory.push(isGateOpen);\n\n if (this.gateHistory.length > this.maxHistoryLength) {\n this.gateHistory.shift();\n }\n\n if (isGateOpen) {\n outputChannel.set(inputChannel);\n }\n else {\n outputChannel.fill(0);\n }\n\n // 调试日志 (与 ScriptProcessor 保持一致,2% 采样率)\n if (this.debug && Math.random() < 0.02) {\n const passRate = this.gateHistory.length > 0\n ? this.gateHistory.filter(Boolean).length / this.gateHistory.length\n : 0;\n\n console.log('[EnergyGate]', {\n energy: this.smoothedEnergy.toFixed(1),\n suppression: this.effectiveSuppressionState,\n threshold: this.getCurrentThreshold().toFixed(1),\n open: isGateOpen,\n passRate: (passRate * 100).toFixed(1) + '%',\n impl: 'audioworklet'\n });\n }\n\n // 定期发送统计数据到主线程(约每秒 1 次)\n if (this.frameCount === undefined) {\n this.frameCount = 0;\n }\n\n this.frameCount++;\n\n if (this.frameCount % this.statsIntervalFrames === 0) {\n this.sendStats();\n }\n\n return true;\n }\n}\n\nregisterProcessor('energy-gate-processor', EnergyGateProcessor);\n "}constructor(e,r={}){var i,n,o,s,a,c;this.processor=null,this.processorType="scriptprocessor",this.gateHistory=[],this.isSuppressionEnabled=!1,this.suppressionStateTimer=null,this.effectiveSuppressionState=!1,this.currentEnergy=-100,this.smoothedEnergy=-100,this.workletPassRate=0,this.workletIsGateOpen=!1,this.started=!1,this.setupAudioGraphPromise=null,this.setSuppressionEnabled=e=>{if(this.isSuppressionEnabled===e)return;if(this.isSuppressionEnabled=e,"audioworklet"===this.processorType&&this.processor instanceof AudioWorkletNode)return void this.processor.port.postMessage({type:"setSuppressionEnabled",payload:{enabled:e}});this.suppressionStateTimer&&clearTimeout(this.suppressionStateTimer);let r=e?this.options.suppressionActivationDelay:this.options.suppressionRecoveryDelay;this.suppressionStateTimer=setTimeout(()=>{if(this.effectiveSuppressionState=e,this.options.debug){let r=e?"已启用":"已关闭";console.log("[EnergyGate] 外部播放抑制状态切换: ".concat(r))}},r)},this.start=()=>{this.started||(this.started=!0,this.setupAudioGraphPromise&&this.setupAudioGraphPromise.then(()=>{this.started&&"audioworklet"===this.processorType&&this.processor instanceof AudioWorkletNode&&this.processor.port.postMessage({type:"start"})}))},this.stop=()=>{this.started&&(this.started=!1,"audioworklet"===this.processorType&&this.processor instanceof AudioWorkletNode&&this.processor.port.postMessage({type:"stop"}))},this.getOutputStream=()=>this.destination.stream,this.getStats=()=>{let e="audioworklet"===this.processorType?this.workletPassRate:this.gateHistory.length>0?this.gateHistory.filter(Boolean).length/this.gateHistory.length:0,r="audioworklet"===this.processorType?this.workletIsGateOpen:this.shouldGateOpen(this.smoothedEnergy);return{microphoneEnergy:this.smoothedEnergy,isSuppressionEnabled:this.effectiveSuppressionState,currentThreshold:this.getCurrentThreshold(),isGateOpen:r,passRate:e}},this.setEnergyMultiplier=e=>{let r=Math.max(1,e);this.options.suppressionEnergyMultiplier=r,"audioworklet"===this.processorType&&this.processor instanceof AudioWorkletNode&&this.processor.port.postMessage({type:"setEnergyMultiplier",payload:{value:r}})},this.dispose=()=>{this.stop(),this.suppressionStateTimer&&clearTimeout(this.suppressionStateTimer),this.processor&&(this.processor.disconnect(),this.processor=null),this.input.disconnect(),this.gate.disconnect()},this.processAudioScriptProcessor=e=>{let r=e.inputBuffer,i=e.outputBuffer,n=r.getChannelData(0),o=i.getChannelData(0);if(!this.started)return void o.fill(0);let s=function(e){let r=0;for(let i of e)r+=i*i;return Math.sqrt(r/e.length)}(n);this.currentEnergy=s<1e-5?-100:20*Math.log10(s),this.smoothedEnergy=this.options.smoothingFactor*this.smoothedEnergy+(1-this.options.smoothingFactor)*this.currentEnergy;let a=this.shouldGateOpen(this.smoothedEnergy);if(this.gateHistory.push(a),this.gateHistory.length>this.scriptProcessorMaxHistoryLength&&this.gateHistory.shift(),a?o.set(n):o.fill(0),this.options.debug&&.02>Math.random()){let e=this.gateHistory.filter(Boolean).length/this.gateHistory.length;console.log("[EnergyGate]",{energy:this.smoothedEnergy.toFixed(1),suppression:this.effectiveSuppressionState,threshold:this.getCurrentThreshold().toFixed(1),open:a,passRate:(100*e).toFixed(1)+"%",impl:this.processorType})}},this.shouldGateOpen=e=>e>this.getCurrentThreshold(),this.getCurrentThreshold=()=>{if(this.effectiveSuppressionState){let e=this.options.suppressionEnergyMultiplier;return this.options.idleThreshold+20*Math.log10(e)}return this.options.idleThreshold},this.context=e,this.options={suppressionEnergyMultiplier:null!=(i=r.suppressionEnergyMultiplier)?i:3,idleThreshold:null!=(n=r.idleThreshold)?n:-45,smoothingFactor:null!=(o=r.smoothingFactor)?o:.7,suppressionActivationDelay:null!=(s=r.suppressionActivationDelay)?s:100,suppressionRecoveryDelay:null!=(a=r.suppressionRecoveryDelay)?a:500,debug:null!=(c=r.debug)&&c},this.input=this.context.createGain(),this.gate=this.context.createGain(),this.destination=this.context.createMediaStreamDestination(),this.scriptProcessorMaxHistoryLength=Math.round(this.context.sampleRate/2048*1),this.audioWorkletMaxHistoryLength=Math.round(this.context.sampleRate/128*1),this.setupAudioGraphPromise=this.setupAudioGraph().catch(e=>{console.error("[EnergyGate] Setup failed:",e)})}}lL=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),lB("design:type",Function),lB("design:paramtypes",["undefined"==typeof AudioContext?Object:AudioContext,"undefined"==typeof IEnergyGateOptions?Object:IEnergyGateOptions])],lL);class lF{constructor(e,r={}){var i,n,o,s;this.isMonitoring=!1,this.startMonitoring=()=>{this.isMonitoring||(document.addEventListener("visibilitychange",this.boundHandleVisibilityChange),this.context.addEventListener("statechange",this.boundHandleStateChange),window.addEventListener("pagehide",this.boundHandleVisibilityChange),window.addEventListener("pageshow",this.boundHandleVisibilityChange),this.isMonitoring=!0)},this.stopMonitoring=()=>{this.isMonitoring&&(document.removeEventListener("visibilitychange",this.boundHandleVisibilityChange),this.context.removeEventListener("statechange",this.boundHandleStateChange),window.removeEventListener("pagehide",this.boundHandleVisibilityChange),window.removeEventListener("pageshow",this.boundHandleVisibilityChange),this.isMonitoring=!1)},this.ensureRunning=async()=>{let e=this.context.state;if("running"===e)return!0;if("suspended"===e)try{return await this.context.resume(),"running"===this.context.state}catch(e){return console.error("[AudioContextLifecycle] Resume failed:",e),!1}return"closed"===e&&console.error("[AudioContextLifecycle] Context is closed, cannot resume"),!1},this.getState=()=>this.context.state,this.dispose=()=>{this.stopMonitoring()},this.handleVisibilityChange=()=>{document.hidden?"running"===this.context.state&&this.options.onSuspended():this.options.autoResume&&"suspended"===this.context.state&&this.ensureRunning().then(e=>{e&&this.options.onResumed()}).catch(e=>{console.error("[AudioContextLifecycle] Auto-resume failed:",e)})},this.handleStateChange=()=>{switch(this.context.state){case"suspended":this.options.onSuspended();break;case"running":this.options.onResumed();break;case"interrupted":this.options.onInterrupted();break;case"closed":this.stopMonitoring()}},this.context=e,this.options={onSuspended:null!=(i=r.onSuspended)?i:()=>{},onResumed:null!=(n=r.onResumed)?n:()=>{},onInterrupted:null!=(o=r.onInterrupted)?o:()=>{},autoResume:null==(s=r.autoResume)||s},this.boundHandleVisibilityChange=this.handleVisibilityChange.bind(this),this.boundHandleStateChange=this.handleStateChange.bind(this)}}function lz(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function lU(e,r){return function(i,n){r(i,n,e)}}(pz=(pF=p0||(p0={})).EMessageType||(pF.EMessageType={}))[pz.Query=0]="Query",pz[pz.Event=1]="Event";class lH{get sessionId(){return this.customSessionId?this.customSessionId:this.started&&this.signalingService?this.signalingService.GetSessionID():null}constructor(e,r,i,n){var o=this;this.opts=e,this.signalingService=r,this.errorManager=i,this.disabled=!1,this.mutedByUser=!1,this.muted=!1,this.emitter=new oy,this.started=!1,this.customSessionId=null,this.energyGate=null,this.audioContext=null,this.audioContextLifecycle=null,this.lastCheckResult=null,this.lastCheckTime=0,this.CHECK_CACHE_TTL=5e3,this.mute=e=>{var r;null==(r=this.signalingService)||r.Mute(e),this.muted=e},this.setMutedByUser=e=>{this.mutedByUser=e},this.tryUnmuteAsr=()=>!this.disabled&&!this.mutedByUser&&(this.muted&&this.mute(!1),!0),this.disable=()=>{this.disabled=!0},this.enable=()=>{this.disabled=!1},this.setPlaybackSuppressionEnabled=e=>{this.energyGate&&this.energyGate.setSuppressionEnabled(e)},this.checkAudioDevice=async e=>{var r;let i=Date.now();if(!(null==e?void 0:e.forceCheck)&&(null==(r=this.lastCheckResult)?void 0:r.available)&&i-this.lastCheckTime<this.CHECK_CACHE_TTL)return this.lastCheckResult;let n=new lA(e),o=await n.checkAudioDevice();return this.lastCheckResult=o,this.lastCheckTime=i,await this.emitter.emit("device_check_completed",o),!o.available&&o.error&&this.errorManager.handleError(this.mapToAsrError(o)),o},this.setupPlaybackSuppression=async function(e){var r,i,n,s,a,c;let d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[ASR]",l=null==(r=o.opts.asr)?void 0:r.config;if(!(null==l?void 0:l.enablePlaybackSuppression))return e;try{o.audioContext=new AudioContext,o.audioContextLifecycle=new lF(o.audioContext,{onSuspended:()=>{o.opts.enableDebugMode&&console.log("".concat(d," AudioContext suspended (页面后台或锁屏)"))},onResumed:()=>{o.opts.enableDebugMode&&console.log("".concat(d," AudioContext resumed (页面前台)"))},onInterrupted:()=>{o.opts.enableDebugMode&&console.log("".concat(d," AudioContext interrupted (如来电)"))},autoResume:!0}),o.audioContextLifecycle.startMonitoring(),await o.audioContextLifecycle.ensureRunning();let r=o.audioContext.createMediaStreamSource(e);o.energyGate=new lL(o.audioContext,{suppressionEnergyMultiplier:null==(i=l.playbackSuppressionConfig)?void 0:i.energyMultiplier,idleThreshold:null==(n=l.playbackSuppressionConfig)?void 0:n.idleThreshold,smoothingFactor:null==(s=l.playbackSuppressionConfig)?void 0:s.smoothingFactor,suppressionActivationDelay:null==(a=l.playbackSuppressionConfig)?void 0:a.activationDelay,suppressionRecoveryDelay:null==(c=l.playbackSuppressionConfig)?void 0:c.recoveryDelay,debug:o.opts.enableDebugMode}),r.connect(o.energyGate.input),o.energyGate.start();let u=o.energyGate.getOutputStream();return console.log("".concat(d," 外部播放抑制已启用")),u}catch(r){return console.warn("".concat(d," 外部播放抑制启动失败,将使用原始音频流"),r),e}},this.cleanupPlaybackSuppression=()=>{this.energyGate&&(this.energyGate.dispose(),this.energyGate=null),this.audioContextLifecycle&&(this.audioContextLifecycle.dispose(),this.audioContextLifecycle=null),this.audioContext&&("closed"!==this.audioContext.state&&this.audioContext.close().catch(()=>{}),this.audioContext=null)},this.handleMicrophoneCheckFailure=async(e,r,i)=>{switch(await this.emitter.emit("device_check_completed",r),e){case"error":return!1;case"warn":return console.warn("[AaaSPilotKit] 麦克风检测失败,已降级为仅文本输入模式",{error:r.error,message:r.message,permissionState:r.permissionState,devices:r.devices}),!0;case"silent":return!0;case"prompt":if(!i)return console.warn('[AaaSPilotKit] microphoneFailureHandling 设置为 "prompt" 但未提供 onMicrophoneCheckFailed 回调,降级为 "error" 策略'),!1;try{let e=await i(r);return e&&console.info("[AaaSPilotKit] 用户确认继续(仅文本模式)"),e}catch(e){return console.error("[AaaSPilotKit] onMicrophoneCheckFailed 回调执行失败",e),!1}default:return console.error("[AaaSPilotKit] 未知的 microphoneFailureHandling 策略: ".concat(e)),!1}},this._stop=async()=>{this.started&&(await this.signalingService.Stop(),this.started=!1,this.disabled=!1)},this._dispose=()=>{this.stop().finally(()=>{this.signalingService.Dispose()}).catch(as),this.emitter.clearListeners(),this.lastCheckTime=0,this.disabled=!1,this.cleanupPlaybackSuppression()},this.mapToAsrError=e=>new({[lx.NO_API_SUPPORT]:sV,[lx.INSECURE_CONTEXT]:sG,[lx.NO_DEVICE_FOUND]:sq,[lx.PERMISSION_DENIED]:sF,[lx.PERMISSION_DISMISSED]:sK,[lx.DEVICE_IN_USE]:sW,[lx.TIMEOUT]:sJ,[lx.UNKNOWN_ERROR]:sB})[e.error](e.message,{passedLevel:e.passedLevel,devices:e.devices,permissionState:e.permissionState}),this.streamManager=n}}function lq(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function lW(e,r){return function(i,n){r(i,n,e)}}lH=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),lU(0,e3(oS.IOptions)),lU(0,tt()),lU(1,e3(oS.SignalingService)),lU(1,tt()),lU(2,e3(oS.ErrorManager)),lU(3,e3(oS.MediaStreamManager)),lz("design:type",Function),lz("design:paramtypes",["undefined"==typeof IResolvedOptions?Object:IResolvedOptions,"undefined"==typeof BaseSignalingService?Object:BaseSignalingService,void 0===at?Object:at,"undefined"==typeof MediaStreamManager?Object:MediaStreamManager])],lH);class lV{get isRendering(){return this._isRendering}get isMuted(){return this._isMuted}get canInterrupt(){return this._canInterrupt}setIsRendering(e){this._isRendering=e}setIsMuted(e){this._isMuted=e}setCanInterrupt(e){this._canInterrupt=e}registerSSMLHandler(e){return this.ssmlHandlers.push(e),this}runSsmlHandlers(e){let r=e;for(let e of this.ssmlHandlers)r=e(r);return r}constructor(e,r,i){this.opts=e,this.request=r,this.errorManager=i,this.emitter=new oy,this._isRendering=!1,this._isMuted=!1,this._canInterrupt=!0,this.ssmlHandlers=[],this.token="",this.latencyStartMap=new Map,this.getAccessToken=async()=>{try{let{data:e}=await this.request.client.get(lV.GET_ACCESS_TOKEN_REQUEST_URI,{retry:3,timeout:15e3}).json();return e.authorization}catch(e){throw e instanceof Error&&this.errorManager.handleError(new s1(e.message)),e}}}}lV.GET_ACCESS_TOKEN_REQUEST_URI="employee-console/v1/access/r/ai-agent/get_digital_token",lV=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),lW(0,e3(oS.IOptions)),lW(1,e3(oS.CommonRequest)),lW(2,e3(oS.ErrorManager)),lq("design:type",Function),lq("design:paramtypes",["undefined"==typeof IOptions?Object:IOptions,void 0===sw?Object:sw,void 0===at?Object:at])],lV);let lG=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return new Promise(r=>setTimeout(r,e))};function lK(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function lJ(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?lK(Object(i),!0).forEach(function(r){lZ(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):lK(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function lX(e){return(lX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l$(e,r){if(!(e instanceof r))throw TypeError("Cannot call a class as a function")}function lQ(e,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l0(n.key),n)}}function lY(e,r,i){return r&&lQ(e.prototype,r),i&&lQ(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function lZ(e,r,i){return(r=l0(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function l0(e){var r=function(e,r){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,r||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:String(r)}(p1||(p1={})).INIT="INIT";var l1=function(){function e(r){l$(this,e),lZ(this,"iframeId",void 0),this.iframeId=r}return lY(e,[{key:"registerMessageReceived",value:function(e){void 0!==window.addEventListener&&"function"==typeof e&&window.addEventListener("message",e,!1)}},{key:"removeMessageReceived",value:function(e){void 0!==window.addEventListener&&window.removeEventListener("message",e,!1)}},{key:"sendMessageToIframe",value:function(e,r){if(this.iframeId){var i=document.getElementById(this.iframeId);e&&null!==i&&i.contentWindow.postMessage({type:e,content:r},"*")}else if(window.self!==window.top&&window&&window.parent&&window.parent.postMessage){var n=JSON.parse(JSON.stringify(r||{}));window.parent.postMessage({type:e,content:n},"*")}}},{key:"sendCommand",value:function(e){this.sendMessageToIframe("command",e)}},{key:"sendMessage",value:function(e){var r=e.requestId,i=void 0===r?ao():r;return this.sendMessageToIframe("message",lJ(lJ({},e),{},{requestId:i})),i}},{key:"textRender",value:function(e){return this.sendMessage({action:"TEXT_RENDER",body:e})}},{key:"textQuery",value:function(e){return this.sendMessage({action:"TEXT_QUERY",body:e})}},{key:"changeBackGround",value:function(e){return this.textRender("<display><background><type>image</type><source>http</source><value>".concat(e,"</value></background></display>"))}},{key:"mute",value:function(e){this.sendCommand({subType:"mute",subContent:e})}},{key:"muteAudio",value:function(e){this.sendCommand({subType:"muteAudio",subContent:e})}},{key:"muteRemoteAudio",value:function(e){this.sendCommand({subType:"muteRemoteAudio",subContent:e})}},{key:"playVideo",value:function(e){this.sendCommand({subType:"playVideo",subContent:e})}},{key:"sendAudioData",value:function(e){this.sendMessageToIframe("audioData",e)}},{key:"onStateUpdate",value:function(e){this.sendMessageToIframe("state",e)}},{key:"sendRtcState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.sendMessageToIframe("rtcState",e)}},{key:"sendWsState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.sendMessageToIframe("wsState",e)}}]),e}();lY(function e(r){l$(this,e),lZ(this,"iframeId",void 0),lZ(this,"namespace","dhIframeNameSpace"),lZ(this,"listener",null),this.iframeId=r},[{key:"onEventListener",value:function(e){var r=this;return function(i){if("object"===lX(i.data))if("onListener"===i.data.type&&i.data.content.listenerId){var n=window[r.namespace][i.data.content.listenerId];null==n||n(i.data.content.data)}else"onListenerRemove"===i.data.type&&i.data.content.listenerId?delete window[r.namespace][i.data.content.listenerId]:i.data.listenerId?e(i.data,function(e){r.sendMessage("onListener",{listenerId:i.data.listenerId,data:e})},function(){r.sendMessage("onListenerRemove",{listenerId:i.data.listenerId})}):e(i.data)}}},{key:"registerMessageReceived",value:function(e){void 0!==window.addEventListener&&"function"==typeof e&&(this.listener=this.onEventListener(e),window.addEventListener("message",this.listener,!1))}},{key:"removeMessageReceived",value:function(){void 0!==window.addEventListener&&this.listener&&(window[this.namespace]=void 0,window.removeEventListener("message",this.listener,!1))}},{key:"sendMessage",value:function(e,r,i){var n=this;if(this.iframeId){var o="";i&&(o=ao(),window[this.namespace]||(window[this.namespace]={}),window[this.namespace][o]=i);var s=document.getElementById(this.iframeId);return e&&null!==s&&s.contentWindow.postMessage({type:e,content:r,listenerId:o},"*"),function(){o&&(window[n.namespace][o]=void 0)}}if(window.self!==window.top&&window&&window.parent&&window.parent.postMessage){var a=JSON.parse(JSON.stringify(r||{}));window.parent.postMessage({type:e,content:a},"*")}}},{key:"textRender",value:function(e,r){return this.sendMessage("TEXT_RENDER",e,r)}},{key:"textMTRender",value:function(e,r){return this.sendMessage("TEXT_MT_RENDER",e,r)}},{key:"audioRender",value:function(e,r){return this.sendMessage("AUDIO_RENDER",e,r)}},{key:"textQuery",value:function(e,r){return this.sendMessage("TEXT_QUERY",e,r)}},{key:"startAudioQuery",value:function(e,r){return this.sendMessage("AUDIO_QUERY_START",e,r)}},{key:"stopAudioQuery",value:function(){return this.sendMessage("AUDIO_QUERY_STOP",{})}},{key:"setModelPackage",value:function(e,r){return this.sendMessage("SET_MODEL_URLS",{urls:e,needInitConfig:r})}},{key:"changeCamera",value:function(e){return this.sendMessage("CHANGE_CAMERA",e)}},{key:"changeParts",value:function(e){return this.sendMessage("CHANGE_PARTS",e)}},{key:"setRenderConfig",value:function(e){return this.sendMessage("SET_RENDER_CONFIG",e)}},{key:"animojiRender",value:function(e,r){return this.sendMessage("ANIMOJI_RENDER",e,r)}},{key:"destroy",value:function(){return this.sendMessage("DESTROY",{})}},{key:"startAudioRender",value:function(e,r){return this.sendMessage("AUDIO_RENDER_START",e,r)}},{key:"stopAudioRender",value:function(){return this.sendMessage("AUDIO_RENDER_STOP",{})}},{key:"interrupt",value:function(){return this.sendMessage("INTERRUPT",{})}},{key:"load",value:function(e){return this.sendMessage("LOAD",e)}},{key:"onStateUpdate",value:function(e){this.sendMessage("state",e)}}]);class l2 extends lV{get ready(){return!!this.iframeController&&!!this.token}constructor(...e){super(...e),this.origin="https://open.xiling.baidu.com",this.iframeId=ao(),this.iframeController=null,this.iframe=null,this.$iframeContainer=null,this.requestId=ao(),this.isWSConnected=!1,this.isRtcReady=!1,this.silenceMessageRequestIds=[],this.isStreamTextRendering=!1,this.wsClosedCount=0,this.mount=async e=>{if(!e)return void this.errorManager.handleError(new s$("容器元素不能为空"));if(this.$iframeContainer=e,this.iframe){e.contains(this.iframe)||e.appendChild(this.iframe);return}this.opts.enableDebugMode&&"development"===this.opts.env&&!this.opts.token?this.token=await this.getAccessToken():this.token=this.opts.token,this.iframe=document.createElement("iframe"),this.applyOptions(),e.appendChild(this.iframe),this.iframeController=new l1(this.iframeId),this.bindEvents()},this.bindEvents=()=>{var e,r;return this.ready&&(null==(e=this.iframe)||e.addEventListener("error",this.onIFrameErrorHandler),null==(r=this.iframeController)||r.registerMessageReceived(this.onMessageHandler)),this},this.unbindEvents=()=>{var e,r;return this.ready&&(null==(e=this.iframe)||e.removeEventListener("error",this.onIFrameErrorHandler),null==(r=this.iframeController)||r.removeMessageReceived(this.onMessageHandler)),this},this.cancelMute=()=>{var e;null==(e=this.iframeController)||e.sendCommand({subType:"muteAudio",subContent:!1}),setTimeout(()=>{this._isMuted=!1},1500)},this.muteHuman=()=>{var e;null==(e=this.iframeController)||e.sendCommand({subType:"muteAudio",subContent:!0}),setTimeout(()=>{this._isMuted=!0},1500)},this.play=async()=>{var e;null==(e=this.iframeController)||e.sendCommand({subType:"playVideo",subContent:!0})},this.pause=()=>{var e;null==(e=this.iframeController)||e.sendCommand({subType:"playVideo",subContent:!1})},this.renderPlainText=e=>{var r;if(!this.ready)return this;let i=this.runSsmlHandlers(e);return this.refreshRequestId(),null==(r=this.iframeController)||r.sendMessage({action:"TEXT_RENDER",body:i,requestId:this.requestId}),this},this.renderStreamText=(e,r)=>{var i,n,o;if(!this.ready)return this;let s=this.runSsmlHandlers(e);return r?(this.isStreamTextRendering||this.refreshRequestId(),null==(n=this.iframeController)||n.sendMessage({action:"TEXT_STREAM_RENDER",body:JSON.stringify({first:!this.isStreamTextRendering,last:!0,text:s}),requestId:this.requestId}),this.isStreamTextRendering=!1):this.isStreamTextRendering?null==(i=this.iframeController)||i.sendMessage({action:"TEXT_STREAM_RENDER",body:JSON.stringify({first:!1,last:!1,text:s}),requestId:this.requestId}):(this.refreshRequestId(),this.isStreamTextRendering=!0,this.latencyStartMap.set(this.requestId,performance.now()),null==(o=this.iframeController)||o.sendMessage({action:"TEXT_STREAM_RENDER",body:JSON.stringify({first:!0,last:!1,text:s}),requestId:this.requestId})),this},this.interrupt=()=>{var e;return this.ready&&(null==(e=this.iframeController)||e.sendMessage({action:"TEXT_RENDER",body:"<interrupt></interrupt>",requestId:this.requestId}),this.isRendering||this.onRenderFinished(this.requestId)),this},this.sendSilenceMessage=()=>{var e;if(!this.ready)return this;let r=ao();return null==(e=this.iframeController)||e.sendMessage({action:"TEXT_RENDER",body:"",requestId:r}),this.silenceMessageRequestIds.push(r),this.emitter.emit("send_silence_message",{requestId:r}).catch(as),this},this.dispose=()=>{if(this.unbindEvents(),this.silenceMessageRequestIds=[],this.ssmlHandlers=[],this.wsClosedCount=0,this.isStreamTextRendering=!1,this.emitter.clearListeners(),this.latencyStartMap.clear(),this.iframe){var e;null==(e=this.$iframeContainer)||e.removeChild(this.iframe),this.iframe=null,this.iframeController=null}return this},this.GetRequestId=()=>this.requestId,this.checkIsReady=()=>{let e=this.isWSConnected&&this.isRtcReady;return e&&this.emitter.emit("ready").catch(as),e},this.onIFrameErrorHandler=e=>{let r=new sQ("数字人iframe加载失败: ".concat(e.message),{context:{method:"onIFrameErrorHandler",iframeId:this.iframeId,filename:e.filename,lineno:e.lineno,colno:e.colno,type:e.type,target:e.target}});this.errorManager.handleError(r)},this.onMessageHandler=e=>{if(e.origin!==this.origin)return;let r=e.data;switch(r.type){case"msg":this.onReceiveMsgTypedMessageHandler(r);break;case"rtcState":this.onReceiveRtcStateTypedMessageHandler(r);break;case"wsState":this.onReceiveWsStateTypedMessageHandler(r)}},this.onReceiveMsgTypedMessageHandler=e=>{let r=e.content.requestId;if((1004===e.content.code||3001===e.content.code)&&(this.emitter.emit("reach_session_limit",{requestId:r}).catch(as),this.errorManager.handleError(new s2("资源配额已用尽,请联系技术支持申请扩容"))),["RENDER_START","FINISHED","DOWN_SUBTITLE","RENDER_INTERRUPTED","DOWN_SUBTITLE","TEXT_RENDER","TEXT_STREAM_RENDER"].includes(e.content.action)){if(r!==this.requestId)return;switch(e.content.action){case"RENDER_START":this._isRendering=!0,this.emitter.emit("is_rendering_change",!0).catch(as);break;case"FINISHED":case"RENDER_INTERRUPTED":this.onRenderFinished(r);break;case"DOWN_SUBTITLE":{let i=JSON.parse(e.content.body);if(this.silenceMessageRequestIds.includes(r))this.silenceMessageRequestIds=this.silenceMessageRequestIds.filter(e=>e!==r);else{let e,n=this.latencyStartMap.get(r);void 0!==n&&(e=performance.now()-n,this.latencyStartMap.clear()),this.emitter.emit("render_subtitle",{subtitle:i,requestId:r,latency:e}).catch(as)}break}case"TEXT_RENDER":case"TEXT_STREAM_RENDER":0!==e.content.code&&this.onRenderFinished(r)}return}switch(e.content.action){case"RENDER_ERROR":this.onRenderFinished(r),this.errorManager.handleError(new sY("数字员工文本驱动渲染失败,请确认配置后重试",{requestId:r,context:{msg:e.content.message}}));break;case"DISCONNECT_ALERT":this.emitter.emit("disconnect_alert",{requestId:r}).catch(as);break;case"TIMEOUT_EXIT":this.onRenderFinished(r),this.emitter.emit("timeout",{requestId:e.content.requestId}).catch(as)}},this.onReceiveRtcStateTypedMessageHandler=e=>{if(e.content.action,"localVideoMuted"===e.content.action&&e.content.body&&(this._isMuted=!0),"remotevideoon"===e.content.action&&(this.isRtcReady=!0,this.checkIsReady(),this.iframe&&(this.iframe.style.opacity="1")),"error"===e.content.action){let r="string"==typeof e.content.body?e.content.body:"";this.errorManager.handleError(new s0("RTC 房间连接失败,请检查网络后重试"+r))}},this.onReceiveWsStateTypedMessageHandler=e=>{1===e.content.readyState?(this.isWSConnected=!0,this.wsClosedCount=0,this.checkIsReady()):(3===e.content.readyState||2===e.content.readyState)&&(this.isWSConnected=!1),3===e.content.readyState&&(this.wsClosedCount++,this.wsClosedCount>=3&&(this.emitter.emit("reconnect_failed").catch(as),this.errorManager.handleError(new sZ("检测到 Websocket 链接异常断开,如长时间无法恢复,请联系技术支持。"))))},this.applyOptions=()=>{var e,r,i,n,o,s,a,c,d,l,u,p,h,f;if(!this.iframe)return;this.iframe.id=this.iframeId,this.iframe.allow="autoplay",this.iframe.style.border="none",this.iframe.style.opacity="0",this.iframe.style.pointerEvents="none",this.iframe.style.overflow="hidden";let m=null!=(o=null==(e=this.opts)?void 0:e.scaleX)?o:1,g=null!=(s=null==(r=this.opts)?void 0:r.scaleY)?s:1,y=null!=(a=null==(i=this.opts)?void 0:i.translateX)?a:0,b=null!=(c=null==(n=this.opts)?void 0:n.translateY)?c:0;this.iframe.style.width="".concat(100*m,"% "),this.iframe.style.height="".concat(100*g,"%"),this.iframe.style.transform="translate(".concat(y,"px, ").concat(b,"px)");let S=new URLSearchParams(Object.entries({figureId:this.opts.figureId,ttsPer:this.opts.ttsPer,initMode:"noAudio","cp-inactiveDisconnectSec":null!=(d=this.opts.timeoutSec)?d:130,"cp-preAlertSec":null!=(l=this.opts.disconnectAlertSec)?l:10,mode:"crop",resolutionWidth:null!=(u=this.opts.figureResolutionWidth)?u:1920,resolutionHeight:null!=(p=this.opts.figureResolutionHeight)?p:1080,ttsSpeed:null!=(h=this.opts.speechSpeed)?h:6,"cp-ttsSample":this.opts.ttsSample,"cp-minSplitLen":this.opts.minSplitLen,"cp-ttsModel":this.opts.ttsModel,"cp-positionV2":JSON.stringify(this.opts.position),"cp-ttsLang":ab(this.opts.lang),autoChromaKey:this.opts.autoChromaKey,closeLog:null==(f=this.opts.enableDebugMode)||f,token:this.token}).filter(e=>{let[,r]=e;return null!=r&&""!==r}).reduce((e,r)=>{let[i,n]=r;return e[i]=String(n),e},{})).toString();this.iframe.src="".concat(this.origin,"/cloud/realtime?").concat(S)},this.refreshRequestId=()=>{this.requestId=ao()},this.onRenderFinished=e=>{this._isRendering=!1,this.isStreamTextRendering=!1,this.emitter.emit("is_rendering_change",!1).catch(as),this.refreshRequestId(),this.emitter.emit("render_finished",{requestId:e}).catch(as)}}}function l3(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function l4(e,r){return function(i,n){r(i,n,e)}}l2=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),e9()],l2);class l6{constructor(e,r,i,n,o,s){this.opts=e,this.errorManager=r,this.agentService=i,this.asrService=n,this.digitalHumanService=o,this.conversationService=s,this.interruptible=!0,this.isRenderingMultiModConversation=!1,this.isDigitalHumanServiceReady=!1,this.isAsrServiceReady=!1,this.lastReplyStartRequestId=null,this.aiWorkerMessageCache=null,this.multiModAbortControllers=[],this.playWaitForListener=null,this.queryStartTime=0,this.hasRenderStartTriggered=!1,this.mount=async e=>{var r,i;let n=null!=e?e:null==(r=(i=this.opts).getMountContainer)?void 0:r.call(i);n&&(await Promise.all([this.digitalHumanService.mount(n),this.asrService.preloadDeps()]),await this.asrService.start(),this.isAsrServiceReady=!0,this.checkServiceReady())},this.getOptions=()=>this.opts,this.checkNeedsManualActivation=()=>"cloud-native"!==this.opts.rendererMode&&(sM()||sD()),this.activateManually=async()=>{if(this.digitalHumanService instanceof l2){let e,r;this.digitalHumanService.cancelMute(),r=(e=new(sx())).getUA(),("WeChat"===e.getBrowser().name||/MicroMessenger/i.test(r))&&(sM()||sD())&&await lG(500)}},this.keepAlive=()=>(this.digitalHumanService.sendSilenceMessage(),this),this.playWaitFor=async(e,r)=>(this.playWaitForListener&&this.digitalHumanService.emitter.off("render_finished",this.playWaitForListener),this.digitalHumanService.isRendering)?await new Promise(i=>{this.playWaitForListener=()=>{r&&!r()?i(!1):(this.digitalHumanService.renderPlainText(e),this.playWaitForListener&&this.digitalHumanService.emitter.off("render_finished",this.playWaitForListener),i(!0))},this.digitalHumanService.emitter.on("render_finished",this.playWaitForListener)}):(this.digitalHumanService.renderPlainText(e),!0),this.playFromFullText=e=>(this.digitalHumanService.renderPlainText(e),this),this.playFromStreamText=(e,r)=>(this.digitalHumanService.renderStreamText(e,r),this),this.mute=e=>(this.asrService.setMutedByUser(e),this.emitter.emit("mute",e).catch(as),e?(this.asrService.mute(!0),this.conversationService.currentClientConversation&&this.query(this.conversationService.currentClientConversation.text,!0).catch(as)):this.asrService.muted&&this.asrService.mute(!1),this),this.interrupt=()=>(this.interruptAIWorkerConversation(),this),this.playPrologue=()=>{this.opts.prologue&&this.opts.prologue.length>0?this.playFromFullText(this.opts.prologue):this.agentService.query("").catch(as)},this.query=async(e,r)=>{if(this.checkServiceReady()&&(this.agentService.sessionId||this.agentService.setSessionId(ao()),this.digitalHumanService.sendSilenceMessage(),this.agentService.queryId||this.agentService.setQueryId(ao()),!this.agentService.checkIsRepeat()&&(r&&this.agentService.setLastQueryId(this.agentService.queryId),await this.emitter.emit("asr_message",{text:e,completed:r,id:this.agentService.queryId,sessionId:this.agentService.sessionId}),await this.handleClientConversation(e),r))){this.asrService.mute(!0);let r=async()=>{this.agentService.setQueryId(""),this.digitalHumanService.canInterrupt&&(this.asrService.tryUnmuteAsr(),await this.emitter.emit("asr_start"),this.digitalHumanService.emitter.off("render_subtitle",r))};this.digitalHumanService.emitter.on("render_subtitle",r);let i=async()=>{this.agentService.setQueryId(""),this.asrService.tryUnmuteAsr(),await this.emitter.emit("asr_start"),this.digitalHumanService.emitter.off("render_finished",i)};this.digitalHumanService.emitter.on("render_finished",i),this.handleClientConversationCompleted(),this.queryStartTime=performance.now(),await this.agentService.query(e)}},this.input=e=>(this.digitalHumanService.isRendering&&!this.interruptible||this.query(e,!0).catch(as),this),this.dispose=()=>(this.agentService.dispose(),this.asrService.dispose(),this.digitalHumanService.dispose(),this.conversationService.dispose(),this.emitter.clearListeners(),this.isDigitalHumanServiceReady=!1,this.isAsrServiceReady=!1,this.aiWorkerMessageCache=null,this.isRenderingMultiModConversation=!1,this.multiModAbortControllers=[],this.lastReplyStartRequestId=null,this.hasRenderStartTriggered=!1,this),this.setInterruptible=e=>(this.interruptible=e,this),this.checkAudioDevice=async e=>this.asrService.checkAudioDevice(e),this.bindAsrServiceEvents=()=>{this.asrService.emitter.on("start",this.handleAsrServiceStarted),this.asrService.emitter.on("message",this.handleAsrMessage),this.asrService.emitter.on("device_check_completed",this.handleDeviceCheckCompleted)},this.bindAgentServiceEvents=()=>{this.agentService.emitter.on("data",this.handleAgentAnswer),this.agentService.emitter.on("completed",this.handleAgentAnswerCompleted),this.agentService.emitter.on("instruction_received",this.handleAgentInstructionReceived),this.agentService.emitter.on("usage_quota_reached",async e=>{await this.emitter.emit("busy",{...e})}),this.agentService.emitter.on("ttft",this.handleTtft)},this.bindDigitalHumanServiceEvents=()=>{this.digitalHumanService.bindEvents(),this.digitalHumanService.emitter.once("ready").then(()=>{this.isDigitalHumanServiceReady=!0,this.checkServiceReady()}),this.digitalHumanService.emitter.on("render_subtitle",this.aiWorkerSubtitleToConversation),this.digitalHumanService.emitter.on("is_rendering_change",e=>{this.asrService.setPlaybackSuppressionEnabled(e),this.emitter.emit("is_rendering_change",e).catch(as)}),this.digitalHumanService.emitter.on("render_subtitle",async e=>{this.hasRenderStartTriggered=!0,await this.emitter.emit("render_start",{...e,sessionId:this.agentService.sessionId,queryId:this.agentService.queryId});let{requestId:r}=e;if(r!==this.lastReplyStartRequestId){this.lastReplyStartRequestId=r;let i=this.agentService.getResponseManager().getLastResponse();this.emitter.emit("reply_start",{agentResponse:i,latency:e.latency,requestId:e.requestId}).catch(as)}}),this.digitalHumanService.emitter.on("disconnect_alert",e=>{let r=this.digitalHumanService.emitter.on("render_finished",()=>{this.asrService.mute(!0),this.emitter.emit("inactivity",e).catch(as),r()}),i=this.digitalHumanService.emitter.on("send_silence_message",()=>{r(),i()});this.playFromFullText(this.opts.inactivityPrompt)}),this.digitalHumanService.emitter.on("reach_session_limit",async e=>{this.isDigitalHumanServiceReady&&this.isAsrServiceReady&&await this.emitter.emit("busy",{...e})}),this.digitalHumanService.emitter.on("reconnect_failed",async()=>{await this.emitter.emit("busy",{requestId:"reconnect_failed"})});let e=this.digitalHumanService.emitter.on("render_finished",()=>{this.asrService.tryUnmuteAsr(),e()})},this.bindErrorEvents=()=>{this.errorManager.on(e=>{let r=this.errorManager.createMonitoringError(e);this.emitter.emit("error",e).catch(as);try{this.weirwood.error.captureException(r)}catch(e){console.error(e)}})},this.bindEvents=()=>{this.bindErrorEvents(),this.bindAsrServiceEvents(),this.bindAgentServiceEvents(),this.bindDigitalHumanServiceEvents()},this.registerFormatters=()=>{var e,r;let i=null!=(e=this.opts.speechFormatters)?e:[],n=null!=(r=this.opts.conversationFormatters)?r:[];for(let e of i)this.digitalHumanService.registerSSMLHandler(e);for(let e of n)this.conversationService.registerAIWorkerConversationFormatter(e)},this.aiWorkerSubtitleToConversation=async e=>{let r=e.subtitle;if(this.isRenderingMultiModConversation)return;let i=this.conversationService;await this.createNewAIWorkerConversation();let n=i.currentAIWorkerConversation;n&&this.handleAIWorkerConversationChange(n);let o=i.runAIWorkerConversationFormatters(r.content);if(null==n||n.appendText(o),r.completed){let e=i.currentAIWorkerConversation;e&&e.markAsEnded(),i.setCurrentConversation(null)}},this.handleAgentAnswer=e=>{let{answer:r}=e;dh.isXml(r)?this.handleXmlAgentAnswer(e).catch(as):(this.aiWorkerMessageCache&&this.playFromStreamText(this.aiWorkerMessageCache,!1),this.aiWorkerMessageCache=r)},this.handleXmlAgentAnswer=async e=>{let{answer:r}=e,i=this.conversationService;await this.createNewAIWorkerConversation();let n=i.currentAIWorkerConversation;if(!n)return;let o=()=>{this.emitter.emit("conversation_change",{...n.toJSON(),text:n.fulltext,completed:!1})};n.emitter.on("content_change",o),this.isRenderingMultiModConversation=!0;let s=i.runAIWorkerConversationFormatters(r),a=n.createContentsFromXmlString(s),c=new AbortController;for(let e of(this.multiModAbortControllers.push(c),a)){if(c.signal.aborted){n.emitter.off("content_change",o);break}if(df.isTextContent(e)){let r=e.getConfig().content;this.playFromFullText(r),await this.digitalHumanService.emitter.once("render_subtitle")}n.addContentRenderTask(e),n.contents.push(e),await n.emitter.once("queue_empty")}n.markAsEnded(),this.isRenderingMultiModConversation=!1,n.emitter.off("content_change",o),await this.emitter.emit("conversation_change",{...n.toJSON(),text:n.fulltext,completed:!0})},this.createNewAIWorkerConversation=async()=>{let e=this.conversationService;if(!e.currentAIWorkerConversation){let r=df.create(this.opts);e.setCurrentConversation(r),e.add(r),await this.emitter.emit("conversation_add",r)}},this.handleAgentAnswerCompleted=async()=>{if(this.aiWorkerMessageCache){this.playFromStreamText(this.aiWorkerMessageCache,!0),this.aiWorkerMessageCache=null;return}this.agentService.setQueryId(""),this.asrService.tryUnmuteAsr(),await this.emitter.emit("asr_start")},this.handleAgentInstructionReceived=e=>{this.emitter.emit("instruction_received",e).catch(as)},this.handleTtft=async e=>{let r=e.timestamp-this.queryStartTime;await this.emitter.emit("ttft",{...e,totalLatency:r})},this.handleAsrServiceStarted=async()=>{if("baidu"===this.opts.asr.provider&&await lG(800),this.asrService.mute(!0),this.interruptible){if(this.hasRenderStartTriggered)return void this.asrService.tryUnmuteAsr();this.emitter.once("render_start").then(()=>{this.asrService.tryUnmuteAsr()})}},this.handleAsrMessage=async e=>{this.digitalHumanService.isRendering&&!this.digitalHumanService.canInterrupt||this.asrService.mutedByUser||e.type===p0.EMessageType.Query&&(this.opts.enableDebugMode&&console.log("message",e,this.agentService.sessionId,Date.now()),await this.query(af(e.data,this.opts.hotWordReplacementRules),e.completed))},this.handleDeviceCheckCompleted=async e=>{await this.emitter.emit("microphone_available",{available:e.available,error:e.error,userMessage:e.error?lD(e.error):void 0,devices:e.devices,permissionState:e.permissionState})},this.handleClientConversation=async e=>{let r=this.conversationService;if(!r.currentClientConversation){let e=a_.create(this.opts);r.setCurrentConversation(e),r.add(e),await this.emitter.emit("conversation_add",e)}let i=r.currentClientConversation;(this.digitalHumanService.isRendering||this.isRenderingMultiModConversation)&&this.interruptAIWorkerConversation(),null==i||i.appendText(e)},this.handleClientConversationCompleted=()=>{this.conversationService.setCurrentConversation(null)},this.interruptAIWorkerConversation=()=>{for(let e of(this.aiWorkerMessageCache&&this.digitalHumanService.renderStreamText(this.aiWorkerMessageCache,!0),this.multiModAbortControllers))e.abort();this.multiModAbortControllers=[];let e=this.digitalHumanService.GetRequestId();this.digitalHumanService.interrupt(),this.conversationService.interruptAll(),this.agentService.abort(),this.aiWorkerMessageCache=null,this.emitter.emit("interrupt",{requestId:e,queryId:this.agentService.queryId?this.agentService.queryId:this.agentService.lastQueryId,sessionId:this.agentService.sessionId}).catch(as)},this.checkServiceReady=()=>!!this.isDigitalHumanServiceReady&&!!this.isAsrServiceReady&&(this.emitter.emit("ready").catch(as),!0),this.handleAIWorkerConversationChange=e=>{let r=i=>{this.emitter.emit("conversation_change",{...e.toJSON(),text:e.fulltext,completed:i.completed}).catch(as),i.completed&&e.emitter.off("content_change",r)},i=()=>{e.emitter.off("interrupt",i),e.emitter.off("content_change",r)};e.emitter.on("content_change",r),e.emitter.on("interrupt",i)},this.weirwood=new lI({common:{buildid:"AAAS_PILOT_KIT_1.0.0",token:"8f3abab4743f4114bd632999224323af"},error:{collectWindowErrors:!1,collectUnhandledRejections:!1,collectResourceLoadErrors:!1,ignoreUrls:["localhost","127.0.0.1"]},perf:{disable:!0}}),this.emitter=new oy(this.opts.enableDebugMode?{debug:{name:l6.ENTRY_EMITTER_NAME,enabled:!0}}:void 0),this.bindEvents(),this.registerFormatters(),this.interruptible=this.opts.interruptible}}l6.ENTRY_EMITTER_NAME="AaaSPilotKitEmitter",l6=function(e,r,i,n){var o,s=arguments.length,a=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,i,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(s<3?o(a):s>3?o(r,i,a):o(r,i))||a);return s>3&&a&&Object.defineProperty(r,i,a),a}([e5(),l4(0,e3(oS.IOptions)),l4(0,tt()),l4(1,e3(oS.ErrorManager)),l4(2,e3(oS.AgentService)),l4(3,e3(oS.ASRService)),l4(4,e3(oS.DigitalHumanService)),l4(5,e3(oS.ConversationService)),l3("design:type",Function),l3("design:paramtypes",["undefined"==typeof IResolvedOptions?Object:IResolvedOptions,void 0===at?Object:at,"undefined"==typeof AS?Object:AS,void 0===lH?Object:lH,void 0===lV?Object:lV,void 0===dg?Object:dg])],l6);class l5 extends Error{constructor(e,r){super(e),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}}function l8(e){}var l9={"../../node_modules/core-js/internals/a-callable.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js"),o=i("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(o(e)+" is not a function")}},"../../node_modules/core-js/internals/an-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-object.js"),o=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(o(e)+" is not an object")}},"../../node_modules/core-js/internals/array-includes.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-indexed-object.js"),o=i("../../node_modules/core-js/internals/to-absolute-index.js"),s=i("../../node_modules/core-js/internals/length-of-array-like.js"),a=function(e){return function(r,i,a){var c,d=n(r),l=s(d);if(0===l)return!e&&-1;var u=o(a,l);if(e&&i!=i){for(;l>u;)if((c=d[u++])!=c)return!0}else for(;l>u;u++)if((e||u in d)&&d[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"../../node_modules/core-js/internals/classof-raw.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=n({}.toString),s=n("".slice);e.exports=function(e){return s(o(e),8,-1)}},"../../node_modules/core-js/internals/copy-constructor-properties.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/has-own-property.js"),o=i("../../node_modules/core-js/internals/own-keys.js"),s=i("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=i("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,r,i){for(var c=o(r),d=a.f,l=s.f,u=0;u<c.length;u++){var p=c[u];n(e,p)||i&&n(i,p)||d(e,p,l(r,p))}}},"../../node_modules/core-js/internals/create-non-enumerable-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/object-define-property.js"),s=i("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,r,i){return o.f(e,r,s(1,i))}:function(e,r,i){return e[r]=i,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},"../../node_modules/core-js/internals/define-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js"),o=i("../../node_modules/core-js/internals/object-define-property.js"),s=i("../../node_modules/core-js/internals/make-built-in.js"),a=i("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,r,i,c){c||(c={});var d=c.enumerable,l=void 0!==c.name?c.name:r;if(n(i)&&s(i,l,c),c.global)d?e[r]=i:a(r,i);else{try{c.unsafe?e[r]&&(d=!0):delete e[r]}catch(e){}d?e[r]=i:o.f(e,r,{value:i,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return e}},"../../node_modules/core-js/internals/define-global-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=Object.defineProperty;e.exports=function(e,r){try{o(n,e,{value:r,configurable:!0,writable:!0})}catch(i){n[e]=r}return r}},"../../node_modules/core-js/internals/descriptors.js":function(e,r,i){e.exports=!i("../../node_modules/core-js/internals/fails.js")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=n.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},"../../node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/environment-user-agent.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js").navigator,o=n&&n.userAgent;e.exports=o?String(o):""},"../../node_modules/core-js/internals/environment-v8-version.js":function(e,r,i){var n,o,s=i("../../node_modules/core-js/internals/global-this.js"),a=i("../../node_modules/core-js/internals/environment-user-agent.js"),c=s.process,d=s.Deno,l=c&&c.versions||d&&d.version,u=l&&l.v8;u&&(o=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},"../../node_modules/core-js/internals/export.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),a=i("../../node_modules/core-js/internals/define-built-in.js"),c=i("../../node_modules/core-js/internals/define-global-property.js"),d=i("../../node_modules/core-js/internals/copy-constructor-properties.js"),l=i("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,r){var i,u,p,h,f,m=e.target,g=e.global,y=e.stat;if(i=g?n:y?n[m]||c(m,{}):n[m]&&n[m].prototype)for(u in r){if(h=r[u],p=e.dontCallGetSet?(f=o(i,u))&&f.value:i[u],!l(g?u:m+(y?".":"#")+u,e.forced)&&void 0!==p){if(typeof h==typeof p)continue;d(h,p)}(e.sham||p&&p.sham)&&s(h,"sham",!0),a(i,u,h,e)}}},"../../node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/function-bind-native.js":function(e,r,i){e.exports=!i("../../node_modules/core-js/internals/fails.js")(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},"../../node_modules/core-js/internals/function-name.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(s,"name"),d=c&&(!n||n&&a(s,"name").configurable);e.exports={EXISTS:c,PROPER:c&&"something"===(function(){}).name,CONFIGURABLE:d}},"../../node_modules/core-js/internals/function-uncurry-this.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype,s=o.call,a=n&&o.bind.bind(s,s);e.exports=n?a:function(e){return function(){return s.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,r){var i;return arguments.length<2?o(i=n[e])?i:void 0:n[e]&&n[e][r]}},"../../node_modules/core-js/internals/get-method.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/a-callable.js"),o=i("../../node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,r){var i=e[r];return o(i)?void 0:n(i)}},"../../node_modules/core-js/internals/global-this.js":function(e,r,i){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/to-object.js"),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,r){return s(o(e),r)}},"../../node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"../../node_modules/core-js/internals/ie8-dom-define.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/indexed-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/classof-raw.js"),a=Object,c=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?c(e,""):a(e)}:a},"../../node_modules/core-js/internals/inspect-source.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/shared-store.js"),a=n(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":function(e,r,i){var n,o,s,a=i("../../node_modules/core-js/internals/weak-map-basic-detection.js"),c=i("../../node_modules/core-js/internals/global-this.js"),d=i("../../node_modules/core-js/internals/is-object.js"),l=i("../../node_modules/core-js/internals/create-non-enumerable-property.js"),u=i("../../node_modules/core-js/internals/has-own-property.js"),p=i("../../node_modules/core-js/internals/shared-store.js"),h=i("../../node_modules/core-js/internals/shared-key.js"),f=i("../../node_modules/core-js/internals/hidden-keys.js"),m="Object already initialized",g=c.TypeError,y=c.WeakMap;if(a||p.state){var b=p.state||(p.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,r){if(b.has(e))throw new g(m);return r.facade=e,b.set(e,r),r},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var S=h("state");f[S]=!0,n=function(e,r){if(u(e,S))throw new g(m);return r.facade=e,l(e,S,r),r},o=function(e){return u(e,S)?e[S]:{}},s=function(e){return u(e,S)}}e.exports={set:n,get:o,has:s,enforce:function(e){return s(e)?o(e):n(e,{})},getterFor:function(e){return function(r){var i;if(!d(r)||(i=o(r)).type!==e)throw new g("Incompatible receiver, "+e+" required");return i}}}},"../../node_modules/core-js/internals/is-callable.js":function(e){var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-forced.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/fails.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=/#|\.prototype\./,a=function(e,r){var i=d[c(e)];return i===u||i!==l&&(o(r)?n(r):!!r)},c=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},d=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},"../../node_modules/core-js/internals/is-null-or-undefined.js":function(e){e.exports=function(e){return null==e}},"../../node_modules/core-js/internals/is-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},"../../node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"../../node_modules/core-js/internals/is-symbol.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/get-built-in.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/object-is-prototype-of.js"),a=i("../../node_modules/core-js/internals/use-symbol-as-uid.js"),c=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var r=n("Symbol");return o(r)&&s(r.prototype,c(e))}},"../../node_modules/core-js/internals/length-of-array-like.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return n(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/is-callable.js"),a=i("../../node_modules/core-js/internals/has-own-property.js"),c=i("../../node_modules/core-js/internals/descriptors.js"),d=i("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,l=i("../../node_modules/core-js/internals/inspect-source.js"),u=i("../../node_modules/core-js/internals/internal-state.js"),p=u.enforce,h=u.get,f=String,m=Object.defineProperty,g=n("".slice),y=n("".replace),b=n([].join),S=c&&!o(function(){return 8!==m(function(){},"length",{value:8}).length}),C=String(String).split("String"),_=e.exports=function(e,r,i){"Symbol("===g(f(r),0,7)&&(r="["+y(f(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!a(e,"name")||d&&e.name!==r)&&(c?m(e,"name",{value:r,configurable:!0}):e.name=r),S&&i&&a(i,"arity")&&e.length!==i.arity&&m(e,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?c&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=p(e);return a(n,"source")||(n.source=b(C,"string"==typeof r?r:"")),e};Function.prototype.toString=_(function(){return s(this)&&h(this).source||l(this)},"toString")},"../../node_modules/core-js/internals/math-trunc.js":function(e){var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:r)(n)}},"../../node_modules/core-js/internals/object-define-property.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/ie8-dom-define.js"),s=i("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),a=i("../../node_modules/core-js/internals/an-object.js"),c=i("../../node_modules/core-js/internals/to-property-key.js"),d=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",f="writable";r.f=n?s?function(e,r,i){if(a(e),r=c(r),a(i),"function"==typeof e&&"prototype"===r&&"value"in i&&f in i&&!i[f]){var n=u(e,r);n&&n[f]&&(e[r]=i.value,i={configurable:h in i?i[h]:n[h],enumerable:p in i?i[p]:n[p],writable:!1})}return l(e,r,i)}:l:function(e,r,i){if(a(e),r=c(r),a(i),o)try{return l(e,r,i)}catch(e){}if("get"in i||"set"in i)throw new d("Accessors not supported");return"value"in i&&(e[r]=i.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/function-call.js"),s=i("../../node_modules/core-js/internals/object-property-is-enumerable.js"),a=i("../../node_modules/core-js/internals/create-property-descriptor.js"),c=i("../../node_modules/core-js/internals/to-indexed-object.js"),d=i("../../node_modules/core-js/internals/to-property-key.js"),l=i("../../node_modules/core-js/internals/has-own-property.js"),u=i("../../node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(e,r){if(e=c(e),r=d(r),u)try{return p(e,r)}catch(e){}if(l(e,r))return a(!o(s.f,e,r),e[r])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/object-keys-internal.js"),o=i("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,r){r.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-is-prototype-of.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/function-uncurry-this.js")({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=i("../../node_modules/core-js/internals/has-own-property.js"),s=i("../../node_modules/core-js/internals/to-indexed-object.js"),a=i("../../node_modules/core-js/internals/array-includes.js").indexOf,c=i("../../node_modules/core-js/internals/hidden-keys.js"),d=n([].push);e.exports=function(e,r){var i,n=s(e),l=0,u=[];for(i in n)!o(c,i)&&o(n,i)&&d(u,i);for(;r.length>l;)o(n,i=r[l++])&&(~a(u,i)||d(u,i));return u}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":function(e,r){var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;r.f=n&&!i.call({1:2},1)?function(e){var r=n(this,e);return!!r&&r.enumerable}:i},"../../node_modules/core-js/internals/ordinary-to-primitive.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=i("../../node_modules/core-js/internals/is-object.js"),a=TypeError;e.exports=function(e,r){var i,c;if("string"===r&&o(i=e.toString)&&!s(c=n(i,e))||o(i=e.valueOf)&&!s(c=n(i,e))||"string"!==r&&o(i=e.toString)&&!s(c=n(i,e)))return c;throw new a("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/get-built-in.js"),o=i("../../node_modules/core-js/internals/function-uncurry-this.js"),s=i("../../node_modules/core-js/internals/object-get-own-property-names.js"),a=i("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),c=i("../../node_modules/core-js/internals/an-object.js"),d=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var r=s.f(c(e)),i=a.f;return i?d(r,i(e)):r}},"../../node_modules/core-js/internals/require-object-coercible.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-null-or-undefined.js"),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/shared-key.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/shared.js"),o=i("../../node_modules/core-js/internals/uid.js"),s=n("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},"../../node_modules/core-js/internals/shared-store.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/is-pure.js"),o=i("../../node_modules/core-js/internals/global-this.js"),s=i("../../node_modules/core-js/internals/define-global-property.js"),a="__core-js_shared__",c=e.exports=o[a]||s(a,{});(c.versions||(c.versions=[])).push({version:"3.44.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/shared.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/shared-store.js");e.exports=function(e,r){return n[e]||(n[e]=r||{})}},"../../node_modules/core-js/internals/symbol-constructor-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/environment-v8-version.js"),o=i("../../node_modules/core-js/internals/fails.js"),s=i("../../node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},"../../node_modules/core-js/internals/to-absolute-index.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.max,s=Math.min;e.exports=function(e,r){var i=n(e);return i<0?o(i+r,0):s(i,r)}},"../../node_modules/core-js/internals/to-indexed-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/indexed-object.js"),o=i("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(o(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var r=+e;return r!=r||0===r?0:n(r)}},"../../node_modules/core-js/internals/to-length.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.min;e.exports=function(e){var r=n(e);return r>0?o(r,0x1fffffffffffff):0}},"../../node_modules/core-js/internals/to-object.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/require-object-coercible.js"),o=Object;e.exports=function(e){return o(n(e))}},"../../node_modules/core-js/internals/to-primitive.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-call.js"),o=i("../../node_modules/core-js/internals/is-object.js"),s=i("../../node_modules/core-js/internals/is-symbol.js"),a=i("../../node_modules/core-js/internals/get-method.js"),c=i("../../node_modules/core-js/internals/ordinary-to-primitive.js"),d=i("../../node_modules/core-js/internals/well-known-symbol.js"),l=TypeError,u=d("toPrimitive");e.exports=function(e,r){if(!o(e)||s(e))return e;var i,d=a(e,u);if(d){if(void 0===r&&(r="default"),!o(i=n(d,e,r))||s(i))return i;throw new l("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(e,r)}},"../../node_modules/core-js/internals/to-property-key.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/to-primitive.js"),o=i("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var r=n(e,"string");return o(r)?r:r+""}},"../../node_modules/core-js/internals/try-to-string.js":function(e){var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/uid.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/function-uncurry-this.js"),o=0,s=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},"../../node_modules/core-js/internals/use-symbol-as-uid.js":function(e,r,i){e.exports=i("../../node_modules/core-js/internals/symbol-constructor-detection.js")&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/descriptors.js"),o=i("../../node_modules/core-js/internals/fails.js");e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/weak-map-basic-detection.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/is-callable.js"),s=n.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},"../../node_modules/core-js/internals/well-known-symbol.js":function(e,r,i){var n=i("../../node_modules/core-js/internals/global-this.js"),o=i("../../node_modules/core-js/internals/shared.js"),s=i("../../node_modules/core-js/internals/has-own-property.js"),a=i("../../node_modules/core-js/internals/uid.js"),c=i("../../node_modules/core-js/internals/symbol-constructor-detection.js"),d=i("../../node_modules/core-js/internals/use-symbol-as-uid.js"),l=n.Symbol,u=o("wks"),p=d?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(u,e)||(u[e]=c&&s(l,e)?l[e]:p("Symbol."+e)),u[e]}},"../../node_modules/core-js/modules/es.object.has-own.js":function(e,r,i){i("../../node_modules/core-js/internals/export.js")({target:"Object",stat:!0},{hasOwn:i("../../node_modules/core-js/internals/has-own-property.js")})}},l7={};function ue(e){var r=l7[e];if(void 0!==r)return r.exports;var i=l7[e]={exports:{}};return l9[e].call(i.exports,i,i.exports,ue),i.exports}ue.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return Function("return this")()}catch(e){if("object"==typeof window)return window}})(),ue("../../node_modules/core-js/modules/es.object.has-own.js");let ut=e=>async(r,i,n)=>{if(!n.ok||!n.body)return;let o=!1,s=r=>{var i;o||(o=!0,null==(i=e.onCompleted)||i.call(e,r))},a=n.body.getReader(),c=new TextDecoder("utf8"),d=function(e){if("function"==typeof e)throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:r=l8,onError:i=l8,onRetry:n=l8,onComment:o}=e,s="",a=!0,c,d="",l="";function u(e){if(""===e)return void(d.length>0&&r({id:c,event:l||void 0,data:d.endsWith(`
27
27
  `)?d.slice(0,-1):d}),c=void 0,d="",l="");if(e.startsWith(":")){o&&o(e.slice(e.startsWith(": ")?2:1));return}let i=e.indexOf(":");if(-1!==i){let r=e.slice(0,i),n=" "===e[i+1]?2:1;p(r,e.slice(i+n),e);return}p(e,"",e)}function p(e,r,o){switch(e){case"event":l=r;break;case"data":d=`${d}${r}
28
28
  `;break;case"id":c=r.includes("\0")?void 0:r;break;case"retry":/^\d+$/.test(r)?n(parseInt(r,10)):i(new l5(`Invalid \`retry\` value: "${r}"`,{type:"invalid-retry",value:r,line:o}));break;default:i(new l5(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:r,line:o}))}}return{feed:function(e){let r=a?e.replace(/^\xEF\xBB\xBF/,""):e,[i,n]=function(e){let r=[],i="",n=0;for(;n<e.length;){let o=e.indexOf("\r",n),s=e.indexOf(`
29
29
  `,n),a=-1;if(-1!==o&&-1!==s?a=Math.min(o,s):-1!==o?a=o===e.length-1?-1:o:-1!==s&&(a=s),-1===a){i=e.slice(n);break}{let i=e.slice(n,a);r.push(i),"\r"===e[(n=a+1)-1]&&e[n]===`