genesys-cloud-streaming-client 17.2.7 → 17.2.8-develop.120
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/cjs/client.d.ts +2 -0
- package/dist/cjs/client.js +45 -16
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/types/interfaces.d.ts +4 -0
- package/dist/cjs/types/interfaces.js +6 -1
- package/dist/cjs/utils.d.ts +6 -0
- package/dist/cjs/utils.js +20 -1
- package/dist/deploy-info.json +5 -5
- package/dist/es/client.d.ts +2 -0
- package/dist/es/client.js +46 -17
- package/dist/es/index.bundle.js +76 -26
- package/dist/es/index.d.ts +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/types/interfaces.d.ts +4 -0
- package/dist/es/types/interfaces.js +5 -0
- package/dist/es/utils.d.ts +6 -0
- package/dist/es/utils.js +18 -0
- package/dist/npm/CHANGELOG.md +6 -0
- package/dist/npm/client.d.ts +2 -0
- package/dist/npm/client.js +45 -16
- package/dist/npm/index.d.ts +1 -1
- package/dist/npm/index.js +2 -1
- package/dist/npm/module.js +1 -1
- package/dist/npm/types/interfaces.d.ts +4 -0
- package/dist/npm/types/interfaces.js +6 -1
- package/dist/npm/utils.d.ts +6 -0
- package/dist/npm/utils.js +20 -1
- package/dist/streaming-client.browser.ie.js +6 -6
- package/dist/streaming-client.browser.js +6 -6
- package/dist/v17/streaming-client.browser.ie.js +6 -6
- package/dist/v17/streaming-client.browser.js +6 -6
- package/dist/v17.2.8/streaming-client.browser.ie.js +32 -0
- package/dist/v17.2.8/streaming-client.browser.js +32 -0
- package/package.json +119 -117
- package/dist/v17.2.7/streaming-client.browser.ie.js +0 -32
- package/dist/v17.2.7/streaming-client.browser.js +0 -32
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
window.GenesysCloudStreamingClient=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return 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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=204)}([function(e,t,n){"use strict";(function(e,r,i){n(6),n(30);var s=n(38);const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,c=(u=Object.create(null),e=>{const t=o.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const l=e=>(e=e.toLowerCase(),t=>c(t)===e),d=e=>t=>typeof t===e,{isArray:p}=Array,h=d("undefined");const f=l("ArrayBuffer");const m=d("string"),g=d("function"),y=d("number"),b=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==c(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},_=l("Date"),S=l("File"),w=l("Blob"),T=l("FileList"),I=l("URLSearchParams"),[A,N,E,x]=["ReadableStream","Request","Response","Headers"].map(l);function R(e,t){let n,r,{allOwnKeys:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e)if("object"!=typeof e&&(e=[e]),p(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=i?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let o;for(n=0;n<s;n++)o=r[n],t.call(null,e[o],o,e)}}function C(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,P=e=>!h(e)&&e!==O;const k=(j="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>j&&e instanceof j);var j;const M=l("HTMLFormElement"),L=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),D=l("RegExp"),B=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};R(n,(n,i)=>{let s;!1!==(s=t(n,i,e))&&(r[i]=s||n)}),Object.defineProperties(e,r)},F="abcdefghijklmnopqrstuvwxyz",q={DIGIT:"0123456789",ALPHA:F,ALPHA_DIGIT:F+F.toUpperCase()+"0123456789"};const U=l("AsyncFunction"),J=(z="function"==typeof r,G=g(O.postMessage),z?r:G?(H="axios@"+Math.random(),V=[],O.addEventListener("message",e=>{let{source:t,data:n}=e;t===O&&n===H&&V.length&&V.shift()()},!1),e=>{V.push(e),O.postMessage(H,"*")}):e=>setTimeout(e));var z,G,H,V;const W="undefined"!=typeof queueMicrotask?queueMicrotask.bind(O):void 0!==i&&i.nextTick||J;t.a={isArray:p,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=c(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:m,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:v,isReadableStream:A,isRequest:N,isResponse:E,isHeaders:x,isUndefined:h,isDate:_,isFile:S,isBlob:w,isRegExp:D,isFunction:g,isStream:e=>b(e)&&g(e.pipe),isURLSearchParams:I,isTypedArray:k,isFileList:T,forEach:R,merge:function e(){const{caseless:t}=P(this)&&this||{},n={},r=(r,i)=>{const s=t&&C(n,i)||i;v(n[s])&&v(r)?n[s]=e(n[s],r):v(r)?n[s]=e({},r):p(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&R(arguments[e],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return R(t,(t,r)=>{n&&g(t)?e[r]=Object(s.a)(t,n):e[r]=t},{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,s,o;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],r&&!r(o,e,t)||c[o]||(t[o]=e[o],c[o]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:B,freezeMethods:e=>{B(e,(t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:C,global:O,isContextDefined:P,ALPHABET:q,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=p(e)?[]:{};return R(e,(e,t)=>{const s=n(e,r+1);!h(s)&&(i[t]=s)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:U,isThenable:e=>e&&(b(e)||g(e))&&g(e.then)&&g(e.catch),setImmediate:J,asap:W}}).call(this,n(12),n(232).setImmediate,n(22))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NS_AVATAR_METADATA=t.NS_AVATAR_DATA=t.NS_ROSTER_DELIMITER=t.NS_GEOLOC=t.NS_AMP=t.NS_INBAND_REGISTRATION=t.NS_REGISTER=t.NS_XHTML_IM=t.NS_XHTML=t.NS_HTTP_AUTH=t.NS_OOB_TRANSFER=t.NS_OOB=t.NS_SOCKS5=t.NS_PUBSUB_OWNER=t.NS_PUBSUB_EVENT=t.NS_PUBSUB_ERRORS=t.NS_PUBSUB=t.NS_RSM=t.NS_SEARCH=t.NS_VCARD_TEMP=t.NS_ADHOC_COMMANDS=t.NS_PRIVATE=t.NS_BOOKMARKS=t.NS_IBB=t.NS_MUC_USER=t.NS_MUC_OWNER=t.NS_MUC_ADMIN=t.NS_MUC=t.NS_ADDRESS=t.NS_DISCO_ITEMS=t.NS_DISCO_INFO=t.NS_LEGACY_CHAT_EVENTS=t.NS_PRIVACY=t.NS_LAST_ACTIVITY=t.NS_RPC=t.NS_DATAFORM=t.NS_FRAMING=t.NS_SUBSCRIPTION_PREAPPROVAL=t.NS_ROSTER_VERSIONING=t.NS_ROSTER=t.NS_STARTTLS=t.NS_STREAMS=t.NS_STREAM=t.NS_STANZAS=t.NS_SESSION=t.NS_SERVER=t.NS_SASL=t.NS_CLIENT=t.NS_BIND=t.NS_ATOM=void 0,t.NS_JINGLE_FILE_TRANSFER_4=t.NS_JINGLE_FILE_TRANSFER_3=t.NS_SOFTWARE_INFO=t.NS_BOB=t.NS_ATTENTION_0=t.NS_DATAFORM_MEDIA=t.NS_DISCO_EXTERNAL_2=t.NS_DISCO_EXTERNAL_1=t.NS_BOSH_XMPP=t.NS_DELAY=t.NS_TIME=t.NS_PING=t.NS_SMACKS_3=t.NS_BLOCKING_ERRORS=t.NS_BLOCKING=t.NS_INVISIBLE_0=t.NS_RECEIPTS=t.NS_JINGLE_RAW_UDP_1=t.NS_JINGLE_ICE_UDP_1=t.NS_NICK=t.NS_LANG_TRANS_ITEMS=t.NS_LANG_TRANS=t.NS_JINGLE_RTP_VIDEO=t.NS_JINGLE_RTP_AUDIO=t.NS_JINGLE_RTP_INFO_1=t.NS_JINGLE_RTP_ERRORS_1=t.NS_JINGLE_RTP_1=t.NS_JINGLE_ERRORS_1=t.NS_JINGLE_1=t.NS_PEP_NOTIFY=t.NS_CAPTCHA=t.NS_ALT_CONNECTIONS_XBOSH=t.NS_ALT_CONNECTIONS_WEBSOCKET=t.NS_VCARD_TEMP_UPDATE=t.NS_REACH_0=t.NS_ROSTER_NOTES=t.NS_ROSTER_EXCHANGE=t.NS_DATAFORM_LAYOUT=t.NS_COMPRESSION=t.NS_COMPRESSION_FEATURE=t.NS_SHIM=t.NS_BOSH=t.NS_DATAFORM_VALIDATION=t.NS_TUNE=t.NS_DISCO_LEGACY_CAPS=t.NS_COMPONENT=t.NS_ACTIVITY=t.NS_MOOD=t.NS_VERSION=t.NS_CHAT_STATES=void 0,t.NS_OMEMO_AXOLOTL=t.NS_SPOILER_0=t.NS_EME_0=t.NS_REFERENCE_0=t.NS_JINGLE_ICE_0=t.NS_JINGLE_HTTP_UPLOAD_0=t.NS_JINGLE_HTTP_0=t.NS_HTTP_UPLOAD_0=t.NS_SID_0=t.NS_JINGLE_PUB_1=t.NS_PUSH_0=t.NS_DELEGATION_1=t.NS_JINGLE_MSG_INITIATE_0=t.NS_CSI_0=t.NS_JINGLE_DTLS_SCTP_1=t.NS_JINGLE_RTP_SSMA_0=t.NS_JINGLE_GROUPING_0=t.NS_JSON_0=t.NS_HINTS=t.NS_CHAT_MARKERS_0=t.NS_JINGLE_DTLS_0=t.NS_IDLE_1=t.NS_HATS_0=t.NS_MAM_2=t.NS_MAM_1=t.NS_MAM_0=t.NS_MAM_TMP=t.NS_PSA=t.NS_CORRECTION_0=t.NS_MUC_UNIQUE=t.NS_RTT_0=t.NS_HASH_NAME=t.NS_HASHES_2=t.NS_HASHES_1=t.NS_FORWARD_0=t.NS_JINGLE_RTP_HDREXT_0=t.NS_JINGLE_RTP_RTCP_FB_0=t.NS_CARBONS_2=t.NS_DECLOAKING_0=t.NS_THUMBS_1=t.NS_THUMBS_0=t.NS_JINGLE_RTP_ZRTP_1=t.NS_JINGLE_IBB_1=t.NS_JINGLE_SOCKS5_1=t.NS_SEC_LABEL_ESS_0=t.NS_SEC_LABEL_CATALOG_2=t.NS_SEC_LABEL_0=t.NS_MUC_DIRECT_INVITE=t.NS_JINGLE_XML_0=t.NS_JINGLE_FILE_TRANSFER_5=void 0,t.NS_JINGLE_RTP_MSID_0=t.NS_XRD=t.NS_JSON_MESSAGE_0=t.NS_OMEMO_AXOLOTL_BUNDLE=t.NS_OMEMO_AXOLOTL_BUNDLES=t.NS_OMEMO_AXOLOTL_DEVICELIST=void 0,t.NS_ATOM="http://www.w3.org/2005/Atom",t.NS_BIND="urn:ietf:params:xml:ns:xmpp-bind",t.NS_CLIENT="jabber:client",t.NS_SASL="urn:ietf:params:xml:ns:xmpp-sasl",t.NS_SERVER="jabber:server",t.NS_SESSION="urn:ietf:params:xml:ns:xmpp-session",t.NS_STANZAS="urn:ietf:params:xml:ns:xmpp-stanzas",t.NS_STREAM="http://etherx.jabber.org/streams",t.NS_STREAMS="urn:ietf:params:xml:ns:xmpp-streams",t.NS_STARTTLS="urn:ietf:params:xml:ns:xmpp-tls",t.NS_ROSTER="jabber:iq:roster",t.NS_ROSTER_VERSIONING="urn:xmpp:features:rosterver",t.NS_SUBSCRIPTION_PREAPPROVAL="urn:xmpp:features:pre-approval",t.NS_FRAMING="urn:ietf:params:xml:ns:xmpp-framing",t.NS_DATAFORM="jabber:x:data",t.NS_RPC="jabber:iq:rpc",t.NS_LAST_ACTIVITY="jabber:iq:last",t.NS_PRIVACY="jabber:iq:privacy",t.NS_LEGACY_CHAT_EVENTS="jabber:x:event",t.NS_DISCO_INFO="http://jabber.org/protocol/disco#info",t.NS_DISCO_ITEMS="http://jabber.org/protocol/disco#items",t.NS_ADDRESS="http://jabber.org/protocol/address",t.NS_MUC="http://jabber.org/protocol/muc",t.NS_MUC_ADMIN="http://jabber.org/protocol/muc#admin",t.NS_MUC_OWNER="http://jabber.org/protocol/muc#owner",t.NS_MUC_USER="http://jabber.org/protocol/muc#user",t.NS_IBB="http://jabber.org/protocol/ibb",t.NS_BOOKMARKS="storage:bookmarks",t.NS_PRIVATE="jabber:iq:private",t.NS_ADHOC_COMMANDS="http://jabber.org/protocol/commands",t.NS_VCARD_TEMP="vcard-temp",t.NS_SEARCH="jabber:iq:search",t.NS_RSM="http://jabber.org/protocol/rsm",t.NS_PUBSUB="http://jabber.org/protocol/pubsub",t.NS_PUBSUB_ERRORS="http://jabber.org/protocol/pubsub#errors",t.NS_PUBSUB_EVENT="http://jabber.org/protocol/pubsub#event",t.NS_PUBSUB_OWNER="http://jabber.org/protocol/pubsub#owner",t.NS_SOCKS5="http://jabber.org/protocol/bytestreams",t.NS_OOB="jabber:x:oob",t.NS_OOB_TRANSFER="jabber:iq:oob",t.NS_HTTP_AUTH="http://jabber.org/protocol/http-auth",t.NS_XHTML="http://www.w3.org/1999/xhtml",t.NS_XHTML_IM="http://jabber.org/protocol/xhtml-im",t.NS_REGISTER="jabber:iq:register",t.NS_INBAND_REGISTRATION="http://jabber.org/features/iq-register",t.NS_AMP="http://jabber.org/protocol/amp",t.NS_GEOLOC="http://jabber.org/protocol/geoloc",t.NS_ROSTER_DELIMITER="roster:delimiter",t.NS_AVATAR_DATA="urn:xmpp:avatar:data",t.NS_AVATAR_METADATA="urn:xmpp:avatar:metadata",t.NS_CHAT_STATES="http://jabber.org/protocol/chatstates",t.NS_VERSION="jabber:iq:version",t.NS_MOOD="http://jabber.org/protocol/mood",t.NS_ACTIVITY="http://jabber.org/protocol/activity",t.NS_COMPONENT="jabber:component:accept",t.NS_DISCO_LEGACY_CAPS="http://jabber.org/protocol/caps",t.NS_TUNE="http://jabber.org/protocol/tune",t.NS_DATAFORM_VALIDATION="http://jabber.org/protocol/xdata-validate",t.NS_BOSH="http://jabber.org/protocol/httpbind",t.NS_SHIM="http://jabber.org/protocol/shim",t.NS_COMPRESSION_FEATURE="http://jabber.org/features/compress",t.NS_COMPRESSION="http://jabber.org/protocol/compress",t.NS_DATAFORM_LAYOUT="http://jabber.org/protocol/xdata-layout",t.NS_ROSTER_EXCHANGE="http://jabber.org/protocol/rosterx",t.NS_ROSTER_NOTES="storage:rosternotes",t.NS_REACH_0="urn:xmpp:reach:0",t.NS_VCARD_TEMP_UPDATE="vcard-temp:x:update",t.NS_ALT_CONNECTIONS_WEBSOCKET="urn:xmpp:alt-connections:websocket",t.NS_ALT_CONNECTIONS_XBOSH="urn:xmpp:alt-connections:xbosh",t.NS_CAPTCHA="urn:xmpp:captcha";t.NS_PEP_NOTIFY=e=>e+"+notify",t.NS_JINGLE_1="urn:xmpp:jingle:1",t.NS_JINGLE_ERRORS_1="urn:xmpp:jingle:errors:1",t.NS_JINGLE_RTP_1="urn:xmpp:jingle:apps:rtp:1",t.NS_JINGLE_RTP_ERRORS_1="urn:xmpp:jingle:apps:rtp:errors:1",t.NS_JINGLE_RTP_INFO_1="urn:xmpp:jingle:apps:rtp:info:1",t.NS_JINGLE_RTP_AUDIO="urn:xmpp:jingle:apps:rtp:audio",t.NS_JINGLE_RTP_VIDEO="urn:xmpp:jingle:apps:rtp:video",t.NS_LANG_TRANS="urn:xmpp:langtrans",t.NS_LANG_TRANS_ITEMS="urn:xmpp:langtrans:items",t.NS_NICK="http://jabber.org/protocol/nick",t.NS_JINGLE_ICE_UDP_1="urn:xmpp:jingle:transports:ice-udp:1",t.NS_JINGLE_RAW_UDP_1="urn:xmpp:jingle:transports:raw-udp:1",t.NS_RECEIPTS="urn:xmpp:receipts",t.NS_INVISIBLE_0="urn:xmpp:invisible:0",t.NS_BLOCKING="urn:xmpp:blocking",t.NS_BLOCKING_ERRORS="urn:xmpp:blocking:errors",t.NS_SMACKS_3="urn:xmpp:sm:3",t.NS_PING="urn:xmpp:ping",t.NS_TIME="urn:xmpp:time",t.NS_DELAY="urn:xmpp:delay",t.NS_BOSH_XMPP="urn:xmpp:xbosh",t.NS_DISCO_EXTERNAL_1="urn:xmpp:extdisco:1",t.NS_DISCO_EXTERNAL_2="urn:xmpp:extdisco:2",t.NS_DATAFORM_MEDIA="urn:xmpp:media-element",t.NS_ATTENTION_0="urn:xmpp:attention:0",t.NS_BOB="urn:xmpp:bob",t.NS_SOFTWARE_INFO="urn:xmpp:dataforms:softwareinfo",t.NS_JINGLE_FILE_TRANSFER_3="urn:xmpp:jingle:apps:file-transfer:3",t.NS_JINGLE_FILE_TRANSFER_4="urn:xmpp:jingle:apps:file-transfer:4",t.NS_JINGLE_FILE_TRANSFER_5="urn:xmpp:jingle:apps:file-transfer:5",t.NS_JINGLE_XML_0="urn:xmpp:jingle:apps:xmlstream:0",t.NS_MUC_DIRECT_INVITE="jabber:x:conference",t.NS_SEC_LABEL_0="urn:xmpp:sec-label:0",t.NS_SEC_LABEL_CATALOG_2="urn:xmpp:sec-label:catalog:2",t.NS_SEC_LABEL_ESS_0="urn:xmpp:sec-label:ess:0",t.NS_JINGLE_SOCKS5_1="urn:xmpp:jingle:transports:s5b:1",t.NS_JINGLE_IBB_1="urn:xmpp:jingle:transports:ibb:1",t.NS_JINGLE_RTP_ZRTP_1="urn:xmpp:jingle:apps:rtp:zrtp:1",t.NS_THUMBS_0="urn:xmpp:thumbs:0",t.NS_THUMBS_1="urn:xmpp:thumbs:1",t.NS_DECLOAKING_0="urn:xmpp:decloaking:0",t.NS_CARBONS_2="urn:xmpp:carbons:2",t.NS_JINGLE_RTP_RTCP_FB_0="urn:xmpp:jingle:apps:rtp:rtcp-fb:0",t.NS_JINGLE_RTP_HDREXT_0="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",t.NS_FORWARD_0="urn:xmpp:forward:0",t.NS_HASHES_1="urn:xmpp:hashes:1",t.NS_HASHES_2="urn:xmpp:hashes:2";t.NS_HASH_NAME=e=>"urn:xmpp:hash-function-text-names:"+e,t.NS_RTT_0="urn:xmpp:rtt:0",t.NS_MUC_UNIQUE="http://jabber.org/protocol/muc#unique",t.NS_CORRECTION_0="urn:xmpp:message-correct:0",t.NS_PSA="urn:xmpp:psa",t.NS_MAM_TMP="urn:xmpp:mam:tmp",t.NS_MAM_0="urn:xmpp:mam:0",t.NS_MAM_1="urn:xmpp:mam:1",t.NS_MAM_2="urn:xmpp:mam:2",t.NS_HATS_0="urn:xmpp:hats:0",t.NS_IDLE_1="urn:xmpp:idle:1",t.NS_JINGLE_DTLS_0="urn:xmpp:jingle:apps:dtls:0",t.NS_CHAT_MARKERS_0="urn:xmpp:chat-markers:0",t.NS_HINTS="urn:xmpp:hints",t.NS_JSON_0="urn:xmpp:json:0",t.NS_JINGLE_GROUPING_0="urn:xmpp:jingle:apps:grouping:0",t.NS_JINGLE_RTP_SSMA_0="urn:xmpp:jingle:apps:rtp:ssma:0",t.NS_JINGLE_DTLS_SCTP_1="urn:xmpp:jingle:transports:dtls-sctp:1",t.NS_CSI_0="urn:xmpp:csi:0",t.NS_JINGLE_MSG_INITIATE_0="urn:xmpp:jingle:jingle-message:0",t.NS_DELEGATION_1="urn:xmpp:delegation:1",t.NS_PUSH_0="urn:xmpp:push:0",t.NS_JINGLE_PUB_1="urn:xmpp:jinglepub:1",t.NS_SID_0="urn:xmpp:sid:0",t.NS_HTTP_UPLOAD_0="urn:xmpp:http:upload:0",t.NS_JINGLE_HTTP_0="urn:xmpp:jingle:transports:http:0",t.NS_JINGLE_HTTP_UPLOAD_0="urn:xmpp:jingle:transports:http:upload:0",t.NS_JINGLE_ICE_0="urn:xmpp:jingle:transports:ice:0",t.NS_REFERENCE_0="urn:xmpp:reference:0",t.NS_EME_0="urn:xmpp:eme:0",t.NS_SPOILER_0="urn:xmpp:spoiler:0",t.NS_OMEMO_AXOLOTL="eu.siacs.conversations.axolotl",t.NS_OMEMO_AXOLOTL_DEVICELIST="eu.siacs.conversations.axolotl.devicelist",t.NS_OMEMO_AXOLOTL_BUNDLES="eu.siacs.conversations.axolotl.bundles";t.NS_OMEMO_AXOLOTL_BUNDLE=e=>`${t.NS_OMEMO_AXOLOTL_BUNDLES}:${e}`,t.NS_JSON_MESSAGE_0="urn:xmpp:json-msg:0",t.NS_XRD="http://docs.oasis-open.org/ns/xri/xrd-1.0",t.NS_JINGLE_RTP_MSID_0="urn:xmpp:jingle:apps:rtp:msid:0"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.define=t.XMLElement=t.Translator=t.Registry=t.StreamParser=t.parse=t.Parser=void 0;const r=n(4),i=(0,r.__importDefault)(n(31));t.XMLElement=i.default;const s=(0,r.__importDefault)(n(269));t.Registry=s.default;const o=(0,r.__importDefault)(n(87));t.Translator=o.default,(0,r.__exportStar)(n(32),t),(0,r.__exportStar)(n(52),t),(0,r.__exportStar)(n(280),t);var a=n(54);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}});var c=n(281);Object.defineProperty(t,"StreamParser",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}}),t.define=function(e){return t=>{t.define(e)}}},function(e,t,n){"use strict";var r=n(0);function i(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.a.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const s=i.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{o[e]={value:e}}),Object.defineProperties(i,o),Object.defineProperty(s,"isAxiosError",{value:!0}),i.from=(e,t,n,o,a,c)=>{const u=Object.create(s);return r.a.toFlatObject(e,u,(function(e){return e!==Error.prototype}),e=>"isAxiosError"!==e),i.call(u,e.message,t,n,o,a),u.cause=e,u.name=e.name,c&&Object.assign(u,c),u},t.a=i},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return s})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__esDecorate",(function(){return u})),n.d(t,"__runInitializers",(function(){return l})),n.d(t,"__propKey",(function(){return d})),n.d(t,"__setFunctionName",(function(){return p})),n.d(t,"__metadata",(function(){return h})),n.d(t,"__awaiter",(function(){return f})),n.d(t,"__generator",(function(){return m})),n.d(t,"__createBinding",(function(){return g})),n.d(t,"__exportStar",(function(){return y})),n.d(t,"__values",(function(){return b})),n.d(t,"__read",(function(){return v})),n.d(t,"__spread",(function(){return _})),n.d(t,"__spreadArrays",(function(){return S})),n.d(t,"__spreadArray",(function(){return w})),n.d(t,"__await",(function(){return T})),n.d(t,"__asyncGenerator",(function(){return I})),n.d(t,"__asyncDelegator",(function(){return A})),n.d(t,"__asyncValues",(function(){return N})),n.d(t,"__makeTemplateObject",(function(){return E})),n.d(t,"__importStar",(function(){return R})),n.d(t,"__importDefault",(function(){return C})),n.d(t,"__classPrivateFieldGet",(function(){return O})),n.d(t,"__classPrivateFieldSet",(function(){return P})),n.d(t,"__classPrivateFieldIn",(function(){return k})),n.d(t,"__addDisposableResource",(function(){return j})),n.d(t,"__disposeResources",(function(){return L}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=r.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var g=(0,n[h])("accessor"===c?{get:d.get,set:d.set}:d[u],f);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=o(g.get))&&(d.get=a),(a=o(g.set))&&(d.set=a),(a=o(g.init))&&i.unshift(a)}else(a=o(g))&&("field"===c?i.unshift(a):d[u]=a)}l&&Object.defineProperty(l,r.name,d),p=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))}function m(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}function w(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function T(e){return this instanceof T?(this.v=e,this):new T(e)}function I(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof T?Promise.resolve(n.value.v).then(c,u):l(s[0][2],n)}catch(e){l(s[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function A(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:T(e[r](t)),done:!1}:i?i(t):t}:i}}function N(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=b(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return x(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function P(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function k(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function j(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function L(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:s,__rest:o,__decorate:a,__param:c,__metadata:h,__awaiter:f,__generator:m,__createBinding:g,__exportStar:y,__values:b,__read:v,__spread:_,__spreadArrays:S,__spreadArray:w,__await:T,__asyncGenerator:I,__asyncDelegator:A,__asyncValues:N,__makeTemplateObject:E,__importStar:R,__importDefault:C,__classPrivateFieldGet:O,__classPrivateFieldSet:P,__classPrivateFieldIn:k,__addDisposableResource:j,__disposeResources:L}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.directionToSenders=t.sendersToDirection=t.JINGLE_INFO_RECEIVED_5=t.JINGLE_INFO_CHECKSUM_5=t.JINGLE_INFO_RINGING=t.JINGLE_INFO_ACTIVE=t.JINGLE_INFO_UNHOLD=t.JINGLE_INFO_HOLD=t.JINGLE_INFO_UNMUTE=t.JINGLE_INFO_MUTE=t.JINGLE_INFO=t.USER_ACTIVITY_SPECIFIC=t.USER_ACTIVITY_GENERAL=t.USER_MOODS=t.JingleReasonCondition=t.JingleErrorCondition=t.JingleAction=t.JingleContentSenders=t.JingleApplicationDirection=t.JingleSessionRole=t.ChatState=t.PubsubErrorCondition=t.MUCStatusCode=t.MUCRole=t.MUCAffiliation=t.DataFormFieldType=t.DataFormType=t.RosterSubscription=t.PresenceShow=t.IQType=t.PresenceType=t.MessageType=t.StanzaErrorCondition=t.StreamErrorCondition=t.SASLFailureCondition=t.StreamType=t.VERSION=void 0;const r=n(1);t.VERSION="12.20.0";t.StreamType={Bosh:r.NS_BOSH,Client:r.NS_CLIENT,Component:r.NS_COMPONENT,Server:r.NS_SERVER},t.SASLFailureCondition={AccountDisabled:"account-disabled",CredentialsExpired:"credentials-expired",EncryptionRequired:"encryption-required",IncorrectEncoding:"incorrect-encoding",InvalidAuthzid:"invalid-authzid",InvalidMechanism:"invalid-mechanism",MalformedRequest:"malformed-request",MechanismTooWeak:"mechanism-too-weak",NotAuthorized:"not-authorized",TemporaryAuthFailure:"temporary-auth-failure"},t.StreamErrorCondition={BadFormat:"bad-format",BadNamespacePrefix:"bad-namespace-prefix",Conflict:"conflict",ConnectionTimeout:"connection-timeout",HostGone:"host-gone",HostUnknown:"host-unknown",ImproperAddressing:"improper-addressing",InternalServerError:"internal-server-error",InvalidFrom:"invalid-from",InvalidId:"invalid-id",InvalidNamespace:"invalid-namespace",InvalidXML:"invalid-xml",NotAuthorized:"not-authorized",NotWellFormed:"not-well-formed",PolicyViolation:"policy-violation",RemoteConnectionFailed:"remote-connection-failed",Reset:"reset",ResourceConstraint:"resource-constraint",RestrictedXML:"restricted-xml",SeeOtherHost:"see-other-host",SystemShutdown:"system-shutdown",UndefinedCondition:"undefined-condition",UnsupportedEncoding:"unsupported-encoding",UnsupportedStanzaType:"unsupported-stanza-type",UnsupportedVersion:"unsupported-version"},t.StanzaErrorCondition={BadRequest:"bad-request",Conflict:"conflict",FeatureNotImplemented:"feature-not-implemented",Forbidden:"forbidden",Gone:"gone",InternalServerError:"internal-server-error",ItemNotFound:"item-not-found",JIDMalformed:"jid-malformed",NotAcceptable:"not-acceptable",NotAllowed:"not-allowed",NotAuthorized:"not-authorized",PolicyViolation:"policy-violation",RecipientUnavailable:"recipient-unavailable",Redirect:"redirect",RegistrationRequired:"registration-required",RemoteServerNotFound:"remote-server-not-found",RemoteServerTimeout:"remote-server-timeout",ResourceConstraint:"resource-constraint",ServiceUnavailable:"service-unavailable",SubscriptionRequired:"subscription-required",UndefinedCondition:"undefined-condition",UnexpectedRequest:"unexpected-request"},t.MessageType={Chat:"chat",Error:"error",GroupChat:"groupchat",Headline:"headline",Normal:"normal"},t.PresenceType={Available:void 0,Error:"error",Probe:"probe",Subscribe:"subscribe",Subscribed:"subscribed",Unavailable:"unavailable",Unsubscribe:"unsubscribe",Unsubscribed:"unsubscribed"},t.IQType={Error:"error",Get:"get",Result:"result",Set:"set"},t.PresenceShow={Away:"away",Chat:"chat",DoNotDisturb:"dnd",ExtendedAway:"xa"},t.RosterSubscription={Both:"both",From:"from",None:"none",ReceivePresenceOnly:"to",Remove:"remove",SendAndReceivePresence:"both",SendPresenceOnly:"from",To:"to"},t.DataFormType={Cancel:"cancel",Form:"form",Result:"result",Submit:"submit"},t.DataFormFieldType={Boolean:"boolean",Fixed:"fixed",Hidden:"hidden",JID:"jid-single",JIDMultiple:"jid-multi",List:"list-single",ListMultiple:"list-multi",Password:"text-private",Text:"text-single",TextMultiple:"text-multi",TextPrivate:"text-private"},t.MUCAffiliation={Admin:"admin",Banned:"outcast",Member:"member",None:"none",Outcast:"outcast",Owner:"owner"},t.MUCRole={Moderator:"moderator",None:"none",Participant:"participant",Visitor:"visitor"},t.MUCStatusCode={AffiliationChanged:"101",AffiliationLost:"321",Banned:"301",Error:"333",Kicked:"307",LoggingDisabled:"171",LoggingEnabled:"170",MembershipLost:"322",NickChanged:"303",NickChangedByService:"210",NonAnonymous:"172",NonAnonymousRoom:"100",NonPrivacyConfigurationChange:"104",RoomCreated:"201",SelfPresence:"110",SemiAnonymous:"173",Shutdown:"332",UnavailableMembersListed:"102",UnavailableMembersNotListed:"103"},t.PubsubErrorCondition={ClosedNode:"closed-node",ConfigurationRequired:"configuration-required",InvalidJID:"invalid-jid",InvalidOptions:"invalid-options",InvalidPayload:"invalid-payload",InvalidSubscriptionId:"invalid-subid",ItemForbidden:"item-forbidden",ItemRequired:"item-required",JIDRequired:"jid-required",MaxItemsExceeded:"max-items-exceeded",MaxNodesExceeded:"max-nodes-exceeded",NodeIdRequired:"nodeid-required",NotInRosterGroup:"not-in-roster-group",NotSubscribed:"not-subscribed",PayloadRequired:"payload-required",PayloadTooBig:"payload-too-big",PendingSubscription:"pending-subscription",PresenceSubscriptionRequired:"presence-subscription-required",SubscriptionIdRequired:"subid-required",TooManySubscriptions:"too-many-subscriptions",Unsupported:"unsupported",UnsupportedAccessModel:"unsupported-access-model"},t.ChatState={Active:"active",Composing:"composing",Gone:"gone",Inactive:"inactive",Paused:"paused"},t.JingleSessionRole={Initiator:"initiator",Responder:"responder"},t.JingleApplicationDirection={Inactive:"inactive",Receive:"recvonly",Send:"sendonly",SendReceive:"sendrecv"},t.JingleContentSenders={Both:"both",Initiator:"initiator",None:"none",Responder:"responder"},t.JingleAction={ContentAccept:"content-accept",ContentAdd:"content-add",ContentModify:"content-modify",ContentReject:"content-reject",ContentRemove:"content-remove",DescriptionInfo:"description-info",SecurityInfo:"security-info",SessionAccept:"session-accept",SessionInfo:"session-info",SessionInitiate:"session-initiate",SessionTerminate:"session-terminate",TransportAccept:"transport-accept",TransportInfo:"transport-info",TransportReject:"transport-reject",TransportReplace:"transport-replace"},t.JingleErrorCondition={OutOfOrder:"out-of-order",TieBreak:"tie-break",UnknownContent:"unknown-content",UnknownSession:"unknown-session",UnsupportedInfo:"unsupported-info"},t.JingleReasonCondition={AlternativeSession:"alternative-session",Busy:"busy",Cancel:"cancel",ConnectivityError:"connectivity-error",Decline:"decline",Expired:"expired",FailedApplication:"failed-application",FailedTransport:"failed-transport",GeneralError:"general-error",Gone:"gone",IncompatibleParameters:"incompatible-parameters",MediaError:"media-error",SecurityError:"security-error",Success:"success",Timeout:"timeout",UnsupportedApplications:"unsupported-applications",UnsupportedTransports:"unsupported-transports"},t.USER_MOODS=["afraid","amazed","amorous","angry","annoyed","anxious","aroused","ashamed","bored","brave","calm","cautious","cold","confident","confused","contemplative","contented","cranky","crazy","creative","curious","dejected","depressed","disappointed","disgusted","dismayed","distracted","embarrassed","envious","excited","flirtatious","frustrated","grateful","grieving","grumpy","guilty","happy","hopeful","hot","humbled","humiliated","hungry","hurt","impressed","in_awe","in_love","indignant","interested","intoxicated","invincible","jealous","lonely","lost","lucky","mean","moody","nervous","neutral","offended","outraged","playful","proud","relaxed","relieved","remorseful","restless","sad","sarcastic","satisfied","serious","shocked","shy","sick","sleepy","spontaneous","stressed","strong","surprised","thankful","thirsty","tired","undefined","weak","worried"],t.USER_ACTIVITY_GENERAL=["doing_chores","drinking","eating","exercising","grooming","having_appointment","inactive","relaxing","talking","traveling","undefined","working"],t.USER_ACTIVITY_SPECIFIC=["at_the_spa","brushing_teeth","buying_groceries","cleaning","coding","commuting","cooking","cycling","cycling","dancing","day_off","doing_maintenance","doing_the_dishes","doing_the_laundry","driving","fishing","gaming","gardening","getting_a_haircut","going_out","hanging_out","having_a_beer","having_a_snack","having_breakfast","having_coffee","having_dinner","having_lunch","having_tea","hiding","hiking","in_a_car","in_a_meeting","in_real_life","jogging","on_a_bus","on_a_plane","on_a_train","on_a_trip","on_the_phone","on_vacation","on_video_phone","other","partying","playing_sports","praying","reading","rehearsing","running","running_an_errand","scheduled_holiday","shaving","shopping","skiing","sleeping","smoking","socializing","studying","sunbathing","swimming","taking_a_bath","taking_a_shower","thinking","walking","walking_the_dog","watching_a_movie","watching_tv","working_out","writing"];t.JINGLE_INFO=(e,t)=>`{${e}}${t}`,t.JINGLE_INFO_MUTE=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"mute"),t.JINGLE_INFO_UNMUTE=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"unmute"),t.JINGLE_INFO_HOLD=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"hold"),t.JINGLE_INFO_UNHOLD=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"unhold"),t.JINGLE_INFO_ACTIVE=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"active"),t.JINGLE_INFO_RINGING=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"ringing"),t.JINGLE_INFO_CHECKSUM_5=(0,t.JINGLE_INFO)(r.NS_JINGLE_FILE_TRANSFER_5,"checksum"),t.JINGLE_INFO_RECEIVED_5=(0,t.JINGLE_INFO)(r.NS_JINGLE_FILE_TRANSFER_5,"received"),t.sendersToDirection=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.JingleContentSenders.Both;const r=e===t.JingleSessionRole.Initiator;switch(n){case t.JingleContentSenders.Initiator:return r?t.JingleApplicationDirection.Send:t.JingleApplicationDirection.Receive;case t.JingleContentSenders.Responder:return r?t.JingleApplicationDirection.Receive:t.JingleApplicationDirection.Send;case t.JingleContentSenders.Both:return t.JingleApplicationDirection.SendReceive}return t.JingleApplicationDirection.Inactive},t.directionToSenders=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.JingleApplicationDirection.SendReceive;const r=e===t.JingleSessionRole.Initiator;switch(n){case t.JingleApplicationDirection.Send:return r?t.JingleContentSenders.Initiator:t.JingleContentSenders.Responder;case t.JingleApplicationDirection.Receive:return r?t.JingleContentSenders.Responder:t.JingleContentSenders.Initiator;case t.JingleApplicationDirection.SendReceive:return t.JingleContentSenders.Both}return t.JingleContentSenders.None}},function(e,t,n){"use strict";var r=n(207),i=n(81),s=n(219),o=n(79),a=n(14),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",(function(e){c(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=o(e),a=i(r.length),u=0;if(a+t>n)throw RangeError("Wrong length");for(;u<a;)this[t+u]=r[u++]}),a((function(){new Int8Array(1).set({})})))},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,s=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}y(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&y(e,"error",t,n)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,s,o,a;if(u(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),o=s[t]),void 0===o)o=s[t]=n,++e._eventsCount;else if("function"==typeof o?o=s[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=l(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,a=c,console&&console.warn&&console.warn(a)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(s){r.once&&e.removeEventListener(t,i),n(s)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)s(c,this,t);else{var u=c.length,l=g(c,u);for(n=0;n<u;++n)s(l[n],this,t)}return!0},a.prototype.addListener=function(e,t){return d(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return d(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,h(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,h(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,s,o;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(i=s[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(function(t){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 t&&t)||Function("return this")()}).call(this,n(12))},function(e,t,n){"use strict";n(6),Object.defineProperty(t,"__esModule",{value:!0}),t.PassThrough=t.Duplex=t.Transform=t.Writable=t.Readable=t.WebSocket=t.RTCPeerConnection=t.fetch=t.Hmac=t.Hash=t.createHash=t.Buffer=t.name=t.createResolver=t.createHmac=t.getHashes=t.randomBytes=void 0;const r=n(4),i=n(11);Object.defineProperty(t,"Buffer",{enumerable:!0,get:function(){return i.Buffer}});const s=(0,r.__importStar)(n(88));t.createHash=s.default,Object.defineProperty(t,"Hash",{enumerable:!0,get:function(){return s.Hash}});const o=(0,r.__importDefault)(n(279));t.Hmac=o.default;const a=n(53);Object.defineProperty(t,"Readable",{enumerable:!0,get:function(){return a.Readable}}),Object.defineProperty(t,"Writable",{enumerable:!0,get:function(){return a.Writable}}),Object.defineProperty(t,"Transform",{enumerable:!0,get:function(){return a.Transform}}),Object.defineProperty(t,"PassThrough",{enumerable:!0,get:function(){return a.PassThrough}}),Object.defineProperty(t,"Duplex",{enumerable:!0,get:function(){return a.Duplex}}),t.randomBytes=function(e){const t=new Uint8Array(e);return e>0&&(globalThis.crypto||globalThis.msCrypto).getRandomValues(t),i.Buffer.from(t.buffer)},t.getHashes=function(){return["sha-1","sha-256","sha-512","md5"]},t.createHmac=function(e,t){return new o.default(e.toLowerCase(),t)},t.createResolver=function(){};const c=globalThis.fetch.bind(globalThis);t.fetch=c;const u=globalThis.WebSocket;t.WebSocket=u;const l=globalThis.RTCPeerConnection;t.RTCPeerConnection=l,t.name="browser"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toURI=t.parseURI=t.toBare=t.getResource=t.getDomain=t.getLocal=t.isBare=t.isFull=t.equalBare=t.equal=t.allowedResponders=t.parse=t.createFull=t.create=t.prepare=t.unescapeLocal=t.escapeLocal=void 0;const r=(0,n(4).__importDefault)(n(50)),i=n(86);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/^\s+|\s+$/g,"").replace(/\\5c/g,"\\5c5c").replace(/\\20/g,"\\5c20").replace(/\\22/g,"\\5c22").replace(/\\26/g,"\\5c26").replace(/\\27/g,"\\5c27").replace(/\\2f/g,"\\5c2f").replace(/\\3a/g,"\\5c3a").replace(/\\3c/g,"\\5c3c").replace(/\\3e/g,"\\5c3e").replace(/\\40/g,"\\5c40").replace(/ /g,"\\20").replace(/"/g,"\\22").replace(/&/g,"\\26").replace(/'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")}function o(e){return e.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")}function a(e){let t=e.local||"",n=e.domain,s=e.resource||"";return t&&(t=(0,i.nodeprep)(t)),s&&(s=(0,i.resourceprep)(s)),"."===n[n.length-1]&&(n=n.slice(0,n.length-1)),n=(0,i.nameprep)(n.split(".").map(r.default.toUnicode).join(".")),{domain:n,local:t,resource:s}}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.local;t.escaped||(n=s(e.local));const r=t.prepared?e:a({local:n,domain:e.domain,resource:e.resource}),i=n?`${n}@${r.domain}`:r.domain;return r.resource?`${i}/${r.resource}`:i}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",n="",r="";const i=e.indexOf("/");i>0&&(r=e.slice(i+1),e=e.slice(0,i));const s=e.indexOf("@");s>0&&(t=e.slice(0,s),e=e.slice(s+1)),n=e;const u=a({domain:n,local:t,resource:r});return{bare:c({local:u.local,domain:u.domain},{escaped:!0,prepared:!0}),domain:u.domain,full:c(u,{escaped:!0,prepared:!0}),local:o(u.local),resource:u.resource}}function l(e){return!!u(e).resource}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return u(e).bare}t.escapeLocal=s,t.unescapeLocal=o,t.prepare=a,t.create=c,t.createFull=function(e,t){return t?`${d(e)}/${t}`:d(e)},t.parse=u,t.allowedResponders=function(e,t){const n=new Set;if(n.add(void 0),n.add(""),e){const t=u(e);n.add(t.full),n.add(t.bare),n.add(t.domain)}if(t){const e=u(t);n.add(e.domain),n.add(e.bare),n.add(e.full)}return n},t.equal=function(e,t){if(!e||!t)return!1;const n=u(e),r=u(t);return n.local===r.local&&n.domain===r.domain&&n.resource===r.resource},t.equalBare=function(e,t){if(!e||!t)return!1;const n=u(e),r=u(t);return n.local===r.local&&n.domain===r.domain},t.isFull=l,t.isBare=function(e){return!l(e)},t.getLocal=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return u(e).local},t.getDomain=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return u(e).domain},t.getResource=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return u(e).resource},t.toBare=d,t.parseURI=function(e){const t=new URL(e);if("xmpp:"!==t.protocol)throw new Error("Invalid XMPP URI, wrong protocol: "+t.protocol);const n=t.hostname?t.username?c({domain:decodeURIComponent(t.hostname),local:decodeURIComponent(t.username)},{escaped:!0}):decodeURIComponent(t.hostname):void 0,r=u(decodeURIComponent(n?t.pathname.substr(1):t.pathname)).full,i=t.search&&t.search.indexOf(";")>=1,s=i?t.search.substr(t.search.indexOf(";")+1):"",o=t.search?decodeURIComponent(t.search.substr(1,i?t.search.indexOf(";")-1:void 0)):void 0,a={};for(const e of s.split(";")){const[t,n]=e.split("=").map(decodeURIComponent);if(a[t]){const e=a[t];Array.isArray(e)?e.push(n):a[t]=[e,n]}else a[t]=n}return{action:o,identity:n,jid:r,parameters:a}},t.toURI=function(e){const t=["xmpp:"],n=(e,n)=>{const r=u(e);r.local&&(t.push(encodeURIComponent(s(r.local))),t.push("@")),t.push(encodeURIComponent(r.domain)),n&&r.resource&&(t.push("/"),t.push(encodeURIComponent(r.resource)))};e.identity&&(t.push("//"),n(e.identity,!1),e.jid&&t.push("/")),e.jid&&n(e.jid,!0),e.action&&(t.push("?"),t.push(encodeURIComponent(e.action)));for(const[n,r]of Object.entries(e.parameters||{}))for(const e of Array.isArray(r)?r:[r])t.push(";"),t.push(encodeURIComponent(n)),void 0!==e&&(t.push("="),t.push(encodeURIComponent(e)));return t.join("")}},function(e,t,n){"use strict";
|
|
1
|
+
window.GenesysCloudStreamingClient=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return 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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=204)}([function(e,t,n){"use strict";(function(e,r,i){n(6),n(30);var s=n(38);const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,c=(u=Object.create(null),e=>{const t=o.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const l=e=>(e=e.toLowerCase(),t=>c(t)===e),d=e=>t=>typeof t===e,{isArray:p}=Array,h=d("undefined");const f=l("ArrayBuffer");const m=d("string"),g=d("function"),y=d("number"),b=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==c(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},_=l("Date"),S=l("File"),w=l("Blob"),T=l("FileList"),I=l("URLSearchParams"),[A,E,N,x]=["ReadableStream","Request","Response","Headers"].map(l);function C(e,t){let n,r,{allOwnKeys:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e)if("object"!=typeof e&&(e=[e]),p(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=i?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let o;for(n=0;n<s;n++)o=r[n],t.call(null,e[o],o,e)}}function R(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,P=e=>!h(e)&&e!==O;const k=(j="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>j&&e instanceof j);var j;const M=l("HTMLFormElement"),L=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),D=l("RegExp"),B=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};C(n,(n,i)=>{let s;!1!==(s=t(n,i,e))&&(r[i]=s||n)}),Object.defineProperties(e,r)},F="abcdefghijklmnopqrstuvwxyz",q={DIGIT:"0123456789",ALPHA:F,ALPHA_DIGIT:F+F.toUpperCase()+"0123456789"};const U=l("AsyncFunction"),J=(z="function"==typeof r,G=g(O.postMessage),z?r:G?(H="axios@"+Math.random(),V=[],O.addEventListener("message",e=>{let{source:t,data:n}=e;t===O&&n===H&&V.length&&V.shift()()},!1),e=>{V.push(e),O.postMessage(H,"*")}):e=>setTimeout(e));var z,G,H,V;const W="undefined"!=typeof queueMicrotask?queueMicrotask.bind(O):void 0!==i&&i.nextTick||J;t.a={isArray:p,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=c(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:m,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:v,isReadableStream:A,isRequest:E,isResponse:N,isHeaders:x,isUndefined:h,isDate:_,isFile:S,isBlob:w,isRegExp:D,isFunction:g,isStream:e=>b(e)&&g(e.pipe),isURLSearchParams:I,isTypedArray:k,isFileList:T,forEach:C,merge:function e(){const{caseless:t}=P(this)&&this||{},n={},r=(r,i)=>{const s=t&&R(n,i)||i;v(n[s])&&v(r)?n[s]=e(n[s],r):v(r)?n[s]=e({},r):p(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&C(arguments[e],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return C(t,(t,r)=>{n&&g(t)?e[r]=Object(s.a)(t,n):e[r]=t},{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,s,o;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],r&&!r(o,e,t)||c[o]||(t[o]=e[o],c[o]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:B,freezeMethods:e=>{B(e,(t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:R,global:O,isContextDefined:P,ALPHABET:q,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=p(e)?[]:{};return C(e,(e,t)=>{const s=n(e,r+1);!h(s)&&(i[t]=s)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:U,isThenable:e=>e&&(b(e)||g(e))&&g(e.then)&&g(e.catch),setImmediate:J,asap:W}}).call(this,n(12),n(232).setImmediate,n(23))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NS_AVATAR_METADATA=t.NS_AVATAR_DATA=t.NS_ROSTER_DELIMITER=t.NS_GEOLOC=t.NS_AMP=t.NS_INBAND_REGISTRATION=t.NS_REGISTER=t.NS_XHTML_IM=t.NS_XHTML=t.NS_HTTP_AUTH=t.NS_OOB_TRANSFER=t.NS_OOB=t.NS_SOCKS5=t.NS_PUBSUB_OWNER=t.NS_PUBSUB_EVENT=t.NS_PUBSUB_ERRORS=t.NS_PUBSUB=t.NS_RSM=t.NS_SEARCH=t.NS_VCARD_TEMP=t.NS_ADHOC_COMMANDS=t.NS_PRIVATE=t.NS_BOOKMARKS=t.NS_IBB=t.NS_MUC_USER=t.NS_MUC_OWNER=t.NS_MUC_ADMIN=t.NS_MUC=t.NS_ADDRESS=t.NS_DISCO_ITEMS=t.NS_DISCO_INFO=t.NS_LEGACY_CHAT_EVENTS=t.NS_PRIVACY=t.NS_LAST_ACTIVITY=t.NS_RPC=t.NS_DATAFORM=t.NS_FRAMING=t.NS_SUBSCRIPTION_PREAPPROVAL=t.NS_ROSTER_VERSIONING=t.NS_ROSTER=t.NS_STARTTLS=t.NS_STREAMS=t.NS_STREAM=t.NS_STANZAS=t.NS_SESSION=t.NS_SERVER=t.NS_SASL=t.NS_CLIENT=t.NS_BIND=t.NS_ATOM=void 0,t.NS_JINGLE_FILE_TRANSFER_4=t.NS_JINGLE_FILE_TRANSFER_3=t.NS_SOFTWARE_INFO=t.NS_BOB=t.NS_ATTENTION_0=t.NS_DATAFORM_MEDIA=t.NS_DISCO_EXTERNAL_2=t.NS_DISCO_EXTERNAL_1=t.NS_BOSH_XMPP=t.NS_DELAY=t.NS_TIME=t.NS_PING=t.NS_SMACKS_3=t.NS_BLOCKING_ERRORS=t.NS_BLOCKING=t.NS_INVISIBLE_0=t.NS_RECEIPTS=t.NS_JINGLE_RAW_UDP_1=t.NS_JINGLE_ICE_UDP_1=t.NS_NICK=t.NS_LANG_TRANS_ITEMS=t.NS_LANG_TRANS=t.NS_JINGLE_RTP_VIDEO=t.NS_JINGLE_RTP_AUDIO=t.NS_JINGLE_RTP_INFO_1=t.NS_JINGLE_RTP_ERRORS_1=t.NS_JINGLE_RTP_1=t.NS_JINGLE_ERRORS_1=t.NS_JINGLE_1=t.NS_PEP_NOTIFY=t.NS_CAPTCHA=t.NS_ALT_CONNECTIONS_XBOSH=t.NS_ALT_CONNECTIONS_WEBSOCKET=t.NS_VCARD_TEMP_UPDATE=t.NS_REACH_0=t.NS_ROSTER_NOTES=t.NS_ROSTER_EXCHANGE=t.NS_DATAFORM_LAYOUT=t.NS_COMPRESSION=t.NS_COMPRESSION_FEATURE=t.NS_SHIM=t.NS_BOSH=t.NS_DATAFORM_VALIDATION=t.NS_TUNE=t.NS_DISCO_LEGACY_CAPS=t.NS_COMPONENT=t.NS_ACTIVITY=t.NS_MOOD=t.NS_VERSION=t.NS_CHAT_STATES=void 0,t.NS_OMEMO_AXOLOTL=t.NS_SPOILER_0=t.NS_EME_0=t.NS_REFERENCE_0=t.NS_JINGLE_ICE_0=t.NS_JINGLE_HTTP_UPLOAD_0=t.NS_JINGLE_HTTP_0=t.NS_HTTP_UPLOAD_0=t.NS_SID_0=t.NS_JINGLE_PUB_1=t.NS_PUSH_0=t.NS_DELEGATION_1=t.NS_JINGLE_MSG_INITIATE_0=t.NS_CSI_0=t.NS_JINGLE_DTLS_SCTP_1=t.NS_JINGLE_RTP_SSMA_0=t.NS_JINGLE_GROUPING_0=t.NS_JSON_0=t.NS_HINTS=t.NS_CHAT_MARKERS_0=t.NS_JINGLE_DTLS_0=t.NS_IDLE_1=t.NS_HATS_0=t.NS_MAM_2=t.NS_MAM_1=t.NS_MAM_0=t.NS_MAM_TMP=t.NS_PSA=t.NS_CORRECTION_0=t.NS_MUC_UNIQUE=t.NS_RTT_0=t.NS_HASH_NAME=t.NS_HASHES_2=t.NS_HASHES_1=t.NS_FORWARD_0=t.NS_JINGLE_RTP_HDREXT_0=t.NS_JINGLE_RTP_RTCP_FB_0=t.NS_CARBONS_2=t.NS_DECLOAKING_0=t.NS_THUMBS_1=t.NS_THUMBS_0=t.NS_JINGLE_RTP_ZRTP_1=t.NS_JINGLE_IBB_1=t.NS_JINGLE_SOCKS5_1=t.NS_SEC_LABEL_ESS_0=t.NS_SEC_LABEL_CATALOG_2=t.NS_SEC_LABEL_0=t.NS_MUC_DIRECT_INVITE=t.NS_JINGLE_XML_0=t.NS_JINGLE_FILE_TRANSFER_5=void 0,t.NS_JINGLE_RTP_MSID_0=t.NS_XRD=t.NS_JSON_MESSAGE_0=t.NS_OMEMO_AXOLOTL_BUNDLE=t.NS_OMEMO_AXOLOTL_BUNDLES=t.NS_OMEMO_AXOLOTL_DEVICELIST=void 0,t.NS_ATOM="http://www.w3.org/2005/Atom",t.NS_BIND="urn:ietf:params:xml:ns:xmpp-bind",t.NS_CLIENT="jabber:client",t.NS_SASL="urn:ietf:params:xml:ns:xmpp-sasl",t.NS_SERVER="jabber:server",t.NS_SESSION="urn:ietf:params:xml:ns:xmpp-session",t.NS_STANZAS="urn:ietf:params:xml:ns:xmpp-stanzas",t.NS_STREAM="http://etherx.jabber.org/streams",t.NS_STREAMS="urn:ietf:params:xml:ns:xmpp-streams",t.NS_STARTTLS="urn:ietf:params:xml:ns:xmpp-tls",t.NS_ROSTER="jabber:iq:roster",t.NS_ROSTER_VERSIONING="urn:xmpp:features:rosterver",t.NS_SUBSCRIPTION_PREAPPROVAL="urn:xmpp:features:pre-approval",t.NS_FRAMING="urn:ietf:params:xml:ns:xmpp-framing",t.NS_DATAFORM="jabber:x:data",t.NS_RPC="jabber:iq:rpc",t.NS_LAST_ACTIVITY="jabber:iq:last",t.NS_PRIVACY="jabber:iq:privacy",t.NS_LEGACY_CHAT_EVENTS="jabber:x:event",t.NS_DISCO_INFO="http://jabber.org/protocol/disco#info",t.NS_DISCO_ITEMS="http://jabber.org/protocol/disco#items",t.NS_ADDRESS="http://jabber.org/protocol/address",t.NS_MUC="http://jabber.org/protocol/muc",t.NS_MUC_ADMIN="http://jabber.org/protocol/muc#admin",t.NS_MUC_OWNER="http://jabber.org/protocol/muc#owner",t.NS_MUC_USER="http://jabber.org/protocol/muc#user",t.NS_IBB="http://jabber.org/protocol/ibb",t.NS_BOOKMARKS="storage:bookmarks",t.NS_PRIVATE="jabber:iq:private",t.NS_ADHOC_COMMANDS="http://jabber.org/protocol/commands",t.NS_VCARD_TEMP="vcard-temp",t.NS_SEARCH="jabber:iq:search",t.NS_RSM="http://jabber.org/protocol/rsm",t.NS_PUBSUB="http://jabber.org/protocol/pubsub",t.NS_PUBSUB_ERRORS="http://jabber.org/protocol/pubsub#errors",t.NS_PUBSUB_EVENT="http://jabber.org/protocol/pubsub#event",t.NS_PUBSUB_OWNER="http://jabber.org/protocol/pubsub#owner",t.NS_SOCKS5="http://jabber.org/protocol/bytestreams",t.NS_OOB="jabber:x:oob",t.NS_OOB_TRANSFER="jabber:iq:oob",t.NS_HTTP_AUTH="http://jabber.org/protocol/http-auth",t.NS_XHTML="http://www.w3.org/1999/xhtml",t.NS_XHTML_IM="http://jabber.org/protocol/xhtml-im",t.NS_REGISTER="jabber:iq:register",t.NS_INBAND_REGISTRATION="http://jabber.org/features/iq-register",t.NS_AMP="http://jabber.org/protocol/amp",t.NS_GEOLOC="http://jabber.org/protocol/geoloc",t.NS_ROSTER_DELIMITER="roster:delimiter",t.NS_AVATAR_DATA="urn:xmpp:avatar:data",t.NS_AVATAR_METADATA="urn:xmpp:avatar:metadata",t.NS_CHAT_STATES="http://jabber.org/protocol/chatstates",t.NS_VERSION="jabber:iq:version",t.NS_MOOD="http://jabber.org/protocol/mood",t.NS_ACTIVITY="http://jabber.org/protocol/activity",t.NS_COMPONENT="jabber:component:accept",t.NS_DISCO_LEGACY_CAPS="http://jabber.org/protocol/caps",t.NS_TUNE="http://jabber.org/protocol/tune",t.NS_DATAFORM_VALIDATION="http://jabber.org/protocol/xdata-validate",t.NS_BOSH="http://jabber.org/protocol/httpbind",t.NS_SHIM="http://jabber.org/protocol/shim",t.NS_COMPRESSION_FEATURE="http://jabber.org/features/compress",t.NS_COMPRESSION="http://jabber.org/protocol/compress",t.NS_DATAFORM_LAYOUT="http://jabber.org/protocol/xdata-layout",t.NS_ROSTER_EXCHANGE="http://jabber.org/protocol/rosterx",t.NS_ROSTER_NOTES="storage:rosternotes",t.NS_REACH_0="urn:xmpp:reach:0",t.NS_VCARD_TEMP_UPDATE="vcard-temp:x:update",t.NS_ALT_CONNECTIONS_WEBSOCKET="urn:xmpp:alt-connections:websocket",t.NS_ALT_CONNECTIONS_XBOSH="urn:xmpp:alt-connections:xbosh",t.NS_CAPTCHA="urn:xmpp:captcha";t.NS_PEP_NOTIFY=e=>e+"+notify",t.NS_JINGLE_1="urn:xmpp:jingle:1",t.NS_JINGLE_ERRORS_1="urn:xmpp:jingle:errors:1",t.NS_JINGLE_RTP_1="urn:xmpp:jingle:apps:rtp:1",t.NS_JINGLE_RTP_ERRORS_1="urn:xmpp:jingle:apps:rtp:errors:1",t.NS_JINGLE_RTP_INFO_1="urn:xmpp:jingle:apps:rtp:info:1",t.NS_JINGLE_RTP_AUDIO="urn:xmpp:jingle:apps:rtp:audio",t.NS_JINGLE_RTP_VIDEO="urn:xmpp:jingle:apps:rtp:video",t.NS_LANG_TRANS="urn:xmpp:langtrans",t.NS_LANG_TRANS_ITEMS="urn:xmpp:langtrans:items",t.NS_NICK="http://jabber.org/protocol/nick",t.NS_JINGLE_ICE_UDP_1="urn:xmpp:jingle:transports:ice-udp:1",t.NS_JINGLE_RAW_UDP_1="urn:xmpp:jingle:transports:raw-udp:1",t.NS_RECEIPTS="urn:xmpp:receipts",t.NS_INVISIBLE_0="urn:xmpp:invisible:0",t.NS_BLOCKING="urn:xmpp:blocking",t.NS_BLOCKING_ERRORS="urn:xmpp:blocking:errors",t.NS_SMACKS_3="urn:xmpp:sm:3",t.NS_PING="urn:xmpp:ping",t.NS_TIME="urn:xmpp:time",t.NS_DELAY="urn:xmpp:delay",t.NS_BOSH_XMPP="urn:xmpp:xbosh",t.NS_DISCO_EXTERNAL_1="urn:xmpp:extdisco:1",t.NS_DISCO_EXTERNAL_2="urn:xmpp:extdisco:2",t.NS_DATAFORM_MEDIA="urn:xmpp:media-element",t.NS_ATTENTION_0="urn:xmpp:attention:0",t.NS_BOB="urn:xmpp:bob",t.NS_SOFTWARE_INFO="urn:xmpp:dataforms:softwareinfo",t.NS_JINGLE_FILE_TRANSFER_3="urn:xmpp:jingle:apps:file-transfer:3",t.NS_JINGLE_FILE_TRANSFER_4="urn:xmpp:jingle:apps:file-transfer:4",t.NS_JINGLE_FILE_TRANSFER_5="urn:xmpp:jingle:apps:file-transfer:5",t.NS_JINGLE_XML_0="urn:xmpp:jingle:apps:xmlstream:0",t.NS_MUC_DIRECT_INVITE="jabber:x:conference",t.NS_SEC_LABEL_0="urn:xmpp:sec-label:0",t.NS_SEC_LABEL_CATALOG_2="urn:xmpp:sec-label:catalog:2",t.NS_SEC_LABEL_ESS_0="urn:xmpp:sec-label:ess:0",t.NS_JINGLE_SOCKS5_1="urn:xmpp:jingle:transports:s5b:1",t.NS_JINGLE_IBB_1="urn:xmpp:jingle:transports:ibb:1",t.NS_JINGLE_RTP_ZRTP_1="urn:xmpp:jingle:apps:rtp:zrtp:1",t.NS_THUMBS_0="urn:xmpp:thumbs:0",t.NS_THUMBS_1="urn:xmpp:thumbs:1",t.NS_DECLOAKING_0="urn:xmpp:decloaking:0",t.NS_CARBONS_2="urn:xmpp:carbons:2",t.NS_JINGLE_RTP_RTCP_FB_0="urn:xmpp:jingle:apps:rtp:rtcp-fb:0",t.NS_JINGLE_RTP_HDREXT_0="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",t.NS_FORWARD_0="urn:xmpp:forward:0",t.NS_HASHES_1="urn:xmpp:hashes:1",t.NS_HASHES_2="urn:xmpp:hashes:2";t.NS_HASH_NAME=e=>"urn:xmpp:hash-function-text-names:"+e,t.NS_RTT_0="urn:xmpp:rtt:0",t.NS_MUC_UNIQUE="http://jabber.org/protocol/muc#unique",t.NS_CORRECTION_0="urn:xmpp:message-correct:0",t.NS_PSA="urn:xmpp:psa",t.NS_MAM_TMP="urn:xmpp:mam:tmp",t.NS_MAM_0="urn:xmpp:mam:0",t.NS_MAM_1="urn:xmpp:mam:1",t.NS_MAM_2="urn:xmpp:mam:2",t.NS_HATS_0="urn:xmpp:hats:0",t.NS_IDLE_1="urn:xmpp:idle:1",t.NS_JINGLE_DTLS_0="urn:xmpp:jingle:apps:dtls:0",t.NS_CHAT_MARKERS_0="urn:xmpp:chat-markers:0",t.NS_HINTS="urn:xmpp:hints",t.NS_JSON_0="urn:xmpp:json:0",t.NS_JINGLE_GROUPING_0="urn:xmpp:jingle:apps:grouping:0",t.NS_JINGLE_RTP_SSMA_0="urn:xmpp:jingle:apps:rtp:ssma:0",t.NS_JINGLE_DTLS_SCTP_1="urn:xmpp:jingle:transports:dtls-sctp:1",t.NS_CSI_0="urn:xmpp:csi:0",t.NS_JINGLE_MSG_INITIATE_0="urn:xmpp:jingle:jingle-message:0",t.NS_DELEGATION_1="urn:xmpp:delegation:1",t.NS_PUSH_0="urn:xmpp:push:0",t.NS_JINGLE_PUB_1="urn:xmpp:jinglepub:1",t.NS_SID_0="urn:xmpp:sid:0",t.NS_HTTP_UPLOAD_0="urn:xmpp:http:upload:0",t.NS_JINGLE_HTTP_0="urn:xmpp:jingle:transports:http:0",t.NS_JINGLE_HTTP_UPLOAD_0="urn:xmpp:jingle:transports:http:upload:0",t.NS_JINGLE_ICE_0="urn:xmpp:jingle:transports:ice:0",t.NS_REFERENCE_0="urn:xmpp:reference:0",t.NS_EME_0="urn:xmpp:eme:0",t.NS_SPOILER_0="urn:xmpp:spoiler:0",t.NS_OMEMO_AXOLOTL="eu.siacs.conversations.axolotl",t.NS_OMEMO_AXOLOTL_DEVICELIST="eu.siacs.conversations.axolotl.devicelist",t.NS_OMEMO_AXOLOTL_BUNDLES="eu.siacs.conversations.axolotl.bundles";t.NS_OMEMO_AXOLOTL_BUNDLE=e=>`${t.NS_OMEMO_AXOLOTL_BUNDLES}:${e}`,t.NS_JSON_MESSAGE_0="urn:xmpp:json-msg:0",t.NS_XRD="http://docs.oasis-open.org/ns/xri/xrd-1.0",t.NS_JINGLE_RTP_MSID_0="urn:xmpp:jingle:apps:rtp:msid:0"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.define=t.XMLElement=t.Translator=t.Registry=t.StreamParser=t.parse=t.Parser=void 0;const r=n(4),i=(0,r.__importDefault)(n(31));t.XMLElement=i.default;const s=(0,r.__importDefault)(n(269));t.Registry=s.default;const o=(0,r.__importDefault)(n(87));t.Translator=o.default,(0,r.__exportStar)(n(32),t),(0,r.__exportStar)(n(52),t),(0,r.__exportStar)(n(280),t);var a=n(54);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}});var c=n(281);Object.defineProperty(t,"StreamParser",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}}),t.define=function(e){return t=>{t.define(e)}}},function(e,t,n){"use strict";var r=n(0);function i(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.a.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const s=i.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{o[e]={value:e}}),Object.defineProperties(i,o),Object.defineProperty(s,"isAxiosError",{value:!0}),i.from=(e,t,n,o,a,c)=>{const u=Object.create(s);return r.a.toFlatObject(e,u,(function(e){return e!==Error.prototype}),e=>"isAxiosError"!==e),i.call(u,e.message,t,n,o,a),u.cause=e,u.name=e.name,c&&Object.assign(u,c),u},t.a=i},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return s})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__esDecorate",(function(){return u})),n.d(t,"__runInitializers",(function(){return l})),n.d(t,"__propKey",(function(){return d})),n.d(t,"__setFunctionName",(function(){return p})),n.d(t,"__metadata",(function(){return h})),n.d(t,"__awaiter",(function(){return f})),n.d(t,"__generator",(function(){return m})),n.d(t,"__createBinding",(function(){return g})),n.d(t,"__exportStar",(function(){return y})),n.d(t,"__values",(function(){return b})),n.d(t,"__read",(function(){return v})),n.d(t,"__spread",(function(){return _})),n.d(t,"__spreadArrays",(function(){return S})),n.d(t,"__spreadArray",(function(){return w})),n.d(t,"__await",(function(){return T})),n.d(t,"__asyncGenerator",(function(){return I})),n.d(t,"__asyncDelegator",(function(){return A})),n.d(t,"__asyncValues",(function(){return E})),n.d(t,"__makeTemplateObject",(function(){return N})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return R})),n.d(t,"__classPrivateFieldGet",(function(){return O})),n.d(t,"__classPrivateFieldSet",(function(){return P})),n.d(t,"__classPrivateFieldIn",(function(){return k})),n.d(t,"__addDisposableResource",(function(){return j})),n.d(t,"__disposeResources",(function(){return L}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=r.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var g=(0,n[h])("accessor"===c?{get:d.get,set:d.set}:d[u],f);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=o(g.get))&&(d.get=a),(a=o(g.set))&&(d.set=a),(a=o(g.init))&&i.unshift(a)}else(a=o(g))&&("field"===c?i.unshift(a):d[u]=a)}l&&Object.defineProperty(l,r.name,d),p=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))}function m(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}function w(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function T(e){return this instanceof T?(this.v=e,this):new T(e)}function I(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof T?Promise.resolve(n.value.v).then(c,u):l(s[0][2],n)}catch(e){l(s[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function A(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:T(e[r](t)),done:!1}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=b(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function N(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return x(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function P(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function k(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function j(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function L(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:s,__rest:o,__decorate:a,__param:c,__metadata:h,__awaiter:f,__generator:m,__createBinding:g,__exportStar:y,__values:b,__read:v,__spread:_,__spreadArrays:S,__spreadArray:w,__await:T,__asyncGenerator:I,__asyncDelegator:A,__asyncValues:E,__makeTemplateObject:N,__importStar:C,__importDefault:R,__classPrivateFieldGet:O,__classPrivateFieldSet:P,__classPrivateFieldIn:k,__addDisposableResource:j,__disposeResources:L}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.directionToSenders=t.sendersToDirection=t.JINGLE_INFO_RECEIVED_5=t.JINGLE_INFO_CHECKSUM_5=t.JINGLE_INFO_RINGING=t.JINGLE_INFO_ACTIVE=t.JINGLE_INFO_UNHOLD=t.JINGLE_INFO_HOLD=t.JINGLE_INFO_UNMUTE=t.JINGLE_INFO_MUTE=t.JINGLE_INFO=t.USER_ACTIVITY_SPECIFIC=t.USER_ACTIVITY_GENERAL=t.USER_MOODS=t.JingleReasonCondition=t.JingleErrorCondition=t.JingleAction=t.JingleContentSenders=t.JingleApplicationDirection=t.JingleSessionRole=t.ChatState=t.PubsubErrorCondition=t.MUCStatusCode=t.MUCRole=t.MUCAffiliation=t.DataFormFieldType=t.DataFormType=t.RosterSubscription=t.PresenceShow=t.IQType=t.PresenceType=t.MessageType=t.StanzaErrorCondition=t.StreamErrorCondition=t.SASLFailureCondition=t.StreamType=t.VERSION=void 0;const r=n(1);t.VERSION="12.20.0";t.StreamType={Bosh:r.NS_BOSH,Client:r.NS_CLIENT,Component:r.NS_COMPONENT,Server:r.NS_SERVER},t.SASLFailureCondition={AccountDisabled:"account-disabled",CredentialsExpired:"credentials-expired",EncryptionRequired:"encryption-required",IncorrectEncoding:"incorrect-encoding",InvalidAuthzid:"invalid-authzid",InvalidMechanism:"invalid-mechanism",MalformedRequest:"malformed-request",MechanismTooWeak:"mechanism-too-weak",NotAuthorized:"not-authorized",TemporaryAuthFailure:"temporary-auth-failure"},t.StreamErrorCondition={BadFormat:"bad-format",BadNamespacePrefix:"bad-namespace-prefix",Conflict:"conflict",ConnectionTimeout:"connection-timeout",HostGone:"host-gone",HostUnknown:"host-unknown",ImproperAddressing:"improper-addressing",InternalServerError:"internal-server-error",InvalidFrom:"invalid-from",InvalidId:"invalid-id",InvalidNamespace:"invalid-namespace",InvalidXML:"invalid-xml",NotAuthorized:"not-authorized",NotWellFormed:"not-well-formed",PolicyViolation:"policy-violation",RemoteConnectionFailed:"remote-connection-failed",Reset:"reset",ResourceConstraint:"resource-constraint",RestrictedXML:"restricted-xml",SeeOtherHost:"see-other-host",SystemShutdown:"system-shutdown",UndefinedCondition:"undefined-condition",UnsupportedEncoding:"unsupported-encoding",UnsupportedStanzaType:"unsupported-stanza-type",UnsupportedVersion:"unsupported-version"},t.StanzaErrorCondition={BadRequest:"bad-request",Conflict:"conflict",FeatureNotImplemented:"feature-not-implemented",Forbidden:"forbidden",Gone:"gone",InternalServerError:"internal-server-error",ItemNotFound:"item-not-found",JIDMalformed:"jid-malformed",NotAcceptable:"not-acceptable",NotAllowed:"not-allowed",NotAuthorized:"not-authorized",PolicyViolation:"policy-violation",RecipientUnavailable:"recipient-unavailable",Redirect:"redirect",RegistrationRequired:"registration-required",RemoteServerNotFound:"remote-server-not-found",RemoteServerTimeout:"remote-server-timeout",ResourceConstraint:"resource-constraint",ServiceUnavailable:"service-unavailable",SubscriptionRequired:"subscription-required",UndefinedCondition:"undefined-condition",UnexpectedRequest:"unexpected-request"},t.MessageType={Chat:"chat",Error:"error",GroupChat:"groupchat",Headline:"headline",Normal:"normal"},t.PresenceType={Available:void 0,Error:"error",Probe:"probe",Subscribe:"subscribe",Subscribed:"subscribed",Unavailable:"unavailable",Unsubscribe:"unsubscribe",Unsubscribed:"unsubscribed"},t.IQType={Error:"error",Get:"get",Result:"result",Set:"set"},t.PresenceShow={Away:"away",Chat:"chat",DoNotDisturb:"dnd",ExtendedAway:"xa"},t.RosterSubscription={Both:"both",From:"from",None:"none",ReceivePresenceOnly:"to",Remove:"remove",SendAndReceivePresence:"both",SendPresenceOnly:"from",To:"to"},t.DataFormType={Cancel:"cancel",Form:"form",Result:"result",Submit:"submit"},t.DataFormFieldType={Boolean:"boolean",Fixed:"fixed",Hidden:"hidden",JID:"jid-single",JIDMultiple:"jid-multi",List:"list-single",ListMultiple:"list-multi",Password:"text-private",Text:"text-single",TextMultiple:"text-multi",TextPrivate:"text-private"},t.MUCAffiliation={Admin:"admin",Banned:"outcast",Member:"member",None:"none",Outcast:"outcast",Owner:"owner"},t.MUCRole={Moderator:"moderator",None:"none",Participant:"participant",Visitor:"visitor"},t.MUCStatusCode={AffiliationChanged:"101",AffiliationLost:"321",Banned:"301",Error:"333",Kicked:"307",LoggingDisabled:"171",LoggingEnabled:"170",MembershipLost:"322",NickChanged:"303",NickChangedByService:"210",NonAnonymous:"172",NonAnonymousRoom:"100",NonPrivacyConfigurationChange:"104",RoomCreated:"201",SelfPresence:"110",SemiAnonymous:"173",Shutdown:"332",UnavailableMembersListed:"102",UnavailableMembersNotListed:"103"},t.PubsubErrorCondition={ClosedNode:"closed-node",ConfigurationRequired:"configuration-required",InvalidJID:"invalid-jid",InvalidOptions:"invalid-options",InvalidPayload:"invalid-payload",InvalidSubscriptionId:"invalid-subid",ItemForbidden:"item-forbidden",ItemRequired:"item-required",JIDRequired:"jid-required",MaxItemsExceeded:"max-items-exceeded",MaxNodesExceeded:"max-nodes-exceeded",NodeIdRequired:"nodeid-required",NotInRosterGroup:"not-in-roster-group",NotSubscribed:"not-subscribed",PayloadRequired:"payload-required",PayloadTooBig:"payload-too-big",PendingSubscription:"pending-subscription",PresenceSubscriptionRequired:"presence-subscription-required",SubscriptionIdRequired:"subid-required",TooManySubscriptions:"too-many-subscriptions",Unsupported:"unsupported",UnsupportedAccessModel:"unsupported-access-model"},t.ChatState={Active:"active",Composing:"composing",Gone:"gone",Inactive:"inactive",Paused:"paused"},t.JingleSessionRole={Initiator:"initiator",Responder:"responder"},t.JingleApplicationDirection={Inactive:"inactive",Receive:"recvonly",Send:"sendonly",SendReceive:"sendrecv"},t.JingleContentSenders={Both:"both",Initiator:"initiator",None:"none",Responder:"responder"},t.JingleAction={ContentAccept:"content-accept",ContentAdd:"content-add",ContentModify:"content-modify",ContentReject:"content-reject",ContentRemove:"content-remove",DescriptionInfo:"description-info",SecurityInfo:"security-info",SessionAccept:"session-accept",SessionInfo:"session-info",SessionInitiate:"session-initiate",SessionTerminate:"session-terminate",TransportAccept:"transport-accept",TransportInfo:"transport-info",TransportReject:"transport-reject",TransportReplace:"transport-replace"},t.JingleErrorCondition={OutOfOrder:"out-of-order",TieBreak:"tie-break",UnknownContent:"unknown-content",UnknownSession:"unknown-session",UnsupportedInfo:"unsupported-info"},t.JingleReasonCondition={AlternativeSession:"alternative-session",Busy:"busy",Cancel:"cancel",ConnectivityError:"connectivity-error",Decline:"decline",Expired:"expired",FailedApplication:"failed-application",FailedTransport:"failed-transport",GeneralError:"general-error",Gone:"gone",IncompatibleParameters:"incompatible-parameters",MediaError:"media-error",SecurityError:"security-error",Success:"success",Timeout:"timeout",UnsupportedApplications:"unsupported-applications",UnsupportedTransports:"unsupported-transports"},t.USER_MOODS=["afraid","amazed","amorous","angry","annoyed","anxious","aroused","ashamed","bored","brave","calm","cautious","cold","confident","confused","contemplative","contented","cranky","crazy","creative","curious","dejected","depressed","disappointed","disgusted","dismayed","distracted","embarrassed","envious","excited","flirtatious","frustrated","grateful","grieving","grumpy","guilty","happy","hopeful","hot","humbled","humiliated","hungry","hurt","impressed","in_awe","in_love","indignant","interested","intoxicated","invincible","jealous","lonely","lost","lucky","mean","moody","nervous","neutral","offended","outraged","playful","proud","relaxed","relieved","remorseful","restless","sad","sarcastic","satisfied","serious","shocked","shy","sick","sleepy","spontaneous","stressed","strong","surprised","thankful","thirsty","tired","undefined","weak","worried"],t.USER_ACTIVITY_GENERAL=["doing_chores","drinking","eating","exercising","grooming","having_appointment","inactive","relaxing","talking","traveling","undefined","working"],t.USER_ACTIVITY_SPECIFIC=["at_the_spa","brushing_teeth","buying_groceries","cleaning","coding","commuting","cooking","cycling","cycling","dancing","day_off","doing_maintenance","doing_the_dishes","doing_the_laundry","driving","fishing","gaming","gardening","getting_a_haircut","going_out","hanging_out","having_a_beer","having_a_snack","having_breakfast","having_coffee","having_dinner","having_lunch","having_tea","hiding","hiking","in_a_car","in_a_meeting","in_real_life","jogging","on_a_bus","on_a_plane","on_a_train","on_a_trip","on_the_phone","on_vacation","on_video_phone","other","partying","playing_sports","praying","reading","rehearsing","running","running_an_errand","scheduled_holiday","shaving","shopping","skiing","sleeping","smoking","socializing","studying","sunbathing","swimming","taking_a_bath","taking_a_shower","thinking","walking","walking_the_dog","watching_a_movie","watching_tv","working_out","writing"];t.JINGLE_INFO=(e,t)=>`{${e}}${t}`,t.JINGLE_INFO_MUTE=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"mute"),t.JINGLE_INFO_UNMUTE=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"unmute"),t.JINGLE_INFO_HOLD=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"hold"),t.JINGLE_INFO_UNHOLD=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"unhold"),t.JINGLE_INFO_ACTIVE=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"active"),t.JINGLE_INFO_RINGING=(0,t.JINGLE_INFO)(r.NS_JINGLE_RTP_INFO_1,"ringing"),t.JINGLE_INFO_CHECKSUM_5=(0,t.JINGLE_INFO)(r.NS_JINGLE_FILE_TRANSFER_5,"checksum"),t.JINGLE_INFO_RECEIVED_5=(0,t.JINGLE_INFO)(r.NS_JINGLE_FILE_TRANSFER_5,"received"),t.sendersToDirection=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.JingleContentSenders.Both;const r=e===t.JingleSessionRole.Initiator;switch(n){case t.JingleContentSenders.Initiator:return r?t.JingleApplicationDirection.Send:t.JingleApplicationDirection.Receive;case t.JingleContentSenders.Responder:return r?t.JingleApplicationDirection.Receive:t.JingleApplicationDirection.Send;case t.JingleContentSenders.Both:return t.JingleApplicationDirection.SendReceive}return t.JingleApplicationDirection.Inactive},t.directionToSenders=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.JingleApplicationDirection.SendReceive;const r=e===t.JingleSessionRole.Initiator;switch(n){case t.JingleApplicationDirection.Send:return r?t.JingleContentSenders.Initiator:t.JingleContentSenders.Responder;case t.JingleApplicationDirection.Receive:return r?t.JingleContentSenders.Responder:t.JingleContentSenders.Initiator;case t.JingleApplicationDirection.SendReceive:return t.JingleContentSenders.Both}return t.JingleContentSenders.None}},function(e,t,n){"use strict";var r=n(207),i=n(81),s=n(219),o=n(79),a=n(15),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",(function(e){c(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=o(e),a=i(r.length),u=0;if(a+t>n)throw RangeError("Wrong length");for(;u<a;)this[t+u]=r[u++]}),a((function(){new Int8Array(1).set({})})))},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,s=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}y(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&y(e,"error",t,n)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,s,o,a;if(u(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),o=s[t]),void 0===o)o=s[t]=n,++e._eventsCount;else if("function"==typeof o?o=s[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=l(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,a=c,console&&console.warn&&console.warn(a)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(s){r.once&&e.removeEventListener(t,i),n(s)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)s(c,this,t);else{var u=c.length,l=g(c,u);for(n=0;n<u;++n)s(l[n],this,t)}return!0},a.prototype.addListener=function(e,t){return d(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return d(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,h(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,h(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,s,o;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(i=s[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(function(t){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 t&&t)||Function("return this")()}).call(this,n(12))},function(e,t,n){"use strict";n(6),Object.defineProperty(t,"__esModule",{value:!0}),t.PassThrough=t.Duplex=t.Transform=t.Writable=t.Readable=t.WebSocket=t.RTCPeerConnection=t.fetch=t.Hmac=t.Hash=t.createHash=t.Buffer=t.name=t.createResolver=t.createHmac=t.getHashes=t.randomBytes=void 0;const r=n(4),i=n(11);Object.defineProperty(t,"Buffer",{enumerable:!0,get:function(){return i.Buffer}});const s=(0,r.__importStar)(n(88));t.createHash=s.default,Object.defineProperty(t,"Hash",{enumerable:!0,get:function(){return s.Hash}});const o=(0,r.__importDefault)(n(279));t.Hmac=o.default;const a=n(53);Object.defineProperty(t,"Readable",{enumerable:!0,get:function(){return a.Readable}}),Object.defineProperty(t,"Writable",{enumerable:!0,get:function(){return a.Writable}}),Object.defineProperty(t,"Transform",{enumerable:!0,get:function(){return a.Transform}}),Object.defineProperty(t,"PassThrough",{enumerable:!0,get:function(){return a.PassThrough}}),Object.defineProperty(t,"Duplex",{enumerable:!0,get:function(){return a.Duplex}}),t.randomBytes=function(e){const t=new Uint8Array(e);return e>0&&(globalThis.crypto||globalThis.msCrypto).getRandomValues(t),i.Buffer.from(t.buffer)},t.getHashes=function(){return["sha-1","sha-256","sha-512","md5"]},t.createHmac=function(e,t){return new o.default(e.toLowerCase(),t)},t.createResolver=function(){};const c=globalThis.fetch.bind(globalThis);t.fetch=c;const u=globalThis.WebSocket;t.WebSocket=u;const l=globalThis.RTCPeerConnection;t.RTCPeerConnection=l,t.name="browser"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toURI=t.parseURI=t.toBare=t.getResource=t.getDomain=t.getLocal=t.isBare=t.isFull=t.equalBare=t.equal=t.allowedResponders=t.parse=t.createFull=t.create=t.prepare=t.unescapeLocal=t.escapeLocal=void 0;const r=(0,n(4).__importDefault)(n(50)),i=n(86);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/^\s+|\s+$/g,"").replace(/\\5c/g,"\\5c5c").replace(/\\20/g,"\\5c20").replace(/\\22/g,"\\5c22").replace(/\\26/g,"\\5c26").replace(/\\27/g,"\\5c27").replace(/\\2f/g,"\\5c2f").replace(/\\3a/g,"\\5c3a").replace(/\\3c/g,"\\5c3c").replace(/\\3e/g,"\\5c3e").replace(/\\40/g,"\\5c40").replace(/ /g,"\\20").replace(/"/g,"\\22").replace(/&/g,"\\26").replace(/'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")}function o(e){return e.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")}function a(e){let t=e.local||"",n=e.domain,s=e.resource||"";return t&&(t=(0,i.nodeprep)(t)),s&&(s=(0,i.resourceprep)(s)),"."===n[n.length-1]&&(n=n.slice(0,n.length-1)),n=(0,i.nameprep)(n.split(".").map(r.default.toUnicode).join(".")),{domain:n,local:t,resource:s}}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.local;t.escaped||(n=s(e.local));const r=t.prepared?e:a({local:n,domain:e.domain,resource:e.resource}),i=n?`${n}@${r.domain}`:r.domain;return r.resource?`${i}/${r.resource}`:i}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",n="",r="";const i=e.indexOf("/");i>0&&(r=e.slice(i+1),e=e.slice(0,i));const s=e.indexOf("@");s>0&&(t=e.slice(0,s),e=e.slice(s+1)),n=e;const u=a({domain:n,local:t,resource:r});return{bare:c({local:u.local,domain:u.domain},{escaped:!0,prepared:!0}),domain:u.domain,full:c(u,{escaped:!0,prepared:!0}),local:o(u.local),resource:u.resource}}function l(e){return!!u(e).resource}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return u(e).bare}t.escapeLocal=s,t.unescapeLocal=o,t.prepare=a,t.create=c,t.createFull=function(e,t){return t?`${d(e)}/${t}`:d(e)},t.parse=u,t.allowedResponders=function(e,t){const n=new Set;if(n.add(void 0),n.add(""),e){const t=u(e);n.add(t.full),n.add(t.bare),n.add(t.domain)}if(t){const e=u(t);n.add(e.domain),n.add(e.bare),n.add(e.full)}return n},t.equal=function(e,t){if(!e||!t)return!1;const n=u(e),r=u(t);return n.local===r.local&&n.domain===r.domain&&n.resource===r.resource},t.equalBare=function(e,t){if(!e||!t)return!1;const n=u(e),r=u(t);return n.local===r.local&&n.domain===r.domain},t.isFull=l,t.isBare=function(e){return!l(e)},t.getLocal=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return u(e).local},t.getDomain=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return u(e).domain},t.getResource=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return u(e).resource},t.toBare=d,t.parseURI=function(e){const t=new URL(e);if("xmpp:"!==t.protocol)throw new Error("Invalid XMPP URI, wrong protocol: "+t.protocol);const n=t.hostname?t.username?c({domain:decodeURIComponent(t.hostname),local:decodeURIComponent(t.username)},{escaped:!0}):decodeURIComponent(t.hostname):void 0,r=u(decodeURIComponent(n?t.pathname.substr(1):t.pathname)).full,i=t.search&&t.search.indexOf(";")>=1,s=i?t.search.substr(t.search.indexOf(";")+1):"",o=t.search?decodeURIComponent(t.search.substr(1,i?t.search.indexOf(";")-1:void 0)):void 0,a={};for(const e of s.split(";")){const[t,n]=e.split("=").map(decodeURIComponent);if(a[t]){const e=a[t];Array.isArray(e)?e.push(n):a[t]=[e,n]}else a[t]=n}return{action:o,identity:n,jid:r,parameters:a}},t.toURI=function(e){const t=["xmpp:"],n=(e,n)=>{const r=u(e);r.local&&(t.push(encodeURIComponent(s(r.local))),t.push("@")),t.push(encodeURIComponent(r.domain)),n&&r.resource&&(t.push("/"),t.push(encodeURIComponent(r.resource)))};e.identity&&(t.push("//"),n(e.identity,!1),e.jid&&t.push("/")),e.jid&&n(e.jid,!0),e.action&&(t.push("?"),t.push(encodeURIComponent(e.action)));for(const[n,r]of Object.entries(e.parameters||{}))for(const e of Array.isArray(r)?r:[r])t.push(";"),t.push(encodeURIComponent(n)),void 0!==e&&(t.push("="),t.push(encodeURIComponent(e)));return t.join("")}},function(e,t,n){"use strict";
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
5
5
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
6
6
|
* @license MIT
|
|
7
|
-
*/n(6);const r=n(271),i=n(272),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},t.INSPECT_MAX_BYTES=50;function o(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|f(e,t);let r=o(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(W(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);const i=function(e){if(a.isBuffer(e)){const t=0|h(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||$(e.length)?o(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),o(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=o(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,a.prototype),r}function h(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),$(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let s,o=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(s=n;s<a;s++)if(u(e,s)===u(t,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===c)return r*o}else-1!==r&&(s-=s-r),r=-1}else for(n+c>a&&(n=a-c),s=n;s>=0;s--){let n=!0;for(let r=0;r<c;r++)if(u(e,s+r)!==u(t,r)){n=!1;break}if(n)return s}return-1}function v(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const s=t.length;let o;for(r>s/2&&(r=s/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if($(r))return o;e[n+o]=r}return o}function _(e,t,n,r){return V(G(t,e.length-n),e,n,r)}function S(e,t,n,r){return V(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return V(H(t),e,n,r)}function T(e,t,n,r){return V(function(e,t){let n,r,i;const s=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,a,c;switch(o){case 1:t<128&&(s=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(s=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(s=c));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(s=c))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(e){const t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(W(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=a.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(W(t,Uint8Array))i+t.length>r.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):m.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,i){if(W(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let s=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const c=Math.min(s,o),u=this.slice(r,i),l=e.slice(t,n);for(let e=0;e<c;++e)if(u[e]!==l[e]){s=u[e],o=l[e];break}return s<o?-1:o<s?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function N(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function E(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function x(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=Q[e[r]];return i}function R(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,s){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r,i){q(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function k(e,t,n,r,i){q(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s>>=8,e[n+6]=s,s>>=8,e[n+5]=s,s>>=8,e[n+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function j(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,s){return t=+t,n>>>=0,s||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,s){return t=+t,n>>>=0,s||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}a.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return r},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),a.prototype.readBigUInt64BE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=t,i=1,s=this[e+--r];for(;r>0&&(i*=256);)s+=this[e+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),a.prototype.readBigInt64BE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){O(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,s=0;for(this[t]=255&e;++s<n&&(i*=256);)this[t+s]=e/i&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){O(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=K((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=K((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}let i=0,s=1,o=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}let i=n-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=K((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=K((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const s=a.isBuffer(e)?e:a.from(e,r),o=s.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%o]}return this};const D={};function B(e,t,n){D[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function F(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function q(e,t,n,r,i,s){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=s>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(s+1)}${r}`:`>= -(2${r} ** ${8*(s+1)-1}${r}) and < 2 ** ${8*(s+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new D.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||J(t,e.length-(n+1))}(r,i,s)}function U(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?e+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=F(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const z=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const s=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function H(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function W(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function $(e){return e!=e}const Q=function(){const e=new Array(256);for(let t=0;t<16;++t){const n=16*t;for(let r=0;r<16;++r)e[n+r]="0123456789abcdef"[t]+"0123456789abcdef"[r]}return e}();function K(e){return"undefined"==typeof BigInt?Y:e}function Y(){throw new Error("BigInt not supported")}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reviveData=t.uuid=t.octetCompare=t.sleep=t.shuffle=t.promiseAny=t.timeoutPromise=void 0;const r=n(9),i=[];for(let e=0;e<256;++e)i[e]=(e+256).toString(16).substr(1);t.timeoutPromise=async function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const i=await Promise.race([e,new Promise((e,i)=>{n=setTimeout(()=>i(r()),t)})]);return clearTimeout(n),i},t.promiseAny=async function(e){try{const t=await Promise.all(e.map(e=>e.then(e=>Promise.reject(e),e=>Promise.resolve(e))));return Promise.reject(t)}catch(e){return Promise.resolve(e)}},t.shuffle=function(e){let t=e.length;for(;t>0;){const n=Math.floor(Math.random()*t);t-=1;const r=e[t];e[t]=e[n],e[n]=r}return e},t.sleep=async function(e){return new Promise(t=>{setTimeout(()=>t(),e)})},t.octetCompare=function(e,t){const n="string"==typeof e?r.Buffer.from(e,"utf8"):e,i="string"==typeof t?r.Buffer.from(t,"utf8"):t;return n.compare(i)},t.uuid=function(){const e=(0,r.randomBytes)(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=0;return[i[e[t++]],i[e[t++]],i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],i[e[t++]],i[e[t++]],i[e[t++]],i[e[15]]].join("")};const s=new Set(["date","expires","httpUploadRetry","idleSince","published","since","stamp","timestamp","updated","utc"]),o=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)(?:Z|((\+|-)([\d|:]*)))?$/;t.reviveData=function(e,t){return s.has(e)&&t&&"string"==typeof t&&o.test(t)?new Date(t):t&&"object"==typeof t&&"Buffer"===t.type&&Array.isArray(t.data)?r.Buffer.from(t):t}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iceIsDifferent=t.getIcePwdFromSdp=t.getUfragFromSdp=t.calculatePayloadSize=t.parseJwt=t.retryPromise=t.isVideoJid=t.isSoftphoneJid=t.isScreenRecordingJid=t.isAcdJid=t.splitIntoIndividualTopics=t.delay=t.timeoutPromise=void 0;const r=n(24),i=n(85);t.timeoutPromise=function(e,t,n,r){return new Promise((function(s,o){const a=setTimeout((function(){const e=new i.TimeoutError("Timeout: "+n);e.details=r,o(e)}),t);e((function(e){clearTimeout(a),s(e)}),o)}))},t.delay=function(e){return new Promise(t=>{setTimeout(t,e)})},t.splitIntoIndividualTopics=function(e){const t=[];if(e.includes("?")){const n=e.split("?"),r=n[0],i=n[1]&&n[1].split("&");i&&i.length&&i.forEach(e=>{t.push(`${r}.${e}`)})}else t.push(e);return t};t.isAcdJid=function(e){return e.startsWith("acd-")&&!t.isSoftphoneJid(e)};t.isScreenRecordingJid=function(e){return e.startsWith("screenrecording-")&&!t.isSoftphoneJid(e)};t.isSoftphoneJid=function(e){return!!e&&!!e.match(/.*@.*gjoll.*/i)};t.isVideoJid=function(e){return!(!e||!e.match(/@conference/)||t.isAcdJid(e))},t.retryPromise=function(e,t){let n,i,s,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15e3,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:console,u=!1;const l=new Promise((r,l)=>{o=async()=>{try{const t=await e();s(t)}catch(e){let r=a;const s=t(e);Number.isInteger(s)&&(r=s),!1!==s?(c.debug("Retrying promise",e),n=setTimeout(o,r)):i(e)}},s=e=>{clearTimeout(n),u=!0,r(e)},i=e=>{clearTimeout(n),u=!0,l(e)},o()});return{promise:l,cancel:i,complete:s,_id:r.v4(),hasCompleted:()=>u}};function s(e){if(!e)return null;const t=e.match(/a=ice-ufrag:(\S+)/);return t?t[1]:null}function o(e){if(!e)return null;const t=e.match(/a=ice-pwd:(\S+)/);return t?t[1]:null}t.parseJwt=e=>{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(window.atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},t.calculatePayloadSize=function(e){const t=JSON.stringify(e),n=encodeURIComponent(t).match(/%[89ABab]/g);return t.length+(n?n.length:0)},t.getUfragFromSdp=s,t.getIcePwdFromSdp=o,t.iceIsDifferent=function(e,t){return s(e)!==s(t)||o(e)!==o(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(18);const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}t.a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=s(e,t);if(!Object(r.a)(n))throw TypeError("Stringified UUID is invalid");return n}},function(e,t,n){"use strict";var r=/^(?:[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;t.a=function(e){return"string"==typeof e&&r.test(e)}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n(3),s=n(39);function o(e){return r.a.isPlainObject(e)||r.a.isArray(e)}function a(e){return r.a.endsWith(e,"[]")?e.slice(0,-2):e}function c(e,t,n){return e?e.concat(t).map((function(e,t){return e=a(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const u=r.a.toFlatObject(r.a,{},null,(function(e){return/^is[A-Z]/.test(e)}));t.a=function(t,n,l){if(!r.a.isObject(t))throw new TypeError("target must be an object");n=n||new(s.a||FormData);const d=(l=r.a.toFlatObject(l,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!r.a.isUndefined(t[e])}))).metaTokens,p=l.visitor||y,h=l.dots,f=l.indexes,m=(l.Blob||"undefined"!=typeof Blob&&Blob)&&r.a.isSpecCompliantForm(n);if(!r.a.isFunction(p))throw new TypeError("visitor must be a function");function g(t){if(null===t)return"";if(r.a.isDate(t))return t.toISOString();if(!m&&r.a.isBlob(t))throw new i.a("Blob is not supported. Use a Buffer instead.");return r.a.isArrayBuffer(t)||r.a.isTypedArray(t)?m&&"function"==typeof Blob?new Blob([t]):e.from(t):t}function y(e,t,i){let s=e;if(e&&!i&&"object"==typeof e)if(r.a.endsWith(t,"{}"))t=d?t:t.slice(0,-2),e=JSON.stringify(e);else if(r.a.isArray(e)&&function(e){return r.a.isArray(e)&&!e.some(o)}(e)||(r.a.isFileList(e)||r.a.endsWith(t,"[]"))&&(s=r.a.toArray(e)))return t=a(t),s.forEach((function(e,i){!r.a.isUndefined(e)&&null!==e&&n.append(!0===f?c([t],i,h):null===f?t:t+"[]",g(e))})),!1;return!!o(e)||(n.append(c(i,t,h),g(e)),!1)}const b=[],v=Object.assign(u,{defaultVisitor:y,convertValue:g,isVisitable:o});if(!r.a.isObject(t))throw new TypeError("data must be an object");return function e(t,i){if(!r.a.isUndefined(t)){if(-1!==b.indexOf(t))throw Error("Circular reference detected in "+i.join("."));b.push(t),r.a.forEach(t,(function(t,s){!0===(!(r.a.isUndefined(t)||null===t)&&p.call(n,t,r.a.isString(s)?s.trim():s,i,v))&&e(t,i?i.concat(s):[s])})),b.pop()}}(t),n}}).call(this,n(253).Buffer)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return s})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return d})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return f})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return v})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return S})),n.d(t,"__importStar",(function(){return w})),n.d(t,"__importDefault",(function(){return T}));
|
|
7
|
+
*/n(6);const r=n(271),i=n(272),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},t.INSPECT_MAX_BYTES=50;function o(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|f(e,t);let r=o(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(W(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);const i=function(e){if(a.isBuffer(e)){const t=0|h(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||$(e.length)?o(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),o(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=o(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,a.prototype),r}function h(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),$(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let s,o=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(s=n;s<a;s++)if(u(e,s)===u(t,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===c)return r*o}else-1!==r&&(s-=s-r),r=-1}else for(n+c>a&&(n=a-c),s=n;s>=0;s--){let n=!0;for(let r=0;r<c;r++)if(u(e,s+r)!==u(t,r)){n=!1;break}if(n)return s}return-1}function v(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const s=t.length;let o;for(r>s/2&&(r=s/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if($(r))return o;e[n+o]=r}return o}function _(e,t,n,r){return V(G(t,e.length-n),e,n,r)}function S(e,t,n,r){return V(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return V(H(t),e,n,r)}function T(e,t,n,r){return V(function(e,t){let n,r,i;const s=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,a,c;switch(o){case 1:t<128&&(s=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(s=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(s=c));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(s=c))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(e){const t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(W(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=a.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(W(t,Uint8Array))i+t.length>r.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):m.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,i){if(W(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let s=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const c=Math.min(s,o),u=this.slice(r,i),l=e.slice(t,n);for(let e=0;e<c;++e)if(u[e]!==l[e]){s=u[e],o=l[e];break}return s<o?-1:o<s?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function N(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function x(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=Q[e[r]];return i}function C(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,s){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r,i){q(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function k(e,t,n,r,i){q(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s>>=8,e[n+6]=s,s>>=8,e[n+5]=s,s>>=8,e[n+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function j(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,s){return t=+t,n>>>=0,s||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,s){return t=+t,n>>>=0,s||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}a.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return r},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),a.prototype.readBigUInt64BE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=t,i=1,s=this[e+--r];for(;r>0&&(i*=256);)s+=this[e+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),a.prototype.readBigInt64BE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){O(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,s=0;for(this[t]=255&e;++s<n&&(i*=256);)this[t+s]=e/i&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){O(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=K((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=K((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}let i=0,s=1,o=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}let i=n-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=K((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=K((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const s=a.isBuffer(e)?e:a.from(e,r),o=s.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%o]}return this};const D={};function B(e,t,n){D[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function F(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function q(e,t,n,r,i,s){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=s>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(s+1)}${r}`:`>= -(2${r} ** ${8*(s+1)-1}${r}) and < 2 ** ${8*(s+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new D.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||J(t,e.length-(n+1))}(r,i,s)}function U(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?e+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=F(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const z=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const s=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function H(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function W(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function $(e){return e!=e}const Q=function(){const e=new Array(256);for(let t=0;t<16;++t){const n=16*t;for(let r=0;r<16;++r)e[n+r]="0123456789abcdef"[t]+"0123456789abcdef"[r]}return e}();function K(e){return"undefined"==typeof BigInt?Y:e}function Y(){throw new Error("BigInt not supported")}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iceIsDifferent=t.getIcePwdFromSdp=t.getUfragFromSdp=t.calculatePayloadSize=t.parseJwt=t.retryPromise=t.isVideoJid=t.isSoftphoneJid=t.isScreenRecordingJid=t.isAcdJid=t.splitIntoIndividualTopics=t.delay=t.timeoutPromise=t.StreamingClientError=void 0;const r=n(25),i=n(85),s=n(20);class o extends Error{constructor(e,t,n){let r;r=t instanceof Error?t.message:t,super(r),t instanceof Error&&(this.name=t.name),this.type=null!=e?e:s.StreamingClientErrorTypes.generic,this.details=n}}t.StreamingClientError=o,t.timeoutPromise=function(e,t,n,r){return new Promise((function(s,o){const a=setTimeout((function(){const e=new i.TimeoutError("Timeout: "+n);e.details=r,o(e)}),t);e((function(e){clearTimeout(a),s(e)}),o)}))},t.delay=function(e){return new Promise(t=>{setTimeout(t,e)})},t.splitIntoIndividualTopics=function(e){const t=[];if(e.includes("?")){const n=e.split("?"),r=n[0],i=n[1]&&n[1].split("&");i&&i.length&&i.forEach(e=>{t.push(`${r}.${e}`)})}else t.push(e);return t};t.isAcdJid=function(e){return e.startsWith("acd-")&&!t.isSoftphoneJid(e)};t.isScreenRecordingJid=function(e){return e.startsWith("screenrecording-")&&!t.isSoftphoneJid(e)};t.isSoftphoneJid=function(e){return!!e&&!!e.match(/.*@.*gjoll.*/i)};t.isVideoJid=function(e){return!(!e||!e.match(/@conference/)||t.isAcdJid(e))},t.retryPromise=function(e,t){let n,i,s,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15e3,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:console,u=!1;const l=new Promise((r,l)=>{o=async()=>{try{const t=await e();s(t)}catch(e){let r=a;const s=t(e);Number.isInteger(s)&&(r=s),!1!==s?(c.debug("Retrying promise",e),n=setTimeout(o,r)):i(e)}},s=e=>{clearTimeout(n),u=!0,r(e)},i=e=>{clearTimeout(n),u=!0,l(e)},o()});return{promise:l,cancel:i,complete:s,_id:r.v4(),hasCompleted:()=>u}};function a(e){if(!e)return null;const t=e.match(/a=ice-ufrag:(\S+)/);return t?t[1]:null}function c(e){if(!e)return null;const t=e.match(/a=ice-pwd:(\S+)/);return t?t[1]:null}t.parseJwt=e=>{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(window.atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},t.calculatePayloadSize=function(e){const t=JSON.stringify(e),n=encodeURIComponent(t).match(/%[89ABab]/g);return t.length+(n?n.length:0)},t.getUfragFromSdp=a,t.getIcePwdFromSdp=c,t.iceIsDifferent=function(e,t){return a(e)!==a(t)||c(e)!==c(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reviveData=t.uuid=t.octetCompare=t.sleep=t.shuffle=t.promiseAny=t.timeoutPromise=void 0;const r=n(9),i=[];for(let e=0;e<256;++e)i[e]=(e+256).toString(16).substr(1);t.timeoutPromise=async function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const i=await Promise.race([e,new Promise((e,i)=>{n=setTimeout(()=>i(r()),t)})]);return clearTimeout(n),i},t.promiseAny=async function(e){try{const t=await Promise.all(e.map(e=>e.then(e=>Promise.reject(e),e=>Promise.resolve(e))));return Promise.reject(t)}catch(e){return Promise.resolve(e)}},t.shuffle=function(e){let t=e.length;for(;t>0;){const n=Math.floor(Math.random()*t);t-=1;const r=e[t];e[t]=e[n],e[n]=r}return e},t.sleep=async function(e){return new Promise(t=>{setTimeout(()=>t(),e)})},t.octetCompare=function(e,t){const n="string"==typeof e?r.Buffer.from(e,"utf8"):e,i="string"==typeof t?r.Buffer.from(t,"utf8"):t;return n.compare(i)},t.uuid=function(){const e=(0,r.randomBytes)(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=0;return[i[e[t++]],i[e[t++]],i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],i[e[t++]],i[e[t++]],i[e[t++]],i[e[15]]].join("")};const s=new Set(["date","expires","httpUploadRetry","idleSince","published","since","stamp","timestamp","updated","utc"]),o=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)(?:Z|((\+|-)([\d|:]*)))?$/;t.reviveData=function(e,t){return s.has(e)&&t&&"string"==typeof t&&o.test(t)?new Date(t):t&&"object"==typeof t&&"Buffer"===t.type&&Array.isArray(t.data)?r.Buffer.from(t):t}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(18);const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}t.a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=s(e,t);if(!Object(r.a)(n))throw TypeError("Stringified UUID is invalid");return n}},function(e,t,n){"use strict";var r=/^(?:[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;t.a=function(e){return"string"==typeof e&&r.test(e)}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n(3),s=n(39);function o(e){return r.a.isPlainObject(e)||r.a.isArray(e)}function a(e){return r.a.endsWith(e,"[]")?e.slice(0,-2):e}function c(e,t,n){return e?e.concat(t).map((function(e,t){return e=a(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const u=r.a.toFlatObject(r.a,{},null,(function(e){return/^is[A-Z]/.test(e)}));t.a=function(t,n,l){if(!r.a.isObject(t))throw new TypeError("target must be an object");n=n||new(s.a||FormData);const d=(l=r.a.toFlatObject(l,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!r.a.isUndefined(t[e])}))).metaTokens,p=l.visitor||y,h=l.dots,f=l.indexes,m=(l.Blob||"undefined"!=typeof Blob&&Blob)&&r.a.isSpecCompliantForm(n);if(!r.a.isFunction(p))throw new TypeError("visitor must be a function");function g(t){if(null===t)return"";if(r.a.isDate(t))return t.toISOString();if(!m&&r.a.isBlob(t))throw new i.a("Blob is not supported. Use a Buffer instead.");return r.a.isArrayBuffer(t)||r.a.isTypedArray(t)?m&&"function"==typeof Blob?new Blob([t]):e.from(t):t}function y(e,t,i){let s=e;if(e&&!i&&"object"==typeof e)if(r.a.endsWith(t,"{}"))t=d?t:t.slice(0,-2),e=JSON.stringify(e);else if(r.a.isArray(e)&&function(e){return r.a.isArray(e)&&!e.some(o)}(e)||(r.a.isFileList(e)||r.a.endsWith(t,"[]"))&&(s=r.a.toArray(e)))return t=a(t),s.forEach((function(e,i){!r.a.isUndefined(e)&&null!==e&&n.append(!0===f?c([t],i,h):null===f?t:t+"[]",g(e))})),!1;return!!o(e)||(n.append(c(i,t,h),g(e)),!1)}const b=[],v=Object.assign(u,{defaultVisitor:y,convertValue:g,isVisitable:o});if(!r.a.isObject(t))throw new TypeError("data must be an object");return function e(t,i){if(!r.a.isUndefined(t)){if(-1!==b.indexOf(t))throw Error("Circular reference detected in "+i.join("."));b.push(t),r.a.forEach(t,(function(t,s){!0===(!(r.a.isUndefined(t)||null===t)&&p.call(n,t,r.a.isString(s)?s.trim():s,i,v))&&e(t,i?i.concat(s):[s])})),b.pop()}}(t),n}}).call(this,n(253).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionTypes=t.StreamingClientErrorTypes=void 0,function(e){e.generic="generic",e.invalid_token="invalid_token"}(t.StreamingClientErrorTypes||(t.StreamingClientErrorTypes={})),function(e){e.softphone="softphone",e.collaborateVideo="collaborateVideo",e.acdScreenShare="screenShare",e.screenRecording="screenRecording",e.unknown="unknown"}(t.SessionTypes||(t.SessionTypes={}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return s})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return d})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return f})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return v})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return S})),n.d(t,"__importStar",(function(){return w})),n.d(t,"__importDefault",(function(){return T}));
|
|
8
8
|
/*! *****************************************************************************
|
|
9
9
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
10
10
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -19,14 +19,14 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
19
19
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
20
20
|
and limitations under the License.
|
|
21
21
|
***************************************************************************** */
|
|
22
|
-
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(o,a)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function p(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,u):l(s[0][2],n)}catch(e){l(s[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function v(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}},function(e,t){const n=e.exports={};function r(){}n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=r,n.addListener=r,n.once=r,n.off=r,n.removeListener=r,n.removeAllListeners=r,n.emit=r,n.prependListener=r,n.prependOnceListener=r,n.nextTick=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return window.queueMicrotask(()=>e(...n))},n.listeners=e=>[],n.cwd=()=>"/",n.umask=()=>0,n.binding=e=>{throw new Error("process.binding is not supported")},n.chdir=e=>{throw new Error("process.chdir is not supported")}},function(e,t,n){"use strict";var r=n(33),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var s=Object.create(n(28)),o=n(89),a=n(91);s.inherits(d,o);for(var c=i(a.prototype),u=0;u<c.length;u++){var l=c[u];d.prototype[l]||(d.prototype[l]=a.prototype[l])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";n.r(t);var r=n(40),i=n(17);let s,o,a=0,c=0;var u=function(e,t,n){let u=t&&n||0;const l=t||new Array(16);let d=(e=e||{}).node||s,p=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==p){const t=e.random||(e.rng||r.a)();null==d&&(d=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=o=16383&(t[6]<<8|t[7]))}let h=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:c+1;const m=h-a+(f-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||h>a)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,c=f,o=p,h+=122192928e5;const g=(1e4*(268435455&h)+f)%4294967296;l[u++]=g>>>24&255,l[u++]=g>>>16&255,l[u++]=g>>>8&255,l[u++]=255&g;const y=h/4294967296*1e4&268435455;l[u++]=y>>>8&255,l[u++]=255&y,l[u++]=y>>>24&15|16,l[u++]=y>>>16&255,l[u++]=p>>>8|128,l[u++]=255&p;for(let e=0;e<6;++e)l[u+e]=d[e];return t||Object(i.b)(l)},l=(n(6),n(18));var d=function(e){if(!Object(l.a)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function p(e,t,n){function r(e,r,s,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=d(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,s){o=o||0;for(let e=0;e<16;++e)s[o+e]=c[e];return s}return Object(i.b)(c)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function h(e){return 14+(e+64>>>9<<4)+1}function f(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,r,i,s){return f((o=f(f(t,e),f(r,s)))<<(a=i)|o>>>32-a,n);var o,a}function g(e,t,n,r,i,s,o){return m(t&n|~t&r,e,t,i,s,o)}function y(e,t,n,r,i,s,o){return m(t&r|n&~r,e,t,i,s,o)}function b(e,t,n,r,i,s,o){return m(t^n^r,e,t,i,s,o)}function v(e,t,n,r,i,s,o){return m(n^(t|~r),e,t,i,s,o)}var _=p("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length;for(let r=0;r<n;r+=8){const n=e[r>>5]>>>r%32&255,i=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[h(t)-1]=t;let n=1732584193,r=-271733879,i=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const o=n,a=r,c=i,u=s;n=g(n,r,i,s,e[t],7,-680876936),s=g(s,n,r,i,e[t+1],12,-389564586),i=g(i,s,n,r,e[t+2],17,606105819),r=g(r,i,s,n,e[t+3],22,-1044525330),n=g(n,r,i,s,e[t+4],7,-176418897),s=g(s,n,r,i,e[t+5],12,1200080426),i=g(i,s,n,r,e[t+6],17,-1473231341),r=g(r,i,s,n,e[t+7],22,-45705983),n=g(n,r,i,s,e[t+8],7,1770035416),s=g(s,n,r,i,e[t+9],12,-1958414417),i=g(i,s,n,r,e[t+10],17,-42063),r=g(r,i,s,n,e[t+11],22,-1990404162),n=g(n,r,i,s,e[t+12],7,1804603682),s=g(s,n,r,i,e[t+13],12,-40341101),i=g(i,s,n,r,e[t+14],17,-1502002290),r=g(r,i,s,n,e[t+15],22,1236535329),n=y(n,r,i,s,e[t+1],5,-165796510),s=y(s,n,r,i,e[t+6],9,-1069501632),i=y(i,s,n,r,e[t+11],14,643717713),r=y(r,i,s,n,e[t],20,-373897302),n=y(n,r,i,s,e[t+5],5,-701558691),s=y(s,n,r,i,e[t+10],9,38016083),i=y(i,s,n,r,e[t+15],14,-660478335),r=y(r,i,s,n,e[t+4],20,-405537848),n=y(n,r,i,s,e[t+9],5,568446438),s=y(s,n,r,i,e[t+14],9,-1019803690),i=y(i,s,n,r,e[t+3],14,-187363961),r=y(r,i,s,n,e[t+8],20,1163531501),n=y(n,r,i,s,e[t+13],5,-1444681467),s=y(s,n,r,i,e[t+2],9,-51403784),i=y(i,s,n,r,e[t+7],14,1735328473),r=y(r,i,s,n,e[t+12],20,-1926607734),n=b(n,r,i,s,e[t+5],4,-378558),s=b(s,n,r,i,e[t+8],11,-2022574463),i=b(i,s,n,r,e[t+11],16,1839030562),r=b(r,i,s,n,e[t+14],23,-35309556),n=b(n,r,i,s,e[t+1],4,-1530992060),s=b(s,n,r,i,e[t+4],11,1272893353),i=b(i,s,n,r,e[t+7],16,-155497632),r=b(r,i,s,n,e[t+10],23,-1094730640),n=b(n,r,i,s,e[t+13],4,681279174),s=b(s,n,r,i,e[t],11,-358537222),i=b(i,s,n,r,e[t+3],16,-722521979),r=b(r,i,s,n,e[t+6],23,76029189),n=b(n,r,i,s,e[t+9],4,-640364487),s=b(s,n,r,i,e[t+12],11,-421815835),i=b(i,s,n,r,e[t+15],16,530742520),r=b(r,i,s,n,e[t+2],23,-995338651),n=v(n,r,i,s,e[t],6,-198630844),s=v(s,n,r,i,e[t+7],10,1126891415),i=v(i,s,n,r,e[t+14],15,-1416354905),r=v(r,i,s,n,e[t+5],21,-57434055),n=v(n,r,i,s,e[t+12],6,1700485571),s=v(s,n,r,i,e[t+3],10,-1894986606),i=v(i,s,n,r,e[t+10],15,-1051523),r=v(r,i,s,n,e[t+1],21,-2054922799),n=v(n,r,i,s,e[t+8],6,1873313359),s=v(s,n,r,i,e[t+15],10,-30611744),i=v(i,s,n,r,e[t+6],15,-1560198380),r=v(r,i,s,n,e[t+13],21,1309151649),n=v(n,r,i,s,e[t+4],6,-145523070),s=v(s,n,r,i,e[t+11],10,-1120210379),i=v(i,s,n,r,e[t+2],15,718787259),r=v(r,i,s,n,e[t+9],21,-343485551),n=f(n,o),r=f(r,a),i=f(i,c),s=f(s,u)}return[n,r,i,s]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(h(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),S=n(203);function w(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function T(e,t){return e<<t|e>>>32-t}var I=p("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,i=Math.ceil(r/16),s=new Array(i);for(let t=0;t<i;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<i;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=s[e][t];for(let e=16;e<80;++e)r[e]=T(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],o=n[1],a=n[2],c=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),s=T(i,5)+w(n,o,a,c)+u+t[n]+r[e]>>>0;u=c,c=a,a=T(o,30)>>>0,o=i,i=s}n[0]=n[0]+i>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+a>>>0,n[3]=n[3]+c>>>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]]}));var A=function(e){if(!Object(l.a)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};n.d(t,"v1",(function(){return u})),n.d(t,"v3",(function(){return _})),n.d(t,"v4",(function(){return S.a})),n.d(t,"v5",(function(){return I})),n.d(t,"NIL",(function(){return"00000000-0000-0000-0000-000000000000"})),n.d(t,"version",(function(){return A})),n.d(t,"validate",(function(){return l.a})),n.d(t,"stringify",(function(){return i.a})),n.d(t,"parse",(function(){return d}))},function(e,t,n){var r=n(14);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(25),i=n(43),s=n(73);e.exports=r?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11),i=n(53);class s extends i.Transform{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"be";super(),this._block=r.Buffer.alloc(e),this._finalSize=t,this._blockSize=e,this._bigEndian="be"===n,this._len=0}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(e){r=e}n(r)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){"string"==typeof e&&(t=t||"utf8",e=r.Buffer.from(e,t));const n=this._block,i=this._blockSize,s=e.length;let o=this._len;for(let t=0;t<s;){const r=o%i,a=Math.min(s-t,i-r);for(let i=0;i<a;i++)n[r+i]=e[t+i];o+=a,t+=a,o%i==0&&this._update(n)}return this._len+=s,this}digest(e){const t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));const n=8*this._len;if(n<=4294967295)this._bigEndian?(this._block.writeUInt32BE(0,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)):(this._block.writeUInt32LE(n,this._blockSize-8),this._block.writeUInt32LE(0,this._blockSize-4));else{const e=(4294967295&n)>>>0,t=(n-e)/4294967296;this._bigEndian?(this._block.writeUInt32BE(t,this._blockSize-8),this._block.writeUInt32BE(e,this._blockSize-4)):(this._block.writeUInt32LE(e,this._blockSize-8),this._block.writeUInt32LE(t,this._blockSize-4))}this._update(this._block);const r=this._hash();return e?r.toString(e):r}_update(e){throw new Error("_update must be implemented by subclass")}_hash(){throw new Error("_update must be implemented by subclass")}}t.default=s},function(e,t,n){"use strict";t.inherits=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionTypes=void 0,function(e){e.softphone="softphone",e.collaborateVideo="collaborateVideo",e.acdScreenShare="screenShare",e.screenRecording="screenRecording",e.unknown="unknown"}(t.SessionTypes||(t.SessionTypes={}))},function(e,t,n){var r=n(233),i=n(8),s=n(246);r({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:s.set,clearImmediate:s.clear})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(32);class i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.name=e,this.attributes=t,this.children=[],this.optionalNamespaces={};for(const e of n)if("string"!=typeof e){const t=new i(e.name,e.attributes,e.children);t.parent=this,this.children.push(t)}else this.children.push(e)}getName(){return this.name.indexOf(":")>=0?this.name.substr(this.name.indexOf(":")+1):this.name}getNamespace(){if(this.name.indexOf(":")>=0){const e=this.name.substr(0,this.name.indexOf(":"));return this.findNamespaceForPrefix(e)}return this.findNamespaceForPrefix()}getNamespaceContext(){let e={};this.parent&&(e=this.parent.getNamespaceContext());for(const[t,n]of Object.entries(this.attributes))if(t.startsWith("xmlns:")){const r=t.substr(6);e[n]=r}return e}getDefaultNamespace(){return this.attributes.xmlns?this.attributes.xmlns:this.parent?this.parent.getDefaultNamespace():""}getNamespaceRoot(e){if(this.parent){const t=this.parent.getNamespaceRoot(e);if(t)return t}for(const[t,n]of Object.entries(this.attributes))if(t.startsWith("xmlns:")&&n===e)return this;if(this.optionalNamespaces[e])return this}getAttribute(e,t){if(!t)return this.attributes[e];const n=this.getNamespaceContext();return n[t]?this.attributes[[n[t],e].join(":")]:void 0}getChild(e,t){return this.getChildren(e,t)[0]}getChildren(e,t){const n=[];for(const r of this.children)"string"==typeof r||r.getName()!==e||t&&r.getNamespace()!==t||n.push(r);return n}getText(){let e="";for(const t of this.children)"string"==typeof t&&(e+=t);return e}appendChild(e){return this.children.push(e),"string"!=typeof e&&(e.parent=this),e}setAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.attributes[e]=t||void 0,""===t&&n&&(this.attributes[e]=t)}addOptionalNamespace(e,t){this.optionalNamespaces[t]=e}useNamespace(e,t){return this.optionalNamespaces[t]&&(e=this.optionalNamespaces[t]),this.setAttribute("xmlns:"+e,t),e}toJSON(){const e=this.children.map(e=>"string"==typeof e?e:e?e.toJSON():void 0).filter(e=>!!e),t={};for(const[e,n]of Object.entries(this.attributes))null!=n&&(t[e]=n);return{attributes:t,children:e,name:this.name}}toString(){let e=this.openTag(!0);if(this.children.length){for(const t of this.children)"string"==typeof t?e+=(0,r.escapeXMLText)(t):t&&(e+=t.toString());e+=this.closeTag()}return e}openTag(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";t+="<"+this.name;for(const[e,n]of Object.entries(this.attributes))void 0!==n&&(t+=` ${e}="${(0,r.escapeXML)(n.toString())}"`);return e&&0===this.children.length?t+="/>":t+=">",t}closeTag(){return`</${this.name}>`}findNamespaceForPrefix(e){if(e){const t="xmlns:"+e;if(this.attributes[t])return this.attributes[t];if(this.parent)return this.parent.findNamespaceForPrefix(e)}else{if(this.attributes.xmlns)return this.attributes.xmlns;if(this.parent)return this.parent.findNamespaceForPrefix()}return""}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basicLanguageResolver=t.escapeXMLText=t.unescapeXML=t.escapeXML=void 0;const r=(0,n(4).__importDefault)(n(51)),i={'"':""","&":"&","'":"'","<":"<",">":">"},s={"&":"&","'":"'",">":">","<":"<",""":'"'},o=/&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);/g,a=/&|<|>|"|'/g,c=/&|<|>/g;function u(e){return i[e]}t.escapeXML=function(e){return e.replace(a,u)},t.unescapeXML=function(e){return e.replace(o,e=>function(e){if(s[e])return s[e];const t=e.startsWith("&#x"),n=parseInt(e.substring(t?3:2,e.length-1),t?16:10);if(9===n||10===n||13===n||32<=n&&n<=55295||57344<=n&&n<=65533||65536<=n&&n<=1114111)return String.fromCodePoint(n);throw r.default.restrictedXML("Prohibited entity: "+e)}(e))},t.escapeXMLText=function(e){return e.replace(c,u)},t.basicLanguageResolver=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r=new Set(e.map(e=>e.toLowerCase()));for(let e of t.map(e=>e.toLowerCase()))if("*"!==e)for(;e.length>0;){if(r.has(e))return e;e=e.substring(0,e.lastIndexOf("-")).toLowerCase(),e.lastIndexOf("-")===e.length-2&&(e=e.substring(0,e.lastIndexOf("-")))}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=void 0,t.nextTick=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];queueMicrotask(()=>e(...n))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportToSDP=t.importFromSDP=void 0;const r=(0,n(4).__importStar)(n(95));t.importFromSDP=function(e){const t=r.getMediaSections(e),n=r.getDescription(e),i={groups:[],media:[]};r.matchPrefix(n,"a=ice-lite").length>0&&(i.iceLite=!0);for(const e of r.matchPrefix(n,"a=group:")){const t=e.split(" "),n=t.shift().substr(8);i.groups.push({mids:t,semantics:n})}for(const e of t){const t=r.getKind(e),s=r.isRejected(e),o=r.parseMLine(e),a={direction:r.getDirection(e,n),kind:t,mid:r.getMid(e),protocol:o.protocol};if(s||(a.iceParameters=r.getIceParameters(e,n),a.dtlsParameters=r.getDtlsParameters(e,n),a.setup=r.matchPrefix(e,"a=setup:")[0].substr(8),i.iceLite&&(a.iceParameters.iceLite=!0)),"audio"===t||"video"===t){a.rtpParameters=r.parseRtpParameters(e),a.rtpEncodingParameters=r.parseRtpEncodingParameters(e),a.rtcpParameters=r.parseRtcpParameters(e);const t=r.parseMsid(e);a.streams=t?[t]:[]}else"application"===t&&(a.sctp=r.parseSctpDescription(e));a.candidates=r.matchPrefix(e,"a=candidate:").map(r.parseCandidate),i.media.push(a)}return i},t.exportToSDP=function(e){const t=[];t.push(r.writeSessionBoilerplate(e.sessionId,e.sessionVersion),"a=msid-semantic:WMS *\r\n"),(e.iceLite||e.media.filter(e=>e.iceParameters&&e.iceParameters.iceLite).length>0)&&t.push("a=ice-lite\r\n");for(const n of e.groups||[])t.push(`a=group:${n.semantics} ${n.mids.join(" ")}\r\n`);for(const n of e.media||[]){const e=!(n.iceParameters&&n.dtlsParameters);if("application"===n.kind&&n.sctp)t.push(r.writeSctpDescription(n,n.sctp));else if(n.rtpParameters){let i=r.writeRtpDescription(n.kind,n.rtpParameters);e&&(i=i.replace(`m=${n.kind} 9 `,`m=${n.kind} 0 `)),t.push(i),t.push(`a=${n.direction||"sendrecv"}\r\n`);for(const e of n.streams||[])t.push(`a=msid:${e.stream} ${e.track}\r\n`);if(n.rtcpParameters&&(t.push(r.writeRtcpParameters(n.rtcpParameters)),n.rtcpParameters.cname&&n.rtpEncodingParameters&&n.rtpEncodingParameters[0].rtx)){const e=n.rtpEncodingParameters[0];t.push(`a=ssrc-group:FID ${e.ssrc} ${e.rtx.ssrc}\r\n`),t.push(`a=ssrc:${e.rtx.ssrc} cname:${n.rtcpParameters.cname}\r\n`)}}if(void 0!==n.mid&&t.push(`a=mid:${n.mid}\r\n`),n.iceParameters&&t.push(r.writeIceParameters({usernameFragment:n.iceParameters.usernameFragment,password:n.iceParameters.password})),n.dtlsParameters&&n.setup&&t.push(r.writeDtlsParameters(n.dtlsParameters,n.setup)),n.candidates&&n.candidates.length)for(const e of n.candidates)t.push(`a=${r.writeCandidate(e)}\r\n`)}return t.join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpClient=void 0;const r=n(21).__importStar(n(98)),i=n(16);class s{constructor(){this._httpRetryingRequests=new Map}requestApiWithRetry(e,t,n){const r=i.retryPromise(this.requestApi.bind(this,e,t),e=>{var n,r,i;let o=!1;if(null==e?void 0:e.response){o=s.retryStatusCodes.has(e.response.status||0);const a=(null===(n=e.response.headers)||void 0===n?void 0:n["retry-after"])||(null===(i=(r=e.response).getResponseHeader)||void 0===i?void 0:i.call(r,"retry-after"));a&&((t.logger||console).debug("retry-after header found on response. setting retry delay",{retryAfter:a}),o=1e3*parseInt(a,10))}return o},n,t.logger);return this._httpRetryingRequests.set(r._id,r),r.promise.then(()=>this.cancelRetryRequest(r._id),()=>this.cancelRetryRequest(r._id)),r}requestApi(e,t){const n=t.logger||console,i=(new Date).getTime(),s=this._buildUri(t.host,e,t.version),o={"content-type":t.contentType||"application/json",...t.customHeaders||{}},a={method:t.method,url:s,data:t.data,responseType:t.responseType,timeout:t.requestTimeout||3e4,headers:o};t.noAuthHeader||(a.headers.Authorization="Bearer "+t.authToken);const c=this.handleResponse.bind(this,n,i,a);return r.default(a).then(c,c)}handleResponse(e,t,n,i){var s,o,a;let c=(new Date).getTime(),u=c-t+"ms";if(i instanceof r.AxiosError){if((null===(o=null===(s=i.config)||void 0===s?void 0:s.headers)||void 0===o?void 0:o.Authorization)&&(i.config.headers.Authorization="redacted"),"ECONNABORTED"===i.code)return e.debug("request error: "+n.url,{message:i.message,now:c,elapsed:u},{skipServer:!0}),Promise.reject(i);const t=i.response||{};let r=t.status,l=t.headers&&t.headers["inin-correlation-id"],d=t.data,p={...i,text:null===(a=t.request)||void 0===a?void 0:a.response};return e.debug("request error: "+n.url,{message:i.message,now:c,elapsed:u,status:r,correlationId:l,body:d},{skipServer:!0}),Promise.reject(p)}let l=i.status,d=i.headers["inin-correlation-id"],p=JSON.stringify(i.data);return e.debug(`response: ${n.method.toUpperCase()} ${n.url}`,{now:c,status:l,elapsed:u,correlationId:d,body:p},{skipServer:!0}),Promise.resolve(i)}stopAllRetries(){Array.from(this._httpRetryingRequests.keys()).forEach(e=>this.cancelRetryRequest(e))}cancelRetryRequest(e){const t=this._httpRetryingRequests.get(e);return t&&(t.cancel(new Error("Retry request cancelled")),this._httpRetryingRequests.delete(e)),!0}formatRequestError(e){if(this.isSuperagentNetworkError(e))return{status:e.status,method:e.method,url:e.url,crossDomain:e.crossDomain,message:e.message,name:e.name,stack:e.stack};if(this.isSuperagentResponseError(e)){const t=e.response;return{status:e.status,correlationId:t.headers["inin-correlation-id"],message:"Error making HTTP request",method:t.req.method,name:t.error.name,stack:t.error.stack}}return e}isSuperagentNetworkError(e){return e&&e.hasOwnProperty("status")&&e.hasOwnProperty("method")&&e.hasOwnProperty("url")}isSuperagentResponseError(e){return!!(e&&e.response&&e.response.body&&e.response.req)}_buildUri(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"v2";return t=t.replace(/^\/+|\/+$/g,""),0===e.indexOf("http")?`${e}/api/${n}/${t}`:`https://api.${e}/api/${n}/${t}`}}t.HttpClient=s,s.retryStatusCodes=new Set([408,413,429,500,502,503,504])},function(e,t){var n=Object.prototype.hasOwnProperty;function r(e){return"[Throws: "+(e?e.message:"?")+"]"}function i(e){var t=[];return function e(i){if(null===i||"object"!=typeof i)return i;if(-1!==t.indexOf(i))return"[Circular]";if(t.push(i),"function"==typeof i.toJSON)try{var s=e(i.toJSON());return t.pop(),s}catch(e){return r(e)}if(Array.isArray(i)){var o=i.map(e);return t.pop(),o}var a=Object.keys(i).reduce((function(t,s){return t[s]=e(function(e,t){if(n.call(e,t))try{return e[t]}catch(e){return r(e)}return e[t]}(i,s)),t}),{});return t.pop(),a}(e)}e.exports=function(e,t,n){return JSON.stringify(i(e),t,n)},e.exports.ensureProperties=i},function(e,t,n){"use strict";function r(e){return(r="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)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=null},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(6);let r;const i=new Uint8Array(16);function s(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},function(e,t,n){var r=n(8),i=n(68),s=n(15),o=n(45),a=n(74),c=n(212),u=i("wks"),l=r.Symbol,d=c?l:l&&l.withoutSetter||o;e.exports=function(e){return s(u,e)||(a&&s(l,e)?u[e]=l[e]:u[e]=d("Symbol."+e)),u[e]}},function(e,t,n){var r=n(8),i=n(26);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(25),i=n(70),s=n(44),o=n(72),a=Object.defineProperty;t.f=r?a:function(e,t,n){if(s(e),t=o(t,!0),s(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(20);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(235),i=n(80);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(238),i=n(8),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(r[e])||s(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(s){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var a,c=2147483647,u=/^xn--/,l=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,f=String.fromCharCode;function m(e){throw new RangeError(p[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],i=0,s=e.length;i<s;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<s?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function v(e){return g(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=36)e=h(e/35);return h(r+36*e/(e+38))}function w(e){var t,n,r,i,s,o,a,u,l,d,p,f=[],g=e.length,y=0,b=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),f.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(s=y,o=1,a=36;i>=g&&m("invalid-input"),((u=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||u>h((c-y)/o))&&m("overflow"),y+=u*o,!(u<(l=a<=_?1:a>=_+26?26:a-_));a+=36)o>h(c/(d=36-l))&&m("overflow"),o*=d;_=S(y-s,t=f.length+1,0==s),h(y/t)>c-b&&m("overflow"),b+=h(y/t),y%=t,f.splice(y++,0,b)}return v(f)}function T(e){var t,n,r,i,s,o,a,u,l,d,p,g,y,v,w,T=[];for(g=(e=b(e)).length,t=128,n=0,s=72,o=0;o<g;++o)(p=e[o])<128&&T.push(f(p));for(r=i=T.length,i&&T.push("-");r<g;){for(a=c,o=0;o<g;++o)(p=e[o])>=t&&p<a&&(a=p);for(a-t>h((c-n)/(y=r+1))&&m("overflow"),n+=(a-t)*y,t=a,o=0;o<g;++o)if((p=e[o])<t&&++n>c&&m("overflow"),p==t){for(u=n,l=36;!(u<(d=l<=s?1:l>=s+26?26:l-s));l+=36)w=u-d,v=36-d,T.push(f(_(d+w%v,0))),u=h(w/v);T.push(f(_(u,0))),s=S(n,y,r==i),n=0,++r}++n,++t}return T.join("")}a={version:"1.4.1",ucs2:{decode:b,encode:v},decode:w,encode:T,toASCII:function(e){return y(e,(function(e){return l.test(e)?"xn--"+T(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return a}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(261)(e),n(12))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.JXTErrorCondition=void 0,function(e){e.NotWellFormed="not-well-formed",e.RestrictedXML="restricted-xml",e.AlreadyClosed="already-closed",e.UnknownRoot="unknown-stream-root"}(r=t.JXTErrorCondition||(t.JXTErrorCondition={}));class i extends Error{constructor(e){super(e.text),this.isJXTError=!0,this.condition=e.condition,this.text=e.text}static notWellFormed(e){return new i({condition:r.NotWellFormed,text:e})}static restrictedXML(e){return new i({condition:r.RestrictedXML,text:e})}static alreadyClosed(e){return new i({condition:r.AlreadyClosed,text:e})}static unknownRoot(e){return new i({condition:r.UnknownRoot,text:e})}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.childAlternateLanguageRawElement=t.childLanguageRawElement=t.childRawElement=t.staticValue=t.splicePath=t.multipleChildEnum=t.multipleChildAlternateLanguageText=t.childAlternateLanguageText=t.multipleChildIntegerAttribute=t.multipleChildAttribute=t.multipleChildText=t.childDoubleEnum=t.childEnum=t.deepMultipleChildText=t.deepChildBoolean=t.deepChildInteger=t.deepChildText=t.childBoolean=t.childTimezoneOffset=t.childJSON=t.childFloat=t.childInteger=t.childDate=t.childTextBuffer=t.childText=t.childLanguageAttribute=t.languageAttribute=t.textBuffer=t.textJSON=t.text=t.childDateAttribute=t.childFloatAttribute=t.childIntegerAttribute=t.childBooleanAttribute=t.childAttribute=t.namespacedDateAttribute=t.namespacedFloatAttribute=t.namespacedIntegerAttribute=t.namespacedBooleanAttribute=t.namespacedAttribute=t.dateAttribute=t.floatAttribute=t.integerAttribute=t.booleanAttribute=t.attribute=t.findOrCreate=t.findAll=t.getTargetLang=t.getLang=t.createElement=void 0,t.parameterMap=void 0;const r=n(4),i=n(9),s=(0,r.__importDefault)(n(31)),o=n(54);function a(e,t,n,r){if(r){e=e||r.getNamespace();const n=r.getNamespaceRoot(e);if(n){t=`${n.useNamespace("",e)}:${t}`}}const i=new s.default(t);return t.indexOf(":")<0&&(!n||e!==n)&&i.setAttribute("xmlns",e),i}function c(e,t){return(e.getAttribute("xml:lang")||t||"").toLowerCase()}function u(e,t){const n=[];for(const r of e)n.push(c(r,t.lang));let r;return r=t.resolveLanguage?t.resolveLanguage(n,t.acceptLanguages||[],t.lang):t.lang,r||""}function l(e,t,n,r){const i=e.getChildren(n,t),s=c(e);return i.length?r?i.filter(e=>{if(c(e,s)===r)return!0}):i:[]}function d(e,t,n,r){t=t||e.getNamespace();const i=l(e,t,n,r);if(i.length)return i[0];const s=a(t,n,e.getDefaultNamespace(),e),o=c(e,r);return r&&o!==r&&s.setAttribute("xml:lang",r),e.appendChild(s),s}function p(e){return{importer(t){const n=t.getAttribute(e.name,e.namespace);return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter(t,n){if(void 0===n||n===e.staticDefault)return;const r=e.writeValue(n);if(r||e.emitEmpty)if(e.namespace&&e.prefix){let n;const i=t.getNamespaceRoot(e.namespace);if(i)n=i.useNamespace(e.prefix,e.namespace);else{const r=t.getNamespaceContext();r[e.namespace]||(n=t.useNamespace(e.prefix,e.namespace),r[e.namespace]=n)}t.setAttribute(`${n}:${e.name}`,r,e.emitEmpty)}else t.setAttribute(e.name,r,e.emitEmpty)}}}function h(e,t){return function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i={staticDefault:r,...i},p({name:n,...e,...t?t(i):i})}}function f(e,t){return function(n,r,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o={staticDefault:s,...o},p({name:i,namespace:r,prefix:n,...e,...t?t(o):o})}}function m(e){const t=e.converter||p({...e,namespace:e.attributeNamespace});return{importer(n,r){const i=n.getChild(e.element,e.namespace||n.getNamespace());return i?t.importer(i,r):e.dynamicDefault?e.dynamicDefault():e.staticDefault},exporter(n,r,i){if(void 0!==r&&r!==e.staticDefault){const s=d(n,e.namespace||n.getNamespace(),e.element);t.exporter(s,r,i)}}}}function g(e,t){return function(n,r,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o={staticDefault:s,...o},m({element:r,name:i,namespace:n,...e,...t?t(o):o})}}function y(e){return{importer(t){const n=t.getText();return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter(t,n){if(!n&&e.emitEmpty)return void t.children.push("");if(void 0===n||n===e.staticDefault)return;const r=e.writeValue(n);r&&t.children.push(r)}}}function b(e){const t=y(e);return{importer(n,r){const i=l(n,e.namespace||n.getNamespace(),e.element),s=u(i,r);if(!i.length)return e.dynamicDefault?e.dynamicDefault():e.staticDefault;if(e.matchLanguage)for(const e of i)if(c(e,r.lang)===s)return t.importer(e,r);return t.importer(i[0],r)},exporter(n,r,i){if(r||!e.emitEmpty){if(void 0!==r&&r!==e.staticDefault){const s=d(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0);t.exporter(s,r,i)}}else d(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0)}}}t.createElement=a,t.getLang=c,t.getTargetLang=u,t.findAll=l,t.findOrCreate=d;const v={parseValue:e=>e,writeValue:e=>e},_={parseValue:e=>parseInt(e,10),writeValue:e=>e.toString()},S={parseValue:e=>parseFloat(e),writeValue:e=>e.toString()},w={parseValue:e=>"true"===e||"1"===e||"false"!==e&&"0"!==e&&void 0,writeValue:e=>e?"1":"0"},T={parseValue:e=>new Date(e),writeValue:e=>"string"==typeof e?e:e.toISOString()},I={parseValue:e=>JSON.parse(e),writeValue:e=>JSON.stringify(e)},A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return{parseValue:t=>("base64"===e&&"="===t&&(t=""),i.Buffer.from(t.trim(),e)),writeValue:t=>{let n;return n="string"==typeof t?i.Buffer.from(t).toString(e):t?t.toString(e):"","base64"===e&&(n=n||"="),n}}},N={parseValue:e=>{let t=-1;"-"===e.charAt(0)&&(t=1,e=e.slice(1));const n=e.split(":");return(60*parseInt(n[0],10)+parseInt(n[1],10))*t},writeValue:e=>{if("string"==typeof e)return e;{let t="-";e<0&&(e=-e,t="+");const n=e/60,r=e%60;return t+=(n<10?"0":"")+n+":"+(r<10?"0":"")+r,t}}};t.attribute=h(v,e=>({dynamicDefault:e.emitEmpty?t=>""===t?"":e.staticDefault:void 0,...e})),t.booleanAttribute=h(w),t.integerAttribute=h(_),t.floatAttribute=h(S),t.dateAttribute=h(T),t.namespacedAttribute=f(v),t.namespacedBooleanAttribute=f(w),t.namespacedIntegerAttribute=f(_),t.namespacedFloatAttribute=f(S),t.namespacedDateAttribute=f(T),t.childAttribute=g(v),t.childBooleanAttribute=g(w),t.childIntegerAttribute=g(_),t.childFloatAttribute=g(S),t.childDateAttribute=g(T);t.text=e=>y({staticDefault:e,...v});t.textJSON=()=>y({...I});function E(){return{importer:(e,t)=>c(e,t.lang),exporter(e,t,n){t&&t.toLowerCase()!==n.lang?e.setAttribute("xml:lang",t):e.setAttribute("xml:lang",void 0)}}}t.textBuffer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return y({...A(e)})},t.languageAttribute=E;t.childLanguageAttribute=(e,t)=>m({converter:E(),element:t,name:"xml:lang",namespace:e,...v});t.childText=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b({element:t,emitEmpty:r,matchLanguage:!0,namespace:e,staticDefault:n,...v})};t.childTextBuffer=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf8";return b({element:t,matchLanguage:!0,namespace:e,...A(n)})};t.childDate=(e,t)=>b({element:t,namespace:e,...T});t.childInteger=(e,t,n)=>b({element:t,namespace:e,staticDefault:n,..._});t.childFloat=(e,t,n)=>b({element:t,namespace:e,staticDefault:n,...S});t.childJSON=(e,t)=>b({element:t,namespace:e,...I}),t.childTimezoneOffset=function(e,t){return b({element:t,namespace:e,staticDefault:0,...N})},t.childBoolean=function(e,t){return{importer(n){if(n.getChild(t,e||n.getNamespace()))return!0},exporter(n,r){r&&d(n,e||n.getNamespace(),t)}}};const x=(e,t,n)=>{if(!n)return;let r=t;for(const t of e)r=d(r,t.namespace||r.getNamespace(),t.element);r.children.push(n.toString())};t.deepChildText=function(e,t){return{importer(n){let r=n;for(const n of e)if(r=r.getChild(n.element,n.namespace||r.getNamespace()),!r)return t;return r.getText()||t},exporter(t,n){x(e,t,n)}}},t.deepChildInteger=function(e,t){return{importer(n){let r=n;for(const t of e)if(r=r.getChild(t.element,t.namespace||r.getNamespace()),!r)return;const i=r.getText();return i?parseInt(i,10):t||void 0},exporter(t,n){x(e,t,n)}}},t.deepChildBoolean=function(e){return{importer(t){let n=t;for(const t of e)if(n=n.getChild(t.element,t.namespace||n.getNamespace()),!n)return!1;return!0},exporter(t,n){if(!n)return;let r=t;for(const t of e)r=d(r,t.namespace||r.getNamespace(),t.element)}}},t.deepMultipleChildText=function(e){const t=e.pop();return{importer(n,r){let i=n;for(const t of e)if(i=i.getChild(t.element,t.namespace||i.getNamespace()),!i)return[];const s=[],o=l(i,t.namespace||i.getNamespace(),t.element),a=u(o,r);for(const e of o)c(e,r.lang)===a&&s.push(e.getText());return s},exporter(n,r,i){if(!r.length)return;let s=n;for(const t of e)s=d(s,t.namespace||s.getNamespace(),t.element);const{namespace:o,element:c}=t;for(const e of r){const t=a(o||s.getNamespace(),c,i.namespace,s);t.children.push(e),s.appendChild(t)}}}},t.childEnum=function(e,t,n){const r=new Map,i=new Map;for(const e of t)"string"==typeof e?(r.set(e,e),i.set(e,e)):(r.set(e[1],e[0]),i.set(e[0],e[1]));return{importer(t){for(const n of t.children)if("string"!=typeof n&&n.getNamespace()===(e||t.getNamespace())&&r.has(n.getName()))return r.get(n.getName());return n},exporter(t,n){i.has(n)&&d(t,e,i.get(n))}}},t.childDoubleEnum=function(e,t,n,r){const i=new Set(t),s=new Set(n);return{importer(t){for(const n of t.children)if("string"!=typeof n&&n.getNamespace()===(e||t.getNamespace())&&i.has(n.getName())){for(const r of n.children)if("string"!=typeof r&&r.getNamespace()===(e||t.getNamespace())&&s.has(r.getName()))return[n.getName(),r.getName()];return[n.getName()]}return r},exporter(t,n){const r=d(t,e,n[0]);n[1]&&d(r,e,n[1])}}},t.multipleChildText=function(e,t){return{importer(n,r){const i=[],s=l(n,e||n.getNamespace(),t),o=u(s,r);for(const e of s)c(e,r.lang)===o&&i.push(e.getText());return i},exporter(n,r,i){for(const s of r){const r=a(e||n.getNamespace(),t,i.namespace,n);r.children.push(s),n.appendChild(r)}}}},t.multipleChildAttribute=function(e,t,n){return{importer(r){const i=[],s=r.getChildren(t,e||r.getNamespace());for(const e of s){const t=e.getAttribute(n);void 0!==t&&i.push(t)}return i},exporter(r,i,s){for(const o of i){const i=a(e||r.getNamespace(),t,s.namespace,r);i.setAttribute(n,o),r.appendChild(i)}}}},t.multipleChildIntegerAttribute=function(e,t,n){return{importer(r){const i=[],s=r.getChildren(t,e||r.getNamespace());for(const e of s){const t=e.getAttribute(n);void 0!==t&&i.push(parseInt(t,10))}return i},exporter(r,i,s){for(const o of i){const i=a(e||r.getNamespace(),t,s.namespace,r);i.setAttribute(n,o.toString()),r.appendChild(i)}}}},t.childAlternateLanguageText=function(e,t){return{importer(n,r){const i=[],s=l(n,e||n.getNamespace(),t),o=new Set;for(const e of s){const t=e.getText();if(t){const n=c(e,r.lang);if(o.has(n))continue;i.push({lang:n,value:t}),o.add(n)}}return o.size>0?i:void 0},exporter(n,r,i){for(const s of r){const r=s.value;if(r){const o=a(e||n.getNamespace(),t,i.namespace,n);s.lang!==i.lang&&o.setAttribute("xml:lang",s.lang),o.children.push(r),n.appendChild(o)}}}}},t.multipleChildAlternateLanguageText=function(e,t){return{importer(n,r){const i=[],s=new Map;let o=!1;const a=l(n,e||n.getNamespace(),t);for(const e of a){const t=e.getText();if(t){const n=c(e,r.lang);let a=s.get(n);a||(a=[],s.set(n,a),i.push({lang:n,value:a})),a.push(t),o=!0}}return o?i:void 0},exporter(n,r,i){for(const s of r)for(const r of s.value){const o=a(e||n.getNamespace(),t,i.namespace,n);s.lang!==i.lang&&o.setAttribute("xml:lang",s.lang),o.children.push(r),n.appendChild(o)}}}},t.multipleChildEnum=function(e,t){const n=new Map,r=new Map;for(const e of t)"string"==typeof e?(n.set(e,e),r.set(e,e)):(n.set(e[1],e[0]),r.set(e[0],e[1]));return{importer(t){const r=[];for(const i of t.children)"string"!=typeof i&&i.getNamespace()===(e||t.getNamespace())&&n.has(i.getName())&&r.push(n.get(i.getName()));return r},exporter(t,n){for(const i of n)d(t,e,r.get(i))}}},t.splicePath=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{importer(i,s){const o=i.getChild(t,e||i.getNamespace());if(!o)return;const a=[];for(const e of o.children)if("string"!=typeof e&&s.registry.getImportKey(e)===n){const t=s.registry.import(e);t&&a.push(t)}return r?a:a[0]},exporter(r,i,s){let o=[];o=Array.isArray(i)?i:[i];const a=[];for(const t of o){const i=s.registry.export(n,t,{...s,namespace:e||r.getNamespace()||void 0});i&&a.push(i)}if(a.length){const n=d(r,e||r.getNamespace(),t);for(const e of a)n.appendChild(e)}}}},t.staticValue=function(e){return{exporter:()=>{},importer:()=>e}},t.childRawElement=function(e,t,n){return{importer(r,i){if(n&&(!i.sanitizers||!i.sanitizers[n]))return;const s=r.getChild(t,e||r.getNamespace());return s?n?i.sanitizers[n](s.toJSON()):s.toJSON():void 0},exporter(r,i,a){if("string"==typeof i){i=(0,o.parse)(`<${t} xmlns="${e||r.getNamespace()}">${i}</${t}>`).toJSON()}if(n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}i&&r.appendChild(new s.default(i.name,i.attributes,i.children))}}},t.childLanguageRawElement=function(e,t,n){return{importer(r,i){if(n&&(!i.sanitizers||!i.sanitizers[n]))return;const s=l(r,e||r.getNamespace(),t),o=u(s,i);for(const e of s)if(c(e,i.lang)===o)return n?i.sanitizers[n](e.toJSON()):e.toJSON();return s[0]?n?i.sanitizers[n](s[0].toJSON()):s[0].toJSON():void 0},exporter(r,i,a){if("string"==typeof i){i=(0,o.parse)(`<${t} xmlns="${e||r.getNamespace()}">${i}</${t}>`).toJSON()}if(i&&n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}if(!i)return;const c=d(r,e||r.getNamespace(),t,a.lang);for(const e of i.children)"string"==typeof e?c.appendChild(e):e&&c.appendChild(new s.default(e.name,e.attributes,e.children))}}},t.childAlternateLanguageRawElement=function(e,t,n){return{importer(r,i){if(n&&(!i.sanitizers||!i.sanitizers[n]))return;const s=[],o=new Set,a=l(r,e||r.getNamespace(),t);for(const e of a){let t=e.toJSON();if(n&&(t=i.sanitizers[n](t)),t){const n=c(e,i.lang);if(o.has(n))continue;s.push({lang:n,value:t}),o.add(n)}}return o.size>0?s:void 0},exporter(r,i,c){for(const u of i){let i=u.value;if("string"==typeof i){i=(0,o.parse)(`<${t} xmlns="${e||r.getNamespace()}">${i}</${t}>`).toJSON()}if(i&&n){if(!c.sanitizers||!c.sanitizers[n])continue;i=c.sanitizers[n](i)}if(i){const n=a(e||r.getNamespace(),t,c.namespace,r);r.appendChild(n),u.lang!==c.lang&&n.setAttribute("xml:lang",u.lang);for(const e of i.children)"string"==typeof e?n.appendChild(e):n.appendChild(new s.default(e.name,e.attributes,e.children))}}}}},t.parameterMap=function(e,n,r,i){return{importer(s,o){const a={},c=l(s,e,n),u=(0,t.attribute)(r).importer,d=(0,t.attribute)(i).importer;for(const e of c)a[u(e,o)]=d(e,o);return a},exporter(s,o,c){const u=(0,t.attribute)(r).exporter,l=(0,t.attribute)(i).exporter,d=e||s.getNamespace();for(const[e,t]of Object.entries(o)){const r=a(d,n,c.namespace,s);u(r,e,c),o[e]&&l(r,t,c),s.appendChild(r)}}}}},function(e,t,n){"use strict";t.Readable=n(89),t.Writable=n(91),t.Duplex=n(23),t.Transform=n(93),t.PassThrough=n(274)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const r=n(4),i=n(7),s=n(32),o=(0,r.__importDefault)(n(31)),a=(0,r.__importDefault)(n(51));function c(e){return 97<=e&&e<=122||65<=e&&e<=90||58===e||95===e}function u(e){return 192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=767||880<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||65008<=e&&e<=65533||65536<=e&&e<=983039}function l(e){return c(e)||u(e)}function d(e){return c(e)||45===e||46===e||48<=e&&e<=57||183===e||768<=e&&e<=879||8255<=e&&e<=8256||u(e)}function p(e){return 32===e||10===e||13===e||9===e}class h extends i.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.allowComments=!0,this.attributes={},this.state=34,this.tagName="",this.haveDeclaration=!1,this.recordBuffer=[],void 0!==e.allowComments&&(this.allowComments=e.allowComments)}write(e){for(const t of e){const e=t.codePointAt(0);switch(this.state){case 34:if(60===e){let e;try{e=(0,s.unescapeXML)(this.endRecord())}catch(e){return void this.emit("error",e)}e&&this.emit("text",e),this.transition(31);continue}this.record(t);continue;case 31:if(47===e){this.transition(7);continue}if(33===e){this.transition(24);continue}if(63===e){if(this.haveDeclaration)return this.restrictedXML();this.transition(25);continue}if(l(e)){this.transition(30),this.startRecord(t);continue}return this.notWellFormed();case 30:if(d(e)){this.record(t);continue}if(p(e)){this.startTag(),this.transition(32);continue}if(47===e){this.startTag(),this.transition(29);continue}if(62===e){this.startTag(),this.transition(34),this.emit("startElement",this.tagName,this.attributes);continue}return this.notWellFormed();case 29:if(62===e){this.emit("startElement",this.tagName,this.attributes),this.emit("endElement",this.tagName),this.transition(34);continue}return this.notWellFormed();case 33:if(p(e)){this.transition(32);continue}if(47===e){this.transition(29);continue}if(62===e){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 32:if(p(e))continue;if(l(e)){this.startRecord(t),this.transition(0);continue}if(47===e){this.transition(29);continue}if(62===e){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 7:if(l(e)){this.startRecord(t),this.transition(6);continue}return this.notWellFormed();case 6:if(d(e)){this.record(t);continue}if(p(e)){this.transition(8);continue}if(62===e){const e=this.endRecord();this.emit("endElement",e,this.attributes),this.transition(34);continue}return this.notWellFormed();case 8:if(p(e))continue;if(62===e){const e=this.endRecord();this.emit("endElement",e,this.attributes),this.transition(34);continue}return this.notWellFormed();case 0:if(d(e)){this.record(t);continue}if(61===e){this.addAttribute(),this.transition(4);continue}if(p(e)){this.addAttribute(),this.transition(3);continue}return this.notWellFormed();case 3:if(61===e){this.transition(4);continue}if(p(e))continue;return this.notWellFormed();case 4:if(34===e){this.startRecord(),this.transition(1);continue}if(39===e){this.startRecord(),this.transition(2);continue}if(p(e))continue;return this.notWellFormed();case 1:case 2:if(34===e&&1===this.state||39===e&&2===this.state){const e=this.endRecord();this.attributes[this.attributeName]=(0,s.unescapeXML)(e),this.transition(33);continue}if(60===e)return this.notWellFormed();this.record(t);continue;case 24:if(45===e){if(!this.allowComments)return this.restrictedXML();this.transition(23);continue}if(91===e){this.transition(21);continue}return this.notWellFormed();case 23:if(45===e){this.transition(14);continue}return this.notWellFormed();case 14:45===e&&this.transition(12);continue;case 12:45===e?this.transition(11):this.transition(14);continue;case 11:62===e?this.transition(34):this.transition(14);continue;case 25:if(88===e||120===e){this.transition(28);continue}return this.notWellFormed();case 28:if(77===e||109===e){this.transition(27);continue}return this.notWellFormed();case 27:if(76===e||108===e){this.transition(26);continue}return this.notWellFormed();case 26:if(p(e)){this.haveDeclaration=!0,this.transition(15);continue}return this.notWellFormed();case 13:if(62===e){this.transition(34);continue}return this.notWellFormed();case 15:63===e&&this.transition(13);continue;case 21:this.wait(e,67,20);continue;case 20:this.wait(e,68,19);continue;case 19:this.wait(e,65,18);continue;case 18:this.wait(e,84,17);continue;case 17:this.wait(e,65,16);continue;case 16:this.wait(e,91,5);continue;case 5:if(93===e){this.transition(10);continue}this.record(t);continue;case 10:93===e?this.transition(9):(this.record(String.fromCodePoint(93)),this.record(t),this.transition(5));continue;case 9:if(62===e){const e=this.endRecord();e&&this.emit("text",e),this.transition(34)}else this.record(String.fromCodePoint(93)),this.record(String.fromCodePoint(93)),this.record(t),this.transition(5);continue}}}end(e){e&&this.write(e),this.write=()=>{}}record(e){this.recordBuffer.push(e)}startRecord(e){this.recordBuffer=[],e&&this.recordBuffer.push(e)}endRecord(){const e=this.recordBuffer;return this.recordBuffer=[],e.join("")}startTag(){this.tagName=this.endRecord(),this.attributes={}}addAttribute(){const e=this.endRecord();if(void 0!==this.attributes[e])return this.notWellFormed();this.attributeName=e,this.attributes[e]=""}wait(e,t,n){if(e!==t)return this.notWellFormed();this.transition(n)}transition(e){this.state=e,34===e&&this.startRecord()}notWellFormed(e){this.emit("error",a.default.notWellFormed(e))}restrictedXML(e){this.emit("error",a.default.restrictedXML(e))}}t.parse=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new h(t);let r,i,s=null;if(n.on("text",e=>{i&&i.children.push(e)}),n.on("startElement",(e,t)=>{const n=new o.default(e,t);r||(r=n),i=i?i.appendChild(n):n}),n.on("endElement",e=>{i?e===i.name?i.parent&&(i=i.parent):n.emit("error",a.default.notWellFormed("b")):n.emit("error",a.default.notWellFormed("a"))}),n.on("error",e=>{s=e}),n.write(e),n.end(),s)throw s;return r},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StanzaMediaSession=void 0;const r=n(21),i=r.__importDefault(n(7)),s=n(56),o=n(5),a=r.__importDefault(n(97)),c=n(29),u={"Discovered new ICE candidate":{skipMessage:!0}};class l extends s.MediaSession{constructor(e){super(e.options),this.iceCandidatesDiscovered=0,this.iceCandidatesReceivedFromPeer=0,this.reinvite=!1,this.logger=e.logger,this.conversationId=e.conversationId,this.peerConnection=this.pc,this.fromUserId=e.fromUserId,this.meetingId=e.meetingId,this.id=this.sid,this.originalRoomJid=e.originalRoomJid,this.sessionType=c.SessionTypes[e.sessionType],this.ignoreHostCandidatesFromRemote=!!e.ignoreHostCandidatesFromRemote,this.allowIPv6=!!e.allowIPv6,this.allowTCP=!!e.allowTCP,this.privAnswerMode=e.privAnswerMode;const t=new i.default;Object.keys(t.__proto__).forEach(e=>{this[e]=t[e]}),e.optOutOfWebrtcStatsTelemetry||this.setupStatsGatherer(),this.pc.addEventListener("connectionstatechange",this.onConnectionStateChange.bind(this)),this.pc.addEventListener("icecandidateerror",this.onIceCandidateError.bind(this))}getLogDetails(){return{conversationId:this.conversationId,sessionId:this.id,sessionType:this.sessionType}}async onTransportInfo(e,t){var n,r;const i=null===(n=e.contents)||void 0===n?void 0:n[0].transport,s=null==i?void 0:i.candidates;if(this.ignoreHostCandidatesFromRemote){const e=null==s?void 0:s.filter(e=>"host"!==e.type);(null==e?void 0:e.length)!==(null===(r=null==i?void 0:i.candidates)||void 0===r?void 0:r.length)&&(this._log("info","Ignoring remote host ice candidates"),i.candidates=e)}if(s)for(const e of s)this._log("info","Received candidate from peer",{candidateType:e.type}),this.iceCandidatesReceivedFromPeer++;return super.onTransportInfo(e,t)}_log(e,t){const n=u[t];if(null==n?void 0:n.skipMessage)return;let r;for(var i=arguments.length,s=new Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];if(s.length){const e=s[0];"object"!=typeof e||Array.isArray(e)||null===e?r={...this.getLogDetails(),data:e}:(Object.assign(s[0],this.getLogDetails()),r=s)}else r=[...s,this.getLogDetails()];this.logger[e](t,r)}async end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended",this.processingQueue.kill(),"string"==typeof e&&(e={condition:e}),t||(this._log("info","sending jingle session-terminate"),this.send("session-terminate",{reason:e})),setTimeout(()=>{"connected"!==this.pc.connectionState&&"connecting"!==this.pc.connectionState||this.pc.close()},2e3),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}setupStatsGatherer(){this.statsGatherer=new a.default(this.pc),this.statsGatherer.on("stats",this.emit.bind(this,"stats"))}onIceStateChange(){const e=this.pc.iceConnectionState,t=this.id,n=this.conversationId,r=this.sessionType;this._log("info","ICE state changed: ",{iceState:e,sessionId:t,conversationId:n}),"disconnected"===e?"stable"===this.pc.signalingState&&(this.interruptionStart=new Date,this._log("info","Connection state is interrupted",{sessionId:t,conversationId:n,sessionType:r})):"connected"===e?(this._log("info","sending session-info: active"),this.send(o.JingleAction.SessionInfo,{info:{infoType:o.JINGLE_INFO_ACTIVE}}),this._setupDataChannel()):"failed"===e&&this._log("info","ICE connection failed",{candidatesDiscovered:this.iceCandidatesDiscovered,candidatesReceivedFromPeer:this.iceCandidatesReceivedFromPeer}),super.onIceStateChange()}onConnectionStateChange(){const e=this.pc.connectionState,t=this.id,n=this.conversationId,r=this.sessionType;if(this._log("info","Connection state changed: ",{connectionState:e,sessionId:t,conversationId:n,sessionType:r}),this.interruptionStart)if("connected"===e){const e=(new Date).getTime()-this.interruptionStart.getTime();this._log("info","Connection was interrupted but was successfully recovered/connected",{sessionId:t,conversationId:n,sessionType:r,timeToRecover:e}),this.interruptionStart=void 0}else"failed"===e&&this._log("info","Connection was interrupted and failed to recover",{sessionId:t,conversationId:n,sessionType:r})}onIceCandidateError(e){const t=e;this._log("error","IceCandidateError",{errorCode:t.errorCode,errorText:t.errorText,url:t.url}),console.error("IceCandidateError",t)}onIceCandidate(e){if(e.candidate){if(!this.allowTCP&&"tcp"===e.candidate.protocol)return;if(!this.allowIPv6){const t=/.+udp [^ ]+ ([^ ]+).*typ host/.exec(e.candidate.candidate),n=/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/;if(t&&!t[1].match(n))return void this._log("debug","Filtering out IPv6 candidate",e.candidate.candidate)}this._log("debug","Processing ice candidate",e.candidate.candidate),this._log("info","Discovered ice candidate to send to peer",{type:e.candidate.type}),this.iceCandidatesDiscovered++}return super.onIceCandidate(e)}onIceEndOfCandidates(){super.onIceEndOfCandidates(),this.emit("endOfCandidates")}addTrack(e,t){return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",async()=>{const n=this.pc.getTransceivers().find(t=>{var n;return!t.sender.track&&(null===(n=t.receiver.track)||void 0===n?void 0:n.kind)===e.kind});if(n)return n.sender.replaceTrack(e);this.pc.addTrack(e,t)})}_setupDataChannel(){var e;this.dataChannel||(null===(e=this.pc.localDescription)||void 0===e?void 0:e.sdp.includes("webrtc-datachannel"))&&(this._log("info","creating data channel"),this.dataChannel=this.pc.createDataChannel("videoConferenceControl"),this.dataChannel.addEventListener("open",()=>{this._log("info","data channel opened")}),this.dataChannel.addEventListener("message",this._handleDataChannelMessage.bind(this)),this.dataChannel.addEventListener("close",()=>{this._log("info","closing data channel")}),this.dataChannel.addEventListener("error",e=>{this._log("error","Error occurred with the data channel",e)}))}_handleDataChannelMessage(e){try{const t=JSON.parse(e.data);this.emit("dataChannelMessage",t)}catch(e){this._log("error","Failed to parse data channel message",{error:e})}}}t.StanzaMediaSession=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionManager=t.FileSession=t.MediaSession=t.ICESession=t.Session=t.exportToSDP=t.importFromSDP=void 0;const r=n(4),i=(0,r.__importDefault)(n(94));t.FileSession=i.default;const s=(0,r.__importDefault)(n(57));t.ICESession=s.default;const o=(0,r.__importDefault)(n(96));t.MediaSession=o.default;const a=(0,r.__importDefault)(n(59));t.Session=a.default;const c=(0,r.__importDefault)(n(283));t.SessionManager=c.default;var u=n(34);Object.defineProperty(t,"importFromSDP",{enumerable:!0,get:function(){return u.importFromSDP}}),Object.defineProperty(t,"exportToSDP",{enumerable:!0,get:function(){return u.exportToSDP}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=(0,r.__importStar)(n(95)),s=n(5),o=n(1),a=n(34),c=n(58),u=(0,r.__importDefault)(n(59));class l extends u.default{constructor(e){super(e),this.bitrateLimit=0,this.candidateBuffer=[],this.transportType=o.NS_JINGLE_ICE_UDP_1,this.restartingIce=!1,this.usingRelay=!1,this.maxRelayBandwidth=e.maxRelayBandwidth,this.pc=this.parent.createPeerConnection(this,{...e.config,iceServers:e.iceServers}),this.pc.oniceconnectionstatechange=()=>{this.onIceStateChange()},this.pc.onicecandidate=e=>{e.candidate?this.onIceCandidate(e):this.onIceEndOfCandidates()},this.restrictRelayBandwidth()}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.pc.close(),super.end(e,t)}async restartIce(){if(this.isInitiator){void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this.restartingIce=!0;try{await this.processLocal("restart-ice",async()=>{const e=await this.pc.createOffer({iceRestart:!0}),t=(0,a.importFromSDP)(e.sdp);this.send(s.JingleAction.TransportInfo,{contents:t.media.map(e=>({creator:s.JingleSessionRole.Initiator,name:e.mid,transport:(0,c.convertIntermediateToTransport)(e,this.transportType)})),sid:this.sid}),await this.pc.setLocalDescription(e)})}catch(e){this._log("error","Could not create WebRTC offer",e),this.end(s.JingleReasonCondition.FailedTransport,!0)}}}async setMaximumBitrate(e){this.maximumBitrate&&(e=Math.min(e,this.maximumBitrate)),this.currentBitrate=e;const t=this.pc.getSenders().find(e=>!!e.track&&"video"===e.track.kind);if(t&&t.getParameters)try{await this.processLocal("set-bitrate",async()=>{const n=t.getParameters();n.encodings&&n.encodings.length||(n.encodings=[{}]),0===e?delete n.encodings[0].maxBitrate:n.encodings[0].maxBitrate=e,await t.setParameters(n)})}catch(e){this._log("error","Set maximumBitrate failed",e)}}async onTransportInfo(e,t){if(e.contents&&e.contents[0]&&e.contents[0].transport.gatheringComplete){const n={sdpMid:e.contents[0].name,candidate:""};try{"stable"===this.pc.signalingState?await this.pc.addIceCandidate(n):this.candidateBuffer.push(n)}catch(e){this._log("debug","Could not add null end-of-candidate")}finally{t()}return}if(this.pc.remoteDescription){const n=this.pc.remoteDescription,r=(0,a.importFromSDP)(n.sdp),i=r.media.find(t=>t.mid===e.contents[0].name).iceParameters.usernameFragment,o=e.contents[0].transport.usernameFragment;if(o&&i!==o){for(const[t,n]of e.contents.entries()){const e=n.transport;r.media[t].iceParameters={password:e.password,usernameFragment:e.usernameFragment},r.media[t].candidates=[]}try{if(await this.pc.setRemoteDescription({type:n.type,sdp:(0,a.exportToSDP)(r)}),await this.processBufferedCandidates(),"offer"===n.type){const e=await this.pc.createAnswer();await this.pc.setLocalDescription(e);const t=(0,a.importFromSDP)(e.sdp);this.send(s.JingleAction.TransportInfo,{contents:t.media.map(e=>({creator:s.JingleSessionRole.Initiator,name:e.mid,transport:(0,c.convertIntermediateToTransport)(e,this.transportType)})),sid:this.sid})}else this.restartingIce=!1}catch(e){return this._log("error","Could not do remote ICE restart",e),t(e),void this.end(s.JingleReasonCondition.FailedTransport)}}}const n=(e.contents||[]).map(e=>{const t=e.name,n=(e.transport.candidates||[]).map(async e=>{const n=i.writeCandidate((0,c.convertCandidateToIntermediate)(e));if(this.pc.remoteDescription&&"stable"===this.pc.signalingState)try{await this.pc.addIceCandidate({sdpMid:t,candidate:n})}catch(e){this._log("error","Could not add ICE candidate",e)}else this.candidateBuffer.push({sdpMid:t,candidate:n})});return Promise.all(n)});try{await Promise.all(n),t()}catch(e){this._log("error","Could not process transport-info: "+e),t(e)}}async onSessionAccept(e,t){this.state="active";const n=(0,c.convertRequestToIntermediate)(e,this.peerRole),r=(0,a.exportToSDP)(n);try{await this.pc.setRemoteDescription({type:"answer",sdp:r}),await this.processBufferedCandidates(),this.parent.emit("accepted",this,void 0),t()}catch(e){this._log("error","Could not process WebRTC answer: "+e),t({condition:"general-error"})}}onSessionTerminate(e,t){this._log("info","Terminating session"),this.pc.close(),super.end(e.reason,!0),t()}onIceCandidate(e){if(!e.candidate||!e.candidate.candidate)return;const t=i.parseCandidate(e.candidate.candidate),n={contents:[{creator:s.JingleSessionRole.Initiator,name:e.candidate.sdpMid,transport:{candidates:[(0,c.convertIntermediateToCandidate)(t)],transportType:this.transportType,usernameFragment:t.usernameFragment}}]};this._log("info","Discovered new ICE candidate",n),this.send(s.JingleAction.TransportInfo,n)}onIceEndOfCandidates(){this._log("info","ICE end of candidates");const e=(0,a.importFromSDP)(this.pc.localDescription.sdp).media[0];this.send(s.JingleAction.TransportInfo,{contents:[{creator:s.JingleSessionRole.Initiator,name:e.mid,transport:{gatheringComplete:!0,transportType:this.transportType,usernameFragment:e.iceParameters.usernameFragment}}]})}onIceStateChange(){switch(this.pc.iceConnectionState){case"checking":this.connectionState="connecting";break;case"completed":case"connected":this.connectionState="connected";break;case"disconnected":if("stable"===this.pc.signalingState?this.connectionState="interrupted":this.connectionState="disconnected",this.restartingIce)return void this.end(s.JingleReasonCondition.FailedTransport);this.maybeRestartIce();break;case"failed":if("failed"===this.connectionState||this.restartingIce)return void this.end(s.JingleReasonCondition.FailedTransport);this.connectionState="failed",this.restartIce();break;case"closed":this.connectionState="disconnected",this.restartingIce?this.end(s.JingleReasonCondition.FailedTransport):this.end()}}async processBufferedCandidates(){for(const e of this.candidateBuffer)try{await this.pc.addIceCandidate(e)}catch(e){this._log("error","Could not add ICE candidate",e)}this.candidateBuffer=[]}restrictRelayBandwidth(){this.pc.addEventListener("iceconnectionstatechange",async()=>{if("completed"!==this.pc.iceConnectionState&&"connected"!==this.pc.iceConnectionState)return;const e=await this.pc.getStats();let t;if(e.forEach(n=>{"transport"===n.type&&(t=e.get(n.selectedCandidatePairId))}),t||e.forEach(e=>{"candidate-pair"===e.type&&e.selected&&(t=e)}),!t)return;let n=!1,r="",i="";if(t.remoteCandidateId){const n=e.get(t.remoteCandidateId);n&&(i=n.candidateType)}if(t.localCandidateId){const n=e.get(t.localCandidateId);n&&(r=n.candidateType)}"relay"!==r&&"relay"!==i||(n=!0),this.usingRelay=n,this.parent.emit("iceConnectionType",this,{localCandidateType:r,relayed:n,remoteCandidateType:i}),n&&void 0!==this.maxRelayBandwidth&&(this.maximumBitrate=this.maxRelayBandwidth,this.currentBitrate?this.setMaximumBitrate(Math.min(this.currentBitrate,this.maximumBitrate)):this.setMaximumBitrate(this.maximumBitrate))})}maybeRestartIce(){this.isInitiator&&(void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this._maybeRestartingIce=setTimeout(()=>{this._maybeRestartingIce=void 0,"disconnected"===this.pc.iceConnectionState&&this.restartIce()},2e3))}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertRequestToIntermediate=t.convertContentToIntermediate=t.convertIntermediateToRequest=t.convertIntermediateToTransport=t.convertCandidateToIntermediate=t.convertIntermediateToCandidate=t.convertIntermediateToApplication=void 0;const r=n(5),i=n(1);function s(e,t){const n=e.rtpParameters,s=e.rtcpParameters||{},o=e.rtpEncodingParameters||[];let a=!1;o&&o.length&&(a=!!o[0].ssrc);const c={applicationType:i.NS_JINGLE_RTP_1,codecs:[],headerExtensions:[],media:e.kind,rtcpMux:s.mux,rtcpReducedSize:s.reducedSize,sourceGroups:[],sources:[],ssrc:a?o[0].ssrc.toString():void 0,streams:[]};for(const e of n.headerExtensions||[]){const n={id:e.id,uri:e.uri};e.direction&&"sendrecv"!==e.direction&&(n.senders=(0,r.directionToSenders)(t,e.direction)),c.headerExtensions.push(n)}s.ssrc&&s.cname&&(c.sources=[{parameters:{cname:s.cname},ssrc:s.ssrc.toString()}]),a&&o[0]&&o[0].rtx&&(c.sourceGroups=[{semantics:"FID",sources:[o[0].ssrc.toString(),o[0].rtx.ssrc.toString()]}]);for(const t of e.streams||[])c.streams.push({id:t.stream,track:t.track});for(const e of n.codecs||[]){const t={channels:e.channels,clockRate:e.clockRate,id:e.payloadType.toString(),name:e.name,parameters:e.parameters,rtcpFeedback:e.rtcpFeedback};e.maxptime&&(t.maxptime=e.maxptime),e.parameters&&e.parameters.ptime&&(t.ptime=parseInt(e.parameters.ptime,10)),c.codecs.push(t)}return c}function o(e){let t;return t="rtp"===e.component?1:"rtcp"===e.component?2:e.component,{component:t,foundation:e.foundation,generation:void 0,id:void 0,ip:e.ip,network:void 0,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function a(e){return{address:e.ip,component:1===e.component?"rtp":2===e.component?"rtcp":e.component,foundation:e.foundation,ip:e.ip,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function c(e,t){const n=e.iceParameters,r=e.dtlsParameters,i={candidates:[],transportType:t};n&&(i.usernameFragment=n.usernameFragment,i.password=n.password,n.iceLite&&(i.iceLite=!0)),r&&(i.fingerprints=r.fingerprints.map(t=>({algorithm:t.algorithm,setup:e.setup,value:t.value}))),e.sctp&&(i.sctp=e.sctp);for(const t of e.candidates||[])i.candidates.push(o(t));return i}function u(e,t){const n=e.application||{},s=e.transport,o=n&&n.applicationType===i.NS_JINGLE_RTP_1,c={direction:(0,r.sendersToDirection)(t,e.senders),kind:n.media||"application",mid:e.name,protocol:o?"UDP/TLS/RTP/SAVPF":"UDP/DTLS/SCTP"};if(o){if(c.rtcpParameters={compound:!n.rtcpReducedSize,mux:n.rtcpMux,reducedSize:n.rtcpReducedSize},n.sources&&n.sources.length){const e=n.sources[0];c.rtcpParameters.ssrc=parseInt(e.ssrc,10),e.parameters&&(c.rtcpParameters.cname=e.parameters.cname)}if(c.rtpParameters={codecs:[],fecMechanisms:[],headerExtensions:[],rtcp:[]},n.streams){c.streams=[];for(const e of n.streams)c.streams.push({stream:e.id,track:e.track})}if(n.ssrc&&(c.rtpEncodingParameters=[{ssrc:parseInt(n.ssrc,10)}],n.sourceGroups&&n.sourceGroups.length)){const e=n.sourceGroups[0];c.rtpEncodingParameters[0].rtx={ssrc:parseInt(e.sources[1],10)}}let e=!1,i=!1;for(const t of n.codecs||[]){const n=t.parameters||{},r=[];for(const e of t.rtcpFeedback||[])r.push({parameter:e.parameter,type:e.type});if("red"===t.name||"ulpfec"===t.name){e=e||"red"===t.name,i=i||"ulpfec"===t.name;const n=t.name.toUpperCase();c.rtpParameters.fecMechanisms.includes(n)||c.rtpParameters.fecMechanisms.push(n)}c.rtpParameters.codecs.push({channels:t.channels,clockRate:t.clockRate,name:t.name,numChannels:t.channels,parameters:n,payloadType:parseInt(t.id,10),rtcpFeedback:r})}for(const e of n.headerExtensions||[])c.rtpParameters.headerExtensions.push({direction:(0,r.sendersToDirection)(t,e.senders||"both"),id:e.id,uri:e.uri,attributes:void 0})}if(s){if(s.usernameFragment&&s.password&&(c.iceParameters={password:s.password,usernameFragment:s.usernameFragment},s.iceLite&&(c.iceParameters.iceLite=!0)),s.fingerprints&&s.fingerprints.length){c.dtlsParameters={fingerprints:[],role:"auto"};for(const e of s.fingerprints)c.dtlsParameters.fingerprints.push({algorithm:e.algorithm,value:e.value});s.sctp&&(c.sctp=s.sctp),c.setup=s.fingerprints[0].setup}c.candidates=(s.candidates||[]).map(a)}return c}t.convertIntermediateToApplication=s,t.convertIntermediateToCandidate=o,t.convertCandidateToIntermediate=a,t.convertIntermediateToTransport=c,t.convertIntermediateToRequest=function(e,t,n){return{contents:e.media.map(e=>({application:"audio"===e.kind||"video"===e.kind?s(e,t):{applicationType:"datachannel",protocol:e.protocol},creator:r.JingleSessionRole.Initiator,name:e.mid,senders:(0,r.directionToSenders)(t,e.direction),transport:c(e,n)})),groups:e.groups?e.groups.map(e=>({contents:e.mids,semantics:e.semantics})):[]}},t.convertContentToIntermediate=u,t.convertRequestToIntermediate=function(e,t){const n={groups:[],media:[]};for(const t of e.groups||[])n.groups.push({mids:t.contents,semantics:t.semantics});for(const r of e.contents||[])n.media.push(u(r,t));return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(60),i=n(5),s=n(13),o={condition:i.StanzaErrorCondition.BadRequest},a={condition:i.StanzaErrorCondition.FeatureNotImplemented,jingleError:i.JingleErrorCondition.UnsupportedInfo,type:"modify"};t.default=class{constructor(e){this.parent=e.parent,this.sid=e.sid||(0,s.uuid)(),this.peerID=e.peerID,this.role=e.initiator?i.JingleSessionRole.Initiator:i.JingleSessionRole.Responder,this._sessionState="starting",this._connectionState="starting",this.pendingApplicationTypes=e.applicationTypes||[],this.pendingAction=void 0,this.processingQueue=(0,r.priorityQueue)(async(e,t)=>{if("ended"===this.state)return"local"===e.type&&e.reject&&e.reject(new Error("Session ended")),void(t&&t());if("local"===e.type){this._log("debug","Processing local action:",e.name);try{const t=await e.handler();e.resolve(t)}catch(t){e.reject(t)}return void(t&&t())}const{action:n,changes:r,cb:s}=e;return this._log("debug","Processing remote action:",n),new Promise(e=>{const o=(n,r)=>{s(n,r),t&&t(),e()};switch(n){case i.JingleAction.ContentAccept:return this.onContentAccept(r,o);case i.JingleAction.ContentAdd:return this.onContentAdd(r,o);case i.JingleAction.ContentModify:return this.onContentModify(r,o);case i.JingleAction.ContentReject:return this.onContentReject(r,o);case i.JingleAction.ContentRemove:return this.onContentRemove(r,o);case i.JingleAction.DescriptionInfo:return this.onDescriptionInfo(r,o);case i.JingleAction.SecurityInfo:return this.onSecurityInfo(r,o);case i.JingleAction.SessionAccept:return this.onSessionAccept(r,o);case i.JingleAction.SessionInfo:return this.onSessionInfo(r,o);case i.JingleAction.SessionInitiate:return this.onSessionInitiate(r,o);case i.JingleAction.SessionTerminate:return this.onSessionTerminate(r,o);case i.JingleAction.TransportAccept:return this.onTransportAccept(r,o);case i.JingleAction.TransportInfo:return this.onTransportInfo(r,o);case i.JingleAction.TransportReject:return this.onTransportReject(r,o);case i.JingleAction.TransportReplace:return this.onTransportReplace(r,o);default:this._log("error","Invalid or unsupported action: "+n),o({condition:i.StanzaErrorCondition.BadRequest})}})},1)}get isInitiator(){return this.role===i.JingleSessionRole.Initiator}get peerRole(){return this.isInitiator?i.JingleSessionRole.Responder:i.JingleSessionRole.Initiator}get state(){return this._sessionState}set state(e){e!==this._sessionState&&(this._log("info","Changing session state to: "+e),this._sessionState=e,this.parent&&this.parent.emit("sessionState",this,e))}get connectionState(){return this._connectionState}set connectionState(e){e!==this._connectionState&&(this._log("info","Changing connection state to: "+e),this._connectionState=e,this.parent&&this.parent.emit("connectionState",this,e))}send(e,t){(t=t||{}).sid=this.sid,t.action=e;new Set([i.JingleAction.ContentAccept,i.JingleAction.ContentAdd,i.JingleAction.ContentModify,i.JingleAction.ContentReject,i.JingleAction.ContentRemove,i.JingleAction.SessionAccept,i.JingleAction.SessionInitiate,i.JingleAction.TransportAccept,i.JingleAction.TransportReject,i.JingleAction.TransportReplace]).has(e)?this.pendingAction=e:this.pendingAction=void 0,this.parent.signal(this,{id:(0,s.uuid)(),jingle:t,to:this.peerID,type:"set"})}processLocal(e,t){return new Promise((n,r)=>{this.processingQueue.push({handler:t,name:e,reject:r,resolve:n,type:"local"},1)})}process(e,t,n){this.processingQueue.push({action:e,cb:n,changes:t,type:"remote"},2)}start(e,t){this._log("error","Can not start base sessions"),this.end("unsupported-applications",!0)}accept(e,t){this._log("error","Can not accept base sessions"),this.end("unsupported-applications")}cancel(){this.end("cancel")}decline(){this.end("decline")}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended",this.processingQueue.kill(),"string"==typeof e&&(e={condition:e}),t||this.send("session-terminate",{reason:e}),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}_log(e,t){if(this.parent){t=this.sid+": "+t;for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this.parent.emit("log",e,t,...r),this.parent.emit("log:"+e,t,...r)}}onSessionInitiate(e,t){t()}onSessionAccept(e,t){t()}onSessionTerminate(e,t){this.end(e.reason,!0),t()}onSessionInfo(e,t){e.info?t(a):t()}onSecurityInfo(e,t){t(a)}onDescriptionInfo(e,t){t(a)}onTransportInfo(e,t){t(a)}onContentAdd(e,t){t(),this.send(i.JingleAction.ContentReject,{reason:{condition:i.JingleReasonCondition.FailedApplication,text:"content-add is not supported"}})}onContentAccept(e,t){t(o)}onContentReject(e,t){t(o)}onContentModify(e,t){t(o)}onContentRemove(e,t){t(o)}onTransportReplace(e,t){t(),this.send(i.JingleAction.TransportReject,{reason:{condition:i.JingleReasonCondition.FailedTransport,text:"transport-replace is not supported"}})}onTransportAccept(e,t){t(o)}onTransportReject(e,t){t(o)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"all",(function(){return me})),n.d(t,"allLimit",(function(){return ge})),n.d(t,"allSeries",(function(){return ye})),n.d(t,"any",(function(){return tt})),n.d(t,"anyLimit",(function(){return nt})),n.d(t,"anySeries",(function(){return rt})),n.d(t,"apply",(function(){return r})),n.d(t,"applyEach",(function(){return O})),n.d(t,"applyEachSeries",(function(){return j})),n.d(t,"asyncify",(function(){return d})),n.d(t,"auto",(function(){return D})),n.d(t,"autoInject",(function(){return J})),n.d(t,"cargo",(function(){return V})),n.d(t,"cargoQueue",(function(){return W})),n.d(t,"compose",(function(){return K})),n.d(t,"concat",(function(){return Z})),n.d(t,"concatLimit",(function(){return X})),n.d(t,"concatSeries",(function(){return ee})),n.d(t,"constant",(function(){return te})),n.d(t,"default",(function(){return mt})),n.d(t,"detect",(function(){return re})),n.d(t,"detectLimit",(function(){return ie})),n.d(t,"detectSeries",(function(){return se})),n.d(t,"dir",(function(){return ae})),n.d(t,"doDuring",(function(){return ce})),n.d(t,"doUntil",(function(){return ue})),n.d(t,"doWhilst",(function(){return ce})),n.d(t,"during",(function(){return pt})),n.d(t,"each",(function(){return de})),n.d(t,"eachLimit",(function(){return pe})),n.d(t,"eachOf",(function(){return R})),n.d(t,"eachOfLimit",(function(){return N})),n.d(t,"eachOfSeries",(function(){return P})),n.d(t,"eachSeries",(function(){return he})),n.d(t,"ensureAsync",(function(){return fe})),n.d(t,"every",(function(){return me})),n.d(t,"everyLimit",(function(){return ge})),n.d(t,"everySeries",(function(){return ye})),n.d(t,"filter",(function(){return Se})),n.d(t,"filterLimit",(function(){return we})),n.d(t,"filterSeries",(function(){return Te})),n.d(t,"find",(function(){return re})),n.d(t,"findLimit",(function(){return ie})),n.d(t,"findSeries",(function(){return se})),n.d(t,"flatMap",(function(){return Z})),n.d(t,"flatMapLimit",(function(){return X})),n.d(t,"flatMapSeries",(function(){return ee})),n.d(t,"foldl",(function(){return $})),n.d(t,"foldr",(function(){return ze})),n.d(t,"forEach",(function(){return de})),n.d(t,"forEachLimit",(function(){return pe})),n.d(t,"forEachOf",(function(){return R})),n.d(t,"forEachOfLimit",(function(){return N})),n.d(t,"forEachOfSeries",(function(){return P})),n.d(t,"forEachSeries",(function(){return he})),n.d(t,"forever",(function(){return Ie})),n.d(t,"groupBy",(function(){return Ne})),n.d(t,"groupByLimit",(function(){return Ae})),n.d(t,"groupBySeries",(function(){return Ee})),n.d(t,"inject",(function(){return $})),n.d(t,"log",(function(){return xe})),n.d(t,"map",(function(){return C})),n.d(t,"mapLimit",(function(){return Y})),n.d(t,"mapSeries",(function(){return k})),n.d(t,"mapValues",(function(){return Ce})),n.d(t,"mapValuesLimit",(function(){return Re})),n.d(t,"mapValuesSeries",(function(){return Oe})),n.d(t,"memoize",(function(){return Pe})),n.d(t,"nextTick",(function(){return ke})),n.d(t,"parallel",(function(){return Me})),n.d(t,"parallelLimit",(function(){return Le})),n.d(t,"priorityQueue",(function(){return Ue})),n.d(t,"queue",(function(){return De})),n.d(t,"race",(function(){return Je})),n.d(t,"reduce",(function(){return $})),n.d(t,"reduceRight",(function(){return ze})),n.d(t,"reflect",(function(){return Ge})),n.d(t,"reflectAll",(function(){return He})),n.d(t,"reject",(function(){return We})),n.d(t,"rejectLimit",(function(){return $e})),n.d(t,"rejectSeries",(function(){return Qe})),n.d(t,"retry",(function(){return Ye})),n.d(t,"retryable",(function(){return Ze})),n.d(t,"select",(function(){return Se})),n.d(t,"selectLimit",(function(){return we})),n.d(t,"selectSeries",(function(){return Te})),n.d(t,"seq",(function(){return Q})),n.d(t,"series",(function(){return et})),n.d(t,"setImmediate",(function(){return l})),n.d(t,"some",(function(){return tt})),n.d(t,"someLimit",(function(){return nt})),n.d(t,"someSeries",(function(){return rt})),n.d(t,"sortBy",(function(){return it})),n.d(t,"timeout",(function(){return st})),n.d(t,"times",(function(){return at})),n.d(t,"timesLimit",(function(){return ot})),n.d(t,"timesSeries",(function(){return ct})),n.d(t,"transform",(function(){return ut})),n.d(t,"tryEach",(function(){return lt})),n.d(t,"unmemoize",(function(){return dt})),n.d(t,"until",(function(){return ht})),n.d(t,"waterfall",(function(){return ft})),n.d(t,"whilst",(function(){return pt})),n.d(t,"wrapSync",(function(){return d}));n(30);function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e(...n,...r)}}function i(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.pop();return e.call(this,n,i)}}var s="function"==typeof queueMicrotask&&queueMicrotask,o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function c(e){setTimeout(e,0)}function u(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e(()=>t(...r))}}var l=u(s?queueMicrotask:o?setImmediate:a?process.nextTick:c);function d(e){return f(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.pop(),s=e.apply(this,n);return p(s,i)}:i((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return p(r,n);n(null,r)}))}function p(e,t){return e.then(e=>{h(t,null,e)},e=>{h(t,e&&(e instanceof Error||e.message)?e:new Error(e))})}function h(e,t,n){try{e(t,n)}catch(e){l(e=>{throw e},e)}}function f(e){return"AsyncFunction"===e[Symbol.toStringTag]}function m(e){if("function"!=typeof e)throw new Error("expected a function");return f(e)?d(e):e}function g(e,t){if(t||(t=e.length),!t)throw new Error("arity is undefined");return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"function"==typeof r[t-1]?e.apply(this,r):new Promise((n,i)=>{r[t-1]=function(e){if(e)return i(e);for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];n(r.length>1?r:r[0])},e.apply(this,r)})}}function y(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const s=g((function(n){var i=this;return e(t,(e,t)=>{m(e).apply(i,r.concat(t))},n)}));return s}}function b(e,t,n,r){t=t||[];var i=[],s=0,o=m(n);return e(t,(e,t,n)=>{var r=s++;o(e,(e,t)=>{i[r]=t,n(e)})},e=>{r(e,i)})}function v(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}var _={};function S(e){function t(){if(null!==e){var t=e;e=null;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}return Object.assign(t,e),t}function w(e){if(v(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,r,i,s=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return s?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(s):(n=(t=e)?Object.keys(t):[],r=-1,i=n.length,function e(){var s=n[++r];return"__proto__"===s?e():r<i?{value:t[s],key:s}:null})}function T(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}function I(e,t,n,r){let i=!1,s=!1,o=!1,a=0,c=0;function u(){a>=t||o||i||(o=!0,e.next().then(e=>{let{value:t,done:d}=e;if(!s&&!i){if(o=!1,d)return i=!0,void(a<=0&&r(null));a++,n(t,c,l),c++,u()}}).catch(d))}function l(e,t){if(a-=1,!s)return e?d(e):!1===e?(i=!0,void(s=!0)):t===_||i&&a<=0?(i=!0,r(null)):void u()}function d(e){s||(o=!1,i=!0,r(e))}u()}var A=e=>(t,n,r)=>{if(r=S(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if("AsyncGenerator"===t[Symbol.toStringTag])return I(t,e,n,r);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return I(t[Symbol.asyncIterator](),e,n,r);var i=w(t),s=!1,o=!1,a=0,c=!1;function u(e,t){if(!o)if(a-=1,e)s=!0,r(e);else if(!1===e)s=!0,o=!0;else{if(t===_||s&&a<=0)return s=!0,r(null);c||l()}}function l(){for(c=!0;a<e&&!s;){var t=i();if(null===t)return s=!0,void(a<=0&&r(null));a+=1,n(t.value,t.key,T(u))}c=!1}l()};var N=g((function(e,t,n,r){return A(t)(e,m(n),r)}),4);function E(e,t,n){n=S(n);var r=0,i=0,{length:s}=e,o=!1;function a(e,t){!1===e&&(o=!0),!0!==o&&(e?n(e):++i!==s&&t!==_||n(null))}for(0===s&&n(null);r<s;r++)t(e[r],r,T(a))}function x(e,t,n){return N(e,1/0,t,n)}var R=g((function(e,t,n){return(v(e)?E:x)(e,m(t),n)}),3);var C=g((function(e,t,n){return b(R,e,t,n)}),3),O=y(C);var P=g((function(e,t,n){return N(e,1,t,n)}),3);var k=g((function(e,t,n){return b(P,e,t,n)}),3),j=y(k);const M=Symbol("promiseCallback");function L(){let e,t;function n(n){if(n)return t(n);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];e(i.length>1?i:i[0])}return n[M]=new Promise((n,r)=>{e=n,t=r}),n}function D(e,t,n){"number"!=typeof t&&(n=t,t=null),n=S(n||L());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var i={},s=0,o=!1,a=!1,c=Object.create(null),u=[],l=[],d={};function p(e,t){u.push(()=>function(e,t){if(a)return;var r=T((function(t){for(var r=arguments.length,u=new Array(r>1?r-1:0),l=1;l<r;l++)u[l-1]=arguments[l];if(s--,!1!==t)if(u.length<2&&([u]=u),t){var d={};if(Object.keys(i).forEach(e=>{d[e]=i[e]}),d[e]=u,a=!0,c=Object.create(null),o)return;n(t,d)}else i[e]=u,f(e);else o=!0}));s++;var u=m(t[t.length-1]);t.length>1?u(i,r):u(r)}(e,t))}function h(){if(!o){if(0===u.length&&0===s)return n(null,i);for(;u.length&&s<t;){u.shift()()}}}function f(e){(c[e]||[]).forEach(e=>e()),h()}function g(t){var n=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)&&i.indexOf(t)>=0&&n.push(r)}),n}return Object.keys(e).forEach(t=>{var n=e[t];if(!Array.isArray(n))return p(t,[n]),void l.push(t);var r=n.slice(0,n.length-1),i=r.length;if(0===i)return p(t,n),void l.push(t);d[t]=i,r.forEach(s=>{if(!e[s])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+s+"` in "+r.join(", "));!function(e,t){var n=c[e];n||(n=c[e]=[]);n.push(t)}(s,()=>{0===--i&&p(t,n)})})}),function(){var e,t=0;for(;l.length;)e=l.pop(),t++,g(e).forEach(e=>{0==--d[e]&&l.push(e)});if(t!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h(),n[M]}var B=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,F=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,q=/,/,U=/(=.+)?(\s*)$/;function J(e,t){var n={};return Object.keys(e).forEach(t=>{var r,i=e[t],s=f(i),o=!s&&1===i.length||s&&0===i.length;if(Array.isArray(i))r=[...i],i=r.pop(),n[t]=r.concat(r.length>0?a:i);else if(o)n[t]=i;else{if(r=function(e){const t=function(e){let t="",n=0,r=e.indexOf("*/");for(;n<e.length;)if("/"===e[n]&&"/"===e[n+1]){let t=e.indexOf("\n",n);n=-1===t?e.length:t}else if(-1!==r&&"/"===e[n]&&"*"===e[n+1]){let i=e.indexOf("*/",n);-1!==i?(n=i+2,r=e.indexOf("*/",n)):(t+=e[n],n++)}else t+=e[n],n++;return t}(e.toString());let n=t.match(B);if(n||(n=t.match(F)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,r]=n;return r.replace(/\s/g,"").split(q).map(e=>e.replace(U,"").trim())}(i),0===i.length&&!s&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");s||r.pop(),n[t]=r.concat(a)}function a(e,t){var n=r.map(t=>e[t]);n.push(t),m(i)(...n)}}),D(n,t)}class z{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):G(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):G(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function G(e,t){e.length=1,e.head=e.tail=t}function H(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var r=m(e),i=0,s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(e,t){return e?t?void(o[e]=o[e].filter(e=>e!==t)):o[e]=[]:Object.keys(o).forEach(e=>o[e]=[])}function c(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o[e].forEach(e=>e(...n))}var u=!1;function d(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");var i,s;function o(e){if(e)return n?s(e):i();for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(r.length<=1)return i(r[0]);i(r)}y.started=!0;var a=y._createTaskItem(e,n?o:r||o);if(t?y._tasks.unshift(a):y._tasks.push(a),u||(u=!0,l(()=>{u=!1,y.process()})),n||!r)return new Promise((e,t)=>{i=e,s=t})}function p(e){return function(t){i-=1;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var a=0,u=e.length;a<u;a++){var l=e[a],d=s.indexOf(l);0===d?s.shift():d>0&&s.splice(d,1),l.callback(t,...r),null!=t&&c("error",t,l.data)}i<=y.concurrency-y.buffer&&c("unsaturated"),y.idle()&&c("drain"),y.process()}}function h(e){return!(0!==e.length||!y.idle())&&(l(()=>c("drain")),!0)}const f=e=>t=>{if(!t)return new Promise((t,n)=>{!function(e,t){const n=function(){a(e,n),t(...arguments)};o[e].push(n)}(e,(e,r)=>{if(e)return n(e);t(r)})});a(e),function(e,t){o[e].push(t)}(e,t)};var g=!1,y={_tasks:new z,_createTaskItem:(e,t)=>({data:e,callback:t}),*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!1,!1,t))}return d(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!1,!0,t))}return d(e,!1,!0,t)},kill(){a(),y._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!0,!1,t))}return d(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!0,!0,t))}return d(e,!0,!0,t)},remove(e){y._tasks.remove(e)},process(){if(!g){for(g=!0;!y.paused&&i<y.concurrency&&y._tasks.length;){var e=[],t=[],n=y._tasks.length;y.payload&&(n=Math.min(n,y.payload));for(var o=0;o<n;o++){var a=y._tasks.shift();e.push(a),s.push(a),t.push(a.data)}i+=1,0===y._tasks.length&&c("empty"),i===y.concurrency&&c("saturated");var u=T(p(e));r(t,u)}g=!1}},length:()=>y._tasks.length,running:()=>i,workersList:()=>s,idle:()=>y._tasks.length+i===0,pause(){y.paused=!0},resume(){!1!==y.paused&&(y.paused=!1,l(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:f("saturated")},unsaturated:{writable:!1,value:f("unsaturated")},empty:{writable:!1,value:f("empty")},drain:{writable:!1,value:f("drain")},error:{writable:!1,value:f("error")}}),y}function V(e,t){return H(e,1,t)}function W(e,t,n){return H(e,t,n)}var $=g((function(e,t,n,r){r=S(r);var i=m(n);return P(e,(e,n,r)=>{i(t,e,(e,n)=>{t=n,r(e)})},e=>r(e,t))}),4);function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map(m);return function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=n[n.length-1];return"function"==typeof s?n.pop():s=L(),$(r,n,(t,n,r)=>{n.apply(e,t.concat((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r(e,n)})))},(e,t)=>s(e,...t)),s[M]}}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Q(...t.reverse())}var Y=g((function(e,t,n,r){return b(A(t),e,n,r)}),4);var X=g((function(e,t,n,r){var i=m(n);return Y(e,t,(e,t)=>{i(e,(function(e){if(e)return t(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t(e,r)}))},(e,t)=>{for(var n=[],i=0;i<t.length;i++)t[i]&&(n=n.concat(...t[i]));return r(e,n)})}),4);var Z=g((function(e,t,n){return X(e,1/0,t,n)}),3);var ee=g((function(e,t,n){return X(e,1,t,n)}),3);function te(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.pop();return i(null,...t)}}function ne(e,t){return(n,r,i,s)=>{var o,a=!1;const c=m(i);n(r,(n,r,i)=>{c(n,(r,s)=>r||!1===r?i(r):e(s)&&!o?(a=!0,o=t(!0,n),i(null,_)):void i())},e=>{if(e)return s(e);s(null,a?o:t(!1))})}}var re=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(R,e,t,n)}),3);var ie=g((function(e,t,n,r){return ne(e=>e,(e,t)=>t)(A(t),e,n,r)}),4);var se=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(A(1),e,t,n)}),3);function oe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return m(t)(...r,(function(t){if("object"==typeof console)if(t)console.error&&console.error(t);else if(console[e]){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach(t=>console[e](t))}}))}}var ae=oe("dir");var ce=g((function(e,t,n){n=T(n);var r,i=m(e),s=m(t);function o(e){if(e)return n(e);if(!1!==e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];r=i,s(...i,a)}}function a(e,t){return e?n(e):!1!==e?t?void i(o):n(null,...r):void 0}return a(null,!0)}),3);function ue(e,t,n){const r=m(t);return ce(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i=t.pop();r(...t,(e,t)=>i(e,!t))}),n)}function le(e){return(t,n,r)=>e(t,r)}var de=g((function(e,t,n){return R(e,le(m(t)),n)}),3);var pe=g((function(e,t,n,r){return A(t)(e,le(m(n)),r)}),4);var he=g((function(e,t,n){return pe(e,1,t,n)}),3);function fe(e){return f(e)?e:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.pop(),s=!0;n.push((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s?l(()=>i(...t)):i(...t)})),e.apply(this,n),s=!1}}var me=g((function(e,t,n){return ne(e=>!e,e=>!e)(R,e,t,n)}),3);var ge=g((function(e,t,n,r){return ne(e=>!e,e=>!e)(A(t),e,n,r)}),4);var ye=g((function(e,t,n){return ne(e=>!e,e=>!e)(P,e,t,n)}),3);function be(e,t,n,r){var i=new Array(t.length);e(t,(e,t,r)=>{n(e,(e,n)=>{i[t]=!!n,r(e)})},e=>{if(e)return r(e);for(var n=[],s=0;s<t.length;s++)i[s]&&n.push(t[s]);r(null,n)})}function ve(e,t,n,r){var i=[];e(t,(e,t,r)=>{n(e,(n,s)=>{if(n)return r(n);s&&i.push({index:t,value:e}),r(n)})},e=>{if(e)return r(e);r(null,i.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function _e(e,t,n,r){return(v(t)?be:ve)(e,t,m(n),r)}var Se=g((function(e,t,n){return _e(R,e,t,n)}),3);var we=g((function(e,t,n,r){return _e(A(t),e,n,r)}),4);var Te=g((function(e,t,n){return _e(P,e,t,n)}),3);var Ie=g((function(e,t){var n=T(t),r=m(fe(e));return function e(t){if(t)return n(t);!1!==t&&r(e)}()}),2);var Ae=g((function(e,t,n,r){var i=m(n);return Y(e,t,(e,t)=>{i(e,(n,r)=>n?t(n):t(n,{key:r,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:i}=Object.prototype,s=0;s<t.length;s++)if(t[s]){var{key:o}=t[s],{val:a}=t[s];i.call(n,o)?n[o].push(a):n[o]=[a]}return r(e,n)})}),4);function Ne(e,t,n){return Ae(e,1/0,t,n)}function Ee(e,t,n){return Ae(e,1,t,n)}var xe=oe("log");var Re=g((function(e,t,n,r){r=S(r);var i={},s=m(n);return A(t)(e,(e,t,n)=>{s(e,t,(e,r)=>{if(e)return n(e);i[t]=r,n(e)})},e=>r(e,i))}),4);function Ce(e,t,n){return Re(e,1/0,t,n)}function Oe(e,t,n){return Re(e,1,t,n)}function Pe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;var n=Object.create(null),r=Object.create(null),s=m(e),o=i((e,i)=>{var o=t(...e);o in n?l(()=>i(null,...n[o])):o in r?r[o].push(i):(r[o]=[i],s(...e,(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];e||(n[o]=i);var a=r[o];delete r[o];for(var c=0,u=a.length;c<u;c++)a[c](e,...i)})))});return o.memo=n,o.unmemoized=e,o}var ke=u(a?process.nextTick:o?setImmediate:c),je=g((e,t,n)=>{var r=v(t)?[]:{};e(t,(e,t,n)=>{m(e)((function(e){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];s.length<2&&([s]=s),r[t]=s,n(e)}))},e=>n(e,r))},3);function Me(e,t){return je(R,e,t)}function Le(e,t,n){return je(A(t),e,n)}function De(e,t){var n=m(e);return H((e,t)=>{n(e[0],t)},t,1)}class Be{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&qe(this.heap[e],this.heap[t=Fe(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&qe(this.heap[t+1],this.heap[t])&&(t+=1),!qe(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=Fe(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function Fe(e){return(e+1>>1)-1}function qe(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function Ue(e,t){var n=De(e,t),{push:r,pushAsync:i}=n;function s(e,t){return Array.isArray(e)?e.map(e=>({data:e,priority:t})):{data:e,priority:t}}return n._tasks=new Be,n._createTaskItem=(e,t)=>{let{data:n,priority:r}=e;return{data:n,priority:r,callback:t}},n.push=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return r(s(e,t),n)},n.pushAsync=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return i(s(e,t),n)},delete n.unshift,delete n.unshiftAsync,n}var Je=g((function(e,t){if(t=S(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)m(e[n])(t)}),2);function ze(e,t,n,r){var i=[...e].reverse();return $(i,t,n,r)}function Ge(e){var t=m(e);return i((function(e,n){return e.push((function(e){let t={};e&&(t.error=e);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];if(i.length>0){var o=i;i.length<=1&&([o]=i),t.value=o}n(null,t)})),t.apply(this,e)}))}function He(e){var t;return Array.isArray(e)?t=e.map(Ge):(t={},Object.keys(e).forEach(n=>{t[n]=Ge.call(this,e[n])})),t}function Ve(e,t,n,r){const i=m(n);return _e(e,t,(e,t)=>{i(e,(e,n)=>{t(e,!n)})},r)}var We=g((function(e,t,n){return Ve(R,e,t,n)}),3);var $e=g((function(e,t,n,r){return Ve(A(t),e,n,r)}),4);var Qe=g((function(e,t,n){return Ve(P,e,t,n)}),3);function Ke(e){return function(){return e}}function Ye(e,t,n){var r={times:5,intervalFunc:Ke(0)};if(arguments.length<3&&"function"==typeof e?(n=t||L(),t=e):(Xe(r,e),n=n||L()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var i=m(t),s=1;function o(){i((function(e){if(!1!==e)if(e&&s++<r.times&&("function"!=typeof r.errorFilter||r.errorFilter(e)))setTimeout(o,r.intervalFunc(s-1));else{for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];n(e,...i)}}))}return o(),n[M]}function Xe(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Ke(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function Ze(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;f(t)&&(n+=1);var r=m(t);return i((t,i)=>{function s(e){r(...t,e)}return(t.length<n-1||null==i)&&(t.push(i),i=L()),e?Ye(e,s,i):Ye(s,i),i[M]})}function et(e,t){return je(P,e,t)}var tt=g((function(e,t,n){return ne(Boolean,e=>e)(R,e,t,n)}),3);var nt=g((function(e,t,n,r){return ne(Boolean,e=>e)(A(t),e,n,r)}),4);var rt=g((function(e,t,n){return ne(Boolean,e=>e)(P,e,t,n)}),3);var it=g((function(e,t,n){var r=m(t);return C(e,(e,t)=>{r(e,(n,r)=>{if(n)return t(n);t(n,{value:e,criteria:r})})},(e,t)=>{if(e)return n(e);n(null,t.sort(i).map(e=>e.value))});function i(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}}),3);function st(e,t,n){var r=m(e);return i((i,s)=>{var o,a=!1;i.push((function(){a||(s(...arguments),clearTimeout(o))})),o=setTimeout((function(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),a=!0,s(r)}),t),r(...i)})}function ot(e,t,n,r){var i=m(n);return Y(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,i,r)}function at(e,t,n){return ot(e,1/0,t,n)}function ct(e,t,n){return ot(e,1,t,n)}function ut(e,t,n,r){arguments.length<=3&&"function"==typeof t&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=S(r||L());var i=m(n);return R(e,(e,n,r)=>{i(t,e,n,r)},e=>r(e,t)),r[M]}var lt=g((function(e,t){var n,r=null;return he(e,(e,t)=>{m(e)((function(e){if(!1===e)return t(e);for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];s.length<2?[n]=s:n=s,r=e,t(e?null:{})}))},()=>t(r,n))}));function dt(e){return function(){return(e.unmemoized||e)(...arguments)}}var pt=g((function(e,t,n){n=T(n);var r=m(t),i=m(e),s=[];function o(e){if(e)return n(e);for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];s=r,!1!==e&&i(a)}function a(e,t){return e?n(e):!1!==e?t?void r(o):n(null,...s):void 0}return i(a)}),3);function ht(e,t,n){const r=m(e);return pt(e=>r((t,n)=>e(t,!n)),t,n)}var ft=g((function(e,t){if(t=S(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(t){m(e[n++])(...t,T(i))}function i(i){if(!1!==i){for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];if(i||n===e.length)return t(i,...o);r(o)}}r([])})),mt={apply:r,applyEach:O,applyEachSeries:j,asyncify:d,auto:D,autoInject:J,cargo:V,cargoQueue:W,compose:K,concat:Z,concatLimit:X,concatSeries:ee,constant:te,detect:re,detectLimit:ie,detectSeries:se,dir:ae,doUntil:ue,doWhilst:ce,each:de,eachLimit:pe,eachOf:R,eachOfLimit:N,eachOfSeries:P,eachSeries:he,ensureAsync:fe,every:me,everyLimit:ge,everySeries:ye,filter:Se,filterLimit:we,filterSeries:Te,forever:Ie,groupBy:Ne,groupByLimit:Ae,groupBySeries:Ee,log:xe,map:C,mapLimit:Y,mapSeries:k,mapValues:Ce,mapValuesLimit:Re,mapValuesSeries:Oe,memoize:Pe,nextTick:ke,parallel:Me,parallelLimit:Le,priorityQueue:Ue,queue:De,race:Je,reduce:$,reduceRight:ze,reflect:Ge,reflectAll:He,reject:We,rejectLimit:$e,rejectSeries:Qe,retry:Ye,retryable:Ze,seq:Q,series:et,setImmediate:l,some:tt,someLimit:nt,someSeries:rt,sortBy:it,timeout:st,times:at,timesLimit:ot,timesSeries:ct,transform:ut,tryEach:lt,unmemoize:dt,until:ht,waterfall:ft,whilst:pt,all:me,allLimit:ge,allSeries:ye,any:tt,anyLimit:nt,anySeries:rt,find:re,findLimit:ie,findSeries:se,flatMap:Z,flatMapLimit:X,flatMapSeries:ee,forEach:de,forEachSeries:he,forEachLimit:pe,forEachOf:R,forEachOfSeries:P,forEachOfLimit:N,inject:$,foldl:$,foldr:ze,select:Se,selectLimit:we,selectSeries:Te,wrapSync:d,during:pt,doDuring:ce}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenesysCloudMediaSession=void 0;const r=n(21).__importDefault(n(97)),i=n(7),s=n(24),o=n(16),a=n(29);t.GenesysCloudMediaSession=class{constructor(e,t){this.webrtcExtension=e,this.iceCandidatesDiscovered=0,this.iceCandidatesReceivedFromPeer=0,this.state="pending",this.connectionState="starting",this.id=t.id,this.fromJid=t.fromJid,this.peerID=t.peerID,this.logger=t.logger,this.conversationId=t.conversationId,this.fromUserId=t.fromUserId,this.pc=this.peerConnection=new RTCPeerConnection({iceServers:t.iceServers,iceTransportPolicy:t.iceTransportPolicy}),this.originalRoomJid=t.originalRoomJid,this.sessionType=a.SessionTypes[t.sessionType],this.ignoreHostCandidatesFromRemote=!!t.ignoreHostCandidatesFromRemote,this.allowIPv6=!!t.allowIPv6,this.allowTCP=!!t.allowTCP,this.reinvite=!!t.reinvite,this.privAnswerMode=t.privAnswerMode;const n=new i.EventEmitter;Object.keys(n.__proto__).forEach(e=>{this[e]=n[e]}),t.optOutOfWebrtcStatsTelemetry||this.setupStatsGatherer(),this.peerConnection.addEventListener("icecandidate",this.onIceCandidate.bind(this)),this.peerConnection.addEventListener("iceconnectionstatechange",this.onIceStateChange.bind(this)),this.peerConnection.addEventListener("connectionstatechange",this.onConnectionStateChange.bind(this)),this.peerConnection.addEventListener("icecandidateerror",this.onIceCandidateError.bind(this))}keepStateInSyncWithPeerConnection(){this.stateSyncTimeout&&(clearTimeout(this.stateSyncTimeout),this.stateSyncTimeout=void 0);const e=Date.now();this.stateSyncTimeout=setTimeout(()=>{Date.now()-e>4e3&&(this.log("warn","MediaSession detected timer anomally. Reasons include taxed resources or system sleep."),"ended"!==this.state&&["failed","closed"].includes(this.peerConnection.connectionState)&&(this.log("warn","state mismatch between session.state and peerConnection.connectionState, manually terminating the session",{sessionId:this.id,conversationId:this.conversationId,sessionType:this.sessionType}),this.state="ended",this.onSessionTerminate())),"ended"!==this.state&&this.keepStateInSyncWithPeerConnection()},2e3)}async setRemoteDescription(e){return this.peerConnection.setRemoteDescription({sdp:e,type:"offer"})}getLogDetails(){return{conversationId:this.conversationId,sessionId:this.id,sessionType:this.sessionType}}log(e,t,n,r){n||(n={});const i={...n,...this.getLogDetails()};this.logger[e](t,i,r)}async sendGenesysWebrtc(e){e.id=e.id||s.v4(),e.jsonrpc=e.jsonrpc||"2.0";const t={type:"set",genesysWebrtc:e,from:this.webrtcExtension.jid,to:this.peerID};return this.webrtcExtension.sendIq(t)}async end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended";const n={sessionId:this.id,reason:e.condition||e};t||await o.timeoutPromise((e,t)=>{this.log("info","sending sdp terminate"),this.sendGenesysWebrtc({jsonrpc:"2.0",method:"terminate",params:n}).then(e,t)},2e3,"Timeout waiting for response to termination request",{sessionId:this.id,conversationId:this.conversationId,sessionType:this.sessionType}).catch(e=>this.logger.error(e)),this.onSessionTerminate(n.reason)}setupStatsGatherer(){this.statsGatherer=new r.default(this.peerConnection),this.statsGatherer.on("stats",this.emit.bind(this,"stats"))}async onIceStateChange(){const e=this.peerConnection.iceConnectionState,t=this.id,n=this.conversationId,r=this.sessionType;if(this.log("info","ICE state changed: ",{iceState:e,sessionId:t,conversationId:n}),"disconnected"===e)"stable"===this.peerConnection.signalingState&&(this.interruptionStart=new Date,this.log("info","Connection state is interrupted",{sessionId:t,conversationId:n,sessionType:r}));else if("connected"===e){this.log("info","sending session-info: active");const e={sessionId:this.id,status:"active"};await this.sendGenesysWebrtc({jsonrpc:"2.0",params:e,method:"info"}),this._setupDataChannel()}else"failed"===e&&this.log("info","ICE connection failed",{candidatesDiscovered:this.iceCandidatesDiscovered,candidatesReceivedFromPeer:this.iceCandidatesReceivedFromPeer})}onConnectionStateChange(){const e=this.connectionState=this.peerConnection.connectionState,t=this.id,n=this.conversationId,r=this.sessionType;if("connected"===e&&this.keepStateInSyncWithPeerConnection(),this.log("info","Connection state changed: ",{connectionState:e,sessionId:t,conversationId:n,sessionType:r}),this.interruptionStart)if("connected"===e){const e=(new Date).getTime()-this.interruptionStart.getTime();this.log("info","Connection was interrupted but was successfully recovered/connected",{sessionId:t,conversationId:n,sessionType:r,timeToRecover:e}),this.interruptionStart=void 0}else"failed"===e&&(this.log("info","Connection was interrupted and failed to recover, cleaning up",{sessionId:t,conversationId:n,sessionType:r}),this.state="ended",this.onSessionTerminate())}onIceCandidateError(e){const t=e;this.log("error","IceCandidateError",{errorCode:t.errorCode,errorText:t.errorText,url:t.url})}createIceCandidate(e,t){return new RTCIceCandidate({sdpMid:e,candidate:t})}async addRemoteIceCandidate(e){const t=e.match(/m=([^\s]+)/)[1],n=e.match(/a=([^\\\r]+)/)[1],r=this.createIceCandidate(t,n);await this.peerConnection.addIceCandidate(r)}onIceCandidate(e){var t,n;let r,i=null===(t=e.candidate)||void 0===t?void 0:t.candidate,s=null===(n=e.candidate)||void 0===n?void 0:n.sdpMid;if(e.candidate){if(!this.allowTCP&&"tcp"===e.candidate.protocol)return;if(!this.allowIPv6){const t=/.+udp [^ ]+ ([^ ]+).*typ host/.exec(e.candidate.candidate),n=/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/;if(t&&!t[1].match(n))return void this.log("debug","Filtering out IPv6 candidate",e.candidate.candidate)}this.log("debug","Processing ice candidate",e.candidate),this.log("info","Discovered ice candidate to send to peer",{type:e.candidate.type}),this.iceCandidatesDiscovered++,r=`m=${s} 9 RTP/AVP 0\r\na=${i}`}else r="a=end-of-candidates",this.emit("endOfCandidates");return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"iceCandidate",params:{sessionId:this.id,sdp:r}})}onSessionTerminate(e){this.peerConnection&&this.peerConnection.close(),this.logger.info("emitting sdp media-session (terminate)"),this.emit("terminated",{condition:e||"success"})}async addTrack(e,t){const n=this.peerConnection.getTransceivers().find(t=>{var n;return!t.sender.track&&(null===(n=t.receiver.track)||void 0===n?void 0:n.kind)===e.kind});if(n)return n.sender.replaceTrack(e);this.peerConnection.addTrack(e,t)}_setupDataChannel(){var e;this.dataChannel||(null===(e=this.peerConnection.remoteDescription)||void 0===e?void 0:e.sdp.includes("webrtc-datachannel"))&&(this.log("info","creating data channel"),this.dataChannel=this.peerConnection.createDataChannel("videoConferenceControl"),this.dataChannel.addEventListener("open",()=>{this.log("info","data channel opened")}),this.dataChannel.addEventListener("message",this._handleDataChannelMessage.bind(this)),this.dataChannel.addEventListener("close",()=>{this.log("info","closing data channel")}),this.dataChannel.addEventListener("error",e=>{this.log("error","Error occurred with the data channel",e)}))}_handleDataChannelMessage(e){try{const t=JSON.parse(e.data);this.emit("dataChannelMessage",t)}catch(e){this.log("error","Failed to parse data channel message",{error:e})}}async accept(){this.state="active";const e=await this.peerConnection.createAnswer();await this.peerConnection.setLocalDescription(e);const t={sdp:e.sdp,sessionId:this.id};return this.logger.info("sending sdp answer",t),this.sendGenesysWebrtc({jsonrpc:"2.0",method:"answer",params:t})}async mute(e,t){const n={sessionId:this.id,type:t};return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"mute",params:n})}async unmute(e,t){const n={sessionId:this.id,type:t};return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"unmute",params:n})}async removeTrack(){throw new Error("Not Implemented")}async hold(){throw new Error("Not Implemented")}async resume(){throw new Error("Not Implemented")}toString(){return{connectionState:this.connectionState,state:this.state,sessionType:this.sessionType,fromJid:this.fromJid,conversationId:this.conversationId,id:this.id,peerConnection:this.peerConnection}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.core=void 0;const r=n(4);(0,r.__exportStar)(n(101),t),(0,r.__exportStar)(n(102),t),(0,r.__exportStar)(n(103),t),(0,r.__exportStar)(n(104),t),(0,r.__exportStar)(n(105),t),(0,r.__exportStar)(n(106),t),(0,r.__exportStar)(n(107),t),(0,r.__exportStar)(n(108),t),(0,r.__exportStar)(n(109),t),(0,r.__exportStar)(n(110),t),(0,r.__exportStar)(n(111),t),(0,r.__exportStar)(n(113),t),(0,r.__exportStar)(n(114),t),(0,r.__exportStar)(n(115),t),(0,r.__exportStar)(n(116),t),(0,r.__exportStar)(n(117),t),(0,r.__exportStar)(n(118),t),(0,r.__exportStar)(n(119),t);const i=(0,r.__importDefault)(n(101)),s=(0,r.__importDefault)(n(102)),o=(0,r.__importDefault)(n(103)),a=(0,r.__importDefault)(n(104)),c=(0,r.__importDefault)(n(105)),u=(0,r.__importDefault)(n(106)),l=(0,r.__importDefault)(n(107)),d=(0,r.__importDefault)(n(108)),p=(0,r.__importDefault)(n(109)),h=(0,r.__importDefault)(n(110)),f=(0,r.__importDefault)(n(111)),m=(0,r.__importDefault)(n(113)),g=(0,r.__importDefault)(n(114)),y=(0,r.__importDefault)(n(115)),b=(0,r.__importDefault)(n(116)),v=(0,r.__importDefault)(n(117)),_=(0,r.__importDefault)(n(118)),S=(0,r.__importDefault)(n(119));t.core=function(e){e.use(d.default),e.use(u.default),e.use(o.default),e.use(c.default),e.use(p.default),e.use(_.default)},t.default=function(e){e.use(i.default),e.use(m.default),e.use(s.default),e.use(a.default),e.use(l.default),e.use(h.default),e.use(f.default),e.use(g.default),e.use(y.default),e.use(b.default),e.use(v.default),e.use(S.default)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"XRD",fields:{subject:(0,r.childText)(null,"Subject")},namespace:i.NS_XRD,path:"xrd"},{aliases:[{path:"xrd.links",multiple:!0}],element:"Link",fields:{href:(0,r.attribute)("href"),rel:(0,r.attribute)("rel"),type:(0,r.attribute)("type")},namespace:i.NS_XRD}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessengerExtension=void 0;const r=n(298),i=n(10),s=n(24);class o extends r.Emitter{constructor(e,t){super(),this.client=e,this.stanzaInstance=t}get bareJid(){return i.toBare(this.stanzaInstance.jid)}handleStanzaInstanceChange(e){this.stanzaInstance=e}isMediaMessage(e){return!!e.mediaMessage}handleMessage(e){if(!this.isMediaMessage(e))return;const t=e.from===this.stanzaInstance.jid,n=i.toBare(e.from)===this.bareJid;this.emit("mediaMessage",{...e,fromMyClient:t,fromMyUser:n})}async broadcastMessage(e){const t=s.v4();return e.id=t,e.from=this.stanzaInstance.jid,e.to||(e.to=this.bareJid),await this.stanzaInstance.send("message",e),t}get expose(){return{broadcastMessage:this.broadcastMessage.bind(this),on:this.on.bind(this),once:this.once.bind(this),off:this.off.bind(this),removeListener:this.removeListener.bind(this),addListener:this.addListener.bind(this)}}}t.MessengerExtension=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const r=n(21),i=n(222),s=n(299);n(257);const o=n(258),a=n(260),c=n(285),u=n(286),l=n(16),d=n(35),p=r.__importDefault(n(7)),h=n(287),f=n(66),m=r.__importDefault(n(297)),g=r.__importDefault(n(201)),y=n(85),b=n(64);let v={notifications:o.Notifications,webrtcSessions:a.WebrtcExtension,messenger:b.MessengerExtension};class _ extends p.default{constructor(e){super(),this.connected=!1,this.connecting=!1,this.hardReconnectRequired=!0,this.isGuest=!1,this.backgroundAssistantMode=!1,this.autoReconnect=!0,this.extensions=[],this.channelReuses=0,this.hasMadeInitialAttempt=!1,this.http=new d.HttpClient,this.reconnectOnNoLongerSubscribed=!1!==e.reconnectOnNoLongerSubscribed,this.useServerSidePings=!1!==e.useServerSidePings,this.config={host:e.host,apiHost:e.apiHost||e.host.replace("wss://streaming.",""),authToken:e.authToken,jwt:e.jwt,jid:e.jid,jidResource:e.jidResource,channelId:null,appName:e.appName,appVersion:e.appVersion,appId:e.appId,customHeaders:e.customHeaders},this.backgroundAssistantMode=this.checkIsBackgroundAssistant(),this.isGuest=!this.backgroundAssistantMode&&!e.authToken;let t=e.authToken||"",n=`https://api.${this.config.apiHost}/api/v2/diagnostics/trace`;this.backgroundAssistantMode&&(t=e.jwt,n+="/backgroundassistant"),this.logger=new s.Logger({accessToken:t,url:n,uploadDebounceTime:1e3,initializeServerLogging:!this.isGuest&&!e.optOutOfWebrtcStatsTelemetry,appVersion:_.version,appName:"streaming-client",logLevel:this.config.logLevel||"info",logger:e.logger||console,formatters:e.logFormatters,originAppName:e.appName,originAppVersion:e.appVersion,originAppId:e.appId,customHeaders:e.customHeaders}),this.connectionManager=new h.ConnectionManager(this.logger,this.config),Object.keys(v).forEach(t=>{const n=new v[t](this,e);this.extensions.push(n),n.tokenBucket||(n.tokenBucket=new i.TokenBucket(20,25,1e3),n.tokenBucket.content=25),"function"==typeof n.on&&n.on("send",this.handleSendEventFromExtension.bind(this,n)),this[t]=n.expose,this["_"+t]=n})}handleSendEventFromExtension(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.tokenBucket.removeTokens(1,()=>{const e=this.activeStanzaInstance;return e?!0===n?e.sendMessage(t):e.sendIQ(t):this.logger.warn("cannot send message, no active stanza client",{data:t,message:n},{skipServer:!0})})}checkIsBackgroundAssistant(){if(this.config.jwt){const e=l.parseJwt(this.config.jwt);return e&&"urn:purecloud:screenrecording"===e.iss}return!1}addInateEventHandlers(e){this.removeStanzaBoundEventHandlers(),this.boundStanzaDisconnect=this.handleStanzaDisconnectedEvent.bind(this,e),this.boundStanzaNoLongerSubscribed=this.handleNoLongerSubscribed.bind(this,e),this.boundStanzaDuplicateId=this.handleDuplicateId.bind(this,e),this.on("stanzaDisconnected",this.boundStanzaDisconnect),this.on("notify:no_longer_subscribed",this.boundStanzaNoLongerSubscribed),this.on("notify:duplicate_id",this.boundStanzaDuplicateId),this.extensions.forEach(t=>{"function"==typeof t.handleIq&&e.on("iq",t.handleIq.bind(t)),"function"==typeof t.handleMessage&&e.on("message",t.handleMessage.bind(t))})}removeStanzaBoundEventHandlers(){this.boundStanzaDisconnect&&(this.off("stanzaDisconnected",this.boundStanzaDisconnect),this.boundStanzaDisconnect=void 0),this.boundStanzaNoLongerSubscribed&&(this.off("notify:no_longer_subscribed",this.boundStanzaNoLongerSubscribed),this.boundStanzaNoLongerSubscribed=void 0),this.boundStanzaDuplicateId&&(this.off("notify:duplicate_id",this.boundStanzaDuplicateId),this.boundStanzaDuplicateId=void 0)}proxyStanzaEvents(e){var t=this;e.originalEmitter=e.emit,e.emit=function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];const o=e.originalEmitter(n,...i);return"connected"===n?o:("disconnected"===n&&(n="stanzaDisconnected"),t.emit(n,...i))}}async handleStanzaDisconnectedEvent(e){var t,n;if(this.logger.info("stanzaDisconnected event received",{stanzaInstanceId:e.id,channelId:e.channelId}),this.connected=!1,this.connecting=!1,null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.removeAllListeners("stanzaDisconnected"),this.removeAllListeners("notify:no_longer_subscribed"),e.originalEmitter&&(e.emit=e.originalEmitter),this.activeStanzaInstance=void 0,this.emit("disconnected",{reconnecting:this.autoReconnect}),this.autoReconnect)return this.connect({keepTryingOnFailure:!0})}handleNoLongerSubscribed(e){var t,n;this.logger.warn("noLongerSubscribed event received",{stanzaInstanceId:e.id,channelId:e.channelId}),null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.hardReconnectRequired=!0,this.reconnectOnNoLongerSubscribed||(this.autoReconnect=!1)}handleDuplicateId(e){var t,n;this.logger.warn("duplicate_id event received, forcing hard reconnect",{stanzaInstanceId:e.id,channelId:e.channelId}),null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.hardReconnectRequired=!0}async disconnect(){if(this.logger.info("streamingClient.disconnect was called"),this.activeStanzaInstance)return l.timeoutPromise(e=>(this.autoReconnect=!1,this.http.stopAllRetries(),this.activeStanzaInstance.disconnect().then(e)),5e3,"disconnecting streaming service")}getSessionStoreKey(){return"sc_connectionData_"+(this.config.appName||this.logger.clientId)}getConnectionData(){const e=sessionStorage.getItem(this.getSessionStoreKey()),t={currentDelayMs:0};if(e)try{return JSON.parse(e)}catch(e){return this.logger.warn("failed to parse streaming client connection data"),t}return t}setConnectionData(e){sessionStorage.setItem(this.getSessionStoreKey(),JSON.stringify(e))}increaseBackoff(){const e=this.getConnectionData(),t=Math.max(2*e.currentDelayMs,4e3),n={currentDelayMs:t,delayMsAfterNextReduction:t/2,nextDelayReductionTime:(new Date).getTime()+5*t,timeOfTotalReset:(new Date).getTime()+36e5};return this.setConnectionData(n),n}decreaseBackoff(e){const t=this.getConnectionData(),n=5*e,r={currentDelayMs:e,delayMsAfterNextReduction:e/2,nextDelayReductionTime:(new Date).getTime()+n,timeOfTotalReset:t.timeOfTotalReset};if(t.timeOfTotalReset&&t.timeOfTotalReset<(new Date).getTime()||e<2e3)return this.logger.debug("decreaseBackoff() called, but timeOfTotalReset has elasped or next delay is below 2s. Resetting backoff"),this.setConnectionData({currentDelayMs:0});this.setConnectionData(r),clearTimeout(this.backoffReductionTimer),this.logger.debug("Setting timer for next backoff reduction since we haven't reached total reset",{msUntilReduction:n,delayMsAfterNextReduction:r.delayMsAfterNextReduction}),this.backoffReductionTimer=setTimeout(()=>this.decreaseBackoff(r.delayMsAfterNextReduction),n)}getStartingDelay(e,t){const n=Math.max(e.currentDelayMs,2e3);return e.timeOfTotalReset&&e.timeOfTotalReset<(new Date).getTime()?2e3:Math.min(n,t)}async connect(e){var t;if(this.connecting){const e=new Error("Already trying to connect streaming client");return this.logger.warn(e)}this.connecting=!0;const n=(null==e?void 0:e.maxDelayBetweenConnectionAttempts)||9e4;let r=(null==e?void 0:e.maxConnectionAttempts)||1;(null==e?void 0:e.keepTryingOnFailure)&&(r=1/0),clearTimeout(this.backoffReductionTimer);const i=this.getConnectionData(),s=this.getStartingDelay(i,n),o=this.hasMadeInitialAttempt;this.hasMadeInitialAttempt=!0,i.currentDelayMs&&this.logger.debug("streamingClient.connect was called, but backoff is remembered",{currentDelayMs:i.currentDelayMs,delayingThisAttempt:o,clientId:this.logger.clientId,appName:this.config.appName});try{await f.backOff(async()=>{const e=this.getConnectionData();if(await this.makeConnectionAttempt(),e.nextDelayReductionTime){const t=e.nextDelayReductionTime-(new Date).getTime();this.logger.debug("Setting timer for next backoff reduction",{msUntilReduction:t,delayMsAfterNextReduction:e.delayMsAfterNextReduction}),this.backoffReductionTimer=setTimeout(()=>this.decreaseBackoff(e.delayMsAfterNextReduction||0),t)}},{jitter:"none",maxDelay:n,numOfAttempts:r,startingDelay:s,delayFirstAttempt:o,retry:this.backoffConnectRetryHandler.bind(this,{maxConnectionAttempts:r})})}catch(e){let n=e;if(e){if("AxiosError"===e.name){const r=e,i=r.config||{url:void 0,method:void 0};n={config:{url:i.url,method:i.method},status:null===(t=r.response)||void 0===t?void 0:t.status,code:r.code,name:r.name,message:r.message}}}else n=new Error("Streaming client connection attempted received and undefined error");if(this.logger.error("Failed to connect streaming client",{error:n}),!e)throw n;throw e}}async backoffConnectRetryHandler(e,t,n){var r,i,s,o,a;if(n>=e.maxConnectionAttempts)return!1;const c={connectionAttempt:n,error:t};if(t){if("AxiosError"===t.name){const e=t,n=e.config||{url:void 0,method:void 0};let s={config:{url:n.url,method:n.method},status:null===(r=e.response)||void 0===r?void 0:r.status,code:e.code,name:e.name,message:e.message};if(c.error=s,[401,403].includes((null===(i=t.response)||void 0===i?void 0:i.status)||0))return this.logger.error("Streaming client received an error that it can't recover from and will not attempt to reconnect",c),!1}}else c.error=new Error("streaming client backoff handler received undefined error");if(t instanceof g.default&&(this.logger.info("hardReconnectRequired set to true due to sasl error"),this.hardReconnectRequired=!0,Object.assign(c,{channelId:t.channelId,stanzaInstanceId:t.stanzaInstanceId})),t instanceof y.TimeoutError){c.error=t.message;const e=t.details;e&&(c.details=e)}if(null==t?void 0:t.response){const e=(null===(s=t.response.headers)||void 0===s?void 0:s["retry-after"])||(null===(a=(o=t.response).getResponseHeader)||void 0===a?void 0:a.call(o,"retry-after"));if(e){let n=1e3*parseInt(e,10);return c.retryDelay=n,this.logger.error("Failed streaming client connection attempt, respecting retry-after header and will retry afterwards.",c,{skipServer:t instanceof m.default}),await l.delay(n),this.logger.debug("finished waiting for retry-after"),!0}}const u=this.increaseBackoff();return this.logger.error("Failed streaming client connection attempt, retrying",c,{skipServer:t instanceof m.default}),this.logger.debug("debug: retry info",{expectedRetryInMs:u.currentDelayMs,appName:this.config.appName,clientId:this.logger.clientId}),!0}async makeConnectionAttempt(){var e,t;if(!navigator.onLine)throw new m.default("Browser is offline, skipping connection attempt");let n,r=this.connecting;try{await this.prepareForConnect(),n=await this.connectionManager.getNewStanzaConnection(),this.connected=!0,this.connecting=!1,this.addInateEventHandlers(n),this.proxyStanzaEvents(n);for(const e of this.extensions)e.configureNewStanzaInstance&&await e.configureNewStanzaInstance(n);for(const e of this.extensions)e.handleStanzaInstanceChange(n);this.activeStanzaInstance=n,await this.setupConnectionMonitoring(n),this.emit("connected")}catch(i){throw n&&(this.logger.error("Error occurred in connection attempt, but after websocket connected. Cleaning up connection so backoff is respected",{stanzaInstanceId:n.id,channelId:n.channelId}),this.removeStanzaBoundEventHandlers(),null===(e=n.pinger)||void 0===e||e.stop(),null===(t=n.serverMonitor)||void 0===t||t.stop(),await n.disconnect(),this.connected=!1,this.connecting=r),i}}async setupConnectionMonitoring(e){const t=t=>{const n=t+", falling back to client-side pinging";this.logger.warn(n,{stanzaInstanceId:e.id,channelId:e.channelId}),e.pinger=new c.Ping(this,e)};if(this.useServerSidePings)try{await e.subscribeToNode(this._notifications.pubsubHost,"enable.server.side.pings"),e.serverMonitor=new u.ServerMonitor(this,e)}catch(e){t("failed to establish server-side pinging")}else t("client configured to not use server-side pinging")}async prepareForConnect(){if(this.config.jwt)return this.hardReconnectRequired=!1,this.connectionManager.setConfig(this.config);if(this.hardReconnectRequired||(this.channelReuses++,this.channelReuses>=10&&(this.logger.warn("Forcing a hard reconnect due to max channel reuses",{channelId:this.config.channelId,channelReuses:this.channelReuses}),this.channelReuses=0,this.hardReconnectRequired=!0)),this.hardReconnectRequired){let e;if(this.config.jid)e=Promise.resolve(this.config.jid);else{const t={method:"get",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger,customHeaders:this.config.customHeaders};e=this.http.requestApi("users/me",t).then(e=>e.data.chat.jabberId)}const t={method:"post",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger,customHeaders:this.config.customHeaders},n=this.http.requestApi("notifications/channels?connectionType=streaming",t).then(e=>e.data.id),[r,i]=await Promise.all([e,n]);this.config.jid=r,this.config.channelId=i,this.autoReconnect=!0,this.logger.info("attempting to connect streaming client on channel",{channelId:i}),this.connectionManager.setConfig(this.config),this.hardReconnectRequired=!1}}stopServerLogging(){this.logger.sendAllLogsInstantly(),this.logger.stopServerLogging()}startServerLogging(){this.logger.startServerLogging()}setAccessToken(e){this.config.authToken=e,this.logger.setAccessToken(e)}static extend(e,t){if(v[e])throw new Error("Cannot register already existing namespace "+e);v[e]=t}get version(){return _.version}static get version(){return"17.2.7"}}t.Client=_},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(225),o=n(226);t.backOff=function(e,t){return void 0===t&&(t={}),r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return n=s.getSanitizedOptions(t),[4,new a(e,n).execute()];case 1:return[2,r.sent()]}}))}))};var a=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:if(this.attemptLimitReached)return[3,7];t.label=1;case 1:return t.trys.push([1,4,,6]),[4,this.applyDelay()];case 2:return t.sent(),[4,this.request()];case 3:return[2,t.sent()];case 4:return e=t.sent(),this.attemptNumber++,[4,this.options.retry(e,this.attemptNumber)];case 5:if(!t.sent()||this.attemptLimitReached)throw e;return[3,6];case 6:return[3,0];case 7:throw new Error("Something went wrong.")}}))}))},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,o.DelayFactory(this.options,this.attemptNumber).apply()];case 1:return e.sent(),[2]}}))}))},e}()},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"hasBrowserEnv",(function(){return y})),n.d(r,"hasStandardBrowserWebWorkerEnv",(function(){return _})),n.d(r,"hasStandardBrowserEnv",(function(){return b})),n.d(r,"origin",(function(){return S}));var i=n(0),s=n(38),o=n(19);function a(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function c(e,t){this._pairs=[],e&&Object(o.a)(e,this,t)}const u=c.prototype;u.append=function(e,t){this._pairs.push([e,t])},u.toString=function(e){const t=e?function(t){return e.call(this,t,a)}:a;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var l=c;function d(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p(e,t,n){if(!t)return e;const r=n&&n.encode||d,s=n&&n.serialize;let o;if(o=s?s(t,n):i.a.isURLSearchParams(t)?t.toString():new l(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var h=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){i.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},f=n(3),m={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:l,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const y="undefined"!=typeof window&&"undefined"!=typeof document,b=(v="undefined"!=typeof navigator&&navigator.product,y&&["ReactNative","NativeScript","NS"].indexOf(v)<0);var v;const _="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,S=y&&window.location.href||"http://localhost";var w={...r,...g};var T=function(e){function t(e,n,r,s){let o=e[s++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),c=s>=e.length;if(o=!o&&i.a.isArray(r)?r.length:o,c)return i.a.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&i.a.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],s)&&i.a.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}(r[o])),!a}if(i.a.isFormData(e)&&i.a.isFunction(e.entries)){const n={};return i.a.forEachEntry(e,(e,r)=>{t(function(e){return i.a.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null};const I={transitional:m,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,s=i.a.isObject(e);s&&i.a.isHTMLForm(e)&&(e=new FormData(e));if(i.a.isFormData(e))return r?JSON.stringify(T(e)):e;if(i.a.isArrayBuffer(e)||i.a.isBuffer(e)||i.a.isStream(e)||i.a.isFile(e)||i.a.isBlob(e)||i.a.isReadableStream(e))return e;if(i.a.isArrayBufferView(e))return e.buffer;if(i.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Object(o.a)(e,new w.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return w.isNode&&i.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=i.a.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(o.a)(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),function(e,t,n){if(i.a.isString(e))try{return(t||JSON.parse)(e),i.a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||I.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(i.a.isResponse(e)||i.a.isReadableStream(e))return e;if(e&&i.a.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw f.a.from(e,f.a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:w.classes.FormData,Blob:w.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};i.a.forEach(["delete","get","head","post","put","patch"],e=>{I.headers[e]={}});var A=I;const N=i.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const E=Symbol("internals");function x(e){return e&&String(e).trim().toLowerCase()}function R(e){return!1===e||null==e?e:i.a.isArray(e)?e.map(R):String(e)}function C(e,t,n,r,s){return i.a.isFunction(r)?r.call(this,t,n):(s&&(t=n),i.a.isString(t)?i.a.isString(r)?-1!==t.indexOf(r):i.a.isRegExp(r)?r.test(t):void 0:void 0)}class O{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function s(e,t,n){const s=x(t);if(!s)throw new Error("header name must be a non-empty string");const o=i.a.findKey(r,s);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=R(e))}const o=(e,t)=>i.a.forEach(e,(e,n)=>s(e,n,t));if(i.a.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(i.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&N[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(i.a.isHeaders(e))for(const[t,r]of e.entries())s(r,t,n);else null!=e&&s(t,e,n);return this}get(e,t){if(e=x(e)){const n=i.a.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(i.a.isFunction(t))return t.call(this,e,n);if(i.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=x(e)){const n=i.a.findKey(this,e);return!(!n||void 0===this[n]||t&&!C(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function s(e){if(e=x(e)){const s=i.a.findKey(n,e);!s||t&&!C(0,n[s],s,t)||(delete n[s],r=!0)}}return i.a.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!C(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return i.a.forEach(this,(r,s)=>{const o=i.a.findKey(n,s);if(o)return t[o]=R(r),void delete t[s];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(s):String(s).trim();a!==s&&delete t[s],t[a]=R(r),n[a]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return i.a.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&i.a.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let[t,n]=e;return t+": "+n}).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[E]=this[E]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=x(e);t[r]||(!function(e,t){const n=i.a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return i.a.isArray(e)?e.forEach(r):r(e),this}}O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),i.a.reduceDescriptors(O.prototype,(e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}}),i.a.freezeMethods(O);var P=O;function k(e,t){const n=this||A,r=t||n,s=P.from(r.headers);let o=r.data;return i.a.forEach(e,(function(e){o=e.call(n,o,s.normalize(),t?t.status:void 0)})),s.normalize(),o}function j(e){return!(!e||!e.__CANCEL__)}function M(e,t,n){f.a.call(this,null==e?"canceled":e,f.a.ERR_CANCELED,t,n),this.name="CanceledError"}i.a.inherits(M,f.a,{__CANCEL__:!0});var L=M,D=n(39);function B(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new f.a("Request failed with status code "+n.status,[f.a.ERR_BAD_REQUEST,f.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var F=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,s=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[o];i||(i=c),n[s]=a,r[s]=c;let l=o,d=0;for(;l!==s;)d+=n[l++],l%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}};var q=function(e,t){let n,r,i=0,s=1e3/t;const o=function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();i=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-i;for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];t>=s?o(c,e):(n=c,r||(r=setTimeout(()=>{r=null,o(n)},s-t)))},()=>n&&o(n)]};const U=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const i=F(50,250);return q(n=>{const s=n.loaded,o=n.lengthComputable?n.total:void 0,a=s-r,c=i(a);r=s;e({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&s<=o?(o-s)/c:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},J=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},z=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i.a.asap(()=>e(...n))};var G=w.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=i.a.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},H=w.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const a=[e+"="+encodeURIComponent(t)];i.a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.a.isString(r)&&a.push("path="+r),i.a.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function V(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const W=e=>e instanceof P?{...e}:e;function $(e,t){t=t||{};const n={};function r(e,t,n){return i.a.isPlainObject(e)&&i.a.isPlainObject(t)?i.a.merge.call({caseless:n},e,t):i.a.isPlainObject(t)?i.a.merge({},t):i.a.isArray(t)?t.slice():t}function s(e,t,n){return i.a.isUndefined(t)?i.a.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!i.a.isUndefined(t))return r(void 0,t)}function a(e,t){return i.a.isUndefined(t)?i.a.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function c(n,i,s){return s in t?r(n,i):s in e?r(void 0,n):void 0}const u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(e,t)=>s(W(e),W(t),!0)};return i.a.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=u[r]||s,a=o(e[r],t[r],r);i.a.isUndefined(a)&&o!==c||(n[r]=a)})),n}var Q=e=>{const t=$({},e);let n,{data:r,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:a,headers:c,auth:u}=t;if(t.headers=c=P.from(c),t.url=p(V(t.baseURL,t.url),e.params,e.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),i.a.isFormData(r))if(w.hasStandardBrowserEnv||w.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(!1!==(n=c.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];c.setContentType([e||"multipart/form-data",...t].join("; "))}if(w.hasStandardBrowserEnv&&(s&&i.a.isFunction(s)&&(s=s(t)),s||!1!==s&&G(t.url))){const e=o&&a&&H.read(a);e&&c.set(o,e)}return t};var K="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Q(e);let s=r.data;const o=P.from(r.headers).normalize();let a,c,u,l,d,{responseType:p,onUploadProgress:h,onDownloadProgress:g}=r;function y(){l&&l(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let b=new XMLHttpRequest;function v(){if(!b)return;const r=P.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());B((function(e){t(e),y()}),(function(e){n(e),y()}),{data:p&&"text"!==p&&"json"!==p?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout,"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(v)},b.onabort=function(){b&&(n(new f.a("Request aborted",f.a.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f.a("Network Error",f.a.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||m;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new f.a(t,i.clarifyTimeoutError?f.a.ETIMEDOUT:f.a.ECONNABORTED,e,b)),b=null},void 0===s&&o.setContentType(null),"setRequestHeader"in b&&i.a.forEach(o.toJSON(),(function(e,t){b.setRequestHeader(t,e)})),i.a.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),p&&"json"!==p&&(b.responseType=r.responseType),g&&([u,d]=U(g,!0),b.addEventListener("progress",u)),h&&b.upload&&([c,l]=U(h),b.upload.addEventListener("progress",c),b.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=t=>{b&&(n(!t||t.type?new L(null,e,b):t),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const _=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);_&&-1===w.protocols.indexOf(_)?n(new f.a("Unsupported protocol "+_+":",f.a.ERR_BAD_REQUEST,e)):b.send(s||null)}))};n(6);var Y=(e,t)=>{let n,r=new AbortController;const i=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof f.a?t:new L(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{i(new f.a(`timeout ${t} of ms exceeded`,f.a.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",i):e.unsubscribe(i))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",i));const{signal:a}=r;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]};const X=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},Z=(e,t,n,r,i)=>{const s=async function*(e,t,n){for await(const r of e)yield*X(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,i);let o,a=0,c=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return c(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw c(e),e}},cancel:e=>(c(e),s.return())},{highWaterMark:2})},ee="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,te=ee&&"function"==typeof ReadableStream,ne=ee&&("function"==typeof TextEncoder?(re=new TextEncoder,e=>re.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var re;const ie=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(e){return!1}},se=te&&ie(()=>{let e=!1;const t=new Request(w.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),oe=te&&ie(()=>i.a.isReadableStream(new Response("").body)),ae={stream:oe&&(e=>e.body)};var ce;ee&&(ce=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ae[e]&&(ae[e]=i.a.isFunction(ce[e])?t=>t[e]():(t,n)=>{throw new f.a(`Response type '${e}' is not supported`,f.a.ERR_NOT_SUPPORT,n)})}));const ue=async(e,t)=>{const n=i.a.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:i.a.isBlob(e)?e.size:i.a.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:i.a.isArrayBufferView(e)||i.a.isArrayBuffer(e)?e.byteLength:(i.a.isURLSearchParams(e)&&(e+=""),i.a.isString(e)?(await ne(e)).byteLength:void 0))(t):n};var le=ee&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:c,onUploadProgress:u,responseType:l,headers:d,withCredentials:p="same-origin",fetchOptions:h}=Q(e);l=l?(l+"").toLowerCase():"text";let m,g,[y,b]=s||o||a?Y([s,o],a):[];const v=()=>{!m&&setTimeout(()=>{y&&y.unsubscribe()}),m=!0};let _;try{if(u&&se&&"get"!==n&&"head"!==n&&0!==(_=await ue(d,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(i.a.isFormData(r)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=J(_,U(z(u)));r=Z(n.body,65536,e,t,ne)}}i.a.isString(p)||(p=p?"include":"omit"),g=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:p});let s=await fetch(g);const o=oe&&("stream"===l||"response"===l);if(oe&&(c||o)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});const t=i.a.toFiniteNumber(s.headers.get("content-length")),[n,r]=c&&J(t,U(z(c),!0))||[];s=new Response(Z(s.body,65536,n,()=>{r&&r(),o&&v()},ne),e)}l=l||"text";let a=await ae[i.a.findKey(ae,l)||"text"](s,e);return!o&&v(),b&&b(),await new Promise((t,n)=>{B(t,n,{data:a,headers:P.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:g})})}catch(t){if(v(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new f.a("Network Error",f.a.ERR_NETWORK,e,g),{cause:t.cause||t});throw f.a.from(t,t&&t.code,e,g)}});const de={http:D.a,xhr:K,fetch:le};i.a.forEach(de,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const pe=e=>"- "+e,he=e=>i.a.isFunction(e)||null===e||!1===e;var fe=e=>{e=i.a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!he(n)&&(r=de[(t=String(n)).toLowerCase()],void 0===r))throw new f.a(`Unknown adapter '${t}'`);if(r)break;s[t||"#"+i]=r}if(!r){const e=Object.entries(s).map(e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")});let n=t?e.length>1?"since :\n"+e.map(pe).join("\n"):" "+pe(e[0]):"as no adapter specified";throw new f.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function me(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new L(null,e)}function ge(e){me(e),e.headers=P.from(e.headers),e.data=k.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fe(e.adapter||A.adapter)(e).then((function(t){return me(e),t.data=k.call(e,e.transformResponse,t),t.headers=P.from(t.headers),t}),(function(t){return j(t)||(me(e),t&&t.response&&(t.response.data=k.call(e,e.transformResponse,t.response),t.response.headers=P.from(t.response.headers))),Promise.reject(t)}))}const ye={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ye[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const be={};ye.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,s)=>{if(!1===e)throw new f.a(r(i," has been removed"+(t?" in "+t:"")),f.a.ERR_DEPRECATED);return t&&!be[i]&&(be[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}};var ve={assertOptions:function(e,t,n){if("object"!=typeof e)throw new f.a("options must be an object",f.a.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const t=e[s],n=void 0===t||o(t,s,e);if(!0!==n)throw new f.a("option "+s+" must be "+n,f.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new f.a("Unknown option "+s,f.a.ERR_BAD_OPTION)}},validators:ye};const _e=ve.validators;class Se{constructor(e){this.defaults=e,this.interceptors={request:new h,response:new h}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=$(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:s}=t;void 0!==n&&ve.assertOptions(n,{silentJSONParsing:_e.transitional(_e.boolean),forcedJSONParsing:_e.transitional(_e.boolean),clarifyTimeoutError:_e.transitional(_e.boolean)},!1),null!=r&&(i.a.isFunction(r)?t.paramsSerializer={serialize:r}:ve.assertOptions(r,{encode:_e.function,serialize:_e.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&i.a.merge(s.common,s[t.method]);s&&i.a.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=P.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let l;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let d,p=0;if(!c){const e=[ge.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),d=e.length,l=Promise.resolve(t);p<d;)l=l.then(e[p++],e[p++]);return l}d=a.length;let h=t;for(p=0;p<d;){const e=a[p++],t=a[p++];try{h=e(h)}catch(e){t.call(this,e);break}}try{l=ge.call(this,h)}catch(e){return Promise.reject(e)}for(p=0,d=u.length;p<d;)l=l.then(u[p++],u[p++]);return l}getUri(e){return p(V((e=$(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}i.a.forEach(["delete","get","head","options"],(function(e){Se.prototype[e]=function(t,n){return this.request($(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.a.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request($(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Se.prototype[e]=t(),Se.prototype[e+"Form"]=t(!0)}));var we=Se;class Te{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new L(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Te((function(t){e=t})),cancel:e}}}var Ie=Te;const Ae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ae).forEach(e=>{let[t,n]=e;Ae[n]=t});var Ne=Ae;const Ee=function e(t){const n=new we(t),r=Object(s.a)(we.prototype.request,n);return i.a.extend(r,we.prototype,n,{allOwnKeys:!0}),i.a.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e($(t,n))},r}(A);Ee.Axios=we,Ee.CanceledError=L,Ee.CancelToken=Ie,Ee.isCancel=j,Ee.VERSION="1.7.4",Ee.toFormData=o.a,Ee.AxiosError=f.a,Ee.Cancel=Ee.CanceledError,Ee.all=function(e){return Promise.all(e)},Ee.spread=function(e){return function(t){return e.apply(null,t)}},Ee.isAxiosError=function(e){return i.a.isObject(e)&&!0===e.isAxiosError},Ee.mergeConfig=$,Ee.AxiosHeaders=P,Ee.formToJSON=e=>T(i.a.isHTMLForm(e)?new FormData(e):e),Ee.getAdapter=fe,Ee.HttpStatusCode=Ne,Ee.default=Ee;t.a=Ee},function(e,t,n){var r=n(211),i=n(69);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(8),i=n(42),s=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=s},function(e,t,n){var r=n(25),i=n(14),s=n(71);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(8),i=n(20),s=r.document,o=i(s)&&i(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(14);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(8),i=n(26),s=n(15),o=n(42),a=n(76),c=n(213),u=c.get,l=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||i(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==r?(c?!p&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||a(this)}))},function(e,t,n){var r=n(69),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(68),i=n(45),s=r("keys");e.exports=function(e){return s[e]||(s[e]=i(e))}},function(e,t){e.exports={}},function(e,t,n){var r=n(80);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(47),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){(function(t){var n=function(e,t,n,r){if(this.bucketSize=e,this.tokensPerInterval=t,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw new Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=r,this.content=0,this.lastDrip=+new Date};n.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(e,n){var r=this;return this.bucketSize?e>this.bucketSize?(t.nextTick(n.bind(null,"Requested tokens "+e+" exceeds bucket size "+this.bucketSize,null)),!1):(this.drip(),e>this.content?i():this.parentBucket?this.parentBucket.removeTokens(e,(function(t,s){return t?n(t,null):e>r.content?i():(r.content-=e,void n(null,Math.min(s,r.content)))})):(this.content-=e,t.nextTick(n.bind(null,null,this.content)),!0)):(t.nextTick(n.bind(null,null,e,Number.POSITIVE_INFINITY)),!0);function i(){var t=Math.ceil((e-r.content)*(r.interval/r.tokensPerInterval));return setTimeout((function(){r.removeTokens(e,n)}),t),!1}},tryRemoveTokens:function(e){return!this.bucketSize||!(e>this.bucketSize)&&(this.drip(),!(e>this.content)&&(!(this.parentBucket&&!this.parentBucket.tryRemoveTokens(e))&&(this.content-=e,!0)))},drip:function(){if(this.tokensPerInterval){var e=+new Date,t=Math.max(e-this.lastDrip,0);this.lastDrip=e;var n=t*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}else this.content=this.bucketSize}},e.exports=n}).call(this,n(22))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(228),i=function(){function e(e){this.options=e,this.attempt=0}return e.prototype.apply=function(){var e=this;return new Promise((function(t){return setTimeout(t,e.jitteredDelay)}))},e.prototype.setAttemptNumber=function(e){this.attempt=e},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){return r.JitterFactory(this.options)(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var e=this.options.startingDelay,t=this.options.timeMultiple,n=this.numOfDelayedAttempts,r=e*Math.pow(t,n);return Math.min(r,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();t.Delay=i},function(e,t,n){var r=n(25),i=n(234),s=n(73),o=n(48),a=n(72),c=n(15),u=n(70),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return s(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=void 0;class r extends Error{constructor(e){super(e)}}t.TimeoutError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saslprep=t.resourceprep=t.nodeprep=t.NodePrepProhibited=t.nameprep=t.prepare=t.D2=t.D1=t.C9=t.C8=t.C7=t.C6=t.C5=t.C4=t.C3=t.C22=t.C21=t.C12=t.C11=t.B3=t.B2=t.B1=t.A1=t.Table=void 0;const r=(0,n(4).__importDefault)(n(50)),i=n(262);class s{constructor(e,t){this.singles=new Set,this.ranges=[],this.mappings=new Map;const n=i.TABLE_DATA[e];this.name=e,n?(n.s&&(this.singles=new Set(n.s.split("|").map(e=>parseInt(e,32)))),n.r&&(this.ranges=n.r.split("|").map(e=>{const[t,n]=e.split(":");return[parseInt(t,32),parseInt(n,32)]})),n.m&&(this.mappings=new Map(n.m.split("|").map(e=>{const[t,n]=e.split(":"),r=n.split(";").map(e=>parseInt(e,32));return[parseInt(t,32),r]})))):t&&(this.singles=new Set(t))}contains(e){if(this.singles.has(e))return!0;let t=0,n=this.ranges.length-1;for(;t<=n;){const r=Math.floor((t+n)/2),i=this.ranges[r];if(e<i[0])n=r-1;else{if(!(e>i[1]))return!0;t=r+1}}return!1}hasMapping(e){return this.mappings.has(e)||this.contains(e)}map(e){return this.contains(e)&&!this.mappings.has(e)?String.fromCodePoint(e).toLowerCase().codePointAt(0):this.mappings.get(e)||null}}function o(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const s=r.default.ucs2.decode(i);let o=[];for(const t of s){if(!n&&e.unassigned.contains(t))throw new Error("Unassigned code point: x"+t.toString(16));let r=!1;for(const n of e.mappings){if(!n.hasMapping(t))continue;r=!0;const e=n.map(t);e&&(Array.isArray(e)?o=o.concat(e):o.push(e))}r||o.push(t)}let a=o;if(e.normalize){const e=r.default.ucs2.encode(o).normalize("NFKC");a=r.default.ucs2.decode(e)}let c=!1,u=!1;for(const r of a){for(const t of e.prohibited)if(t.contains(r))throw new Error("Prohibited code point: x"+r.toString(16));if(!n&&e.unassigned.contains(r))throw new Error("Prohibited code point: x"+r.toString(16));e.bidirectional&&(c=c||t.D1.contains(r),u=u||t.D2.contains(r))}if(e.bidirectional){if(c&&u)throw new Error("String contained both LCat and RandALCat code points");if(c&&(!t.D1.contains(a[0])||!t.D1.contains(a[a.length-1])))throw new Error("String containing RandALCat code points must start and end with RandALCat code points")}return r.default.ucs2.encode(a)}t.Table=s,t.A1=new s("A.1"),t.B1=new s("B.1"),t.B2=new s("B.2"),t.B3=new s("B.3"),t.C11=new s("C.1.1"),t.C12=new s("C.1.2"),t.C21=new s("C.2.1"),t.C22=new s("C.2.2"),t.C3=new s("C.3"),t.C4=new s("C.4"),t.C5=new s("C.5"),t.C6=new s("C.6"),t.C7=new s("C.7"),t.C8=new s("C.8"),t.C9=new s("C.9"),t.D1=new s("D.1"),t.D2=new s("D.2"),t.B1.map=()=>null,t.C11.contains=e=>32===e,t.C12.map=e=>t.C12.contains(e)?32:null,t.prepare=o;const a={bidirectional:!0,mappings:[t.B1,t.B2],normalize:!0,prohibited:[t.C12,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9],unassigned:t.A1};t.nameprep=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(a,t,e)},t.NodePrepProhibited=new s("NodePrepProhibited",[34,38,39,47,58,60,62,64]);const c={bidirectional:!0,mappings:[t.B1,t.B2],normalize:!0,prohibited:[t.C11,t.C12,t.C21,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9,t.NodePrepProhibited],unassigned:t.A1};t.nodeprep=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(c,t,e)};const u={bidirectional:!0,mappings:[t.B1],normalize:!0,prohibited:[t.C12,t.C21,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9],unassigned:t.A1};t.resourceprep=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(u,t,e)};const l={bidirectional:!0,mappings:[t.C12,t.B1],normalize:!0,prohibited:[t.C12,t.C21,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9],unassigned:t.A1};t.saslprep=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o(l,t,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(52);t.default=class{constructor(){this.parents=new Set,this.placeholder=!1,this.typeField="",this.versionField="",this.defaultType="",this.defaultVersion="",this.languageField="lang",this.typeValues=new Map,this.typeOrders=new Map,this.importers=new Map,this.exporters=new Map,this.children=new Map,this.childrenIndex=new Map,this.implicitChildren=new Set,this.contexts=new Map}addChild(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const s={multiple:n||!1,name:e,selector:r,translator:t},o=this.children.get(e);if(!o){s.translator.parents.add(this),this.children.set(e,s);for(const[n]of t.importers)this.implicitChildren.has(n)||this.childrenIndex.set(n,e);return void(i&&this.implicitChildren.add(i))}const a=o.translator;o.multiple=n,r&&o.selector&&r!==o.selector&&(o.selector=void 0);for(const[n,r]of t.importers){const[i,s]=(a.typeValues.get(n)||"").split("__v__");a.updateDefinition({contexts:t.contexts,element:r.element,exporterOrdering:new Map,exporters:new Map,importerOrdering:r.fieldOrders,importers:r.fields,namespace:r.namespace,optionalNamespaces:new Map,type:i,version:s}),this.implicitChildren.has(n)||this.childrenIndex.set(n,e)}for(const[e,n]of t.exporters){const[r,i]=e.split("__v__");a.updateDefinition({contexts:t.contexts,element:n.element,exporterOrdering:n.fieldOrders,exporters:n.fields,importerOrdering:new Map,importers:new Map,namespace:n.namespace,optionalNamespaces:n.optionalNamespaces,type:r,version:i})}}addContext(e,t,n,r,i,s){t&&(e=`${e}[${t}]`);let o=this.contexts.get(e);o||(o={typeField:"",versionField:"",typeValues:new Map}),s&&(o.impliedType=i),o.typeField=n||"",o.typeValues.set(r,i),this.contexts.set(e,o)}getChild(e){const t=this.children.get(e);if(t)return t.translator}getImportKey(e){return this.childrenIndex.get(`{${e.getNamespace()}}${e.getName()}`)}updateDefinition(e){const t=`{${e.namespace}}${e.element}`,n=e.type||this.defaultType,r=e.version||this.defaultVersion,i=r?`${n}__v__${r}`:n,s=this.importers.get(t)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace};for(const[t,n]of e.importers)s.fields.set(t,n);for(const[t,n]of e.importerOrdering)s.fieldOrders.set(t,n);this.importers.set(t,s);const o=this.exporters.get(i)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace,optionalNamespaces:e.optionalNamespaces};for(const[t,n]of e.exporters)o.fields.set(t,n);for(const[t,n]of e.exporterOrdering)o.fieldOrders.set(t,n);for(const[t,n]of e.optionalNamespaces)o.optionalNamespaces.set(t,n);this.exporters.set(i,o);for(const[t,n]of e.contexts){const e=this.contexts.get(t)||{impliedType:void 0,typeField:n.typeField,versionField:n.versionField,typeValues:new Map};e.typeField||(e.typeField=n.typeField),e.versionField||(e.versionField=n.versionField),e.impliedType||(e.impliedType=n.impliedType);for(const[t,r]of n.typeValues)e.typeValues.set(t,r);this.contexts.set(t,e)}if(e.type)this.typeValues.set(t,i),e.typeOrder&&e.type&&this.typeOrders.set(e.type,e.typeOrder);else if(this.typeField&&!e.type){for(const[,t]of this.importers){for(const[n,r]of e.importers)t.fields.set(n,r);for(const[n,r]of e.importerOrdering)t.fieldOrders.set(n,r)}for(const[,t]of this.exporters){for(const[n,r]of e.exporters)t.fields.set(n,r);for(const[n,r]of e.exporterOrdering)t.fieldOrders.set(n,r)}}}replaceWith(e){for(const[t,n]of this.children)e.children.set(t,n);for(const[t,n]of this.childrenIndex)e.childrenIndex.set(t,n);for(const[t,n]of this.contexts)e.contexts.set(t,n);for(const t of this.implicitChildren)e.implicitChildren.add(t);for(const t of this.parents)for(const n of t.children.values())n.translator===this&&(n.translator=e);this.parents=new Set}import(e,t){const n=`{${e.getNamespace()}}${e.getName()}`,r={},i=this.importers.get(n);if(!i)return;const s=this.typeValues.get(n)||"",[o,a]=s.split("__v__"),c=t.path||"";let u;if(t.pathSelector&&(u=this.contexts.get(`${c}[${t.pathSelector}]`)),u||(u=this.contexts.get(c)),u){if(!u.impliedType){const e=u.typeValues.get(n)||"";e&&(r[u.typeField]=e)}}else this.typeField&&o&&o!==this.defaultType&&(r[this.typeField]=o);this.versionField&&a&&a!==this.defaultVersion&&(r[this.versionField]=a);const l={...t,data:r,importer:i,lang:(e.getAttribute("xml:lang")||t.lang||"").toLowerCase(),pathSelector:o,translator:this},d=[...i.fieldOrders.entries()].sort((e,t)=>e[1]>t[1]?-1:e[1]<t[1]?1:0),p=d.filter(e=>e[1]>=0),h=d.filter(e=>e[1]<0);for(const[n]of p){const s=i.fields.get(n);l.path=`${t.path}.${n}`;const o=s(e,l);null!=o&&(r[n]=o)}for(const n of e.children){if("string"==typeof n)continue;const e=`{${n.getNamespace()}}${n.getName()}`,i=this.childrenIndex.get(e);if(!i)continue;l.path=`${t.path}.${i}`;const{translator:s,multiple:a,selector:c}=this.children.get(i);if(!c||c===o){const e=s.import(n,l);void 0!==e&&(a?(r[i]||(r[i]=[]),r[i].push(e)):r[i]?r[i]=s.resolveCollision(r[i],e):r[i]=e)}}for(const[n]of h){const s=i.fields.get(n);l.path=`${t.path}.${n}`;const o=s(e,l);null!=o&&(r[n]=o)}return r}export(e,t){if(!e)return;let n=this.defaultType,i=this.defaultVersion;const s=t.path||"";let o;t.pathSelector&&(o=this.contexts.get(`${s}[${t.pathSelector}]`)),o||(o=this.contexts.get(s)),o?n=o.impliedType||e[o.typeField]||this.defaultType:this.typeField&&(n=e[this.typeField]||this.defaultType),this.versionField&&(i=e[this.versionField]||this.defaultVersion);const a=i?`${n}__v__${i}`:n,c=this.exporters.get(a);if(!c)return;const u=(0,r.createElement)(c.namespace,c.element,t.namespace,t.element);t.element&&(u.parent=t.element);for(const[e,t]of c.optionalNamespaces)u.addOptionalNamespace(e,t);const l={...t,data:e,element:u,exporter:c,lang:(e[this.languageField]||t.lang||"").toLowerCase(),namespace:u.getDefaultNamespace(),pathSelector:n,translator:this},d=c.fields.get(this.languageField);d&&d(u,e[this.languageField],t);const p=Object.keys(e);p.sort((e,t)=>(c.fieldOrders.get(e)||1e5)-(c.fieldOrders.get(t)||1e5));for(const r of p){if(r===this.languageField)continue;const i=e[r],s=c.fields.get(r);if(s){s(u,i,l);continue}const o=this.children.get(r);if(!o)continue;l.path=`${t.path?t.path+".":""}${r}`;const{translator:a,multiple:d,selector:p}=o;if(!p||p===n){let e;e=d?null!=i?i:[]:[i];for(const t of e){const e=a.export(t,l);e&&u.appendChild(e)}}}return u}resolveCollision(e,t){return(this.typeOrders.get(e[this.typeField]||this.defaultType)||0)<=(this.typeOrders.get(t[this.typeField]||this.defaultType)||0)?e:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=void 0;const r=n(4),i=(0,r.__importDefault)(n(27));t.Hash=i.default;const s=(0,r.__importDefault)(n(275)),o=(0,r.__importDefault)(n(276)),a=(0,r.__importDefault)(n(277)),c=(0,r.__importDefault)(n(278)),u=new Map([["md5",s.default],["sha-1",o.default],["sha-256",a.default],["sha-512",c.default],["sha1",o.default],["sha256",a.default],["sha512",c.default]]);t.default=function(e){e=e.toLowerCase();const t=u.get(e);if(t)return new t;throw new Error("Unsupported hash algorithm: "+e)}},function(e,t,n){"use strict";(function(t,r){n(6);var i,s=n(33);e.exports=g,g.ReadableState=m;n(7).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n(7).EventEmitter,c=n(11).Buffer,u=t.Uint8Array||function(){};var l,d=Object.create(n(28)),p=n(273).BufferList,h=n(90);d.inherits(g,a);var f=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var r=t instanceof(i=i||n(23));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var s=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:r&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=n(92).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function g(e){if(i=i||n(23),!(this instanceof g))return new g(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function y(e,t,n,r,i){var s,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,_(e)}(e,o)):(i||(s=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):b(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?b(e,o,t,!1):w(e,o)):b(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function b(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&_(e)),w(e,t)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),g.prototype.destroy=h.destroy,g.prototype._undestroy=h.undestroy,g.prototype._destroy=function(e,t){this.push(null),t(e)},g.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),y(this,e,t,!1,n)},g.prototype.unshift=function(e){return y(this,e,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(e){return l||(l=n(92).StringDecoder),this._readableState.decoder=new l(e),this._readableState.encoding=e,this};function v(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.flowing,t.emittedReadable=!0,t.sync?s.nextTick(S,e):S(e))}function S(e){e.emit("readable"),N(e)}function w(e,t){t.readingMore||(t.readingMore=!0,s.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function I(e){e.read(0)}function A(e,t){t.reading||e.read(0),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(t.flowing;t.flowing&&null!==e.read(););}function E(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),0===(e-=o)){o===s.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(s.copy(n,n.length-e,0,o),0===(e-=o)){o===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function x(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,s.nextTick(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}g.prototype.read=function(e){e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return t.length,t.ended,0===t.length&&t.ended?x(this):_(this),null;if(0===(e=v(e,t))&&t.ended)return 0===t.length&&x(this),null;var r,i=t.needReadable;return(0===t.length||t.length-e<t.highWaterMark)&&(i=!0),t.ended||t.reading?i=!1:i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=v(n,t))),null===(r=e>0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&x(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,i.pipesCount;var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:y;function c(t,r){t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",h),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){e.end()}i.endEmitted?s.nextTick(a):n.once("end",a),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;t.awaitDrain,t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",l);var d=!1;var p=!1;function h(t){p=!1,!1!==e.write(t)||p||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==C(i.pipes,e))&&!d&&(n._readableState.awaitDrain,n._readableState.awaitDrain++,p=!0),n.pause())}function f(t){y(),e.removeListener("error",f),0===o(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){e.removeListener("close",m),y()}function y(){n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",m),e.once("finish",g),e.emit("pipe",n),i.flowing||n.resume(),e},g.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,n);return this}var o=C(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},g.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&_(this):s.nextTick(I,this))}return n},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var e=this._readableState;return e.flowing||(e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,s.nextTick(A,e,t))}(this,e)),this},g.prototype.pause=function(){return this._readableState.flowing,!1!==this._readableState.flowing&&(this._readableState.flowing=!1,this.emit("pause")),this},g.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<f.length;s++)e.on(f[s],this.emit.bind(this,f[s]));return this._read=function(t){r&&(r=!1,e.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=E}).call(this,n(12),n(22))},function(e,t,n){"use strict";var r=n(33);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t){n(6);var r=n(33);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=m;var s,o=r.nextTick;m.WritableState=f;var a=Object.create(n(28)),c=n(7).EventEmitter,u=n(11).Buffer,l=t.Uint8Array||function(){};var d,p=n(90);function h(){}function f(e,t){s=s||n(23),e=e||{};var a=t instanceof s;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:a&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,s=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,s){--t.pendingcb,n?(r.nextTick(s,i),r.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(s(i),e._writableState.errorEmitted=!0,e.emit("error",i),S(e,t))}(e,n,i,t,s);else{var a=v(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||b(e,n),i?o(y,e,n,a,s):y(e,n,a,s)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(e){if(s=s||n(23),!(d.call(m,this)||this instanceof s))return new m(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function g(e,t,n,r,i,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function y(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function b(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,s=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)s[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;s.allBuffers=c,g(e,t,!0,t.length,s,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,d=n.callback;if(g(e,t,!1,t.objectMode?1:u.length,u,l,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function v(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var n=v(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,r.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}a.inherits(m,c),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:function(){return this.getBuffer()}})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===m&&(e&&e._writableState instanceof f)}})):d=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,n){var i,s=this._writableState,o=!1,a=!s.objectMode&&(i=e,u.isBuffer(i)||i instanceof l);return a&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof n&&(n=h),s.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),r.nextTick(t,n)}(this,n):(a||function(e,t,n,i){var s=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),r.nextTick(i,o),s=!1),s}(this,s,e,n))&&(s.pendingcb++,o=function(e,t,n,r,i,s){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,a,r,i,s);return c}(this,s,a,e,t,n)),o},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||b(this,e))},m.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=p.destroy,m.prototype._undestroy=p.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(12))},function(e,t,n){"use strict";var r=n(11).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},s.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=s;var r=n(23);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);r.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){a(e,t,n)})):a(this,null,null)}function a(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}Object.create(n(28)).inherits(s,r),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";n(6),Object.defineProperty(t,"__esModule",{value:!0}),t.Receiver=t.Sender=void 0;const r=n(4),i=n(7),s=(0,r.__importStar)(n(9)),o=n(5),a=n(1),c=(0,r.__importDefault)(n(57)),u=n(34),l=n(58);class d extends i.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.config={chunkSize:16384,hash:"sha-1",...e},this.file=void 0,this.channel=void 0,this.hash=s.createHash(this.config.hash)}send(e,t){if(this.file&&this.channel)return;this.file=e,this.channel=t,this.channel.binaryType="arraybuffer";const n=new FileReader;let r=0,i=!1;const s=()=>{if(i||r>=e.size)return;i=!0;const t=e.slice(r,r+this.config.chunkSize);n.readAsArrayBuffer(t)};t.bufferedAmountLowThreshold=8*this.config.chunkSize,t.onbufferedamountlow=()=>{s()},n.addEventListener("load",t=>{const n=t.target.result;i=!1,r+=n.byteLength,this.channel.send(n),this.hash.update(new Uint8Array(n)),this.emit("progress",r,e.size,n),r<e.size?this.channel.bufferedAmount<=this.channel.bufferedAmountLowThreshold&&s():(this.emit("progress",e.size,e.size,null),this.emit("sentFile",{algorithm:this.config.hash,name:e.name,size:e.size,value:this.hash.digest()}))}),s()}}t.Sender=d;class p extends i.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.config={hash:"sha-1",...e},this.receiveBuffer=[],this.received=0,this.channel=void 0,this.hash=s.createHash(this.config.hash)}receive(e,t){this.metadata=e,this.channel=t,this.channel.binaryType="arraybuffer",this.channel.onmessage=e=>{const t=e.data.byteLength;this.received+=t,this.receiveBuffer.push(e.data),e.data&&this.hash.update(new Uint8Array(e.data)),this.emit("progress",this.received,this.metadata.size,e.data),this.received===this.metadata.size?(this.metadata.actualhash=this.hash.digest("hex"),this.emit("receivedFile",new Blob(this.receiveBuffer),this.metadata),this.receiveBuffer=[]):this.received>this.metadata.size&&(console.error("received more than expected, discarding..."),this.receiveBuffer=[])}}}t.Receiver=p;class h extends c.default{constructor(e){super(e),this.sender=void 0,this.receiver=void 0,this.file=void 0}async start(e,t){if(t=t||(()=>{}),!e||"function"==typeof e)throw new Error("File object required");this.state="pending",this.role="initiator",this.file=e,this.sender=new d,this.sender.on("progress",(e,t)=>{this._log("info","Send progress "+e+"/"+t)}),this.sender.on("sentFile",e=>{this._log("info","Sent file",e.name),this.send(o.JingleAction.SessionInfo,{info:{creator:o.JingleSessionRole.Initiator,file:{hashes:[{algorithm:e.algorithm,value:e.value}]},infoType:o.JINGLE_INFO_CHECKSUM_5,name:this.contentName}}),this.parent.emit("sentFile",this,e)}),this.channel=this.pc.createDataChannel("filetransfer",{ordered:!0}),this.channel.onopen=()=>{this.sender.send(this.file,this.channel)};try{await this.processLocal(o.JingleAction.SessionInitiate,async()=>{const t=await this.pc.createOffer({offerToReceiveAudio:!1,offerToReceiveVideo:!1}),n=(0,u.importFromSDP)(t.sdp),r=(0,l.convertIntermediateToRequest)(n,this.role,this.transportType);this.contentName=r.contents[0].name,r.sid=this.sid,r.action=o.JingleAction.SessionInitiate,r.contents[0].application={applicationType:a.NS_JINGLE_FILE_TRANSFER_5,file:{date:e.lastModified?new Date(e.lastModified):void 0,hashesUsed:[{algorithm:"sha-1"}],name:e.name,size:e.size}},this.send("session-initiate",r),await this.pc.setLocalDescription(t)}),t()}catch(e){return this._log("error","Could not create WebRTC offer",e),this.end("failed-application",!0)}}async accept(e){this._log("info","Accepted incoming session"),this.role="responder",this.state="active",e=e||(()=>{});try{await this.processLocal(o.JingleAction.SessionAccept,async()=>{const e=await this.pc.createAnswer(),t=(0,u.importFromSDP)(e.sdp),n=(0,l.convertIntermediateToRequest)(t,this.role,this.transportType);n.sid=this.sid,n.action="session-accept";for(const e of n.contents)e.creator="initiator";this.contentName=n.contents[0].name,this.send("session-accept",n),await this.pc.setLocalDescription(e),await this.processBufferedCandidates()}),e()}catch(e){this._log("error","Could not create WebRTC answer",e),this.end("failed-application")}}async onSessionInitiate(e,t){this._log("info","Initiating incoming session"),this.role="responder",this.state="pending",this.transportType=e.contents[0].transport.transportType;const n=(0,l.convertRequestToIntermediate)(e,this.peerRole),r=(0,u.exportToSDP)(n),i=e.contents[0].application,s=i.file.hashesUsed?i.file.hashesUsed:i.file.hashes||[];this.receiver=new p({hash:s[0]&&s[0].algorithm}),this.receiver.on("progress",(e,t)=>{this._log("info","Receive progress "+e+"/"+t)}),this.receiver.on("receivedFile",e=>{this.receivedFile=e,this._maybeReceivedFile()}),this.receiver.metadata=i.file,this.pc.addEventListener("datachannel",e=>{this.channel=e.channel,this.receiver.receive(this.receiver.metadata,e.channel)});try{await this.pc.setRemoteDescription({type:"offer",sdp:r}),await this.processBufferedCandidates(),t()}catch(e){this._log("error","Could not create WebRTC answer",e),t({condition:"general-error"})}}onSessionInfo(e,t){const n=e.info;n&&n.file&&n.file.hashes&&(this.receiver.metadata.hashes=n.file.hashes,this.receiver.metadata.actualhash&&this._maybeReceivedFile(),t())}_maybeReceivedFile(){if(this.receiver.metadata.hashes&&this.receiver.metadata.hashes.length){for(const e of this.receiver.metadata.hashes||[])if(e.value&&e.value.toString("hex")===this.receiver.metadata.actualhash)return this._log("info","File hash matches"),this.parent.emit("receivedFile",this,this.receivedFile,this.receiver.metadata),void this.end("success");this._log("error","File hash does not match"),this.end("media-error")}}}t.default=h},function(e,t,n){"use strict";const 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,t)=>(t>0?"m="+e:e).trim()+"\r\n")},r.getDescription=function(e){const t=r.splitSections(e);return t&&t[0]},r.getMediaSections=function(e){const t=r.splitSections(e);return t.shift(),t},r.matchPrefix=function(e,t){return r.splitLines(e).filter(e=>0===e.indexOf(t))},r.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e<t.length;e+=2)switch(t[e]){case"raddr":n.relatedAddress=t[e+1];break;case"rport":n.relatedPort=parseInt(t[e+1],10);break;case"tcptype":n.tcpType=t[e+1];break;case"ufrag":n.ufrag=t[e+1],n.usernameFragment=t[e+1];break;default:void 0===n[t[e]]&&(n[t[e]]=t[e+1])}return n},r.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const r=e.type;return t.push("typ"),t.push(r),"host"!==r&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},r.parseIceOptions=function(e){return e.substring(14).split(" ")},r.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},r.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},r.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.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){const t={};let n;const r=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e<r.length;e++)n=r[e].trim().split("="),t[n[0].trim()]=n[1];return t},r.writeFmtp=function(e){let t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const r=[];Object.keys(e.parameters).forEach(t=>{void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)}),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},r.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},r.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},r.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},r.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},r.getMid=function(e){const t=r.matchPrefix(e,"a=mid:")[0];if(t)return t.substring(6)},r.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},r.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:r.matchPrefix(e+t,"a=fingerprint:").map(r.parseFingerprint)}},r.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},r.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.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;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[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,t){return r.matchPrefix(e+t,"a=crypto:").map(r.parseCryptoLine)},r.getIceParameters=function(e,t){const n=r.matchPrefix(e+t,"a=ice-ufrag:")[0],i=r.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&i?{usernameFragment:n.substring(12),password:i.substring(10)}:null},r.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},r.parseRtpParameters=function(e){const t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=r.splitLines(e)[0].split(" ");t.profile=n[2];for(let i=3;i<n.length;i++){const s=n[i],o=r.matchPrefix(e,"a=rtpmap:"+s+" ")[0];if(o){const n=r.parseRtpMap(o),i=r.matchPrefix(e,"a=fmtp:"+s+" ");switch(n.parameters=i.length?r.parseFmtp(i[0]):{},n.rtcpFeedback=r.matchPrefix(e,"a=rtcp-fb:"+s+" ").map(r.parseRtcpFb),t.codecs.push(n),n.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(n.name.toUpperCase())}}}r.matchPrefix(e,"a=extmap:").forEach(e=>{t.headerExtensions.push(r.parseExtmap(e))});const i=r.matchPrefix(e,"a=rtcp-fb:* ").map(r.parseRtcpFb);return t.codecs.forEach(e=>{i.forEach(t=>{e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter)||e.rtcpFeedback.push(t)})}),t},r.writeRtpDescription=function(e,t){let n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" "+(t.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=t.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",t.codecs.forEach(e=>{n+=r.writeRtpMap(e),n+=r.writeFmtp(e),n+=r.writeRtcpFb(e)});let i=0;return t.codecs.forEach(e=>{e.maxptime>i&&(i=e.maxptime)}),i>0&&(n+="a=maxptime:"+i+"\r\n"),t.headerExtensions&&t.headerExtensions.forEach(e=>{n+=r.writeExtmap(e)}),n},r.parseRtpEncodingParameters=function(e){const t=[],n=r.parseRtpParameters(e),i=-1!==n.fecMechanisms.indexOf("RED"),s=-1!==n.fecMechanisms.indexOf("ULPFEC"),o=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),a=o.length>0&&o[0].ssrc;let c;const u=r.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substring(17).split(" ").map(e=>parseInt(e,10)));u.length>0&&u[0].length>1&&u[0][0]===a&&(c=u[0][1]),n.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let n={ssrc:a,codecPayloadType:parseInt(e.parameters.apt,10)};a&&c&&(n.rtx={ssrc:c}),t.push(n),i&&(n=JSON.parse(JSON.stringify(n)),n.fec={ssrc:a,mechanism:s?"red+ulpfec":"red"},t.push(n))}}),0===t.length&&a&&t.push({ssrc:a});let l=r.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substring(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substring(5),10)*.95-16e3:void 0,t.forEach(e=>{e.maxBitrate=l})),t},r.parseRtcpParameters=function(e){const t={},n=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);const i=r.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=i.length>0,t.compound=0===i.length;const s=r.matchPrefix(e,"a=rtcp-mux");return t.mux=s.length>0,t},r.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},r.parseMsid=function(e){let t;const n=r.matchPrefix(e,"a=msid:");if(1===n.length)return t=n[0].substring(7).split(" "),{stream:t[0],track:t[1]};const i=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);return i.length>0?(t=i[0].value.split(" "),{stream:t[0],track:t[1]}):void 0},r.parseSctpDescription=function(e){const t=r.parseMLine(e),n=r.matchPrefix(e,"a=max-message-size:");let i;n.length>0&&(i=parseInt(n[0].substring(19),10)),isNaN(i)&&(i=65536);const s=r.matchPrefix(e,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substring(12),10),protocol:t.fmt,maxMessageSize:i};const o=r.matchPrefix(e,"a=sctpmap:");if(o.length>0){const e=o[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},r.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},r.generateSessionId=function(){return Math.random().toString().substr(2,22)},r.writeSessionBoilerplate=function(e,t,n){let i;const s=void 0!==t?t:2;i=e||r.generateSessionId();return"v=0\r\no="+(n||"thisisadapterortc")+" "+i+" "+s+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},r.getDirection=function(e,t){const 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 t?r.getDirection(t):"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){const t=r.splitLines(e)[0].substring(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},r.parseOLine=function(e){const t=r.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},r.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;const t=r.splitLines(e);for(let e=0;e<t.length;e++)if(t[e].length<2||"="!==t[e].charAt(1))return!1;return!0},e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(5),s=(0,r.__importDefault)(n(57)),o=n(34),a=n(58);function c(e){const t=e.application;if(t.streams&&t.streams.length&&t.sources&&t.sources.length){const e=t.streams[0];t.sources[0].parameters.msid=`${e.id} ${e.track}`,t.sourceGroups&&t.sourceGroups.length>0&&t.sources.push({parameters:{cname:t.sources[0].parameters.cname,msid:`${e.id} ${e.track}`},ssrc:t.sourceGroups[0].sources[1]})}}class u extends s.default{constructor(e){if(super(e),this.includesAudio=!1,this.includesVideo=!1,this._ringing=!1,this.pc.addEventListener("track",e=>{this.onAddTrack(e.track,e.streams[0])}),e.stream)for(const t of e.stream.getTracks())this.addTrack(t,e.stream)}get ringing(){return this._ringing}set ringing(e){e!==this._ringing&&(this._ringing=e)}get streams(){return"closed"!==this.pc.signalingState?this.pc.getRemoteStreams():[]}async start(e,t){this.state="pending",1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||(()=>{}),e=e||{},this.role="initiator",this.offerOptions=e;try{await this.processLocal(i.JingleAction.SessionInitiate,async()=>{const t=await this.pc.createOffer(e),n=(0,o.importFromSDP)(t.sdp),r=(0,a.convertIntermediateToRequest)(n,this.role,this.transportType);r.sid=this.sid,r.action=i.JingleAction.SessionInitiate;for(const e of r.contents||[])e.creator="initiator",c(e);await this.pc.setLocalDescription(t),this.send("session-initiate",r)}),t()}catch(e){this._log("error","Could not create WebRTC offer",e),this.end("failed-application",!0)}}async accept(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||(()=>{}),e=e||{},this._log("info","Accepted incoming session"),this.state="active",this.role="responder";try{await this.processLocal(i.JingleAction.SessionAccept,async()=>{const t=await this.pc.createAnswer(e),n=(0,o.importFromSDP)(t.sdp),r=(0,a.convertIntermediateToRequest)(n,this.role,this.transportType);r.sid=this.sid,r.action=i.JingleAction.SessionAccept;for(const e of r.contents||[])e.creator="initiator";await this.pc.setLocalDescription(t),await this.processBufferedCandidates(),this.send("session-accept",r)}),t()}catch(e){this._log("error","Could not create WebRTC answer",e),this.end("failed-application")}}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(const e of this.pc.getReceivers())this.onRemoveTrack(e.track);super.end(e,t)}ring(){return this.processLocal("ring",async()=>{this._log("info","Ringing on incoming session"),this.ringing=!0,this.send(i.JingleAction.SessionInfo,{info:{infoType:i.JINGLE_INFO_RINGING}})})}mute(e,t){return this.processLocal("mute",async()=>{this._log("info","Muting",t),this.send(i.JingleAction.SessionInfo,{info:{creator:e,infoType:i.JINGLE_INFO_MUTE,name:t}})})}unmute(e,t){return this.processLocal("unmute",async()=>{this._log("info","Unmuting",t),this.send(i.JingleAction.SessionInfo,{info:{creator:e,infoType:i.JINGLE_INFO_UNMUTE,name:t}})})}hold(){return this.processLocal("hold",async()=>{this._log("info","Placing on hold"),this.send("session-info",{info:{infoType:i.JINGLE_INFO_HOLD}})})}resume(){return this.processLocal("resume",async()=>{this._log("info","Resuming from hold"),this.send("session-info",{info:{infoType:i.JINGLE_INFO_ACTIVE}})})}addTrack(e,t,n){return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",async()=>{this.pc.addTrack?this.pc.addTrack(e,t):this.pc.addStream(t),n&&n()})}async removeTrack(e,t){return this.processLocal("removetrack",async()=>{if(this.pc.removeTrack(e),t)return t()})}onAddTrack(e,t){this._log("info","Track added"),this.parent.emit("peerTrackAdded",this,e,t)}onRemoveTrack(e){this._log("info","Track removed"),this.parent.emit("peerTrackRemoved",this,e)}async onSessionInitiate(e,t){this._log("info","Initiating incoming session"),this.state="pending",this.role="responder",this.transportType=e.contents[0].transport.transportType;const n=(0,a.convertRequestToIntermediate)(e,this.peerRole);for(const e of n.media)"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),e.streams||(e.streams=[{stream:"legacy",track:e.kind}]);const r=(0,o.exportToSDP)(n);try{return await this.pc.setRemoteDescription({type:"offer",sdp:r}),await this.processBufferedCandidates(),t()}catch(e){return this._log("error","Could not create WebRTC answer",e),t({condition:"general-error"})}}onSessionTerminate(e,t){for(const e of this.pc.getReceivers())this.onRemoveTrack(e.track);super.onSessionTerminate(e,t)}onSessionInfo(e,t){const n=e.info||{infoType:""};switch(n.infoType){case i.JINGLE_INFO_RINGING:return this._log("info","Outgoing session is ringing"),this.ringing=!0,this.parent.emit("ringing",this),t();case i.JINGLE_INFO_HOLD:return this._log("info","On hold"),this.parent.emit("hold",this),t();case i.JINGLE_INFO_UNHOLD:case i.JINGLE_INFO_ACTIVE:return this._log("info","Resuming from hold"),this.parent.emit("resumed",this),t();case i.JINGLE_INFO_MUTE:return this._log("info","Muting",n),this.parent.emit("mute",this,n),t();case i.JINGLE_INFO_UNMUTE:return this._log("info","Unmuting",n),this.parent.emit("unmute",this,n),t()}return t()}}t.default=u},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var u,l=n(7);o(n(284),t);var d=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.peerConnection=t,r.haveConnectionMetrics=!1,r.statsArr=[],u="undefined"!=typeof window,r.session=n.session,r.initiator=n.initiator,r.conference=n.conference,r.statsInterval=1e3*(n.interval||5),r.logger=n.logger||console,["new","checking"].includes(t.iceConnectionState)&&("checking"===t.iceConnectionState&&(r.logger.warn("iceConnectionState is already in checking state so ice connect time may not be accurate"),r.handleIceStateChange()),t.addEventListener("iceconnectionstatechange",r.handleIceStateChange.bind(r))),t.addEventListener("connectionstatechange",r.handleConnectionStateChange.bind(r)),"connected"===t.connectionState&&r.pollForStats(),r}return i(t,e),t.prototype.handleIceStateChange=function(){var e=this,t=this.peerConnection.iceConnectionState;if("checking"===t&&u&&(this.iceStartTime=window.performance.now()),"connected"===t){if(this.haveConnectionMetrics)return;this.haveConnectionMetrics=!0;var n=void 0,r=void 0,i=void 0;u&&(this.iceConnectionTime=window.performance.now()-this.iceStartTime,n=window.navigator.userAgent,r=window.navigator.platform,i=window.navigator.hardwareConcurrency);var s={name:"connect",userAgent:n,platform:r,cores:i,session:this.session,conference:this.conference,connectTime:this.iceConnectionTime};return this.waitForSelectedCandidatePair().then((function(t){e.gatherSelectedCandidateInfo(t,s),e.emit("stats",s)}))}if("failed"===t)return u&&(this.iceFailedTime=window.performance.now()-this.iceStartTime),this.gatherStats().then((function(){var t={name:"failure",session:e.session,initiator:e.initiator,conference:e.conference,failTime:e.iceFailedTime,iceRW:0,numLocalHostCandidates:0,numLocalSrflxCandidates:0,numLocalRelayCandidates:0,numRemoteHostCandidates:0,numRemoteSrflxCandidates:0,numRemoteRelayCandidates:0},n=e.peerConnection.localDescription.sdp.split("\r\n").filter((function(e){return e.indexOf("a=candidate:")>-1})),r=e.peerConnection.remoteDescription.sdp.split("\r\n").filter((function(e){return e.indexOf("a=candidate:")>-1}));["Host","Srflx","Relay"].forEach((function(e){t["numLocal"+e+"Candidates"]=n.filter((function(t){return t.split(" ")[7]===e.toLowerCase()})).length,t["numRemote"+e+"Candidates"]=r.filter((function(t){return t.split(" ")[7]===e.toLowerCase()})).length})),e.emit("stats",t)}))},t.prototype.waitForSelectedCandidatePair=function(e,t){var n=this;return void 0===e&&(e=300),void 0===t&&(t=1),this.gatherStats().then((function(r){return n.getSelectedCandidatePair(r)?r:t>3?Promise.reject(new Error("Max wait attempts for connected candidate info reached")):new Promise((function(r,i){setTimeout((function(){return n.waitForSelectedCandidatePair(e,t+1).then(r,i)}),e)}))}))},t.prototype.getSelectedCandidatePair=function(e){var t=null;return e.forEach((function(e){var n=e.value;"candidate-pair"===n.type&&n.nominated&&"succeeded"===n.state&&(t=n)})),t},t.prototype.gatherSelectedCandidateInfo=function(e,t){var n=this.getSelectedCandidatePair(e);if(n){var r,i,s=n.localCandidateId,o=n.remoteCandidateId;if(e.forEach((function(e){var n=e.value;s&&"local-candidate"===n.type&&n.id===s&&(r=n,t.localCandidateType=n.candidateType),o&&"remote-candidate"===n.type&&n.id===o&&(i=n,t.remoteCandidateType=n.candidateType)})),r&&i&&(t.candidatePair=r.candidateType+";"+i.candidateType,t.candidatePairDetails={local:r,remote:i,pair:n}),r){if(t.transport=r.transport||r.protocol,r.priority){var a=parseInt(r.priority,10);t.turnType={2:"udp",1:"tcp",0:"tls"}[a>>24],t.networkType=r.networkType}t.usingIPv6=r.ipAddress&&0===r.ipAddress.indexOf("[")}}},t.prototype.handleConnectionStateChange=function(){return a(this,void 0,void 0,(function(){var e,t=this;return c(this,(function(n){if("connected"===(e=this.peerConnection.connectionState))this.pollForStats();else{if("disconnected"===e)return"stable"!==this.peerConnection.signalingState?[2]:[2,this.gatherStats().then((function(e){var n=t.createStatsReport(e);n.type="disconnected",t.emit("stats",n)}))];["closed","failed"].includes(e)&&this.pollingInterval&&(u&&window.clearInterval(this.pollingInterval),this.pollingInterval=null)}return[2]}))}))},t.prototype.pollForStats=function(){var e=this;if(!this.pollingInterval){var t=function(){return e.gatherStats().then((function(t){if(0!==t.length){var n=e.createStatsReport(t,!0);(n.tracks.length>0||n.remoteTracks.length>0)&&e.checkBitrate(n)&&e.emit("stats",n)}else e.logger.warn("Empty stats gathered, ignoring and not emitting stats")}))};u&&(window.setTimeout(t,0),this.pollingInterval=window.setInterval(t,this.statsInterval))}},t.prototype.checkBitrate=function(e){var t;return e.remoteTracks.length&&0!==(null===(t=e.remoteTracks[0])||void 0===t?void 0:t.bitrate)?(this.statsArr=[],!0):!(this.statsArr.length>=5)&&(this.statsArr.push(e),!0)},t.prototype.polyFillStats=function(e){if(!e)return[];if(Array.isArray(e))return e;var t=[];if(this.isNativeStatsReport(e))e.forEach((function(e,n){t.push({key:n,value:e})}));else{if(!(Object.keys(e).length>0))return this.logger.warn("Unknown stats results format, returning unmodified",e),[];Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})}))}return t},t.prototype.isNativeStatsReport=function(e){return void 0!==window.RTCStatsReport&&e instanceof window.RTCStatsReport},t.prototype.gatherStats=function(){return a(this,void 0,void 0,(function(){var e;return c(this,(function(t){switch(t.label){case 0:return t.trys.push([0,4,,5]),["connecting","connected"].includes(this.peerConnection.connectionState)?[4,this.peerConnection.getStats(null).then(this.polyFillStats.bind(this))]:[3,2];case 1:return[2,t.sent()];case 2:return"closed"===this.peerConnection.connectionState?(this.pollingInterval&&(u&&window.clearInterval(this.pollingInterval),this.pollingInterval=null),[2,[]]):[2,[]];case 3:return[3,5];case 4:return e=t.sent(),this.logger.error("Failed to gather stats. Are you using RTCPeerConnection as your connection? {expect peerconnection.getStats}",{peerConnection:this.peerConnection,err:e}),[2,Promise.reject(e)];case 5:return[2]}}))}))},t.prototype.createStatsReport=function(e,t){var n=this;void 0===t&&(t=!0);var r={name:"getStats",session:this.session,initiator:this.initiator,conference:this.conference,tracks:[],remoteTracks:[]};if(0===e.length)return r;e.filter((function(e){return["inbound-rtp","outbound-rtp"].indexOf(e.value.type)>-1})).forEach((function(t){n.processSource({source:t.value,event:r,results:e})}));var i=e.find((function(e){return"candidate-pair"===e.value.type&&"succeeded"===e.value.state&&!0===e.value.nominated}));return i&&this.processSelectedCandidatePair({report:i.value,event:r,results:e}),t&&(this.lastResult=e),r},t.prototype.processSource=function(e){var t,n,r,i,s,o,a,c=e.source,u=e.results,l=e.event,d=new Date(c.timestamp),h=this.lastResult&&this.lastResult.find((function(e){return e.key===c.id}));(h=h&&h.value)&&(t=(t=this.lastResult&&this.lastResult.find((function(e){return e.value.localId===h.id})))&&t.value),u.forEach((function(e){e.value.localId===c.id?n=e.value:e.key===c.transportId?r=e.value:e.key===c.trackId?s=e.value:e.key===c.mediaSourceId?o=e.value:e.key===c.codecId&&(a=e.value)})),r&&(i=(i=u.find((function(e){return e.key===r.selectedCandidatePairId})))&&i.value),i&&(l.candidatePairHadActiveSource=!0);var f=c.kind||c.mediaType,m="outbound-rtp"===c.type,g={track:s&&s.trackIdentifier,kind:f,jitter:p("jitter",c,n),roundTripTime:p("roundTripTime",c,n),packetsLost:p("packetsLost",c,n)||0,packetLoss:0,bytes:parseInt(m?c.bytesSent:c.bytesReceived,10)||0};if(a&&(g.codec="".concat(a.payloadType," ").concat(a.mimeType," ").concat(a.clockRate)),h){var y=parseInt(m?h.bytesSent:h.bytesReceived,10)||0,b=d.getTime()-new Date(h.timestamp).getTime();g.bitrate=Math.floor(8*(g.bytes-y)/b)}var v=p("packetsLost",h,t);m?(g.packetsSent=c.packetsSent,g.packetLoss=g.packetsLost/(g.packetsSent||1)*100,h&&(g.intervalPacketsSent=g.packetsSent-(h.packetsSent||0),g.intervalPacketsLost=g.packetsLost-(v||0),g.intervalPacketLoss=g.intervalPacketsLost/(g.intervalPacketsSent||1)*100),g.retransmittedBytesSent=c.retransmittedBytesSent,g.retransmittedPacketsSent=c.retransmittedPacketsSent):(g.packetsReceived=c.packetsReceived,g.packetLoss=g.packetsLost/(g.packetsReceived||1)*100,h&&(g.intervalPacketsReceived=g.packetsReceived-h.packetsReceived,g.intervalPacketsLost=g.packetsLost-v,g.intervalPacketLoss=g.intervalPacketsLost/(g.intervalPacketsReceived||1)*100)),s&&"audio"===f&&(s.remoteSource?(g.audioLevel=s.audioLevel,g.totalAudioEnergy=s.totalAudioEnergy):(g.echoReturnLoss=s.echoReturnLoss,g.echoReturnLossEnhancement=s.echoReturnLossEnhancement)),"audio"!==f||!o||s&&s.remoteSource||(g.audioLevel=o.audioLevel,g.totalAudioEnergy=o.totalAudioEnergy),Object.keys(g).forEach((function(e){return void 0===g[e]&&delete g[e]})),m?l.tracks.push(g):l.remoteTracks.push(g)},t.prototype.processSelectedCandidatePair=function(e){var t=this,n=e.report,r=e.event,i=e.results,s=n.localCandidateId,o=n.remoteCandidateId;r.localCandidateChanged=!!this.lastActiveLocalCandidate&&s!==this.lastActiveLocalCandidate.id,r.remoteCandidateChanged=!!this.lastActiveRemoteCandidate&&o!==this.lastActiveRemoteCandidate.id,(!this.lastActiveLocalCandidate||r.localCandidateChanged||r.remoteCandidateChanged)&&i.forEach((function(e){t.checkLastActiveCandidate({localId:s,remoteId:o,report:e.value})})),this.lastActiveLocalCandidate&&(r.networkType=this.lastActiveLocalCandidate.networkType,this.lastActiveRemoteCandidate&&(r.candidatePair=this.lastActiveLocalCandidate.candidateType+";"+this.lastActiveRemoteCandidate.candidateType)),r.bytesSent=n.bytesSent,r.bytesReceived=n.bytesReceived,r.requestsReceived=n.requestsReceived,r.requestsSent=n.requestsSent,r.responsesReceived=n.responsesReceived,r.responsesSent=n.responsesSent,r.consentRequestsSent=n.consentRequestsSent,r.totalRoundTripTime=n.totalRoundTripTime},t.prototype.checkLastActiveCandidate=function(e){var t=e.localId,n=e.remoteId,r=e.report;t&&"local-candidate"===r.type&&r.id===t&&(this.lastActiveLocalCandidate=r),n&&"remote-candidate"===r.type&&r.id===n&&(this.lastActiveRemoteCandidate=r)},t}(l.EventEmitter);function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t.find((function(t){return t&&(t[e]||0===t[e])}));return r&&r[e]}t.default=d},function(e,t,n){"use strict";n.r(t),n.d(t,"Axios",(function(){return i})),n.d(t,"AxiosError",(function(){return s})),n.d(t,"CanceledError",(function(){return o})),n.d(t,"isCancel",(function(){return a})),n.d(t,"CancelToken",(function(){return c})),n.d(t,"VERSION",(function(){return u})),n.d(t,"all",(function(){return l})),n.d(t,"Cancel",(function(){return d})),n.d(t,"isAxiosError",(function(){return p})),n.d(t,"spread",(function(){return h})),n.d(t,"toFormData",(function(){return f})),n.d(t,"AxiosHeaders",(function(){return m})),n.d(t,"HttpStatusCode",(function(){return g})),n.d(t,"formToJSON",(function(){return y})),n.d(t,"getAdapter",(function(){return b})),n.d(t,"mergeConfig",(function(){return v}));var r=n(67);n.d(t,"default",(function(){return r.a}));const{Axios:i,AxiosError:s,CanceledError:o,isCancel:a,CancelToken:c,VERSION:u,all:l,Cancel:d,isAxiosError:p,spread:h,toFormData:f,AxiosHeaders:m,HttpStatusCode:g,formToJSON:y,getAdapter:b,mergeConfig:v}=r.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),i=Math.pow(2,32),s=(e,t)=>(e%t+t)%t;class o extends r.EventEmitter{constructor(){super(),this.allowResume=!0,this.lastAck=0,this.handled=0,this.unacked=[],this.inboundStarted=!1,this.outboundStarted=!1,this.id=void 0,this.jid=void 0,this.allowResume=!0,this.started=!1,this.cacheHandler=()=>{},this._reset()}get started(){return this.outboundStarted&&this.inboundStarted}set started(e){e||(this.outboundStarted=!1,this.inboundStarted=!1)}get resumable(){return this.started&&this.allowResume}load(e){var t;this.id=e.id,this.allowResume=null===(t=e.allowResume)||void 0===t||t,this.handled=e.handled,this.lastAck=e.lastAck,this.unacked=e.unacked,this.emit("prebound",e.jid)}cache(e){this.cacheHandler=e}async bind(e){this.jid=e,await this._cache()}async enable(){this.emit("send",{allowResumption:this.allowResume,type:"enable"})}async resume(){this.emit("send",{handled:this.handled,previousSession:this.id,type:"resume"})}async enabled(e){this.id=e.id,this.allowResume=e.resume||!1,this.handled=0,this.inboundStarted=!0,await this._cache()}async resumed(e){this.id=e.previousSession,this.inboundStarted=!0,await this.process(e,!0),await this._cache()}async failed(e){await this.process(e);for(const[e,t]of this.unacked)this.emit("failed",{kind:e,stanza:t});this._reset(),await this._cache()}ack(){this.emit("send",{handled:this.handled,type:"ack"})}request(){this.emit("send",{type:"request"})}async process(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===e.handled)return;const n=s(e.handled-this.lastAck,i);for(let e=0;e<n&&this.unacked.length>0;e++){const[e,t]=this.unacked.shift();this.emit("acked",{kind:e,stanza:t})}if(this.lastAck=e.handled,t){const e=this.unacked;if(this.unacked=[],e.length){this.emit("begin-resend");for(const[t,n]of e)this.emit("resend",{kind:t,stanza:n});this.emit("end-resend")}}await this._cache()}async track(e,t){const n="enable"===t.type;return"sm"!==e||!n&&"resume"!==t.type?!!this.outboundStarted&&(("message"===e||"presence"===e||"iq"===e)&&(this.unacked.push([e,t]),await this._cache(),!0)):(n&&(this.handled=0),this.outboundStarted=!0,await this._cache(),!1)}async handle(){this.inboundStarted&&(this.handled=s(this.handled+1,i),await this._cache())}async hibernate(){if(!this.resumable)return this.shutdown();for(const[e,t]of this.unacked)this.emit("hibernated",{kind:e,stanza:t})}async shutdown(){return this.failed({type:"failed"})}async _cache(){try{await this.cacheHandler({allowResume:this.allowResume,handled:this.handled,id:this.id,jid:this.jid,lastAck:this.lastAck,unacked:this.unacked})}catch(e){console.error("Failed to cache stream state",e)}}_reset(){this.id="",this.inboundStarted=!1,this.outboundStarted=!1,this.lastAck=0,this.handled=0,this.unacked=[]}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCRAM=t.DIGEST=t.OAUTH=t.PLAIN=t.EXTERNAL=t.ANONYMOUS=t.Hi=t.HMAC=t.H=t.XOR=t.createClientNonce=t.Factory=t.SimpleMech=void 0;const r=n(9),i=n(86);class s{constructor(e){this.authenticated=!1,this.mutuallyAuthenticated=!1,this.name=e}getCacheableCredentials(){return null}processChallenge(e){}processSuccess(e){this.authenticated=!0}finalize(){const e={authenticated:this.authenticated,mutuallyAuthenticated:this.mutuallyAuthenticated};return this.errorData&&(e.errorData=this.errorData),e}}t.SimpleMech=s;function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;return(0,r.randomBytes)(e).toString("hex")}function a(e,t){const n=[];for(let r=0;r<e.length;r++)n.push(e[r]^t[r]);return r.Buffer.from(n)}function c(e,t){return(0,r.createHash)(t).update(e).digest()}function u(e,t,n){return(0,r.createHmac)(n,e).update(t).digest()}function l(e,t,n,i){let s=u(e,r.Buffer.concat([t,r.Buffer.from("00000001","hex")]),i),o=s;for(let t=0;t<n-1;t++)s=u(e,s,i),o=a(o,s);return o}function d(e){const t={},n=e.toString().split(/,(?=(?:[^"]|"[^"]*")*$)/);for(let e=0,r=n.length;e<r;e++){const r=/(\w+)=["]?([^"]+)["]?$/.exec(n[e]);r&&(t[r[1]]=r[2])}return t}function p(e){const t=[];for(const n of e)","===n?t.push("=2C"):"="===n?t.push("=3D"):t.push(n);return t.join("")}t.Factory=class{constructor(){this.mechanisms=[]}register(e,t,n){this.mechanisms.push({constructor:t,name:e.toUpperCase(),priority:n}),this.mechanisms.sort((e,t)=>t.priority-e.priority)}disable(e){const t=e.toUpperCase();this.mechanisms=this.mechanisms.filter(e=>e.name!==t)}createMechanism(e){const t=e.map(e=>e.toUpperCase());for(const e of this.mechanisms)for(const n of t)if(n===e.name)return new e.constructor(e.name);return null}},t.createClientNonce=o,t.XOR=a,t.H=c,t.HMAC=u,t.Hi=l;t.ANONYMOUS=class extends s{getExpectedCredentials(){return{optional:["trace"],required:[]}}createResponse(e){return r.Buffer.from(e.trace||"")}};t.EXTERNAL=class extends s{getExpectedCredentials(){return{optional:["authzid"],required:[]}}createResponse(e){return r.Buffer.from(e.authzid||"")}};t.PLAIN=class extends s{getExpectedCredentials(){return{optional:["authzid"],required:["username","password"]}}createResponse(e){return r.Buffer.from((e.authzid||"")+"\0"+e.username+"\0"+(e.password||e.token))}};t.OAUTH=class extends s{constructor(e){super(e),this.failed=!1,this.name=e}getExpectedCredentials(){return{optional:["authzid"],required:["token"]}}createResponse(e){if(this.failed)return r.Buffer.from("");const t=`n,${p((0,i.saslprep)(e.authzid))},`,n=`auth=Bearer ${e.token}`;return r.Buffer.from(t+""+n+"","utf8")}processChallenge(e){this.failed=!0,this.errorData=JSON.parse(e.toString("utf8"))}};t.DIGEST=class extends s{constructor(e){super(e),this.providesMutualAuthentication=!1,this.state="INITIAL",this.name=e}processChallenge(e){this.state="CHALLENGE";const t=d(e);this.authenticated=!!t.rspauth,this.realm=t.realm,this.nonce=t.nonce,this.charset=t.charset}getExpectedCredentials(){return{optional:["authzid","clientNonce","realm"],required:["host","password","serviceName","serviceType","username"]}}createResponse(e){if("INITIAL"===this.state||this.authenticated)return null;let t=e.serviceType+"/"+e.host;e.serviceName&&e.host!==e.serviceName&&(t+="/"+e.serviceName);const n=e.realm||this.realm||"",i=e.clientNonce||o(16),s="00000001";let a="";a+='username="'+e.username+'"',n&&(a+=',realm="'+n+'"'),a+=',nonce="'+this.nonce+'"',a+=',cnonce="'+i+'"',a+=",nc="+s,a+=",qop=auth",a+=',digest-uri="'+t+'"';const c=(0,r.createHash)("md5").update(e.username).update(":").update(n).update(":").update(e.password).digest(),u=(0,r.createHash)("md5").update(c).update(":").update(this.nonce).update(":").update(i);e.authzid&&u.update(":").update(e.authzid);const l=u.digest("hex"),d=(0,r.createHash)("md5").update("AUTHENTICATE:").update(t).digest("hex");return a+=",response="+(0,r.createHash)("md5").update(l).update(":").update(this.nonce).update(":").update(s).update(":").update(i).update(":").update("auth").update(":").update(d).digest("hex"),"utf-8"===this.charset&&(a+=",charset=utf-8"),e.authzid&&(a+=',authzid="'+e.authzid+'"'),r.Buffer.from(a)}};t.SCRAM=class{constructor(e){this.providesMutualAuthentication=!0,this.name=e,this.state="INITIAL",this.useChannelBinding=this.name.toLowerCase().endsWith("-plus"),this.algorithm=this.name.toLowerCase().split("scram-")[1].split("-plus")[0]}getExpectedCredentials(){const e=["username","password"];return this.useChannelBinding&&e.push("tlsUnique"),{optional:["authzid","clientNonce"],required:e}}getCacheableCredentials(){return this.cache}createResponse(e){return"INITIAL"===this.state?this.initialResponse(e):this.challengeResponse(e)}processChallenge(e){const t=d(e);this.salt=r.Buffer.from(t.s||"","base64"),this.iterationCount=parseInt(t.i,10),this.nonce=t.r,this.verifier=t.v,this.error=t.e,this.challenge=e}processSuccess(e){this.processChallenge(e)}finalize(){return this.verifier?this.serverSignature.toString("base64")!==this.verifier?{authenticated:!1,error:"Mutual authentication failed",mutuallyAuthenticated:!1}:{authenticated:!0,mutuallyAuthenticated:!0}:{authenticated:!1,error:this.error,mutuallyAuthenticated:!1}}initialResponse(e){const t=p((0,i.saslprep)(e.authzid)),n=p((0,i.saslprep)(e.username));this.clientNonce=e.clientNonce||o();let s="n";e.tlsUnique&&(s=this.useChannelBinding?"p=tls-unique":"y"),this.gs2Header=r.Buffer.from(t?`${s},a=${t},`:s+",,"),this.clientFirstMessageBare=r.Buffer.from(`n=${n},r=${this.clientNonce}`);const a=r.Buffer.concat([this.gs2Header,this.clientFirstMessageBare]);return this.state="CHALLENGE",a}challengeResponse(e){const t=r.Buffer.from("Client Key"),n=r.Buffer.from("Server Key"),s=r.Buffer.concat([this.gs2Header,e.tlsUnique||r.Buffer.from("")]).toString("base64"),o=r.Buffer.from(`c=${s},r=${this.nonce}`);let d,p,h;const f=e.salt&&0===r.Buffer.compare(e.salt,this.salt);f&&e.clientKey&&e.serverKey?(p=r.Buffer.from(e.clientKey),h=r.Buffer.from(e.serverKey)):f&&e.saltedPassword?(d=r.Buffer.from(e.saltedPassword),p=u(d,t,this.algorithm),h=u(d,n,this.algorithm)):(d=l(r.Buffer.from((0,i.saslprep)(e.password)),this.salt,this.iterationCount,this.algorithm),p=u(d,t,this.algorithm),h=u(d,n,this.algorithm));const m=c(p,this.algorithm),g=r.Buffer.from(","),y=r.Buffer.concat([this.clientFirstMessageBare,g,this.challenge,g,o]),b=a(p,u(m,y,this.algorithm)).toString("base64");this.serverSignature=u(h,y,this.algorithm);const v=r.Buffer.concat([o,r.Buffer.from(",p="+b)]);return this.state="FINAL",this.cache={clientKey:p,salt:this.salt,saltedPassword:d,serverKey:h},v}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.default=function(e){e.getAccountInfo=async t=>(await e.sendIQ({account:{},to:t,type:"get"})).account,e.updateAccount=(t,n)=>e.sendIQ({account:n,to:t,type:"set"}),e.deleteAccount=t=>e.sendIQ({account:{remove:!0},to:t,type:"set"}),e.getPrivateData=async t=>(await e.sendIQ({privateStorage:{[t]:{}},type:"get"})).privateStorage[t],e.setPrivateData=async(t,n)=>e.sendIQ({privateStorage:{[t]:n},type:"set"}),e.getVCard=async t=>(await e.sendIQ({to:t,type:"get",vcard:{format:r.NS_VCARD_TEMP}})).vcard,e.publishVCard=async t=>{await e.sendIQ({type:"set",vcard:t})},e.enableNotifications=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.sendIQ({push:{action:"enable",form:{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/pubsub#publish-options"},...r],type:"submit"},jid:t,node:n},type:"set"})},e.disableNotifications=(t,n)=>e.sendIQ({push:{action:"disable",jid:t,node:n},type:"set"})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.default=function(e){e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_AVATAR_METADATA)),e.on("pubsub:published",t=>{if(t.pubsub.items.node!==r.NS_AVATAR_METADATA)return;const n=t.pubsub.items.published[0].content;e.emit("avatar",{avatars:n.versions||[],jid:t.from,source:"pubsub"})}),e.on("presence",t=>{t.vcardAvatar&&"string"==typeof t.vcardAvatar&&e.emit("avatar",{avatars:[{id:t.vcardAvatar}],jid:t.from,source:"vcard"})}),e.publishAvatar=(t,n)=>e.publish("",r.NS_AVATAR_DATA,{data:n,itemType:r.NS_AVATAR_DATA},t),e.useAvatars=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.publish("",r.NS_AVATAR_METADATA,{itemType:r.NS_AVATAR_METADATA,pointers:n,versions:t},"current")},e.getAvatar=(t,n)=>e.getItem(t,r.NS_AVATAR_DATA,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.registerFeature("bind",300,async(t,n)=>{try{const r=await e.sendIQ({bind:{resource:e.config.resource},type:"set"});e.features.negotiated.bind=!0,e.emit("session:prebind",r.bind.jid);const i=!t.legacySession||t.legacySession&&t.legacySession.optional;return!e.sessionStarted&&i&&e.emit("session:started",e.jid),n()}catch(e){return console.error(e),n("disconnect","JID binding failed")}}),e.registerFeature("legacySession",1e3,async(t,n)=>{if(e.sessionStarted||t.legacySession&&t.legacySession.optional)return e.features.negotiated.session=!0,n();try{return await e.sendIQ({legacySession:!0,type:"set"}),e.features.negotiated.session=!0,e.sessionStarted||(e.sessionStarted=!0,e.emit("session:started",e.jid)),n()}catch(e){return n("disconnect","Session requeset failed")}}),e.on("session:started",()=>{e.sessionStarted=!0}),e.on("session:prebind",t=>{e.jid=t,e.emit("session:bound",e.jid)}),e.on("--reset-stream-features",()=>{e.sessionStarted=!1,e.features.negotiated.bind=!1,e.features.negotiated.session=!1})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.default=function(e){e.disco.addFeature(r.NS_ADHOC_COMMANDS),e.disco.addItem({name:"Ad-Hoc Commands",node:r.NS_ADHOC_COMMANDS}),e.getCommands=t=>e.getDiscoItems(t,r.NS_ADHOC_COMMANDS)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),i=n(13);async function s(e){if(e.sm.started)return new Promise(t=>{e.once("stream:management:ack",()=>t()),e.sm.request()});try{await e.ping()}catch(e){if(e.error&&"timeout"!==e.error.condition)return;throw e}}function o(e,t){e.features.negotiated.clientStateIndication&&e.send("csi",{type:t})}t.default=function(e){e.disco.addFeature(r.NS_PING),e.on("iq:get:ping",t=>{e.sendIQResult(t)}),e.on("--reset-stream-features",()=>{e._stopKeepAliveInterval(),e.features.negotiated.streamManagement=!1,e.features.negotiated.clientStateIndication=!1}),e.markActive=()=>o(e,"active"),e.markInactive=()=>o(e,"inactive"),e.ping=async t=>{await e.sendIQ({ping:!0,to:t,type:"get"})},e.enableKeepAlive=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e._keepAliveOptions=t;const n=t.interval||300,r=t.timeout||e.config.timeout||15;async function o(){if(e.sessionStarted)try{await(0,i.timeoutPromise)(s(e),1e3*r)}catch(t){e.emit("stream:error",{condition:"connection-timeout",text:"Server did not respond in "+r+" seconds"}),e.transport&&(e.transport.hasStream=!1,e.transport.disconnect(!1))}}clearInterval(e._keepAliveInterval),e._keepAliveInterval=setInterval(o,1e3*n)},e._stopKeepAliveInterval=()=>{e._keepAliveInterval&&(clearInterval(e._keepAliveInterval),delete e._keepAliveInterval)},e.disableKeepAlive=()=>{delete e._keepAliveOptions,e._stopKeepAliveInterval()},e.on("stream:management:resumed",()=>{e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)}),e.on("stream:start",()=>{e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)});const t=async(t,n)=>{if(!e.config.useStreamManagement)return n();const r=async t=>{switch(t.type){case"enabled":return await e.sm.enabled(t),e.features.negotiated.streamManagement=!0,e.off("sm",r),n();case"resumed":return await e.sm.resumed(t),e.features.negotiated.streamManagement=!0,e.features.negotiated.bind=!0,e.sessionStarted=!0,e.sessionStarting=!1,e.off("sm",r),e.emit("stream:management:resumed",t),n("break");case"failed":await e.sm.failed(t),e.off("sm",r),e.emit("session:end"),n()}};e.on("sm",r),e.sm.id?e.sm.id&&e.sm.allowResume?await e.sm.resume():(e.off("sm",r),n()):e.features.negotiated.bind?await e.sm.enable():(e.off("sm",r),n())};e.registerFeature("streamManagement",200,t),e.registerFeature("streamManagement",500,t),e.registerFeature("clientStateIndication",400,(t,n)=>{e.features.negotiated.clientStateIndication=!0,n()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=(0,r.__importDefault)(n(290)),s=(0,r.__importStar)(n(10)),o=n(1);t.default=function(e){e.disco=new i.default,e.disco.addFeature(o.NS_DISCO_INFO),e.disco.addFeature(o.NS_DISCO_ITEMS),e.disco.addIdentity({category:"client",type:"web"}),e.registerFeature("caps",100,(t,n)=>{const r=s.getDomain(e.jid)||e.config.server;e.emit("disco:caps",{caps:t.legacyCapabilities||[],jid:r}),e.features.negotiated.caps=!0,n()}),e.getDiscoInfo=async(t,n)=>({extensions:[],features:[],identities:[],...(await e.sendIQ({disco:{node:n,type:"info"},to:t,type:"get"})).disco}),e.getDiscoItems=async(t,n)=>({items:[],...(await e.sendIQ({disco:{node:n,type:"items"},to:t,type:"get"})).disco}),e.updateCaps=()=>{const t=e.config.capsNode||"https://stanzajs.org";return e.disco.updateCaps(t)},e.getCurrentCaps=()=>{const t=e.disco.getCaps();if(!t)return;const n=`${t[0].node}#${t[0].value}`;return{info:e.disco.getNodeInfo(n),legacyCapabilities:t}},e.on("presence",t=>{t.legacyCapabilities&&e.emit("disco:caps",{caps:t.legacyCapabilities,jid:t.from})}),e.on("iq:get:disco",t=>{const{type:n,node:r}=t.disco;"info"===n&&e.sendIQResult(t,{disco:{...e.disco.getNodeInfo(r||""),node:r,type:"info"}}),"items"===n&&e.sendIQResult(t,{disco:{items:e.disco.items.get(r||"")||[],type:"items"}})})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(5),s=n(1),o=(0,r.__importStar)(n(9));t.default=function(e){e.disco.addFeature("jid\\20escaping"),e.disco.addFeature(s.NS_DELAY),e.disco.addFeature(s.NS_EME_0),e.disco.addFeature(s.NS_FORWARD_0),e.disco.addFeature(s.NS_HASHES_2),e.disco.addFeature(s.NS_HASHES_1),e.disco.addFeature(s.NS_IDLE_1),e.disco.addFeature(s.NS_JSON_0),e.disco.addFeature(s.NS_OOB),e.disco.addFeature(s.NS_PSA),e.disco.addFeature(s.NS_REFERENCE_0),e.disco.addFeature(s.NS_SHIM),e.disco.addFeature(s.NS_DATAFORM),e.disco.addFeature(s.NS_DATAFORM_MEDIA),e.disco.addFeature(s.NS_DATAFORM_VALIDATION),e.disco.addFeature(s.NS_DATAFORM_LAYOUT);const t=o.getHashes();for(const n of t)e.disco.addFeature((0,s.NS_HASH_NAME)(n));e.disco.addFeature(s.NS_TIME),e.disco.addFeature(s.NS_VERSION),e.on("iq:get:softwareVersion",t=>e.sendIQResult(t,{softwareVersion:e.config.softwareVersion||{name:"stanzajs.org",version:i.VERSION}})),e.on("iq:get:time",t=>{const n=new Date;e.sendIQResult(t,{time:{tzo:n.getTimezoneOffset(),utc:n}})}),e.getSoftwareVersion=async t=>(await e.sendIQ({softwareVersion:{},to:t,type:"get"})).softwareVersion,e.getTime=async t=>(await e.sendIQ({time:{},to:t,type:"get"})).time,e.getLastActivity=async t=>(await e.sendIQ({lastActivity:{},to:t,type:"get"})).lastActivity}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.features={handlers:Object.create(null),negotiated:Object.create(null),order:[]},e.registerFeature=function(t,n,r){this.features.order.push({name:t,priority:n}),this.features.order.sort((e,t)=>e.priority-t.priority),this.features.handlers[t]=r.bind(e)},e.on("features",async t=>{const n=e.features.negotiated,r=e.features.handlers,i=[];for(const{name:s}of e.features.order)t[s]&&r[s]&&!n[s]&&i.push(s);function s(e){return new Promise(n=>{r[e](t,(e,t)=>{n(e?{command:e,message:t}:null)})})}for(const t of i){if(n[t])continue;let r="",i="";try{const e=await s(t);e&&(r=e.command,i=e.message||"")}catch(e){r="disconnect",i=e.message,console.error(e)}if(r)return"restart"===r&&e.transport&&e.transport.restart(),void("disconnect"===r&&(e.emit("stream:error",{condition:"policy-violation",text:"Failed to negotiate stream features: "+i}),e.disconnect()))}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.default=function(e){e.discoverBindings=async t=>{const n=new Set,i=new Set,s=e.resolver.getHostMeta(t).then(e=>{var t;for(const s of null!==(t=e.links)&&void 0!==t?t:[])s.href&&s.rel===r.NS_ALT_CONNECTIONS_WEBSOCKET&&i.add(s.href),s.href&&s.rel===r.NS_ALT_CONNECTIONS_XBOSH&&n.add(s.href)}).catch(e=>console.error(e)),o=e.config.allowAlternateDNSDiscovery?e.resolver.resolveTXT("_xmppconnect."+t).then(e=>{for(const t of e)for(const e of t){if(e.startsWith("_xmpp-client-websocket=")){const t=e.substring(e.indexOf("=")+1);t&&i.add(t)}if(e.startsWith("_xmpp-client-xbosh=")){const t=e.substring(e.indexOf("=")+1);t&&n.add(t)}}}).catch(e=>console.error(e)):Promise.resolve();return await Promise.all([s,o]).catch(e=>console.error(e)),{bosh:[...n].filter(e=>e.startsWith("https://")),websocket:[...i].filter(e=>e.startsWith("wss://"))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(9),s=(0,r.__importStar)(n(56)),o=n(1);t.default=function(e){const t=!!i.RTCPeerConnection,n={...{advertiseAudio:t,advertiseFileTransfer:t,advertiseVideo:t,bundlePolicy:"balanced",hasRTCPeerConnection:t,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require",trickleIce:!0},...e.config.jingle},r=e.jingle=new s.SessionManager(n),a=[o.NS_JINGLE_1];n.hasRTCPeerConnection&&(a.push(o.NS_JINGLE_ICE_0,o.NS_JINGLE_ICE_UDP_1,o.NS_JINGLE_DTLS_SCTP_1,o.NS_JINGLE_DTLS_0,"urn:ietf:rfc:5888"),!1===n.trickleIce&&a.push("urn:ietf:rfc:3264"),(n.advertiseAudio||n.advertiseVideo)&&a.push(o.NS_JINGLE_RTP_1,o.NS_JINGLE_RTP_RTCP_FB_0,o.NS_JINGLE_RTP_HDREXT_0,"urn:ietf:rfc:5576"),n.advertiseAudio&&a.push(o.NS_JINGLE_RTP_AUDIO),n.advertiseVideo&&a.push(o.NS_JINGLE_RTP_VIDEO),n.advertiseFileTransfer&&a.push(o.NS_JINGLE_FILE_TRANSFER_4,o.NS_JINGLE_FILE_TRANSFER_5));for(const t of a)e.disco.addFeature(t);const c=["outgoing","incoming","accepted","terminated","ringing","mute","unmute","hold","resumed"];for(const t of c)r.on(t,(n,r)=>{e.emit("jingle:"+t,n,r)});r.on("createdSession",t=>{e.emit("jingle:created",t)}),r.on("send",async t=>{try{if("set"===t.type){const n=await e.sendIQ(t);n.jingle||(n.jingle={}),n.jingle.sid=t.jingle.sid,r.process(n)}"result"===t.type&&e.sendIQResult({type:"set",id:t.id,from:t.to},t),"error"===t.type&&e.sendIQError({type:"set",id:t.id,from:t.to},t)}catch(e){e.jingle||(e.jingle=t.jingle),e.jingle.sid=t.jingle.sid,r.process(e)}}),e.on("session:bound",e=>{r.selfID=e}),e.on("iq:set:jingle",e=>{r.process(e)}),e.on("unavailable",e=>{r.endPeerSessions(e.from,void 0,!0)}),e.getServices=async(t,n,r)=>{const i=(await e.sendIQ({externalServices:{type:n,version:r},to:t,type:"get"})).externalServices;return i.services=i.services||[],i},e.getServiceCredentials=async(t,n,r,i,s)=>(await e.sendIQ({externalServiceCredentials:{host:n,port:i,type:r,version:s},to:t,type:"get"})).externalServiceCredentials,e.discoverICEServers=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const n=(await e.getServices(e.config.server,void 0,t.version)).services||[],r=[];for(const t of n)e.jingle.addICEServer(t);return r}catch(e){return[]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(112),s=(0,r.__importStar)(n(10)),o=n(1);t.default=function(e){e.getHistorySearchForm=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=await e.sendIQ({archive:{type:"query",version:n.version},to:t,type:"get"});return r.archive.form},e.searchHistory=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.nextId();let a="";"string"==typeof t?a=t:(a=t.to||"",n=t),n.queryId=r;const c=n.form||{};c.type="submit";const u=c.fields||[],l=[{name:"FORM_TYPE",type:"hidden",value:o.NS_MAM_2}];n.with&&l.push({name:"with",type:"text-single",value:n.with}),n.start&&l.push({name:"start",type:"text-single",value:n.start.toISOString()}),n.end&&l.push({name:"end",type:"text-single",value:n.end.toISOString()}),c.fields=(0,i.mergeFields)(l,u),n.form=c;const d=s.allowedResponders(e.jid,a),p=[],h=e=>{d.has(e.from)&&e.archive&&e.archive.queryId===r&&p.push(e.archive)};e.on("mam:item",h);try{return{...(await e.sendIQ({archive:n,id:r,to:a,type:"set"})).archive,results:p}}finally{e.off("mam:item",h)}},e.getHistoryPreferences=async()=>(await e.sendIQ({archive:{type:"preferences"},type:"get"})).archive,e.setHistoryPreferences=t=>e.sendIQ({archive:{type:"preferences",...t},type:"set"}),e.on("message",t=>{t.archive&&e.emit("mam:item",t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeFields=void 0,t.mergeFields=function(e,t){const n=[],r=new Map;for(const e of t)e.name&&r.set(e.name,e);const i=new Set;for(const t of e)t.name&&r.has(t.name)?(n.push({...t,...r.get(t.name)}),i.add(t.name)):n.push({...t});for(const e of t)(!e.name||e.name&&!i.has(e.name))&&n.push({...e});return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,n(4).__importStar)(n(10)),i=n(1),s=new Set(["chat","groupchat","headline","normal"]),o=new Set(["chat","groupchat","normal"]),a=new Map([["markable",0],["received",1],["displayed",2],["acknowledged",3]]),c=(e,t)=>{var n;return e.marker&&(a.get(e.marker.type)<a.get(t)||"markable"===(null===(n=e.marker)||void 0===n?void 0:n.type))};async function u(e,t){await e.sendIQ({carbons:{action:t},type:"set"})}t.default=function(e){e.disco.addFeature(i.NS_ATTENTION_0),e.disco.addFeature(i.NS_CHAT_MARKERS_0),e.disco.addFeature(i.NS_CHAT_STATES),e.disco.addFeature(i.NS_CORRECTION_0),e.disco.addFeature(i.NS_RECEIPTS),e.disco.addFeature(i.NS_RTT_0),e.enableCarbons=()=>u(e,"enable"),e.disableCarbons=()=>u(e,"disable"),e.markReceived=t=>e.sendMarker(t,"received"),e.markDisplayed=t=>e.sendMarker(t,"displayed"),e.markAcknowledged=t=>e.sendMarker(t,"acknowledged"),e.getAttention=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendMessage({...n,requestingAttention:!0,to:t,type:"headline"})},e.sendMarker=(t,n,i)=>{if(!c(t,n)&&!i)return;const s=!1!==e.config.groupchatMarkersUseStanzaID;let o=t.id;if("groupchat"===t.type&&t.stanzaIds&&s){const e=t.stanzaIds.find(e=>r.equalBare(e.by,t.from));e&&(o=e.id)}e.sendMessage({marker:{id:o,type:n},to:"groupchat"===t.type?r.toBare(t.from):t.from,type:t.type})},e.on("message",t=>{if(t.carbon&&r.equalBare(t.from,e.jid)){const n=t.carbon.forward.message;n.delay||(n.delay=t.carbon.forward.delay||{timestamp:new Date(Date.now())}),(e=>!!e.carbon&&"received"===e.carbon.type)(t)&&(e.emit("carbon:received",t),e.emit("message",n)),(e=>!!e.carbon&&"sent"===e.carbon.type)(t)&&(e.emit("carbon:sent",t),e.emit("message:sent",n,!0))}(e=>!!e.forms&&e.forms.length>0)(t)&&e.emit("dataform",t),t.requestingAttention&&e.emit("attention",t),(e=>!!e.rtt)(t)&&e.emit("rtt",t),(e=>!!e.replace)(t)&&e.emit("replace",t),(e=>!!e.chatState)(t)&&o.has(t.type||"normal")&&e.emit("chat:state",t);const n=!1!==e.config.sendReceipts,i=!1!==e.config.sendMUCReceipts,a=!1!==e.config.chatMarkers,u=!1!==e.config.groupchatMarkersUseStanzaID,l=(e=>{var t;return!!e.receipt&&"request"===e.receipt.type&&s.has(null!==(t=e.type)&&void 0!==t?t:"normal")})(t),d=c(t,"received"),p=l&&n&&("groupchat"!==t.type||i);if(p||a&&d){const n="groupchat"===t.type?r.toBare(t.from):t.from;let i=t.id;if("groupchat"===t.type&&t.stanzaIds&&u){const e=t.stanzaIds.find(e=>r.equalBare(e.by,t.from));e&&(i=e.id)}e.sendMessage({receipt:p?{id:t.id,type:"received"}:void 0,marker:a&&d?{id:i,type:"received"}:void 0,to:n,type:t.type})}t.receipt&&"received"===t.receipt.type&&e.emit("receipt",t),t.marker&&"markable"!==t.marker.type&&e.emit("marker:"+t.marker.type,t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(5),s=(0,r.__importStar)(n(10)),o=n(1),a=n(13);t.default=function(e){e.disco.addFeature(o.NS_MUC),e.disco.addFeature(o.NS_MUC_DIRECT_INVITE),e.disco.addFeature(o.NS_HATS_0),e.joinedRooms=new Map,e.joiningRooms=new Map,e.leavingRooms=new Map,e.on("session:started",(function(){const t=e.joiningRooms;e.joiningRooms=new Map;for(const[n,r]of t)e.joinRoom(n,r);const n=e.joinedRooms;e.joinedRooms=new Map;for(const[t,r]of n)e.joinRoom(t,r)})),e.on("message",t=>{if("groupchat"!==t.type||!t.hasSubject||t.body){if(t.muc)if("direct-invite"===t.muc.type||!t.muc.invite&&t.legacyMUC){const n="direct-invite"===t.muc.type?t.muc:t.legacyMUC;e.emit("muc:invite",{from:t.from,password:n.password,reason:n.reason,room:n.jid,thread:n.thread,type:"direct"})}else t.muc.invite?e.emit("muc:invite",{from:t.muc.invite[0].from,password:t.muc.password,reason:t.muc.invite[0].reason,room:t.from,thread:t.muc.invite[0].thread,type:"mediated"}):t.muc.decline?e.emit("muc:declined",{from:t.muc.decline.from,reason:t.muc.decline.reason,room:t.from}):e.emit("muc:other",t)}else e.emit("muc:topic",{from:t.from,room:s.toBare(t.from),topic:t.subject||""})}),e.on("presence",t=>{const n=s.toBare(t.from);if(e.joiningRooms.has(n)&&"error"===t.type)return e.joiningRooms.delete(n),e.emit("muc:failed",t),void e.emit("muc:error",t);if(!function(e){return!!e.muc}(t))return;const r=t.muc.statusCodes&&t.muc.statusCodes.indexOf(i.MUCStatusCode.SelfPresence)>=0,o=t.muc.statusCodes&&t.muc.statusCodes.indexOf(i.MUCStatusCode.NickChanged)>=0;if("error"===t.type)return void e.emit("muc:error",t);if("unavailable"===t.type)return e.emit("muc:unavailable",t),r&&(o?e.joinedRooms.set(n,t.muc.nick):(e.emit("muc:leave",t),e.joinedRooms.delete(n),e.leavingRooms.delete(n))),void(t.muc.destroy&&e.emit("muc:destroyed",{newRoom:t.muc.destroy.jid,password:t.muc.destroy.password,reason:t.muc.destroy.reason,room:n}));e.emit("muc:available",t);const a=e.joiningRooms.has(n)||!e.joinedRooms.has(n);r&&(e.joinedRooms.set(n,s.getResource(t.from)),a&&(e.joiningRooms.delete(n),e.emit("muc:join",t)))}),e.joinRoom=async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t=s.toBare(t),e.joiningRooms.set(t,n||""),!n)try{n=await e.getReservedNick(t),e.joiningRooms.set(t,n)}catch(e){throw new Error("Room nick required")}return new Promise((i,o)=>{function a(n){s.equalBare(n.from,t)&&(e.off("muc:join",a),e.off("muc:failed",c),i(n))}function c(n){s.equalBare(n.from,t)&&(e.off("muc:join",a),e.off("muc:failed",c),o(n))}e.on("muc:join",a),e.on("muc:failed",c),e.sendPresence({...r,muc:{...r.muc,type:"join"},to:s.createFull(t,n)})})},e.leaveRoom=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=s.toBare(t),n=n||e.joinedRooms.get(t),e.leavingRooms.set(t,n),new Promise((i,o)=>{const c=r.id||(0,a.uuid)(),u=s.allowedResponders(t);function l(n){s.equalBare(n.from,t)&&(e.off("muc:leave",l),e.off("presence:error",d),i(n))}function d(n){n.id===c&&u.has(n.from)&&(e.joinedRooms.has(t)||e.leavingRooms.delete(t),e.off("muc:leave",l),e.off("presence:error",d),o(n))}e.on("muc:leave",l),e.on("presence:error",d),e.sendPresence({...r,id:c,to:s.createFull(t,n),type:"unavailable"})})},e.ban=(t,n,r)=>e.setRoomAffiliation(t,n,"outcast",r),e.kick=(t,n,r)=>e.setRoomRole(t,n,"none",r),e.invite=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(n)||(n=[n]),e.sendMessage({muc:{invite:n,type:"info"},to:t})},e.directInvite=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.sendMessage({muc:{...r,jid:t,type:"direct-invite"},to:n})},e.declineInvite=(t,n,r)=>{e.sendMessage({muc:{decline:{reason:r,to:n},type:"info"},to:t})},e.changeNick=(t,n)=>{const r=(0,a.uuid)(),o=s.createFull(t,n),c=s.allowedResponders(t);return new Promise((t,n)=>{function a(n){c.has(s.toBare(n.from))&&n.muc.statusCodes&&n.muc.statusCodes.includes(i.MUCStatusCode.SelfPresence)&&(e.off("muc:available",a),e.off("presence:id:"+r,u),t(n))}function u(i){c.has(s.toBare(i.from))&&i.id===r&&(e.off("muc:available",a),e.off("presence:id:"+r,u),"error"===i.type?n(i):t(i))}e.on("muc:available",a),e.on("presence:id:"+r,u),e.sendPresence({id:r,to:o})})},e.setSubject=(t,n)=>{e.sendMessage({subject:n,to:t,type:"groupchat"})},e.getReservedNick=async t=>{try{const n=(await e.getDiscoInfo(t,"x-roomuser-item")).identities[0];if(n.name)return n.name;throw new Error("No nickname reserved")}catch(e){throw new Error("No nickname reserved")}},e.requestRoomVoice=t=>{e.sendMessage({forms:[{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/muc#request"},{name:"muc#role",type:"text-single",value:"participant"}],type:"submit"}],to:t})},e.setRoomAffiliation=(t,n,r,i)=>e.sendIQ({muc:{type:"user-list",users:[{affiliation:r,jid:n,reason:i}]},to:t,type:"set"}),e.setRoomRole=(t,n,r,i)=>e.sendIQ({muc:{type:"user-list",users:[{nick:n,reason:i,role:r}]},to:t,type:"set"}),e.getRoomMembers=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{affiliation:"member"};return e.sendIQ({muc:{type:"user-list",users:[n]},to:t,type:"get"})},e.getRoomConfig=async t=>{const n=await e.sendIQ({muc:{type:"configure"},to:t,type:"get"});if(!n.muc.form)throw new Error("No configuration form returned");return n.muc.form},e.configureRoom=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{form:{...n,type:"submit"},type:"configure"},to:t,type:"set"})},e.destroyRoom=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{destroy:n,type:"configure"},to:t,type:"set"})},e.getUniqueRoomName=async function(e){const t=await this.sendIQ({muc:{type:"unique"},to:e,type:"get"});if(!t.muc.name)throw new Error("No unique name returned");return t.muc.name},e.getBookmarks=async()=>{const t=await e.getPrivateData("bookmarks");return t&&t.rooms?t.rooms:[]},e.setBookmarks=t=>e.setPrivateData("bookmarks",{rooms:t}),e.addBookmark=async t=>{const n=await e.getBookmarks(),r=[];let i=!1;for(const e of n)s.equalBare(e.jid,t.jid)?(r.push({...e,...t}),i=!0):r.push(e);return i||r.push(t),e.setBookmarks(r)},e.removeBookmark=async t=>{const n=(await e.getBookmarks()).filter(e=>!s.equalBare(e.jid,t));return e.setBookmarks(n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.default=function(e){e.disco.addFeature(r.NS_ACTIVITY),e.disco.addFeature(r.NS_GEOLOC),e.disco.addFeature(r.NS_MOOD),e.disco.addFeature(r.NS_NICK),e.disco.addFeature(r.NS_TUNE),e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_ACTIVITY)),e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_GEOLOC)),e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_MOOD)),e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_NICK)),e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_TUNE)),e.publishActivity=t=>e.publish("",r.NS_ACTIVITY,{itemType:r.NS_ACTIVITY,...t}),e.publishGeoLoc=t=>e.publish("",r.NS_GEOLOC,{itemType:r.NS_GEOLOC,...t}),e.publishMood=t=>e.publish("",r.NS_MOOD,{itemType:r.NS_MOOD,...t}),e.publishNick=t=>e.publish("",r.NS_NICK,{itemType:r.NS_NICK,nick:t}),e.publishTune=t=>e.publish("",r.NS_TUNE,{itemType:r.NS_TUNE,...t}),e.on("pubsub:published",t=>{const n=t.pubsub.items.published[0].content;switch(t.pubsub.items.node){case r.NS_ACTIVITY:return e.emit("activity",{activity:n,jid:t.from});case r.NS_GEOLOC:return e.emit("geoloc",{geoloc:n,jid:t.from});case r.NS_MOOD:return e.emit("mood",{jid:t.from,mood:n});case r.NS_NICK:return e.emit("nick",{jid:t.from,nick:n.nick});case r.NS_TUNE:return e.emit("tune",{jid:t.from,tune:t.pubsub.items.published[0].content})}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,n(4).__importStar)(n(10)),i=n(1);t.default=function(e){e.disco.addFeature(i.NS_SHIM+"#SubID",i.NS_SHIM),e.on("message",t=>{!function(e){return!!e.pubsub&&!(e.pubsub.context&&"user"!==e.pubsub.context||!e.pubsub.affiliations)}(t)?function(e){return!!e.pubsub}(t)&&(e.emit("pubsub:event",t),!function(e){return!!e.pubsub.items&&!!e.pubsub.items.published}(t)?!function(e){return!!e.pubsub.items&&!!e.pubsub.items.retracted}(t)?!function(e){return"purge"===e.pubsub.eventType}(t)?!function(e){return"delete"===e.pubsub.eventType}(t)?!function(e){return"subscription"===e.pubsub.eventType}(t)?function(e){return"configuration"===e.pubsub.eventType}(t)&&e.emit("pubsub:config",t):e.emit("pubsub:subscription",t):e.emit("pubsub:deleted",t):e.emit("pubsub:purged",t):e.emit("pubsub:retracted",t):e.emit("pubsub:published",t)):e.emit("pubsub:affiliations",t)}),e.subscribeToNode=async(t,n)=>{const i={};let s;"string"==typeof n?(i.node=n,i.jid=r.toBare(e.jid)):(i.node=n.node,i.jid=n.jid||(n.useBareJID?r.toBare(e.jid):e.jid),s=n.options);const o=await e.sendIQ({pubsub:{context:"user",subscribe:i,subscriptionOptions:s?{form:s}:void 0},to:t,type:"set"}),a=o.pubsub.subscription||{};return o.pubsub.subscriptionOptions&&(a.options=o.pubsub.subscriptionOptions.form),a},e.unsubscribeFromNode=async(t,n)=>{const i={};"string"==typeof n?(i.node=n,i.jid=r.toBare(e.jid)):(i.node=n.node,i.subid=n.subid,i.jid=n.jid||(n.useBareJID?r.toBare(e.jid):e.jid));const s=await e.sendIQ({pubsub:{context:"user",unsubscribe:i},to:t,type:"set"});return s.pubsub&&s.pubsub.subscription?s.pubsub.subscription:{...i,state:"none"}},e.publish=(t,n,r,i)=>e.sendIQ({pubsub:{context:"user",publish:{item:{content:r,id:i},node:n}},to:t,type:"set"}),e.getItem=async(t,n,r)=>(await e.sendIQ({pubsub:{context:"user",fetch:{items:[{id:r}],node:n}},to:t,type:"get"})).pubsub.fetch.items[0],e.getItems=async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=await e.sendIQ({pubsub:{context:"user",fetch:{max:r.max,node:n},paging:r},to:t,type:"get"}),s=i.pubsub.fetch;return s.paging=i.pubsub.paging,s},e.retract=(t,n,r,i)=>e.sendIQ({pubsub:{context:"user",retract:{id:r,node:n,notify:i}},to:t,type:"set"}),e.purgeNode=(t,n)=>e.sendIQ({pubsub:{context:"owner",purge:n},to:t,type:"set"}),e.deleteNode=(t,n,r)=>e.sendIQ({pubsub:{context:"owner",destroy:{node:n,redirect:r}},to:t,type:"set"}),e.createNode=async(t,n,r)=>{const i=await e.sendIQ({pubsub:{configure:r?{form:r}:void 0,context:"user",create:{node:n}},to:t,type:"set"});return i.pubsub&&i.pubsub.create?i.pubsub.create:{node:n}},e.getSubscriptions=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=await e.sendIQ({pubsub:{context:"user",subscriptions:n},to:t,type:"get"});return r.pubsub.subscriptions},e.getAffiliations=(t,n)=>e.sendIQ({pubsub:{affiliations:{node:n}},to:t,type:"get"}),e.getNodeSubscribers=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"string"==typeof n?r.node=n:r={...r,...n},e.sendIQ({pubsub:{context:"owner",subscriptions:r},to:t,type:"get"})},e.updateNodeSubscriptions=(t,n,r)=>e.sendIQ({pubsub:{context:"owner",subscriptions:{items:r,node:n}},to:t,type:"set"}),e.getNodeAffiliations=async(t,n)=>(await e.sendIQ({pubsub:{affiliations:{node:n},context:"owner"},to:t,type:"get"})).pubsub.affiliations,e.updateNodeAffiliations=(t,n,r)=>e.sendIQ({pubsub:{affiliations:{items:r,node:n},context:"owner"},to:t,type:"set"}),e.getNodeConfig=async(t,n)=>(await e.sendIQ({pubsub:{configure:{node:n},context:"owner"},to:t,type:"get"})).pubsub.configure.form||{},e.getDefaultNodeConfig=async t=>(await e.sendIQ({pubsub:{context:"owner",defaultConfiguration:{}},to:t,type:"get"})).pubsub.defaultConfiguration.form||{},e.configureNode=async(t,n,r)=>e.sendIQ({pubsub:{configure:{form:r,node:n},context:"owner"},to:t,type:"set"}),e.getDefaultSubscriptionOptions=async t=>(await e.sendIQ({pubsub:{defaultSubscriptionOptions:{}},to:t,type:"get"})).pubsub.defaultSubscriptionOptions.form||{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,n(4).__importStar)(n(10));t.default=function(e){async function t(t,n){await e.sendIQ({blockList:{action:t,jids:[n]},type:"set"})}e.on("iq:set:roster",t=>{if(!r.allowedResponders(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});e.emit("roster:update",t),e.sendIQResult(t)}),e.on("iq:set:blockList",t=>{if(!r.allowedResponders(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});const n=t.blockList;e.emit(n.action,{jids:n.jids||[]}),e.sendIQResult(t)}),e.getRoster=async()=>{const t=await e.sendIQ({roster:{version:e.config.rosterVer},type:"get"});if(t.roster){const n=t.roster.version;return n&&(e.config.rosterVer=n,e.emit("roster:ver",n)),t.roster.items=t.roster.items||[],t.roster}return{items:[]}},e.updateRosterItem=async t=>{await e.sendIQ({roster:{items:[t]},type:"set"})},e.removeRosterItem=t=>e.updateRosterItem({jid:t,subscription:"remove"}),e.subscribe=t=>{e.sendPresence({type:"subscribe",to:t})},e.unsubscribe=t=>{e.sendPresence({type:"unsubscribe",to:t})},e.acceptSubscription=t=>{e.sendPresence({type:"subscribed",to:t})},e.denySubscription=t=>{e.sendPresence({type:"unsubscribed",to:t})},e.getBlocked=async()=>({jids:[],...(await e.sendIQ({blockList:{action:"list"},type:"get"})).blockList}),e.block=async e=>t("block",e),e.unblock=async e=>t("unblock",e),e.goInvisible=async function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];await e.sendIQ({type:"set",visiblity:{probe:t,type:"invisible"}})},e.goVisible=async()=>{await e.sendIQ({type:"set",visiblity:{type:"visible"}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.registerFeature("sasl",100,async(t,n)=>{const r=e.sasl.createMechanism(t.sasl.mechanisms),i=async t=>{if(r)switch(t.type){case"success":return e.features.negotiated.sasl=!0,e.off("sasl",i),e.emit("auth:success",e.config.credentials),e.transport&&(e.transport.authenticated=!0),void n("restart");case"challenge":r.processChallenge(t.value);try{const t=await e.getCredentials(),n=r.createResponse(t);n||""===n?e.send("sasl",{type:"response",value:n}):e.send("sasl",{type:"response"});const i=r.getCacheableCredentials();i&&(e.config.credentials||(e.config.credentials={}),e.config.credentials={...e.config.credentials,...i},e.emit("credentials:update",e.config.credentials))}catch(t){console.error(t),e.send("sasl",{type:"abort"})}return;case"failure":case"abort":return e.off("sasl",i),e.emit("auth:failed"),void n("disconnect","authentication failed")}};if(!r)return e.off("sasl",i),e.emit("auth:failed"),n("disconnect","authentication failed");e.on("sasl",i),e.once("--reset-stream-features",()=>{e.features.negotiated.sasl=!1,e.off("sasl",i)});try{const t=await e.getCredentials();e.send("sasl",{mechanism:r.name,type:"auth",value:r.createResponse(t)})}catch(t){console.error(t),e.send("sasl",{type:"abort"})}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,n(4).__importStar)(n(10)),i=n(1);t.default=function(e){async function t(t){const n=await e.getDiscoInfo(t);if(!n.features||!n.features.includes(i.NS_HTTP_UPLOAD_0))return;let r;for(const e of n.extensions||[]){const n=e.fields||[];if(n.some(e=>"FORM_TYPE"===e.name&&e.value===i.NS_HTTP_UPLOAD_0)){const e=n.find(e=>"max-file-size"===e.name);return e&&(r=parseInt(e.value,10)),{jid:t,maxSize:r}}}}e.disco.addFeature(i.NS_BOB),e.getBits=async(t,n)=>(await e.sendIQ({bits:{cid:n},to:t,type:"get"})).bits,e.getUploadService=async function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.getDomain(e.jid);const i=await t(n);if(i)return i;const s=await e.getDiscoItems(n);for(const e of s.items||[]){if(!e.jid)continue;const n=await t(e.jid);if(n)return n}throw new Error("No upload service discovered on: "+n)},e.getUploadSlot=async(t,n)=>(await e.sendIQ({httpUpload:{type:"request",...n},to:t,type:"get"})).httpUpload}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4);(0,r.__exportStar)(n(121),t),(0,r.__exportStar)(n(122),t),(0,r.__exportStar)(n(123),t),(0,r.__exportStar)(n(124),t),(0,r.__exportStar)(n(125),t),(0,r.__exportStar)(n(126),t),(0,r.__exportStar)(n(127),t),(0,r.__exportStar)(n(128),t),(0,r.__exportStar)(n(129),t),(0,r.__exportStar)(n(130),t),(0,r.__exportStar)(n(131),t),(0,r.__exportStar)(n(132),t),(0,r.__exportStar)(n(133),t),(0,r.__exportStar)(n(134),t),(0,r.__exportStar)(n(135),t),(0,r.__exportStar)(n(136),t),(0,r.__exportStar)(n(137),t),(0,r.__exportStar)(n(138),t),(0,r.__exportStar)(n(139),t),(0,r.__exportStar)(n(140),t),(0,r.__exportStar)(n(141),t),(0,r.__exportStar)(n(142),t),(0,r.__exportStar)(n(143),t),(0,r.__exportStar)(n(144),t),(0,r.__exportStar)(n(145),t),(0,r.__exportStar)(n(146),t),(0,r.__exportStar)(n(147),t),(0,r.__exportStar)(n(148),t),(0,r.__exportStar)(n(149),t),(0,r.__exportStar)(n(150),t),(0,r.__exportStar)(n(151),t),(0,r.__exportStar)(n(152),t),(0,r.__exportStar)(n(153),t),(0,r.__exportStar)(n(154),t),(0,r.__exportStar)(n(155),t),(0,r.__exportStar)(n(156),t),(0,r.__exportStar)(n(157),t),(0,r.__exportStar)(n(158),t),(0,r.__exportStar)(n(159),t),(0,r.__exportStar)(n(160),t),(0,r.__exportStar)(n(161),t),(0,r.__exportStar)(n(162),t),(0,r.__exportStar)(n(163),t),(0,r.__exportStar)(n(164),t),(0,r.__exportStar)(n(165),t),(0,r.__exportStar)(n(166),t),(0,r.__exportStar)(n(167),t),(0,r.__exportStar)(n(168),t),(0,r.__exportStar)(n(169),t),(0,r.__exportStar)(n(170),t),(0,r.__exportStar)(n(171),t),(0,r.__exportStar)(n(172),t),(0,r.__exportStar)(n(173),t),(0,r.__exportStar)(n(174),t),(0,r.__exportStar)(n(175),t),(0,r.__exportStar)(n(176),t),(0,r.__exportStar)(n(177),t),(0,r.__exportStar)(n(178),t),(0,r.__exportStar)(n(179),t),(0,r.__exportStar)(n(180),t),(0,r.__exportStar)(n(181),t),(0,r.__exportStar)(n(182),t),(0,r.__exportStar)(n(183),t),(0,r.__exportStar)(n(184),t),(0,r.__exportStar)(n(185),t),(0,r.__exportStar)(n(186),t),(0,r.__exportStar)(n(187),t),(0,r.__exportStar)(n(188),t),(0,r.__exportStar)(n(189),t),(0,r.__exportStar)(n(190),t),(0,r.__exportStar)(n(191),t),(0,r.__exportStar)(n(192),t),(0,r.__exportStar)(n(193),t),(0,r.__exportStar)(n(194),t),(0,r.__exportStar)(n(195),t),(0,r.__exportStar)(n(196),t),(0,r.__exportStar)(n(197),t),(0,r.__exportStar)(n(198),t),(0,r.__exportStar)(n(199),t),(0,r.__exportStar)(n(200),t),(0,r.__exportStar)(n(63),t);const i=(0,r.__importDefault)(n(121)),s=(0,r.__importDefault)(n(122)),o=(0,r.__importDefault)(n(123)),a=(0,r.__importDefault)(n(124)),c=(0,r.__importDefault)(n(125)),u=(0,r.__importDefault)(n(126)),l=(0,r.__importDefault)(n(127)),d=(0,r.__importDefault)(n(128)),p=(0,r.__importDefault)(n(129)),h=(0,r.__importDefault)(n(130)),f=(0,r.__importDefault)(n(131)),m=(0,r.__importDefault)(n(132)),g=(0,r.__importDefault)(n(133)),y=(0,r.__importDefault)(n(134)),b=(0,r.__importDefault)(n(135)),v=(0,r.__importDefault)(n(136)),_=(0,r.__importDefault)(n(137)),S=(0,r.__importDefault)(n(138)),w=(0,r.__importDefault)(n(139)),T=(0,r.__importDefault)(n(140)),I=(0,r.__importDefault)(n(141)),A=(0,r.__importDefault)(n(142)),N=(0,r.__importDefault)(n(143)),E=(0,r.__importDefault)(n(144)),x=(0,r.__importDefault)(n(145)),R=(0,r.__importDefault)(n(146)),C=(0,r.__importDefault)(n(147)),O=(0,r.__importDefault)(n(148)),P=(0,r.__importDefault)(n(149)),k=(0,r.__importDefault)(n(150)),j=(0,r.__importDefault)(n(151)),M=(0,r.__importDefault)(n(152)),L=(0,r.__importDefault)(n(154)),D=(0,r.__importDefault)(n(155)),B=(0,r.__importDefault)(n(156)),F=(0,r.__importDefault)(n(153)),q=(0,r.__importDefault)(n(157)),U=(0,r.__importDefault)(n(158)),J=(0,r.__importDefault)(n(159)),z=(0,r.__importDefault)(n(160)),G=(0,r.__importDefault)(n(161)),H=(0,r.__importDefault)(n(162)),V=(0,r.__importDefault)(n(163)),W=(0,r.__importDefault)(n(164)),$=(0,r.__importDefault)(n(165)),Q=(0,r.__importDefault)(n(166)),K=(0,r.__importDefault)(n(167)),Y=(0,r.__importDefault)(n(168)),X=(0,r.__importDefault)(n(169)),Z=(0,r.__importDefault)(n(170)),ee=(0,r.__importDefault)(n(171)),te=(0,r.__importDefault)(n(172)),ne=(0,r.__importDefault)(n(173)),re=(0,r.__importDefault)(n(174)),ie=(0,r.__importDefault)(n(175)),se=(0,r.__importDefault)(n(176)),oe=(0,r.__importDefault)(n(177)),ae=(0,r.__importDefault)(n(178)),ce=(0,r.__importDefault)(n(179)),ue=(0,r.__importDefault)(n(180)),le=(0,r.__importDefault)(n(181)),de=(0,r.__importDefault)(n(182)),pe=(0,r.__importDefault)(n(183)),he=(0,r.__importDefault)(n(184)),fe=(0,r.__importDefault)(n(185)),me=(0,r.__importDefault)(n(186)),ge=(0,r.__importDefault)(n(187)),ye=(0,r.__importDefault)(n(188)),be=(0,r.__importDefault)(n(189)),ve=(0,r.__importDefault)(n(190)),_e=(0,r.__importDefault)(n(191)),Se=(0,r.__importDefault)(n(192)),we=(0,r.__importDefault)(n(193)),Te=(0,r.__importDefault)(n(194)),Ie=(0,r.__importDefault)(n(195)),Ae=(0,r.__importDefault)(n(196)),Ne=(0,r.__importDefault)(n(197)),Ee=(0,r.__importDefault)(n(198)),xe=(0,r.__importDefault)(n(199)),Re=(0,r.__importDefault)(n(200)),Ce=(0,r.__importDefault)(n(63)),Oe=[i.default,s.default,o.default,a.default,c.default,u.default,l.default,d.default,p.default,h.default,f.default,m.default,g.default,y.default,b.default,v.default,_.default,S.default,w.default,T.default,I.default,A.default,N.default,E.default,x.default,R.default,C.default,O.default,P.default,k.default,j.default,M.default,L.default,D.default,B.default,F.default,q.default,U.default,J.default,z.default,G.default,H.default,V.default,W.default,$.default,Q.default,K.default,Y.default,X.default,Z.default,ee.default,te.default,ne.default,re.default,ie.default,se.default,oe.default,ae.default,ce.default,ue.default,le.default,de.default,pe.default,he.default,fe.default,me.default,ge.default,ye.default,be.default,ve.default,_e.default,Se.default,we.default,Te.default,Ie.default,Ae.default,Ne.default,Ee.default,xe.default,Re.default,Ce.default];t.default=Oe},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:["features.legacySession","iq.legacySession"],element:"session",fields:{optional:(0,r.childBoolean)(null,"optional")},namespace:i.NS_SESSION};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:["atomentry",...(0,r.pubsubItemContentAliases)()],element:"entry",fields:{id:(0,r.childText)(null,"id"),published:(0,r.childDate)(null,"published"),updated:(0,r.childDate)(null,"updated")},namespace:i.NS_ATOM,type:i.NS_ATOM,typeField:"itemType"},{element:"summary",fields:{text:(0,r.text)(),type:(0,r.attribute)("type","text")},namespace:i.NS_ATOM,path:"atomentry.summary"},{element:"title",fields:{text:(0,r.text)(),type:(0,r.attribute)("type","text")},namespace:i.NS_ATOM,path:"atomentry.title"},{aliases:[{path:"atomentry.links",multiple:!0}],element:"link",fields:{href:(0,r.attribute)("href"),mediaType:(0,r.attribute)("type"),rel:(0,r.attribute)("rel")},namespace:i.NS_ATOM},{aliases:[{path:"atomentry.authors",multiple:!0}],element:"author",fields:{name:(0,r.childText)(null,"name"),uri:(0,r.childText)(null,"uri"),email:(0,r.childText)(null,"email")},namespace:i.NS_ATOM},{aliases:[{path:"atomentry.contributors",multiple:!0}],element:"contributor",fields:{name:(0,r.childText)(null,"name"),uri:(0,r.childText)(null,"uri"),email:(0,r.childText)(null,"email")},namespace:i.NS_ATOM},{aliases:[{path:"atomentry.categories",multiple:!0}],element:"category",fields:{term:(0,r.attribute)("term"),scheme:(0,r.attribute)("scheme"),label:(0,r.attribute)("label")},namespace:i.NS_ATOM},{element:"content",fields:{text:(0,r.text)(),type:(0,r.attribute)("type","text")},namespace:i.NS_ATOM,path:"atomentry.content"},{element:"rights",fields:{text:(0,r.text)(),type:(0,r.attribute)("type","text")},namespace:i.NS_ATOM,path:"atomentry.rights"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o={defaultType:"stream",element:"stream",fields:{from:(0,i.attribute)("from"),id:(0,i.attribute)("id"),lang:(0,i.languageAttribute)(),to:(0,i.attribute)("to"),version:(0,i.attribute)("version")},namespace:s.NS_STREAM,path:"stream",type:"stream",typeField:"action"},a={element:"features",namespace:s.NS_STREAM,path:"features"},c={element:"error",fields:{alternateLanguageText:(0,i.childAlternateLanguageText)(s.NS_STREAMS,"text"),condition:(0,i.childEnum)(s.NS_STREAMS,Object.values(r.StreamErrorCondition),r.StreamErrorCondition.UndefinedCondition),seeOtherHost:(0,i.childText)(s.NS_STREAMS,r.StreamErrorCondition.SeeOtherHost),text:(0,i.childText)(s.NS_STREAMS,"text")},namespace:s.NS_STREAM,path:"streamError"},u=Object.values(r.StreamType).map(e=>({aliases:["stanzaError","message.error","presence.error","iq.error"],defaultType:s.NS_CLIENT,element:"error",fields:{alternateLanguageText:(0,i.childAlternateLanguageText)(s.NS_STANZAS,"text"),by:(0,i.JIDAttribute)("by"),condition:(0,i.childEnum)(s.NS_STANZAS,Object.values(r.StanzaErrorCondition),r.StanzaErrorCondition.UndefinedCondition),gone:(0,i.childText)(s.NS_STANZAS,r.StanzaErrorCondition.Gone),redirect:(0,i.childText)(s.NS_STANZAS,r.StanzaErrorCondition.Redirect),text:(0,i.childText)(s.NS_STANZAS,"text"),type:(0,i.attribute)("type")},namespace:e,type:e,typeField:"streamType"})),l=new Set(["from","id","lang","to","type","payloadType","error","streamType"]),d=Object.values(r.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"iq",fields:{from:(0,i.JIDAttribute)("from"),id:(0,i.attribute)("id"),lang:(0,i.languageAttribute)(),payloadType:{order:-1e4,importer(e,t){if("get"!==t.data.type&&"set"!==t.data.type)return;if(1!==e.children.filter(e=>"string"!=typeof e).length)return"invalid-payload-count";const n=Object.keys(t.data).filter(e=>!l.has(e));return 1!==n.length?"unknown-payload":n[0]}},to:(0,i.JIDAttribute)("to"),type:(0,i.attribute)("type")},namespace:e,path:"iq",type:e,typeField:"streamType"})),p=Object.values(r.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"message",fields:{from:(0,i.JIDAttribute)("from"),id:(0,i.attribute)("id"),lang:(0,i.languageAttribute)(),to:(0,i.JIDAttribute)("to")},namespace:e,path:"message",type:e,typeField:"streamType"})),h=Object.values(r.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"presence",fields:{from:(0,i.JIDAttribute)("from"),id:(0,i.attribute)("id"),lang:(0,i.languageAttribute)(),to:(0,i.JIDAttribute)("to")},namespace:e,path:"presence",type:e,typeField:"streamType"})),f=[o,a,c,...u,...[{element:"mechanisms",fields:{mechanisms:(0,i.multipleChildText)(null,"mechanism")},namespace:s.NS_SASL,path:"features.sasl"},{element:"abort",namespace:s.NS_SASL,path:"sasl",type:"abort",typeField:"type"},{element:"auth",fields:{mechanism:(0,i.attribute)("mechanism"),value:(0,i.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"auth",typeField:"type"},{element:"challenge",fields:{value:(0,i.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"challenge",typeField:"type"},{element:"response",fields:{value:(0,i.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"response",typeField:"type"},{element:"success",fields:{value:(0,i.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"success",typeField:"type"},{element:"failure",fields:{alternateLanguageText:(0,i.childAlternateLanguageText)(s.NS_SASL,"text"),condition:(0,i.childEnum)(s.NS_SASL,Object.values(r.SASLFailureCondition)),text:(0,i.childText)(s.NS_SASL,"text")},namespace:s.NS_SASL,path:"sasl",type:"failure",typeField:"type"}],...[{aliases:["features.tls"],defaultType:"start",element:"starttls",fields:{required:(0,i.childBoolean)(null,"required")},namespace:s.NS_STARTTLS,path:"tls",type:"start",typeField:"type"},{element:"proceed",namespace:s.NS_STARTTLS,path:"tls",type:"proceed",typeField:"type"},{element:"failure",namespace:s.NS_STARTTLS,path:"tls",type:"failure",typeField:"type"}],...d,...p,...h,{aliases:["features.bind","iq.bind"],element:"bind",fields:{jid:(0,i.childText)(null,"jid"),resource:(0,i.childText)(null,"resource")},namespace:s.NS_BIND}];t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendStreamFeatures)({rosterPreApproval:(0,r.childBoolean)(i.NS_SUBSCRIPTION_PREAPPROVAL,"sub"),rosterVersioning:(0,r.childBoolean)(i.NS_ROSTER_VERSIONING,"ver")}),(0,r.extendMessage)({alternateLanguageBodies:(0,r.childAlternateLanguageText)(null,"body"),alternateLanguageSubjects:(0,r.childAlternateLanguageText)(null,"subject"),body:(0,r.childText)(null,"body"),hasSubject:(0,r.childBoolean)(null,"subject"),parentThread:(0,r.childAttribute)(null,"thread","parent"),subject:(0,r.childText)(null,"subject"),thread:(0,r.childText)(null,"thread"),type:(0,r.attribute)("type")}),(0,r.extendPresence)({alternateLanguageStatuses:(0,r.childAlternateLanguageText)(null,"status"),priority:(0,r.childInteger)(null,"priority",0),show:(0,r.childText)(null,"show"),status:(0,r.childText)(null,"status"),type:(0,r.attribute)("type")}),{element:"query",fields:{version:(0,r.attribute)("ver",void 0,{emitEmpty:!0})},namespace:i.NS_ROSTER,path:"iq.roster"},{aliases:[{path:"iq.roster.items",multiple:!0}],element:"item",fields:{groups:(0,r.multipleChildText)(null,"group"),jid:(0,r.JIDAttribute)("jid"),name:(0,r.attribute)("name"),pending:(0,r.attribute)("ask"),preApproved:(0,r.booleanAttribute)("approved"),subscription:(0,r.attribute)("subscription")},namespace:i.NS_ROSTER}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"open",fields:{from:(0,r.attribute)("from"),id:(0,r.attribute)("id"),lang:(0,r.languageAttribute)(),to:(0,r.attribute)("to"),version:(0,r.attribute)("version")},namespace:i.NS_FRAMING,path:"stream",type:"open"},{element:"close",fields:{seeOtherURI:(0,r.attribute)("see-other-uri")},namespace:i.NS_FRAMING,path:"stream",type:"close"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o=[{aliases:[{path:"message.forms",multiple:!0}],element:"x",fields:{instructions:{...(0,i.multipleChildText)(null,"instructions"),exportOrder:2},reported:{...(0,i.splicePath)(null,"reported","dataformField",!0),exportOrder:3},title:{...(0,i.childText)(null,"title"),exportOrder:1},type:(0,i.attribute)("type")},namespace:s.NS_DATAFORM,optionalNamespaces:{xdv:s.NS_DATAFORM_VALIDATION},path:"dataform"},{aliases:[{path:"dataform.fields",multiple:!0},{path:"dataform.items.fields",multiple:!0}],element:"field",fields:{description:(0,i.childText)(null,"desc"),label:(0,i.attribute)("label"),name:(0,i.attribute)("var"),rawValues:{...(0,i.multipleChildText)(null,"value"),exporter:()=>null},required:(0,i.childBoolean)(null,"required"),type:(0,i.attribute)("type"),value:{importer(e,t){const n=e.getAttribute("type"),o=(0,i.multipleChildText)(s.NS_DATAFORM,"value").importer(e,t),a=o[0];switch(n){case r.DataFormFieldType.TextMultiple:case r.DataFormFieldType.ListMultiple:case r.DataFormFieldType.JIDMultiple:return o;case r.DataFormFieldType.Hidden:case r.DataFormFieldType.Fixed:return 1===o.length?a:o;case r.DataFormFieldType.Boolean:if(a)return"1"===a||"true"===a;break;default:return a}},exporter(e,t,n){const r=(0,i.multipleChildText)(null,"value");let o=[];const a=n.data&&n.data.rawValues?n.data.rawValues[0]:void 0;if("boolean"==typeof t)o="true"===a||"false"===a?[a]:[t?"1":"0"];else if(Array.isArray(t))for(const e of t)o.push(e.toString());else o=[t.toString()];r.exporter(e,o,Object.assign({},n,{namespace:s.NS_DATAFORM}))}}},namespace:s.NS_DATAFORM,path:"dataformField"},{aliases:[{path:"dataform.fields.options",multiple:!0}],element:"option",fields:{label:(0,i.attribute)("label"),value:(0,i.childText)(null,"value")},namespace:s.NS_DATAFORM},{aliases:[{path:"dataform.items",multiple:!0}],element:"item",namespace:s.NS_DATAFORM},{element:"validate",fields:{listMax:(0,i.childIntegerAttribute)(null,"list-range","max"),listMin:(0,i.childIntegerAttribute)(null,"list-range","min"),method:(0,i.childEnum)(null,["basic","open","range","regex"],"basic"),rangeMax:(0,i.childAttribute)(null,"range","max"),rangeMin:(0,i.childAttribute)(null,"range","min"),regex:(0,i.childText)(null,"regex"),type:(0,i.attribute)("datatype","xs:string")},namespace:s.NS_DATAFORM_VALIDATION,path:"dataform.fields.validation"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:["presence.legacyLastActivity","iq.lastActivity"],element:"query",fields:{seconds:(0,r.integerAttribute)("seconds"),status:(0,r.text)()},namespace:i.NS_LAST_ACTIVITY}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"query",fields:{activeList:(0,r.childAttribute)(null,"active","name"),defaultList:(0,r.childAttribute)(null,"default","name")},namespace:i.NS_PRIVACY,path:"iq.privacy"},{aliases:[{path:"iq.privacy.lists",multiple:!0}],element:"list",fields:{name:(0,r.attribute)("name")},namespace:i.NS_PRIVACY},{aliases:[{path:"iq.privacy.lists.items",multiple:!0}],element:"item",fields:{action:(0,r.attribute)("action"),incomingPresence:(0,r.childBoolean)(null,"presence-in"),iq:(0,r.childBoolean)(null,"iq"),messages:(0,r.childBoolean)(null,"message"),order:(0,r.integerAttribute)("order"),outgoingPresence:(0,r.childBoolean)(null,"presence-out"),type:(0,r.attribute)("type"),value:(0,r.attribute)("value")},namespace:i.NS_PRIVACY}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:["iq.disco","message.disco","features.disco"],childrenExportOrder:{identities:1,features:2,extensions:3},element:"query",fields:{features:(0,r.multipleChildAttribute)(null,"feature","var"),node:(0,r.attribute)("node")},namespace:i.NS_DISCO_INFO,path:"disco",type:"info",typeField:"type"},{aliases:[{path:"disco.identities",selector:"info",multiple:!0}],element:"identity",fields:{category:(0,r.attribute)("category"),lang:(0,r.languageAttribute)(),name:(0,r.attribute)("name"),type:(0,r.attribute)("type")},namespace:i.NS_DISCO_INFO},{aliases:[{path:"disco.items",multiple:!0,selector:"items"}],element:"item",fields:{jid:(0,r.JIDAttribute)("jid"),name:(0,r.attribute)("name"),node:(0,r.attribute)("node")},namespace:i.NS_DISCO_ITEMS},{aliases:[{path:"disco.items",multiple:!0,selector:"info"}],element:"item",fields:{category:(0,r.JIDAttribute)("category"),lang:(0,r.languageAttribute)(),name:(0,r.attribute)("name"),type:(0,r.attribute)("type")},namespace:i.NS_DISCO_INFO},(0,r.addAlias)(i.NS_DATAFORM,"x",[{path:"disco.extensions",multiple:!0,selector:"info"}]),(0,r.addAlias)(i.NS_RSM,"set",[{path:"disco.paging",selector:"items"}]),{aliases:["iq.disco","message.disco","features.disco"],element:"query",fields:{node:(0,r.attribute)("node")},namespace:i.NS_DISCO_ITEMS,path:"disco",type:"items",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({addresses:(0,r.splicePath)(i.NS_ADDRESS,"addresses","extendedAddress",!0)}),(0,r.extendPresence)({addresses:(0,r.splicePath)(i.NS_ADDRESS,"addresses","extendedAddress",!0)}),{element:"address",fields:{alternateLanguageDescriptions:(0,r.childAlternateLanguageText)(null,"desc"),delivered:(0,r.booleanAttribute)("delivered"),description:(0,r.attribute)("desc"),jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node"),type:(0,r.attribute)("type"),uri:(0,r.attribute)("uri")},namespace:i.NS_ADDRESS,path:"extendedAddress"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_DATAFORM,"x",[{path:"iq.muc.form",selector:"configure"}]),{defaultType:"info",element:"x",fields:{password:(0,r.childText)(null,"password")},namespace:i.NS_MUC,path:"presence.muc",type:"join",typeField:"type"},{aliases:[{path:"presence.muc.history",selector:"join"}],element:"history",fields:{maxCharacters:(0,r.integerAttribute)("maxchars"),maxStanzas:(0,r.integerAttribute)("maxstanzas"),seconds:(0,r.integerAttribute)("seconds"),since:(0,r.dateAttribute)("since")},namespace:i.NS_MUC},{aliases:["presence.muc","message.muc"],defaultType:"info",element:"x",fields:{action:(0,r.childEnum)(null,["invite","decline","destroy"]),actor:(0,r.splicePath)(null,"item","mucactor"),affiliation:(0,r.childAttribute)(null,"item","affiliation"),jid:(0,r.childJIDAttribute)(null,"item","jid"),nick:(0,r.childAttribute)(null,"item","nick"),password:(0,r.childText)(null,"password"),reason:(0,r.deepChildText)([{namespace:null,element:"item"},{namespace:null,element:"reason"}]),role:(0,r.childAttribute)(null,"item","role"),statusCodes:(0,r.multipleChildAttribute)(null,"status","code")},namespace:i.NS_MUC_USER,type:"info",typeField:"type",typeOrder:1},{element:"actor",fields:{jid:(0,r.JIDAttribute)("jid"),nick:(0,r.attribute)("nick")},namespace:i.NS_MUC_USER,path:"mucactor"},{element:"destroy",fields:{jid:(0,r.JIDAttribute)("jid"),password:(0,r.childText)(null,"password"),reason:(0,r.childText)(null,"reason")},namespace:i.NS_MUC_USER,path:"presence.muc.destroy"},{aliases:[{path:"message.muc.invite",multiple:!0}],element:"invite",fields:{continue:(0,r.childBoolean)(null,"continue"),from:(0,r.JIDAttribute)("from"),reason:(0,r.childText)(null,"reason"),thread:(0,r.childAttribute)(null,"continue","thread"),to:(0,r.JIDAttribute)("to")},namespace:i.NS_MUC_USER},{element:"decline",fields:{from:(0,r.JIDAttribute)("from"),reason:(0,r.childText)(null,"reason"),to:(0,r.JIDAttribute)("to")},namespace:i.NS_MUC_USER,path:"message.muc",type:"decline"},{element:"query",namespace:i.NS_MUC_ADMIN,path:"iq.muc",type:"user-list",typeField:"type"},{aliases:[{path:"iq.muc.users",multiple:!0,selector:"user-list"}],element:"item",fields:{affiliation:(0,r.attribute)("affiliation"),jid:(0,r.JIDAttribute)("jid"),nick:(0,r.attribute)("nick"),reason:(0,r.childText)(null,"reason"),role:(0,r.attribute)("role")},namespace:i.NS_MUC_ADMIN},{aliases:["iq.muc.users.actor"],element:"actor",fields:{jid:(0,r.JIDAttribute)("jid"),nick:(0,r.attribute)("nick")},namespace:i.NS_MUC_ADMIN},{element:"query",namespace:i.NS_MUC_OWNER,path:"iq.muc",type:"configure",typeField:"type"},{aliases:[{path:"iq.muc.destroy",selector:"configure"}],element:"destroy",fields:{jid:(0,r.JIDAttribute)("jid"),password:(0,r.childText)(null,"password"),reason:(0,r.childText)(null,"reason")},namespace:i.NS_MUC_OWNER},{element:"x",fields:{action:(0,r.staticValue)("invite"),continue:(0,r.booleanAttribute)("continue"),jid:(0,r.JIDAttribute)("jid"),legacyReason:(0,r.text)(),password:(0,r.attribute)("password"),reason:(0,r.attribute)("reason"),thread:(0,r.attribute)("thread")},namespace:i.NS_MUC_DIRECT_INVITE,path:"message.muc",type:"direct-invite",typeOrder:2},{element:"unique",fields:{name:(0,r.text)()},namespace:i.NS_MUC_UNIQUE,path:"iq.muc",type:"unique"},(0,r.extendMessage)({legacyMUC:{exporter(e,t,n){const r=n.registry?n.registry.export("message.muc",{...t,type:"direct-invite"}):void 0;r&&e.appendChild(r)},exportOrder:100001,importer(e,t){if(!(0,r.findAll)(e,i.NS_MUC_USER,"x")[0])return;const n=(0,r.findAll)(e,i.NS_MUC_DIRECT_INVITE,"x")[0];return n&&t.registry?t.registry.import(n,{...t,path:"message"}):void 0},importOrder:-1}})];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:["iq.ibb","message.ibb"],element:"open",fields:{ack:{importer:(e,t)=>"message"!==(0,r.attribute)("stanza","iq").importer(e,t),exporter(e,t,n){(0,r.attribute)("stanza").exporter(e,t?"iq":"message",n)}},blockSize:(0,r.integerAttribute)("block-size"),sid:(0,r.attribute)("sid")},namespace:i.NS_IBB,type:"open",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"close",fields:{sid:(0,r.attribute)("sid")},namespace:i.NS_IBB,type:"close",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"data",fields:{data:(0,r.textBuffer)("base64"),seq:(0,r.integerAttribute)("seq"),sid:(0,r.attribute)("sid")},namespace:i.NS_IBB,type:"data",typeField:"action"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:[{path:"bookmarkStorage",impliedType:!0},{path:"iq.privateStorage.bookmarks",impliedType:!0},...(0,r.pubsubItemContentAliases)()],element:"storage",namespace:i.NS_BOOKMARKS,type:i.NS_BOOKMARKS,typeField:"itemType"},{aliases:[{path:"bookmarkStorage.rooms",multiple:!0}],element:"conference",fields:{autoJoin:(0,r.booleanAttribute)("autojoin"),jid:(0,r.JIDAttribute)("jid"),name:(0,r.attribute)("name"),nick:(0,r.childText)(null,"nick"),password:(0,r.childText)(null,"password")},namespace:i.NS_BOOKMARKS}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={element:"query",namespace:n(1).NS_PRIVATE,path:"iq.privateStorage"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_DATAFORM,"x",["iq.command.form"]),(0,r.extendStanzaError)({commandError:(0,r.childEnum)(i.NS_ADHOC_COMMANDS,["bad-action","bad-locale","bad-payload","bad-sessionid","malformed-action","session-expired"])}),{element:"command",fields:{action:(0,r.attribute)("action"),node:(0,r.attribute)("node"),sid:(0,r.attribute)("sessionid"),status:(0,r.attribute)("status")},namespace:i.NS_ADHOC_COMMANDS,path:"iq.command"},{element:"actions",fields:{complete:(0,r.childBoolean)(null,"complete"),execute:(0,r.attribute)("execute"),next:(0,r.childBoolean)(null,"next"),prev:(0,r.childBoolean)(null,"prev")},namespace:i.NS_ADHOC_COMMANDS,path:"iq.command.availableActions"},{aliases:[{path:"iq.command.notes",multiple:!0}],element:"note",fields:{type:(0,r.attribute)("type"),value:(0,r.text)()},namespace:i.NS_ADHOC_COMMANDS}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s="vcardTemp.records";function o(e,t){return{aliases:[{multiple:!0,path:s}],element:e,fields:{value:(0,r.text)()},namespace:i.NS_VCARD_TEMP,type:t,typeField:"type"}}const a=[{aliases:[{path:"iq.vcard"}],defaultType:i.NS_VCARD_TEMP,element:"vCard",fields:{fullName:(0,r.childText)(null,"FN")},namespace:i.NS_VCARD_TEMP,path:"vcardTemp",type:i.NS_VCARD_TEMP,typeField:"format"},{element:"N",fields:{additional:{...(0,r.childText)(null,"MIDDLE"),order:3},family:{...(0,r.childText)(null,"FAMILY"),order:1},given:{...(0,r.childText)(null,"GIVEN"),order:2},prefix:{...(0,r.childText)(null,"PREFIX"),order:4},suffix:{...(0,r.childText)(null,"SUFFIX"),order:5}},namespace:i.NS_VCARD_TEMP,path:"vcardTemp.name"},o("NICKNAME","nickname"),o("BDAY","birthday"),o("JABBERID","jid"),o("TZ","timezone"),o("TITLE","title"),o("ROLE","role"),o("URL","url"),o("NOTE","note"),o("SORT-STRING","sort"),o("UID","uid"),o("REV","revision"),o("PRODID","productId"),o("DESC","description"),{aliases:[{multiple:!0,path:s}],element:"EMAIL",fields:{preferred:(0,r.childBoolean)(null,"PREF"),types:(0,r.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["internet","INTERNET"]]),value:(0,r.childText)(null,"USERID")},namespace:i.NS_VCARD_TEMP,type:"email"},{aliases:[{path:s,multiple:!0}],element:"ORG",fields:{units:{...(0,r.multipleChildText)(null,"ORGUNIT"),order:2},value:{...(0,r.childText)(null,"ORGNAME"),order:1}},namespace:i.NS_VCARD_TEMP,type:"organization",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"ADR",fields:{city:(0,r.childText)(null,"LOCALITY"),code:(0,r.childText)(null,"PCODE"),country:(0,r.childText)(null,"CTRY"),pobox:(0,r.childText)(null,"POBOX"),preferred:(0,r.childBoolean)(null,"PREF"),region:(0,r.childText)(null,"REGION"),street:(0,r.childText)(null,"STREET"),street2:(0,r.childText)(null,"EXTADD"),types:(0,r.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["domestic","DOM"],["international","INTL"],["postal","POSTAL"],["parcel","PARCEL"]])},namespace:i.NS_VCARD_TEMP,type:"address",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"LABEL",fields:{lines:(0,r.multipleChildText)(null,"LINE"),preferred:(0,r.childBoolean)(null,"PREF"),types:(0,r.multipleChildEnum)(null,[["home","HOME"],["work","WORK"]])},namespace:i.NS_VCARD_TEMP,type:"addressLabel",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"TEL",fields:{preferred:(0,r.childBoolean)(null,"PREF"),types:(0,r.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["cell","CELL"],["fax","FAX"],["voice","VOICE"],["msg","MSG"]]),value:(0,r.childText)(null,"NUMBER","",!0)},namespace:i.NS_VCARD_TEMP,type:"tel",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"PHOTO",fields:{data:(0,r.childText)(null,"BINVAL"),mediaType:(0,r.childText)(null,"TYPE"),url:(0,r.childText)(null,"EXTVAL")},namespace:i.NS_VCARD_TEMP,type:"photo",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"LOGO",fields:{data:(0,r.childText)(null,"BINVAL"),mediaType:(0,r.childText)(null,"TYPE"),url:(0,r.childText)(null,"EXTVAL")},namespace:i.NS_VCARD_TEMP,type:"logo",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"CATEGORIES",fields:{value:(0,r.multipleChildText)(null,"KEYWORD")},namespace:i.NS_VCARD_TEMP,type:"categories",typeField:"type"}];t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_DATAFORM,"x",["iq.search.form"]),(0,r.addAlias)(i.NS_RSM,"set",["iq.search.paging"]),{element:"query",fields:{email:(0,r.childText)(null,"email"),familyName:(0,r.childText)(null,"last"),givenName:(0,r.childText)(null,"first"),instructions:(0,r.childText)(null,"instructions"),nick:(0,r.childText)(null,"nick")},namespace:i.NS_SEARCH,path:"iq.search"},{aliases:[{path:"iq.search.items",multiple:!0}],element:"item",fields:{email:(0,r.childText)(null,"email"),familyName:(0,r.childText)(null,"last"),givenName:(0,r.childText)(null,"first"),jid:(0,r.JIDAttribute)("jid"),nick:(0,r.childText)(null,"nick")},namespace:i.NS_SEARCH}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:["iq.pubsub.paging"],element:"set",fields:{after:(0,r.childText)(null,"after"),before:(0,r.childText)(null,"before"),count:(0,r.childInteger)(null,"count"),first:(0,r.childText)(null,"first"),firstIndex:(0,r.childIntegerAttribute)(null,"first","index"),index:(0,r.childInteger)(null,"index"),last:(0,r.childText)(null,"last"),max:(0,r.childInteger)(null,"max")},namespace:i.NS_RSM,path:"paging"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o={configurable:(0,i.childBoolean)(null,"subscribe-options"),configurationRequired:(0,i.deepChildBoolean)([{namespace:null,element:"subscribe-options"},{namespace:null,element:"required"}]),jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node"),state:(0,i.attribute)("subscription"),subid:(0,i.attribute)("subid")},a={node:(0,i.attribute)("node")},c=[{aliases:["pubsub","iq.pubsub","message.pubsub"],childrenExportOrder:{configure:0,create:100,publish:100,subscribe:100,subscriptionOptions:0},defaultType:"user",element:"pubsub",fields:{publishOptions:(0,i.splicePath)(null,"publish-options","dataform")},namespace:s.NS_PUBSUB,type:"user",typeField:"context"},{aliases:["pubsub","iq.pubsub","message.pubsub"],defaultType:"user",element:"pubsub",fields:{purge:(0,i.childAttribute)(null,"purge","node")},namespace:s.NS_PUBSUB_OWNER,type:"owner",typeField:"context"},(0,i.addAlias)(s.NS_DATAFORM,"x",["iq.pubsub.configure.form","iq.pubsub.defaultConfiguration.form","iq.pubsub.defaultSubscriptionOptions.form","iq.pubsub.subscriptionOptions.form","message.pubsub.configuration.form"]),(0,i.addAlias)(s.NS_RSM,"set",["iq.pubsub.fetch.paging"]),(0,i.extendStanzaError)({pubsubError:(0,i.childEnum)(s.NS_PUBSUB_ERRORS,Object.values(r.PubsubErrorCondition)),pubsubUnsupportedFeature:(0,i.childAttribute)(s.NS_PUBSUB_ERRORS,"unsupported","feature")}),{element:"subscribe",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.subscribe"},{element:"unsubscribe",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node"),subid:(0,i.attribute)("subid")},namespace:s.NS_PUBSUB,path:"iq.pubsub.unsubscribe"},{element:"options",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node"),subid:(0,i.attribute)("subid")},namespace:s.NS_PUBSUB,path:"iq.pubsub.subscriptionOptions"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"user",impliedType:!0}],element:"subscriptions",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB,type:"user"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"owner",impliedType:!0}],element:"subscriptions",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.subscription",selector:"owner"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB},{aliases:[{path:"iq.pubsub.subscription",selector:"user"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"user"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.affiliations",selector:"user",impliedType:!0},{path:"message.pubsub.affiliations",selector:"user",impliedType:!0}],element:"affiliations",fields:a,namespace:s.NS_PUBSUB,type:"user"},{aliases:[{path:"iq.pubsub.affiliations",selector:"owner",impliedType:!0}],element:"affiliations",fields:a,namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"user"},{impliedType:!0,multiple:!0,path:"message.pubsub.affiliations.items",selector:"user"}],element:"affiliation",fields:{affiliation:(0,i.attribute)("affiliation"),jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"owner"}],element:"affiliation",fields:{affiliation:(0,i.attribute)("affiliation"),jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB_OWNER,type:"owner"},{element:"create",fields:a,namespace:s.NS_PUBSUB,path:"iq.pubsub.create"},{aliases:[{path:"iq.pubsub.destroy",selector:"owner"}],element:"delete",fields:{node:(0,i.attribute)("node"),redirect:(0,i.childAttribute)(null,"redirect","uri")},namespace:s.NS_PUBSUB_OWNER},{aliases:[{path:"iq.pubsub.configure",selector:"owner",impliedType:!0}],element:"configure",fields:a,namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.configure",selector:"user",impliedType:!0}],element:"configure",fields:a,namespace:s.NS_PUBSUB,type:"user"},{element:"default",fields:{node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.defaultSubscriptionOptions"},{element:"default",fields:{},namespace:s.NS_PUBSUB_OWNER,path:"iq.pubsub.defaultConfiguration"},{element:"publish",fields:a,namespace:s.NS_PUBSUB,path:"iq.pubsub.publish"},{element:"retract",fields:{id:(0,i.childAttribute)(null,"item","id"),node:(0,i.attribute)("node"),notify:(0,i.booleanAttribute)("notify")},namespace:s.NS_PUBSUB,path:"iq.pubsub.retract"},{element:"items",fields:{max:(0,i.integerAttribute)("max_items"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.fetch"},{aliases:["pubsubitem","iq.pubsub.publish.item",{multiple:!0,path:"iq.pubsub.fetch.items"}],element:"item",fields:{id:(0,i.attribute)("id"),publisher:(0,i.JIDAttribute)("publisher")},namespace:s.NS_PUBSUB},{element:"event",fields:{eventType:(0,i.childEnum)(null,["purge","delete","subscription","configuration","items"])},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub",type:"event",typeField:"context"},{aliases:[{path:"message.pubsub.items.published",multiple:!0}],element:"item",fields:{id:(0,i.attribute)("id"),publisher:(0,i.JIDAttribute)("publisher")},namespace:s.NS_PUBSUB_EVENT,path:"pubsubeventitem"},{element:"purge",fields:a,namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.purge"},{element:"delete",fields:{node:(0,i.attribute)("node"),redirect:(0,i.childAttribute)(null,"redirect","uri")},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.delete"},{aliases:[{path:"message.pubsub.subscription",selector:"event",impliedType:!0}],element:"subscription",fields:{expires:(u="expiry",{importer(e){const t=e.getAttribute(u);return"presence"===t?t:t?new Date(t):void 0},exporter(e,t){let n;n="string"==typeof t?t:t.toISOString(),e.setAttribute(u,n)}}),jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node"),subid:(0,i.attribute)("subid"),type:(0,i.attribute)("subscription")},namespace:s.NS_PUBSUB_EVENT,type:"event"},{element:"configuration",fields:a,namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.configuration"},{element:"items",fields:{node:(0,i.attribute)("node"),retracted:(0,i.multipleChildAttribute)(null,"retract","id")},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.items"}];var u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"query",fields:{activate:(0,r.childText)(null,"activate"),address:(0,r.attribute)("dstaddr"),candidateUsed:(0,r.childJIDAttribute)(null,"streamhost-used","jid"),mode:(0,r.attribute)("mode","tcp"),sid:(0,r.attribute)("sid"),udpSuccess:(0,r.childAttribute)(null,"udpsuccess","dstaddr")},namespace:i.NS_SOCKS5,path:"iq.socks5"},{aliases:[{multiple:!0,path:"iq.socks5.candidates"}],element:"streamhost",fields:{host:(0,r.attribute)("host"),jid:(0,r.JIDAttribute)("jid"),port:(0,r.integerAttribute)("port"),uri:(0,r.attribute)("uri")},namespace:i.NS_SOCKS5}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:[{multiple:!0,path:"message.links"}],element:"x",fields:{description:(0,r.childText)(null,"desc"),url:(0,r.childText)(null,"url")},namespace:i.NS_OOB},{element:"query",fields:{description:(0,r.childText)(null,"desc"),url:(0,r.childText)(null,"url")},namespace:i.NS_OOB_TRANSFER,path:"iq.transferLink"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"html",fields:{alternateLanguageBodies:(0,r.childAlternateLanguageRawElement)(i.NS_XHTML,"body","xhtmlim"),body:(0,r.childLanguageRawElement)(i.NS_XHTML,"body","xhtmlim")},namespace:i.NS_XHTML_IM,path:"message.html"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendStreamFeatures)({inbandRegistration:(0,r.childBoolean)(i.NS_INBAND_REGISTRATION,"register")}),(0,r.addAlias)(i.NS_DATAFORM,"x",["iq.account.form"]),(0,r.addAlias)(i.NS_OOB,"x",["iq.account.registrationLink"]),{element:"query",fields:{address:(0,r.childText)(null,"address"),date:(0,r.childDate)(null,"date"),email:(0,r.childText)(null,"email"),familyName:(0,r.childText)(null,"last"),fullName:(0,r.childText)(null,"name"),givenName:(0,r.childText)(null,"first"),instructions:(0,r.childText)(null,"instructions"),key:(0,r.childText)(null,"key"),locality:(0,r.childText)(null,"city"),misc:(0,r.childText)(null,"misc"),nick:(0,r.childText)(null,"nick"),password:(0,r.childText)(null,"password"),phone:(0,r.childText)(null,"phone"),postalCode:(0,r.childText)(null,"zip"),region:(0,r.childText)(null,"state"),registered:(0,r.childBoolean)(null,"registered"),remove:(0,r.childBoolean)(null,"remove"),text:(0,r.childText)(null,"text"),uri:(0,r.childText)(null,"uri"),username:(0,r.childText)(null,"username")},namespace:i.NS_REGISTER,path:"iq.account"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:[{path:"message.geoloc",impliedType:!0},{path:"dataform.fields.geoloc",impliedType:!0},...(0,r.pubsubItemContentAliases)()],element:"geoloc",fields:{accuracy:(0,r.childFloat)(null,"accuracy"),altitude:(0,r.childFloat)(null,"alt"),altitudeAccuracy:(0,r.childFloat)(null,"altaccuracy"),area:(0,r.childText)(null,"area"),building:(0,r.childText)(null,"building"),country:(0,r.childText)(null,"country"),countryCode:(0,r.childText)(null,"countrycode"),datum:(0,r.childText)(null,"datum"),description:(0,r.childText)(null,"description"),error:(0,r.childFloat)(null,"error"),floor:(0,r.childText)(null,"floor"),heading:(0,r.childFloat)(null,"bearing"),lang:(0,r.languageAttribute)(),latitude:(0,r.childFloat)(null,"lat"),locality:(0,r.childText)(null,"locality"),longitude:(0,r.childFloat)(null,"lon"),postalCode:(0,r.childText)(null,"postalcode"),region:(0,r.childText)(null,"region"),room:(0,r.childText)(null,"room"),speed:(0,r.childFloat)(null,"speed"),street:(0,r.childText)(null,"street"),text:(0,r.childText)(null,"text"),timestamp:(0,r.childDate)(null,"timestamp"),tzo:(0,r.childTimezoneOffset)(null,"tzo"),uri:(0,r.childText)(null,"uri")},namespace:i.NS_GEOLOC,type:i.NS_GEOLOC};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:(0,r.pubsubItemContentAliases)(),element:"data",fields:{data:(0,r.textBuffer)("base64")},namespace:i.NS_AVATAR_DATA,path:"avatar",type:i.NS_AVATAR_DATA,typeField:"itemType"},{aliases:[{path:"avatar",impliedType:!0},...(0,r.pubsubItemContentAliases)()],element:"metadata",namespace:i.NS_AVATAR_METADATA,type:i.NS_AVATAR_METADATA,typeField:"itemType",childrenExportOrder:{versions:1,pointers:2}},{aliases:[{multiple:!0,path:"avatar.versions",selector:i.NS_AVATAR_METADATA}],element:"info",fields:{bytes:(0,r.integerAttribute)("bytes"),height:(0,r.integerAttribute)("height"),id:(0,r.attribute)("id"),mediaType:(0,r.attribute)("type"),uri:(0,r.attribute)("url"),width:(0,r.integerAttribute)("width")},namespace:i.NS_AVATAR_METADATA},{aliases:[{multiple:!0,path:"avatar.pointers",selector:i.NS_AVATAR_METADATA}],element:"pointer",fields:{bytes:(0,r.integerAttribute)("bytes"),height:(0,r.integerAttribute)("height"),id:(0,r.attribute)("id"),mediaType:(0,r.attribute)("type"),width:(0,r.integerAttribute)("width")},namespace:i.NS_AVATAR_METADATA}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1);t.default=(0,i.extendMessage)({chatState:(0,i.childEnum)(s.NS_CHAT_STATES,Object.values(r.ChatState))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"query",fields:{name:(0,r.childText)(null,"name"),os:(0,r.childText)(null,"os"),version:(0,r.childText)(null,"version")},namespace:i.NS_VERSION,path:"iq.softwareVersion"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o={aliases:[{path:"message.mood",impliedType:!0},...(0,i.pubsubItemContentAliases)()],element:"mood",fields:{alternateLanguageText:(0,i.childAlternateLanguageText)(null,"text"),text:(0,i.childText)(null,"text"),value:(0,i.childEnum)(null,r.USER_MOODS)},namespace:s.NS_MOOD,type:s.NS_MOOD};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o={aliases:[{path:"activity",impliedType:!0},...(0,i.pubsubItemContentAliases)()],element:"activity",fields:{activity:(0,i.childDoubleEnum)(null,r.USER_ACTIVITY_GENERAL,r.USER_ACTIVITY_SPECIFIC),alternateLanguageText:(0,i.childAlternateLanguageText)(null,"text"),text:(0,i.childText)(null,"text")},namespace:s.NS_ACTIVITY,type:s.NS_ACTIVITY};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"handshake",fields:{value:(0,r.textBuffer)("hex")},namespace:i.NS_COMPONENT,path:"handshake"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:[{path:"presence.legacyCapabilities",multiple:!0},{path:"features.legacyCapabilities",multiple:!0}],element:"c",fields:{algorithm:(0,r.attribute)("hash"),legacy:(0,r.staticValue)(!0),node:(0,r.attribute)("node"),value:(0,r.attribute)("ver")},namespace:i.NS_DISCO_LEGACY_CAPS};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:[{impliedType:!0,path:"tune"},...(0,r.pubsubItemContentAliases)()],element:"tune",fields:{artist:(0,r.childText)(null,"artist"),length:(0,r.childInteger)(null,"length"),rating:(0,r.childInteger)(null,"rating"),source:(0,r.childText)(null,"source"),title:(0,r.childText)(null,"title"),track:(0,r.childText)(null,"track"),uri:(0,r.childText)(null,"uri")},namespace:i.NS_TUNE,type:i.NS_TUNE};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=["dataformLayout",{multiple:!0,path:"dataformLayout.contents"},{multiple:!0,path:"dataform.layout.contents"}],o=[{aliases:[{multiple:!0,path:"dataform.layout"}],element:"page",fields:{label:(0,r.attribute)("label")},namespace:i.NS_DATAFORM_LAYOUT},{aliases:s,element:"section",fields:{label:(0,r.attribute)("label")},namespace:i.NS_DATAFORM_LAYOUT,type:"section",typeField:"type"},{aliases:s,element:"text",fields:{value:(0,r.text)()},namespace:i.NS_DATAFORM_LAYOUT,type:"text",typeField:"type"},{aliases:s,element:"fieldref",fields:{field:(0,r.attribute)("var")},namespace:i.NS_DATAFORM_LAYOUT,type:"fieldref",typeField:"type"},{aliases:s,element:"reportedref",namespace:i.NS_DATAFORM_LAYOUT,type:"reportedref",typeField:"type"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"body",fields:{acceptMediaTypes:(0,r.attribute)("accept"),ack:(0,r.integerAttribute)("ack"),authId:(0,r.attribute)("authid"),characterSets:(0,r.attribute)("charsets"),condition:(0,r.attribute)("condition"),from:(0,r.JIDAttribute)("from"),key:(0,r.attribute)("key"),lang:(0,r.languageAttribute)(),maxClientRequests:(0,r.integerAttribute)("requests"),maxHoldOpen:(0,r.integerAttribute)("hold"),maxInactivityTime:(0,r.integerAttribute)("inactivity"),maxSessionPause:(0,r.integerAttribute)("maxpause"),maxWaitTime:(0,r.integerAttribute)("wait"),mediaType:(0,r.attribute)("content"),minPollingInterval:(0,r.integerAttribute)("polling"),newKey:(0,r.attribute)("newkey"),pauseSession:(0,r.integerAttribute)("pause"),report:(0,r.integerAttribute)("report"),rid:(0,r.integerAttribute)("rid"),route:(0,r.attribute)("string"),seeOtherURI:(0,r.childText)(null,"uri"),sid:(0,r.attribute)("sid"),stream:(0,r.attribute)("stream"),time:(0,r.integerAttribute)("time"),to:(0,r.JIDAttribute)("to"),type:(0,r.attribute)("type"),version:(0,r.attribute)("ver"),xmppRestart:(0,r.namespacedBooleanAttribute)("xmpp",i.NS_BOSH_XMPP,"restart",void 0,{writeValue:e=>e?"true":"false"}),xmppRestartLogic:(0,r.namespacedBooleanAttribute)("xmpp",i.NS_BOSH_XMPP,"restartlogic",void 0,{writeValue:e=>e?"true":"false"}),xmppVersion:(0,r.namespacedAttribute)("xmpp",i.NS_BOSH_XMPP,"version")},namespace:i.NS_BOSH,path:"bosh"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({headers:(0,r.splicePath)(i.NS_SHIM,"headers","header",!0)}),(0,r.extendPresence)({headers:(0,r.splicePath)(i.NS_SHIM,"headers","header",!0)}),{element:"header",fields:{name:(0,r.attribute)("name"),value:(0,r.text)()},namespace:i.NS_SHIM,path:"header"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"compression",fields:{methods:(0,r.multipleChildText)(null,"method")},namespace:i.NS_COMPRESSION_FEATURE,path:"features.compression"},{element:"compress",fields:{method:(0,r.childText)(null,"method")},namespace:i.NS_COMPRESSION,path:"compression",type:"start",typeField:"type"},{aliases:["error.compressionError"],element:"failure",fields:{condition:(0,r.childEnum)(null,["unsupported-method","setup-failed","processing-failed"])},namespace:i.NS_COMPRESSION,path:"compression",type:"failure",typeField:"type"},{element:"compressed",namespace:i.NS_COMPRESSION,path:"compression",type:"success",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({rosterExchange:(0,r.splicePath)(i.NS_ROSTER_EXCHANGE,"x","rosterExchange",!0)}),(0,r.extendIQ)({rosterExchange:(0,r.splicePath)(i.NS_ROSTER_EXCHANGE,"x","rosterExchange",!0)}),{element:"item",fields:{action:(0,r.attribute)("action"),groups:(0,r.multipleChildText)(null,"group"),jid:(0,r.JIDAttribute)("jid"),name:(0,r.attribute)("name")},namespace:i.NS_ROSTER_EXCHANGE,path:"rosterExchange"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendPresence)({vcardAvatar:{importer(e){const t=(0,r.findAll)(e,i.NS_VCARD_TEMP_UPDATE,"x");if(!t.length)return;const n=(0,r.findAll)(t[0],i.NS_VCARD_TEMP_UPDATE,"photo");return!n.length||n[0].getText()},exporter(e,t){const n=(0,r.findOrCreate)(e,i.NS_VCARD_TEMP_UPDATE,"x");if(""===t)(0,r.findOrCreate)(n,i.NS_VCARD_TEMP_UPDATE,"photo");else{if(!0===t)return;if(t){(0,r.findOrCreate)(n,i.NS_VCARD_TEMP_UPDATE,"photo").children.push(t)}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({captcha:(0,r.splicePath)(i.NS_CAPTCHA,"captcha","dataform")}),(0,r.extendIQ)({captcha:(0,r.splicePath)(i.NS_CAPTCHA,"captcha","dataform")})];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o=[(0,i.extendStanzaError)({jingleError:(0,i.childEnum)(s.NS_JINGLE_ERRORS_1,Object.values(r.JingleErrorCondition))}),{element:"jingle",fields:{action:(0,i.attribute)("action"),initiator:(0,i.JIDAttribute)("initiator"),responder:(0,i.JIDAttribute)("responder"),sid:(0,i.attribute)("sid")},namespace:s.NS_JINGLE_1,path:"iq.jingle"},{aliases:[{multiple:!0,path:"iq.jingle.contents"}],element:"content",fields:{creator:(0,i.attribute)("creator"),disposition:(0,i.attribute)("disposition","session"),name:(0,i.attribute)("name"),senders:(0,i.attribute)("senders","both")},namespace:s.NS_JINGLE_1},{element:"reason",fields:{alternativeSession:(0,i.childText)(null,"alternative-session"),condition:(0,i.childEnum)(null,Object.values(r.JingleReasonCondition)),text:(0,i.childText)(null,"text")},namespace:s.NS_JINGLE_1,path:"iq.jingle.reason"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1);function o(){return{importer(e,t){let n=(0,i.findAll)(e,s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb");const r=(0,i.attribute)("type").importer,o=(0,i.attribute)("subtype").importer,a=(0,i.attribute)("value").importer,c=[];for(const e of n){const n=r(e,t),i=o(e,t);c.push(i?{type:n,parameter:i}:{type:n})}n=(0,i.findAll)(e,s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int");for(const e of n){const n=a(e,t);c.push(n?{type:"trr-int",parameter:n}:{type:"trr-int"})}return c},exporter(e,t,n){const r=(0,i.attribute)("type").exporter,o=(0,i.attribute)("subtype").exporter,a=(0,i.attribute)("value").exporter;for(const c of t){let t;"trr-int"===c.type?(t=(0,i.createElement)(s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int",n.namespace,e),c.parameter&&a(t,c.parameter,n)):(t=(0,i.createElement)(s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb",n.namespace,e),r(t,c.type,n),c.parameter&&o(t,c.parameter,n)),e.appendChild(t)}}}}const a="iq.jingle.info",c=[{aliases:["iq.jingle.contents.application"],childrenExportOrder:{codecs:4,encryption:5,headerExtensions:6,sourceGroups:8,sources:7,streams:9},element:"description",fields:{media:(0,i.attribute)("media"),rtcpFeedback:{...o(),exportOrder:3},rtcpMux:{...(0,i.childBoolean)(null,"rtcp-mux"),exportOrder:1},rtcpReducedSize:{...(0,i.childBoolean)(null,"rtcp-reduced-size"),exportOrder:2},ssrc:(0,i.attribute)("ssrc")},namespace:s.NS_JINGLE_RTP_1,optionalNamespaces:{rtcpf:s.NS_JINGLE_RTP_RTCP_FB_0,rtph:s.NS_JINGLE_RTP_HDREXT_0},type:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.headerExtensions",selector:s.NS_JINGLE_RTP_1}],element:"rtp-hdrext",fields:{id:(0,i.integerAttribute)("id"),senders:(0,i.attribute)("senders"),uri:(0,i.attribute)("uri")},namespace:s.NS_JINGLE_RTP_HDREXT_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.codecs",selector:s.NS_JINGLE_RTP_1},"rtpcodec"],element:"payload-type",fields:{channels:(0,i.integerAttribute)("channels"),clockRate:(0,i.integerAttribute)("clockrate"),id:(0,i.attribute)("id"),maxptime:(0,i.integerAttribute)("maxptime"),name:(0,i.attribute)("name"),parameters:(0,i.parameterMap)(s.NS_JINGLE_RTP_1,"parameter","name","value"),ptime:(0,i.integerAttribute)("ptime"),rtcpFeedback:o()},namespace:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sources",selector:s.NS_JINGLE_RTP_1}],element:"source",fields:{parameters:(0,i.parameterMap)(s.NS_JINGLE_RTP_SSMA_0,"parameter","name","value"),ssrc:(0,i.attribute)("ssrc")},namespace:s.NS_JINGLE_RTP_SSMA_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sourceGroups",selector:s.NS_JINGLE_RTP_1}],element:"ssrc-group",fields:{semantics:(0,i.attribute)("semantics"),sources:(0,i.multipleChildAttribute)(null,"source","ssrc")},namespace:s.NS_JINGLE_RTP_SSMA_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.streams",selector:s.NS_JINGLE_RTP_1}],element:"stream",fields:{id:(0,i.attribute)("id"),track:(0,i.attribute)("track")},namespace:s.NS_JINGLE_RTP_MSID_0},{aliases:[{path:"iq.jingle.contents.application.encryption",selector:s.NS_JINGLE_RTP_1}],element:"encryption",fields:{required:(0,i.booleanAttribute)("required")},namespace:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.encryption.sdes",selector:s.NS_JINGLE_RTP_1}],element:"crypto",fields:{cryptoSuite:(0,i.attribute)("crypto-suite"),keyParameters:(0,i.attribute)("key-params"),sessionParameters:(0,i.attribute)("session-params"),tag:(0,i.integerAttribute)("tag")},namespace:s.NS_JINGLE_RTP_1},{aliases:[{path:"iq.jingle.contents.application.encryption.zrtp",selector:s.NS_JINGLE_RTP_1}],element:"zrtp-hash",fields:{value:(0,i.textBuffer)("hex"),version:(0,i.attribute)("version")},namespace:s.NS_JINGLE_RTP_1},{element:"mute",fields:{creator:(0,i.attribute)("creator"),name:(0,i.attribute)("name")},namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_MUTE},{element:"unmute",fields:{creator:(0,i.attribute)("creator"),name:(0,i.attribute)("name")},namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_UNMUTE},{element:"hold",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_HOLD},{element:"unhold",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_UNHOLD},{element:"active",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_ACTIVE},{element:"ringing",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_RINGING}];t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({nick:(0,r.childText)(i.NS_NICK,"nick")}),(0,r.extendPresence)({nick:(0,r.childText)(i.NS_NICK,"nick")}),{aliases:(0,r.pubsubItemContentAliases)(),element:"nick",fields:{nick:(0,r.text)()},namespace:i.NS_NICK,type:i.NS_NICK}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=e=>[{element:"transport",fields:{gatheringComplete:(0,r.childBoolean)(null,"gathering-complete"),password:(0,r.attribute)("pwd"),usernameFragment:(0,r.attribute)("ufrag")},namespace:e,path:"iq.jingle.contents.transport",type:e,typeField:"transportType"},{aliases:[{impliedType:!0,path:"iq.jingle.contents.transport.remoteCandidate",selector:e}],element:"remote-candidate",fields:{component:(0,r.integerAttribute)("component"),ip:(0,r.attribute)("ip"),port:(0,r.integerAttribute)("port")},namespace:e,type:e,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:e}],element:"candidate",fields:{component:(0,r.integerAttribute)("component"),foundation:(0,r.attribute)("foundation"),generation:(0,r.integerAttribute)("generation"),id:(0,r.attribute)("id"),ip:(0,r.attribute)("ip"),network:(0,r.integerAttribute)("network"),port:(0,r.integerAttribute)("port"),priority:(0,r.integerAttribute)("priority"),protocol:(0,r.attribute)("protocol"),relatedAddress:(0,r.attribute)("rel-addr"),relatedPort:(0,r.attribute)("rel-port"),tcpType:(0,r.attribute)("tcptype"),type:(0,r.attribute)("type")},namespace:e,type:e,typeField:"transportType"}],o=[...s(i.NS_JINGLE_ICE_0),...s(i.NS_JINGLE_ICE_UDP_1)];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"transport",fields:{gatheringComplete:(0,r.childBoolean)(null,"gathering-complete"),password:(0,r.attribute)("pwd"),usernameFragment:(0,r.attribute)("ufrag")},namespace:i.NS_JINGLE_RAW_UDP_1,path:"iq.jingle.contents.transport",type:i.NS_JINGLE_RAW_UDP_1,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:i.NS_JINGLE_RAW_UDP_1}],element:"candidate",fields:{component:(0,r.integerAttribute)("component"),foundation:(0,r.attribute)("foundation"),generation:(0,r.integerAttribute)("generation"),id:(0,r.attribute)("id"),ip:(0,r.attribute)("ip"),port:(0,r.integerAttribute)("port"),type:(0,r.attribute)("type")},namespace:i.NS_JINGLE_RAW_UDP_1,type:i.NS_JINGLE_RAW_UDP_1,typeField:"transportType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"request",namespace:i.NS_RECEIPTS,path:"message.receipt",type:"request",typeField:"type"},{element:"received",fields:{id:(0,r.attribute)("id")},namespace:i.NS_RECEIPTS,path:"message.receipt",type:"received",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"invisible",fields:{probe:(0,r.booleanAttribute)("probe")},namespace:i.NS_INVISIBLE_0,path:"iq.visibility",type:"invisible",typeField:"type"},{element:"visible",namespace:i.NS_INVISIBLE_0,path:"iq.visibility",type:"visible"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendStanzaError)({blocked:(0,r.childBoolean)(i.NS_BLOCKING_ERRORS,"blocked")}),{element:"blocklist",fields:{jids:(0,r.multipleChildAttribute)(null,"item","jid")},namespace:i.NS_BLOCKING,path:"iq.blockList",type:"list",typeField:"action"},{element:"block",fields:{jids:(0,r.multipleChildAttribute)(null,"item","jid")},namespace:i.NS_BLOCKING,path:"iq.blockList",type:"block",typeField:"action"},{element:"unblock",fields:{jids:(0,r.multipleChildAttribute)(null,"item","jid")},namespace:i.NS_BLOCKING,path:"iq.blockList",type:"unblock",typeField:"action"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendStreamFeatures)({streamManagement:(0,r.childBoolean)(i.NS_SMACKS_3,"sm")}),{element:"a",fields:{handled:(0,r.integerAttribute)("h")},namespace:i.NS_SMACKS_3,path:"sm",type:"ack",typeField:"type"},{element:"r",namespace:i.NS_SMACKS_3,path:"sm",type:"request",typeField:"type"},{element:"enable",fields:{allowResumption:(0,r.booleanAttribute)("resume")},namespace:i.NS_SMACKS_3,path:"sm",type:"enable",typeField:"type"},{element:"enabled",fields:{id:(0,r.attribute)("id"),resume:(0,r.booleanAttribute)("resume")},namespace:i.NS_SMACKS_3,path:"sm",type:"enabled",typeField:"type"},{element:"resume",fields:{handled:(0,r.integerAttribute)("h"),previousSession:(0,r.attribute)("previd")},namespace:i.NS_SMACKS_3,path:"sm",type:"resume",typeField:"type"},{element:"resumed",fields:{handled:(0,r.integerAttribute)("h"),previousSession:(0,r.attribute)("previd")},namespace:i.NS_SMACKS_3,path:"sm",type:"resumed",typeField:"type"},{element:"failed",fields:{handled:(0,r.integerAttribute)("h")},namespace:i.NS_SMACKS_3,path:"sm",type:"failed",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendIQ)({ping:(0,r.childBoolean)(i.NS_PING,"ping")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"time",fields:{tzo:(0,r.childTimezoneOffset)(null,"tzo"),utc:(0,r.childDate)(null,"utc")},namespace:i.NS_TIME,path:"iq.time"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:["message.delay","presence.delay"],element:"delay",fields:{from:(0,r.JIDAttribute)("from"),reason:(0,r.text)(),timestamp:(0,r.dateAttribute)("stamp")},namespace:i.NS_DELAY};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={2:i.NS_DISCO_EXTERNAL_2,1:i.NS_DISCO_EXTERNAL_1},o=[];for(const[e,t]of Object.entries(s))o.push({aliases:["iq.externalServiceCredentials"],defaultType:"2",element:"credentials",fields:{expires:(0,r.childDateAttribute)(null,"service","expires"),host:(0,r.childAttribute)(null,"service","host"),name:(0,r.childAttribute)(null,"service","name"),password:(0,r.childAttribute)(null,"service","password"),port:(0,r.childIntegerAttribute)(null,"service","port"),restricted:(0,r.childBooleanAttribute)(null,"service","restricted"),transport:(0,r.childAttribute)(null,"service","transport"),type:(0,r.childAttribute)(null,"service","type"),username:(0,r.childAttribute)(null,"service","username")},namespace:t,type:e,typeField:"version"},{aliases:["iq.externalServices"],defaultType:"2",element:"services",fields:{type:(0,r.attribute)("type")},namespace:t,type:e,typeField:"version"},{aliases:[{path:"iq.externalServices.services",multiple:!0}],defaultType:"2",element:"service",fields:{expires:(0,r.dateAttribute)("expires"),host:(0,r.attribute)("host"),name:(0,r.attribute)("name"),password:(0,r.attribute)("password"),port:(0,r.integerAttribute)("port"),restricted:(0,r.booleanAttribute)("restricted"),transport:(0,r.attribute)("transport"),type:(0,r.attribute)("type"),username:(0,r.attribute)("username")},namespace:t,type:e,typeField:"version"});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"media",fields:{height:(0,r.integerAttribute)("height"),width:(0,r.integerAttribute)("width")},namespace:i.NS_DATAFORM_MEDIA,path:"dataform.fields.media"},{aliases:[{multiple:!0,path:"dataform.fields.media.sources"}],element:"uri",fields:{mediaType:(0,r.attribute)("type"),uri:(0,r.text)()},namespace:i.NS_DATAFORM_MEDIA}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendMessage)({requestingAttention:(0,r.childBoolean)(i.NS_ATTENTION_0,"attention")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:["iq.bits",{path:"message.bits",multiple:!0},{path:"presence.bits",multiple:!0},{path:"iq.jingle.bits",multiple:!0}],element:"data",fields:{cid:(0,r.attribute)("cid"),data:(0,r.textBuffer)("base64"),maxAge:(0,r.integerAttribute)("max-age"),mediaType:(0,r.attribute)("type")},namespace:i.NS_BOB};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);let s=[(0,r.addAlias)(i.NS_HASHES_2,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),(0,r.addAlias)(i.NS_HASHES_1,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),(0,r.addAlias)(i.NS_HASHES_2,"hash-used",[{path:"file.hashesUsed",multiple:!0}]),(0,r.addAlias)(i.NS_THUMBS_1,"thumbnail",[{path:"file.thumbnails",multiple:!0}])];for(const e of[i.NS_JINGLE_FILE_TRANSFER_4,i.NS_JINGLE_FILE_TRANSFER_5])s=s.concat([{aliases:["file",{impliedType:!0,path:"iq.jingle.contents.application.file",selector:e},{impliedType:!0,path:"iq.jingle.info.file",selector:`{${e}}checksum`}],defaultType:i.NS_JINGLE_FILE_TRANSFER_5,element:"file",fields:{date:(0,r.childDate)(null,"date"),description:(0,r.childText)(null,"desc"),mediaType:(0,r.childText)(null,"media-type"),name:(0,r.childText)(null,"name"),size:(0,r.childInteger)(null,"size")},namespace:e,type:e,typeField:"version"},{aliases:[{impliedType:!0,path:"file.range",selector:e}],defaultType:i.NS_JINGLE_FILE_TRANSFER_5,element:"range",fields:{length:(0,r.integerAttribute)("length"),offset:(0,r.integerAttribute)("offset",0)},namespace:e,type:e,typeField:"version"},{element:"description",namespace:e,path:"iq.jingle.contents.application",type:e,typeField:"applicationType"},{element:"received",fields:{creator:(0,r.attribute)("creator"),name:(0,r.attribute)("name")},namespace:e,path:"iq.jingle.info",type:`{${e}}received`,typeField:"infoType"},{element:"checksum",fields:{creator:(0,r.attribute)("creator"),name:(0,r.attribute)("name")},namespace:e,path:"iq.jingle.info",type:`{${e}}checksum`,typeField:"infoType"}]);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),i={element:"description",namespace:r.NS_JINGLE_XML_0,path:"iq.jingle.contents.application",type:r.NS_JINGLE_XML_0,typeField:"applicationType"};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"transport",fields:{activated:(0,r.childAttribute)(null,"activated","cid"),address:(0,r.attribute)("dstaddr"),candidateError:(0,r.childBoolean)(null,"candidate-error"),candidateUsed:(0,r.childAttribute)(null,"candidate-used","cid"),mode:(0,r.attribute)("mode","tcp"),proxyError:(0,r.childBoolean)(null,"proxy-error"),sid:(0,r.attribute)("sid")},namespace:i.NS_JINGLE_SOCKS5_1,path:"iq.jingle.contents.transport",type:i.NS_JINGLE_SOCKS5_1,typeField:"transportType"},{aliases:[{multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:i.NS_JINGLE_SOCKS5_1}],element:"candidate",fields:{cid:(0,r.attribute)("cid"),host:(0,r.attribute)("host"),jid:(0,r.JIDAttribute)("jid"),port:(0,r.integerAttribute)("port"),priority:(0,r.integerAttribute)("priority"),type:(0,r.attribute)("type"),uri:(0,r.attribute)("uri")},namespace:i.NS_JINGLE_SOCKS5_1}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"transport",fields:{ack:{importer:(e,t)=>"message"!==(0,r.attribute)("stanza","iq").importer(e,t),exporter(e,t,n){!1===t&&(0,r.attribute)("stanza").exporter(e,"message",n)}},blockSize:(0,r.integerAttribute)("block-size"),sid:(0,r.attribute)("sid")},namespace:i.NS_JINGLE_IBB_1,path:"iq.jingle.contents.transport",type:i.NS_JINGLE_IBB_1,typeField:"transportType"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_BOB,"data",[{path:"iq.jingle.bits",multiple:!0}]),{element:"thumbnail",fields:{height:(0,r.integerAttribute)("height"),mediaType:(0,r.attribute)("media-type"),uri:(0,r.attribute)("uri"),width:(0,r.integerAttribute)("width")},namespace:i.NS_THUMBS_1,path:"thumbnail"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_FORWARD_0,"forwarded",["message.carbon.forward"]),{element:"enable",namespace:i.NS_CARBONS_2,path:"iq.carbons",type:"enable",typeField:"action"},{element:"disable",namespace:i.NS_CARBONS_2,path:"iq.carbons",type:"disable",typeField:"action"},{element:"sent",namespace:i.NS_CARBONS_2,path:"message.carbon",type:"sent",typeField:"type"},{element:"received",namespace:i.NS_CARBONS_2,path:"message.carbon",type:"received",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(5),s=n(1),o=[...Object.values(i.StreamType).map(e=>(0,r.addAlias)(e,"message",["forward.message"])),...Object.values(i.StreamType).map(e=>(0,r.addAlias)(e,"presence",["forward.presence"])),...Object.values(i.StreamType).map(e=>(0,r.addAlias)(e,"iq",["forward.iq"])),(0,r.addAlias)(s.NS_DELAY,"delay",["forward.delay"]),{aliases:["message.forward"],element:"forwarded",namespace:s.NS_FORWARD_0,path:"forward"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{defaultType:"2",element:"hash",fields:{algorithm:(0,r.attribute)("algo"),value:(0,r.textBuffer)("base64"),version:(0,r.staticValue)("2")},namespace:i.NS_HASHES_2,path:"hash",type:"2",typeField:"version"},{element:"hash-used",fields:{algorithm:(0,r.attribute)("algo"),version:(0,r.staticValue)("2")},namespace:i.NS_HASHES_2,path:"hashUsed"},{element:"hash",fields:{algorithm:(0,r.attribute)("algo"),value:(0,r.textBuffer)("hex"),version:(0,r.staticValue)("1")},namespace:i.NS_HASHES_1,path:"hash",type:"1",typeField:"version"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"rtt",fields:{event:(0,r.attribute)("event","edit"),id:(0,r.attribute)("id"),seq:(0,r.integerAttribute)("seq")},namespace:i.NS_RTT_0,path:"message.rtt"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"t",fields:{position:(0,r.integerAttribute)("p"),text:(0,r.text)()},namespace:i.NS_RTT_0,type:"insert",typeField:"type"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"e",fields:{length:(0,r.integerAttribute)("n",1),position:(0,r.integerAttribute)("p")},namespace:i.NS_RTT_0,type:"erase",typeField:"type"},{aliases:[{multiple:!0,path:"message.rtt.actions"}],element:"w",fields:{duration:(0,r.integerAttribute)("n",0)},namespace:i.NS_RTT_0,type:"wait",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendMessage)({replace:(0,r.childAttribute)(i.NS_CORRECTION_0,"replace","id")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={2:i.NS_MAM_2,1:i.NS_MAM_1},o=[(0,r.addAlias)(i.NS_DATAFORM,"x",["iq.archive.form"]),(0,r.addAlias)(i.NS_FORWARD_0,"forwarded",["message.archive.item"]),(0,r.addAlias)(i.NS_RSM,"set",["iq.archive.paging"])];for(const[e,t]of Object.entries(s))o.push({defaultType:"query",defaultVersion:"2",element:"query",fields:{node:(0,r.attribute)("node"),queryId:(0,r.attribute)("queryid")},namespace:t,path:"iq.archive",type:"query",typeField:"type",version:e,versionField:"version"},{element:"fin",fields:{complete:(0,r.booleanAttribute)("complete"),stable:(0,r.booleanAttribute)("stable")},namespace:t,path:"iq.archive",type:"result",version:e},{element:"prefs",fields:{default:(0,r.attribute)("default"),always:(0,r.deepMultipleChildText)([{namespace:null,element:"always"},{namespace:null,element:"jid"}]),never:(0,r.deepMultipleChildText)([{namespace:null,element:"never"},{namespace:null,element:"jid"}])},namespace:t,path:"iq.archive",type:"preferences",version:e},{element:"result",defaultType:"2",fields:{id:(0,r.attribute)("id"),queryId:(0,r.attribute)("queryid")},namespace:t,path:"message.archive",type:e,typeField:"version"});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendPresence)({hats:(0,r.splicePath)(i.NS_HATS_0,"hats","hat",!0)}),{element:"hat",fields:{id:(0,r.attribute)("name"),name:(0,r.attribute)("displayName")},namespace:i.NS_HATS_0,path:"hat"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendPresence)({idleSince:(0,r.childDate)(i.NS_IDLE_1,"since")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:[{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:i.NS_JINGLE_ICE_UDP_1},{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:i.NS_JINGLE_ICE_0},{multiple:!0,path:"iq.jingle.contents.application.encryption.dtls",selector:i.NS_JINGLE_RTP_1}],element:"fingerprint",fields:{algorithm:(0,r.attribute)("hash"),setup:(0,r.attribute)("setup"),value:(0,r.text)()},namespace:i.NS_JINGLE_DTLS_0};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s="message.marker",o=[{element:"markable",namespace:i.NS_CHAT_MARKERS_0,path:s,type:"markable",typeField:"type"},{element:"received",fields:{id:(0,r.attribute)("id")},namespace:i.NS_CHAT_MARKERS_0,path:s,type:"received"},{element:"displayed",fields:{id:(0,r.attribute)("id")},namespace:i.NS_CHAT_MARKERS_0,path:s,type:"displayed"},{element:"acknowledged",fields:{id:(0,r.attribute)("id")},namespace:i.NS_CHAT_MARKERS_0,path:s,type:"acknowledged"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendMessage)({processingHints:{importer(e){const t={};let n=!1;for(const r of e.children)if("string"!=typeof r&&r.getNamespace()===i.NS_HINTS)switch(r.getName()){case"no-copy":t.noCopy=!0,n=!0;break;case"no-permanent-store":t.noPermanentStore=!0,n=!0;break;case"no-store":t.noStore=!0,n=!0;break;case"store":t.store=!0,n=!0}return n?t:void 0},exporter(e,t,n){t.noCopy&&e.appendChild((0,r.createElement)(i.NS_HINTS,"no-copy",n.namespace,e)),t.noPermanentStore&&e.appendChild((0,r.createElement)(i.NS_HINTS,"no-permanent-store",n.namespace,e)),t.noStore&&e.appendChild((0,r.createElement)(i.NS_HINTS,"no-store",n.namespace,e)),t.store&&e.appendChild((0,r.createElement)(i.NS_HINTS,"store",n.namespace,e))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({json:(0,r.childJSON)(i.NS_JSON_0,"json")}),{aliases:(0,r.pubsubItemContentAliases)(),element:"json",fields:{json:(0,r.textJSON)()},namespace:i.NS_JSON_0,type:i.NS_JSON_0},{aliases:[{path:"message.jsonPayloads",multiple:!0}],element:"payload",fields:{type:(0,r.attribute)("datatype"),data:(0,r.childJSON)(i.NS_JSON_0,"json")},namespace:i.NS_JSON_MESSAGE_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:[{path:"iq.jingle.groups",multiple:!0}],element:"group",fields:{contents:(0,r.multipleChildAttribute)(null,"content","name"),semantics:(0,r.attribute)("semantics")},namespace:i.NS_JINGLE_GROUPING_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:[{path:"iq.jingle.contents.transport.sctp",selector:i.NS_JINGLE_ICE_UDP_1},{path:"iq.jingle.contents.transport.sctp",selector:i.NS_JINGLE_ICE_0}],element:"sctpmap",fields:{port:(0,r.integerAttribute)("number"),protocol:(0,r.attribute)("protocol"),streams:(0,r.attribute)("streams")},namespace:i.NS_JINGLE_DTLS_SCTP_1};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),i=[{element:"active",namespace:r.NS_CSI_0,path:"csi",type:"active",typeField:"state"},{element:"inactive",namespace:r.NS_CSI_0,path:"csi",type:"inactive",typeField:"state"}];t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_DATAFORM,"x",["iq.push.form","pushNotification.form"]),{element:"enable",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:i.NS_PUSH_0,path:"iq.push",type:"enable",typeField:"action"},{element:"disable",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:i.NS_PUSH_0,path:"iq.push",type:"disable",typeField:"action"},{aliases:(0,r.pubsubItemContentAliases)(),element:"notification",namespace:i.NS_PUSH_0,path:"pushNotification",type:i.NS_PUSH_0,typeField:"itemType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({originId:(0,r.childAttribute)(i.NS_SID_0,"origin-id","id")}),{aliases:[{path:"message.stanzaIds",multiple:!0}],element:"stanza-id",fields:{by:(0,r.JIDAttribute)("by"),id:(0,r.attribute)("id")},namespace:i.NS_SID_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendStanzaError)({httpUploadError:(0,r.childEnum)(i.NS_HTTP_UPLOAD_0,["file-too-large","retry"]),httpUploadMaxFileSize:(0,r.deepChildInteger)([{namespace:i.NS_HTTP_UPLOAD_0,element:"file-too-large"},{namespace:i.NS_HTTP_UPLOAD_0,element:"max-file-size"}]),httpUploadRetry:(0,r.childDateAttribute)(i.NS_HTTP_UPLOAD_0,"retry","stamp")}),{element:"request",fields:{mediaType:(0,r.attribute)("content-type"),name:(0,r.attribute)("filename"),size:(0,r.integerAttribute)("size")},namespace:i.NS_HTTP_UPLOAD_0,path:"iq.httpUpload",type:"request",typeField:"type"},{element:"slot",fields:{download:(0,r.childAttribute)(null,"get","url")},namespace:i.NS_HTTP_UPLOAD_0,path:"iq.httpUpload",type:"slot"},{aliases:[{path:"iq.httpUpload.upload",selector:"slot"}],element:"put",fields:{url:(0,r.attribute)("url")},namespace:i.NS_HTTP_UPLOAD_0},{aliases:[{path:"iq.httpUpload.upload.headers",multiple:!0}],element:"header",fields:{name:(0,r.attribute)("name"),value:(0,r.text)()},namespace:i.NS_HTTP_UPLOAD_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"encryption",fields:{id:(0,r.attribute)("namespace"),name:(0,r.attribute)("name")},namespace:i.NS_EME_0,path:"message.encryptionMethod"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:["message.omemo"],element:"encrypted",fields:{payload:(0,r.childTextBuffer)(null,"payload","base64")},namespace:i.NS_OMEMO_AXOLOTL,path:"omemo"},{element:"header",fields:{iv:(0,r.childTextBuffer)(null,"iv","base64"),sid:(0,r.integerAttribute)("sid")},namespace:i.NS_OMEMO_AXOLOTL,path:"omemo.header"},{aliases:[{path:"omemo.header.keys",multiple:!0}],element:"key",fields:{preKey:(0,r.booleanAttribute)("prekey"),rid:(0,r.integerAttribute)("rid"),value:(0,r.textBuffer)("base64")},namespace:i.NS_OMEMO_AXOLOTL},{aliases:(0,r.pubsubItemContentAliases)(),element:"list",fields:{devices:(0,r.multipleChildIntegerAttribute)(null,"device","id")},namespace:i.NS_OMEMO_AXOLOTL,type:i.NS_OMEMO_AXOLOTL_DEVICELIST,typeField:"itemType"},{element:"preKeyPublic",fields:{id:(0,r.integerAttribute)("preKeyId"),value:(0,r.textBuffer)("base64")},namespace:i.NS_OMEMO_AXOLOTL,path:"omemoPreKey"},{element:"signedPreKeyPublic",fields:{id:(0,r.integerAttribute)("signedPreKeyId"),value:(0,r.textBuffer)("base64")},namespace:i.NS_OMEMO_AXOLOTL,path:"omemoDevice.signedPreKeyPublic"},{aliases:(0,r.pubsubItemContentAliases)(),element:"bundle",fields:{identityKey:(0,r.childTextBuffer)(null,"identityKey","base64"),preKeys:(0,r.splicePath)(null,"prekeys","omemoPreKey",!0),signedPreKeySignature:(0,r.childTextBuffer)(null,"signedPreKeySignature","base64")},namespace:i.NS_OMEMO_AXOLOTL,path:"omemoDevice",type:i.NS_OMEMO_AXOLOTL_BUNDLES,typeField:"itemType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e,t,n){super(),this.condition=e,this.channelId=t,this.stanzaInstanceId=n,this.name="SaslError"}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},i=n(40),s=n(17);t.a=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i.a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return Object(s.b)(o)}},function(e,t,n){n(205),n(206),e.exports=n(221)},function(e,t,n){!function(t){"use strict";for(var n=[null,0,{}],r=function(e,t){this.codepoint=e,this.feature=t},i={},s=[],o=0;o<=255;++o)s[o]=0;var a=[function(e,t,i){return t<60||13311<t&&t<42607?new r(t,n):e(t,i)},function(e,t,n){var r=i[t];return r||(r=e(t,n)).feature&&++s[t>>8&255]>10&&(i[t]=r),r},function(e,t,n){return n?e(t,n):new r(t,null)},function(e,t,n){var i;if(t<4352||4371<=t&&t<44032||55204<t)return e(t,n);if(4352<=t&&t<4371){var s={},o=21*(t-4352);for(i=0;i<21;++i)s[4449+i]=44032+28*(i+o);return new r(t,[,,s])}var a=t-44032,c=a%28,u=[];if(0!==c)u[0]=[44032+a-c,4519+c];else for(u[0]=[4352+Math.floor(a/588),4449+Math.floor(a%588/28)],u[2]={},i=1;i<28;++i)u[2][4519+i]=t+i;return new r(t,u)},function(e,t,i){var s=(r.udata[65280&t]||{})[t];return new r(t,s||n)}];r.fromCharCode=a.reduceRight((function(e,t){return function(n,r){return t(e,n,r)}}),null),r.isHighSurrogate=function(e){return e>=55296&&e<=56319},r.isLowSurrogate=function(e){return e>=56320&&e<=57343},r.prototype.prepFeature=function(){this.feature||(this.feature=r.fromCharCode(this.codepoint,!0).feature)},r.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},r.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},r.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},r.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},r.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},r.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?r.fromCharCode(t):null};var c=function(e){this.str=e,this.cursor=0};c.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return r.isHighSurrogate(t)&&this.cursor<this.str.length&&r.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),r.fromCharCode(t)}return this.str=null,null};var u=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};u.prototype.next=function(){if(0===this.resBuf.length){var e=this.it.next();if(!e)return null;this.resBuf=function e(t,n){var i=n.getDecomp();if(!i||t&&n.isCompatibility())return[n];for(var s=[],o=0;o<i.length;++o){var a=e(t,r.fromCharCode(i[o]));s=s.concat(a)}return s}(this.canonical,e)}return this.resBuf.shift()};var l=function(e){this.it=e,this.resBuf=[]};l.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var n=this.resBuf.length;if(0!==e)for(;n>0;--n){if(this.resBuf[n-1].getCanonicalClass()<=e)break}this.resBuf.splice(n,0,t)}while(0!==e);return this.resBuf.shift()};var d=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};d.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),n=e.getCanonicalClass();t&&(this.lastClass<n||0===this.lastClass)?this.procBuf[0]=t:(0===n&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=n,this.procBuf.push(e))}}return this.resBuf.shift()};var p=function(e,t){for(var n,r=function(e,t){switch(e){case"NFD":return new l(new u(new c(t),!0));case"NFKD":return new l(new u(new c(t),!1));case"NFC":return new d(new l(new u(new c(t),!0)));case"NFKC":return new d(new l(new u(new c(t),!1)))}throw e+" is invalid"}(e,t),i="";n=r.next();)i+=n.toString();return i};r.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195e3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64e3:{64e3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var h={nfc:function(e){return p("NFC",e)},nfd:function(e){return p("NFD",e)},nfkc:function(e){return p("NFKC",e)},nfkd:function(e){return p("NFKD",e)}};e.exports=h,h.shimApplied=!1,String.prototype.normalize||(Object.defineProperty(String.prototype,"normalize",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=""+this,t=void 0===arguments[0]?"NFC":arguments[0];if(null==this)throw new TypeError("Cannot call method on "+Object.prototype.toString.call(this));if("NFC"===t)return h.nfc(e);if("NFD"===t)return h.nfd(e);if("NFKC"===t)return h.nfkc(e);if("NFKD"===t)return h.nfkd(e);throw new RangeError("Invalid normalization form: "+t)}}),h.shimApplied=!0)}()},function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",(function(){return f})),n.d(t,"Request",(function(){return S})),n.d(t,"Response",(function(){return T})),n.d(t,"DOMException",(function(){return A})),n.d(t,"fetch",(function(){return N}));n(6);var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i="URLSearchParams"in r,s="Symbol"in r&&"iterator"in Symbol,o="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in r,c="ArrayBuffer"in r;if(c)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(y)}),this.text=function(){var e,t,n,r=m(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[d(e)]},f.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},f.prototype.set=function(e,t){this.map[d(e)]=p(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},s&&(f.prototype[Symbol.iterator]=f.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof S){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),_.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function T(e,t){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},v.call(S.prototype),v.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:0,statusText:""});return e.type="error",e};var I=[301,302,303,307,308];T.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new T(null,{status:t,headers:{location:e}})};var A=r.DOMException;try{new A}catch(e){(A=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),A.prototype.constructor=A}function N(e,t){return new Promise((function(n,i){var s=new S(e,t);if(s.signal&&s.signal.aborted)return i(new A("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new T(i,r))}),0)},a.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){i(new A("Aborted","AbortError"))}),0)},a.open(s.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&(o?a.responseType="blob":c&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof f?s.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,p(t.headers[e]))})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}N.polyfill=!0,r.fetch||(r.fetch=N,r.Headers=f,r.Request=S,r.Response=T)},function(e,t,n){"use strict";var r,i=n(208),s=n(25),o=n(8),a=n(20),c=n(15),u=n(209),l=n(26),d=n(75),p=n(43).f,h=n(215),f=n(217),m=n(41),g=n(45),y=o.Int8Array,b=y&&y.prototype,v=o.Uint8ClampedArray,_=v&&v.prototype,S=y&&h(y),w=b&&h(b),T=Object.prototype,I=T.isPrototypeOf,A=m("toStringTag"),N=g("TYPED_ARRAY_TAG"),E=i&&!!f&&"Opera"!==u(o.opera),x=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},C=function(e){return a(e)&&c(R,u(e))};for(r in R)o[r]||(E=!1);if((!E||"function"!=typeof S||S===Function.prototype)&&(S=function(){throw TypeError("Incorrect invocation")},E))for(r in R)o[r]&&f(o[r],S);if((!E||!w||w===T)&&(w=S.prototype,E))for(r in R)o[r]&&f(o[r].prototype,w);if(E&&h(_)!==w&&f(_,w),s&&!c(w,A))for(r in x=!0,p(w,A,{get:function(){return a(this)?this[N]:void 0}}),R)o[r]&&l(o[r],N,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_TAG:x&&N,aTypedArray:function(e){if(C(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(f){if(I.call(S,e))return e}else for(var t in R)if(c(R,r)){var n=o[t];if(n&&(e===n||I.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(s){if(n)for(var r in R){var i=o[r];i&&c(i.prototype,e)&&delete i.prototype[e]}w[e]&&!n||d(w,e,n?t:E&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(s){if(f){if(n)for(r in R)(i=o[r])&&c(i,e)&&delete i[e];if(S[e]&&!n)return;try{return d(S,e,n?t:E&&y[e]||t)}catch(e){}}for(r in R)!(i=o[r])||i[e]&&!n||d(i,e,t)}},isView:function(e){var t=u(e);return"DataView"===t||c(R,t)},isTypedArray:C,TypedArray:S,TypedArrayPrototype:w}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var r=n(210),i=n(46),s=n(41)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r={};r[n(41)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t){e.exports=!1},function(e,t,n){var r=n(74);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r,i,s,o=n(214),a=n(8),c=n(20),u=n(26),l=n(15),d=n(77),p=n(78),h=a.WeakMap;if(o){var f=new h,m=f.get,g=f.has,y=f.set;r=function(e,t){return y.call(f,e,t),t},i=function(e){return m.call(f,e)||{}},s=function(e){return g.call(f,e)}}else{var b=d("state");p[b]=!0,r=function(e,t){return u(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},s=function(e){return l(e,b)}}e.exports={set:r,get:i,has:s,enforce:function(e){return s(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(8),i=n(76),s=r.WeakMap;e.exports="function"==typeof s&&/native code/.test(i(s))},function(e,t,n){var r=n(15),i=n(79),s=n(77),o=n(216),a=s("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r=n(14);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(44),i=n(218);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,s){return r(n),i(s),t?e.call(n,s):n.__proto__=s,n}}():void 0)},function(e,t,n){var r=n(20);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(220);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){var r=n(47);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){"use strict";n.r(t);var r=n(65),i=n(61);for(var s in i)["HttpClient","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);var o=n(55);for(var s in o)["HttpClient","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);var a=n(202);for(var s in a)["HttpClient","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);var c=n(29);for(var s in c)["HttpClient","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(s);var u=n(64);for(var s in u)["HttpClient","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(s);var l=n(35);n.d(t,"HttpClient",(function(){return l.HttpClient}));var d=n(16);n.d(t,"parseJwt",(function(){return d.parseJwt})),t.default=r.Client},function(e,t,n){t.RateLimiter=n(223),t.TokenBucket=n(82)},function(e,t,n){(function(t){var r=n(82),i=n(224),s=function(e,t,n){this.tokenBucket=new r(e,e,t,null),this.tokenBucket.content=e,this.curIntervalStart=i(),this.tokensThisInterval=0,this.fireImmediately=n};s.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(e,n){if(e>this.tokenBucket.bucketSize)return t.nextTick(n.bind(null,"Requested tokens "+e+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var r=this,s=i();if((s<this.curIntervalStart||s-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=s,this.tokensThisInterval=0),e>this.tokenBucket.tokensPerInterval-this.tokensThisInterval){if(this.fireImmediately)t.nextTick(n.bind(null,null,-1));else{var o=Math.ceil(this.curIntervalStart+this.tokenBucket.interval-s);setTimeout((function(){r.tokenBucket.removeTokens(e,a)}),o)}return!1}return this.tokenBucket.removeTokens(e,a);function a(t,i){if(t)return n(t,null);r.tokensThisInterval+=e,n(null,i)}},tryRemoveTokens:function(e){if(e>this.tokenBucket.bucketSize)return!1;var t=i();if((t<this.curIntervalStart||t-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=t,this.tokensThisInterval=0),e>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(e);return n&&(this.tokensThisInterval+=e),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},e.exports=s}).call(this,n(22))},function(e,t,n){(function(t){e.exports=function(){if(void 0!==t&&t.hrtime){var e=t.hrtime(),n=e[0],r=e[1];return 1e3*n+Math.floor(r/1e6)}return(new Date).getTime()}}).call(this,n(22))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};t.getSanitizedOptions=function(e){var t=r(r({},i),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(227),i=n(231);t.DelayFactory=function(e,t){var n=function(e){if(!e.delayFirstAttempt)return new r.SkipFirstDelay(e);return new i.AlwaysDelay(e)}(e);return n.setAttemptNumber(t),n}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.apply=function(){return s(this,void 0,void 0,(function(){return o(this,(function(t){return[2,!!this.isFirstAttempt||e.prototype.apply.call(this)]}))}))},Object.defineProperty(t.prototype,"isFirstAttempt",{get:function(){return 0===this.attempt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),t}(n(83).Delay);t.SkipFirstDelay=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(229),i=n(230);t.JitterFactory=function(e){switch(e.jitter){case"full":return r.fullJitter;case"none":default:return i.noJitter}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fullJitter=function(e){var t=Math.random()*e;return Math.round(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noJitter=function(e){return e}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(n(83).Delay);t.AlwaysDelay=s},function(e,t,n){(function(e){n(30);var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new s(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(252),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(12))},function(e,t,n){var r=n(8),i=n(84).f,s=n(26),o=n(75),a=n(42),c=n(236),u=n(245);e.exports=function(e,t){var n,l,d,p,h,f=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[f]||a(f,{}):(r[f]||{}).prototype)for(l in t){if(p=t[l],d=e.noTargetGet?(h=i(n,l))&&h.value:n[l],!u(m?l:f+(g?".":"#")+l,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&s(p,"sham",!0),o(n,l,p,e)}}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);t.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(14),i=n(46),s="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(15),i=n(237),s=n(84),o=n(43);e.exports=function(e,t){for(var n=i(t),a=o.f,c=s.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||a(e,l,c(t,l))}}},function(e,t,n){var r=n(49),i=n(239),s=n(244),o=n(44);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=s.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(8);e.exports=r},function(e,t,n){var r=n(240),i=n(243).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(15),i=n(48),s=n(241).indexOf,o=n(78);e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)!r(o,n)&&r(a,n)&&u.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~s(u,n)||u.push(n));return u}},function(e,t,n){var r=n(48),i=n(81),s=n(242),o=function(e){return function(t,n,o){var a,c=r(t),u=i(c.length),l=s(o,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(47),i=Math.max,s=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):s(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(14),i=/#|\.prototype\./,s=function(e,t){var n=a[o(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},o=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},function(e,t,n){var r,i,s,o=n(8),a=n(14),c=n(46),u=n(247),l=n(249),d=n(71),p=n(250),h=o.location,f=o.setImmediate,m=o.clearImmediate,g=o.process,y=o.MessageChannel,b=o.Dispatch,v=0,_={},S=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){S(e)}},T=function(e){S(e.data)},I=function(e){o.postMessage(e+"",h.protocol+"//"+h.host)};f&&m||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++v]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(v),v},m=function(e){delete _[e]},"process"==c(g)?r=function(e){g.nextTick(w(e))}:b&&b.now?r=function(e){b.now(w(e))}:y&&!p?(s=(i=new y).port2,i.port1.onmessage=T,r=u(s.postMessage,s,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||a(I)||"file:"===h.protocol?r="onreadystatechange"in d("script")?function(e){l.appendChild(d("script")).onreadystatechange=function(){l.removeChild(this),S(e)}}:function(e){setTimeout(w(e),0)}:(r=I,o.addEventListener("message",T,!1))),e.exports={set:f,clear:m}},function(e,t,n){var r=n(248);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(49);e.exports=r("document","documentElement")},function(e,t,n){var r=n(251);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(49);e.exports=r("navigator","userAgent")||""},function(e,t,n){(function(e,t){n(30),function(e,n){"use strict";if(!e.setImmediate){var r,i,s,o,a,c=1,u={},l=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){f(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){f(e.data)},r=function(e){s.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(f,0,e)}:(o="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(t){e.postMessage(o+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[c]=i,r(c),c++},p.clearImmediate=h}function h(e){delete u[e]}function f(e){if(l)setTimeout(f,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(12),n(22))},function(e,t,n){"use strict";(function(e){
|
|
22
|
+
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(o,a)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function p(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,u):l(s[0][2],n)}catch(e){l(s[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function v(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}},function(e,t){const n=e.exports={};function r(){}n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=r,n.addListener=r,n.once=r,n.off=r,n.removeListener=r,n.removeAllListeners=r,n.emit=r,n.prependListener=r,n.prependOnceListener=r,n.nextTick=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return window.queueMicrotask(()=>e(...n))},n.listeners=e=>[],n.cwd=()=>"/",n.umask=()=>0,n.binding=e=>{throw new Error("process.binding is not supported")},n.chdir=e=>{throw new Error("process.chdir is not supported")}},function(e,t,n){"use strict";var r=n(33),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var s=Object.create(n(29)),o=n(89),a=n(91);s.inherits(d,o);for(var c=i(a.prototype),u=0;u<c.length;u++){var l=c[u];d.prototype[l]||(d.prototype[l]=a.prototype[l])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";n.r(t);var r=n(40),i=n(17);let s,o,a=0,c=0;var u=function(e,t,n){let u=t&&n||0;const l=t||new Array(16);let d=(e=e||{}).node||s,p=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==p){const t=e.random||(e.rng||r.a)();null==d&&(d=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=o=16383&(t[6]<<8|t[7]))}let h=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:c+1;const m=h-a+(f-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||h>a)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,c=f,o=p,h+=122192928e5;const g=(1e4*(268435455&h)+f)%4294967296;l[u++]=g>>>24&255,l[u++]=g>>>16&255,l[u++]=g>>>8&255,l[u++]=255&g;const y=h/4294967296*1e4&268435455;l[u++]=y>>>8&255,l[u++]=255&y,l[u++]=y>>>24&15|16,l[u++]=y>>>16&255,l[u++]=p>>>8|128,l[u++]=255&p;for(let e=0;e<6;++e)l[u+e]=d[e];return t||Object(i.b)(l)},l=(n(6),n(18));var d=function(e){if(!Object(l.a)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function p(e,t,n){function r(e,r,s,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=d(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,s){o=o||0;for(let e=0;e<16;++e)s[o+e]=c[e];return s}return Object(i.b)(c)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function h(e){return 14+(e+64>>>9<<4)+1}function f(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,r,i,s){return f((o=f(f(t,e),f(r,s)))<<(a=i)|o>>>32-a,n);var o,a}function g(e,t,n,r,i,s,o){return m(t&n|~t&r,e,t,i,s,o)}function y(e,t,n,r,i,s,o){return m(t&r|n&~r,e,t,i,s,o)}function b(e,t,n,r,i,s,o){return m(t^n^r,e,t,i,s,o)}function v(e,t,n,r,i,s,o){return m(n^(t|~r),e,t,i,s,o)}var _=p("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length;for(let r=0;r<n;r+=8){const n=e[r>>5]>>>r%32&255,i=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[h(t)-1]=t;let n=1732584193,r=-271733879,i=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const o=n,a=r,c=i,u=s;n=g(n,r,i,s,e[t],7,-680876936),s=g(s,n,r,i,e[t+1],12,-389564586),i=g(i,s,n,r,e[t+2],17,606105819),r=g(r,i,s,n,e[t+3],22,-1044525330),n=g(n,r,i,s,e[t+4],7,-176418897),s=g(s,n,r,i,e[t+5],12,1200080426),i=g(i,s,n,r,e[t+6],17,-1473231341),r=g(r,i,s,n,e[t+7],22,-45705983),n=g(n,r,i,s,e[t+8],7,1770035416),s=g(s,n,r,i,e[t+9],12,-1958414417),i=g(i,s,n,r,e[t+10],17,-42063),r=g(r,i,s,n,e[t+11],22,-1990404162),n=g(n,r,i,s,e[t+12],7,1804603682),s=g(s,n,r,i,e[t+13],12,-40341101),i=g(i,s,n,r,e[t+14],17,-1502002290),r=g(r,i,s,n,e[t+15],22,1236535329),n=y(n,r,i,s,e[t+1],5,-165796510),s=y(s,n,r,i,e[t+6],9,-1069501632),i=y(i,s,n,r,e[t+11],14,643717713),r=y(r,i,s,n,e[t],20,-373897302),n=y(n,r,i,s,e[t+5],5,-701558691),s=y(s,n,r,i,e[t+10],9,38016083),i=y(i,s,n,r,e[t+15],14,-660478335),r=y(r,i,s,n,e[t+4],20,-405537848),n=y(n,r,i,s,e[t+9],5,568446438),s=y(s,n,r,i,e[t+14],9,-1019803690),i=y(i,s,n,r,e[t+3],14,-187363961),r=y(r,i,s,n,e[t+8],20,1163531501),n=y(n,r,i,s,e[t+13],5,-1444681467),s=y(s,n,r,i,e[t+2],9,-51403784),i=y(i,s,n,r,e[t+7],14,1735328473),r=y(r,i,s,n,e[t+12],20,-1926607734),n=b(n,r,i,s,e[t+5],4,-378558),s=b(s,n,r,i,e[t+8],11,-2022574463),i=b(i,s,n,r,e[t+11],16,1839030562),r=b(r,i,s,n,e[t+14],23,-35309556),n=b(n,r,i,s,e[t+1],4,-1530992060),s=b(s,n,r,i,e[t+4],11,1272893353),i=b(i,s,n,r,e[t+7],16,-155497632),r=b(r,i,s,n,e[t+10],23,-1094730640),n=b(n,r,i,s,e[t+13],4,681279174),s=b(s,n,r,i,e[t],11,-358537222),i=b(i,s,n,r,e[t+3],16,-722521979),r=b(r,i,s,n,e[t+6],23,76029189),n=b(n,r,i,s,e[t+9],4,-640364487),s=b(s,n,r,i,e[t+12],11,-421815835),i=b(i,s,n,r,e[t+15],16,530742520),r=b(r,i,s,n,e[t+2],23,-995338651),n=v(n,r,i,s,e[t],6,-198630844),s=v(s,n,r,i,e[t+7],10,1126891415),i=v(i,s,n,r,e[t+14],15,-1416354905),r=v(r,i,s,n,e[t+5],21,-57434055),n=v(n,r,i,s,e[t+12],6,1700485571),s=v(s,n,r,i,e[t+3],10,-1894986606),i=v(i,s,n,r,e[t+10],15,-1051523),r=v(r,i,s,n,e[t+1],21,-2054922799),n=v(n,r,i,s,e[t+8],6,1873313359),s=v(s,n,r,i,e[t+15],10,-30611744),i=v(i,s,n,r,e[t+6],15,-1560198380),r=v(r,i,s,n,e[t+13],21,1309151649),n=v(n,r,i,s,e[t+4],6,-145523070),s=v(s,n,r,i,e[t+11],10,-1120210379),i=v(i,s,n,r,e[t+2],15,718787259),r=v(r,i,s,n,e[t+9],21,-343485551),n=f(n,o),r=f(r,a),i=f(i,c),s=f(s,u)}return[n,r,i,s]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(h(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),S=n(203);function w(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function T(e,t){return e<<t|e>>>32-t}var I=p("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,i=Math.ceil(r/16),s=new Array(i);for(let t=0;t<i;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<i;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=s[e][t];for(let e=16;e<80;++e)r[e]=T(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],o=n[1],a=n[2],c=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),s=T(i,5)+w(n,o,a,c)+u+t[n]+r[e]>>>0;u=c,c=a,a=T(o,30)>>>0,o=i,i=s}n[0]=n[0]+i>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+a>>>0,n[3]=n[3]+c>>>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]]}));var A=function(e){if(!Object(l.a)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};n.d(t,"v1",(function(){return u})),n.d(t,"v3",(function(){return _})),n.d(t,"v4",(function(){return S.a})),n.d(t,"v5",(function(){return I})),n.d(t,"NIL",(function(){return"00000000-0000-0000-0000-000000000000"})),n.d(t,"version",(function(){return A})),n.d(t,"validate",(function(){return l.a})),n.d(t,"stringify",(function(){return i.a})),n.d(t,"parse",(function(){return d}))},function(e,t,n){var r=n(15);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(26),i=n(43),s=n(73);e.exports=r?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11),i=n(53);class s extends i.Transform{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"be";super(),this._block=r.Buffer.alloc(e),this._finalSize=t,this._blockSize=e,this._bigEndian="be"===n,this._len=0}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(e){r=e}n(r)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){"string"==typeof e&&(t=t||"utf8",e=r.Buffer.from(e,t));const n=this._block,i=this._blockSize,s=e.length;let o=this._len;for(let t=0;t<s;){const r=o%i,a=Math.min(s-t,i-r);for(let i=0;i<a;i++)n[r+i]=e[t+i];o+=a,t+=a,o%i==0&&this._update(n)}return this._len+=s,this}digest(e){const t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));const n=8*this._len;if(n<=4294967295)this._bigEndian?(this._block.writeUInt32BE(0,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)):(this._block.writeUInt32LE(n,this._blockSize-8),this._block.writeUInt32LE(0,this._blockSize-4));else{const e=(4294967295&n)>>>0,t=(n-e)/4294967296;this._bigEndian?(this._block.writeUInt32BE(t,this._blockSize-8),this._block.writeUInt32BE(e,this._blockSize-4)):(this._block.writeUInt32LE(e,this._blockSize-8),this._block.writeUInt32LE(t,this._blockSize-4))}this._update(this._block);const r=this._hash();return e?r.toString(e):r}_update(e){throw new Error("_update must be implemented by subclass")}_hash(){throw new Error("_update must be implemented by subclass")}}t.default=s},function(e,t,n){"use strict";t.inherits=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}},function(e,t,n){var r=n(233),i=n(8),s=n(246);r({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:s.set,clearImmediate:s.clear})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(32);class i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.name=e,this.attributes=t,this.children=[],this.optionalNamespaces={};for(const e of n)if("string"!=typeof e){const t=new i(e.name,e.attributes,e.children);t.parent=this,this.children.push(t)}else this.children.push(e)}getName(){return this.name.indexOf(":")>=0?this.name.substr(this.name.indexOf(":")+1):this.name}getNamespace(){if(this.name.indexOf(":")>=0){const e=this.name.substr(0,this.name.indexOf(":"));return this.findNamespaceForPrefix(e)}return this.findNamespaceForPrefix()}getNamespaceContext(){let e={};this.parent&&(e=this.parent.getNamespaceContext());for(const[t,n]of Object.entries(this.attributes))if(t.startsWith("xmlns:")){const r=t.substr(6);e[n]=r}return e}getDefaultNamespace(){return this.attributes.xmlns?this.attributes.xmlns:this.parent?this.parent.getDefaultNamespace():""}getNamespaceRoot(e){if(this.parent){const t=this.parent.getNamespaceRoot(e);if(t)return t}for(const[t,n]of Object.entries(this.attributes))if(t.startsWith("xmlns:")&&n===e)return this;if(this.optionalNamespaces[e])return this}getAttribute(e,t){if(!t)return this.attributes[e];const n=this.getNamespaceContext();return n[t]?this.attributes[[n[t],e].join(":")]:void 0}getChild(e,t){return this.getChildren(e,t)[0]}getChildren(e,t){const n=[];for(const r of this.children)"string"==typeof r||r.getName()!==e||t&&r.getNamespace()!==t||n.push(r);return n}getText(){let e="";for(const t of this.children)"string"==typeof t&&(e+=t);return e}appendChild(e){return this.children.push(e),"string"!=typeof e&&(e.parent=this),e}setAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.attributes[e]=t||void 0,""===t&&n&&(this.attributes[e]=t)}addOptionalNamespace(e,t){this.optionalNamespaces[t]=e}useNamespace(e,t){return this.optionalNamespaces[t]&&(e=this.optionalNamespaces[t]),this.setAttribute("xmlns:"+e,t),e}toJSON(){const e=this.children.map(e=>"string"==typeof e?e:e?e.toJSON():void 0).filter(e=>!!e),t={};for(const[e,n]of Object.entries(this.attributes))null!=n&&(t[e]=n);return{attributes:t,children:e,name:this.name}}toString(){let e=this.openTag(!0);if(this.children.length){for(const t of this.children)"string"==typeof t?e+=(0,r.escapeXMLText)(t):t&&(e+=t.toString());e+=this.closeTag()}return e}openTag(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";t+="<"+this.name;for(const[e,n]of Object.entries(this.attributes))void 0!==n&&(t+=` ${e}="${(0,r.escapeXML)(n.toString())}"`);return e&&0===this.children.length?t+="/>":t+=">",t}closeTag(){return`</${this.name}>`}findNamespaceForPrefix(e){if(e){const t="xmlns:"+e;if(this.attributes[t])return this.attributes[t];if(this.parent)return this.parent.findNamespaceForPrefix(e)}else{if(this.attributes.xmlns)return this.attributes.xmlns;if(this.parent)return this.parent.findNamespaceForPrefix()}return""}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basicLanguageResolver=t.escapeXMLText=t.unescapeXML=t.escapeXML=void 0;const r=(0,n(4).__importDefault)(n(51)),i={'"':""","&":"&","'":"'","<":"<",">":">"},s={"&":"&","'":"'",">":">","<":"<",""":'"'},o=/&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);/g,a=/&|<|>|"|'/g,c=/&|<|>/g;function u(e){return i[e]}t.escapeXML=function(e){return e.replace(a,u)},t.unescapeXML=function(e){return e.replace(o,e=>function(e){if(s[e])return s[e];const t=e.startsWith("&#x"),n=parseInt(e.substring(t?3:2,e.length-1),t?16:10);if(9===n||10===n||13===n||32<=n&&n<=55295||57344<=n&&n<=65533||65536<=n&&n<=1114111)return String.fromCodePoint(n);throw r.default.restrictedXML("Prohibited entity: "+e)}(e))},t.escapeXMLText=function(e){return e.replace(c,u)},t.basicLanguageResolver=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r=new Set(e.map(e=>e.toLowerCase()));for(let e of t.map(e=>e.toLowerCase()))if("*"!==e)for(;e.length>0;){if(r.has(e))return e;e=e.substring(0,e.lastIndexOf("-")).toLowerCase(),e.lastIndexOf("-")===e.length-2&&(e=e.substring(0,e.lastIndexOf("-")))}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=void 0,t.nextTick=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];queueMicrotask(()=>e(...n))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportToSDP=t.importFromSDP=void 0;const r=(0,n(4).__importStar)(n(95));t.importFromSDP=function(e){const t=r.getMediaSections(e),n=r.getDescription(e),i={groups:[],media:[]};r.matchPrefix(n,"a=ice-lite").length>0&&(i.iceLite=!0);for(const e of r.matchPrefix(n,"a=group:")){const t=e.split(" "),n=t.shift().substr(8);i.groups.push({mids:t,semantics:n})}for(const e of t){const t=r.getKind(e),s=r.isRejected(e),o=r.parseMLine(e),a={direction:r.getDirection(e,n),kind:t,mid:r.getMid(e),protocol:o.protocol};if(s||(a.iceParameters=r.getIceParameters(e,n),a.dtlsParameters=r.getDtlsParameters(e,n),a.setup=r.matchPrefix(e,"a=setup:")[0].substr(8),i.iceLite&&(a.iceParameters.iceLite=!0)),"audio"===t||"video"===t){a.rtpParameters=r.parseRtpParameters(e),a.rtpEncodingParameters=r.parseRtpEncodingParameters(e),a.rtcpParameters=r.parseRtcpParameters(e);const t=r.parseMsid(e);a.streams=t?[t]:[]}else"application"===t&&(a.sctp=r.parseSctpDescription(e));a.candidates=r.matchPrefix(e,"a=candidate:").map(r.parseCandidate),i.media.push(a)}return i},t.exportToSDP=function(e){const t=[];t.push(r.writeSessionBoilerplate(e.sessionId,e.sessionVersion),"a=msid-semantic:WMS *\r\n"),(e.iceLite||e.media.filter(e=>e.iceParameters&&e.iceParameters.iceLite).length>0)&&t.push("a=ice-lite\r\n");for(const n of e.groups||[])t.push(`a=group:${n.semantics} ${n.mids.join(" ")}\r\n`);for(const n of e.media||[]){const e=!(n.iceParameters&&n.dtlsParameters);if("application"===n.kind&&n.sctp)t.push(r.writeSctpDescription(n,n.sctp));else if(n.rtpParameters){let i=r.writeRtpDescription(n.kind,n.rtpParameters);e&&(i=i.replace(`m=${n.kind} 9 `,`m=${n.kind} 0 `)),t.push(i),t.push(`a=${n.direction||"sendrecv"}\r\n`);for(const e of n.streams||[])t.push(`a=msid:${e.stream} ${e.track}\r\n`);if(n.rtcpParameters&&(t.push(r.writeRtcpParameters(n.rtcpParameters)),n.rtcpParameters.cname&&n.rtpEncodingParameters&&n.rtpEncodingParameters[0].rtx)){const e=n.rtpEncodingParameters[0];t.push(`a=ssrc-group:FID ${e.ssrc} ${e.rtx.ssrc}\r\n`),t.push(`a=ssrc:${e.rtx.ssrc} cname:${n.rtcpParameters.cname}\r\n`)}}if(void 0!==n.mid&&t.push(`a=mid:${n.mid}\r\n`),n.iceParameters&&t.push(r.writeIceParameters({usernameFragment:n.iceParameters.usernameFragment,password:n.iceParameters.password})),n.dtlsParameters&&n.setup&&t.push(r.writeDtlsParameters(n.dtlsParameters,n.setup)),n.candidates&&n.candidates.length)for(const e of n.candidates)t.push(`a=${r.writeCandidate(e)}\r\n`)}return t.join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpClient=void 0;const r=n(22).__importStar(n(98)),i=n(13);class s{constructor(){this._httpRetryingRequests=new Map}requestApiWithRetry(e,t,n){const r=i.retryPromise(this.requestApi.bind(this,e,t),e=>{var n,r,i;let o=!1;if(null==e?void 0:e.response){o=s.retryStatusCodes.has(e.response.status||0);const a=(null===(n=e.response.headers)||void 0===n?void 0:n["retry-after"])||(null===(i=(r=e.response).getResponseHeader)||void 0===i?void 0:i.call(r,"retry-after"));a&&((t.logger||console).debug("retry-after header found on response. setting retry delay",{retryAfter:a}),o=1e3*parseInt(a,10))}return o},n,t.logger);return this._httpRetryingRequests.set(r._id,r),r.promise.then(()=>this.cancelRetryRequest(r._id),()=>this.cancelRetryRequest(r._id)),r}requestApi(e,t){const n=t.logger||console,i=(new Date).getTime(),s=this._buildUri(t.host,e,t.version),o={"content-type":t.contentType||"application/json",...t.customHeaders||{}},a={method:t.method,url:s,data:t.data,responseType:t.responseType,timeout:t.requestTimeout||3e4,headers:o};t.noAuthHeader||(a.headers.Authorization="Bearer "+t.authToken);const c=this.handleResponse.bind(this,n,i,a);return r.default(a).then(c,c)}handleResponse(e,t,n,i){var s,o,a;let c=(new Date).getTime(),u=c-t+"ms";if(i instanceof r.AxiosError){if((null===(o=null===(s=i.config)||void 0===s?void 0:s.headers)||void 0===o?void 0:o.Authorization)&&(i.config.headers.Authorization="redacted"),"ECONNABORTED"===i.code)return e.debug("request error: "+n.url,{message:i.message,now:c,elapsed:u},{skipServer:!0}),Promise.reject(i);const t=i.response||{};let r=t.status,l=t.headers&&t.headers["inin-correlation-id"],d=t.data,p={...i,text:null===(a=t.request)||void 0===a?void 0:a.response};return e.debug("request error: "+n.url,{message:i.message,now:c,elapsed:u,status:r,correlationId:l,body:d},{skipServer:!0}),Promise.reject(p)}let l=i.status,d=i.headers["inin-correlation-id"],p=JSON.stringify(i.data);return e.debug(`response: ${n.method.toUpperCase()} ${n.url}`,{now:c,status:l,elapsed:u,correlationId:d,body:p},{skipServer:!0}),Promise.resolve(i)}stopAllRetries(){Array.from(this._httpRetryingRequests.keys()).forEach(e=>this.cancelRetryRequest(e))}cancelRetryRequest(e){const t=this._httpRetryingRequests.get(e);return t&&(t.cancel(new Error("Retry request cancelled")),this._httpRetryingRequests.delete(e)),!0}formatRequestError(e){if(this.isSuperagentNetworkError(e))return{status:e.status,method:e.method,url:e.url,crossDomain:e.crossDomain,message:e.message,name:e.name,stack:e.stack};if(this.isSuperagentResponseError(e)){const t=e.response;return{status:e.status,correlationId:t.headers["inin-correlation-id"],message:"Error making HTTP request",method:t.req.method,name:t.error.name,stack:t.error.stack}}return e}isSuperagentNetworkError(e){return e&&e.hasOwnProperty("status")&&e.hasOwnProperty("method")&&e.hasOwnProperty("url")}isSuperagentResponseError(e){return!!(e&&e.response&&e.response.body&&e.response.req)}_buildUri(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"v2";return t=t.replace(/^\/+|\/+$/g,""),0===e.indexOf("http")?`${e}/api/${n}/${t}`:`https://api.${e}/api/${n}/${t}`}}t.HttpClient=s,s.retryStatusCodes=new Set([408,413,429,500,502,503,504])},function(e,t){var n=Object.prototype.hasOwnProperty;function r(e){return"[Throws: "+(e?e.message:"?")+"]"}function i(e){var t=[];return function e(i){if(null===i||"object"!=typeof i)return i;if(-1!==t.indexOf(i))return"[Circular]";if(t.push(i),"function"==typeof i.toJSON)try{var s=e(i.toJSON());return t.pop(),s}catch(e){return r(e)}if(Array.isArray(i)){var o=i.map(e);return t.pop(),o}var a=Object.keys(i).reduce((function(t,s){return t[s]=e(function(e,t){if(n.call(e,t))try{return e[t]}catch(e){return r(e)}return e[t]}(i,s)),t}),{});return t.pop(),a}(e)}e.exports=function(e,t,n){return JSON.stringify(i(e),t,n)},e.exports.ensureProperties=i},function(e,t,n){"use strict";function r(e){return(r="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)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=null},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(6);let r;const i=new Uint8Array(16);function s(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},function(e,t,n){var r=n(8),i=n(68),s=n(16),o=n(45),a=n(74),c=n(212),u=i("wks"),l=r.Symbol,d=c?l:l&&l.withoutSetter||o;e.exports=function(e){return s(u,e)||(a&&s(l,e)?u[e]=l[e]:u[e]=d("Symbol."+e)),u[e]}},function(e,t,n){var r=n(8),i=n(27);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(26),i=n(70),s=n(44),o=n(72),a=Object.defineProperty;t.f=r?a:function(e,t,n){if(s(e),t=o(t,!0),s(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(21);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(235),i=n(80);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(238),i=n(8),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(r[e])||s(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(s){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var a,c=2147483647,u=/^xn--/,l=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,f=String.fromCharCode;function m(e){throw new RangeError(p[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],i=0,s=e.length;i<s;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<s?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function v(e){return g(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=36)e=h(e/35);return h(r+36*e/(e+38))}function w(e){var t,n,r,i,s,o,a,u,l,d,p,f=[],g=e.length,y=0,b=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),f.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(s=y,o=1,a=36;i>=g&&m("invalid-input"),((u=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||u>h((c-y)/o))&&m("overflow"),y+=u*o,!(u<(l=a<=_?1:a>=_+26?26:a-_));a+=36)o>h(c/(d=36-l))&&m("overflow"),o*=d;_=S(y-s,t=f.length+1,0==s),h(y/t)>c-b&&m("overflow"),b+=h(y/t),y%=t,f.splice(y++,0,b)}return v(f)}function T(e){var t,n,r,i,s,o,a,u,l,d,p,g,y,v,w,T=[];for(g=(e=b(e)).length,t=128,n=0,s=72,o=0;o<g;++o)(p=e[o])<128&&T.push(f(p));for(r=i=T.length,i&&T.push("-");r<g;){for(a=c,o=0;o<g;++o)(p=e[o])>=t&&p<a&&(a=p);for(a-t>h((c-n)/(y=r+1))&&m("overflow"),n+=(a-t)*y,t=a,o=0;o<g;++o)if((p=e[o])<t&&++n>c&&m("overflow"),p==t){for(u=n,l=36;!(u<(d=l<=s?1:l>=s+26?26:l-s));l+=36)w=u-d,v=36-d,T.push(f(_(d+w%v,0))),u=h(w/v);T.push(f(_(u,0))),s=S(n,y,r==i),n=0,++r}++n,++t}return T.join("")}a={version:"1.4.1",ucs2:{decode:b,encode:v},decode:w,encode:T,toASCII:function(e){return y(e,(function(e){return l.test(e)?"xn--"+T(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return a}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(261)(e),n(12))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.JXTErrorCondition=void 0,function(e){e.NotWellFormed="not-well-formed",e.RestrictedXML="restricted-xml",e.AlreadyClosed="already-closed",e.UnknownRoot="unknown-stream-root"}(r=t.JXTErrorCondition||(t.JXTErrorCondition={}));class i extends Error{constructor(e){super(e.text),this.isJXTError=!0,this.condition=e.condition,this.text=e.text}static notWellFormed(e){return new i({condition:r.NotWellFormed,text:e})}static restrictedXML(e){return new i({condition:r.RestrictedXML,text:e})}static alreadyClosed(e){return new i({condition:r.AlreadyClosed,text:e})}static unknownRoot(e){return new i({condition:r.UnknownRoot,text:e})}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.childAlternateLanguageRawElement=t.childLanguageRawElement=t.childRawElement=t.staticValue=t.splicePath=t.multipleChildEnum=t.multipleChildAlternateLanguageText=t.childAlternateLanguageText=t.multipleChildIntegerAttribute=t.multipleChildAttribute=t.multipleChildText=t.childDoubleEnum=t.childEnum=t.deepMultipleChildText=t.deepChildBoolean=t.deepChildInteger=t.deepChildText=t.childBoolean=t.childTimezoneOffset=t.childJSON=t.childFloat=t.childInteger=t.childDate=t.childTextBuffer=t.childText=t.childLanguageAttribute=t.languageAttribute=t.textBuffer=t.textJSON=t.text=t.childDateAttribute=t.childFloatAttribute=t.childIntegerAttribute=t.childBooleanAttribute=t.childAttribute=t.namespacedDateAttribute=t.namespacedFloatAttribute=t.namespacedIntegerAttribute=t.namespacedBooleanAttribute=t.namespacedAttribute=t.dateAttribute=t.floatAttribute=t.integerAttribute=t.booleanAttribute=t.attribute=t.findOrCreate=t.findAll=t.getTargetLang=t.getLang=t.createElement=void 0,t.parameterMap=void 0;const r=n(4),i=n(9),s=(0,r.__importDefault)(n(31)),o=n(54);function a(e,t,n,r){if(r){e=e||r.getNamespace();const n=r.getNamespaceRoot(e);if(n){t=`${n.useNamespace("",e)}:${t}`}}const i=new s.default(t);return t.indexOf(":")<0&&(!n||e!==n)&&i.setAttribute("xmlns",e),i}function c(e,t){return(e.getAttribute("xml:lang")||t||"").toLowerCase()}function u(e,t){const n=[];for(const r of e)n.push(c(r,t.lang));let r;return r=t.resolveLanguage?t.resolveLanguage(n,t.acceptLanguages||[],t.lang):t.lang,r||""}function l(e,t,n,r){const i=e.getChildren(n,t),s=c(e);return i.length?r?i.filter(e=>{if(c(e,s)===r)return!0}):i:[]}function d(e,t,n,r){t=t||e.getNamespace();const i=l(e,t,n,r);if(i.length)return i[0];const s=a(t,n,e.getDefaultNamespace(),e),o=c(e,r);return r&&o!==r&&s.setAttribute("xml:lang",r),e.appendChild(s),s}function p(e){return{importer(t){const n=t.getAttribute(e.name,e.namespace);return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter(t,n){if(void 0===n||n===e.staticDefault)return;const r=e.writeValue(n);if(r||e.emitEmpty)if(e.namespace&&e.prefix){let n;const i=t.getNamespaceRoot(e.namespace);if(i)n=i.useNamespace(e.prefix,e.namespace);else{const r=t.getNamespaceContext();r[e.namespace]||(n=t.useNamespace(e.prefix,e.namespace),r[e.namespace]=n)}t.setAttribute(`${n}:${e.name}`,r,e.emitEmpty)}else t.setAttribute(e.name,r,e.emitEmpty)}}}function h(e,t){return function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i={staticDefault:r,...i},p({name:n,...e,...t?t(i):i})}}function f(e,t){return function(n,r,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o={staticDefault:s,...o},p({name:i,namespace:r,prefix:n,...e,...t?t(o):o})}}function m(e){const t=e.converter||p({...e,namespace:e.attributeNamespace});return{importer(n,r){const i=n.getChild(e.element,e.namespace||n.getNamespace());return i?t.importer(i,r):e.dynamicDefault?e.dynamicDefault():e.staticDefault},exporter(n,r,i){if(void 0!==r&&r!==e.staticDefault){const s=d(n,e.namespace||n.getNamespace(),e.element);t.exporter(s,r,i)}}}}function g(e,t){return function(n,r,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o={staticDefault:s,...o},m({element:r,name:i,namespace:n,...e,...t?t(o):o})}}function y(e){return{importer(t){const n=t.getText();return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter(t,n){if(!n&&e.emitEmpty)return void t.children.push("");if(void 0===n||n===e.staticDefault)return;const r=e.writeValue(n);r&&t.children.push(r)}}}function b(e){const t=y(e);return{importer(n,r){const i=l(n,e.namespace||n.getNamespace(),e.element),s=u(i,r);if(!i.length)return e.dynamicDefault?e.dynamicDefault():e.staticDefault;if(e.matchLanguage)for(const e of i)if(c(e,r.lang)===s)return t.importer(e,r);return t.importer(i[0],r)},exporter(n,r,i){if(r||!e.emitEmpty){if(void 0!==r&&r!==e.staticDefault){const s=d(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0);t.exporter(s,r,i)}}else d(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0)}}}t.createElement=a,t.getLang=c,t.getTargetLang=u,t.findAll=l,t.findOrCreate=d;const v={parseValue:e=>e,writeValue:e=>e},_={parseValue:e=>parseInt(e,10),writeValue:e=>e.toString()},S={parseValue:e=>parseFloat(e),writeValue:e=>e.toString()},w={parseValue:e=>"true"===e||"1"===e||"false"!==e&&"0"!==e&&void 0,writeValue:e=>e?"1":"0"},T={parseValue:e=>new Date(e),writeValue:e=>"string"==typeof e?e:e.toISOString()},I={parseValue:e=>JSON.parse(e),writeValue:e=>JSON.stringify(e)},A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return{parseValue:t=>("base64"===e&&"="===t&&(t=""),i.Buffer.from(t.trim(),e)),writeValue:t=>{let n;return n="string"==typeof t?i.Buffer.from(t).toString(e):t?t.toString(e):"","base64"===e&&(n=n||"="),n}}},E={parseValue:e=>{let t=-1;"-"===e.charAt(0)&&(t=1,e=e.slice(1));const n=e.split(":");return(60*parseInt(n[0],10)+parseInt(n[1],10))*t},writeValue:e=>{if("string"==typeof e)return e;{let t="-";e<0&&(e=-e,t="+");const n=e/60,r=e%60;return t+=(n<10?"0":"")+n+":"+(r<10?"0":"")+r,t}}};t.attribute=h(v,e=>({dynamicDefault:e.emitEmpty?t=>""===t?"":e.staticDefault:void 0,...e})),t.booleanAttribute=h(w),t.integerAttribute=h(_),t.floatAttribute=h(S),t.dateAttribute=h(T),t.namespacedAttribute=f(v),t.namespacedBooleanAttribute=f(w),t.namespacedIntegerAttribute=f(_),t.namespacedFloatAttribute=f(S),t.namespacedDateAttribute=f(T),t.childAttribute=g(v),t.childBooleanAttribute=g(w),t.childIntegerAttribute=g(_),t.childFloatAttribute=g(S),t.childDateAttribute=g(T);t.text=e=>y({staticDefault:e,...v});t.textJSON=()=>y({...I});function N(){return{importer:(e,t)=>c(e,t.lang),exporter(e,t,n){t&&t.toLowerCase()!==n.lang?e.setAttribute("xml:lang",t):e.setAttribute("xml:lang",void 0)}}}t.textBuffer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return y({...A(e)})},t.languageAttribute=N;t.childLanguageAttribute=(e,t)=>m({converter:N(),element:t,name:"xml:lang",namespace:e,...v});t.childText=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b({element:t,emitEmpty:r,matchLanguage:!0,namespace:e,staticDefault:n,...v})};t.childTextBuffer=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf8";return b({element:t,matchLanguage:!0,namespace:e,...A(n)})};t.childDate=(e,t)=>b({element:t,namespace:e,...T});t.childInteger=(e,t,n)=>b({element:t,namespace:e,staticDefault:n,..._});t.childFloat=(e,t,n)=>b({element:t,namespace:e,staticDefault:n,...S});t.childJSON=(e,t)=>b({element:t,namespace:e,...I}),t.childTimezoneOffset=function(e,t){return b({element:t,namespace:e,staticDefault:0,...E})},t.childBoolean=function(e,t){return{importer(n){if(n.getChild(t,e||n.getNamespace()))return!0},exporter(n,r){r&&d(n,e||n.getNamespace(),t)}}};const x=(e,t,n)=>{if(!n)return;let r=t;for(const t of e)r=d(r,t.namespace||r.getNamespace(),t.element);r.children.push(n.toString())};t.deepChildText=function(e,t){return{importer(n){let r=n;for(const n of e)if(r=r.getChild(n.element,n.namespace||r.getNamespace()),!r)return t;return r.getText()||t},exporter(t,n){x(e,t,n)}}},t.deepChildInteger=function(e,t){return{importer(n){let r=n;for(const t of e)if(r=r.getChild(t.element,t.namespace||r.getNamespace()),!r)return;const i=r.getText();return i?parseInt(i,10):t||void 0},exporter(t,n){x(e,t,n)}}},t.deepChildBoolean=function(e){return{importer(t){let n=t;for(const t of e)if(n=n.getChild(t.element,t.namespace||n.getNamespace()),!n)return!1;return!0},exporter(t,n){if(!n)return;let r=t;for(const t of e)r=d(r,t.namespace||r.getNamespace(),t.element)}}},t.deepMultipleChildText=function(e){const t=e.pop();return{importer(n,r){let i=n;for(const t of e)if(i=i.getChild(t.element,t.namespace||i.getNamespace()),!i)return[];const s=[],o=l(i,t.namespace||i.getNamespace(),t.element),a=u(o,r);for(const e of o)c(e,r.lang)===a&&s.push(e.getText());return s},exporter(n,r,i){if(!r.length)return;let s=n;for(const t of e)s=d(s,t.namespace||s.getNamespace(),t.element);const{namespace:o,element:c}=t;for(const e of r){const t=a(o||s.getNamespace(),c,i.namespace,s);t.children.push(e),s.appendChild(t)}}}},t.childEnum=function(e,t,n){const r=new Map,i=new Map;for(const e of t)"string"==typeof e?(r.set(e,e),i.set(e,e)):(r.set(e[1],e[0]),i.set(e[0],e[1]));return{importer(t){for(const n of t.children)if("string"!=typeof n&&n.getNamespace()===(e||t.getNamespace())&&r.has(n.getName()))return r.get(n.getName());return n},exporter(t,n){i.has(n)&&d(t,e,i.get(n))}}},t.childDoubleEnum=function(e,t,n,r){const i=new Set(t),s=new Set(n);return{importer(t){for(const n of t.children)if("string"!=typeof n&&n.getNamespace()===(e||t.getNamespace())&&i.has(n.getName())){for(const r of n.children)if("string"!=typeof r&&r.getNamespace()===(e||t.getNamespace())&&s.has(r.getName()))return[n.getName(),r.getName()];return[n.getName()]}return r},exporter(t,n){const r=d(t,e,n[0]);n[1]&&d(r,e,n[1])}}},t.multipleChildText=function(e,t){return{importer(n,r){const i=[],s=l(n,e||n.getNamespace(),t),o=u(s,r);for(const e of s)c(e,r.lang)===o&&i.push(e.getText());return i},exporter(n,r,i){for(const s of r){const r=a(e||n.getNamespace(),t,i.namespace,n);r.children.push(s),n.appendChild(r)}}}},t.multipleChildAttribute=function(e,t,n){return{importer(r){const i=[],s=r.getChildren(t,e||r.getNamespace());for(const e of s){const t=e.getAttribute(n);void 0!==t&&i.push(t)}return i},exporter(r,i,s){for(const o of i){const i=a(e||r.getNamespace(),t,s.namespace,r);i.setAttribute(n,o),r.appendChild(i)}}}},t.multipleChildIntegerAttribute=function(e,t,n){return{importer(r){const i=[],s=r.getChildren(t,e||r.getNamespace());for(const e of s){const t=e.getAttribute(n);void 0!==t&&i.push(parseInt(t,10))}return i},exporter(r,i,s){for(const o of i){const i=a(e||r.getNamespace(),t,s.namespace,r);i.setAttribute(n,o.toString()),r.appendChild(i)}}}},t.childAlternateLanguageText=function(e,t){return{importer(n,r){const i=[],s=l(n,e||n.getNamespace(),t),o=new Set;for(const e of s){const t=e.getText();if(t){const n=c(e,r.lang);if(o.has(n))continue;i.push({lang:n,value:t}),o.add(n)}}return o.size>0?i:void 0},exporter(n,r,i){for(const s of r){const r=s.value;if(r){const o=a(e||n.getNamespace(),t,i.namespace,n);s.lang!==i.lang&&o.setAttribute("xml:lang",s.lang),o.children.push(r),n.appendChild(o)}}}}},t.multipleChildAlternateLanguageText=function(e,t){return{importer(n,r){const i=[],s=new Map;let o=!1;const a=l(n,e||n.getNamespace(),t);for(const e of a){const t=e.getText();if(t){const n=c(e,r.lang);let a=s.get(n);a||(a=[],s.set(n,a),i.push({lang:n,value:a})),a.push(t),o=!0}}return o?i:void 0},exporter(n,r,i){for(const s of r)for(const r of s.value){const o=a(e||n.getNamespace(),t,i.namespace,n);s.lang!==i.lang&&o.setAttribute("xml:lang",s.lang),o.children.push(r),n.appendChild(o)}}}},t.multipleChildEnum=function(e,t){const n=new Map,r=new Map;for(const e of t)"string"==typeof e?(n.set(e,e),r.set(e,e)):(n.set(e[1],e[0]),r.set(e[0],e[1]));return{importer(t){const r=[];for(const i of t.children)"string"!=typeof i&&i.getNamespace()===(e||t.getNamespace())&&n.has(i.getName())&&r.push(n.get(i.getName()));return r},exporter(t,n){for(const i of n)d(t,e,r.get(i))}}},t.splicePath=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{importer(i,s){const o=i.getChild(t,e||i.getNamespace());if(!o)return;const a=[];for(const e of o.children)if("string"!=typeof e&&s.registry.getImportKey(e)===n){const t=s.registry.import(e);t&&a.push(t)}return r?a:a[0]},exporter(r,i,s){let o=[];o=Array.isArray(i)?i:[i];const a=[];for(const t of o){const i=s.registry.export(n,t,{...s,namespace:e||r.getNamespace()||void 0});i&&a.push(i)}if(a.length){const n=d(r,e||r.getNamespace(),t);for(const e of a)n.appendChild(e)}}}},t.staticValue=function(e){return{exporter:()=>{},importer:()=>e}},t.childRawElement=function(e,t,n){return{importer(r,i){if(n&&(!i.sanitizers||!i.sanitizers[n]))return;const s=r.getChild(t,e||r.getNamespace());return s?n?i.sanitizers[n](s.toJSON()):s.toJSON():void 0},exporter(r,i,a){if("string"==typeof i){i=(0,o.parse)(`<${t} xmlns="${e||r.getNamespace()}">${i}</${t}>`).toJSON()}if(n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}i&&r.appendChild(new s.default(i.name,i.attributes,i.children))}}},t.childLanguageRawElement=function(e,t,n){return{importer(r,i){if(n&&(!i.sanitizers||!i.sanitizers[n]))return;const s=l(r,e||r.getNamespace(),t),o=u(s,i);for(const e of s)if(c(e,i.lang)===o)return n?i.sanitizers[n](e.toJSON()):e.toJSON();return s[0]?n?i.sanitizers[n](s[0].toJSON()):s[0].toJSON():void 0},exporter(r,i,a){if("string"==typeof i){i=(0,o.parse)(`<${t} xmlns="${e||r.getNamespace()}">${i}</${t}>`).toJSON()}if(i&&n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}if(!i)return;const c=d(r,e||r.getNamespace(),t,a.lang);for(const e of i.children)"string"==typeof e?c.appendChild(e):e&&c.appendChild(new s.default(e.name,e.attributes,e.children))}}},t.childAlternateLanguageRawElement=function(e,t,n){return{importer(r,i){if(n&&(!i.sanitizers||!i.sanitizers[n]))return;const s=[],o=new Set,a=l(r,e||r.getNamespace(),t);for(const e of a){let t=e.toJSON();if(n&&(t=i.sanitizers[n](t)),t){const n=c(e,i.lang);if(o.has(n))continue;s.push({lang:n,value:t}),o.add(n)}}return o.size>0?s:void 0},exporter(r,i,c){for(const u of i){let i=u.value;if("string"==typeof i){i=(0,o.parse)(`<${t} xmlns="${e||r.getNamespace()}">${i}</${t}>`).toJSON()}if(i&&n){if(!c.sanitizers||!c.sanitizers[n])continue;i=c.sanitizers[n](i)}if(i){const n=a(e||r.getNamespace(),t,c.namespace,r);r.appendChild(n),u.lang!==c.lang&&n.setAttribute("xml:lang",u.lang);for(const e of i.children)"string"==typeof e?n.appendChild(e):n.appendChild(new s.default(e.name,e.attributes,e.children))}}}}},t.parameterMap=function(e,n,r,i){return{importer(s,o){const a={},c=l(s,e,n),u=(0,t.attribute)(r).importer,d=(0,t.attribute)(i).importer;for(const e of c)a[u(e,o)]=d(e,o);return a},exporter(s,o,c){const u=(0,t.attribute)(r).exporter,l=(0,t.attribute)(i).exporter,d=e||s.getNamespace();for(const[e,t]of Object.entries(o)){const r=a(d,n,c.namespace,s);u(r,e,c),o[e]&&l(r,t,c),s.appendChild(r)}}}}},function(e,t,n){"use strict";t.Readable=n(89),t.Writable=n(91),t.Duplex=n(24),t.Transform=n(93),t.PassThrough=n(274)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const r=n(4),i=n(7),s=n(32),o=(0,r.__importDefault)(n(31)),a=(0,r.__importDefault)(n(51));function c(e){return 97<=e&&e<=122||65<=e&&e<=90||58===e||95===e}function u(e){return 192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=767||880<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||65008<=e&&e<=65533||65536<=e&&e<=983039}function l(e){return c(e)||u(e)}function d(e){return c(e)||45===e||46===e||48<=e&&e<=57||183===e||768<=e&&e<=879||8255<=e&&e<=8256||u(e)}function p(e){return 32===e||10===e||13===e||9===e}class h extends i.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.allowComments=!0,this.attributes={},this.state=34,this.tagName="",this.haveDeclaration=!1,this.recordBuffer=[],void 0!==e.allowComments&&(this.allowComments=e.allowComments)}write(e){for(const t of e){const e=t.codePointAt(0);switch(this.state){case 34:if(60===e){let e;try{e=(0,s.unescapeXML)(this.endRecord())}catch(e){return void this.emit("error",e)}e&&this.emit("text",e),this.transition(31);continue}this.record(t);continue;case 31:if(47===e){this.transition(7);continue}if(33===e){this.transition(24);continue}if(63===e){if(this.haveDeclaration)return this.restrictedXML();this.transition(25);continue}if(l(e)){this.transition(30),this.startRecord(t);continue}return this.notWellFormed();case 30:if(d(e)){this.record(t);continue}if(p(e)){this.startTag(),this.transition(32);continue}if(47===e){this.startTag(),this.transition(29);continue}if(62===e){this.startTag(),this.transition(34),this.emit("startElement",this.tagName,this.attributes);continue}return this.notWellFormed();case 29:if(62===e){this.emit("startElement",this.tagName,this.attributes),this.emit("endElement",this.tagName),this.transition(34);continue}return this.notWellFormed();case 33:if(p(e)){this.transition(32);continue}if(47===e){this.transition(29);continue}if(62===e){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 32:if(p(e))continue;if(l(e)){this.startRecord(t),this.transition(0);continue}if(47===e){this.transition(29);continue}if(62===e){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 7:if(l(e)){this.startRecord(t),this.transition(6);continue}return this.notWellFormed();case 6:if(d(e)){this.record(t);continue}if(p(e)){this.transition(8);continue}if(62===e){const e=this.endRecord();this.emit("endElement",e,this.attributes),this.transition(34);continue}return this.notWellFormed();case 8:if(p(e))continue;if(62===e){const e=this.endRecord();this.emit("endElement",e,this.attributes),this.transition(34);continue}return this.notWellFormed();case 0:if(d(e)){this.record(t);continue}if(61===e){this.addAttribute(),this.transition(4);continue}if(p(e)){this.addAttribute(),this.transition(3);continue}return this.notWellFormed();case 3:if(61===e){this.transition(4);continue}if(p(e))continue;return this.notWellFormed();case 4:if(34===e){this.startRecord(),this.transition(1);continue}if(39===e){this.startRecord(),this.transition(2);continue}if(p(e))continue;return this.notWellFormed();case 1:case 2:if(34===e&&1===this.state||39===e&&2===this.state){const e=this.endRecord();this.attributes[this.attributeName]=(0,s.unescapeXML)(e),this.transition(33);continue}if(60===e)return this.notWellFormed();this.record(t);continue;case 24:if(45===e){if(!this.allowComments)return this.restrictedXML();this.transition(23);continue}if(91===e){this.transition(21);continue}return this.notWellFormed();case 23:if(45===e){this.transition(14);continue}return this.notWellFormed();case 14:45===e&&this.transition(12);continue;case 12:45===e?this.transition(11):this.transition(14);continue;case 11:62===e?this.transition(34):this.transition(14);continue;case 25:if(88===e||120===e){this.transition(28);continue}return this.notWellFormed();case 28:if(77===e||109===e){this.transition(27);continue}return this.notWellFormed();case 27:if(76===e||108===e){this.transition(26);continue}return this.notWellFormed();case 26:if(p(e)){this.haveDeclaration=!0,this.transition(15);continue}return this.notWellFormed();case 13:if(62===e){this.transition(34);continue}return this.notWellFormed();case 15:63===e&&this.transition(13);continue;case 21:this.wait(e,67,20);continue;case 20:this.wait(e,68,19);continue;case 19:this.wait(e,65,18);continue;case 18:this.wait(e,84,17);continue;case 17:this.wait(e,65,16);continue;case 16:this.wait(e,91,5);continue;case 5:if(93===e){this.transition(10);continue}this.record(t);continue;case 10:93===e?this.transition(9):(this.record(String.fromCodePoint(93)),this.record(t),this.transition(5));continue;case 9:if(62===e){const e=this.endRecord();e&&this.emit("text",e),this.transition(34)}else this.record(String.fromCodePoint(93)),this.record(String.fromCodePoint(93)),this.record(t),this.transition(5);continue}}}end(e){e&&this.write(e),this.write=()=>{}}record(e){this.recordBuffer.push(e)}startRecord(e){this.recordBuffer=[],e&&this.recordBuffer.push(e)}endRecord(){const e=this.recordBuffer;return this.recordBuffer=[],e.join("")}startTag(){this.tagName=this.endRecord(),this.attributes={}}addAttribute(){const e=this.endRecord();if(void 0!==this.attributes[e])return this.notWellFormed();this.attributeName=e,this.attributes[e]=""}wait(e,t,n){if(e!==t)return this.notWellFormed();this.transition(n)}transition(e){this.state=e,34===e&&this.startRecord()}notWellFormed(e){this.emit("error",a.default.notWellFormed(e))}restrictedXML(e){this.emit("error",a.default.restrictedXML(e))}}t.parse=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new h(t);let r,i,s=null;if(n.on("text",e=>{i&&i.children.push(e)}),n.on("startElement",(e,t)=>{const n=new o.default(e,t);r||(r=n),i=i?i.appendChild(n):n}),n.on("endElement",e=>{i?e===i.name?i.parent&&(i=i.parent):n.emit("error",a.default.notWellFormed("b")):n.emit("error",a.default.notWellFormed("a"))}),n.on("error",e=>{s=e}),n.write(e),n.end(),s)throw s;return r},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StanzaMediaSession=void 0;const r=n(22),i=r.__importDefault(n(7)),s=n(56),o=n(5),a=r.__importDefault(n(97)),c=n(20),u={"Discovered new ICE candidate":{skipMessage:!0}};class l extends s.MediaSession{constructor(e){super(e.options),this.iceCandidatesDiscovered=0,this.iceCandidatesReceivedFromPeer=0,this.reinvite=!1,this.logger=e.logger,this.conversationId=e.conversationId,this.peerConnection=this.pc,this.fromUserId=e.fromUserId,this.meetingId=e.meetingId,this.id=this.sid,this.originalRoomJid=e.originalRoomJid,this.sessionType=c.SessionTypes[e.sessionType],this.ignoreHostCandidatesFromRemote=!!e.ignoreHostCandidatesFromRemote,this.allowIPv6=!!e.allowIPv6,this.allowTCP=!!e.allowTCP,this.privAnswerMode=e.privAnswerMode;const t=new i.default;Object.keys(t.__proto__).forEach(e=>{this[e]=t[e]}),e.optOutOfWebrtcStatsTelemetry||this.setupStatsGatherer(),this.pc.addEventListener("connectionstatechange",this.onConnectionStateChange.bind(this)),this.pc.addEventListener("icecandidateerror",this.onIceCandidateError.bind(this))}getLogDetails(){return{conversationId:this.conversationId,sessionId:this.id,sessionType:this.sessionType}}async onTransportInfo(e,t){var n,r;const i=null===(n=e.contents)||void 0===n?void 0:n[0].transport,s=null==i?void 0:i.candidates;if(this.ignoreHostCandidatesFromRemote){const e=null==s?void 0:s.filter(e=>"host"!==e.type);(null==e?void 0:e.length)!==(null===(r=null==i?void 0:i.candidates)||void 0===r?void 0:r.length)&&(this._log("info","Ignoring remote host ice candidates"),i.candidates=e)}if(s)for(const e of s)this._log("info","Received candidate from peer",{candidateType:e.type}),this.iceCandidatesReceivedFromPeer++;return super.onTransportInfo(e,t)}_log(e,t){const n=u[t];if(null==n?void 0:n.skipMessage)return;let r;for(var i=arguments.length,s=new Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];if(s.length){const e=s[0];"object"!=typeof e||Array.isArray(e)||null===e?r={...this.getLogDetails(),data:e}:(Object.assign(s[0],this.getLogDetails()),r=s)}else r=[...s,this.getLogDetails()];this.logger[e](t,r)}async end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended",this.processingQueue.kill(),"string"==typeof e&&(e={condition:e}),t||(this._log("info","sending jingle session-terminate"),this.send("session-terminate",{reason:e})),setTimeout(()=>{"connected"!==this.pc.connectionState&&"connecting"!==this.pc.connectionState||this.pc.close()},2e3),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}setupStatsGatherer(){this.statsGatherer=new a.default(this.pc),this.statsGatherer.on("stats",this.emit.bind(this,"stats"))}onIceStateChange(){const e=this.pc.iceConnectionState,t=this.id,n=this.conversationId,r=this.sessionType;this._log("info","ICE state changed: ",{iceState:e,sessionId:t,conversationId:n}),"disconnected"===e?"stable"===this.pc.signalingState&&(this.interruptionStart=new Date,this._log("info","Connection state is interrupted",{sessionId:t,conversationId:n,sessionType:r})):"connected"===e?(this._log("info","sending session-info: active"),this.send(o.JingleAction.SessionInfo,{info:{infoType:o.JINGLE_INFO_ACTIVE}}),this._setupDataChannel()):"failed"===e&&this._log("info","ICE connection failed",{candidatesDiscovered:this.iceCandidatesDiscovered,candidatesReceivedFromPeer:this.iceCandidatesReceivedFromPeer}),super.onIceStateChange()}onConnectionStateChange(){const e=this.pc.connectionState,t=this.id,n=this.conversationId,r=this.sessionType;if(this._log("info","Connection state changed: ",{connectionState:e,sessionId:t,conversationId:n,sessionType:r}),this.interruptionStart)if("connected"===e){const e=(new Date).getTime()-this.interruptionStart.getTime();this._log("info","Connection was interrupted but was successfully recovered/connected",{sessionId:t,conversationId:n,sessionType:r,timeToRecover:e}),this.interruptionStart=void 0}else"failed"===e&&this._log("info","Connection was interrupted and failed to recover",{sessionId:t,conversationId:n,sessionType:r})}onIceCandidateError(e){const t=e;this._log("error","IceCandidateError",{errorCode:t.errorCode,errorText:t.errorText,url:t.url}),console.error("IceCandidateError",t)}onIceCandidate(e){if(e.candidate){if(!this.allowTCP&&"tcp"===e.candidate.protocol)return;if(!this.allowIPv6){const t=/.+udp [^ ]+ ([^ ]+).*typ host/.exec(e.candidate.candidate),n=/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/;if(t&&!t[1].match(n))return void this._log("debug","Filtering out IPv6 candidate",e.candidate.candidate)}this._log("debug","Processing ice candidate",e.candidate.candidate),this._log("info","Discovered ice candidate to send to peer",{type:e.candidate.type}),this.iceCandidatesDiscovered++}return super.onIceCandidate(e)}onIceEndOfCandidates(){super.onIceEndOfCandidates(),this.emit("endOfCandidates")}addTrack(e,t){return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",async()=>{const n=this.pc.getTransceivers().find(t=>{var n;return!t.sender.track&&(null===(n=t.receiver.track)||void 0===n?void 0:n.kind)===e.kind});if(n)return n.sender.replaceTrack(e);this.pc.addTrack(e,t)})}_setupDataChannel(){var e;this.dataChannel||(null===(e=this.pc.localDescription)||void 0===e?void 0:e.sdp.includes("webrtc-datachannel"))&&(this._log("info","creating data channel"),this.dataChannel=this.pc.createDataChannel("videoConferenceControl"),this.dataChannel.addEventListener("open",()=>{this._log("info","data channel opened")}),this.dataChannel.addEventListener("message",this._handleDataChannelMessage.bind(this)),this.dataChannel.addEventListener("close",()=>{this._log("info","closing data channel")}),this.dataChannel.addEventListener("error",e=>{this._log("error","Error occurred with the data channel",e)}))}_handleDataChannelMessage(e){try{const t=JSON.parse(e.data);this.emit("dataChannelMessage",t)}catch(e){this._log("error","Failed to parse data channel message",{error:e})}}}t.StanzaMediaSession=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionManager=t.FileSession=t.MediaSession=t.ICESession=t.Session=t.exportToSDP=t.importFromSDP=void 0;const r=n(4),i=(0,r.__importDefault)(n(94));t.FileSession=i.default;const s=(0,r.__importDefault)(n(57));t.ICESession=s.default;const o=(0,r.__importDefault)(n(96));t.MediaSession=o.default;const a=(0,r.__importDefault)(n(59));t.Session=a.default;const c=(0,r.__importDefault)(n(283));t.SessionManager=c.default;var u=n(34);Object.defineProperty(t,"importFromSDP",{enumerable:!0,get:function(){return u.importFromSDP}}),Object.defineProperty(t,"exportToSDP",{enumerable:!0,get:function(){return u.exportToSDP}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=(0,r.__importStar)(n(95)),s=n(5),o=n(1),a=n(34),c=n(58),u=(0,r.__importDefault)(n(59));class l extends u.default{constructor(e){super(e),this.bitrateLimit=0,this.candidateBuffer=[],this.transportType=o.NS_JINGLE_ICE_UDP_1,this.restartingIce=!1,this.usingRelay=!1,this.maxRelayBandwidth=e.maxRelayBandwidth,this.pc=this.parent.createPeerConnection(this,{...e.config,iceServers:e.iceServers}),this.pc.oniceconnectionstatechange=()=>{this.onIceStateChange()},this.pc.onicecandidate=e=>{e.candidate?this.onIceCandidate(e):this.onIceEndOfCandidates()},this.restrictRelayBandwidth()}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.pc.close(),super.end(e,t)}async restartIce(){if(this.isInitiator){void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this.restartingIce=!0;try{await this.processLocal("restart-ice",async()=>{const e=await this.pc.createOffer({iceRestart:!0}),t=(0,a.importFromSDP)(e.sdp);this.send(s.JingleAction.TransportInfo,{contents:t.media.map(e=>({creator:s.JingleSessionRole.Initiator,name:e.mid,transport:(0,c.convertIntermediateToTransport)(e,this.transportType)})),sid:this.sid}),await this.pc.setLocalDescription(e)})}catch(e){this._log("error","Could not create WebRTC offer",e),this.end(s.JingleReasonCondition.FailedTransport,!0)}}}async setMaximumBitrate(e){this.maximumBitrate&&(e=Math.min(e,this.maximumBitrate)),this.currentBitrate=e;const t=this.pc.getSenders().find(e=>!!e.track&&"video"===e.track.kind);if(t&&t.getParameters)try{await this.processLocal("set-bitrate",async()=>{const n=t.getParameters();n.encodings&&n.encodings.length||(n.encodings=[{}]),0===e?delete n.encodings[0].maxBitrate:n.encodings[0].maxBitrate=e,await t.setParameters(n)})}catch(e){this._log("error","Set maximumBitrate failed",e)}}async onTransportInfo(e,t){if(e.contents&&e.contents[0]&&e.contents[0].transport.gatheringComplete){const n={sdpMid:e.contents[0].name,candidate:""};try{"stable"===this.pc.signalingState?await this.pc.addIceCandidate(n):this.candidateBuffer.push(n)}catch(e){this._log("debug","Could not add null end-of-candidate")}finally{t()}return}if(this.pc.remoteDescription){const n=this.pc.remoteDescription,r=(0,a.importFromSDP)(n.sdp),i=r.media.find(t=>t.mid===e.contents[0].name).iceParameters.usernameFragment,o=e.contents[0].transport.usernameFragment;if(o&&i!==o){for(const[t,n]of e.contents.entries()){const e=n.transport;r.media[t].iceParameters={password:e.password,usernameFragment:e.usernameFragment},r.media[t].candidates=[]}try{if(await this.pc.setRemoteDescription({type:n.type,sdp:(0,a.exportToSDP)(r)}),await this.processBufferedCandidates(),"offer"===n.type){const e=await this.pc.createAnswer();await this.pc.setLocalDescription(e);const t=(0,a.importFromSDP)(e.sdp);this.send(s.JingleAction.TransportInfo,{contents:t.media.map(e=>({creator:s.JingleSessionRole.Initiator,name:e.mid,transport:(0,c.convertIntermediateToTransport)(e,this.transportType)})),sid:this.sid})}else this.restartingIce=!1}catch(e){return this._log("error","Could not do remote ICE restart",e),t(e),void this.end(s.JingleReasonCondition.FailedTransport)}}}const n=(e.contents||[]).map(e=>{const t=e.name,n=(e.transport.candidates||[]).map(async e=>{const n=i.writeCandidate((0,c.convertCandidateToIntermediate)(e));if(this.pc.remoteDescription&&"stable"===this.pc.signalingState)try{await this.pc.addIceCandidate({sdpMid:t,candidate:n})}catch(e){this._log("error","Could not add ICE candidate",e)}else this.candidateBuffer.push({sdpMid:t,candidate:n})});return Promise.all(n)});try{await Promise.all(n),t()}catch(e){this._log("error","Could not process transport-info: "+e),t(e)}}async onSessionAccept(e,t){this.state="active";const n=(0,c.convertRequestToIntermediate)(e,this.peerRole),r=(0,a.exportToSDP)(n);try{await this.pc.setRemoteDescription({type:"answer",sdp:r}),await this.processBufferedCandidates(),this.parent.emit("accepted",this,void 0),t()}catch(e){this._log("error","Could not process WebRTC answer: "+e),t({condition:"general-error"})}}onSessionTerminate(e,t){this._log("info","Terminating session"),this.pc.close(),super.end(e.reason,!0),t()}onIceCandidate(e){if(!e.candidate||!e.candidate.candidate)return;const t=i.parseCandidate(e.candidate.candidate),n={contents:[{creator:s.JingleSessionRole.Initiator,name:e.candidate.sdpMid,transport:{candidates:[(0,c.convertIntermediateToCandidate)(t)],transportType:this.transportType,usernameFragment:t.usernameFragment}}]};this._log("info","Discovered new ICE candidate",n),this.send(s.JingleAction.TransportInfo,n)}onIceEndOfCandidates(){this._log("info","ICE end of candidates");const e=(0,a.importFromSDP)(this.pc.localDescription.sdp).media[0];this.send(s.JingleAction.TransportInfo,{contents:[{creator:s.JingleSessionRole.Initiator,name:e.mid,transport:{gatheringComplete:!0,transportType:this.transportType,usernameFragment:e.iceParameters.usernameFragment}}]})}onIceStateChange(){switch(this.pc.iceConnectionState){case"checking":this.connectionState="connecting";break;case"completed":case"connected":this.connectionState="connected";break;case"disconnected":if("stable"===this.pc.signalingState?this.connectionState="interrupted":this.connectionState="disconnected",this.restartingIce)return void this.end(s.JingleReasonCondition.FailedTransport);this.maybeRestartIce();break;case"failed":if("failed"===this.connectionState||this.restartingIce)return void this.end(s.JingleReasonCondition.FailedTransport);this.connectionState="failed",this.restartIce();break;case"closed":this.connectionState="disconnected",this.restartingIce?this.end(s.JingleReasonCondition.FailedTransport):this.end()}}async processBufferedCandidates(){for(const e of this.candidateBuffer)try{await this.pc.addIceCandidate(e)}catch(e){this._log("error","Could not add ICE candidate",e)}this.candidateBuffer=[]}restrictRelayBandwidth(){this.pc.addEventListener("iceconnectionstatechange",async()=>{if("completed"!==this.pc.iceConnectionState&&"connected"!==this.pc.iceConnectionState)return;const e=await this.pc.getStats();let t;if(e.forEach(n=>{"transport"===n.type&&(t=e.get(n.selectedCandidatePairId))}),t||e.forEach(e=>{"candidate-pair"===e.type&&e.selected&&(t=e)}),!t)return;let n=!1,r="",i="";if(t.remoteCandidateId){const n=e.get(t.remoteCandidateId);n&&(i=n.candidateType)}if(t.localCandidateId){const n=e.get(t.localCandidateId);n&&(r=n.candidateType)}"relay"!==r&&"relay"!==i||(n=!0),this.usingRelay=n,this.parent.emit("iceConnectionType",this,{localCandidateType:r,relayed:n,remoteCandidateType:i}),n&&void 0!==this.maxRelayBandwidth&&(this.maximumBitrate=this.maxRelayBandwidth,this.currentBitrate?this.setMaximumBitrate(Math.min(this.currentBitrate,this.maximumBitrate)):this.setMaximumBitrate(this.maximumBitrate))})}maybeRestartIce(){this.isInitiator&&(void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this._maybeRestartingIce=setTimeout(()=>{this._maybeRestartingIce=void 0,"disconnected"===this.pc.iceConnectionState&&this.restartIce()},2e3))}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertRequestToIntermediate=t.convertContentToIntermediate=t.convertIntermediateToRequest=t.convertIntermediateToTransport=t.convertCandidateToIntermediate=t.convertIntermediateToCandidate=t.convertIntermediateToApplication=void 0;const r=n(5),i=n(1);function s(e,t){const n=e.rtpParameters,s=e.rtcpParameters||{},o=e.rtpEncodingParameters||[];let a=!1;o&&o.length&&(a=!!o[0].ssrc);const c={applicationType:i.NS_JINGLE_RTP_1,codecs:[],headerExtensions:[],media:e.kind,rtcpMux:s.mux,rtcpReducedSize:s.reducedSize,sourceGroups:[],sources:[],ssrc:a?o[0].ssrc.toString():void 0,streams:[]};for(const e of n.headerExtensions||[]){const n={id:e.id,uri:e.uri};e.direction&&"sendrecv"!==e.direction&&(n.senders=(0,r.directionToSenders)(t,e.direction)),c.headerExtensions.push(n)}s.ssrc&&s.cname&&(c.sources=[{parameters:{cname:s.cname},ssrc:s.ssrc.toString()}]),a&&o[0]&&o[0].rtx&&(c.sourceGroups=[{semantics:"FID",sources:[o[0].ssrc.toString(),o[0].rtx.ssrc.toString()]}]);for(const t of e.streams||[])c.streams.push({id:t.stream,track:t.track});for(const e of n.codecs||[]){const t={channels:e.channels,clockRate:e.clockRate,id:e.payloadType.toString(),name:e.name,parameters:e.parameters,rtcpFeedback:e.rtcpFeedback};e.maxptime&&(t.maxptime=e.maxptime),e.parameters&&e.parameters.ptime&&(t.ptime=parseInt(e.parameters.ptime,10)),c.codecs.push(t)}return c}function o(e){let t;return t="rtp"===e.component?1:"rtcp"===e.component?2:e.component,{component:t,foundation:e.foundation,generation:void 0,id:void 0,ip:e.ip,network:void 0,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function a(e){return{address:e.ip,component:1===e.component?"rtp":2===e.component?"rtcp":e.component,foundation:e.foundation,ip:e.ip,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function c(e,t){const n=e.iceParameters,r=e.dtlsParameters,i={candidates:[],transportType:t};n&&(i.usernameFragment=n.usernameFragment,i.password=n.password,n.iceLite&&(i.iceLite=!0)),r&&(i.fingerprints=r.fingerprints.map(t=>({algorithm:t.algorithm,setup:e.setup,value:t.value}))),e.sctp&&(i.sctp=e.sctp);for(const t of e.candidates||[])i.candidates.push(o(t));return i}function u(e,t){const n=e.application||{},s=e.transport,o=n&&n.applicationType===i.NS_JINGLE_RTP_1,c={direction:(0,r.sendersToDirection)(t,e.senders),kind:n.media||"application",mid:e.name,protocol:o?"UDP/TLS/RTP/SAVPF":"UDP/DTLS/SCTP"};if(o){if(c.rtcpParameters={compound:!n.rtcpReducedSize,mux:n.rtcpMux,reducedSize:n.rtcpReducedSize},n.sources&&n.sources.length){const e=n.sources[0];c.rtcpParameters.ssrc=parseInt(e.ssrc,10),e.parameters&&(c.rtcpParameters.cname=e.parameters.cname)}if(c.rtpParameters={codecs:[],fecMechanisms:[],headerExtensions:[],rtcp:[]},n.streams){c.streams=[];for(const e of n.streams)c.streams.push({stream:e.id,track:e.track})}if(n.ssrc&&(c.rtpEncodingParameters=[{ssrc:parseInt(n.ssrc,10)}],n.sourceGroups&&n.sourceGroups.length)){const e=n.sourceGroups[0];c.rtpEncodingParameters[0].rtx={ssrc:parseInt(e.sources[1],10)}}let e=!1,i=!1;for(const t of n.codecs||[]){const n=t.parameters||{},r=[];for(const e of t.rtcpFeedback||[])r.push({parameter:e.parameter,type:e.type});if("red"===t.name||"ulpfec"===t.name){e=e||"red"===t.name,i=i||"ulpfec"===t.name;const n=t.name.toUpperCase();c.rtpParameters.fecMechanisms.includes(n)||c.rtpParameters.fecMechanisms.push(n)}c.rtpParameters.codecs.push({channels:t.channels,clockRate:t.clockRate,name:t.name,numChannels:t.channels,parameters:n,payloadType:parseInt(t.id,10),rtcpFeedback:r})}for(const e of n.headerExtensions||[])c.rtpParameters.headerExtensions.push({direction:(0,r.sendersToDirection)(t,e.senders||"both"),id:e.id,uri:e.uri,attributes:void 0})}if(s){if(s.usernameFragment&&s.password&&(c.iceParameters={password:s.password,usernameFragment:s.usernameFragment},s.iceLite&&(c.iceParameters.iceLite=!0)),s.fingerprints&&s.fingerprints.length){c.dtlsParameters={fingerprints:[],role:"auto"};for(const e of s.fingerprints)c.dtlsParameters.fingerprints.push({algorithm:e.algorithm,value:e.value});s.sctp&&(c.sctp=s.sctp),c.setup=s.fingerprints[0].setup}c.candidates=(s.candidates||[]).map(a)}return c}t.convertIntermediateToApplication=s,t.convertIntermediateToCandidate=o,t.convertCandidateToIntermediate=a,t.convertIntermediateToTransport=c,t.convertIntermediateToRequest=function(e,t,n){return{contents:e.media.map(e=>({application:"audio"===e.kind||"video"===e.kind?s(e,t):{applicationType:"datachannel",protocol:e.protocol},creator:r.JingleSessionRole.Initiator,name:e.mid,senders:(0,r.directionToSenders)(t,e.direction),transport:c(e,n)})),groups:e.groups?e.groups.map(e=>({contents:e.mids,semantics:e.semantics})):[]}},t.convertContentToIntermediate=u,t.convertRequestToIntermediate=function(e,t){const n={groups:[],media:[]};for(const t of e.groups||[])n.groups.push({mids:t.contents,semantics:t.semantics});for(const r of e.contents||[])n.media.push(u(r,t));return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(60),i=n(5),s=n(14),o={condition:i.StanzaErrorCondition.BadRequest},a={condition:i.StanzaErrorCondition.FeatureNotImplemented,jingleError:i.JingleErrorCondition.UnsupportedInfo,type:"modify"};t.default=class{constructor(e){this.parent=e.parent,this.sid=e.sid||(0,s.uuid)(),this.peerID=e.peerID,this.role=e.initiator?i.JingleSessionRole.Initiator:i.JingleSessionRole.Responder,this._sessionState="starting",this._connectionState="starting",this.pendingApplicationTypes=e.applicationTypes||[],this.pendingAction=void 0,this.processingQueue=(0,r.priorityQueue)(async(e,t)=>{if("ended"===this.state)return"local"===e.type&&e.reject&&e.reject(new Error("Session ended")),void(t&&t());if("local"===e.type){this._log("debug","Processing local action:",e.name);try{const t=await e.handler();e.resolve(t)}catch(t){e.reject(t)}return void(t&&t())}const{action:n,changes:r,cb:s}=e;return this._log("debug","Processing remote action:",n),new Promise(e=>{const o=(n,r)=>{s(n,r),t&&t(),e()};switch(n){case i.JingleAction.ContentAccept:return this.onContentAccept(r,o);case i.JingleAction.ContentAdd:return this.onContentAdd(r,o);case i.JingleAction.ContentModify:return this.onContentModify(r,o);case i.JingleAction.ContentReject:return this.onContentReject(r,o);case i.JingleAction.ContentRemove:return this.onContentRemove(r,o);case i.JingleAction.DescriptionInfo:return this.onDescriptionInfo(r,o);case i.JingleAction.SecurityInfo:return this.onSecurityInfo(r,o);case i.JingleAction.SessionAccept:return this.onSessionAccept(r,o);case i.JingleAction.SessionInfo:return this.onSessionInfo(r,o);case i.JingleAction.SessionInitiate:return this.onSessionInitiate(r,o);case i.JingleAction.SessionTerminate:return this.onSessionTerminate(r,o);case i.JingleAction.TransportAccept:return this.onTransportAccept(r,o);case i.JingleAction.TransportInfo:return this.onTransportInfo(r,o);case i.JingleAction.TransportReject:return this.onTransportReject(r,o);case i.JingleAction.TransportReplace:return this.onTransportReplace(r,o);default:this._log("error","Invalid or unsupported action: "+n),o({condition:i.StanzaErrorCondition.BadRequest})}})},1)}get isInitiator(){return this.role===i.JingleSessionRole.Initiator}get peerRole(){return this.isInitiator?i.JingleSessionRole.Responder:i.JingleSessionRole.Initiator}get state(){return this._sessionState}set state(e){e!==this._sessionState&&(this._log("info","Changing session state to: "+e),this._sessionState=e,this.parent&&this.parent.emit("sessionState",this,e))}get connectionState(){return this._connectionState}set connectionState(e){e!==this._connectionState&&(this._log("info","Changing connection state to: "+e),this._connectionState=e,this.parent&&this.parent.emit("connectionState",this,e))}send(e,t){(t=t||{}).sid=this.sid,t.action=e;new Set([i.JingleAction.ContentAccept,i.JingleAction.ContentAdd,i.JingleAction.ContentModify,i.JingleAction.ContentReject,i.JingleAction.ContentRemove,i.JingleAction.SessionAccept,i.JingleAction.SessionInitiate,i.JingleAction.TransportAccept,i.JingleAction.TransportReject,i.JingleAction.TransportReplace]).has(e)?this.pendingAction=e:this.pendingAction=void 0,this.parent.signal(this,{id:(0,s.uuid)(),jingle:t,to:this.peerID,type:"set"})}processLocal(e,t){return new Promise((n,r)=>{this.processingQueue.push({handler:t,name:e,reject:r,resolve:n,type:"local"},1)})}process(e,t,n){this.processingQueue.push({action:e,cb:n,changes:t,type:"remote"},2)}start(e,t){this._log("error","Can not start base sessions"),this.end("unsupported-applications",!0)}accept(e,t){this._log("error","Can not accept base sessions"),this.end("unsupported-applications")}cancel(){this.end("cancel")}decline(){this.end("decline")}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended",this.processingQueue.kill(),"string"==typeof e&&(e={condition:e}),t||this.send("session-terminate",{reason:e}),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}_log(e,t){if(this.parent){t=this.sid+": "+t;for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this.parent.emit("log",e,t,...r),this.parent.emit("log:"+e,t,...r)}}onSessionInitiate(e,t){t()}onSessionAccept(e,t){t()}onSessionTerminate(e,t){this.end(e.reason,!0),t()}onSessionInfo(e,t){e.info?t(a):t()}onSecurityInfo(e,t){t(a)}onDescriptionInfo(e,t){t(a)}onTransportInfo(e,t){t(a)}onContentAdd(e,t){t(),this.send(i.JingleAction.ContentReject,{reason:{condition:i.JingleReasonCondition.FailedApplication,text:"content-add is not supported"}})}onContentAccept(e,t){t(o)}onContentReject(e,t){t(o)}onContentModify(e,t){t(o)}onContentRemove(e,t){t(o)}onTransportReplace(e,t){t(),this.send(i.JingleAction.TransportReject,{reason:{condition:i.JingleReasonCondition.FailedTransport,text:"transport-replace is not supported"}})}onTransportAccept(e,t){t(o)}onTransportReject(e,t){t(o)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"all",(function(){return me})),n.d(t,"allLimit",(function(){return ge})),n.d(t,"allSeries",(function(){return ye})),n.d(t,"any",(function(){return tt})),n.d(t,"anyLimit",(function(){return nt})),n.d(t,"anySeries",(function(){return rt})),n.d(t,"apply",(function(){return r})),n.d(t,"applyEach",(function(){return O})),n.d(t,"applyEachSeries",(function(){return j})),n.d(t,"asyncify",(function(){return d})),n.d(t,"auto",(function(){return D})),n.d(t,"autoInject",(function(){return J})),n.d(t,"cargo",(function(){return V})),n.d(t,"cargoQueue",(function(){return W})),n.d(t,"compose",(function(){return K})),n.d(t,"concat",(function(){return Z})),n.d(t,"concatLimit",(function(){return X})),n.d(t,"concatSeries",(function(){return ee})),n.d(t,"constant",(function(){return te})),n.d(t,"default",(function(){return mt})),n.d(t,"detect",(function(){return re})),n.d(t,"detectLimit",(function(){return ie})),n.d(t,"detectSeries",(function(){return se})),n.d(t,"dir",(function(){return ae})),n.d(t,"doDuring",(function(){return ce})),n.d(t,"doUntil",(function(){return ue})),n.d(t,"doWhilst",(function(){return ce})),n.d(t,"during",(function(){return pt})),n.d(t,"each",(function(){return de})),n.d(t,"eachLimit",(function(){return pe})),n.d(t,"eachOf",(function(){return C})),n.d(t,"eachOfLimit",(function(){return E})),n.d(t,"eachOfSeries",(function(){return P})),n.d(t,"eachSeries",(function(){return he})),n.d(t,"ensureAsync",(function(){return fe})),n.d(t,"every",(function(){return me})),n.d(t,"everyLimit",(function(){return ge})),n.d(t,"everySeries",(function(){return ye})),n.d(t,"filter",(function(){return Se})),n.d(t,"filterLimit",(function(){return we})),n.d(t,"filterSeries",(function(){return Te})),n.d(t,"find",(function(){return re})),n.d(t,"findLimit",(function(){return ie})),n.d(t,"findSeries",(function(){return se})),n.d(t,"flatMap",(function(){return Z})),n.d(t,"flatMapLimit",(function(){return X})),n.d(t,"flatMapSeries",(function(){return ee})),n.d(t,"foldl",(function(){return $})),n.d(t,"foldr",(function(){return ze})),n.d(t,"forEach",(function(){return de})),n.d(t,"forEachLimit",(function(){return pe})),n.d(t,"forEachOf",(function(){return C})),n.d(t,"forEachOfLimit",(function(){return E})),n.d(t,"forEachOfSeries",(function(){return P})),n.d(t,"forEachSeries",(function(){return he})),n.d(t,"forever",(function(){return Ie})),n.d(t,"groupBy",(function(){return Ee})),n.d(t,"groupByLimit",(function(){return Ae})),n.d(t,"groupBySeries",(function(){return Ne})),n.d(t,"inject",(function(){return $})),n.d(t,"log",(function(){return xe})),n.d(t,"map",(function(){return R})),n.d(t,"mapLimit",(function(){return Y})),n.d(t,"mapSeries",(function(){return k})),n.d(t,"mapValues",(function(){return Re})),n.d(t,"mapValuesLimit",(function(){return Ce})),n.d(t,"mapValuesSeries",(function(){return Oe})),n.d(t,"memoize",(function(){return Pe})),n.d(t,"nextTick",(function(){return ke})),n.d(t,"parallel",(function(){return Me})),n.d(t,"parallelLimit",(function(){return Le})),n.d(t,"priorityQueue",(function(){return Ue})),n.d(t,"queue",(function(){return De})),n.d(t,"race",(function(){return Je})),n.d(t,"reduce",(function(){return $})),n.d(t,"reduceRight",(function(){return ze})),n.d(t,"reflect",(function(){return Ge})),n.d(t,"reflectAll",(function(){return He})),n.d(t,"reject",(function(){return We})),n.d(t,"rejectLimit",(function(){return $e})),n.d(t,"rejectSeries",(function(){return Qe})),n.d(t,"retry",(function(){return Ye})),n.d(t,"retryable",(function(){return Ze})),n.d(t,"select",(function(){return Se})),n.d(t,"selectLimit",(function(){return we})),n.d(t,"selectSeries",(function(){return Te})),n.d(t,"seq",(function(){return Q})),n.d(t,"series",(function(){return et})),n.d(t,"setImmediate",(function(){return l})),n.d(t,"some",(function(){return tt})),n.d(t,"someLimit",(function(){return nt})),n.d(t,"someSeries",(function(){return rt})),n.d(t,"sortBy",(function(){return it})),n.d(t,"timeout",(function(){return st})),n.d(t,"times",(function(){return at})),n.d(t,"timesLimit",(function(){return ot})),n.d(t,"timesSeries",(function(){return ct})),n.d(t,"transform",(function(){return ut})),n.d(t,"tryEach",(function(){return lt})),n.d(t,"unmemoize",(function(){return dt})),n.d(t,"until",(function(){return ht})),n.d(t,"waterfall",(function(){return ft})),n.d(t,"whilst",(function(){return pt})),n.d(t,"wrapSync",(function(){return d}));n(30);function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e(...n,...r)}}function i(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.pop();return e.call(this,n,i)}}var s="function"==typeof queueMicrotask&&queueMicrotask,o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function c(e){setTimeout(e,0)}function u(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e(()=>t(...r))}}var l=u(s?queueMicrotask:o?setImmediate:a?process.nextTick:c);function d(e){return f(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.pop(),s=e.apply(this,n);return p(s,i)}:i((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return p(r,n);n(null,r)}))}function p(e,t){return e.then(e=>{h(t,null,e)},e=>{h(t,e&&(e instanceof Error||e.message)?e:new Error(e))})}function h(e,t,n){try{e(t,n)}catch(e){l(e=>{throw e},e)}}function f(e){return"AsyncFunction"===e[Symbol.toStringTag]}function m(e){if("function"!=typeof e)throw new Error("expected a function");return f(e)?d(e):e}function g(e,t){if(t||(t=e.length),!t)throw new Error("arity is undefined");return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"function"==typeof r[t-1]?e.apply(this,r):new Promise((n,i)=>{r[t-1]=function(e){if(e)return i(e);for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];n(r.length>1?r:r[0])},e.apply(this,r)})}}function y(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const s=g((function(n){var i=this;return e(t,(e,t)=>{m(e).apply(i,r.concat(t))},n)}));return s}}function b(e,t,n,r){t=t||[];var i=[],s=0,o=m(n);return e(t,(e,t,n)=>{var r=s++;o(e,(e,t)=>{i[r]=t,n(e)})},e=>{r(e,i)})}function v(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}var _={};function S(e){function t(){if(null!==e){var t=e;e=null;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}return Object.assign(t,e),t}function w(e){if(v(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,r,i,s=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return s?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(s):(n=(t=e)?Object.keys(t):[],r=-1,i=n.length,function e(){var s=n[++r];return"__proto__"===s?e():r<i?{value:t[s],key:s}:null})}function T(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}function I(e,t,n,r){let i=!1,s=!1,o=!1,a=0,c=0;function u(){a>=t||o||i||(o=!0,e.next().then(e=>{let{value:t,done:d}=e;if(!s&&!i){if(o=!1,d)return i=!0,void(a<=0&&r(null));a++,n(t,c,l),c++,u()}}).catch(d))}function l(e,t){if(a-=1,!s)return e?d(e):!1===e?(i=!0,void(s=!0)):t===_||i&&a<=0?(i=!0,r(null)):void u()}function d(e){s||(o=!1,i=!0,r(e))}u()}var A=e=>(t,n,r)=>{if(r=S(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if("AsyncGenerator"===t[Symbol.toStringTag])return I(t,e,n,r);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return I(t[Symbol.asyncIterator](),e,n,r);var i=w(t),s=!1,o=!1,a=0,c=!1;function u(e,t){if(!o)if(a-=1,e)s=!0,r(e);else if(!1===e)s=!0,o=!0;else{if(t===_||s&&a<=0)return s=!0,r(null);c||l()}}function l(){for(c=!0;a<e&&!s;){var t=i();if(null===t)return s=!0,void(a<=0&&r(null));a+=1,n(t.value,t.key,T(u))}c=!1}l()};var E=g((function(e,t,n,r){return A(t)(e,m(n),r)}),4);function N(e,t,n){n=S(n);var r=0,i=0,{length:s}=e,o=!1;function a(e,t){!1===e&&(o=!0),!0!==o&&(e?n(e):++i!==s&&t!==_||n(null))}for(0===s&&n(null);r<s;r++)t(e[r],r,T(a))}function x(e,t,n){return E(e,1/0,t,n)}var C=g((function(e,t,n){return(v(e)?N:x)(e,m(t),n)}),3);var R=g((function(e,t,n){return b(C,e,t,n)}),3),O=y(R);var P=g((function(e,t,n){return E(e,1,t,n)}),3);var k=g((function(e,t,n){return b(P,e,t,n)}),3),j=y(k);const M=Symbol("promiseCallback");function L(){let e,t;function n(n){if(n)return t(n);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];e(i.length>1?i:i[0])}return n[M]=new Promise((n,r)=>{e=n,t=r}),n}function D(e,t,n){"number"!=typeof t&&(n=t,t=null),n=S(n||L());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var i={},s=0,o=!1,a=!1,c=Object.create(null),u=[],l=[],d={};function p(e,t){u.push(()=>function(e,t){if(a)return;var r=T((function(t){for(var r=arguments.length,u=new Array(r>1?r-1:0),l=1;l<r;l++)u[l-1]=arguments[l];if(s--,!1!==t)if(u.length<2&&([u]=u),t){var d={};if(Object.keys(i).forEach(e=>{d[e]=i[e]}),d[e]=u,a=!0,c=Object.create(null),o)return;n(t,d)}else i[e]=u,f(e);else o=!0}));s++;var u=m(t[t.length-1]);t.length>1?u(i,r):u(r)}(e,t))}function h(){if(!o){if(0===u.length&&0===s)return n(null,i);for(;u.length&&s<t;){u.shift()()}}}function f(e){(c[e]||[]).forEach(e=>e()),h()}function g(t){var n=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)&&i.indexOf(t)>=0&&n.push(r)}),n}return Object.keys(e).forEach(t=>{var n=e[t];if(!Array.isArray(n))return p(t,[n]),void l.push(t);var r=n.slice(0,n.length-1),i=r.length;if(0===i)return p(t,n),void l.push(t);d[t]=i,r.forEach(s=>{if(!e[s])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+s+"` in "+r.join(", "));!function(e,t){var n=c[e];n||(n=c[e]=[]);n.push(t)}(s,()=>{0===--i&&p(t,n)})})}),function(){var e,t=0;for(;l.length;)e=l.pop(),t++,g(e).forEach(e=>{0==--d[e]&&l.push(e)});if(t!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h(),n[M]}var B=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,F=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,q=/,/,U=/(=.+)?(\s*)$/;function J(e,t){var n={};return Object.keys(e).forEach(t=>{var r,i=e[t],s=f(i),o=!s&&1===i.length||s&&0===i.length;if(Array.isArray(i))r=[...i],i=r.pop(),n[t]=r.concat(r.length>0?a:i);else if(o)n[t]=i;else{if(r=function(e){const t=function(e){let t="",n=0,r=e.indexOf("*/");for(;n<e.length;)if("/"===e[n]&&"/"===e[n+1]){let t=e.indexOf("\n",n);n=-1===t?e.length:t}else if(-1!==r&&"/"===e[n]&&"*"===e[n+1]){let i=e.indexOf("*/",n);-1!==i?(n=i+2,r=e.indexOf("*/",n)):(t+=e[n],n++)}else t+=e[n],n++;return t}(e.toString());let n=t.match(B);if(n||(n=t.match(F)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,r]=n;return r.replace(/\s/g,"").split(q).map(e=>e.replace(U,"").trim())}(i),0===i.length&&!s&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");s||r.pop(),n[t]=r.concat(a)}function a(e,t){var n=r.map(t=>e[t]);n.push(t),m(i)(...n)}}),D(n,t)}class z{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):G(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):G(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function G(e,t){e.length=1,e.head=e.tail=t}function H(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var r=m(e),i=0,s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(e,t){return e?t?void(o[e]=o[e].filter(e=>e!==t)):o[e]=[]:Object.keys(o).forEach(e=>o[e]=[])}function c(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o[e].forEach(e=>e(...n))}var u=!1;function d(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");var i,s;function o(e){if(e)return n?s(e):i();for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(r.length<=1)return i(r[0]);i(r)}y.started=!0;var a=y._createTaskItem(e,n?o:r||o);if(t?y._tasks.unshift(a):y._tasks.push(a),u||(u=!0,l(()=>{u=!1,y.process()})),n||!r)return new Promise((e,t)=>{i=e,s=t})}function p(e){return function(t){i-=1;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var a=0,u=e.length;a<u;a++){var l=e[a],d=s.indexOf(l);0===d?s.shift():d>0&&s.splice(d,1),l.callback(t,...r),null!=t&&c("error",t,l.data)}i<=y.concurrency-y.buffer&&c("unsaturated"),y.idle()&&c("drain"),y.process()}}function h(e){return!(0!==e.length||!y.idle())&&(l(()=>c("drain")),!0)}const f=e=>t=>{if(!t)return new Promise((t,n)=>{!function(e,t){const n=function(){a(e,n),t(...arguments)};o[e].push(n)}(e,(e,r)=>{if(e)return n(e);t(r)})});a(e),function(e,t){o[e].push(t)}(e,t)};var g=!1,y={_tasks:new z,_createTaskItem:(e,t)=>({data:e,callback:t}),*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!1,!1,t))}return d(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!1,!0,t))}return d(e,!1,!0,t)},kill(){a(),y._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!0,!1,t))}return d(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!0,!0,t))}return d(e,!0,!0,t)},remove(e){y._tasks.remove(e)},process(){if(!g){for(g=!0;!y.paused&&i<y.concurrency&&y._tasks.length;){var e=[],t=[],n=y._tasks.length;y.payload&&(n=Math.min(n,y.payload));for(var o=0;o<n;o++){var a=y._tasks.shift();e.push(a),s.push(a),t.push(a.data)}i+=1,0===y._tasks.length&&c("empty"),i===y.concurrency&&c("saturated");var u=T(p(e));r(t,u)}g=!1}},length:()=>y._tasks.length,running:()=>i,workersList:()=>s,idle:()=>y._tasks.length+i===0,pause(){y.paused=!0},resume(){!1!==y.paused&&(y.paused=!1,l(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:f("saturated")},unsaturated:{writable:!1,value:f("unsaturated")},empty:{writable:!1,value:f("empty")},drain:{writable:!1,value:f("drain")},error:{writable:!1,value:f("error")}}),y}function V(e,t){return H(e,1,t)}function W(e,t,n){return H(e,t,n)}var $=g((function(e,t,n,r){r=S(r);var i=m(n);return P(e,(e,n,r)=>{i(t,e,(e,n)=>{t=n,r(e)})},e=>r(e,t))}),4);function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map(m);return function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=n[n.length-1];return"function"==typeof s?n.pop():s=L(),$(r,n,(t,n,r)=>{n.apply(e,t.concat((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r(e,n)})))},(e,t)=>s(e,...t)),s[M]}}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Q(...t.reverse())}var Y=g((function(e,t,n,r){return b(A(t),e,n,r)}),4);var X=g((function(e,t,n,r){var i=m(n);return Y(e,t,(e,t)=>{i(e,(function(e){if(e)return t(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t(e,r)}))},(e,t)=>{for(var n=[],i=0;i<t.length;i++)t[i]&&(n=n.concat(...t[i]));return r(e,n)})}),4);var Z=g((function(e,t,n){return X(e,1/0,t,n)}),3);var ee=g((function(e,t,n){return X(e,1,t,n)}),3);function te(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.pop();return i(null,...t)}}function ne(e,t){return(n,r,i,s)=>{var o,a=!1;const c=m(i);n(r,(n,r,i)=>{c(n,(r,s)=>r||!1===r?i(r):e(s)&&!o?(a=!0,o=t(!0,n),i(null,_)):void i())},e=>{if(e)return s(e);s(null,a?o:t(!1))})}}var re=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(C,e,t,n)}),3);var ie=g((function(e,t,n,r){return ne(e=>e,(e,t)=>t)(A(t),e,n,r)}),4);var se=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(A(1),e,t,n)}),3);function oe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return m(t)(...r,(function(t){if("object"==typeof console)if(t)console.error&&console.error(t);else if(console[e]){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach(t=>console[e](t))}}))}}var ae=oe("dir");var ce=g((function(e,t,n){n=T(n);var r,i=m(e),s=m(t);function o(e){if(e)return n(e);if(!1!==e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];r=i,s(...i,a)}}function a(e,t){return e?n(e):!1!==e?t?void i(o):n(null,...r):void 0}return a(null,!0)}),3);function ue(e,t,n){const r=m(t);return ce(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i=t.pop();r(...t,(e,t)=>i(e,!t))}),n)}function le(e){return(t,n,r)=>e(t,r)}var de=g((function(e,t,n){return C(e,le(m(t)),n)}),3);var pe=g((function(e,t,n,r){return A(t)(e,le(m(n)),r)}),4);var he=g((function(e,t,n){return pe(e,1,t,n)}),3);function fe(e){return f(e)?e:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.pop(),s=!0;n.push((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s?l(()=>i(...t)):i(...t)})),e.apply(this,n),s=!1}}var me=g((function(e,t,n){return ne(e=>!e,e=>!e)(C,e,t,n)}),3);var ge=g((function(e,t,n,r){return ne(e=>!e,e=>!e)(A(t),e,n,r)}),4);var ye=g((function(e,t,n){return ne(e=>!e,e=>!e)(P,e,t,n)}),3);function be(e,t,n,r){var i=new Array(t.length);e(t,(e,t,r)=>{n(e,(e,n)=>{i[t]=!!n,r(e)})},e=>{if(e)return r(e);for(var n=[],s=0;s<t.length;s++)i[s]&&n.push(t[s]);r(null,n)})}function ve(e,t,n,r){var i=[];e(t,(e,t,r)=>{n(e,(n,s)=>{if(n)return r(n);s&&i.push({index:t,value:e}),r(n)})},e=>{if(e)return r(e);r(null,i.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function _e(e,t,n,r){return(v(t)?be:ve)(e,t,m(n),r)}var Se=g((function(e,t,n){return _e(C,e,t,n)}),3);var we=g((function(e,t,n,r){return _e(A(t),e,n,r)}),4);var Te=g((function(e,t,n){return _e(P,e,t,n)}),3);var Ie=g((function(e,t){var n=T(t),r=m(fe(e));return function e(t){if(t)return n(t);!1!==t&&r(e)}()}),2);var Ae=g((function(e,t,n,r){var i=m(n);return Y(e,t,(e,t)=>{i(e,(n,r)=>n?t(n):t(n,{key:r,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:i}=Object.prototype,s=0;s<t.length;s++)if(t[s]){var{key:o}=t[s],{val:a}=t[s];i.call(n,o)?n[o].push(a):n[o]=[a]}return r(e,n)})}),4);function Ee(e,t,n){return Ae(e,1/0,t,n)}function Ne(e,t,n){return Ae(e,1,t,n)}var xe=oe("log");var Ce=g((function(e,t,n,r){r=S(r);var i={},s=m(n);return A(t)(e,(e,t,n)=>{s(e,t,(e,r)=>{if(e)return n(e);i[t]=r,n(e)})},e=>r(e,i))}),4);function Re(e,t,n){return Ce(e,1/0,t,n)}function Oe(e,t,n){return Ce(e,1,t,n)}function Pe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;var n=Object.create(null),r=Object.create(null),s=m(e),o=i((e,i)=>{var o=t(...e);o in n?l(()=>i(null,...n[o])):o in r?r[o].push(i):(r[o]=[i],s(...e,(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];e||(n[o]=i);var a=r[o];delete r[o];for(var c=0,u=a.length;c<u;c++)a[c](e,...i)})))});return o.memo=n,o.unmemoized=e,o}var ke=u(a?process.nextTick:o?setImmediate:c),je=g((e,t,n)=>{var r=v(t)?[]:{};e(t,(e,t,n)=>{m(e)((function(e){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];s.length<2&&([s]=s),r[t]=s,n(e)}))},e=>n(e,r))},3);function Me(e,t){return je(C,e,t)}function Le(e,t,n){return je(A(t),e,n)}function De(e,t){var n=m(e);return H((e,t)=>{n(e[0],t)},t,1)}class Be{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&qe(this.heap[e],this.heap[t=Fe(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&qe(this.heap[t+1],this.heap[t])&&(t+=1),!qe(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=Fe(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function Fe(e){return(e+1>>1)-1}function qe(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function Ue(e,t){var n=De(e,t),{push:r,pushAsync:i}=n;function s(e,t){return Array.isArray(e)?e.map(e=>({data:e,priority:t})):{data:e,priority:t}}return n._tasks=new Be,n._createTaskItem=(e,t)=>{let{data:n,priority:r}=e;return{data:n,priority:r,callback:t}},n.push=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return r(s(e,t),n)},n.pushAsync=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return i(s(e,t),n)},delete n.unshift,delete n.unshiftAsync,n}var Je=g((function(e,t){if(t=S(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)m(e[n])(t)}),2);function ze(e,t,n,r){var i=[...e].reverse();return $(i,t,n,r)}function Ge(e){var t=m(e);return i((function(e,n){return e.push((function(e){let t={};e&&(t.error=e);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];if(i.length>0){var o=i;i.length<=1&&([o]=i),t.value=o}n(null,t)})),t.apply(this,e)}))}function He(e){var t;return Array.isArray(e)?t=e.map(Ge):(t={},Object.keys(e).forEach(n=>{t[n]=Ge.call(this,e[n])})),t}function Ve(e,t,n,r){const i=m(n);return _e(e,t,(e,t)=>{i(e,(e,n)=>{t(e,!n)})},r)}var We=g((function(e,t,n){return Ve(C,e,t,n)}),3);var $e=g((function(e,t,n,r){return Ve(A(t),e,n,r)}),4);var Qe=g((function(e,t,n){return Ve(P,e,t,n)}),3);function Ke(e){return function(){return e}}function Ye(e,t,n){var r={times:5,intervalFunc:Ke(0)};if(arguments.length<3&&"function"==typeof e?(n=t||L(),t=e):(Xe(r,e),n=n||L()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var i=m(t),s=1;function o(){i((function(e){if(!1!==e)if(e&&s++<r.times&&("function"!=typeof r.errorFilter||r.errorFilter(e)))setTimeout(o,r.intervalFunc(s-1));else{for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];n(e,...i)}}))}return o(),n[M]}function Xe(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Ke(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function Ze(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;f(t)&&(n+=1);var r=m(t);return i((t,i)=>{function s(e){r(...t,e)}return(t.length<n-1||null==i)&&(t.push(i),i=L()),e?Ye(e,s,i):Ye(s,i),i[M]})}function et(e,t){return je(P,e,t)}var tt=g((function(e,t,n){return ne(Boolean,e=>e)(C,e,t,n)}),3);var nt=g((function(e,t,n,r){return ne(Boolean,e=>e)(A(t),e,n,r)}),4);var rt=g((function(e,t,n){return ne(Boolean,e=>e)(P,e,t,n)}),3);var it=g((function(e,t,n){var r=m(t);return R(e,(e,t)=>{r(e,(n,r)=>{if(n)return t(n);t(n,{value:e,criteria:r})})},(e,t)=>{if(e)return n(e);n(null,t.sort(i).map(e=>e.value))});function i(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}}),3);function st(e,t,n){var r=m(e);return i((i,s)=>{var o,a=!1;i.push((function(){a||(s(...arguments),clearTimeout(o))})),o=setTimeout((function(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),a=!0,s(r)}),t),r(...i)})}function ot(e,t,n,r){var i=m(n);return Y(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,i,r)}function at(e,t,n){return ot(e,1/0,t,n)}function ct(e,t,n){return ot(e,1,t,n)}function ut(e,t,n,r){arguments.length<=3&&"function"==typeof t&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=S(r||L());var i=m(n);return C(e,(e,n,r)=>{i(t,e,n,r)},e=>r(e,t)),r[M]}var lt=g((function(e,t){var n,r=null;return he(e,(e,t)=>{m(e)((function(e){if(!1===e)return t(e);for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];s.length<2?[n]=s:n=s,r=e,t(e?null:{})}))},()=>t(r,n))}));function dt(e){return function(){return(e.unmemoized||e)(...arguments)}}var pt=g((function(e,t,n){n=T(n);var r=m(t),i=m(e),s=[];function o(e){if(e)return n(e);for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];s=r,!1!==e&&i(a)}function a(e,t){return e?n(e):!1!==e?t?void r(o):n(null,...s):void 0}return i(a)}),3);function ht(e,t,n){const r=m(e);return pt(e=>r((t,n)=>e(t,!n)),t,n)}var ft=g((function(e,t){if(t=S(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(t){m(e[n++])(...t,T(i))}function i(i){if(!1!==i){for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];if(i||n===e.length)return t(i,...o);r(o)}}r([])})),mt={apply:r,applyEach:O,applyEachSeries:j,asyncify:d,auto:D,autoInject:J,cargo:V,cargoQueue:W,compose:K,concat:Z,concatLimit:X,concatSeries:ee,constant:te,detect:re,detectLimit:ie,detectSeries:se,dir:ae,doUntil:ue,doWhilst:ce,each:de,eachLimit:pe,eachOf:C,eachOfLimit:E,eachOfSeries:P,eachSeries:he,ensureAsync:fe,every:me,everyLimit:ge,everySeries:ye,filter:Se,filterLimit:we,filterSeries:Te,forever:Ie,groupBy:Ee,groupByLimit:Ae,groupBySeries:Ne,log:xe,map:R,mapLimit:Y,mapSeries:k,mapValues:Re,mapValuesLimit:Ce,mapValuesSeries:Oe,memoize:Pe,nextTick:ke,parallel:Me,parallelLimit:Le,priorityQueue:Ue,queue:De,race:Je,reduce:$,reduceRight:ze,reflect:Ge,reflectAll:He,reject:We,rejectLimit:$e,rejectSeries:Qe,retry:Ye,retryable:Ze,seq:Q,series:et,setImmediate:l,some:tt,someLimit:nt,someSeries:rt,sortBy:it,timeout:st,times:at,timesLimit:ot,timesSeries:ct,transform:ut,tryEach:lt,unmemoize:dt,until:ht,waterfall:ft,whilst:pt,all:me,allLimit:ge,allSeries:ye,any:tt,anyLimit:nt,anySeries:rt,find:re,findLimit:ie,findSeries:se,flatMap:Z,flatMapLimit:X,flatMapSeries:ee,forEach:de,forEachSeries:he,forEachLimit:pe,forEachOf:C,forEachOfSeries:P,forEachOfLimit:E,inject:$,foldl:$,foldr:ze,select:Se,selectLimit:we,selectSeries:Te,wrapSync:d,during:pt,doDuring:ce}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenesysCloudMediaSession=void 0;const r=n(22).__importDefault(n(97)),i=n(7),s=n(25),o=n(13),a=n(20);t.GenesysCloudMediaSession=class{constructor(e,t){this.webrtcExtension=e,this.iceCandidatesDiscovered=0,this.iceCandidatesReceivedFromPeer=0,this.state="pending",this.connectionState="starting",this.id=t.id,this.fromJid=t.fromJid,this.peerID=t.peerID,this.logger=t.logger,this.conversationId=t.conversationId,this.fromUserId=t.fromUserId,this.pc=this.peerConnection=new RTCPeerConnection({iceServers:t.iceServers,iceTransportPolicy:t.iceTransportPolicy}),this.originalRoomJid=t.originalRoomJid,this.sessionType=a.SessionTypes[t.sessionType],this.ignoreHostCandidatesFromRemote=!!t.ignoreHostCandidatesFromRemote,this.allowIPv6=!!t.allowIPv6,this.allowTCP=!!t.allowTCP,this.reinvite=!!t.reinvite,this.privAnswerMode=t.privAnswerMode;const n=new i.EventEmitter;Object.keys(n.__proto__).forEach(e=>{this[e]=n[e]}),t.optOutOfWebrtcStatsTelemetry||this.setupStatsGatherer(),this.peerConnection.addEventListener("icecandidate",this.onIceCandidate.bind(this)),this.peerConnection.addEventListener("iceconnectionstatechange",this.onIceStateChange.bind(this)),this.peerConnection.addEventListener("connectionstatechange",this.onConnectionStateChange.bind(this)),this.peerConnection.addEventListener("icecandidateerror",this.onIceCandidateError.bind(this))}keepStateInSyncWithPeerConnection(){this.stateSyncTimeout&&(clearTimeout(this.stateSyncTimeout),this.stateSyncTimeout=void 0);const e=Date.now();this.stateSyncTimeout=setTimeout(()=>{Date.now()-e>4e3&&(this.log("warn","MediaSession detected timer anomally. Reasons include taxed resources or system sleep."),"ended"!==this.state&&["failed","closed"].includes(this.peerConnection.connectionState)&&(this.log("warn","state mismatch between session.state and peerConnection.connectionState, manually terminating the session",{sessionId:this.id,conversationId:this.conversationId,sessionType:this.sessionType}),this.state="ended",this.onSessionTerminate())),"ended"!==this.state&&this.keepStateInSyncWithPeerConnection()},2e3)}async setRemoteDescription(e){return this.peerConnection.setRemoteDescription({sdp:e,type:"offer"})}getLogDetails(){return{conversationId:this.conversationId,sessionId:this.id,sessionType:this.sessionType}}log(e,t,n,r){n||(n={});const i={...n,...this.getLogDetails()};this.logger[e](t,i,r)}async sendGenesysWebrtc(e){e.id=e.id||s.v4(),e.jsonrpc=e.jsonrpc||"2.0";const t={type:"set",genesysWebrtc:e,from:this.webrtcExtension.jid,to:this.peerID};return this.webrtcExtension.sendIq(t)}async end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended";const n={sessionId:this.id,reason:e.condition||e};t||await o.timeoutPromise((e,t)=>{this.log("info","sending sdp terminate"),this.sendGenesysWebrtc({jsonrpc:"2.0",method:"terminate",params:n}).then(e,t)},2e3,"Timeout waiting for response to termination request",{sessionId:this.id,conversationId:this.conversationId,sessionType:this.sessionType}).catch(e=>this.logger.error(e)),this.onSessionTerminate(n.reason)}setupStatsGatherer(){this.statsGatherer=new r.default(this.peerConnection),this.statsGatherer.on("stats",this.emit.bind(this,"stats"))}async onIceStateChange(){const e=this.peerConnection.iceConnectionState,t=this.id,n=this.conversationId,r=this.sessionType;if(this.log("info","ICE state changed: ",{iceState:e,sessionId:t,conversationId:n}),"disconnected"===e)"stable"===this.peerConnection.signalingState&&(this.interruptionStart=new Date,this.log("info","Connection state is interrupted",{sessionId:t,conversationId:n,sessionType:r}));else if("connected"===e){this.log("info","sending session-info: active");const e={sessionId:this.id,status:"active"};await this.sendGenesysWebrtc({jsonrpc:"2.0",params:e,method:"info"}),this._setupDataChannel()}else"failed"===e&&this.log("info","ICE connection failed",{candidatesDiscovered:this.iceCandidatesDiscovered,candidatesReceivedFromPeer:this.iceCandidatesReceivedFromPeer})}onConnectionStateChange(){const e=this.connectionState=this.peerConnection.connectionState,t=this.id,n=this.conversationId,r=this.sessionType;if("connected"===e&&this.keepStateInSyncWithPeerConnection(),this.log("info","Connection state changed: ",{connectionState:e,sessionId:t,conversationId:n,sessionType:r}),this.interruptionStart)if("connected"===e){const e=(new Date).getTime()-this.interruptionStart.getTime();this.log("info","Connection was interrupted but was successfully recovered/connected",{sessionId:t,conversationId:n,sessionType:r,timeToRecover:e}),this.interruptionStart=void 0}else"failed"===e&&(this.log("info","Connection was interrupted and failed to recover, cleaning up",{sessionId:t,conversationId:n,sessionType:r}),this.state="ended",this.onSessionTerminate())}onIceCandidateError(e){const t=e;this.log("error","IceCandidateError",{errorCode:t.errorCode,errorText:t.errorText,url:t.url})}createIceCandidate(e,t){return new RTCIceCandidate({sdpMid:e,candidate:t})}async addRemoteIceCandidate(e){const t=e.match(/m=([^\s]+)/)[1],n=e.match(/a=([^\\\r]+)/)[1],r=this.createIceCandidate(t,n);await this.peerConnection.addIceCandidate(r)}onIceCandidate(e){var t,n;let r,i=null===(t=e.candidate)||void 0===t?void 0:t.candidate,s=null===(n=e.candidate)||void 0===n?void 0:n.sdpMid;if(e.candidate){if(!this.allowTCP&&"tcp"===e.candidate.protocol)return;if(!this.allowIPv6){const t=/.+udp [^ ]+ ([^ ]+).*typ host/.exec(e.candidate.candidate),n=/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/;if(t&&!t[1].match(n))return void this.log("debug","Filtering out IPv6 candidate",e.candidate.candidate)}this.log("debug","Processing ice candidate",e.candidate),this.log("info","Discovered ice candidate to send to peer",{type:e.candidate.type}),this.iceCandidatesDiscovered++,r=`m=${s} 9 RTP/AVP 0\r\na=${i}`}else r="a=end-of-candidates",this.emit("endOfCandidates");return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"iceCandidate",params:{sessionId:this.id,sdp:r}})}onSessionTerminate(e){this.peerConnection&&this.peerConnection.close(),this.logger.info("emitting sdp media-session (terminate)"),this.emit("terminated",{condition:e||"success"})}async addTrack(e,t){const n=this.peerConnection.getTransceivers().find(t=>{var n;return!t.sender.track&&(null===(n=t.receiver.track)||void 0===n?void 0:n.kind)===e.kind});if(n)return n.sender.replaceTrack(e);this.peerConnection.addTrack(e,t)}_setupDataChannel(){var e;this.dataChannel||(null===(e=this.peerConnection.remoteDescription)||void 0===e?void 0:e.sdp.includes("webrtc-datachannel"))&&(this.log("info","creating data channel"),this.dataChannel=this.peerConnection.createDataChannel("videoConferenceControl"),this.dataChannel.addEventListener("open",()=>{this.log("info","data channel opened")}),this.dataChannel.addEventListener("message",this._handleDataChannelMessage.bind(this)),this.dataChannel.addEventListener("close",()=>{this.log("info","closing data channel")}),this.dataChannel.addEventListener("error",e=>{this.log("error","Error occurred with the data channel",e)}))}_handleDataChannelMessage(e){try{const t=JSON.parse(e.data);this.emit("dataChannelMessage",t)}catch(e){this.log("error","Failed to parse data channel message",{error:e})}}async accept(){this.state="active";const e=await this.peerConnection.createAnswer();await this.peerConnection.setLocalDescription(e);const t={sdp:e.sdp,sessionId:this.id};return this.logger.info("sending sdp answer",t),this.sendGenesysWebrtc({jsonrpc:"2.0",method:"answer",params:t})}async mute(e,t){const n={sessionId:this.id,type:t};return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"mute",params:n})}async unmute(e,t){const n={sessionId:this.id,type:t};return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"unmute",params:n})}async removeTrack(){throw new Error("Not Implemented")}async hold(){throw new Error("Not Implemented")}async resume(){throw new Error("Not Implemented")}toString(){return{connectionState:this.connectionState,state:this.state,sessionType:this.sessionType,fromJid:this.fromJid,conversationId:this.conversationId,id:this.id,peerConnection:this.peerConnection}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.core=void 0;const r=n(4);(0,r.__exportStar)(n(101),t),(0,r.__exportStar)(n(102),t),(0,r.__exportStar)(n(103),t),(0,r.__exportStar)(n(104),t),(0,r.__exportStar)(n(105),t),(0,r.__exportStar)(n(106),t),(0,r.__exportStar)(n(107),t),(0,r.__exportStar)(n(108),t),(0,r.__exportStar)(n(109),t),(0,r.__exportStar)(n(110),t),(0,r.__exportStar)(n(111),t),(0,r.__exportStar)(n(113),t),(0,r.__exportStar)(n(114),t),(0,r.__exportStar)(n(115),t),(0,r.__exportStar)(n(116),t),(0,r.__exportStar)(n(117),t),(0,r.__exportStar)(n(118),t),(0,r.__exportStar)(n(119),t);const i=(0,r.__importDefault)(n(101)),s=(0,r.__importDefault)(n(102)),o=(0,r.__importDefault)(n(103)),a=(0,r.__importDefault)(n(104)),c=(0,r.__importDefault)(n(105)),u=(0,r.__importDefault)(n(106)),l=(0,r.__importDefault)(n(107)),d=(0,r.__importDefault)(n(108)),p=(0,r.__importDefault)(n(109)),h=(0,r.__importDefault)(n(110)),f=(0,r.__importDefault)(n(111)),m=(0,r.__importDefault)(n(113)),g=(0,r.__importDefault)(n(114)),y=(0,r.__importDefault)(n(115)),b=(0,r.__importDefault)(n(116)),v=(0,r.__importDefault)(n(117)),_=(0,r.__importDefault)(n(118)),S=(0,r.__importDefault)(n(119));t.core=function(e){e.use(d.default),e.use(u.default),e.use(o.default),e.use(c.default),e.use(p.default),e.use(_.default)},t.default=function(e){e.use(i.default),e.use(m.default),e.use(s.default),e.use(a.default),e.use(l.default),e.use(h.default),e.use(f.default),e.use(g.default),e.use(y.default),e.use(b.default),e.use(v.default),e.use(S.default)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"XRD",fields:{subject:(0,r.childText)(null,"Subject")},namespace:i.NS_XRD,path:"xrd"},{aliases:[{path:"xrd.links",multiple:!0}],element:"Link",fields:{href:(0,r.attribute)("href"),rel:(0,r.attribute)("rel"),type:(0,r.attribute)("type")},namespace:i.NS_XRD}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessengerExtension=void 0;const r=n(298),i=n(10),s=n(25);class o extends r.Emitter{constructor(e,t){super(),this.client=e,this.stanzaInstance=t}get bareJid(){return i.toBare(this.stanzaInstance.jid)}handleStanzaInstanceChange(e){this.stanzaInstance=e}isMediaMessage(e){return!!e.mediaMessage}handleMessage(e){if(!this.isMediaMessage(e))return;const t=e.from===this.stanzaInstance.jid,n=i.toBare(e.from)===this.bareJid;this.emit("mediaMessage",{...e,fromMyClient:t,fromMyUser:n})}async broadcastMessage(e){const t=s.v4();return e.id=t,e.from=this.stanzaInstance.jid,e.to||(e.to=this.bareJid),await this.stanzaInstance.send("message",e),t}get expose(){return{broadcastMessage:this.broadcastMessage.bind(this),on:this.on.bind(this),once:this.once.bind(this),off:this.off.bind(this),removeListener:this.removeListener.bind(this),addListener:this.addListener.bind(this)}}}t.MessengerExtension=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const r=n(22),i=n(222),s=n(299);n(257);const o=n(258),a=n(260),c=n(285),u=n(286),l=n(13),d=n(35),p=n(20),h=r.__importDefault(n(7)),f=n(287),m=n(66),g=r.__importDefault(n(297)),y=r.__importDefault(n(201)),b=n(85),v=n(64);let _={notifications:o.Notifications,webrtcSessions:a.WebrtcExtension,messenger:v.MessengerExtension};class S extends h.default{constructor(e){super(),this.connected=!1,this.connecting=!1,this.hardReconnectRequired=!0,this.isGuest=!1,this.backgroundAssistantMode=!1,this.autoReconnect=!0,this.extensions=[],this.channelReuses=0,this.hasMadeInitialAttempt=!1,this.http=new d.HttpClient,this.reconnectOnNoLongerSubscribed=!1!==e.reconnectOnNoLongerSubscribed,this.useServerSidePings=!1!==e.useServerSidePings,this.config={host:e.host,apiHost:e.apiHost||e.host.replace("wss://streaming.",""),authToken:e.authToken,jwt:e.jwt,jid:e.jid,jidResource:e.jidResource,channelId:null,appName:e.appName,appVersion:e.appVersion,appId:e.appId,customHeaders:e.customHeaders},this.backgroundAssistantMode=this.checkIsBackgroundAssistant(),this.isGuest=!this.backgroundAssistantMode&&!e.authToken;let t=e.authToken||"",n=`https://api.${this.config.apiHost}/api/v2/diagnostics/trace`;this.backgroundAssistantMode&&(t=e.jwt,n+="/backgroundassistant"),this.logger=new s.Logger({accessToken:t,url:n,uploadDebounceTime:1e3,initializeServerLogging:!this.isGuest&&!e.optOutOfWebrtcStatsTelemetry,appVersion:S.version,appName:"streaming-client",logLevel:this.config.logLevel||"info",logger:e.logger||console,formatters:e.logFormatters,originAppName:e.appName,originAppVersion:e.appVersion,originAppId:e.appId,customHeaders:e.customHeaders}),this.connectionManager=new f.ConnectionManager(this.logger,this.config),Object.keys(_).forEach(t=>{const n=new _[t](this,e);this.extensions.push(n),n.tokenBucket||(n.tokenBucket=new i.TokenBucket(20,25,1e3),n.tokenBucket.content=25),"function"==typeof n.on&&n.on("send",this.handleSendEventFromExtension.bind(this,n)),this[t]=n.expose,this["_"+t]=n})}handleSendEventFromExtension(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.tokenBucket.removeTokens(1,()=>{const e=this.activeStanzaInstance;return e?!0===n?e.sendMessage(t):e.sendIQ(t):this.logger.warn("cannot send message, no active stanza client",{data:t,message:n},{skipServer:!0})})}checkIsBackgroundAssistant(){if(this.config.jwt){const e=l.parseJwt(this.config.jwt);return e&&"urn:purecloud:screenrecording"===e.iss}return!1}addInateEventHandlers(e){this.removeStanzaBoundEventHandlers(),this.boundStanzaDisconnect=this.handleStanzaDisconnectedEvent.bind(this,e),this.boundStanzaNoLongerSubscribed=this.handleNoLongerSubscribed.bind(this,e),this.boundStanzaDuplicateId=this.handleDuplicateId.bind(this,e),this.on("stanzaDisconnected",this.boundStanzaDisconnect),this.on("notify:no_longer_subscribed",this.boundStanzaNoLongerSubscribed),this.on("notify:duplicate_id",this.boundStanzaDuplicateId),this.extensions.forEach(t=>{"function"==typeof t.handleIq&&e.on("iq",t.handleIq.bind(t)),"function"==typeof t.handleMessage&&e.on("message",t.handleMessage.bind(t))})}removeStanzaBoundEventHandlers(){this.boundStanzaDisconnect&&(this.off("stanzaDisconnected",this.boundStanzaDisconnect),this.boundStanzaDisconnect=void 0),this.boundStanzaNoLongerSubscribed&&(this.off("notify:no_longer_subscribed",this.boundStanzaNoLongerSubscribed),this.boundStanzaNoLongerSubscribed=void 0),this.boundStanzaDuplicateId&&(this.off("notify:duplicate_id",this.boundStanzaDuplicateId),this.boundStanzaDuplicateId=void 0)}proxyStanzaEvents(e){var t=this;e.originalEmitter=e.emit,e.emit=function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];const o=e.originalEmitter(n,...i);return"connected"===n?o:("disconnected"===n&&(n="stanzaDisconnected"),t.emit(n,...i))}}async handleStanzaDisconnectedEvent(e){var t,n;if(this.logger.info("stanzaDisconnected event received",{stanzaInstanceId:e.id,channelId:e.channelId}),this.connected=!1,this.connecting=!1,null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.removeAllListeners("stanzaDisconnected"),this.removeAllListeners("notify:no_longer_subscribed"),e.originalEmitter&&(e.emit=e.originalEmitter),this.activeStanzaInstance=void 0,this.emit("disconnected",{reconnecting:this.autoReconnect}),this.autoReconnect)return this.connect({keepTryingOnFailure:!0})}handleNoLongerSubscribed(e){var t,n;this.logger.warn("noLongerSubscribed event received",{stanzaInstanceId:e.id,channelId:e.channelId}),null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.hardReconnectRequired=!0,this.reconnectOnNoLongerSubscribed||(this.autoReconnect=!1)}handleDuplicateId(e){var t,n;this.logger.warn("duplicate_id event received, forcing hard reconnect",{stanzaInstanceId:e.id,channelId:e.channelId}),null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.hardReconnectRequired=!0}async disconnect(){if(this.logger.info("streamingClient.disconnect was called"),this.activeStanzaInstance)return l.timeoutPromise(e=>(this.autoReconnect=!1,this.http.stopAllRetries(),this.activeStanzaInstance.disconnect().then(e)),5e3,"disconnecting streaming service")}getSessionStoreKey(){return"sc_connectionData_"+(this.config.appName||this.logger.clientId)}getConnectionData(){const e=sessionStorage.getItem(this.getSessionStoreKey()),t={currentDelayMs:0};if(e)try{return JSON.parse(e)}catch(e){return this.logger.warn("failed to parse streaming client connection data"),t}return t}setConnectionData(e){sessionStorage.setItem(this.getSessionStoreKey(),JSON.stringify(e))}increaseBackoff(){const e=this.getConnectionData(),t=Math.max(2*e.currentDelayMs,4e3),n={currentDelayMs:t,delayMsAfterNextReduction:t/2,nextDelayReductionTime:(new Date).getTime()+5*t,timeOfTotalReset:(new Date).getTime()+36e5};return this.setConnectionData(n),n}decreaseBackoff(e){const t=this.getConnectionData(),n=5*e,r={currentDelayMs:e,delayMsAfterNextReduction:e/2,nextDelayReductionTime:(new Date).getTime()+n,timeOfTotalReset:t.timeOfTotalReset};if(t.timeOfTotalReset&&t.timeOfTotalReset<(new Date).getTime()||e<2e3)return this.logger.debug("decreaseBackoff() called, but timeOfTotalReset has elasped or next delay is below 2s. Resetting backoff"),this.setConnectionData({currentDelayMs:0});this.setConnectionData(r),clearTimeout(this.backoffReductionTimer),this.logger.debug("Setting timer for next backoff reduction since we haven't reached total reset",{msUntilReduction:n,delayMsAfterNextReduction:r.delayMsAfterNextReduction}),this.backoffReductionTimer=setTimeout(()=>this.decreaseBackoff(r.delayMsAfterNextReduction),n)}getStartingDelay(e,t){const n=Math.max(e.currentDelayMs,2e3);return e.timeOfTotalReset&&e.timeOfTotalReset<(new Date).getTime()?2e3:Math.min(n,t)}async connect(e){var t;if(this.connecting){const e=new Error("Already trying to connect streaming client");return this.logger.warn(e)}this.connecting=!0;const n=(null==e?void 0:e.maxDelayBetweenConnectionAttempts)||9e4;let r=(null==e?void 0:e.maxConnectionAttempts)||1;(null==e?void 0:e.keepTryingOnFailure)&&(r=1/0),clearTimeout(this.backoffReductionTimer);const i=this.getConnectionData(),s=this.getStartingDelay(i,n),o=this.hasMadeInitialAttempt;this.hasMadeInitialAttempt=!0,i.currentDelayMs&&this.logger.debug("streamingClient.connect was called, but backoff is remembered",{currentDelayMs:i.currentDelayMs,delayingThisAttempt:o,clientId:this.logger.clientId,appName:this.config.appName});try{await m.backOff(async()=>{const e=this.getConnectionData();if(await this.makeConnectionAttempt(),e.nextDelayReductionTime){const t=e.nextDelayReductionTime-(new Date).getTime();this.logger.debug("Setting timer for next backoff reduction",{msUntilReduction:t,delayMsAfterNextReduction:e.delayMsAfterNextReduction}),this.backoffReductionTimer=setTimeout(()=>this.decreaseBackoff(e.delayMsAfterNextReduction||0),t)}},{jitter:"none",maxDelay:n,numOfAttempts:r,startingDelay:s,delayFirstAttempt:o,retry:this.backoffConnectRetryHandler.bind(this,{maxConnectionAttempts:r})})}catch(e){let n,r=e;if(e)if("AxiosError"===e.name){const i=e,s=i.config||{url:void 0,method:void 0};r={config:{url:s.url,method:s.method},status:null===(t=i.response)||void 0===t?void 0:t.status,code:i.code,name:i.name,message:i.message},n=new l.StreamingClientError(p.StreamingClientErrorTypes.generic,"Failed to connect streaming client due to network error",e),this.networkErrorNeedsAuth(e)&&(n=new l.StreamingClientError(p.StreamingClientErrorTypes.invalid_token,"Failed to connect streaming client due to invalid token",e))}else e instanceof y.default?(n=new l.StreamingClientError(p.StreamingClientErrorTypes.invalid_token,"Failed to connect streaming client due to invalid token",e),this.saslErrorIsRetryable(e)&&(n=new l.StreamingClientError(p.StreamingClientErrorTypes.generic,"Streaming client connection attempted and received a SASL error",e))):n=new l.StreamingClientError(p.StreamingClientErrorTypes.generic,"Streaming client connection attempted and received an unknown error",e);else n=new l.StreamingClientError(p.StreamingClientErrorTypes.generic,"Streaming client connection attempted and received an undefined error"),r=n;throw this.logger.error("Failed to connect streaming client",{error:r}),n}}async backoffConnectRetryHandler(e,t,n){var r,i,s,o;if(n>=e.maxConnectionAttempts)return!1;const a={connectionAttempt:n,error:t};if(t){if("AxiosError"===t.name){const e=t,n=e.config||{url:void 0,method:void 0};let i={config:{url:n.url,method:n.method},status:null===(r=e.response)||void 0===r?void 0:r.status,code:e.code,name:e.name,message:e.message};if(a.error=i,this.networkErrorNeedsAuth(t))return this.logger.error("Streaming client received an error that it can't recover from and will not attempt to reconnect",a),!1}}else a.error=new Error("streaming client backoff handler received undefined error");if(t instanceof y.default){if(!this.saslErrorIsRetryable(t))return a.error=t.condition,this.logger.error("Streaming-client received a SASL error that it can't recover from and will not attempt to reconnect",a),!1;this.logger.info("hardReconnectRequired set to true due to sasl error"),this.hardReconnectRequired=!0,Object.assign(a,{channelId:t.channelId,stanzaInstanceId:t.stanzaInstanceId})}if(t instanceof b.TimeoutError){a.error=t.message;const e=t.details;e&&(a.details=e)}if(null==t?void 0:t.response){const e=(null===(i=t.response.headers)||void 0===i?void 0:i["retry-after"])||(null===(o=(s=t.response).getResponseHeader)||void 0===o?void 0:o.call(s,"retry-after"));if(e){let n=1e3*parseInt(e,10);return a.retryDelay=n,this.logger.error("Failed streaming client connection attempt, respecting retry-after header and will retry afterwards.",a,{skipServer:t instanceof g.default}),await l.delay(n),this.logger.debug("finished waiting for retry-after"),!0}}const c=this.increaseBackoff();return this.logger.error("Failed streaming client connection attempt, retrying",a,{skipServer:t instanceof g.default}),this.logger.debug("debug: retry info",{expectedRetryInMs:c.currentDelayMs,appName:this.config.appName,clientId:this.logger.clientId}),!0}networkErrorNeedsAuth(e){var t;return[401,403].includes((null===(t=e.response)||void 0===t?void 0:t.status)||0)}saslErrorIsRetryable(e){return["encryption-required","incorrect-encoding","invalid-mechanism","malformed-request","mechanism-too-weak"].includes(e.condition)}async makeConnectionAttempt(){var e,t;if(!navigator.onLine)throw new g.default("Browser is offline, skipping connection attempt");let n,r=this.connecting;try{await this.prepareForConnect(),n=await this.connectionManager.getNewStanzaConnection(),this.connected=!0,this.connecting=!1,this.addInateEventHandlers(n),this.proxyStanzaEvents(n);for(const e of this.extensions)e.configureNewStanzaInstance&&await e.configureNewStanzaInstance(n);for(const e of this.extensions)e.handleStanzaInstanceChange(n);this.activeStanzaInstance=n,await this.setupConnectionMonitoring(n),this.emit("connected")}catch(i){throw n&&(this.logger.error("Error occurred in connection attempt, but after websocket connected. Cleaning up connection so backoff is respected",{stanzaInstanceId:n.id,channelId:n.channelId}),this.removeStanzaBoundEventHandlers(),null===(e=n.pinger)||void 0===e||e.stop(),null===(t=n.serverMonitor)||void 0===t||t.stop(),await n.disconnect(),this.connected=!1,this.connecting=r),i}}async setupConnectionMonitoring(e){const t=t=>{const n=t+", falling back to client-side pinging";this.logger.warn(n,{stanzaInstanceId:e.id,channelId:e.channelId}),e.pinger=new c.Ping(this,e)};if(this.useServerSidePings)try{await e.subscribeToNode(this._notifications.pubsubHost,"enable.server.side.pings"),e.serverMonitor=new u.ServerMonitor(this,e)}catch(e){t("failed to establish server-side pinging")}else t("client configured to not use server-side pinging")}async prepareForConnect(){if(this.config.jwt)return this.hardReconnectRequired=!1,this.connectionManager.setConfig(this.config);if(this.hardReconnectRequired||(this.channelReuses++,this.channelReuses>=10&&(this.logger.warn("Forcing a hard reconnect due to max channel reuses",{channelId:this.config.channelId,channelReuses:this.channelReuses}),this.channelReuses=0,this.hardReconnectRequired=!0)),this.hardReconnectRequired){let e;if(this.config.jid)e=Promise.resolve(this.config.jid);else{const t={method:"get",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger,customHeaders:this.config.customHeaders};e=this.http.requestApi("users/me",t).then(e=>e.data.chat.jabberId)}const t={method:"post",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger,customHeaders:this.config.customHeaders},n=this.http.requestApi("notifications/channels?connectionType=streaming",t).then(e=>e.data.id),[r,i]=await Promise.all([e,n]);this.config.jid=r,this.config.channelId=i,this.autoReconnect=!0,this.logger.info("attempting to connect streaming client on channel",{channelId:i}),this.connectionManager.setConfig(this.config),this.hardReconnectRequired=!1}}stopServerLogging(){this.logger.sendAllLogsInstantly(),this.logger.stopServerLogging()}startServerLogging(){this.logger.startServerLogging()}setAccessToken(e){this.config.authToken=e,this.logger.setAccessToken(e)}static extend(e,t){if(_[e])throw new Error("Cannot register already existing namespace "+e);_[e]=t}get version(){return S.version}static get version(){return"17.2.8"}}t.Client=S},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(225),o=n(226);t.backOff=function(e,t){return void 0===t&&(t={}),r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return n=s.getSanitizedOptions(t),[4,new a(e,n).execute()];case 1:return[2,r.sent()]}}))}))};var a=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:if(this.attemptLimitReached)return[3,7];t.label=1;case 1:return t.trys.push([1,4,,6]),[4,this.applyDelay()];case 2:return t.sent(),[4,this.request()];case 3:return[2,t.sent()];case 4:return e=t.sent(),this.attemptNumber++,[4,this.options.retry(e,this.attemptNumber)];case 5:if(!t.sent()||this.attemptLimitReached)throw e;return[3,6];case 6:return[3,0];case 7:throw new Error("Something went wrong.")}}))}))},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,o.DelayFactory(this.options,this.attemptNumber).apply()];case 1:return e.sent(),[2]}}))}))},e}()},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"hasBrowserEnv",(function(){return y})),n.d(r,"hasStandardBrowserWebWorkerEnv",(function(){return _})),n.d(r,"hasStandardBrowserEnv",(function(){return b})),n.d(r,"origin",(function(){return S}));var i=n(0),s=n(38),o=n(19);function a(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function c(e,t){this._pairs=[],e&&Object(o.a)(e,this,t)}const u=c.prototype;u.append=function(e,t){this._pairs.push([e,t])},u.toString=function(e){const t=e?function(t){return e.call(this,t,a)}:a;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var l=c;function d(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p(e,t,n){if(!t)return e;const r=n&&n.encode||d,s=n&&n.serialize;let o;if(o=s?s(t,n):i.a.isURLSearchParams(t)?t.toString():new l(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var h=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){i.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},f=n(3),m={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:l,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const y="undefined"!=typeof window&&"undefined"!=typeof document,b=(v="undefined"!=typeof navigator&&navigator.product,y&&["ReactNative","NativeScript","NS"].indexOf(v)<0);var v;const _="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,S=y&&window.location.href||"http://localhost";var w={...r,...g};var T=function(e){function t(e,n,r,s){let o=e[s++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),c=s>=e.length;if(o=!o&&i.a.isArray(r)?r.length:o,c)return i.a.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&i.a.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],s)&&i.a.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}(r[o])),!a}if(i.a.isFormData(e)&&i.a.isFunction(e.entries)){const n={};return i.a.forEachEntry(e,(e,r)=>{t(function(e){return i.a.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null};const I={transitional:m,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,s=i.a.isObject(e);s&&i.a.isHTMLForm(e)&&(e=new FormData(e));if(i.a.isFormData(e))return r?JSON.stringify(T(e)):e;if(i.a.isArrayBuffer(e)||i.a.isBuffer(e)||i.a.isStream(e)||i.a.isFile(e)||i.a.isBlob(e)||i.a.isReadableStream(e))return e;if(i.a.isArrayBufferView(e))return e.buffer;if(i.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Object(o.a)(e,new w.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return w.isNode&&i.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=i.a.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(o.a)(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),function(e,t,n){if(i.a.isString(e))try{return(t||JSON.parse)(e),i.a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||I.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(i.a.isResponse(e)||i.a.isReadableStream(e))return e;if(e&&i.a.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw f.a.from(e,f.a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:w.classes.FormData,Blob:w.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};i.a.forEach(["delete","get","head","post","put","patch"],e=>{I.headers[e]={}});var A=I;const E=i.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const N=Symbol("internals");function x(e){return e&&String(e).trim().toLowerCase()}function C(e){return!1===e||null==e?e:i.a.isArray(e)?e.map(C):String(e)}function R(e,t,n,r,s){return i.a.isFunction(r)?r.call(this,t,n):(s&&(t=n),i.a.isString(t)?i.a.isString(r)?-1!==t.indexOf(r):i.a.isRegExp(r)?r.test(t):void 0:void 0)}class O{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function s(e,t,n){const s=x(t);if(!s)throw new Error("header name must be a non-empty string");const o=i.a.findKey(r,s);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=C(e))}const o=(e,t)=>i.a.forEach(e,(e,n)=>s(e,n,t));if(i.a.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(i.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&E[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(i.a.isHeaders(e))for(const[t,r]of e.entries())s(r,t,n);else null!=e&&s(t,e,n);return this}get(e,t){if(e=x(e)){const n=i.a.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(i.a.isFunction(t))return t.call(this,e,n);if(i.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=x(e)){const n=i.a.findKey(this,e);return!(!n||void 0===this[n]||t&&!R(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function s(e){if(e=x(e)){const s=i.a.findKey(n,e);!s||t&&!R(0,n[s],s,t)||(delete n[s],r=!0)}}return i.a.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!R(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return i.a.forEach(this,(r,s)=>{const o=i.a.findKey(n,s);if(o)return t[o]=C(r),void delete t[s];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(s):String(s).trim();a!==s&&delete t[s],t[a]=C(r),n[a]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return i.a.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&i.a.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let[t,n]=e;return t+": "+n}).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[N]=this[N]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=x(e);t[r]||(!function(e,t){const n=i.a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return i.a.isArray(e)?e.forEach(r):r(e),this}}O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),i.a.reduceDescriptors(O.prototype,(e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}}),i.a.freezeMethods(O);var P=O;function k(e,t){const n=this||A,r=t||n,s=P.from(r.headers);let o=r.data;return i.a.forEach(e,(function(e){o=e.call(n,o,s.normalize(),t?t.status:void 0)})),s.normalize(),o}function j(e){return!(!e||!e.__CANCEL__)}function M(e,t,n){f.a.call(this,null==e?"canceled":e,f.a.ERR_CANCELED,t,n),this.name="CanceledError"}i.a.inherits(M,f.a,{__CANCEL__:!0});var L=M,D=n(39);function B(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new f.a("Request failed with status code "+n.status,[f.a.ERR_BAD_REQUEST,f.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var F=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,s=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[o];i||(i=c),n[s]=a,r[s]=c;let l=o,d=0;for(;l!==s;)d+=n[l++],l%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}};var q=function(e,t){let n,r,i=0,s=1e3/t;const o=function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();i=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-i;for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];t>=s?o(c,e):(n=c,r||(r=setTimeout(()=>{r=null,o(n)},s-t)))},()=>n&&o(n)]};const U=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const i=F(50,250);return q(n=>{const s=n.loaded,o=n.lengthComputable?n.total:void 0,a=s-r,c=i(a);r=s;e({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&s<=o?(o-s)/c:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},J=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},z=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i.a.asap(()=>e(...n))};var G=w.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=i.a.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},H=w.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const a=[e+"="+encodeURIComponent(t)];i.a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.a.isString(r)&&a.push("path="+r),i.a.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function V(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const W=e=>e instanceof P?{...e}:e;function $(e,t){t=t||{};const n={};function r(e,t,n){return i.a.isPlainObject(e)&&i.a.isPlainObject(t)?i.a.merge.call({caseless:n},e,t):i.a.isPlainObject(t)?i.a.merge({},t):i.a.isArray(t)?t.slice():t}function s(e,t,n){return i.a.isUndefined(t)?i.a.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!i.a.isUndefined(t))return r(void 0,t)}function a(e,t){return i.a.isUndefined(t)?i.a.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function c(n,i,s){return s in t?r(n,i):s in e?r(void 0,n):void 0}const u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(e,t)=>s(W(e),W(t),!0)};return i.a.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=u[r]||s,a=o(e[r],t[r],r);i.a.isUndefined(a)&&o!==c||(n[r]=a)})),n}var Q=e=>{const t=$({},e);let n,{data:r,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:a,headers:c,auth:u}=t;if(t.headers=c=P.from(c),t.url=p(V(t.baseURL,t.url),e.params,e.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),i.a.isFormData(r))if(w.hasStandardBrowserEnv||w.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(!1!==(n=c.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];c.setContentType([e||"multipart/form-data",...t].join("; "))}if(w.hasStandardBrowserEnv&&(s&&i.a.isFunction(s)&&(s=s(t)),s||!1!==s&&G(t.url))){const e=o&&a&&H.read(a);e&&c.set(o,e)}return t};var K="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Q(e);let s=r.data;const o=P.from(r.headers).normalize();let a,c,u,l,d,{responseType:p,onUploadProgress:h,onDownloadProgress:g}=r;function y(){l&&l(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let b=new XMLHttpRequest;function v(){if(!b)return;const r=P.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());B((function(e){t(e),y()}),(function(e){n(e),y()}),{data:p&&"text"!==p&&"json"!==p?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout,"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(v)},b.onabort=function(){b&&(n(new f.a("Request aborted",f.a.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f.a("Network Error",f.a.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||m;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new f.a(t,i.clarifyTimeoutError?f.a.ETIMEDOUT:f.a.ECONNABORTED,e,b)),b=null},void 0===s&&o.setContentType(null),"setRequestHeader"in b&&i.a.forEach(o.toJSON(),(function(e,t){b.setRequestHeader(t,e)})),i.a.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),p&&"json"!==p&&(b.responseType=r.responseType),g&&([u,d]=U(g,!0),b.addEventListener("progress",u)),h&&b.upload&&([c,l]=U(h),b.upload.addEventListener("progress",c),b.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=t=>{b&&(n(!t||t.type?new L(null,e,b):t),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const _=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);_&&-1===w.protocols.indexOf(_)?n(new f.a("Unsupported protocol "+_+":",f.a.ERR_BAD_REQUEST,e)):b.send(s||null)}))};n(6);var Y=(e,t)=>{let n,r=new AbortController;const i=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof f.a?t:new L(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{i(new f.a(`timeout ${t} of ms exceeded`,f.a.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",i):e.unsubscribe(i))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",i));const{signal:a}=r;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]};const X=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},Z=(e,t,n,r,i)=>{const s=async function*(e,t,n){for await(const r of e)yield*X(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,i);let o,a=0,c=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return c(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw c(e),e}},cancel:e=>(c(e),s.return())},{highWaterMark:2})},ee="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,te=ee&&"function"==typeof ReadableStream,ne=ee&&("function"==typeof TextEncoder?(re=new TextEncoder,e=>re.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var re;const ie=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(e){return!1}},se=te&&ie(()=>{let e=!1;const t=new Request(w.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),oe=te&&ie(()=>i.a.isReadableStream(new Response("").body)),ae={stream:oe&&(e=>e.body)};var ce;ee&&(ce=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ae[e]&&(ae[e]=i.a.isFunction(ce[e])?t=>t[e]():(t,n)=>{throw new f.a(`Response type '${e}' is not supported`,f.a.ERR_NOT_SUPPORT,n)})}));const ue=async(e,t)=>{const n=i.a.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:i.a.isBlob(e)?e.size:i.a.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:i.a.isArrayBufferView(e)||i.a.isArrayBuffer(e)?e.byteLength:(i.a.isURLSearchParams(e)&&(e+=""),i.a.isString(e)?(await ne(e)).byteLength:void 0))(t):n};var le=ee&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:c,onUploadProgress:u,responseType:l,headers:d,withCredentials:p="same-origin",fetchOptions:h}=Q(e);l=l?(l+"").toLowerCase():"text";let m,g,[y,b]=s||o||a?Y([s,o],a):[];const v=()=>{!m&&setTimeout(()=>{y&&y.unsubscribe()}),m=!0};let _;try{if(u&&se&&"get"!==n&&"head"!==n&&0!==(_=await ue(d,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(i.a.isFormData(r)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=J(_,U(z(u)));r=Z(n.body,65536,e,t,ne)}}i.a.isString(p)||(p=p?"include":"omit"),g=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:p});let s=await fetch(g);const o=oe&&("stream"===l||"response"===l);if(oe&&(c||o)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});const t=i.a.toFiniteNumber(s.headers.get("content-length")),[n,r]=c&&J(t,U(z(c),!0))||[];s=new Response(Z(s.body,65536,n,()=>{r&&r(),o&&v()},ne),e)}l=l||"text";let a=await ae[i.a.findKey(ae,l)||"text"](s,e);return!o&&v(),b&&b(),await new Promise((t,n)=>{B(t,n,{data:a,headers:P.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:g})})}catch(t){if(v(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new f.a("Network Error",f.a.ERR_NETWORK,e,g),{cause:t.cause||t});throw f.a.from(t,t&&t.code,e,g)}});const de={http:D.a,xhr:K,fetch:le};i.a.forEach(de,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const pe=e=>"- "+e,he=e=>i.a.isFunction(e)||null===e||!1===e;var fe=e=>{e=i.a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!he(n)&&(r=de[(t=String(n)).toLowerCase()],void 0===r))throw new f.a(`Unknown adapter '${t}'`);if(r)break;s[t||"#"+i]=r}if(!r){const e=Object.entries(s).map(e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")});let n=t?e.length>1?"since :\n"+e.map(pe).join("\n"):" "+pe(e[0]):"as no adapter specified";throw new f.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function me(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new L(null,e)}function ge(e){me(e),e.headers=P.from(e.headers),e.data=k.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fe(e.adapter||A.adapter)(e).then((function(t){return me(e),t.data=k.call(e,e.transformResponse,t),t.headers=P.from(t.headers),t}),(function(t){return j(t)||(me(e),t&&t.response&&(t.response.data=k.call(e,e.transformResponse,t.response),t.response.headers=P.from(t.response.headers))),Promise.reject(t)}))}const ye={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ye[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const be={};ye.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,s)=>{if(!1===e)throw new f.a(r(i," has been removed"+(t?" in "+t:"")),f.a.ERR_DEPRECATED);return t&&!be[i]&&(be[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}};var ve={assertOptions:function(e,t,n){if("object"!=typeof e)throw new f.a("options must be an object",f.a.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const t=e[s],n=void 0===t||o(t,s,e);if(!0!==n)throw new f.a("option "+s+" must be "+n,f.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new f.a("Unknown option "+s,f.a.ERR_BAD_OPTION)}},validators:ye};const _e=ve.validators;class Se{constructor(e){this.defaults=e,this.interceptors={request:new h,response:new h}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=$(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:s}=t;void 0!==n&&ve.assertOptions(n,{silentJSONParsing:_e.transitional(_e.boolean),forcedJSONParsing:_e.transitional(_e.boolean),clarifyTimeoutError:_e.transitional(_e.boolean)},!1),null!=r&&(i.a.isFunction(r)?t.paramsSerializer={serialize:r}:ve.assertOptions(r,{encode:_e.function,serialize:_e.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&i.a.merge(s.common,s[t.method]);s&&i.a.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=P.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let l;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let d,p=0;if(!c){const e=[ge.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),d=e.length,l=Promise.resolve(t);p<d;)l=l.then(e[p++],e[p++]);return l}d=a.length;let h=t;for(p=0;p<d;){const e=a[p++],t=a[p++];try{h=e(h)}catch(e){t.call(this,e);break}}try{l=ge.call(this,h)}catch(e){return Promise.reject(e)}for(p=0,d=u.length;p<d;)l=l.then(u[p++],u[p++]);return l}getUri(e){return p(V((e=$(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}i.a.forEach(["delete","get","head","options"],(function(e){Se.prototype[e]=function(t,n){return this.request($(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.a.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request($(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Se.prototype[e]=t(),Se.prototype[e+"Form"]=t(!0)}));var we=Se;class Te{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new L(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Te((function(t){e=t})),cancel:e}}}var Ie=Te;const Ae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ae).forEach(e=>{let[t,n]=e;Ae[n]=t});var Ee=Ae;const Ne=function e(t){const n=new we(t),r=Object(s.a)(we.prototype.request,n);return i.a.extend(r,we.prototype,n,{allOwnKeys:!0}),i.a.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e($(t,n))},r}(A);Ne.Axios=we,Ne.CanceledError=L,Ne.CancelToken=Ie,Ne.isCancel=j,Ne.VERSION="1.7.4",Ne.toFormData=o.a,Ne.AxiosError=f.a,Ne.Cancel=Ne.CanceledError,Ne.all=function(e){return Promise.all(e)},Ne.spread=function(e){return function(t){return e.apply(null,t)}},Ne.isAxiosError=function(e){return i.a.isObject(e)&&!0===e.isAxiosError},Ne.mergeConfig=$,Ne.AxiosHeaders=P,Ne.formToJSON=e=>T(i.a.isHTMLForm(e)?new FormData(e):e),Ne.getAdapter=fe,Ne.HttpStatusCode=Ee,Ne.default=Ne;t.a=Ne},function(e,t,n){var r=n(211),i=n(69);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(8),i=n(42),s=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=s},function(e,t,n){var r=n(26),i=n(15),s=n(71);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(8),i=n(21),s=r.document,o=i(s)&&i(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},function(e,t,n){var r=n(21);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(15);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(8),i=n(27),s=n(16),o=n(42),a=n(76),c=n(213),u=c.get,l=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||i(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==r?(c?!p&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||a(this)}))},function(e,t,n){var r=n(69),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(68),i=n(45),s=r("keys");e.exports=function(e){return s[e]||(s[e]=i(e))}},function(e,t){e.exports={}},function(e,t,n){var r=n(80);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(47),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){(function(t){var n=function(e,t,n,r){if(this.bucketSize=e,this.tokensPerInterval=t,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw new Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=r,this.content=0,this.lastDrip=+new Date};n.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(e,n){var r=this;return this.bucketSize?e>this.bucketSize?(t.nextTick(n.bind(null,"Requested tokens "+e+" exceeds bucket size "+this.bucketSize,null)),!1):(this.drip(),e>this.content?i():this.parentBucket?this.parentBucket.removeTokens(e,(function(t,s){return t?n(t,null):e>r.content?i():(r.content-=e,void n(null,Math.min(s,r.content)))})):(this.content-=e,t.nextTick(n.bind(null,null,this.content)),!0)):(t.nextTick(n.bind(null,null,e,Number.POSITIVE_INFINITY)),!0);function i(){var t=Math.ceil((e-r.content)*(r.interval/r.tokensPerInterval));return setTimeout((function(){r.removeTokens(e,n)}),t),!1}},tryRemoveTokens:function(e){return!this.bucketSize||!(e>this.bucketSize)&&(this.drip(),!(e>this.content)&&(!(this.parentBucket&&!this.parentBucket.tryRemoveTokens(e))&&(this.content-=e,!0)))},drip:function(){if(this.tokensPerInterval){var e=+new Date,t=Math.max(e-this.lastDrip,0);this.lastDrip=e;var n=t*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}else this.content=this.bucketSize}},e.exports=n}).call(this,n(23))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(228),i=function(){function e(e){this.options=e,this.attempt=0}return e.prototype.apply=function(){var e=this;return new Promise((function(t){return setTimeout(t,e.jitteredDelay)}))},e.prototype.setAttemptNumber=function(e){this.attempt=e},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){return r.JitterFactory(this.options)(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var e=this.options.startingDelay,t=this.options.timeMultiple,n=this.numOfDelayedAttempts,r=e*Math.pow(t,n);return Math.min(r,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();t.Delay=i},function(e,t,n){var r=n(26),i=n(234),s=n(73),o=n(48),a=n(72),c=n(16),u=n(70),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return s(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=void 0;class r extends Error{constructor(e){super(e)}}t.TimeoutError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saslprep=t.resourceprep=t.nodeprep=t.NodePrepProhibited=t.nameprep=t.prepare=t.D2=t.D1=t.C9=t.C8=t.C7=t.C6=t.C5=t.C4=t.C3=t.C22=t.C21=t.C12=t.C11=t.B3=t.B2=t.B1=t.A1=t.Table=void 0;const r=(0,n(4).__importDefault)(n(50)),i=n(262);class s{constructor(e,t){this.singles=new Set,this.ranges=[],this.mappings=new Map;const n=i.TABLE_DATA[e];this.name=e,n?(n.s&&(this.singles=new Set(n.s.split("|").map(e=>parseInt(e,32)))),n.r&&(this.ranges=n.r.split("|").map(e=>{const[t,n]=e.split(":");return[parseInt(t,32),parseInt(n,32)]})),n.m&&(this.mappings=new Map(n.m.split("|").map(e=>{const[t,n]=e.split(":"),r=n.split(";").map(e=>parseInt(e,32));return[parseInt(t,32),r]})))):t&&(this.singles=new Set(t))}contains(e){if(this.singles.has(e))return!0;let t=0,n=this.ranges.length-1;for(;t<=n;){const r=Math.floor((t+n)/2),i=this.ranges[r];if(e<i[0])n=r-1;else{if(!(e>i[1]))return!0;t=r+1}}return!1}hasMapping(e){return this.mappings.has(e)||this.contains(e)}map(e){return this.contains(e)&&!this.mappings.has(e)?String.fromCodePoint(e).toLowerCase().codePointAt(0):this.mappings.get(e)||null}}function o(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const s=r.default.ucs2.decode(i);let o=[];for(const t of s){if(!n&&e.unassigned.contains(t))throw new Error("Unassigned code point: x"+t.toString(16));let r=!1;for(const n of e.mappings){if(!n.hasMapping(t))continue;r=!0;const e=n.map(t);e&&(Array.isArray(e)?o=o.concat(e):o.push(e))}r||o.push(t)}let a=o;if(e.normalize){const e=r.default.ucs2.encode(o).normalize("NFKC");a=r.default.ucs2.decode(e)}let c=!1,u=!1;for(const r of a){for(const t of e.prohibited)if(t.contains(r))throw new Error("Prohibited code point: x"+r.toString(16));if(!n&&e.unassigned.contains(r))throw new Error("Prohibited code point: x"+r.toString(16));e.bidirectional&&(c=c||t.D1.contains(r),u=u||t.D2.contains(r))}if(e.bidirectional){if(c&&u)throw new Error("String contained both LCat and RandALCat code points");if(c&&(!t.D1.contains(a[0])||!t.D1.contains(a[a.length-1])))throw new Error("String containing RandALCat code points must start and end with RandALCat code points")}return r.default.ucs2.encode(a)}t.Table=s,t.A1=new s("A.1"),t.B1=new s("B.1"),t.B2=new s("B.2"),t.B3=new s("B.3"),t.C11=new s("C.1.1"),t.C12=new s("C.1.2"),t.C21=new s("C.2.1"),t.C22=new s("C.2.2"),t.C3=new s("C.3"),t.C4=new s("C.4"),t.C5=new s("C.5"),t.C6=new s("C.6"),t.C7=new s("C.7"),t.C8=new s("C.8"),t.C9=new s("C.9"),t.D1=new s("D.1"),t.D2=new s("D.2"),t.B1.map=()=>null,t.C11.contains=e=>32===e,t.C12.map=e=>t.C12.contains(e)?32:null,t.prepare=o;const a={bidirectional:!0,mappings:[t.B1,t.B2],normalize:!0,prohibited:[t.C12,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9],unassigned:t.A1};t.nameprep=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(a,t,e)},t.NodePrepProhibited=new s("NodePrepProhibited",[34,38,39,47,58,60,62,64]);const c={bidirectional:!0,mappings:[t.B1,t.B2],normalize:!0,prohibited:[t.C11,t.C12,t.C21,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9,t.NodePrepProhibited],unassigned:t.A1};t.nodeprep=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(c,t,e)};const u={bidirectional:!0,mappings:[t.B1],normalize:!0,prohibited:[t.C12,t.C21,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9],unassigned:t.A1};t.resourceprep=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(u,t,e)};const l={bidirectional:!0,mappings:[t.C12,t.B1],normalize:!0,prohibited:[t.C12,t.C21,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9],unassigned:t.A1};t.saslprep=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o(l,t,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(52);t.default=class{constructor(){this.parents=new Set,this.placeholder=!1,this.typeField="",this.versionField="",this.defaultType="",this.defaultVersion="",this.languageField="lang",this.typeValues=new Map,this.typeOrders=new Map,this.importers=new Map,this.exporters=new Map,this.children=new Map,this.childrenIndex=new Map,this.implicitChildren=new Set,this.contexts=new Map}addChild(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const s={multiple:n||!1,name:e,selector:r,translator:t},o=this.children.get(e);if(!o){s.translator.parents.add(this),this.children.set(e,s);for(const[n]of t.importers)this.implicitChildren.has(n)||this.childrenIndex.set(n,e);return void(i&&this.implicitChildren.add(i))}const a=o.translator;o.multiple=n,r&&o.selector&&r!==o.selector&&(o.selector=void 0);for(const[n,r]of t.importers){const[i,s]=(a.typeValues.get(n)||"").split("__v__");a.updateDefinition({contexts:t.contexts,element:r.element,exporterOrdering:new Map,exporters:new Map,importerOrdering:r.fieldOrders,importers:r.fields,namespace:r.namespace,optionalNamespaces:new Map,type:i,version:s}),this.implicitChildren.has(n)||this.childrenIndex.set(n,e)}for(const[e,n]of t.exporters){const[r,i]=e.split("__v__");a.updateDefinition({contexts:t.contexts,element:n.element,exporterOrdering:n.fieldOrders,exporters:n.fields,importerOrdering:new Map,importers:new Map,namespace:n.namespace,optionalNamespaces:n.optionalNamespaces,type:r,version:i})}}addContext(e,t,n,r,i,s){t&&(e=`${e}[${t}]`);let o=this.contexts.get(e);o||(o={typeField:"",versionField:"",typeValues:new Map}),s&&(o.impliedType=i),o.typeField=n||"",o.typeValues.set(r,i),this.contexts.set(e,o)}getChild(e){const t=this.children.get(e);if(t)return t.translator}getImportKey(e){return this.childrenIndex.get(`{${e.getNamespace()}}${e.getName()}`)}updateDefinition(e){const t=`{${e.namespace}}${e.element}`,n=e.type||this.defaultType,r=e.version||this.defaultVersion,i=r?`${n}__v__${r}`:n,s=this.importers.get(t)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace};for(const[t,n]of e.importers)s.fields.set(t,n);for(const[t,n]of e.importerOrdering)s.fieldOrders.set(t,n);this.importers.set(t,s);const o=this.exporters.get(i)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace,optionalNamespaces:e.optionalNamespaces};for(const[t,n]of e.exporters)o.fields.set(t,n);for(const[t,n]of e.exporterOrdering)o.fieldOrders.set(t,n);for(const[t,n]of e.optionalNamespaces)o.optionalNamespaces.set(t,n);this.exporters.set(i,o);for(const[t,n]of e.contexts){const e=this.contexts.get(t)||{impliedType:void 0,typeField:n.typeField,versionField:n.versionField,typeValues:new Map};e.typeField||(e.typeField=n.typeField),e.versionField||(e.versionField=n.versionField),e.impliedType||(e.impliedType=n.impliedType);for(const[t,r]of n.typeValues)e.typeValues.set(t,r);this.contexts.set(t,e)}if(e.type)this.typeValues.set(t,i),e.typeOrder&&e.type&&this.typeOrders.set(e.type,e.typeOrder);else if(this.typeField&&!e.type){for(const[,t]of this.importers){for(const[n,r]of e.importers)t.fields.set(n,r);for(const[n,r]of e.importerOrdering)t.fieldOrders.set(n,r)}for(const[,t]of this.exporters){for(const[n,r]of e.exporters)t.fields.set(n,r);for(const[n,r]of e.exporterOrdering)t.fieldOrders.set(n,r)}}}replaceWith(e){for(const[t,n]of this.children)e.children.set(t,n);for(const[t,n]of this.childrenIndex)e.childrenIndex.set(t,n);for(const[t,n]of this.contexts)e.contexts.set(t,n);for(const t of this.implicitChildren)e.implicitChildren.add(t);for(const t of this.parents)for(const n of t.children.values())n.translator===this&&(n.translator=e);this.parents=new Set}import(e,t){const n=`{${e.getNamespace()}}${e.getName()}`,r={},i=this.importers.get(n);if(!i)return;const s=this.typeValues.get(n)||"",[o,a]=s.split("__v__"),c=t.path||"";let u;if(t.pathSelector&&(u=this.contexts.get(`${c}[${t.pathSelector}]`)),u||(u=this.contexts.get(c)),u){if(!u.impliedType){const e=u.typeValues.get(n)||"";e&&(r[u.typeField]=e)}}else this.typeField&&o&&o!==this.defaultType&&(r[this.typeField]=o);this.versionField&&a&&a!==this.defaultVersion&&(r[this.versionField]=a);const l={...t,data:r,importer:i,lang:(e.getAttribute("xml:lang")||t.lang||"").toLowerCase(),pathSelector:o,translator:this},d=[...i.fieldOrders.entries()].sort((e,t)=>e[1]>t[1]?-1:e[1]<t[1]?1:0),p=d.filter(e=>e[1]>=0),h=d.filter(e=>e[1]<0);for(const[n]of p){const s=i.fields.get(n);l.path=`${t.path}.${n}`;const o=s(e,l);null!=o&&(r[n]=o)}for(const n of e.children){if("string"==typeof n)continue;const e=`{${n.getNamespace()}}${n.getName()}`,i=this.childrenIndex.get(e);if(!i)continue;l.path=`${t.path}.${i}`;const{translator:s,multiple:a,selector:c}=this.children.get(i);if(!c||c===o){const e=s.import(n,l);void 0!==e&&(a?(r[i]||(r[i]=[]),r[i].push(e)):r[i]?r[i]=s.resolveCollision(r[i],e):r[i]=e)}}for(const[n]of h){const s=i.fields.get(n);l.path=`${t.path}.${n}`;const o=s(e,l);null!=o&&(r[n]=o)}return r}export(e,t){if(!e)return;let n=this.defaultType,i=this.defaultVersion;const s=t.path||"";let o;t.pathSelector&&(o=this.contexts.get(`${s}[${t.pathSelector}]`)),o||(o=this.contexts.get(s)),o?n=o.impliedType||e[o.typeField]||this.defaultType:this.typeField&&(n=e[this.typeField]||this.defaultType),this.versionField&&(i=e[this.versionField]||this.defaultVersion);const a=i?`${n}__v__${i}`:n,c=this.exporters.get(a);if(!c)return;const u=(0,r.createElement)(c.namespace,c.element,t.namespace,t.element);t.element&&(u.parent=t.element);for(const[e,t]of c.optionalNamespaces)u.addOptionalNamespace(e,t);const l={...t,data:e,element:u,exporter:c,lang:(e[this.languageField]||t.lang||"").toLowerCase(),namespace:u.getDefaultNamespace(),pathSelector:n,translator:this},d=c.fields.get(this.languageField);d&&d(u,e[this.languageField],t);const p=Object.keys(e);p.sort((e,t)=>(c.fieldOrders.get(e)||1e5)-(c.fieldOrders.get(t)||1e5));for(const r of p){if(r===this.languageField)continue;const i=e[r],s=c.fields.get(r);if(s){s(u,i,l);continue}const o=this.children.get(r);if(!o)continue;l.path=`${t.path?t.path+".":""}${r}`;const{translator:a,multiple:d,selector:p}=o;if(!p||p===n){let e;e=d?null!=i?i:[]:[i];for(const t of e){const e=a.export(t,l);e&&u.appendChild(e)}}}return u}resolveCollision(e,t){return(this.typeOrders.get(e[this.typeField]||this.defaultType)||0)<=(this.typeOrders.get(t[this.typeField]||this.defaultType)||0)?e:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=void 0;const r=n(4),i=(0,r.__importDefault)(n(28));t.Hash=i.default;const s=(0,r.__importDefault)(n(275)),o=(0,r.__importDefault)(n(276)),a=(0,r.__importDefault)(n(277)),c=(0,r.__importDefault)(n(278)),u=new Map([["md5",s.default],["sha-1",o.default],["sha-256",a.default],["sha-512",c.default],["sha1",o.default],["sha256",a.default],["sha512",c.default]]);t.default=function(e){e=e.toLowerCase();const t=u.get(e);if(t)return new t;throw new Error("Unsupported hash algorithm: "+e)}},function(e,t,n){"use strict";(function(t,r){n(6);var i,s=n(33);e.exports=g,g.ReadableState=m;n(7).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n(7).EventEmitter,c=n(11).Buffer,u=t.Uint8Array||function(){};var l,d=Object.create(n(29)),p=n(273).BufferList,h=n(90);d.inherits(g,a);var f=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var r=t instanceof(i=i||n(24));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var s=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:r&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=n(92).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function g(e){if(i=i||n(24),!(this instanceof g))return new g(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function y(e,t,n,r,i){var s,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,_(e)}(e,o)):(i||(s=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):b(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?b(e,o,t,!1):w(e,o)):b(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function b(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&_(e)),w(e,t)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),g.prototype.destroy=h.destroy,g.prototype._undestroy=h.undestroy,g.prototype._destroy=function(e,t){this.push(null),t(e)},g.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),y(this,e,t,!1,n)},g.prototype.unshift=function(e){return y(this,e,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(e){return l||(l=n(92).StringDecoder),this._readableState.decoder=new l(e),this._readableState.encoding=e,this};function v(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.flowing,t.emittedReadable=!0,t.sync?s.nextTick(S,e):S(e))}function S(e){e.emit("readable"),E(e)}function w(e,t){t.readingMore||(t.readingMore=!0,s.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function I(e){e.read(0)}function A(e,t){t.reading||e.read(0),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(t.flowing;t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),0===(e-=o)){o===s.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(s.copy(n,n.length-e,0,o),0===(e-=o)){o===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function x(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,s.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}g.prototype.read=function(e){e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return t.length,t.ended,0===t.length&&t.ended?x(this):_(this),null;if(0===(e=v(e,t))&&t.ended)return 0===t.length&&x(this),null;var r,i=t.needReadable;return(0===t.length||t.length-e<t.highWaterMark)&&(i=!0),t.ended||t.reading?i=!1:i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=v(n,t))),null===(r=e>0?N(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&x(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,i.pipesCount;var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:y;function c(t,r){t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",h),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){e.end()}i.endEmitted?s.nextTick(a):n.once("end",a),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;t.awaitDrain,t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,E(e))}}(n);e.on("drain",l);var d=!1;var p=!1;function h(t){p=!1,!1!==e.write(t)||p||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==R(i.pipes,e))&&!d&&(n._readableState.awaitDrain,n._readableState.awaitDrain++,p=!0),n.pause())}function f(t){y(),e.removeListener("error",f),0===o(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){e.removeListener("close",m),y()}function y(){n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",m),e.once("finish",g),e.emit("pipe",n),i.flowing||n.resume(),e},g.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,n);return this}var o=R(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},g.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&_(this):s.nextTick(I,this))}return n},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var e=this._readableState;return e.flowing||(e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,s.nextTick(A,e,t))}(this,e)),this},g.prototype.pause=function(){return this._readableState.flowing,!1!==this._readableState.flowing&&(this._readableState.flowing=!1,this.emit("pause")),this},g.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<f.length;s++)e.on(f[s],this.emit.bind(this,f[s]));return this._read=function(t){r&&(r=!1,e.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=N}).call(this,n(12),n(23))},function(e,t,n){"use strict";var r=n(33);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t){n(6);var r=n(33);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=m;var s,o=r.nextTick;m.WritableState=f;var a=Object.create(n(29)),c=n(7).EventEmitter,u=n(11).Buffer,l=t.Uint8Array||function(){};var d,p=n(90);function h(){}function f(e,t){s=s||n(24),e=e||{};var a=t instanceof s;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:a&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,s=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,s){--t.pendingcb,n?(r.nextTick(s,i),r.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(s(i),e._writableState.errorEmitted=!0,e.emit("error",i),S(e,t))}(e,n,i,t,s);else{var a=v(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||b(e,n),i?o(y,e,n,a,s):y(e,n,a,s)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(e){if(s=s||n(24),!(d.call(m,this)||this instanceof s))return new m(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function g(e,t,n,r,i,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function y(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function b(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,s=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)s[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;s.allBuffers=c,g(e,t,!0,t.length,s,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,d=n.callback;if(g(e,t,!1,t.objectMode?1:u.length,u,l,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function v(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var n=v(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,r.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}a.inherits(m,c),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:function(){return this.getBuffer()}})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===m&&(e&&e._writableState instanceof f)}})):d=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,n){var i,s=this._writableState,o=!1,a=!s.objectMode&&(i=e,u.isBuffer(i)||i instanceof l);return a&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof n&&(n=h),s.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),r.nextTick(t,n)}(this,n):(a||function(e,t,n,i){var s=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),r.nextTick(i,o),s=!1),s}(this,s,e,n))&&(s.pendingcb++,o=function(e,t,n,r,i,s){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,a,r,i,s);return c}(this,s,a,e,t,n)),o},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||b(this,e))},m.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=p.destroy,m.prototype._undestroy=p.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(12))},function(e,t,n){"use strict";var r=n(11).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},s.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=s;var r=n(24);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);r.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){a(e,t,n)})):a(this,null,null)}function a(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}Object.create(n(29)).inherits(s,r),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";n(6),Object.defineProperty(t,"__esModule",{value:!0}),t.Receiver=t.Sender=void 0;const r=n(4),i=n(7),s=(0,r.__importStar)(n(9)),o=n(5),a=n(1),c=(0,r.__importDefault)(n(57)),u=n(34),l=n(58);class d extends i.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.config={chunkSize:16384,hash:"sha-1",...e},this.file=void 0,this.channel=void 0,this.hash=s.createHash(this.config.hash)}send(e,t){if(this.file&&this.channel)return;this.file=e,this.channel=t,this.channel.binaryType="arraybuffer";const n=new FileReader;let r=0,i=!1;const s=()=>{if(i||r>=e.size)return;i=!0;const t=e.slice(r,r+this.config.chunkSize);n.readAsArrayBuffer(t)};t.bufferedAmountLowThreshold=8*this.config.chunkSize,t.onbufferedamountlow=()=>{s()},n.addEventListener("load",t=>{const n=t.target.result;i=!1,r+=n.byteLength,this.channel.send(n),this.hash.update(new Uint8Array(n)),this.emit("progress",r,e.size,n),r<e.size?this.channel.bufferedAmount<=this.channel.bufferedAmountLowThreshold&&s():(this.emit("progress",e.size,e.size,null),this.emit("sentFile",{algorithm:this.config.hash,name:e.name,size:e.size,value:this.hash.digest()}))}),s()}}t.Sender=d;class p extends i.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.config={hash:"sha-1",...e},this.receiveBuffer=[],this.received=0,this.channel=void 0,this.hash=s.createHash(this.config.hash)}receive(e,t){this.metadata=e,this.channel=t,this.channel.binaryType="arraybuffer",this.channel.onmessage=e=>{const t=e.data.byteLength;this.received+=t,this.receiveBuffer.push(e.data),e.data&&this.hash.update(new Uint8Array(e.data)),this.emit("progress",this.received,this.metadata.size,e.data),this.received===this.metadata.size?(this.metadata.actualhash=this.hash.digest("hex"),this.emit("receivedFile",new Blob(this.receiveBuffer),this.metadata),this.receiveBuffer=[]):this.received>this.metadata.size&&(console.error("received more than expected, discarding..."),this.receiveBuffer=[])}}}t.Receiver=p;class h extends c.default{constructor(e){super(e),this.sender=void 0,this.receiver=void 0,this.file=void 0}async start(e,t){if(t=t||(()=>{}),!e||"function"==typeof e)throw new Error("File object required");this.state="pending",this.role="initiator",this.file=e,this.sender=new d,this.sender.on("progress",(e,t)=>{this._log("info","Send progress "+e+"/"+t)}),this.sender.on("sentFile",e=>{this._log("info","Sent file",e.name),this.send(o.JingleAction.SessionInfo,{info:{creator:o.JingleSessionRole.Initiator,file:{hashes:[{algorithm:e.algorithm,value:e.value}]},infoType:o.JINGLE_INFO_CHECKSUM_5,name:this.contentName}}),this.parent.emit("sentFile",this,e)}),this.channel=this.pc.createDataChannel("filetransfer",{ordered:!0}),this.channel.onopen=()=>{this.sender.send(this.file,this.channel)};try{await this.processLocal(o.JingleAction.SessionInitiate,async()=>{const t=await this.pc.createOffer({offerToReceiveAudio:!1,offerToReceiveVideo:!1}),n=(0,u.importFromSDP)(t.sdp),r=(0,l.convertIntermediateToRequest)(n,this.role,this.transportType);this.contentName=r.contents[0].name,r.sid=this.sid,r.action=o.JingleAction.SessionInitiate,r.contents[0].application={applicationType:a.NS_JINGLE_FILE_TRANSFER_5,file:{date:e.lastModified?new Date(e.lastModified):void 0,hashesUsed:[{algorithm:"sha-1"}],name:e.name,size:e.size}},this.send("session-initiate",r),await this.pc.setLocalDescription(t)}),t()}catch(e){return this._log("error","Could not create WebRTC offer",e),this.end("failed-application",!0)}}async accept(e){this._log("info","Accepted incoming session"),this.role="responder",this.state="active",e=e||(()=>{});try{await this.processLocal(o.JingleAction.SessionAccept,async()=>{const e=await this.pc.createAnswer(),t=(0,u.importFromSDP)(e.sdp),n=(0,l.convertIntermediateToRequest)(t,this.role,this.transportType);n.sid=this.sid,n.action="session-accept";for(const e of n.contents)e.creator="initiator";this.contentName=n.contents[0].name,this.send("session-accept",n),await this.pc.setLocalDescription(e),await this.processBufferedCandidates()}),e()}catch(e){this._log("error","Could not create WebRTC answer",e),this.end("failed-application")}}async onSessionInitiate(e,t){this._log("info","Initiating incoming session"),this.role="responder",this.state="pending",this.transportType=e.contents[0].transport.transportType;const n=(0,l.convertRequestToIntermediate)(e,this.peerRole),r=(0,u.exportToSDP)(n),i=e.contents[0].application,s=i.file.hashesUsed?i.file.hashesUsed:i.file.hashes||[];this.receiver=new p({hash:s[0]&&s[0].algorithm}),this.receiver.on("progress",(e,t)=>{this._log("info","Receive progress "+e+"/"+t)}),this.receiver.on("receivedFile",e=>{this.receivedFile=e,this._maybeReceivedFile()}),this.receiver.metadata=i.file,this.pc.addEventListener("datachannel",e=>{this.channel=e.channel,this.receiver.receive(this.receiver.metadata,e.channel)});try{await this.pc.setRemoteDescription({type:"offer",sdp:r}),await this.processBufferedCandidates(),t()}catch(e){this._log("error","Could not create WebRTC answer",e),t({condition:"general-error"})}}onSessionInfo(e,t){const n=e.info;n&&n.file&&n.file.hashes&&(this.receiver.metadata.hashes=n.file.hashes,this.receiver.metadata.actualhash&&this._maybeReceivedFile(),t())}_maybeReceivedFile(){if(this.receiver.metadata.hashes&&this.receiver.metadata.hashes.length){for(const e of this.receiver.metadata.hashes||[])if(e.value&&e.value.toString("hex")===this.receiver.metadata.actualhash)return this._log("info","File hash matches"),this.parent.emit("receivedFile",this,this.receivedFile,this.receiver.metadata),void this.end("success");this._log("error","File hash does not match"),this.end("media-error")}}}t.default=h},function(e,t,n){"use strict";const 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,t)=>(t>0?"m="+e:e).trim()+"\r\n")},r.getDescription=function(e){const t=r.splitSections(e);return t&&t[0]},r.getMediaSections=function(e){const t=r.splitSections(e);return t.shift(),t},r.matchPrefix=function(e,t){return r.splitLines(e).filter(e=>0===e.indexOf(t))},r.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e<t.length;e+=2)switch(t[e]){case"raddr":n.relatedAddress=t[e+1];break;case"rport":n.relatedPort=parseInt(t[e+1],10);break;case"tcptype":n.tcpType=t[e+1];break;case"ufrag":n.ufrag=t[e+1],n.usernameFragment=t[e+1];break;default:void 0===n[t[e]]&&(n[t[e]]=t[e+1])}return n},r.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const r=e.type;return t.push("typ"),t.push(r),"host"!==r&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},r.parseIceOptions=function(e){return e.substring(14).split(" ")},r.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},r.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},r.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.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){const t={};let n;const r=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e<r.length;e++)n=r[e].trim().split("="),t[n[0].trim()]=n[1];return t},r.writeFmtp=function(e){let t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const r=[];Object.keys(e.parameters).forEach(t=>{void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)}),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},r.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},r.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},r.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},r.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},r.getMid=function(e){const t=r.matchPrefix(e,"a=mid:")[0];if(t)return t.substring(6)},r.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},r.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:r.matchPrefix(e+t,"a=fingerprint:").map(r.parseFingerprint)}},r.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},r.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.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;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[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,t){return r.matchPrefix(e+t,"a=crypto:").map(r.parseCryptoLine)},r.getIceParameters=function(e,t){const n=r.matchPrefix(e+t,"a=ice-ufrag:")[0],i=r.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&i?{usernameFragment:n.substring(12),password:i.substring(10)}:null},r.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},r.parseRtpParameters=function(e){const t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=r.splitLines(e)[0].split(" ");t.profile=n[2];for(let i=3;i<n.length;i++){const s=n[i],o=r.matchPrefix(e,"a=rtpmap:"+s+" ")[0];if(o){const n=r.parseRtpMap(o),i=r.matchPrefix(e,"a=fmtp:"+s+" ");switch(n.parameters=i.length?r.parseFmtp(i[0]):{},n.rtcpFeedback=r.matchPrefix(e,"a=rtcp-fb:"+s+" ").map(r.parseRtcpFb),t.codecs.push(n),n.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(n.name.toUpperCase())}}}r.matchPrefix(e,"a=extmap:").forEach(e=>{t.headerExtensions.push(r.parseExtmap(e))});const i=r.matchPrefix(e,"a=rtcp-fb:* ").map(r.parseRtcpFb);return t.codecs.forEach(e=>{i.forEach(t=>{e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter)||e.rtcpFeedback.push(t)})}),t},r.writeRtpDescription=function(e,t){let n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" "+(t.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=t.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",t.codecs.forEach(e=>{n+=r.writeRtpMap(e),n+=r.writeFmtp(e),n+=r.writeRtcpFb(e)});let i=0;return t.codecs.forEach(e=>{e.maxptime>i&&(i=e.maxptime)}),i>0&&(n+="a=maxptime:"+i+"\r\n"),t.headerExtensions&&t.headerExtensions.forEach(e=>{n+=r.writeExtmap(e)}),n},r.parseRtpEncodingParameters=function(e){const t=[],n=r.parseRtpParameters(e),i=-1!==n.fecMechanisms.indexOf("RED"),s=-1!==n.fecMechanisms.indexOf("ULPFEC"),o=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),a=o.length>0&&o[0].ssrc;let c;const u=r.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substring(17).split(" ").map(e=>parseInt(e,10)));u.length>0&&u[0].length>1&&u[0][0]===a&&(c=u[0][1]),n.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let n={ssrc:a,codecPayloadType:parseInt(e.parameters.apt,10)};a&&c&&(n.rtx={ssrc:c}),t.push(n),i&&(n=JSON.parse(JSON.stringify(n)),n.fec={ssrc:a,mechanism:s?"red+ulpfec":"red"},t.push(n))}}),0===t.length&&a&&t.push({ssrc:a});let l=r.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substring(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substring(5),10)*.95-16e3:void 0,t.forEach(e=>{e.maxBitrate=l})),t},r.parseRtcpParameters=function(e){const t={},n=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);const i=r.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=i.length>0,t.compound=0===i.length;const s=r.matchPrefix(e,"a=rtcp-mux");return t.mux=s.length>0,t},r.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},r.parseMsid=function(e){let t;const n=r.matchPrefix(e,"a=msid:");if(1===n.length)return t=n[0].substring(7).split(" "),{stream:t[0],track:t[1]};const i=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);return i.length>0?(t=i[0].value.split(" "),{stream:t[0],track:t[1]}):void 0},r.parseSctpDescription=function(e){const t=r.parseMLine(e),n=r.matchPrefix(e,"a=max-message-size:");let i;n.length>0&&(i=parseInt(n[0].substring(19),10)),isNaN(i)&&(i=65536);const s=r.matchPrefix(e,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substring(12),10),protocol:t.fmt,maxMessageSize:i};const o=r.matchPrefix(e,"a=sctpmap:");if(o.length>0){const e=o[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},r.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},r.generateSessionId=function(){return Math.random().toString().substr(2,22)},r.writeSessionBoilerplate=function(e,t,n){let i;const s=void 0!==t?t:2;i=e||r.generateSessionId();return"v=0\r\no="+(n||"thisisadapterortc")+" "+i+" "+s+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},r.getDirection=function(e,t){const 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 t?r.getDirection(t):"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){const t=r.splitLines(e)[0].substring(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},r.parseOLine=function(e){const t=r.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},r.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;const t=r.splitLines(e);for(let e=0;e<t.length;e++)if(t[e].length<2||"="!==t[e].charAt(1))return!1;return!0},e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(5),s=(0,r.__importDefault)(n(57)),o=n(34),a=n(58);function c(e){const t=e.application;if(t.streams&&t.streams.length&&t.sources&&t.sources.length){const e=t.streams[0];t.sources[0].parameters.msid=`${e.id} ${e.track}`,t.sourceGroups&&t.sourceGroups.length>0&&t.sources.push({parameters:{cname:t.sources[0].parameters.cname,msid:`${e.id} ${e.track}`},ssrc:t.sourceGroups[0].sources[1]})}}class u extends s.default{constructor(e){if(super(e),this.includesAudio=!1,this.includesVideo=!1,this._ringing=!1,this.pc.addEventListener("track",e=>{this.onAddTrack(e.track,e.streams[0])}),e.stream)for(const t of e.stream.getTracks())this.addTrack(t,e.stream)}get ringing(){return this._ringing}set ringing(e){e!==this._ringing&&(this._ringing=e)}get streams(){return"closed"!==this.pc.signalingState?this.pc.getRemoteStreams():[]}async start(e,t){this.state="pending",1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||(()=>{}),e=e||{},this.role="initiator",this.offerOptions=e;try{await this.processLocal(i.JingleAction.SessionInitiate,async()=>{const t=await this.pc.createOffer(e),n=(0,o.importFromSDP)(t.sdp),r=(0,a.convertIntermediateToRequest)(n,this.role,this.transportType);r.sid=this.sid,r.action=i.JingleAction.SessionInitiate;for(const e of r.contents||[])e.creator="initiator",c(e);await this.pc.setLocalDescription(t),this.send("session-initiate",r)}),t()}catch(e){this._log("error","Could not create WebRTC offer",e),this.end("failed-application",!0)}}async accept(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||(()=>{}),e=e||{},this._log("info","Accepted incoming session"),this.state="active",this.role="responder";try{await this.processLocal(i.JingleAction.SessionAccept,async()=>{const t=await this.pc.createAnswer(e),n=(0,o.importFromSDP)(t.sdp),r=(0,a.convertIntermediateToRequest)(n,this.role,this.transportType);r.sid=this.sid,r.action=i.JingleAction.SessionAccept;for(const e of r.contents||[])e.creator="initiator";await this.pc.setLocalDescription(t),await this.processBufferedCandidates(),this.send("session-accept",r)}),t()}catch(e){this._log("error","Could not create WebRTC answer",e),this.end("failed-application")}}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(const e of this.pc.getReceivers())this.onRemoveTrack(e.track);super.end(e,t)}ring(){return this.processLocal("ring",async()=>{this._log("info","Ringing on incoming session"),this.ringing=!0,this.send(i.JingleAction.SessionInfo,{info:{infoType:i.JINGLE_INFO_RINGING}})})}mute(e,t){return this.processLocal("mute",async()=>{this._log("info","Muting",t),this.send(i.JingleAction.SessionInfo,{info:{creator:e,infoType:i.JINGLE_INFO_MUTE,name:t}})})}unmute(e,t){return this.processLocal("unmute",async()=>{this._log("info","Unmuting",t),this.send(i.JingleAction.SessionInfo,{info:{creator:e,infoType:i.JINGLE_INFO_UNMUTE,name:t}})})}hold(){return this.processLocal("hold",async()=>{this._log("info","Placing on hold"),this.send("session-info",{info:{infoType:i.JINGLE_INFO_HOLD}})})}resume(){return this.processLocal("resume",async()=>{this._log("info","Resuming from hold"),this.send("session-info",{info:{infoType:i.JINGLE_INFO_ACTIVE}})})}addTrack(e,t,n){return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",async()=>{this.pc.addTrack?this.pc.addTrack(e,t):this.pc.addStream(t),n&&n()})}async removeTrack(e,t){return this.processLocal("removetrack",async()=>{if(this.pc.removeTrack(e),t)return t()})}onAddTrack(e,t){this._log("info","Track added"),this.parent.emit("peerTrackAdded",this,e,t)}onRemoveTrack(e){this._log("info","Track removed"),this.parent.emit("peerTrackRemoved",this,e)}async onSessionInitiate(e,t){this._log("info","Initiating incoming session"),this.state="pending",this.role="responder",this.transportType=e.contents[0].transport.transportType;const n=(0,a.convertRequestToIntermediate)(e,this.peerRole);for(const e of n.media)"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),e.streams||(e.streams=[{stream:"legacy",track:e.kind}]);const r=(0,o.exportToSDP)(n);try{return await this.pc.setRemoteDescription({type:"offer",sdp:r}),await this.processBufferedCandidates(),t()}catch(e){return this._log("error","Could not create WebRTC answer",e),t({condition:"general-error"})}}onSessionTerminate(e,t){for(const e of this.pc.getReceivers())this.onRemoveTrack(e.track);super.onSessionTerminate(e,t)}onSessionInfo(e,t){const n=e.info||{infoType:""};switch(n.infoType){case i.JINGLE_INFO_RINGING:return this._log("info","Outgoing session is ringing"),this.ringing=!0,this.parent.emit("ringing",this),t();case i.JINGLE_INFO_HOLD:return this._log("info","On hold"),this.parent.emit("hold",this),t();case i.JINGLE_INFO_UNHOLD:case i.JINGLE_INFO_ACTIVE:return this._log("info","Resuming from hold"),this.parent.emit("resumed",this),t();case i.JINGLE_INFO_MUTE:return this._log("info","Muting",n),this.parent.emit("mute",this,n),t();case i.JINGLE_INFO_UNMUTE:return this._log("info","Unmuting",n),this.parent.emit("unmute",this,n),t()}return t()}}t.default=u},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var u,l=n(7);o(n(284),t);var d=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.peerConnection=t,r.haveConnectionMetrics=!1,r.statsArr=[],u="undefined"!=typeof window,r.session=n.session,r.initiator=n.initiator,r.conference=n.conference,r.statsInterval=1e3*(n.interval||5),r.logger=n.logger||console,["new","checking"].includes(t.iceConnectionState)&&("checking"===t.iceConnectionState&&(r.logger.warn("iceConnectionState is already in checking state so ice connect time may not be accurate"),r.handleIceStateChange()),t.addEventListener("iceconnectionstatechange",r.handleIceStateChange.bind(r))),t.addEventListener("connectionstatechange",r.handleConnectionStateChange.bind(r)),"connected"===t.connectionState&&r.pollForStats(),r}return i(t,e),t.prototype.handleIceStateChange=function(){var e=this,t=this.peerConnection.iceConnectionState;if("checking"===t&&u&&(this.iceStartTime=window.performance.now()),"connected"===t){if(this.haveConnectionMetrics)return;this.haveConnectionMetrics=!0;var n=void 0,r=void 0,i=void 0;u&&(this.iceConnectionTime=window.performance.now()-this.iceStartTime,n=window.navigator.userAgent,r=window.navigator.platform,i=window.navigator.hardwareConcurrency);var s={name:"connect",userAgent:n,platform:r,cores:i,session:this.session,conference:this.conference,connectTime:this.iceConnectionTime};return this.waitForSelectedCandidatePair().then((function(t){e.gatherSelectedCandidateInfo(t,s),e.emit("stats",s)}))}if("failed"===t)return u&&(this.iceFailedTime=window.performance.now()-this.iceStartTime),this.gatherStats().then((function(){var t={name:"failure",session:e.session,initiator:e.initiator,conference:e.conference,failTime:e.iceFailedTime,iceRW:0,numLocalHostCandidates:0,numLocalSrflxCandidates:0,numLocalRelayCandidates:0,numRemoteHostCandidates:0,numRemoteSrflxCandidates:0,numRemoteRelayCandidates:0},n=e.peerConnection.localDescription.sdp.split("\r\n").filter((function(e){return e.indexOf("a=candidate:")>-1})),r=e.peerConnection.remoteDescription.sdp.split("\r\n").filter((function(e){return e.indexOf("a=candidate:")>-1}));["Host","Srflx","Relay"].forEach((function(e){t["numLocal"+e+"Candidates"]=n.filter((function(t){return t.split(" ")[7]===e.toLowerCase()})).length,t["numRemote"+e+"Candidates"]=r.filter((function(t){return t.split(" ")[7]===e.toLowerCase()})).length})),e.emit("stats",t)}))},t.prototype.waitForSelectedCandidatePair=function(e,t){var n=this;return void 0===e&&(e=300),void 0===t&&(t=1),this.gatherStats().then((function(r){return n.getSelectedCandidatePair(r)?r:t>3?Promise.reject(new Error("Max wait attempts for connected candidate info reached")):new Promise((function(r,i){setTimeout((function(){return n.waitForSelectedCandidatePair(e,t+1).then(r,i)}),e)}))}))},t.prototype.getSelectedCandidatePair=function(e){var t=null;return e.forEach((function(e){var n=e.value;"candidate-pair"===n.type&&n.nominated&&"succeeded"===n.state&&(t=n)})),t},t.prototype.gatherSelectedCandidateInfo=function(e,t){var n=this.getSelectedCandidatePair(e);if(n){var r,i,s=n.localCandidateId,o=n.remoteCandidateId;if(e.forEach((function(e){var n=e.value;s&&"local-candidate"===n.type&&n.id===s&&(r=n,t.localCandidateType=n.candidateType),o&&"remote-candidate"===n.type&&n.id===o&&(i=n,t.remoteCandidateType=n.candidateType)})),r&&i&&(t.candidatePair=r.candidateType+";"+i.candidateType,t.candidatePairDetails={local:r,remote:i,pair:n}),r){if(t.transport=r.transport||r.protocol,r.priority){var a=parseInt(r.priority,10);t.turnType={2:"udp",1:"tcp",0:"tls"}[a>>24],t.networkType=r.networkType}t.usingIPv6=r.ipAddress&&0===r.ipAddress.indexOf("[")}}},t.prototype.handleConnectionStateChange=function(){return a(this,void 0,void 0,(function(){var e,t=this;return c(this,(function(n){if("connected"===(e=this.peerConnection.connectionState))this.pollForStats();else{if("disconnected"===e)return"stable"!==this.peerConnection.signalingState?[2]:[2,this.gatherStats().then((function(e){var n=t.createStatsReport(e);n.type="disconnected",t.emit("stats",n)}))];["closed","failed"].includes(e)&&this.pollingInterval&&(u&&window.clearInterval(this.pollingInterval),this.pollingInterval=null)}return[2]}))}))},t.prototype.pollForStats=function(){var e=this;if(!this.pollingInterval){var t=function(){return e.gatherStats().then((function(t){if(0!==t.length){var n=e.createStatsReport(t,!0);(n.tracks.length>0||n.remoteTracks.length>0)&&e.checkBitrate(n)&&e.emit("stats",n)}else e.logger.warn("Empty stats gathered, ignoring and not emitting stats")}))};u&&(window.setTimeout(t,0),this.pollingInterval=window.setInterval(t,this.statsInterval))}},t.prototype.checkBitrate=function(e){var t;return e.remoteTracks.length&&0!==(null===(t=e.remoteTracks[0])||void 0===t?void 0:t.bitrate)?(this.statsArr=[],!0):!(this.statsArr.length>=5)&&(this.statsArr.push(e),!0)},t.prototype.polyFillStats=function(e){if(!e)return[];if(Array.isArray(e))return e;var t=[];if(this.isNativeStatsReport(e))e.forEach((function(e,n){t.push({key:n,value:e})}));else{if(!(Object.keys(e).length>0))return this.logger.warn("Unknown stats results format, returning unmodified",e),[];Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})}))}return t},t.prototype.isNativeStatsReport=function(e){return void 0!==window.RTCStatsReport&&e instanceof window.RTCStatsReport},t.prototype.gatherStats=function(){return a(this,void 0,void 0,(function(){var e;return c(this,(function(t){switch(t.label){case 0:return t.trys.push([0,4,,5]),["connecting","connected"].includes(this.peerConnection.connectionState)?[4,this.peerConnection.getStats(null).then(this.polyFillStats.bind(this))]:[3,2];case 1:return[2,t.sent()];case 2:return"closed"===this.peerConnection.connectionState?(this.pollingInterval&&(u&&window.clearInterval(this.pollingInterval),this.pollingInterval=null),[2,[]]):[2,[]];case 3:return[3,5];case 4:return e=t.sent(),this.logger.error("Failed to gather stats. Are you using RTCPeerConnection as your connection? {expect peerconnection.getStats}",{peerConnection:this.peerConnection,err:e}),[2,Promise.reject(e)];case 5:return[2]}}))}))},t.prototype.createStatsReport=function(e,t){var n=this;void 0===t&&(t=!0);var r={name:"getStats",session:this.session,initiator:this.initiator,conference:this.conference,tracks:[],remoteTracks:[]};if(0===e.length)return r;e.filter((function(e){return["inbound-rtp","outbound-rtp"].indexOf(e.value.type)>-1})).forEach((function(t){n.processSource({source:t.value,event:r,results:e})}));var i=e.find((function(e){return"candidate-pair"===e.value.type&&"succeeded"===e.value.state&&!0===e.value.nominated}));return i&&this.processSelectedCandidatePair({report:i.value,event:r,results:e}),t&&(this.lastResult=e),r},t.prototype.processSource=function(e){var t,n,r,i,s,o,a,c=e.source,u=e.results,l=e.event,d=new Date(c.timestamp),h=this.lastResult&&this.lastResult.find((function(e){return e.key===c.id}));(h=h&&h.value)&&(t=(t=this.lastResult&&this.lastResult.find((function(e){return e.value.localId===h.id})))&&t.value),u.forEach((function(e){e.value.localId===c.id?n=e.value:e.key===c.transportId?r=e.value:e.key===c.trackId?s=e.value:e.key===c.mediaSourceId?o=e.value:e.key===c.codecId&&(a=e.value)})),r&&(i=(i=u.find((function(e){return e.key===r.selectedCandidatePairId})))&&i.value),i&&(l.candidatePairHadActiveSource=!0);var f=c.kind||c.mediaType,m="outbound-rtp"===c.type,g={track:s&&s.trackIdentifier,kind:f,jitter:p("jitter",c,n),roundTripTime:p("roundTripTime",c,n),packetsLost:p("packetsLost",c,n)||0,packetLoss:0,bytes:parseInt(m?c.bytesSent:c.bytesReceived,10)||0};if(a&&(g.codec="".concat(a.payloadType," ").concat(a.mimeType," ").concat(a.clockRate)),h){var y=parseInt(m?h.bytesSent:h.bytesReceived,10)||0,b=d.getTime()-new Date(h.timestamp).getTime();g.bitrate=Math.floor(8*(g.bytes-y)/b)}var v=p("packetsLost",h,t);m?(g.packetsSent=c.packetsSent,g.packetLoss=g.packetsLost/(g.packetsSent||1)*100,h&&(g.intervalPacketsSent=g.packetsSent-(h.packetsSent||0),g.intervalPacketsLost=g.packetsLost-(v||0),g.intervalPacketLoss=g.intervalPacketsLost/(g.intervalPacketsSent||1)*100),g.retransmittedBytesSent=c.retransmittedBytesSent,g.retransmittedPacketsSent=c.retransmittedPacketsSent):(g.packetsReceived=c.packetsReceived,g.packetLoss=g.packetsLost/(g.packetsReceived||1)*100,h&&(g.intervalPacketsReceived=g.packetsReceived-h.packetsReceived,g.intervalPacketsLost=g.packetsLost-v,g.intervalPacketLoss=g.intervalPacketsLost/(g.intervalPacketsReceived||1)*100)),s&&"audio"===f&&(s.remoteSource?(g.audioLevel=s.audioLevel,g.totalAudioEnergy=s.totalAudioEnergy):(g.echoReturnLoss=s.echoReturnLoss,g.echoReturnLossEnhancement=s.echoReturnLossEnhancement)),"audio"!==f||!o||s&&s.remoteSource||(g.audioLevel=o.audioLevel,g.totalAudioEnergy=o.totalAudioEnergy),Object.keys(g).forEach((function(e){return void 0===g[e]&&delete g[e]})),m?l.tracks.push(g):l.remoteTracks.push(g)},t.prototype.processSelectedCandidatePair=function(e){var t=this,n=e.report,r=e.event,i=e.results,s=n.localCandidateId,o=n.remoteCandidateId;r.localCandidateChanged=!!this.lastActiveLocalCandidate&&s!==this.lastActiveLocalCandidate.id,r.remoteCandidateChanged=!!this.lastActiveRemoteCandidate&&o!==this.lastActiveRemoteCandidate.id,(!this.lastActiveLocalCandidate||r.localCandidateChanged||r.remoteCandidateChanged)&&i.forEach((function(e){t.checkLastActiveCandidate({localId:s,remoteId:o,report:e.value})})),this.lastActiveLocalCandidate&&(r.networkType=this.lastActiveLocalCandidate.networkType,this.lastActiveRemoteCandidate&&(r.candidatePair=this.lastActiveLocalCandidate.candidateType+";"+this.lastActiveRemoteCandidate.candidateType)),r.bytesSent=n.bytesSent,r.bytesReceived=n.bytesReceived,r.requestsReceived=n.requestsReceived,r.requestsSent=n.requestsSent,r.responsesReceived=n.responsesReceived,r.responsesSent=n.responsesSent,r.consentRequestsSent=n.consentRequestsSent,r.totalRoundTripTime=n.totalRoundTripTime},t.prototype.checkLastActiveCandidate=function(e){var t=e.localId,n=e.remoteId,r=e.report;t&&"local-candidate"===r.type&&r.id===t&&(this.lastActiveLocalCandidate=r),n&&"remote-candidate"===r.type&&r.id===n&&(this.lastActiveRemoteCandidate=r)},t}(l.EventEmitter);function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t.find((function(t){return t&&(t[e]||0===t[e])}));return r&&r[e]}t.default=d},function(e,t,n){"use strict";n.r(t),n.d(t,"Axios",(function(){return i})),n.d(t,"AxiosError",(function(){return s})),n.d(t,"CanceledError",(function(){return o})),n.d(t,"isCancel",(function(){return a})),n.d(t,"CancelToken",(function(){return c})),n.d(t,"VERSION",(function(){return u})),n.d(t,"all",(function(){return l})),n.d(t,"Cancel",(function(){return d})),n.d(t,"isAxiosError",(function(){return p})),n.d(t,"spread",(function(){return h})),n.d(t,"toFormData",(function(){return f})),n.d(t,"AxiosHeaders",(function(){return m})),n.d(t,"HttpStatusCode",(function(){return g})),n.d(t,"formToJSON",(function(){return y})),n.d(t,"getAdapter",(function(){return b})),n.d(t,"mergeConfig",(function(){return v}));var r=n(67);n.d(t,"default",(function(){return r.a}));const{Axios:i,AxiosError:s,CanceledError:o,isCancel:a,CancelToken:c,VERSION:u,all:l,Cancel:d,isAxiosError:p,spread:h,toFormData:f,AxiosHeaders:m,HttpStatusCode:g,formToJSON:y,getAdapter:b,mergeConfig:v}=r.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),i=Math.pow(2,32),s=(e,t)=>(e%t+t)%t;class o extends r.EventEmitter{constructor(){super(),this.allowResume=!0,this.lastAck=0,this.handled=0,this.unacked=[],this.inboundStarted=!1,this.outboundStarted=!1,this.id=void 0,this.jid=void 0,this.allowResume=!0,this.started=!1,this.cacheHandler=()=>{},this._reset()}get started(){return this.outboundStarted&&this.inboundStarted}set started(e){e||(this.outboundStarted=!1,this.inboundStarted=!1)}get resumable(){return this.started&&this.allowResume}load(e){var t;this.id=e.id,this.allowResume=null===(t=e.allowResume)||void 0===t||t,this.handled=e.handled,this.lastAck=e.lastAck,this.unacked=e.unacked,this.emit("prebound",e.jid)}cache(e){this.cacheHandler=e}async bind(e){this.jid=e,await this._cache()}async enable(){this.emit("send",{allowResumption:this.allowResume,type:"enable"})}async resume(){this.emit("send",{handled:this.handled,previousSession:this.id,type:"resume"})}async enabled(e){this.id=e.id,this.allowResume=e.resume||!1,this.handled=0,this.inboundStarted=!0,await this._cache()}async resumed(e){this.id=e.previousSession,this.inboundStarted=!0,await this.process(e,!0),await this._cache()}async failed(e){await this.process(e);for(const[e,t]of this.unacked)this.emit("failed",{kind:e,stanza:t});this._reset(),await this._cache()}ack(){this.emit("send",{handled:this.handled,type:"ack"})}request(){this.emit("send",{type:"request"})}async process(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===e.handled)return;const n=s(e.handled-this.lastAck,i);for(let e=0;e<n&&this.unacked.length>0;e++){const[e,t]=this.unacked.shift();this.emit("acked",{kind:e,stanza:t})}if(this.lastAck=e.handled,t){const e=this.unacked;if(this.unacked=[],e.length){this.emit("begin-resend");for(const[t,n]of e)this.emit("resend",{kind:t,stanza:n});this.emit("end-resend")}}await this._cache()}async track(e,t){const n="enable"===t.type;return"sm"!==e||!n&&"resume"!==t.type?!!this.outboundStarted&&(("message"===e||"presence"===e||"iq"===e)&&(this.unacked.push([e,t]),await this._cache(),!0)):(n&&(this.handled=0),this.outboundStarted=!0,await this._cache(),!1)}async handle(){this.inboundStarted&&(this.handled=s(this.handled+1,i),await this._cache())}async hibernate(){if(!this.resumable)return this.shutdown();for(const[e,t]of this.unacked)this.emit("hibernated",{kind:e,stanza:t})}async shutdown(){return this.failed({type:"failed"})}async _cache(){try{await this.cacheHandler({allowResume:this.allowResume,handled:this.handled,id:this.id,jid:this.jid,lastAck:this.lastAck,unacked:this.unacked})}catch(e){console.error("Failed to cache stream state",e)}}_reset(){this.id="",this.inboundStarted=!1,this.outboundStarted=!1,this.lastAck=0,this.handled=0,this.unacked=[]}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCRAM=t.DIGEST=t.OAUTH=t.PLAIN=t.EXTERNAL=t.ANONYMOUS=t.Hi=t.HMAC=t.H=t.XOR=t.createClientNonce=t.Factory=t.SimpleMech=void 0;const r=n(9),i=n(86);class s{constructor(e){this.authenticated=!1,this.mutuallyAuthenticated=!1,this.name=e}getCacheableCredentials(){return null}processChallenge(e){}processSuccess(e){this.authenticated=!0}finalize(){const e={authenticated:this.authenticated,mutuallyAuthenticated:this.mutuallyAuthenticated};return this.errorData&&(e.errorData=this.errorData),e}}t.SimpleMech=s;function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;return(0,r.randomBytes)(e).toString("hex")}function a(e,t){const n=[];for(let r=0;r<e.length;r++)n.push(e[r]^t[r]);return r.Buffer.from(n)}function c(e,t){return(0,r.createHash)(t).update(e).digest()}function u(e,t,n){return(0,r.createHmac)(n,e).update(t).digest()}function l(e,t,n,i){let s=u(e,r.Buffer.concat([t,r.Buffer.from("00000001","hex")]),i),o=s;for(let t=0;t<n-1;t++)s=u(e,s,i),o=a(o,s);return o}function d(e){const t={},n=e.toString().split(/,(?=(?:[^"]|"[^"]*")*$)/);for(let e=0,r=n.length;e<r;e++){const r=/(\w+)=["]?([^"]+)["]?$/.exec(n[e]);r&&(t[r[1]]=r[2])}return t}function p(e){const t=[];for(const n of e)","===n?t.push("=2C"):"="===n?t.push("=3D"):t.push(n);return t.join("")}t.Factory=class{constructor(){this.mechanisms=[]}register(e,t,n){this.mechanisms.push({constructor:t,name:e.toUpperCase(),priority:n}),this.mechanisms.sort((e,t)=>t.priority-e.priority)}disable(e){const t=e.toUpperCase();this.mechanisms=this.mechanisms.filter(e=>e.name!==t)}createMechanism(e){const t=e.map(e=>e.toUpperCase());for(const e of this.mechanisms)for(const n of t)if(n===e.name)return new e.constructor(e.name);return null}},t.createClientNonce=o,t.XOR=a,t.H=c,t.HMAC=u,t.Hi=l;t.ANONYMOUS=class extends s{getExpectedCredentials(){return{optional:["trace"],required:[]}}createResponse(e){return r.Buffer.from(e.trace||"")}};t.EXTERNAL=class extends s{getExpectedCredentials(){return{optional:["authzid"],required:[]}}createResponse(e){return r.Buffer.from(e.authzid||"")}};t.PLAIN=class extends s{getExpectedCredentials(){return{optional:["authzid"],required:["username","password"]}}createResponse(e){return r.Buffer.from((e.authzid||"")+"\0"+e.username+"\0"+(e.password||e.token))}};t.OAUTH=class extends s{constructor(e){super(e),this.failed=!1,this.name=e}getExpectedCredentials(){return{optional:["authzid"],required:["token"]}}createResponse(e){if(this.failed)return r.Buffer.from("");const t=`n,${p((0,i.saslprep)(e.authzid))},`,n=`auth=Bearer ${e.token}`;return r.Buffer.from(t+""+n+"","utf8")}processChallenge(e){this.failed=!0,this.errorData=JSON.parse(e.toString("utf8"))}};t.DIGEST=class extends s{constructor(e){super(e),this.providesMutualAuthentication=!1,this.state="INITIAL",this.name=e}processChallenge(e){this.state="CHALLENGE";const t=d(e);this.authenticated=!!t.rspauth,this.realm=t.realm,this.nonce=t.nonce,this.charset=t.charset}getExpectedCredentials(){return{optional:["authzid","clientNonce","realm"],required:["host","password","serviceName","serviceType","username"]}}createResponse(e){if("INITIAL"===this.state||this.authenticated)return null;let t=e.serviceType+"/"+e.host;e.serviceName&&e.host!==e.serviceName&&(t+="/"+e.serviceName);const n=e.realm||this.realm||"",i=e.clientNonce||o(16),s="00000001";let a="";a+='username="'+e.username+'"',n&&(a+=',realm="'+n+'"'),a+=',nonce="'+this.nonce+'"',a+=',cnonce="'+i+'"',a+=",nc="+s,a+=",qop=auth",a+=',digest-uri="'+t+'"';const c=(0,r.createHash)("md5").update(e.username).update(":").update(n).update(":").update(e.password).digest(),u=(0,r.createHash)("md5").update(c).update(":").update(this.nonce).update(":").update(i);e.authzid&&u.update(":").update(e.authzid);const l=u.digest("hex"),d=(0,r.createHash)("md5").update("AUTHENTICATE:").update(t).digest("hex");return a+=",response="+(0,r.createHash)("md5").update(l).update(":").update(this.nonce).update(":").update(s).update(":").update(i).update(":").update("auth").update(":").update(d).digest("hex"),"utf-8"===this.charset&&(a+=",charset=utf-8"),e.authzid&&(a+=',authzid="'+e.authzid+'"'),r.Buffer.from(a)}};t.SCRAM=class{constructor(e){this.providesMutualAuthentication=!0,this.name=e,this.state="INITIAL",this.useChannelBinding=this.name.toLowerCase().endsWith("-plus"),this.algorithm=this.name.toLowerCase().split("scram-")[1].split("-plus")[0]}getExpectedCredentials(){const e=["username","password"];return this.useChannelBinding&&e.push("tlsUnique"),{optional:["authzid","clientNonce"],required:e}}getCacheableCredentials(){return this.cache}createResponse(e){return"INITIAL"===this.state?this.initialResponse(e):this.challengeResponse(e)}processChallenge(e){const t=d(e);this.salt=r.Buffer.from(t.s||"","base64"),this.iterationCount=parseInt(t.i,10),this.nonce=t.r,this.verifier=t.v,this.error=t.e,this.challenge=e}processSuccess(e){this.processChallenge(e)}finalize(){return this.verifier?this.serverSignature.toString("base64")!==this.verifier?{authenticated:!1,error:"Mutual authentication failed",mutuallyAuthenticated:!1}:{authenticated:!0,mutuallyAuthenticated:!0}:{authenticated:!1,error:this.error,mutuallyAuthenticated:!1}}initialResponse(e){const t=p((0,i.saslprep)(e.authzid)),n=p((0,i.saslprep)(e.username));this.clientNonce=e.clientNonce||o();let s="n";e.tlsUnique&&(s=this.useChannelBinding?"p=tls-unique":"y"),this.gs2Header=r.Buffer.from(t?`${s},a=${t},`:s+",,"),this.clientFirstMessageBare=r.Buffer.from(`n=${n},r=${this.clientNonce}`);const a=r.Buffer.concat([this.gs2Header,this.clientFirstMessageBare]);return this.state="CHALLENGE",a}challengeResponse(e){const t=r.Buffer.from("Client Key"),n=r.Buffer.from("Server Key"),s=r.Buffer.concat([this.gs2Header,e.tlsUnique||r.Buffer.from("")]).toString("base64"),o=r.Buffer.from(`c=${s},r=${this.nonce}`);let d,p,h;const f=e.salt&&0===r.Buffer.compare(e.salt,this.salt);f&&e.clientKey&&e.serverKey?(p=r.Buffer.from(e.clientKey),h=r.Buffer.from(e.serverKey)):f&&e.saltedPassword?(d=r.Buffer.from(e.saltedPassword),p=u(d,t,this.algorithm),h=u(d,n,this.algorithm)):(d=l(r.Buffer.from((0,i.saslprep)(e.password)),this.salt,this.iterationCount,this.algorithm),p=u(d,t,this.algorithm),h=u(d,n,this.algorithm));const m=c(p,this.algorithm),g=r.Buffer.from(","),y=r.Buffer.concat([this.clientFirstMessageBare,g,this.challenge,g,o]),b=a(p,u(m,y,this.algorithm)).toString("base64");this.serverSignature=u(h,y,this.algorithm);const v=r.Buffer.concat([o,r.Buffer.from(",p="+b)]);return this.state="FINAL",this.cache={clientKey:p,salt:this.salt,saltedPassword:d,serverKey:h},v}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.default=function(e){e.getAccountInfo=async t=>(await e.sendIQ({account:{},to:t,type:"get"})).account,e.updateAccount=(t,n)=>e.sendIQ({account:n,to:t,type:"set"}),e.deleteAccount=t=>e.sendIQ({account:{remove:!0},to:t,type:"set"}),e.getPrivateData=async t=>(await e.sendIQ({privateStorage:{[t]:{}},type:"get"})).privateStorage[t],e.setPrivateData=async(t,n)=>e.sendIQ({privateStorage:{[t]:n},type:"set"}),e.getVCard=async t=>(await e.sendIQ({to:t,type:"get",vcard:{format:r.NS_VCARD_TEMP}})).vcard,e.publishVCard=async t=>{await e.sendIQ({type:"set",vcard:t})},e.enableNotifications=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.sendIQ({push:{action:"enable",form:{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/pubsub#publish-options"},...r],type:"submit"},jid:t,node:n},type:"set"})},e.disableNotifications=(t,n)=>e.sendIQ({push:{action:"disable",jid:t,node:n},type:"set"})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.default=function(e){e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_AVATAR_METADATA)),e.on("pubsub:published",t=>{if(t.pubsub.items.node!==r.NS_AVATAR_METADATA)return;const n=t.pubsub.items.published[0].content;e.emit("avatar",{avatars:n.versions||[],jid:t.from,source:"pubsub"})}),e.on("presence",t=>{t.vcardAvatar&&"string"==typeof t.vcardAvatar&&e.emit("avatar",{avatars:[{id:t.vcardAvatar}],jid:t.from,source:"vcard"})}),e.publishAvatar=(t,n)=>e.publish("",r.NS_AVATAR_DATA,{data:n,itemType:r.NS_AVATAR_DATA},t),e.useAvatars=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.publish("",r.NS_AVATAR_METADATA,{itemType:r.NS_AVATAR_METADATA,pointers:n,versions:t},"current")},e.getAvatar=(t,n)=>e.getItem(t,r.NS_AVATAR_DATA,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.registerFeature("bind",300,async(t,n)=>{try{const r=await e.sendIQ({bind:{resource:e.config.resource},type:"set"});e.features.negotiated.bind=!0,e.emit("session:prebind",r.bind.jid);const i=!t.legacySession||t.legacySession&&t.legacySession.optional;return!e.sessionStarted&&i&&e.emit("session:started",e.jid),n()}catch(e){return console.error(e),n("disconnect","JID binding failed")}}),e.registerFeature("legacySession",1e3,async(t,n)=>{if(e.sessionStarted||t.legacySession&&t.legacySession.optional)return e.features.negotiated.session=!0,n();try{return await e.sendIQ({legacySession:!0,type:"set"}),e.features.negotiated.session=!0,e.sessionStarted||(e.sessionStarted=!0,e.emit("session:started",e.jid)),n()}catch(e){return n("disconnect","Session requeset failed")}}),e.on("session:started",()=>{e.sessionStarted=!0}),e.on("session:prebind",t=>{e.jid=t,e.emit("session:bound",e.jid)}),e.on("--reset-stream-features",()=>{e.sessionStarted=!1,e.features.negotiated.bind=!1,e.features.negotiated.session=!1})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.default=function(e){e.disco.addFeature(r.NS_ADHOC_COMMANDS),e.disco.addItem({name:"Ad-Hoc Commands",node:r.NS_ADHOC_COMMANDS}),e.getCommands=t=>e.getDiscoItems(t,r.NS_ADHOC_COMMANDS)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),i=n(14);async function s(e){if(e.sm.started)return new Promise(t=>{e.once("stream:management:ack",()=>t()),e.sm.request()});try{await e.ping()}catch(e){if(e.error&&"timeout"!==e.error.condition)return;throw e}}function o(e,t){e.features.negotiated.clientStateIndication&&e.send("csi",{type:t})}t.default=function(e){e.disco.addFeature(r.NS_PING),e.on("iq:get:ping",t=>{e.sendIQResult(t)}),e.on("--reset-stream-features",()=>{e._stopKeepAliveInterval(),e.features.negotiated.streamManagement=!1,e.features.negotiated.clientStateIndication=!1}),e.markActive=()=>o(e,"active"),e.markInactive=()=>o(e,"inactive"),e.ping=async t=>{await e.sendIQ({ping:!0,to:t,type:"get"})},e.enableKeepAlive=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e._keepAliveOptions=t;const n=t.interval||300,r=t.timeout||e.config.timeout||15;async function o(){if(e.sessionStarted)try{await(0,i.timeoutPromise)(s(e),1e3*r)}catch(t){e.emit("stream:error",{condition:"connection-timeout",text:"Server did not respond in "+r+" seconds"}),e.transport&&(e.transport.hasStream=!1,e.transport.disconnect(!1))}}clearInterval(e._keepAliveInterval),e._keepAliveInterval=setInterval(o,1e3*n)},e._stopKeepAliveInterval=()=>{e._keepAliveInterval&&(clearInterval(e._keepAliveInterval),delete e._keepAliveInterval)},e.disableKeepAlive=()=>{delete e._keepAliveOptions,e._stopKeepAliveInterval()},e.on("stream:management:resumed",()=>{e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)}),e.on("stream:start",()=>{e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)});const t=async(t,n)=>{if(!e.config.useStreamManagement)return n();const r=async t=>{switch(t.type){case"enabled":return await e.sm.enabled(t),e.features.negotiated.streamManagement=!0,e.off("sm",r),n();case"resumed":return await e.sm.resumed(t),e.features.negotiated.streamManagement=!0,e.features.negotiated.bind=!0,e.sessionStarted=!0,e.sessionStarting=!1,e.off("sm",r),e.emit("stream:management:resumed",t),n("break");case"failed":await e.sm.failed(t),e.off("sm",r),e.emit("session:end"),n()}};e.on("sm",r),e.sm.id?e.sm.id&&e.sm.allowResume?await e.sm.resume():(e.off("sm",r),n()):e.features.negotiated.bind?await e.sm.enable():(e.off("sm",r),n())};e.registerFeature("streamManagement",200,t),e.registerFeature("streamManagement",500,t),e.registerFeature("clientStateIndication",400,(t,n)=>{e.features.negotiated.clientStateIndication=!0,n()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=(0,r.__importDefault)(n(290)),s=(0,r.__importStar)(n(10)),o=n(1);t.default=function(e){e.disco=new i.default,e.disco.addFeature(o.NS_DISCO_INFO),e.disco.addFeature(o.NS_DISCO_ITEMS),e.disco.addIdentity({category:"client",type:"web"}),e.registerFeature("caps",100,(t,n)=>{const r=s.getDomain(e.jid)||e.config.server;e.emit("disco:caps",{caps:t.legacyCapabilities||[],jid:r}),e.features.negotiated.caps=!0,n()}),e.getDiscoInfo=async(t,n)=>({extensions:[],features:[],identities:[],...(await e.sendIQ({disco:{node:n,type:"info"},to:t,type:"get"})).disco}),e.getDiscoItems=async(t,n)=>({items:[],...(await e.sendIQ({disco:{node:n,type:"items"},to:t,type:"get"})).disco}),e.updateCaps=()=>{const t=e.config.capsNode||"https://stanzajs.org";return e.disco.updateCaps(t)},e.getCurrentCaps=()=>{const t=e.disco.getCaps();if(!t)return;const n=`${t[0].node}#${t[0].value}`;return{info:e.disco.getNodeInfo(n),legacyCapabilities:t}},e.on("presence",t=>{t.legacyCapabilities&&e.emit("disco:caps",{caps:t.legacyCapabilities,jid:t.from})}),e.on("iq:get:disco",t=>{const{type:n,node:r}=t.disco;"info"===n&&e.sendIQResult(t,{disco:{...e.disco.getNodeInfo(r||""),node:r,type:"info"}}),"items"===n&&e.sendIQResult(t,{disco:{items:e.disco.items.get(r||"")||[],type:"items"}})})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(5),s=n(1),o=(0,r.__importStar)(n(9));t.default=function(e){e.disco.addFeature("jid\\20escaping"),e.disco.addFeature(s.NS_DELAY),e.disco.addFeature(s.NS_EME_0),e.disco.addFeature(s.NS_FORWARD_0),e.disco.addFeature(s.NS_HASHES_2),e.disco.addFeature(s.NS_HASHES_1),e.disco.addFeature(s.NS_IDLE_1),e.disco.addFeature(s.NS_JSON_0),e.disco.addFeature(s.NS_OOB),e.disco.addFeature(s.NS_PSA),e.disco.addFeature(s.NS_REFERENCE_0),e.disco.addFeature(s.NS_SHIM),e.disco.addFeature(s.NS_DATAFORM),e.disco.addFeature(s.NS_DATAFORM_MEDIA),e.disco.addFeature(s.NS_DATAFORM_VALIDATION),e.disco.addFeature(s.NS_DATAFORM_LAYOUT);const t=o.getHashes();for(const n of t)e.disco.addFeature((0,s.NS_HASH_NAME)(n));e.disco.addFeature(s.NS_TIME),e.disco.addFeature(s.NS_VERSION),e.on("iq:get:softwareVersion",t=>e.sendIQResult(t,{softwareVersion:e.config.softwareVersion||{name:"stanzajs.org",version:i.VERSION}})),e.on("iq:get:time",t=>{const n=new Date;e.sendIQResult(t,{time:{tzo:n.getTimezoneOffset(),utc:n}})}),e.getSoftwareVersion=async t=>(await e.sendIQ({softwareVersion:{},to:t,type:"get"})).softwareVersion,e.getTime=async t=>(await e.sendIQ({time:{},to:t,type:"get"})).time,e.getLastActivity=async t=>(await e.sendIQ({lastActivity:{},to:t,type:"get"})).lastActivity}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.features={handlers:Object.create(null),negotiated:Object.create(null),order:[]},e.registerFeature=function(t,n,r){this.features.order.push({name:t,priority:n}),this.features.order.sort((e,t)=>e.priority-t.priority),this.features.handlers[t]=r.bind(e)},e.on("features",async t=>{const n=e.features.negotiated,r=e.features.handlers,i=[];for(const{name:s}of e.features.order)t[s]&&r[s]&&!n[s]&&i.push(s);function s(e){return new Promise(n=>{r[e](t,(e,t)=>{n(e?{command:e,message:t}:null)})})}for(const t of i){if(n[t])continue;let r="",i="";try{const e=await s(t);e&&(r=e.command,i=e.message||"")}catch(e){r="disconnect",i=e.message,console.error(e)}if(r)return"restart"===r&&e.transport&&e.transport.restart(),void("disconnect"===r&&(e.emit("stream:error",{condition:"policy-violation",text:"Failed to negotiate stream features: "+i}),e.disconnect()))}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.default=function(e){e.discoverBindings=async t=>{const n=new Set,i=new Set,s=e.resolver.getHostMeta(t).then(e=>{var t;for(const s of null!==(t=e.links)&&void 0!==t?t:[])s.href&&s.rel===r.NS_ALT_CONNECTIONS_WEBSOCKET&&i.add(s.href),s.href&&s.rel===r.NS_ALT_CONNECTIONS_XBOSH&&n.add(s.href)}).catch(e=>console.error(e)),o=e.config.allowAlternateDNSDiscovery?e.resolver.resolveTXT("_xmppconnect."+t).then(e=>{for(const t of e)for(const e of t){if(e.startsWith("_xmpp-client-websocket=")){const t=e.substring(e.indexOf("=")+1);t&&i.add(t)}if(e.startsWith("_xmpp-client-xbosh=")){const t=e.substring(e.indexOf("=")+1);t&&n.add(t)}}}).catch(e=>console.error(e)):Promise.resolve();return await Promise.all([s,o]).catch(e=>console.error(e)),{bosh:[...n].filter(e=>e.startsWith("https://")),websocket:[...i].filter(e=>e.startsWith("wss://"))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(9),s=(0,r.__importStar)(n(56)),o=n(1);t.default=function(e){const t=!!i.RTCPeerConnection,n={...{advertiseAudio:t,advertiseFileTransfer:t,advertiseVideo:t,bundlePolicy:"balanced",hasRTCPeerConnection:t,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require",trickleIce:!0},...e.config.jingle},r=e.jingle=new s.SessionManager(n),a=[o.NS_JINGLE_1];n.hasRTCPeerConnection&&(a.push(o.NS_JINGLE_ICE_0,o.NS_JINGLE_ICE_UDP_1,o.NS_JINGLE_DTLS_SCTP_1,o.NS_JINGLE_DTLS_0,"urn:ietf:rfc:5888"),!1===n.trickleIce&&a.push("urn:ietf:rfc:3264"),(n.advertiseAudio||n.advertiseVideo)&&a.push(o.NS_JINGLE_RTP_1,o.NS_JINGLE_RTP_RTCP_FB_0,o.NS_JINGLE_RTP_HDREXT_0,"urn:ietf:rfc:5576"),n.advertiseAudio&&a.push(o.NS_JINGLE_RTP_AUDIO),n.advertiseVideo&&a.push(o.NS_JINGLE_RTP_VIDEO),n.advertiseFileTransfer&&a.push(o.NS_JINGLE_FILE_TRANSFER_4,o.NS_JINGLE_FILE_TRANSFER_5));for(const t of a)e.disco.addFeature(t);const c=["outgoing","incoming","accepted","terminated","ringing","mute","unmute","hold","resumed"];for(const t of c)r.on(t,(n,r)=>{e.emit("jingle:"+t,n,r)});r.on("createdSession",t=>{e.emit("jingle:created",t)}),r.on("send",async t=>{try{if("set"===t.type){const n=await e.sendIQ(t);n.jingle||(n.jingle={}),n.jingle.sid=t.jingle.sid,r.process(n)}"result"===t.type&&e.sendIQResult({type:"set",id:t.id,from:t.to},t),"error"===t.type&&e.sendIQError({type:"set",id:t.id,from:t.to},t)}catch(e){e.jingle||(e.jingle=t.jingle),e.jingle.sid=t.jingle.sid,r.process(e)}}),e.on("session:bound",e=>{r.selfID=e}),e.on("iq:set:jingle",e=>{r.process(e)}),e.on("unavailable",e=>{r.endPeerSessions(e.from,void 0,!0)}),e.getServices=async(t,n,r)=>{const i=(await e.sendIQ({externalServices:{type:n,version:r},to:t,type:"get"})).externalServices;return i.services=i.services||[],i},e.getServiceCredentials=async(t,n,r,i,s)=>(await e.sendIQ({externalServiceCredentials:{host:n,port:i,type:r,version:s},to:t,type:"get"})).externalServiceCredentials,e.discoverICEServers=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const n=(await e.getServices(e.config.server,void 0,t.version)).services||[],r=[];for(const t of n)e.jingle.addICEServer(t);return r}catch(e){return[]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(112),s=(0,r.__importStar)(n(10)),o=n(1);t.default=function(e){e.getHistorySearchForm=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=await e.sendIQ({archive:{type:"query",version:n.version},to:t,type:"get"});return r.archive.form},e.searchHistory=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.nextId();let a="";"string"==typeof t?a=t:(a=t.to||"",n=t),n.queryId=r;const c=n.form||{};c.type="submit";const u=c.fields||[],l=[{name:"FORM_TYPE",type:"hidden",value:o.NS_MAM_2}];n.with&&l.push({name:"with",type:"text-single",value:n.with}),n.start&&l.push({name:"start",type:"text-single",value:n.start.toISOString()}),n.end&&l.push({name:"end",type:"text-single",value:n.end.toISOString()}),c.fields=(0,i.mergeFields)(l,u),n.form=c;const d=s.allowedResponders(e.jid,a),p=[],h=e=>{d.has(e.from)&&e.archive&&e.archive.queryId===r&&p.push(e.archive)};e.on("mam:item",h);try{return{...(await e.sendIQ({archive:n,id:r,to:a,type:"set"})).archive,results:p}}finally{e.off("mam:item",h)}},e.getHistoryPreferences=async()=>(await e.sendIQ({archive:{type:"preferences"},type:"get"})).archive,e.setHistoryPreferences=t=>e.sendIQ({archive:{type:"preferences",...t},type:"set"}),e.on("message",t=>{t.archive&&e.emit("mam:item",t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeFields=void 0,t.mergeFields=function(e,t){const n=[],r=new Map;for(const e of t)e.name&&r.set(e.name,e);const i=new Set;for(const t of e)t.name&&r.has(t.name)?(n.push({...t,...r.get(t.name)}),i.add(t.name)):n.push({...t});for(const e of t)(!e.name||e.name&&!i.has(e.name))&&n.push({...e});return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,n(4).__importStar)(n(10)),i=n(1),s=new Set(["chat","groupchat","headline","normal"]),o=new Set(["chat","groupchat","normal"]),a=new Map([["markable",0],["received",1],["displayed",2],["acknowledged",3]]),c=(e,t)=>{var n;return e.marker&&(a.get(e.marker.type)<a.get(t)||"markable"===(null===(n=e.marker)||void 0===n?void 0:n.type))};async function u(e,t){await e.sendIQ({carbons:{action:t},type:"set"})}t.default=function(e){e.disco.addFeature(i.NS_ATTENTION_0),e.disco.addFeature(i.NS_CHAT_MARKERS_0),e.disco.addFeature(i.NS_CHAT_STATES),e.disco.addFeature(i.NS_CORRECTION_0),e.disco.addFeature(i.NS_RECEIPTS),e.disco.addFeature(i.NS_RTT_0),e.enableCarbons=()=>u(e,"enable"),e.disableCarbons=()=>u(e,"disable"),e.markReceived=t=>e.sendMarker(t,"received"),e.markDisplayed=t=>e.sendMarker(t,"displayed"),e.markAcknowledged=t=>e.sendMarker(t,"acknowledged"),e.getAttention=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendMessage({...n,requestingAttention:!0,to:t,type:"headline"})},e.sendMarker=(t,n,i)=>{if(!c(t,n)&&!i)return;const s=!1!==e.config.groupchatMarkersUseStanzaID;let o=t.id;if("groupchat"===t.type&&t.stanzaIds&&s){const e=t.stanzaIds.find(e=>r.equalBare(e.by,t.from));e&&(o=e.id)}e.sendMessage({marker:{id:o,type:n},to:"groupchat"===t.type?r.toBare(t.from):t.from,type:t.type})},e.on("message",t=>{if(t.carbon&&r.equalBare(t.from,e.jid)){const n=t.carbon.forward.message;n.delay||(n.delay=t.carbon.forward.delay||{timestamp:new Date(Date.now())}),(e=>!!e.carbon&&"received"===e.carbon.type)(t)&&(e.emit("carbon:received",t),e.emit("message",n)),(e=>!!e.carbon&&"sent"===e.carbon.type)(t)&&(e.emit("carbon:sent",t),e.emit("message:sent",n,!0))}(e=>!!e.forms&&e.forms.length>0)(t)&&e.emit("dataform",t),t.requestingAttention&&e.emit("attention",t),(e=>!!e.rtt)(t)&&e.emit("rtt",t),(e=>!!e.replace)(t)&&e.emit("replace",t),(e=>!!e.chatState)(t)&&o.has(t.type||"normal")&&e.emit("chat:state",t);const n=!1!==e.config.sendReceipts,i=!1!==e.config.sendMUCReceipts,a=!1!==e.config.chatMarkers,u=!1!==e.config.groupchatMarkersUseStanzaID,l=(e=>{var t;return!!e.receipt&&"request"===e.receipt.type&&s.has(null!==(t=e.type)&&void 0!==t?t:"normal")})(t),d=c(t,"received"),p=l&&n&&("groupchat"!==t.type||i);if(p||a&&d){const n="groupchat"===t.type?r.toBare(t.from):t.from;let i=t.id;if("groupchat"===t.type&&t.stanzaIds&&u){const e=t.stanzaIds.find(e=>r.equalBare(e.by,t.from));e&&(i=e.id)}e.sendMessage({receipt:p?{id:t.id,type:"received"}:void 0,marker:a&&d?{id:i,type:"received"}:void 0,to:n,type:t.type})}t.receipt&&"received"===t.receipt.type&&e.emit("receipt",t),t.marker&&"markable"!==t.marker.type&&e.emit("marker:"+t.marker.type,t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(5),s=(0,r.__importStar)(n(10)),o=n(1),a=n(14);t.default=function(e){e.disco.addFeature(o.NS_MUC),e.disco.addFeature(o.NS_MUC_DIRECT_INVITE),e.disco.addFeature(o.NS_HATS_0),e.joinedRooms=new Map,e.joiningRooms=new Map,e.leavingRooms=new Map,e.on("session:started",(function(){const t=e.joiningRooms;e.joiningRooms=new Map;for(const[n,r]of t)e.joinRoom(n,r);const n=e.joinedRooms;e.joinedRooms=new Map;for(const[t,r]of n)e.joinRoom(t,r)})),e.on("message",t=>{if("groupchat"!==t.type||!t.hasSubject||t.body){if(t.muc)if("direct-invite"===t.muc.type||!t.muc.invite&&t.legacyMUC){const n="direct-invite"===t.muc.type?t.muc:t.legacyMUC;e.emit("muc:invite",{from:t.from,password:n.password,reason:n.reason,room:n.jid,thread:n.thread,type:"direct"})}else t.muc.invite?e.emit("muc:invite",{from:t.muc.invite[0].from,password:t.muc.password,reason:t.muc.invite[0].reason,room:t.from,thread:t.muc.invite[0].thread,type:"mediated"}):t.muc.decline?e.emit("muc:declined",{from:t.muc.decline.from,reason:t.muc.decline.reason,room:t.from}):e.emit("muc:other",t)}else e.emit("muc:topic",{from:t.from,room:s.toBare(t.from),topic:t.subject||""})}),e.on("presence",t=>{const n=s.toBare(t.from);if(e.joiningRooms.has(n)&&"error"===t.type)return e.joiningRooms.delete(n),e.emit("muc:failed",t),void e.emit("muc:error",t);if(!function(e){return!!e.muc}(t))return;const r=t.muc.statusCodes&&t.muc.statusCodes.indexOf(i.MUCStatusCode.SelfPresence)>=0,o=t.muc.statusCodes&&t.muc.statusCodes.indexOf(i.MUCStatusCode.NickChanged)>=0;if("error"===t.type)return void e.emit("muc:error",t);if("unavailable"===t.type)return e.emit("muc:unavailable",t),r&&(o?e.joinedRooms.set(n,t.muc.nick):(e.emit("muc:leave",t),e.joinedRooms.delete(n),e.leavingRooms.delete(n))),void(t.muc.destroy&&e.emit("muc:destroyed",{newRoom:t.muc.destroy.jid,password:t.muc.destroy.password,reason:t.muc.destroy.reason,room:n}));e.emit("muc:available",t);const a=e.joiningRooms.has(n)||!e.joinedRooms.has(n);r&&(e.joinedRooms.set(n,s.getResource(t.from)),a&&(e.joiningRooms.delete(n),e.emit("muc:join",t)))}),e.joinRoom=async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t=s.toBare(t),e.joiningRooms.set(t,n||""),!n)try{n=await e.getReservedNick(t),e.joiningRooms.set(t,n)}catch(e){throw new Error("Room nick required")}return new Promise((i,o)=>{function a(n){s.equalBare(n.from,t)&&(e.off("muc:join",a),e.off("muc:failed",c),i(n))}function c(n){s.equalBare(n.from,t)&&(e.off("muc:join",a),e.off("muc:failed",c),o(n))}e.on("muc:join",a),e.on("muc:failed",c),e.sendPresence({...r,muc:{...r.muc,type:"join"},to:s.createFull(t,n)})})},e.leaveRoom=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=s.toBare(t),n=n||e.joinedRooms.get(t),e.leavingRooms.set(t,n),new Promise((i,o)=>{const c=r.id||(0,a.uuid)(),u=s.allowedResponders(t);function l(n){s.equalBare(n.from,t)&&(e.off("muc:leave",l),e.off("presence:error",d),i(n))}function d(n){n.id===c&&u.has(n.from)&&(e.joinedRooms.has(t)||e.leavingRooms.delete(t),e.off("muc:leave",l),e.off("presence:error",d),o(n))}e.on("muc:leave",l),e.on("presence:error",d),e.sendPresence({...r,id:c,to:s.createFull(t,n),type:"unavailable"})})},e.ban=(t,n,r)=>e.setRoomAffiliation(t,n,"outcast",r),e.kick=(t,n,r)=>e.setRoomRole(t,n,"none",r),e.invite=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(n)||(n=[n]),e.sendMessage({muc:{invite:n,type:"info"},to:t})},e.directInvite=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.sendMessage({muc:{...r,jid:t,type:"direct-invite"},to:n})},e.declineInvite=(t,n,r)=>{e.sendMessage({muc:{decline:{reason:r,to:n},type:"info"},to:t})},e.changeNick=(t,n)=>{const r=(0,a.uuid)(),o=s.createFull(t,n),c=s.allowedResponders(t);return new Promise((t,n)=>{function a(n){c.has(s.toBare(n.from))&&n.muc.statusCodes&&n.muc.statusCodes.includes(i.MUCStatusCode.SelfPresence)&&(e.off("muc:available",a),e.off("presence:id:"+r,u),t(n))}function u(i){c.has(s.toBare(i.from))&&i.id===r&&(e.off("muc:available",a),e.off("presence:id:"+r,u),"error"===i.type?n(i):t(i))}e.on("muc:available",a),e.on("presence:id:"+r,u),e.sendPresence({id:r,to:o})})},e.setSubject=(t,n)=>{e.sendMessage({subject:n,to:t,type:"groupchat"})},e.getReservedNick=async t=>{try{const n=(await e.getDiscoInfo(t,"x-roomuser-item")).identities[0];if(n.name)return n.name;throw new Error("No nickname reserved")}catch(e){throw new Error("No nickname reserved")}},e.requestRoomVoice=t=>{e.sendMessage({forms:[{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/muc#request"},{name:"muc#role",type:"text-single",value:"participant"}],type:"submit"}],to:t})},e.setRoomAffiliation=(t,n,r,i)=>e.sendIQ({muc:{type:"user-list",users:[{affiliation:r,jid:n,reason:i}]},to:t,type:"set"}),e.setRoomRole=(t,n,r,i)=>e.sendIQ({muc:{type:"user-list",users:[{nick:n,reason:i,role:r}]},to:t,type:"set"}),e.getRoomMembers=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{affiliation:"member"};return e.sendIQ({muc:{type:"user-list",users:[n]},to:t,type:"get"})},e.getRoomConfig=async t=>{const n=await e.sendIQ({muc:{type:"configure"},to:t,type:"get"});if(!n.muc.form)throw new Error("No configuration form returned");return n.muc.form},e.configureRoom=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{form:{...n,type:"submit"},type:"configure"},to:t,type:"set"})},e.destroyRoom=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{destroy:n,type:"configure"},to:t,type:"set"})},e.getUniqueRoomName=async function(e){const t=await this.sendIQ({muc:{type:"unique"},to:e,type:"get"});if(!t.muc.name)throw new Error("No unique name returned");return t.muc.name},e.getBookmarks=async()=>{const t=await e.getPrivateData("bookmarks");return t&&t.rooms?t.rooms:[]},e.setBookmarks=t=>e.setPrivateData("bookmarks",{rooms:t}),e.addBookmark=async t=>{const n=await e.getBookmarks(),r=[];let i=!1;for(const e of n)s.equalBare(e.jid,t.jid)?(r.push({...e,...t}),i=!0):r.push(e);return i||r.push(t),e.setBookmarks(r)},e.removeBookmark=async t=>{const n=(await e.getBookmarks()).filter(e=>!s.equalBare(e.jid,t));return e.setBookmarks(n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.default=function(e){e.disco.addFeature(r.NS_ACTIVITY),e.disco.addFeature(r.NS_GEOLOC),e.disco.addFeature(r.NS_MOOD),e.disco.addFeature(r.NS_NICK),e.disco.addFeature(r.NS_TUNE),e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_ACTIVITY)),e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_GEOLOC)),e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_MOOD)),e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_NICK)),e.disco.addFeature((0,r.NS_PEP_NOTIFY)(r.NS_TUNE)),e.publishActivity=t=>e.publish("",r.NS_ACTIVITY,{itemType:r.NS_ACTIVITY,...t}),e.publishGeoLoc=t=>e.publish("",r.NS_GEOLOC,{itemType:r.NS_GEOLOC,...t}),e.publishMood=t=>e.publish("",r.NS_MOOD,{itemType:r.NS_MOOD,...t}),e.publishNick=t=>e.publish("",r.NS_NICK,{itemType:r.NS_NICK,nick:t}),e.publishTune=t=>e.publish("",r.NS_TUNE,{itemType:r.NS_TUNE,...t}),e.on("pubsub:published",t=>{const n=t.pubsub.items.published[0].content;switch(t.pubsub.items.node){case r.NS_ACTIVITY:return e.emit("activity",{activity:n,jid:t.from});case r.NS_GEOLOC:return e.emit("geoloc",{geoloc:n,jid:t.from});case r.NS_MOOD:return e.emit("mood",{jid:t.from,mood:n});case r.NS_NICK:return e.emit("nick",{jid:t.from,nick:n.nick});case r.NS_TUNE:return e.emit("tune",{jid:t.from,tune:t.pubsub.items.published[0].content})}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,n(4).__importStar)(n(10)),i=n(1);t.default=function(e){e.disco.addFeature(i.NS_SHIM+"#SubID",i.NS_SHIM),e.on("message",t=>{!function(e){return!!e.pubsub&&!(e.pubsub.context&&"user"!==e.pubsub.context||!e.pubsub.affiliations)}(t)?function(e){return!!e.pubsub}(t)&&(e.emit("pubsub:event",t),!function(e){return!!e.pubsub.items&&!!e.pubsub.items.published}(t)?!function(e){return!!e.pubsub.items&&!!e.pubsub.items.retracted}(t)?!function(e){return"purge"===e.pubsub.eventType}(t)?!function(e){return"delete"===e.pubsub.eventType}(t)?!function(e){return"subscription"===e.pubsub.eventType}(t)?function(e){return"configuration"===e.pubsub.eventType}(t)&&e.emit("pubsub:config",t):e.emit("pubsub:subscription",t):e.emit("pubsub:deleted",t):e.emit("pubsub:purged",t):e.emit("pubsub:retracted",t):e.emit("pubsub:published",t)):e.emit("pubsub:affiliations",t)}),e.subscribeToNode=async(t,n)=>{const i={};let s;"string"==typeof n?(i.node=n,i.jid=r.toBare(e.jid)):(i.node=n.node,i.jid=n.jid||(n.useBareJID?r.toBare(e.jid):e.jid),s=n.options);const o=await e.sendIQ({pubsub:{context:"user",subscribe:i,subscriptionOptions:s?{form:s}:void 0},to:t,type:"set"}),a=o.pubsub.subscription||{};return o.pubsub.subscriptionOptions&&(a.options=o.pubsub.subscriptionOptions.form),a},e.unsubscribeFromNode=async(t,n)=>{const i={};"string"==typeof n?(i.node=n,i.jid=r.toBare(e.jid)):(i.node=n.node,i.subid=n.subid,i.jid=n.jid||(n.useBareJID?r.toBare(e.jid):e.jid));const s=await e.sendIQ({pubsub:{context:"user",unsubscribe:i},to:t,type:"set"});return s.pubsub&&s.pubsub.subscription?s.pubsub.subscription:{...i,state:"none"}},e.publish=(t,n,r,i)=>e.sendIQ({pubsub:{context:"user",publish:{item:{content:r,id:i},node:n}},to:t,type:"set"}),e.getItem=async(t,n,r)=>(await e.sendIQ({pubsub:{context:"user",fetch:{items:[{id:r}],node:n}},to:t,type:"get"})).pubsub.fetch.items[0],e.getItems=async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=await e.sendIQ({pubsub:{context:"user",fetch:{max:r.max,node:n},paging:r},to:t,type:"get"}),s=i.pubsub.fetch;return s.paging=i.pubsub.paging,s},e.retract=(t,n,r,i)=>e.sendIQ({pubsub:{context:"user",retract:{id:r,node:n,notify:i}},to:t,type:"set"}),e.purgeNode=(t,n)=>e.sendIQ({pubsub:{context:"owner",purge:n},to:t,type:"set"}),e.deleteNode=(t,n,r)=>e.sendIQ({pubsub:{context:"owner",destroy:{node:n,redirect:r}},to:t,type:"set"}),e.createNode=async(t,n,r)=>{const i=await e.sendIQ({pubsub:{configure:r?{form:r}:void 0,context:"user",create:{node:n}},to:t,type:"set"});return i.pubsub&&i.pubsub.create?i.pubsub.create:{node:n}},e.getSubscriptions=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=await e.sendIQ({pubsub:{context:"user",subscriptions:n},to:t,type:"get"});return r.pubsub.subscriptions},e.getAffiliations=(t,n)=>e.sendIQ({pubsub:{affiliations:{node:n}},to:t,type:"get"}),e.getNodeSubscribers=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"string"==typeof n?r.node=n:r={...r,...n},e.sendIQ({pubsub:{context:"owner",subscriptions:r},to:t,type:"get"})},e.updateNodeSubscriptions=(t,n,r)=>e.sendIQ({pubsub:{context:"owner",subscriptions:{items:r,node:n}},to:t,type:"set"}),e.getNodeAffiliations=async(t,n)=>(await e.sendIQ({pubsub:{affiliations:{node:n},context:"owner"},to:t,type:"get"})).pubsub.affiliations,e.updateNodeAffiliations=(t,n,r)=>e.sendIQ({pubsub:{affiliations:{items:r,node:n},context:"owner"},to:t,type:"set"}),e.getNodeConfig=async(t,n)=>(await e.sendIQ({pubsub:{configure:{node:n},context:"owner"},to:t,type:"get"})).pubsub.configure.form||{},e.getDefaultNodeConfig=async t=>(await e.sendIQ({pubsub:{context:"owner",defaultConfiguration:{}},to:t,type:"get"})).pubsub.defaultConfiguration.form||{},e.configureNode=async(t,n,r)=>e.sendIQ({pubsub:{configure:{form:r,node:n},context:"owner"},to:t,type:"set"}),e.getDefaultSubscriptionOptions=async t=>(await e.sendIQ({pubsub:{defaultSubscriptionOptions:{}},to:t,type:"get"})).pubsub.defaultSubscriptionOptions.form||{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,n(4).__importStar)(n(10));t.default=function(e){async function t(t,n){await e.sendIQ({blockList:{action:t,jids:[n]},type:"set"})}e.on("iq:set:roster",t=>{if(!r.allowedResponders(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});e.emit("roster:update",t),e.sendIQResult(t)}),e.on("iq:set:blockList",t=>{if(!r.allowedResponders(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});const n=t.blockList;e.emit(n.action,{jids:n.jids||[]}),e.sendIQResult(t)}),e.getRoster=async()=>{const t=await e.sendIQ({roster:{version:e.config.rosterVer},type:"get"});if(t.roster){const n=t.roster.version;return n&&(e.config.rosterVer=n,e.emit("roster:ver",n)),t.roster.items=t.roster.items||[],t.roster}return{items:[]}},e.updateRosterItem=async t=>{await e.sendIQ({roster:{items:[t]},type:"set"})},e.removeRosterItem=t=>e.updateRosterItem({jid:t,subscription:"remove"}),e.subscribe=t=>{e.sendPresence({type:"subscribe",to:t})},e.unsubscribe=t=>{e.sendPresence({type:"unsubscribe",to:t})},e.acceptSubscription=t=>{e.sendPresence({type:"subscribed",to:t})},e.denySubscription=t=>{e.sendPresence({type:"unsubscribed",to:t})},e.getBlocked=async()=>({jids:[],...(await e.sendIQ({blockList:{action:"list"},type:"get"})).blockList}),e.block=async e=>t("block",e),e.unblock=async e=>t("unblock",e),e.goInvisible=async function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];await e.sendIQ({type:"set",visiblity:{probe:t,type:"invisible"}})},e.goVisible=async()=>{await e.sendIQ({type:"set",visiblity:{type:"visible"}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.registerFeature("sasl",100,async(t,n)=>{const r=e.sasl.createMechanism(t.sasl.mechanisms),i=async t=>{if(r)switch(t.type){case"success":return e.features.negotiated.sasl=!0,e.off("sasl",i),e.emit("auth:success",e.config.credentials),e.transport&&(e.transport.authenticated=!0),void n("restart");case"challenge":r.processChallenge(t.value);try{const t=await e.getCredentials(),n=r.createResponse(t);n||""===n?e.send("sasl",{type:"response",value:n}):e.send("sasl",{type:"response"});const i=r.getCacheableCredentials();i&&(e.config.credentials||(e.config.credentials={}),e.config.credentials={...e.config.credentials,...i},e.emit("credentials:update",e.config.credentials))}catch(t){console.error(t),e.send("sasl",{type:"abort"})}return;case"failure":case"abort":return e.off("sasl",i),e.emit("auth:failed"),void n("disconnect","authentication failed")}};if(!r)return e.off("sasl",i),e.emit("auth:failed"),n("disconnect","authentication failed");e.on("sasl",i),e.once("--reset-stream-features",()=>{e.features.negotiated.sasl=!1,e.off("sasl",i)});try{const t=await e.getCredentials();e.send("sasl",{mechanism:r.name,type:"auth",value:r.createResponse(t)})}catch(t){console.error(t),e.send("sasl",{type:"abort"})}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,n(4).__importStar)(n(10)),i=n(1);t.default=function(e){async function t(t){const n=await e.getDiscoInfo(t);if(!n.features||!n.features.includes(i.NS_HTTP_UPLOAD_0))return;let r;for(const e of n.extensions||[]){const n=e.fields||[];if(n.some(e=>"FORM_TYPE"===e.name&&e.value===i.NS_HTTP_UPLOAD_0)){const e=n.find(e=>"max-file-size"===e.name);return e&&(r=parseInt(e.value,10)),{jid:t,maxSize:r}}}}e.disco.addFeature(i.NS_BOB),e.getBits=async(t,n)=>(await e.sendIQ({bits:{cid:n},to:t,type:"get"})).bits,e.getUploadService=async function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.getDomain(e.jid);const i=await t(n);if(i)return i;const s=await e.getDiscoItems(n);for(const e of s.items||[]){if(!e.jid)continue;const n=await t(e.jid);if(n)return n}throw new Error("No upload service discovered on: "+n)},e.getUploadSlot=async(t,n)=>(await e.sendIQ({httpUpload:{type:"request",...n},to:t,type:"get"})).httpUpload}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4);(0,r.__exportStar)(n(121),t),(0,r.__exportStar)(n(122),t),(0,r.__exportStar)(n(123),t),(0,r.__exportStar)(n(124),t),(0,r.__exportStar)(n(125),t),(0,r.__exportStar)(n(126),t),(0,r.__exportStar)(n(127),t),(0,r.__exportStar)(n(128),t),(0,r.__exportStar)(n(129),t),(0,r.__exportStar)(n(130),t),(0,r.__exportStar)(n(131),t),(0,r.__exportStar)(n(132),t),(0,r.__exportStar)(n(133),t),(0,r.__exportStar)(n(134),t),(0,r.__exportStar)(n(135),t),(0,r.__exportStar)(n(136),t),(0,r.__exportStar)(n(137),t),(0,r.__exportStar)(n(138),t),(0,r.__exportStar)(n(139),t),(0,r.__exportStar)(n(140),t),(0,r.__exportStar)(n(141),t),(0,r.__exportStar)(n(142),t),(0,r.__exportStar)(n(143),t),(0,r.__exportStar)(n(144),t),(0,r.__exportStar)(n(145),t),(0,r.__exportStar)(n(146),t),(0,r.__exportStar)(n(147),t),(0,r.__exportStar)(n(148),t),(0,r.__exportStar)(n(149),t),(0,r.__exportStar)(n(150),t),(0,r.__exportStar)(n(151),t),(0,r.__exportStar)(n(152),t),(0,r.__exportStar)(n(153),t),(0,r.__exportStar)(n(154),t),(0,r.__exportStar)(n(155),t),(0,r.__exportStar)(n(156),t),(0,r.__exportStar)(n(157),t),(0,r.__exportStar)(n(158),t),(0,r.__exportStar)(n(159),t),(0,r.__exportStar)(n(160),t),(0,r.__exportStar)(n(161),t),(0,r.__exportStar)(n(162),t),(0,r.__exportStar)(n(163),t),(0,r.__exportStar)(n(164),t),(0,r.__exportStar)(n(165),t),(0,r.__exportStar)(n(166),t),(0,r.__exportStar)(n(167),t),(0,r.__exportStar)(n(168),t),(0,r.__exportStar)(n(169),t),(0,r.__exportStar)(n(170),t),(0,r.__exportStar)(n(171),t),(0,r.__exportStar)(n(172),t),(0,r.__exportStar)(n(173),t),(0,r.__exportStar)(n(174),t),(0,r.__exportStar)(n(175),t),(0,r.__exportStar)(n(176),t),(0,r.__exportStar)(n(177),t),(0,r.__exportStar)(n(178),t),(0,r.__exportStar)(n(179),t),(0,r.__exportStar)(n(180),t),(0,r.__exportStar)(n(181),t),(0,r.__exportStar)(n(182),t),(0,r.__exportStar)(n(183),t),(0,r.__exportStar)(n(184),t),(0,r.__exportStar)(n(185),t),(0,r.__exportStar)(n(186),t),(0,r.__exportStar)(n(187),t),(0,r.__exportStar)(n(188),t),(0,r.__exportStar)(n(189),t),(0,r.__exportStar)(n(190),t),(0,r.__exportStar)(n(191),t),(0,r.__exportStar)(n(192),t),(0,r.__exportStar)(n(193),t),(0,r.__exportStar)(n(194),t),(0,r.__exportStar)(n(195),t),(0,r.__exportStar)(n(196),t),(0,r.__exportStar)(n(197),t),(0,r.__exportStar)(n(198),t),(0,r.__exportStar)(n(199),t),(0,r.__exportStar)(n(200),t),(0,r.__exportStar)(n(63),t);const i=(0,r.__importDefault)(n(121)),s=(0,r.__importDefault)(n(122)),o=(0,r.__importDefault)(n(123)),a=(0,r.__importDefault)(n(124)),c=(0,r.__importDefault)(n(125)),u=(0,r.__importDefault)(n(126)),l=(0,r.__importDefault)(n(127)),d=(0,r.__importDefault)(n(128)),p=(0,r.__importDefault)(n(129)),h=(0,r.__importDefault)(n(130)),f=(0,r.__importDefault)(n(131)),m=(0,r.__importDefault)(n(132)),g=(0,r.__importDefault)(n(133)),y=(0,r.__importDefault)(n(134)),b=(0,r.__importDefault)(n(135)),v=(0,r.__importDefault)(n(136)),_=(0,r.__importDefault)(n(137)),S=(0,r.__importDefault)(n(138)),w=(0,r.__importDefault)(n(139)),T=(0,r.__importDefault)(n(140)),I=(0,r.__importDefault)(n(141)),A=(0,r.__importDefault)(n(142)),E=(0,r.__importDefault)(n(143)),N=(0,r.__importDefault)(n(144)),x=(0,r.__importDefault)(n(145)),C=(0,r.__importDefault)(n(146)),R=(0,r.__importDefault)(n(147)),O=(0,r.__importDefault)(n(148)),P=(0,r.__importDefault)(n(149)),k=(0,r.__importDefault)(n(150)),j=(0,r.__importDefault)(n(151)),M=(0,r.__importDefault)(n(152)),L=(0,r.__importDefault)(n(154)),D=(0,r.__importDefault)(n(155)),B=(0,r.__importDefault)(n(156)),F=(0,r.__importDefault)(n(153)),q=(0,r.__importDefault)(n(157)),U=(0,r.__importDefault)(n(158)),J=(0,r.__importDefault)(n(159)),z=(0,r.__importDefault)(n(160)),G=(0,r.__importDefault)(n(161)),H=(0,r.__importDefault)(n(162)),V=(0,r.__importDefault)(n(163)),W=(0,r.__importDefault)(n(164)),$=(0,r.__importDefault)(n(165)),Q=(0,r.__importDefault)(n(166)),K=(0,r.__importDefault)(n(167)),Y=(0,r.__importDefault)(n(168)),X=(0,r.__importDefault)(n(169)),Z=(0,r.__importDefault)(n(170)),ee=(0,r.__importDefault)(n(171)),te=(0,r.__importDefault)(n(172)),ne=(0,r.__importDefault)(n(173)),re=(0,r.__importDefault)(n(174)),ie=(0,r.__importDefault)(n(175)),se=(0,r.__importDefault)(n(176)),oe=(0,r.__importDefault)(n(177)),ae=(0,r.__importDefault)(n(178)),ce=(0,r.__importDefault)(n(179)),ue=(0,r.__importDefault)(n(180)),le=(0,r.__importDefault)(n(181)),de=(0,r.__importDefault)(n(182)),pe=(0,r.__importDefault)(n(183)),he=(0,r.__importDefault)(n(184)),fe=(0,r.__importDefault)(n(185)),me=(0,r.__importDefault)(n(186)),ge=(0,r.__importDefault)(n(187)),ye=(0,r.__importDefault)(n(188)),be=(0,r.__importDefault)(n(189)),ve=(0,r.__importDefault)(n(190)),_e=(0,r.__importDefault)(n(191)),Se=(0,r.__importDefault)(n(192)),we=(0,r.__importDefault)(n(193)),Te=(0,r.__importDefault)(n(194)),Ie=(0,r.__importDefault)(n(195)),Ae=(0,r.__importDefault)(n(196)),Ee=(0,r.__importDefault)(n(197)),Ne=(0,r.__importDefault)(n(198)),xe=(0,r.__importDefault)(n(199)),Ce=(0,r.__importDefault)(n(200)),Re=(0,r.__importDefault)(n(63)),Oe=[i.default,s.default,o.default,a.default,c.default,u.default,l.default,d.default,p.default,h.default,f.default,m.default,g.default,y.default,b.default,v.default,_.default,S.default,w.default,T.default,I.default,A.default,E.default,N.default,x.default,C.default,R.default,O.default,P.default,k.default,j.default,M.default,L.default,D.default,B.default,F.default,q.default,U.default,J.default,z.default,G.default,H.default,V.default,W.default,$.default,Q.default,K.default,Y.default,X.default,Z.default,ee.default,te.default,ne.default,re.default,ie.default,se.default,oe.default,ae.default,ce.default,ue.default,le.default,de.default,pe.default,he.default,fe.default,me.default,ge.default,ye.default,be.default,ve.default,_e.default,Se.default,we.default,Te.default,Ie.default,Ae.default,Ee.default,Ne.default,xe.default,Ce.default,Re.default];t.default=Oe},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:["features.legacySession","iq.legacySession"],element:"session",fields:{optional:(0,r.childBoolean)(null,"optional")},namespace:i.NS_SESSION};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:["atomentry",...(0,r.pubsubItemContentAliases)()],element:"entry",fields:{id:(0,r.childText)(null,"id"),published:(0,r.childDate)(null,"published"),updated:(0,r.childDate)(null,"updated")},namespace:i.NS_ATOM,type:i.NS_ATOM,typeField:"itemType"},{element:"summary",fields:{text:(0,r.text)(),type:(0,r.attribute)("type","text")},namespace:i.NS_ATOM,path:"atomentry.summary"},{element:"title",fields:{text:(0,r.text)(),type:(0,r.attribute)("type","text")},namespace:i.NS_ATOM,path:"atomentry.title"},{aliases:[{path:"atomentry.links",multiple:!0}],element:"link",fields:{href:(0,r.attribute)("href"),mediaType:(0,r.attribute)("type"),rel:(0,r.attribute)("rel")},namespace:i.NS_ATOM},{aliases:[{path:"atomentry.authors",multiple:!0}],element:"author",fields:{name:(0,r.childText)(null,"name"),uri:(0,r.childText)(null,"uri"),email:(0,r.childText)(null,"email")},namespace:i.NS_ATOM},{aliases:[{path:"atomentry.contributors",multiple:!0}],element:"contributor",fields:{name:(0,r.childText)(null,"name"),uri:(0,r.childText)(null,"uri"),email:(0,r.childText)(null,"email")},namespace:i.NS_ATOM},{aliases:[{path:"atomentry.categories",multiple:!0}],element:"category",fields:{term:(0,r.attribute)("term"),scheme:(0,r.attribute)("scheme"),label:(0,r.attribute)("label")},namespace:i.NS_ATOM},{element:"content",fields:{text:(0,r.text)(),type:(0,r.attribute)("type","text")},namespace:i.NS_ATOM,path:"atomentry.content"},{element:"rights",fields:{text:(0,r.text)(),type:(0,r.attribute)("type","text")},namespace:i.NS_ATOM,path:"atomentry.rights"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o={defaultType:"stream",element:"stream",fields:{from:(0,i.attribute)("from"),id:(0,i.attribute)("id"),lang:(0,i.languageAttribute)(),to:(0,i.attribute)("to"),version:(0,i.attribute)("version")},namespace:s.NS_STREAM,path:"stream",type:"stream",typeField:"action"},a={element:"features",namespace:s.NS_STREAM,path:"features"},c={element:"error",fields:{alternateLanguageText:(0,i.childAlternateLanguageText)(s.NS_STREAMS,"text"),condition:(0,i.childEnum)(s.NS_STREAMS,Object.values(r.StreamErrorCondition),r.StreamErrorCondition.UndefinedCondition),seeOtherHost:(0,i.childText)(s.NS_STREAMS,r.StreamErrorCondition.SeeOtherHost),text:(0,i.childText)(s.NS_STREAMS,"text")},namespace:s.NS_STREAM,path:"streamError"},u=Object.values(r.StreamType).map(e=>({aliases:["stanzaError","message.error","presence.error","iq.error"],defaultType:s.NS_CLIENT,element:"error",fields:{alternateLanguageText:(0,i.childAlternateLanguageText)(s.NS_STANZAS,"text"),by:(0,i.JIDAttribute)("by"),condition:(0,i.childEnum)(s.NS_STANZAS,Object.values(r.StanzaErrorCondition),r.StanzaErrorCondition.UndefinedCondition),gone:(0,i.childText)(s.NS_STANZAS,r.StanzaErrorCondition.Gone),redirect:(0,i.childText)(s.NS_STANZAS,r.StanzaErrorCondition.Redirect),text:(0,i.childText)(s.NS_STANZAS,"text"),type:(0,i.attribute)("type")},namespace:e,type:e,typeField:"streamType"})),l=new Set(["from","id","lang","to","type","payloadType","error","streamType"]),d=Object.values(r.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"iq",fields:{from:(0,i.JIDAttribute)("from"),id:(0,i.attribute)("id"),lang:(0,i.languageAttribute)(),payloadType:{order:-1e4,importer(e,t){if("get"!==t.data.type&&"set"!==t.data.type)return;if(1!==e.children.filter(e=>"string"!=typeof e).length)return"invalid-payload-count";const n=Object.keys(t.data).filter(e=>!l.has(e));return 1!==n.length?"unknown-payload":n[0]}},to:(0,i.JIDAttribute)("to"),type:(0,i.attribute)("type")},namespace:e,path:"iq",type:e,typeField:"streamType"})),p=Object.values(r.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"message",fields:{from:(0,i.JIDAttribute)("from"),id:(0,i.attribute)("id"),lang:(0,i.languageAttribute)(),to:(0,i.JIDAttribute)("to")},namespace:e,path:"message",type:e,typeField:"streamType"})),h=Object.values(r.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"presence",fields:{from:(0,i.JIDAttribute)("from"),id:(0,i.attribute)("id"),lang:(0,i.languageAttribute)(),to:(0,i.JIDAttribute)("to")},namespace:e,path:"presence",type:e,typeField:"streamType"})),f=[o,a,c,...u,...[{element:"mechanisms",fields:{mechanisms:(0,i.multipleChildText)(null,"mechanism")},namespace:s.NS_SASL,path:"features.sasl"},{element:"abort",namespace:s.NS_SASL,path:"sasl",type:"abort",typeField:"type"},{element:"auth",fields:{mechanism:(0,i.attribute)("mechanism"),value:(0,i.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"auth",typeField:"type"},{element:"challenge",fields:{value:(0,i.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"challenge",typeField:"type"},{element:"response",fields:{value:(0,i.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"response",typeField:"type"},{element:"success",fields:{value:(0,i.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"success",typeField:"type"},{element:"failure",fields:{alternateLanguageText:(0,i.childAlternateLanguageText)(s.NS_SASL,"text"),condition:(0,i.childEnum)(s.NS_SASL,Object.values(r.SASLFailureCondition)),text:(0,i.childText)(s.NS_SASL,"text")},namespace:s.NS_SASL,path:"sasl",type:"failure",typeField:"type"}],...[{aliases:["features.tls"],defaultType:"start",element:"starttls",fields:{required:(0,i.childBoolean)(null,"required")},namespace:s.NS_STARTTLS,path:"tls",type:"start",typeField:"type"},{element:"proceed",namespace:s.NS_STARTTLS,path:"tls",type:"proceed",typeField:"type"},{element:"failure",namespace:s.NS_STARTTLS,path:"tls",type:"failure",typeField:"type"}],...d,...p,...h,{aliases:["features.bind","iq.bind"],element:"bind",fields:{jid:(0,i.childText)(null,"jid"),resource:(0,i.childText)(null,"resource")},namespace:s.NS_BIND}];t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendStreamFeatures)({rosterPreApproval:(0,r.childBoolean)(i.NS_SUBSCRIPTION_PREAPPROVAL,"sub"),rosterVersioning:(0,r.childBoolean)(i.NS_ROSTER_VERSIONING,"ver")}),(0,r.extendMessage)({alternateLanguageBodies:(0,r.childAlternateLanguageText)(null,"body"),alternateLanguageSubjects:(0,r.childAlternateLanguageText)(null,"subject"),body:(0,r.childText)(null,"body"),hasSubject:(0,r.childBoolean)(null,"subject"),parentThread:(0,r.childAttribute)(null,"thread","parent"),subject:(0,r.childText)(null,"subject"),thread:(0,r.childText)(null,"thread"),type:(0,r.attribute)("type")}),(0,r.extendPresence)({alternateLanguageStatuses:(0,r.childAlternateLanguageText)(null,"status"),priority:(0,r.childInteger)(null,"priority",0),show:(0,r.childText)(null,"show"),status:(0,r.childText)(null,"status"),type:(0,r.attribute)("type")}),{element:"query",fields:{version:(0,r.attribute)("ver",void 0,{emitEmpty:!0})},namespace:i.NS_ROSTER,path:"iq.roster"},{aliases:[{path:"iq.roster.items",multiple:!0}],element:"item",fields:{groups:(0,r.multipleChildText)(null,"group"),jid:(0,r.JIDAttribute)("jid"),name:(0,r.attribute)("name"),pending:(0,r.attribute)("ask"),preApproved:(0,r.booleanAttribute)("approved"),subscription:(0,r.attribute)("subscription")},namespace:i.NS_ROSTER}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"open",fields:{from:(0,r.attribute)("from"),id:(0,r.attribute)("id"),lang:(0,r.languageAttribute)(),to:(0,r.attribute)("to"),version:(0,r.attribute)("version")},namespace:i.NS_FRAMING,path:"stream",type:"open"},{element:"close",fields:{seeOtherURI:(0,r.attribute)("see-other-uri")},namespace:i.NS_FRAMING,path:"stream",type:"close"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o=[{aliases:[{path:"message.forms",multiple:!0}],element:"x",fields:{instructions:{...(0,i.multipleChildText)(null,"instructions"),exportOrder:2},reported:{...(0,i.splicePath)(null,"reported","dataformField",!0),exportOrder:3},title:{...(0,i.childText)(null,"title"),exportOrder:1},type:(0,i.attribute)("type")},namespace:s.NS_DATAFORM,optionalNamespaces:{xdv:s.NS_DATAFORM_VALIDATION},path:"dataform"},{aliases:[{path:"dataform.fields",multiple:!0},{path:"dataform.items.fields",multiple:!0}],element:"field",fields:{description:(0,i.childText)(null,"desc"),label:(0,i.attribute)("label"),name:(0,i.attribute)("var"),rawValues:{...(0,i.multipleChildText)(null,"value"),exporter:()=>null},required:(0,i.childBoolean)(null,"required"),type:(0,i.attribute)("type"),value:{importer(e,t){const n=e.getAttribute("type"),o=(0,i.multipleChildText)(s.NS_DATAFORM,"value").importer(e,t),a=o[0];switch(n){case r.DataFormFieldType.TextMultiple:case r.DataFormFieldType.ListMultiple:case r.DataFormFieldType.JIDMultiple:return o;case r.DataFormFieldType.Hidden:case r.DataFormFieldType.Fixed:return 1===o.length?a:o;case r.DataFormFieldType.Boolean:if(a)return"1"===a||"true"===a;break;default:return a}},exporter(e,t,n){const r=(0,i.multipleChildText)(null,"value");let o=[];const a=n.data&&n.data.rawValues?n.data.rawValues[0]:void 0;if("boolean"==typeof t)o="true"===a||"false"===a?[a]:[t?"1":"0"];else if(Array.isArray(t))for(const e of t)o.push(e.toString());else o=[t.toString()];r.exporter(e,o,Object.assign({},n,{namespace:s.NS_DATAFORM}))}}},namespace:s.NS_DATAFORM,path:"dataformField"},{aliases:[{path:"dataform.fields.options",multiple:!0}],element:"option",fields:{label:(0,i.attribute)("label"),value:(0,i.childText)(null,"value")},namespace:s.NS_DATAFORM},{aliases:[{path:"dataform.items",multiple:!0}],element:"item",namespace:s.NS_DATAFORM},{element:"validate",fields:{listMax:(0,i.childIntegerAttribute)(null,"list-range","max"),listMin:(0,i.childIntegerAttribute)(null,"list-range","min"),method:(0,i.childEnum)(null,["basic","open","range","regex"],"basic"),rangeMax:(0,i.childAttribute)(null,"range","max"),rangeMin:(0,i.childAttribute)(null,"range","min"),regex:(0,i.childText)(null,"regex"),type:(0,i.attribute)("datatype","xs:string")},namespace:s.NS_DATAFORM_VALIDATION,path:"dataform.fields.validation"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:["presence.legacyLastActivity","iq.lastActivity"],element:"query",fields:{seconds:(0,r.integerAttribute)("seconds"),status:(0,r.text)()},namespace:i.NS_LAST_ACTIVITY}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"query",fields:{activeList:(0,r.childAttribute)(null,"active","name"),defaultList:(0,r.childAttribute)(null,"default","name")},namespace:i.NS_PRIVACY,path:"iq.privacy"},{aliases:[{path:"iq.privacy.lists",multiple:!0}],element:"list",fields:{name:(0,r.attribute)("name")},namespace:i.NS_PRIVACY},{aliases:[{path:"iq.privacy.lists.items",multiple:!0}],element:"item",fields:{action:(0,r.attribute)("action"),incomingPresence:(0,r.childBoolean)(null,"presence-in"),iq:(0,r.childBoolean)(null,"iq"),messages:(0,r.childBoolean)(null,"message"),order:(0,r.integerAttribute)("order"),outgoingPresence:(0,r.childBoolean)(null,"presence-out"),type:(0,r.attribute)("type"),value:(0,r.attribute)("value")},namespace:i.NS_PRIVACY}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:["iq.disco","message.disco","features.disco"],childrenExportOrder:{identities:1,features:2,extensions:3},element:"query",fields:{features:(0,r.multipleChildAttribute)(null,"feature","var"),node:(0,r.attribute)("node")},namespace:i.NS_DISCO_INFO,path:"disco",type:"info",typeField:"type"},{aliases:[{path:"disco.identities",selector:"info",multiple:!0}],element:"identity",fields:{category:(0,r.attribute)("category"),lang:(0,r.languageAttribute)(),name:(0,r.attribute)("name"),type:(0,r.attribute)("type")},namespace:i.NS_DISCO_INFO},{aliases:[{path:"disco.items",multiple:!0,selector:"items"}],element:"item",fields:{jid:(0,r.JIDAttribute)("jid"),name:(0,r.attribute)("name"),node:(0,r.attribute)("node")},namespace:i.NS_DISCO_ITEMS},{aliases:[{path:"disco.items",multiple:!0,selector:"info"}],element:"item",fields:{category:(0,r.JIDAttribute)("category"),lang:(0,r.languageAttribute)(),name:(0,r.attribute)("name"),type:(0,r.attribute)("type")},namespace:i.NS_DISCO_INFO},(0,r.addAlias)(i.NS_DATAFORM,"x",[{path:"disco.extensions",multiple:!0,selector:"info"}]),(0,r.addAlias)(i.NS_RSM,"set",[{path:"disco.paging",selector:"items"}]),{aliases:["iq.disco","message.disco","features.disco"],element:"query",fields:{node:(0,r.attribute)("node")},namespace:i.NS_DISCO_ITEMS,path:"disco",type:"items",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({addresses:(0,r.splicePath)(i.NS_ADDRESS,"addresses","extendedAddress",!0)}),(0,r.extendPresence)({addresses:(0,r.splicePath)(i.NS_ADDRESS,"addresses","extendedAddress",!0)}),{element:"address",fields:{alternateLanguageDescriptions:(0,r.childAlternateLanguageText)(null,"desc"),delivered:(0,r.booleanAttribute)("delivered"),description:(0,r.attribute)("desc"),jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node"),type:(0,r.attribute)("type"),uri:(0,r.attribute)("uri")},namespace:i.NS_ADDRESS,path:"extendedAddress"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_DATAFORM,"x",[{path:"iq.muc.form",selector:"configure"}]),{defaultType:"info",element:"x",fields:{password:(0,r.childText)(null,"password")},namespace:i.NS_MUC,path:"presence.muc",type:"join",typeField:"type"},{aliases:[{path:"presence.muc.history",selector:"join"}],element:"history",fields:{maxCharacters:(0,r.integerAttribute)("maxchars"),maxStanzas:(0,r.integerAttribute)("maxstanzas"),seconds:(0,r.integerAttribute)("seconds"),since:(0,r.dateAttribute)("since")},namespace:i.NS_MUC},{aliases:["presence.muc","message.muc"],defaultType:"info",element:"x",fields:{action:(0,r.childEnum)(null,["invite","decline","destroy"]),actor:(0,r.splicePath)(null,"item","mucactor"),affiliation:(0,r.childAttribute)(null,"item","affiliation"),jid:(0,r.childJIDAttribute)(null,"item","jid"),nick:(0,r.childAttribute)(null,"item","nick"),password:(0,r.childText)(null,"password"),reason:(0,r.deepChildText)([{namespace:null,element:"item"},{namespace:null,element:"reason"}]),role:(0,r.childAttribute)(null,"item","role"),statusCodes:(0,r.multipleChildAttribute)(null,"status","code")},namespace:i.NS_MUC_USER,type:"info",typeField:"type",typeOrder:1},{element:"actor",fields:{jid:(0,r.JIDAttribute)("jid"),nick:(0,r.attribute)("nick")},namespace:i.NS_MUC_USER,path:"mucactor"},{element:"destroy",fields:{jid:(0,r.JIDAttribute)("jid"),password:(0,r.childText)(null,"password"),reason:(0,r.childText)(null,"reason")},namespace:i.NS_MUC_USER,path:"presence.muc.destroy"},{aliases:[{path:"message.muc.invite",multiple:!0}],element:"invite",fields:{continue:(0,r.childBoolean)(null,"continue"),from:(0,r.JIDAttribute)("from"),reason:(0,r.childText)(null,"reason"),thread:(0,r.childAttribute)(null,"continue","thread"),to:(0,r.JIDAttribute)("to")},namespace:i.NS_MUC_USER},{element:"decline",fields:{from:(0,r.JIDAttribute)("from"),reason:(0,r.childText)(null,"reason"),to:(0,r.JIDAttribute)("to")},namespace:i.NS_MUC_USER,path:"message.muc",type:"decline"},{element:"query",namespace:i.NS_MUC_ADMIN,path:"iq.muc",type:"user-list",typeField:"type"},{aliases:[{path:"iq.muc.users",multiple:!0,selector:"user-list"}],element:"item",fields:{affiliation:(0,r.attribute)("affiliation"),jid:(0,r.JIDAttribute)("jid"),nick:(0,r.attribute)("nick"),reason:(0,r.childText)(null,"reason"),role:(0,r.attribute)("role")},namespace:i.NS_MUC_ADMIN},{aliases:["iq.muc.users.actor"],element:"actor",fields:{jid:(0,r.JIDAttribute)("jid"),nick:(0,r.attribute)("nick")},namespace:i.NS_MUC_ADMIN},{element:"query",namespace:i.NS_MUC_OWNER,path:"iq.muc",type:"configure",typeField:"type"},{aliases:[{path:"iq.muc.destroy",selector:"configure"}],element:"destroy",fields:{jid:(0,r.JIDAttribute)("jid"),password:(0,r.childText)(null,"password"),reason:(0,r.childText)(null,"reason")},namespace:i.NS_MUC_OWNER},{element:"x",fields:{action:(0,r.staticValue)("invite"),continue:(0,r.booleanAttribute)("continue"),jid:(0,r.JIDAttribute)("jid"),legacyReason:(0,r.text)(),password:(0,r.attribute)("password"),reason:(0,r.attribute)("reason"),thread:(0,r.attribute)("thread")},namespace:i.NS_MUC_DIRECT_INVITE,path:"message.muc",type:"direct-invite",typeOrder:2},{element:"unique",fields:{name:(0,r.text)()},namespace:i.NS_MUC_UNIQUE,path:"iq.muc",type:"unique"},(0,r.extendMessage)({legacyMUC:{exporter(e,t,n){const r=n.registry?n.registry.export("message.muc",{...t,type:"direct-invite"}):void 0;r&&e.appendChild(r)},exportOrder:100001,importer(e,t){if(!(0,r.findAll)(e,i.NS_MUC_USER,"x")[0])return;const n=(0,r.findAll)(e,i.NS_MUC_DIRECT_INVITE,"x")[0];return n&&t.registry?t.registry.import(n,{...t,path:"message"}):void 0},importOrder:-1}})];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:["iq.ibb","message.ibb"],element:"open",fields:{ack:{importer:(e,t)=>"message"!==(0,r.attribute)("stanza","iq").importer(e,t),exporter(e,t,n){(0,r.attribute)("stanza").exporter(e,t?"iq":"message",n)}},blockSize:(0,r.integerAttribute)("block-size"),sid:(0,r.attribute)("sid")},namespace:i.NS_IBB,type:"open",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"close",fields:{sid:(0,r.attribute)("sid")},namespace:i.NS_IBB,type:"close",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"data",fields:{data:(0,r.textBuffer)("base64"),seq:(0,r.integerAttribute)("seq"),sid:(0,r.attribute)("sid")},namespace:i.NS_IBB,type:"data",typeField:"action"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:[{path:"bookmarkStorage",impliedType:!0},{path:"iq.privateStorage.bookmarks",impliedType:!0},...(0,r.pubsubItemContentAliases)()],element:"storage",namespace:i.NS_BOOKMARKS,type:i.NS_BOOKMARKS,typeField:"itemType"},{aliases:[{path:"bookmarkStorage.rooms",multiple:!0}],element:"conference",fields:{autoJoin:(0,r.booleanAttribute)("autojoin"),jid:(0,r.JIDAttribute)("jid"),name:(0,r.attribute)("name"),nick:(0,r.childText)(null,"nick"),password:(0,r.childText)(null,"password")},namespace:i.NS_BOOKMARKS}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={element:"query",namespace:n(1).NS_PRIVATE,path:"iq.privateStorage"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_DATAFORM,"x",["iq.command.form"]),(0,r.extendStanzaError)({commandError:(0,r.childEnum)(i.NS_ADHOC_COMMANDS,["bad-action","bad-locale","bad-payload","bad-sessionid","malformed-action","session-expired"])}),{element:"command",fields:{action:(0,r.attribute)("action"),node:(0,r.attribute)("node"),sid:(0,r.attribute)("sessionid"),status:(0,r.attribute)("status")},namespace:i.NS_ADHOC_COMMANDS,path:"iq.command"},{element:"actions",fields:{complete:(0,r.childBoolean)(null,"complete"),execute:(0,r.attribute)("execute"),next:(0,r.childBoolean)(null,"next"),prev:(0,r.childBoolean)(null,"prev")},namespace:i.NS_ADHOC_COMMANDS,path:"iq.command.availableActions"},{aliases:[{path:"iq.command.notes",multiple:!0}],element:"note",fields:{type:(0,r.attribute)("type"),value:(0,r.text)()},namespace:i.NS_ADHOC_COMMANDS}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s="vcardTemp.records";function o(e,t){return{aliases:[{multiple:!0,path:s}],element:e,fields:{value:(0,r.text)()},namespace:i.NS_VCARD_TEMP,type:t,typeField:"type"}}const a=[{aliases:[{path:"iq.vcard"}],defaultType:i.NS_VCARD_TEMP,element:"vCard",fields:{fullName:(0,r.childText)(null,"FN")},namespace:i.NS_VCARD_TEMP,path:"vcardTemp",type:i.NS_VCARD_TEMP,typeField:"format"},{element:"N",fields:{additional:{...(0,r.childText)(null,"MIDDLE"),order:3},family:{...(0,r.childText)(null,"FAMILY"),order:1},given:{...(0,r.childText)(null,"GIVEN"),order:2},prefix:{...(0,r.childText)(null,"PREFIX"),order:4},suffix:{...(0,r.childText)(null,"SUFFIX"),order:5}},namespace:i.NS_VCARD_TEMP,path:"vcardTemp.name"},o("NICKNAME","nickname"),o("BDAY","birthday"),o("JABBERID","jid"),o("TZ","timezone"),o("TITLE","title"),o("ROLE","role"),o("URL","url"),o("NOTE","note"),o("SORT-STRING","sort"),o("UID","uid"),o("REV","revision"),o("PRODID","productId"),o("DESC","description"),{aliases:[{multiple:!0,path:s}],element:"EMAIL",fields:{preferred:(0,r.childBoolean)(null,"PREF"),types:(0,r.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["internet","INTERNET"]]),value:(0,r.childText)(null,"USERID")},namespace:i.NS_VCARD_TEMP,type:"email"},{aliases:[{path:s,multiple:!0}],element:"ORG",fields:{units:{...(0,r.multipleChildText)(null,"ORGUNIT"),order:2},value:{...(0,r.childText)(null,"ORGNAME"),order:1}},namespace:i.NS_VCARD_TEMP,type:"organization",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"ADR",fields:{city:(0,r.childText)(null,"LOCALITY"),code:(0,r.childText)(null,"PCODE"),country:(0,r.childText)(null,"CTRY"),pobox:(0,r.childText)(null,"POBOX"),preferred:(0,r.childBoolean)(null,"PREF"),region:(0,r.childText)(null,"REGION"),street:(0,r.childText)(null,"STREET"),street2:(0,r.childText)(null,"EXTADD"),types:(0,r.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["domestic","DOM"],["international","INTL"],["postal","POSTAL"],["parcel","PARCEL"]])},namespace:i.NS_VCARD_TEMP,type:"address",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"LABEL",fields:{lines:(0,r.multipleChildText)(null,"LINE"),preferred:(0,r.childBoolean)(null,"PREF"),types:(0,r.multipleChildEnum)(null,[["home","HOME"],["work","WORK"]])},namespace:i.NS_VCARD_TEMP,type:"addressLabel",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"TEL",fields:{preferred:(0,r.childBoolean)(null,"PREF"),types:(0,r.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["cell","CELL"],["fax","FAX"],["voice","VOICE"],["msg","MSG"]]),value:(0,r.childText)(null,"NUMBER","",!0)},namespace:i.NS_VCARD_TEMP,type:"tel",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"PHOTO",fields:{data:(0,r.childText)(null,"BINVAL"),mediaType:(0,r.childText)(null,"TYPE"),url:(0,r.childText)(null,"EXTVAL")},namespace:i.NS_VCARD_TEMP,type:"photo",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"LOGO",fields:{data:(0,r.childText)(null,"BINVAL"),mediaType:(0,r.childText)(null,"TYPE"),url:(0,r.childText)(null,"EXTVAL")},namespace:i.NS_VCARD_TEMP,type:"logo",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"CATEGORIES",fields:{value:(0,r.multipleChildText)(null,"KEYWORD")},namespace:i.NS_VCARD_TEMP,type:"categories",typeField:"type"}];t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_DATAFORM,"x",["iq.search.form"]),(0,r.addAlias)(i.NS_RSM,"set",["iq.search.paging"]),{element:"query",fields:{email:(0,r.childText)(null,"email"),familyName:(0,r.childText)(null,"last"),givenName:(0,r.childText)(null,"first"),instructions:(0,r.childText)(null,"instructions"),nick:(0,r.childText)(null,"nick")},namespace:i.NS_SEARCH,path:"iq.search"},{aliases:[{path:"iq.search.items",multiple:!0}],element:"item",fields:{email:(0,r.childText)(null,"email"),familyName:(0,r.childText)(null,"last"),givenName:(0,r.childText)(null,"first"),jid:(0,r.JIDAttribute)("jid"),nick:(0,r.childText)(null,"nick")},namespace:i.NS_SEARCH}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:["iq.pubsub.paging"],element:"set",fields:{after:(0,r.childText)(null,"after"),before:(0,r.childText)(null,"before"),count:(0,r.childInteger)(null,"count"),first:(0,r.childText)(null,"first"),firstIndex:(0,r.childIntegerAttribute)(null,"first","index"),index:(0,r.childInteger)(null,"index"),last:(0,r.childText)(null,"last"),max:(0,r.childInteger)(null,"max")},namespace:i.NS_RSM,path:"paging"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o={configurable:(0,i.childBoolean)(null,"subscribe-options"),configurationRequired:(0,i.deepChildBoolean)([{namespace:null,element:"subscribe-options"},{namespace:null,element:"required"}]),jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node"),state:(0,i.attribute)("subscription"),subid:(0,i.attribute)("subid")},a={node:(0,i.attribute)("node")},c=[{aliases:["pubsub","iq.pubsub","message.pubsub"],childrenExportOrder:{configure:0,create:100,publish:100,subscribe:100,subscriptionOptions:0},defaultType:"user",element:"pubsub",fields:{publishOptions:(0,i.splicePath)(null,"publish-options","dataform")},namespace:s.NS_PUBSUB,type:"user",typeField:"context"},{aliases:["pubsub","iq.pubsub","message.pubsub"],defaultType:"user",element:"pubsub",fields:{purge:(0,i.childAttribute)(null,"purge","node")},namespace:s.NS_PUBSUB_OWNER,type:"owner",typeField:"context"},(0,i.addAlias)(s.NS_DATAFORM,"x",["iq.pubsub.configure.form","iq.pubsub.defaultConfiguration.form","iq.pubsub.defaultSubscriptionOptions.form","iq.pubsub.subscriptionOptions.form","message.pubsub.configuration.form"]),(0,i.addAlias)(s.NS_RSM,"set",["iq.pubsub.fetch.paging"]),(0,i.extendStanzaError)({pubsubError:(0,i.childEnum)(s.NS_PUBSUB_ERRORS,Object.values(r.PubsubErrorCondition)),pubsubUnsupportedFeature:(0,i.childAttribute)(s.NS_PUBSUB_ERRORS,"unsupported","feature")}),{element:"subscribe",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.subscribe"},{element:"unsubscribe",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node"),subid:(0,i.attribute)("subid")},namespace:s.NS_PUBSUB,path:"iq.pubsub.unsubscribe"},{element:"options",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node"),subid:(0,i.attribute)("subid")},namespace:s.NS_PUBSUB,path:"iq.pubsub.subscriptionOptions"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"user",impliedType:!0}],element:"subscriptions",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB,type:"user"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"owner",impliedType:!0}],element:"subscriptions",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.subscription",selector:"owner"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB},{aliases:[{path:"iq.pubsub.subscription",selector:"user"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"user"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.affiliations",selector:"user",impliedType:!0},{path:"message.pubsub.affiliations",selector:"user",impliedType:!0}],element:"affiliations",fields:a,namespace:s.NS_PUBSUB,type:"user"},{aliases:[{path:"iq.pubsub.affiliations",selector:"owner",impliedType:!0}],element:"affiliations",fields:a,namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"user"},{impliedType:!0,multiple:!0,path:"message.pubsub.affiliations.items",selector:"user"}],element:"affiliation",fields:{affiliation:(0,i.attribute)("affiliation"),jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"owner"}],element:"affiliation",fields:{affiliation:(0,i.attribute)("affiliation"),jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB_OWNER,type:"owner"},{element:"create",fields:a,namespace:s.NS_PUBSUB,path:"iq.pubsub.create"},{aliases:[{path:"iq.pubsub.destroy",selector:"owner"}],element:"delete",fields:{node:(0,i.attribute)("node"),redirect:(0,i.childAttribute)(null,"redirect","uri")},namespace:s.NS_PUBSUB_OWNER},{aliases:[{path:"iq.pubsub.configure",selector:"owner",impliedType:!0}],element:"configure",fields:a,namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.configure",selector:"user",impliedType:!0}],element:"configure",fields:a,namespace:s.NS_PUBSUB,type:"user"},{element:"default",fields:{node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.defaultSubscriptionOptions"},{element:"default",fields:{},namespace:s.NS_PUBSUB_OWNER,path:"iq.pubsub.defaultConfiguration"},{element:"publish",fields:a,namespace:s.NS_PUBSUB,path:"iq.pubsub.publish"},{element:"retract",fields:{id:(0,i.childAttribute)(null,"item","id"),node:(0,i.attribute)("node"),notify:(0,i.booleanAttribute)("notify")},namespace:s.NS_PUBSUB,path:"iq.pubsub.retract"},{element:"items",fields:{max:(0,i.integerAttribute)("max_items"),node:(0,i.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.fetch"},{aliases:["pubsubitem","iq.pubsub.publish.item",{multiple:!0,path:"iq.pubsub.fetch.items"}],element:"item",fields:{id:(0,i.attribute)("id"),publisher:(0,i.JIDAttribute)("publisher")},namespace:s.NS_PUBSUB},{element:"event",fields:{eventType:(0,i.childEnum)(null,["purge","delete","subscription","configuration","items"])},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub",type:"event",typeField:"context"},{aliases:[{path:"message.pubsub.items.published",multiple:!0}],element:"item",fields:{id:(0,i.attribute)("id"),publisher:(0,i.JIDAttribute)("publisher")},namespace:s.NS_PUBSUB_EVENT,path:"pubsubeventitem"},{element:"purge",fields:a,namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.purge"},{element:"delete",fields:{node:(0,i.attribute)("node"),redirect:(0,i.childAttribute)(null,"redirect","uri")},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.delete"},{aliases:[{path:"message.pubsub.subscription",selector:"event",impliedType:!0}],element:"subscription",fields:{expires:(u="expiry",{importer(e){const t=e.getAttribute(u);return"presence"===t?t:t?new Date(t):void 0},exporter(e,t){let n;n="string"==typeof t?t:t.toISOString(),e.setAttribute(u,n)}}),jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node"),subid:(0,i.attribute)("subid"),type:(0,i.attribute)("subscription")},namespace:s.NS_PUBSUB_EVENT,type:"event"},{element:"configuration",fields:a,namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.configuration"},{element:"items",fields:{node:(0,i.attribute)("node"),retracted:(0,i.multipleChildAttribute)(null,"retract","id")},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.items"}];var u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"query",fields:{activate:(0,r.childText)(null,"activate"),address:(0,r.attribute)("dstaddr"),candidateUsed:(0,r.childJIDAttribute)(null,"streamhost-used","jid"),mode:(0,r.attribute)("mode","tcp"),sid:(0,r.attribute)("sid"),udpSuccess:(0,r.childAttribute)(null,"udpsuccess","dstaddr")},namespace:i.NS_SOCKS5,path:"iq.socks5"},{aliases:[{multiple:!0,path:"iq.socks5.candidates"}],element:"streamhost",fields:{host:(0,r.attribute)("host"),jid:(0,r.JIDAttribute)("jid"),port:(0,r.integerAttribute)("port"),uri:(0,r.attribute)("uri")},namespace:i.NS_SOCKS5}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:[{multiple:!0,path:"message.links"}],element:"x",fields:{description:(0,r.childText)(null,"desc"),url:(0,r.childText)(null,"url")},namespace:i.NS_OOB},{element:"query",fields:{description:(0,r.childText)(null,"desc"),url:(0,r.childText)(null,"url")},namespace:i.NS_OOB_TRANSFER,path:"iq.transferLink"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"html",fields:{alternateLanguageBodies:(0,r.childAlternateLanguageRawElement)(i.NS_XHTML,"body","xhtmlim"),body:(0,r.childLanguageRawElement)(i.NS_XHTML,"body","xhtmlim")},namespace:i.NS_XHTML_IM,path:"message.html"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendStreamFeatures)({inbandRegistration:(0,r.childBoolean)(i.NS_INBAND_REGISTRATION,"register")}),(0,r.addAlias)(i.NS_DATAFORM,"x",["iq.account.form"]),(0,r.addAlias)(i.NS_OOB,"x",["iq.account.registrationLink"]),{element:"query",fields:{address:(0,r.childText)(null,"address"),date:(0,r.childDate)(null,"date"),email:(0,r.childText)(null,"email"),familyName:(0,r.childText)(null,"last"),fullName:(0,r.childText)(null,"name"),givenName:(0,r.childText)(null,"first"),instructions:(0,r.childText)(null,"instructions"),key:(0,r.childText)(null,"key"),locality:(0,r.childText)(null,"city"),misc:(0,r.childText)(null,"misc"),nick:(0,r.childText)(null,"nick"),password:(0,r.childText)(null,"password"),phone:(0,r.childText)(null,"phone"),postalCode:(0,r.childText)(null,"zip"),region:(0,r.childText)(null,"state"),registered:(0,r.childBoolean)(null,"registered"),remove:(0,r.childBoolean)(null,"remove"),text:(0,r.childText)(null,"text"),uri:(0,r.childText)(null,"uri"),username:(0,r.childText)(null,"username")},namespace:i.NS_REGISTER,path:"iq.account"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:[{path:"message.geoloc",impliedType:!0},{path:"dataform.fields.geoloc",impliedType:!0},...(0,r.pubsubItemContentAliases)()],element:"geoloc",fields:{accuracy:(0,r.childFloat)(null,"accuracy"),altitude:(0,r.childFloat)(null,"alt"),altitudeAccuracy:(0,r.childFloat)(null,"altaccuracy"),area:(0,r.childText)(null,"area"),building:(0,r.childText)(null,"building"),country:(0,r.childText)(null,"country"),countryCode:(0,r.childText)(null,"countrycode"),datum:(0,r.childText)(null,"datum"),description:(0,r.childText)(null,"description"),error:(0,r.childFloat)(null,"error"),floor:(0,r.childText)(null,"floor"),heading:(0,r.childFloat)(null,"bearing"),lang:(0,r.languageAttribute)(),latitude:(0,r.childFloat)(null,"lat"),locality:(0,r.childText)(null,"locality"),longitude:(0,r.childFloat)(null,"lon"),postalCode:(0,r.childText)(null,"postalcode"),region:(0,r.childText)(null,"region"),room:(0,r.childText)(null,"room"),speed:(0,r.childFloat)(null,"speed"),street:(0,r.childText)(null,"street"),text:(0,r.childText)(null,"text"),timestamp:(0,r.childDate)(null,"timestamp"),tzo:(0,r.childTimezoneOffset)(null,"tzo"),uri:(0,r.childText)(null,"uri")},namespace:i.NS_GEOLOC,type:i.NS_GEOLOC};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:(0,r.pubsubItemContentAliases)(),element:"data",fields:{data:(0,r.textBuffer)("base64")},namespace:i.NS_AVATAR_DATA,path:"avatar",type:i.NS_AVATAR_DATA,typeField:"itemType"},{aliases:[{path:"avatar",impliedType:!0},...(0,r.pubsubItemContentAliases)()],element:"metadata",namespace:i.NS_AVATAR_METADATA,type:i.NS_AVATAR_METADATA,typeField:"itemType",childrenExportOrder:{versions:1,pointers:2}},{aliases:[{multiple:!0,path:"avatar.versions",selector:i.NS_AVATAR_METADATA}],element:"info",fields:{bytes:(0,r.integerAttribute)("bytes"),height:(0,r.integerAttribute)("height"),id:(0,r.attribute)("id"),mediaType:(0,r.attribute)("type"),uri:(0,r.attribute)("url"),width:(0,r.integerAttribute)("width")},namespace:i.NS_AVATAR_METADATA},{aliases:[{multiple:!0,path:"avatar.pointers",selector:i.NS_AVATAR_METADATA}],element:"pointer",fields:{bytes:(0,r.integerAttribute)("bytes"),height:(0,r.integerAttribute)("height"),id:(0,r.attribute)("id"),mediaType:(0,r.attribute)("type"),width:(0,r.integerAttribute)("width")},namespace:i.NS_AVATAR_METADATA}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1);t.default=(0,i.extendMessage)({chatState:(0,i.childEnum)(s.NS_CHAT_STATES,Object.values(r.ChatState))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"query",fields:{name:(0,r.childText)(null,"name"),os:(0,r.childText)(null,"os"),version:(0,r.childText)(null,"version")},namespace:i.NS_VERSION,path:"iq.softwareVersion"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o={aliases:[{path:"message.mood",impliedType:!0},...(0,i.pubsubItemContentAliases)()],element:"mood",fields:{alternateLanguageText:(0,i.childAlternateLanguageText)(null,"text"),text:(0,i.childText)(null,"text"),value:(0,i.childEnum)(null,r.USER_MOODS)},namespace:s.NS_MOOD,type:s.NS_MOOD};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o={aliases:[{path:"activity",impliedType:!0},...(0,i.pubsubItemContentAliases)()],element:"activity",fields:{activity:(0,i.childDoubleEnum)(null,r.USER_ACTIVITY_GENERAL,r.USER_ACTIVITY_SPECIFIC),alternateLanguageText:(0,i.childAlternateLanguageText)(null,"text"),text:(0,i.childText)(null,"text")},namespace:s.NS_ACTIVITY,type:s.NS_ACTIVITY};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"handshake",fields:{value:(0,r.textBuffer)("hex")},namespace:i.NS_COMPONENT,path:"handshake"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:[{path:"presence.legacyCapabilities",multiple:!0},{path:"features.legacyCapabilities",multiple:!0}],element:"c",fields:{algorithm:(0,r.attribute)("hash"),legacy:(0,r.staticValue)(!0),node:(0,r.attribute)("node"),value:(0,r.attribute)("ver")},namespace:i.NS_DISCO_LEGACY_CAPS};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:[{impliedType:!0,path:"tune"},...(0,r.pubsubItemContentAliases)()],element:"tune",fields:{artist:(0,r.childText)(null,"artist"),length:(0,r.childInteger)(null,"length"),rating:(0,r.childInteger)(null,"rating"),source:(0,r.childText)(null,"source"),title:(0,r.childText)(null,"title"),track:(0,r.childText)(null,"track"),uri:(0,r.childText)(null,"uri")},namespace:i.NS_TUNE,type:i.NS_TUNE};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=["dataformLayout",{multiple:!0,path:"dataformLayout.contents"},{multiple:!0,path:"dataform.layout.contents"}],o=[{aliases:[{multiple:!0,path:"dataform.layout"}],element:"page",fields:{label:(0,r.attribute)("label")},namespace:i.NS_DATAFORM_LAYOUT},{aliases:s,element:"section",fields:{label:(0,r.attribute)("label")},namespace:i.NS_DATAFORM_LAYOUT,type:"section",typeField:"type"},{aliases:s,element:"text",fields:{value:(0,r.text)()},namespace:i.NS_DATAFORM_LAYOUT,type:"text",typeField:"type"},{aliases:s,element:"fieldref",fields:{field:(0,r.attribute)("var")},namespace:i.NS_DATAFORM_LAYOUT,type:"fieldref",typeField:"type"},{aliases:s,element:"reportedref",namespace:i.NS_DATAFORM_LAYOUT,type:"reportedref",typeField:"type"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"body",fields:{acceptMediaTypes:(0,r.attribute)("accept"),ack:(0,r.integerAttribute)("ack"),authId:(0,r.attribute)("authid"),characterSets:(0,r.attribute)("charsets"),condition:(0,r.attribute)("condition"),from:(0,r.JIDAttribute)("from"),key:(0,r.attribute)("key"),lang:(0,r.languageAttribute)(),maxClientRequests:(0,r.integerAttribute)("requests"),maxHoldOpen:(0,r.integerAttribute)("hold"),maxInactivityTime:(0,r.integerAttribute)("inactivity"),maxSessionPause:(0,r.integerAttribute)("maxpause"),maxWaitTime:(0,r.integerAttribute)("wait"),mediaType:(0,r.attribute)("content"),minPollingInterval:(0,r.integerAttribute)("polling"),newKey:(0,r.attribute)("newkey"),pauseSession:(0,r.integerAttribute)("pause"),report:(0,r.integerAttribute)("report"),rid:(0,r.integerAttribute)("rid"),route:(0,r.attribute)("string"),seeOtherURI:(0,r.childText)(null,"uri"),sid:(0,r.attribute)("sid"),stream:(0,r.attribute)("stream"),time:(0,r.integerAttribute)("time"),to:(0,r.JIDAttribute)("to"),type:(0,r.attribute)("type"),version:(0,r.attribute)("ver"),xmppRestart:(0,r.namespacedBooleanAttribute)("xmpp",i.NS_BOSH_XMPP,"restart",void 0,{writeValue:e=>e?"true":"false"}),xmppRestartLogic:(0,r.namespacedBooleanAttribute)("xmpp",i.NS_BOSH_XMPP,"restartlogic",void 0,{writeValue:e=>e?"true":"false"}),xmppVersion:(0,r.namespacedAttribute)("xmpp",i.NS_BOSH_XMPP,"version")},namespace:i.NS_BOSH,path:"bosh"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({headers:(0,r.splicePath)(i.NS_SHIM,"headers","header",!0)}),(0,r.extendPresence)({headers:(0,r.splicePath)(i.NS_SHIM,"headers","header",!0)}),{element:"header",fields:{name:(0,r.attribute)("name"),value:(0,r.text)()},namespace:i.NS_SHIM,path:"header"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"compression",fields:{methods:(0,r.multipleChildText)(null,"method")},namespace:i.NS_COMPRESSION_FEATURE,path:"features.compression"},{element:"compress",fields:{method:(0,r.childText)(null,"method")},namespace:i.NS_COMPRESSION,path:"compression",type:"start",typeField:"type"},{aliases:["error.compressionError"],element:"failure",fields:{condition:(0,r.childEnum)(null,["unsupported-method","setup-failed","processing-failed"])},namespace:i.NS_COMPRESSION,path:"compression",type:"failure",typeField:"type"},{element:"compressed",namespace:i.NS_COMPRESSION,path:"compression",type:"success",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({rosterExchange:(0,r.splicePath)(i.NS_ROSTER_EXCHANGE,"x","rosterExchange",!0)}),(0,r.extendIQ)({rosterExchange:(0,r.splicePath)(i.NS_ROSTER_EXCHANGE,"x","rosterExchange",!0)}),{element:"item",fields:{action:(0,r.attribute)("action"),groups:(0,r.multipleChildText)(null,"group"),jid:(0,r.JIDAttribute)("jid"),name:(0,r.attribute)("name")},namespace:i.NS_ROSTER_EXCHANGE,path:"rosterExchange"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendPresence)({vcardAvatar:{importer(e){const t=(0,r.findAll)(e,i.NS_VCARD_TEMP_UPDATE,"x");if(!t.length)return;const n=(0,r.findAll)(t[0],i.NS_VCARD_TEMP_UPDATE,"photo");return!n.length||n[0].getText()},exporter(e,t){const n=(0,r.findOrCreate)(e,i.NS_VCARD_TEMP_UPDATE,"x");if(""===t)(0,r.findOrCreate)(n,i.NS_VCARD_TEMP_UPDATE,"photo");else{if(!0===t)return;if(t){(0,r.findOrCreate)(n,i.NS_VCARD_TEMP_UPDATE,"photo").children.push(t)}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({captcha:(0,r.splicePath)(i.NS_CAPTCHA,"captcha","dataform")}),(0,r.extendIQ)({captcha:(0,r.splicePath)(i.NS_CAPTCHA,"captcha","dataform")})];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1),o=[(0,i.extendStanzaError)({jingleError:(0,i.childEnum)(s.NS_JINGLE_ERRORS_1,Object.values(r.JingleErrorCondition))}),{element:"jingle",fields:{action:(0,i.attribute)("action"),initiator:(0,i.JIDAttribute)("initiator"),responder:(0,i.JIDAttribute)("responder"),sid:(0,i.attribute)("sid")},namespace:s.NS_JINGLE_1,path:"iq.jingle"},{aliases:[{multiple:!0,path:"iq.jingle.contents"}],element:"content",fields:{creator:(0,i.attribute)("creator"),disposition:(0,i.attribute)("disposition","session"),name:(0,i.attribute)("name"),senders:(0,i.attribute)("senders","both")},namespace:s.NS_JINGLE_1},{element:"reason",fields:{alternativeSession:(0,i.childText)(null,"alternative-session"),condition:(0,i.childEnum)(null,Object.values(r.JingleReasonCondition)),text:(0,i.childText)(null,"text")},namespace:s.NS_JINGLE_1,path:"iq.jingle.reason"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(1);function o(){return{importer(e,t){let n=(0,i.findAll)(e,s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb");const r=(0,i.attribute)("type").importer,o=(0,i.attribute)("subtype").importer,a=(0,i.attribute)("value").importer,c=[];for(const e of n){const n=r(e,t),i=o(e,t);c.push(i?{type:n,parameter:i}:{type:n})}n=(0,i.findAll)(e,s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int");for(const e of n){const n=a(e,t);c.push(n?{type:"trr-int",parameter:n}:{type:"trr-int"})}return c},exporter(e,t,n){const r=(0,i.attribute)("type").exporter,o=(0,i.attribute)("subtype").exporter,a=(0,i.attribute)("value").exporter;for(const c of t){let t;"trr-int"===c.type?(t=(0,i.createElement)(s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int",n.namespace,e),c.parameter&&a(t,c.parameter,n)):(t=(0,i.createElement)(s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb",n.namespace,e),r(t,c.type,n),c.parameter&&o(t,c.parameter,n)),e.appendChild(t)}}}}const a="iq.jingle.info",c=[{aliases:["iq.jingle.contents.application"],childrenExportOrder:{codecs:4,encryption:5,headerExtensions:6,sourceGroups:8,sources:7,streams:9},element:"description",fields:{media:(0,i.attribute)("media"),rtcpFeedback:{...o(),exportOrder:3},rtcpMux:{...(0,i.childBoolean)(null,"rtcp-mux"),exportOrder:1},rtcpReducedSize:{...(0,i.childBoolean)(null,"rtcp-reduced-size"),exportOrder:2},ssrc:(0,i.attribute)("ssrc")},namespace:s.NS_JINGLE_RTP_1,optionalNamespaces:{rtcpf:s.NS_JINGLE_RTP_RTCP_FB_0,rtph:s.NS_JINGLE_RTP_HDREXT_0},type:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.headerExtensions",selector:s.NS_JINGLE_RTP_1}],element:"rtp-hdrext",fields:{id:(0,i.integerAttribute)("id"),senders:(0,i.attribute)("senders"),uri:(0,i.attribute)("uri")},namespace:s.NS_JINGLE_RTP_HDREXT_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.codecs",selector:s.NS_JINGLE_RTP_1},"rtpcodec"],element:"payload-type",fields:{channels:(0,i.integerAttribute)("channels"),clockRate:(0,i.integerAttribute)("clockrate"),id:(0,i.attribute)("id"),maxptime:(0,i.integerAttribute)("maxptime"),name:(0,i.attribute)("name"),parameters:(0,i.parameterMap)(s.NS_JINGLE_RTP_1,"parameter","name","value"),ptime:(0,i.integerAttribute)("ptime"),rtcpFeedback:o()},namespace:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sources",selector:s.NS_JINGLE_RTP_1}],element:"source",fields:{parameters:(0,i.parameterMap)(s.NS_JINGLE_RTP_SSMA_0,"parameter","name","value"),ssrc:(0,i.attribute)("ssrc")},namespace:s.NS_JINGLE_RTP_SSMA_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sourceGroups",selector:s.NS_JINGLE_RTP_1}],element:"ssrc-group",fields:{semantics:(0,i.attribute)("semantics"),sources:(0,i.multipleChildAttribute)(null,"source","ssrc")},namespace:s.NS_JINGLE_RTP_SSMA_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.streams",selector:s.NS_JINGLE_RTP_1}],element:"stream",fields:{id:(0,i.attribute)("id"),track:(0,i.attribute)("track")},namespace:s.NS_JINGLE_RTP_MSID_0},{aliases:[{path:"iq.jingle.contents.application.encryption",selector:s.NS_JINGLE_RTP_1}],element:"encryption",fields:{required:(0,i.booleanAttribute)("required")},namespace:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.encryption.sdes",selector:s.NS_JINGLE_RTP_1}],element:"crypto",fields:{cryptoSuite:(0,i.attribute)("crypto-suite"),keyParameters:(0,i.attribute)("key-params"),sessionParameters:(0,i.attribute)("session-params"),tag:(0,i.integerAttribute)("tag")},namespace:s.NS_JINGLE_RTP_1},{aliases:[{path:"iq.jingle.contents.application.encryption.zrtp",selector:s.NS_JINGLE_RTP_1}],element:"zrtp-hash",fields:{value:(0,i.textBuffer)("hex"),version:(0,i.attribute)("version")},namespace:s.NS_JINGLE_RTP_1},{element:"mute",fields:{creator:(0,i.attribute)("creator"),name:(0,i.attribute)("name")},namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_MUTE},{element:"unmute",fields:{creator:(0,i.attribute)("creator"),name:(0,i.attribute)("name")},namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_UNMUTE},{element:"hold",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_HOLD},{element:"unhold",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_UNHOLD},{element:"active",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_ACTIVE},{element:"ringing",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:r.JINGLE_INFO_RINGING}];t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({nick:(0,r.childText)(i.NS_NICK,"nick")}),(0,r.extendPresence)({nick:(0,r.childText)(i.NS_NICK,"nick")}),{aliases:(0,r.pubsubItemContentAliases)(),element:"nick",fields:{nick:(0,r.text)()},namespace:i.NS_NICK,type:i.NS_NICK}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=e=>[{element:"transport",fields:{gatheringComplete:(0,r.childBoolean)(null,"gathering-complete"),password:(0,r.attribute)("pwd"),usernameFragment:(0,r.attribute)("ufrag")},namespace:e,path:"iq.jingle.contents.transport",type:e,typeField:"transportType"},{aliases:[{impliedType:!0,path:"iq.jingle.contents.transport.remoteCandidate",selector:e}],element:"remote-candidate",fields:{component:(0,r.integerAttribute)("component"),ip:(0,r.attribute)("ip"),port:(0,r.integerAttribute)("port")},namespace:e,type:e,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:e}],element:"candidate",fields:{component:(0,r.integerAttribute)("component"),foundation:(0,r.attribute)("foundation"),generation:(0,r.integerAttribute)("generation"),id:(0,r.attribute)("id"),ip:(0,r.attribute)("ip"),network:(0,r.integerAttribute)("network"),port:(0,r.integerAttribute)("port"),priority:(0,r.integerAttribute)("priority"),protocol:(0,r.attribute)("protocol"),relatedAddress:(0,r.attribute)("rel-addr"),relatedPort:(0,r.attribute)("rel-port"),tcpType:(0,r.attribute)("tcptype"),type:(0,r.attribute)("type")},namespace:e,type:e,typeField:"transportType"}],o=[...s(i.NS_JINGLE_ICE_0),...s(i.NS_JINGLE_ICE_UDP_1)];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"transport",fields:{gatheringComplete:(0,r.childBoolean)(null,"gathering-complete"),password:(0,r.attribute)("pwd"),usernameFragment:(0,r.attribute)("ufrag")},namespace:i.NS_JINGLE_RAW_UDP_1,path:"iq.jingle.contents.transport",type:i.NS_JINGLE_RAW_UDP_1,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:i.NS_JINGLE_RAW_UDP_1}],element:"candidate",fields:{component:(0,r.integerAttribute)("component"),foundation:(0,r.attribute)("foundation"),generation:(0,r.integerAttribute)("generation"),id:(0,r.attribute)("id"),ip:(0,r.attribute)("ip"),port:(0,r.integerAttribute)("port"),type:(0,r.attribute)("type")},namespace:i.NS_JINGLE_RAW_UDP_1,type:i.NS_JINGLE_RAW_UDP_1,typeField:"transportType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"request",namespace:i.NS_RECEIPTS,path:"message.receipt",type:"request",typeField:"type"},{element:"received",fields:{id:(0,r.attribute)("id")},namespace:i.NS_RECEIPTS,path:"message.receipt",type:"received",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"invisible",fields:{probe:(0,r.booleanAttribute)("probe")},namespace:i.NS_INVISIBLE_0,path:"iq.visibility",type:"invisible",typeField:"type"},{element:"visible",namespace:i.NS_INVISIBLE_0,path:"iq.visibility",type:"visible"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendStanzaError)({blocked:(0,r.childBoolean)(i.NS_BLOCKING_ERRORS,"blocked")}),{element:"blocklist",fields:{jids:(0,r.multipleChildAttribute)(null,"item","jid")},namespace:i.NS_BLOCKING,path:"iq.blockList",type:"list",typeField:"action"},{element:"block",fields:{jids:(0,r.multipleChildAttribute)(null,"item","jid")},namespace:i.NS_BLOCKING,path:"iq.blockList",type:"block",typeField:"action"},{element:"unblock",fields:{jids:(0,r.multipleChildAttribute)(null,"item","jid")},namespace:i.NS_BLOCKING,path:"iq.blockList",type:"unblock",typeField:"action"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendStreamFeatures)({streamManagement:(0,r.childBoolean)(i.NS_SMACKS_3,"sm")}),{element:"a",fields:{handled:(0,r.integerAttribute)("h")},namespace:i.NS_SMACKS_3,path:"sm",type:"ack",typeField:"type"},{element:"r",namespace:i.NS_SMACKS_3,path:"sm",type:"request",typeField:"type"},{element:"enable",fields:{allowResumption:(0,r.booleanAttribute)("resume")},namespace:i.NS_SMACKS_3,path:"sm",type:"enable",typeField:"type"},{element:"enabled",fields:{id:(0,r.attribute)("id"),resume:(0,r.booleanAttribute)("resume")},namespace:i.NS_SMACKS_3,path:"sm",type:"enabled",typeField:"type"},{element:"resume",fields:{handled:(0,r.integerAttribute)("h"),previousSession:(0,r.attribute)("previd")},namespace:i.NS_SMACKS_3,path:"sm",type:"resume",typeField:"type"},{element:"resumed",fields:{handled:(0,r.integerAttribute)("h"),previousSession:(0,r.attribute)("previd")},namespace:i.NS_SMACKS_3,path:"sm",type:"resumed",typeField:"type"},{element:"failed",fields:{handled:(0,r.integerAttribute)("h")},namespace:i.NS_SMACKS_3,path:"sm",type:"failed",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendIQ)({ping:(0,r.childBoolean)(i.NS_PING,"ping")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"time",fields:{tzo:(0,r.childTimezoneOffset)(null,"tzo"),utc:(0,r.childDate)(null,"utc")},namespace:i.NS_TIME,path:"iq.time"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:["message.delay","presence.delay"],element:"delay",fields:{from:(0,r.JIDAttribute)("from"),reason:(0,r.text)(),timestamp:(0,r.dateAttribute)("stamp")},namespace:i.NS_DELAY};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={2:i.NS_DISCO_EXTERNAL_2,1:i.NS_DISCO_EXTERNAL_1},o=[];for(const[e,t]of Object.entries(s))o.push({aliases:["iq.externalServiceCredentials"],defaultType:"2",element:"credentials",fields:{expires:(0,r.childDateAttribute)(null,"service","expires"),host:(0,r.childAttribute)(null,"service","host"),name:(0,r.childAttribute)(null,"service","name"),password:(0,r.childAttribute)(null,"service","password"),port:(0,r.childIntegerAttribute)(null,"service","port"),restricted:(0,r.childBooleanAttribute)(null,"service","restricted"),transport:(0,r.childAttribute)(null,"service","transport"),type:(0,r.childAttribute)(null,"service","type"),username:(0,r.childAttribute)(null,"service","username")},namespace:t,type:e,typeField:"version"},{aliases:["iq.externalServices"],defaultType:"2",element:"services",fields:{type:(0,r.attribute)("type")},namespace:t,type:e,typeField:"version"},{aliases:[{path:"iq.externalServices.services",multiple:!0}],defaultType:"2",element:"service",fields:{expires:(0,r.dateAttribute)("expires"),host:(0,r.attribute)("host"),name:(0,r.attribute)("name"),password:(0,r.attribute)("password"),port:(0,r.integerAttribute)("port"),restricted:(0,r.booleanAttribute)("restricted"),transport:(0,r.attribute)("transport"),type:(0,r.attribute)("type"),username:(0,r.attribute)("username")},namespace:t,type:e,typeField:"version"});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"media",fields:{height:(0,r.integerAttribute)("height"),width:(0,r.integerAttribute)("width")},namespace:i.NS_DATAFORM_MEDIA,path:"dataform.fields.media"},{aliases:[{multiple:!0,path:"dataform.fields.media.sources"}],element:"uri",fields:{mediaType:(0,r.attribute)("type"),uri:(0,r.text)()},namespace:i.NS_DATAFORM_MEDIA}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendMessage)({requestingAttention:(0,r.childBoolean)(i.NS_ATTENTION_0,"attention")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:["iq.bits",{path:"message.bits",multiple:!0},{path:"presence.bits",multiple:!0},{path:"iq.jingle.bits",multiple:!0}],element:"data",fields:{cid:(0,r.attribute)("cid"),data:(0,r.textBuffer)("base64"),maxAge:(0,r.integerAttribute)("max-age"),mediaType:(0,r.attribute)("type")},namespace:i.NS_BOB};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);let s=[(0,r.addAlias)(i.NS_HASHES_2,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),(0,r.addAlias)(i.NS_HASHES_1,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),(0,r.addAlias)(i.NS_HASHES_2,"hash-used",[{path:"file.hashesUsed",multiple:!0}]),(0,r.addAlias)(i.NS_THUMBS_1,"thumbnail",[{path:"file.thumbnails",multiple:!0}])];for(const e of[i.NS_JINGLE_FILE_TRANSFER_4,i.NS_JINGLE_FILE_TRANSFER_5])s=s.concat([{aliases:["file",{impliedType:!0,path:"iq.jingle.contents.application.file",selector:e},{impliedType:!0,path:"iq.jingle.info.file",selector:`{${e}}checksum`}],defaultType:i.NS_JINGLE_FILE_TRANSFER_5,element:"file",fields:{date:(0,r.childDate)(null,"date"),description:(0,r.childText)(null,"desc"),mediaType:(0,r.childText)(null,"media-type"),name:(0,r.childText)(null,"name"),size:(0,r.childInteger)(null,"size")},namespace:e,type:e,typeField:"version"},{aliases:[{impliedType:!0,path:"file.range",selector:e}],defaultType:i.NS_JINGLE_FILE_TRANSFER_5,element:"range",fields:{length:(0,r.integerAttribute)("length"),offset:(0,r.integerAttribute)("offset",0)},namespace:e,type:e,typeField:"version"},{element:"description",namespace:e,path:"iq.jingle.contents.application",type:e,typeField:"applicationType"},{element:"received",fields:{creator:(0,r.attribute)("creator"),name:(0,r.attribute)("name")},namespace:e,path:"iq.jingle.info",type:`{${e}}received`,typeField:"infoType"},{element:"checksum",fields:{creator:(0,r.attribute)("creator"),name:(0,r.attribute)("name")},namespace:e,path:"iq.jingle.info",type:`{${e}}checksum`,typeField:"infoType"}]);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),i={element:"description",namespace:r.NS_JINGLE_XML_0,path:"iq.jingle.contents.application",type:r.NS_JINGLE_XML_0,typeField:"applicationType"};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"transport",fields:{activated:(0,r.childAttribute)(null,"activated","cid"),address:(0,r.attribute)("dstaddr"),candidateError:(0,r.childBoolean)(null,"candidate-error"),candidateUsed:(0,r.childAttribute)(null,"candidate-used","cid"),mode:(0,r.attribute)("mode","tcp"),proxyError:(0,r.childBoolean)(null,"proxy-error"),sid:(0,r.attribute)("sid")},namespace:i.NS_JINGLE_SOCKS5_1,path:"iq.jingle.contents.transport",type:i.NS_JINGLE_SOCKS5_1,typeField:"transportType"},{aliases:[{multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:i.NS_JINGLE_SOCKS5_1}],element:"candidate",fields:{cid:(0,r.attribute)("cid"),host:(0,r.attribute)("host"),jid:(0,r.JIDAttribute)("jid"),port:(0,r.integerAttribute)("port"),priority:(0,r.integerAttribute)("priority"),type:(0,r.attribute)("type"),uri:(0,r.attribute)("uri")},namespace:i.NS_JINGLE_SOCKS5_1}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"transport",fields:{ack:{importer:(e,t)=>"message"!==(0,r.attribute)("stanza","iq").importer(e,t),exporter(e,t,n){!1===t&&(0,r.attribute)("stanza").exporter(e,"message",n)}},blockSize:(0,r.integerAttribute)("block-size"),sid:(0,r.attribute)("sid")},namespace:i.NS_JINGLE_IBB_1,path:"iq.jingle.contents.transport",type:i.NS_JINGLE_IBB_1,typeField:"transportType"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_BOB,"data",[{path:"iq.jingle.bits",multiple:!0}]),{element:"thumbnail",fields:{height:(0,r.integerAttribute)("height"),mediaType:(0,r.attribute)("media-type"),uri:(0,r.attribute)("uri"),width:(0,r.integerAttribute)("width")},namespace:i.NS_THUMBS_1,path:"thumbnail"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_FORWARD_0,"forwarded",["message.carbon.forward"]),{element:"enable",namespace:i.NS_CARBONS_2,path:"iq.carbons",type:"enable",typeField:"action"},{element:"disable",namespace:i.NS_CARBONS_2,path:"iq.carbons",type:"disable",typeField:"action"},{element:"sent",namespace:i.NS_CARBONS_2,path:"message.carbon",type:"sent",typeField:"type"},{element:"received",namespace:i.NS_CARBONS_2,path:"message.carbon",type:"received",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(5),s=n(1),o=[...Object.values(i.StreamType).map(e=>(0,r.addAlias)(e,"message",["forward.message"])),...Object.values(i.StreamType).map(e=>(0,r.addAlias)(e,"presence",["forward.presence"])),...Object.values(i.StreamType).map(e=>(0,r.addAlias)(e,"iq",["forward.iq"])),(0,r.addAlias)(s.NS_DELAY,"delay",["forward.delay"]),{aliases:["message.forward"],element:"forwarded",namespace:s.NS_FORWARD_0,path:"forward"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{defaultType:"2",element:"hash",fields:{algorithm:(0,r.attribute)("algo"),value:(0,r.textBuffer)("base64"),version:(0,r.staticValue)("2")},namespace:i.NS_HASHES_2,path:"hash",type:"2",typeField:"version"},{element:"hash-used",fields:{algorithm:(0,r.attribute)("algo"),version:(0,r.staticValue)("2")},namespace:i.NS_HASHES_2,path:"hashUsed"},{element:"hash",fields:{algorithm:(0,r.attribute)("algo"),value:(0,r.textBuffer)("hex"),version:(0,r.staticValue)("1")},namespace:i.NS_HASHES_1,path:"hash",type:"1",typeField:"version"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{element:"rtt",fields:{event:(0,r.attribute)("event","edit"),id:(0,r.attribute)("id"),seq:(0,r.integerAttribute)("seq")},namespace:i.NS_RTT_0,path:"message.rtt"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"t",fields:{position:(0,r.integerAttribute)("p"),text:(0,r.text)()},namespace:i.NS_RTT_0,type:"insert",typeField:"type"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"e",fields:{length:(0,r.integerAttribute)("n",1),position:(0,r.integerAttribute)("p")},namespace:i.NS_RTT_0,type:"erase",typeField:"type"},{aliases:[{multiple:!0,path:"message.rtt.actions"}],element:"w",fields:{duration:(0,r.integerAttribute)("n",0)},namespace:i.NS_RTT_0,type:"wait",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendMessage)({replace:(0,r.childAttribute)(i.NS_CORRECTION_0,"replace","id")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={2:i.NS_MAM_2,1:i.NS_MAM_1},o=[(0,r.addAlias)(i.NS_DATAFORM,"x",["iq.archive.form"]),(0,r.addAlias)(i.NS_FORWARD_0,"forwarded",["message.archive.item"]),(0,r.addAlias)(i.NS_RSM,"set",["iq.archive.paging"])];for(const[e,t]of Object.entries(s))o.push({defaultType:"query",defaultVersion:"2",element:"query",fields:{node:(0,r.attribute)("node"),queryId:(0,r.attribute)("queryid")},namespace:t,path:"iq.archive",type:"query",typeField:"type",version:e,versionField:"version"},{element:"fin",fields:{complete:(0,r.booleanAttribute)("complete"),stable:(0,r.booleanAttribute)("stable")},namespace:t,path:"iq.archive",type:"result",version:e},{element:"prefs",fields:{default:(0,r.attribute)("default"),always:(0,r.deepMultipleChildText)([{namespace:null,element:"always"},{namespace:null,element:"jid"}]),never:(0,r.deepMultipleChildText)([{namespace:null,element:"never"},{namespace:null,element:"jid"}])},namespace:t,path:"iq.archive",type:"preferences",version:e},{element:"result",defaultType:"2",fields:{id:(0,r.attribute)("id"),queryId:(0,r.attribute)("queryid")},namespace:t,path:"message.archive",type:e,typeField:"version"});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendPresence)({hats:(0,r.splicePath)(i.NS_HATS_0,"hats","hat",!0)}),{element:"hat",fields:{id:(0,r.attribute)("name"),name:(0,r.attribute)("displayName")},namespace:i.NS_HATS_0,path:"hat"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendPresence)({idleSince:(0,r.childDate)(i.NS_IDLE_1,"since")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:[{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:i.NS_JINGLE_ICE_UDP_1},{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:i.NS_JINGLE_ICE_0},{multiple:!0,path:"iq.jingle.contents.application.encryption.dtls",selector:i.NS_JINGLE_RTP_1}],element:"fingerprint",fields:{algorithm:(0,r.attribute)("hash"),setup:(0,r.attribute)("setup"),value:(0,r.text)()},namespace:i.NS_JINGLE_DTLS_0};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s="message.marker",o=[{element:"markable",namespace:i.NS_CHAT_MARKERS_0,path:s,type:"markable",typeField:"type"},{element:"received",fields:{id:(0,r.attribute)("id")},namespace:i.NS_CHAT_MARKERS_0,path:s,type:"received"},{element:"displayed",fields:{id:(0,r.attribute)("id")},namespace:i.NS_CHAT_MARKERS_0,path:s,type:"displayed"},{element:"acknowledged",fields:{id:(0,r.attribute)("id")},namespace:i.NS_CHAT_MARKERS_0,path:s,type:"acknowledged"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1);t.default=(0,r.extendMessage)({processingHints:{importer(e){const t={};let n=!1;for(const r of e.children)if("string"!=typeof r&&r.getNamespace()===i.NS_HINTS)switch(r.getName()){case"no-copy":t.noCopy=!0,n=!0;break;case"no-permanent-store":t.noPermanentStore=!0,n=!0;break;case"no-store":t.noStore=!0,n=!0;break;case"store":t.store=!0,n=!0}return n?t:void 0},exporter(e,t,n){t.noCopy&&e.appendChild((0,r.createElement)(i.NS_HINTS,"no-copy",n.namespace,e)),t.noPermanentStore&&e.appendChild((0,r.createElement)(i.NS_HINTS,"no-permanent-store",n.namespace,e)),t.noStore&&e.appendChild((0,r.createElement)(i.NS_HINTS,"no-store",n.namespace,e)),t.store&&e.appendChild((0,r.createElement)(i.NS_HINTS,"store",n.namespace,e))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({json:(0,r.childJSON)(i.NS_JSON_0,"json")}),{aliases:(0,r.pubsubItemContentAliases)(),element:"json",fields:{json:(0,r.textJSON)()},namespace:i.NS_JSON_0,type:i.NS_JSON_0},{aliases:[{path:"message.jsonPayloads",multiple:!0}],element:"payload",fields:{type:(0,r.attribute)("datatype"),data:(0,r.childJSON)(i.NS_JSON_0,"json")},namespace:i.NS_JSON_MESSAGE_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:[{path:"iq.jingle.groups",multiple:!0}],element:"group",fields:{contents:(0,r.multipleChildAttribute)(null,"content","name"),semantics:(0,r.attribute)("semantics")},namespace:i.NS_JINGLE_GROUPING_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={aliases:[{path:"iq.jingle.contents.transport.sctp",selector:i.NS_JINGLE_ICE_UDP_1},{path:"iq.jingle.contents.transport.sctp",selector:i.NS_JINGLE_ICE_0}],element:"sctpmap",fields:{port:(0,r.integerAttribute)("number"),protocol:(0,r.attribute)("protocol"),streams:(0,r.attribute)("streams")},namespace:i.NS_JINGLE_DTLS_SCTP_1};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),i=[{element:"active",namespace:r.NS_CSI_0,path:"csi",type:"active",typeField:"state"},{element:"inactive",namespace:r.NS_CSI_0,path:"csi",type:"inactive",typeField:"state"}];t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.addAlias)(i.NS_DATAFORM,"x",["iq.push.form","pushNotification.form"]),{element:"enable",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:i.NS_PUSH_0,path:"iq.push",type:"enable",typeField:"action"},{element:"disable",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:i.NS_PUSH_0,path:"iq.push",type:"disable",typeField:"action"},{aliases:(0,r.pubsubItemContentAliases)(),element:"notification",namespace:i.NS_PUSH_0,path:"pushNotification",type:i.NS_PUSH_0,typeField:"itemType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendMessage)({originId:(0,r.childAttribute)(i.NS_SID_0,"origin-id","id")}),{aliases:[{path:"message.stanzaIds",multiple:!0}],element:"stanza-id",fields:{by:(0,r.JIDAttribute)("by"),id:(0,r.attribute)("id")},namespace:i.NS_SID_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[(0,r.extendStanzaError)({httpUploadError:(0,r.childEnum)(i.NS_HTTP_UPLOAD_0,["file-too-large","retry"]),httpUploadMaxFileSize:(0,r.deepChildInteger)([{namespace:i.NS_HTTP_UPLOAD_0,element:"file-too-large"},{namespace:i.NS_HTTP_UPLOAD_0,element:"max-file-size"}]),httpUploadRetry:(0,r.childDateAttribute)(i.NS_HTTP_UPLOAD_0,"retry","stamp")}),{element:"request",fields:{mediaType:(0,r.attribute)("content-type"),name:(0,r.attribute)("filename"),size:(0,r.integerAttribute)("size")},namespace:i.NS_HTTP_UPLOAD_0,path:"iq.httpUpload",type:"request",typeField:"type"},{element:"slot",fields:{download:(0,r.childAttribute)(null,"get","url")},namespace:i.NS_HTTP_UPLOAD_0,path:"iq.httpUpload",type:"slot"},{aliases:[{path:"iq.httpUpload.upload",selector:"slot"}],element:"put",fields:{url:(0,r.attribute)("url")},namespace:i.NS_HTTP_UPLOAD_0},{aliases:[{path:"iq.httpUpload.upload.headers",multiple:!0}],element:"header",fields:{name:(0,r.attribute)("name"),value:(0,r.text)()},namespace:i.NS_HTTP_UPLOAD_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s={element:"encryption",fields:{id:(0,r.attribute)("namespace"),name:(0,r.attribute)("name")},namespace:i.NS_EME_0,path:"message.encryptionMethod"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(1),s=[{aliases:["message.omemo"],element:"encrypted",fields:{payload:(0,r.childTextBuffer)(null,"payload","base64")},namespace:i.NS_OMEMO_AXOLOTL,path:"omemo"},{element:"header",fields:{iv:(0,r.childTextBuffer)(null,"iv","base64"),sid:(0,r.integerAttribute)("sid")},namespace:i.NS_OMEMO_AXOLOTL,path:"omemo.header"},{aliases:[{path:"omemo.header.keys",multiple:!0}],element:"key",fields:{preKey:(0,r.booleanAttribute)("prekey"),rid:(0,r.integerAttribute)("rid"),value:(0,r.textBuffer)("base64")},namespace:i.NS_OMEMO_AXOLOTL},{aliases:(0,r.pubsubItemContentAliases)(),element:"list",fields:{devices:(0,r.multipleChildIntegerAttribute)(null,"device","id")},namespace:i.NS_OMEMO_AXOLOTL,type:i.NS_OMEMO_AXOLOTL_DEVICELIST,typeField:"itemType"},{element:"preKeyPublic",fields:{id:(0,r.integerAttribute)("preKeyId"),value:(0,r.textBuffer)("base64")},namespace:i.NS_OMEMO_AXOLOTL,path:"omemoPreKey"},{element:"signedPreKeyPublic",fields:{id:(0,r.integerAttribute)("signedPreKeyId"),value:(0,r.textBuffer)("base64")},namespace:i.NS_OMEMO_AXOLOTL,path:"omemoDevice.signedPreKeyPublic"},{aliases:(0,r.pubsubItemContentAliases)(),element:"bundle",fields:{identityKey:(0,r.childTextBuffer)(null,"identityKey","base64"),preKeys:(0,r.splicePath)(null,"prekeys","omemoPreKey",!0),signedPreKeySignature:(0,r.childTextBuffer)(null,"signedPreKeySignature","base64")},namespace:i.NS_OMEMO_AXOLOTL,path:"omemoDevice",type:i.NS_OMEMO_AXOLOTL_BUNDLES,typeField:"itemType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e,t,n){super(),this.condition=e,this.channelId=t,this.stanzaInstanceId=n,this.name="SaslError"}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},i=n(40),s=n(17);t.a=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i.a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return Object(s.b)(o)}},function(e,t,n){n(205),n(206),e.exports=n(221)},function(e,t,n){!function(t){"use strict";for(var n=[null,0,{}],r=function(e,t){this.codepoint=e,this.feature=t},i={},s=[],o=0;o<=255;++o)s[o]=0;var a=[function(e,t,i){return t<60||13311<t&&t<42607?new r(t,n):e(t,i)},function(e,t,n){var r=i[t];return r||(r=e(t,n)).feature&&++s[t>>8&255]>10&&(i[t]=r),r},function(e,t,n){return n?e(t,n):new r(t,null)},function(e,t,n){var i;if(t<4352||4371<=t&&t<44032||55204<t)return e(t,n);if(4352<=t&&t<4371){var s={},o=21*(t-4352);for(i=0;i<21;++i)s[4449+i]=44032+28*(i+o);return new r(t,[,,s])}var a=t-44032,c=a%28,u=[];if(0!==c)u[0]=[44032+a-c,4519+c];else for(u[0]=[4352+Math.floor(a/588),4449+Math.floor(a%588/28)],u[2]={},i=1;i<28;++i)u[2][4519+i]=t+i;return new r(t,u)},function(e,t,i){var s=(r.udata[65280&t]||{})[t];return new r(t,s||n)}];r.fromCharCode=a.reduceRight((function(e,t){return function(n,r){return t(e,n,r)}}),null),r.isHighSurrogate=function(e){return e>=55296&&e<=56319},r.isLowSurrogate=function(e){return e>=56320&&e<=57343},r.prototype.prepFeature=function(){this.feature||(this.feature=r.fromCharCode(this.codepoint,!0).feature)},r.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},r.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},r.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},r.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},r.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},r.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?r.fromCharCode(t):null};var c=function(e){this.str=e,this.cursor=0};c.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return r.isHighSurrogate(t)&&this.cursor<this.str.length&&r.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),r.fromCharCode(t)}return this.str=null,null};var u=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};u.prototype.next=function(){if(0===this.resBuf.length){var e=this.it.next();if(!e)return null;this.resBuf=function e(t,n){var i=n.getDecomp();if(!i||t&&n.isCompatibility())return[n];for(var s=[],o=0;o<i.length;++o){var a=e(t,r.fromCharCode(i[o]));s=s.concat(a)}return s}(this.canonical,e)}return this.resBuf.shift()};var l=function(e){this.it=e,this.resBuf=[]};l.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var n=this.resBuf.length;if(0!==e)for(;n>0;--n){if(this.resBuf[n-1].getCanonicalClass()<=e)break}this.resBuf.splice(n,0,t)}while(0!==e);return this.resBuf.shift()};var d=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};d.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),n=e.getCanonicalClass();t&&(this.lastClass<n||0===this.lastClass)?this.procBuf[0]=t:(0===n&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=n,this.procBuf.push(e))}}return this.resBuf.shift()};var p=function(e,t){for(var n,r=function(e,t){switch(e){case"NFD":return new l(new u(new c(t),!0));case"NFKD":return new l(new u(new c(t),!1));case"NFC":return new d(new l(new u(new c(t),!0)));case"NFKC":return new d(new l(new u(new c(t),!1)))}throw e+" is invalid"}(e,t),i="";n=r.next();)i+=n.toString();return i};r.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195e3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64e3:{64e3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var h={nfc:function(e){return p("NFC",e)},nfd:function(e){return p("NFD",e)},nfkc:function(e){return p("NFKC",e)},nfkd:function(e){return p("NFKD",e)}};e.exports=h,h.shimApplied=!1,String.prototype.normalize||(Object.defineProperty(String.prototype,"normalize",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=""+this,t=void 0===arguments[0]?"NFC":arguments[0];if(null==this)throw new TypeError("Cannot call method on "+Object.prototype.toString.call(this));if("NFC"===t)return h.nfc(e);if("NFD"===t)return h.nfd(e);if("NFKC"===t)return h.nfkc(e);if("NFKD"===t)return h.nfkd(e);throw new RangeError("Invalid normalization form: "+t)}}),h.shimApplied=!0)}()},function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",(function(){return f})),n.d(t,"Request",(function(){return S})),n.d(t,"Response",(function(){return T})),n.d(t,"DOMException",(function(){return A})),n.d(t,"fetch",(function(){return E}));n(6);var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i="URLSearchParams"in r,s="Symbol"in r&&"iterator"in Symbol,o="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in r,c="ArrayBuffer"in r;if(c)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(y)}),this.text=function(){var e,t,n,r=m(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[d(e)]},f.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},f.prototype.set=function(e,t){this.map[d(e)]=p(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},s&&(f.prototype[Symbol.iterator]=f.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof S){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),_.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function T(e,t){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},v.call(S.prototype),v.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:0,statusText:""});return e.type="error",e};var I=[301,302,303,307,308];T.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new T(null,{status:t,headers:{location:e}})};var A=r.DOMException;try{new A}catch(e){(A=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),A.prototype.constructor=A}function E(e,t){return new Promise((function(n,i){var s=new S(e,t);if(s.signal&&s.signal.aborted)return i(new A("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new T(i,r))}),0)},a.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){i(new A("Aborted","AbortError"))}),0)},a.open(s.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&(o?a.responseType="blob":c&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof f?s.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,p(t.headers[e]))})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=f,r.Request=S,r.Response=T)},function(e,t,n){"use strict";var r,i=n(208),s=n(26),o=n(8),a=n(21),c=n(16),u=n(209),l=n(27),d=n(75),p=n(43).f,h=n(215),f=n(217),m=n(41),g=n(45),y=o.Int8Array,b=y&&y.prototype,v=o.Uint8ClampedArray,_=v&&v.prototype,S=y&&h(y),w=b&&h(b),T=Object.prototype,I=T.isPrototypeOf,A=m("toStringTag"),E=g("TYPED_ARRAY_TAG"),N=i&&!!f&&"Opera"!==u(o.opera),x=!1,C={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){return a(e)&&c(C,u(e))};for(r in C)o[r]||(N=!1);if((!N||"function"!=typeof S||S===Function.prototype)&&(S=function(){throw TypeError("Incorrect invocation")},N))for(r in C)o[r]&&f(o[r],S);if((!N||!w||w===T)&&(w=S.prototype,N))for(r in C)o[r]&&f(o[r].prototype,w);if(N&&h(_)!==w&&f(_,w),s&&!c(w,A))for(r in x=!0,p(w,A,{get:function(){return a(this)?this[E]:void 0}}),C)o[r]&&l(o[r],E,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:x&&E,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(f){if(I.call(S,e))return e}else for(var t in C)if(c(C,r)){var n=o[t];if(n&&(e===n||I.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(s){if(n)for(var r in C){var i=o[r];i&&c(i.prototype,e)&&delete i.prototype[e]}w[e]&&!n||d(w,e,n?t:N&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(s){if(f){if(n)for(r in C)(i=o[r])&&c(i,e)&&delete i[e];if(S[e]&&!n)return;try{return d(S,e,n?t:N&&y[e]||t)}catch(e){}}for(r in C)!(i=o[r])||i[e]&&!n||d(i,e,t)}},isView:function(e){var t=u(e);return"DataView"===t||c(C,t)},isTypedArray:R,TypedArray:S,TypedArrayPrototype:w}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var r=n(210),i=n(46),s=n(41)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r={};r[n(41)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t){e.exports=!1},function(e,t,n){var r=n(74);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r,i,s,o=n(214),a=n(8),c=n(21),u=n(27),l=n(16),d=n(77),p=n(78),h=a.WeakMap;if(o){var f=new h,m=f.get,g=f.has,y=f.set;r=function(e,t){return y.call(f,e,t),t},i=function(e){return m.call(f,e)||{}},s=function(e){return g.call(f,e)}}else{var b=d("state");p[b]=!0,r=function(e,t){return u(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},s=function(e){return l(e,b)}}e.exports={set:r,get:i,has:s,enforce:function(e){return s(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(8),i=n(76),s=r.WeakMap;e.exports="function"==typeof s&&/native code/.test(i(s))},function(e,t,n){var r=n(16),i=n(79),s=n(77),o=n(216),a=s("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r=n(15);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(44),i=n(218);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,s){return r(n),i(s),t?e.call(n,s):n.__proto__=s,n}}():void 0)},function(e,t,n){var r=n(21);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(220);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){var r=n(47);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){"use strict";n.r(t);var r=n(65),i=n(61);for(var s in i)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);var o=n(55);for(var s in o)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);var a=n(202);for(var s in a)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);var c=n(20);for(var s in c)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(s);var u=n(64);for(var s in u)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(s);var l=n(35);n.d(t,"HttpClient",(function(){return l.HttpClient}));var d=n(13);n.d(t,"StreamingClientError",(function(){return d.StreamingClientError})),n.d(t,"parseJwt",(function(){return d.parseJwt})),t.default=r.Client},function(e,t,n){t.RateLimiter=n(223),t.TokenBucket=n(82)},function(e,t,n){(function(t){var r=n(82),i=n(224),s=function(e,t,n){this.tokenBucket=new r(e,e,t,null),this.tokenBucket.content=e,this.curIntervalStart=i(),this.tokensThisInterval=0,this.fireImmediately=n};s.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(e,n){if(e>this.tokenBucket.bucketSize)return t.nextTick(n.bind(null,"Requested tokens "+e+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var r=this,s=i();if((s<this.curIntervalStart||s-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=s,this.tokensThisInterval=0),e>this.tokenBucket.tokensPerInterval-this.tokensThisInterval){if(this.fireImmediately)t.nextTick(n.bind(null,null,-1));else{var o=Math.ceil(this.curIntervalStart+this.tokenBucket.interval-s);setTimeout((function(){r.tokenBucket.removeTokens(e,a)}),o)}return!1}return this.tokenBucket.removeTokens(e,a);function a(t,i){if(t)return n(t,null);r.tokensThisInterval+=e,n(null,i)}},tryRemoveTokens:function(e){if(e>this.tokenBucket.bucketSize)return!1;var t=i();if((t<this.curIntervalStart||t-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=t,this.tokensThisInterval=0),e>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(e);return n&&(this.tokensThisInterval+=e),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},e.exports=s}).call(this,n(23))},function(e,t,n){(function(t){e.exports=function(){if(void 0!==t&&t.hrtime){var e=t.hrtime(),n=e[0],r=e[1];return 1e3*n+Math.floor(r/1e6)}return(new Date).getTime()}}).call(this,n(23))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};t.getSanitizedOptions=function(e){var t=r(r({},i),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(227),i=n(231);t.DelayFactory=function(e,t){var n=function(e){if(!e.delayFirstAttempt)return new r.SkipFirstDelay(e);return new i.AlwaysDelay(e)}(e);return n.setAttemptNumber(t),n}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.apply=function(){return s(this,void 0,void 0,(function(){return o(this,(function(t){return[2,!!this.isFirstAttempt||e.prototype.apply.call(this)]}))}))},Object.defineProperty(t.prototype,"isFirstAttempt",{get:function(){return 0===this.attempt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),t}(n(83).Delay);t.SkipFirstDelay=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(229),i=n(230);t.JitterFactory=function(e){switch(e.jitter){case"full":return r.fullJitter;case"none":default:return i.noJitter}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fullJitter=function(e){var t=Math.random()*e;return Math.round(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noJitter=function(e){return e}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(n(83).Delay);t.AlwaysDelay=s},function(e,t,n){(function(e){n(30);var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new s(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(252),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(12))},function(e,t,n){var r=n(8),i=n(84).f,s=n(27),o=n(75),a=n(42),c=n(236),u=n(245);e.exports=function(e,t){var n,l,d,p,h,f=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[f]||a(f,{}):(r[f]||{}).prototype)for(l in t){if(p=t[l],d=e.noTargetGet?(h=i(n,l))&&h.value:n[l],!u(m?l:f+(g?".":"#")+l,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&s(p,"sham",!0),o(n,l,p,e)}}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);t.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(15),i=n(46),s="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(16),i=n(237),s=n(84),o=n(43);e.exports=function(e,t){for(var n=i(t),a=o.f,c=s.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||a(e,l,c(t,l))}}},function(e,t,n){var r=n(49),i=n(239),s=n(244),o=n(44);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=s.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(8);e.exports=r},function(e,t,n){var r=n(240),i=n(243).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(16),i=n(48),s=n(241).indexOf,o=n(78);e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)!r(o,n)&&r(a,n)&&u.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~s(u,n)||u.push(n));return u}},function(e,t,n){var r=n(48),i=n(81),s=n(242),o=function(e){return function(t,n,o){var a,c=r(t),u=i(c.length),l=s(o,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(47),i=Math.max,s=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):s(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(15),i=/#|\.prototype\./,s=function(e,t){var n=a[o(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},o=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},function(e,t,n){var r,i,s,o=n(8),a=n(15),c=n(46),u=n(247),l=n(249),d=n(71),p=n(250),h=o.location,f=o.setImmediate,m=o.clearImmediate,g=o.process,y=o.MessageChannel,b=o.Dispatch,v=0,_={},S=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){S(e)}},T=function(e){S(e.data)},I=function(e){o.postMessage(e+"",h.protocol+"//"+h.host)};f&&m||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++v]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(v),v},m=function(e){delete _[e]},"process"==c(g)?r=function(e){g.nextTick(w(e))}:b&&b.now?r=function(e){b.now(w(e))}:y&&!p?(s=(i=new y).port2,i.port1.onmessage=T,r=u(s.postMessage,s,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||a(I)||"file:"===h.protocol?r="onreadystatechange"in d("script")?function(e){l.appendChild(d("script")).onreadystatechange=function(){l.removeChild(this),S(e)}}:function(e){setTimeout(w(e),0)}:(r=I,o.addEventListener("message",T,!1))),e.exports={set:f,clear:m}},function(e,t,n){var r=n(248);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(49);e.exports=r("document","documentElement")},function(e,t,n){var r=n(251);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(49);e.exports=r("navigator","userAgent")||""},function(e,t,n){(function(e,t){n(30),function(e,n){"use strict";if(!e.setImmediate){var r,i,s,o,a,c=1,u={},l=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){f(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){f(e.data)},r=function(e){s.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(f,0,e)}:(o="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(t){e.postMessage(o+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[c]=i,r(c),c++},p.clearImmediate=h}function h(e){delete u[e]}function f(e){if(l)setTimeout(f,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(12),n(23))},function(e,t,n){"use strict";(function(e){
|
|
23
23
|
/*!
|
|
24
24
|
* The buffer module from node.js, for the browser.
|
|
25
25
|
*
|
|
26
26
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
27
27
|
* @license MIT
|
|
28
28
|
*/
|
|
29
|
-
n(6);var r=n(254),i=n(255),s=n(256);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=a(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):p(e,t);if("Buffer"===t.type&&s(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(l(t),e=a(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var s,o=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(s=n;s<a;s++)if(u(e,s)===u(t,-1===l?0:s-l)){if(-1===l&&(l=s),s-l+1===c)return l*o}else-1!==l&&(s-=s-l),l=-1}else for(n+c>a&&(n=a-c),s=n;s>=0;s--){for(var d=!0,p=0;p<c;p++)if(u(e,s+p)!==u(t,p)){d=!1;break}if(d)return s}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var o=0;o<r;++o){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[n+o]=a}return o}function _(e,t,n,r){return J(q(t,e.length-n),e,n,r)}function S(e,t,n,r){return J(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return S(e,t,n,r)}function T(e,t,n,r){return J(U(t),e,n,r)}function I(e,t,n,r){return J(function(e,t){for(var n,r,i,s=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function N(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var s,o,a,c,u=e[i],l=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(s=e[i+1]))&&(c=(31&u)<<6|63&s)>127&&(l=c);break;case 3:s=e[i+1],o=e[i+2],128==(192&s)&&128==(192&o)&&(c=(15&u)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:s=e[i+1],o=e[i+2],a=e[i+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(c=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!s(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?N(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var s=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),a=Math.min(s,o),u=this.slice(r,i),l=e.slice(t,n),d=0;d<a;++d)if(u[d]!==l[d]){s=u[d],o=l[d];break}return s<o?-1:o<s?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function R(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",s=t;s<n;++s)i+=F(e[s]);return i}function C(e,t,n){for(var r=e.slice(t,n),i="",s=0;s<r.length;s+=2)i+=String.fromCharCode(r[s]+256*r[s+1]);return i}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,s){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function k(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-n,2);i<s;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-n,4);i<s;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function M(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,s){return s||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,s){return s||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var s=0;s<i;++s)n[s]=this[s+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,s=0;++s<t&&(i*=256);)r+=this[e+s]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,s=0;++s<t&&(i*=256);)r+=this[e+s]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,s=this[e+--r];r>0&&(i*=256);)s+=this[e+--r]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},c.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,s=0;for(this[t]=255&e;++s<n&&(i*=256);)this[t+s]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var s=0,o=1,a=0;for(this[t]=255&e;++s<n&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var s=n-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,s=r-n;if(this===e&&n<t&&t<r)for(i=s-1;i>=0;--i)e[i+t]=this[i+n];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),t);return s},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var s;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s<n;++s)this[s]=e;else{var o=c.isBuffer(e)?e:q(new c(e,r).toString()),a=o.length;for(s=0;s<n-t;++s)this[s+t]=o[s%a]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var r=e.length,i=null,s=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(12))},function(e,t,n){"use strict";n(6),t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),o=r[0],a=r[1],c=new s(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),l=0,d=a>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(l(e,o,o+16383>a?a:o+16383));1===i?(t=e[n-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return s.join("")};for(var r=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a<c;++a)r[a]=o[a],i[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,s,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[(s=i)>>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
|
|
29
|
+
n(6);var r=n(254),i=n(255),s=n(256);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=a(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):p(e,t);if("Buffer"===t.type&&s(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(l(t),e=a(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var s,o=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(s=n;s<a;s++)if(u(e,s)===u(t,-1===l?0:s-l)){if(-1===l&&(l=s),s-l+1===c)return l*o}else-1!==l&&(s-=s-l),l=-1}else for(n+c>a&&(n=a-c),s=n;s>=0;s--){for(var d=!0,p=0;p<c;p++)if(u(e,s+p)!==u(t,p)){d=!1;break}if(d)return s}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var o=0;o<r;++o){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[n+o]=a}return o}function _(e,t,n,r){return J(q(t,e.length-n),e,n,r)}function S(e,t,n,r){return J(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return S(e,t,n,r)}function T(e,t,n,r){return J(U(t),e,n,r)}function I(e,t,n,r){return J(function(e,t){for(var n,r,i,s=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var s,o,a,c,u=e[i],l=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(s=e[i+1]))&&(c=(31&u)<<6|63&s)>127&&(l=c);break;case 3:s=e[i+1],o=e[i+2],128==(192&s)&&128==(192&o)&&(c=(15&u)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:s=e[i+1],o=e[i+2],a=e[i+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(c=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!s(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var s=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),a=Math.min(s,o),u=this.slice(r,i),l=e.slice(t,n),d=0;d<a;++d)if(u[d]!==l[d]){s=u[d],o=l[d];break}return s<o?-1:o<s?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function N(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function C(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",s=t;s<n;++s)i+=F(e[s]);return i}function R(e,t,n){for(var r=e.slice(t,n),i="",s=0;s<r.length;s+=2)i+=String.fromCharCode(r[s]+256*r[s+1]);return i}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,s){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function k(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-n,2);i<s;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-n,4);i<s;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function M(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,s){return s||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,s){return s||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var s=0;s<i;++s)n[s]=this[s+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,s=0;++s<t&&(i*=256);)r+=this[e+s]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,s=0;++s<t&&(i*=256);)r+=this[e+s]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,s=this[e+--r];r>0&&(i*=256);)s+=this[e+--r]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},c.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,s=0;for(this[t]=255&e;++s<n&&(i*=256);)this[t+s]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var s=0,o=1,a=0;for(this[t]=255&e;++s<n&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var s=n-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,s=r-n;if(this===e&&n<t&&t<r)for(i=s-1;i>=0;--i)e[i+t]=this[i+n];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),t);return s},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var s;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s<n;++s)this[s]=e;else{var o=c.isBuffer(e)?e:q(new c(e,r).toString()),a=o.length;for(s=0;s<n-t;++s)this[s+t]=o[s%a]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var r=e.length,i=null,s=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(12))},function(e,t,n){"use strict";n(6),t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),o=r[0],a=r[1],c=new s(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),l=0,d=a>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(l(e,o,o+16383>a?a:o+16383));1===i?(t=e[n-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return s.join("")};for(var r=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a<c;++a)r[a]=o[a],i[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,s,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[(s=i)>>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
|
|
30
30
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
31
|
-
t.read=function(e,t,n,r,i){var s,o,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,s=h&(1<<-l)-1,h>>=-l,l+=a;l>0;s=256*s+e[t+d],d+=p,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=r;l>0;o=256*o+e[t+d],d+=p,l-=8);if(0===s)s=1-u;else{if(s===c)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),s-=u}return(h?-1:1)*o*Math.pow(2,s-r)},t.write=function(e,t,n,r,i,s){var o,a,c,u=8*s-i-1,l=(1<<u)-1,d=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:s-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=l?(a=0,o=l):o+d>=1?(a=(t*c-1)*Math.pow(2,i),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&a,h+=f,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;e[n+h]=255&o,h+=f,o/=256,u-=8);e[n+h-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(e){e||Object.defineProperty(window,"crypto",{value:window.crypto||window.msCrypto,writable:!1,configurable:!1})}).call(this,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Notifications=void 0;const r=n(259),i=n(16);function s(e,t){return[...e,...t].filter((e,t,n)=>n.indexOf(e)===t)}t.Notifications=class{constructor(e){this.subscriptions={},this.bulkSubscriptions={},this.topicPriorities={},this.client=e,e.on("pubsub:event",this.pubsubEvent.bind(this)),e.on("connected",this.subscriptionsKeepAlive.bind(this)),this.debouncedResubscribe=r(this.resubscribe.bind(this),100)}get pubsubHost(){try{return"notifications."+this.client.config.apiHost.replace(/http(s?):\/\//,"")}catch(e){return"notifications.mypurecloud.com"}}handleStanzaInstanceChange(e){const t=this.stanzaInstance&&this.stanzaInstance.id!==e.id&&this.stanzaInstance.channelId!==e.channelId;this.stanzaInstance=e,t&&(this.client.logger.info("resubscribing due to hard reconnect"),this.debouncedResubscribe())}topicHandlers(e){return this.subscriptions[e]||(this.subscriptions[e]=[]),this.subscriptions[e]}pubsubEvent(e){let{pubsub:t}=e,n=t.items.node;n.includes("no_longer_subscribed")?n="no_longer_subscribed":n.includes("duplicate_id")&&(n="duplicate_id");const r=t.items.published[0].content.json,i=this.topicHandlers(n);this.client.emit("notify",{topic:n,data:r}),this.client.emit("notify:"+n,r),i.forEach(e=>{e(r)})}async xmppSubscribe(e){if(0!==this.topicHandlers(e).length||this.bulkSubscriptions[e])return Promise.resolve();const t=()=>this.stanzaInstance.subscribeToNode(this.pubsubHost,e);return this.client.connected?t():new Promise((e,n)=>{this.client.once("connected",()=>t().then(e,n))})}xmppUnsubscribe(e){if(0!==this.topicHandlers(e).length||this.bulkSubscriptions[e])return Promise.resolve();const t=()=>this.stanzaInstance.unsubscribeFromNode(this.pubsubHost,e);return this.client.connected?t():new Promise((e,n)=>{this.client.once("connected",()=>t().then(e,n))})}mapCombineTopics(e){const t={},n=[],r=[];e.forEach(e=>{e.includes("?")?n.push({id:e}):r.push(e)}),r.map(e=>{const t=e.split("."),n=t.splice(t.length-1);return{prefix:t.join("."),postfix:n}}).forEach(e=>{t[e.prefix]?t[e.prefix].push(e.postfix):t[e.prefix]=[e.postfix]});let i=[];const s=(e,t)=>{const n=`${e}${1===t.length?".":"?"}${t.join("&")}`;n.length<200?i.push({id:n}):1===t.length?this.client.logger.error("Refusing to attempt topic with length > 200",n):(s(e,t.slice(0,t.length/2)),s(e,t.slice(t.length/2)))};Object.keys(t).forEach(e=>{const n=t[e];s(e,n)});const o=i.concat(n);return this.truncateTopicList(this.prioritizeTopicList(o))}prioritizeTopicList(e){return e.sort((e,t)=>this.getTopicPriority(t.id)-this.getTopicPriority(e.id)),e}getTopicPriority(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{prefix:n,postfixes:r}=this.getTopicParts(e),i=this.topicPriorities[n],s=i&&Object.keys(i).filter(e=>r.includes(e)).map(e=>i[e]),o=s&&s.length&&s.reduce((e,t)=>t>e?t:e);return t?o||0:o}truncateTopicList(e){const t=e.slice(0,1e3);if(e.length>1e3){let t=e.slice(1e3);if(t.length>20){const e=t.length-20;t=t.slice(20),t.push(`...and ${e} more`)}this.client.logger.warn("Too many topics to subscribe to; truncating extra topics",{droppedTopics:t})}return t}makeBulkSubscribeRequest(e,t){const n={method:t.replace?"put":"post",host:this.client.config.apiHost,authToken:this.client.config.authToken,data:JSON.stringify(this.mapCombineTopics(e)),logger:this.client.logger},r=this.stanzaInstance.channelId;return this.client.http.requestApi(`notifications/channels/${r}/subscriptions`,n)}createSubscription(e,t){i.splitIntoIndividualTopics(e).forEach(e=>{let n=this.topicHandlers(e);n.includes(t)||n.push(t)})}removeSubscription(e,t){i.splitIntoIndividualTopics(e).forEach(e=>{let n=this.topicHandlers(e),r=n.indexOf(t);r>-1&&n.splice(r,1),n.length||delete this.subscriptions[e]})}removeTopicPriority(e){if(this.getTopicPriority(e,!1)){const{prefix:t,postfixes:n}=this.getTopicParts(e);n.forEach(e=>{delete this.topicPriorities[t][e]}),Object.keys(this.topicPriorities[t]).length||delete this.topicPriorities[t]}}getActiveIndividualTopics(){const e=[];return Object.keys(this.subscriptions).forEach(t=>{if("streaming-subscriptions-expiring"===t)return;this.topicHandlers(t).length>0&&e.push(t)}),e}resubscribe(){const e=Object.keys(this.bulkSubscriptions);return e.length+this.getActiveIndividualTopics().length===0?Promise.resolve():this.bulkSubscribe(e,{replace:!0})}subscriptionsKeepAlive(){const e="streaming-subscriptions-expiring";0===this.topicHandlers(e).length&&this.createSubscription(e,()=>{this.client.logger.info(e+" - Triggering resubscribe.",{channelId:this.client.config.channelId}),this.debouncedResubscribe().catch(e=>{const t="Error resubscribing to topics";this.client.logger.error(t,e),this.client.emit("pubsub:error",{msg:t,err:e})})})}getTopicParts(e){const t=e.includes("?"),n=t?"?":".",r=e.split(n),i=t?r[1]:r.splice(r.length-1),s=t?r[0]:r.join(".");let o=[];return o=t?i.split("&"):i,{prefix:s,postfixes:o}}setTopicPriorities(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(e).forEach(t=>{const n=this.getTopicParts(t),r=this.topicPriorities[n.prefix],i=e[t];if(r)n.postfixes.forEach(e=>{const t=r[e];(t&&t<i||!t)&&(r[e]=i)});else{const e=n.postfixes.reduce((e,t)=>(e[t]=i,e),{});this.topicPriorities[n.prefix]=e}})}subscribe(e,t,n,r){let i;return r&&this.setTopicPriorities({[e]:r}),i=n?this.xmppSubscribe(e):this.debouncedResubscribe(),t?this.createSubscription(e,t):this.bulkSubscriptions[e]=!0,i}unsubscribe(e,t,n){return t?this.removeSubscription(e,t):(delete this.bulkSubscriptions[e],delete this.subscriptions[e]),this.removeTopicPriority(e),n?this.xmppUnsubscribe(e):this.debouncedResubscribe()}async bulkSubscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{replace:!1,force:!1},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.setTopicPriorities(n);let r=s(e,[]);t.replace&&!t.force?r=s(r,this.getActiveIndividualTopics()):t.force&&(this.subscriptions={}),await this.makeBulkSubscribeRequest(r,t),t.replace&&(this.bulkSubscriptions={}),e.forEach(e=>{this.bulkSubscriptions[e]=!0})}get expose(){return{subscribe:this.subscribe.bind(this),unsubscribe:this.unsubscribe.bind(this),bulkSubscribe:this.bulkSubscribe.bind(this)}}}},function(e,t,n){"use strict";function r(e){return"function"==typeof e?e():e}function i(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=void 0,o=void 0,a=void 0,c=[];return function(){var l=r(t),d=(new Date).getTime(),p=!s||d-s>l;s=d;for(var h=arguments.length,f=Array(h),m=0;m<h;m++)f[m]=arguments[m];if(p&&n.leading)return n.accumulate?Promise.resolve(e.call(this,[f])).then((function(e){return e[0]})):Promise.resolve(e.call.apply(e,[this].concat(f)));if(o?clearTimeout(a):o=i(),c.push(f),a=setTimeout(u.bind(this),l),n.accumulate){var g=c.length-1;return o.promise.then((function(e){return e[g]}))}return o.promise};function u(){var t=o;clearTimeout(a),Promise.resolve(n.accumulate?e.call(this,c):e.apply(this,c[c.length-1])).then(t.resolve,t.reject),c=[],o=null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebrtcExtension=void 0;const r=n(21),i=n(7),s=n(10),o=r.__importDefault(n(263)),a=n(5),c=n(24),u=r.__importDefault(n(266)),l=n(267),d=n(268),p=n(16),h=n(65),f=n(282),m=n(29),g=n(55),y=n(61),b=n(35),v="requestIncomingRtcSession",_="cancelIncomingRtcSession",S="handledIncomingRtcSession",w="incomingRtcSession",T="outgoingRtcSession",I="rtcSessionError";class A extends i.EventEmitter{constructor(e,t){super(),this.ignoredSessions=new o.default({max:10,maxAge:216e3}),this.pendingSessions={},this.statsArr=[],this.throttleSendStatsInterval=25e3,this.currentMaxStatSize=15e3,this.statsSizeDecreaseAmount=3e3,this.statBuffer=0,this.discoRetries=0,this.iceServers=[],this.webrtcSessions=[],this.client=e,this.config={allowIPv6:!0===t.allowIPv6,optOutOfWebrtcStatsTelemetry:t.optOutOfWebrtcStatsTelemetry},this.logger=e.logger,this.addEventListeners(),this.throttledSendStats=u.default(this.sendStats.bind(this),this.throttleSendStatsInterval,{leading:!1,trailing:!0}),this.client.on("jingle:outgoing",e=>(this.logger.info("Emitting jingle:outgoing media-session (session-init)",e.sid),this.emit(T,e))),this.client.on("jingle:incoming",e=>(this.logger.info("Emitting jingle:incoming media-session (session-init)",e.sid),this.emit(w,e))),this.client.on("jingle:created",e=>{e instanceof g.StanzaMediaSession||e.end("cancel",!0)}),window.addEventListener("offline",()=>this.onOnlineStatusChange(!1)),window.addEventListener("online",()=>this.onOnlineStatusChange(!0))}get jid(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jid}onOnlineStatusChange(e){this.addStatToQueue({actionName:"WebrtcStats",details:{_eventType:"onlineStatus",_eventTimestamp:(new Date).getTime(),online:e}})}async handleStanzaInstanceChange(e){this.stanzaInstance=e,this.refreshIceServersTimer&&(clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null),e.on("iq:set:genesysWebrtc",this.handleGenesysWebrtcStanza.bind(this)),this.refreshIceServersTimer=setInterval(this.refreshIceServers.bind(this),216e5),this.client.emit("sessionManagerChange",e)}async configureNewStanzaInstance(e){Object.assign(e.jingle.config.peerConnectionConfig,{sdpSemantics:"unified-plan"}),await this.configureStanzaIceServers(e),e.stanzas.define(d.definitions),e.jingle.prepareSession=this.prepareSession.bind(this),e.jingle.on("log",(e,t,n)=>{this.logger[e](t,n)});const t=["iceConnectionType","peerTrackAdded","peerTrackRemoved","mute","unmute","sessionState","connectionState","terminated","stats","endOfCandidates"];for(const n of t)e.jingle.on(n,(function(e){if(e instanceof g.StanzaMediaSession){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];e.emit(n,...r)}}))}configureStanzaIceServers(e){return e.jingle.config.iceServers=[],this.setIceServers([],e),this._refreshIceServers(e)}async handleGenesysOffer(e){const t=e.genesysWebrtc.params,n="relay"===this.getIceTransportPolicy()&&l.isFirefox,r={id:t.sessionId,logger:this.logger,peerID:e.from,fromJid:e.from,sessionType:this.getSessionTypeByJid(e.from),conversationId:t.conversationId,ignoreHostCandidatesFromRemote:n,optOutOfWebrtcStatsTelemetry:!!this.config.optOutOfWebrtcStatsTelemetry,allowIPv6:this.config.allowIPv6,iceServers:this.iceServers,reinvite:!!t.reinvite,iceTransportPolicy:this.getIceTransportPolicy()};let i;const s=this.pendingSessions[t.sessionId];i=s?{...r,meetingId:s.meetingId,fromUserId:s.fromUserId,originalRoomJid:s.originalRoomJid,privAnswerMode:s.privAnswerMode}:r;const o=this.webrtcSessions.find(e=>e.id===i.id);if(this.logger.info("offer received",{existingSession:!!o,mediaSessionParams:i}),o&&(o.conversationId=t.conversationId,!p.iceIsDifferent(o.peerConnection.remoteDescription.sdp,t.sdp)))return this.handleGenesysRenegotiate(o,t.sdp);const a=new y.GenesysCloudMediaSession(this,i);return await a.setRemoteDescription(t.sdp),this.proxyStatsForSession(a),a.on("sendIq",e=>{var t;return null===(t=this.stanzaInstance)||void 0===t?void 0:t.sendIQ(e)}),a.on("terminated",()=>{this.webrtcSessions=this.webrtcSessions.filter(e=>e.id!==a.id)}),this.webrtcSessions.push(a),this.logger.info("emitting sdp media-session (offer)"),this.emit(w,a)}async handleGenesysRenegotiate(e,t){await e.peerConnection.setRemoteDescription({sdp:t,type:"offer"}),await e.accept()}async handleGenesysIceCandidate(e){const t=e.genesysWebrtc.params,n=this.getSessionById(t.sessionId);await n.addRemoteIceCandidate(t.sdp)}async handleGenesysTerminate(e){const t=e.genesysWebrtc.params;this.getSessionById(t.sessionId).onSessionTerminate(t.reason)}getSessionById(e){const t=this.getAllSessions().find(t=>t.id===e);if(!t){const t=new Error("Failed to find session by id");throw this.logger.error(t,{sessionId:e}),t}return t}async sendIq(e){if(!this.stanzaInstance)throw new Error("Failed to send iq because there was no stanza instance");return this.stanzaInstance.sendIQ(e)}async handleMessage(e){e.propose?await this.handlePropose(e):e.retract?this.handleRetract(e.retract.sessionId):e.accept?this.handledIncomingRtcSession(e.accept.sessionId,e):e.reject&&this.handledIncomingRtcSession(e.reject.sessionId,e)}async handleGenesysWebrtcStanza(e){const t=e.genesysWebrtc;return"offer"===t.method?this.handleGenesysOffer(e):"iceCandidate"===t.method?this.handleGenesysIceCandidate(e):"terminate"===t.method?this.handleGenesysTerminate(e):void 0}prepareSession(e){const t=this.pendingSessions[e.sid];if(t&&delete this.pendingSessions[t.sessionId],null==t?void 0:t.sdpOverXmpp)return void this.logger.debug("skipping creation of jingle webrtc session due to sdpOverXmpp on the pendingSession");const n="relay"===this.getIceTransportPolicy()&&l.isFirefox,r={options:e,logger:this.logger,id:e.sid,fromJid:e.peerID,peerID:e.peerID,optOutOfWebrtcStatsTelemetry:!!this.config.optOutOfWebrtcStatsTelemetry,conversationId:null==t?void 0:t.conversationId,fromUserId:null==t?void 0:t.fromJid,originalRoomJid:null==t?void 0:t.originalRoomJid,sessionType:null==t?void 0:t.sessionType,allowIPv6:this.config.allowIPv6,ignoreHostCandidatesFromRemote:n,meetingId:null==t?void 0:t.meetingId},i=new g.StanzaMediaSession(r);return this.proxyStatsForSession(i),i}proxyStatsForSession(e){e.on("stats",t=>{const n=JSON.parse(JSON.stringify(t)),r={conversationId:e.conversationId,sessionId:e.id,sessionType:e.sessionType},i=f.formatStatsEvent(n,r);this.addStatToQueue(i)})}addStatToQueue(e){if(this.config.optOutOfWebrtcStatsTelemetry)return;e.details._appId||(e.details._appId=this.logger.clientId,e.details._appName="streamingclient",e.details._appVersion=h.Client.version),e.details._originAppId=this.client.config.appId;const t=f.deepFlatten(e.details);Object.keys(t).forEach(e=>{const n=t[e];"boolean"==typeof n&&(t[e]=""+n)});const n={...e,details:t},r=p.calculatePayloadSize(n),i=this.statBuffer+r>this.currentMaxStatSize;this.statsArr.push(n),this.statBuffer+=r,i?this.sendStatsImmediately():this.throttledSendStats()}getLogDetailsForPendingSessionId(e){const t={sessionId:e},n=this.pendingSessions[e];return n&&(t.sessionType=n.sessionType,t.conversationId=n.conversationId),t}sendStatsImmediately(){this.throttledSendStats(),this.throttledSendStats.flush()}async sendStats(){var e,t;if(!navigator.onLine)return;const n=[];let r=0;for(const e of this.statsArr){const t=p.calculatePayloadSize(e);if(!(r+t<this.currentMaxStatSize))break;n.push(e),r+=t}if(this.statsArr.splice(0,n.length),this.statBuffer=this.statsArr.reduce((e,t)=>e+p.calculatePayloadSize(t),0),!n.length||this.client.isGuest)return;const i={appName:"streamingclient",appVersion:h.Client.version,originAppName:this.client.config.appName,originAppVersion:this.client.config.appVersion,actions:n};try{let e=this.client.config.authToken,t="diagnostics/newrelic/insights";this.client.backgroundAssistantMode&&(e=this.client.config.jwt,t+="/backgroundassistant"),await this.client.http.requestApi(t,{method:"post",responseType:"text",host:this.client.config.apiHost,authToken:e,logger:this.client.logger,data:i}),this.currentMaxStatSize=15e3}catch(r){if(!b.HttpClient.retryStatusCodes.has(null===(e=r.response)||void 0===e?void 0:e.status)&&navigator.onLine||(this.statsArr=[...n,...this.statsArr],this.statBuffer=this.statsArr.reduce((e,t)=>e+p.calculatePayloadSize(t),0)),413===(null===(t=r.response)||void 0===t?void 0:t.status)){const e=this.currentMaxStatSize;this.currentMaxStatSize-=this.statsSizeDecreaseAmount,this.logger.info("Failed to send stats due to 413, retrying with smaller set",{attemptedPayloadSize:e,newPayloadSize:this.currentMaxStatSize}),await this.sendStats()}else this.logger.error("Failed to send stats",{err:r,numberOfFailedStats:n.length},{skipServer:!navigator.onLine})}}addEventListeners(){this.client.on("connected",()=>(this.refreshIceServersTimer&&(clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null),this.refreshIceServersTimer=setInterval(this.refreshIceServers.bind(this),216e5),this.refreshIceServers().catch(e=>this.logger.error("Error fetching ice servers after streaming-client connected",{error:e,channelId:this.client.config.channelId})))),this.client.on("disconnected",()=>{clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null})}async handlePropose(e){if(e.from===this.jid)return;const t=e.propose.sessionId;let n=this.pendingSessions[t];const r=!!n,i=this.getSessionTypeByJid(e.from),s={sessionId:t,conversationId:e.propose.conversationId,sessionType:i,isDuplicatePropose:r};if(this.logger.info("propose received",s),!r){const{appId:r}=this.client.config,o={actionName:"WebrtcStats",details:{_eventTimestamp:(new Date).getTime(),_eventType:"firstPropose",conversationId:s.conversationId,sdpViaXmppRequested:!!e.propose.sdpOverXmpp,sessionId:t,sessionType:i}};this.addStatToQueue(o);const a=e.from,c=a;e.propose.originalRoomJid=e.propose.originalRoomJid||c,n={...e.propose,toJid:e.to,fromJid:a,sessionType:i,roomJid:c,id:t,sdpOverXmpp:e.propose.sdpOverXmpp,privAnswerMode:e.propose.privAnswerMode},this.pendingSessions[t]=n}if(n.accepted)return this.logger.info("proceed already sent for this session, but sending another",s),void await this.acceptRtcSession(t);this.emit(v,Object.assign(n))}handleRetract(e){return this.logger.info("retract received",this.getLogDetailsForPendingSessionId(e)),delete this.pendingSessions[e],this.emit(_,e)}handledIncomingRtcSession(e,t){let n=t.accept?"accept":"reject";return this.logger.info(n+" received",this.getLogDetailsForPendingSessionId(e)),this.emit(S,e)}async initiateRtcSession(e){const t={to:e.jid,propose:{id:c.v4(),descriptions:[]}};if(e.stream)for(let n of Array.from(e.stream.getTracks()))t.propose.descriptions.push({media:n.kind});if(e.provideVideo){t.propose.descriptions.filter(e=>"video"===e.media).length>0||t.propose.descriptions.push({media:"video"})}if(e.provideAudio){t.propose.descriptions.filter(e=>"audio"===e.media).length>0||t.propose.descriptions.push({media:"audio"})}if(e.mediaPurpose&&t.propose.descriptions.push({media:e.mediaPurpose}),e.jid&&e.jid.match(/@conference/)){let n=t.propose.descriptions;0===n.length&&(n=[{media:"listener"}]);const r={type:"upgradeMedia",to:e.jid,id:c.v4(),from:this.jid,media:{conversationId:e.conversationId,sourceCommunicationId:e.sourceCommunicationId}};for(const e of n)r.media[e.media]=!0;await this.stanzaInstance.send("presence",r)}else await this.stanzaInstance.send("message",t),this.pendingSessions[t.propose.id]=t;return t.propose.id}async acceptRtcSession(e){const t=this.pendingSessions[e];if(!t)return void this.emit(I,"Cannot accept session because it is not pending or does not exist");const n={to:t.fromJid,proceed:{sessionId:e}};t.accepted=!0;const r=this.getLogDetailsForPendingSessionId(e);this.logger.info("sending jingle proceed",r),await this.stanzaInstance.send("message",n),this.logger.info("sent jingle proceed",r)}async rejectRtcSession(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getLogDetailsForPendingSessionId(e),r=this.pendingSessions[e];if(r)if(delete this.pendingSessions[e],t)this.ignoredSessions.set(e,!0);else{const t={to:s.toBare(this.jid),reject:{sessionId:e}},i=this.stanzaInstance.send("message",t),o={to:r.fromJid,reject:{sessionId:e}},a=this.stanzaInstance.send("message",o);this.logger.info("sending jingle reject",n),await Promise.all([i,a]),this.logger.info("sent jingle reject",n)}else this.emit(I,"Cannot reject session because it is not pending or does not exist")}async rtcSessionAccepted(e){this.pendingSessions[e];const t=this.getLogDetailsForPendingSessionId(e),n={to:s.toBare(this.jid),accept:{sessionId:e}};this.logger.info("sending session-info:accept",t),await this.stanzaInstance.send("message",n),this.logger.info("sent session-info:accept",t)}async notifyScreenShareStart(e){return this.stanzaInstance.send("iq",{to:""+e.peerID,from:this.jid,type:"set",jingle:{action:a.JingleAction.SessionInfo,sid:e.id,screenstart:{}}})}async notifyScreenShareStop(e){return this.stanzaInstance.send("iq",{to:""+e.peerID,from:this.jid,type:"set",jingle:{action:a.JingleAction.SessionInfo,sid:e.id,screenstop:{}}})}async cancelRtcSession(e){const t=this.pendingSessions[e],n=this.getLogDetailsForPendingSessionId(e);if(!t)return void this.emit(I,"Cannot cancel session because it is not pending or does not exist");const r={to:t.toJid,retract:{sessionId:e}};delete this.pendingSessions[e],this.logger.info("sending jingle retract",n),await this.stanzaInstance.send("message",r),this.logger.info("sent jingle retract",n)}async refreshIceServers(){return this.refreshIceServersRetryPromise||(this.refreshIceServersRetryPromise=p.retryPromise(this._refreshIceServers.bind(this,this.stanzaInstance),e=>++this.discoRetries>2?(this.logger.warn("fetching ice servers failed. max retries reached.",{retryAttempt:this.discoRetries,MAX_DISCO_RETRIES:2,error:e,channelId:this.client.config.channelId}),!1):(this.logger.warn("fetching ice servers failed. retrying",{retryAttempt:this.discoRetries,error:e,channelId:this.client.config.channelId}),!0),0,this.client.logger)),this.refreshIceServersRetryPromise.promise.finally(()=>{this.discoRetries=0,this.refreshIceServersRetryPromise=void 0})}async _refreshIceServers(e){if(!e)throw new Error("No stanza instance to refresh ice servers");const t=e.config.server,n=e.getServices(t,"turn","1"),r=e.getServices(t,"stun","1"),i=new Promise((e,t)=>{setTimeout(()=>{t(new Error("Timeout waiting for refresh ice servers to finish"))},15e3),Promise.all([n,r]).then(t=>{let[n,r]=t;e([n,r])}).catch(t)}),[s,o]=await i,a=[...s.services,...o.services].map(e=>{const t=e.port?":"+e.port:"",n={type:e.type,urls:`${e.type}:${e.host}${t}`};return["turn","turns"].includes(e.type)&&(e.transport&&"udp"!==e.transport&&(n.urls+="?transport="+e.transport),e.username&&(n.username=e.username),e.password&&(n.credential=e.password)),n});return this.setIceServers(a,e),o.services.length?this.setIceTransportPolicy("all",e):(this.logger.info('No stun servers received, setting iceTransportPolicy to "relay"'),this.setIceTransportPolicy("relay",e)),a}setIceServers(e,t){t.jingle.iceServers=e,this.iceServers=e}getIceTransportPolicy(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle.config.peerConnectionConfig.iceTransportPolicy}setIceTransportPolicy(e,t){t.jingle.config.peerConnectionConfig.iceTransportPolicy=e}getSessionTypeByJid(e){return p.isAcdJid(e)?m.SessionTypes.acdScreenShare:p.isScreenRecordingJid(e)?m.SessionTypes.screenRecording:p.isSoftphoneJid(e)?m.SessionTypes.softphone:p.isVideoJid(e)?m.SessionTypes.collaborateVideo:m.SessionTypes.unknown}getSessionManager(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle}getAllSessions(){var e;const t=null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle.sessions;return[...t&&Object.values(t)||[],...this.webrtcSessions]}proxyNRStat(e){this.addStatToQueue(e)}get expose(){return{on:this.on.bind(this),once:this.once.bind(this),off:this.off.bind(this),removeAllListeners:this.removeAllListeners.bind(this),removeListener:this.removeListener.bind(this),refreshIceServers:this.refreshIceServers.bind(this),acceptRtcSession:this.acceptRtcSession.bind(this),rejectRtcSession:this.rejectRtcSession.bind(this),cancelRtcSession:this.cancelRtcSession.bind(this),notifyScreenShareStart:this.notifyScreenShareStart.bind(this),notifyScreenShareStop:this.notifyScreenShareStop.bind(this),rtcSessionAccepted:this.rtcSessionAccepted.bind(this),initiateRtcSession:this.initiateRtcSession.bind(this),getSessionTypeByJid:this.getSessionTypeByJid.bind(this),getSessionManager:this.getSessionManager.bind(this),getAllSessions:this.getAllSessions.bind(this),proxyNRStat:this.proxyNRStat.bind(this)}}}t.WebrtcExtension=A},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TABLE_DATA=void 0,t.TABLE_DATA={"A.1":{r:"hk:if|le:lf|nf:nv|qg:qv|rg:rj|rm:rp|rr:rt|rv:s3|vn:vv|17m:17n|17q:17v|18g:19g|1an:1ao|1cb:1cg|1e5:1ef|1fb:1ff|1fl:1gb|1gd:1gq|1gs:1gu|1hr:1hv|1im:1iv|1ne:1nf|1pd:1pf|1qb:1rv|1ti:280|29q:29r|2ae:2af|2al:2an|2bh:2c0|2cd:2ce|2ch:2ci|2dj:2dl|2dq:2dr|2e5:2e6|2e9:2ea|2ee:2em|2eo:2er|2f4:2f5|2fr:2g1|2g3:2g4|2gb:2ge|2gh:2gi|2hq:2hr|2i3:2i6|2i9:2ia|2ie:2io|2iv:2j5|2jl:2k0|2lq:2lr|2me:2mf|2mh:2mv|2n1:2n5|2ng:2o0|2od:2oe|2oh:2oi|2pk:2pl|2pq:2pr|2q4:2q6|2q9:2qa|2qe:2ql|2qo:2qr|2r2:2r5|2rh:2s1|2sb:2sd|2sm:2so|2t0:2t2|2t5:2t7|2tb:2td|2tq:2tt|2u3:2u5|2ue:2um|2uo:2v6|2vj:300|31q:31t|32e:32k|32n:32v|332:335|33g:341|35q:35t|36e:36k|36n:36t|372:375|37g:381|39q:39t|3a4:3a5|3ae:3am|3ao:3av|3b2:3b5|3bg:3c1|3cn:3cp|3du:3dv|3e7:3e9|3eb:3ee|3f0:3fh|3fl:3g0|3hr:3hu|3is:3k0|3k5:3k6|3kb:3kc|3ke:3kj|3l8:3l9|3lu:3lv|3me:3mf|3mq:3mr|3mu:3nv|3rb:3rg|3sc:3sf|3ud:3ue|3ug:3vv|41j:41l|41q:41v|42q:44v|466:46f|47p:47q|47s:47v|4aq:4au|4d3:4d7|4fq:4fv|4ie:4if|4iu:4iv|4ke:4kf|4lm:4ln|4m6:4m7|4om:4on|4qr:4r0|4rt:4sv|4vl:500|5jn:5jv|5kt:5kv|5nh:5nv|5ol:5ov|5pn:5pv|5qk:5qv|5rk:5rv|5ut:5uv|5va:5vv|60q:60v|63o:63v|65a:7fv|7ks:7kv|7nq:7nv|7om:7on|7ou:7ov|7q6:7q7|7qe:7qf|7ru:7rv|7uk:7ul|7vg:7vh|82j:82m|82o:82u|834:839|83i:83j|84f:84v|85i:86f|87b:87v|89r:89s|8ac:8ai|8c4:8cf|8uf:8vv|917:91v|92b:92v|9gk:9gl|9ju:9jv|9ka:9o0|9oa:9ob|9qj:9ql|9qv:9r0|9sl:9sn|9tv:9uf|9vc:9vf|ao0:bjv|bnk:bnv|bum:bvf|bvs:bvv|c4n:c4o|c80:c84|c9d:c9g|cdo:cff|cgt:cgv|ci4:cig|cjs:cju|cmc:cmf|crn:crq|cuu:cuv|jdm:jfv|17t6:17vv|194d:194f|1967:1avv|1lt4:1lvv|1uhe:1uhf|1ujb:1unv|1uo7:1uoi|1uoo:1uos|1uti:1uui|1va0:1vaf|1vcg:1vch|1ve8:1vef|1vft:1vfv|1vgg:1vgv|1vh4:1vhf|1vi7:1vi8|1vjc:1vjf|1vnt:1vnu|1vtv:1vu1|1vu8:1vu9|1vug:1vuh|1vuo:1vup|1vut:1vuv|1vvf:1vvo|2000:20nv|20p4:20pf|20qb:20vv|2116:2117|212e:3jvv|3k7m:3k7v|3k97:3k99|3keu:3kvv|3l50:3l51|3l53:3l54|3l57:3l58|3l8b:3l8c|3la7:3la9|3ll4:3ll7|3lua:3lud|3m00:3vvt|59mn:5tvv|5ugu:5vvt|6000:7vvt|8000:9vvt|a000:bvvt|c000:dvvt|e000:fvvt|g000:hvvt|i000:jvvt|k000:lvvt|m000:nvvt|o000:pvvt|q000:rvvt|s002:s00v|s040:tvvt",s:"9p8|9qc|9qe|9qn|9tg|147|bkq|3l2l|3l4t|3l5d|3l5q|3l5s|3l61|3l64|3l86|3l8l|3l8t|3l9q|3l9v|3la5|3lah|16f|c20|ccf|cnv|cvv|1b0|1c8|1d2|1dq|1h0|1nv|1oe|284|2c4|2d9|2dh|2dt|2eu|2h9|2hh|2hk|2hn|2ht|2it|2k4|2kc|2ke|2ki|2l9|2lh|2lk|2m6|2ma|2o4|2p9|2ph|2qu|2s4|2sh|2sr|2st|2tm|2u9|304|30d|30h|319|31k|325|329|344|34d|34h|359|35k|365|369|36v|384|38d|38h|399|3a9|3c4|3di|3ds|3el|3en|3k3|3k9|3ko|3l0|3l4|3l6|3lc|3lq|3m5|3m7|3q8|3so|3tt|412|418|41b|4g7|4i7|4i9|4in|4ip|4k7|4k9|4lf|4lh|4lv|4m1|4mf|4mn|4nf|4of|4oh|4ov|4q7|h1|5od|5rd|5rh|60f|1upn|1upt|1upv|1uq2|1uq5|1vij|1vj7|1vjl|1vo0|1vv7|20ov|7qo|7qq|7qs|7qu|7tl|7u5|7us|7vl|7vv|sb|sd|s000|t2|97v|uf|9go|9o5"},"B.1":{r:"60b:60d|80b:80d|1vg0:1vgf",s:"5d|606|1vnv|830|qf"},"B.2":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|rq:10;tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ui:u5|uj:ud|uk:ub|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|858:3i;3j|882:33|883:5g;33|887:ir|889:5g;36|88b:38|88c:38|88d:38|88g:39|88h:39|88i:3c|88l:3e|88m:3e;3f|88p:3g|88q:3h|88r:3i|88s:3i|88t:3i|890:3j;3d|891:3k;35;3c|892:3k;3d|894:3q|898:3q|89c:32|89d:33|89g:35|89h:36|89j:3d|89u:tj|89v:u0|8a5:34|crh:38;3g;31|crj:31;3l|crl:3f;3m|cs0:3g;31|cs1:3e;31|cs2:ts;31|cs3:3d;31|cs4:3b;31|cs5:3b;32|cs6:3d;32|cs7:37;32|csa:3g;36|csb:3e;36|csc:ts;36|csg:38;3q|csh:3b;38;3q|csi:3d;38;3q|csj:37;38;3q|csk:3k;38;3q|ct9:3g;31|cta:3b;3g;31|ctb:3d;3g;31|ctc:37;3g;31|ctk:3g;3m|ctl:3e;3m|ctm:ts;3m|ctn:3d;3m|cto:3b;3m|ctp:3d;3m|ctq:3g;3n|ctr:3e;3n|cts:ts;3n|ctt:3d;3n|ctu:3b;3n|ctv:3d;3n|cu0:3b;u9|cu1:3d;u9|cu3:32;3h|cu6:33;8gl;3b;37|cu7:33;3f;1e|cu8:34;32|cu9:37;3p|cub:38;3g|cud:3b;3b|cue:3b;3d|cun:3g;38|cup:3g;3g;3d|cuq:3g;3i|cus:3j;3m|cut:3n;32|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd|3l00:31|3l01:32|3l02:33|3l03:34|3l04:35|3l05:36|3l06:37|3l07:38|3l08:39|3l09:3a|3l0a:3b|3l0b:3c|3l0c:3d|3l0d:3e|3l0e:3f|3l0f:3g|3l0g:3h|3l0h:3i|3l0i:3j|3l0j:3k|3l0k:3l|3l0l:3m|3l0m:3n|3l0n:3o|3l0o:3p|3l0p:3q|3l1k:31|3l1l:32|3l1m:33|3l1n:34|3l1o:35|3l1p:36|3l1q:37|3l1r:38|3l1s:39|3l1t:3a|3l1u:3b|3l1v:3c|3l20:3d|3l21:3e|3l22:3f|3l23:3g|3l24:3h|3l25:3i|3l26:3j|3l27:3k|3l28:3l|3l29:3m|3l2a:3n|3l2b:3o|3l2c:3p|3l2d:3q|3l38:31|3l39:32|3l3a:33|3l3b:34|3l3c:35|3l3d:36|3l3e:37|3l3f:38|3l3g:39|3l3h:3a|3l3i:3b|3l3j:3c|3l3k:3d|3l3l:3e|3l3m:3f|3l3n:3g|3l3o:3h|3l3p:3i|3l3q:3j|3l3r:3k|3l3s:3l|3l3t:3m|3l3u:3n|3l3v:3o|3l40:3p|3l41:3q|3l4s:31|3l4u:33|3l4v:34|3l52:37|3l55:3a|3l56:3b|3l59:3e|3l5a:3f|3l5b:3g|3l5c:3h|3l5e:3j|3l5f:3k|3l5g:3l|3l5h:3m|3l5i:3n|3l5j:3o|3l5k:3p|3l5l:3q|3l6g:31|3l6h:32|3l6i:33|3l6j:34|3l6k:35|3l6l:36|3l6m:37|3l6n:38|3l6o:39|3l6p:3a|3l6q:3b|3l6r:3c|3l6s:3d|3l6t:3e|3l6u:3f|3l6v:3g|3l70:3h|3l71:3i|3l72:3j|3l73:3k|3l74:3l|3l75:3m|3l76:3n|3l77:3o|3l78:3p|3l79:3q|3l84:31|3l85:32|3l87:34|3l88:35|3l89:36|3l8a:37|3l8d:3a|3l8e:3b|3l8f:3c|3l8g:3d|3l8h:3e|3l8i:3f|3l8j:3g|3l8k:3h|3l8m:3j|3l8n:3k|3l8o:3l|3l8p:3m|3l8q:3n|3l8r:3o|3l8s:3p|3l9o:31|3l9p:32|3l9r:34|3l9s:35|3l9t:36|3l9u:37|3la0:39|3la1:3a|3la2:3b|3la3:3c|3la4:3d|3la6:3f|3laa:3j|3lab:3k|3lac:3l|3lad:3m|3lae:3n|3laf:3o|3lag:3p|3lbc:31|3lbd:32|3lbe:33|3lbf:34|3lbg:35|3lbh:36|3lbi:37|3lbj:38|3lbk:39|3lbl:3a|3lbm:3b|3lbn:3c|3lbo:3d|3lbp:3e|3lbq:3f|3lbr:3g|3lbs:3h|3lbt:3i|3lbu:3j|3lbv:3k|3lc0:3l|3lc1:3m|3lc2:3n|3lc3:3o|3lc4:3p|3lc5:3q|3ld0:31|3ld1:32|3ld2:33|3ld3:34|3ld4:35|3ld5:36|3ld6:37|3ld7:38|3ld8:39|3ld9:3a|3lda:3b|3ldb:3c|3ldc:3d|3ldd:3e|3lde:3f|3ldf:3g|3ldg:3h|3ldh:3i|3ldi:3j|3ldj:3k|3ldk:3l|3ldl:3m|3ldm:3n|3ldn:3o|3ldo:3p|3ldp:3q|3lek:31|3lel:32|3lem:33|3len:34|3leo:35|3lep:36|3leq:37|3ler:38|3les:39|3let:3a|3leu:3b|3lev:3c|3lf0:3d|3lf1:3e|3lf2:3f|3lf3:3g|3lf4:3h|3lf5:3i|3lf6:3j|3lf7:3k|3lf8:3l|3lf9:3m|3lfa:3n|3lfb:3o|3lfc:3p|3lfd:3q|3lg8:31|3lg9:32|3lga:33|3lgb:34|3lgc:35|3lgd:36|3lge:37|3lgf:38|3lgg:39|3lgh:3a|3lgi:3b|3lgj:3c|3lgk:3d|3lgl:3e|3lgm:3f|3lgn:3g|3lgo:3h|3lgp:3i|3lgq:3j|3lgr:3k|3lgs:3l|3lgt:3m|3lgu:3n|3lgv:3o|3lh0:3p|3lh1:3q|3lhs:31|3lht:32|3lhu:33|3lhv:34|3li0:35|3li1:36|3li2:37|3li3:38|3li4:39|3li5:3a|3li6:3b|3li7:3c|3li8:3d|3li9:3e|3lia:3f|3lib:3g|3lic:3h|3lid:3i|3lie:3j|3lif:3k|3lig:3l|3lih:3m|3lii:3n|3lij:3o|3lik:3p|3lil:3q|3ljg:31|3ljh:32|3lji:33|3ljj:34|3ljk:35|3ljl:36|3ljm:37|3ljn:38|3ljo:39|3ljp:3a|3ljq:3b|3ljr:3c|3ljs:3d|3ljt:3e|3lju:3f|3ljv:3g|3lk0:3h|3lk1:3i|3lk2:3j|3lk3:3k|3lk4:3l|3lk5:3m|3lk6:3n|3lk7:3o|3lk8:3p|3lk9:3q|3ll8:th|3ll9:ti|3lla:tj|3llb:tk|3llc:tl|3lld:tm|3lle:tn|3llf:to|3llg:tp|3llh:tq|3lli:tr|3llj:ts|3llk:tt|3lll:tu|3llm:tv|3lln:u0|3llo:u1|3llp:to|3llq:u3|3llr:u4|3lls:u5|3llt:u6|3llu:u7|3llv:u8|3lm0:u9|3lmj:u3|3ln2:th|3ln3:ti|3ln4:tj|3ln5:tk|3ln6:tl|3ln7:tm|3ln8:tn|3ln9:to|3lna:tp|3lnb:tq|3lnc:tr|3lnd:ts|3lne:tt|3lnf:tu|3lng:tv|3lnh:u0|3lni:u1|3lnj:to|3lnk:u3|3lnl:u4|3lnm:u5|3lnn:u6|3lno:u7|3lnp:u8|3lnq:u9|3lod:u3|3los:th|3lot:ti|3lou:tj|3lov:tk|3lp0:tl|3lp1:tm|3lp2:tn|3lp3:to|3lp4:tp|3lp5:tq|3lp6:tr|3lp7:ts|3lp8:tt|3lp9:tu|3lpa:tv|3lpb:u0|3lpc:u1|3lpd:to|3lpe:u3|3lpf:u4|3lpg:u5|3lph:u6|3lpi:u7|3lpj:u8|3lpk:u9|3lq7:u3|3lqm:th|3lqn:ti|3lqo:tj|3lqp:tk|3lqq:tl|3lqr:tm|3lqs:tn|3lqt:to|3lqu:tp|3lqv:tq|3lr0:tr|3lr1:ts|3lr2:tt|3lr3:tu|3lr4:tv|3lr5:u0|3lr6:u1|3lr7:to|3lr8:u3|3lr9:u4|3lra:u5|3lrb:u6|3lrc:u7|3lrd:u8|3lre:u9|3ls1:u3|3lsg:th|3lsh:ti|3lsi:tj|3lsj:tk|3lsk:tl|3lsl:tm|3lsm:tn|3lsn:to|3lso:tp|3lsp:tq|3lsq:tr|3lsr:ts|3lss:tt|3lst:tu|3lsu:tv|3lsv:u0|3lt0:u1|3lt1:to|3lt2:u3|3lt3:u4|3lt4:u5|3lt5:u6|3lt6:u7|3lt7:u8|3lt8:u9|3ltr:u3",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"B.3":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"C.1.1":{s:"10"},"C.1.2":{r:"800:80b",s:"c00|50|5k0|81f|82v"},"C.2.1":{r:"0:v",s:"3v"},"C.2.2":{r:"40:4v|80c:80d|818:819|830:833|83a:83f|1vvp:1vvs|3kbj:3kbq",s:"1mt|1of|60e|1vnv"},"C.3":{r:"1o00:1u7v|u000:vvvt|10000:11vvt"},"C.4":{r:"1veg:1vff|1vvu:1vvv|3vvu:3vvv|5vvu:5vvv|7vvu:7vvv|9vvu:9vvv|bvvu:bvvv|dvvu:dvvv|fvvu:fvvv|hvvu:hvvv|jvvu:jvvv|lvvu:lvvv|nvvu:nvvv|pvvu:pvvv|rvvu:rvvv|tvvu:tvvv|vvvu:vvvv|11vvu:11vvv"},"C.5":{r:"1m00:1nvv"},"C.6":{r:"1vvp:1vvt"},"C.7":{r:"bvg:bvr"},"C.8":{r:"q0:q1|80e:80f|81a:81e|83a:83f"},"C.9":{r:"s010:s03v",s:"s001"},"D.1":{r:"1eg:1fa|1fg:1fk|1h1:1hq|1i0:1ia|1jd:1jf|1jh:1ml|1n5:1n6|1nq:1nu|1o0:1od|1oi:1pc|1s0:1t5|1uov:1up8|1upa:1upm|1upo:1ups|1uq0:1uq1|1uq3:1uq4|1uq6:1uth|1uuj:1v9t|1vag:1vcf|1vci:1ve7|1vfg:1vfs|1vjg:1vjk|1vjm:1vns",s:"1du|1e0|1e3|1gr|1gv|1mt|1og|1th|1uot|1upu|80f"},"D.2":{r:"21:2q|31:3q|60:6m|6o:7m|7o:h0|h2:hj|ig:ld|lg:lo|lr:m1|mg:mh|n0:n4|s8:sa|se:t1|t3:ue|ug:vl|100:142|14a:16e|16g:17l|17o:17p|180:18f|19h:1am|1ap:1av|1b1:1c7|285:29p|29t:2a0|2a9:2ac|2ao:2b1|2b4:2bg|2c2:2c3|2c5:2cc|2cf:2cg|2cj:2d8|2da:2dg|2dm:2dp|2du:2e0|2e7:2e8|2eb:2ec|2es:2et|2ev:2f1|2f6:2fh|2fk:2fq|2g5:2ga|2gf:2gg|2gj:2h8|2ha:2hg|2hi:2hj|2hl:2hm|2ho:2hp|2hu:2i0|2ip:2is|2j6:2jf|2ji:2jk|2k5:2kb|2kf:2kh|2kj:2l8|2la:2lg|2li:2lj|2ll:2lp|2lt:2m0|2mb:2mc|2n6:2nf|2o2:2o3|2o5:2oc|2of:2og|2oj:2p8|2pa:2pg|2pi:2pj|2pm:2pp|2pt:2pu|2q7:2q8|2qb:2qc|2qs:2qt|2qv:2r1|2r6:2rg|2s5:2sa|2se:2sg|2si:2sl|2sp:2sq|2su:2sv|2t3:2t4|2t8:2ta|2te:2tl|2tn:2tp|2tu:2tv|2u1:2u2|2u6:2u8|2ua:2uc|2v7:2vi|301:303|305:30c|30e:30g|30i:318|31a:31j|31l:31p|321:324|330:331|336:33f|342:343|345:34c|34e:34g|34i:358|35a:35j|35l:35p|360:364|367:368|36a:36b|36l:36m|370:371|376:37f|382:383|385:38c|38e:38g|38i:398|39a:39p|39u:3a0|3a6:3a8|3aa:3ac|3b0:3b1|3b6:3bf|3c2:3c3|3c5:3cm|3cq:3dh|3dj:3dr|3e0:3e6|3ef:3eh|3eo:3ev|3fi:3fk|3g1:3hg|3hi:3hj|3i0:3i6|3if:3ir|3k1:3k2|3k7:3k8|3kk:3kn|3kp:3kv|3l1:3l3|3la:3lb|3ld:3lg|3li:3lj|3m0:3m4|3mg:3mp|3ms:3mt|3o0:3on|3oq:3pk|3pu:3q7|3q9:3ra|3s8:3sb|3tu:3u5|3u7:3uc|400:411|413:417|419:41a|420:42n|450:465|46g:47o|480:4ap|4av:4d2|4d8:4fp|4g0:4g6|4g8:4i6|4ia:4id|4ig:4im|4iq:4it|4j0:4k6|4ka:4kd|4kg:4le|4li:4ll|4lo:4lu|4m2:4m5|4m8:4me|4mg:4mm|4mo:4ne|4ng:4oe|4oi:4ol|4oo:4ou|4p0:4q6|4q8:4qq|4r1:4rs|4t0:4vk|501:5jm|5k1:5kq|5l0:5ng|5o0:5oc|5oe:5oh|5p0:5ph|5pl:5pm|5q0:5qh|5r0:5rc|5re:5rg|5s0:5tm|5tu:5u5|5u7:5u8|5uk:5uq|5v0:5v9|60g:60p|610:63n|640:658|7g0:7kr|7l0:7np|7o0:7ol|7oo:7ot|7p0:7q5|7q8:7qd|7qg:7qn|7qv:7rt|7s0:7tk|7tm:7ts|7u2:7u4|7u6:7uc|7ug:7uj|7um:7ur|7v0:7vc|7vi:7vk|7vm:7vs|88a:88j|88p:88t|89a:89d|89f:89h|89j:89p|89t:89v|8a5:8a9|8b0:8c3|8pm:8rq|94s:979|c05:c07|c11:c19|c1h:c1l|c1o:c1s|c21:c4m|c4t:c4v|c51:c7q|c7s:c7v|c85:c9c|c9h:cce|ccg:cdn|cfg:cgs|ch0:ci3|cj0:cjr|cjv:clg|cm0:cmb|cmg:cnu|co0:crm|crr:cut|cv0:cvu|d00:jdl|jg0:17t5|1800:194c|1b00:1lt3|1m00:1uhd|1uhg:1uja|1uo0:1uo6|1uoj:1uon|1vp1:1vpq|1vq1:1vqq|1vr6:1vtu|1vu2:1vu7|1vua:1vuf|1vui:1vun|1vuq:1vus|20o0:20ou|20p0:20p3|20pg:20qa|2100:2115|2118:212d|3k00:3k7l|3k80:3k96|3k9a:3kb6|3kba:3kbi|3kc3:3kc4|3kcc:3kd9|3kde:3ket|3l00:3l2k|3l2m:3l4s|3l4u:3l4v|3l55:3l56|3l59:3l5c|3l5e:3l5p|3l5t:3l60|3l62:3l63|3l65:3l85|3l87:3l8a|3l8d:3l8k|3l8m:3l8s|3l8u:3l9p|3l9r:3l9u|3la0:3la4|3laa:3lag|3lai:3ll3|3ll8:3lu9|4000:59mm|5u00:5ugt|u000:vvvt|10000:11vvt",s:"3l52|3l5r|3la6|1c9|5a|5l|5q|283|2ag|2di|2en|2iu|2k3|2kd|2m9|2mg|2n0|2q0|2qn|2s3|2ss|2un|35u|36u|3an|3dt|3k4|3ka|3kd|3l5|3l7|3lt|3m6|3pm|3po|3rv|3s5|3uf|41c|41h|41o|47r|4i8|4io|4k8|4lg|4m0|4og|5us|ne|7qp|7qr|7qt|7tu|80e|83h|83v|882|887|88l|894|896|898|rq|s6|sc|8sl"}}},function(e,t,n){"use strict";const r=n(264),i=Symbol("max"),s=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),d=Symbol("lruList"),p=Symbol("cache"),h=Symbol("updateAgeOnGet"),f=()=>1;const m=(e,t,n)=>{const r=e[p].get(t);if(r){const t=r.value;if(g(e,t)){if(b(e,r),!e[a])return}else n&&(e[h]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},y=e=>{if(e[s]>e[i])for(let t=e[d].tail;e[s]>e[i]&&null!==t;){const n=t.prev;b(e,t),t=n}},b=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[s]-=n.length,e[p].delete(n.key),e[d].removeNode(t)}};class v{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const _=(e,t,n,r)=>{let i=n.value;g(e,i)&&(b(e,n),e[a]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,y(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[s]=0,this[d].forEach(e=>{e.length=this[o](e.value,e.key),this[s]+=e.length})),y(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let n=this[d].tail;null!==n;){const r=n.prev;_(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[d].head;null!==n;){const r=n.next;_(this,e,n,t),n=r}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach(e=>this[u](e.key,e.value)),this[p]=new Map,this[d]=new r,this[s]=0}dump(){return this[d].map(e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,n){if((n=n||this[c])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,a=this[o](t,e);if(this[p].has(e)){if(a>this[i])return b(this,this[p].get(e)),!1;const o=this[p].get(e).value;return this[u]&&(this[l]||this[u](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[s]+=a-o.length,o.length=a,this.get(e),y(this),!0}const h=new v(e,t,a,r,n);return h.length>this[i]?(this[u]&&this[u](e,t),!1):(this[s]+=h.length,this[d].unshift(h),this[p].set(e,this[d].head),y(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[d].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[p].forEach((e,t)=>m(this,t,!1))}}},function(e,t,n){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new a(n,null,t,e):new a(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function s(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,n,r){if(!(this instanceof a))return new a(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=a,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)s(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,s=this.head;null!==s&&i<e;i++)s=s.next;for(;null!==s&&i<t;i++,s=s.next)n.push(s.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,s=this.tail;null!==s&&i>t;i--)s=s.prev;for(;null!==s&&i>e;i--,s=s.prev)n.push(s.value);return n},r.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n<e;n++)r=r.next;var s=[];for(n=0;r&&n<t;n++)s.push(r.value),r=this.removeNode(r);null===r&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev);for(n=0;n<(arguments.length<=2?0:arguments.length-2);n++)r=i(this,r,n+2<2||arguments.length<=n+2?void 0:arguments[n+2]);return s},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(265)(r)}catch(e){}},function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=a||c||Function("return this")(),l=Object.prototype.toString,d=Math.max,p=Math.min,h=function(){return u.Date.now()};function f(e,t,n){var r,i,s,o,a,c,u=0,l=!1,f=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,s=i;return r=i=void 0,u=t,o=e.apply(s,n)}function v(e){return u=e,a=setTimeout(S,t),l?b(e):o}function _(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-u>=s}function S(){var e=h();if(_(e))return w(e);a=setTimeout(S,function(e){var n=t-(e-c);return f?p(n,s-(e-u)):n}(e))}function w(e){return a=void 0,y&&r?b(e):(r=i=void 0,o)}function T(){var e=h(),n=_(e);if(r=arguments,i=this,c=e,n){if(void 0===a)return v(c);if(f)return a=setTimeout(S,t),b(c)}return void 0===a&&(a=setTimeout(S,t)),o}return t=g(t)||0,m(n)&&(l=!!n.leading,s=(f="maxWait"in n)?d(g(n.maxWait)||0,t):s,y="trailing"in n?!!n.trailing:y),T.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=c=i=a=void 0},T.flush=function(){return void 0===a?o:w(h())},T}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=i.test(e);return a||s.test(e)?o(e.slice(2),a?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),f(e,t,{leading:r,maxWait:t,trailing:i})}}).call(this,n(12))},function(e,t,n){e.exports=function(){"use strict";var e="undefined"==typeof window,t=!1,n=!1,r=!1,i=!1,s=!1,o=!1,a=!1,c=!1,u=!1,l=!1;return e||(t="undefined"!=typeof InstallTrigger,n=!!window.chrome,r=!(!window.chrome||!window.navigator||!window.navigator.plugins||!window.navigator.plugins.namedItem("Chrome PDF Plugin")&&!window.chrome.runtime),i=n&&!window.chrome.webstore&&!window.chrome.runtime,s=0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||window.safari&&window.safari.pushNotification,o=!!window.opr&&!!window.opr.addons||!!window.opera,a=!!window.StyleMedia,c=n&&!!navigator.userAgent.match(/edg/i),u=(r||o)&&!!window.CSS,l=!(n||s||t||o||!document.documentMode)),{get isChrome(){return r},get isChromeOrChromium(){return n},get isChromium(){return i},get isFirefox(){return t},get isSafari(){return s},get isOpera(){return o},get isEdge(){return a},get isEdgeChromium(){return c},get isIE(){return l},get isBlink(){return u}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.definitions=void 0;const r=n(2),i=n(1),s={aliases:["message.propose"],element:"propose",fields:{conversationId:r.attribute("inin-cid"),persistentConversationId:r.attribute("inin-persistent-cid"),sdpOverXmpp:r.booleanAttribute("inin-sdp-over-xmpp"),privAnswerMode:r.attribute("inin-priv-answer-mode"),originalRoomJid:r.attribute("inin-ofrom"),autoAnswer:r.booleanAttribute("inin-autoanswer"),fromUserId:r.attribute("inin-user-id"),sessionId:r.attribute("id"),meetingId:r.attribute("inin-meeting-id")},namespace:"urn:xmpp:jingle-message:0"},o={aliases:["message.proceed"],element:"proceed",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},a={aliases:["message.accept"],element:"accept",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},c={aliases:["message.reject"],element:"reject",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},u={aliases:["message.retract"],element:"retract",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},l={aliases:["iq.jingle.screenstart"],element:"screen-start",namespace:i.NS_JINGLE_RTP_INFO_1},d={aliases:["iq.jingle.screenstop"],element:"screen-stop",namespace:i.NS_JINGLE_RTP_INFO_1},p={path:"iq",namespace:i.NS_CLIENT,element:"iq",fields:{genesysWebrtc:r.childJSON("genesys","genesys-webrtc")}},h={path:"message",namespace:i.NS_CLIENT,element:"message",fields:{mediaMessage:r.childJSON("genesys","media-message")}},f={aliases:["presence.media"],element:"x",fields:{conversationId:r.attribute("conversationId"),sourceCommunicationId:r.attribute("sourceCommunicationId"),screenShare:r.childAttribute(null,"mediastream","screenShare"),video:r.childAttribute(null,"mediastream","video"),audio:r.childAttribute(null,"mediastream","audio"),listener:r.childAttribute(null,"mediastream","listener"),screenRecording:r.childAttribute(null,"mediastream","screenRecording")},namespace:"orgspan:mediastream"};t.definitions=[s,o,a,c,u,l,d,f,p,h]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(32),s=(0,r.__importDefault)(n(270)),o=(0,r.__importDefault)(n(87));t.default=class{constructor(){this.translators=new Map,this.root=new o.default,this.setLanguageResolver(i.basicLanguageResolver)}setLanguageResolver(e){this.languageResolver=e}import(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{registry:this};if(!this.hasTranslator(e.getNamespace(),e.getName()))return;t.acceptLanguages||(t.acceptLanguages=[]),t.acceptLanguages=t.acceptLanguages.map(e=>e.toLowerCase()),t.lang&&(t.lang=t.lang.toLowerCase()),t.resolveLanguage||(t.resolveLanguage=this.languageResolver),t.path=this.getImportKey(e),t.sanitizers||(t.sanitizers={xhtmlim:s.default});return this.getOrCreateTranslator(e.getNamespace(),e.getName()).import(e,{...t,registry:this})}export(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{registry:this};n.acceptLanguages||(n.acceptLanguages=[]),n.acceptLanguages=n.acceptLanguages.map(e=>e.toLowerCase()),n.lang&&(n.lang=n.lang.toLowerCase()),n.sanitizers||(n.sanitizers={xhtmlim:s.default}),n.path=e;const r=e.split(".").filter(e=>""!==e);let i=this.root;for(const e of r){const t=i.getChild(e);if(!t)return;i=t}return i.export(t,{...n,registry:this})}getImportKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t?this.walkToTranslator(t.split(".")):this.root;if(n)return n.getImportKey(e)}define(e){if(Array.isArray(e)){for(const t of e)"object"==typeof t?this.define(t):t(this);return}if("object"!=typeof e)return void e(this);const t=e;t.aliases=t.aliases||[],t.path&&!t.aliases.includes(t.path)&&t.aliases.push(t.path);const n=t.aliases.map(e=>"string"==typeof e?{path:e}:e).sort((e,t)=>{const n=e.path.split(".").length;return t.path.split(".").length-n});let r;if(this.hasTranslator(t.namespace,t.element)&&(r=this.getOrCreateTranslator(t.namespace,t.element)),!r){let e;for(const t of n){const n=this.walkToTranslator(t.path.split("."));if(n&&!n.placeholder){r=n;break}n&&(e=n)}e&&!r&&(r=e,r.placeholder=!1)}r||(r=this.getOrCreateTranslator(t.namespace,t.element)),this.indexTranslator(t.namespace,t.element,r);const i=t.fields||{},s=new Map,o=new Map,a=new Map,c=new Map;t.typeField&&(r.typeField=t.typeField),t.defaultType&&(r.defaultType=t.defaultType),t.versionField&&(r.versionField=t.versionField),t.defaultVersion&&(r.defaultVersion=t.defaultVersion),t.languageField&&(r.languageField=t.languageField);for(const[e,t]of Object.entries(i))s.set(e,t.importer),a.set(e,t.importOrder||t.order||0),o.set(e,t.exporter),c.set(e,t.exportOrder||t.order||0);if(t.childrenExportOrder)for(const[e,n]of Object.entries(t.childrenExportOrder))c.set(e,n||0);const u=new Map;for(const[e,n]of Object.entries(t.optionalNamespaces||{}))u.set(e,n);r.updateDefinition({contexts:new Map,element:t.element,exporterOrdering:c,exporters:o,importerOrdering:a,importers:s,namespace:t.namespace,optionalNamespaces:u,type:t.type,version:t.version,typeOrder:t.typeOrder});for(const e of n)this.alias(t.namespace,t.element,e.path,e.multiple,e.selector,e.contextField,t.type,e.impliedType);for(const e of n){const t=this.walkToTranslator(e.path.split("."));t&&t!==r&&t.replaceWith(r)}}alias(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const c=this.getOrCreateTranslator(e,t);c.placeholder=!1;const u=n.split(".").filter(e=>""!==e),l=u.pop(),d=this.walkToTranslator(u,!0),p=`{${e}}${t}`;o&&(s||a)&&c.addContext(n,i,s,p,o,a),d.addChild(l,c,r,i,p)}walkToTranslator(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.root;for(const r of e){let e=n.getChild(r);if(!e){if(!t)return;e=new o.default,e.placeholder=!0,n.addChild(r,e)}n=e}return n}hasTranslator(e,t){return this.translators.has(`{${e}}${t}`)}getOrCreateTranslator(e,t){let n=this.translators.get(`{${e}}${t}`);return n||(n=new o.default,this.indexTranslator(e,t,n)),n}indexTranslator(e,t,n){this.translators.set(`{${e}}${t}`,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=new Set(["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul"]),i=new Set(["style"]),s=new Map([["a",new Set(["href","style"])],["body",new Set(["style","xml:lang"])],["blockquote",i],["br",i],["cite",i],["em",i],["img",new Set(["alt","height","src","style","width"])],["li",i],["ol",i],["p",i],["span",i],["strong",i],["ul",i]]),o=new Map([["font-style",/normal|italic|oblique|inherit/i],["font-weight",/normal|bold|bolder|lighter|inherit|\d\d\d/i],["text-decoration",/none|underline|overline|line-through|blink|inherit/i]]),a=e=>!!e.match(/^(https?|xmpp|cid|mailto|ftps?|im|ircs?|sips?|tel|geo|bitcoin|magnet):/i)&&e,c=e=>!!e.match(/^[0-9]*$/)&&e,u={alt:e=>e,height:c,href:a,src:a,style:e=>{const t=(";"+e).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/\/\*.*/,"").replace(/\\([a-fA-F0-9]{1,6})\s?/,(e,t)=>String.fromCharCode(parseInt(t,16))).match(/;\s*([a-z-]+)\s*:\s*([^;]*[^\s;])\s*/g),n=[];if(!t)return!1;for(const e of t){const t=e.match(/^;\s*([a-z-]+)\s*:\s*([^;]*[^\s])\s*$/);if(!t)continue;const r=o.get(t[1]);if(r){const e=t[2].match(r);e&&n.push(`${t[1]}:${e[0]}`)}}return!!n.length&&n.join("")},width:c};function l(e){if("string"==typeof e)return e;if(!r.has(e.name)){if("script"===e.name)return;return function(e){let t=[];for(const n of e.children)if("string"==typeof n)t.push(n);else{const e=l(n);e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t}(e)}const t=e.children.map(l).filter(e=>void 0!==e),n={};for(const[t,r]of Object.entries(e.attributes)){const i=s.get(e.name);if(!i||!i.has(t))continue;if(!r)continue;const o=u[t](r);o&&(n[t]=o)}return{attributes:n,children:t,name:e.name}}t.default=function(e){if("string"==typeof e)return;let t=[];for(const n of e.children){if(!n)continue;if("string"==typeof n){t.push(n);continue}const e=l(n);Array.isArray(e)?t=t.concat(e):e&&t.push(e)}const n={};return"body"===e.name?(void 0!==e.attributes.xmlns&&(n.xmlns=e.attributes.xmlns),e.attributes.style&&(n.style=e.attributes.style),void 0!==e.attributes["xml:lang"]&&(n["xml:lang"]=e.attributes["xml:lang"]),{attributes:n,children:t,name:"body"}):void 0}},function(e,t,n){"use strict";n(6),t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),o=r[0],a=r[1],c=new s(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),l=0,d=a>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(l(e,o,o+16383>a?a:o+16383));1===i?(t=e[n-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return s.join("")};for(var r=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a<c;++a)r[a]=o[a],i[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,s,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[(s=i)>>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t,n){"use strict";
|
|
32
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,r,i){var s,o,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,s=h&(1<<-l)-1,h>>=-l,l+=a;l>0;s=256*s+e[t+d],d+=p,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=r;l>0;o=256*o+e[t+d],d+=p,l-=8);if(0===s)s=1-u;else{if(s===c)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),s-=u}return(h?-1:1)*o*Math.pow(2,s-r)},t.write=function(e,t,n,r,i,s){var o,a,c,u=8*s-i-1,l=(1<<u)-1,d=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:s-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=l?(a=0,o=l):o+d>=1?(a=(t*c-1)*Math.pow(2,i),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&a,h+=f,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;e[n+h]=255&o,h+=f,o/=256,u-=8);e[n+h-f]|=128*m}},function(e,t,n){"use strict";var r=n(11).Buffer;t.BufferList=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}concat(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,s=r.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=s,i=a,t.copy(n,i),a+=o.data.length,o=o.next;return s}}},function(e,t,n){"use strict";e.exports=i;var r=n(93);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}Object.create(n(28)).inherits(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(11),s=(0,r.__importDefault)(n(27));function o(e,t){return e<<t|e>>>32-t}function a(e,t,n,r,i,s,a){return o(e+(t&n|~t&r)+i+s|0,a)+t|0}function c(e,t,n,r,i,s,a){return o(e+(t&r|n&~r)+i+s|0,a)+t|0}function u(e,t,n,r,i,s,a){return o(e+(t^n^r)+i+s|0,a)+t|0}function l(e,t,n,r,i,s,a){return o(e+(n^(t|~r))+i+s|0,a)+t|0}class d extends s.default{constructor(){super(64,56,"le"),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._m=new Array(16)}_update(e){const t=this._m;for(let n=0;n<16;++n)t[n]=e.readInt32LE(4*n);let n=this._a,r=this._b,i=this._c,s=this._d;n=a(n,r,i,s,t[0],3614090360,7),s=a(s,n,r,i,t[1],3905402710,12),i=a(i,s,n,r,t[2],606105819,17),r=a(r,i,s,n,t[3],3250441966,22),n=a(n,r,i,s,t[4],4118548399,7),s=a(s,n,r,i,t[5],1200080426,12),i=a(i,s,n,r,t[6],2821735955,17),r=a(r,i,s,n,t[7],4249261313,22),n=a(n,r,i,s,t[8],1770035416,7),s=a(s,n,r,i,t[9],2336552879,12),i=a(i,s,n,r,t[10],4294925233,17),r=a(r,i,s,n,t[11],2304563134,22),n=a(n,r,i,s,t[12],1804603682,7),s=a(s,n,r,i,t[13],4254626195,12),i=a(i,s,n,r,t[14],2792965006,17),r=a(r,i,s,n,t[15],1236535329,22),n=c(n,r,i,s,t[1],4129170786,5),s=c(s,n,r,i,t[6],3225465664,9),i=c(i,s,n,r,t[11],643717713,14),r=c(r,i,s,n,t[0],3921069994,20),n=c(n,r,i,s,t[5],3593408605,5),s=c(s,n,r,i,t[10],38016083,9),i=c(i,s,n,r,t[15],3634488961,14),r=c(r,i,s,n,t[4],3889429448,20),n=c(n,r,i,s,t[9],568446438,5),s=c(s,n,r,i,t[14],3275163606,9),i=c(i,s,n,r,t[3],4107603335,14),r=c(r,i,s,n,t[8],1163531501,20),n=c(n,r,i,s,t[13],2850285829,5),s=c(s,n,r,i,t[2],4243563512,9),i=c(i,s,n,r,t[7],1735328473,14),r=c(r,i,s,n,t[12],2368359562,20),n=u(n,r,i,s,t[5],4294588738,4),s=u(s,n,r,i,t[8],2272392833,11),i=u(i,s,n,r,t[11],1839030562,16),r=u(r,i,s,n,t[14],4259657740,23),n=u(n,r,i,s,t[1],2763975236,4),s=u(s,n,r,i,t[4],1272893353,11),i=u(i,s,n,r,t[7],4139469664,16),r=u(r,i,s,n,t[10],3200236656,23),n=u(n,r,i,s,t[13],681279174,4),s=u(s,n,r,i,t[0],3936430074,11),i=u(i,s,n,r,t[3],3572445317,16),r=u(r,i,s,n,t[6],76029189,23),n=u(n,r,i,s,t[9],3654602809,4),s=u(s,n,r,i,t[12],3873151461,11),i=u(i,s,n,r,t[15],530742520,16),r=u(r,i,s,n,t[2],3299628645,23),n=l(n,r,i,s,t[0],4096336452,6),s=l(s,n,r,i,t[7],1126891415,10),i=l(i,s,n,r,t[14],2878612391,15),r=l(r,i,s,n,t[5],4237533241,21),n=l(n,r,i,s,t[12],1700485571,6),s=l(s,n,r,i,t[3],2399980690,10),i=l(i,s,n,r,t[10],4293915773,15),r=l(r,i,s,n,t[1],2240044497,21),n=l(n,r,i,s,t[8],1873313359,6),s=l(s,n,r,i,t[15],4264355552,10),i=l(i,s,n,r,t[6],2734768916,15),r=l(r,i,s,n,t[13],1309151649,21),n=l(n,r,i,s,t[4],4149444226,6),s=l(s,n,r,i,t[11],3174756917,10),i=l(i,s,n,r,t[2],718787259,15),r=l(r,i,s,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+s|0}_hash(){const e=i.Buffer.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(11),s=(0,r.__importDefault)(n(27)),o=[1518500249,1859775393,-1894007588,-899497514];function a(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}class l extends s.default{constructor(){super(64,56),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this._w=new Array(80)}_update(e){const t=this._w;let n,r=0|this._a,i=0|this._b,s=0|this._c,l=0|this._d,d=0|this._e;for(n=0;n<16;++n)t[n]=e.readInt32BE(4*n);for(;n<80;++n)t[n]=(p=t[n-3]^t[n-8]^t[n-14]^t[n-16])<<1|p>>>31;var p;for(let e=0;e<80;++e){const n=~~(e/20),p=a(r)+u(n,i,s,l)+d+t[e]+o[n]|0;d=l,l=s,s=c(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=l+this._d|0,this._e=d+this._e|0}_hash(){const e=i.Buffer.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(11),s=(0,r.__importDefault)(n(27)),o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function a(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function u(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function l(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}class p extends s.default{constructor(){super(64,56),this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this._w=new Array(64)}_update(e){const t=this._w;let n,r=0|this._a,i=0|this._b,s=0|this._c,p=0|this._d,h=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h;for(n=0;n<16;++n)t[n]=e.readInt32BE(4*n);for(;n<64;++n)t[n]=0|(((y=t[n-2])>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+t[n-7]+d(t[n-15])+t[n-16];var y;for(let e=0;e<64;++e){const n=g+l(h)+a(h,f,m)+o[e]+t[e]|0,d=u(r)+c(r,i,s)|0;g=m,m=f,f=h,h=p+n|0,p=s,s=i,i=r,r=n+d|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=p+this._d|0,this._e=h+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0}_hash(){const e=i.Buffer.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e}}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(11),s=(0,r.__importDefault)(n(27)),o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function a(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function l(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function f(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function m(e,t){return e>>>0<t>>>0?1:0}class g extends s.default{constructor(){super(128,112),this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this._w=new Array(160)}_update(e){const t=this._w;let n,r,i=0|this._ah,s=0|this._bh,g=0|this._ch,y=0|this._dh,b=0|this._eh,v=0|this._fh,_=0|this._gh,S=0|this._hh,w=0|this._al,T=0|this._bl,I=0|this._cl,A=0|this._dl,N=0|this._el,E=0|this._fl,x=0|this._gl,R=0|this._hl,C=0;for(C=0;C<32;C+=2)t[C]=e.readInt32BE(4*C),t[C+1]=e.readInt32BE(4*C+4);for(;C<160;C+=2){let e=t[C-30],i=t[C-30+1];const s=d(e,i),o=p(i,e);e=t[C-4],i=t[C-4+1];const a=h(e,i),c=f(i,e),u=t[C-14],l=t[C-14+1],g=t[C-32],y=t[C-32+1];r=o+l|0,n=s+u+m(r,o)|0,r=r+c|0,n=n+a+m(r,c)|0,r=r+y|0,n=n+g+m(r,y)|0,t[C]=n,t[C+1]=r}for(let e=0;e<160;e+=2){n=t[e],r=t[e+1];const d=c(i,s,g),p=c(w,T,I),h=u(i,w),f=u(w,i),C=l(b,N),O=l(N,b),P=o[e],k=o[e+1],j=a(b,v,_),M=a(N,E,x);let L=R+O|0,D=S+C+m(L,R)|0;L=L+M|0,D=D+j+m(L,M)|0,L=L+k|0,D=D+P+m(L,k)|0,L=L+r|0,D=D+n+m(L,r)|0;const B=f+p|0,F=h+d+m(B,f)|0;S=_,R=x,_=v,x=E,v=b,E=N,N=A+L|0,b=y+D+m(N,A)|0,y=g,A=I,g=s,I=T,s=i,T=w,w=L+B|0,i=D+F+m(w,L)|0}this._al=this._al+w|0,this._bl=this._bl+T|0,this._cl=this._cl+I|0,this._dl=this._dl+A|0,this._el=this._el+N|0,this._fl=this._fl+E|0,this._gl=this._gl+x|0,this._hl=this._hl+R|0,this._ah=this._ah+i+m(this._al,w)|0,this._bh=this._bh+s+m(this._bl,T)|0,this._ch=this._ch+g+m(this._cl,I)|0,this._dh=this._dh+y+m(this._dl,A)|0,this._eh=this._eh+b+m(this._el,N)|0,this._fh=this._fh+v+m(this._fl,E)|0,this._gh=this._gh+_+m(this._gl,x)|0,this._hh=this._hh+S+m(this._hl,R)|0}_hash(){const e=i.Buffer.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e}}t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(11),s=n(53),o=(0,r.__importDefault)(n(88)),a=i.Buffer.alloc(128);class c extends s.Transform{constructor(e,t){super(),"string"==typeof t&&(t=i.Buffer.from(t));const n="sha512"===e?128:64;this._alg=e,t.length>n?t=(0,o.default)(e).update(t).digest():t.length<n&&(t=i.Buffer.concat([t,a],n)),this._ipad=i.Buffer.alloc(n),this._opad=i.Buffer.alloc(n);for(let e=0;e<n;e++)this._ipad[e]=54^t[e],this._opad[e]=92^t[e];this._hash=(0,o.default)(e).update(this._ipad)}_transform(e,t,n){let r;try{this.update(e,t)}catch(e){r=e}finally{n(r)}}_flush(e){let t;try{this.push(this._final())}catch(e){t=e}e(t)}_final(){const e=this._hash.digest();return(0,o.default)(this._alg).update(this._opad).update(e).digest()}update(e,t){return this._hash.update(e,t),this}digest(e){const t=this._final()||i.Buffer.alloc(0);return e?t.toString(e):t}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubsubItemContentAliases=t.extendStanzaError=t.extendStreamFeatures=t.extendIQ=t.extendPresence=t.extendMessage=t.addAlias=t.childJID=t.childJIDAttribute=t.JIDAttribute=void 0;const r=n(1),i=n(52);t.JIDAttribute=i.attribute,t.childJIDAttribute=i.childAttribute,t.childJID=i.childText,t.addAlias=function(e,t,n){return{aliases:Array.isArray(n)?n:[n],element:t,fields:{},namespace:e}},t.extendMessage=function(e){return{element:"message",fields:e,namespace:r.NS_CLIENT}},t.extendPresence=function(e){return{element:"presence",fields:e,namespace:r.NS_CLIENT}},t.extendIQ=function(e){return{element:"iq",fields:e,namespace:r.NS_CLIENT}},t.extendStreamFeatures=function(e){return{element:"features",fields:e,namespace:r.NS_STREAM}},t.extendStanzaError=function(e){return{element:"error",fields:e,namespace:r.NS_STANZAS,path:"stanzaError"}},t.pubsubItemContentAliases=function(){return[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(9),s=(0,r.__importDefault)(n(31)),o=(0,r.__importDefault)(n(51)),a=(0,r.__importDefault)(n(54));class c extends i.Transform{constructor(e){super({objectMode:!0}),this.closedStream=!1,this.wrappedStream=!1,this.registry=e.registry,this.acceptLanguages=e.acceptLanguages||[],e.wrappedStream&&(this.wrappedStream=!0,this.rootImportKey=e.rootKey),this.parser=new a.default({allowComments:e.allowComments}),this.parser.on("error",e=>{this.destroy(e)}),this.parser.on("startElement",(e,t)=>{if(this.destroyed)return;if(this.closedStream)return this.destroy(o.default.alreadyClosed());const n=new s.default(e,t),r=this.registry.getImportKey(n);if(this.wrappedStream&&!this.rootElement){if(this.rootImportKey&&r!==this.rootImportKey)return this.destroy(o.default.unknownRoot());const e=this.registry.import(n,{acceptLanguages:this.acceptLanguages,lang:this.lang});return e?(this.rootElement=n,void this.push({event:"stream-start",kind:r,stanza:e,xml:n})):this.destroy(o.default.notWellFormed())}this.currentElement?this.currentElement=this.currentElement.appendChild(n):this.currentElement=n}),this.parser.on("endElement",e=>{if(!this.destroyed){if(this.wrappedStream&&!this.currentElement)return this.rootElement&&e===this.rootElement.name?(this.closedStream=!0,this.push({event:"stream-end",kind:this.rootImportKey,stanza:{},xml:this.rootElement}),this.end()):(this.closedStream=!0,this.destroy(o.default.notWellFormed()));if(!this.currentElement||e!==this.currentElement.name)return this.closedStream=!0,this.destroy(o.default.notWellFormed());if(this.currentElement.parent)this.currentElement=this.currentElement.parent;else{this.wrappedStream&&(this.currentElement.parent=this.rootElement);const e=this.registry.getImportKey(this.currentElement),t=this.registry.import(this.currentElement,{acceptLanguages:this.acceptLanguages,lang:this.lang});t&&this.push({kind:e,stanza:t,xml:this.currentElement}),this.currentElement=void 0}}}),this.parser.on("text",e=>{this.currentElement&&this.currentElement.children.push(e)})}_transform(e,t,n){this.parser.write(e.toString()),n()}}t.default=c},function(e,t,n){"use strict";function r(e){return"getStats"===e.name}function i(e){let t={};return Object.assign(t,s(e.tracks,"localTrack")),delete e.tracks,Object.assign(t,s(e.remoteTracks,"remoteTrack")),delete e.remoteTracks,t}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={};if(Array.isArray(e))for(let r=0;r<e.length;r++)Object.assign(n,s(e[r],`${t}_[${r}]`));else"object"!=typeof e?n[t]=e:Object.keys(e).filter(e=>"ip"!==e.toLowerCase()).forEach(r=>{const i=e[r],o=t?`${t}_${r}`:r;"object"==typeof i||Array.isArray(i)?Object.assign(n,s(i,o)):n[o]=i});return n}Object.defineProperty(t,"__esModule",{value:!0}),t.deepFlatten=t.formatStatsEvent=void 0,t.formatStatsEvent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={_eventType:e.name,_eventTimestamp:(new Date).getTime(),...t};r(e)&&Object.assign(n,i(e)),Object.assign(n,s(e)),delete n.name;const o={actionName:"WebrtcStats",details:n};return o},t.deepFlatten=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(7),s=n(5),o=n(1),a=n(9),c=n(13),u=(0,r.__importDefault)(n(94)),l=(0,r.__importDefault)(n(96)),d=(0,r.__importDefault)(n(59));class p extends i.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),e=e||{},this.selfID=e.selfID,this.sessions={},this.peers={},this.iceServers=e.iceServers||[],this.prepareSession=e.prepareSession||(e=>{if(this.config.hasRTCPeerConnection)return e.applicationTypes.indexOf(o.NS_JINGLE_RTP_1)>=0?new l.default(e):e.applicationTypes.indexOf(o.NS_JINGLE_FILE_TRANSFER_5)>=0?new u.default(e):void 0}),this.performTieBreak=e.performTieBreak||((e,t)=>{const n=(t.jingle.contents||[]).map(e=>{if(e.application)return e.application.applicationType});return(e.pendingApplicationTypes||[]).filter(e=>n.includes(e)).length>0}),this.createPeerConnection=e.createPeerConnection||((e,t)=>{if(a.RTCPeerConnection)return new a.RTCPeerConnection(t)}),this.config={debug:!1,hasRTCPeerConnection:!!a.RTCPeerConnection,peerConnectionConfig:{bundlePolicy:e.bundlePolicy||"balanced",iceTransportPolicy:e.iceTransportPolicy||"all",rtcpMuxPolicy:e.rtcpMuxPolicy||"require",sdpSemantics:e.sdpSemantics},peerConnectionConstraints:{optional:[{DtlsSrtpKeyAgreement:!0},{RtpDataChannels:!1}]},...e}}addICEServer(e){if("string"==typeof e)return void this.iceServers.push({urls:e});if(!(t=e).type&&(t.urls||t.url))return void this.iceServers.push(e);var t;let n=e.host||"";n.indexOf(":")>=0&&(n=`[${n}]`);let r=`${e.type}:${n}`;e.port&&(r+=":"+e.port),e.transport&&(r+="?transport="+e.transport),"turn"===e.type||"turns"===e.type?this.iceServers.push({credential:e.password,urls:[r],username:e.username}):"stun"!==e.type&&"stuns"!==e.type||this.iceServers.push({urls:[r]})}resetICEServers(){this.iceServers=[]}addSession(e){e.parent=this;const t=e.sid,n=e.peerID;return this.sessions[t]=e,this.peers[n]||(this.peers[n]=[]),this.peers[n].push(e),this.emit("createdSession",e),e}forgetSession(e){const t=this.peers[e.peerID]||[];t.length&&t.splice(t.indexOf(e),1),delete this.sessions[e.sid]}createMediaSession(e,t,n){const r=new l.default({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t,stream:n});return this.addSession(r),r}createFileTransferSession(e,t){const n=new u.default({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t});return this.addSession(n),n}endPeerSessions(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.peers[e]||[];delete this.peers[e];for(const e of r)e.end(t||"gone",n)}endAllSessions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(const n of Object.keys(this.peers))this.endPeerSessions(n,e,t)}process(e){const t=e.jingle?e.jingle.sid:void 0;let n=t?this.sessions[t]:void 0;const r=e.id,i=e.from;if(!i)return;if("error"===e.type){if(this._log("error","Received error response",e),n&&e.error&&"unknown-session"===e.error.jingleError)return n.end("gone",!0);const t=e.error&&"tie-break"===e.error.jingleError;return n&&"pending"===n.state&&t?n.end("alternative-session",!0):void(n&&(n.pendingAction=void 0))}if("result"===e.type)return void(n&&(n.pendingAction=void 0));const o=e.jingle.action,a=e.jingle.contents||[],u=a.map(e=>e.application?e.application.applicationType:void 0),l=a.map(e=>e.transport?e.transport.transportType:void 0);if(o!==s.JingleAction.SessionInitiate){if(!n)return"session-terminate"===o?void this.emit("send",{id:r,to:i,type:"result"}):(this._log("error","Unknown session",t),this._sendError(i,r,{condition:"item-not-found",jingleError:"unknown-session"}));if(n.peerID!==i||"ended"===n.state)return this._log("error","Session has ended, or action has wrong sender"),this._sendError(i,r,{condition:"item-not-found",jingleError:"unknown-session"});if("session-accept"===o&&"pending"!==n.state)return this._log("error","Tried to accept session twice",t),this._sendError(i,r,{condition:"unexpected-request",jingleError:"out-of-order"});if("session-terminate"!==o&&o===n.pendingAction&&(this._log("error","Tie break during pending request"),n.isInitiator))return this._sendError(i,r,{condition:"conflict",jingleError:"tie-break"})}else if(n){if(n.peerID!==i)return this._log("error","Duplicate sid from new sender"),this._sendError(i,r,{condition:"service-unavailable"});if("pending"!==n.state)return this._log("error","Someone is doing this wrong"),this._sendError(i,r,{condition:"unexpected-request",jingleError:"out-of-order"});if(this.selfID&&this.selfID>n.peerID&&this.performTieBreak(n,e))return this._log("error","Tie break new session because of duplicate sids"),this._sendError(i,r,{condition:"conflict",jingleError:"tie-break"})}else if(this.peers[i]&&this.peers[i].length)for(let n=0,s=this.peers[i].length;n<s;n++){const s=this.peers[i][n];if(s&&"pending"===s.state&&t&&(0,c.octetCompare)(s.sid,t)>0&&this.performTieBreak(s,e))return this._log("info","Tie break session-initiate"),this._sendError(i,r,{condition:"conflict",jingleError:"tie-break"})}if("session-initiate"===o){if(!a.length)return this._sendError(i,r,{condition:"bad-request"});n=this._createIncomingSession({applicationTypes:u,config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!1,parent:this,peerID:i,sid:t,transportTypes:l},e)}n.process(o,e.jingle,t=>{t?(this._log("error","Could not process request",e,t),this._sendError(i,r,t)):(this.emit("send",{id:r,to:i,type:"result"}),"session-initiate"===o&&this.emit("incoming",n))})}signal(e,t){const n=t.jingle&&t.jingle.action;e.isInitiator&&n===s.JingleAction.SessionInitiate&&this.emit("outgoing",e),this.emit("send",t)}_createIncomingSession(e,t){let n;return this.prepareSession&&(n=this.prepareSession(e,t)),n||(n=new d.default(e)),this.addSession(n),n}_sendError(e,t,n){n.type||(n.type="cancel"),this.emit("send",{error:n,id:t,to:e,type:"error"})}_log(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this.emit("log",e,t,...r),this.emit("log:"+e,t,...r)}}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ping=void 0;t.Ping=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.client=e,this.stanzaInstance=t,this.options=n,this.pingInterval=n.pingInterval||14e3,this.failedPingsBeforeDisconnect=n.failedPingsBeforeDisconnect||1,this.numberOfFailedPings=0,this.nextPingTimeoutId=void 0,this.start()}start(){this.nextPingTimeoutId||(this.nextPingTimeoutId=-1,this.queueNextPing())}stop(){clearTimeout(this.nextPingTimeoutId),this.nextPingTimeoutId=void 0,this.numberOfFailedPings=0}async performPing(){var e;try{await this.stanzaInstance.ping(this.options.jid),this.numberOfFailedPings=0,this.queueNextPing()}catch(t){const n={channelId:this.client.config.channelId,jid:this.stanzaInstance.jid,stanzaInstanceId:this.stanzaInstance.id};this.client.logger.warn("Missed a ping.",Object.assign({error:t},n)),++this.numberOfFailedPings>this.failedPingsBeforeDisconnect?(this.client.logger.error("Missed too many pings, disconnecting",Object.assign({numberOfFailedPings:this.numberOfFailedPings},n)),this.stanzaInstance.sendStreamError({text:"too many missed pongs",condition:"connection-timeout"}),this.stop(),null===(e=this.stanzaInstance.transport)||void 0===e||e.disconnect(!1)):this.queueNextPing()}}queueNextPing(){this.nextPingTimeoutId&&(this.nextPingTimeoutId=setTimeout(this.performPing.bind(this),this.pingInterval))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerMonitor=void 0;t.ServerMonitor=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.client=e,this.stanzaInstance=t,this.stanzaTimeout=n.stanzaTimeout||7e4,this.timeoutId=void 0,this.start()}start(){this.boundSetupStanzaTimeout=this.setupStanzaTimeout.bind(this),this.client.on("connected",this.boundSetupStanzaTimeout),this.stanzaInstance.on("raw:incoming",this.boundSetupStanzaTimeout)}stop(){clearTimeout(this.timeoutId),this.timeoutId=void 0,this.boundSetupStanzaTimeout&&(this.client.off("connected",this.boundSetupStanzaTimeout),this.stanzaInstance.off("raw:incoming",this.boundSetupStanzaTimeout),this.boundSetupStanzaTimeout=void 0)}setupStanzaTimeout(){clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{var e;const t={channelId:this.client.config.channelId,jid:this.stanzaInstance.jid,stanzaInstanceId:this.stanzaInstance.id,timeout:this.stanzaTimeout};this.client.logger.error("Time between XMPP stanzas exceeded timeout, disconnecting",t),this.stanzaInstance.sendStreamError({text:"time between stanzas exceeded timeout",condition:"connection-timeout"}),this.stop(),null===(e=this.stanzaInstance.transport)||void 0===e||e.disconnect(!1)},this.stanzaTimeout)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionManager=void 0;const r=n(21),i=n(288),s=n(24),o=r.__importDefault(n(201)),a=n(16);t.ConnectionManager=class{constructor(e,t){this.logger=e,this.config=t}setConfig(e){this.config=e}async getNewStanzaConnection(){const e=this.getStanzaOptions(),t=i.createClient({});t.sasl.mechanisms.find(e=>"ANONYMOUS"===e.name).priority=0,t.sasl.mechanisms=t.sasl.mechanisms.sort((e,t)=>t.priority-e.priority),t.id=s.v4();const n=t.channelId=this.config.channelId;let r,o,c,u;const l=a.timeoutPromise((n,i)=>{r=this.checkForErrorStanza.bind(this,t),t.on("raw:incoming",r),o=this.handleSessionStarted.bind(this,t,n),t.on("session:started",o),c=this.handleSessionSasl.bind(this,t,i),t.on("sasl",c),u=this.handleSessionDisconnected.bind(this,t,i),t.on("disconnected",u),t.updateConfig(e),t.connect()},15e3,"connecting to streaming service",{channelId:n,stanzaInstanceId:t.id});return l.catch(()=>t.disconnect()),l.finally(()=>{t.off("raw:incoming",r),t.off("session:started",o),t.off("sasl",c),t.off("disconnected",u)})}handleSessionStarted(e,t){this.logger.info("new stanza instance connected",{stanzaInstanceId:e.id,channelId:e.channelId}),t(e)}handleSessionSasl(e,t,n){"failure"===n.type&&t(new o.default(n.condition,e.channelId,e.id))}handleSessionDisconnected(e,t){this.logger.error("stanza disconnected",{stanzaInstanceId:e.id,channelId:e.channelId}),t()}checkForErrorStanza(e,t){t.includes("error")&&this.logger.error("Received a stanza during setup that tripped the error filter",{rawStanza:t,stanzaInstanceId:e.id,channelId:e.channelId})}getStanzaOptions(){return this.config.jwt?this.getJwtOptions():this.getStandardOptions()}getJwtOptions(){const e=this.config,t=a.parseJwt(e.jwt);let n;try{n=t.data.jid.split("@")[1].replace("conference.","")}catch(e){throw new Error("failed to parse jid")}let r=e.host.replace(/\/$/,"");return{resource:e.jidResource,transports:{websocket:`${r}/stream/jwt/${e.jwt}`},server:n}}getStandardOptions(){const e=this.config;let t=e.host.replace(/\/$/,"");return{jid:e.jid,resource:e.jidResource,credentials:{username:e.jid,password:"authKey:"+e.authToken},transports:{websocket:`${t}/stream/channels/${e.channelId}`}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=t.VERSION=t.Platform=t.SASL=t.RTT=t.RSM=t.Utils=t.Jingle=t.Stanzas=t.Namespaces=t.JID=t.JXT=t.DataForms=t.Constants=t.Client=void 0;const r=n(4),i=(0,r.__importDefault)(n(289));t.Client=i.default;const s=(0,r.__importStar)(n(5));t.Constants=s;const o=(0,r.__importStar)(n(295));t.RTT=o;const a=(0,r.__importStar)(n(10));t.JID=a;const c=(0,r.__importStar)(n(56));t.Jingle=c;const u=(0,r.__importStar)(n(2));t.JXT=u;const l=(0,r.__importStar)(n(100));t.SASL=l;const d=(0,r.__importStar)(n(1));t.Namespaces=d;const p=(0,r.__importStar)(n(120));t.Stanzas=p;const h=(0,r.__importStar)(n(13));t.Utils=h;const f=(0,r.__importStar)(n(9));t.Platform=f,(0,r.__exportStar)(n(99),t);const m=(0,r.__importStar)(n(296));t.RSM=m;const g=(0,r.__importStar)(n(112));t.DataForms=g,t.VERSION=s.VERSION;const y=(0,r.__importDefault)(n(62));(0,r.__exportStar)(n(62),t),t.createClient=function(e){const t=new i.default(e);return t.use(y.default),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(60),s=n(7),o=(0,r.__importDefault)(n(99)),a=(0,r.__importStar)(n(10)),c=(0,r.__importStar)(n(2)),u=(0,r.__importStar)(n(100)),l=n(62),d=(0,r.__importDefault)(n(120)),p=(0,r.__importDefault)(n(292)),h=(0,r.__importDefault)(n(293)),f=n(13),m=(0,r.__importDefault)(n(294));class g extends s.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.reconnectAttempts=0,this.setMaxListeners(100),this.off=this.removeListener,this.updateConfig(e),this.jid="",this.sasl=new u.Factory,this.sasl.register("EXTERNAL",u.EXTERNAL,1e3),this.sasl.register("SCRAM-SHA-256-PLUS",u.SCRAM,350),this.sasl.register("SCRAM-SHA-256",u.SCRAM,300),this.sasl.register("SCRAM-SHA-1-PLUS",u.SCRAM,250),this.sasl.register("SCRAM-SHA-1",u.SCRAM,200),this.sasl.register("DIGEST-MD5",u.DIGEST,100),this.sasl.register("OAUTHBEARER",u.OAUTH,100),this.sasl.register("X-OAUTH2",u.PLAIN,50),this.sasl.register("PLAIN",u.PLAIN,1),this.sasl.register("ANONYMOUS",u.ANONYMOUS,0),this.stanzas=new c.Registry,this.stanzas.define(d.default),this.resolver=new m.default,this.use(l.core),this.sm=new o.default,void 0!==this.config.allowResumption&&(this.sm.allowResume=this.config.allowResumption),this.sm.on("prebound",e=>{this.jid=e,this.emit("session:bound",e)}),this.on("session:bound",e=>this.sm.bind(e)),this.sm.on("send",e=>this.send("sm",e)),this.sm.on("acked",e=>this.emit("stanza:acked",e)),this.sm.on("failed",e=>this.emit("stanza:failed",e)),this.sm.on("hibernated",e=>this.emit("stanza:hibernated",e)),this.sm.on("begin-resend",()=>this.outgoingDataQueue.pause()),this.sm.on("resend",e=>{let{kind:t,stanza:n}=e;return this.send(t,n,!0)}),this.sm.on("end-resend",()=>this.outgoingDataQueue.resume());for(const e of["acked","hibernated","failed"])this.on("stanza:"+e,t=>{"message"===t.kind&&this.emit("message:"+e,t.stanza)});this.transports={bosh:p.default,websocket:h.default},this.incomingDataQueue=(0,i.priorityQueue)(async(e,t)=>{const{kind:n,stanza:r}=e;this.emit(n,r),r.id&&this.emit(n+":id:"+r.id,r),"message"===n||"presence"===n||"iq"===n?(this.emit("stanza",r),await this.sm.handle()):"sm"===n&&("ack"===r.type&&(await this.sm.process(r),this.emit("stream:management:ack",r)),"request"===r.type&&this.sm.ack()),t&&t()},1);const t=(e,t)=>{["message","presence","iq"].includes(e)&&(this.sm.started&&this.sm.resumable?this.sm.resumable&&!this.transport&&this.emit("stanza:hibernated",{kind:e,stanza:t}):this.emit("stanza:failed",{kind:e,stanza:t}))};this.outgoingDataQueue=(0,i.priorityQueue)(async(e,n)=>{var r;const{kind:i,stanza:s,replay:o}=e,a=o||await this.sm.track(i,s);if("message"===i&&(o?this.emit("message:retry",s):this.emit("message:sent",s,!1)),this.transport)try{await this.transport.send(i,s),a&&(null===(r=this.transport)||void 0===r||r.send("sm",{type:"request"}))}catch(e){console.error(e),t(i,s)}else t(i,s);n&&n()},1),this.on("stream:data",(e,t)=>{this.incomingDataQueue.push({kind:t,stanza:e},0)}),this.on("--transport-disconnected",async()=>{const e=[];this.incomingDataQueue.idle()||e.push(this.incomingDataQueue.drain()),this.outgoingDataQueue.idle()||e.push(this.outgoingDataQueue.drain()),await Promise.all(e),await this.sm.hibernate(),this.transport&&delete this.transport,this.emit("--reset-stream-features"),!this.sessionTerminating&&this.config.autoReconnect&&(this.reconnectAttempts+=1,clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(()=>{this.connect()},1e3*Math.min(Math.pow(2,this.reconnectAttempts)+Math.random(),this.config.maxReconnectBackoff||32))),this.emit("disconnected")}),this.on("iq",e=>{const t=e.type,n=e.payloadType,r="iq:"+t+":"+n;if("get"===t||"set"===t){if("invalid-payload-count"===n)return this.sendIQError(e,{error:{condition:"bad-request",type:"modify"}});if("unknown-payload"===n||0===this.listenerCount(r))return this.sendIQError(e,{error:{condition:"service-unavailable",type:"cancel"}});this.emit(r,e)}}),this.on("message",e=>{const t=e.alternateLanguageBodies&&e.alternateLanguageBodies.length||e.links&&e.links.length,n=e.marker&&"markable"!==e.marker.type;t&&!n&&("chat"===e.type||"normal"===e.type?this.emit("chat",e):"groupchat"===e.type&&this.emit("groupchat",e)),"error"===e.type&&this.emit("message:error",e)}),this.on("presence",e=>{let t=e.type||"available";"error"===t&&(t="presence:error"),this.emit(t,e)}),this.on("session:started",()=>{this.sessionStarting=!1,this.reconnectAttempts=0,this.reconnectTimer&&clearTimeout(this.reconnectTimer)})}updateConfig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;const n=this.config||{};this.config={allowResumption:!0,jid:"",transports:{bosh:!0,websocket:!0},useStreamManagement:!0,transportPreferenceOrder:["websocket","bosh"],...n,...e},this.config.server||(this.config.server=a.getDomain(this.config.jid)),this.config.password&&(this.config.credentials=this.config.credentials||{},this.config.credentials.password=this.config.password,delete this.config.password),this.config.transportPreferenceOrder||(this.config.transportPreferenceOrder=Object.keys(null!==(t=this.config.transports)&&void 0!==t?t:{}))}get stream(){return this.transport?this.transport.stream:void 0}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=super.emit(e,...n);return"raw"===e?(super.emit("raw:"+n[0],n[1]),super.emit("raw:*","raw:"+n[0],n[1]),super.emit("*","raw:"+n[0],n[1])):super.emit("*",e,...n),i}use(e){"function"==typeof e&&e(this,this.stanzas,this.config)}nextId(){return(0,f.uuid)()}async getCredentials(){return this._getConfiguredCredentials()}async connect(){var e,t,n;this.sessionTerminating=!1,this.sessionStarting=!0,this.emit("--reset-stream-features"),this.transport&&this.transport.disconnect(!1);const r=null!==(e=this.config.transportPreferenceOrder)&&void 0!==e?e:[];let i;for(const e of r){const r=this.config.transports[e];if(!r||!this.transports[e])continue;let s={acceptLanguages:this.config.acceptLanguages||[null!==(t=this.config.lang)&&void 0!==t?t:"en"],jid:this.config.jid,lang:null!==(n=this.config.lang)&&void 0!==n?n:"en",server:this.config.server};const o=new this.transports[e](this,this.sm,this.stanzas);if("string"==typeof r)s.url=r;else if(1==r)if(o.discoverBindings){const e=await o.discoverBindings(this.config.server);if(!e)continue;s={...s,...e}}else{if(!i)try{i=await this.discoverBindings(this.config.server)}catch(e){console.error(e);continue}if(i[e]=(i[e]||[]).filter(e=>e.startsWith("wss:")||e.startsWith("https:")),!i[e]||!i[e].length)continue;s.url=i[e][0]}return this.transport=o,void this.transport.connect(s)}console.error("No endpoints found for the requested transports."),this.emit("--transport-disconnected")}async disconnect(){this.sessionTerminating=!0,clearTimeout(this.reconnectTimer),this.outgoingDataQueue.pause(),this.sessionStarted&&!this.sm.started&&this.emit("session:end"),this.emit("--reset-stream-features"),this.sessionStarted=!1,this.transport?this.transport.disconnect():this.emit("--transport-disconnected"),this.outgoingDataQueue.resume(),this.outgoingDataQueue.idle()||await this.outgoingDataQueue.drain(),await this.sm.shutdown()}async send(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((r,i)=>{this.outgoingDataQueue.push({kind:e,stanza:t,replay:n},n?0:1,e=>e?i(e):r())})}sendMessage(e){const t=e.id||this.nextId(),n={id:t,originId:t,...e};return this.send("message",n),n.id}sendPresence(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={id:this.nextId(),...e};return this.send("presence",t),t.id}sendIQ(e){const t={id:this.nextId(),...e},n=a.allowedResponders(this.jid,e.to),r="iq:id:"+t.id,i=new Promise((e,t)=>{const i=s=>{n.has(s.from)&&("result"!==s.type&&"error"!==s.type||(this.off(r,i),"result"===s.type?e(s):t(s)))};this.on(r,i)});this.send("iq",t);const s=this.config.timeout||15;return(0,f.timeoutPromise)(i,1e3*s,()=>({...t,to:void 0,from:void 0,error:{condition:"timeout",text:`Request timed out after ${s} seconds.`},id:t.id,type:"error"}))}sendIQResult(e,t){this.send("iq",{...t,id:e.id,to:e.from,type:"result"})}sendIQError(e,t){this.send("iq",{...t,id:e.id,to:e.from,type:"error"})}sendStreamError(e){this.emit("stream:error",e),this.send("error",e),this.disconnect()}_getConfiguredCredentials(){const e=this.config.credentials||{},t=a.parse(this.config.jid||""),n=e.username||t.local,r=e.host||t.domain;return{host:r,password:this.config.password,realm:r,serviceName:r,serviceType:"xmpp",username:n,...e}}}t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,n(4).__importStar)(n(291));t.default=class{constructor(){this.capsAlgorithms=["sha-1"],this.features=new Map,this.identities=new Map,this.extensions=new Map,this.items=new Map,this.caps=new Map,this.features.set("",new Set),this.identities.set("",[]),this.extensions.set("",[])}getNodeInfo(e){return{extensions:[...this.extensions.get(e)||[]],features:[...this.features.get(e)||[]],identities:[...this.identities.get(e)||[]]}}addFeature(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.features.has(t)||this.features.set(t,new Set),this.features.get(t).add(e)}addIdentity(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.identities.has(t)||this.identities.set(t,[]),this.identities.get(t).push(e)}addItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.items.has(t)||this.items.set(t,[]),this.items.get(t).push(e)}addExtension(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.extensions.has(t)||this.extensions.set(t,[]),this.extensions.get(t).push(e)}updateCaps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.capsAlgorithms;const n={extensions:[...this.extensions.get("")],features:[...this.features.get("")],identities:[...this.identities.get("")],type:"info"};for(const i of t){const t=r.generate(n,i);if(!t){this.caps.delete(i);continue}this.caps.set(i,{algorithm:i,node:e,value:t});const s=`${e}#${t}`;for(const e of n.features)this.addFeature(e,s);for(const e of n.identities)this.addIdentity(e,s);for(const e of n.extensions)this.addExtension(e,s);this.identities.set(s,n.identities),this.features.set(s,new Set(n.features)),this.extensions.set(s,n.extensions)}return[...this.caps.values()]}getCaps(){return[...this.caps.values()]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verify=t.generate=void 0;const r=n(9),i=n(13);function s(e){return r.Buffer.from(e.replace(/</g,"<"),"utf-8")}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];for(const n of e)"FORM_TYPE"!==n.name&&(n.rawValues?t.push({name:s(n.name),values:n.rawValues.map(e=>s(e)).sort(i.octetCompare)}):Array.isArray(n.value)?t.push({name:s(n.name),values:n.value.map(e=>s(e)).sort(i.octetCompare)}):!0===n.value||!1===n.value?t.push({name:s(n.name),values:[s(n.value?"1":"0")]}):t.push({name:s(n.name),values:[s(n.value||"")]}));t.sort((e,t)=>(0,i.octetCompare)(e.name,t.name));const n=[];for(const e of t){n.push(e.name);for(const t of e.values)n.push(t)}return n}function a(e,t){const n=[],a=r.Buffer.from("<","utf8"),c=e=>{n.push(e),n.push(a)},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=new Set;for(const{category:r,type:i,lang:o,name:a}of e){const e=`${r}/${i}/${o||""}/${a||""}`;if(n.has(e))return null;n.add(e),t.push(s(e))}return t.sort(i.octetCompare),t}(e.identities),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=new Set;for(const r of e){if(n.has(r))return null;n.add(r),t.push(s(r))}return t.sort(i.octetCompare),t}(e.features),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=new Set;for(const r of e){let e;for(const t of r.fields||[])if("FORM_TYPE"===t.name&&"hidden"===t.type){if(t.rawValues&&1===t.rawValues.length){e=s(t.rawValues[0]);break}if(t.value&&"string"==typeof t.value){e=s(t.value);break}}if(e){if(n.has(e.toString()))return null;n.add(e.toString()),t.push({type:e,form:r})}}t.sort((e,t)=>(0,i.octetCompare)(e.type,t.type));const r=[];for(const e of t){r.push(e.type);const t=o(e.form.fields);for(const e of t)r.push(e)}return r}(e.extensions);if(!u||!l||!d)return null;for(const e of u)c(e);for(const e of l)c(e);for(const e of d)c(e);return(0,r.createHash)(t).update(r.Buffer.concat(n)).digest("base64")}t.generate=a,t.verify=function(e,t,n){const r=a(e,t);return!!r&&r===n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(9),s=n(2),o=n(13);class a{constructor(e){this.active=!1,this.maxRetries=5,this.stream=e,this.maxTimeout=1100*this.stream.maxWaitTime}async send(e,t){this.rid=e,this.active=!0;let n=0;for(;n<=this.maxRetries;){n+=1;try{const e=await(0,o.timeoutPromise)((0,i.fetch)(this.stream.url,{body:t,headers:{"Content-Type":this.stream.contentType},method:"POST"}),this.maxTimeout,()=>new Error("Request timed out"));if(!e.ok)throw new Error("HTTP Status Error: "+e.status);const n=await e.text();return this.active=!1,n}catch(e){if(1===n)continue;if(n<this.maxRetries){const e=Math.min(this.maxTimeout,1e3*Math.pow(n,2));await(0,o.sleep)(e+1e3*Math.random());continue}throw this.active=!1,e}}throw new Error("Request failed")}}class c extends i.Duplex{constructor(e,t,n){super({objectMode:!0}),this.rid=Math.floor(4294967295*Math.random()),this.sid="",this.maxHoldOpen=2,this.maxWaitTime=30,this.contentType="text/xml; charset=utf-8",this.channels=[new a(this),new a(this)],this.activeChannelID=0,this.queue=[],this.isEnded=!1,this.client=e,this.sm=t,this.stanzas=n,this.on("data",e=>{this.client.emit("stream:data",e.stanza,e.kind)}),this.on("end",()=>{this.isEnded=!0,clearTimeout(this.idleTimeout),this.client.transport===this&&this.client.emit("--transport-disconnected")})}_write(e,t,n){this.queue.push([e,n]),this.scheduleRequests()}_writev(e,t){this.queue.push([e.map(e=>e.chunk).join(""),t]),this.scheduleRequests()}_read(){}process(e){const t=new s.StreamParser({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,rootKey:"bosh",wrappedStream:!0});t.on("error",e=>{const t={condition:r.StreamErrorCondition.InvalidXML};return this.client.emit("stream:error",t,e),this.send("error",t),this.disconnect()}),t.on("data",e=>{if("stream-start"===e.event)return this.stream=e.stanza,void("terminate"===e.stanza.type?(this.hasStream=!1,this.rid=void 0,this.sid=void 0,this.isEnded||(this.isEnded=!0,this.client.emit("bosh:terminate",e.stanza),this.client.emit("stream:end"),this.push(null))):this.hasStream||(this.hasStream=!0,this.stream=e.stanza,this.sid=e.stanza.sid||this.sid,this.maxWaitTime=e.stanza.maxWaitTime||this.maxWaitTime,this.client.emit("stream:start",e.stanza)));e.event||this.push({kind:e.kind,stanza:e.stanza})}),this.client.emit("raw","incoming",e),t.write(e),this.scheduleRequests()}connect(e){if(this.config=e,this.url=e.url,e.rid&&(this.rid=e.rid),e.sid&&(this.sid=e.sid),e.wait&&(this.maxWaitTime=e.wait),e.maxHoldOpen&&(this.maxHoldOpen=e.maxHoldOpen),this.sid)return this.hasStream=!0,this.stream={},this.client.emit("connected"),this.client.emit("session:prebind",this.config.jid),void this.client.emit("session:started");this._send({lang:e.lang,maxHoldOpen:this.maxHoldOpen,maxWaitTime:this.maxWaitTime,to:e.server,version:"1.6",xmppVersion:"1.0"})}restart(){this.hasStream=!1,this._send({to:this.config.server,xmppRestart:!0})}disconnect(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.hasStream&&e?this._send({type:"terminate"}):(this.stream=void 0,this.sid=void 0,this.rid=void 0,this.client.emit("--transport-disconnected"))}async send(e,t){var n;let r;if(t&&(r=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),r)return new Promise((e,t)=>{this.write(r,"utf8",n=>n?t(n):e())})}get sendingChannel(){return this.channels[this.activeChannelID]}get pollingChannel(){return this.channels[0===this.activeChannelID?1:0]}toggleChannel(){this.activeChannelID=0===this.activeChannelID?1:0}async _send(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(this.isEnded)return;const n=this.rid++,r=this.stanzas.export("bosh",{...e,rid:n,sid:this.sid});let i;i=t?[r.openTag(),t,r.closeTag()].join(""):r.toString(),this.client.emit("raw","outgoing",i),this.sendingChannel.send(n,i).then(e=>{this.process(e)}).catch(e=>{this.end(e)}),this.toggleChannel()}async _poll(){if(this.isEnded)return;const e=this.rid++,t=this.stanzas.export("bosh",{rid:e,sid:this.sid}).toString();this.client.emit("raw","outgoing",t),this.pollingChannel.send(e,t).then(e=>{this.process(e)}).catch(e=>{this.end(e)})}scheduleRequests(){clearTimeout(this.idleTimeout),this.idleTimeout=setTimeout(()=>{this.fireRequests()},10)}fireRequests(){if(!this.isEnded)if(this.queue.length)if(this.sendingChannel.active)this.scheduleRequests();else{const[e,t]=this.queue.shift();this._send({},e),t()}else!this.authenticated||this.channels[0].active||this.channels[1].active||this._poll()}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(9);class o extends s.Duplex{constructor(e,t,n){super({objectMode:!0}),this.sm=t,this.stanzas=n,this.closing=!1,this.client=e,this.on("data",e=>{this.client.emit("stream:data",e.stanza,e.kind)}),this.on("error",()=>{this.end()}),this.on("end",()=>{this.client.transport===this&&this.client.emit("--transport-disconnected")})}_read(){}_write(e,t,n){if(!this.socket||1!==this.socket.readyState)return n(new Error("Socket closed"));const r=s.Buffer.from(e,"utf8").toString();this.client.emit("raw","outgoing",r),this.socket.send(r),n()}connect(e){this.config=e,this.hasStream=!1,this.closing=!1,this.parser=new i.StreamParser({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,wrappedStream:!1}),this.parser.on("data",e=>{const t=e.kind,n=e.stanza;if("stream"===t){if("open"===n.action)return this.hasStream=!0,this.stream=n,this.client.emit("stream:start",n);if("close"===n.action)return this.client.emit("stream:end"),this.disconnect()}this.push({kind:e.kind,stanza:e.stanza})}),this.parser.on("error",e=>{const t={condition:r.StreamErrorCondition.InvalidXML};return this.client.emit("stream:error",t,e),this.write(this.stanzas.export("error",t).toString()),this.disconnect()}),this.socket=new s.WebSocket(e.url,"xmpp"),this.socket.onopen=()=>{this.emit("connect"),this.sm.started=!1,this.client.emit("connected"),this.write(this.startHeader())},this.socket.onmessage=e=>{const t=s.Buffer.from(e.data,"utf8").toString();this.client.emit("raw","incoming",t),this.parser&&this.parser.write(t)},this.socket.onclose=()=>{this.push(null)},this.socket.onerror=e=>{console.error(e),this.push(null)}}disconnect(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.socket&&!this.closing&&this.hasStream&&e?(this.closing=!0,this.write(this.closeHeader())):(this.hasStream=!1,this.stream=void 0,this.socket&&(this.end(),this.socket.close(),this.client.transport===this&&this.client.emit("--transport-disconnected")),this.socket=void 0)}async send(e,t){var n;let r;if(t&&(r=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),r)return new Promise((e,t)=>{this.write(r,"utf8",n=>n?t(n):e())})}restart(){this.hasStream=!1,this.write(this.startHeader())}startHeader(){return this.stanzas.export("stream",{action:"open",lang:this.config.lang,to:this.config.server,version:"1.0"}).toString()}closeHeader(){return this.stanzas.export("stream",{action:"close"}).toString()}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(9),s=n(13),o=n(2),a=(0,r.__importDefault)(n(63));t.default=class{constructor(){this.hostMetaCache=new Map,this.hostMetaTTL=3e4,this.resolver=(0,i.createResolver)(),this.registry=new o.Registry,this.registry.define(a.default)}async getHostMeta(e){const t=this.hostMetaCache.get(e);if(t){if(t.created+this.hostMetaTTL<Date.now())return t.hostmeta;this.hostMetaCache.delete(e)}const n=(0,s.promiseAny)([(0,i.fetch)(`https://${e}/.well-known/host-meta.json`).then(async e=>{if(!e.ok)throw new Error("could-not-fetch-json");return e.json()}),(0,i.fetch)(`https://${e}/.well-known/host-meta`).then(async e=>{if(!e.ok)throw new Error("could-not-fetch-xml");const t=await e.text(),n=(0,o.parse)(t);if(n)return this.registry.import(n);throw new Error("could-not-import-xml")})]);return this.hostMetaCache.set(e,{created:Date.now(),hostmeta:n}),n.catch(()=>{this.hostMetaCache.delete(e)}),n}async resolveTXT(e){var t,n;return null!==(n=null===(t=this.resolver)||void 0===t?void 0:t.resolveTxt(e))&&void 0!==n?n:[]}async resolve(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.resolver)return[];let r=[],i=!0;if(n.srvType){const t=await this.resolveWeightedSRV(e,n.srvType,n.srvTypeSecure);i=t.allowFallback,r=t.records.map(e=>({host:e.name,port:e.port,secure:e.secure}))}return i&&r.push({host:e,port:t}),r}async resolveWeightedSRV(e,t,n){const[r,i]=await Promise.all([this.resolveSRV(e,t),n?this.resolveSRV(e,n,!0):Promise.resolve({records:[],allowFallback:!1})]),o=[...r.records,...i.records],a=new Map;let c=0;for(const e of o){e.id=c++,e.runningSum=0,a.has(e.priority)||a.set(e.priority,[]);a.get(e.priority).push(e)}const u=e=>{const t=[];for(;t.length<e.length;){const n=(0,s.shuffle)(e.filter(e=>0===e.weight&&!e.used)),r=(0,s.shuffle)(e.filter(e=>0!==e.weight&&!e.used));let i=0;for(const e of r)i+=e.weight,e.runningSum=i,n.push(e);const o=Math.floor(Math.random()*(i+1));for(const e of n)if(e.runningSum>=o){e.used=!0,t.push(e);break}}return t};let l=[];for(const e of Array.from(a.keys()).sort((e,t)=>e<t?-1:e>t?1:0)){const t=a.get(e);l=l.concat(u(t))}return{records:l,allowFallback:r.allowFallback}}async resolveSRV(e,t,n){var r,i;try{const s=null!==(i=await(null===(r=this.resolver)||void 0===r?void 0:r.resolveSrv(`${t}.${e}`)))&&void 0!==i?i:[];return 1!==s.length||"."!==s[0].name&&""!==s[0].name?{records:s.map(e=>({secure:n,...e})).filter(e=>""!==e.name&&"."!==e.name),allowFallback:!1}:{records:[],allowFallback:!1}}catch(e){return{records:[],allowFallback:!0}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputBuffer=t.DisplayBuffer=t.diff=void 0;const r=n(4),i=n(60),s=(0,r.__importDefault)(n(50));function o(e,t){const n=e.length,r=t.length,i=Math.min(n,r);let o=0;for(o=0;o<i&&e[o]===t[o];o++);let a=0;for(a=0;a<i-o&&e[n-a-1]===t[r-a-1];a++);const c=o+a,u=[];if(c<n&&u.push({length:n-c,position:n-a,type:"erase"}),c<r){const e=t.slice(o,o+r-c);u.push({position:o,text:s.default.ucs2.encode(e),type:"insert"})}return u}t.diff=o;t.DisplayBuffer=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.synced=!1,this.cursorPosition=0,this.ignoreWaits=!1,this.timeDeficit=0,this.sequenceNumber=0,this.onStateChange=e||function(){},this.ignoreWaits=t,this.buffer=[],this.resetActionQueue()}get text(){return s.default.ucs2.encode(this.buffer.slice())}commit(){this.resetActionQueue()}process(e){if("cancel"!==e.event&&"init"!==e.event){if("reset"===e.event||"new"===e.event?(this.resetActionQueue(),void 0!==e.seq&&(this.sequenceNumber=e.seq)):e.seq!==this.sequenceNumber&&(this.synced=!1),e.actions){const t=Date.now();let n=0;for(const r of e.actions)r.baseTime=t+n,"wait"===r.type&&(n+=r.duration),this.actionQueue.push(r,0)}this.sequenceNumber=this.sequenceNumber+1}else this.resetActionQueue()}insert(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.buffer.length;e=e.normalize("NFC");const n=s.default.ucs2.decode(e);this.buffer.splice(t,0,...n),this.cursorPosition=t+n.length,this.emitState()}erase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.buffer.length;t=Math.max(Math.min(t,this.buffer.length),0),e=Math.max(Math.min(e,this.text.length),0),this.buffer.splice(Math.max(t-e,0),e),this.cursorPosition=Math.max(t-e,0),this.emitState()}emitState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.onStateChange({cursorPosition:this.cursorPosition,synced:this.synced,text:this.text,...e})}resetActionQueue(){this.actionQueue&&this.actionQueue.kill(),this.sequenceNumber=0,this.synced=!0,this.buffer=[],this.timeDeficit=0,this.actionQueue=(0,i.priorityQueue)((e,t)=>{const n=Date.now();if("insert"===e.type)return this.insert(e.text,e.position),t();if("erase"===e.type)return this.erase(e.length,e.position),t();if("wait"!==e.type)return t();{if(this.ignoreWaits)return t();e.duration>700&&(e.duration=700);const r=e.duration-(n-e.baseTime)+this.timeDeficit;if(r<=0)return this.timeDeficit=r,t();this.timeDeficit=0,setTimeout(()=>t(),r)}},1),this.emitState()}};t.InputBuffer=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.resetInterval=1e4,this.ignoreWaits=!1,this.isStarting=!1,this.isReset=!1,this.changedBetweenResets=!1,this.onStateChange=e||function(){},this.ignoreWaits=t,this.buffer=[],this.actionQueue=[],this.sequenceNumber=0}get text(){return s.default.ucs2.encode(this.buffer.slice())}update(e){let t=[];if(void 0!==e){e=e.normalize("NFC");const n=s.default.ucs2.decode(e);t=o(this.buffer,n.slice()),this.buffer=n,this.emitState()}const n=Date.now();if(this.changedBetweenResets&&n-this.lastResetTime>this.resetInterval)this.actionQueue=[],this.actionQueue.push({position:0,text:this.text,type:"insert"}),this.isReset=!0,this.lastActionTime=n,this.lastResetTime=n,this.changedBetweenResets=!1;else if(t.length){const e=n-(this.lastActionTime||n);e>0&&!this.ignoreWaits&&this.actionQueue.push({duration:e,type:"wait"});for(const e of t)this.actionQueue.push(e);this.lastActionTime=n,this.changedBetweenResets=!0}else this.lastActionTime=n}start(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.resetInterval;return this.commit(),this.isStarting=!0,this.resetInterval=e,this.sequenceNumber=Math.floor(1e4*Math.random()+1),{event:"init"}}stop(){return this.commit(),{event:"cancel"}}diff(){if(this.update(),!this.actionQueue.length)return null;const e={actions:this.actionQueue,seq:this.sequenceNumber++};return this.isStarting?(e.event="new",this.isStarting=!1,this.lastResetTime=Date.now()):this.isReset&&(e.event="reset",this.isReset=!1),this.actionQueue=[],e}commit(){this.sequenceNumber=0,this.lastActionTime=0,this.actionQueue=[],this.buffer=[]}emitState(){this.onStateChange({text:this.text})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPager=t.ResultSetPager=void 0;class r{constructor(e){var t,n,r;this.resultComplete=!1,this.fetchedCount=0,this.yieldedCount=0,this.cursor={first:e.before,last:e.after},this.query=e.query,this.direction=null!==(t=e.direction)&&void 0!==t?t:"forward",this.reverse=null!==(n=e.reverse)&&void 0!==n?n:"backward"===this.direction,this.pageSize=null!==(r=e.pageSize)&&void 0!==r?r:20}async*[Symbol.asyncIterator](){let e=[];do{e=await this.fetchPage();for(const t of e)this.yieldedCount+=1,yield t}while(e.length>0)}async size(){if(void 0!==this.resultCount)return this.resultCount;const{paging:e}=await this.query({max:0});return this.resultCount=e.count,e.count}queryCompleted(){return this.resultComplete}finished(){return this.resultComplete&&this.yieldedCount===this.fetchedCount}async fetchPage(){var e;const{results:t,paging:n}=await this.query({before:"backward"===this.direction?null!==(e=this.cursor.first)&&void 0!==e?e:"":void 0,after:"forward"===this.direction?this.cursor.last:void 0,max:this.pageSize});return this.cursor=n,this.resultCount=n.count,this.fetchedCount+=t.length,(this.pageSize&&t.length<this.pageSize||this.resultCount&&this.fetchedCount===this.resultCount)&&(this.resultComplete=!0),this.reverse&&t.reverse(),t}}t.ResultSetPager=r,t.createPager=function(e){return new r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{}t.default=r},function(e,t,n){"use strict";n.r(t),n.d(t,"Emitter",(function(){return s})),n.d(t,"MemoryLeakError",(function(){return r}));var r=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},i=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=i.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return this.events.get(e)||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){var n=this;const r=function(){n.removeListener(e,r);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];t.apply(n,s)};return r}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=this._getListeners(e);return i.forEach(e=>{e.apply(this,n)}),i.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new r(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},s=i;s.defaultMaxListeners=10},function(e,t,n){"use strict";n.r(t);var r=n(7),i=n(203),s=n(36),o=n.n(s);const a=function(e){const t=JSON.stringify(e),n=encodeURIComponent(t).match(/%[89ABab]/g);return t.length+(n?n.length:0)},c=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(0===n)return null;if(t){if(Array.isArray(t)){const r=[];for(let i=0;i<t.length;i++)r[i]=e(t[i],n-1);return r}if("object"==typeof t){const r=Object.assign({},t);for(const i in t)try{r[i]=e(t[i],n-1)}catch(e){console.debug("WARN: Failed cloning key on object, ignoring",{key:i,object:t})}return r}}return t};var u=n(67),l=n(66),d=n(37);function p(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function h(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function f(e){h(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(d.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function m(e,t){h(2,arguments);var n=f(e),r=p(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function g(e,t){h(2,arguments);var n=f(e),r=p(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var o=s.getDate();return i>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function y(e,t){h(2,arguments);var n=f(e),r=f(t);return n.getTime()>r.getTime()}var b=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))};const v=[408,429,500,503,504],_=[401],S=new Map;class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;this.url=e,this.debugMode=t,this.customHeaders=n,this.sendQueue=[]}postLogsToEndpoint(e){const t=(()=>{let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}})();return this.sendQueue.push({requestParams:e,deferred:t}),this.sendNextQueuedLogToServer(),this.debug("adding requestParams to sendQueue",{requestParams:e,updatedSendQueue:this.sendQueue.map(e=>e.requestParams),hasPendingRequest:!!this.pendingRequest}),t.promise}postLogsToEndpointInstantly(e,t){return b(this,void 0,void 0,(function*(){if(this.debug("sending request instantly",{requestParams:e,sendQueue:this.sendQueue.map(e=>e.requestParams)}),!navigator.onLine)return this.saveRequestForLater(e);try{yield this.sendPostRequest(e)}catch(n){throw(null==t?void 0:t.saveOnFailure)&&this.saveRequestForLater(e),n}}))}saveRequestForLater(e){const t=this.getSavedRequests()||[],n=Object.assign({},e);delete n.accessToken,t.push(n),window.localStorage.setItem("gc_logger_requests",JSON.stringify(t))}getSavedRequests(){const e=window.localStorage.getItem("gc_logger_requests");if(e)try{return JSON.parse(e)}catch(t){console.error("Failed to parse saved messages, ignoring",{savedMessagesStr:e})}}sendEntireQueue(){this.debug("sending all queued requests instantly to clear out sendQueue",{sendQueue:this.sendQueue.map(e=>e.requestParams)});const e=[];let t;for(;t=this.sendQueue.shift();)e.push(this.postLogsToEndpointInstantly(t.requestParams,{saveOnFailure:!0}));return e}resetSendQueue(){this.debug("reseting send queue without sending currently queued data",{queueLength:this.sendQueue.length}),this.sendQueue=[]}sendNextQueuedLogToServer(){return b(this,void 0,void 0,(function*(){if(this.pendingRequest||0===this.sendQueue.length)return void this.debug("sendNextQueuedLogToServer() but not sending request",{hasPendingRequest:!!this.pendingRequest,sendQueueLength:this.sendQueue.length});const e=this.sendQueue.shift();return e.deferred.promise.finally(()=>{this.debug("queue item completed. removing from queue and resetting send queue",{queueItemRequestParams:e.requestParams,updatedSendQueue:this.sendQueue.map(e=>e.requestParams)}),this.pendingRequest=void 0,this.sendNextQueuedLogToServer()}),this.pendingRequest=e,this.debug("sending logs to server",{queueItem:e.requestParams,sendQueue:this.sendQueue.map(e=>e.requestParams)}),Object(l.backOff)(()=>this.backoffFn(e.requestParams),{retry:e=>{var t,n,r,i,s;const o=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status,a=null==e?void 0:e.code,c=(null===(r=null===(n=e.response)||void 0===n?void 0:n.headers)||void 0===r?void 0:r["retry-after"])||(null===(s=null===(i=e.response)||void 0===i?void 0:i.getResponseHeader)||void 0===s?void 0:s.call(i,"retry-after"));if(c){const e=function(e,t){if(h(2,arguments),!t||"object"!==Object(d.a)(t))return new Date(NaN);var n=t.years?p(t.years):0,r=t.months?p(t.months):0,i=t.weeks?p(t.weeks):0,s=t.days?p(t.days):0,o=t.hours?p(t.hours):0,a=t.minutes?p(t.minutes):0,c=t.seconds?p(t.seconds):0,u=f(e),l=r||n?g(u,r+12*n):u,y=s||i?m(l,s+7*i):l,b=a+60*o,v=c+60*b,_=1e3*v,S=new Date(y.getTime()+_);return S}(new Date,{seconds:parseInt(c,10)});this.retryAfter&&!y(e,this.retryAfter)||(this.retryAfter=e)}return navigator.onLine&&(o&&v.includes(o)||"ERR_NETWORK"===a)},numOfAttempts:10,startingDelay:0,delayFirstAttempt:!1,maxDelay:15e3}).then(t=>{this.debug("successfully sent logs to server",{requestParams:e.requestParams,response:t}),e.deferred.resolve(t)}).catch(this.handleBackoffError.bind(this,e))}))}handleBackoffError(e,t){var n;const r=null===(n=t.response)||void 0===n?void 0:n.status;r&&v.includes(r)||_.includes(r)||"ERR_NETWORK"===t.code?(this.debug("Failed to sends logs to the server, moving request to the end of the queue",{requestParams:e.requestParams,error:t}),this.saveRequestForLater(e.requestParams)):this.debug("ERROR sending logs to server",{requestParams:e.requestParams,error:t}),e.deferred.reject(Object.assign(Object.assign({},t),{id:"rejectionSpot1"}))}retryAfterTimerCheck(){return b(this,void 0,void 0,(function*(){if(this.retryAfter){if(!y(Date.now(),this.retryAfter)){const e=function(e,t){return h(2,arguments),f(e).getTime()-f(t).getTime()}(this.retryAfter,Date.now());return this.debug('Respecting "retry-after" response header, waiting to send request',{millisecondsToWait:e}),yield new Promise(t=>{setTimeout(()=>{t(null)},e)}),this.retryAfterTimerCheck()}this.retryAfter=void 0}}))}backoffFn(e){return b(this,void 0,void 0,(function*(){yield this.retryAfterTimerCheck();const t=e.accessToken,n=yield this.sendPostRequest(e),r=this.getSavedRequests();return r&&(window.localStorage.removeItem("gc_logger_requests"),r.map(e=>{const n=Object.assign({accessToken:t},e);this.postLogsToEndpoint(n)})),n}))}sendPostRequest(e){this.debug("issuing POST request",{requestParams:e});const t=Object.assign({},e);delete t.accessToken;const n=Object.assign({authorization:"Bearer "+e.accessToken,"content-type":"application/json; charset=UTF-8"},this.customHeaders||{});return Object(u.a)({method:"post",url:this.url,responseType:"text",data:t,headers:n})}debug(e,t){this.debugMode&&console.log("%c [DEBUG:log-uploader] "+e,"color: #32a0a8",c(t))}}var T=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))};class I{constructor(e){if(this.isInitialized=!1,this.logBuffer=[],this.debounceTimer=null,this.logger=e,!e.config.url||!e.config.appVersion){const t="Missing `url` and/or `appVersion` config options to set up server logging. Not sending logs to server for this logger instance";throw this.logger.error(t,{providedConfig:e.config},{skipServer:!0}),new Error(t)}this.isInitialized=!0,this.debounceLogUploadTime=e.config.uploadDebounceTime||4e3,this.logUploader=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(n)return new w(e,t,r);let i=S.get(e);return i||(i=new w(e,t,r),S.set(e,i)),i}(e.config.url,e.config.debugMode,e.config.useUniqueLogUploader,e.config.customHeaders),window.addEventListener("unload",this.sendAllLogsInstantly.bind(this)),this.logger.on("onStop",e=>{this.debug("`onStop` received. Clearing logBuffer and sendQueue",{logBuffer:this.logBuffer,sendQueue:this.logUploader.sendQueue}),this.logBuffer=[],this.logUploader.resetSendQueue()})}addLogToSend(e,t,n){if(!this.isInitialized)return;const r=this.convertToLogMessage(t,n);let i=this.convertToTrace(e,r),s=a(i);if(s>14500){const t=this.truncateLog(e,r);if(null===t)return void this.logger.error("truncated message is too large to send to server. not sending message",{originalTrace:i,originalTraceSize:a(i),truncatedTrace:t,truncatedTraceSize:a(t)},{skipServer:!0});s=a(t),i=t}const o=!this.logBuffer.length;let c;c=o?{size:0,traces:[]}:this.logBuffer[this.logBuffer.length-1];if(c.size+s>14500)return this.debug("`exceedsMaxLogSize` was `true`",{logBuffer:this.logBuffer,bufferItem:c,incomingTrace:i,incomingTraceSize:s,maxAllowedTraceSize:14500}),this.logBuffer.push({size:s,traces:[i]}),this.debug("calling sendLogsToServer(true)",{logBuffer:this.logBuffer}),void this.sendLogsToServer(!0);c.size+=s,c.traces.push(i),o&&(this.debug("`this.logBuffer` was empty. pushing new buffer item",{logBuffer:this.logBuffer,bufferItem:c}),this.logBuffer.push(c)),this.debug("calling sendLogsToServer()",{logBuffer:this.logBuffer}),this.sendLogsToServer()}sendAllLogsInstantly(){return this.logUploader.sendEntireQueue().concat(this.logBuffer.map(e=>this.logUploader.postLogsToEndpointInstantly(this.convertToRequestParams(e.traces.reverse()),{saveOnFailure:!0})))}sendLogsToServer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;return T(this,void 0,void 0,(function*(){if(!this.logBuffer.length)return clearTimeout(this.debounceTimer),this.debounceTimer=null,void this.debug("buffer empty, not sending http request");if(!e)return void(this.debounceTimer?this.debug("sendLogsToServer() 'immediate' is false. 'debounceTimer' is already running"):(this.debug(`sendLogsToServer() 'immediate' is false. setting up 'debounceTimer' to ${this.debounceLogUploadTime}ms`),this.debounceTimer=setTimeout(()=>this.sendLogsToServer(!0),this.debounceLogUploadTime)));clearTimeout(this.debounceTimer),this.debounceTimer=null;const[n]=this.logBuffer.splice(0,1);try{this.debug("calling logUploader.postLogsToEndpoint() with",{bufferItem:n,newLogBuffer:this.logBuffer}),yield this.logUploader.postLogsToEndpoint(this.convertToRequestParams(n.traces.reverse()))}catch(e){this.logger.emit("onError",e),this.logger.error("Error sending logs to server",e,{skipServer:!0});const n=(null==e?void 0:e.status)?parseInt(e.status,10):parseInt(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status,10);[401,403,404].includes(n)&&(this.logger.warn(`received a ${n} from logUploader. stopping logging to server`),this.logger.stopServerLogging())}finally{this.sendLogsToServer()}}))}truncateLog(e,t){let n,r;const i=a(this.convertToTrace(e,t)),s=c(t);return s?(s.details="[[TRUNCATED]]",n=this.convertToTrace(e,s),r=a(n),r<=14500?(this.logger.warn("message too large to send to server. truncated log details",{originalLog:t,truncatedLog:s,originalTraceSize:i,truncatedTraceSize:r,maxAllowedTraceSize:14500},{skipServer:!0}),n):(s.message=s.message.substr(0,150)+"... [[TRUNCATED]]",n=this.convertToTrace(e,s),r=a(n),r<=14500?(this.logger.warn("message too large to send to server. truncated log details & log message",{originalLog:t,truncatedLog:s,originalTraceSize:i,truncatedTraceSize:r,maxAllowedTraceSize:14500},{skipServer:!0}),n):null)):null}convertToLogMessage(e,t){const n={clientTime:(new Date).toISOString(),clientId:this.logger.clientId,message:e,details:t},{originAppName:r,originAppVersion:i,originAppId:s}=this.logger.config;return r&&(n.originAppName=r,n.originAppVersion=i,n.originAppId=s),n}convertToTrace(e,t){return{topic:this.logger.config.appName,level:e.toUpperCase(),message:o()(t)}}convertToRequestParams(e){return{accessToken:this.logger.config.accessToken,app:{appId:this.logger.config.appName,appVersion:this.logger.config.appVersion},traces:e}}debug(e,t){this.logger.config.debugMode&&console.log(`%c [DEBUG:${this.logger.config.appName}] ${e}`,"color: #32a852",c(t))}}class A extends r.EventEmitter{constructor(e){super(),this.defaultFormatter=(e,t,n,r,i)=>{if(r.skipDefaultFormatter)return i();t instanceof Error&&(n=n||t,t=t.message);i(e,t=`${this.config.appName?`[${this.config.appName}] `:""}${t}`,n,r)},this.logMessage=(e,t,n,r)=>{if(!r.skipSecondaryLogger)try{const r=[t];void 0!==n&&r.push(this.config.stringify?o()(n):n),this.secondaryLogger[e].apply(this.secondaryLogger,r)}catch(e){console.error("Error logging using custom logger passed into `genesys-cloud-client-logger`",{error:e,secondaryLogger:this.secondaryLogger,message:t,details:n,messageOptions:r})}!r.skipServer&&!this.stopReason&&this.serverLogger&&this.logRank(e)>=this.logRank(this.config.logLevel)&&this.serverLogger.addLogToSend(e,t,n)},Object.defineProperty(this,"clientId",{value:Object(i.a)(),writable:!1}),this.config=Object.assign({},e),this.secondaryLogger=this.config.logger||console,delete this.config.logger,-1===this.logRank(this.config.logLevel)&&(e.logLevel&&this.warn(`Invalid log level: "${e.logLevel}". Default "info" will be used instead.`,null,{skipServer:!0}),this.config.logLevel="info"),!e.appName&&e.logTopic&&(this.warn("`logTopic` has been renamed to `appName`. Please use `appName`",null,{skipServer:!0}),this.config.appName=e.logTopic),!1!==this.config.initializeServerLogging&&(this.serverLogger=new I(this)),this.config.startServerLoggingPaused&&this.stopServerLogging()}get VERSION(){return A.VERSION}setAccessToken(e){this.config.accessToken=e,401==this.stopReason&&this.startServerLogging()}log(e,t,n){this.formatMessage("log",e,t,n)}debug(e,t,n){this.formatMessage("debug",e,t,n)}info(e,t,n){this.formatMessage("info",e,t,n)}warn(e,t,n){this.formatMessage("warn",e,t,n)}error(e,t,n){this.formatMessage("error",e,t,n)}startServerLogging(){if(this.stopReason=void 0,!this.serverLogger)return this.warn("`startServerLogging` called but the logger instance is not configured to send logs to the server. Ignoring call to start sending logs to server.",void 0,{skipServer:!0});this.emit("onStart")}stopServerLogging(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"force";"force"===this.stopReason&&"force"!==e||(this.stopReason=e,this.emit("onStop",e))}sendAllLogsInstantly(){var e;return(null===(e=this.serverLogger)||void 0===e?void 0:e.sendAllLogsInstantly())||[]}formatMessage(e,t,n,r){let i=[this.defaultFormatter.bind(this)];this.config.formatters&&(i=[...this.config.formatters,this.defaultFormatter.bind(this)]),this.callNextFormatter(i,e,t,n,r)}callNextFormatter(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const[s,...o]=e;if(!s)return this.logMessage(t,n,r,i);s(t,n,r,i,(e,s,a,c)=>{void 0!==e?this.callNextFormatter(o,e,s,a,c):this.callNextFormatter(o,t,n,r,i)})}logRank(e){switch(e){case"log":return 0;case"debug":return 1;case"info":return 2;case"warn":return 3;case"error":return 4;default:return-1}}}A.VERSION="4.2.13",n.d(t,"Logger",(function(){return A}));t.default=A}]).default;
|
|
31
|
+
t.read=function(e,t,n,r,i){var s,o,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,s=h&(1<<-l)-1,h>>=-l,l+=a;l>0;s=256*s+e[t+d],d+=p,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=r;l>0;o=256*o+e[t+d],d+=p,l-=8);if(0===s)s=1-u;else{if(s===c)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),s-=u}return(h?-1:1)*o*Math.pow(2,s-r)},t.write=function(e,t,n,r,i,s){var o,a,c,u=8*s-i-1,l=(1<<u)-1,d=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:s-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=l?(a=0,o=l):o+d>=1?(a=(t*c-1)*Math.pow(2,i),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&a,h+=f,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;e[n+h]=255&o,h+=f,o/=256,u-=8);e[n+h-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(e){e||Object.defineProperty(window,"crypto",{value:window.crypto||window.msCrypto,writable:!1,configurable:!1})}).call(this,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Notifications=void 0;const r=n(259),i=n(13);function s(e,t){return[...e,...t].filter((e,t,n)=>n.indexOf(e)===t)}t.Notifications=class{constructor(e){this.subscriptions={},this.bulkSubscriptions={},this.topicPriorities={},this.client=e,e.on("pubsub:event",this.pubsubEvent.bind(this)),e.on("connected",this.subscriptionsKeepAlive.bind(this)),this.debouncedResubscribe=r(this.resubscribe.bind(this),100)}get pubsubHost(){try{return"notifications."+this.client.config.apiHost.replace(/http(s?):\/\//,"")}catch(e){return"notifications.mypurecloud.com"}}handleStanzaInstanceChange(e){const t=this.stanzaInstance&&this.stanzaInstance.id!==e.id&&this.stanzaInstance.channelId!==e.channelId;this.stanzaInstance=e,t&&(this.client.logger.info("resubscribing due to hard reconnect"),this.debouncedResubscribe())}topicHandlers(e){return this.subscriptions[e]||(this.subscriptions[e]=[]),this.subscriptions[e]}pubsubEvent(e){let{pubsub:t}=e,n=t.items.node;n.includes("no_longer_subscribed")?n="no_longer_subscribed":n.includes("duplicate_id")&&(n="duplicate_id");const r=t.items.published[0].content.json,i=this.topicHandlers(n);this.client.emit("notify",{topic:n,data:r}),this.client.emit("notify:"+n,r),i.forEach(e=>{e(r)})}async xmppSubscribe(e){if(0!==this.topicHandlers(e).length||this.bulkSubscriptions[e])return Promise.resolve();const t=()=>this.stanzaInstance.subscribeToNode(this.pubsubHost,e);return this.client.connected?t():new Promise((e,n)=>{this.client.once("connected",()=>t().then(e,n))})}xmppUnsubscribe(e){if(0!==this.topicHandlers(e).length||this.bulkSubscriptions[e])return Promise.resolve();const t=()=>this.stanzaInstance.unsubscribeFromNode(this.pubsubHost,e);return this.client.connected?t():new Promise((e,n)=>{this.client.once("connected",()=>t().then(e,n))})}mapCombineTopics(e){const t={},n=[],r=[];e.forEach(e=>{e.includes("?")?n.push({id:e}):r.push(e)}),r.map(e=>{const t=e.split("."),n=t.splice(t.length-1);return{prefix:t.join("."),postfix:n}}).forEach(e=>{t[e.prefix]?t[e.prefix].push(e.postfix):t[e.prefix]=[e.postfix]});let i=[];const s=(e,t)=>{const n=`${e}${1===t.length?".":"?"}${t.join("&")}`;n.length<200?i.push({id:n}):1===t.length?this.client.logger.error("Refusing to attempt topic with length > 200",n):(s(e,t.slice(0,t.length/2)),s(e,t.slice(t.length/2)))};Object.keys(t).forEach(e=>{const n=t[e];s(e,n)});const o=i.concat(n);return this.truncateTopicList(this.prioritizeTopicList(o))}prioritizeTopicList(e){return e.sort((e,t)=>this.getTopicPriority(t.id)-this.getTopicPriority(e.id)),e}getTopicPriority(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{prefix:n,postfixes:r}=this.getTopicParts(e),i=this.topicPriorities[n],s=i&&Object.keys(i).filter(e=>r.includes(e)).map(e=>i[e]),o=s&&s.length&&s.reduce((e,t)=>t>e?t:e);return t?o||0:o}truncateTopicList(e){const t=e.slice(0,1e3);if(e.length>1e3){let t=e.slice(1e3);if(t.length>20){const e=t.length-20;t=t.slice(20),t.push(`...and ${e} more`)}this.client.logger.warn("Too many topics to subscribe to; truncating extra topics",{droppedTopics:t})}return t}makeBulkSubscribeRequest(e,t){const n={method:t.replace?"put":"post",host:this.client.config.apiHost,authToken:this.client.config.authToken,data:JSON.stringify(this.mapCombineTopics(e)),logger:this.client.logger},r=this.stanzaInstance.channelId;return this.client.http.requestApi(`notifications/channels/${r}/subscriptions`,n)}createSubscription(e,t){i.splitIntoIndividualTopics(e).forEach(e=>{let n=this.topicHandlers(e);n.includes(t)||n.push(t)})}removeSubscription(e,t){i.splitIntoIndividualTopics(e).forEach(e=>{let n=this.topicHandlers(e),r=n.indexOf(t);r>-1&&n.splice(r,1),n.length||delete this.subscriptions[e]})}removeTopicPriority(e){if(this.getTopicPriority(e,!1)){const{prefix:t,postfixes:n}=this.getTopicParts(e);n.forEach(e=>{delete this.topicPriorities[t][e]}),Object.keys(this.topicPriorities[t]).length||delete this.topicPriorities[t]}}getActiveIndividualTopics(){const e=[];return Object.keys(this.subscriptions).forEach(t=>{if("streaming-subscriptions-expiring"===t)return;this.topicHandlers(t).length>0&&e.push(t)}),e}resubscribe(){const e=Object.keys(this.bulkSubscriptions);return e.length+this.getActiveIndividualTopics().length===0?Promise.resolve():this.bulkSubscribe(e,{replace:!0})}subscriptionsKeepAlive(){const e="streaming-subscriptions-expiring";0===this.topicHandlers(e).length&&this.createSubscription(e,()=>{this.client.logger.info(e+" - Triggering resubscribe.",{channelId:this.client.config.channelId}),this.debouncedResubscribe().catch(e=>{const t="Error resubscribing to topics";this.client.logger.error(t,e),this.client.emit("pubsub:error",{msg:t,err:e})})})}getTopicParts(e){const t=e.includes("?"),n=t?"?":".",r=e.split(n),i=t?r[1]:r.splice(r.length-1),s=t?r[0]:r.join(".");let o=[];return o=t?i.split("&"):i,{prefix:s,postfixes:o}}setTopicPriorities(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(e).forEach(t=>{const n=this.getTopicParts(t),r=this.topicPriorities[n.prefix],i=e[t];if(r)n.postfixes.forEach(e=>{const t=r[e];(t&&t<i||!t)&&(r[e]=i)});else{const e=n.postfixes.reduce((e,t)=>(e[t]=i,e),{});this.topicPriorities[n.prefix]=e}})}subscribe(e,t,n,r){let i;return r&&this.setTopicPriorities({[e]:r}),i=n?this.xmppSubscribe(e):this.debouncedResubscribe(),t?this.createSubscription(e,t):this.bulkSubscriptions[e]=!0,i}unsubscribe(e,t,n){return t?this.removeSubscription(e,t):(delete this.bulkSubscriptions[e],delete this.subscriptions[e]),this.removeTopicPriority(e),n?this.xmppUnsubscribe(e):this.debouncedResubscribe()}async bulkSubscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{replace:!1,force:!1},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.setTopicPriorities(n);let r=s(e,[]);t.replace&&!t.force?r=s(r,this.getActiveIndividualTopics()):t.force&&(this.subscriptions={}),await this.makeBulkSubscribeRequest(r,t),t.replace&&(this.bulkSubscriptions={}),e.forEach(e=>{this.bulkSubscriptions[e]=!0})}get expose(){return{subscribe:this.subscribe.bind(this),unsubscribe:this.unsubscribe.bind(this),bulkSubscribe:this.bulkSubscribe.bind(this)}}}},function(e,t,n){"use strict";function r(e){return"function"==typeof e?e():e}function i(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=void 0,o=void 0,a=void 0,c=[];return function(){var l=r(t),d=(new Date).getTime(),p=!s||d-s>l;s=d;for(var h=arguments.length,f=Array(h),m=0;m<h;m++)f[m]=arguments[m];if(p&&n.leading)return n.accumulate?Promise.resolve(e.call(this,[f])).then((function(e){return e[0]})):Promise.resolve(e.call.apply(e,[this].concat(f)));if(o?clearTimeout(a):o=i(),c.push(f),a=setTimeout(u.bind(this),l),n.accumulate){var g=c.length-1;return o.promise.then((function(e){return e[g]}))}return o.promise};function u(){var t=o;clearTimeout(a),Promise.resolve(n.accumulate?e.call(this,c):e.apply(this,c[c.length-1])).then(t.resolve,t.reject),c=[],o=null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebrtcExtension=void 0;const r=n(22),i=n(7),s=n(10),o=r.__importDefault(n(263)),a=n(5),c=n(25),u=r.__importDefault(n(266)),l=n(267),d=n(268),p=n(13),h=n(65),f=n(282),m=n(20),g=n(55),y=n(61),b=n(35),v="requestIncomingRtcSession",_="cancelIncomingRtcSession",S="handledIncomingRtcSession",w="incomingRtcSession",T="outgoingRtcSession",I="rtcSessionError";class A extends i.EventEmitter{constructor(e,t){super(),this.ignoredSessions=new o.default({max:10,maxAge:216e3}),this.pendingSessions={},this.statsArr=[],this.throttleSendStatsInterval=25e3,this.currentMaxStatSize=15e3,this.statsSizeDecreaseAmount=3e3,this.statBuffer=0,this.discoRetries=0,this.iceServers=[],this.webrtcSessions=[],this.client=e,this.config={allowIPv6:!0===t.allowIPv6,optOutOfWebrtcStatsTelemetry:t.optOutOfWebrtcStatsTelemetry},this.logger=e.logger,this.addEventListeners(),this.throttledSendStats=u.default(this.sendStats.bind(this),this.throttleSendStatsInterval,{leading:!1,trailing:!0}),this.client.on("jingle:outgoing",e=>(this.logger.info("Emitting jingle:outgoing media-session (session-init)",e.sid),this.emit(T,e))),this.client.on("jingle:incoming",e=>(this.logger.info("Emitting jingle:incoming media-session (session-init)",e.sid),this.emit(w,e))),this.client.on("jingle:created",e=>{e instanceof g.StanzaMediaSession||e.end("cancel",!0)}),window.addEventListener("offline",()=>this.onOnlineStatusChange(!1)),window.addEventListener("online",()=>this.onOnlineStatusChange(!0))}get jid(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jid}onOnlineStatusChange(e){this.addStatToQueue({actionName:"WebrtcStats",details:{_eventType:"onlineStatus",_eventTimestamp:(new Date).getTime(),online:e}})}async handleStanzaInstanceChange(e){this.stanzaInstance=e,this.refreshIceServersTimer&&(clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null),e.on("iq:set:genesysWebrtc",this.handleGenesysWebrtcStanza.bind(this)),this.refreshIceServersTimer=setInterval(this.refreshIceServers.bind(this),216e5),this.client.emit("sessionManagerChange",e)}async configureNewStanzaInstance(e){Object.assign(e.jingle.config.peerConnectionConfig,{sdpSemantics:"unified-plan"}),await this.configureStanzaIceServers(e),e.stanzas.define(d.definitions),e.jingle.prepareSession=this.prepareSession.bind(this),e.jingle.on("log",(e,t,n)=>{this.logger[e](t,n)});const t=["iceConnectionType","peerTrackAdded","peerTrackRemoved","mute","unmute","sessionState","connectionState","terminated","stats","endOfCandidates"];for(const n of t)e.jingle.on(n,(function(e){if(e instanceof g.StanzaMediaSession){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];e.emit(n,...r)}}))}configureStanzaIceServers(e){return e.jingle.config.iceServers=[],this.setIceServers([],e),this._refreshIceServers(e)}async handleGenesysOffer(e){const t=e.genesysWebrtc.params,n="relay"===this.getIceTransportPolicy()&&l.isFirefox,r={id:t.sessionId,logger:this.logger,peerID:e.from,fromJid:e.from,sessionType:this.getSessionTypeByJid(e.from),conversationId:t.conversationId,ignoreHostCandidatesFromRemote:n,optOutOfWebrtcStatsTelemetry:!!this.config.optOutOfWebrtcStatsTelemetry,allowIPv6:this.config.allowIPv6,iceServers:this.iceServers,reinvite:!!t.reinvite,iceTransportPolicy:this.getIceTransportPolicy()};let i;const s=this.pendingSessions[t.sessionId];i=s?{...r,meetingId:s.meetingId,fromUserId:s.fromUserId,originalRoomJid:s.originalRoomJid,privAnswerMode:s.privAnswerMode}:r;const o=this.webrtcSessions.find(e=>e.id===i.id);if(this.logger.info("offer received",{existingSession:!!o,mediaSessionParams:i}),o&&(o.conversationId=t.conversationId,!p.iceIsDifferent(o.peerConnection.remoteDescription.sdp,t.sdp)))return this.handleGenesysRenegotiate(o,t.sdp);const a=new y.GenesysCloudMediaSession(this,i);return await a.setRemoteDescription(t.sdp),this.proxyStatsForSession(a),a.on("sendIq",e=>{var t;return null===(t=this.stanzaInstance)||void 0===t?void 0:t.sendIQ(e)}),a.on("terminated",()=>{this.webrtcSessions=this.webrtcSessions.filter(e=>e.id!==a.id)}),this.webrtcSessions.push(a),this.logger.info("emitting sdp media-session (offer)"),this.emit(w,a)}async handleGenesysRenegotiate(e,t){await e.peerConnection.setRemoteDescription({sdp:t,type:"offer"}),await e.accept()}async handleGenesysIceCandidate(e){const t=e.genesysWebrtc.params,n=this.getSessionById(t.sessionId);await n.addRemoteIceCandidate(t.sdp)}async handleGenesysTerminate(e){const t=e.genesysWebrtc.params;this.getSessionById(t.sessionId).onSessionTerminate(t.reason)}getSessionById(e){const t=this.getAllSessions().find(t=>t.id===e);if(!t){const t=new Error("Failed to find session by id");throw this.logger.error(t,{sessionId:e}),t}return t}async sendIq(e){if(!this.stanzaInstance)throw new Error("Failed to send iq because there was no stanza instance");return this.stanzaInstance.sendIQ(e)}async handleMessage(e){e.propose?await this.handlePropose(e):e.retract?this.handleRetract(e.retract.sessionId):e.accept?this.handledIncomingRtcSession(e.accept.sessionId,e):e.reject&&this.handledIncomingRtcSession(e.reject.sessionId,e)}async handleGenesysWebrtcStanza(e){const t=e.genesysWebrtc;return"offer"===t.method?this.handleGenesysOffer(e):"iceCandidate"===t.method?this.handleGenesysIceCandidate(e):"terminate"===t.method?this.handleGenesysTerminate(e):void 0}prepareSession(e){const t=this.pendingSessions[e.sid];if(t&&delete this.pendingSessions[t.sessionId],null==t?void 0:t.sdpOverXmpp)return void this.logger.debug("skipping creation of jingle webrtc session due to sdpOverXmpp on the pendingSession");const n="relay"===this.getIceTransportPolicy()&&l.isFirefox,r={options:e,logger:this.logger,id:e.sid,fromJid:e.peerID,peerID:e.peerID,optOutOfWebrtcStatsTelemetry:!!this.config.optOutOfWebrtcStatsTelemetry,conversationId:null==t?void 0:t.conversationId,fromUserId:null==t?void 0:t.fromJid,originalRoomJid:null==t?void 0:t.originalRoomJid,sessionType:null==t?void 0:t.sessionType,allowIPv6:this.config.allowIPv6,ignoreHostCandidatesFromRemote:n,meetingId:null==t?void 0:t.meetingId},i=new g.StanzaMediaSession(r);return this.proxyStatsForSession(i),i}proxyStatsForSession(e){e.on("stats",t=>{const n=JSON.parse(JSON.stringify(t)),r={conversationId:e.conversationId,sessionId:e.id,sessionType:e.sessionType},i=f.formatStatsEvent(n,r);this.addStatToQueue(i)})}addStatToQueue(e){if(this.config.optOutOfWebrtcStatsTelemetry)return;e.details._appId||(e.details._appId=this.logger.clientId,e.details._appName="streamingclient",e.details._appVersion=h.Client.version),e.details._originAppId=this.client.config.appId;const t=f.deepFlatten(e.details);Object.keys(t).forEach(e=>{const n=t[e];"boolean"==typeof n&&(t[e]=""+n)});const n={...e,details:t},r=p.calculatePayloadSize(n),i=this.statBuffer+r>this.currentMaxStatSize;this.statsArr.push(n),this.statBuffer+=r,i?this.sendStatsImmediately():this.throttledSendStats()}getLogDetailsForPendingSessionId(e){const t={sessionId:e},n=this.pendingSessions[e];return n&&(t.sessionType=n.sessionType,t.conversationId=n.conversationId),t}sendStatsImmediately(){this.throttledSendStats(),this.throttledSendStats.flush()}async sendStats(){var e,t;if(!navigator.onLine)return;const n=[];let r=0;for(const e of this.statsArr){const t=p.calculatePayloadSize(e);if(!(r+t<this.currentMaxStatSize))break;n.push(e),r+=t}if(this.statsArr.splice(0,n.length),this.statBuffer=this.statsArr.reduce((e,t)=>e+p.calculatePayloadSize(t),0),!n.length||this.client.isGuest)return;const i={appName:"streamingclient",appVersion:h.Client.version,originAppName:this.client.config.appName,originAppVersion:this.client.config.appVersion,actions:n};try{let e=this.client.config.authToken,t="diagnostics/newrelic/insights";this.client.backgroundAssistantMode&&(e=this.client.config.jwt,t+="/backgroundassistant"),await this.client.http.requestApi(t,{method:"post",responseType:"text",host:this.client.config.apiHost,authToken:e,logger:this.client.logger,data:i}),this.currentMaxStatSize=15e3}catch(r){if(!b.HttpClient.retryStatusCodes.has(null===(e=r.response)||void 0===e?void 0:e.status)&&navigator.onLine||(this.statsArr=[...n,...this.statsArr],this.statBuffer=this.statsArr.reduce((e,t)=>e+p.calculatePayloadSize(t),0)),413===(null===(t=r.response)||void 0===t?void 0:t.status)){const e=this.currentMaxStatSize;this.currentMaxStatSize-=this.statsSizeDecreaseAmount,this.logger.info("Failed to send stats due to 413, retrying with smaller set",{attemptedPayloadSize:e,newPayloadSize:this.currentMaxStatSize}),await this.sendStats()}else this.logger.error("Failed to send stats",{err:r,numberOfFailedStats:n.length},{skipServer:!navigator.onLine})}}addEventListeners(){this.client.on("connected",()=>(this.refreshIceServersTimer&&(clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null),this.refreshIceServersTimer=setInterval(this.refreshIceServers.bind(this),216e5),this.refreshIceServers().catch(e=>this.logger.error("Error fetching ice servers after streaming-client connected",{error:e,channelId:this.client.config.channelId})))),this.client.on("disconnected",()=>{clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null})}async handlePropose(e){if(e.from===this.jid)return;const t=e.propose.sessionId;let n=this.pendingSessions[t];const r=!!n,i=this.getSessionTypeByJid(e.from),s={sessionId:t,conversationId:e.propose.conversationId,sessionType:i,isDuplicatePropose:r};if(this.logger.info("propose received",s),!r){const{appId:r}=this.client.config,o={actionName:"WebrtcStats",details:{_eventTimestamp:(new Date).getTime(),_eventType:"firstPropose",conversationId:s.conversationId,sdpViaXmppRequested:!!e.propose.sdpOverXmpp,sessionId:t,sessionType:i}};this.addStatToQueue(o);const a=e.from,c=a;e.propose.originalRoomJid=e.propose.originalRoomJid||c,n={...e.propose,toJid:e.to,fromJid:a,sessionType:i,roomJid:c,id:t,sdpOverXmpp:e.propose.sdpOverXmpp,privAnswerMode:e.propose.privAnswerMode},this.pendingSessions[t]=n}if(n.accepted)return this.logger.info("proceed already sent for this session, but sending another",s),void await this.acceptRtcSession(t);this.emit(v,Object.assign(n))}handleRetract(e){return this.logger.info("retract received",this.getLogDetailsForPendingSessionId(e)),delete this.pendingSessions[e],this.emit(_,e)}handledIncomingRtcSession(e,t){let n=t.accept?"accept":"reject";return this.logger.info(n+" received",this.getLogDetailsForPendingSessionId(e)),this.emit(S,e)}async initiateRtcSession(e){const t={to:e.jid,propose:{id:c.v4(),descriptions:[]}};if(e.stream)for(let n of Array.from(e.stream.getTracks()))t.propose.descriptions.push({media:n.kind});if(e.provideVideo){t.propose.descriptions.filter(e=>"video"===e.media).length>0||t.propose.descriptions.push({media:"video"})}if(e.provideAudio){t.propose.descriptions.filter(e=>"audio"===e.media).length>0||t.propose.descriptions.push({media:"audio"})}if(e.mediaPurpose&&t.propose.descriptions.push({media:e.mediaPurpose}),e.jid&&e.jid.match(/@conference/)){let n=t.propose.descriptions;0===n.length&&(n=[{media:"listener"}]);const r={type:"upgradeMedia",to:e.jid,id:c.v4(),from:this.jid,media:{conversationId:e.conversationId,sourceCommunicationId:e.sourceCommunicationId}};for(const e of n)r.media[e.media]=!0;await this.stanzaInstance.send("presence",r)}else await this.stanzaInstance.send("message",t),this.pendingSessions[t.propose.id]=t;return t.propose.id}async acceptRtcSession(e){const t=this.pendingSessions[e];if(!t)return void this.emit(I,"Cannot accept session because it is not pending or does not exist");const n={to:t.fromJid,proceed:{sessionId:e}};t.accepted=!0;const r=this.getLogDetailsForPendingSessionId(e);this.logger.info("sending jingle proceed",r),await this.stanzaInstance.send("message",n),this.logger.info("sent jingle proceed",r)}async rejectRtcSession(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getLogDetailsForPendingSessionId(e),r=this.pendingSessions[e];if(r)if(delete this.pendingSessions[e],t)this.ignoredSessions.set(e,!0);else{const t={to:s.toBare(this.jid),reject:{sessionId:e}},i=this.stanzaInstance.send("message",t),o={to:r.fromJid,reject:{sessionId:e}},a=this.stanzaInstance.send("message",o);this.logger.info("sending jingle reject",n),await Promise.all([i,a]),this.logger.info("sent jingle reject",n)}else this.emit(I,"Cannot reject session because it is not pending or does not exist")}async rtcSessionAccepted(e){this.pendingSessions[e];const t=this.getLogDetailsForPendingSessionId(e),n={to:s.toBare(this.jid),accept:{sessionId:e}};this.logger.info("sending session-info:accept",t),await this.stanzaInstance.send("message",n),this.logger.info("sent session-info:accept",t)}async notifyScreenShareStart(e){return this.stanzaInstance.send("iq",{to:""+e.peerID,from:this.jid,type:"set",jingle:{action:a.JingleAction.SessionInfo,sid:e.id,screenstart:{}}})}async notifyScreenShareStop(e){return this.stanzaInstance.send("iq",{to:""+e.peerID,from:this.jid,type:"set",jingle:{action:a.JingleAction.SessionInfo,sid:e.id,screenstop:{}}})}async cancelRtcSession(e){const t=this.pendingSessions[e],n=this.getLogDetailsForPendingSessionId(e);if(!t)return void this.emit(I,"Cannot cancel session because it is not pending or does not exist");const r={to:t.toJid,retract:{sessionId:e}};delete this.pendingSessions[e],this.logger.info("sending jingle retract",n),await this.stanzaInstance.send("message",r),this.logger.info("sent jingle retract",n)}async refreshIceServers(){return this.refreshIceServersRetryPromise||(this.refreshIceServersRetryPromise=p.retryPromise(this._refreshIceServers.bind(this,this.stanzaInstance),e=>++this.discoRetries>2?(this.logger.warn("fetching ice servers failed. max retries reached.",{retryAttempt:this.discoRetries,MAX_DISCO_RETRIES:2,error:e,channelId:this.client.config.channelId}),!1):(this.logger.warn("fetching ice servers failed. retrying",{retryAttempt:this.discoRetries,error:e,channelId:this.client.config.channelId}),!0),0,this.client.logger)),this.refreshIceServersRetryPromise.promise.finally(()=>{this.discoRetries=0,this.refreshIceServersRetryPromise=void 0})}async _refreshIceServers(e){if(!e)throw new Error("No stanza instance to refresh ice servers");const t=e.config.server,n=e.getServices(t,"turn","1"),r=e.getServices(t,"stun","1"),i=new Promise((e,t)=>{setTimeout(()=>{t(new Error("Timeout waiting for refresh ice servers to finish"))},15e3),Promise.all([n,r]).then(t=>{let[n,r]=t;e([n,r])}).catch(t)}),[s,o]=await i,a=[...s.services,...o.services].map(e=>{const t=e.port?":"+e.port:"",n={type:e.type,urls:`${e.type}:${e.host}${t}`};return["turn","turns"].includes(e.type)&&(e.transport&&"udp"!==e.transport&&(n.urls+="?transport="+e.transport),e.username&&(n.username=e.username),e.password&&(n.credential=e.password)),n});return this.setIceServers(a,e),o.services.length?this.setIceTransportPolicy("all",e):(this.logger.info('No stun servers received, setting iceTransportPolicy to "relay"'),this.setIceTransportPolicy("relay",e)),a}setIceServers(e,t){t.jingle.iceServers=e,this.iceServers=e}getIceTransportPolicy(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle.config.peerConnectionConfig.iceTransportPolicy}setIceTransportPolicy(e,t){t.jingle.config.peerConnectionConfig.iceTransportPolicy=e}getSessionTypeByJid(e){return p.isAcdJid(e)?m.SessionTypes.acdScreenShare:p.isScreenRecordingJid(e)?m.SessionTypes.screenRecording:p.isSoftphoneJid(e)?m.SessionTypes.softphone:p.isVideoJid(e)?m.SessionTypes.collaborateVideo:m.SessionTypes.unknown}getSessionManager(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle}getAllSessions(){var e;const t=null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle.sessions;return[...t&&Object.values(t)||[],...this.webrtcSessions]}proxyNRStat(e){this.addStatToQueue(e)}get expose(){return{on:this.on.bind(this),once:this.once.bind(this),off:this.off.bind(this),removeAllListeners:this.removeAllListeners.bind(this),removeListener:this.removeListener.bind(this),refreshIceServers:this.refreshIceServers.bind(this),acceptRtcSession:this.acceptRtcSession.bind(this),rejectRtcSession:this.rejectRtcSession.bind(this),cancelRtcSession:this.cancelRtcSession.bind(this),notifyScreenShareStart:this.notifyScreenShareStart.bind(this),notifyScreenShareStop:this.notifyScreenShareStop.bind(this),rtcSessionAccepted:this.rtcSessionAccepted.bind(this),initiateRtcSession:this.initiateRtcSession.bind(this),getSessionTypeByJid:this.getSessionTypeByJid.bind(this),getSessionManager:this.getSessionManager.bind(this),getAllSessions:this.getAllSessions.bind(this),proxyNRStat:this.proxyNRStat.bind(this)}}}t.WebrtcExtension=A},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TABLE_DATA=void 0,t.TABLE_DATA={"A.1":{r:"hk:if|le:lf|nf:nv|qg:qv|rg:rj|rm:rp|rr:rt|rv:s3|vn:vv|17m:17n|17q:17v|18g:19g|1an:1ao|1cb:1cg|1e5:1ef|1fb:1ff|1fl:1gb|1gd:1gq|1gs:1gu|1hr:1hv|1im:1iv|1ne:1nf|1pd:1pf|1qb:1rv|1ti:280|29q:29r|2ae:2af|2al:2an|2bh:2c0|2cd:2ce|2ch:2ci|2dj:2dl|2dq:2dr|2e5:2e6|2e9:2ea|2ee:2em|2eo:2er|2f4:2f5|2fr:2g1|2g3:2g4|2gb:2ge|2gh:2gi|2hq:2hr|2i3:2i6|2i9:2ia|2ie:2io|2iv:2j5|2jl:2k0|2lq:2lr|2me:2mf|2mh:2mv|2n1:2n5|2ng:2o0|2od:2oe|2oh:2oi|2pk:2pl|2pq:2pr|2q4:2q6|2q9:2qa|2qe:2ql|2qo:2qr|2r2:2r5|2rh:2s1|2sb:2sd|2sm:2so|2t0:2t2|2t5:2t7|2tb:2td|2tq:2tt|2u3:2u5|2ue:2um|2uo:2v6|2vj:300|31q:31t|32e:32k|32n:32v|332:335|33g:341|35q:35t|36e:36k|36n:36t|372:375|37g:381|39q:39t|3a4:3a5|3ae:3am|3ao:3av|3b2:3b5|3bg:3c1|3cn:3cp|3du:3dv|3e7:3e9|3eb:3ee|3f0:3fh|3fl:3g0|3hr:3hu|3is:3k0|3k5:3k6|3kb:3kc|3ke:3kj|3l8:3l9|3lu:3lv|3me:3mf|3mq:3mr|3mu:3nv|3rb:3rg|3sc:3sf|3ud:3ue|3ug:3vv|41j:41l|41q:41v|42q:44v|466:46f|47p:47q|47s:47v|4aq:4au|4d3:4d7|4fq:4fv|4ie:4if|4iu:4iv|4ke:4kf|4lm:4ln|4m6:4m7|4om:4on|4qr:4r0|4rt:4sv|4vl:500|5jn:5jv|5kt:5kv|5nh:5nv|5ol:5ov|5pn:5pv|5qk:5qv|5rk:5rv|5ut:5uv|5va:5vv|60q:60v|63o:63v|65a:7fv|7ks:7kv|7nq:7nv|7om:7on|7ou:7ov|7q6:7q7|7qe:7qf|7ru:7rv|7uk:7ul|7vg:7vh|82j:82m|82o:82u|834:839|83i:83j|84f:84v|85i:86f|87b:87v|89r:89s|8ac:8ai|8c4:8cf|8uf:8vv|917:91v|92b:92v|9gk:9gl|9ju:9jv|9ka:9o0|9oa:9ob|9qj:9ql|9qv:9r0|9sl:9sn|9tv:9uf|9vc:9vf|ao0:bjv|bnk:bnv|bum:bvf|bvs:bvv|c4n:c4o|c80:c84|c9d:c9g|cdo:cff|cgt:cgv|ci4:cig|cjs:cju|cmc:cmf|crn:crq|cuu:cuv|jdm:jfv|17t6:17vv|194d:194f|1967:1avv|1lt4:1lvv|1uhe:1uhf|1ujb:1unv|1uo7:1uoi|1uoo:1uos|1uti:1uui|1va0:1vaf|1vcg:1vch|1ve8:1vef|1vft:1vfv|1vgg:1vgv|1vh4:1vhf|1vi7:1vi8|1vjc:1vjf|1vnt:1vnu|1vtv:1vu1|1vu8:1vu9|1vug:1vuh|1vuo:1vup|1vut:1vuv|1vvf:1vvo|2000:20nv|20p4:20pf|20qb:20vv|2116:2117|212e:3jvv|3k7m:3k7v|3k97:3k99|3keu:3kvv|3l50:3l51|3l53:3l54|3l57:3l58|3l8b:3l8c|3la7:3la9|3ll4:3ll7|3lua:3lud|3m00:3vvt|59mn:5tvv|5ugu:5vvt|6000:7vvt|8000:9vvt|a000:bvvt|c000:dvvt|e000:fvvt|g000:hvvt|i000:jvvt|k000:lvvt|m000:nvvt|o000:pvvt|q000:rvvt|s002:s00v|s040:tvvt",s:"9p8|9qc|9qe|9qn|9tg|147|bkq|3l2l|3l4t|3l5d|3l5q|3l5s|3l61|3l64|3l86|3l8l|3l8t|3l9q|3l9v|3la5|3lah|16f|c20|ccf|cnv|cvv|1b0|1c8|1d2|1dq|1h0|1nv|1oe|284|2c4|2d9|2dh|2dt|2eu|2h9|2hh|2hk|2hn|2ht|2it|2k4|2kc|2ke|2ki|2l9|2lh|2lk|2m6|2ma|2o4|2p9|2ph|2qu|2s4|2sh|2sr|2st|2tm|2u9|304|30d|30h|319|31k|325|329|344|34d|34h|359|35k|365|369|36v|384|38d|38h|399|3a9|3c4|3di|3ds|3el|3en|3k3|3k9|3ko|3l0|3l4|3l6|3lc|3lq|3m5|3m7|3q8|3so|3tt|412|418|41b|4g7|4i7|4i9|4in|4ip|4k7|4k9|4lf|4lh|4lv|4m1|4mf|4mn|4nf|4of|4oh|4ov|4q7|h1|5od|5rd|5rh|60f|1upn|1upt|1upv|1uq2|1uq5|1vij|1vj7|1vjl|1vo0|1vv7|20ov|7qo|7qq|7qs|7qu|7tl|7u5|7us|7vl|7vv|sb|sd|s000|t2|97v|uf|9go|9o5"},"B.1":{r:"60b:60d|80b:80d|1vg0:1vgf",s:"5d|606|1vnv|830|qf"},"B.2":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|rq:10;tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ui:u5|uj:ud|uk:ub|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|858:3i;3j|882:33|883:5g;33|887:ir|889:5g;36|88b:38|88c:38|88d:38|88g:39|88h:39|88i:3c|88l:3e|88m:3e;3f|88p:3g|88q:3h|88r:3i|88s:3i|88t:3i|890:3j;3d|891:3k;35;3c|892:3k;3d|894:3q|898:3q|89c:32|89d:33|89g:35|89h:36|89j:3d|89u:tj|89v:u0|8a5:34|crh:38;3g;31|crj:31;3l|crl:3f;3m|cs0:3g;31|cs1:3e;31|cs2:ts;31|cs3:3d;31|cs4:3b;31|cs5:3b;32|cs6:3d;32|cs7:37;32|csa:3g;36|csb:3e;36|csc:ts;36|csg:38;3q|csh:3b;38;3q|csi:3d;38;3q|csj:37;38;3q|csk:3k;38;3q|ct9:3g;31|cta:3b;3g;31|ctb:3d;3g;31|ctc:37;3g;31|ctk:3g;3m|ctl:3e;3m|ctm:ts;3m|ctn:3d;3m|cto:3b;3m|ctp:3d;3m|ctq:3g;3n|ctr:3e;3n|cts:ts;3n|ctt:3d;3n|ctu:3b;3n|ctv:3d;3n|cu0:3b;u9|cu1:3d;u9|cu3:32;3h|cu6:33;8gl;3b;37|cu7:33;3f;1e|cu8:34;32|cu9:37;3p|cub:38;3g|cud:3b;3b|cue:3b;3d|cun:3g;38|cup:3g;3g;3d|cuq:3g;3i|cus:3j;3m|cut:3n;32|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd|3l00:31|3l01:32|3l02:33|3l03:34|3l04:35|3l05:36|3l06:37|3l07:38|3l08:39|3l09:3a|3l0a:3b|3l0b:3c|3l0c:3d|3l0d:3e|3l0e:3f|3l0f:3g|3l0g:3h|3l0h:3i|3l0i:3j|3l0j:3k|3l0k:3l|3l0l:3m|3l0m:3n|3l0n:3o|3l0o:3p|3l0p:3q|3l1k:31|3l1l:32|3l1m:33|3l1n:34|3l1o:35|3l1p:36|3l1q:37|3l1r:38|3l1s:39|3l1t:3a|3l1u:3b|3l1v:3c|3l20:3d|3l21:3e|3l22:3f|3l23:3g|3l24:3h|3l25:3i|3l26:3j|3l27:3k|3l28:3l|3l29:3m|3l2a:3n|3l2b:3o|3l2c:3p|3l2d:3q|3l38:31|3l39:32|3l3a:33|3l3b:34|3l3c:35|3l3d:36|3l3e:37|3l3f:38|3l3g:39|3l3h:3a|3l3i:3b|3l3j:3c|3l3k:3d|3l3l:3e|3l3m:3f|3l3n:3g|3l3o:3h|3l3p:3i|3l3q:3j|3l3r:3k|3l3s:3l|3l3t:3m|3l3u:3n|3l3v:3o|3l40:3p|3l41:3q|3l4s:31|3l4u:33|3l4v:34|3l52:37|3l55:3a|3l56:3b|3l59:3e|3l5a:3f|3l5b:3g|3l5c:3h|3l5e:3j|3l5f:3k|3l5g:3l|3l5h:3m|3l5i:3n|3l5j:3o|3l5k:3p|3l5l:3q|3l6g:31|3l6h:32|3l6i:33|3l6j:34|3l6k:35|3l6l:36|3l6m:37|3l6n:38|3l6o:39|3l6p:3a|3l6q:3b|3l6r:3c|3l6s:3d|3l6t:3e|3l6u:3f|3l6v:3g|3l70:3h|3l71:3i|3l72:3j|3l73:3k|3l74:3l|3l75:3m|3l76:3n|3l77:3o|3l78:3p|3l79:3q|3l84:31|3l85:32|3l87:34|3l88:35|3l89:36|3l8a:37|3l8d:3a|3l8e:3b|3l8f:3c|3l8g:3d|3l8h:3e|3l8i:3f|3l8j:3g|3l8k:3h|3l8m:3j|3l8n:3k|3l8o:3l|3l8p:3m|3l8q:3n|3l8r:3o|3l8s:3p|3l9o:31|3l9p:32|3l9r:34|3l9s:35|3l9t:36|3l9u:37|3la0:39|3la1:3a|3la2:3b|3la3:3c|3la4:3d|3la6:3f|3laa:3j|3lab:3k|3lac:3l|3lad:3m|3lae:3n|3laf:3o|3lag:3p|3lbc:31|3lbd:32|3lbe:33|3lbf:34|3lbg:35|3lbh:36|3lbi:37|3lbj:38|3lbk:39|3lbl:3a|3lbm:3b|3lbn:3c|3lbo:3d|3lbp:3e|3lbq:3f|3lbr:3g|3lbs:3h|3lbt:3i|3lbu:3j|3lbv:3k|3lc0:3l|3lc1:3m|3lc2:3n|3lc3:3o|3lc4:3p|3lc5:3q|3ld0:31|3ld1:32|3ld2:33|3ld3:34|3ld4:35|3ld5:36|3ld6:37|3ld7:38|3ld8:39|3ld9:3a|3lda:3b|3ldb:3c|3ldc:3d|3ldd:3e|3lde:3f|3ldf:3g|3ldg:3h|3ldh:3i|3ldi:3j|3ldj:3k|3ldk:3l|3ldl:3m|3ldm:3n|3ldn:3o|3ldo:3p|3ldp:3q|3lek:31|3lel:32|3lem:33|3len:34|3leo:35|3lep:36|3leq:37|3ler:38|3les:39|3let:3a|3leu:3b|3lev:3c|3lf0:3d|3lf1:3e|3lf2:3f|3lf3:3g|3lf4:3h|3lf5:3i|3lf6:3j|3lf7:3k|3lf8:3l|3lf9:3m|3lfa:3n|3lfb:3o|3lfc:3p|3lfd:3q|3lg8:31|3lg9:32|3lga:33|3lgb:34|3lgc:35|3lgd:36|3lge:37|3lgf:38|3lgg:39|3lgh:3a|3lgi:3b|3lgj:3c|3lgk:3d|3lgl:3e|3lgm:3f|3lgn:3g|3lgo:3h|3lgp:3i|3lgq:3j|3lgr:3k|3lgs:3l|3lgt:3m|3lgu:3n|3lgv:3o|3lh0:3p|3lh1:3q|3lhs:31|3lht:32|3lhu:33|3lhv:34|3li0:35|3li1:36|3li2:37|3li3:38|3li4:39|3li5:3a|3li6:3b|3li7:3c|3li8:3d|3li9:3e|3lia:3f|3lib:3g|3lic:3h|3lid:3i|3lie:3j|3lif:3k|3lig:3l|3lih:3m|3lii:3n|3lij:3o|3lik:3p|3lil:3q|3ljg:31|3ljh:32|3lji:33|3ljj:34|3ljk:35|3ljl:36|3ljm:37|3ljn:38|3ljo:39|3ljp:3a|3ljq:3b|3ljr:3c|3ljs:3d|3ljt:3e|3lju:3f|3ljv:3g|3lk0:3h|3lk1:3i|3lk2:3j|3lk3:3k|3lk4:3l|3lk5:3m|3lk6:3n|3lk7:3o|3lk8:3p|3lk9:3q|3ll8:th|3ll9:ti|3lla:tj|3llb:tk|3llc:tl|3lld:tm|3lle:tn|3llf:to|3llg:tp|3llh:tq|3lli:tr|3llj:ts|3llk:tt|3lll:tu|3llm:tv|3lln:u0|3llo:u1|3llp:to|3llq:u3|3llr:u4|3lls:u5|3llt:u6|3llu:u7|3llv:u8|3lm0:u9|3lmj:u3|3ln2:th|3ln3:ti|3ln4:tj|3ln5:tk|3ln6:tl|3ln7:tm|3ln8:tn|3ln9:to|3lna:tp|3lnb:tq|3lnc:tr|3lnd:ts|3lne:tt|3lnf:tu|3lng:tv|3lnh:u0|3lni:u1|3lnj:to|3lnk:u3|3lnl:u4|3lnm:u5|3lnn:u6|3lno:u7|3lnp:u8|3lnq:u9|3lod:u3|3los:th|3lot:ti|3lou:tj|3lov:tk|3lp0:tl|3lp1:tm|3lp2:tn|3lp3:to|3lp4:tp|3lp5:tq|3lp6:tr|3lp7:ts|3lp8:tt|3lp9:tu|3lpa:tv|3lpb:u0|3lpc:u1|3lpd:to|3lpe:u3|3lpf:u4|3lpg:u5|3lph:u6|3lpi:u7|3lpj:u8|3lpk:u9|3lq7:u3|3lqm:th|3lqn:ti|3lqo:tj|3lqp:tk|3lqq:tl|3lqr:tm|3lqs:tn|3lqt:to|3lqu:tp|3lqv:tq|3lr0:tr|3lr1:ts|3lr2:tt|3lr3:tu|3lr4:tv|3lr5:u0|3lr6:u1|3lr7:to|3lr8:u3|3lr9:u4|3lra:u5|3lrb:u6|3lrc:u7|3lrd:u8|3lre:u9|3ls1:u3|3lsg:th|3lsh:ti|3lsi:tj|3lsj:tk|3lsk:tl|3lsl:tm|3lsm:tn|3lsn:to|3lso:tp|3lsp:tq|3lsq:tr|3lsr:ts|3lss:tt|3lst:tu|3lsu:tv|3lsv:u0|3lt0:u1|3lt1:to|3lt2:u3|3lt3:u4|3lt4:u5|3lt5:u6|3lt6:u7|3lt7:u8|3lt8:u9|3ltr:u3",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"B.3":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"C.1.1":{s:"10"},"C.1.2":{r:"800:80b",s:"c00|50|5k0|81f|82v"},"C.2.1":{r:"0:v",s:"3v"},"C.2.2":{r:"40:4v|80c:80d|818:819|830:833|83a:83f|1vvp:1vvs|3kbj:3kbq",s:"1mt|1of|60e|1vnv"},"C.3":{r:"1o00:1u7v|u000:vvvt|10000:11vvt"},"C.4":{r:"1veg:1vff|1vvu:1vvv|3vvu:3vvv|5vvu:5vvv|7vvu:7vvv|9vvu:9vvv|bvvu:bvvv|dvvu:dvvv|fvvu:fvvv|hvvu:hvvv|jvvu:jvvv|lvvu:lvvv|nvvu:nvvv|pvvu:pvvv|rvvu:rvvv|tvvu:tvvv|vvvu:vvvv|11vvu:11vvv"},"C.5":{r:"1m00:1nvv"},"C.6":{r:"1vvp:1vvt"},"C.7":{r:"bvg:bvr"},"C.8":{r:"q0:q1|80e:80f|81a:81e|83a:83f"},"C.9":{r:"s010:s03v",s:"s001"},"D.1":{r:"1eg:1fa|1fg:1fk|1h1:1hq|1i0:1ia|1jd:1jf|1jh:1ml|1n5:1n6|1nq:1nu|1o0:1od|1oi:1pc|1s0:1t5|1uov:1up8|1upa:1upm|1upo:1ups|1uq0:1uq1|1uq3:1uq4|1uq6:1uth|1uuj:1v9t|1vag:1vcf|1vci:1ve7|1vfg:1vfs|1vjg:1vjk|1vjm:1vns",s:"1du|1e0|1e3|1gr|1gv|1mt|1og|1th|1uot|1upu|80f"},"D.2":{r:"21:2q|31:3q|60:6m|6o:7m|7o:h0|h2:hj|ig:ld|lg:lo|lr:m1|mg:mh|n0:n4|s8:sa|se:t1|t3:ue|ug:vl|100:142|14a:16e|16g:17l|17o:17p|180:18f|19h:1am|1ap:1av|1b1:1c7|285:29p|29t:2a0|2a9:2ac|2ao:2b1|2b4:2bg|2c2:2c3|2c5:2cc|2cf:2cg|2cj:2d8|2da:2dg|2dm:2dp|2du:2e0|2e7:2e8|2eb:2ec|2es:2et|2ev:2f1|2f6:2fh|2fk:2fq|2g5:2ga|2gf:2gg|2gj:2h8|2ha:2hg|2hi:2hj|2hl:2hm|2ho:2hp|2hu:2i0|2ip:2is|2j6:2jf|2ji:2jk|2k5:2kb|2kf:2kh|2kj:2l8|2la:2lg|2li:2lj|2ll:2lp|2lt:2m0|2mb:2mc|2n6:2nf|2o2:2o3|2o5:2oc|2of:2og|2oj:2p8|2pa:2pg|2pi:2pj|2pm:2pp|2pt:2pu|2q7:2q8|2qb:2qc|2qs:2qt|2qv:2r1|2r6:2rg|2s5:2sa|2se:2sg|2si:2sl|2sp:2sq|2su:2sv|2t3:2t4|2t8:2ta|2te:2tl|2tn:2tp|2tu:2tv|2u1:2u2|2u6:2u8|2ua:2uc|2v7:2vi|301:303|305:30c|30e:30g|30i:318|31a:31j|31l:31p|321:324|330:331|336:33f|342:343|345:34c|34e:34g|34i:358|35a:35j|35l:35p|360:364|367:368|36a:36b|36l:36m|370:371|376:37f|382:383|385:38c|38e:38g|38i:398|39a:39p|39u:3a0|3a6:3a8|3aa:3ac|3b0:3b1|3b6:3bf|3c2:3c3|3c5:3cm|3cq:3dh|3dj:3dr|3e0:3e6|3ef:3eh|3eo:3ev|3fi:3fk|3g1:3hg|3hi:3hj|3i0:3i6|3if:3ir|3k1:3k2|3k7:3k8|3kk:3kn|3kp:3kv|3l1:3l3|3la:3lb|3ld:3lg|3li:3lj|3m0:3m4|3mg:3mp|3ms:3mt|3o0:3on|3oq:3pk|3pu:3q7|3q9:3ra|3s8:3sb|3tu:3u5|3u7:3uc|400:411|413:417|419:41a|420:42n|450:465|46g:47o|480:4ap|4av:4d2|4d8:4fp|4g0:4g6|4g8:4i6|4ia:4id|4ig:4im|4iq:4it|4j0:4k6|4ka:4kd|4kg:4le|4li:4ll|4lo:4lu|4m2:4m5|4m8:4me|4mg:4mm|4mo:4ne|4ng:4oe|4oi:4ol|4oo:4ou|4p0:4q6|4q8:4qq|4r1:4rs|4t0:4vk|501:5jm|5k1:5kq|5l0:5ng|5o0:5oc|5oe:5oh|5p0:5ph|5pl:5pm|5q0:5qh|5r0:5rc|5re:5rg|5s0:5tm|5tu:5u5|5u7:5u8|5uk:5uq|5v0:5v9|60g:60p|610:63n|640:658|7g0:7kr|7l0:7np|7o0:7ol|7oo:7ot|7p0:7q5|7q8:7qd|7qg:7qn|7qv:7rt|7s0:7tk|7tm:7ts|7u2:7u4|7u6:7uc|7ug:7uj|7um:7ur|7v0:7vc|7vi:7vk|7vm:7vs|88a:88j|88p:88t|89a:89d|89f:89h|89j:89p|89t:89v|8a5:8a9|8b0:8c3|8pm:8rq|94s:979|c05:c07|c11:c19|c1h:c1l|c1o:c1s|c21:c4m|c4t:c4v|c51:c7q|c7s:c7v|c85:c9c|c9h:cce|ccg:cdn|cfg:cgs|ch0:ci3|cj0:cjr|cjv:clg|cm0:cmb|cmg:cnu|co0:crm|crr:cut|cv0:cvu|d00:jdl|jg0:17t5|1800:194c|1b00:1lt3|1m00:1uhd|1uhg:1uja|1uo0:1uo6|1uoj:1uon|1vp1:1vpq|1vq1:1vqq|1vr6:1vtu|1vu2:1vu7|1vua:1vuf|1vui:1vun|1vuq:1vus|20o0:20ou|20p0:20p3|20pg:20qa|2100:2115|2118:212d|3k00:3k7l|3k80:3k96|3k9a:3kb6|3kba:3kbi|3kc3:3kc4|3kcc:3kd9|3kde:3ket|3l00:3l2k|3l2m:3l4s|3l4u:3l4v|3l55:3l56|3l59:3l5c|3l5e:3l5p|3l5t:3l60|3l62:3l63|3l65:3l85|3l87:3l8a|3l8d:3l8k|3l8m:3l8s|3l8u:3l9p|3l9r:3l9u|3la0:3la4|3laa:3lag|3lai:3ll3|3ll8:3lu9|4000:59mm|5u00:5ugt|u000:vvvt|10000:11vvt",s:"3l52|3l5r|3la6|1c9|5a|5l|5q|283|2ag|2di|2en|2iu|2k3|2kd|2m9|2mg|2n0|2q0|2qn|2s3|2ss|2un|35u|36u|3an|3dt|3k4|3ka|3kd|3l5|3l7|3lt|3m6|3pm|3po|3rv|3s5|3uf|41c|41h|41o|47r|4i8|4io|4k8|4lg|4m0|4og|5us|ne|7qp|7qr|7qt|7tu|80e|83h|83v|882|887|88l|894|896|898|rq|s6|sc|8sl"}}},function(e,t,n){"use strict";const r=n(264),i=Symbol("max"),s=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),d=Symbol("lruList"),p=Symbol("cache"),h=Symbol("updateAgeOnGet"),f=()=>1;const m=(e,t,n)=>{const r=e[p].get(t);if(r){const t=r.value;if(g(e,t)){if(b(e,r),!e[a])return}else n&&(e[h]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},y=e=>{if(e[s]>e[i])for(let t=e[d].tail;e[s]>e[i]&&null!==t;){const n=t.prev;b(e,t),t=n}},b=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[s]-=n.length,e[p].delete(n.key),e[d].removeNode(t)}};class v{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const _=(e,t,n,r)=>{let i=n.value;g(e,i)&&(b(e,n),e[a]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,y(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[s]=0,this[d].forEach(e=>{e.length=this[o](e.value,e.key),this[s]+=e.length})),y(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let n=this[d].tail;null!==n;){const r=n.prev;_(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[d].head;null!==n;){const r=n.next;_(this,e,n,t),n=r}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach(e=>this[u](e.key,e.value)),this[p]=new Map,this[d]=new r,this[s]=0}dump(){return this[d].map(e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,n){if((n=n||this[c])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,a=this[o](t,e);if(this[p].has(e)){if(a>this[i])return b(this,this[p].get(e)),!1;const o=this[p].get(e).value;return this[u]&&(this[l]||this[u](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[s]+=a-o.length,o.length=a,this.get(e),y(this),!0}const h=new v(e,t,a,r,n);return h.length>this[i]?(this[u]&&this[u](e,t),!1):(this[s]+=h.length,this[d].unshift(h),this[p].set(e,this[d].head),y(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[d].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[p].forEach((e,t)=>m(this,t,!1))}}},function(e,t,n){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new a(n,null,t,e):new a(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function s(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,n,r){if(!(this instanceof a))return new a(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=a,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)s(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,s=this.head;null!==s&&i<e;i++)s=s.next;for(;null!==s&&i<t;i++,s=s.next)n.push(s.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,s=this.tail;null!==s&&i>t;i--)s=s.prev;for(;null!==s&&i>e;i--,s=s.prev)n.push(s.value);return n},r.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n<e;n++)r=r.next;var s=[];for(n=0;r&&n<t;n++)s.push(r.value),r=this.removeNode(r);null===r&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev);for(n=0;n<(arguments.length<=2?0:arguments.length-2);n++)r=i(this,r,n+2<2||arguments.length<=n+2?void 0:arguments[n+2]);return s},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(265)(r)}catch(e){}},function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=a||c||Function("return this")(),l=Object.prototype.toString,d=Math.max,p=Math.min,h=function(){return u.Date.now()};function f(e,t,n){var r,i,s,o,a,c,u=0,l=!1,f=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,s=i;return r=i=void 0,u=t,o=e.apply(s,n)}function v(e){return u=e,a=setTimeout(S,t),l?b(e):o}function _(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-u>=s}function S(){var e=h();if(_(e))return w(e);a=setTimeout(S,function(e){var n=t-(e-c);return f?p(n,s-(e-u)):n}(e))}function w(e){return a=void 0,y&&r?b(e):(r=i=void 0,o)}function T(){var e=h(),n=_(e);if(r=arguments,i=this,c=e,n){if(void 0===a)return v(c);if(f)return a=setTimeout(S,t),b(c)}return void 0===a&&(a=setTimeout(S,t)),o}return t=g(t)||0,m(n)&&(l=!!n.leading,s=(f="maxWait"in n)?d(g(n.maxWait)||0,t):s,y="trailing"in n?!!n.trailing:y),T.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=c=i=a=void 0},T.flush=function(){return void 0===a?o:w(h())},T}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=i.test(e);return a||s.test(e)?o(e.slice(2),a?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),f(e,t,{leading:r,maxWait:t,trailing:i})}}).call(this,n(12))},function(e,t,n){e.exports=function(){"use strict";var e="undefined"==typeof window,t=!1,n=!1,r=!1,i=!1,s=!1,o=!1,a=!1,c=!1,u=!1,l=!1;return e||(t="undefined"!=typeof InstallTrigger,n=!!window.chrome,r=!(!window.chrome||!window.navigator||!window.navigator.plugins||!window.navigator.plugins.namedItem("Chrome PDF Plugin")&&!window.chrome.runtime),i=n&&!window.chrome.webstore&&!window.chrome.runtime,s=0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||window.safari&&window.safari.pushNotification,o=!!window.opr&&!!window.opr.addons||!!window.opera,a=!!window.StyleMedia,c=n&&!!navigator.userAgent.match(/edg/i),u=(r||o)&&!!window.CSS,l=!(n||s||t||o||!document.documentMode)),{get isChrome(){return r},get isChromeOrChromium(){return n},get isChromium(){return i},get isFirefox(){return t},get isSafari(){return s},get isOpera(){return o},get isEdge(){return a},get isEdgeChromium(){return c},get isIE(){return l},get isBlink(){return u}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.definitions=void 0;const r=n(2),i=n(1),s={aliases:["message.propose"],element:"propose",fields:{conversationId:r.attribute("inin-cid"),persistentConversationId:r.attribute("inin-persistent-cid"),sdpOverXmpp:r.booleanAttribute("inin-sdp-over-xmpp"),privAnswerMode:r.attribute("inin-priv-answer-mode"),originalRoomJid:r.attribute("inin-ofrom"),autoAnswer:r.booleanAttribute("inin-autoanswer"),fromUserId:r.attribute("inin-user-id"),sessionId:r.attribute("id"),meetingId:r.attribute("inin-meeting-id")},namespace:"urn:xmpp:jingle-message:0"},o={aliases:["message.proceed"],element:"proceed",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},a={aliases:["message.accept"],element:"accept",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},c={aliases:["message.reject"],element:"reject",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},u={aliases:["message.retract"],element:"retract",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},l={aliases:["iq.jingle.screenstart"],element:"screen-start",namespace:i.NS_JINGLE_RTP_INFO_1},d={aliases:["iq.jingle.screenstop"],element:"screen-stop",namespace:i.NS_JINGLE_RTP_INFO_1},p={path:"iq",namespace:i.NS_CLIENT,element:"iq",fields:{genesysWebrtc:r.childJSON("genesys","genesys-webrtc")}},h={path:"message",namespace:i.NS_CLIENT,element:"message",fields:{mediaMessage:r.childJSON("genesys","media-message")}},f={aliases:["presence.media"],element:"x",fields:{conversationId:r.attribute("conversationId"),sourceCommunicationId:r.attribute("sourceCommunicationId"),screenShare:r.childAttribute(null,"mediastream","screenShare"),video:r.childAttribute(null,"mediastream","video"),audio:r.childAttribute(null,"mediastream","audio"),listener:r.childAttribute(null,"mediastream","listener"),screenRecording:r.childAttribute(null,"mediastream","screenRecording")},namespace:"orgspan:mediastream"};t.definitions=[s,o,a,c,u,l,d,f,p,h]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(32),s=(0,r.__importDefault)(n(270)),o=(0,r.__importDefault)(n(87));t.default=class{constructor(){this.translators=new Map,this.root=new o.default,this.setLanguageResolver(i.basicLanguageResolver)}setLanguageResolver(e){this.languageResolver=e}import(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{registry:this};if(!this.hasTranslator(e.getNamespace(),e.getName()))return;t.acceptLanguages||(t.acceptLanguages=[]),t.acceptLanguages=t.acceptLanguages.map(e=>e.toLowerCase()),t.lang&&(t.lang=t.lang.toLowerCase()),t.resolveLanguage||(t.resolveLanguage=this.languageResolver),t.path=this.getImportKey(e),t.sanitizers||(t.sanitizers={xhtmlim:s.default});return this.getOrCreateTranslator(e.getNamespace(),e.getName()).import(e,{...t,registry:this})}export(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{registry:this};n.acceptLanguages||(n.acceptLanguages=[]),n.acceptLanguages=n.acceptLanguages.map(e=>e.toLowerCase()),n.lang&&(n.lang=n.lang.toLowerCase()),n.sanitizers||(n.sanitizers={xhtmlim:s.default}),n.path=e;const r=e.split(".").filter(e=>""!==e);let i=this.root;for(const e of r){const t=i.getChild(e);if(!t)return;i=t}return i.export(t,{...n,registry:this})}getImportKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t?this.walkToTranslator(t.split(".")):this.root;if(n)return n.getImportKey(e)}define(e){if(Array.isArray(e)){for(const t of e)"object"==typeof t?this.define(t):t(this);return}if("object"!=typeof e)return void e(this);const t=e;t.aliases=t.aliases||[],t.path&&!t.aliases.includes(t.path)&&t.aliases.push(t.path);const n=t.aliases.map(e=>"string"==typeof e?{path:e}:e).sort((e,t)=>{const n=e.path.split(".").length;return t.path.split(".").length-n});let r;if(this.hasTranslator(t.namespace,t.element)&&(r=this.getOrCreateTranslator(t.namespace,t.element)),!r){let e;for(const t of n){const n=this.walkToTranslator(t.path.split("."));if(n&&!n.placeholder){r=n;break}n&&(e=n)}e&&!r&&(r=e,r.placeholder=!1)}r||(r=this.getOrCreateTranslator(t.namespace,t.element)),this.indexTranslator(t.namespace,t.element,r);const i=t.fields||{},s=new Map,o=new Map,a=new Map,c=new Map;t.typeField&&(r.typeField=t.typeField),t.defaultType&&(r.defaultType=t.defaultType),t.versionField&&(r.versionField=t.versionField),t.defaultVersion&&(r.defaultVersion=t.defaultVersion),t.languageField&&(r.languageField=t.languageField);for(const[e,t]of Object.entries(i))s.set(e,t.importer),a.set(e,t.importOrder||t.order||0),o.set(e,t.exporter),c.set(e,t.exportOrder||t.order||0);if(t.childrenExportOrder)for(const[e,n]of Object.entries(t.childrenExportOrder))c.set(e,n||0);const u=new Map;for(const[e,n]of Object.entries(t.optionalNamespaces||{}))u.set(e,n);r.updateDefinition({contexts:new Map,element:t.element,exporterOrdering:c,exporters:o,importerOrdering:a,importers:s,namespace:t.namespace,optionalNamespaces:u,type:t.type,version:t.version,typeOrder:t.typeOrder});for(const e of n)this.alias(t.namespace,t.element,e.path,e.multiple,e.selector,e.contextField,t.type,e.impliedType);for(const e of n){const t=this.walkToTranslator(e.path.split("."));t&&t!==r&&t.replaceWith(r)}}alias(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const c=this.getOrCreateTranslator(e,t);c.placeholder=!1;const u=n.split(".").filter(e=>""!==e),l=u.pop(),d=this.walkToTranslator(u,!0),p=`{${e}}${t}`;o&&(s||a)&&c.addContext(n,i,s,p,o,a),d.addChild(l,c,r,i,p)}walkToTranslator(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.root;for(const r of e){let e=n.getChild(r);if(!e){if(!t)return;e=new o.default,e.placeholder=!0,n.addChild(r,e)}n=e}return n}hasTranslator(e,t){return this.translators.has(`{${e}}${t}`)}getOrCreateTranslator(e,t){let n=this.translators.get(`{${e}}${t}`);return n||(n=new o.default,this.indexTranslator(e,t,n)),n}indexTranslator(e,t,n){this.translators.set(`{${e}}${t}`,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=new Set(["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul"]),i=new Set(["style"]),s=new Map([["a",new Set(["href","style"])],["body",new Set(["style","xml:lang"])],["blockquote",i],["br",i],["cite",i],["em",i],["img",new Set(["alt","height","src","style","width"])],["li",i],["ol",i],["p",i],["span",i],["strong",i],["ul",i]]),o=new Map([["font-style",/normal|italic|oblique|inherit/i],["font-weight",/normal|bold|bolder|lighter|inherit|\d\d\d/i],["text-decoration",/none|underline|overline|line-through|blink|inherit/i]]),a=e=>!!e.match(/^(https?|xmpp|cid|mailto|ftps?|im|ircs?|sips?|tel|geo|bitcoin|magnet):/i)&&e,c=e=>!!e.match(/^[0-9]*$/)&&e,u={alt:e=>e,height:c,href:a,src:a,style:e=>{const t=(";"+e).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/\/\*.*/,"").replace(/\\([a-fA-F0-9]{1,6})\s?/,(e,t)=>String.fromCharCode(parseInt(t,16))).match(/;\s*([a-z-]+)\s*:\s*([^;]*[^\s;])\s*/g),n=[];if(!t)return!1;for(const e of t){const t=e.match(/^;\s*([a-z-]+)\s*:\s*([^;]*[^\s])\s*$/);if(!t)continue;const r=o.get(t[1]);if(r){const e=t[2].match(r);e&&n.push(`${t[1]}:${e[0]}`)}}return!!n.length&&n.join("")},width:c};function l(e){if("string"==typeof e)return e;if(!r.has(e.name)){if("script"===e.name)return;return function(e){let t=[];for(const n of e.children)if("string"==typeof n)t.push(n);else{const e=l(n);e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t}(e)}const t=e.children.map(l).filter(e=>void 0!==e),n={};for(const[t,r]of Object.entries(e.attributes)){const i=s.get(e.name);if(!i||!i.has(t))continue;if(!r)continue;const o=u[t](r);o&&(n[t]=o)}return{attributes:n,children:t,name:e.name}}t.default=function(e){if("string"==typeof e)return;let t=[];for(const n of e.children){if(!n)continue;if("string"==typeof n){t.push(n);continue}const e=l(n);Array.isArray(e)?t=t.concat(e):e&&t.push(e)}const n={};return"body"===e.name?(void 0!==e.attributes.xmlns&&(n.xmlns=e.attributes.xmlns),e.attributes.style&&(n.style=e.attributes.style),void 0!==e.attributes["xml:lang"]&&(n["xml:lang"]=e.attributes["xml:lang"]),{attributes:n,children:t,name:"body"}):void 0}},function(e,t,n){"use strict";n(6),t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),o=r[0],a=r[1],c=new s(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),l=0,d=a>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(l(e,o,o+16383>a?a:o+16383));1===i?(t=e[n-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return s.join("")};for(var r=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a<c;++a)r[a]=o[a],i[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,s,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[(s=i)>>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t,n){"use strict";
|
|
32
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,r,i){var s,o,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,s=h&(1<<-l)-1,h>>=-l,l+=a;l>0;s=256*s+e[t+d],d+=p,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=r;l>0;o=256*o+e[t+d],d+=p,l-=8);if(0===s)s=1-u;else{if(s===c)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),s-=u}return(h?-1:1)*o*Math.pow(2,s-r)},t.write=function(e,t,n,r,i,s){var o,a,c,u=8*s-i-1,l=(1<<u)-1,d=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:s-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=l?(a=0,o=l):o+d>=1?(a=(t*c-1)*Math.pow(2,i),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&a,h+=f,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;e[n+h]=255&o,h+=f,o/=256,u-=8);e[n+h-f]|=128*m}},function(e,t,n){"use strict";var r=n(11).Buffer;t.BufferList=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}concat(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,s=r.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=s,i=a,t.copy(n,i),a+=o.data.length,o=o.next;return s}}},function(e,t,n){"use strict";e.exports=i;var r=n(93);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}Object.create(n(29)).inherits(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(11),s=(0,r.__importDefault)(n(28));function o(e,t){return e<<t|e>>>32-t}function a(e,t,n,r,i,s,a){return o(e+(t&n|~t&r)+i+s|0,a)+t|0}function c(e,t,n,r,i,s,a){return o(e+(t&r|n&~r)+i+s|0,a)+t|0}function u(e,t,n,r,i,s,a){return o(e+(t^n^r)+i+s|0,a)+t|0}function l(e,t,n,r,i,s,a){return o(e+(n^(t|~r))+i+s|0,a)+t|0}class d extends s.default{constructor(){super(64,56,"le"),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._m=new Array(16)}_update(e){const t=this._m;for(let n=0;n<16;++n)t[n]=e.readInt32LE(4*n);let n=this._a,r=this._b,i=this._c,s=this._d;n=a(n,r,i,s,t[0],3614090360,7),s=a(s,n,r,i,t[1],3905402710,12),i=a(i,s,n,r,t[2],606105819,17),r=a(r,i,s,n,t[3],3250441966,22),n=a(n,r,i,s,t[4],4118548399,7),s=a(s,n,r,i,t[5],1200080426,12),i=a(i,s,n,r,t[6],2821735955,17),r=a(r,i,s,n,t[7],4249261313,22),n=a(n,r,i,s,t[8],1770035416,7),s=a(s,n,r,i,t[9],2336552879,12),i=a(i,s,n,r,t[10],4294925233,17),r=a(r,i,s,n,t[11],2304563134,22),n=a(n,r,i,s,t[12],1804603682,7),s=a(s,n,r,i,t[13],4254626195,12),i=a(i,s,n,r,t[14],2792965006,17),r=a(r,i,s,n,t[15],1236535329,22),n=c(n,r,i,s,t[1],4129170786,5),s=c(s,n,r,i,t[6],3225465664,9),i=c(i,s,n,r,t[11],643717713,14),r=c(r,i,s,n,t[0],3921069994,20),n=c(n,r,i,s,t[5],3593408605,5),s=c(s,n,r,i,t[10],38016083,9),i=c(i,s,n,r,t[15],3634488961,14),r=c(r,i,s,n,t[4],3889429448,20),n=c(n,r,i,s,t[9],568446438,5),s=c(s,n,r,i,t[14],3275163606,9),i=c(i,s,n,r,t[3],4107603335,14),r=c(r,i,s,n,t[8],1163531501,20),n=c(n,r,i,s,t[13],2850285829,5),s=c(s,n,r,i,t[2],4243563512,9),i=c(i,s,n,r,t[7],1735328473,14),r=c(r,i,s,n,t[12],2368359562,20),n=u(n,r,i,s,t[5],4294588738,4),s=u(s,n,r,i,t[8],2272392833,11),i=u(i,s,n,r,t[11],1839030562,16),r=u(r,i,s,n,t[14],4259657740,23),n=u(n,r,i,s,t[1],2763975236,4),s=u(s,n,r,i,t[4],1272893353,11),i=u(i,s,n,r,t[7],4139469664,16),r=u(r,i,s,n,t[10],3200236656,23),n=u(n,r,i,s,t[13],681279174,4),s=u(s,n,r,i,t[0],3936430074,11),i=u(i,s,n,r,t[3],3572445317,16),r=u(r,i,s,n,t[6],76029189,23),n=u(n,r,i,s,t[9],3654602809,4),s=u(s,n,r,i,t[12],3873151461,11),i=u(i,s,n,r,t[15],530742520,16),r=u(r,i,s,n,t[2],3299628645,23),n=l(n,r,i,s,t[0],4096336452,6),s=l(s,n,r,i,t[7],1126891415,10),i=l(i,s,n,r,t[14],2878612391,15),r=l(r,i,s,n,t[5],4237533241,21),n=l(n,r,i,s,t[12],1700485571,6),s=l(s,n,r,i,t[3],2399980690,10),i=l(i,s,n,r,t[10],4293915773,15),r=l(r,i,s,n,t[1],2240044497,21),n=l(n,r,i,s,t[8],1873313359,6),s=l(s,n,r,i,t[15],4264355552,10),i=l(i,s,n,r,t[6],2734768916,15),r=l(r,i,s,n,t[13],1309151649,21),n=l(n,r,i,s,t[4],4149444226,6),s=l(s,n,r,i,t[11],3174756917,10),i=l(i,s,n,r,t[2],718787259,15),r=l(r,i,s,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+s|0}_hash(){const e=i.Buffer.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(11),s=(0,r.__importDefault)(n(28)),o=[1518500249,1859775393,-1894007588,-899497514];function a(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}class l extends s.default{constructor(){super(64,56),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this._w=new Array(80)}_update(e){const t=this._w;let n,r=0|this._a,i=0|this._b,s=0|this._c,l=0|this._d,d=0|this._e;for(n=0;n<16;++n)t[n]=e.readInt32BE(4*n);for(;n<80;++n)t[n]=(p=t[n-3]^t[n-8]^t[n-14]^t[n-16])<<1|p>>>31;var p;for(let e=0;e<80;++e){const n=~~(e/20),p=a(r)+u(n,i,s,l)+d+t[e]+o[n]|0;d=l,l=s,s=c(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=l+this._d|0,this._e=d+this._e|0}_hash(){const e=i.Buffer.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(11),s=(0,r.__importDefault)(n(28)),o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function a(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function u(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function l(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}class p extends s.default{constructor(){super(64,56),this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this._w=new Array(64)}_update(e){const t=this._w;let n,r=0|this._a,i=0|this._b,s=0|this._c,p=0|this._d,h=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h;for(n=0;n<16;++n)t[n]=e.readInt32BE(4*n);for(;n<64;++n)t[n]=0|(((y=t[n-2])>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+t[n-7]+d(t[n-15])+t[n-16];var y;for(let e=0;e<64;++e){const n=g+l(h)+a(h,f,m)+o[e]+t[e]|0,d=u(r)+c(r,i,s)|0;g=m,m=f,f=h,h=p+n|0,p=s,s=i,i=r,r=n+d|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=p+this._d|0,this._e=h+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0}_hash(){const e=i.Buffer.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e}}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(11),s=(0,r.__importDefault)(n(28)),o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function a(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function l(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function f(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function m(e,t){return e>>>0<t>>>0?1:0}class g extends s.default{constructor(){super(128,112),this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this._w=new Array(160)}_update(e){const t=this._w;let n,r,i=0|this._ah,s=0|this._bh,g=0|this._ch,y=0|this._dh,b=0|this._eh,v=0|this._fh,_=0|this._gh,S=0|this._hh,w=0|this._al,T=0|this._bl,I=0|this._cl,A=0|this._dl,E=0|this._el,N=0|this._fl,x=0|this._gl,C=0|this._hl,R=0;for(R=0;R<32;R+=2)t[R]=e.readInt32BE(4*R),t[R+1]=e.readInt32BE(4*R+4);for(;R<160;R+=2){let e=t[R-30],i=t[R-30+1];const s=d(e,i),o=p(i,e);e=t[R-4],i=t[R-4+1];const a=h(e,i),c=f(i,e),u=t[R-14],l=t[R-14+1],g=t[R-32],y=t[R-32+1];r=o+l|0,n=s+u+m(r,o)|0,r=r+c|0,n=n+a+m(r,c)|0,r=r+y|0,n=n+g+m(r,y)|0,t[R]=n,t[R+1]=r}for(let e=0;e<160;e+=2){n=t[e],r=t[e+1];const d=c(i,s,g),p=c(w,T,I),h=u(i,w),f=u(w,i),R=l(b,E),O=l(E,b),P=o[e],k=o[e+1],j=a(b,v,_),M=a(E,N,x);let L=C+O|0,D=S+R+m(L,C)|0;L=L+M|0,D=D+j+m(L,M)|0,L=L+k|0,D=D+P+m(L,k)|0,L=L+r|0,D=D+n+m(L,r)|0;const B=f+p|0,F=h+d+m(B,f)|0;S=_,C=x,_=v,x=N,v=b,N=E,E=A+L|0,b=y+D+m(E,A)|0,y=g,A=I,g=s,I=T,s=i,T=w,w=L+B|0,i=D+F+m(w,L)|0}this._al=this._al+w|0,this._bl=this._bl+T|0,this._cl=this._cl+I|0,this._dl=this._dl+A|0,this._el=this._el+E|0,this._fl=this._fl+N|0,this._gl=this._gl+x|0,this._hl=this._hl+C|0,this._ah=this._ah+i+m(this._al,w)|0,this._bh=this._bh+s+m(this._bl,T)|0,this._ch=this._ch+g+m(this._cl,I)|0,this._dh=this._dh+y+m(this._dl,A)|0,this._eh=this._eh+b+m(this._el,E)|0,this._fh=this._fh+v+m(this._fl,N)|0,this._gh=this._gh+_+m(this._gl,x)|0,this._hh=this._hh+S+m(this._hl,C)|0}_hash(){const e=i.Buffer.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e}}t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(11),s=n(53),o=(0,r.__importDefault)(n(88)),a=i.Buffer.alloc(128);class c extends s.Transform{constructor(e,t){super(),"string"==typeof t&&(t=i.Buffer.from(t));const n="sha512"===e?128:64;this._alg=e,t.length>n?t=(0,o.default)(e).update(t).digest():t.length<n&&(t=i.Buffer.concat([t,a],n)),this._ipad=i.Buffer.alloc(n),this._opad=i.Buffer.alloc(n);for(let e=0;e<n;e++)this._ipad[e]=54^t[e],this._opad[e]=92^t[e];this._hash=(0,o.default)(e).update(this._ipad)}_transform(e,t,n){let r;try{this.update(e,t)}catch(e){r=e}finally{n(r)}}_flush(e){let t;try{this.push(this._final())}catch(e){t=e}e(t)}_final(){const e=this._hash.digest();return(0,o.default)(this._alg).update(this._opad).update(e).digest()}update(e,t){return this._hash.update(e,t),this}digest(e){const t=this._final()||i.Buffer.alloc(0);return e?t.toString(e):t}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubsubItemContentAliases=t.extendStanzaError=t.extendStreamFeatures=t.extendIQ=t.extendPresence=t.extendMessage=t.addAlias=t.childJID=t.childJIDAttribute=t.JIDAttribute=void 0;const r=n(1),i=n(52);t.JIDAttribute=i.attribute,t.childJIDAttribute=i.childAttribute,t.childJID=i.childText,t.addAlias=function(e,t,n){return{aliases:Array.isArray(n)?n:[n],element:t,fields:{},namespace:e}},t.extendMessage=function(e){return{element:"message",fields:e,namespace:r.NS_CLIENT}},t.extendPresence=function(e){return{element:"presence",fields:e,namespace:r.NS_CLIENT}},t.extendIQ=function(e){return{element:"iq",fields:e,namespace:r.NS_CLIENT}},t.extendStreamFeatures=function(e){return{element:"features",fields:e,namespace:r.NS_STREAM}},t.extendStanzaError=function(e){return{element:"error",fields:e,namespace:r.NS_STANZAS,path:"stanzaError"}},t.pubsubItemContentAliases=function(){return[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(9),s=(0,r.__importDefault)(n(31)),o=(0,r.__importDefault)(n(51)),a=(0,r.__importDefault)(n(54));class c extends i.Transform{constructor(e){super({objectMode:!0}),this.closedStream=!1,this.wrappedStream=!1,this.registry=e.registry,this.acceptLanguages=e.acceptLanguages||[],e.wrappedStream&&(this.wrappedStream=!0,this.rootImportKey=e.rootKey),this.parser=new a.default({allowComments:e.allowComments}),this.parser.on("error",e=>{this.destroy(e)}),this.parser.on("startElement",(e,t)=>{if(this.destroyed)return;if(this.closedStream)return this.destroy(o.default.alreadyClosed());const n=new s.default(e,t),r=this.registry.getImportKey(n);if(this.wrappedStream&&!this.rootElement){if(this.rootImportKey&&r!==this.rootImportKey)return this.destroy(o.default.unknownRoot());const e=this.registry.import(n,{acceptLanguages:this.acceptLanguages,lang:this.lang});return e?(this.rootElement=n,void this.push({event:"stream-start",kind:r,stanza:e,xml:n})):this.destroy(o.default.notWellFormed())}this.currentElement?this.currentElement=this.currentElement.appendChild(n):this.currentElement=n}),this.parser.on("endElement",e=>{if(!this.destroyed){if(this.wrappedStream&&!this.currentElement)return this.rootElement&&e===this.rootElement.name?(this.closedStream=!0,this.push({event:"stream-end",kind:this.rootImportKey,stanza:{},xml:this.rootElement}),this.end()):(this.closedStream=!0,this.destroy(o.default.notWellFormed()));if(!this.currentElement||e!==this.currentElement.name)return this.closedStream=!0,this.destroy(o.default.notWellFormed());if(this.currentElement.parent)this.currentElement=this.currentElement.parent;else{this.wrappedStream&&(this.currentElement.parent=this.rootElement);const e=this.registry.getImportKey(this.currentElement),t=this.registry.import(this.currentElement,{acceptLanguages:this.acceptLanguages,lang:this.lang});t&&this.push({kind:e,stanza:t,xml:this.currentElement}),this.currentElement=void 0}}}),this.parser.on("text",e=>{this.currentElement&&this.currentElement.children.push(e)})}_transform(e,t,n){this.parser.write(e.toString()),n()}}t.default=c},function(e,t,n){"use strict";function r(e){return"getStats"===e.name}function i(e){let t={};return Object.assign(t,s(e.tracks,"localTrack")),delete e.tracks,Object.assign(t,s(e.remoteTracks,"remoteTrack")),delete e.remoteTracks,t}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={};if(Array.isArray(e))for(let r=0;r<e.length;r++)Object.assign(n,s(e[r],`${t}_[${r}]`));else"object"!=typeof e?n[t]=e:Object.keys(e).filter(e=>"ip"!==e.toLowerCase()).forEach(r=>{const i=e[r],o=t?`${t}_${r}`:r;"object"==typeof i||Array.isArray(i)?Object.assign(n,s(i,o)):n[o]=i});return n}Object.defineProperty(t,"__esModule",{value:!0}),t.deepFlatten=t.formatStatsEvent=void 0,t.formatStatsEvent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={_eventType:e.name,_eventTimestamp:(new Date).getTime(),...t};r(e)&&Object.assign(n,i(e)),Object.assign(n,s(e)),delete n.name;const o={actionName:"WebrtcStats",details:n};return o},t.deepFlatten=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(7),s=n(5),o=n(1),a=n(9),c=n(14),u=(0,r.__importDefault)(n(94)),l=(0,r.__importDefault)(n(96)),d=(0,r.__importDefault)(n(59));class p extends i.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),e=e||{},this.selfID=e.selfID,this.sessions={},this.peers={},this.iceServers=e.iceServers||[],this.prepareSession=e.prepareSession||(e=>{if(this.config.hasRTCPeerConnection)return e.applicationTypes.indexOf(o.NS_JINGLE_RTP_1)>=0?new l.default(e):e.applicationTypes.indexOf(o.NS_JINGLE_FILE_TRANSFER_5)>=0?new u.default(e):void 0}),this.performTieBreak=e.performTieBreak||((e,t)=>{const n=(t.jingle.contents||[]).map(e=>{if(e.application)return e.application.applicationType});return(e.pendingApplicationTypes||[]).filter(e=>n.includes(e)).length>0}),this.createPeerConnection=e.createPeerConnection||((e,t)=>{if(a.RTCPeerConnection)return new a.RTCPeerConnection(t)}),this.config={debug:!1,hasRTCPeerConnection:!!a.RTCPeerConnection,peerConnectionConfig:{bundlePolicy:e.bundlePolicy||"balanced",iceTransportPolicy:e.iceTransportPolicy||"all",rtcpMuxPolicy:e.rtcpMuxPolicy||"require",sdpSemantics:e.sdpSemantics},peerConnectionConstraints:{optional:[{DtlsSrtpKeyAgreement:!0},{RtpDataChannels:!1}]},...e}}addICEServer(e){if("string"==typeof e)return void this.iceServers.push({urls:e});if(!(t=e).type&&(t.urls||t.url))return void this.iceServers.push(e);var t;let n=e.host||"";n.indexOf(":")>=0&&(n=`[${n}]`);let r=`${e.type}:${n}`;e.port&&(r+=":"+e.port),e.transport&&(r+="?transport="+e.transport),"turn"===e.type||"turns"===e.type?this.iceServers.push({credential:e.password,urls:[r],username:e.username}):"stun"!==e.type&&"stuns"!==e.type||this.iceServers.push({urls:[r]})}resetICEServers(){this.iceServers=[]}addSession(e){e.parent=this;const t=e.sid,n=e.peerID;return this.sessions[t]=e,this.peers[n]||(this.peers[n]=[]),this.peers[n].push(e),this.emit("createdSession",e),e}forgetSession(e){const t=this.peers[e.peerID]||[];t.length&&t.splice(t.indexOf(e),1),delete this.sessions[e.sid]}createMediaSession(e,t,n){const r=new l.default({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t,stream:n});return this.addSession(r),r}createFileTransferSession(e,t){const n=new u.default({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t});return this.addSession(n),n}endPeerSessions(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.peers[e]||[];delete this.peers[e];for(const e of r)e.end(t||"gone",n)}endAllSessions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(const n of Object.keys(this.peers))this.endPeerSessions(n,e,t)}process(e){const t=e.jingle?e.jingle.sid:void 0;let n=t?this.sessions[t]:void 0;const r=e.id,i=e.from;if(!i)return;if("error"===e.type){if(this._log("error","Received error response",e),n&&e.error&&"unknown-session"===e.error.jingleError)return n.end("gone",!0);const t=e.error&&"tie-break"===e.error.jingleError;return n&&"pending"===n.state&&t?n.end("alternative-session",!0):void(n&&(n.pendingAction=void 0))}if("result"===e.type)return void(n&&(n.pendingAction=void 0));const o=e.jingle.action,a=e.jingle.contents||[],u=a.map(e=>e.application?e.application.applicationType:void 0),l=a.map(e=>e.transport?e.transport.transportType:void 0);if(o!==s.JingleAction.SessionInitiate){if(!n)return"session-terminate"===o?void this.emit("send",{id:r,to:i,type:"result"}):(this._log("error","Unknown session",t),this._sendError(i,r,{condition:"item-not-found",jingleError:"unknown-session"}));if(n.peerID!==i||"ended"===n.state)return this._log("error","Session has ended, or action has wrong sender"),this._sendError(i,r,{condition:"item-not-found",jingleError:"unknown-session"});if("session-accept"===o&&"pending"!==n.state)return this._log("error","Tried to accept session twice",t),this._sendError(i,r,{condition:"unexpected-request",jingleError:"out-of-order"});if("session-terminate"!==o&&o===n.pendingAction&&(this._log("error","Tie break during pending request"),n.isInitiator))return this._sendError(i,r,{condition:"conflict",jingleError:"tie-break"})}else if(n){if(n.peerID!==i)return this._log("error","Duplicate sid from new sender"),this._sendError(i,r,{condition:"service-unavailable"});if("pending"!==n.state)return this._log("error","Someone is doing this wrong"),this._sendError(i,r,{condition:"unexpected-request",jingleError:"out-of-order"});if(this.selfID&&this.selfID>n.peerID&&this.performTieBreak(n,e))return this._log("error","Tie break new session because of duplicate sids"),this._sendError(i,r,{condition:"conflict",jingleError:"tie-break"})}else if(this.peers[i]&&this.peers[i].length)for(let n=0,s=this.peers[i].length;n<s;n++){const s=this.peers[i][n];if(s&&"pending"===s.state&&t&&(0,c.octetCompare)(s.sid,t)>0&&this.performTieBreak(s,e))return this._log("info","Tie break session-initiate"),this._sendError(i,r,{condition:"conflict",jingleError:"tie-break"})}if("session-initiate"===o){if(!a.length)return this._sendError(i,r,{condition:"bad-request"});n=this._createIncomingSession({applicationTypes:u,config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!1,parent:this,peerID:i,sid:t,transportTypes:l},e)}n.process(o,e.jingle,t=>{t?(this._log("error","Could not process request",e,t),this._sendError(i,r,t)):(this.emit("send",{id:r,to:i,type:"result"}),"session-initiate"===o&&this.emit("incoming",n))})}signal(e,t){const n=t.jingle&&t.jingle.action;e.isInitiator&&n===s.JingleAction.SessionInitiate&&this.emit("outgoing",e),this.emit("send",t)}_createIncomingSession(e,t){let n;return this.prepareSession&&(n=this.prepareSession(e,t)),n||(n=new d.default(e)),this.addSession(n),n}_sendError(e,t,n){n.type||(n.type="cancel"),this.emit("send",{error:n,id:t,to:e,type:"error"})}_log(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this.emit("log",e,t,...r),this.emit("log:"+e,t,...r)}}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ping=void 0;t.Ping=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.client=e,this.stanzaInstance=t,this.options=n,this.pingInterval=n.pingInterval||14e3,this.failedPingsBeforeDisconnect=n.failedPingsBeforeDisconnect||1,this.numberOfFailedPings=0,this.nextPingTimeoutId=void 0,this.start()}start(){this.nextPingTimeoutId||(this.nextPingTimeoutId=-1,this.queueNextPing())}stop(){clearTimeout(this.nextPingTimeoutId),this.nextPingTimeoutId=void 0,this.numberOfFailedPings=0}async performPing(){var e;try{await this.stanzaInstance.ping(this.options.jid),this.numberOfFailedPings=0,this.queueNextPing()}catch(t){const n={channelId:this.client.config.channelId,jid:this.stanzaInstance.jid,stanzaInstanceId:this.stanzaInstance.id};this.client.logger.warn("Missed a ping.",Object.assign({error:t},n)),++this.numberOfFailedPings>this.failedPingsBeforeDisconnect?(this.client.logger.error("Missed too many pings, disconnecting",Object.assign({numberOfFailedPings:this.numberOfFailedPings},n)),this.stanzaInstance.sendStreamError({text:"too many missed pongs",condition:"connection-timeout"}),this.stop(),null===(e=this.stanzaInstance.transport)||void 0===e||e.disconnect(!1)):this.queueNextPing()}}queueNextPing(){this.nextPingTimeoutId&&(this.nextPingTimeoutId=setTimeout(this.performPing.bind(this),this.pingInterval))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerMonitor=void 0;t.ServerMonitor=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.client=e,this.stanzaInstance=t,this.stanzaTimeout=n.stanzaTimeout||7e4,this.timeoutId=void 0,this.start()}start(){this.boundSetupStanzaTimeout=this.setupStanzaTimeout.bind(this),this.client.on("connected",this.boundSetupStanzaTimeout),this.stanzaInstance.on("raw:incoming",this.boundSetupStanzaTimeout)}stop(){clearTimeout(this.timeoutId),this.timeoutId=void 0,this.boundSetupStanzaTimeout&&(this.client.off("connected",this.boundSetupStanzaTimeout),this.stanzaInstance.off("raw:incoming",this.boundSetupStanzaTimeout),this.boundSetupStanzaTimeout=void 0)}setupStanzaTimeout(){clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{var e;const t={channelId:this.client.config.channelId,jid:this.stanzaInstance.jid,stanzaInstanceId:this.stanzaInstance.id,timeout:this.stanzaTimeout};this.client.logger.error("Time between XMPP stanzas exceeded timeout, disconnecting",t),this.stanzaInstance.sendStreamError({text:"time between stanzas exceeded timeout",condition:"connection-timeout"}),this.stop(),null===(e=this.stanzaInstance.transport)||void 0===e||e.disconnect(!1)},this.stanzaTimeout)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionManager=void 0;const r=n(22),i=n(288),s=n(25),o=r.__importDefault(n(201)),a=n(13);t.ConnectionManager=class{constructor(e,t){this.logger=e,this.config=t}setConfig(e){this.config=e}async getNewStanzaConnection(){const e=this.getStanzaOptions(),t=i.createClient({});t.sasl.mechanisms.find(e=>"ANONYMOUS"===e.name).priority=0,t.sasl.mechanisms=t.sasl.mechanisms.sort((e,t)=>t.priority-e.priority),t.id=s.v4();const n=t.channelId=this.config.channelId;let r,o,c,u;const l=a.timeoutPromise((n,i)=>{r=this.checkForErrorStanza.bind(this,t),t.on("raw:incoming",r),o=this.handleSessionStarted.bind(this,t,n),t.on("session:started",o),c=this.handleSessionSasl.bind(this,t,i),t.on("sasl",c),u=this.handleSessionDisconnected.bind(this,t,i),t.on("disconnected",u),t.updateConfig(e),t.connect()},15e3,"connecting to streaming service",{channelId:n,stanzaInstanceId:t.id});return l.catch(()=>t.disconnect()),l.finally(()=>{t.off("raw:incoming",r),t.off("session:started",o),t.off("sasl",c),t.off("disconnected",u)})}handleSessionStarted(e,t){this.logger.info("new stanza instance connected",{stanzaInstanceId:e.id,channelId:e.channelId}),t(e)}handleSessionSasl(e,t,n){"failure"===n.type&&t(new o.default(n.condition,e.channelId,e.id))}handleSessionDisconnected(e,t){this.logger.error("stanza disconnected",{stanzaInstanceId:e.id,channelId:e.channelId}),t()}checkForErrorStanza(e,t){t.includes("error")&&this.logger.error("Received a stanza during setup that tripped the error filter",{rawStanza:t,stanzaInstanceId:e.id,channelId:e.channelId})}getStanzaOptions(){return this.config.jwt?this.getJwtOptions():this.getStandardOptions()}getJwtOptions(){const e=this.config,t=a.parseJwt(e.jwt);let n;try{n=t.data.jid.split("@")[1].replace("conference.","")}catch(e){throw new Error("failed to parse jid")}let r=e.host.replace(/\/$/,"");return{resource:e.jidResource,transports:{websocket:`${r}/stream/jwt/${e.jwt}`},server:n}}getStandardOptions(){const e=this.config;let t=e.host.replace(/\/$/,"");return{jid:e.jid,resource:e.jidResource,credentials:{username:e.jid,password:"authKey:"+e.authToken},transports:{websocket:`${t}/stream/channels/${e.channelId}`}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=t.VERSION=t.Platform=t.SASL=t.RTT=t.RSM=t.Utils=t.Jingle=t.Stanzas=t.Namespaces=t.JID=t.JXT=t.DataForms=t.Constants=t.Client=void 0;const r=n(4),i=(0,r.__importDefault)(n(289));t.Client=i.default;const s=(0,r.__importStar)(n(5));t.Constants=s;const o=(0,r.__importStar)(n(295));t.RTT=o;const a=(0,r.__importStar)(n(10));t.JID=a;const c=(0,r.__importStar)(n(56));t.Jingle=c;const u=(0,r.__importStar)(n(2));t.JXT=u;const l=(0,r.__importStar)(n(100));t.SASL=l;const d=(0,r.__importStar)(n(1));t.Namespaces=d;const p=(0,r.__importStar)(n(120));t.Stanzas=p;const h=(0,r.__importStar)(n(14));t.Utils=h;const f=(0,r.__importStar)(n(9));t.Platform=f,(0,r.__exportStar)(n(99),t);const m=(0,r.__importStar)(n(296));t.RSM=m;const g=(0,r.__importStar)(n(112));t.DataForms=g,t.VERSION=s.VERSION;const y=(0,r.__importDefault)(n(62));(0,r.__exportStar)(n(62),t),t.createClient=function(e){const t=new i.default(e);return t.use(y.default),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(60),s=n(7),o=(0,r.__importDefault)(n(99)),a=(0,r.__importStar)(n(10)),c=(0,r.__importStar)(n(2)),u=(0,r.__importStar)(n(100)),l=n(62),d=(0,r.__importDefault)(n(120)),p=(0,r.__importDefault)(n(292)),h=(0,r.__importDefault)(n(293)),f=n(14),m=(0,r.__importDefault)(n(294));class g extends s.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.reconnectAttempts=0,this.setMaxListeners(100),this.off=this.removeListener,this.updateConfig(e),this.jid="",this.sasl=new u.Factory,this.sasl.register("EXTERNAL",u.EXTERNAL,1e3),this.sasl.register("SCRAM-SHA-256-PLUS",u.SCRAM,350),this.sasl.register("SCRAM-SHA-256",u.SCRAM,300),this.sasl.register("SCRAM-SHA-1-PLUS",u.SCRAM,250),this.sasl.register("SCRAM-SHA-1",u.SCRAM,200),this.sasl.register("DIGEST-MD5",u.DIGEST,100),this.sasl.register("OAUTHBEARER",u.OAUTH,100),this.sasl.register("X-OAUTH2",u.PLAIN,50),this.sasl.register("PLAIN",u.PLAIN,1),this.sasl.register("ANONYMOUS",u.ANONYMOUS,0),this.stanzas=new c.Registry,this.stanzas.define(d.default),this.resolver=new m.default,this.use(l.core),this.sm=new o.default,void 0!==this.config.allowResumption&&(this.sm.allowResume=this.config.allowResumption),this.sm.on("prebound",e=>{this.jid=e,this.emit("session:bound",e)}),this.on("session:bound",e=>this.sm.bind(e)),this.sm.on("send",e=>this.send("sm",e)),this.sm.on("acked",e=>this.emit("stanza:acked",e)),this.sm.on("failed",e=>this.emit("stanza:failed",e)),this.sm.on("hibernated",e=>this.emit("stanza:hibernated",e)),this.sm.on("begin-resend",()=>this.outgoingDataQueue.pause()),this.sm.on("resend",e=>{let{kind:t,stanza:n}=e;return this.send(t,n,!0)}),this.sm.on("end-resend",()=>this.outgoingDataQueue.resume());for(const e of["acked","hibernated","failed"])this.on("stanza:"+e,t=>{"message"===t.kind&&this.emit("message:"+e,t.stanza)});this.transports={bosh:p.default,websocket:h.default},this.incomingDataQueue=(0,i.priorityQueue)(async(e,t)=>{const{kind:n,stanza:r}=e;this.emit(n,r),r.id&&this.emit(n+":id:"+r.id,r),"message"===n||"presence"===n||"iq"===n?(this.emit("stanza",r),await this.sm.handle()):"sm"===n&&("ack"===r.type&&(await this.sm.process(r),this.emit("stream:management:ack",r)),"request"===r.type&&this.sm.ack()),t&&t()},1);const t=(e,t)=>{["message","presence","iq"].includes(e)&&(this.sm.started&&this.sm.resumable?this.sm.resumable&&!this.transport&&this.emit("stanza:hibernated",{kind:e,stanza:t}):this.emit("stanza:failed",{kind:e,stanza:t}))};this.outgoingDataQueue=(0,i.priorityQueue)(async(e,n)=>{var r;const{kind:i,stanza:s,replay:o}=e,a=o||await this.sm.track(i,s);if("message"===i&&(o?this.emit("message:retry",s):this.emit("message:sent",s,!1)),this.transport)try{await this.transport.send(i,s),a&&(null===(r=this.transport)||void 0===r||r.send("sm",{type:"request"}))}catch(e){console.error(e),t(i,s)}else t(i,s);n&&n()},1),this.on("stream:data",(e,t)=>{this.incomingDataQueue.push({kind:t,stanza:e},0)}),this.on("--transport-disconnected",async()=>{const e=[];this.incomingDataQueue.idle()||e.push(this.incomingDataQueue.drain()),this.outgoingDataQueue.idle()||e.push(this.outgoingDataQueue.drain()),await Promise.all(e),await this.sm.hibernate(),this.transport&&delete this.transport,this.emit("--reset-stream-features"),!this.sessionTerminating&&this.config.autoReconnect&&(this.reconnectAttempts+=1,clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(()=>{this.connect()},1e3*Math.min(Math.pow(2,this.reconnectAttempts)+Math.random(),this.config.maxReconnectBackoff||32))),this.emit("disconnected")}),this.on("iq",e=>{const t=e.type,n=e.payloadType,r="iq:"+t+":"+n;if("get"===t||"set"===t){if("invalid-payload-count"===n)return this.sendIQError(e,{error:{condition:"bad-request",type:"modify"}});if("unknown-payload"===n||0===this.listenerCount(r))return this.sendIQError(e,{error:{condition:"service-unavailable",type:"cancel"}});this.emit(r,e)}}),this.on("message",e=>{const t=e.alternateLanguageBodies&&e.alternateLanguageBodies.length||e.links&&e.links.length,n=e.marker&&"markable"!==e.marker.type;t&&!n&&("chat"===e.type||"normal"===e.type?this.emit("chat",e):"groupchat"===e.type&&this.emit("groupchat",e)),"error"===e.type&&this.emit("message:error",e)}),this.on("presence",e=>{let t=e.type||"available";"error"===t&&(t="presence:error"),this.emit(t,e)}),this.on("session:started",()=>{this.sessionStarting=!1,this.reconnectAttempts=0,this.reconnectTimer&&clearTimeout(this.reconnectTimer)})}updateConfig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;const n=this.config||{};this.config={allowResumption:!0,jid:"",transports:{bosh:!0,websocket:!0},useStreamManagement:!0,transportPreferenceOrder:["websocket","bosh"],...n,...e},this.config.server||(this.config.server=a.getDomain(this.config.jid)),this.config.password&&(this.config.credentials=this.config.credentials||{},this.config.credentials.password=this.config.password,delete this.config.password),this.config.transportPreferenceOrder||(this.config.transportPreferenceOrder=Object.keys(null!==(t=this.config.transports)&&void 0!==t?t:{}))}get stream(){return this.transport?this.transport.stream:void 0}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=super.emit(e,...n);return"raw"===e?(super.emit("raw:"+n[0],n[1]),super.emit("raw:*","raw:"+n[0],n[1]),super.emit("*","raw:"+n[0],n[1])):super.emit("*",e,...n),i}use(e){"function"==typeof e&&e(this,this.stanzas,this.config)}nextId(){return(0,f.uuid)()}async getCredentials(){return this._getConfiguredCredentials()}async connect(){var e,t,n;this.sessionTerminating=!1,this.sessionStarting=!0,this.emit("--reset-stream-features"),this.transport&&this.transport.disconnect(!1);const r=null!==(e=this.config.transportPreferenceOrder)&&void 0!==e?e:[];let i;for(const e of r){const r=this.config.transports[e];if(!r||!this.transports[e])continue;let s={acceptLanguages:this.config.acceptLanguages||[null!==(t=this.config.lang)&&void 0!==t?t:"en"],jid:this.config.jid,lang:null!==(n=this.config.lang)&&void 0!==n?n:"en",server:this.config.server};const o=new this.transports[e](this,this.sm,this.stanzas);if("string"==typeof r)s.url=r;else if(1==r)if(o.discoverBindings){const e=await o.discoverBindings(this.config.server);if(!e)continue;s={...s,...e}}else{if(!i)try{i=await this.discoverBindings(this.config.server)}catch(e){console.error(e);continue}if(i[e]=(i[e]||[]).filter(e=>e.startsWith("wss:")||e.startsWith("https:")),!i[e]||!i[e].length)continue;s.url=i[e][0]}return this.transport=o,void this.transport.connect(s)}console.error("No endpoints found for the requested transports."),this.emit("--transport-disconnected")}async disconnect(){this.sessionTerminating=!0,clearTimeout(this.reconnectTimer),this.outgoingDataQueue.pause(),this.sessionStarted&&!this.sm.started&&this.emit("session:end"),this.emit("--reset-stream-features"),this.sessionStarted=!1,this.transport?this.transport.disconnect():this.emit("--transport-disconnected"),this.outgoingDataQueue.resume(),this.outgoingDataQueue.idle()||await this.outgoingDataQueue.drain(),await this.sm.shutdown()}async send(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((r,i)=>{this.outgoingDataQueue.push({kind:e,stanza:t,replay:n},n?0:1,e=>e?i(e):r())})}sendMessage(e){const t=e.id||this.nextId(),n={id:t,originId:t,...e};return this.send("message",n),n.id}sendPresence(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={id:this.nextId(),...e};return this.send("presence",t),t.id}sendIQ(e){const t={id:this.nextId(),...e},n=a.allowedResponders(this.jid,e.to),r="iq:id:"+t.id,i=new Promise((e,t)=>{const i=s=>{n.has(s.from)&&("result"!==s.type&&"error"!==s.type||(this.off(r,i),"result"===s.type?e(s):t(s)))};this.on(r,i)});this.send("iq",t);const s=this.config.timeout||15;return(0,f.timeoutPromise)(i,1e3*s,()=>({...t,to:void 0,from:void 0,error:{condition:"timeout",text:`Request timed out after ${s} seconds.`},id:t.id,type:"error"}))}sendIQResult(e,t){this.send("iq",{...t,id:e.id,to:e.from,type:"result"})}sendIQError(e,t){this.send("iq",{...t,id:e.id,to:e.from,type:"error"})}sendStreamError(e){this.emit("stream:error",e),this.send("error",e),this.disconnect()}_getConfiguredCredentials(){const e=this.config.credentials||{},t=a.parse(this.config.jid||""),n=e.username||t.local,r=e.host||t.domain;return{host:r,password:this.config.password,realm:r,serviceName:r,serviceType:"xmpp",username:n,...e}}}t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,n(4).__importStar)(n(291));t.default=class{constructor(){this.capsAlgorithms=["sha-1"],this.features=new Map,this.identities=new Map,this.extensions=new Map,this.items=new Map,this.caps=new Map,this.features.set("",new Set),this.identities.set("",[]),this.extensions.set("",[])}getNodeInfo(e){return{extensions:[...this.extensions.get(e)||[]],features:[...this.features.get(e)||[]],identities:[...this.identities.get(e)||[]]}}addFeature(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.features.has(t)||this.features.set(t,new Set),this.features.get(t).add(e)}addIdentity(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.identities.has(t)||this.identities.set(t,[]),this.identities.get(t).push(e)}addItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.items.has(t)||this.items.set(t,[]),this.items.get(t).push(e)}addExtension(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.extensions.has(t)||this.extensions.set(t,[]),this.extensions.get(t).push(e)}updateCaps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.capsAlgorithms;const n={extensions:[...this.extensions.get("")],features:[...this.features.get("")],identities:[...this.identities.get("")],type:"info"};for(const i of t){const t=r.generate(n,i);if(!t){this.caps.delete(i);continue}this.caps.set(i,{algorithm:i,node:e,value:t});const s=`${e}#${t}`;for(const e of n.features)this.addFeature(e,s);for(const e of n.identities)this.addIdentity(e,s);for(const e of n.extensions)this.addExtension(e,s);this.identities.set(s,n.identities),this.features.set(s,new Set(n.features)),this.extensions.set(s,n.extensions)}return[...this.caps.values()]}getCaps(){return[...this.caps.values()]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verify=t.generate=void 0;const r=n(9),i=n(14);function s(e){return r.Buffer.from(e.replace(/</g,"<"),"utf-8")}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];for(const n of e)"FORM_TYPE"!==n.name&&(n.rawValues?t.push({name:s(n.name),values:n.rawValues.map(e=>s(e)).sort(i.octetCompare)}):Array.isArray(n.value)?t.push({name:s(n.name),values:n.value.map(e=>s(e)).sort(i.octetCompare)}):!0===n.value||!1===n.value?t.push({name:s(n.name),values:[s(n.value?"1":"0")]}):t.push({name:s(n.name),values:[s(n.value||"")]}));t.sort((e,t)=>(0,i.octetCompare)(e.name,t.name));const n=[];for(const e of t){n.push(e.name);for(const t of e.values)n.push(t)}return n}function a(e,t){const n=[],a=r.Buffer.from("<","utf8"),c=e=>{n.push(e),n.push(a)},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=new Set;for(const{category:r,type:i,lang:o,name:a}of e){const e=`${r}/${i}/${o||""}/${a||""}`;if(n.has(e))return null;n.add(e),t.push(s(e))}return t.sort(i.octetCompare),t}(e.identities),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=new Set;for(const r of e){if(n.has(r))return null;n.add(r),t.push(s(r))}return t.sort(i.octetCompare),t}(e.features),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=new Set;for(const r of e){let e;for(const t of r.fields||[])if("FORM_TYPE"===t.name&&"hidden"===t.type){if(t.rawValues&&1===t.rawValues.length){e=s(t.rawValues[0]);break}if(t.value&&"string"==typeof t.value){e=s(t.value);break}}if(e){if(n.has(e.toString()))return null;n.add(e.toString()),t.push({type:e,form:r})}}t.sort((e,t)=>(0,i.octetCompare)(e.type,t.type));const r=[];for(const e of t){r.push(e.type);const t=o(e.form.fields);for(const e of t)r.push(e)}return r}(e.extensions);if(!u||!l||!d)return null;for(const e of u)c(e);for(const e of l)c(e);for(const e of d)c(e);return(0,r.createHash)(t).update(r.Buffer.concat(n)).digest("base64")}t.generate=a,t.verify=function(e,t,n){const r=a(e,t);return!!r&&r===n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(9),s=n(2),o=n(14);class a{constructor(e){this.active=!1,this.maxRetries=5,this.stream=e,this.maxTimeout=1100*this.stream.maxWaitTime}async send(e,t){this.rid=e,this.active=!0;let n=0;for(;n<=this.maxRetries;){n+=1;try{const e=await(0,o.timeoutPromise)((0,i.fetch)(this.stream.url,{body:t,headers:{"Content-Type":this.stream.contentType},method:"POST"}),this.maxTimeout,()=>new Error("Request timed out"));if(!e.ok)throw new Error("HTTP Status Error: "+e.status);const n=await e.text();return this.active=!1,n}catch(e){if(1===n)continue;if(n<this.maxRetries){const e=Math.min(this.maxTimeout,1e3*Math.pow(n,2));await(0,o.sleep)(e+1e3*Math.random());continue}throw this.active=!1,e}}throw new Error("Request failed")}}class c extends i.Duplex{constructor(e,t,n){super({objectMode:!0}),this.rid=Math.floor(4294967295*Math.random()),this.sid="",this.maxHoldOpen=2,this.maxWaitTime=30,this.contentType="text/xml; charset=utf-8",this.channels=[new a(this),new a(this)],this.activeChannelID=0,this.queue=[],this.isEnded=!1,this.client=e,this.sm=t,this.stanzas=n,this.on("data",e=>{this.client.emit("stream:data",e.stanza,e.kind)}),this.on("end",()=>{this.isEnded=!0,clearTimeout(this.idleTimeout),this.client.transport===this&&this.client.emit("--transport-disconnected")})}_write(e,t,n){this.queue.push([e,n]),this.scheduleRequests()}_writev(e,t){this.queue.push([e.map(e=>e.chunk).join(""),t]),this.scheduleRequests()}_read(){}process(e){const t=new s.StreamParser({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,rootKey:"bosh",wrappedStream:!0});t.on("error",e=>{const t={condition:r.StreamErrorCondition.InvalidXML};return this.client.emit("stream:error",t,e),this.send("error",t),this.disconnect()}),t.on("data",e=>{if("stream-start"===e.event)return this.stream=e.stanza,void("terminate"===e.stanza.type?(this.hasStream=!1,this.rid=void 0,this.sid=void 0,this.isEnded||(this.isEnded=!0,this.client.emit("bosh:terminate",e.stanza),this.client.emit("stream:end"),this.push(null))):this.hasStream||(this.hasStream=!0,this.stream=e.stanza,this.sid=e.stanza.sid||this.sid,this.maxWaitTime=e.stanza.maxWaitTime||this.maxWaitTime,this.client.emit("stream:start",e.stanza)));e.event||this.push({kind:e.kind,stanza:e.stanza})}),this.client.emit("raw","incoming",e),t.write(e),this.scheduleRequests()}connect(e){if(this.config=e,this.url=e.url,e.rid&&(this.rid=e.rid),e.sid&&(this.sid=e.sid),e.wait&&(this.maxWaitTime=e.wait),e.maxHoldOpen&&(this.maxHoldOpen=e.maxHoldOpen),this.sid)return this.hasStream=!0,this.stream={},this.client.emit("connected"),this.client.emit("session:prebind",this.config.jid),void this.client.emit("session:started");this._send({lang:e.lang,maxHoldOpen:this.maxHoldOpen,maxWaitTime:this.maxWaitTime,to:e.server,version:"1.6",xmppVersion:"1.0"})}restart(){this.hasStream=!1,this._send({to:this.config.server,xmppRestart:!0})}disconnect(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.hasStream&&e?this._send({type:"terminate"}):(this.stream=void 0,this.sid=void 0,this.rid=void 0,this.client.emit("--transport-disconnected"))}async send(e,t){var n;let r;if(t&&(r=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),r)return new Promise((e,t)=>{this.write(r,"utf8",n=>n?t(n):e())})}get sendingChannel(){return this.channels[this.activeChannelID]}get pollingChannel(){return this.channels[0===this.activeChannelID?1:0]}toggleChannel(){this.activeChannelID=0===this.activeChannelID?1:0}async _send(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(this.isEnded)return;const n=this.rid++,r=this.stanzas.export("bosh",{...e,rid:n,sid:this.sid});let i;i=t?[r.openTag(),t,r.closeTag()].join(""):r.toString(),this.client.emit("raw","outgoing",i),this.sendingChannel.send(n,i).then(e=>{this.process(e)}).catch(e=>{this.end(e)}),this.toggleChannel()}async _poll(){if(this.isEnded)return;const e=this.rid++,t=this.stanzas.export("bosh",{rid:e,sid:this.sid}).toString();this.client.emit("raw","outgoing",t),this.pollingChannel.send(e,t).then(e=>{this.process(e)}).catch(e=>{this.end(e)})}scheduleRequests(){clearTimeout(this.idleTimeout),this.idleTimeout=setTimeout(()=>{this.fireRequests()},10)}fireRequests(){if(!this.isEnded)if(this.queue.length)if(this.sendingChannel.active)this.scheduleRequests();else{const[e,t]=this.queue.shift();this._send({},e),t()}else!this.authenticated||this.channels[0].active||this.channels[1].active||this._poll()}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5),i=n(2),s=n(9);class o extends s.Duplex{constructor(e,t,n){super({objectMode:!0}),this.sm=t,this.stanzas=n,this.closing=!1,this.client=e,this.on("data",e=>{this.client.emit("stream:data",e.stanza,e.kind)}),this.on("error",()=>{this.end()}),this.on("end",()=>{this.client.transport===this&&this.client.emit("--transport-disconnected")})}_read(){}_write(e,t,n){if(!this.socket||1!==this.socket.readyState)return n(new Error("Socket closed"));const r=s.Buffer.from(e,"utf8").toString();this.client.emit("raw","outgoing",r),this.socket.send(r),n()}connect(e){this.config=e,this.hasStream=!1,this.closing=!1,this.parser=new i.StreamParser({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,wrappedStream:!1}),this.parser.on("data",e=>{const t=e.kind,n=e.stanza;if("stream"===t){if("open"===n.action)return this.hasStream=!0,this.stream=n,this.client.emit("stream:start",n);if("close"===n.action)return this.client.emit("stream:end"),this.disconnect()}this.push({kind:e.kind,stanza:e.stanza})}),this.parser.on("error",e=>{const t={condition:r.StreamErrorCondition.InvalidXML};return this.client.emit("stream:error",t,e),this.write(this.stanzas.export("error",t).toString()),this.disconnect()}),this.socket=new s.WebSocket(e.url,"xmpp"),this.socket.onopen=()=>{this.emit("connect"),this.sm.started=!1,this.client.emit("connected"),this.write(this.startHeader())},this.socket.onmessage=e=>{const t=s.Buffer.from(e.data,"utf8").toString();this.client.emit("raw","incoming",t),this.parser&&this.parser.write(t)},this.socket.onclose=()=>{this.push(null)},this.socket.onerror=e=>{console.error(e),this.push(null)}}disconnect(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.socket&&!this.closing&&this.hasStream&&e?(this.closing=!0,this.write(this.closeHeader())):(this.hasStream=!1,this.stream=void 0,this.socket&&(this.end(),this.socket.close(),this.client.transport===this&&this.client.emit("--transport-disconnected")),this.socket=void 0)}async send(e,t){var n;let r;if(t&&(r=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),r)return new Promise((e,t)=>{this.write(r,"utf8",n=>n?t(n):e())})}restart(){this.hasStream=!1,this.write(this.startHeader())}startHeader(){return this.stanzas.export("stream",{action:"open",lang:this.config.lang,to:this.config.server,version:"1.0"}).toString()}closeHeader(){return this.stanzas.export("stream",{action:"close"}).toString()}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),i=n(9),s=n(14),o=n(2),a=(0,r.__importDefault)(n(63));t.default=class{constructor(){this.hostMetaCache=new Map,this.hostMetaTTL=3e4,this.resolver=(0,i.createResolver)(),this.registry=new o.Registry,this.registry.define(a.default)}async getHostMeta(e){const t=this.hostMetaCache.get(e);if(t){if(t.created+this.hostMetaTTL<Date.now())return t.hostmeta;this.hostMetaCache.delete(e)}const n=(0,s.promiseAny)([(0,i.fetch)(`https://${e}/.well-known/host-meta.json`).then(async e=>{if(!e.ok)throw new Error("could-not-fetch-json");return e.json()}),(0,i.fetch)(`https://${e}/.well-known/host-meta`).then(async e=>{if(!e.ok)throw new Error("could-not-fetch-xml");const t=await e.text(),n=(0,o.parse)(t);if(n)return this.registry.import(n);throw new Error("could-not-import-xml")})]);return this.hostMetaCache.set(e,{created:Date.now(),hostmeta:n}),n.catch(()=>{this.hostMetaCache.delete(e)}),n}async resolveTXT(e){var t,n;return null!==(n=null===(t=this.resolver)||void 0===t?void 0:t.resolveTxt(e))&&void 0!==n?n:[]}async resolve(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.resolver)return[];let r=[],i=!0;if(n.srvType){const t=await this.resolveWeightedSRV(e,n.srvType,n.srvTypeSecure);i=t.allowFallback,r=t.records.map(e=>({host:e.name,port:e.port,secure:e.secure}))}return i&&r.push({host:e,port:t}),r}async resolveWeightedSRV(e,t,n){const[r,i]=await Promise.all([this.resolveSRV(e,t),n?this.resolveSRV(e,n,!0):Promise.resolve({records:[],allowFallback:!1})]),o=[...r.records,...i.records],a=new Map;let c=0;for(const e of o){e.id=c++,e.runningSum=0,a.has(e.priority)||a.set(e.priority,[]);a.get(e.priority).push(e)}const u=e=>{const t=[];for(;t.length<e.length;){const n=(0,s.shuffle)(e.filter(e=>0===e.weight&&!e.used)),r=(0,s.shuffle)(e.filter(e=>0!==e.weight&&!e.used));let i=0;for(const e of r)i+=e.weight,e.runningSum=i,n.push(e);const o=Math.floor(Math.random()*(i+1));for(const e of n)if(e.runningSum>=o){e.used=!0,t.push(e);break}}return t};let l=[];for(const e of Array.from(a.keys()).sort((e,t)=>e<t?-1:e>t?1:0)){const t=a.get(e);l=l.concat(u(t))}return{records:l,allowFallback:r.allowFallback}}async resolveSRV(e,t,n){var r,i;try{const s=null!==(i=await(null===(r=this.resolver)||void 0===r?void 0:r.resolveSrv(`${t}.${e}`)))&&void 0!==i?i:[];return 1!==s.length||"."!==s[0].name&&""!==s[0].name?{records:s.map(e=>({secure:n,...e})).filter(e=>""!==e.name&&"."!==e.name),allowFallback:!1}:{records:[],allowFallback:!1}}catch(e){return{records:[],allowFallback:!0}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputBuffer=t.DisplayBuffer=t.diff=void 0;const r=n(4),i=n(60),s=(0,r.__importDefault)(n(50));function o(e,t){const n=e.length,r=t.length,i=Math.min(n,r);let o=0;for(o=0;o<i&&e[o]===t[o];o++);let a=0;for(a=0;a<i-o&&e[n-a-1]===t[r-a-1];a++);const c=o+a,u=[];if(c<n&&u.push({length:n-c,position:n-a,type:"erase"}),c<r){const e=t.slice(o,o+r-c);u.push({position:o,text:s.default.ucs2.encode(e),type:"insert"})}return u}t.diff=o;t.DisplayBuffer=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.synced=!1,this.cursorPosition=0,this.ignoreWaits=!1,this.timeDeficit=0,this.sequenceNumber=0,this.onStateChange=e||function(){},this.ignoreWaits=t,this.buffer=[],this.resetActionQueue()}get text(){return s.default.ucs2.encode(this.buffer.slice())}commit(){this.resetActionQueue()}process(e){if("cancel"!==e.event&&"init"!==e.event){if("reset"===e.event||"new"===e.event?(this.resetActionQueue(),void 0!==e.seq&&(this.sequenceNumber=e.seq)):e.seq!==this.sequenceNumber&&(this.synced=!1),e.actions){const t=Date.now();let n=0;for(const r of e.actions)r.baseTime=t+n,"wait"===r.type&&(n+=r.duration),this.actionQueue.push(r,0)}this.sequenceNumber=this.sequenceNumber+1}else this.resetActionQueue()}insert(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.buffer.length;e=e.normalize("NFC");const n=s.default.ucs2.decode(e);this.buffer.splice(t,0,...n),this.cursorPosition=t+n.length,this.emitState()}erase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.buffer.length;t=Math.max(Math.min(t,this.buffer.length),0),e=Math.max(Math.min(e,this.text.length),0),this.buffer.splice(Math.max(t-e,0),e),this.cursorPosition=Math.max(t-e,0),this.emitState()}emitState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.onStateChange({cursorPosition:this.cursorPosition,synced:this.synced,text:this.text,...e})}resetActionQueue(){this.actionQueue&&this.actionQueue.kill(),this.sequenceNumber=0,this.synced=!0,this.buffer=[],this.timeDeficit=0,this.actionQueue=(0,i.priorityQueue)((e,t)=>{const n=Date.now();if("insert"===e.type)return this.insert(e.text,e.position),t();if("erase"===e.type)return this.erase(e.length,e.position),t();if("wait"!==e.type)return t();{if(this.ignoreWaits)return t();e.duration>700&&(e.duration=700);const r=e.duration-(n-e.baseTime)+this.timeDeficit;if(r<=0)return this.timeDeficit=r,t();this.timeDeficit=0,setTimeout(()=>t(),r)}},1),this.emitState()}};t.InputBuffer=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.resetInterval=1e4,this.ignoreWaits=!1,this.isStarting=!1,this.isReset=!1,this.changedBetweenResets=!1,this.onStateChange=e||function(){},this.ignoreWaits=t,this.buffer=[],this.actionQueue=[],this.sequenceNumber=0}get text(){return s.default.ucs2.encode(this.buffer.slice())}update(e){let t=[];if(void 0!==e){e=e.normalize("NFC");const n=s.default.ucs2.decode(e);t=o(this.buffer,n.slice()),this.buffer=n,this.emitState()}const n=Date.now();if(this.changedBetweenResets&&n-this.lastResetTime>this.resetInterval)this.actionQueue=[],this.actionQueue.push({position:0,text:this.text,type:"insert"}),this.isReset=!0,this.lastActionTime=n,this.lastResetTime=n,this.changedBetweenResets=!1;else if(t.length){const e=n-(this.lastActionTime||n);e>0&&!this.ignoreWaits&&this.actionQueue.push({duration:e,type:"wait"});for(const e of t)this.actionQueue.push(e);this.lastActionTime=n,this.changedBetweenResets=!0}else this.lastActionTime=n}start(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.resetInterval;return this.commit(),this.isStarting=!0,this.resetInterval=e,this.sequenceNumber=Math.floor(1e4*Math.random()+1),{event:"init"}}stop(){return this.commit(),{event:"cancel"}}diff(){if(this.update(),!this.actionQueue.length)return null;const e={actions:this.actionQueue,seq:this.sequenceNumber++};return this.isStarting?(e.event="new",this.isStarting=!1,this.lastResetTime=Date.now()):this.isReset&&(e.event="reset",this.isReset=!1),this.actionQueue=[],e}commit(){this.sequenceNumber=0,this.lastActionTime=0,this.actionQueue=[],this.buffer=[]}emitState(){this.onStateChange({text:this.text})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPager=t.ResultSetPager=void 0;class r{constructor(e){var t,n,r;this.resultComplete=!1,this.fetchedCount=0,this.yieldedCount=0,this.cursor={first:e.before,last:e.after},this.query=e.query,this.direction=null!==(t=e.direction)&&void 0!==t?t:"forward",this.reverse=null!==(n=e.reverse)&&void 0!==n?n:"backward"===this.direction,this.pageSize=null!==(r=e.pageSize)&&void 0!==r?r:20}async*[Symbol.asyncIterator](){let e=[];do{e=await this.fetchPage();for(const t of e)this.yieldedCount+=1,yield t}while(e.length>0)}async size(){if(void 0!==this.resultCount)return this.resultCount;const{paging:e}=await this.query({max:0});return this.resultCount=e.count,e.count}queryCompleted(){return this.resultComplete}finished(){return this.resultComplete&&this.yieldedCount===this.fetchedCount}async fetchPage(){var e;const{results:t,paging:n}=await this.query({before:"backward"===this.direction?null!==(e=this.cursor.first)&&void 0!==e?e:"":void 0,after:"forward"===this.direction?this.cursor.last:void 0,max:this.pageSize});return this.cursor=n,this.resultCount=n.count,this.fetchedCount+=t.length,(this.pageSize&&t.length<this.pageSize||this.resultCount&&this.fetchedCount===this.resultCount)&&(this.resultComplete=!0),this.reverse&&t.reverse(),t}}t.ResultSetPager=r,t.createPager=function(e){return new r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{}t.default=r},function(e,t,n){"use strict";n.r(t),n.d(t,"Emitter",(function(){return s})),n.d(t,"MemoryLeakError",(function(){return r}));var r=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},i=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=i.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return this.events.get(e)||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){var n=this;const r=function(){n.removeListener(e,r);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];t.apply(n,s)};return r}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=this._getListeners(e);return i.forEach(e=>{e.apply(this,n)}),i.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new r(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},s=i;s.defaultMaxListeners=10},function(e,t,n){"use strict";n.r(t);var r=n(7),i=n(203),s=n(36),o=n.n(s);const a=function(e){const t=JSON.stringify(e),n=encodeURIComponent(t).match(/%[89ABab]/g);return t.length+(n?n.length:0)},c=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(0===n)return null;if(t){if(Array.isArray(t)){const r=[];for(let i=0;i<t.length;i++)r[i]=e(t[i],n-1);return r}if("object"==typeof t){const r=Object.assign({},t);for(const i in t)try{r[i]=e(t[i],n-1)}catch(e){console.debug("WARN: Failed cloning key on object, ignoring",{key:i,object:t})}return r}}return t};var u=n(67),l=n(66),d=n(37);function p(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function h(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function f(e){h(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(d.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function m(e,t){h(2,arguments);var n=f(e),r=p(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function g(e,t){h(2,arguments);var n=f(e),r=p(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var o=s.getDate();return i>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function y(e,t){h(2,arguments);var n=f(e),r=f(t);return n.getTime()>r.getTime()}var b=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))};const v=[408,429,500,503,504],_=[401],S=new Map;class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;this.url=e,this.debugMode=t,this.customHeaders=n,this.sendQueue=[]}postLogsToEndpoint(e){const t=(()=>{let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}})();return this.sendQueue.push({requestParams:e,deferred:t}),this.sendNextQueuedLogToServer(),this.debug("adding requestParams to sendQueue",{requestParams:e,updatedSendQueue:this.sendQueue.map(e=>e.requestParams),hasPendingRequest:!!this.pendingRequest}),t.promise}postLogsToEndpointInstantly(e,t){return b(this,void 0,void 0,(function*(){if(this.debug("sending request instantly",{requestParams:e,sendQueue:this.sendQueue.map(e=>e.requestParams)}),!navigator.onLine)return this.saveRequestForLater(e);try{yield this.sendPostRequest(e)}catch(n){throw(null==t?void 0:t.saveOnFailure)&&this.saveRequestForLater(e),n}}))}saveRequestForLater(e){const t=this.getSavedRequests()||[],n=Object.assign({},e);delete n.accessToken,t.push(n),window.localStorage.setItem("gc_logger_requests",JSON.stringify(t))}getSavedRequests(){const e=window.localStorage.getItem("gc_logger_requests");if(e)try{return JSON.parse(e)}catch(t){console.error("Failed to parse saved messages, ignoring",{savedMessagesStr:e})}}sendEntireQueue(){this.debug("sending all queued requests instantly to clear out sendQueue",{sendQueue:this.sendQueue.map(e=>e.requestParams)});const e=[];let t;for(;t=this.sendQueue.shift();)e.push(this.postLogsToEndpointInstantly(t.requestParams,{saveOnFailure:!0}));return e}resetSendQueue(){this.debug("reseting send queue without sending currently queued data",{queueLength:this.sendQueue.length}),this.sendQueue=[]}sendNextQueuedLogToServer(){return b(this,void 0,void 0,(function*(){if(this.pendingRequest||0===this.sendQueue.length)return void this.debug("sendNextQueuedLogToServer() but not sending request",{hasPendingRequest:!!this.pendingRequest,sendQueueLength:this.sendQueue.length});const e=this.sendQueue.shift();return e.deferred.promise.finally(()=>{this.debug("queue item completed. removing from queue and resetting send queue",{queueItemRequestParams:e.requestParams,updatedSendQueue:this.sendQueue.map(e=>e.requestParams)}),this.pendingRequest=void 0,this.sendNextQueuedLogToServer()}),this.pendingRequest=e,this.debug("sending logs to server",{queueItem:e.requestParams,sendQueue:this.sendQueue.map(e=>e.requestParams)}),Object(l.backOff)(()=>this.backoffFn(e.requestParams),{retry:e=>{var t,n,r,i,s;const o=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status,a=null==e?void 0:e.code,c=(null===(r=null===(n=e.response)||void 0===n?void 0:n.headers)||void 0===r?void 0:r["retry-after"])||(null===(s=null===(i=e.response)||void 0===i?void 0:i.getResponseHeader)||void 0===s?void 0:s.call(i,"retry-after"));if(c){const e=function(e,t){if(h(2,arguments),!t||"object"!==Object(d.a)(t))return new Date(NaN);var n=t.years?p(t.years):0,r=t.months?p(t.months):0,i=t.weeks?p(t.weeks):0,s=t.days?p(t.days):0,o=t.hours?p(t.hours):0,a=t.minutes?p(t.minutes):0,c=t.seconds?p(t.seconds):0,u=f(e),l=r||n?g(u,r+12*n):u,y=s||i?m(l,s+7*i):l,b=a+60*o,v=c+60*b,_=1e3*v,S=new Date(y.getTime()+_);return S}(new Date,{seconds:parseInt(c,10)});this.retryAfter&&!y(e,this.retryAfter)||(this.retryAfter=e)}return navigator.onLine&&(o&&v.includes(o)||"ERR_NETWORK"===a)},numOfAttempts:10,startingDelay:0,delayFirstAttempt:!1,maxDelay:15e3}).then(t=>{this.debug("successfully sent logs to server",{requestParams:e.requestParams,response:t}),e.deferred.resolve(t)}).catch(this.handleBackoffError.bind(this,e))}))}handleBackoffError(e,t){var n;const r=null===(n=t.response)||void 0===n?void 0:n.status;r&&v.includes(r)||_.includes(r)||"ERR_NETWORK"===t.code?(this.debug("Failed to sends logs to the server, moving request to the end of the queue",{requestParams:e.requestParams,error:t}),this.saveRequestForLater(e.requestParams)):this.debug("ERROR sending logs to server",{requestParams:e.requestParams,error:t}),e.deferred.reject(Object.assign(Object.assign({},t),{id:"rejectionSpot1"}))}retryAfterTimerCheck(){return b(this,void 0,void 0,(function*(){if(this.retryAfter){if(!y(Date.now(),this.retryAfter)){const e=function(e,t){return h(2,arguments),f(e).getTime()-f(t).getTime()}(this.retryAfter,Date.now());return this.debug('Respecting "retry-after" response header, waiting to send request',{millisecondsToWait:e}),yield new Promise(t=>{setTimeout(()=>{t(null)},e)}),this.retryAfterTimerCheck()}this.retryAfter=void 0}}))}backoffFn(e){return b(this,void 0,void 0,(function*(){yield this.retryAfterTimerCheck();const t=e.accessToken,n=yield this.sendPostRequest(e),r=this.getSavedRequests();return r&&(window.localStorage.removeItem("gc_logger_requests"),r.map(e=>{const n=Object.assign({accessToken:t},e);this.postLogsToEndpoint(n)})),n}))}sendPostRequest(e){this.debug("issuing POST request",{requestParams:e});const t=Object.assign({},e);delete t.accessToken;const n=Object.assign({authorization:"Bearer "+e.accessToken,"content-type":"application/json; charset=UTF-8"},this.customHeaders||{});return Object(u.a)({method:"post",url:this.url,responseType:"text",data:t,headers:n})}debug(e,t){this.debugMode&&console.log("%c [DEBUG:log-uploader] "+e,"color: #32a0a8",c(t))}}var T=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))};class I{constructor(e){if(this.isInitialized=!1,this.logBuffer=[],this.debounceTimer=null,this.logger=e,!e.config.url||!e.config.appVersion){const t="Missing `url` and/or `appVersion` config options to set up server logging. Not sending logs to server for this logger instance";throw this.logger.error(t,{providedConfig:e.config},{skipServer:!0}),new Error(t)}this.isInitialized=!0,this.debounceLogUploadTime=e.config.uploadDebounceTime||4e3,this.logUploader=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(n)return new w(e,t,r);let i=S.get(e);return i||(i=new w(e,t,r),S.set(e,i)),i}(e.config.url,e.config.debugMode,e.config.useUniqueLogUploader,e.config.customHeaders),window.addEventListener("unload",this.sendAllLogsInstantly.bind(this)),this.logger.on("onStop",e=>{this.debug("`onStop` received. Clearing logBuffer and sendQueue",{logBuffer:this.logBuffer,sendQueue:this.logUploader.sendQueue}),this.logBuffer=[],this.logUploader.resetSendQueue()})}addLogToSend(e,t,n){if(!this.isInitialized)return;const r=this.convertToLogMessage(t,n);let i=this.convertToTrace(e,r),s=a(i);if(s>14500){const t=this.truncateLog(e,r);if(null===t)return void this.logger.error("truncated message is too large to send to server. not sending message",{originalTrace:i,originalTraceSize:a(i),truncatedTrace:t,truncatedTraceSize:a(t)},{skipServer:!0});s=a(t),i=t}const o=!this.logBuffer.length;let c;c=o?{size:0,traces:[]}:this.logBuffer[this.logBuffer.length-1];if(c.size+s>14500)return this.debug("`exceedsMaxLogSize` was `true`",{logBuffer:this.logBuffer,bufferItem:c,incomingTrace:i,incomingTraceSize:s,maxAllowedTraceSize:14500}),this.logBuffer.push({size:s,traces:[i]}),this.debug("calling sendLogsToServer(true)",{logBuffer:this.logBuffer}),void this.sendLogsToServer(!0);c.size+=s,c.traces.push(i),o&&(this.debug("`this.logBuffer` was empty. pushing new buffer item",{logBuffer:this.logBuffer,bufferItem:c}),this.logBuffer.push(c)),this.debug("calling sendLogsToServer()",{logBuffer:this.logBuffer}),this.sendLogsToServer()}sendAllLogsInstantly(){return this.logUploader.sendEntireQueue().concat(this.logBuffer.map(e=>this.logUploader.postLogsToEndpointInstantly(this.convertToRequestParams(e.traces.reverse()),{saveOnFailure:!0})))}sendLogsToServer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;return T(this,void 0,void 0,(function*(){if(!this.logBuffer.length)return clearTimeout(this.debounceTimer),this.debounceTimer=null,void this.debug("buffer empty, not sending http request");if(!e)return void(this.debounceTimer?this.debug("sendLogsToServer() 'immediate' is false. 'debounceTimer' is already running"):(this.debug(`sendLogsToServer() 'immediate' is false. setting up 'debounceTimer' to ${this.debounceLogUploadTime}ms`),this.debounceTimer=setTimeout(()=>this.sendLogsToServer(!0),this.debounceLogUploadTime)));clearTimeout(this.debounceTimer),this.debounceTimer=null;const[n]=this.logBuffer.splice(0,1);try{this.debug("calling logUploader.postLogsToEndpoint() with",{bufferItem:n,newLogBuffer:this.logBuffer}),yield this.logUploader.postLogsToEndpoint(this.convertToRequestParams(n.traces.reverse()))}catch(e){this.logger.emit("onError",e),this.logger.error("Error sending logs to server",e,{skipServer:!0});const n=(null==e?void 0:e.status)?parseInt(e.status,10):parseInt(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status,10);[401,403,404].includes(n)&&(this.logger.warn(`received a ${n} from logUploader. stopping logging to server`),this.logger.stopServerLogging())}finally{this.sendLogsToServer()}}))}truncateLog(e,t){let n,r;const i=a(this.convertToTrace(e,t)),s=c(t);return s?(s.details="[[TRUNCATED]]",n=this.convertToTrace(e,s),r=a(n),r<=14500?(this.logger.warn("message too large to send to server. truncated log details",{originalLog:t,truncatedLog:s,originalTraceSize:i,truncatedTraceSize:r,maxAllowedTraceSize:14500},{skipServer:!0}),n):(s.message=s.message.substr(0,150)+"... [[TRUNCATED]]",n=this.convertToTrace(e,s),r=a(n),r<=14500?(this.logger.warn("message too large to send to server. truncated log details & log message",{originalLog:t,truncatedLog:s,originalTraceSize:i,truncatedTraceSize:r,maxAllowedTraceSize:14500},{skipServer:!0}),n):null)):null}convertToLogMessage(e,t){const n={clientTime:(new Date).toISOString(),clientId:this.logger.clientId,message:e,details:t},{originAppName:r,originAppVersion:i,originAppId:s}=this.logger.config;return r&&(n.originAppName=r,n.originAppVersion=i,n.originAppId=s),n}convertToTrace(e,t){return{topic:this.logger.config.appName,level:e.toUpperCase(),message:o()(t)}}convertToRequestParams(e){return{accessToken:this.logger.config.accessToken,app:{appId:this.logger.config.appName,appVersion:this.logger.config.appVersion},traces:e}}debug(e,t){this.logger.config.debugMode&&console.log(`%c [DEBUG:${this.logger.config.appName}] ${e}`,"color: #32a852",c(t))}}class A extends r.EventEmitter{constructor(e){super(),this.defaultFormatter=(e,t,n,r,i)=>{if(r.skipDefaultFormatter)return i();t instanceof Error&&(n=n||t,t=t.message);i(e,t=`${this.config.appName?`[${this.config.appName}] `:""}${t}`,n,r)},this.logMessage=(e,t,n,r)=>{if(!r.skipSecondaryLogger)try{const r=[t];void 0!==n&&r.push(this.config.stringify?o()(n):n),this.secondaryLogger[e].apply(this.secondaryLogger,r)}catch(e){console.error("Error logging using custom logger passed into `genesys-cloud-client-logger`",{error:e,secondaryLogger:this.secondaryLogger,message:t,details:n,messageOptions:r})}!r.skipServer&&!this.stopReason&&this.serverLogger&&this.logRank(e)>=this.logRank(this.config.logLevel)&&this.serverLogger.addLogToSend(e,t,n)},Object.defineProperty(this,"clientId",{value:Object(i.a)(),writable:!1}),this.config=Object.assign({},e),this.secondaryLogger=this.config.logger||console,delete this.config.logger,-1===this.logRank(this.config.logLevel)&&(e.logLevel&&this.warn(`Invalid log level: "${e.logLevel}". Default "info" will be used instead.`,null,{skipServer:!0}),this.config.logLevel="info"),!e.appName&&e.logTopic&&(this.warn("`logTopic` has been renamed to `appName`. Please use `appName`",null,{skipServer:!0}),this.config.appName=e.logTopic),!1!==this.config.initializeServerLogging&&(this.serverLogger=new I(this)),this.config.startServerLoggingPaused&&this.stopServerLogging()}get VERSION(){return A.VERSION}setAccessToken(e){this.config.accessToken=e,401==this.stopReason&&this.startServerLogging()}log(e,t,n){this.formatMessage("log",e,t,n)}debug(e,t,n){this.formatMessage("debug",e,t,n)}info(e,t,n){this.formatMessage("info",e,t,n)}warn(e,t,n){this.formatMessage("warn",e,t,n)}error(e,t,n){this.formatMessage("error",e,t,n)}startServerLogging(){if(this.stopReason=void 0,!this.serverLogger)return this.warn("`startServerLogging` called but the logger instance is not configured to send logs to the server. Ignoring call to start sending logs to server.",void 0,{skipServer:!0});this.emit("onStart")}stopServerLogging(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"force";"force"===this.stopReason&&"force"!==e||(this.stopReason=e,this.emit("onStop",e))}sendAllLogsInstantly(){var e;return(null===(e=this.serverLogger)||void 0===e?void 0:e.sendAllLogsInstantly())||[]}formatMessage(e,t,n,r){let i=[this.defaultFormatter.bind(this)];this.config.formatters&&(i=[...this.config.formatters,this.defaultFormatter.bind(this)]),this.callNextFormatter(i,e,t,n,r)}callNextFormatter(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const[s,...o]=e;if(!s)return this.logMessage(t,n,r,i);s(t,n,r,i,(e,s,a,c)=>{void 0!==e?this.callNextFormatter(o,e,s,a,c):this.callNextFormatter(o,t,n,r,i)})}logRank(e){switch(e){case"log":return 0;case"debug":return 1;case"info":return 2;case"warn":return 3;case"error":return 4;default:return-1}}}A.VERSION="4.2.13",n.d(t,"Logger",(function(){return A}));t.default=A}]).default;
|