botframework-webchat-core
Advanced tools
Comparing version 4.18.1-main.20241114.7f9f47e to 4.18.1-main.20241115.e88f4b6
@@ -1,3 +0,3 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var Gn=Object.defineProperty;var ri=(t,o)=>{for(var e in o)Gn(t,e,{get:o[e],enumerable:!0})};var Fn=Object.create,ii=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,jn=Object.getOwnPropertyNames,Wn=Object.getPrototypeOf,Mn=Object.prototype.hasOwnProperty,p=(t,o)=>()=>(o||t((o={exports:{}}).exports,o),o.exports),Un=(t,o,e,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of jn(o))!Mn.call(t,i)&&i!==e&&ii(t,i,{get:()=>o[i],enumerable:!(r=Bn(o,i))||r.enumerable});return t},qn=(t,o,e)=>(e=t!=null?Fn(Wn(t)):{},Un(o||!t||!t.__esModule?ii(e,"default",{value:t,enumerable:!0}):e,t)),W=p((t,o)=>{"use strict";var e=function(r){return r&&r.Math===Math&&r};o.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof global=="object"&&global)||e(typeof t=="object"&&t)||function(){return this}()||Function("return this")()}),tt=p((t,o)=>{"use strict";o.exports=function(e){try{return!!e()}catch (e2){return!0}}}),le=p((t,o)=>{"use strict";var e=tt();o.exports=!e(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})}),ni=p((t,o)=>{"use strict";var e=le(),r=Function.prototype,i=r.apply,n=r.call;o.exports=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(i):function(){return n.apply(i,arguments)})}),K=p((t,o)=>{"use strict";var e=le(),r=Function.prototype,i=r.call,n=e&&r.bind.bind(i,i);o.exports=e?n:function(c){return function(){return i.apply(c,arguments)}}}),me=p((t,o)=>{"use strict";var e=K(),r=e({}.toString),i=e("".slice);o.exports=function(n){return i(r(n),8,-1)}}),ci=p((t,o)=>{"use strict";var e=me(),r=K();o.exports=function(i){if(e(i)==="Function")return r(i)}}),q=p((t,o)=>{"use strict";var e=typeof document=="object"&&document.all;o.exports=typeof e>"u"&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"}}),pt=p((t,o)=>{"use strict";var e=tt();o.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),X=p((t,o)=>{"use strict";var e=le(),r=Function.prototype.call;o.exports=e?r.bind(r):function(){return r.apply(r,arguments)}}),Vn=p(t=>{"use strict";var o={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!o.call({1:2},1);t.f=r?function(i){var n=e(this,i);return!!n&&n.enumerable}:o}),ai=p((t,o)=>{"use strict";o.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}}),Yn=p((t,o)=>{"use strict";var e=K(),r=tt(),i=me(),n=Object,c=e("".split);o.exports=r(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return i(s)==="String"?c(s,""):n(s)}:n}),de=p((t,o)=>{"use strict";o.exports=function(e){return e==null}}),ze=p((t,o)=>{"use strict";var e=de(),r=TypeError;o.exports=function(i){if(e(i))throw new r("Can't call method on "+i);return i}}),$n=p((t,o)=>{"use strict";var e=Yn(),r=ze();o.exports=function(i){return e(r(i))}}),et=p((t,o)=>{"use strict";var e=q();o.exports=function(r){return typeof r=="object"?r!==null:e(r)}}),Ke=p((t,o)=>{"use strict";o.exports={}}),Et=p((t,o)=>{"use strict";var e=Ke(),r=W(),i=q(),n=function(c){return i(c)?c:void 0};o.exports=function(c,s){return arguments.length<2?n(e[c])||n(r[c]):e[c]&&e[c][s]||r[c]&&r[c][s]}}),Xe=p((t,o)=>{"use strict";var e=K();o.exports=e({}.isPrototypeOf)}),Ft=p((t,o)=>{"use strict";var e=W(),r=e.navigator,i=r&&r.userAgent;o.exports=i?String(i):""}),si=p((t,o)=>{"use strict";var e=W(),r=Ft(),i=e.process,n=e.Deno,c=i&&i.versions||n&&n.version,s=c&&c.v8,a,f;s&&(a=s.split("."),f=a[0]>0&&a[0]<4?1:+(a[0]+a[1])),!f&&r&&(a=r.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=r.match(/Chrome\/(\d+)/),a&&(f=+a[1]))),o.exports=f}),pi=p((t,o)=>{"use strict";var e=si(),r=tt(),i=W(),n=i.String;o.exports=!!Object.getOwnPropertySymbols&&!r(function(){var c=Symbol("symbol detection");return!n(c)||!(Object(c)instanceof Symbol)||!Symbol.sham&&e&&e<41})}),ui=p((t,o)=>{"use strict";var e=pi();o.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),fi=p((t,o)=>{"use strict";var e=Et(),r=q(),i=Xe(),n=ui(),c=Object;o.exports=n?function(s){return typeof s=="symbol"}:function(s){var a=e("Symbol");return r(a)&&i(a.prototype,c(s))}}),ye=p((t,o)=>{"use strict";var e=String;o.exports=function(r){try{return e(r)}catch (e3){return"Object"}}}),it=p((t,o)=>{"use strict";var e=q(),r=ye(),i=TypeError;o.exports=function(n){if(e(n))return n;throw new i(r(n)+" is not a function")}}),Qe=p((t,o)=>{"use strict";var e=it(),r=de();o.exports=function(i,n){var c=i[n];return r(c)?void 0:e(c)}}),Hn=p((t,o)=>{"use strict";var e=X(),r=q(),i=et(),n=TypeError;o.exports=function(c,s){var a,f;if(s==="string"&&r(a=c.toString)&&!i(f=e(a,c))||r(a=c.valueOf)&&!i(f=e(a,c))||s!=="string"&&r(a=c.toString)&&!i(f=e(a,c)))return f;throw new n("Can't convert object to primitive value")}}),Bt=p((t,o)=>{"use strict";o.exports=!0}),Jn=p((t,o)=>{"use strict";var e=W(),r=Object.defineProperty;o.exports=function(i,n){try{r(e,i,{value:n,configurable:!0,writable:!0})}catch (e4){e[i]=n}return n}}),ve=p((t,o)=>{"use strict";var e=Bt(),r=W(),i=Jn(),n="__core-js_shared__",c=o.exports=r[n]||i(n,{});(c.versions||(c.versions=[])).push({version:"3.38.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),li=p((t,o)=>{"use strict";var e=ve();o.exports=function(r,i){return e[r]||(e[r]=i||{})}}),zn=p((t,o)=>{"use strict";var e=ze(),r=Object;o.exports=function(i){return r(e(i))}}),ht=p((t,o)=>{"use strict";var e=K(),r=zn(),i=e({}.hasOwnProperty);o.exports=Object.hasOwn||function(n,c){return i(r(n),c)}}),mi=p((t,o)=>{"use strict";var e=K(),r=0,i=Math.random(),n=e(1 .toString);o.exports=function(c){return"Symbol("+(c===void 0?"":c)+")_"+n(++r+i,36)}}),Q=p((t,o)=>{"use strict";var e=W(),r=li(),i=ht(),n=mi(),c=pi(),s=ui(),a=e.Symbol,f=r("wks"),u=s?a.for||a:a&&a.withoutSetter||n;o.exports=function(l){return i(f,l)||(f[l]=c&&i(a,l)?a[l]:u("Symbol."+l)),f[l]}}),Kn=p((t,o)=>{"use strict";var e=X(),r=et(),i=fi(),n=Qe(),c=Hn(),s=Q(),a=TypeError,f=s("toPrimitive");o.exports=function(u,l){if(!r(u)||i(u))return u;var T=n(u,f),m;if(T){if(l===void 0&&(l="default"),m=e(T,u,l),!r(m)||i(m))return m;throw new a("Can't convert object to primitive value")}return l===void 0&&(l="number"),c(u,l)}}),di=p((t,o)=>{"use strict";var e=Kn(),r=fi();o.exports=function(i){var n=e(i,"string");return r(n)?n:n+""}}),yi=p((t,o)=>{"use strict";var e=W(),r=et(),i=e.document,n=r(i)&&r(i.createElement);o.exports=function(c){return n?i.createElement(c):{}}}),vi=p((t,o)=>{"use strict";var e=pt(),r=tt(),i=yi();o.exports=!e&&!r(function(){return Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a!==7})}),Xn=p(t=>{"use strict";var o=pt(),e=X(),r=Vn(),i=ai(),n=$n(),c=di(),s=ht(),a=vi(),f=Object.getOwnPropertyDescriptor;t.f=o?f:function(u,l){if(u=n(u),l=c(l),a)try{return f(u,l)}catch (e5){}if(s(u,l))return i(!e(r.f,u,l),u[l])}}),Ti=p((t,o)=>{"use strict";var e=tt(),r=q(),i=/#|\.prototype\./,n=function(u,l){var T=s[c(u)];return T===f?!0:T===a?!1:r(l)?e(l):!!l},c=n.normalize=function(u){return String(u).replace(i,".").toLowerCase()},s=n.data={},a=n.NATIVE="N",f=n.POLYFILL="P";o.exports=n}),Te=p((t,o)=>{"use strict";var e=ci(),r=it(),i=le(),n=e(e.bind);o.exports=function(c,s){return r(c),s===void 0?c:i?n(c,s):function(){return c.apply(s,arguments)}}}),Qn=p((t,o)=>{"use strict";var e=pt(),r=tt();o.exports=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}),It=p((t,o)=>{"use strict";var e=et(),r=String,i=TypeError;o.exports=function(n){if(e(n))return n;throw new i(r(n)+" is not an object")}}),Ze=p(t=>{"use strict";var o=pt(),e=vi(),r=Qn(),i=It(),n=di(),c=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,f="enumerable",u="configurable",l="writable";t.f=o?r?function(T,m,v){if(i(T),m=n(m),i(v),typeof T=="function"&&m==="prototype"&&"value"in v&&l in v&&!v[l]){var y=a(T,m);y&&y[l]&&(T[m]=v.value,v={configurable:u in v?v[u]:y[u],enumerable:f in v?v[f]:y[f],writable:!1})}return s(T,m,v)}:s:function(T,m,v){if(i(T),m=n(m),i(v),e)try{return s(T,m,v)}catch (e6){}if("get"in v||"set"in v)throw new c("Accessors not supported");return"value"in v&&(T[m]=v.value),T}}),Ae=p((t,o)=>{"use strict";var e=pt(),r=Ze(),i=ai();o.exports=e?function(n,c,s){return r.f(n,c,i(1,s))}:function(n,c,s){return n[c]=s,n}}),ut=p((t,o)=>{"use strict";var e=W(),r=ni(),i=ci(),n=q(),c=Xn().f,s=Ti(),a=Ke(),f=Te(),u=Ae(),l=ht();ve();var T=function(m){var v=function(y,E,g){if(this instanceof v){switch(arguments.length){case 0:return new m;case 1:return new m(y);case 2:return new m(y,E)}return new m(y,E,g)}return r(m,this,arguments)};return v.prototype=m.prototype,v};o.exports=function(m,v){var y=m.target,E=m.global,g=m.stat,h=m.proto,I=E?e:g?e[y]:e[y]&&e[y].prototype,A=E?a:a[y]||u(a,y,{})[y],b=A.prototype,P,w,L,x,k,V,G,F,M;for(x in v)P=s(E?x:y+(g?".":"#")+x,m.forced),w=!P&&I&&l(I,x),V=A[x],w&&(m.dontCallGetSet?(M=c(I,x),G=M&&M.value):G=I[x]),k=w&&G?G:v[x],!(!P&&!h&&typeof V==typeof k)&&(m.bind&&w?F=f(k,e):m.wrap&&w?F=T(k):h&&n(k)?F=i(k):F=k,(m.sham||k&&k.sham||V&&V.sham)&&u(F,"sham",!0),u(A,x,F),h&&(L=y+"Prototype",l(a,L)||u(a,L,{}),u(a[L],x,k),m.real&&b&&(P||!b[x])&&u(b,x,k)))}}),Ai=p((t,o)=>{"use strict";var e=W(),r=Ft(),i=me(),n=function(c){return r.slice(0,c.length)===c};o.exports=function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":i(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"}()}),to=p((t,o)=>{"use strict";var e=Ai();o.exports=e==="NODE"}),Si=p((t,o)=>{"use strict";var e=Ae();o.exports=function(r,i,n,c){return c&&c.enumerable?r[i]=n:e(r,i,n),r}}),Zn=p((t,o)=>{"use strict";var e=K(),r=it();o.exports=function(i,n,c){try{return e(r(Object.getOwnPropertyDescriptor(i,n)[c]))}catch (e7){}}}),tc=p((t,o)=>{"use strict";var e=et();o.exports=function(r){return e(r)||r===null}}),ec=p((t,o)=>{"use strict";var e=tc(),r=String,i=TypeError;o.exports=function(n){if(e(n))return n;throw new i("Can't set "+r(n)+" as a prototype")}}),oc=p((t,o)=>{"use strict";var e=Zn(),r=et(),i=ze(),n=ec();o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,s={},a;try{a=e(Object.prototype,"__proto__","set"),a(s,[]),c=s instanceof Array}catch (e8){}return function(f,u){return i(f),n(u),r(f)&&(c?a(f,u):f.__proto__=u),f}}():void 0)}),eo=p((t,o)=>{"use strict";var e=Q(),r=e("toStringTag"),i={};i[r]="z",o.exports=String(i)==="[object z]"}),oo=p((t,o)=>{"use strict";var e=eo(),r=q(),i=me(),n=Q(),c=n("toStringTag"),s=Object,a=i(function(){return arguments}())==="Arguments",f=function(u,l){try{return u[l]}catch (e9){}};o.exports=e?i:function(u){var l,T,m;return u===void 0?"Undefined":u===null?"Null":typeof(T=f(l=s(u),c))=="string"?T:a?i(l):(m=i(l))==="Object"&&r(l.callee)?"Arguments":m}}),rc=p((t,o)=>{"use strict";var e=eo(),r=oo();o.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}}),ic=p((t,o)=>{"use strict";var e=eo(),r=Ze().f,i=Ae(),n=ht(),c=rc(),s=Q(),a=s("toStringTag");o.exports=function(f,u,l,T){var m=l?f:f&&f.prototype;m&&(n(m,a)||r(m,a,{configurable:!0,value:u}),T&&!e&&i(m,"toString",c))}}),nc=p((t,o)=>{"use strict";var e=Ze();o.exports=function(r,i,n){return e.f(r,i,n)}}),cc=p((t,o)=>{"use strict";var e=Et(),r=nc(),i=Q(),n=pt(),c=i("species");o.exports=function(s){var a=e(s);n&&a&&!a[c]&&r(a,c,{configurable:!0,get:function(){return this}})}}),ac=p((t,o)=>{"use strict";var e=Xe(),r=TypeError;o.exports=function(i,n){if(e(n,i))return i;throw new r("Incorrect invocation")}}),gi=p((t,o)=>{"use strict";var e=K(),r=q(),i=ve(),n=e(Function.toString);r(i.inspectSource)||(i.inspectSource=function(c){return n(c)}),o.exports=i.inspectSource}),sc=p((t,o)=>{"use strict";var e=K(),r=tt(),i=q(),n=oo(),c=Et(),s=gi(),a=function(){},f=c("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=e(u.exec),T=!u.test(a),m=function(y){if(!i(y))return!1;try{return f(a,[],y),!0}catch (e10){return!1}},v=function(y){if(!i(y))return!1;switch(n(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return T||!!l(u,s(y))}catch (e11){return!0}};v.sham=!0,o.exports=!f||r(function(){var y;return m(m.call)||!m(Object)||!m(function(){y=!0})||y})?v:m}),pc=p((t,o)=>{"use strict";var e=sc(),r=ye(),i=TypeError;o.exports=function(n){if(e(n))return n;throw new i(r(n)+" is not a constructor")}}),uc=p((t,o)=>{"use strict";var e=It(),r=pc(),i=de(),n=Q(),c=n("species");o.exports=function(s,a){var f=e(s).constructor,u;return f===void 0||i(u=e(f)[c])?a:r(u)}}),fc=p((t,o)=>{"use strict";var e=Et();o.exports=e("document","documentElement")}),lc=p((t,o)=>{"use strict";var e=K();o.exports=e([].slice)}),mc=p((t,o)=>{"use strict";var e=TypeError;o.exports=function(r,i){if(r<i)throw new e("Not enough arguments");return r}}),Ei=p((t,o)=>{"use strict";var e=Ft();o.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)}),hi=p((t,o)=>{"use strict";var e=W(),r=ni(),i=Te(),n=q(),c=ht(),s=tt(),a=fc(),f=lc(),u=yi(),l=mc(),T=Ei(),m=to(),v=e.setImmediate,y=e.clearImmediate,E=e.process,g=e.Dispatch,h=e.Function,I=e.MessageChannel,A=e.String,b=0,P={},w="onreadystatechange",L,x,k,V;s(function(){L=e.location});var G=function(N){if(c(P,N)){var B=P[N];delete P[N],B()}},F=function(N){return function(){G(N)}},M=function(N){G(N.data)},z=function(N){e.postMessage(A(N),L.protocol+"//"+L.host)};(!v||!y)&&(v=function(N){l(arguments.length,1);var B=n(N)?N:h(N),Gt=f(arguments,1);return P[++b]=function(){r(B,void 0,Gt)},x(b),b},y=function(N){delete P[N]},m?x=function(N){E.nextTick(F(N))}:g&&g.now?x=function(N){g.now(F(N))}:I&&!T?(k=new I,V=k.port2,k.port1.onmessage=M,x=i(V.postMessage,V)):e.addEventListener&&n(e.postMessage)&&!e.importScripts&&L&&L.protocol!=="file:"&&!s(z)?(x=z,e.addEventListener("message",M,!1)):w in u("script")?x=function(N){a.appendChild(u("script"))[w]=function(){a.removeChild(this),G(N)}}:x=function(N){setTimeout(F(N),0)}),o.exports={set:v,clear:y}}),dc=p((t,o)=>{"use strict";var e=W(),r=pt(),i=Object.getOwnPropertyDescriptor;o.exports=function(n){if(!r)return e[n];var c=i(e,n);return c&&c.value}}),Ii=p((t,o)=>{"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(r){var i={item:r,next:null},n=this.tail;n?n.next=i:this.head=i,this.tail=i},get:function(){var r=this.head;if(r){var i=this.head=r.next;return i===null&&(this.tail=null),r.item}}},o.exports=e}),yc=p((t,o)=>{"use strict";var e=Ft();o.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u"}),vc=p((t,o)=>{"use strict";var e=Ft();o.exports=/web0s(?!.*chrome)/i.test(e)}),Tc=p((t,o)=>{"use strict";var e=W(),r=dc(),i=Te(),n=hi().set,c=Ii(),s=Ei(),a=yc(),f=vc(),u=to(),l=e.MutationObserver||e.WebKitMutationObserver,T=e.document,m=e.process,v=e.Promise,y=r("queueMicrotask"),E,g,h,I,A;y||(b=new c,P=function(){var w,L;for(u&&(w=m.domain)&&w.exit();L=b.get();)try{L()}catch(x){throw b.head&&E(),x}w&&w.enter()},!s&&!u&&!f&&l&&T?(g=!0,h=T.createTextNode(""),new l(P).observe(h,{characterData:!0}),E=function(){h.data=g=!g}):!a&&v&&v.resolve?(I=v.resolve(void 0),I.constructor=v,A=i(I.then,I),E=function(){A(P)}):u?E=function(){m.nextTick(P)}:(n=i(n,e),E=function(){n(P)}),y=function(w){b.head||E(),b.add(w)});var b,P;o.exports=y}),Ac=p((t,o)=>{"use strict";o.exports=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch (e12){}}}),ro=p((t,o)=>{"use strict";o.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}}),Sc=p((t,o)=>{"use strict";var e=W(),r=q(),i=e.WeakMap;o.exports=r(i)&&/native code/.test(String(i))}),gc=p((t,o)=>{"use strict";var e=li(),r=mi(),i=e("keys");o.exports=function(n){return i[n]||(i[n]=r(n))}}),Ec=p((t,o)=>{"use strict";o.exports={}}),hc=p((t,o)=>{"use strict";var e=Sc(),r=W(),i=et(),n=Ae(),c=ht(),s=ve(),a=gc(),f=Ec(),u="Object already initialized",l=r.TypeError,T=r.WeakMap,m,v,y,E=function(A){return y(A)?v(A):m(A,{})},g=function(A){return function(b){var P;if(!i(b)||(P=v(b)).type!==A)throw new l("Incompatible receiver, "+A+" required");return P}};e||s.state?(h=s.state||(s.state=new T),h.get=h.get,h.has=h.has,h.set=h.set,m=function(A,b){if(h.has(A))throw new l(u);return b.facade=A,h.set(A,b),b},v=function(A){return h.get(A)||{}},y=function(A){return h.has(A)}):(I=a("state"),f[I]=!0,m=function(A,b){if(c(A,I))throw new l(u);return b.facade=A,n(A,I,b),b},v=function(A){return c(A,I)?A[I]:{}},y=function(A){return c(A,I)});var h,I;o.exports={set:m,get:v,has:y,enforce:E,getterFor:g}}),jt=p((t,o)=>{"use strict";var e=W();o.exports=e.Promise}),Wt=p((t,o)=>{"use strict";var e=W(),r=jt(),i=q(),n=Ti(),c=gi(),s=Q(),a=Ai(),f=Bt(),u=si(),l=r&&r.prototype,T=s("species"),m=!1,v=i(e.PromiseRejectionEvent),y=n("Promise",function(){var E=c(r),g=E!==String(r);if(!g&&u===66||f&&!(l.catch&&l.finally))return!0;if(!u||u<51||!/native code/.test(E)){var h=new r(function(b){b(1)}),I=function(b){b(function(){},function(){})},A=h.constructor={};if(A[T]=I,m=h.then(function(){})instanceof I,!m)return!0}return!g&&(a==="BROWSER"||a==="DENO")&&!v});o.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:m}}),Ct=p((t,o)=>{"use strict";var e=it(),r=TypeError,i=function(n){var c,s;this.promise=new n(function(a,f){if(c!==void 0||s!==void 0)throw new r("Bad Promise constructor");c=a,s=f}),this.resolve=e(c),this.reject=e(s)};o.exports.f=function(n){return new i(n)}}),Ic=p(()=>{"use strict";var t=ut(),o=Bt(),e=to(),r=W(),i=X(),n=Si(),c=oc(),s=ic(),a=cc(),f=it(),u=q(),l=et(),T=ac(),m=uc(),v=hi().set,y=Tc(),E=Ac(),g=ro(),h=Ii(),I=hc(),A=jt(),b=Wt(),P=Ct(),w="Promise",L=b.CONSTRUCTOR,x=b.REJECTION_EVENT,k=b.SUBCLASSING,V=I.getterFor(w),G=I.set,F=A&&A.prototype,M=A,z=F,N=r.TypeError,B=r.document,Gt=r.process,$e=P.f,Nn=$e,_n=!!(B&&B.createEvent&&r.dispatchEvent),Vr="unhandledrejection",On="rejectionhandled",Yr=0,$r=1,Pn=2,He=1,Hr=2,pe,Jr,wn,zr,Kr=function(d){var S;return l(d)&&u(S=d.then)?S:!1},Xr=function(d,S){var _=S.value,O=S.state===$r,j=O?d.ok:d.fail,ue=d.resolve,fe=d.reject,St=d.domain,gt,ei,oi;try{j?(O||(S.rejection===Hr&&kn(S),S.rejection=He),j===!0?gt=_:(St&&St.enter(),gt=j(_),St&&(St.exit(),oi=!0)),gt===d.promise?fe(new N("Promise-chain cycle")):(ei=Kr(gt))?i(ei,gt,ue,fe):ue(gt)):fe(_)}catch(Rn){St&&!oi&&St.exit(),fe(Rn)}},Qr=function(d,S){d.notified||(d.notified=!0,y(function(){for(var _=d.reactions,O;O=_.get();)Xr(O,d);d.notified=!1,S&&!d.rejection&&Ln(d)}))},Zr=function(d,S,_){var O,j;_n?(O=B.createEvent("Event"),O.promise=S,O.reason=_,O.initEvent(d,!1,!0),r.dispatchEvent(O)):O={promise:S,reason:_},!x&&(j=r["on"+d])?j(O):d===Vr&&E("Unhandled promise rejection",_)},Ln=function(d){i(v,r,function(){var S=d.facade,_=d.value,O=ti(d),j;if(O&&(j=g(function(){e?Gt.emit("unhandledRejection",_,S):Zr(Vr,S,_)}),d.rejection=e||ti(d)?Hr:He,j.error))throw j.value})},ti=function(d){return d.rejection!==He&&!d.parent},kn=function(d){i(v,r,function(){var S=d.facade;e?Gt.emit("rejectionHandled",S):Zr(On,S,d.value)})},Tt=function(d,S,_){return function(O){d(S,O,_)}},At=function(d,S,_){d.done||(d.done=!0,_&&(d=_),d.value=S,d.state=Pn,Qr(d,!0))},Je=function(d,S,_){if(!d.done){d.done=!0,_&&(d=_);try{if(d.facade===S)throw new N("Promise can't be resolved itself");var O=Kr(S);O?y(function(){var j={done:!1};try{i(O,S,Tt(Je,j,d),Tt(At,j,d))}catch(ue){At(j,ue,d)}}):(d.value=S,d.state=$r,Qr(d,!1))}catch(j){At({done:!1},j,d)}}};if(L&&(M=function(d){T(this,z),f(d),i(pe,this);var S=V(this);try{d(Tt(Je,S),Tt(At,S))}catch(_){At(S,_)}},z=M.prototype,pe=function(d){G(this,{type:w,done:!1,notified:!1,parent:!1,reactions:new h,rejection:!1,state:Yr,value:null})},pe.prototype=n(z,"then",function(d,S){var _=V(this),O=$e(m(this,M));return _.parent=!0,O.ok=u(d)?d:!0,O.fail=u(S)&&S,O.domain=e?Gt.domain:void 0,_.state===Yr?_.reactions.add(O):y(function(){Xr(O,_)}),O.promise}),Jr=function(){var d=new pe,S=V(d);this.promise=d,this.resolve=Tt(Je,S),this.reject=Tt(At,S)},P.f=$e=function(d){return d===M||d===wn?new Jr(d):Nn(d)},!o&&u(A)&&F!==Object.prototype)){zr=F.then,k||n(F,"then",function(d,S){var _=this;return new M(function(O,j){i(zr,_,O,j)}).then(d,S)},{unsafe:!0});try{delete F.constructor}catch (e13){}c&&c(F,z)}t({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:M}),s(M,w,!1,!0),a(w)}),Ci=p((t,o)=>{"use strict";o.exports={}}),Cc=p((t,o)=>{"use strict";var e=Q(),r=Ci(),i=e("iterator"),n=Array.prototype;o.exports=function(c){return c!==void 0&&(r.Array===c||n[i]===c)}}),bc=p((t,o)=>{"use strict";var e=Math.ceil,r=Math.floor;o.exports=Math.trunc||function(i){var n=+i;return(n>0?r:e)(n)}}),Dc=p((t,o)=>{"use strict";var e=bc();o.exports=function(r){var i=+r;return i!==i||i===0?0:e(i)}}),xc=p((t,o)=>{"use strict";var e=Dc(),r=Math.min;o.exports=function(i){var n=e(i);return n>0?r(n,9007199254740991):0}}),Nc=p((t,o)=>{"use strict";var e=xc();o.exports=function(r){return e(r.length)}}),bi=p((t,o)=>{"use strict";var e=oo(),r=Qe(),i=de(),n=Ci(),c=Q(),s=c("iterator");o.exports=function(a){if(!i(a))return r(a,s)||r(a,"@@iterator")||n[e(a)]}}),_c=p((t,o)=>{"use strict";var e=X(),r=it(),i=It(),n=ye(),c=bi(),s=TypeError;o.exports=function(a,f){var u=arguments.length<2?c(a):f;if(r(u))return i(e(u,a));throw new s(n(a)+" is not iterable")}}),Oc=p((t,o)=>{"use strict";var e=X(),r=It(),i=Qe();o.exports=function(n,c,s){var a,f;r(n);try{if(a=i(n,"return"),!a){if(c==="throw")throw s;return s}a=e(a,n)}catch(u){f=!0,a=u}if(c==="throw")throw s;if(f)throw a;return r(a),s}}),Di=p((t,o)=>{"use strict";var e=Te(),r=X(),i=It(),n=ye(),c=Cc(),s=Nc(),a=Xe(),f=_c(),u=bi(),l=Oc(),T=TypeError,m=function(y,E){this.stopped=y,this.result=E},v=m.prototype;o.exports=function(y,E,g){var h=g&&g.that,I=!!(g&&g.AS_ENTRIES),A=!!(g&&g.IS_RECORD),b=!!(g&&g.IS_ITERATOR),P=!!(g&&g.INTERRUPTED),w=e(E,h),L,x,k,V,G,F,M,z=function(B){return L&&l(L,"normal",B),new m(!0,B)},N=function(B){return I?(i(B),P?w(B[0],B[1],z):w(B[0],B[1])):P?w(B,z):w(B)};if(A)L=y.iterator;else if(b)L=y;else{if(x=u(y),!x)throw new T(n(y)+" is not iterable");if(c(x)){for(k=0,V=s(y);V>k;k++)if(G=N(y[k]),G&&a(v,G))return G;return new m(!1)}L=f(y,x)}for(F=A?y.next:L.next;!(M=r(F,L)).done;){try{G=N(M.value)}catch(B){l(L,"throw",B)}if(typeof G=="object"&&G&&a(v,G))return G}return new m(!1)}}),Pc=p((t,o)=>{"use strict";var e=Q(),r=e("iterator"),i=!1;try{n=0,c={next:function(){return{done:!!n++}},return:function(){i=!0}},c[r]=function(){return this},Array.from(c,function(){throw 2})}catch (e14){}var n,c;o.exports=function(s,a){try{if(!a&&!i)return!1}catch (e15){return!1}var f=!1;try{var u={};u[r]=function(){return{next:function(){return{done:f=!0}}}},s(u)}catch (e16){}return f}}),xi=p((t,o)=>{"use strict";var e=jt(),r=Pc(),i=Wt().CONSTRUCTOR;o.exports=i||!r(function(n){e.all(n).then(void 0,function(){})})}),wc=p(()=>{"use strict";var t=ut(),o=X(),e=it(),r=Ct(),i=ro(),n=Di(),c=xi();t({target:"Promise",stat:!0,forced:c},{all:function(s){var a=this,f=r.f(a),u=f.resolve,l=f.reject,T=i(function(){var m=e(a.resolve),v=[],y=0,E=1;n(s,function(g){var h=y++,I=!1;E++,o(m,a,g).then(function(A){I||(I=!0,v[h]=A,--E||u(v))},l)}),--E||u(v)});return T.error&&l(T.value),f.promise}})}),Lc=p(()=>{"use strict";var t=ut(),o=Bt(),e=Wt().CONSTRUCTOR,r=jt(),i=Et(),n=q(),c=Si(),s=r&&r.prototype;t({target:"Promise",proto:!0,forced:e,real:!0},{catch:function(f){return this.then(void 0,f)}}),!o&&n(r)&&(a=i("Promise").prototype.catch,s.catch!==a&&c(s,"catch",a,{unsafe:!0}));var a}),kc=p(()=>{"use strict";var t=ut(),o=X(),e=it(),r=Ct(),i=ro(),n=Di(),c=xi();t({target:"Promise",stat:!0,forced:c},{race:function(s){var a=this,f=r.f(a),u=f.reject,l=i(function(){var T=e(a.resolve);n(s,function(m){o(T,a,m).then(f.resolve,u)})});return l.error&&u(l.value),f.promise}})}),Rc=p(()=>{"use strict";var t=ut(),o=Ct(),e=Wt().CONSTRUCTOR;t({target:"Promise",stat:!0,forced:e},{reject:function(r){var i=o.f(this),n=i.reject;return n(r),i.promise}})}),Gc=p((t,o)=>{"use strict";var e=It(),r=et(),i=Ct();o.exports=function(n,c){if(e(n),r(c)&&c.constructor===n)return c;var s=i.f(n),a=s.resolve;return a(c),s.promise}}),Fc=p(()=>{"use strict";var t=ut(),o=Et(),e=Bt(),r=jt(),i=Wt().CONSTRUCTOR,n=Gc(),c=o("Promise"),s=e&&!i;t({target:"Promise",stat:!0,forced:e||i},{resolve:function(a){return n(s&&this===c?r:this,a)}})}),Bc=p(()=>{"use strict";Ic(),wc(),Lc(),kc(),Rc(),Fc()}),Ni=p(()=>{"use strict";var t=ut(),o=Ct();t({target:"Promise",stat:!0},{withResolvers:function(){var e=o.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})}),jc=p((t,o)=>{"use strict";Bc(),Ni();var e=X(),r=q(),i=Ke(),n=i.Promise,c=n.withResolvers;o.exports=function(){return e(c,r(this)?this:n)}}),Wc=p((t,o)=>{"use strict";var e=jc();o.exports=e}),Mc=p(()=>{"use strict";Ni()}),Uc=p((t,o)=>{"use strict";var e=Wc();Mc(),o.exports=e}),qc=p((t,o)=>{"use strict";var e=Uc();o.exports=e}),Vc=p((t,o)=>{"use strict";o.exports=qc()}),Yc=qn(Vc());function io(){return(0,Yc.default)()}var Mt="WEB_CHAT/CLEAR_SUGGESTED_ACTIONS";function _i(){return{type:Mt}}var H="DIRECT_LINE/CONNECT",Se=`${H}_FULFILLED`,Oi=`${H}_FULFILLING`,ge=`${H}_PENDING`,Ee=`${H}_REJECTED`,he=`${H}_STILL_PENDING`;function Pi({directLine:t,userID:o,username:e}){return{type:H,payload:{directLine:t,userID:o,username:e}}}var ft="DIRECT_LINE/DISCONNECT",Ie=`${ft}_PENDING`,gu=`${ft}_REJECTED`,Ce=`${ft}_FULFILLED`;function wi(){return{type:ft}}var no="WEB_CHAT/DISMISS_NOTIFICATION";function $c(t){return{payload:{id:t},type:no}}var Hc=$c;var co="WEB_CHAT/EMIT_TYPING_INDICATOR";function be(){return{type:co}}var Ut="WEB_CHAT/MARK_ACTIVITY";function Jc({id:t},o,e){return{type:Ut,payload:{activityID:t,name:o,value:e}}}var qt=Jc;var ot="DIRECT_LINE/POST_ACTIVITY",De=`${ot}_FULFILLED`,xe=`${ot}_IMPEDED`,Y=`${ot}_PENDING`,Vt=`${ot}_REJECTED`;function zc(t,o="keyboard"){return{type:ot,meta:{method:o},payload:{activity:t}}}var $=zc;var ao="WEB_CHAT/SEND_EVENT";function Li(t,o){return{type:ao,payload:{name:t,value:o}}}var so="WEB_CHAT/SEND_FILES";function ki(t){return{type:so,payload:{files:t}}}var po="WEB_CHAT/SEND_MESSAGE";function Ne(t,o,{attachments:e,channelData:r}={}){return{type:po,payload:{attachments:e,channelData:r,method:o,text:t}}}var uo="WEB_CHAT/SEND_MESSAGE_BACK";function Ri(t,o,e){return{type:uo,payload:{displayText:e,text:o,value:t}}}var fo="WEB_CHAT/SEND_POST_BACK";function Gi(t){return{type:fo,payload:{value:t}}}var lo="WEB_CHAT/SET_DICTATE_INTERIMS";function Fi(t){return{type:lo,payload:{dictateInterims:t}}}var Yt="WEB_CHAT/SET_DICTATE_STATE";function _e(t){return{type:Yt,payload:{dictateState:t}}}var mo="WEB_CHAT/SET_LANGUAGE";function Bi(t){return{type:mo,payload:{language:t}}}var _mathrandom = require('math-random'); var _mathrandom2 = _interopRequireDefault(_mathrandom);function lt(){return _mathrandom2.default.call(void 0, ).toString(36).substring(2)}var yo="WEB_CHAT/SET_NOTIFICATION";function bt({alt:t,data:o,id:e,level:r,message:i}){return(!e||typeof e!="string")&&(console.warn('botframework-webchat: The "id" argument passed to "setNotification" must be a string; defaulting to a random value.'),e=lt()),(!r||typeof r!="string")&&(console.warn('botframework-webchat: The "level" argument passed to "setNotification" must be a string; defaulting to "info".'),r="info"),{type:yo,payload:{alt:t,data:o,id:e,level:r,message:i}}}var nt="WEB_CHAT/SET_SEND_BOX";function Oe(t){return{type:nt,payload:{text:t}}}var vo="WEB_CHAT/SET_SEND_BOX_ATTACHMENTS";function Pe(t){return{type:vo,payload:{attachments:t}}}var To="WEB_CHAT/SET_SEND_TIMEOUT";function ji(t){return{type:To,payload:{sendTimeout:t}}}var $t="WEB_CHAT/SET_SEND_TYPING_INDICATOR";function Wi(t){return{payload:{sendTypingIndicator:!!t},type:$t}}var Ao="WEB_CHAT/START_DICTATE";function we(){return{type:Ao}}var So="WEB_CHAT/START_SPEAKING";function Le(){return{type:So}}var go="WEB_CHAT/STOP_DICTATE";function Dt(){return{type:go}}var Ht="WEB_CHAT/STOP_SPEAKING";function ke(){return{type:Ht}}var Eo="WEB_CHAT/SUBMIT_SEND_BOX";function Mi(t="keyboard",{channelData:o}={channelData:void 0}){return{type:Eo,payload:{channelData:o,method:t}}}var ho={};ri(ho,{SENDING:()=>Qc,SEND_FAILED:()=>Xc,SENT:()=>Zc});var Xc="send failed",Qc="sending",Zc="sent";var Co={};ri(Co,{DICTATING:()=>Io,IDLE:()=>Jt,STARTING:()=>Re,STOPPING:()=>Ge,WILL_START:()=>ct});var Jt=0,ct=1,Re=2,Io=3,Ge=4;var _redux = require('redux');var _extension = require('@redux-devtools/extension');var _reduxsaga = require('redux-saga'); var _reduxsaga2 = _interopRequireDefault(_reduxsaga);var xt="DIRECT_LINE/RECONNECT",Fe=`${xt}_FULFILLED`,Ui=`${xt}_FULFILLING`,Nt=`${xt}_PENDING`,qi=`${xt}_REJECTED`;var zt="WEB_CHAT/SAGA_ERROR";function bo(){return{type:zt}}var ta="uninitialized";function Do(t=ta,{type:o,meta:e}){if(t!=="sagaerror")switch(o){case ge:case Nt:t!=="uninitialized"&&(t="reconnecting");break;case Se:t="connected";break;case Fe:t="reconnected";break;case Ee:t="error";break;case he:t="connectingslow";break;case Ce:t=e&&e.error?"error":"notconnected";break;case zt:t="sagaerror";break;default:break}return t}var _simpleupdatein = require('simple-update-in'); var _simpleupdatein2 = _interopRequireDefault(_simpleupdatein);var Vi="DIRECT_LINE/DELETE_ACTIVITY";var J="DIRECT_LINE/INCOMING_ACTIVITY";function ea(t){return{type:J,payload:{activity:t}}}var Yi=ea;var Be="sending",Kt="send failed",Xt="sent";var _valibot = require('valibot');var aa=_valibot.number.call(void 0, [_valibot.integer.call(void 0, ),_valibot.minValue.call(void 0, 1)]),sa=_valibot.union.call(void 0, [_valibot.object.call(void 0, {channelData:_valibot.object.call(void 0, {streamId:_valibot.optional.call(void 0, _valibot.string.call(void 0, )),streamSequence:aa,streamType:_valibot.union.call(void 0, [_valibot.literal.call(void 0, "informative"),_valibot.literal.call(void 0, "streaming")])}),id:_valibot.string.call(void 0, ),text:_valibot.string.call(void 0, ),type:_valibot.literal.call(void 0, "typing")}),_valibot.object.call(void 0, {channelData:_valibot.object.call(void 0, {streamId:_valibot.string.call(void 0, ),streamType:_valibot.literal.call(void 0, "final")}),id:_valibot.string.call(void 0, ),text:_valibot.string.call(void 0, ),type:_valibot.literal.call(void 0, "message")})]);function mt(t){let o=_valibot.safeParse.call(void 0, sa,t);if(o.success){let{output:e}=o,r=e.channelData.streamId||e.id;return Object.freeze(e.channelData.streamType==="final"?{sequenceNumber:1/0,sessionId:r,type:"final activity"}:{sequenceNumber:e.channelData.streamSequence,sessionId:r,type:e.channelData.streamType==="informative"?"informative message":"interim activity"})}}function xo(t,o){let e,r="unknown";for(let i=0;i<t.length;i++){let n=t[+i],c=o(n);if((r==="before"||r==="unknown")&&c==="after"||r==="before"&&(c==="after"||c==="unknown"))return[e,n,i];e=n,r=c}return r==="before"?[e,void 0,t.length]:[void 0,void 0,void 0]}var pa=[],ua="https://docs.botframework.com/static/devportal/client/images/bot-framework-default-placeholder.png";function _o(t){var o;return(o=t.channelData)==null?void 0:o.clientActivityID}function No(t){return o=>_o(o)===t}function Ji(t,o,{Date:e}){var i;t=_simpleupdatein2.default.call(void 0, t,["attachments",()=>!0,"contentUrl"],n=>{if(n!==ua&&!/^blob:/iu.test(n))return n}),t=_simpleupdatein2.default.call(void 0, t,["channelData"],n=>({...n})),t=_simpleupdatein2.default.call(void 0, t,["channelData","webChat","receivedAt"],()=>e.now());let{channelData:{"webchat:sequence-id":r}}=t;if(typeof r!="number"){let n,c,s=mt(t);s&&([c,n]=xo(o,f=>{let u=mt(f);return(u==null?void 0:u.sessionId)===s.sessionId?u.sequenceNumber<s.sequenceNumber?"before":"after":"unknown"}));let a;c?n?a=(c.channelData["webchat:sequence-id"]+n.channelData["webchat:sequence-id"])/2:a=c.channelData["webchat:sequence-id"]+.001:n?a=n.channelData["webchat:sequence-id"]-.001:typeof t.timestamp!="undefined"?a=+new e(t.timestamp):a=(((i=o[o.length-1])==null?void 0:i.channelData["webchat:sequence-id"])||0)+.001,t=_simpleupdatein2.default.call(void 0, t,["channelData","webchat:sequence-id"],()=>a)}return t}function Hi(t,o,e){let r=mt(o);if(r){let{sessionId:a}=r;if(t.find(u=>{let l=mt(u);return(l==null?void 0:l.sessionId)===a&&l.type==="final activity"}))return t}o=Ji(o,t,e);let{channelData:{clientActivityID:i,"webchat:sequence-id":n}={}}=o,c=t.filter(({channelData:{clientActivityID:a}={},id:f})=>!(i&&a===i)&&!(f&&f===o.id)),s=c.findIndex(({channelData:{"webchat:sequence-id":a}={}})=>(a||0)>(n||0));return c.splice(~s?s:c.length,0,o),c}function Oo(t){return function(e=pa,r){switch(r.type){case Vi:e=_simpleupdatein2.default.call(void 0, e,[({id:i})=>i===r.payload.activityID]);break;case Ut:{let{payload:i}=r;e=_simpleupdatein2.default.call(void 0, e,[({id:n})=>n===i.activityID,"channelData",i.name],()=>i.value)}break;case Y:{let{payload:{activity:i}}=r;i=_simpleupdatein2.default.call(void 0, i,["channelData","state"],()=>Be),i=_simpleupdatein2.default.call(void 0, i,["channelData","webchat:send-status"],()=>Be),e=Hi(e,i,t)}break;case xe:e=_simpleupdatein2.default.call(void 0, e,[No(r.meta.clientActivityID),"channelData","state"],()=>Kt);break;case Vt:e=_simpleupdatein2.default.call(void 0, e,[No(r.meta.clientActivityID)],i=>(i=_simpleupdatein2.default.call(void 0, i,["channelData","state"],()=>Kt),_simpleupdatein2.default.call(void 0, i,["channelData","webchat:send-status"],()=>Kt)));break;case De:{let i=_simpleupdatein2.default.call(void 0, _simpleupdatein2.default.call(void 0, Ji(r.payload.activity,e,t),["channelData","state"],()=>Xt),["channelData","webchat:send-status"],()=>Xt);e=_simpleupdatein2.default.call(void 0, e,[No(r.meta.clientActivityID)],()=>i)}break;case J:{let{payload:{activity:i}}=r;if(i.from.role==="user"){let{id:n}=i,c=_o(i),s=e.find(a=>c&&_o(a)===c||n&&a.id===n);if(s){let{channelData:{"webchat:send-status":a}}=s;(a===Be||a===Kt||a===Xt)&&(i=_simpleupdatein2.default.call(void 0, i,["channelData","webchat:send-status"],()=>a))}else i=_simpleupdatein2.default.call(void 0, i,["channelData","webchat:send-status"],()=>Xt)}e=Hi(e,i,t)}break;default:break}return e}}function Po(t){return()=>({ponyfill:t})}var zi;function fa(){return zi||(zi=Object.freeze(Array.from(new Set([...Object.getOwnPropertyNames(Object.prototype),"prototype"]))))}function Ot(t){return fa().includes(t)}var la={};function Lo({Date:t}){return function(e=la,r){let{type:i}=r,n=t.now();if(i===no)e=_simpleupdatein2.default.call(void 0, e,[r.payload.id]);else if(i===zt)e=_simpleupdatein2.default.call(void 0, e,["connectivitystatus","message"],()=>"javascripterror");else if(i===yo){let{alt:c,data:s,id:a,level:f,message:u}=r.payload;if(!Ot(a)){let l=e[a];(!l||c!==l.alt||!Object.is(s,l.data)||f!==l.level||u!==l.message)&&(e=_simpleupdatein2.default.call(void 0, e,[a],()=>({alt:c,data:s,id:a,level:f,message:u,timestamp:n})))}}return e}}var ma={};function ko({Date:t}){return function(e=ma,{payload:r,type:i}){if(i===J||i===Y){let{activity:{from:{id:n,name:c,role:s},type:a}}=r;if(a==="typing"){let f=t.now();e=_simpleupdatein2.default.call(void 0, e,[n,"at"],u=>u||f),e=_simpleupdatein2.default.call(void 0, e,[n,"last"],()=>f),e=_simpleupdatein2.default.call(void 0, e,[n,"name"],()=>c),e=_simpleupdatein2.default.call(void 0, e,[n,"role"],()=>s)}else a==="message"&&(e=_simpleupdatein2.default.call(void 0, e,[n]))}return e}}var da=[];function Ro(t=da,{payload:o,type:e}){switch(e){case lo:t=o.dictateInterims;break;default:break}return t}var ya=0;function Go(t=ya,{payload:o,type:e}){switch(e){case Yt:t=o.dictateState;break;case Ao:(t===0||t===4||t===1)&&(t=2);break;case go:t===2||t===3?t=4:t===1&&(t=0);break;default:break}return t}var va="en-US";function Fo(t=va,{payload:o,type:e}){switch(e){case mo:t=o.language;break;default:break}return t}var Bo="DIRECT_LINE/CONNECTION_STATUS_UPDATE";function jo(t){return{type:Bo,payload:{connectionStatus:t}}}var Ta=0;function Wo(t=Ta,{payload:o,type:e}){switch(e){case Bo:t=o.connectionStatus;break;default:break}return t}var Mo="WEB_CHAT/SET_REFERENCE_GRAMMAR_ID";function Uo(t){return{type:Mo,payload:{referenceGrammarID:t}}}var Aa=null;function qo(t=Aa,{payload:o,type:e}){switch(e){case Mo:t=o.referenceGrammarID||null;break;default:break}return t}var Sa=Object.freeze([]);function Vo(t=Sa,{payload:o,type:e}){switch(e){case vo:t=o.attachments;break;default:break}return t}var ga="";function Yo(t=ga,{payload:o,type:e}){switch(e){case nt:t=o.text;break;default:break}return t}var Ea=2e4;function $o(t=Ea,{payload:o,type:e}){switch(e){case To:t=o.sendTimeout;break;default:break}return t}var ha=!1;function Ho(t=ha,{payload:o,type:e}){switch(e){case $t:t=o.sendTypingIndicator;break;default:break}return t}function Jo(t=!1,{type:o}){switch(o){case So:t=!0;break;case Ht:t=!1;break;default:break}return t}var Ia=Object.freeze([]),te="WEB_CHAT/SET_SUGGESTED_ACTIONS";function Pt(t=Ia,o=void 0){return{type:te,payload:{originActivity:o,suggestedActions:t}}}var zo=Object.freeze([]);function Ko(t=zo,{payload:o={},type:e}){switch(e){case te:(o.suggestedActions||[]).length?t=[].slice.call(o.suggestedActions):t=zo;break;case Mt:t=zo;break;default:break}return t}var Ki=Object.freeze({activity:void 0});function Xo(t=Ki,o){switch(o.type){case te:t={activity:o.payload.originActivity};break;case Mt:t=Ki;break;default:break}return t}function Qo(t){return _redux.combineReducers.call(void 0, {activities:Oo(t),connectivityStatus:Do,dictateInterims:Ro,dictateState:Go,internal:Po(t),language:Fo,notifications:Lo(t),readyState:Wo,referenceGrammarID:qo,sendBoxAttachments:Vo,sendBoxValue:Yo,sendTimeout:$o,sendTypingIndicator:Ho,shouldSpeakIncomingActivity:Jo,suggestedActions:Ko,suggestedActionsOriginActivity:Xo,typing:ko(t)})}var _effects = require('redux-saga/effects');function C(t,...o){return _effects.call.call(void 0, function*(){for(;;){let{meta:{userID:r,username:i},payload:{directLine:n}}=yield _effects.take.call(void 0, [Oi,Ui]),c=yield _effects.fork.call(void 0, t,{directLine:n,userID:r,username:i},...o);yield _effects.take.call(void 0, [Ie,Nt]),yield _effects.cancel.call(void 0, c)}})}function*Oa(){yield _effects.put.call(void 0, Pt())}function*Pa(){yield _effects.takeEvery.call(void 0, ({payload:t,type:o})=>o===Y&&t.activity.type==="message",Oa)}function*Zo(){yield C(Pa)}function dt(){let t,o=[];return{push:i=>{if(t){let{resolve:n}=t;t=null,n(i)}else o.push(i)},shift:()=>o.length?Promise.resolve(o.shift()):(t||(t=io())).promise}}var er="connectivitystatus";function ka(t){let{push:o,shift:e}=dt(),r=t.subscribe({next:o});return{shift:e,unsubscribe(){r.unsubscribe()}}}function*Ra({payload:{directLine:t}}){let{shift:o,unsubscribe:e}=ka(t.connectionStatus$);try{let r;for(;;)switch(yield _effects.call.call(void 0, o)){case 0:case 1:yield _effects.put.call(void 0, bt({id:er,level:"info",message:r?"reconnecting":"connecting"}));break;case 2:r=1,yield _effects.put.call(void 0, bt({id:er,level:"success",message:"connected"}));break;case 3:case 4:r=1,yield _effects.put.call(void 0, bt({id:er,level:"error",message:"failedtoconnect"}));break;default:break}}finally{e()}}function*Qi(){yield _effects.takeLatest.call(void 0, H,Ra)}function ee(t,o){return _effects.call.call(void 0, function*(){let r=dt(),i=t.subscribe({next:r.push});try{for(;;){let n=yield _effects.call.call(void 0, r.shift);yield _effects.call.call(void 0, o,n)}}finally{i.unsubscribe()}})}function*Ga({directLine:t}){yield ee(t.connectionStatus$,function*(e){yield _effects.put.call(void 0, jo(e)),yield _effects.put.call(void 0, Uo(t.referenceGrammarId))})}function*rr(){yield C(Ga)}var _jwtdecode = require('jwt-decode');function wt(...t){return _effects.fork.call(void 0, function*(){for(let e of t)yield _effects.put.call(void 0, e)})}var oe="DIRECT_LINE/UPDATE_CONNECTION_STATUS";function ir(t){return{type:oe,payload:{connectionStatus:t}}}var ar=1,sr=2,Va=0;function nr(){return`r_${lt().substring(0,10)}`}function*Ya(t){let o=dt(),e=t.connectionStatus$.subscribe({next:o.push});try{for(;;){let r=yield _effects.call.call(void 0, o.shift);yield _effects.put.call(void 0, ir(r))}}finally{e.unsubscribe()}}function $a(t,o){let{token:e}=t,r;try{r=(_jwtdecode.jwtDecode.call(void 0, e)||{}).user}catch (e17){}let i={fromAction:o,fromToken:r};return r?(o&&o!==r&&console.warn("Web Chat: user ID is both specified in the Direct Line token and passed in, will use the user ID from the token."),i.final=r):o?typeof o!="string"?(console.warn("Web Chat: user ID must be a string."),i.final=nr()):/^dl_/u.test(o)?(console.warn('Web Chat: user ID prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'),i.final=nr()):i.final=o:i.final=nr(),i}function*Ha(t){let o=t.activity$.subscribe({next:()=>0}),e=o.unsubscribe.bind(o);try{for(;;){let{payload:{connectionStatus:r}}=yield _effects.take.call(void 0, oe);if(r===sr)return()=>{e(),t.end()};if(r!==Va&&r!==ar)throw new Error(`Failed to connect, DirectLineJS returned ${r}.`)}}catch(r){throw e(),r}finally{(yield _effects.cancelled.call(void 0, ))&&e()}}function*Ja(){for(;;){let{payload:{connectionStatus:t}}=yield _effects.take.call(void 0, oe);if(t===sr)break;if(t!==ar)throw new Error(`Failed to reconnect. DirectLineJS returned ${t}.`)}}function*za({type:t,meta:o,payload:e},r){try{yield wt({type:`${t}_PENDING`,meta:o,payload:e});let i=yield r();return yield wt({type:`${t}_FULFILLING`,meta:o,payload:e},{type:`${t}_FULFILLED`,meta:o,payload:e}),i}catch(i){throw yield wt({type:`${t}_REJECTED`,error:!0,meta:o,payload:i}),i}}function*Ka(){throw yield _effects.take.call(void 0, ft),new Error("disconnected")}function tn(t,o){return za(t,function*(){let{result:r}=yield _effects.race.call(void 0, {_:Ka(),result:o()});return r})}function*on(){for(;;){let{payload:{directLine:t,userID:o,username:e}}=yield _effects.take.call(void 0, H),r=yield _effects.fork.call(void 0, Ya,t),i=$a(t,o),n={userID:i.final,username:e};t.setUserId&&i.fromToken!==n.userID&&t.setUserId(n.userID);let c;try{let s=yield tn({type:H,meta:n,payload:{directLine:t}},()=>_effects.call.call(void 0, Ha,t));try{for(;;){let{updateConnectionStatusAction:{payload:{connectionStatus:a}={}}={}}=yield _effects.race.call(void 0, {_:_effects.take.call(void 0, ft),updateConnectionStatusAction:_effects.take.call(void 0, oe)});if(a===ar)yield tn({type:xt,meta:n,payload:{directLine:t}},()=>_effects.call.call(void 0, Ja));else if(a!==sr){if(typeof a!="undefined")throw new Error(`Connection status changed to ${a}`);break}}}finally{s()}}catch(s){c={error:s}}finally{yield _effects.cancel.call(void 0, r),yield wt({type:Ie,meta:c,payload:{directLine:t}},{type:Ce,meta:c,payload:{directLine:t}})}}}function Z(t,o){return new Promise(e=>o.setTimeout(e,Math.max(t,0)))}var ts=15e3;function*ur(t){for(;;)yield _effects.take.call(void 0, [ge,Nt]),"slow"in(yield _effects.race.call(void 0, {fulfilled:_effects.take.call(void 0, [Se,Fe]),rejected:_effects.take.call(void 0, [Ee,qi]),slow:_effects.call.call(void 0, Z,ts,t)}))&&(yield _effects.put.call(void 0, {type:he}))}function*rs(){yield _effects.put.call(void 0, $({type:"typing"}))}function*is(){yield _effects.takeEvery.call(void 0, ({type:t})=>t===co,rs)}function*fr(){yield C(is)}var rn=({activities:t})=>t,re=t=>o=>rn(o).filter(t);var nn=t=>re(({type:o})=>o===t),lr=rn;function ie(t){var o;return(o=t.channelData)==null?void 0:o.speak}function*ss(){let t=yield _effects.select.call(void 0, re(ie));for(let o of t)yield _effects.put.call(void 0, qt(o,"speak",!1))}function*mr(){yield _effects.takeEvery.call(void 0, Ht,ss)}var dr="DIRECT_LINE/QUEUE_INCOMING_ACTIVITY";function yr(t){return{type:dr,payload:{activity:t}}}var us=t=>t;function fs(t,o){return t.from?t.from.role||(t.from.id===o?t=_simpleupdatein2.default.call(void 0, t,["from","role"],()=>"user"):t.from.id?t=_simpleupdatein2.default.call(void 0, t,["from","role"],()=>"bot"):t=_simpleupdatein2.default.call(void 0, t,["from","role"],()=>"channel")):t=_simpleupdatein2.default.call(void 0, t,["from","role"],()=>"channel"),t}function ls(t){return["attachmentLayout","attachments","channelData","conversation","entities","from","inputHint","locale","name","recipient","speak","suggestedActions","text","textFormat","timestamp","type"].reduce((o,e)=>{let{[e]:r}=o;return _simpleupdatein2.default.call(void 0, o,[e],typeof r=="undefined"||r===null?void 0:us)},t)}function ms(t){return _simpleupdatein2.default.call(void 0, t,["from","name"],o=>{let{channelId:e,from:r={}}=t;return(e==="directline"||e==="webchat")&&r.id===r.name&&r.role==="bot"?"Bot":o})}function*ds({directLine:t,userID:o}){yield ee(t.activity$,function*(r){r=ls(r),r=fs(r,o),r=ms(r),yield _effects.put.call(void 0, yr(r))})}function*vr(){yield C(ds)}function at(t,o=2){if(typeof t!="number")throw new Error("First argument must be a number");let e=t+"";for(;e.length<o;)e="0"+e;return e}function Tr(t){if(!(t.getTimezoneOffset&&t.getFullYear&&t.getMonth&&t.getDate&&t.getHours&&t.getMinutes&&t.getSeconds&&t.getMilliseconds))throw new Error("First argument must be a Date-like object.");let e=-t.getTimezoneOffset(),r=e<0?"-":"+",i=~~Math.abs(e);return`${t.getFullYear()}-${at(t.getMonth()+1)}-${at(t.getDate())}T${at(t.getHours())}:${at(t.getMinutes())}:${at(t.getSeconds())}.${at(t.getMilliseconds(),3)}${e?`${r}${at(~~(i/60))}:${at(i%60)}`:"Z"}`}function We(t,...o){if(!t)return t;let e={...t};for(let r of o)(typeof r!="string"||!Ot(r))&&delete e[r];return e}var cn=({language:t})=>t;function Ar(t){return _effects.call.call(void 0, function*(){let e;try{return yield _effects.call.call(void 0, ()=>new Promise((r,i)=>{e=t.subscribe({complete:r,error:i,next:r})}))}finally{e&&e.unsubscribe()}})}var sn=({sendTimeout:t})=>t;var gs=3e5;function*Es(t,o,e,r,{meta:{method:i},payload:{activity:n}},c){let s=n.type==="message"&&n.attachments||[],a=lt(),f=yield _effects.select.call(void 0, cn),u=typeof window.Intl=="undefined"?void 0:new Intl.DateTimeFormat().resolvedOptions().timeZone,l=new c.Date,T={...We(n,"id"),channelData:{...We(n.channelData,"state","webchat:send-status"),clientActivityID:a},channelId:"webchat",from:{id:o,name:e,role:"user"},locale:f,localTimestamp:Tr(l),localTimezone:u,...n.type==="message"?{attachments:s&&s.map(({contentType:y,contentUrl:E,name:g,thumbnailUrl:h})=>({contentType:y,contentUrl:E,name:g,thumbnailUrl:h})),text:n.text}:n.type==="event"?{name:n.name,value:n.value}:{}};r||(T.entities=[...T.entities||[],{requiresBotState:!0,supportsListening:!0,supportsTts:!0,type:"ClientCapabilities"}]);let m={clientActivityID:a,method:i};yield _effects.put.call(void 0, {type:Y,meta:m,payload:{activity:T}});let v;try{let y=_effects.call.call(void 0, function*(){var h;for(;;){let{payload:{activity:I}}=yield _effects.take.call(void 0, J);if(((h=I.channelData)==null?void 0:h.clientActivityID)===a&&I.id)return v=!0,I}}),E=yield _effects.select.call(void 0, sn),{send:{echoBack:g}}=yield _effects.race.call(void 0, {send:_effects.all.call(void 0, {echoBack:y,postActivity:Ar(t.postActivity(T))}),timeout:_effects.call.call(void 0, function*(){throw yield _effects.call.call(void 0, Z,E,c),yield _effects.put.call(void 0, {type:xe,meta:m,payload:{activity:T}}),yield _effects.call.call(void 0, Z,gs-E,c),v?new Error("timed out while waiting for postActivity to return any values"):new Error("timed out while waiting for outgoing message to echo back")})});yield _effects.put.call(void 0, {type:De,meta:m,payload:{activity:g}})}catch(y){console.error("botframework-webchat: Failed to post activity to chat adapter.",y),yield _effects.put.call(void 0, {type:Vt,error:!0,meta:m,payload:y})}finally{(yield _effects.cancelled.call(void 0, ))&&(yield _effects.put.call(void 0, {type:Vt,error:!0,meta:m,payload:new Error("cancelled")}))}}function*Sr(t){yield C(function*({directLine:e,userID:r,username:i}){let n=0;yield _effects.takeEvery.call(void 0, ot,function*(s){yield*Es(e,r,i,n++,s,t)})})}var un=t=>t&&t.from.role==="bot";var Ds=5e3;function*xs(t,o,e){for(;!(yield _effects.cancelled.call(void 0, ));){let r=yield _effects.take.call(void 0, t),i=yield _effects.select.call(void 0, o);yield _effects.fork.call(void 0, e,r,i)}}function*Ns(t,o){let e=o;for(;!e.find(n=>n.id===t||n.replyToId===t);){let{payload:{activity:i}}=yield _effects.take.call(void 0, J);if(i.id===t)break;e=yield _effects.select.call(void 0, lr)}}function*_s({userID:t},o){yield xs(dr,lr,function*({payload:{activity:r}},i){let{replyToId:n}=r,c=i.filter(({from:{role:f}})=>f==="bot");n&&c.length&&"timeout"in(yield _effects.race.call(void 0, {_:Ns(n,i),timeout:_effects.call.call(void 0, Z,Ds,o)}))&&console.warn(`botframework-webchat: Timed out while waiting for activity "${n}" which activity "${r.id}" is replying to.`,{activity:r,replyToId:n}),yield _effects.put.call(void 0, Yi(r));let s=yield _effects.select.call(void 0, nn("message")),a=s[s.length-1];if(un(a)){let{suggestedActions:{actions:f,to:u}={actions:void 0,to:void 0}}=a,l=u!=null&&u.length&&!u.includes(t)?null:f;l?yield _effects.put.call(void 0, Pt(l,a)):yield _effects.put.call(void 0, Pt())}})}function*hr(t){yield C(_s,t)}function*ws({payload:{name:t,value:o}}){yield _effects.put.call(void 0, $({name:t,type:"event",value:o}))}function*Ls(){yield _effects.takeEvery.call(void 0, ({payload:t,type:o})=>o===ao&&t.name,ws)}function*Ir(){yield C(Ls)}var _mime = require('mime'); var _mime2 = _interopRequireDefault(_mime);var Gs=_mime2.default.getType.bind(_mime2.default);function*Fs({payload:{files:t}}){yield _effects.put.call(void 0, $({attachments:[].map.call(t,({name:o,thumbnail:e,url:r})=>({contentType:Gs(o)||"application/octet-stream",contentUrl:r,name:o,thumbnailUrl:e})),channelData:{attachmentSizes:[].map.call(t,({size:o})=>o)},type:"message"}))}function*Bs(){yield _effects.takeEvery.call(void 0, ({payload:t,type:o})=>o===so&&t.files.length,Fs)}function*Cr(){yield C(Bs)}function*Ms({payload:{displayText:t,text:o,value:e}}){yield _effects.put.call(void 0, $({channelData:{messageBack:{displayText:t}},text:o,type:"message",value:e}))}function*Us(){yield _effects.takeEvery.call(void 0, uo,Ms)}function*br(){yield C(Us)}function*Ys({payload:{attachments:t=[],channelData:o,method:e,text:r}}){yield _effects.put.call(void 0, $({attachments:t.map(({blob:i,thumbnailURL:n})=>({contentType:i instanceof File&&i.type||"application/octet-stream",contentUrl:URL.createObjectURL(i),name:i instanceof File?i.name:void 0,thumbnailUrl:n==null?void 0:n.toString()})),channelData:{...o,attachmentSizes:t.map(({blob:{size:i}})=>i)},text:r||void 0,textFormat:"plain",type:"message"},e))}function*$s(){yield _effects.takeEvery.call(void 0, ({payload:t,type:o})=>{var e;return o===po&&(t.text||((e=t.attachments)==null?void 0:e.length))},Ys)}function*Dr(){yield C($s)}function*zs({payload:{value:t}}){yield _effects.put.call(void 0, $({channelData:{postBack:!0},text:typeof t=="string"?t:void 0,type:"message",value:typeof t!="string"?t:void 0}))}function*Ks(){yield _effects.takeEvery.call(void 0, fo,zs)}function*xr(){yield C(Ks)}var mn=({sendTypingIndicator:t})=>t;var rp=3e3;function Nr(t){return _effects.take.call(void 0, ({payload:o,type:e})=>e===$t&&!o.sendTypingIndicator==!t)}function*ip(t,o){let{Date:e}=o;for((yield _effects.select.call(void 0, mn))||(yield Nr(!0));;){let i=-1/0,n=yield _effects.takeLatest.call(void 0, ({payload:c,type:s})=>s===nt&&c.text||s===ot&&c.activity.type!=="typing",function*({payload:c,type:s}){if(s===nt){let a=rp-e.now()+i;a>0&&(yield _effects.call.call(void 0, Z,a,o)),yield _effects.put.call(void 0, be()),i=e.now()}else c.activity.type==="message"&&(i=-1/0)});yield Nr(!1),yield _effects.cancel.call(void 0, n),yield Nr(!0)}}function*_r(t){yield C(ip,t)}var dn=({shouldSpeakIncomingActivity:t})=>t;function Or(t){return t&&t.from&&t.type==="message"}function*ap({userID:t}){yield _effects.takeEvery.call(void 0, ({payload:o,type:e})=>e===J&&o.activity.from.id!==t&&o.activity.from.role!=="user",function*({payload:{activity:o}}){let e=yield _effects.select.call(void 0, dn),r=Or(o)&&e;r&&(o.speak||o.text||~(o.attachments||[]).findIndex(({content:{speak:i}={}})=>i))&&(yield _effects.put.call(void 0, qt(o,"speak",!0))),r&&o.inputHint==="expectingInput"?yield _effects.put.call(void 0, _e(1)):o.inputHint==="ignoringInput"&&(yield _effects.put.call(void 0, Dt()))})}function*wr(){yield C(ap)}var yn=({dictateState:t})=>t;function*up(){let t=yield _effects.select.call(void 0, re(ie));(yield _effects.select.call(void 0, yn))===1&&!t.length&&(yield _effects.put.call(void 0, we()))}function*Lr(){yield _effects.takeEvery.call(void 0, ({type:t})=>t===Ut||t===Yt,up)}function*mp(){yield _effects.takeEvery.call(void 0, ({meta:t,payload:o,type:e})=>e===Y&&t.method==="speech"&&o.activity.type==="message",function*(){yield _effects.put.call(void 0, Le())})}function*kr(){yield C(mp)}function*vp(){yield _effects.takeEvery.call(void 0, ({payload:t,type:o})=>o===Y&&t.activity.type==="message",function*(){yield _effects.put.call(void 0, Dt())})}function*Rr(){yield C(vp)}function*Sp(){yield _effects.takeEvery.call(void 0, ({meta:t,payload:o,type:e})=>e===nt&&o.text||e===Y&&t.method!=="speech"&&o.activity.type==="message",function*(){yield _effects.put.call(void 0, ke())})}function*Gr(){yield C(Sp)}function Fr({sendBoxAttachments:t}){return t}var Tn=({sendBoxValue:t})=>t;function*Ep(){yield _effects.takeEvery.call(void 0, Eo,function*({payload:{channelData:t,method:o}}){let e=yield _effects.select.call(void 0, Fr),r=yield _effects.select.call(void 0, Tn);(e.length||r)&&(yield _effects.put.call(void 0, Ne(r.trim(),o,{attachments:e,channelData:t})),yield _effects.put.call(void 0, Oe("")),yield _effects.put.call(void 0, Pe(Object.freeze([]))))})}function*jr(){yield C(Ep)}function Wr({ponyfill:t}){return function*(){yield _effects.fork.call(void 0, Zo),yield _effects.fork.call(void 0, Qi),yield _effects.fork.call(void 0, rr),yield _effects.fork.call(void 0, on),yield _effects.fork.call(void 0, ur,t),yield _effects.fork.call(void 0, fr),yield _effects.fork.call(void 0, mr),yield _effects.fork.call(void 0, vr),yield _effects.fork.call(void 0, Sr,t),yield _effects.fork.call(void 0, hr,t),yield _effects.fork.call(void 0, Ir),yield _effects.fork.call(void 0, Cr),yield _effects.fork.call(void 0, br),yield _effects.fork.call(void 0, Dr),yield _effects.fork.call(void 0, xr),yield _effects.fork.call(void 0, _r,t),yield _effects.fork.call(void 0, wr),yield _effects.fork.call(void 0, Lr),yield _effects.fork.call(void 0, kr),yield _effects.fork.call(void 0, Rr),yield _effects.fork.call(void 0, Gr),yield _effects.fork.call(void 0, jr)}}function Dp(t,...o){let e=_reduxsaga2.default.call(void 0, {onError:(...r)=>{let[i]=r;console.error(i);let n=t();n&&n.dispatch(bo())}});return{enhancer:_redux.applyMiddleware.call(void 0, ...o,e),sagaMiddleware:e}}function Mr(t,o,...e){let r=typeof globalThis=="undefined"?window:globalThis,i=t.ponyfill||{},n={cancelAnimationFrame:i.cancelAnimationFrame||(typeof cancelAnimationFrame=="function"?cancelAnimationFrame.bind(r):void 0),cancelIdleCallback:i.cancelIdleCallback||(typeof cancelIdleCallback=="function"?cancelIdleCallback.bind(r):void 0),clearImmediate:i.clearImmediate||(typeof clearImmediate=="function"?clearImmediate.bind(r):void 0),clearInterval:i.clearInterval||(typeof clearInterval=="function"?clearInterval.bind(r):void 0),clearTimeout:i.clearTimeout||(typeof clearTimeout=="function"?clearTimeout.bind(r):void 0),Date:i.Date||Date,requestAnimationFrame:i.requestAnimationFrame||(typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(r):void 0),requestIdleCallback:i.requestIdleCallback||(typeof requestIdleCallback=="function"?requestIdleCallback.bind(r):void 0),setImmediate:i.setImmediate||(typeof setImmediate=="function"?setImmediate.bind(r):void 0),setInterval:i.setInterval||(typeof setInterval=="function"?setInterval.bind(r):void 0),setTimeout:i.setTimeout||(typeof setTimeout=="function"?setTimeout.bind(r):void 0)},{enhancer:c,sagaMiddleware:s}=Dp(()=>a,...e),a=_redux.createStore.call(void 0, Qo(n),o||{},t.devTools?_extension.composeWithDevTools.call(void 0, c):c);return s.run(Wr({ponyfill:n})),a}function Sn(t,...o){return Mr({},t,...o)}function xp(t,...o){return Mr({devTools:!0},t,...o)}var Lp=t=>_valibot.fallback.call(void 0, _valibot.optional.call(void 0, _valibot.union.call(void 0, [_valibot.transform.call(void 0, _valibot.array.call(void 0, t),o=>o[0]),t])),void 0),D=Lp;var Bp=t=>_valibot.fallback.call(void 0, _valibot.transform.call(void 0, _valibot.array.call(void 0, t),o=>o.filter(e=>typeof e!="undefined")),o=>o!=null&&o.input?[_valibot.parse.call(void 0, t,o==null?void 0:o.input)]:void 0);function Rt(t){return Bp(D(t))}var Vp={"@context":_valibot.optional.call(void 0, _valibot.string.call(void 0, [_valibot.value.call(void 0, "https://schema.org")])),"@id":_valibot.optional.call(void 0, _valibot.string.call(void 0, )),"@type":_valibot.string.call(void 0, ),additionalType:D(_valibot.string.call(void 0, )),alternateName:D(_valibot.string.call(void 0, )),description:D(_valibot.string.call(void 0, )),name:D(_valibot.string.call(void 0, )),potentialAction:Rt(_valibot.lazy.call(void 0, ()=>ce())),url:D(_valibot.string.call(void 0, ))},rt=t=>_valibot.object.call(void 0, {...Vp,...t},_valibot.unknown.call(void 0, )),Ur= exports.parseThing =t=>_valibot.parse.call(void 0, rt(),t);var ae=t=>rt({slogan:D(_valibot.string.call(void 0, )),...t}),Hp= exports.parseProject =t=>_valibot.parse.call(void 0, ae(),t);var ce=t=>rt({actionStatus:D(_valibot.union.call(void 0, [_valibot.string.call(void 0, [_valibot.value.call(void 0, "ActiveActionStatus")]),_valibot.string.call(void 0, [_valibot.value.call(void 0, "CompletedActionStatus")]),_valibot.string.call(void 0, [_valibot.value.call(void 0, "FailedActionStatus")]),_valibot.string.call(void 0, [_valibot.value.call(void 0, "PotentialActionStatus")])])),provider:D(_valibot.lazy.call(void 0, ()=>ae())),...t}),Xp= exports.parseAction =t=>_valibot.parse.call(void 0, ce(),t);var Ve=t=>rt({inDefinedTermSet:D(_valibot.string.call(void 0, )),termCode:D(_valibot.string.call(void 0, )),...t}),Zp= exports.parseDefinedTerm =t=>_valibot.parse.call(void 0, Ve(),t);var ou=t=>_valibot.object.call(void 0, {description:D(_valibot.string.call(void 0, )),image:D(_valibot.string.call(void 0, )),name:D(_valibot.string.call(void 0, )),...t}),vt=t=>rt({abstract:D(_valibot.string.call(void 0, )),author:D(_valibot.union.call(void 0, [ou(),_valibot.string.call(void 0, )])),citation:Rt(_valibot.lazy.call(void 0, ()=>vt())),isBasedOn:D(_valibot.lazy.call(void 0, ()=>vt())),keywords:Rt(_valibot.union.call(void 0, [_valibot.lazy.call(void 0, ()=>Ve()),_valibot.string.call(void 0, )])),pattern:D(_valibot.lazy.call(void 0, ()=>Ve())),text:D(_valibot.string.call(void 0, )),usageInfo:D(_valibot.lazy.call(void 0, ()=>vt())),...t}),Ye= exports.parseCreativeWork =t=>_valibot.parse.call(void 0, vt(),t);var au=t=>vt({appearance:D(_valibot.lazy.call(void 0, ()=>vt())),claimInterpreter:D(_valibot.lazy.call(void 0, ()=>ae())),position:D(_valibot.union.call(void 0, [_valibot.number.call(void 0, ),_valibot.string.call(void 0, )])),...t}),su= exports.parseClaim =t=>_valibot.parse.call(void 0, au(),t);var fu=t=>ce({actionOption:D(_valibot.string.call(void 0, )),...t}),lu= exports.parseVoteAction =t=>_valibot.parse.call(void 0, fu(),t);function Cn(t){let o=(t||[]).find(r=>{var n;if((n=r.type)==null?void 0:n.startsWith("https://schema.org/"))return Ur(r)["@id"]===""}),e=o&&Ye(o);return e&&Ye(e)}function bn(t,o){try{return t()}catch (e18){return o}}function Dn(t){return t?Array.isArray(t)?t:[t]:[]}function qr(t){let o;return()=>{o||(t(),o=1)}}function xn(t){return qr(()=>console.warn(`botframework-webchat: ${t}.`))}var ZT={ActivityClientState:ho,DictateState:Co},mu="tsup",du= exports.moduleFormat ="esmodules",yu= exports.version ="4.18.1-main.20241114.7f9f47e",tA= exports.buildInfo ={buildTool:mu,moduleFormat:du,version:yu};exports.Constants = ZT; exports.buildInfo = tA; exports.clearSuggestedActions = _i; exports.connect = Pi; exports.createStore = Sn; exports.createStoreWithDevTools = xp; exports.createStoreWithOptions = Mr; exports.disconnect = wi; exports.dismissNotification = Hc; exports.emitTypingIndicator = be; exports.getActivityLivestreamingMetadata = mt; exports.getOrgSchemaMessage = Cn; exports.isForbiddenPropertyName = Ot; exports.markActivity = qt; exports.moduleFormat = du; exports.onErrorResumeNext = bn; exports.parseAction = Xp; exports.parseClaim = su; exports.parseCreativeWork = Ye; exports.parseDefinedTerm = Zp; exports.parseProject = Hp; exports.parseThing = Ur; exports.parseVoteAction = lu; exports.postActivity = $; exports.sendEvent = Li; exports.sendFiles = ki; exports.sendMessage = Ne; exports.sendMessageBack = Ri; exports.sendPostBack = Gi; exports.setDictateInterims = Fi; exports.setDictateState = _e; exports.setLanguage = Bi; exports.setNotification = bt; exports.setSendBox = Oe; exports.setSendBoxAttachments = Pe; exports.setSendTimeout = ji; exports.setSendTypingIndicator = Wi; exports.singleToArray = Dn; exports.startDictate = we; exports.startSpeakingActivity = Le; exports.stopDictate = Dt; exports.stopSpeakingActivity = ke; exports.submitSendBox = Mi; exports.version = yu; exports.warnOnce = xn; exports.withResolvers = io; | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var Gn=Object.defineProperty;var ri=(t,o)=>{for(var e in o)Gn(t,e,{get:o[e],enumerable:!0})};var Fn=Object.create,ii=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,jn=Object.getOwnPropertyNames,Wn=Object.getPrototypeOf,Mn=Object.prototype.hasOwnProperty,p=(t,o)=>()=>(o||t((o={exports:{}}).exports,o),o.exports),Un=(t,o,e,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of jn(o))!Mn.call(t,i)&&i!==e&&ii(t,i,{get:()=>o[i],enumerable:!(r=Bn(o,i))||r.enumerable});return t},qn=(t,o,e)=>(e=t!=null?Fn(Wn(t)):{},Un(o||!t||!t.__esModule?ii(e,"default",{value:t,enumerable:!0}):e,t)),W=p((t,o)=>{"use strict";var e=function(r){return r&&r.Math===Math&&r};o.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof global=="object"&&global)||e(typeof t=="object"&&t)||function(){return this}()||Function("return this")()}),tt=p((t,o)=>{"use strict";o.exports=function(e){try{return!!e()}catch (e2){return!0}}}),le=p((t,o)=>{"use strict";var e=tt();o.exports=!e(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})}),ni=p((t,o)=>{"use strict";var e=le(),r=Function.prototype,i=r.apply,n=r.call;o.exports=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(i):function(){return n.apply(i,arguments)})}),K=p((t,o)=>{"use strict";var e=le(),r=Function.prototype,i=r.call,n=e&&r.bind.bind(i,i);o.exports=e?n:function(c){return function(){return i.apply(c,arguments)}}}),me=p((t,o)=>{"use strict";var e=K(),r=e({}.toString),i=e("".slice);o.exports=function(n){return i(r(n),8,-1)}}),ci=p((t,o)=>{"use strict";var e=me(),r=K();o.exports=function(i){if(e(i)==="Function")return r(i)}}),q=p((t,o)=>{"use strict";var e=typeof document=="object"&&document.all;o.exports=typeof e>"u"&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"}}),pt=p((t,o)=>{"use strict";var e=tt();o.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),X=p((t,o)=>{"use strict";var e=le(),r=Function.prototype.call;o.exports=e?r.bind(r):function(){return r.apply(r,arguments)}}),Vn=p(t=>{"use strict";var o={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!o.call({1:2},1);t.f=r?function(i){var n=e(this,i);return!!n&&n.enumerable}:o}),ai=p((t,o)=>{"use strict";o.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}}),Yn=p((t,o)=>{"use strict";var e=K(),r=tt(),i=me(),n=Object,c=e("".split);o.exports=r(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return i(s)==="String"?c(s,""):n(s)}:n}),de=p((t,o)=>{"use strict";o.exports=function(e){return e==null}}),ze=p((t,o)=>{"use strict";var e=de(),r=TypeError;o.exports=function(i){if(e(i))throw new r("Can't call method on "+i);return i}}),$n=p((t,o)=>{"use strict";var e=Yn(),r=ze();o.exports=function(i){return e(r(i))}}),et=p((t,o)=>{"use strict";var e=q();o.exports=function(r){return typeof r=="object"?r!==null:e(r)}}),Ke=p((t,o)=>{"use strict";o.exports={}}),Et=p((t,o)=>{"use strict";var e=Ke(),r=W(),i=q(),n=function(c){return i(c)?c:void 0};o.exports=function(c,s){return arguments.length<2?n(e[c])||n(r[c]):e[c]&&e[c][s]||r[c]&&r[c][s]}}),Xe=p((t,o)=>{"use strict";var e=K();o.exports=e({}.isPrototypeOf)}),Ft=p((t,o)=>{"use strict";var e=W(),r=e.navigator,i=r&&r.userAgent;o.exports=i?String(i):""}),si=p((t,o)=>{"use strict";var e=W(),r=Ft(),i=e.process,n=e.Deno,c=i&&i.versions||n&&n.version,s=c&&c.v8,a,f;s&&(a=s.split("."),f=a[0]>0&&a[0]<4?1:+(a[0]+a[1])),!f&&r&&(a=r.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=r.match(/Chrome\/(\d+)/),a&&(f=+a[1]))),o.exports=f}),pi=p((t,o)=>{"use strict";var e=si(),r=tt(),i=W(),n=i.String;o.exports=!!Object.getOwnPropertySymbols&&!r(function(){var c=Symbol("symbol detection");return!n(c)||!(Object(c)instanceof Symbol)||!Symbol.sham&&e&&e<41})}),ui=p((t,o)=>{"use strict";var e=pi();o.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),fi=p((t,o)=>{"use strict";var e=Et(),r=q(),i=Xe(),n=ui(),c=Object;o.exports=n?function(s){return typeof s=="symbol"}:function(s){var a=e("Symbol");return r(a)&&i(a.prototype,c(s))}}),ye=p((t,o)=>{"use strict";var e=String;o.exports=function(r){try{return e(r)}catch (e3){return"Object"}}}),it=p((t,o)=>{"use strict";var e=q(),r=ye(),i=TypeError;o.exports=function(n){if(e(n))return n;throw new i(r(n)+" is not a function")}}),Qe=p((t,o)=>{"use strict";var e=it(),r=de();o.exports=function(i,n){var c=i[n];return r(c)?void 0:e(c)}}),Hn=p((t,o)=>{"use strict";var e=X(),r=q(),i=et(),n=TypeError;o.exports=function(c,s){var a,f;if(s==="string"&&r(a=c.toString)&&!i(f=e(a,c))||r(a=c.valueOf)&&!i(f=e(a,c))||s!=="string"&&r(a=c.toString)&&!i(f=e(a,c)))return f;throw new n("Can't convert object to primitive value")}}),Bt=p((t,o)=>{"use strict";o.exports=!0}),Jn=p((t,o)=>{"use strict";var e=W(),r=Object.defineProperty;o.exports=function(i,n){try{r(e,i,{value:n,configurable:!0,writable:!0})}catch (e4){e[i]=n}return n}}),ve=p((t,o)=>{"use strict";var e=Bt(),r=W(),i=Jn(),n="__core-js_shared__",c=o.exports=r[n]||i(n,{});(c.versions||(c.versions=[])).push({version:"3.38.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),li=p((t,o)=>{"use strict";var e=ve();o.exports=function(r,i){return e[r]||(e[r]=i||{})}}),zn=p((t,o)=>{"use strict";var e=ze(),r=Object;o.exports=function(i){return r(e(i))}}),ht=p((t,o)=>{"use strict";var e=K(),r=zn(),i=e({}.hasOwnProperty);o.exports=Object.hasOwn||function(n,c){return i(r(n),c)}}),mi=p((t,o)=>{"use strict";var e=K(),r=0,i=Math.random(),n=e(1 .toString);o.exports=function(c){return"Symbol("+(c===void 0?"":c)+")_"+n(++r+i,36)}}),Q=p((t,o)=>{"use strict";var e=W(),r=li(),i=ht(),n=mi(),c=pi(),s=ui(),a=e.Symbol,f=r("wks"),u=s?a.for||a:a&&a.withoutSetter||n;o.exports=function(l){return i(f,l)||(f[l]=c&&i(a,l)?a[l]:u("Symbol."+l)),f[l]}}),Kn=p((t,o)=>{"use strict";var e=X(),r=et(),i=fi(),n=Qe(),c=Hn(),s=Q(),a=TypeError,f=s("toPrimitive");o.exports=function(u,l){if(!r(u)||i(u))return u;var T=n(u,f),m;if(T){if(l===void 0&&(l="default"),m=e(T,u,l),!r(m)||i(m))return m;throw new a("Can't convert object to primitive value")}return l===void 0&&(l="number"),c(u,l)}}),di=p((t,o)=>{"use strict";var e=Kn(),r=fi();o.exports=function(i){var n=e(i,"string");return r(n)?n:n+""}}),yi=p((t,o)=>{"use strict";var e=W(),r=et(),i=e.document,n=r(i)&&r(i.createElement);o.exports=function(c){return n?i.createElement(c):{}}}),vi=p((t,o)=>{"use strict";var e=pt(),r=tt(),i=yi();o.exports=!e&&!r(function(){return Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a!==7})}),Xn=p(t=>{"use strict";var o=pt(),e=X(),r=Vn(),i=ai(),n=$n(),c=di(),s=ht(),a=vi(),f=Object.getOwnPropertyDescriptor;t.f=o?f:function(u,l){if(u=n(u),l=c(l),a)try{return f(u,l)}catch (e5){}if(s(u,l))return i(!e(r.f,u,l),u[l])}}),Ti=p((t,o)=>{"use strict";var e=tt(),r=q(),i=/#|\.prototype\./,n=function(u,l){var T=s[c(u)];return T===f?!0:T===a?!1:r(l)?e(l):!!l},c=n.normalize=function(u){return String(u).replace(i,".").toLowerCase()},s=n.data={},a=n.NATIVE="N",f=n.POLYFILL="P";o.exports=n}),Te=p((t,o)=>{"use strict";var e=ci(),r=it(),i=le(),n=e(e.bind);o.exports=function(c,s){return r(c),s===void 0?c:i?n(c,s):function(){return c.apply(s,arguments)}}}),Qn=p((t,o)=>{"use strict";var e=pt(),r=tt();o.exports=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}),It=p((t,o)=>{"use strict";var e=et(),r=String,i=TypeError;o.exports=function(n){if(e(n))return n;throw new i(r(n)+" is not an object")}}),Ze=p(t=>{"use strict";var o=pt(),e=vi(),r=Qn(),i=It(),n=di(),c=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,f="enumerable",u="configurable",l="writable";t.f=o?r?function(T,m,v){if(i(T),m=n(m),i(v),typeof T=="function"&&m==="prototype"&&"value"in v&&l in v&&!v[l]){var y=a(T,m);y&&y[l]&&(T[m]=v.value,v={configurable:u in v?v[u]:y[u],enumerable:f in v?v[f]:y[f],writable:!1})}return s(T,m,v)}:s:function(T,m,v){if(i(T),m=n(m),i(v),e)try{return s(T,m,v)}catch (e6){}if("get"in v||"set"in v)throw new c("Accessors not supported");return"value"in v&&(T[m]=v.value),T}}),Ae=p((t,o)=>{"use strict";var e=pt(),r=Ze(),i=ai();o.exports=e?function(n,c,s){return r.f(n,c,i(1,s))}:function(n,c,s){return n[c]=s,n}}),ut=p((t,o)=>{"use strict";var e=W(),r=ni(),i=ci(),n=q(),c=Xn().f,s=Ti(),a=Ke(),f=Te(),u=Ae(),l=ht();ve();var T=function(m){var v=function(y,E,g){if(this instanceof v){switch(arguments.length){case 0:return new m;case 1:return new m(y);case 2:return new m(y,E)}return new m(y,E,g)}return r(m,this,arguments)};return v.prototype=m.prototype,v};o.exports=function(m,v){var y=m.target,E=m.global,g=m.stat,h=m.proto,I=E?e:g?e[y]:e[y]&&e[y].prototype,A=E?a:a[y]||u(a,y,{})[y],b=A.prototype,P,w,L,x,k,V,G,F,M;for(x in v)P=s(E?x:y+(g?".":"#")+x,m.forced),w=!P&&I&&l(I,x),V=A[x],w&&(m.dontCallGetSet?(M=c(I,x),G=M&&M.value):G=I[x]),k=w&&G?G:v[x],!(!P&&!h&&typeof V==typeof k)&&(m.bind&&w?F=f(k,e):m.wrap&&w?F=T(k):h&&n(k)?F=i(k):F=k,(m.sham||k&&k.sham||V&&V.sham)&&u(F,"sham",!0),u(A,x,F),h&&(L=y+"Prototype",l(a,L)||u(a,L,{}),u(a[L],x,k),m.real&&b&&(P||!b[x])&&u(b,x,k)))}}),Ai=p((t,o)=>{"use strict";var e=W(),r=Ft(),i=me(),n=function(c){return r.slice(0,c.length)===c};o.exports=function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":i(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"}()}),to=p((t,o)=>{"use strict";var e=Ai();o.exports=e==="NODE"}),Si=p((t,o)=>{"use strict";var e=Ae();o.exports=function(r,i,n,c){return c&&c.enumerable?r[i]=n:e(r,i,n),r}}),Zn=p((t,o)=>{"use strict";var e=K(),r=it();o.exports=function(i,n,c){try{return e(r(Object.getOwnPropertyDescriptor(i,n)[c]))}catch (e7){}}}),tc=p((t,o)=>{"use strict";var e=et();o.exports=function(r){return e(r)||r===null}}),ec=p((t,o)=>{"use strict";var e=tc(),r=String,i=TypeError;o.exports=function(n){if(e(n))return n;throw new i("Can't set "+r(n)+" as a prototype")}}),oc=p((t,o)=>{"use strict";var e=Zn(),r=et(),i=ze(),n=ec();o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,s={},a;try{a=e(Object.prototype,"__proto__","set"),a(s,[]),c=s instanceof Array}catch (e8){}return function(f,u){return i(f),n(u),r(f)&&(c?a(f,u):f.__proto__=u),f}}():void 0)}),eo=p((t,o)=>{"use strict";var e=Q(),r=e("toStringTag"),i={};i[r]="z",o.exports=String(i)==="[object z]"}),oo=p((t,o)=>{"use strict";var e=eo(),r=q(),i=me(),n=Q(),c=n("toStringTag"),s=Object,a=i(function(){return arguments}())==="Arguments",f=function(u,l){try{return u[l]}catch (e9){}};o.exports=e?i:function(u){var l,T,m;return u===void 0?"Undefined":u===null?"Null":typeof(T=f(l=s(u),c))=="string"?T:a?i(l):(m=i(l))==="Object"&&r(l.callee)?"Arguments":m}}),rc=p((t,o)=>{"use strict";var e=eo(),r=oo();o.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}}),ic=p((t,o)=>{"use strict";var e=eo(),r=Ze().f,i=Ae(),n=ht(),c=rc(),s=Q(),a=s("toStringTag");o.exports=function(f,u,l,T){var m=l?f:f&&f.prototype;m&&(n(m,a)||r(m,a,{configurable:!0,value:u}),T&&!e&&i(m,"toString",c))}}),nc=p((t,o)=>{"use strict";var e=Ze();o.exports=function(r,i,n){return e.f(r,i,n)}}),cc=p((t,o)=>{"use strict";var e=Et(),r=nc(),i=Q(),n=pt(),c=i("species");o.exports=function(s){var a=e(s);n&&a&&!a[c]&&r(a,c,{configurable:!0,get:function(){return this}})}}),ac=p((t,o)=>{"use strict";var e=Xe(),r=TypeError;o.exports=function(i,n){if(e(n,i))return i;throw new r("Incorrect invocation")}}),gi=p((t,o)=>{"use strict";var e=K(),r=q(),i=ve(),n=e(Function.toString);r(i.inspectSource)||(i.inspectSource=function(c){return n(c)}),o.exports=i.inspectSource}),sc=p((t,o)=>{"use strict";var e=K(),r=tt(),i=q(),n=oo(),c=Et(),s=gi(),a=function(){},f=c("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=e(u.exec),T=!u.test(a),m=function(y){if(!i(y))return!1;try{return f(a,[],y),!0}catch (e10){return!1}},v=function(y){if(!i(y))return!1;switch(n(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return T||!!l(u,s(y))}catch (e11){return!0}};v.sham=!0,o.exports=!f||r(function(){var y;return m(m.call)||!m(Object)||!m(function(){y=!0})||y})?v:m}),pc=p((t,o)=>{"use strict";var e=sc(),r=ye(),i=TypeError;o.exports=function(n){if(e(n))return n;throw new i(r(n)+" is not a constructor")}}),uc=p((t,o)=>{"use strict";var e=It(),r=pc(),i=de(),n=Q(),c=n("species");o.exports=function(s,a){var f=e(s).constructor,u;return f===void 0||i(u=e(f)[c])?a:r(u)}}),fc=p((t,o)=>{"use strict";var e=Et();o.exports=e("document","documentElement")}),lc=p((t,o)=>{"use strict";var e=K();o.exports=e([].slice)}),mc=p((t,o)=>{"use strict";var e=TypeError;o.exports=function(r,i){if(r<i)throw new e("Not enough arguments");return r}}),Ei=p((t,o)=>{"use strict";var e=Ft();o.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)}),hi=p((t,o)=>{"use strict";var e=W(),r=ni(),i=Te(),n=q(),c=ht(),s=tt(),a=fc(),f=lc(),u=yi(),l=mc(),T=Ei(),m=to(),v=e.setImmediate,y=e.clearImmediate,E=e.process,g=e.Dispatch,h=e.Function,I=e.MessageChannel,A=e.String,b=0,P={},w="onreadystatechange",L,x,k,V;s(function(){L=e.location});var G=function(N){if(c(P,N)){var B=P[N];delete P[N],B()}},F=function(N){return function(){G(N)}},M=function(N){G(N.data)},z=function(N){e.postMessage(A(N),L.protocol+"//"+L.host)};(!v||!y)&&(v=function(N){l(arguments.length,1);var B=n(N)?N:h(N),Gt=f(arguments,1);return P[++b]=function(){r(B,void 0,Gt)},x(b),b},y=function(N){delete P[N]},m?x=function(N){E.nextTick(F(N))}:g&&g.now?x=function(N){g.now(F(N))}:I&&!T?(k=new I,V=k.port2,k.port1.onmessage=M,x=i(V.postMessage,V)):e.addEventListener&&n(e.postMessage)&&!e.importScripts&&L&&L.protocol!=="file:"&&!s(z)?(x=z,e.addEventListener("message",M,!1)):w in u("script")?x=function(N){a.appendChild(u("script"))[w]=function(){a.removeChild(this),G(N)}}:x=function(N){setTimeout(F(N),0)}),o.exports={set:v,clear:y}}),dc=p((t,o)=>{"use strict";var e=W(),r=pt(),i=Object.getOwnPropertyDescriptor;o.exports=function(n){if(!r)return e[n];var c=i(e,n);return c&&c.value}}),Ii=p((t,o)=>{"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(r){var i={item:r,next:null},n=this.tail;n?n.next=i:this.head=i,this.tail=i},get:function(){var r=this.head;if(r){var i=this.head=r.next;return i===null&&(this.tail=null),r.item}}},o.exports=e}),yc=p((t,o)=>{"use strict";var e=Ft();o.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u"}),vc=p((t,o)=>{"use strict";var e=Ft();o.exports=/web0s(?!.*chrome)/i.test(e)}),Tc=p((t,o)=>{"use strict";var e=W(),r=dc(),i=Te(),n=hi().set,c=Ii(),s=Ei(),a=yc(),f=vc(),u=to(),l=e.MutationObserver||e.WebKitMutationObserver,T=e.document,m=e.process,v=e.Promise,y=r("queueMicrotask"),E,g,h,I,A;y||(b=new c,P=function(){var w,L;for(u&&(w=m.domain)&&w.exit();L=b.get();)try{L()}catch(x){throw b.head&&E(),x}w&&w.enter()},!s&&!u&&!f&&l&&T?(g=!0,h=T.createTextNode(""),new l(P).observe(h,{characterData:!0}),E=function(){h.data=g=!g}):!a&&v&&v.resolve?(I=v.resolve(void 0),I.constructor=v,A=i(I.then,I),E=function(){A(P)}):u?E=function(){m.nextTick(P)}:(n=i(n,e),E=function(){n(P)}),y=function(w){b.head||E(),b.add(w)});var b,P;o.exports=y}),Ac=p((t,o)=>{"use strict";o.exports=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch (e12){}}}),ro=p((t,o)=>{"use strict";o.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}}),Sc=p((t,o)=>{"use strict";var e=W(),r=q(),i=e.WeakMap;o.exports=r(i)&&/native code/.test(String(i))}),gc=p((t,o)=>{"use strict";var e=li(),r=mi(),i=e("keys");o.exports=function(n){return i[n]||(i[n]=r(n))}}),Ec=p((t,o)=>{"use strict";o.exports={}}),hc=p((t,o)=>{"use strict";var e=Sc(),r=W(),i=et(),n=Ae(),c=ht(),s=ve(),a=gc(),f=Ec(),u="Object already initialized",l=r.TypeError,T=r.WeakMap,m,v,y,E=function(A){return y(A)?v(A):m(A,{})},g=function(A){return function(b){var P;if(!i(b)||(P=v(b)).type!==A)throw new l("Incompatible receiver, "+A+" required");return P}};e||s.state?(h=s.state||(s.state=new T),h.get=h.get,h.has=h.has,h.set=h.set,m=function(A,b){if(h.has(A))throw new l(u);return b.facade=A,h.set(A,b),b},v=function(A){return h.get(A)||{}},y=function(A){return h.has(A)}):(I=a("state"),f[I]=!0,m=function(A,b){if(c(A,I))throw new l(u);return b.facade=A,n(A,I,b),b},v=function(A){return c(A,I)?A[I]:{}},y=function(A){return c(A,I)});var h,I;o.exports={set:m,get:v,has:y,enforce:E,getterFor:g}}),jt=p((t,o)=>{"use strict";var e=W();o.exports=e.Promise}),Wt=p((t,o)=>{"use strict";var e=W(),r=jt(),i=q(),n=Ti(),c=gi(),s=Q(),a=Ai(),f=Bt(),u=si(),l=r&&r.prototype,T=s("species"),m=!1,v=i(e.PromiseRejectionEvent),y=n("Promise",function(){var E=c(r),g=E!==String(r);if(!g&&u===66||f&&!(l.catch&&l.finally))return!0;if(!u||u<51||!/native code/.test(E)){var h=new r(function(b){b(1)}),I=function(b){b(function(){},function(){})},A=h.constructor={};if(A[T]=I,m=h.then(function(){})instanceof I,!m)return!0}return!g&&(a==="BROWSER"||a==="DENO")&&!v});o.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:m}}),Ct=p((t,o)=>{"use strict";var e=it(),r=TypeError,i=function(n){var c,s;this.promise=new n(function(a,f){if(c!==void 0||s!==void 0)throw new r("Bad Promise constructor");c=a,s=f}),this.resolve=e(c),this.reject=e(s)};o.exports.f=function(n){return new i(n)}}),Ic=p(()=>{"use strict";var t=ut(),o=Bt(),e=to(),r=W(),i=X(),n=Si(),c=oc(),s=ic(),a=cc(),f=it(),u=q(),l=et(),T=ac(),m=uc(),v=hi().set,y=Tc(),E=Ac(),g=ro(),h=Ii(),I=hc(),A=jt(),b=Wt(),P=Ct(),w="Promise",L=b.CONSTRUCTOR,x=b.REJECTION_EVENT,k=b.SUBCLASSING,V=I.getterFor(w),G=I.set,F=A&&A.prototype,M=A,z=F,N=r.TypeError,B=r.document,Gt=r.process,$e=P.f,Nn=$e,_n=!!(B&&B.createEvent&&r.dispatchEvent),Vr="unhandledrejection",On="rejectionhandled",Yr=0,$r=1,Pn=2,He=1,Hr=2,pe,Jr,wn,zr,Kr=function(d){var S;return l(d)&&u(S=d.then)?S:!1},Xr=function(d,S){var _=S.value,O=S.state===$r,j=O?d.ok:d.fail,ue=d.resolve,fe=d.reject,St=d.domain,gt,ei,oi;try{j?(O||(S.rejection===Hr&&kn(S),S.rejection=He),j===!0?gt=_:(St&&St.enter(),gt=j(_),St&&(St.exit(),oi=!0)),gt===d.promise?fe(new N("Promise-chain cycle")):(ei=Kr(gt))?i(ei,gt,ue,fe):ue(gt)):fe(_)}catch(Rn){St&&!oi&&St.exit(),fe(Rn)}},Qr=function(d,S){d.notified||(d.notified=!0,y(function(){for(var _=d.reactions,O;O=_.get();)Xr(O,d);d.notified=!1,S&&!d.rejection&&Ln(d)}))},Zr=function(d,S,_){var O,j;_n?(O=B.createEvent("Event"),O.promise=S,O.reason=_,O.initEvent(d,!1,!0),r.dispatchEvent(O)):O={promise:S,reason:_},!x&&(j=r["on"+d])?j(O):d===Vr&&E("Unhandled promise rejection",_)},Ln=function(d){i(v,r,function(){var S=d.facade,_=d.value,O=ti(d),j;if(O&&(j=g(function(){e?Gt.emit("unhandledRejection",_,S):Zr(Vr,S,_)}),d.rejection=e||ti(d)?Hr:He,j.error))throw j.value})},ti=function(d){return d.rejection!==He&&!d.parent},kn=function(d){i(v,r,function(){var S=d.facade;e?Gt.emit("rejectionHandled",S):Zr(On,S,d.value)})},Tt=function(d,S,_){return function(O){d(S,O,_)}},At=function(d,S,_){d.done||(d.done=!0,_&&(d=_),d.value=S,d.state=Pn,Qr(d,!0))},Je=function(d,S,_){if(!d.done){d.done=!0,_&&(d=_);try{if(d.facade===S)throw new N("Promise can't be resolved itself");var O=Kr(S);O?y(function(){var j={done:!1};try{i(O,S,Tt(Je,j,d),Tt(At,j,d))}catch(ue){At(j,ue,d)}}):(d.value=S,d.state=$r,Qr(d,!1))}catch(j){At({done:!1},j,d)}}};if(L&&(M=function(d){T(this,z),f(d),i(pe,this);var S=V(this);try{d(Tt(Je,S),Tt(At,S))}catch(_){At(S,_)}},z=M.prototype,pe=function(d){G(this,{type:w,done:!1,notified:!1,parent:!1,reactions:new h,rejection:!1,state:Yr,value:null})},pe.prototype=n(z,"then",function(d,S){var _=V(this),O=$e(m(this,M));return _.parent=!0,O.ok=u(d)?d:!0,O.fail=u(S)&&S,O.domain=e?Gt.domain:void 0,_.state===Yr?_.reactions.add(O):y(function(){Xr(O,_)}),O.promise}),Jr=function(){var d=new pe,S=V(d);this.promise=d,this.resolve=Tt(Je,S),this.reject=Tt(At,S)},P.f=$e=function(d){return d===M||d===wn?new Jr(d):Nn(d)},!o&&u(A)&&F!==Object.prototype)){zr=F.then,k||n(F,"then",function(d,S){var _=this;return new M(function(O,j){i(zr,_,O,j)}).then(d,S)},{unsafe:!0});try{delete F.constructor}catch (e13){}c&&c(F,z)}t({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:M}),s(M,w,!1,!0),a(w)}),Ci=p((t,o)=>{"use strict";o.exports={}}),Cc=p((t,o)=>{"use strict";var e=Q(),r=Ci(),i=e("iterator"),n=Array.prototype;o.exports=function(c){return c!==void 0&&(r.Array===c||n[i]===c)}}),bc=p((t,o)=>{"use strict";var e=Math.ceil,r=Math.floor;o.exports=Math.trunc||function(i){var n=+i;return(n>0?r:e)(n)}}),Dc=p((t,o)=>{"use strict";var e=bc();o.exports=function(r){var i=+r;return i!==i||i===0?0:e(i)}}),xc=p((t,o)=>{"use strict";var e=Dc(),r=Math.min;o.exports=function(i){var n=e(i);return n>0?r(n,9007199254740991):0}}),Nc=p((t,o)=>{"use strict";var e=xc();o.exports=function(r){return e(r.length)}}),bi=p((t,o)=>{"use strict";var e=oo(),r=Qe(),i=de(),n=Ci(),c=Q(),s=c("iterator");o.exports=function(a){if(!i(a))return r(a,s)||r(a,"@@iterator")||n[e(a)]}}),_c=p((t,o)=>{"use strict";var e=X(),r=it(),i=It(),n=ye(),c=bi(),s=TypeError;o.exports=function(a,f){var u=arguments.length<2?c(a):f;if(r(u))return i(e(u,a));throw new s(n(a)+" is not iterable")}}),Oc=p((t,o)=>{"use strict";var e=X(),r=It(),i=Qe();o.exports=function(n,c,s){var a,f;r(n);try{if(a=i(n,"return"),!a){if(c==="throw")throw s;return s}a=e(a,n)}catch(u){f=!0,a=u}if(c==="throw")throw s;if(f)throw a;return r(a),s}}),Di=p((t,o)=>{"use strict";var e=Te(),r=X(),i=It(),n=ye(),c=Cc(),s=Nc(),a=Xe(),f=_c(),u=bi(),l=Oc(),T=TypeError,m=function(y,E){this.stopped=y,this.result=E},v=m.prototype;o.exports=function(y,E,g){var h=g&&g.that,I=!!(g&&g.AS_ENTRIES),A=!!(g&&g.IS_RECORD),b=!!(g&&g.IS_ITERATOR),P=!!(g&&g.INTERRUPTED),w=e(E,h),L,x,k,V,G,F,M,z=function(B){return L&&l(L,"normal",B),new m(!0,B)},N=function(B){return I?(i(B),P?w(B[0],B[1],z):w(B[0],B[1])):P?w(B,z):w(B)};if(A)L=y.iterator;else if(b)L=y;else{if(x=u(y),!x)throw new T(n(y)+" is not iterable");if(c(x)){for(k=0,V=s(y);V>k;k++)if(G=N(y[k]),G&&a(v,G))return G;return new m(!1)}L=f(y,x)}for(F=A?y.next:L.next;!(M=r(F,L)).done;){try{G=N(M.value)}catch(B){l(L,"throw",B)}if(typeof G=="object"&&G&&a(v,G))return G}return new m(!1)}}),Pc=p((t,o)=>{"use strict";var e=Q(),r=e("iterator"),i=!1;try{n=0,c={next:function(){return{done:!!n++}},return:function(){i=!0}},c[r]=function(){return this},Array.from(c,function(){throw 2})}catch (e14){}var n,c;o.exports=function(s,a){try{if(!a&&!i)return!1}catch (e15){return!1}var f=!1;try{var u={};u[r]=function(){return{next:function(){return{done:f=!0}}}},s(u)}catch (e16){}return f}}),xi=p((t,o)=>{"use strict";var e=jt(),r=Pc(),i=Wt().CONSTRUCTOR;o.exports=i||!r(function(n){e.all(n).then(void 0,function(){})})}),wc=p(()=>{"use strict";var t=ut(),o=X(),e=it(),r=Ct(),i=ro(),n=Di(),c=xi();t({target:"Promise",stat:!0,forced:c},{all:function(s){var a=this,f=r.f(a),u=f.resolve,l=f.reject,T=i(function(){var m=e(a.resolve),v=[],y=0,E=1;n(s,function(g){var h=y++,I=!1;E++,o(m,a,g).then(function(A){I||(I=!0,v[h]=A,--E||u(v))},l)}),--E||u(v)});return T.error&&l(T.value),f.promise}})}),Lc=p(()=>{"use strict";var t=ut(),o=Bt(),e=Wt().CONSTRUCTOR,r=jt(),i=Et(),n=q(),c=Si(),s=r&&r.prototype;t({target:"Promise",proto:!0,forced:e,real:!0},{catch:function(f){return this.then(void 0,f)}}),!o&&n(r)&&(a=i("Promise").prototype.catch,s.catch!==a&&c(s,"catch",a,{unsafe:!0}));var a}),kc=p(()=>{"use strict";var t=ut(),o=X(),e=it(),r=Ct(),i=ro(),n=Di(),c=xi();t({target:"Promise",stat:!0,forced:c},{race:function(s){var a=this,f=r.f(a),u=f.reject,l=i(function(){var T=e(a.resolve);n(s,function(m){o(T,a,m).then(f.resolve,u)})});return l.error&&u(l.value),f.promise}})}),Rc=p(()=>{"use strict";var t=ut(),o=Ct(),e=Wt().CONSTRUCTOR;t({target:"Promise",stat:!0,forced:e},{reject:function(r){var i=o.f(this),n=i.reject;return n(r),i.promise}})}),Gc=p((t,o)=>{"use strict";var e=It(),r=et(),i=Ct();o.exports=function(n,c){if(e(n),r(c)&&c.constructor===n)return c;var s=i.f(n),a=s.resolve;return a(c),s.promise}}),Fc=p(()=>{"use strict";var t=ut(),o=Et(),e=Bt(),r=jt(),i=Wt().CONSTRUCTOR,n=Gc(),c=o("Promise"),s=e&&!i;t({target:"Promise",stat:!0,forced:e||i},{resolve:function(a){return n(s&&this===c?r:this,a)}})}),Bc=p(()=>{"use strict";Ic(),wc(),Lc(),kc(),Rc(),Fc()}),Ni=p(()=>{"use strict";var t=ut(),o=Ct();t({target:"Promise",stat:!0},{withResolvers:function(){var e=o.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})}),jc=p((t,o)=>{"use strict";Bc(),Ni();var e=X(),r=q(),i=Ke(),n=i.Promise,c=n.withResolvers;o.exports=function(){return e(c,r(this)?this:n)}}),Wc=p((t,o)=>{"use strict";var e=jc();o.exports=e}),Mc=p(()=>{"use strict";Ni()}),Uc=p((t,o)=>{"use strict";var e=Wc();Mc(),o.exports=e}),qc=p((t,o)=>{"use strict";var e=Uc();o.exports=e}),Vc=p((t,o)=>{"use strict";o.exports=qc()}),Yc=qn(Vc());function io(){return(0,Yc.default)()}var Mt="WEB_CHAT/CLEAR_SUGGESTED_ACTIONS";function _i(){return{type:Mt}}var H="DIRECT_LINE/CONNECT",Se=`${H}_FULFILLED`,Oi=`${H}_FULFILLING`,ge=`${H}_PENDING`,Ee=`${H}_REJECTED`,he=`${H}_STILL_PENDING`;function Pi({directLine:t,userID:o,username:e}){return{type:H,payload:{directLine:t,userID:o,username:e}}}var ft="DIRECT_LINE/DISCONNECT",Ie=`${ft}_PENDING`,gu=`${ft}_REJECTED`,Ce=`${ft}_FULFILLED`;function wi(){return{type:ft}}var no="WEB_CHAT/DISMISS_NOTIFICATION";function $c(t){return{payload:{id:t},type:no}}var Hc=$c;var co="WEB_CHAT/EMIT_TYPING_INDICATOR";function be(){return{type:co}}var Ut="WEB_CHAT/MARK_ACTIVITY";function Jc({id:t},o,e){return{type:Ut,payload:{activityID:t,name:o,value:e}}}var qt=Jc;var ot="DIRECT_LINE/POST_ACTIVITY",De=`${ot}_FULFILLED`,xe=`${ot}_IMPEDED`,Y=`${ot}_PENDING`,Vt=`${ot}_REJECTED`;function zc(t,o="keyboard"){return{type:ot,meta:{method:o},payload:{activity:t}}}var $=zc;var ao="WEB_CHAT/SEND_EVENT";function Li(t,o){return{type:ao,payload:{name:t,value:o}}}var so="WEB_CHAT/SEND_FILES";function ki(t){return{type:so,payload:{files:t}}}var po="WEB_CHAT/SEND_MESSAGE";function Ne(t,o,{attachments:e,channelData:r}={}){return{type:po,payload:{attachments:e,channelData:r,method:o,text:t}}}var uo="WEB_CHAT/SEND_MESSAGE_BACK";function Ri(t,o,e){return{type:uo,payload:{displayText:e,text:o,value:t}}}var fo="WEB_CHAT/SEND_POST_BACK";function Gi(t){return{type:fo,payload:{value:t}}}var lo="WEB_CHAT/SET_DICTATE_INTERIMS";function Fi(t){return{type:lo,payload:{dictateInterims:t}}}var Yt="WEB_CHAT/SET_DICTATE_STATE";function _e(t){return{type:Yt,payload:{dictateState:t}}}var mo="WEB_CHAT/SET_LANGUAGE";function Bi(t){return{type:mo,payload:{language:t}}}var _mathrandom = require('math-random'); var _mathrandom2 = _interopRequireDefault(_mathrandom);function lt(){return _mathrandom2.default.call(void 0, ).toString(36).substring(2)}var yo="WEB_CHAT/SET_NOTIFICATION";function bt({alt:t,data:o,id:e,level:r,message:i}){return(!e||typeof e!="string")&&(console.warn('botframework-webchat: The "id" argument passed to "setNotification" must be a string; defaulting to a random value.'),e=lt()),(!r||typeof r!="string")&&(console.warn('botframework-webchat: The "level" argument passed to "setNotification" must be a string; defaulting to "info".'),r="info"),{type:yo,payload:{alt:t,data:o,id:e,level:r,message:i}}}var nt="WEB_CHAT/SET_SEND_BOX";function Oe(t){return{type:nt,payload:{text:t}}}var vo="WEB_CHAT/SET_SEND_BOX_ATTACHMENTS";function Pe(t){return{type:vo,payload:{attachments:t}}}var To="WEB_CHAT/SET_SEND_TIMEOUT";function ji(t){return{type:To,payload:{sendTimeout:t}}}var $t="WEB_CHAT/SET_SEND_TYPING_INDICATOR";function Wi(t){return{payload:{sendTypingIndicator:!!t},type:$t}}var Ao="WEB_CHAT/START_DICTATE";function we(){return{type:Ao}}var So="WEB_CHAT/START_SPEAKING";function Le(){return{type:So}}var go="WEB_CHAT/STOP_DICTATE";function Dt(){return{type:go}}var Ht="WEB_CHAT/STOP_SPEAKING";function ke(){return{type:Ht}}var Eo="WEB_CHAT/SUBMIT_SEND_BOX";function Mi(t="keyboard",{channelData:o}={channelData:void 0}){return{type:Eo,payload:{channelData:o,method:t}}}var ho={};ri(ho,{SENDING:()=>Qc,SEND_FAILED:()=>Xc,SENT:()=>Zc});var Xc="send failed",Qc="sending",Zc="sent";var Co={};ri(Co,{DICTATING:()=>Io,IDLE:()=>Jt,STARTING:()=>Re,STOPPING:()=>Ge,WILL_START:()=>ct});var Jt=0,ct=1,Re=2,Io=3,Ge=4;var _redux = require('redux');var _extension = require('@redux-devtools/extension');var _reduxsaga = require('redux-saga'); var _reduxsaga2 = _interopRequireDefault(_reduxsaga);var xt="DIRECT_LINE/RECONNECT",Fe=`${xt}_FULFILLED`,Ui=`${xt}_FULFILLING`,Nt=`${xt}_PENDING`,qi=`${xt}_REJECTED`;var zt="WEB_CHAT/SAGA_ERROR";function bo(){return{type:zt}}var ta="uninitialized";function Do(t=ta,{type:o,meta:e}){if(t!=="sagaerror")switch(o){case ge:case Nt:t!=="uninitialized"&&(t="reconnecting");break;case Se:t="connected";break;case Fe:t="reconnected";break;case Ee:t="error";break;case he:t="connectingslow";break;case Ce:t=e&&e.error?"error":"notconnected";break;case zt:t="sagaerror";break;default:break}return t}var _simpleupdatein = require('simple-update-in'); var _simpleupdatein2 = _interopRequireDefault(_simpleupdatein);var Vi="DIRECT_LINE/DELETE_ACTIVITY";var J="DIRECT_LINE/INCOMING_ACTIVITY";function ea(t){return{type:J,payload:{activity:t}}}var Yi=ea;var Be="sending",Kt="send failed",Xt="sent";var _valibot = require('valibot');var aa=_valibot.number.call(void 0, [_valibot.integer.call(void 0, ),_valibot.minValue.call(void 0, 1)]),sa=_valibot.union.call(void 0, [_valibot.object.call(void 0, {channelData:_valibot.object.call(void 0, {streamId:_valibot.optional.call(void 0, _valibot.string.call(void 0, )),streamSequence:aa,streamType:_valibot.union.call(void 0, [_valibot.literal.call(void 0, "informative"),_valibot.literal.call(void 0, "streaming")])}),id:_valibot.string.call(void 0, ),text:_valibot.string.call(void 0, ),type:_valibot.literal.call(void 0, "typing")}),_valibot.object.call(void 0, {channelData:_valibot.object.call(void 0, {streamId:_valibot.string.call(void 0, ),streamType:_valibot.literal.call(void 0, "final")}),id:_valibot.string.call(void 0, ),text:_valibot.string.call(void 0, ),type:_valibot.literal.call(void 0, "message")})]);function mt(t){let o=_valibot.safeParse.call(void 0, sa,t);if(o.success){let{output:e}=o,r=e.channelData.streamId||e.id;return Object.freeze(e.channelData.streamType==="final"?{sequenceNumber:1/0,sessionId:r,type:"final activity"}:{sequenceNumber:e.channelData.streamSequence,sessionId:r,type:e.channelData.streamType==="informative"?"informative message":"interim activity"})}}function xo(t,o){let e,r="unknown";for(let i=0;i<t.length;i++){let n=t[+i],c=o(n);if((r==="before"||r==="unknown")&&c==="after"||r==="before"&&(c==="after"||c==="unknown"))return[e,n,i];e=n,r=c}return r==="before"?[e,void 0,t.length]:[void 0,void 0,void 0]}var pa=[],ua="https://docs.botframework.com/static/devportal/client/images/bot-framework-default-placeholder.png";function _o(t){var o;return(o=t.channelData)==null?void 0:o.clientActivityID}function No(t){return o=>_o(o)===t}function Ji(t,o,{Date:e}){var i;t=_simpleupdatein2.default.call(void 0, t,["attachments",()=>!0,"contentUrl"],n=>{if(n!==ua&&!/^blob:/iu.test(n))return n}),t=_simpleupdatein2.default.call(void 0, t,["channelData"],n=>({...n})),t=_simpleupdatein2.default.call(void 0, t,["channelData","webChat","receivedAt"],()=>e.now());let{channelData:{"webchat:sequence-id":r}}=t;if(typeof r!="number"){let n,c,s=mt(t);s&&([c,n]=xo(o,f=>{let u=mt(f);return(u==null?void 0:u.sessionId)===s.sessionId?u.sequenceNumber<s.sequenceNumber?"before":"after":"unknown"}));let a;c?n?a=(c.channelData["webchat:sequence-id"]+n.channelData["webchat:sequence-id"])/2:a=c.channelData["webchat:sequence-id"]+.001:n?a=n.channelData["webchat:sequence-id"]-.001:typeof t.timestamp!="undefined"?a=+new e(t.timestamp):a=(((i=o[o.length-1])==null?void 0:i.channelData["webchat:sequence-id"])||0)+.001,t=_simpleupdatein2.default.call(void 0, t,["channelData","webchat:sequence-id"],()=>a)}return t}function Hi(t,o,e){let r=mt(o);if(r){let{sessionId:a}=r;if(t.find(u=>{let l=mt(u);return(l==null?void 0:l.sessionId)===a&&l.type==="final activity"}))return t}o=Ji(o,t,e);let{channelData:{clientActivityID:i,"webchat:sequence-id":n}={}}=o,c=t.filter(({channelData:{clientActivityID:a}={},id:f})=>!(i&&a===i)&&!(f&&f===o.id)),s=c.findIndex(({channelData:{"webchat:sequence-id":a}={}})=>(a||0)>(n||0));return c.splice(~s?s:c.length,0,o),c}function Oo(t){return function(e=pa,r){switch(r.type){case Vi:e=_simpleupdatein2.default.call(void 0, e,[({id:i})=>i===r.payload.activityID]);break;case Ut:{let{payload:i}=r;e=_simpleupdatein2.default.call(void 0, e,[({id:n})=>n===i.activityID,"channelData",i.name],()=>i.value)}break;case Y:{let{payload:{activity:i}}=r;i=_simpleupdatein2.default.call(void 0, i,["channelData","state"],()=>Be),i=_simpleupdatein2.default.call(void 0, i,["channelData","webchat:send-status"],()=>Be),e=Hi(e,i,t)}break;case xe:e=_simpleupdatein2.default.call(void 0, e,[No(r.meta.clientActivityID),"channelData","state"],()=>Kt);break;case Vt:e=_simpleupdatein2.default.call(void 0, e,[No(r.meta.clientActivityID)],i=>(i=_simpleupdatein2.default.call(void 0, i,["channelData","state"],()=>Kt),_simpleupdatein2.default.call(void 0, i,["channelData","webchat:send-status"],()=>Kt)));break;case De:{let i=_simpleupdatein2.default.call(void 0, _simpleupdatein2.default.call(void 0, Ji(r.payload.activity,e,t),["channelData","state"],()=>Xt),["channelData","webchat:send-status"],()=>Xt);e=_simpleupdatein2.default.call(void 0, e,[No(r.meta.clientActivityID)],()=>i)}break;case J:{let{payload:{activity:i}}=r;if(i.from.role==="user"){let{id:n}=i,c=_o(i),s=e.find(a=>c&&_o(a)===c||n&&a.id===n);if(s){let{channelData:{"webchat:send-status":a}}=s;(a===Be||a===Kt||a===Xt)&&(i=_simpleupdatein2.default.call(void 0, i,["channelData","webchat:send-status"],()=>a))}else i=_simpleupdatein2.default.call(void 0, i,["channelData","webchat:send-status"],()=>Xt)}e=Hi(e,i,t)}break;default:break}return e}}function Po(t){return()=>({ponyfill:t})}var zi;function fa(){return zi||(zi=Object.freeze(Array.from(new Set([...Object.getOwnPropertyNames(Object.prototype),"prototype"]))))}function Ot(t){return fa().includes(t)}var la={};function Lo({Date:t}){return function(e=la,r){let{type:i}=r,n=t.now();if(i===no)e=_simpleupdatein2.default.call(void 0, e,[r.payload.id]);else if(i===zt)e=_simpleupdatein2.default.call(void 0, e,["connectivitystatus","message"],()=>"javascripterror");else if(i===yo){let{alt:c,data:s,id:a,level:f,message:u}=r.payload;if(!Ot(a)){let l=e[a];(!l||c!==l.alt||!Object.is(s,l.data)||f!==l.level||u!==l.message)&&(e=_simpleupdatein2.default.call(void 0, e,[a],()=>({alt:c,data:s,id:a,level:f,message:u,timestamp:n})))}}return e}}var ma={};function ko({Date:t}){return function(e=ma,{payload:r,type:i}){if(i===J||i===Y){let{activity:{from:{id:n,name:c,role:s},type:a}}=r;if(a==="typing"){let f=t.now();e=_simpleupdatein2.default.call(void 0, e,[n,"at"],u=>u||f),e=_simpleupdatein2.default.call(void 0, e,[n,"last"],()=>f),e=_simpleupdatein2.default.call(void 0, e,[n,"name"],()=>c),e=_simpleupdatein2.default.call(void 0, e,[n,"role"],()=>s)}else a==="message"&&(e=_simpleupdatein2.default.call(void 0, e,[n]))}return e}}var da=[];function Ro(t=da,{payload:o,type:e}){switch(e){case lo:t=o.dictateInterims;break;default:break}return t}var ya=0;function Go(t=ya,{payload:o,type:e}){switch(e){case Yt:t=o.dictateState;break;case Ao:(t===0||t===4||t===1)&&(t=2);break;case go:t===2||t===3?t=4:t===1&&(t=0);break;default:break}return t}var va="en-US";function Fo(t=va,{payload:o,type:e}){switch(e){case mo:t=o.language;break;default:break}return t}var Bo="DIRECT_LINE/CONNECTION_STATUS_UPDATE";function jo(t){return{type:Bo,payload:{connectionStatus:t}}}var Ta=0;function Wo(t=Ta,{payload:o,type:e}){switch(e){case Bo:t=o.connectionStatus;break;default:break}return t}var Mo="WEB_CHAT/SET_REFERENCE_GRAMMAR_ID";function Uo(t){return{type:Mo,payload:{referenceGrammarID:t}}}var Aa=null;function qo(t=Aa,{payload:o,type:e}){switch(e){case Mo:t=o.referenceGrammarID||null;break;default:break}return t}var Sa=Object.freeze([]);function Vo(t=Sa,{payload:o,type:e}){switch(e){case vo:t=o.attachments;break;default:break}return t}var ga="";function Yo(t=ga,{payload:o,type:e}){switch(e){case nt:t=o.text;break;default:break}return t}var Ea=2e4;function $o(t=Ea,{payload:o,type:e}){switch(e){case To:t=o.sendTimeout;break;default:break}return t}var ha=!1;function Ho(t=ha,{payload:o,type:e}){switch(e){case $t:t=o.sendTypingIndicator;break;default:break}return t}function Jo(t=!1,{type:o}){switch(o){case So:t=!0;break;case Ht:t=!1;break;default:break}return t}var Ia=Object.freeze([]),te="WEB_CHAT/SET_SUGGESTED_ACTIONS";function Pt(t=Ia,o=void 0){return{type:te,payload:{originActivity:o,suggestedActions:t}}}var zo=Object.freeze([]);function Ko(t=zo,{payload:o={},type:e}){switch(e){case te:(o.suggestedActions||[]).length?t=[].slice.call(o.suggestedActions):t=zo;break;case Mt:t=zo;break;default:break}return t}var Ki=Object.freeze({activity:void 0});function Xo(t=Ki,o){switch(o.type){case te:t={activity:o.payload.originActivity};break;case Mt:t=Ki;break;default:break}return t}function Qo(t){return _redux.combineReducers.call(void 0, {activities:Oo(t),connectivityStatus:Do,dictateInterims:Ro,dictateState:Go,internal:Po(t),language:Fo,notifications:Lo(t),readyState:Wo,referenceGrammarID:qo,sendBoxAttachments:Vo,sendBoxValue:Yo,sendTimeout:$o,sendTypingIndicator:Ho,shouldSpeakIncomingActivity:Jo,suggestedActions:Ko,suggestedActionsOriginActivity:Xo,typing:ko(t)})}var _effects = require('redux-saga/effects');function C(t,...o){return _effects.call.call(void 0, function*(){for(;;){let{meta:{userID:r,username:i},payload:{directLine:n}}=yield _effects.take.call(void 0, [Oi,Ui]),c=yield _effects.fork.call(void 0, t,{directLine:n,userID:r,username:i},...o);yield _effects.take.call(void 0, [Ie,Nt]),yield _effects.cancel.call(void 0, c)}})}function*Oa(){yield _effects.put.call(void 0, Pt())}function*Pa(){yield _effects.takeEvery.call(void 0, ({payload:t,type:o})=>o===Y&&t.activity.type==="message",Oa)}function*Zo(){yield C(Pa)}function dt(){let t,o=[];return{push:i=>{if(t){let{resolve:n}=t;t=null,n(i)}else o.push(i)},shift:()=>o.length?Promise.resolve(o.shift()):(t||(t=io())).promise}}var er="connectivitystatus";function ka(t){let{push:o,shift:e}=dt(),r=t.subscribe({next:o});return{shift:e,unsubscribe(){r.unsubscribe()}}}function*Ra({payload:{directLine:t}}){let{shift:o,unsubscribe:e}=ka(t.connectionStatus$);try{let r;for(;;)switch(yield _effects.call.call(void 0, o)){case 0:case 1:yield _effects.put.call(void 0, bt({id:er,level:"info",message:r?"reconnecting":"connecting"}));break;case 2:r=1,yield _effects.put.call(void 0, bt({id:er,level:"success",message:"connected"}));break;case 3:case 4:r=1,yield _effects.put.call(void 0, bt({id:er,level:"error",message:"failedtoconnect"}));break;default:break}}finally{e()}}function*Qi(){yield _effects.takeLatest.call(void 0, H,Ra)}function ee(t,o){return _effects.call.call(void 0, function*(){let r=dt(),i=t.subscribe({next:r.push});try{for(;;){let n=yield _effects.call.call(void 0, r.shift);yield _effects.call.call(void 0, o,n)}}finally{i.unsubscribe()}})}function*Ga({directLine:t}){yield ee(t.connectionStatus$,function*(e){yield _effects.put.call(void 0, jo(e)),yield _effects.put.call(void 0, Uo(t.referenceGrammarId))})}function*rr(){yield C(Ga)}var _jwtdecode = require('jwt-decode');function wt(...t){return _effects.fork.call(void 0, function*(){for(let e of t)yield _effects.put.call(void 0, e)})}var oe="DIRECT_LINE/UPDATE_CONNECTION_STATUS";function ir(t){return{type:oe,payload:{connectionStatus:t}}}var ar=1,sr=2,Va=0;function nr(){return`r_${lt().substring(0,10)}`}function*Ya(t){let o=dt(),e=t.connectionStatus$.subscribe({next:o.push});try{for(;;){let r=yield _effects.call.call(void 0, o.shift);yield _effects.put.call(void 0, ir(r))}}finally{e.unsubscribe()}}function $a(t,o){let{token:e}=t,r;try{r=(_jwtdecode.jwtDecode.call(void 0, e)||{}).user}catch (e17){}let i={fromAction:o,fromToken:r};return r?(o&&o!==r&&console.warn("Web Chat: user ID is both specified in the Direct Line token and passed in, will use the user ID from the token."),i.final=r):o?typeof o!="string"?(console.warn("Web Chat: user ID must be a string."),i.final=nr()):/^dl_/u.test(o)?(console.warn('Web Chat: user ID prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'),i.final=nr()):i.final=o:i.final=nr(),i}function*Ha(t){let o=t.activity$.subscribe({next:()=>0}),e=o.unsubscribe.bind(o);try{for(;;){let{payload:{connectionStatus:r}}=yield _effects.take.call(void 0, oe);if(r===sr)return()=>{e(),t.end()};if(r!==Va&&r!==ar)throw new Error(`Failed to connect, DirectLineJS returned ${r}.`)}}catch(r){throw e(),r}finally{(yield _effects.cancelled.call(void 0, ))&&e()}}function*Ja(){for(;;){let{payload:{connectionStatus:t}}=yield _effects.take.call(void 0, oe);if(t===sr)break;if(t!==ar)throw new Error(`Failed to reconnect. DirectLineJS returned ${t}.`)}}function*za({type:t,meta:o,payload:e},r){try{yield wt({type:`${t}_PENDING`,meta:o,payload:e});let i=yield r();return yield wt({type:`${t}_FULFILLING`,meta:o,payload:e},{type:`${t}_FULFILLED`,meta:o,payload:e}),i}catch(i){throw yield wt({type:`${t}_REJECTED`,error:!0,meta:o,payload:i}),i}}function*Ka(){throw yield _effects.take.call(void 0, ft),new Error("disconnected")}function tn(t,o){return za(t,function*(){let{result:r}=yield _effects.race.call(void 0, {_:Ka(),result:o()});return r})}function*on(){for(;;){let{payload:{directLine:t,userID:o,username:e}}=yield _effects.take.call(void 0, H),r=yield _effects.fork.call(void 0, Ya,t),i=$a(t,o),n={userID:i.final,username:e};t.setUserId&&i.fromToken!==n.userID&&t.setUserId(n.userID);let c;try{let s=yield tn({type:H,meta:n,payload:{directLine:t}},()=>_effects.call.call(void 0, Ha,t));try{for(;;){let{updateConnectionStatusAction:{payload:{connectionStatus:a}={}}={}}=yield _effects.race.call(void 0, {_:_effects.take.call(void 0, ft),updateConnectionStatusAction:_effects.take.call(void 0, oe)});if(a===ar)yield tn({type:xt,meta:n,payload:{directLine:t}},()=>_effects.call.call(void 0, Ja));else if(a!==sr){if(typeof a!="undefined")throw new Error(`Connection status changed to ${a}`);break}}}finally{s()}}catch(s){c={error:s}}finally{yield _effects.cancel.call(void 0, r),yield wt({type:Ie,meta:c,payload:{directLine:t}},{type:Ce,meta:c,payload:{directLine:t}})}}}function Z(t,o){return new Promise(e=>o.setTimeout(e,Math.max(t,0)))}var ts=15e3;function*ur(t){for(;;)yield _effects.take.call(void 0, [ge,Nt]),"slow"in(yield _effects.race.call(void 0, {fulfilled:_effects.take.call(void 0, [Se,Fe]),rejected:_effects.take.call(void 0, [Ee,qi]),slow:_effects.call.call(void 0, Z,ts,t)}))&&(yield _effects.put.call(void 0, {type:he}))}function*rs(){yield _effects.put.call(void 0, $({type:"typing"}))}function*is(){yield _effects.takeEvery.call(void 0, ({type:t})=>t===co,rs)}function*fr(){yield C(is)}var rn=({activities:t})=>t,re=t=>o=>rn(o).filter(t);var nn=t=>re(({type:o})=>o===t),lr=rn;function ie(t){var o;return(o=t.channelData)==null?void 0:o.speak}function*ss(){let t=yield _effects.select.call(void 0, re(ie));for(let o of t)yield _effects.put.call(void 0, qt(o,"speak",!1))}function*mr(){yield _effects.takeEvery.call(void 0, Ht,ss)}var dr="DIRECT_LINE/QUEUE_INCOMING_ACTIVITY";function yr(t){return{type:dr,payload:{activity:t}}}var us=t=>t;function fs(t,o){return t.from?t.from.role||(t.from.id===o?t=_simpleupdatein2.default.call(void 0, t,["from","role"],()=>"user"):t.from.id?t=_simpleupdatein2.default.call(void 0, t,["from","role"],()=>"bot"):t=_simpleupdatein2.default.call(void 0, t,["from","role"],()=>"channel")):t=_simpleupdatein2.default.call(void 0, t,["from","role"],()=>"channel"),t}function ls(t){return["attachmentLayout","attachments","channelData","conversation","entities","from","inputHint","locale","name","recipient","speak","suggestedActions","text","textFormat","timestamp","type"].reduce((o,e)=>{let{[e]:r}=o;return _simpleupdatein2.default.call(void 0, o,[e],typeof r=="undefined"||r===null?void 0:us)},t)}function ms(t){return _simpleupdatein2.default.call(void 0, t,["from","name"],o=>{let{channelId:e,from:r={}}=t;return(e==="directline"||e==="webchat")&&r.id===r.name&&r.role==="bot"?"Bot":o})}function*ds({directLine:t,userID:o}){yield ee(t.activity$,function*(r){r=ls(r),r=fs(r,o),r=ms(r),yield _effects.put.call(void 0, yr(r))})}function*vr(){yield C(ds)}function at(t,o=2){if(typeof t!="number")throw new Error("First argument must be a number");let e=t+"";for(;e.length<o;)e="0"+e;return e}function Tr(t){if(!(t.getTimezoneOffset&&t.getFullYear&&t.getMonth&&t.getDate&&t.getHours&&t.getMinutes&&t.getSeconds&&t.getMilliseconds))throw new Error("First argument must be a Date-like object.");let e=-t.getTimezoneOffset(),r=e<0?"-":"+",i=~~Math.abs(e);return`${t.getFullYear()}-${at(t.getMonth()+1)}-${at(t.getDate())}T${at(t.getHours())}:${at(t.getMinutes())}:${at(t.getSeconds())}.${at(t.getMilliseconds(),3)}${e?`${r}${at(~~(i/60))}:${at(i%60)}`:"Z"}`}function We(t,...o){if(!t)return t;let e={...t};for(let r of o)(typeof r!="string"||!Ot(r))&&delete e[r];return e}var cn=({language:t})=>t;function Ar(t){return _effects.call.call(void 0, function*(){let e;try{return yield _effects.call.call(void 0, ()=>new Promise((r,i)=>{e=t.subscribe({complete:r,error:i,next:r})}))}finally{e&&e.unsubscribe()}})}var sn=({sendTimeout:t})=>t;var gs=3e5;function*Es(t,o,e,r,{meta:{method:i},payload:{activity:n}},c){let s=n.type==="message"&&n.attachments||[],a=lt(),f=yield _effects.select.call(void 0, cn),u=typeof window.Intl=="undefined"?void 0:new Intl.DateTimeFormat().resolvedOptions().timeZone,l=new c.Date,T={...We(n,"id"),channelData:{...We(n.channelData,"state","webchat:send-status"),clientActivityID:a},channelId:"webchat",from:{id:o,name:e,role:"user"},locale:f,localTimestamp:Tr(l),localTimezone:u,...n.type==="message"?{attachments:s&&s.map(({contentType:y,contentUrl:E,name:g,thumbnailUrl:h})=>({contentType:y,contentUrl:E,name:g,thumbnailUrl:h})),text:n.text}:n.type==="event"?{name:n.name,value:n.value}:{}};r||(T.entities=[...T.entities||[],{requiresBotState:!0,supportsListening:!0,supportsTts:!0,type:"ClientCapabilities"}]);let m={clientActivityID:a,method:i};yield _effects.put.call(void 0, {type:Y,meta:m,payload:{activity:T}});let v;try{let y=_effects.call.call(void 0, function*(){var h;for(;;){let{payload:{activity:I}}=yield _effects.take.call(void 0, J);if(((h=I.channelData)==null?void 0:h.clientActivityID)===a&&I.id)return v=!0,I}}),E=yield _effects.select.call(void 0, sn),{send:{echoBack:g}}=yield _effects.race.call(void 0, {send:_effects.all.call(void 0, {echoBack:y,postActivity:Ar(t.postActivity(T))}),timeout:_effects.call.call(void 0, function*(){throw yield _effects.call.call(void 0, Z,E,c),yield _effects.put.call(void 0, {type:xe,meta:m,payload:{activity:T}}),yield _effects.call.call(void 0, Z,gs-E,c),v?new Error("timed out while waiting for postActivity to return any values"):new Error("timed out while waiting for outgoing message to echo back")})});yield _effects.put.call(void 0, {type:De,meta:m,payload:{activity:g}})}catch(y){console.error("botframework-webchat: Failed to post activity to chat adapter.",y),yield _effects.put.call(void 0, {type:Vt,error:!0,meta:m,payload:y})}finally{(yield _effects.cancelled.call(void 0, ))&&(yield _effects.put.call(void 0, {type:Vt,error:!0,meta:m,payload:new Error("cancelled")}))}}function*Sr(t){yield C(function*({directLine:e,userID:r,username:i}){let n=0;yield _effects.takeEvery.call(void 0, ot,function*(s){yield*Es(e,r,i,n++,s,t)})})}var un=t=>t&&t.from.role==="bot";var Ds=5e3;function*xs(t,o,e){for(;!(yield _effects.cancelled.call(void 0, ));){let r=yield _effects.take.call(void 0, t),i=yield _effects.select.call(void 0, o);yield _effects.fork.call(void 0, e,r,i)}}function*Ns(t,o){let e=o;for(;!e.find(n=>n.id===t||n.replyToId===t);){let{payload:{activity:i}}=yield _effects.take.call(void 0, J);if(i.id===t)break;e=yield _effects.select.call(void 0, lr)}}function*_s({userID:t},o){yield xs(dr,lr,function*({payload:{activity:r}},i){let{replyToId:n}=r,c=i.filter(({from:{role:f}})=>f==="bot");n&&c.length&&"timeout"in(yield _effects.race.call(void 0, {_:Ns(n,i),timeout:_effects.call.call(void 0, Z,Ds,o)}))&&console.warn(`botframework-webchat: Timed out while waiting for activity "${n}" which activity "${r.id}" is replying to.`,{activity:r,replyToId:n}),yield _effects.put.call(void 0, Yi(r));let s=yield _effects.select.call(void 0, nn("message")),a=s[s.length-1];if(un(a)){let{suggestedActions:{actions:f,to:u}={actions:void 0,to:void 0}}=a,l=u!=null&&u.length&&!u.includes(t)?null:f;l?yield _effects.put.call(void 0, Pt(l,a)):yield _effects.put.call(void 0, Pt())}})}function*hr(t){yield C(_s,t)}function*ws({payload:{name:t,value:o}}){yield _effects.put.call(void 0, $({name:t,type:"event",value:o}))}function*Ls(){yield _effects.takeEvery.call(void 0, ({payload:t,type:o})=>o===ao&&t.name,ws)}function*Ir(){yield C(Ls)}var _mime = require('mime'); var _mime2 = _interopRequireDefault(_mime);var Gs=_mime2.default.getType.bind(_mime2.default);function*Fs({payload:{files:t}}){yield _effects.put.call(void 0, $({attachments:[].map.call(t,({name:o,thumbnail:e,url:r})=>({contentType:Gs(o)||"application/octet-stream",contentUrl:r,name:o,thumbnailUrl:e})),channelData:{attachmentSizes:[].map.call(t,({size:o})=>o)},type:"message"}))}function*Bs(){yield _effects.takeEvery.call(void 0, ({payload:t,type:o})=>o===so&&t.files.length,Fs)}function*Cr(){yield C(Bs)}function*Ms({payload:{displayText:t,text:o,value:e}}){yield _effects.put.call(void 0, $({channelData:{messageBack:{displayText:t}},text:o,type:"message",value:e}))}function*Us(){yield _effects.takeEvery.call(void 0, uo,Ms)}function*br(){yield C(Us)}function*Ys({payload:{attachments:t=[],channelData:o,method:e,text:r}}){yield _effects.put.call(void 0, $({attachments:t.map(({blob:i,thumbnailURL:n})=>({contentType:i instanceof File&&i.type||"application/octet-stream",contentUrl:URL.createObjectURL(i),name:i instanceof File?i.name:void 0,thumbnailUrl:n==null?void 0:n.toString()})),channelData:{...o,attachmentSizes:t.map(({blob:{size:i}})=>i)},text:r||void 0,textFormat:"plain",type:"message"},e))}function*$s(){yield _effects.takeEvery.call(void 0, ({payload:t,type:o})=>{var e;return o===po&&(t.text||((e=t.attachments)==null?void 0:e.length))},Ys)}function*Dr(){yield C($s)}function*zs({payload:{value:t}}){yield _effects.put.call(void 0, $({channelData:{postBack:!0},text:typeof t=="string"?t:void 0,type:"message",value:typeof t!="string"?t:void 0}))}function*Ks(){yield _effects.takeEvery.call(void 0, fo,zs)}function*xr(){yield C(Ks)}var mn=({sendTypingIndicator:t})=>t;var rp=3e3;function Nr(t){return _effects.take.call(void 0, ({payload:o,type:e})=>e===$t&&!o.sendTypingIndicator==!t)}function*ip(t,o){let{Date:e}=o;for((yield _effects.select.call(void 0, mn))||(yield Nr(!0));;){let i=-1/0,n=yield _effects.takeLatest.call(void 0, ({payload:c,type:s})=>s===nt&&c.text||s===ot&&c.activity.type!=="typing",function*({payload:c,type:s}){if(s===nt){let a=rp-e.now()+i;a>0&&(yield _effects.call.call(void 0, Z,a,o)),yield _effects.put.call(void 0, be()),i=e.now()}else c.activity.type==="message"&&(i=-1/0)});yield Nr(!1),yield _effects.cancel.call(void 0, n),yield Nr(!0)}}function*_r(t){yield C(ip,t)}var dn=({shouldSpeakIncomingActivity:t})=>t;function Or(t){return t&&t.from&&t.type==="message"}function*ap({userID:t}){yield _effects.takeEvery.call(void 0, ({payload:o,type:e})=>e===J&&o.activity.from.id!==t&&o.activity.from.role!=="user",function*({payload:{activity:o}}){let e=yield _effects.select.call(void 0, dn),r=Or(o)&&e;r&&(o.speak||o.text||~(o.attachments||[]).findIndex(({content:{speak:i}={}})=>i))&&(yield _effects.put.call(void 0, qt(o,"speak",!0))),r&&o.inputHint==="expectingInput"?yield _effects.put.call(void 0, _e(1)):o.inputHint==="ignoringInput"&&(yield _effects.put.call(void 0, Dt()))})}function*wr(){yield C(ap)}var yn=({dictateState:t})=>t;function*up(){let t=yield _effects.select.call(void 0, re(ie));(yield _effects.select.call(void 0, yn))===1&&!t.length&&(yield _effects.put.call(void 0, we()))}function*Lr(){yield _effects.takeEvery.call(void 0, ({type:t})=>t===Ut||t===Yt,up)}function*mp(){yield _effects.takeEvery.call(void 0, ({meta:t,payload:o,type:e})=>e===Y&&t.method==="speech"&&o.activity.type==="message",function*(){yield _effects.put.call(void 0, Le())})}function*kr(){yield C(mp)}function*vp(){yield _effects.takeEvery.call(void 0, ({payload:t,type:o})=>o===Y&&t.activity.type==="message",function*(){yield _effects.put.call(void 0, Dt())})}function*Rr(){yield C(vp)}function*Sp(){yield _effects.takeEvery.call(void 0, ({meta:t,payload:o,type:e})=>e===nt&&o.text||e===Y&&t.method!=="speech"&&o.activity.type==="message",function*(){yield _effects.put.call(void 0, ke())})}function*Gr(){yield C(Sp)}function Fr({sendBoxAttachments:t}){return t}var Tn=({sendBoxValue:t})=>t;function*Ep(){yield _effects.takeEvery.call(void 0, Eo,function*({payload:{channelData:t,method:o}}){let e=yield _effects.select.call(void 0, Fr),r=yield _effects.select.call(void 0, Tn);(e.length||r)&&(yield _effects.put.call(void 0, Ne(r.trim(),o,{attachments:e,channelData:t})),yield _effects.put.call(void 0, Oe("")),yield _effects.put.call(void 0, Pe(Object.freeze([]))))})}function*jr(){yield C(Ep)}function Wr({ponyfill:t}){return function*(){yield _effects.fork.call(void 0, Zo),yield _effects.fork.call(void 0, Qi),yield _effects.fork.call(void 0, rr),yield _effects.fork.call(void 0, on),yield _effects.fork.call(void 0, ur,t),yield _effects.fork.call(void 0, fr),yield _effects.fork.call(void 0, mr),yield _effects.fork.call(void 0, vr),yield _effects.fork.call(void 0, Sr,t),yield _effects.fork.call(void 0, hr,t),yield _effects.fork.call(void 0, Ir),yield _effects.fork.call(void 0, Cr),yield _effects.fork.call(void 0, br),yield _effects.fork.call(void 0, Dr),yield _effects.fork.call(void 0, xr),yield _effects.fork.call(void 0, _r,t),yield _effects.fork.call(void 0, wr),yield _effects.fork.call(void 0, Lr),yield _effects.fork.call(void 0, kr),yield _effects.fork.call(void 0, Rr),yield _effects.fork.call(void 0, Gr),yield _effects.fork.call(void 0, jr)}}function Dp(t,...o){let e=_reduxsaga2.default.call(void 0, {onError:(...r)=>{let[i]=r;console.error(i);let n=t();n&&n.dispatch(bo())}});return{enhancer:_redux.applyMiddleware.call(void 0, ...o,e),sagaMiddleware:e}}function Mr(t,o,...e){let r=typeof globalThis=="undefined"?window:globalThis,i=t.ponyfill||{},n={cancelAnimationFrame:i.cancelAnimationFrame||(typeof cancelAnimationFrame=="function"?cancelAnimationFrame.bind(r):void 0),cancelIdleCallback:i.cancelIdleCallback||(typeof cancelIdleCallback=="function"?cancelIdleCallback.bind(r):void 0),clearImmediate:i.clearImmediate||(typeof clearImmediate=="function"?clearImmediate.bind(r):void 0),clearInterval:i.clearInterval||(typeof clearInterval=="function"?clearInterval.bind(r):void 0),clearTimeout:i.clearTimeout||(typeof clearTimeout=="function"?clearTimeout.bind(r):void 0),Date:i.Date||Date,requestAnimationFrame:i.requestAnimationFrame||(typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(r):void 0),requestIdleCallback:i.requestIdleCallback||(typeof requestIdleCallback=="function"?requestIdleCallback.bind(r):void 0),setImmediate:i.setImmediate||(typeof setImmediate=="function"?setImmediate.bind(r):void 0),setInterval:i.setInterval||(typeof setInterval=="function"?setInterval.bind(r):void 0),setTimeout:i.setTimeout||(typeof setTimeout=="function"?setTimeout.bind(r):void 0)},{enhancer:c,sagaMiddleware:s}=Dp(()=>a,...e),a=_redux.createStore.call(void 0, Qo(n),o||{},t.devTools?_extension.composeWithDevTools.call(void 0, c):c);return s.run(Wr({ponyfill:n})),a}function Sn(t,...o){return Mr({},t,...o)}function xp(t,...o){return Mr({devTools:!0},t,...o)}var Lp=t=>_valibot.fallback.call(void 0, _valibot.optional.call(void 0, _valibot.union.call(void 0, [_valibot.transform.call(void 0, _valibot.array.call(void 0, t),o=>o[0]),t])),void 0),D=Lp;var Bp=t=>_valibot.fallback.call(void 0, _valibot.transform.call(void 0, _valibot.array.call(void 0, t),o=>o.filter(e=>typeof e!="undefined")),o=>o!=null&&o.input?[_valibot.parse.call(void 0, t,o==null?void 0:o.input)]:void 0);function Rt(t){return Bp(D(t))}var Vp={"@context":_valibot.optional.call(void 0, _valibot.string.call(void 0, [_valibot.value.call(void 0, "https://schema.org")])),"@id":_valibot.optional.call(void 0, _valibot.string.call(void 0, )),"@type":_valibot.string.call(void 0, ),additionalType:D(_valibot.string.call(void 0, )),alternateName:D(_valibot.string.call(void 0, )),description:D(_valibot.string.call(void 0, )),name:D(_valibot.string.call(void 0, )),potentialAction:Rt(_valibot.lazy.call(void 0, ()=>ce())),url:D(_valibot.string.call(void 0, ))},rt=t=>_valibot.object.call(void 0, {...Vp,...t},_valibot.unknown.call(void 0, )),Ur= exports.parseThing =t=>_valibot.parse.call(void 0, rt(),t);var ae=t=>rt({slogan:D(_valibot.string.call(void 0, )),...t}),Hp= exports.parseProject =t=>_valibot.parse.call(void 0, ae(),t);var ce=t=>rt({actionStatus:D(_valibot.union.call(void 0, [_valibot.string.call(void 0, [_valibot.value.call(void 0, "ActiveActionStatus")]),_valibot.string.call(void 0, [_valibot.value.call(void 0, "CompletedActionStatus")]),_valibot.string.call(void 0, [_valibot.value.call(void 0, "FailedActionStatus")]),_valibot.string.call(void 0, [_valibot.value.call(void 0, "PotentialActionStatus")])])),provider:D(_valibot.lazy.call(void 0, ()=>ae())),...t}),Xp= exports.parseAction =t=>_valibot.parse.call(void 0, ce(),t);var Ve=t=>rt({inDefinedTermSet:D(_valibot.string.call(void 0, )),termCode:D(_valibot.string.call(void 0, )),...t}),Zp= exports.parseDefinedTerm =t=>_valibot.parse.call(void 0, Ve(),t);var ou=t=>_valibot.object.call(void 0, {description:D(_valibot.string.call(void 0, )),image:D(_valibot.string.call(void 0, )),name:D(_valibot.string.call(void 0, )),...t}),vt=t=>rt({abstract:D(_valibot.string.call(void 0, )),author:D(_valibot.union.call(void 0, [ou(),_valibot.string.call(void 0, )])),citation:Rt(_valibot.lazy.call(void 0, ()=>vt())),isBasedOn:D(_valibot.lazy.call(void 0, ()=>vt())),keywords:Rt(_valibot.union.call(void 0, [_valibot.lazy.call(void 0, ()=>Ve()),_valibot.string.call(void 0, )])),pattern:D(_valibot.lazy.call(void 0, ()=>Ve())),text:D(_valibot.string.call(void 0, )),usageInfo:D(_valibot.lazy.call(void 0, ()=>vt())),...t}),Ye= exports.parseCreativeWork =t=>_valibot.parse.call(void 0, vt(),t);var au=t=>vt({appearance:D(_valibot.lazy.call(void 0, ()=>vt())),claimInterpreter:D(_valibot.lazy.call(void 0, ()=>ae())),position:D(_valibot.union.call(void 0, [_valibot.number.call(void 0, ),_valibot.string.call(void 0, )])),...t}),su= exports.parseClaim =t=>_valibot.parse.call(void 0, au(),t);var fu=t=>ce({actionOption:D(_valibot.string.call(void 0, )),...t}),lu= exports.parseVoteAction =t=>_valibot.parse.call(void 0, fu(),t);function Cn(t){let o=(t||[]).find(r=>{var n;if((n=r.type)==null?void 0:n.startsWith("https://schema.org/"))return Ur(r)["@id"]===""}),e=o&&Ye(o);return e&&Ye(e)}function bn(t,o){try{return t()}catch (e18){return o}}function Dn(t){return t?Array.isArray(t)?t:[t]:[]}function qr(t){let o;return()=>{o||(t(),o=1)}}function xn(t){return qr(()=>console.warn(`botframework-webchat: ${t}.`))}var ZT={ActivityClientState:ho,DictateState:Co},mu="tsup",du= exports.moduleFormat ="esmodules",yu= exports.version ="4.18.1-main.20241115.e88f4b6",tA= exports.buildInfo ={buildTool:mu,moduleFormat:du,version:yu};exports.Constants = ZT; exports.buildInfo = tA; exports.clearSuggestedActions = _i; exports.connect = Pi; exports.createStore = Sn; exports.createStoreWithDevTools = xp; exports.createStoreWithOptions = Mr; exports.disconnect = wi; exports.dismissNotification = Hc; exports.emitTypingIndicator = be; exports.getActivityLivestreamingMetadata = mt; exports.getOrgSchemaMessage = Cn; exports.isForbiddenPropertyName = Ot; exports.markActivity = qt; exports.moduleFormat = du; exports.onErrorResumeNext = bn; exports.parseAction = Xp; exports.parseClaim = su; exports.parseCreativeWork = Ye; exports.parseDefinedTerm = Zp; exports.parseProject = Hp; exports.parseThing = Ur; exports.parseVoteAction = lu; exports.postActivity = $; exports.sendEvent = Li; exports.sendFiles = ki; exports.sendMessage = Ne; exports.sendMessageBack = Ri; exports.sendPostBack = Gi; exports.setDictateInterims = Fi; exports.setDictateState = _e; exports.setLanguage = Bi; exports.setNotification = bt; exports.setSendBox = Oe; exports.setSendBoxAttachments = Pe; exports.setSendTimeout = ji; exports.setSendTypingIndicator = Wi; exports.singleToArray = Dn; exports.startDictate = we; exports.startSpeakingActivity = Le; exports.stopDictate = Dt; exports.stopSpeakingActivity = ke; exports.submitSendBox = Mi; exports.version = yu; exports.warnOnce = xn; exports.withResolvers = io; | ||
/*! For license information please see botframework-webchat-core.js.LEGAL.txt */ | ||
//# sourceMappingURL=botframework-webchat-core.js.map |
{ | ||
"name": "botframework-webchat-core", | ||
"version": "4.18.1-main.20241114.7f9f47e", | ||
"version": "4.18.1-main.20241115.e88f4b6", | ||
"description": "Core of botframework-webchat", | ||
@@ -5,0 +5,0 @@ "main": "./dist/botframework-webchat-core.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1