diff --git a/local-testing/amazon-connect-chat-interface.js b/local-testing/amazon-connect-chat-interface.js index 7646cb8..ada2c6e 100644 --- a/local-testing/amazon-connect-chat-interface.js +++ b/local-testing/amazon-connect-chat-interface.js @@ -1,2 +1,2 @@ /*! For license information please see amazon-connect-chat-interface.js.LICENSE.txt */ -!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/amazon-connect/amazon-connect-chat-interface/",n(n.s=421)}([function(e,t,n){"use strict";e.exports=n(743)},function(e,t,n){var i=n(5),r=n(35).f,a=n(49),o=n(28),s=n(197),l=n(200),u=n(128);e.exports=function(e,t){var n,c,f,d,h,p=e.target,g=e.global,_=e.stat;if(n=g?i:_?i[p]||s(p,{}):(i[p]||{}).prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(h=r(n,c))&&h.value:n[c],!u(g?c:p+(_?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&a(d,"sham",!0),o(n,c,d,e)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Xe}));var i=n(260),r=n.n(i),a=n(411),o=n.n(a),s=n(0),l=n.n(s),u=n(412),c=n(261),f=n(262),d=n(419),h=n(420),p=function(e,t){for(var n=[e[0]],i=0,r=t.length;i1?i-1:0),a=1;a0?" Additional arguments: "+r.join(", "):"")));return b(o)}return y(t,e),t}(Error),M=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,P=function(e){var t=""+(e||""),n=[];return t.replace(M,(function(e,t,i){return n.push({componentId:t,matchIndex:i}),e})),n.map((function(e,i){var r=e.componentId,a=e.matchIndex,o=n[i+1];return{componentId:r,cssFromDOM:o?t.slice(a,o.matchIndex):t.slice(a)}}))},R=/^\s*\/\/.*$/gm,j=new r.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),N=new r.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),B=[],L=function(e){if(-2===e){var t=B;return B=[],t}},q=o()((function(e){B.push(e)})),z=void 0,U=void 0,H=void 0,K=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(U)&&n.slice(t-U.length,t)!==U?"."+z:e};N.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(U)>0&&(n[0]=n[0].replace(H,K))},q,L]),j.use([q,L]);var W=function(e){return j("",e)};function G(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",r=e.join("").replace(R,""),a=t&&n?n+" "+t+" { "+r+" }":r;return z=i,U=t,H=new RegExp("\\"+U+"\\b","g"),N(n||!t?"":t,a)}var V=function(){return n.nc},Y=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},X=function(e,t){e[t]=Object.create(null)},$=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},J=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},Q=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n"+e()+""}},ie=function(e,t){return function(){var n,i=((n={})[D]=J(t),n[T]="4.4.1",n),r=V();return r&&(i.nonce=r),l.a.createElement("style",F({},i,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},ae=function(e,t){return e.createTextNode(ee(t))},oe=function e(t,n){var i=void 0===t?Object.create(null):t,r=void 0===n?Object.create(null):n,a=function(e){var t=r[e];return void 0!==t?t:r[e]=[""]},o=function(){var e="";for(var t in r){var n=r[t][0];n&&(e+=ee(t)+n)}return e},s={clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=F({},e[n]);return t}(i),n=Object.create(null);for(var a in r)n[a]=[r[a][0]];return e(t,n)},css:o,getIds:re(r),hasNameForId:$(i),insertMarker:a,insertRules:function(e,t,n){a(e)[0]+=t.join(" "),Y(i,e,n)},removeRules:function(e){var t=r[e];void 0!==t&&(t[0]="",X(i,e))},sealed:!1,styleTag:null,toElement:ie(o,i),toHTML:ne(o,i)};return s},se=function(e,t,n,i,r){if(A&&!n){var a=function(e,t,n){var i=document;e?i=e.ownerDocument:t&&(i=t.ownerDocument);var r=i.createElement("style");r.setAttribute(D,""),r.setAttribute(T,"4.4.1");var a=V();if(a&&r.setAttribute("nonce",a),r.appendChild(i.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new I(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,i);return O?function(e,t){var n=Object.create(null),i=Object.create(null),r=void 0!==t,a=!1,o=function(t){var r=i[t];return void 0!==r?r:(i[t]=ae(e.ownerDocument,t),e.appendChild(i[t]),n[t]=Object.create(null),i[t])},s=function(){var e="";for(var t in i)e+=i[t].data;return e};return{clone:function(){throw new I(5)},css:s,getIds:re(i),hasNameForId:$(n),insertMarker:o,insertRules:function(e,i,s){for(var l=o(e),u=[],c=i.length,f=0;f0&&(a=!0,t().insertRules(e+"-import",u))},removeRules:function(o){var s=i[o];if(void 0!==s){var l=ae(e.ownerDocument,o);e.replaceChild(l,s),i[o]=l,X(n,o),r&&a&&t().removeRules(o+"-import")}},sealed:!1,styleTag:e,toElement:ie(s,n),toHTML:ne(s,n)}}(a,r):function(e,t){var n=Object.create(null),i=Object.create(null),r=[],a=void 0!==t,o=!1,s=function(e){var t=i[e];return void 0!==t?t:(i[e]=r.length,r.push(0),X(n,e),i[e])},l=function(){var t=Q(e).cssRules,n="";for(var a in i){n+=ee(a);for(var o=i[a],s=te(r,o),l=s-r[o];l0&&(o=!0,t().insertRules(i+"-import",p)),r[c]+=h,Y(n,i,u)},removeRules:function(s){var l=i[s];if(void 0!==l&&!1!==e.isConnected){var u=r[l];!function(e,t,n){for(var i=t-n,r=t;r>i;r-=1)e.deleteRule(r)}(Q(e),te(r,l)-1,u),r[l]=0,X(n,s),a&&o&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ie(l,n),toHTML:ne(l,n)}}(a,r)}return oe()},le=/\s+/,ue=void 0;ue=A?O?40:1e3:-1;var ce=0,fe=void 0,de=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A?document.head:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=se(t.target,n?n.styleTag:null,t.forceServer,!0)},ce+=1,this.id=ce,this.forceServer=i,this.target=i?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!A||this.forceServer)return this;var e=[],t=[],n=!1,i=document.querySelectorAll("style["+D+"]["+T+'="4.4.1"]'),r=i.length;if(!r)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0]).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),i=e.clone(),r=0;r1?t-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:E;if(!Object(c.isValidElementType)(t))throw new I(1,String(t));var i=function(){return e(t,n,be.apply(void 0,arguments))};return i.withConfig=function(i){return ve(e,t,F({},n,i))},i.attrs=function(i){return ve(e,t,F({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}function ke(e){for(var t,n=0|e.length,i=0|n,r=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+((1540483477*(t>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++r;switch(n){case 3:i^=(255&e.charCodeAt(r+2))<<16;case 2:i^=(255&e.charCodeAt(r+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(r)))+((1540483477*(i>>>16)&65535)<<16)}return((i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16))^i>>>15)>>>0}var Ee=52,we=function(e){return String.fromCharCode(e+(e>25?39:97))};function xe(e){var t="",n=void 0;for(n=e;n>Ee;n=Math.floor(n/Ee))t=we(n%Ee)+t;return we(n%Ee)+t}function Ce(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:E,i=!!n&&e.theme===n.theme;return e.theme&&!i?e.theme:t||n.theme},Oe=/[[\].#*$><+~=|^:(),"'`-]+/g,Ie=/(^-|-$)/g;function Me(e){return e.replace(Oe,"-").replace(Ie,"")}function Pe(e){return"string"===typeof e&&!0}var Re={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},je={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ne=((De={})[c.ForwardRef]={$$typeof:!0,render:!0},De),Be=Object.defineProperty,Le=Object.getOwnPropertyNames,qe=Object.getOwnPropertySymbols,ze=void 0===qe?function(){return[]}:qe,Ue=Object.getOwnPropertyDescriptor,He=Object.getPrototypeOf,Ke=Object.prototype,We=Array.prototype;function Ge(e,t,n){if("string"!==typeof t){var i=He(t);i&&i!==Ke&&Ge(e,i,n);for(var r=We.concat(Le(t),ze(t)),a=Ne[e.$$typeof]||Re,o=Ne[t.$$typeof]||Re,s=r.length,l=void 0,u=void 0;s--;)if(u=r[s],!je[u]&&(!n||!n[u])&&(!o||!o[u])&&(!a||!a[u])&&(l=Ue(t,u)))try{Be(e,u,l)}catch(c){}return e}return e}var Ve=Object(s.createContext)(),Ye=Ve.Consumer,Xe=function(e){function t(n){_(this,t);var i=b(this,e.call(this,n));return i.getContext=Object(f.a)(i.getContext.bind(i)),i.renderInner=i.renderInner.bind(i),i}return y(t,e),t.prototype.render=function(){return this.props.children?l.a.createElement(Ve.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return l.a.createElement(Ve.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(w(e))return e(t);if(null===e||Array.isArray(e)||"object"!==("undefined"===typeof e?"undefined":g(e)))throw new I(8);return F({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(s.Component),$e=(function(){function e(){_(this,e),this.masterSheet=de.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new I(2);return l.a.createElement(Qe,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new I(3)}}(),Object(s.createContext)()),Je=$e.Consumer,Qe=function(e){function t(n){_(this,t);var i=b(this,e.call(this,n));return i.getContext=Object(f.a)(i.getContext),i}return y(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new de(t);throw new I(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,i=e.target;return l.a.createElement($e.Provider,{value:this.getContext(n,i)},t)},t}(s.Component),Ze={};var et=function(e){function t(){_(this,t);var n=b(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return y(t,e),t.prototype.render=function(){return l.a.createElement(Je,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.a.createElement(Ye,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,i=t.defaultProps,r=(t.displayName,t.foldedComponentIds),a=t.styledComponentId,o=t.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(E,this.props):this.generateAndInjectStyles(Ae(this.props,e,i)||E,this.props);var u=this.props.as||this.attrs.as||o,c=Pe(u),f={},h=F({},this.props,this.attrs),p=void 0;for(p in h)"forwardedComponent"!==p&&"as"!==p&&("forwardedRef"===p?f.ref=h[p]:"forwardedAs"===p?f.as=h[p]:c&&!Object(d.a)(p)||(f[p]=h[p]));return this.props.style&&this.attrs.style&&(f.style=F({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(r,a,l!==a?l:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(u,f)},t.prototype.buildExecutionContext=function(e,t,n){var i=this,r=F({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,a=!1,o=void 0,s=void 0;for(s in w(n)&&(n=n(r),a=!0),n)o=n[s],a||!w(o)||(t=o)&&t.prototype&&t.prototype.isReactComponent||C(o)||(o=o(r)),i.attrs[s]=o,r[s]=o})),r):r},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,i=n.attrs,r=n.componentStyle;n.warnTooManyClasses;return r.isStatic&&!i.length?r.generateAndInjectStyles(E,this.styleSheet):r.generateAndInjectStyles(this.buildExecutionContext(e,t,i),this.styleSheet)},t}(s.Component);function tt(e,t,n){var i=C(e),r=!Pe(e),a=t.displayName,o=void 0===a?function(e){return Pe(e)?"styled."+e:"Styled("+x(e)+")"}(e):a,s=t.componentId,u=void 0===s?function(e,t,n){var i="string"!==typeof t?"sc":Me(t),r=(Ze[i]||0)+1;Ze[i]=r;var a=i+"-"+e.generateName(i+r);return n?n+"-"+a:a}(Se,t.displayName,t.parentComponentId):s,c=t.ParentComponent,f=void 0===c?et:c,d=t.attrs,p=void 0===d?k:d,g=t.displayName&&t.componentId?Me(t.displayName)+"-"+t.componentId:t.componentId||u,_=i&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,m=new Se(i?e.componentStyle.rules.concat(n):n,_,g),y=void 0,b=function(e,t){return l.a.createElement(f,F({},e,{forwardedComponent:y,forwardedRef:t}))};return b.displayName=o,(y=l.a.forwardRef(b)).displayName=o,y.attrs=_,y.componentStyle=m,y.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):k,y.styledComponentId=g,y.target=i?e.target:e,y.withComponent=function(e){var i=t.componentId,r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["componentId"]),a=i&&i+"-"+(Pe(e)?e:Me(x(e)));return tt(e,F({},r,{attrs:_,componentId:a,ParentComponent:f}),n)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Object(h.a)(e.defaultProps,t):t}}),y.toString=function(){return"."+y.styledComponentId},r&&Ge(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var nt=function(e){return ve(tt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){nt[e]=nt(e)}));!function(){function e(t,n){_(this,e),this.rules=t,this.componentId=n,this.isStatic=Ce(t,k),de.master.hasId(n)||de.master.deferredInject(n,[])}e.prototype.createStyles=function(e,t){var n=G(ye(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)}}();A&&(window.scCGSHMRCache={});t.b=nt}).call(this,n(97))},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var i=n(123),r=Function.prototype,a=r.call,o=i&&r.bind.bind(a,a);e.exports=i?o:function(e){return function(){return a.apply(e,arguments)}}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(52))},function(e,t,n){var i=n(123),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},function(e,t,n){var i=n(11),r=String,a=TypeError;e.exports=function(e){if(i(e))return e;throw a(r(e)+" is not an object")}},function(e,t,n){var i=n(5),r=n(93),a=n(16),o=n(124),s=n(108),l=n(265),u=i.Symbol,c=r("wks"),f=l?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)||(c[e]=s&&a(u,e)?u[e]:f("Symbol."+e)),c[e]}},function(e,t,n){var i=n(3);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var i=n(264),r=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},function(e,t,n){var i=n(10),r=n(264),a=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===a}:function(e){return"object"==typeof e?null!==e:i(e)}},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return o(e)?e:V(e)}function i(e){return s(e)?e:Y(e)}function r(e){return l(e)?e:X(e)}function a(e){return o(e)&&!u(e)?e:$(e)}function o(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function l(e){return!(!e||!e[h])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[p])}t(i,n),t(r,n),t(a,n),n.isIterable=o,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=i,n.Indexed=r,n.Set=a;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",g="delete",_=5,m=1<<_,F=m-1,y={},b={value:!1},v={value:!1};function k(e){return e.value=!1,e}function E(e){e&&(e.value=!0)}function w(){}function x(e,t){t=t||0;for(var n=Math.max(0,e.length-t),i=new Array(n),r=0;r>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function T(){return!0}function S(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return I(e,t,0)}function O(e,t){return I(e,t,t)}function I(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var M=0,P=1,R=2,j="function"===typeof Symbol&&Symbol.iterator,N="@@iterator",B=j||N;function L(e){this.next=e}function q(e,t,n,i){var r=0===e?t:1===e?n:[t,n];return i?i.value=r:i={value:r,done:!1},i}function z(){return{value:void 0,done:!0}}function U(e){return!!W(e)}function H(e){return e&&"function"===typeof e.next}function K(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(j&&e[j]||e[N]);if("function"===typeof t)return t}function G(e){return e&&"number"===typeof e.length}function V(e){return null===e||void 0===e?oe():o(e)?e.toSeq():ue(e)}function Y(e){return null===e||void 0===e?oe().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function X(e){return null===e||void 0===e?oe():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function $(e){return(null===e||void 0===e?oe():o(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=M,L.VALUES=P,L.ENTRIES=R,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[B]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},V.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(Y,V),Y.prototype.toKeyedSeq=function(){return this},t(X,V),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},X.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t($,V),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},V.isSeq=ae,V.Keyed=Y,V.Set=$,V.Indexed=X;var J,Q,Z,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function ie(e){this._iterable=e,this.size=e.length||e.size}function re(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function oe(){return J||(J=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():U(e)?new ie(e).fromEntrySeq():"object"===typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(e)||"object"===typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return G(e)?new te(e):H(e)?new re(e):U(e)?new ie(e):void 0}function fe(e,t,n,i){var r=e._cache;if(r){for(var a=r.length-1,o=0;o<=a;o++){var s=r[n?a-o:o];if(!1===t(s[1],i?s[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function de(e,t,n,i){var r=e._cache;if(r){var a=r.length-1,o=0;return new L((function(){var e=r[n?a-o:o];return o++>a?z():q(t,i?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,n)}function he(e,t){return t?pe(t,e,"",{"":e}):ge(e)}function pe(e,t,n,i){return Array.isArray(t)?e.call(i,n,X(t).map((function(n,i){return pe(e,n,i,t)}))):_e(t)?e.call(i,n,Y(t).map((function(n,i){return pe(e,n,i,t)}))):t}function ge(e){return Array.isArray(e)?X(e).map(ge).toList():_e(e)?Y(e).map(ge).toMap():e}function _e(e){return e&&(e.constructor===Object||void 0===e.constructor)}function me(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function Fe(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&me(r[1],e)&&(n||me(r[0],t))}))&&i.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{r=!0;var a=e;e=t,t=a}var f=!0,d=t.__iterate((function(t,i){if(n?!e.has(t):r?!me(t,e.get(i,y)):!me(e.get(i,y),t))return f=!1,!1}));return f&&e.size===d}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function be(e,t){if(!e)throw new Error(t)}function ve(e,t,n){if(!(this instanceof ve))return new ve(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),ti?z():q(e,r,n[t?i-r++:r++])}))},t(ne,Y),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,i=this._keys,r=i.length-1,a=0;a<=r;a++){var o=i[t?r-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,i=this._keys,r=i.length-1,a=0;return new L((function(){var o=i[t?r-a:a];return a++>r?z():q(e,o,n[o])}))},ne.prototype[p]=!0,t(ie,X),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),i=0;if(H(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!H(n))return new L(z);var i=0;return new L((function(){var t=n.next();return t.done?t:q(e,i++,t.value)}))},t(re,X),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,i=this._iterator,r=this._iteratorCache,a=0;a=i.length){var t=n.next();if(t.done)return t;i[r]=t.value}return q(e,r,i[r++])}))},t(ye,X),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return me(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:new ye(this._value,O(t,n)-A(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return me(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},ve.prototype.get=function(e,t){return this.has(e)?this._start+D(this,e)*this._step:t},ve.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?z():q(e,a++,o)}))},ve.prototype.equals=function(e){return e instanceof ve?this._start===e._start&&this._end===e._end&&this._step===e._step:Fe(this,e)},t(ke,n),t(Ee,ke),t(we,ke),t(xe,ke),ke.Keyed=Ee,ke.Indexed=we,ke.Set=xe;var Ce="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),i=65535&(t|=0);return n*i+((e>>>16)*i+n*(t>>>16)<<16>>>0)|0};function De(e){return e>>>1&1073741824|3221225471&e}function Te(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return De(n)}if("string"===t)return e.length>Le?Se(e):Ae(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return Oe(e);if("function"===typeof e.toString)return Ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Se(e){var t=Ue[e];return void 0===t&&(t=Ae(e),ze===qe&&(ze=0,Ue={}),ze++,Ue[e]=t),t}function Ae(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Re,je="function"===typeof WeakMap;je&&(Re=new WeakMap);var Ne=0,Be="__immutablehash__";"function"===typeof Symbol&&(Be=Symbol(Be));var Le=16,qe=255,ze=0,Ue={};function He(e){be(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null===e||void 0===e?rt():We(e)&&!c(e)?e:rt().withMutations((function(t){var n=i(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[Ve])}t(Ke,Ee),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return at(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,y,(function(){return t}))},Ke.prototype.remove=function(e){return at(this,e,y)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return y}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var i=_t(this,kn(e),t,n);return i===y?void 0:i},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):rt()},Ke.prototype.merge=function(){return dt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return dt(this,ht,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,pt(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Ut(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Ut(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,i=0;return this._root&&this._root.iterate((function(t){return i++,e(t[1],t[0],n)}),t),i},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?it(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=We;var Ge,Ve="@@__IMMUTABLE_MAP__@@",Ye=Ke.prototype;function Xe(e,t){this.ownerID=e,this.entries=t}function $e(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ze(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return q(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function it(e,t,n,i){var r=Object.create(Ye);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function rt(){return Ge||(Ge=it(0))}function at(e,t,n){var i,r;if(e._root){var a=k(b),o=k(v);if(i=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;r=e.size+(a.value?n===y?-1:1:0)}else{if(n===y)return e;r=1,i=new Xe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?it(r,i):rt()}function ot(e,t,n,i,r,a,o,s){return e?e.update(t,n,i,r,a,o,s):a===y?e:(E(s),E(o),new Ze(t,i,[r,a]))}function st(e){return e.constructor===Ze||e.constructor===Qe}function lt(e,t,n,i,r){if(e.keyHash===i)return new Qe(t,i,[e.entry,r]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&F,s=(0===n?i:i>>>n)&F;return new $e(t,1<>>=1)o[s]=1&n?t[a++]:void 0;return o[i]=r,new Je(e,a+1,o)}function dt(e,t,n){for(var r=[],a=0;a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ft(e,t,n,i){var r=i?e:x(e);return r[t]=n,r}function yt(e,t,n,i){var r=e.length+1;if(i&&t+1===r)return e[t]=n,e;for(var a=new Array(r),o=0,s=0;s=vt)return ut(e,l,i,r);var d=e&&e===this.ownerID,h=d?l:x(l);return f?s?u===c-1?h.pop():h[u]=h.pop():h[u]=[i,r]:h.push([i,r]),d?(this.entries=h,this):new Xe(e,h)}},$e.prototype.get=function(e,t,n,i){void 0===t&&(t=Te(n));var r=1<<((0===e?t:t>>>e)&F),a=this.bitmap;return 0===(a&r)?i:this.nodes[mt(a&r-1)].get(e+_,t,n,i)},$e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=Te(i));var s=(0===t?n:n>>>t)&F,l=1<=kt)return ft(e,d,u,s,p);if(c&&!p&&2===d.length&&st(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&st(p))return p;var g=e&&e===this.ownerID,m=c?p?u:u^l:u|l,b=c?p?Ft(d,f,p,g):bt(d,f,g):yt(d,f,p,g);return g?(this.bitmap=m,this.nodes=b,this):new $e(e,m,b)},Je.prototype.get=function(e,t,n,i){void 0===t&&(t=Te(n));var r=(0===e?t:t>>>e)&F,a=this.nodes[r];return a?a.get(e+_,t,n,i):i},Je.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=Te(i));var s=(0===t?n:n>>>t)&F,l=r===y,u=this.nodes,c=u[s];if(l&&!c)return this;var f=ot(c,e,t+_,n,i,r,a,o);if(f===c)return this;var d=this.count;if(c){if(!f&&--d0&&i=0&&e>>t&F;if(i>=this.array.length)return new Tt([],e);var r,a=0===i;if(t>0){var o=this.array[i];if((r=o&&o.removeBefore(e,t-_,n))===o&&a)return this}if(a&&!r)return this;var s=Nt(this,e);if(!a)for(var l=0;l>>t&F;if(r>=this.array.length)return this;if(t>0){var a=this.array[r];if((i=a&&a.removeAfter(e,t-_,n))===a&&r===this.array.length-1)return this}var o=Nt(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var St,At,Ot={};function It(e,t){var n=e._origin,i=e._capacity,r=zt(i),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,o){var s=o===r?a&&a.array:e&&e.array,l=o>n?0:n-o,u=i-o;return u>m&&(u=m),function(){if(l===u)return Ot;var e=t?--u:l++;return s&&s[e]}}function l(e,r,a){var s,l=e&&e.array,u=a>n?0:n-a>>r,c=1+(i-a>>r);return c>m&&(c=m),function(){for(;;){if(s){var e=s();if(e!==Ot)return e;s=null}if(u===c)return Ot;var n=t?--c:u++;s=o(l&&l[n],r-_,a+(n<=e.size||t<0)return e.withMutations((function(e){t<0?Lt(e,t).set(0,n):Lt(e,0,t+1).set(t,n)}));t+=e._origin;var i=e._tail,r=e._root,a=k(v);return t>=zt(e._capacity)?i=jt(i,e.__ownerID,0,t,n,a):r=jt(r,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=r,e._tail=i,e.__hash=void 0,e.__altered=!0,e):Mt(e._origin,e._capacity,e._level,r,i):e}function jt(e,t,n,i,r,a){var o,s=i>>>n&F,l=e&&s0){var u=e&&e.array[s],c=jt(u,t,n-_,i,r,a);return c===u?e:((o=Nt(e,t)).array[s]=c,o)}return l&&e.array[s]===r?e:(E(a),o=Nt(e,t),void 0===r&&s===o.array.length-1?o.array.pop():o.array[s]=r,o)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new Tt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=zt(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>i&F],i-=_;return n}}function Lt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var i=e.__ownerID||new w,r=e._origin,a=e._capacity,o=r+t,s=void 0===n?a:n<0?a+n:r+n;if(o===r&&s===a)return e;if(o>=s)return e.clear();for(var l=e._level,u=e._root,c=0;o+c<0;)u=new Tt(u&&u.array.length?[void 0,u]:[],i),c+=1<<(l+=_);c&&(o+=c,r+=c,s+=c,a+=c);for(var f=zt(a),d=zt(s);d>=1<f?new Tt([],i):h;if(h&&d>f&&o_;m-=_){var y=f>>>m&F;g=g.array[y]=Nt(g.array[y],i)}g.array[f>>>_&F]=h}if(s=d)o-=d,s-=d,l=_,u=null,p=p&&p.removeBefore(i,0,o);else if(o>r||d>>l&F;if(b!==d>>>l&F)break;b&&(c+=(1<r&&(u=u.removeBefore(i,l,o-c)),u&&da&&(a=u.size),o(l)||(u=u.map((function(e){return he(e)}))),i.push(u)}return a>e.size&&(e=e.setSize(a)),gt(e,t,i)}function zt(e){return e>>_<<_}function Ut(e){return null===e||void 0===e?Wt():Ht(e)?e:Wt().withMutations((function(t){var n=i(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ht(e){return We(e)&&c(e)}function Kt(e,t,n,i){var r=Object.create(Ut.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=i,r}function Wt(){return At||(At=Kt(rt(),Pt()))}function Gt(e,t,n){var i,r,a=e._map,o=e._list,s=a.get(t),l=void 0!==s;if(n===y){if(!l)return e;o.size>=m&&o.size>=2*a.size?(i=(r=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=r.__ownerID=e.__ownerID)):(i=a.remove(t),r=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return e;i=a,r=o.set(s,[t,n])}else i=a.set(t,o.size),r=o.set(o.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=r,e.__hash=void 0,e):Kt(i,r)}function Vt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){this._iter=e,this.size=e.size}function $t(e){this._iter=e,this.size=e.size}function Jt(e){var t=yn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=bn,t.__iterateUncached=function(t,n){var i=this;return e.__iterate((function(e,n){return!1!==t(n,e,i)}),n)},t.__iteratorUncached=function(t,n){if(t===R){var i=e.__iterator(t,n);return new L((function(){var e=i.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===P?M:P,n)},t}function Qt(e,t,n){var i=yn(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,r){var a=e.get(i,y);return a===y?r:t.call(n,a,i,e)},i.__iterateUncached=function(i,r){var a=this;return e.__iterate((function(e,r,o){return!1!==i(t.call(n,e,r,o),r,a)}),r)},i.__iteratorUncached=function(i,r){var a=e.__iterator(R,r);return new L((function(){var r=a.next();if(r.done)return r;var o=r.value,s=o[0];return q(i,s,t.call(n,o[1],s,e),r)}))},i}function Zt(e,t){var n=yn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Jt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,i){return e.get(t?n:-1-n,i)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=bn,n.__iterate=function(t,n){var i=this;return e.__iterate((function(e,n){return t(e,n,i)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,i){var r=yn(e);return i&&(r.has=function(i){var r=e.get(i,y);return r!==y&&!!t.call(n,r,i,e)},r.get=function(i,r){var a=e.get(i,y);return a!==y&&t.call(n,a,i,e)?a:r}),r.__iterateUncached=function(r,a){var o=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,r(e,i?a:s-1,o)}),a),s},r.__iteratorUncached=function(r,a){var o=e.__iterator(R,a),s=0;return new L((function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return q(r,i?u:s++,c,a)}}))},r}function tn(e,t,n){var i=Ke().asMutable();return e.__iterate((function(r,a){i.update(t.call(n,r,a,e),0,(function(e){return e+1}))})),i.asImmutable()}function nn(e,t,n){var i=s(e),r=(c(e)?Ut():Ke()).asMutable();e.__iterate((function(a,o){r.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(i?[o,a]:a),e}))}));var a=Fn(e);return r.map((function(t){return gn(e,a(t))}))}function rn(e,t,n,i){var r=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),S(t,n,r))return e;var a=A(t,r),o=O(n,r);if(a!==a||o!==o)return rn(e.toSeq().cacheResult(),t,n,i);var s,l=o-a;l===l&&(s=l<0?0:l);var u=yn(e);return u.size=0===s?s:e.size&&s||void 0,!i&&ae(e)&&s>=0&&(u.get=function(t,n){return(t=D(this,t))>=0&&ts)return z();var e=r.next();return i||t===P?e:q(t,l-1,t===M?void 0:e.value[1],e)}))},u}function an(e,t,n){var i=yn(e);return i.__iterateUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterate(i,r);var o=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++o&&i(e,r,a)})),o},i.__iteratorUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterator(i,r);var o=e.__iterator(R,r),s=!0;return new L((function(){if(!s)return z();var e=o.next();if(e.done)return e;var r=e.value,l=r[0],u=r[1];return t.call(n,u,l,a)?i===R?e:q(i,l,u,e):(s=!1,z())}))},i}function on(e,t,n,i){var r=yn(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var s=!0,l=0;return e.__iterate((function(e,a,u){if(!s||!(s=t.call(n,e,a,u)))return l++,r(e,i?a:l-1,o)})),l},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var s=e.__iterator(R,a),l=!0,u=0;return new L((function(){var e,a,c;do{if((e=s.next()).done)return i||r===P?e:q(r,u++,r===M?void 0:e.value[1],e);var f=e.value;a=f[0],c=f[1],l&&(l=t.call(n,c,a,o))}while(l);return r===R?e:q(r,a,c,e)}))},r}function sn(e,t){var n=s(e),r=[e].concat(t).map((function(e){return o(e)?n&&(e=i(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var a=r[0];if(a===e||n&&s(a)||l(e)&&l(a))return a}var u=new te(r);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function ln(e,t,n){var i=yn(e);return i.__iterateUncached=function(i,r){var a=0,s=!1;function l(e,u){var c=this;e.__iterate((function(e,r){return(!t||u0}function pn(e,t,i){var r=yn(e);return r.size=new te(i).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,i=this.__iterator(P,t),r=0;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var a=i.map((function(e){return e=n(e),K(r?e.reverse():e)})),o=0,s=!1;return new L((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?z():q(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function gn(e,t){return ae(e)?t:e.constructor(t)}function _n(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function mn(e){return He(e.size),C(e)}function Fn(e){return s(e)?i:l(e)?r:a}function yn(e){return Object.create((s(e)?Y:l(e)?X:$).prototype)}function bn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function vn(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yn(e,t)},Hn.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;He(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yn(t,n)},Hn.prototype.pop=function(){return this.slice(1)},Hn.prototype.unshift=function(){return this.push.apply(this,arguments)},Hn.prototype.unshiftAll=function(e){return this.pushAll(e)},Hn.prototype.shift=function(){return this.pop.apply(this,arguments)},Hn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Xn()},Hn.prototype.slice=function(e,t){if(S(e,t,this.size))return this;var n=A(e,this.size);if(O(t,this.size)!==this.size)return we.prototype.slice.call(this,e,t);for(var i=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=i,this._head=r,this.__hash=void 0,this.__altered=!0,this):Yn(i,r)},Hn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Hn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,i=this._head;i&&!1!==e(i.value,n++,this);)i=i.next;return n},Hn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,i=this._head;return new L((function(){if(i){var t=i.value;return i=i.next,q(e,n++,t)}return z()}))},Hn.isStack=Kn;var Wn,Gn="@@__IMMUTABLE_STACK__@@",Vn=Hn.prototype;function Yn(e,t,n,i){var r=Object.create(Vn);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Xn(){return Wn||(Wn=Yn(0))}function $n(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Vn[Gn]=!0,Vn.withMutations=Ye.withMutations,Vn.asMutable=Ye.asMutable,Vn.asImmutable=Ye.asImmutable,Vn.wasAltered=Ye.wasAltered,n.Iterator=L,$n(n,{toArray:function(){He(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Yt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){He(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ut(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return Sn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Xt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Hn(s(this)?this.valueSeq():this)},toList:function(){return wt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return me(t,e)}))},entries:function(){return this.__iterator(R)},every:function(e,t){He(this.size);var n=!0;return this.__iterate((function(i,r,a){if(!e.call(t,i,r,a))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var i=this.findEntry(e,t);return i?i[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(i,r,a){if(e.call(t,i,r,a))return n=[r,i],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return He(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){He(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(i){n?n=!1:t+=e,t+=null!==i&&void 0!==i?i.toString():""})),t},keys:function(){return this.__iterator(M)},map:function(e,t){return gn(this,Qt(this,e,t))},reduce:function(e,t,n){var i,r;return He(this.size),arguments.length<2?r=!0:i=t,this.__iterate((function(t,a,o){r?(r=!1,i=t):i=e.call(n,i,t,a,o)})),i},reduceRight:function(e,t,n){var i=this.toKeyedSeq().reverse();return i.reduce.apply(i,arguments)},reverse:function(){return gn(this,Zt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(ti(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(P)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return Fe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ei).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ti(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(T)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,ln(this,e,!0))},fromEntrySeq:function(){return new $t(this)},get:function(e,t){return this.find((function(t,n){return me(n,e)}),void 0,t)},getIn:function(e,t){for(var n,i=this,r=kn(e);!(n=r.next()).done;){var a=n.value;if((i=i&&i.get?i.get(a,y):y)===y)return t}return i},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e="function"===typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Zn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?ni(e):ai)},minBy:function(e,t){return dn(this,t?ni(t):ai,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ti(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,an(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ti(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=oi(this))}});var Jn=n.prototype;Jn[f]=!0,Jn[B]=Jn.values,Jn.__toJS=Jn.toArray,Jn.__toStringMapper=ii,Jn.inspect=Jn.toSource=function(){return this.toString()},Jn.chain=Jn.flatMap,Jn.contains=Jn.includes,function(){try{Object.defineProperty(Jn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn,this.size}}})}catch(e){}}(),$n(i,{flip:function(){return gn(this,Jt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return me(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return me(t,e)}))},mapEntries:function(e,t){var n=this,i=0;return gn(this,this.toSeq().map((function(r,a){return e.call(t,[a,r],i++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(i,r){return e.call(t,i,r,n)})).flip())}});var Qn=i.prototype;function Zn(e,t){return t}function ei(e,t){return[t,e]}function ti(e){return function(){return!e.apply(this,arguments)}}function ni(e){return function(){return-e.apply(this,arguments)}}function ii(e){return"string"===typeof e?JSON.stringify(e):e}function ri(){return x(arguments)}function ai(e,t){return et?-1:0}function oi(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),i=t?1:0;return si(e.__iterate(n?t?function(e,t){i=31*i+li(Te(e),Te(t))|0}:function(e,t){i=i+li(Te(e),Te(t))|0}:t?function(e){i=31*i+Te(e)|0}:function(e){i=i+Te(e)|0}),i)}function si(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=De((t=Ce(t^t>>>13,3266489909))^t>>>16)}function li(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Qn[d]=!0,Qn[B]=Jn.entries,Qn.__toJS=Jn.toObject,Qn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+ii(e)},$n(r,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Zt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var i=this.slice(0,e);return gn(this,1===n?i:i.concat(x(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,ln(this,e,!1))},get:function(e,t){return(e=D(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=D(this,e))>=0&&(void 0!==this.size?this.size===1/0||e2?n-2:0),a=2;a0)return r.getInlineStyleAt(i-1);if(r.getLength())return r.getInlineStyleAt(0);return y(e,n)}(t,n):function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),r=e.getBlockForKey(n);if(i0)return r.getInlineStyleAt(i-1);return y(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return m(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),m(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),i=n.getKey(),r=n.getLength();return t.acceptSelection(e,new l({anchorKey:i,anchorOffset:r,focusKey:i,focusOffset:r,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var a=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var o=e.getSelection(),l=e.getCurrentContent(),u=e.getUndoStack(),c=n;o!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,i)?(u=u.push(l),c=c.set("selectionBefore",o)):"insert-characters"!==i&&"backspace-character"!==i&&"delete-character"!==i||(c=c.set("selectionBefore",l.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(i)&&(f=null);var h={currentContent:c,directionMap:a,undoStack:u,redoStack:d(),lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:f};return t.set(e,h)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=s.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=s.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:e.getUndoStack().push(r),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:i.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function m(e,t,n){return _.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function F(e,t){return e.getBlockMap().map((function(n){return a.generate(e,n,t)})).toOrderedMap()}function y(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):c()}e.exports=_},function(e,t,n){"use strict";var i=n(924),r=n(145),a=n(58),o=n(940),s=n(103),l=n(249),u=n(251),c=n(378),f=n(941),d=n(394),h=n(184),p=n(44),g=n(376),_=n(19),m=n(257),F=n(1006),y=n(405),b=n(185),v=n(1007),k=n(1010),E=n(69),w=n(406),x=n(1016),C={Editor:f,EditorBlock:d,EditorState:_,CompositeDecorator:o,Entity:h,EntityInstance:g,BlockMapBuilder:r,CharacterMetadata:a,ContentBlock:s,ContentState:l,RawDraftContentState:F,SelectionState:b,AtomicBlockUtils:i,KeyBindingUtil:m,Modifier:p,RichUtils:y,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:c,convertFromHTML:n(403),convertFromRaw:k,convertToRaw:v,genKey:E,getDefaultKeyBinding:w,getVisibleSelectionRect:x};e.exports=C},function(e,t,n){var i=n(53);e.exports=function(e){return i(e.length)}},function(e,t,n){var i=n(84),r=n(15),a=n(123),o=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(324),t),r(n(752),t),r(n(753),t)},function(e,t,n){"use strict";n.r(t),n.d(t,"CacheProvider",(function(){return S})),n.d(t,"ThemeContext",(function(){return T})),n.d(t,"withEmotionCache",(function(){return A})),n.d(t,"css",(function(){return G})),n.d(t,"ClassNames",(function(){return Z})),n.d(t,"Global",(function(){return Y})),n.d(t,"createElement",(function(){return V})),n.d(t,"jsx",(function(){return V})),n.d(t,"keyframes",(function(){return $}));var i=n(0);var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;th)&&(L=(U=U.replace(" ",":")).length),0i&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:return t.replace(_,"$1"+e.trim());case 58:return e.trim()+t.replace(_,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102i.charCodeAt(0)&&(i=i.trim()),i=[i],0=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var _=/[A-Z]|^ms/g,m=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F=function(e){return 45===e.charCodeAt(1)},y=function(e){return null!=e&&"boolean"!==typeof e},b=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return F(e)?e:e.replace(_,"-$&").toLowerCase()})),v=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(m,(function(e,t,n){return E={name:t,styles:n,next:E},t}))}return 1===g[e]||F(e)||"number"!==typeof t||0===t?t:t+"px"};function k(e,t,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return E={name:n.name,styles:n.styles,next:E},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)E={name:r.name,styles:r.styles,next:E},r=r.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},j={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var N=/[A-Z]|^ms/g,B=/_EMO_([^_]+?)_([^]*?)_EMO_/g,L=function(e){return 45===e.charCodeAt(1)},q=function(e){return null!=e&&"boolean"!==typeof e},z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return L(e)?e:e.replace(N,"-$&").toLowerCase()})),U=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(B,(function(e,t,n){return K={name:t,styles:n,next:K},t}))}return 1===j[e]||L(e)||"number"!==typeof t||0===t?t:t+"px"};function H(e,t,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return K={name:n.name,styles:n.styles,next:K},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)K={name:r.name,styles:r.styles,next:K},r=r.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;rw;w++)if((h||w in v)&&(y=k(F=v[w],w,b),e))if(t)C[w]=y;else if(y)switch(e){case 3:return!0;case 5:return F;case 6:return w;case 2:u(C,F)}else switch(e){case 4:return!1;case 7:u(C,F)}return f?-1:r||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(e,t,n){var i=n(16),r=n(10),a=n(17),o=n(154),s=n(211),l=o("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=a(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},function(e,t,n){var i=n(271);e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},function(e,t,n){var i=n(22),r=n(6),a=n(7),o=n(92),s=n(209),l=n(21),u=n(60),c=n(133),f=n(134),d=n(156),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var _,m,F,y,b,v,k,E=n&&n.that,w=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),D=!(!n||!n.INTERRUPTED),T=i(t,E),S=function(e){return _&&d(_,"normal",e),new p(!0,e)},A=function(e){return w?(a(e),D?T(e[0],e[1],S):T(e[0],e[1])):D?T(e,S):T(e)};if(x)_=e.iterator;else if(C)_=e;else{if(!(m=f(e)))throw h(o(e)+" is not iterable");if(s(m)){for(F=0,y=l(e);y>F;F++)if((b=A(e[F]))&&u(g,b))return b;return new p(!1)}_=c(e,m)}for(v=x?e.next:_.next;!(k=r(v,_)).done;){try{b=A(k.value)}catch(O){d(_,"throw",O)}if("object"==typeof b&&b&&u(g,b))return b}return new p(!1)}},function(e,t,n){var i=n(4),r=Set.prototype;e.exports={Set:Set,add:i(r.add),has:i(r.has),remove:i(r.delete),proto:r,$has:r.has,$keys:r.keys}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,a=t.children||[],o=a.length,s=[],l=-1;for(;++l3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",r=h(e,t),a=p(r,t);return u(a,a.getSelectionAfter(),n,i)},removeRange:function(e,t,n){var i,r,a,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),i=t.getAnchorKey(),r=t.getFocusKey(),a=e.getBlockForKey(i),s=e.getBlockForKey(r);var l=t.getStartOffset(),u=t.getEndOffset(),c=a.getEntityAt(l),f=s.getEntityAt(u-1);if(i===r&&c&&c===f){var d=o(e.getEntityMap(),a,s,t,n);return p(e,d)}var g=h(e,t);return p(g,t)},splitBlock:function(e,t){var n=h(e,t),i=p(n,t);return g(i,i.getSelectionAfter())},applyInlineStyle:function(e,t,n){return r.add(e,t,n)},removeInlineStyle:function(e,t,n){return r.remove(e,t,n)},setBlockType:function(e,t,n){return d(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var i=h(e,t);return a(i,t,n)}};e.exports=m},function(e,t,n){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var i=n(944),r=n(947),a=n(948),o=n(949);function s(e,t,n,i){if(e===n)return!0;if(!n.startsWith(e))return!1;var a=n.slice(e.length);return!!t&&(a=i?i(a):a,r.contains(a,t))}function l(e){return"Windows"===i.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return s(i.browserName,i.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(i.browserArchitecture,null,e)},isDevice:function(e){return s(i.deviceName,null,e)},isEngine:function(e){return s(i.engineName,i.engineVersion,e)},isPlatform:function(e){return s(i.platformName,i.platformFullVersion,e,l)},isPlatformArchitecture:function(e){return s(i.platformArchitecture,null,e)}};e.exports=a(u,o)},function(e,t,n){var i=n(151),r=n(31);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(4),r=i({}.toString),a=i("".slice);e.exports=function(e){return a(r(e),8,-1)}},function(e,t,n){var i=n(9),r=n(27),a=n(65);e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(198),r=n(27);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},function(e,t,n){var i=n(63).has;e.exports=function(e){return i(e),e}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(40),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){var i,r=n(7),a=n(204),o=n(202),s=n(126),l=n(272),u=n(153),c=n(154),f="prototype",d="script",h=c("IE_PROTO"),p=function(){},g=function(e){return"<"+d+">"+e+""},_=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}m="undefined"!=typeof document?document.domain&&i?_(i):function(){var e,t=u("iframe"),n="java"+d+":";return t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F}():_(i);for(var e=o.length;e--;)delete m[f][o[e]];return m()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[f]=r(e),n=new p,p[f]=null,n[h]=e):n=m(),void 0===t?n:a.f(n,t)}},function(e,t,n){var i=n(123),r=Function.prototype,a=r.apply,o=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(a):function(){return o.apply(a,arguments)})},function(e,t,n){var i=n(4),r=n(87),a=n(42),o=a.Set,s=a.proto,l=i(s.forEach),u=i(s.keys),c=u(new o).next;e.exports=function(e,t,n){return n?r(u(e),t,c):l(e,t)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var i;null!==n&&void 0!==n||"object"===typeof t&&!Array.isArray(t)||(n=t,t={});i=Object.assign({type:String(e)},t),Array.isArray(n)?i.children=n:null!==n&&void 0!==n&&(i.value=String(n));return i}},function(e,t,n){"use strict";var i=n(12),r=i.Map,a=i.OrderedSet,o=i.Record,s=a(),l={style:s,entity:null},u=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},i.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return i.create(n)},i.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return i.create(n)},i.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return i.create(n)},i.create=function(e){if(!e)return c;var t=r({style:s,entity:null}).merge(e),n=f.get(t);if(n)return n;var a=new i(t);return f=f.set(t,a),a},i.fromJS=function(e){var t=e.style,n=e.entity;return new i({style:Array.isArray(t)?a(t):t,entity:Array.isArray(n)?a(n):n})},i}(o(l)),c=new u,f=r([[r(l),c]]);u.EMPTY=c,e.exports=u},function(e,t,n){"use strict";var i=n(58),r=n(146),a=n(12),o=a.List,s=a.Map,l=a.OrderedSet,u=a.Record,c=a.Repeat,f=l(),d={parent:null,characterList:o(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:o(),prevSibling:null,nextSibling:null},h=function(e,t){return e.getStyle()===t.getStyle()},p=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){var t,n;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=o(c(i.EMPTY,n.length))),e}(t))||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){r(this.getCharacterList(),h,e,t)},s.findEntityRanges=function(e,t){r(this.getCharacterList(),p,e,t)},a}(u(d));e.exports=g},function(e,t,n){var i=n(4);e.exports=i({}.isPrototypeOf)},function(e,t,n){var i=n(15),r=n(32);e.exports=function(e,t){var n=e[t];return r(n)?void 0:i(n)}},function(e,t,n){var i=n(27).f,r=n(16),a=n(8)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,a)&&i(e,a,{configurable:!0,value:t})}},function(e,t,n){var i=n(4),r=Map.prototype;e.exports={Map:Map,set:i(r.set),get:i(r.get),has:i(r.has),remove:i(r.delete),proto:r}},function(e,t,n){var i=n(4),r=n(87),a=n(63),o=a.Map,s=a.proto,l=i(s.forEach),u=i(s.entries),c=u(new o).next;e.exports=function(e,t,n){return n?r(u(e),(function(e){return t(e[1],e[0])}),c):l(e,t)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(203),r=n(10),a=n(48),o=n(8)("toStringTag"),s=Object,l="Arguments"==a(function(){return arguments}());e.exports=i?a:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),o))?n:l?a(t):"Object"==(i=a(t))&&r(t.callee)?"Arguments":i}},function(e,t,n){var i=n(8),r=n(54),a=n(27).f,o=i("unscopables"),s=Array.prototype;void 0==s[o]&&a(s,o,{configurable:!0,value:r(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,n){"use strict";var i=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",MENUITEM:"menuitem",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"},a=t.SPECIAL_ELEMENTS=Object.create(null);a[i.HTML]=Object.create(null),a[i.HTML][r.ADDRESS]=!0,a[i.HTML][r.APPLET]=!0,a[i.HTML][r.AREA]=!0,a[i.HTML][r.ARTICLE]=!0,a[i.HTML][r.ASIDE]=!0,a[i.HTML][r.BASE]=!0,a[i.HTML][r.BASEFONT]=!0,a[i.HTML][r.BGSOUND]=!0,a[i.HTML][r.BLOCKQUOTE]=!0,a[i.HTML][r.BODY]=!0,a[i.HTML][r.BR]=!0,a[i.HTML][r.BUTTON]=!0,a[i.HTML][r.CAPTION]=!0,a[i.HTML][r.CENTER]=!0,a[i.HTML][r.COL]=!0,a[i.HTML][r.COLGROUP]=!0,a[i.HTML][r.DD]=!0,a[i.HTML][r.DETAILS]=!0,a[i.HTML][r.DIR]=!0,a[i.HTML][r.DIV]=!0,a[i.HTML][r.DL]=!0,a[i.HTML][r.DT]=!0,a[i.HTML][r.EMBED]=!0,a[i.HTML][r.FIELDSET]=!0,a[i.HTML][r.FIGCAPTION]=!0,a[i.HTML][r.FIGURE]=!0,a[i.HTML][r.FOOTER]=!0,a[i.HTML][r.FORM]=!0,a[i.HTML][r.FRAME]=!0,a[i.HTML][r.FRAMESET]=!0,a[i.HTML][r.H1]=!0,a[i.HTML][r.H2]=!0,a[i.HTML][r.H3]=!0,a[i.HTML][r.H4]=!0,a[i.HTML][r.H5]=!0,a[i.HTML][r.H6]=!0,a[i.HTML][r.HEAD]=!0,a[i.HTML][r.HEADER]=!0,a[i.HTML][r.HGROUP]=!0,a[i.HTML][r.HR]=!0,a[i.HTML][r.HTML]=!0,a[i.HTML][r.IFRAME]=!0,a[i.HTML][r.IMG]=!0,a[i.HTML][r.INPUT]=!0,a[i.HTML][r.LI]=!0,a[i.HTML][r.LINK]=!0,a[i.HTML][r.LISTING]=!0,a[i.HTML][r.MAIN]=!0,a[i.HTML][r.MARQUEE]=!0,a[i.HTML][r.MENU]=!0,a[i.HTML][r.META]=!0,a[i.HTML][r.NAV]=!0,a[i.HTML][r.NOEMBED]=!0,a[i.HTML][r.NOFRAMES]=!0,a[i.HTML][r.NOSCRIPT]=!0,a[i.HTML][r.OBJECT]=!0,a[i.HTML][r.OL]=!0,a[i.HTML][r.P]=!0,a[i.HTML][r.PARAM]=!0,a[i.HTML][r.PLAINTEXT]=!0,a[i.HTML][r.PRE]=!0,a[i.HTML][r.SCRIPT]=!0,a[i.HTML][r.SECTION]=!0,a[i.HTML][r.SELECT]=!0,a[i.HTML][r.SOURCE]=!0,a[i.HTML][r.STYLE]=!0,a[i.HTML][r.SUMMARY]=!0,a[i.HTML][r.TABLE]=!0,a[i.HTML][r.TBODY]=!0,a[i.HTML][r.TD]=!0,a[i.HTML][r.TEMPLATE]=!0,a[i.HTML][r.TEXTAREA]=!0,a[i.HTML][r.TFOOT]=!0,a[i.HTML][r.TH]=!0,a[i.HTML][r.THEAD]=!0,a[i.HTML][r.TITLE]=!0,a[i.HTML][r.TR]=!0,a[i.HTML][r.TRACK]=!0,a[i.HTML][r.UL]=!0,a[i.HTML][r.WBR]=!0,a[i.HTML][r.XMP]=!0,a[i.MATHML]=Object.create(null),a[i.MATHML][r.MI]=!0,a[i.MATHML][r.MO]=!0,a[i.MATHML][r.MN]=!0,a[i.MATHML][r.MS]=!0,a[i.MATHML][r.MTEXT]=!0,a[i.MATHML][r.ANNOTATION_XML]=!0,a[i.SVG]=Object.create(null),a[i.SVG][r.TITLE]=!0,a[i.SVG][r.FOREIGN_OBJECT]=!0,a[i.SVG][r.DESC]=!0},function(e,t,n){"use strict";var i={},r=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||i.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*r).toString(32);return i[e]=!0,e}},function(e,t){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,n){var i=n(281),r=n(7),a=n(282);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(o){}return function(n,i){return r(n),a(i),t?e(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){var i=n(60),r=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw r("Incorrect invocation")}},function(e,t,n){"use strict";var i=n(1),r=n(5),a=n(6),o=n(9),s=n(226),l=n(18),u=n(214),c=n(72),f=n(65),d=n(49),h=n(219),p=n(53),g=n(287),_=n(311),m=n(79),F=n(16),y=n(66),b=n(11),v=n(107),k=n(54),E=n(60),w=n(71),x=n(81).f,C=n(312),D=n(38).forEach,T=n(98),S=n(50),A=n(27),O=n(35),I=n(29),M=n(162),P=I.get,R=I.set,j=I.enforce,N=A.f,B=O.f,L=Math.round,q=r.RangeError,z=u.ArrayBuffer,U=z.prototype,H=u.DataView,K=l.NATIVE_ARRAY_BUFFER_VIEWS,W=l.TYPED_ARRAY_TAG,G=l.TypedArray,V=l.TypedArrayPrototype,Y=l.aTypedArrayConstructor,X=l.isTypedArray,$="BYTES_PER_ELEMENT",J="Wrong length",Q=function(e,t){Y(e);for(var n=0,i=t.length,r=new e(i);i>n;)r[n]=t[n++];return r},Z=function(e,t){S(e,t,{configurable:!0,get:function(){return P(this)[t]}})},ee=function(e){var t;return E(U,e)||"ArrayBuffer"==(t=y(e))||"SharedArrayBuffer"==t},te=function(e,t){return X(e)&&!v(t)&&t in e&&h(+t)&&t>=0},ne=function(e,t){return t=m(t),te(e,t)?f(2,e[t]):B(e,t)},ie=function(e,t,n){return t=m(t),!(te(e,t)&&b(n)&&F(n,"value"))||F(n,"get")||F(n,"set")||n.configurable||F(n,"writable")&&!n.writable||F(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};o?(K||(O.f=ne,A.f=ie,Z(V,"buffer"),Z(V,"byteOffset"),Z(V,"byteLength"),Z(V,"length")),i({target:"Object",stat:!0,forced:!K},{getOwnPropertyDescriptor:ne,defineProperty:ie}),e.exports=function(e,t,n){var o=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,f="set"+e,h=r[l],m=h,F=m&&m.prototype,y={},v=function(e,t){N(e,t,{get:function(){return function(e,t){var n=P(e);return n.view[u](t*o+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var r=P(e);n&&(i=(i=L(i))<0?0:i>255?255:255&i),r.view[f](t*o+r.byteOffset,i,!0)}(this,t,e)},enumerable:!0})};K?s&&(m=t((function(e,t,n,i){return c(e,F),M(b(t)?ee(t)?void 0!==i?new h(t,_(n,o),i):void 0!==n?new h(t,_(n,o)):new h(t):X(t)?Q(m,t):a(C,m,t):new h(g(t)),e,m)})),w&&w(m,G),D(x(h),(function(e){e in m||d(m,e,h[e])})),m.prototype=F):(m=t((function(e,t,n,i){c(e,F);var r,s,l,u=0,f=0;if(b(t)){if(!ee(t))return X(t)?Q(m,t):a(C,m,t);r=t,f=_(n,o);var d=t.byteLength;if(void 0===i){if(d%o)throw q(J);if((s=d-f)<0)throw q(J)}else if((s=p(i)*o)+f>d)throw q(J);l=s/o}else l=g(t),r=new z(s=l*o);for(R(e,{buffer:r,byteOffset:f,byteLength:s,length:l,view:new H(r)});u=a)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return e}})),l=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),F(i.showHidden)&&(i.showHidden=!1),F(i.depth)&&(i.depth=2),F(i.colors)&&(i.colors=!1),F(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=l),c(i,e,i.depth)}function l(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function u(e,t){return e}function c(e,n,i){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return m(r)||(r=c(e,r,i)),r}var a=function(e,t){if(F(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(_(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),k(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(n);if(0===o.length){if(E(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(y(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(v(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return f(n)}var u,b="",w=!1,x=["{","}"];(h(n)&&(w=!0,x=["[","]"]),E(n))&&(b=" [Function"+(n.name?": "+n.name:"")+"]");return y(n)&&(b=" "+RegExp.prototype.toString.call(n)),v(n)&&(b=" "+Date.prototype.toUTCString.call(n)),k(n)&&(b=" "+f(n)),0!==o.length||w&&0!=n.length?i<0?y(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=w?function(e,t,n,i,r){for(var a=[],o=0,s=t.length;o=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(i>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,b,x)):x[0]+b+x[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,i,r,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),D(i,r)||(o="["+r+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),F(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"===typeof e}function g(e){return null===e}function _(e){return"number"===typeof e}function m(e){return"string"===typeof e}function F(e){return void 0===e}function y(e){return b(e)&&"[object RegExp]"===w(e)}function b(e){return"object"===typeof e&&null!==e}function v(e){return b(e)&&"[object Date]"===w(e)}function k(e){return b(e)&&("[object Error]"===w(e)||e instanceof Error)}function E(e){return"function"===typeof e}function w(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(F(a)&&(a=Object({NODE_ENV:"production",PUBLIC_URL:"/amazon-connect/amazon-connect-chat-interface"}).NODE_DEBUG||""),n=n.toUpperCase(),!o[n])if(new RegExp("\\b"+n+"\\b","i").test(a)){var i=e.pid;o[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,i,e)}}else o[n]=function(){};return o[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=p,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=_,t.isString=m,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=F,t.isRegExp=y,t.isObject=b,t.isDate=v,t.isError=k,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(782);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){(function(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");[e.getDate(),C[e.getMonth()],t].join(" ")})(),t.format.apply(t,arguments)},t.inherits=n(783),t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var T="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!==typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,i=new Promise((function(e,i){t=e,n=i})),r=[],a=0;a0&&i[0]<4?1:+(i[0]+i[1])),!r&&o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},function(e,t,n){var i=n(270),r=n(202).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){var i=n(40),r=Math.max,a=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):a(n,t)}},function(e,t,n){"use strict";var i=n(79),r=n(27),a=n(65);e.exports=function(e,t,n){var o=i(t);o in e?r.f(e,o,a(0,n)):e[o]=n}},function(e,t,n){var i=n(48),r=n(4);e.exports=function(e){if("Function"===i(e))return r(e)}},function(e,t,n){var i=n(4);e.exports=i([].slice)},function(e,t,n){"use strict";var i=n(15),r=TypeError,a=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw r("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new a(e)}},function(e,t,n){var i=n(6);e.exports=function(e,t,n){for(var r,a,o=n||e.next;!(r=i(o,e)).done;)if(void 0!==(a=t(r.value)))return a}},function(e,t,n){"use strict";var i=n(843);e.exports=function(e,t,n,r){var a,o=e.length,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(a=Array.from(r)).unshift(t,n),i.apply(e,a);else for(n&&i.apply(e,[t,n]);s1)for(var n=1;ni||n<=0)return"";var r=0;if(t>0){for(;t>0&&r=i)return""}else if(t<0){for(r=i;t<0&&00&&a=h?e?"":void 0:(i=l(f,d))<55296||i>56319||d+1===h||(c=l(f,d+1))<56320||c>57343?e?s(f,d):i:e?u(f,d,d+2):c-56320+(i-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},function(e,t,n){"use strict";var i=n(777),r=n(141),a=n(778),o=r.CODE_POINTS,s=r.CODE_POINT_SEQUENCES,l={0:65533,13:13,128:8364,129:129,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,141:141,142:381,143:143,144:144,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,157:157,158:382,159:376},u="DATA_STATE",c="CHARACTER_REFERENCE_IN_DATA_STATE",f="RCDATA_STATE",d="CHARACTER_REFERENCE_IN_RCDATA_STATE",h="RAWTEXT_STATE",p="SCRIPT_DATA_STATE",g="PLAINTEXT_STATE",_="TAG_OPEN_STATE",m="END_TAG_OPEN_STATE",F="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",v="RCDATA_END_TAG_NAME_STATE",k="RAWTEXT_LESS_THAN_SIGN_STATE",E="RAWTEXT_END_TAG_OPEN_STATE",w="RAWTEXT_END_TAG_NAME_STATE",x="SCRIPT_DATA_LESS_THAN_SIGN_STATE",C="SCRIPT_DATA_END_TAG_OPEN_STATE",D="SCRIPT_DATA_END_TAG_NAME_STATE",T="SCRIPT_DATA_ESCAPE_START_STATE",S="SCRIPT_DATA_ESCAPE_START_DASH_STATE",A="SCRIPT_DATA_ESCAPED_STATE",O="SCRIPT_DATA_ESCAPED_DASH_STATE",I="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",M="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",P="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",R="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",j="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",N="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",L="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",q="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",z="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",U="BEFORE_ATTRIBUTE_NAME_STATE",H="ATTRIBUTE_NAME_STATE",K="AFTER_ATTRIBUTE_NAME_STATE",W="BEFORE_ATTRIBUTE_VALUE_STATE",G="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",V="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",Y="ATTRIBUTE_VALUE_UNQUOTED_STATE",X="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE",$="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",J="SELF_CLOSING_START_TAG_STATE",Q="BOGUS_COMMENT_STATE",Z="BOGUS_COMMENT_STATE_CONTINUATION",ee="MARKUP_DECLARATION_OPEN_STATE",te="COMMENT_START_STATE",ne="COMMENT_START_DASH_STATE",ie="COMMENT_STATE",re="COMMENT_END_DASH_STATE",ae="COMMENT_END_STATE",oe="COMMENT_END_BANG_STATE",se="DOCTYPE_STATE",le="DOCTYPE_NAME_STATE",ue="AFTER_DOCTYPE_NAME_STATE",ce="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",fe="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",de="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",he="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",pe="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ge="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",_e="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",me="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Fe="BOGUS_DOCTYPE_STATE",ye="CDATA_SECTION_STATE";function be(e){return e===o.SPACE||e===o.LINE_FEED||e===o.TABULATION||e===o.FORM_FEED}function ve(e){return e>=o.DIGIT_0&&e<=o.DIGIT_9}function ke(e){return e>=o.LATIN_CAPITAL_A&&e<=o.LATIN_CAPITAL_Z}function Ee(e){return e>=o.LATIN_SMALL_A&&e<=o.LATIN_SMALL_Z}function we(e){return Ee(e)||ke(e)}function xe(e,t){return ve(e)||t&&(e>=o.LATIN_CAPITAL_A&&e<=o.LATIN_CAPITAL_F||e>=o.LATIN_SMALL_A&&e<=o.LATIN_SMALL_F)}function Ce(e){return e+32}function De(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function Te(e){return String.fromCharCode(Ce(e))}function Se(e,t){for(var n=a[++e],i=++e,r=i+n-1;i<=r;){var o=i+r>>>1,s=a[o];if(st))return a[o+n];r=o-1}}return-1}var Ae=e.exports=function(){this.preprocessor=new i,this.tokenQueue=[],this.allowCDATA=!1,this.state=u,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null};Ae.CHARACTER_TOKEN="CHARACTER_TOKEN",Ae.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ae.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ae.START_TAG_TOKEN="START_TAG_TOKEN",Ae.END_TAG_TOKEN="END_TAG_TOKEN",Ae.COMMENT_TOKEN="COMMENT_TOKEN",Ae.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ae.EOF_TOKEN="EOF_TOKEN",Ae.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ae.MODE={DATA:u,RCDATA:f,RAWTEXT:h,SCRIPT_DATA:p,PLAINTEXT:g},Ae.getTokenAttr=function(e,t){for(var n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},Ae.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()},Ae.prototype.write=function(e,t){this.active=!0,this.preprocessor.write(e,t)},Ae.prototype.insertHtmlAtCurrentPos=function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)},Ae.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0},Ae.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ae.HIBERNATION_TOKEN}),!0}return!1},Ae.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},Ae.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat()},Ae.prototype._unconsumeSeveral=function(e){for(;e--;)this._unconsume()},Ae.prototype._reconsumeInState=function(e){this.state=e,this._unconsume()},Ae.prototype._consumeSubsequentIfMatch=function(e,t,n){for(var i=0,r=!0,a=e.length,s=0,l=t,u=void 0;s0&&(l=this._consume(),i++),l===o.EOF){r=!1;break}if(l!==(u=e[s])&&(n||l!==Ce(u))){r=!1;break}}return r||this._unconsumeSeveral(i),r},Ae.prototype._lookahead=function(){var e=this._consume();return this._unconsume(),e},Ae.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==s.SCRIPT_STRING.length)return!1;for(var e=0;e=55296&&i<=57343||i>1114111?o.REPLACEMENT_CHARACTER:r)},Ae.prototype._consumeNamedEntity=function(e){for(var t=null,n=0,i=null,r=0,s=!1,l=0;l>-1;){var u=a[l],c=u<7;if(c&&1&u&&(t=2&u?[a[++l],a[++l]]:[a[++l]],n=r,i===o.SEMICOLON)){s=!0;break}if(r++,(i=this._consume())===o.EOF)break;l=c?4&u?Se(l,i):-1:i===u?++l:-1}if(t){if(!s&&(this._unconsumeSeveral(r-n),e)){var f=this._lookahead();if(f===o.EQUALS_SIGN||function(e){return we(e)||ve(e)}(f))return this._unconsumeSeveral(n),null}return t}return this._unconsumeSeveral(r),null},Ae.prototype._consumeCharacterReference=function(e,t){if(be(e)||e===o.GREATER_THAN_SIGN||e===o.AMPERSAND||e===this.additionalAllowedCp||e===o.EOF)return this._unconsume(),null;if(e===o.NUMBER_SIGN){var n=!1,i=this._lookahead();return i!==o.LATIN_SMALL_X&&i!==o.LATIN_CAPITAL_X||(this._consume(),n=!0),(i=this._lookahead())!==o.EOF&&xe(i,n)?[this._consumeNumericEntity(n)]:(this._unconsumeSeveral(n?2:1),null)}return this._unconsume(),this._consumeNamedEntity(t)};var Oe=Ae.prototype;Oe[u]=function(e){this.preprocessor.dropParsedChunk(),e===o.AMPERSAND?this.state=c:e===o.LESS_THAN_SIGN?this.state=_:e===o.NULL?this._emitCodePoint(e):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[c]=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=u)},Oe[f]=function(e){this.preprocessor.dropParsedChunk(),e===o.AMPERSAND?this.state=d:e===o.LESS_THAN_SIGN?this.state=y:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[d]=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=f)},Oe[h]=function(e){this.preprocessor.dropParsedChunk(),e===o.LESS_THAN_SIGN?this.state=k:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[p]=function(e){this.preprocessor.dropParsedChunk(),e===o.LESS_THAN_SIGN?this.state=x:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[g]=function(e){this.preprocessor.dropParsedChunk(),e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[_]=function(e){e===o.EXCLAMATION_MARK?this.state=ee:e===o.SOLIDUS?this.state=m:we(e)?(this._createStartTagToken(),this._reconsumeInState(F)):e===o.QUESTION_MARK?this._reconsumeInState(Q):(this._emitChar("<"),this._reconsumeInState(u))},Oe[m]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(F)):e===o.GREATER_THAN_SIGN?this.state=u:e===o.EOF?(this._reconsumeInState(u),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState(Q)},Oe[F]=function(e){be(e)?this.state=U:e===o.SOLIDUS?this.state=J:e===o.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):ke(e)?this.currentToken.tagName+=Te(e):e===o.NULL?this.currentToken.tagName+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(u):this.currentToken.tagName+=De(e)},Oe[y]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=b):(this._emitChar("<"),this._reconsumeInState(f))},Oe[b]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(v)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(f))},Oe[v]=function(e){if(ke(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(be(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this.state=u,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(f)}},Oe[k]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=E):(this._emitChar("<"),this._reconsumeInState(h))},Oe[E]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(w)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(h))},Oe[w]=function(e){if(ke(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(be(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(h)}},Oe[x]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=C):e===o.EXCLAMATION_MARK?(this.state=T,this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState(p))},Oe[C]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(D)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(p))},Oe[D]=function(e){if(ke(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(be(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(p)}},Oe[T]=function(e){e===o.HYPHEN_MINUS?(this.state=S,this._emitChar("-")):this._reconsumeInState(p)},Oe[S]=function(e){e===o.HYPHEN_MINUS?(this.state=I,this._emitChar("-")):this._reconsumeInState(p)},Oe[A]=function(e){e===o.HYPHEN_MINUS?(this.state=O,this._emitChar("-")):e===o.LESS_THAN_SIGN?this.state=M:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._reconsumeInState(u):this._emitCodePoint(e)},Oe[O]=function(e){e===o.HYPHEN_MINUS?(this.state=I,this._emitChar("-")):e===o.LESS_THAN_SIGN?this.state=M:e===o.NULL?(this.state=A,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(u):(this.state=A,this._emitCodePoint(e))},Oe[I]=function(e){e===o.HYPHEN_MINUS?this._emitChar("-"):e===o.LESS_THAN_SIGN?this.state=M:e===o.GREATER_THAN_SIGN?(this.state=p,this._emitChar(">")):e===o.NULL?(this.state=A,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(u):(this.state=A,this._emitCodePoint(e))},Oe[M]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=P):we(e)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState(j)):(this._emitChar("<"),this._reconsumeInState(A))},Oe[P]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(R)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(A))},Oe[R]=function(e){if(ke(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(be(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(A)}},Oe[j]=function(e){be(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?N:A,this._emitCodePoint(e)):ke(e)?(this.tempBuff.push(Ce(e)),this._emitCodePoint(e)):Ee(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(A)},Oe[N]=function(e){e===o.HYPHEN_MINUS?(this.state=B,this._emitChar("-")):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._reconsumeInState(u):this._emitCodePoint(e)},Oe[B]=function(e){e===o.HYPHEN_MINUS?(this.state=L,this._emitChar("-")):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.NULL?(this.state=N,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(u):(this.state=N,this._emitCodePoint(e))},Oe[L]=function(e){e===o.HYPHEN_MINUS?this._emitChar("-"):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.GREATER_THAN_SIGN?(this.state=p,this._emitChar(">")):e===o.NULL?(this.state=N,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(u):(this.state=N,this._emitCodePoint(e))},Oe[q]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=z,this._emitChar("/")):this._reconsumeInState(N)},Oe[z]=function(e){be(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?A:N,this._emitCodePoint(e)):ke(e)?(this.tempBuff.push(Ce(e)),this._emitCodePoint(e)):Ee(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(N)},Oe[U]=function(e){be(e)||(e===o.SOLIDUS||e===o.GREATER_THAN_SIGN||e===o.EOF?this._reconsumeInState(K):e===o.EQUALS_SIGN?(this._createAttr("="),this.state=H):(this._createAttr(""),this._reconsumeInState(H)))},Oe[H]=function(e){be(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN||e===o.EOF?(this._leaveAttrName(K),this._unconsume()):e===o.EQUALS_SIGN?this._leaveAttrName(W):ke(e)?this.currentAttr.name+=Te(e):e===o.QUOTATION_MARK||e===o.APOSTROPHE||e===o.LESS_THAN_SIGN?this.currentAttr.name+=De(e):e===o.NULL?this.currentAttr.name+=r.REPLACEMENT_CHARACTER:this.currentAttr.name+=De(e)},Oe[K]=function(e){be(e)||(e===o.SOLIDUS?this.state=J:e===o.EQUALS_SIGN?this.state=W:e===o.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===o.EOF?this._reconsumeInState(u):(this._createAttr(""),this._reconsumeInState(H)))},Oe[W]=function(e){be(e)||(e===o.QUOTATION_MARK?this.state=G:e===o.APOSTROPHE?this.state=V:this._reconsumeInState(Y))},Oe[G]=function(e){e===o.QUOTATION_MARK?this.state=$:e===o.AMPERSAND?(this.additionalAllowedCp=o.QUOTATION_MARK,this.returnState=this.state,this.state=X):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(u):this.currentAttr.value+=De(e)},Oe[V]=function(e){e===o.APOSTROPHE?this.state=$:e===o.AMPERSAND?(this.additionalAllowedCp=o.APOSTROPHE,this.returnState=this.state,this.state=X):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(u):this.currentAttr.value+=De(e)},Oe[Y]=function(e){be(e)?this._leaveAttrValue(U):e===o.AMPERSAND?(this.additionalAllowedCp=o.GREATER_THAN_SIGN,this.returnState=this.state,this.state=X):e===o.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.QUOTATION_MARK||e===o.APOSTROPHE||e===o.LESS_THAN_SIGN||e===o.EQUALS_SIGN||e===o.GRAVE_ACCENT?this.currentAttr.value+=De(e):e===o.EOF?this._reconsumeInState(u):this.currentAttr.value+=De(e)},Oe[X]=function(e){var t=this._consumeCharacterReference(e,!0);if(!this._ensureHibernation()){if(t)for(var n=0;nc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var i=n(3),r=n(10),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n==c||n!=u&&(r(t)?i(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var i=n(270),r=n(202);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(82),r=n(21),a=n(83),o=Array,s=Math.max;e.exports=function(e,t,n){for(var l=r(e),u=i(t,l),c=i(void 0===n?l:n,l),f=o(s(c-u,0)),d=0;u=51||!i((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var i=n(6),r=n(15),a=n(7),o=n(92),s=n(134),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return a(i(n,e));throw l(o(e)+" is not iterable")}},function(e,t,n){var i=n(66),r=n(61),a=n(32),o=n(109),s=n(8)("iterator");e.exports=function(e){if(!a(e))return r(e,s)||r(e,"@@iterator")||o[i(e)]}},function(e,t,n){"use strict";var i=n(280).IteratorPrototype,r=n(54),a=n(65),o=n(62),s=n(109),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=r(i,{next:a(+!u,n)}),o(e,c,!1,!0),s[c]=l,e}},function(e,t){var n=TypeError;e.exports=function(e,t){if(e0&&n.push(i("text","\n"));return n};var i=n(57)},function(e,t,n){"use strict";var i=n(12).OrderedMap,r={createFromArray:function(e){return i(e.map((function(e){return[e.getKey(),e]})))}};e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t,n,i){if(e.size){var r=0;e.reduce((function(e,a,o){return t(e,a)||(n(e)&&i(r,o),r=o),a})),n(e.last())&&i(r,e.count())}}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},function(e,t,n){"use strict";var i=n(44),r=n(91)("draft_tree_data_support");e.exports=function(e,t,n){var a=e.getSelection(),o=e.getCurrentContent(),s=a,l=a.getAnchorKey(),u=a.getFocusKey(),c=o.getBlockForKey(l);if(r&&"forward"===n&&l!==u)return o;if(a.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(r)if(a.getAnchorOffset()===o.getBlockForKey(l).getLength()){var f=o.getBlockForKey(c.nextSibling);if(!f||0===f.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((s=t(e))===a)return o}return i.removeRange(o,s,n)}},function(e,t,n){"use strict";function i(e,t){return!(!t||!r(e))||(n=e,"[object String]"===Object.prototype.toString.call(n)&&(e=e.replace(/\s/g,"").replace(/\n|\r/,""),/^\{(.*?)\}$/.test(e)?/"(.*?)":(.*?)/g.test(e):!!/^\[(.*?)\]$/.test(e)&&e.replace(/^\[/,"").replace(/\]$/,"").replace(/},{/g,"}\n{").split(/\n/).map((function(e){return i(e)})).reduce((function(e,t){return!!t}))));var n}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}e.exports=i,i.strict=function(e){if(r(e))return!0;try{return JSON.parse(e)&&!0}catch(t){return!1}}},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},function(e,t,n){var i=n(4),r=n(3),a=n(48),o=Object,s=i("".split);e.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):o(e)}:o},function(e,t,n){var i=n(6),r=n(11),a=n(107),o=n(61),s=n(266),l=n(8),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||a(e))return e;var n,l=o(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||a(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,n){var i=n(5),r=n(11),a=i.document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var i=n(93),r=n(124),a=i("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(6),r=n(7),a=n(61);e.exports=function(e,t,n){var o,s;r(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=i(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw n;if(s)throw o;return r(o),n}},function(e,t,n){var i=n(8)("iterator"),r=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){r=!0}};o[i]=function(){return this},Array.from(o,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var a={};a[i]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(s){}return n}},function(e,t,n){"use strict";var i=n(47),r=n(67),a=n(109),o=n(29),s=n(27).f,l=n(210),u=n(111),c=n(33),f=n(9),d="Array Iterator",h=o.set,p=o.getterFor(d);e.exports=l(Array,"Array",(function(e,t){h(this,{type:d,target:i(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?i:"values"==n?t[i]:[i,t[i]],!1)}),"values");var g=a.Arguments=a.Array;if(r("keys"),r("values"),r("entries"),!c&&f&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(_){}},function(e,t,n){var i=n(15),r=n(17),a=n(151),o=n(21),s=TypeError,l=function(e){return function(t,n,l,u){i(n);var c=r(t),f=a(c),d=o(c),h=e?d-1:0,p=e?-1:1;if(l<2)for(;;){if(h in f){u=f[h],h+=p;break}if(h+=p,e?h<0:d<=h)throw s("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=p)h in f&&(u=n(u,f[h],h,c));return u}};e.exports={left:l(!1),right:l(!0)}},function(e,t,n){var i=n(95),r=n(92),a=TypeError;e.exports=function(e){if(i(e))return e;throw a(r(e)+" is not a constructor")}},function(e,t,n){"use strict";var i=n(1),r=n(5),a=n(4),o=n(128),s=n(28),l=n(99),u=n(41),c=n(72),f=n(10),d=n(32),h=n(11),p=n(3),g=n(157),_=n(62),m=n(162);e.exports=function(e,t,n){var F=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=F?"set":"add",v=r[e],k=v&&v.prototype,E=v,w={},x=function(e){var t=a(k[e]);s(k,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return y&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(o(e,!f(v)||!(y||k.forEach&&!p((function(){(new v).entries().next()})))))E=n.getConstructor(t,e,F,b),l.enable();else if(o(e,!0)){var C=new E,D=C[b](y?{}:-0,1)!=C,T=p((function(){C.has(1)})),S=g((function(e){new v(e)})),A=!y&&p((function(){for(var e=new v,t=5;t--;)e[b](t,t);return!e.has(-0)}));S||((E=t((function(e,t){c(e,k);var n=m(new v,e,E);return d(t)||u(t,n[b],{that:n,AS_ENTRIES:F}),n}))).prototype=k,k.constructor=E),(T||A)&&(x("delete"),x("has"),F&&x("get")),(A||D)&&x(b),y&&k.clear&&delete k.clear}return w[e]=E,i({global:!0,constructor:!0,forced:E!=v},w),_(E,e),y||n.setStrong(E,e,F),E}},function(e,t,n){var i=n(10),r=n(11),a=n(71);e.exports=function(e,t,n){var o,s;return a&&i(o=t.constructor)&&o!==n&&r(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},function(e,t){var n=Math.expm1,i=Math.exp;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){var t=+e;return 0==t?t:t>-1e-6&&t<1e-6?t+t*t/2:i(t)-1}:n},function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t,n){"use strict";var i=n(33),r=n(5),a=n(3),o=n(213);e.exports=i||!a((function(){if(!(o&&o<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete r[e]}}))},function(e,t,n){var i,r,a,o,s=n(5),l=n(55),u=n(22),c=n(10),f=n(16),d=n(3),h=n(272),p=n(85),g=n(153),_=n(136),m=n(294),F=n(96),y=s.setImmediate,b=s.clearImmediate,v=s.process,k=s.Dispatch,E=s.Function,w=s.MessageChannel,x=s.String,C=0,D={},T="onreadystatechange";d((function(){i=s.location}));var S=function(e){if(f(D,e)){var t=D[e];delete D[e],t()}},A=function(e){return function(){S(e)}},O=function(e){S(e.data)},I=function(e){s.postMessage(x(e),i.protocol+"//"+i.host)};y&&b||(y=function(e){_(arguments.length,1);var t=c(e)?e:E(e),n=p(arguments,1);return D[++C]=function(){l(t,void 0,n)},r(C),C},b=function(e){delete D[e]},F?r=function(e){v.nextTick(A(e))}:k&&k.now?r=function(e){k.now(A(e))}:w&&!m?(o=(a=new w).port2,a.port1.onmessage=O,r=u(o.postMessage,o)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!d(I)?(r=I,s.addEventListener("message",O,!1)):r=T in g("script")?function(e){h.appendChild(g("script"))[T]=function(){h.removeChild(this),S(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:y,clear:b}},function(e,t,n){var i=n(117),r=n(157),a=n(137).CONSTRUCTOR;e.exports=a||!r((function(e){i.all(e).then(void 0,(function(){}))}))},function(e,t,n){var i=n(6),r=n(16),a=n(60),o=n(221),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!a(s,e)?t:i(o,e)}},function(e,t,n){"use strict";var i=n(6),r=n(4),a=n(13),o=n(221),s=n(222),l=n(93),u=n(54),c=n(29).get,f=n(301),d=n(302),h=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,_=r("".charAt),m=r("".indexOf),F=r("".replace),y=r("".slice),b=function(){var e=/a/,t=/b*/g;return i(p,e,"a"),i(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),v=s.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(b||k||v||f||d)&&(g=function(e){var t,n,r,s,l,f,d,E=this,w=c(E),x=a(e),C=w.raw;if(C)return C.lastIndex=E.lastIndex,t=i(g,C,x),E.lastIndex=C.lastIndex,t;var D=w.groups,T=v&&E.sticky,S=i(o,E),A=E.source,O=0,I=x;if(T&&(S=F(S,"y",""),-1===m(S,"g")&&(S+="g"),I=y(x,E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&"\n"!==_(x,E.lastIndex-1))&&(A="(?: "+A+")",I=" "+I,O++),n=new RegExp("^(?:"+A+")",S)),k&&(n=new RegExp("^"+A+"$(?!\\s)",S)),b&&(r=E.lastIndex),s=i(p,T?n:E,I),T?s?(s.input=y(s.input,O),s[0]=y(s[0],O),s.index=E.lastIndex,E.lastIndex+=s[0].length):E.lastIndex=0:b&&s&&(E.lastIndex=E.global?s.index+s[0].length:r),k&&s&&s.length>1&&i(h,s[0],n,(function(){for(l=1;l1?arguments[1]:void 0;return o(this),(t=void 0!==h)&&a(h),s(e)?new this:(n=[],t?(c=0,f=i(h,d>2?arguments[2]:void 0),l(e,(function(e){r(u,n,f(e,c++))}))):l(e,u,{that:n}),new this(n))}},function(e,t,n){"use strict";var i=n(85);e.exports=function(){return new this(i(arguments))}},function(e,t,n){"use strict";(e.exports=function(e){var t={},n=this._getOverriddenMethods(this,t);Object.keys(n).forEach((function(i){"function"===typeof n[i]&&(t[i]=e[i],e[i]=n[i])}))}).prototype._getOverriddenMethods=function(){throw new Error("Not implemented")}},function(e,t,n){e.exports=r;var i=n(235).EventEmitter;function r(){i.call(this)}n(120)(r,i),r.Readable=n(236),r.Writable=n(797),r.Duplex=n(798),r.Transform=n(799),r.PassThrough=n(800),r.Stream=r,r.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",r),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},function(e,t,n){"use strict";(function(t){"undefined"===typeof t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,i,r){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,i)}));case 4:return t.nextTick((function(){e.call(null,n,i,r)}));default:for(a=new Array(s-1),o=0;o=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&l<=57343){c+=encodeURIComponent(e[a]+e[a+1]),a++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[a]);return c}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r},function(e,t,n){"use strict";var i=0;function r(){return Math.pow(2,++i)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},function(e,t,n){"use strict";var i=n(370),r=n(371);e.exports=function(e,t){var n=t.getStartKey(),a=t.getStartOffset(),o=t.getEndKey(),s=t.getEndOffset(),l=r(e,t).getBlockMap(),u=l.keySeq(),c=u.indexOf(n),f=u.indexOf(o)+1;return i(l.slice(c,f).map((function(e,t){var i=e.getText(),r=e.getCharacterList();return n===o?e.merge({text:i.slice(a,s),characterList:r.slice(a,s)}):t===n?e.merge({text:i.slice(a),characterList:r.slice(a)}):t===o?e.merge({text:i.slice(0,s),characterList:r.slice(0,s)}):e})))}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(376),a=n(12),o=n(14),s=n(936),l=(0,a.Map)(),u=s();var c={getLastCreatedEntityKey:function(){return c.__getLastCreatedEntityKey()},create:function(e,t,n){return c.__create(e,t,n)},add:function(e){return c.__add(e)},get:function(e){return c.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,u=s()},mergeData:function(e,t){return c.__mergeData(e,t)},replaceData:function(e,t){return c.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,n){return c.__add(new r({type:e,mutability:t,data:n||{}}))},__add:function(e){return u=s(),l=l.set(u,e),u},__get:function(e){var t=l.get(e);return t||o(!1),t},__mergeData:function(e,t){var n=c.__get(e),r=function(e){for(var t=1;t=s},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},i.createEmpty=function(e){return new i({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},i}((0,n(12).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=i},function(e,t,n){"use strict";var i=n(14),r="LTR",a="RTL",o=null;function s(e){return e===r||e===a}function l(e){return s(e)||i(!1),e===r?"ltr":"rtl"}function u(e){o=e}var c={NEUTRAL:"NEUTRAL",LTR:r,RTL:a,isStrong:s,getHTMLDir:l,getHTMLDirIfDifferent:function(e,t){return s(e)||i(!1),s(t)||i(!1),e===t?null:l(e)},setGlobalDir:u,initGlobalDir:function(){u(r)},getGlobalDir:function(){return o||this.initGlobalDir(),o||i(!1),o}};e.exports=c},function(e,t,n){"use strict";var i=n(188),r=n(379);e.exports=function(e){for(var t=e;t&&t!==i(e).documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},function(e,t,n){"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},function(e,t,n){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function i(e,t){var n=r.get(e,t);return"auto"===n||"scroll"===n}var r={get:n(959),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(i(e,"overflow")||i(e,"overflowY")||i(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=r},function(e,t,n){"use strict";var i=n(963),r=n(964);e.exports=function(e){var t=i(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=r(e),a=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-a.clientWidth,s=e.scrollHeight-a.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t,n){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";var i=n(776),r=n(0),a=n(806),o=n(807);function s(e,t){if("#text"===e.nodeName)return e.value;if("#comment"===e.nodeName)return e.value;var n=e.attrs.reduce((function(e,t){var n=a(t.name);return e[n]="style"===n?o(t.value):t.value,e}),{key:t});if(0===e.childNodes.length)return r.createElement(e.tagName,n);if("script"===e.nodeName)return n.dangerouslySetInnerHTML={__html:e.childNodes[0].value},r.createElement("script",n);var i=e.childNodes.map(s);return r.createElement(e.tagName,n,i)}e.exports=function(e){var t=i.parseFragment(e);if(0===t.childNodes.length)return null;var n=t.childNodes.map(s);return 1===n.length?n[0]:n}},function(e,t,n){"use strict";var i=function(){};e.exports=i},function(e,t,n){var i=n(5),r=n(197),a="__core-js_shared__",o=i[a]||r(a,{});e.exports=o},function(e,t,n){var i=n(5),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},function(e,t,n){var i=n(4),r=n(3),a=n(10),o=n(16),s=n(9),l=n(125).CONFIGURABLE,u=n(199),c=n(29),f=c.enforce,d=c.get,h=String,p=Object.defineProperty,g=i("".slice),_=i("".replace),m=i([].join),F=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===g(h(t),0,7)&&(t="["+_(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),F&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=f(e);return o(i,"source")||(i.source=m(y,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return a(this)&&d(this).source||u(this)}),"toString")},function(e,t,n){var i=n(4),r=n(10),a=n(196),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},function(e,t,n){var i=n(16),r=n(201),a=n(35),o=n(27);e.exports=function(e,t,n){for(var s=r(t),l=o.f,u=a.f,c=0;cc;)a.f(e,n=r[c++],i[n]);return e}},function(e,t,n){var i=n(48),r=n(47),a=n(81).f,o=n(130),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==i(e)?function(e){try{return a(e)}catch(t){return o(s)}}(e):a(r(e))}},function(e,t){var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},function(e,t,n){"use strict";var i=n(92),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw r("Cannot delete property "+i(t)+" of "+i(e))}},function(e,t,n){"use strict";var i=n(17),r=n(82),a=n(21);e.exports=function(e){for(var t=i(this),n=a(t),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){var i=n(8),r=n(109),a=i("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[a]===e)}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(33),o=n(125),s=n(10),l=n(135),u=n(39),c=n(71),f=n(62),d=n(49),h=n(28),p=n(8),g=n(109),_=n(280),m=o.PROPER,F=o.CONFIGURABLE,y=_.IteratorPrototype,b=_.BUGGY_SAFARI_ITERATORS,v=p("iterator"),k="keys",E="values",w="entries",x=function(){return this};e.exports=function(e,t,n,o,p,_,C){l(n,t,o);var D,T,S,A=function(e){if(e===p&&R)return R;if(!b&&e in M)return M[e];switch(e){case k:case E:case w:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",I=!1,M=e.prototype,P=M[v]||M["@@iterator"]||p&&M[p],R=!b&&P||A(p),j="Array"==t&&M.entries||P;if(j&&(D=u(j.call(new e)))!==Object.prototype&&D.next&&(a||u(D)===y||(c?c(D,y):s(D[v])||h(D,v,x)),f(D,O,!0,!0),a&&(g[O]=x)),m&&p==E&&P&&P.name!==E&&(!a&&F?d(M,"name",E):(I=!0,R=function(){return r(P,this)})),p)if(T={values:A(E),keys:_?R:A(k),entries:A(w)},C)for(S in T)(b||I||!(S in M))&&h(M,S,T[S]);else i({target:t,proto:!0,forced:b||I},T);return a&&!C||M[v]===R||h(M,v,R,{name:p}),g[t]=R,T}},function(e,t,n){var i=n(3);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var i=n(130),r=Math.floor,a=function(e,t){for(var n,i,r=e.length,a=1;a0;)e[i]=e[--i];i!==a++&&(e[i]=n)}return e},o=function(e,t,n,i){for(var r=t.length,a=n.length,o=0,s=0;o>8&255]},V=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},X=function(e){return H(e,23,4)},$=function(e){return H(e,52,8)},J=function(e,t,n){u(e[T],t,{configurable:!0,get:function(){return n(this)[t]}})},Q=function(e,t,n,i){var r=g(n),a=O(e);if(r+t>a.byteLength)throw q(S);var o=a.bytes,s=r+a.byteOffset,l=v(o,s,s+t);return i?l:U(l)},Z=function(e,t,n,i,r,a){var o=g(n),s=O(e);if(o+t>s.byteLength)throw q(S);for(var l=s.bytes,u=o+s.byteOffset,c=i(+r),f=0;fie;)(te=ne[ie++])in P||l(P,te,M[te]);R.constructor=P}F&&m(N)!==B&&F(N,B);var re=new j(new P(2)),ae=r(N.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||c(N,{setInt8:function(e,t){ae(this,e,t<<24>>24)},setUint8:function(e,t){ae(this,e,t<<24>>24)}},{unsafe:!0})}else R=(P=function(e){d(this,R);var t=g(e);I(this,{type:C,bytes:z(L(t),0),byteLength:t}),a||(this.byteLength=t,this.detached=!1)})[T],N=(j=function(e,t,n){d(this,N),d(e,R);var i=A(e),r=i.byteLength,o=h(t);if(o<0||o>r)throw q("Wrong offset");if(o+(n=void 0===n?r-o:p(n))>r)throw q("Wrong length");I(this,{type:D,buffer:e,byteLength:n,byteOffset:o,bytes:i.bytes}),a||(this.buffer=e,this.byteLength=n,this.byteOffset=o)})[T],a&&(J(P,"byteLength",A),J(j,"buffer",O),J(j,"byteLength",O),J(j,"byteOffset",O)),c(N,{getInt8:function(e){return Q(this,1,e)[0]<<24>>24},getUint8:function(e){return Q(this,1,e)[0]},getInt16:function(e){var t=Q(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Q(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Y(Q(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Y(Q(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return K(Q(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return K(Q(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Z(this,1,e,W,t)},setUint8:function(e,t){Z(this,1,e,W,t)},setInt16:function(e,t){Z(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Z(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Z(this,4,e,V,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Z(this,4,e,V,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Z(this,4,e,X,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Z(this,8,e,$,t,arguments.length>2?arguments[2]:void 0)}});k(P,C),k(j,D),e.exports={ArrayBuffer:P,DataView:j}},function(e,t,n){n(476)},function(e,t,n){var i=n(3),r=n(11),a=n(48),o=n(217),s=Object.isExtensible,l=i((function(){s(1)}));e.exports=l||o?function(e){return!!r(e)&&((!o||"ArrayBuffer"!=a(e))&&(!s||s(e)))}:s},function(e,t,n){var i=n(3);e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t){e.exports=Math.sign||function(e){var t=+e;return 0==t||t!=t?t:t<0?-1:1}},function(e,t,n){var i=n(11),r=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){var i=n(5),r=n(3),a=n(4),o=n(13),s=n(115).trim,l=n(164),u=i.parseInt,c=i.Symbol,f=c&&c.iterator,d=/^[+-]?0x/i,h=a(d.exec),p=8!==u(l+"08")||22!==u(l+"0x16")||f&&!r((function(){u(Object(f))}));e.exports=p?function(e,t){var n=s(o(e));return u(n,t>>>0||(h(d,n)?16:10))}:u},function(e,t,n){"use strict";var i=n(7);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){var i=n(3),r=n(5).RegExp,a=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),o=a||i((function(){return!r("a","y").sticky})),s=a||i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},function(e,t,n){var i=n(138),r=TypeError;e.exports=function(e){if(i(e))throw r("The method doesn't accept regular expressions");return e}},function(e,t,n){var i=n(8)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},function(e,t,n){var i=n(125).PROPER,r=n(3),a=n(164);e.exports=function(e){return r((function(){return!!a[e]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[e]()||i&&a[e].name!==e}))}},function(e,t,n){var i=n(5),r=n(3),a=n(157),o=n(18).NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;e.exports=!o||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!a((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},function(e,t,n){var i=n(18),r=n(113),a=i.aTypedArrayConstructor,o=i.getTypedArrayConstructor;e.exports=function(e){return a(r(e,o(e)))}},function(e,t,n){n(617)},function(e,t,n){var i=n(5),r=n(10),a=n(8)("observable"),o=i.Observable,s=o&&o.prototype;e.exports=!r(o)||!r(o.from)||!r(o.of)||!r(s.subscribe)||!r(s[a])},function(e,t,n){var i=n(42),r=n(56),a=i.Set,o=i.add;e.exports=function(e){var t=new a;return r(e,(function(e){o(t,e)})),t}},function(e,t,n){var i=n(4),r=WeakSet.prototype;e.exports={WeakSet:WeakSet,add:i(r.add),has:i(r.has),remove:i(r.delete)}},function(e,t,n){"use strict";var i=n(68).DOCUMENT_MODE;t.createDocument=function(){return{nodeName:"#document",mode:i.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};var r=function(e){return{nodeName:"#text",value:e,parentNode:null}},a=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},o=t.insertBefore=function(e,t,n){var i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,i){for(var r=null,o=0;o-1)return i.QUIRKS;var u=null===n?a:r;if(c(t,u))return i.QUIRKS;if(c(t,u=null===n?s:l))return i.LIMITED_QUIRKS}return i.NO_QUIRKS},t.serializeContent=function(e,t,n){var i="!DOCTYPE ";return e&&(i+=e),null!==t?i+=" PUBLIC "+u(t):null!==n&&(i+=" SYSTEM"),null!==n&&(i+=" "+u(n)),i}},function(e,t,n){"use strict";var i,r="object"===typeof Reflect?Reflect:null,a=r&&"function"===typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,a),i(n)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,r,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,i){var r,a,o;if(u(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"===typeof o?o=a[t]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),(r=c(e))>0&&o.length>r&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,console&&console.warn}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=d.bind(i);return r.listener=n,i.wrapFn=r,r}function p(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"===typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=r[e];if(void 0===l)return!1;if("function"===typeof l)a(l,this,t);else{var u=l.length,c=_(l,u);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,r=a;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){(t=e.exports=n(331)).Stream=t,t.Readable=t,t.Writable=n(239),t.Duplex=n(102),t.Transform=n(336),t.PassThrough=n(796)},function(e,t,n){var i=n(238),r=i.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),a(r,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";(function(e){var i=n(787),r=n(788),a=n(789);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return z(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function _(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:F(e,t,n,i,r);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):F(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function F(e,t,n,i,r){var a,o=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var c=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var f=!0,d=0;dr&&(i=r):i=r;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o>8,r=n%256,a.push(r),a.push(i);return a}(t,e.length-n),e,n,i)}function x(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r239?4:u>223?3:u>191?2:1;if(r+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128===(192&(a=e[r+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[r+1],o=e[r+2],128===(192&a)&&128===(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[r+1],o=e[r+2],s=e[r+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=f}return function(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,i,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(i,r),c=e.slice(t,n),f=0;fr)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function T(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;ri)&&(n=i);for(var r="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,i,r,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function P(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function R(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function j(e,t,n,i,r,a){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,i,a){return a||j(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function B(e,t,n,i,a){return a||j(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=this[e],r=1,a=0;++a=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=t,r=1,a=this[e+--i];i>0&&(r*=256);)a+=this[e+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+r]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function U(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function H(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(52))},function(e,t,n){"use strict";(function(t,i,r){var a=n(176);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=F;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:a.nextTick;F.WritableState=m;var u=Object.create(n(142));u.inherits=n(120);var c={deprecate:n(794)},f=n(332),d=n(237).Buffer,h=("undefined"!==typeof r?r:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var p,g=n(333);function _(){}function m(e,t){s=s||n(102),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,r=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,r){--t.pendingcb,n?(a.nextTick(r,i),a.nextTick(w,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(r(i),e._writableState.errorEmitted=!0,e.emit("error",i),w(e,t))}(e,n,i,t,r);else{var o=k(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||v(e,n),i?l(b,e,n,o,r):b(e,n,o,r)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function F(e){if(s=s||n(102),!p.call(F,this)&&!(this instanceof s))return new F(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),f.call(this)}function y(e,t,n,i,r,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(r,t.onwrite):e._write(r,a,t.onwrite),t.sync=!1}function b(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),w(e,t)}function v(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,r=new Array(i),a=t.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)r[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;r.allBuffers=l,y(e,t,!0,t.length,r,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,f=n.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),w(e,t)}))}function w(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(F,f),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===F&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},F.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},F.prototype.write=function(e,t,n){var i,r=this._writableState,o=!1,s=!r.objectMode&&(i=e,d.isBuffer(i)||i instanceof h);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=r.defaultEncoding),"function"!==typeof n&&(n=_),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var r=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(i,o),r=!1),r}(this,r,e,n))&&(r.pendingcb++,o=function(e,t,n,i,r,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,n));return t}(t,i,r);i!==o&&(n=!0,r="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),F.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},F.prototype._writev=null,F.prototype.end=function(e,t,n){var i=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,w(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(F.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),F.prototype.destroy=g.destroy,F.prototype._undestroy=g.undestroy,F.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(97),n(793).setImmediate,n(52))},function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,i)}e.exports=n},function(e,t,n){var i=n(819),r=n(820),a=n(821);e.exports=function(e){return i(e)||r(e)||a()}},function(e,t,n){"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e?[]:"length"in e?e:[e]}},function(e,t,n){"use strict";var i=n(88);e.exports=function(e,t){return e.length?(i(e,e.length,0,t),e):t}},function(e,t,n){"use strict";e.exports=function(e,t,n){for(var i,r=[],a=-1;++a-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l)};function l(n){return 40===n?e.attempt(p,t,r?t:u)(n):91===n?e.attempt(g,t,r?e.attempt(_,t,u):u)(n):r?t(n):u(n)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){var n,i,o,u,c,f,d,h=e.length,p=0;for(;h--;)if(u=e[h][1],c){if("link"===u.type||"labelLink"===u.type&&u._inactive)break;"enter"===e[h][0]&&"labelLink"===u.type&&(u._inactive=!0)}else if(f){if("enter"===e[h][0]&&("labelImage"===u.type||"labelLink"===u.type)&&!u._balanced&&(c=h,"labelLink"!==u.type)){p=2;break}}else"labelEnd"===u.type&&(f=h);return n={type:"labelLink"===e[c][1].type?"link":"image",start:l(e[c][1].start),end:l(e[e.length-1][1].end)},i={type:"label",start:l(e[c][1].start),end:l(e[f][1].end)},o={type:"labelText",start:l(e[c+p+2][1].end),end:l(e[f-2][1].start)},d=r(d=[["enter",n,t],["enter",i,t]],e.slice(c+1,c+p+3)),d=r(d,[["enter",o,t]]),d=r(d,s(t.parser.constructs.insideSpan.null,e.slice(c+p+4,f-3),t)),d=r(d,[["exit",o,t],e[f-2],e[f-1],["exit",i,t]]),d=r(d,e.slice(f+1)),d=r(d,[["exit",n,t]]),a(e,c,e.length,d),e},resolveAll:function(e){var t,n=-1;for(;++n1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,n){return u.__create(e,t,n),this},s.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},s.addEntity=function(e){return u.__add(e),this},s.getEntity=function(e){return u.__get(e)},s.getAllEntities=function(){return u.__getAll()},s.loadWithEntities=function(e){return u.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,i=a.createFromArray(n),o=i.isEmpty()?new c:c.createEmpty(i.first().getKey());return new r({blockMap:i,entityMap:t||u,selectionBefore:o,selectionAfter:o})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=g(e),new k({key:f(),text:e,type:"unstyled",characterList:_(F(o.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(i({},e,{blockMap:b(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new c(e.selectionBefore),selectionAfter:new c(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new k(i({},e,{data:y(e.data),characterList:null!=t?_((Array.isArray(t)?t:d(t)).map((function(e){return o.fromJS(e)}))):void 0}))},r}(v);e.exports=E},function(e,t,n){"use strict";var i=n(186),r=n(14),a="\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05cf\u05d0-\u05ea\u05eb-\u05ef\u05f0-\u05f2\u05f3-\u05f4\u05f5-\u05ff\u07c0-\u07c9\u07ca-\u07ea\u07f4-\u07f5\u07fa\u07fb-\u07ff\u0800-\u0815\u081a\u0824\u0828\u082e-\u082f\u0830-\u083e\u083f\u0840-\u0858\u085c-\u085d\u085e\u085f-\u089f\u200f\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb37\ufb38-\ufb3c\ufb3d\ufb3e\ufb3f\ufb40-\ufb41\ufb42\ufb43-\ufb44\ufb45\ufb46-\ufb4f",o="\u0608\u060b\u060d\u061b\u061c\u061d\u061e-\u061f\u0620-\u063f\u0640\u0641-\u064a\u066d\u066e-\u066f\u0671-\u06d3\u06d4\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06fd-\u06fe\u06ff\u0700-\u070d\u070e\u070f\u0710\u0712-\u072f\u074b-\u074c\u074d-\u07a5\u07b1\u07b2-\u07bf\u08a0-\u08b2\u08b3-\u08e3\ufb50-\ufbb1\ufbb2-\ufbc1\ufbc2-\ufbd2\ufbd3-\ufd3d\ufd40-\ufd4f\ufd50-\ufd8f\ufd90-\ufd91\ufd92-\ufdc7\ufdc8-\ufdcf\ufdf0-\ufdfb\ufdfc\ufdfe-\ufdff\ufe70-\ufe74\ufe75\ufe76-\ufefc\ufefd-\ufefe",s=new RegExp("["+"A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u01ba\u01bb\u01bc-\u01bf\u01c0-\u01c3\u01c4-\u0293\u0294\u0295-\u02af\u02b0-\u02b8\u02bb-\u02c1\u02d0-\u02d1\u02e0-\u02e4\u02ee\u0370-\u0373\u0376-\u0377\u037a\u037b-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0482\u048a-\u052f\u0531-\u0556\u0559\u055a-\u055f\u0561-\u0587\u0589\u0903\u0904-\u0939\u093b\u093d\u093e-\u0940\u0949-\u094c\u094e-\u094f\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096f\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09be-\u09c0\u09c7-\u09c8\u09cb-\u09cc\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e1\u09e6-\u09ef\u09f0-\u09f1\u09f4-\u09f9\u09fa\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3e-\u0a40\u0a59-\u0a5c\u0a5e\u0a66-\u0a6f\u0a72-\u0a74\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0abe-\u0ac0\u0ac9\u0acb-\u0acc\u0ad0\u0ae0-\u0ae1\u0ae6-\u0aef\u0af0\u0b02-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b3e\u0b40\u0b47-\u0b48\u0b4b-\u0b4c\u0b57\u0b5c-\u0b5d\u0b5f-\u0b61\u0b66-\u0b6f\u0b70\u0b71\u0b72-\u0b77\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bbf\u0bc1-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0be6-\u0bef\u0bf0-\u0bf2\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c41-\u0c44\u0c58-\u0c59\u0c60-\u0c61\u0c66-\u0c6f\u0c7f\u0c82-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cbe\u0cbf\u0cc0-\u0cc4\u0cc6\u0cc7-\u0cc8\u0cca-\u0ccb\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce1\u0ce6-\u0cef\u0cf1-\u0cf2\u0d02-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d57\u0d60-\u0d61\u0d66-\u0d6f\u0d70-\u0d75\u0d79\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd1\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0df4\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e45\u0e46\u0e4f\u0e50-\u0e59\u0e5a-\u0e5b\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f01-\u0f03\u0f04-\u0f12\u0f13\u0f14\u0f15-\u0f17\u0f1a-\u0f1f\u0f20-\u0f29\u0f2a-\u0f33\u0f34\u0f36\u0f38\u0f3e-\u0f3f\u0f40-\u0f47\u0f49-\u0f6c\u0f7f\u0f85\u0f88-\u0f8c\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce-\u0fcf\u0fd0-\u0fd4\u0fd5-\u0fd8\u0fd9-\u0fda\u1000-\u102a\u102b-\u102c\u1031\u1038\u103b-\u103c\u103f\u1040-\u1049\u104a-\u104f\u1050-\u1055\u1056-\u1057\u105a-\u105d\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106d\u106e-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108c\u108e\u108f\u1090-\u1099\u109a-\u109c\u109e-\u109f\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fb\u10fc\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1360-\u1368\u1369-\u137c\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166d-\u166e\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16eb-\u16ed\u16ee-\u16f0\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17b6\u17be-\u17c5\u17c7-\u17c8\u17d4-\u17d6\u17d7\u17d8-\u17da\u17dc\u17e0-\u17e9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1923-\u1926\u1929-\u192b\u1930-\u1931\u1933-\u1938\u1946-\u194f\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c0\u19c1-\u19c7\u19c8-\u19c9\u19d0-\u19d9\u19da\u1a00-\u1a16\u1a19-\u1a1a\u1a1e-\u1a1f\u1a20-\u1a54\u1a55\u1a57\u1a61\u1a63-\u1a64\u1a6d-\u1a72\u1a80-\u1a89\u1a90-\u1a99\u1aa0-\u1aa6\u1aa7\u1aa8-\u1aad\u1b04\u1b05-\u1b33\u1b35\u1b3b\u1b3d-\u1b41\u1b43-\u1b44\u1b45-\u1b4b\u1b50-\u1b59\u1b5a-\u1b60\u1b61-\u1b6a\u1b74-\u1b7c\u1b82\u1b83-\u1ba0\u1ba1\u1ba6-\u1ba7\u1baa\u1bae-\u1baf\u1bb0-\u1bb9\u1bba-\u1be5\u1be7\u1bea-\u1bec\u1bee\u1bf2-\u1bf3\u1bfc-\u1bff\u1c00-\u1c23\u1c24-\u1c2b\u1c34-\u1c35\u1c3b-\u1c3f\u1c40-\u1c49\u1c4d-\u1c4f\u1c50-\u1c59\u1c5a-\u1c77\u1c78-\u1c7d\u1c7e-\u1c7f\u1cc0-\u1cc7\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf1\u1cf2-\u1cf3\u1cf5-\u1cf6\u1d00-\u1d2b\u1d2c-\u1d6a\u1d6b-\u1d77\u1d78\u1d79-\u1d9a\u1d9b-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200e\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2134\u2135-\u2138\u2139\u213c-\u213f\u2145-\u2149\u214e\u214f\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237a\u2395\u249c-\u24e9\u26ac\u2800-\u28ff\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c7b\u2c7c-\u2c7d\u2c7e-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d70\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005\u3006\u3007\u3021-\u3029\u302e-\u302f\u3031-\u3035\u3038-\u303a\u303b\u303c\u3041-\u3096\u309d-\u309e\u309f\u30a1-\u30fa\u30fc-\u30fe\u30ff\u3105-\u312d\u3131-\u318e\u3190-\u3191\u3192-\u3195\u3196-\u319f\u31a0-\u31ba\u31f0-\u31ff\u3200-\u321c\u3220-\u3229\u322a-\u3247\u3248-\u324f\u3260-\u327b\u327f\u3280-\u3289\u328a-\u32b0\u32c0-\u32cb\u32d0-\u32fe\u3300-\u3376\u337b-\u33dd\u33e0-\u33fe\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua014\ua015\ua016-\ua48c\ua4d0-\ua4f7\ua4f8-\ua4fd\ua4fe-\ua4ff\ua500-\ua60b\ua60c\ua610-\ua61f\ua620-\ua629\ua62a-\ua62b\ua640-\ua66d\ua66e\ua680-\ua69b\ua69c-\ua69d\ua6a0-\ua6e5\ua6e6-\ua6ef\ua6f2-\ua6f7\ua722-\ua76f\ua770\ua771-\ua787\ua789-\ua78a\ua78b-\ua78e\ua790-\ua7ad\ua7b0-\ua7b1\ua7f7\ua7f8-\ua7f9\ua7fa\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua823-\ua824\ua827\ua830-\ua835\ua836-\ua837\ua840-\ua873\ua880-\ua881\ua882-\ua8b3\ua8b4-\ua8c3\ua8ce-\ua8cf\ua8d0-\ua8d9\ua8f2-\ua8f7\ua8f8-\ua8fa\ua8fb\ua900-\ua909\ua90a-\ua925\ua92e-\ua92f\ua930-\ua946\ua952-\ua953\ua95f\ua960-\ua97c\ua983\ua984-\ua9b2\ua9b4-\ua9b5\ua9ba-\ua9bb\ua9bd-\ua9c0\ua9c1-\ua9cd\ua9cf\ua9d0-\ua9d9\ua9de-\ua9df\ua9e0-\ua9e4\ua9e6\ua9e7-\ua9ef\ua9f0-\ua9f9\ua9fa-\ua9fe\uaa00-\uaa28\uaa2f-\uaa30\uaa33-\uaa34\uaa40-\uaa42\uaa44-\uaa4b\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f\uaa60-\uaa6f\uaa70\uaa71-\uaa76\uaa77-\uaa79\uaa7a\uaa7b\uaa7d\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadc\uaadd\uaade-\uaadf\uaae0-\uaaea\uaaeb\uaaee-\uaaef\uaaf0-\uaaf1\uaaf2\uaaf3-\uaaf4\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5b\uab5c-\uab5f\uab64-\uab65\uabc0-\uabe2\uabe3-\uabe4\uabe6-\uabe7\uabe9-\uabea\uabeb\uabec\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ue000-\uf8ff\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\uff21-\uff3a\uff41-\uff5a\uff66-\uff6f\uff70\uff71-\uff9d\uff9e-\uff9f\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"+a+o+"]"),l=new RegExp("["+a+o+"]");function u(e){var t=s.exec(e);return null==t?null:t[0]}function c(e){var t=u(e);return null==t?i.NEUTRAL:l.exec(t)?i.RTL:i.LTR}function f(e,t){if(t=t||i.NEUTRAL,!e.length)return t;var n=c(e);return n===i.NEUTRAL?t:n}function d(e,t){return t||(t=i.getGlobalDir()),i.isStrong(t)||r(!1),f(e,t)}var h={firstStrongChar:u,firstStrongCharDir:c,resolveBlockDir:f,getDirection:d,isDirectionLTR:function(e,t){return d(e,t)===i.LTR},isDirectionRTL:function(e,t){return d(e,t)===i.RTL}};e.exports=h},function(e,t,n){"use strict";var i=n(0),r=n(104),a=(0,n(12).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:i.createElement("ul",{className:r("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:i.createElement("ol",{className:r("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:i.createElement("pre",{className:r("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},function(e,t,n){"use strict";var i=n(387).notEmptyKey;function r(e,t){return i(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var i=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(n=e.getBlockForKey(i).getEntityAt(a-1))!==e.getBlockForKey(i).getEntityAt(a)?null:r(e.getEntityMap(),n):null}var o=t.getStartKey(),s=t.getStartOffset(),l=e.getBlockForKey(o);return n=s===l.getLength()?null:l.getEntityAt(s),r(e.getEntityMap(),n)}},function(e,t,n){"use strict";var i=n(957);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!i(t)&&(i(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";function i(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return i(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;i(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return i(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;i(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";n(256);e.exports=function(e,t){var n=e.getSelection(),i=e.getCurrentContent(),r=n.getStartKey(),a=n.getStartOffset(),o=r,s=0;if(t>a){var l=i.getKeyBefore(r);if(null==l)o=r;else o=l,s=i.getBlockForKey(l).getText().length}else s=a-t;return n.merge({focusKey:o,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var i=n(396);e.exports=i},function(e,t,n){"use strict";var i=n(46),r=n(984),a=i.isPlatform("Mac OS X"),o={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return a&&e.altKey},usesMacOSHeuristics:function(){return a},hasCommandModifier:function(e){return a?!!e.metaKey&&!e.altKey:o.isCtrlKeyCommand(e)},isSoftNewlineEvent:r};e.exports=o},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(744)},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,i=/[\0\r\f]/g,r=/: */g,a=/zoo|gra/,o=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,u=/ *[\0] */g,c=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,h=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,_=/:(read-only)/g,m=/\s+(?=[{\];=:>])/g,F=/([[}=:>])\s+/g,y=/(\{[^{]+?);(?=\})/g,b=/\s{2,}/g,v=/([^\(])(:+) */g,k=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,x=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,D=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,S="-webkit-",A="-moz-",O="-ms-",I=59,M=125,P=123,R=40,j=41,N=91,B=93,L=10,q=13,z=9,U=64,H=32,K=38,W=45,G=95,V=42,Y=44,X=58,$=39,J=34,Q=47,Z=62,ee=43,te=126,ne=0,ie=12,re=11,ae=107,oe=109,se=115,le=112,ue=111,ce=105,fe=99,de=100,he=112,pe=1,ge=1,_e=0,me=1,Fe=1,ye=1,be=0,ve=0,ke=0,Ee=[],we=[],xe=0,Ce=null,De=-2,Te=-1,Se=0,Ae=1,Oe=2,Ie=3,Me=0,Pe=1,Re="",je="",Ne="";function Be(e,t,r,a,o){for(var s,l,c=0,f=0,d=0,h=0,m=0,F=0,y=0,b=0,k=0,w=0,x=0,C=0,D=0,T=0,G=0,be=0,we=0,Ce=0,De=0,Te=r.length,qe=Te-1,Ge="",Ve="",Ye="",Xe="",$e="",Je="";G0&&(Ve=Ve.replace(i,"")),Ve.trim().length>0)){switch(y){case H:case z:case I:case q:case L:break;default:Ve+=r.charAt(G)}y=I}if(1===we)switch(y){case P:case M:case I:case J:case $:case R:case j:case Y:we=0;case z:case q:case L:case H:break;default:for(we=0,De=G,m=y,G--,y=I;De0&&(++G,y=m);case P:De=Te}}switch(y){case P:for(m=(Ve=Ve.trim()).charCodeAt(0),x=1,De=++G;G0&&(Ve=Ve.replace(i,"")),F=Ve.charCodeAt(1)){case de:case oe:case se:case W:s=t;break;default:s=Ee}if(De=(Ye=Be(t,s,Ye,F,o+1)).length,ke>0&&0===De&&(De=Ve.length),xe>0&&(s=Le(Ee,Ve,Ce),l=Ke(Ie,Ye,s,t,ge,pe,De,F,o,a),Ve=s.join(""),void 0!==l&&0===(De=(Ye=l.trim()).length)&&(F=0,Ye="")),De>0)switch(F){case se:Ve=Ve.replace(E,He);case de:case oe:case W:Ye=Ve+"{"+Ye+"}";break;case ae:Ye=(Ve=Ve.replace(p,"$1 $2"+(Pe>0?Re:"")))+"{"+Ye+"}",Ye=1===Fe||2===Fe&&Ue("@"+Ye,3)?"@"+S+Ye+"@"+Ye:"@"+Ye;break;default:Ye=Ve+Ye,a===he&&(Xe+=Ye,Ye="")}else Ye=""}else Ye=Be(t,Le(t,Ve,Ce),Ye,a,o+1);$e+=Ye,C=0,we=0,T=0,be=0,Ce=0,D=0,Ve="",Ye="",y=r.charCodeAt(++G);break;case M:case I:if((De=(Ve=(be>0?Ve.replace(i,""):Ve).trim()).length)>1)switch(0===T&&((m=Ve.charCodeAt(0))===W||m>96&&m<123)&&(De=(Ve=Ve.replace(" ",":")).length),xe>0&&void 0!==(l=Ke(Ae,Ve,t,e,ge,pe,Xe.length,a,o,a))&&0===(De=(Ve=l.trim()).length)&&(Ve="\0\0"),m=Ve.charCodeAt(0),F=Ve.charCodeAt(1),m){case ne:break;case U:if(F===ce||F===fe){Je+=Ve+r.charAt(G);break}default:if(Ve.charCodeAt(De-1)===X)break;Xe+=ze(Ve,m,F,Ve.charCodeAt(2))}C=0,we=0,T=0,be=0,Ce=0,Ve="",y=r.charCodeAt(++G)}}switch(y){case q:case L:if(f+h+d+c+ve===0)switch(w){case j:case $:case J:case U:case te:case Z:case V:case ee:case Q:case W:case X:case Y:case I:case P:case M:break;default:T>0&&(we=1)}f===Q?f=0:me+C===0&&a!==ae&&Ve.length>0&&(be=1,Ve+="\0"),xe*Me>0&&Ke(Se,Ve,t,e,ge,pe,Xe.length,a,o,a),pe=1,ge++;break;case I:case M:if(f+h+d+c===0){pe++;break}default:switch(pe++,Ge=r.charAt(G),y){case z:case H:if(h+c+f===0)switch(b){case Y:case X:case z:case H:Ge="";break;default:y!==H&&(Ge=" ")}break;case ne:Ge="\\0";break;case ie:Ge="\\f";break;case re:Ge="\\v";break;case K:h+f+c===0&&me>0&&(Ce=1,be=1,Ge="\f"+Ge);break;case 108:if(h+f+c+_e===0&&T>0)switch(G-T){case 2:b===le&&r.charCodeAt(G-3)===X&&(_e=b);case 8:k===ue&&(_e=k)}break;case X:h+f+c===0&&(T=G);break;case Y:f+d+h+c===0&&(be=1,Ge+="\r");break;case J:case $:0===f&&(h=h===y?0:0===h?y:h);break;case N:h+f+d===0&&c++;break;case B:h+f+d===0&&c--;break;case j:h+f+c===0&&d--;break;case R:h+f+c===0&&(0===C&&(2*b+3*k===533||(x=0,C=1)),d++);break;case U:f+d+h+c+T+D===0&&(D=1);break;case V:case Q:if(h+c+d>0)break;switch(f){case 0:switch(2*y+3*r.charCodeAt(G+1)){case 235:f=Q;break;case 220:De=G,f=V}break;case V:y===Q&&b===V&&De+2!==G&&(33===r.charCodeAt(De+2)&&(Xe+=r.substring(De,G+1)),Ge="",f=0)}}if(0===f){if(me+h+c+D===0&&a!==ae&&y!==I)switch(y){case Y:case te:case Z:case ee:case j:case R:if(0===C){switch(b){case z:case H:case L:case q:Ge+="\0";break;default:Ge="\0"+Ge+(y===Y?"":"\0")}be=1}else switch(y){case R:T+7===G&&108===b&&(T=0),C=++x;break;case j:0==(C=--x)&&(be=1,Ge+="\0")}break;case z:case H:switch(b){case ne:case P:case M:case I:case Y:case ie:case z:case H:case L:case q:break;default:0===C&&(be=1,Ge+="\0")}}Ve+=Ge,y!==H&&y!==z&&(w=y)}}k=b,b=y,G++}if(De=Xe.length,ke>0&&0===De&&0===$e.length&&0===t[0].length==0&&(a!==oe||1===t.length&&(me>0?je:Ne)===t[0])&&(De=t.join(",").length+2),De>0){if(s=0===me&&a!==ae?function(e){for(var t,n,r=0,a=e.length,o=Array(a);r1)){if(d=l.charCodeAt(l.length-1),h=n.charCodeAt(0),t="",0!==c)switch(d){case V:case te:case Z:case ee:case H:case R:break;default:t=" "}switch(h){case K:n=t+je;case te:case Z:case ee:case H:case j:case R:break;case N:n=t+n+je;break;case X:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ye>0){n=t+n.substring(8,f-1);break}default:(c<1||s[c-1].length<1)&&(n=t+je+n)}break;case Y:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(v,"$1"+je+"$2"):t+n+je}l+=n}o[r]=l.replace(i,"").trim()}return o}(t):t,xe>0&&void 0!==(l=Ke(Oe,Xe,s,e,ge,pe,De,a,o,a))&&0===(Xe=l).length)return Je+Xe+$e;if(Xe=s.join(",")+"{"+Xe+"}",Fe*_e!=0){switch(2!==Fe||Ue(Xe,2)||(_e=0),_e){case ue:Xe=Xe.replace(_,":"+A+"$1")+Xe;break;case le:Xe=Xe.replace(g,"::"+S+"input-$1")+Xe.replace(g,"::"+A+"$1")+Xe.replace(g,":"+O+"input-$1")+Xe}_e=0}}return Je+Xe+$e}function Le(e,t,n){var i=t.trim().split(c),r=i,a=i.length,o=e.length;switch(o){case 0:case 1:for(var s=0,l=0===o?"":e[0]+" ";s0&&me>0)return r.replace(d,"$1").replace(f,"$1"+Ne);default:if(n*me>0&&r.indexOf("\f")>0)return r.replace(f,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+r}function ze(e,t,n,i){var u,c=0,f=e+";",d=2*t+3*n+4*i;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,i=e.substring(0,n).trim(),r=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Pe){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:var a=r.split((r="",s)),o=0;for(n=0,t=a.length;oU&&f<90||f>96&&f<123||f===G||f===W&&u.charCodeAt(1)!==W)&&isNaN(parseFloat(u))+(-1!==u.indexOf("("))===1)switch(u){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:u+=Re}c[n++]=u}r+=(0===o?"":",")+c.join(" ")}}return r=i+r+";",1===Fe||2===Fe&&Ue(r,1)?S+r+r:r}(f);if(0===Fe||2===Fe&&!Ue(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?S+f+f:f;case 951:return 116===f.charCodeAt(3)?S+f+f:f;case 963:return 110===f.charCodeAt(5)?S+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return S+f+f;case 978:return S+f+A+f+f;case 1019:case 983:return S+f+A+f+O+f+f;case 883:return f.charCodeAt(8)===W?S+f+f:f.indexOf("image-set(",11)>0?f.replace(T,"$1"+S+"$2")+f:f;case 932:if(f.charCodeAt(4)===W)switch(f.charCodeAt(5)){case 103:return S+"box-"+f.replace("-grow","")+S+f+O+f.replace("grow","positive")+f;case 115:return S+f+O+f.replace("shrink","negative")+f;case 98:return S+f+O+f.replace("basis","preferred-size")+f}return S+f+O+f+f;case 964:return S+f+O+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return u=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),S+"box-pack"+u+S+f+O+"flex-pack"+u+f;case 1005:return a.test(f)?f.replace(r,":"+S)+f.replace(r,":"+A)+f:f;case 1e3:switch(c=(u=f.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(c)){case 226:u=f.replace(k,"tb");break;case 232:u=f.replace(k,"tb-rl");break;case 220:u=f.replace(k,"lr");break;default:return f}return S+f+O+u+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(c=(f=e).length-10,d=(u=(33===f.charCodeAt(c)?f.substring(0,c):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(u.charCodeAt(8)<111)break;case 115:f=f.replace(u,S+u)+";"+f;break;case 207:case 102:f=f.replace(u,S+(d>102?"inline-":"")+"box")+";"+f.replace(u,S+u)+";"+f.replace(u,O+u+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===W)switch(f.charCodeAt(6)){case 105:return u=f.replace("-items",""),S+f+S+"box-"+u+O+"flex-"+u+f;case 115:return S+f+O+"flex-item-"+f.replace(x,"")+f;default:return S+f+O+"flex-line-pack"+f.replace("align-content","").replace(x,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==W||122===f.charCodeAt(4))break;case 931:case 953:if(!0===D.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?ze(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):f.replace(u,S+u)+f.replace(u,A+u.replace("fill-",""))+f;break;case 962:if(f=S+f+(102===f.charCodeAt(5)?O+f:"")+f,n+i===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(o,"$1"+S+"$2")+f}return f}function Ue(e,t){var n=e.indexOf(1===t?":":"{"),i=e.substring(0,3!==t?n:10),r=e.substring(n+1,e.length-1);return Ce(2!==t?i:i.replace(C,"$1"),r,t)}function He(e,t){var n=ze(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function Ke(e,t,n,i,r,a,o,s,l,u){for(var c,f=0,d=t;f0&&(Re=r.replace(h,a===N?"":"-")),a=1,1===me?Ne=r:je=r;var o,s=[Ne];xe>0&&void 0!==(o=Ke(Te,n,s,s,ge,pe,0,0,0,0))&&"string"==typeof o&&(n=o);var l=Be(Ee,s,n,0,0);return xe>0&&void 0!==(o=Ke(De,l,s,s,ge,pe,l.length,0,0,0))&&"string"!=typeof(l=o)&&(a=0),Re="",Ne="",je="",_e=0,ge=1,pe=1,be*a==0?l:l.replace(i,"").replace(m,"").replace(F,"$1").replace(y,"$1").replace(b," ")}return Ve.use=function e(t){switch(t){case void 0:case null:xe=we.length=0;break;default:if("function"==typeof t)we[xe++]=t;else if("object"==typeof t)for(var n=0,i=t.length;nu;)r(i,n=t[u++])&&(~o(c,n)||l(c,n));return c}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:n)(t)}},function(e,t,n){var i=n(26);e.exports=i("document","documentElement")},function(e,t,n){var i=n(8);t.f=i},function(e,t,n){var i=n(5);e.exports=i},function(e,t,n){var i=n(6),r=n(26),a=n(8),o=n(28);e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&o(t,s,(function(e){return i(n,this)}),{arity:1})}},function(e,t,n){var i=n(108);e.exports=i&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";var i=n(17),r=n(82),a=n(21),o=n(207),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=i(this),l=a(n),u=r(e,l),c=r(t,l),f=arguments.length>2?arguments[2]:void 0,d=s((void 0===f?l:r(f,l))-c,l-u),h=1;for(c0;)c in n?n[u]=n[c]:o(n,u),u+=h,c+=h;return n}},function(e,t,n){"use strict";var i=n(94),r=n(21),a=n(206),o=n(22);e.exports=function e(t,n,s,l,u,c,f,d){for(var h,p=u,g=0,_=!!f&&o(f,d);g0&&i(h)?p=e(t,n,h,r(h),p,c-1)-1:(a(p+1),t[p]=h),p++),g++;return p}},function(e,t,n){"use strict";var i=n(22),r=n(6),a=n(17),o=n(452),s=n(209),l=n(95),u=n(21),c=n(83),f=n(133),d=n(134),h=Array;e.exports=function(e){var t=a(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,_=void 0!==g;_&&(g=i(g,p>2?arguments[2]:void 0));var m,F,y,b,v,k,E=d(t),w=0;if(!E||this===h&&s(E))for(m=u(t),F=n?new this(m):h(m);m>w;w++)k=_?g(t[w],w):t[w],c(F,w,k);else for(v=(b=f(t,E)).next,F=n?new this:[];!(y=r(v,b)).done;w++)k=_?o(b,g,[y.value,w],!0):y.value,c(F,w,k);return F.length=w,F}},function(e,t,n){"use strict";var i,r,a,o=n(3),s=n(10),l=n(11),u=n(54),c=n(39),f=n(28),d=n(8),h=n(33),p=d("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(r=c(c(a)))!==Object.prototype&&(i=r):g=!0),!l(i)||o((function(){var e={};return i[p].call(e)!==e}))?i={}:h&&(i=u(i)),s(i[p])||f(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},function(e,t,n){var i=n(4),r=n(15);e.exports=function(e,t,n){try{return i(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},function(e,t,n){var i=n(10),r=String,a=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw a("Can't set "+r(e)+" as a prototype")}},function(e,t,n){"use strict";var i=n(55),r=n(47),a=n(40),o=n(21),s=n(110),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),d=c||!f;e.exports=d?function(e){if(c)return i(u,this,arguments)||0;var t=r(this),n=o(t),s=n-1;for(arguments.length>1&&(s=l(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},function(e,t,n){var i=n(70).match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},function(e,t,n){var i=n(70);e.exports=/MSIE|Trident/.test(i)},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var i=n(40),r=n(53),a=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw a("Wrong length or index");return n}},function(e,t,n){"use strict";var i=n(54),r=n(50),a=n(112),o=n(22),s=n(72),l=n(32),u=n(41),c=n(210),f=n(111),d=n(98),h=n(9),p=n(99).fastKey,g=n(29),_=g.set,m=g.getterFor;e.exports={getConstructor:function(e,t,n,c){var f=e((function(e,r){s(e,d),_(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),l(r)||u(r,e[c],{that:e,AS_ENTRIES:n})})),d=f.prototype,g=m(t),F=function(e,t,n){var i,r,a=g(e),o=y(e,t);return o?o.value=n:(a.last=o={index:r=p(t,!0),key:t,value:n,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=o),i&&(i.next=o),h?a.size++:e.size++,"F"!==r&&(a.index[r]=o)),e},y=function(e,t){var n,i=g(e),r=p(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return a(d,{clear:function(){for(var e=g(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=this,n=g(t),i=y(t,e);if(i){var r=i.next,a=i.previous;delete n.index[i.index],i.removed=!0,a&&(a.next=r),r&&(r.previous=a),n.first==i&&(n.first=r),n.last==i&&(n.last=a),h?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=g(this),i=o(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),a(d,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return F(this,0===e?0:e,t)}}:{add:function(e){return F(this,e=0===e?0:e,e)}}),h&&r(d,"size",{configurable:!0,get:function(){return g(this).size}}),f},setStrong:function(e,t,n){var i=t+" Iterator",r=m(t),a=m(i);c(e,t,(function(e,t){_(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?f("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},function(e,t,n){var i=n(218),r=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),u=a(2,-126);e.exports=Math.fround||function(e){var t,n,a=+e,c=r(a),f=i(a);return cl||n!=n?f*(1/0):f*n}},function(e,t,n){var i=n(5),r=n(3),a=n(4),o=n(13),s=n(115).trim,l=n(164),u=a("".charAt),c=i.parseFloat,f=i.Symbol,d=f&&f.iterator,h=1/c(l+"-0")!==-1/0||d&&!r((function(){c(Object(d))}));e.exports=h?function(e){var t=s(o(e)),n=c(t);return 0===n&&"-"==u(t,0)?-0:n}:c},function(e,t,n){"use strict";var i=n(9),r=n(4),a=n(6),o=n(3),s=n(129),l=n(155),u=n(150),c=n(17),f=n(151),d=Object.assign,h=Object.defineProperty,p=r([].concat);e.exports=!d||o((function(){if(i&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||s(d({},t)).join("")!=r}))?function(e,t){for(var n=c(e),r=arguments.length,o=1,d=l.f,h=u.f;r>o;)for(var g,_=f(arguments[o++]),m=d?p(s(_),d(_)):s(_),F=m.length,y=0;F>y;)g=m[y++],i&&!a(h,_,g)||(n[g]=_[g]);return n}:d},function(e,t,n){var i=n(9),r=n(4),a=n(129),o=n(47),s=r(n(150).f),l=r([].push),u=function(e){return function(t){for(var n,r=o(t),u=a(r),c=u.length,f=0,d=[];c>f;)n=u[f++],i&&!s(r,n)||l(d,e?[n,r[n]]:r[n]);return d}};e.exports={entries:u(!0),values:u(!1)}},function(e,t,n){var i=n(70);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},function(e,t,n){var i,r,a,o,s,l=n(5),u=n(22),c=n(35).f,f=n(166).set,d=n(296),h=n(294),p=n(532),g=n(533),_=n(96),m=l.MutationObserver||l.WebKitMutationObserver,F=l.document,y=l.process,b=l.Promise,v=c(l,"queueMicrotask"),k=v&&v.value;if(!k){var E=new d,w=function(){var e,t;for(_&&(e=y.domain)&&e.exit();t=E.get();)try{t()}catch(n){throw E.head&&i(),n}e&&e.enter()};h||_||g||!m||!F?!p&&b&&b.resolve?((o=b.resolve(void 0)).constructor=b,s=u(o.then,o),i=function(){s(w)}):_?i=function(){y.nextTick(w)}:(f=u(f,l),i=function(){f(w)}):(r=!0,a=F.createTextNode(""),new m(w).observe(a,{characterData:!0}),i=function(){a.data=r=!r}),k=function(e){E.head||i(),E.add(e)}}e.exports=k},function(e,t){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=n},function(e,t){e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(n){}}},function(e,t){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(e,t,n){var i=n(7),r=n(11),a=n(86);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var i=n(16);e.exports=function(e){return void 0!==e&&(i(e,"value")||i(e,"writable"))}},function(e,t,n){var i=n(3),r=n(5).RegExp;e.exports=i((function(){var e=r(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},function(e,t,n){var i=n(3),r=n(5).RegExp;e.exports=i((function(){var e=r("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},function(e,t,n){"use strict";var i=n(1),r=n(169);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){"use strict";var i=n(118).charAt,r=n(13),a=n(29),o=n(210),s=n(111),l="String Iterator",u=a.set,c=a.getterFor(l);o(String,"String",(function(e){u(this,{type:l,string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=i(n,r),t.index+=e.length,s(e,!1))}))},function(e,t,n){var i=n(4),r=n(53),a=n(13),o=n(306),s=n(31),l=i(o),u=i("".slice),c=Math.ceil,f=function(e){return function(t,n,i){var o,f,d=a(s(t)),h=r(n),p=d.length,g=void 0===i?" ":a(i);return h<=p||""==g?d:((f=l(g,c((o=h-p)/g.length))).length>o&&(f=u(f,0,o)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},function(e,t,n){"use strict";var i=n(40),r=n(13),a=n(31),o=RangeError;e.exports=function(e){var t=r(a(this)),n="",s=i(e);if(s<0||s==1/0)throw o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},function(e,t,n){var i=n(70);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(i)},function(e,t,n){var i=n(4),r=n(17),a=Math.floor,o=i("".charAt),s=i("".replace),l=i("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,f,d){var h=n+e.length,p=i.length,g=c;return void 0!==f&&(f=r(f),g=u),s(d,g,(function(r,s){var u;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,h);case"<":u=f[l(s,1,-1)];break;default:var c=+s;if(0===c)return r;if(c>p){var d=a(c/10);return 0===d?r:d<=p?void 0===i[d-1]?o(s,1):i[d-1]+o(s,1):r}u=i[c-1]}return void 0===u?"":u}))}},function(e,t,n){"use strict";var i=n(115).end,r=n(225);e.exports=r("trimEnd")?function(){return i(this)}:"".trimEnd},function(e,t,n){"use strict";var i=n(115).start,r=n(225);e.exports=r("trimStart")?function(){return i(this)}:"".trimStart},function(e,t,n){var i=n(581),r=RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw r("Wrong offset");return n}},function(e,t,n){var i=n(22),r=n(6),a=n(160),o=n(17),s=n(21),l=n(133),u=n(134),c=n(209),f=n(582),d=n(18).aTypedArrayConstructor,h=n(313);e.exports=function(e){var t,n,p,g,_,m,F,y,b=a(this),v=o(e),k=arguments.length,E=k>1?arguments[1]:void 0,w=void 0!==E,x=u(v);if(x&&!c(x))for(y=(F=l(v,x)).next,v=[];!(m=r(y,F)).done;)v.push(m.value);for(w&&k>2&&(E=i(E,arguments[2])),n=s(v),p=new(d(b))(n),g=f(p),t=0;n>t;t++)_=w?E(v[t],t):v[t],p[t]=g?h(_):+_;return p}},function(e,t,n){var i=n(152),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw r("Can't convert number to bigint");return BigInt(t)}},function(e,t,n){"use strict";var i=n(4),r=n(112),a=n(99).getWeakData,o=n(72),s=n(7),l=n(32),u=n(11),c=n(41),f=n(38),d=n(16),h=n(29),p=h.set,g=h.getterFor,_=f.find,m=f.findIndex,F=i([].splice),y=0,b=function(e){return e.frozen||(e.frozen=new v)},v=function(){this.entries=[]},k=function(e,t){return _(e.entries,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=k(this,e);if(t)return t[1]},has:function(e){return!!k(this,e)},set:function(e,t){var n=k(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&F(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var f=e((function(e,r){o(e,h),p(e,{type:t,id:y++,frozen:void 0}),l(r)||c(r,e[i],{that:e,AS_ENTRIES:n})})),h=f.prototype,_=g(t),m=function(e,t,n){var i=_(e),r=a(s(t),!0);return!0===r?b(i).set(t,n):r[i.id]=n,e};return r(h,{delete:function(e){var t=_(this);if(!u(e))return!1;var n=a(e);return!0===n?b(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=_(this);if(!u(e))return!1;var n=a(e);return!0===n?b(t).has(e):n&&d(n,t.id)}}),r(h,n?{get:function(e){var t=_(this);if(u(e)){var n=a(e);return!0===n?b(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},function(e,t,n){n(215),n(228);var i=n(26),r=n(54),a=n(11),o=Object,s=TypeError,l=i("Map"),u=i("WeakMap"),c=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=r(null)};c.prototype.get=function(e,t){return this[e]||(this[e]=t())},c.prototype.next=function(e,t,n){var i=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new u):this.primitives||(this.primitives=new l),r=i.get(t);return r||i.set(t,r=new c),r};var f=new c;e.exports=function(){var e,t,n=f,i=arguments.length;for(e=0;e0?arguments[0]:void 0));s||(this.length=e.entries.length)},he=de.prototype;if(f(he,{append:function(e,t){D(arguments.length,2);var n=P(this);X(n.entries,{key:k(e),value:k(t)}),s||this.length++,n.updateURL()},delete:function(e){D(arguments.length,1);for(var t=P(this),n=t.entries,i=k(e),r=0;rt.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=P(this).entries,i=F(e,arguments.length>1?arguments[1]:void 0),r=0;r1?_e(arguments[1]):{})}}),_(L)){var me=function(e){return g(this,z),new L(e,arguments.length>1?_e(arguments[1]):{})};z.constructor=me,me.prototype=z,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:me})}}e.exports={URLSearchParams:de,getState:P}},function(e,t,n){e.exports=n.p+"static/media/ico_logo_dk.a8aea59e.svg"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heightWidthRadiusDefaults=t.heightWidthDefaults=t.sizeMarginDefaults=t.sizeDefaults=void 0;var i={loading:!0,color:"#000000",css:""};function r(e){return Object.assign({},i,{size:e})}function a(e,t){return Object.assign({},i,{height:e,width:t})}t.sizeDefaults=r,t.sizeMarginDefaults=function(e){return Object.assign({},r(e),{margin:2})},t.heightWidthDefaults=a,t.heightWidthRadiusDefaults=function(e,t,n){return void 0===n&&(n=2),Object.assign({},a(e,t),{radius:n,margin:2})}},function(e,t,n){"use strict";var i=n(119),r=n(779),a=n(780),o=n(781),s=n(232),l=n(233),u=n(234),c=n(328),f=n(141),d=n(68),h=d.TAG_NAMES,p=d.NAMESPACES,g=d.ATTRS,_={locationInfo:!1,treeAdapter:s},m="hidden",F=8,y=3,b="INITIAL_MODE",v="BEFORE_HTML_MODE",k="BEFORE_HEAD_MODE",E="IN_HEAD_MODE",w="AFTER_HEAD_MODE",x="IN_BODY_MODE",C="TEXT_MODE",D="IN_TABLE_MODE",T="IN_TABLE_TEXT_MODE",S="IN_CAPTION_MODE",A="IN_COLUMN_GROUP_MODE",O="IN_TABLE_BODY_MODE",I="IN_ROW_MODE",M="IN_CELL_MODE",P="IN_SELECT_MODE",R="IN_SELECT_IN_TABLE_MODE",j="IN_TEMPLATE_MODE",N="AFTER_BODY_MODE",B="IN_FRAMESET_MODE",L="AFTER_FRAMESET_MODE",q="AFTER_AFTER_BODY_MODE",z="AFTER_AFTER_FRAMESET_MODE",U=Object.create(null);U[h.TR]=I,U[h.TBODY]=U[h.THEAD]=U[h.TFOOT]=O,U[h.CAPTION]=S,U[h.COLGROUP]=A,U[h.TABLE]=D,U[h.BODY]=x,U[h.FRAMESET]=B;var H=Object.create(null);H[h.CAPTION]=H[h.COLGROUP]=H[h.TBODY]=H[h.TFOOT]=H[h.THEAD]=D,H[h.COL]=A,H[h.TR]=O,H[h.TD]=H[h.TH]=I;var K=Object.create(null);K[b]=Object.create(null),K[b][i.CHARACTER_TOKEN]=K[b][i.NULL_CHARACTER_TOKEN]=re,K[b][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[b][i.COMMENT_TOKEN]=ee,K[b][i.DOCTYPE_TOKEN]=function(e,t){e._setDocumentType(t);var n=t.forceQuirks?d.DOCUMENT_MODE.QUIRKS:u.getDocumentMode(t.name,t.publicId,t.systemId);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=v},K[b][i.START_TAG_TOKEN]=K[b][i.END_TAG_TOKEN]=K[b][i.EOF_TOKEN]=re,K[v]=Object.create(null),K[v][i.CHARACTER_TOKEN]=K[v][i.NULL_CHARACTER_TOKEN]=ae,K[v][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[v][i.COMMENT_TOKEN]=ee,K[v][i.DOCTYPE_TOKEN]=Z,K[v][i.START_TAG_TOKEN]=function(e,t){t.tagName===h.HTML?(e._insertElement(t,p.HTML),e.insertionMode=k):ae(e,t)},K[v][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==h.HTML&&n!==h.HEAD&&n!==h.BODY&&n!==h.BR||ae(e,t)},K[v][i.EOF_TOKEN]=ae,K[k]=Object.create(null),K[k][i.CHARACTER_TOKEN]=K[k][i.NULL_CHARACTER_TOKEN]=oe,K[k][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[k][i.COMMENT_TOKEN]=ee,K[k][i.DOCTYPE_TOKEN]=Z,K[k][i.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===h.HTML?Ee(e,t):n===h.HEAD?(e._insertElement(t,p.HTML),e.headElement=e.openElements.current,e.insertionMode=E):oe(e,t)},K[k][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==h.HEAD&&n!==h.BODY&&n!==h.HTML&&n!==h.BR||oe(e,t)},K[k][i.EOF_TOKEN]=oe,K[E]=Object.create(null),K[E][i.CHARACTER_TOKEN]=K[E][i.NULL_CHARACTER_TOKEN]=ue,K[E][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[E][i.COMMENT_TOKEN]=ee,K[E][i.DOCTYPE_TOKEN]=Z,K[E][i.START_TAG_TOKEN]=se,K[E][i.END_TAG_TOKEN]=le,K[E][i.EOF_TOKEN]=ue,K[w]=Object.create(null),K[w][i.CHARACTER_TOKEN]=K[w][i.NULL_CHARACTER_TOKEN]=ce,K[w][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[w][i.COMMENT_TOKEN]=ee,K[w][i.DOCTYPE_TOKEN]=Z,K[w][i.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===h.HTML?Ee(e,t):n===h.BODY?(e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=x):n===h.FRAMESET?(e._insertElement(t,p.HTML),e.insertionMode=B):n===h.BASE||n===h.BASEFONT||n===h.BGSOUND||n===h.LINK||n===h.META||n===h.NOFRAMES||n===h.SCRIPT||n===h.STYLE||n===h.TEMPLATE||n===h.TITLE?(e.openElements.push(e.headElement),se(e,t),e.openElements.remove(e.headElement)):n!==h.HEAD&&ce(e,t)},K[w][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===h.BODY||n===h.HTML||n===h.BR?ce(e,t):n===h.TEMPLATE&&le(e,t)},K[w][i.EOF_TOKEN]=ce,K[x]=Object.create(null),K[x][i.CHARACTER_TOKEN]=de,K[x][i.NULL_CHARACTER_TOKEN]=Z,K[x][i.WHITESPACE_CHARACTER_TOKEN]=fe,K[x][i.COMMENT_TOKEN]=ee,K[x][i.DOCTYPE_TOKEN]=Z,K[x][i.START_TAG_TOKEN]=Ee,K[x][i.END_TAG_TOKEN]=De,K[x][i.EOF_TOKEN]=Te,K[C]=Object.create(null),K[C][i.CHARACTER_TOKEN]=K[C][i.NULL_CHARACTER_TOKEN]=K[C][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[C][i.COMMENT_TOKEN]=K[C][i.DOCTYPE_TOKEN]=K[C][i.START_TAG_TOKEN]=Z,K[C][i.END_TAG_TOKEN]=function(e,t){t.tagName===h.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},K[C][i.EOF_TOKEN]=function(e,t){e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)},K[D]=Object.create(null),K[D][i.CHARACTER_TOKEN]=K[D][i.NULL_CHARACTER_TOKEN]=K[D][i.WHITESPACE_CHARACTER_TOKEN]=Se,K[D][i.COMMENT_TOKEN]=ee,K[D][i.DOCTYPE_TOKEN]=Z,K[D][i.START_TAG_TOKEN]=Ae,K[D][i.END_TAG_TOKEN]=Oe,K[D][i.EOF_TOKEN]=Te,K[T]=Object.create(null),K[T][i.CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},K[T][i.NULL_CHARACTER_TOKEN]=Z,K[T][i.WHITESPACE_CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t)},K[T][i.COMMENT_TOKEN]=K[T][i.DOCTYPE_TOKEN]=K[T][i.START_TAG_TOKEN]=K[T][i.END_TAG_TOKEN]=K[T][i.EOF_TOKEN]=function(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n=0;i--){var r=e.openElements.items[i];if(r===t.element)break;e._isSpecialElement(r)&&(n=r)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Y(e,t,n){for(var i=t,r=e.openElements.getCommonAncestor(t),a=0,o=r;o!==n;a++,o=r){r=e.openElements.getCommonAncestor(o);var s=e.activeFormattingElements.getElementEntry(o),l=s&&a>=y;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=X(e,s),i===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(o,i),i=o)}return i}function X(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function $(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{var i=e.treeAdapter.getTagName(t),r=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&r===p.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function J(e,t,n){var i=e.treeAdapter.getNamespaceURI(n.element),r=n.token,a=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Q(e,t){for(var n,i=0;i0&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode())}function ue(e,t){e.openElements.pop(),e.insertionMode=w,e._processToken(t)}function ce(e,t){e._insertFakeElement(h.BODY),e.insertionMode=x,e._processToken(t)}function fe(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function de(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function he(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML)}function pe(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ge(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function me(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.HTML),e.framesetOk=!1}function Fe(e,t){e._appendElement(t,p.HTML)}function ye(e,t){e._switchToTextParsing(t,i.MODE.RAWTEXT)}function be(e,t){e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}function ve(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,p.HTML)}function ke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}function Ee(e,t){var n=t.tagName;switch(n.length){case 1:n===h.I||n===h.S||n===h.B||n===h.U?ge(e,t):n===h.P?he(e,t):n===h.A?function(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(h.A);n&&(Q(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ke(e,t);break;case 2:n===h.DL||n===h.OL||n===h.UL?he(e,t):n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement();var n=e.openElements.currentTagName;n!==h.H1&&n!==h.H2&&n!==h.H3&&n!==h.H4&&n!==h.H5&&n!==h.H6||e.openElements.pop(),e._insertElement(t,p.HTML)}(e,t):n===h.LI||n===h.DD||n===h.DT?function(e,t){e.framesetOk=!1;for(var n=t.tagName,i=e.openElements.stackTop;i>=0;i--){var r=e.openElements.items[i],a=e.treeAdapter.getTagName(r),o=null;if(n===h.LI&&a===h.LI?o=h.LI:n!==h.DD&&n!==h.DT||a!==h.DD&&a!==h.DT||(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==h.ADDRESS&&a!==h.DIV&&a!==h.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML)}(e,t):n===h.EM||n===h.TT?ge(e,t):n===h.BR?me(e,t):n===h.HR?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagName===h.MENUITEM&&e.openElements.pop(),e._appendElement(t,p.HTML),e.framesetOk=!1}(e,t):n===h.RB?ve(e,t):n===h.RT||n===h.RP?function(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,p.HTML)}(e,t):n!==h.TH&&n!==h.TD&&n!==h.TR&&ke(e,t);break;case 3:n===h.DIV||n===h.DIR||n===h.NAV?he(e,t):n===h.PRE?pe(e,t):n===h.BIG?ge(e,t):n===h.IMG||n===h.WBR?me(e,t):n===h.XMP?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,i.MODE.RAWTEXT)}(e,t):n===h.SVG?function(e,t){e._reconstructActiveFormattingElements(),c.adjustTokenSVGAttrs(t),c.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,p.SVG):e._insertElement(t,p.SVG)}(e,t):n===h.RTC?ve(e,t):n!==h.COL&&ke(e,t);break;case 4:n===h.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===h.BASE||n===h.LINK||n===h.META?se(e,t):n===h.BODY?function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===h.MAIN?he(e,t):n===h.FORM?function(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===h.CODE||n===h.FONT?ge(e,t):n===h.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(Q(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===h.AREA?me(e,t):n===h.MATH?function(e,t){e._reconstructActiveFormattingElements(),c.adjustTokenMathMLAttrs(t),c.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,p.MATHML):e._insertElement(t,p.MATHML)}(e,t):n===h.MENU?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagName===h.MENUITEM&&e.openElements.pop(),e._insertElement(t,p.HTML)}(e,t):n!==h.HEAD&&ke(e,t);break;case 5:n===h.STYLE||n===h.TITLE?se(e,t):n===h.ASIDE?he(e,t):n===h.SMALL?ge(e,t):n===h.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==d.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=D}(e,t):n===h.EMBED?me(e,t):n===h.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.HTML);var n=i.getTokenAttr(t,g.TYPE);n&&n.toLowerCase()===m||(e.framesetOk=!1)}(e,t):n===h.PARAM||n===h.TRACK?Fe(e,t):n===h.IMAGE?function(e,t){t.tagName=h.IMG,me(e,t)}(e,t):n!==h.FRAME&&n!==h.TBODY&&n!==h.TFOOT&&n!==h.THEAD&&ke(e,t);break;case 6:n===h.SCRIPT?se(e,t):n===h.CENTER||n===h.FIGURE||n===h.FOOTER||n===h.HEADER||n===h.HGROUP?he(e,t):n===h.BUTTON?function(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.framesetOk=!1}(e,t):n===h.STRIKE||n===h.STRONG?ge(e,t):n===h.APPLET||n===h.OBJECT?_e(e,t):n===h.KEYGEN?me(e,t):n===h.SOURCE?Fe(e,t):n===h.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,i.MODE.RAWTEXT)}(e,t):n===h.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode===D||e.insertionMode===S||e.insertionMode===O||e.insertionMode===I||e.insertionMode===M?e.insertionMode=R:e.insertionMode=P}(e,t):n===h.OPTION?be(e,t):ke(e,t);break;case 7:n===h.BGSOUND?se(e,t):n===h.DETAILS||n===h.ADDRESS||n===h.ARTICLE||n===h.SECTION||n===h.SUMMARY?he(e,t):n===h.LISTING?pe(e,t):n===h.MARQUEE?_e(e,t):n===h.NOEMBED?ye(e,t):n!==h.CAPTION&&ke(e,t);break;case 8:n===h.BASEFONT?se(e,t):n===h.MENUITEM?function(e,t){e.openElements.currentTagName===h.MENUITEM&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}(e,t):n===h.FRAMESET?function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,p.HTML),e.insertionMode=B)}(e,t):n===h.FIELDSET?he(e,t):n===h.TEXTAREA?function(e,t){e._insertElement(t,p.HTML),e.skipNextNewLine=!0,e.tokenizer.state=i.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=C}(e,t):n===h.TEMPLATE?se(e,t):n===h.NOSCRIPT?ye(e,t):n===h.OPTGROUP?be(e,t):n!==h.COLGROUP&&ke(e,t);break;case 9:n===h.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.tokenizer.state=i.MODE.PLAINTEXT}(e,t):ke(e,t);break;case 10:n===h.BLOCKQUOTE||n===h.FIGCAPTION?he(e,t):ke(e,t);break;default:ke(e,t)}}function we(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function xe(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Ce(e,t){for(var n=t.tagName,i=e.openElements.stackTop;i>0;i--){var r=e.openElements.items[i];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function De(e,t){var n=t.tagName;switch(n.length){case 1:n===h.A||n===h.B||n===h.I||n===h.S||n===h.U?Q(e,t):n===h.P?function(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(h.P),e._closePElement()}(e):Ce(e,t);break;case 2:n===h.DL||n===h.UL||n===h.OL?we(e,t):n===h.LI?function(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}(e):n===h.DD||n===h.DT?function(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===h.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(h.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===h.EM||n===h.TT?Q(e,t):Ce(e,t);break;case 3:n===h.BIG?Q(e,t):n===h.DIR||n===h.DIV||n===h.NAV?we(e,t):Ce(e,t);break;case 4:n===h.BODY?function(e){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=N)}(e):n===h.HTML?function(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=N,e._processToken(t))}(e,t):n===h.FORM?function(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):e.openElements.remove(n))}(e):n===h.CODE||n===h.FONT||n===h.NOBR?Q(e,t):n===h.MAIN||n===h.MENU?we(e,t):Ce(e,t);break;case 5:n===h.ASIDE?we(e,t):n===h.SMALL?Q(e,t):Ce(e,t);break;case 6:n===h.CENTER||n===h.FIGURE||n===h.FOOTER||n===h.HEADER||n===h.HGROUP?we(e,t):n===h.APPLET||n===h.OBJECT?xe(e,t):n===h.STRIKE||n===h.STRONG?Q(e,t):Ce(e,t);break;case 7:n===h.ADDRESS||n===h.ARTICLE||n===h.DETAILS||n===h.SECTION||n===h.SUMMARY?we(e,t):n===h.MARQUEE?xe(e,t):Ce(e,t);break;case 8:n===h.FIELDSET?we(e,t):n===h.TEMPLATE?le(e,t):Ce(e,t);break;case 10:n===h.BLOCKQUOTE||n===h.FIGCAPTION?we(e,t):Ce(e,t);break;default:Ce(e,t)}}function Te(e,t){e.tmplInsertionModeStackTop>-1?je(e,t):e.stopped=!0}function Se(e,t){var n=e.openElements.currentTagName;n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=T,e._processToken(t)):Ie(e,t)}function Ae(e,t){var n=t.tagName;switch(n.length){case 2:n===h.TD||n===h.TH||n===h.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(h.TBODY),e.insertionMode=O,e._processToken(t)}(e,t):Ie(e,t);break;case 3:n===h.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(h.COLGROUP),e.insertionMode=A,e._processToken(t)}(e,t):Ie(e,t);break;case 4:n===h.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,p.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Ie(e,t);break;case 5:n===h.TABLE?function(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===h.STYLE?se(e,t):n===h.TBODY||n===h.TFOOT||n===h.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,p.HTML),e.insertionMode=O}(e,t):n===h.INPUT?function(e,t){var n=i.getTokenAttr(t,g.TYPE);n&&n.toLowerCase()===m?e._appendElement(t,p.HTML):Ie(e,t)}(e,t):Ie(e,t);break;case 6:n===h.SCRIPT?se(e,t):Ie(e,t);break;case 7:n===h.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,p.HTML),e.insertionMode=S}(e,t):Ie(e,t);break;case 8:n===h.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,p.HTML),e.insertionMode=A}(e,t):n===h.TEMPLATE?se(e,t):Ie(e,t);break;default:Ie(e,t)}}function Oe(e,t){var n=t.tagName;n===h.TABLE?e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode()):n===h.TEMPLATE?le(e,t):n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP&&n!==h.HTML&&n!==h.TBODY&&n!==h.TD&&n!==h.TFOOT&&n!==h.TH&&n!==h.THEAD&&n!==h.TR&&Ie(e,t)}function Ie(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Me(e,t){e.openElements.currentTagName===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=D,e._processToken(t))}function Pe(e,t){var n=t.tagName;n===h.HTML?Ee(e,t):n===h.OPTION?(e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e._insertElement(t,p.HTML)):n===h.OPTGROUP?(e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e.openElements.currentTagName===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,p.HTML)):n===h.INPUT||n===h.KEYGEN||n===h.TEXTAREA||n===h.SELECT?e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),n!==h.SELECT&&e._processToken(t)):n!==h.SCRIPT&&n!==h.TEMPLATE||se(e,t)}function Re(e,t){var n=t.tagName;if(n===h.OPTGROUP){var i=e.openElements.items[e.openElements.stackTop-1],r=i&&e.treeAdapter.getTagName(i);e.openElements.currentTagName===h.OPTION&&r===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===h.OPTGROUP&&e.openElements.pop()}else n===h.OPTION?e.openElements.currentTagName===h.OPTION&&e.openElements.pop():n===h.SELECT&&e.openElements.hasInSelectScope(h.SELECT)?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode()):n===h.TEMPLATE&&le(e,t)}function je(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Ne(e,t){e.insertionMode=x,e._processToken(t)}function Be(e,t){e.insertionMode=x,e._processToken(t)}W.prototype.parse=function(e){var t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t},W.prototype.parseFragment=function(e,t){t||(t=this.treeAdapter.createElement(h.TEMPLATE,p.HTML,[]));var n=this.treeAdapter.createElement("documentmock",p.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===h.TEMPLATE&&this._pushTmplInsertionMode(j),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);var i=this.treeAdapter.getFirstChild(n),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,r),r},W.prototype._bootstrap=function(e,t){this.tokenizer=new i(this.options),this.stopped=!1,this.insertionMode=b,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new r(this.document,this.treeAdapter),this.activeFormattingElements=new a(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1},W.prototype._runParsingLoop=function(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();var t=this.tokenizer.getNextToken();if(t.type===i.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===i.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}},W.prototype.runParsingLoopForCurrentChunk=function(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){var n=this.pendingScript;return this.pendingScript=null,void t(n)}e&&e()},W.prototype._setupTokenizerCDATAMode=function(){var e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==p.HTML&&!this._isIntegrationPoint(e)},W.prototype._switchToTextParsing=function(e,t){this._insertElement(e,p.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=C},W.prototype.switchToPlaintextParsing=function(){this.insertionMode=C,this.originalInsertionMode=x,this.tokenizer.state=i.MODE.PLAINTEXT},W.prototype._getAdjustedCurrentElement=function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current},W.prototype._findFormInFragmentContext=function(){var e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===h.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)},W.prototype._initTokenizerForFragmentParsing=function(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===p.HTML){var e=this.treeAdapter.getTagName(this.fragmentContext);e===h.TITLE||e===h.TEXTAREA?this.tokenizer.state=i.MODE.RCDATA:e===h.STYLE||e===h.XMP||e===h.IFRAME||e===h.NOEMBED||e===h.NOFRAMES||e===h.NOSCRIPT?this.tokenizer.state=i.MODE.RAWTEXT:e===h.SCRIPT?this.tokenizer.state=i.MODE.SCRIPT_DATA:e===h.PLAINTEXT&&(this.tokenizer.state=i.MODE.PLAINTEXT)}},W.prototype._setDocumentType=function(e){this.treeAdapter.setDocumentType(this.document,e.name,e.publicId,e.systemId)},W.prototype._attachElementToTree=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}},W.prototype._appendElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)},W.prototype._insertElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)},W.prototype._insertFakeElement=function(e){var t=this.treeAdapter.createElement(e,p.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)},W.prototype._insertTemplate=function(e){var t=this.treeAdapter.createElement(e.tagName,p.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)},W.prototype._insertFakeRootElement=function(){var e=this.treeAdapter.createElement(h.HTML,p.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)},W.prototype._appendCommentNode=function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)},W.prototype._insertCharacters=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}},W.prototype._adoptNodes=function(e,t){for(;;){var n=this.treeAdapter.getFirstChild(e);if(!n)break;this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}},W.prototype._shouldProcessTokenInForeignContent=function(e){var t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;var n=this.treeAdapter.getNamespaceURI(t);if(n===p.HTML)return!1;if(this.treeAdapter.getTagName(t)===h.ANNOTATION_XML&&n===p.MATHML&&e.type===i.START_TAG_TOKEN&&e.tagName===h.SVG)return!1;var r=e.type===i.CHARACTER_TOKEN||e.type===i.NULL_CHARACTER_TOKEN||e.type===i.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===i.START_TAG_TOKEN&&e.tagName!==h.MGLYPH&&e.tagName!==h.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,p.MATHML))&&((e.type!==i.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,p.HTML))&&e.type!==i.EOF_TOKEN)},W.prototype._processToken=function(e){K[this.insertionMode][e.type](this,e)},W.prototype._processTokenInBodyMode=function(e){K[x][e.type](this,e)},W.prototype._processTokenInForeignContent=function(e){e.type===i.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===i.NULL_CHARACTER_TOKEN?function(e,t){t.chars=f.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===i.WHITESPACE_CHARACTER_TOKEN?ne(this,e):e.type===i.COMMENT_TOKEN?ee(this,e):e.type===i.START_TAG_TOKEN?function(e,t){if(c.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==p.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{var n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===p.MATHML?c.adjustTokenMathMLAttrs(t):i===p.SVG&&(c.adjustTokenSVGTagName(t),c.adjustTokenSVGAttrs(t)),c.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i)}}(this,e):e.type===i.END_TAG_TOKEN&&function(e,t){for(var n=e.openElements.stackTop;n>0;n--){var i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===p.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(i).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(i);break}}}(this,e)},W.prototype._processInputToken=function(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e)},W.prototype._isIntegrationPoint=function(e,t){var n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e),r=this.treeAdapter.getAttrList(e);return c.isIntegrationPoint(n,i,r,t)},W.prototype._reconstructActiveFormattingElements=function(){var e=this.activeFormattingElements.length;if(e){var t=e,n=null;do{if(t--,(n=this.activeFormattingElements.entries[t]).type===a.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(var i=t;i=0;e--){var n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));var i=this.treeAdapter.getTagName(n),r=U[i];if(r){this.insertionMode=r;break}if(!(t||i!==h.TD&&i!==h.TH)){this.insertionMode=M;break}if(!t&&i===h.HEAD){this.insertionMode=E;break}if(i===h.SELECT){this._resetInsertionModeForSelect(e);break}if(i===h.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(i===h.HTML){this.insertionMode=this.headElement?w:k;break}if(t){this.insertionMode=x;break}}},W.prototype._resetInsertionModeForSelect=function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.items[t],i=this.treeAdapter.getTagName(n);if(i===h.TEMPLATE)break;if(i===h.TABLE)return void(this.insertionMode=R)}this.insertionMode=P},W.prototype._pushTmplInsertionMode=function(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e},W.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]},W.prototype._isElementCausesFosterParenting=function(e){var t=this.treeAdapter.getTagName(e);return t===h.TABLE||t===h.TBODY||t===h.TFOOT||t===h.THEAD||t===h.TR},W.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},W.prototype._findFosterParentingLocation=function(){for(var e={parent:null,beforeElement:null},t=this.openElements.stackTop;t>=0;t--){var n=this.openElements.items[t],i=this.treeAdapter.getTagName(n),r=this.treeAdapter.getNamespaceURI(n);if(i===h.TEMPLATE&&r===p.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(i===h.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e},W.prototype._fosterParentElement=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)},W.prototype._fosterParentText=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)},W.prototype._isSpecialElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return d.SPECIAL_ELEMENTS[n][t]}},function(e,t,n){"use strict";var i=n(174),r=n(119),a=n(327),o=n(76).inherits,s=e.exports=function(e){i.call(this,e),this.tokenizer=e,this.posTracker=new a(e.preprocessor),this.currentAttrLocation=null,this.currentTokenLocation=null};o(s,i),s.prototype._getCurrentLocation=function(){return{line:this.posTracker.line,col:this.posTracker.col,startOffset:this.posTracker.offset,endOffset:-1}},s.prototype._attachCurrentAttrLocationInfo=function(){this.currentAttrLocation.endOffset=this.posTracker.offset;var e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation},s.prototype._getOverriddenMethods=function(e,t){var n={_createStartTagToken:function(){t._createStartTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createEndTagToken:function(){t._createEndTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createCommentToken:function(){t._createCommentToken.call(this),this.currentToken.location=e.currentTokenLocation},_createDoctypeToken:function(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.currentTokenLocation},_createCharacterToken:function(n,i){t._createCharacterToken.call(this,n,i),this.currentCharacterToken.location=e.currentTokenLocation},_createAttr:function(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName:function(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue:function(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken:function(){this.currentCharacterToken&&(this.currentCharacterToken.location.endOffset=this.currentToken.location.startOffset),this.currentToken.location.endOffset=e.posTracker.offset+1,t._emitCurrentToken.call(this)},_emitCurrentCharacterToken:function(){this.currentCharacterToken&&-1===this.currentCharacterToken.location.endOffset&&(this.currentCharacterToken.location.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(r.MODE).forEach((function(i){var a=r.MODE[i];n[a]=function(n){e.currentTokenLocation=e._getCurrentLocation(),t[a].call(this,n)}})),n}},function(e,t,n){"use strict";var i=n(174),r=n(76).inherits,a=n(141).CODE_POINTS,o=e.exports=function(e){return e.__locTracker||(e.__locTracker=this,i.call(this,e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.col=-1,this.line=1),e.__locTracker};r(o,i),Object.defineProperty(o.prototype,"offset",{get:function(){return this.droppedBufferSize+this.preprocessor.pos}}),o.prototype._getOverriddenMethods=function(e,t){return{advance:function(){var n=t.advance.call(this);return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=e.offset),n===a.LINE_FEED&&(e.isEol=!0),e.col=e.offset-e.lineStartPos+1,n},retreat:function(){t.retreat.call(this),e.isEol=!1,e.col=e.offset-e.lineStartPos+1},dropParsedChunk:function(){var n=this.pos;t.dropParsedChunk.call(this),e.droppedBufferSize+=n-this.pos}}}},function(e,t,n){"use strict";var i=n(119),r=n(68),a=r.TAG_NAMES,o=r.NAMESPACES,s=r.ATTRS,l="text/html",u="application/xhtml+xml",c={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},f={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:o.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:o.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:o.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:o.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:o.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:o.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:o.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:o.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:o.XML},"xml:space":{prefix:"xml",name:"space",namespace:o.XML},xmlns:{prefix:"",name:"xmlns",namespace:o.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:o.XMLNS}},d=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},h=Object.create(null);h[a.B]=!0,h[a.BIG]=!0,h[a.BLOCKQUOTE]=!0,h[a.BODY]=!0,h[a.BR]=!0,h[a.CENTER]=!0,h[a.CODE]=!0,h[a.DD]=!0,h[a.DIV]=!0,h[a.DL]=!0,h[a.DT]=!0,h[a.EM]=!0,h[a.EMBED]=!0,h[a.H1]=!0,h[a.H2]=!0,h[a.H3]=!0,h[a.H4]=!0,h[a.H5]=!0,h[a.H6]=!0,h[a.HEAD]=!0,h[a.HR]=!0,h[a.I]=!0,h[a.IMG]=!0,h[a.LI]=!0,h[a.LISTING]=!0,h[a.MENU]=!0,h[a.META]=!0,h[a.NOBR]=!0,h[a.OL]=!0,h[a.P]=!0,h[a.PRE]=!0,h[a.RUBY]=!0,h[a.S]=!0,h[a.SMALL]=!0,h[a.SPAN]=!0,h[a.STRONG]=!0,h[a.STRIKE]=!0,h[a.SUB]=!0,h[a.SUP]=!0,h[a.TABLE]=!0,h[a.TT]=!0,h[a.U]=!0,h[a.UL]=!0,h[a.VAR]=!0,t.causesExit=function(e){var t=e.tagName;return!!(t===a.FONT&&(null!==i.getTokenAttr(e,s.COLOR)||null!==i.getTokenAttr(e,s.SIZE)||null!==i.getTokenAttr(e,s.FACE)))||h[t]},t.adjustTokenMathMLAttrs=function(e){for(var t=0;t/g,g=e.exports=function(e,t){this.options=r(u,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e};g.escapeString=function(e,t){return e=e.replace(c,"&").replace(f," "),e=t?e.replace(d,"""):e.replace(h,"<").replace(p,">")},g.prototype.serialize=function(){return this._serializeChildNodes(this.startNode),this.html},g.prototype._serializeChildNodes=function(e){var t=this.treeAdapter.getChildNodes(e);if(t)for(var n=0,i=t.length;n",t!==s.AREA&&t!==s.BASE&&t!==s.BASEFONT&&t!==s.BGSOUND&&t!==s.BR&&t!==s.BR&&t!==s.COL&&t!==s.EMBED&&t!==s.FRAME&&t!==s.HR&&t!==s.IMG&&t!==s.INPUT&&t!==s.KEYGEN&&t!==s.LINK&&t!==s.MENUITEM&&t!==s.META&&t!==s.PARAM&&t!==s.SOURCE&&t!==s.TRACK&&t!==s.WBR){var i=t===s.TEMPLATE&&n===l.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(i),this.html+=""}},g.prototype._serializeAttributes=function(e){for(var t=this.treeAdapter.getAttrList(e),n=0,i=t.length;n"}},function(e,t,n){"use strict";var i=n(175).Writable,r=n(76).inherits,a=n(325),o=e.exports=function(e){i.call(this),this.parser=new a(e),this.lastChunkWritten=!1,this.writeCallback=null,this.pausedByScript=!1,this.document=this.parser.treeAdapter.createDocument(),this.pendingHtmlInsertions=[],this._resume=this._resume.bind(this),this._documentWrite=this._documentWrite.bind(this),this._scriptHandler=this._scriptHandler.bind(this),this.parser._bootstrap(this.document,null)};r(o,i),o.prototype._write=function(e,t,n){this.writeCallback=n,this.parser.tokenizer.write(e.toString("utf8"),this.lastChunkWritten),this._runParsingLoop()},o.prototype.end=function(e,t,n){this.lastChunkWritten=!0,i.prototype.end.call(this,e||"",t,n)},o.prototype._runParsingLoop=function(){this.parser.runParsingLoopForCurrentChunk(this.writeCallback,this._scriptHandler)},o.prototype._resume=function(){if(!this.pausedByScript)throw new Error("Parser was already resumed");for(;this.pendingHtmlInsertions.length;){var e=this.pendingHtmlInsertions.pop();this.parser.tokenizer.insertHtmlAtCurrentPos(e)}this.pausedByScript=!1,this.parser.tokenizer.active&&this._runParsingLoop()},o.prototype._documentWrite=function(e){this.parser.stopped||this.pendingHtmlInsertions.push(e)},o.prototype._scriptHandler=function(e){this.listeners("script").length?(this.pausedByScript=!0,this.emit("script",e,this._documentWrite,this._resume)):this._runParsingLoop()}},function(e,t,n){"use strict";(function(t,i){var r=n(176);e.exports=y;var a,o=n(786);y.ReadableState=F;n(235).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(332),u=n(237).Buffer,c=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var f=Object.create(n(142));f.inherits=n(120);var d=n(790),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,g=n(791),_=n(333);f.inherits(y,l);var m=["error","close","destroy","pause","resume"];function F(e,t){e=e||{};var i=t instanceof(a=a||n(102));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(335).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(a=a||n(102),!(this instanceof y))return new y(e);this._readableState=new F(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function b(e,t,n,i,r){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,w(e)}(e,o)):(r||(a=function(e,t){var n;i=t,u.isBuffer(i)||i instanceof c||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):v(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?v(e,o,t,!1):C(e,o)):v(e,o,t,!1))):i||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function w(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(x,e):x(e))}function x(e){h("emit readable"),e.emit("readable"),A(e)}function C(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(D,e,t))}function D(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var i;ea.length?a.length:e;if(o===a.length?r+=a:r+=a.slice(0,e),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}(e,t):function(e,t){var n=u.allocUnsafe(e),i=t.head,r=1;i.data.copy(n),e-=i.data.length;for(;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++r}return t.length-=r,n}(e,t);return i}(e,t.buffer,t.decoder),n);var n}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):w(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&I(this),null;var i,r=t.needReadable;return h("need readable",r),(0===t.length||t.length-e0?O(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&I(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,t);var l=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:y;function u(t,i){h("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),e.removeListener("close",m),e.removeListener("finish",F),e.removeListener("drain",f),e.removeListener("error",_),e.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",y),n.removeListener("data",g),d=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){h("onend"),e.end()}a.endEmitted?r.nextTick(l):n.once("end",l),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",f);var d=!1;var p=!1;function g(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==P(a.pipes,e))&&!d&&(h("false write response, pause",a.awaitDrain),a.awaitDrain++,p=!0),n.pause())}function _(t){h("onerror",t),y(),e.removeListener("error",_),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",F),y()}function F(){h("onfinish"),e.removeListener("close",m),y()}function y(){h("unpipe"),n.unpipe(e)}return n.on("data",g),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",_),e.once("close",m),e.once("finish",F),e.emit("pipe",n),a.flowing||(h("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return r>0&&(e.lastNeed=r-1),r;if(--i=0)return r>0&&(e.lastNeed=r-2),r;if(--i=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=o;var i=n(102),r=Object.create(n(142));function a(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.lengthd?n(a):(e.consume(a),m):41===a?h--?(e.consume(a),m):(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(o),t(a)):null===a||r(a)?h?n(a):(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(o),t(a)):i(a)?n(a):(e.consume(a),92===a?F:m)}function F(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}},function(e,t,n){"use strict";var i=n(30),r=n(77);e.exports=function(e,t,n,a,o,s){var l,u=this,c=0;return function(t){return e.enter(a),e.enter(o),e.consume(t),e.exit(o),e.enter(s),f};function f(r){return null===r||91===r||93===r&&!l||94===r&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs||c>999?n(r):93===r?(e.exit(s),e.enter(o),e.consume(r),e.exit(o),e.exit(a),t):i(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(r))}function d(t){return null===t||91===t||93===t||i(t)||c++>999?(e.exit("chunkString"),f(t)):(e.consume(t),l=l||!r(t),92===t?h:d)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,d):d(t)}}},function(e,t,n){"use strict";var i=n(30),r=n(77),a=n(34);e.exports=function(e,t){var n;return function o(s){if(i(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,o;if(r(s))return a(e,o,n?"linePrefix":"lineSuffix")(s);return t(s)}}},function(e,t,n){"use strict";var i=n(30),r=n(34);e.exports=function(e,t,n,a,o,s){var l;return function(t){return e.enter(a),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,u};function u(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),t):(e.enter(s),c(n))}function c(t){return t===l?(e.exit(s),u(l)):null===t?n(t):i(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===l||null===t||i(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?d:f)}function d(t){return t===l||92===t?(e.consume(t),f):f(t)}}},function(e,t,n){"use strict";var i=n(30),r=n(77),a=n(34),o={name:"thematicBreak",tokenize:function(e,t,n){var o,s=0;return function(t){return e.enter("thematicBreak"),o=t,l(t)};function l(c){return c===o?(e.enter("thematicBreakSequence"),u(c)):r(c)?a(e,l,"whitespace")(c):s<3||null!==c&&!i(c)?n(c):(e.exit("thematicBreak"),t(c))}function u(t){return t===o?(e.consume(t),s++,u):(e.exit("thematicBreakSequence"),l(t))}}};e.exports=o},function(e,t,n){"use strict";var i=o("start"),r=o("end");function a(e){return{start:i(e),end:r(e)}}function o(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=a,a.start=i,a.end=r},function(e,t,n){"use strict";e.exports=function(e,t,n){var i,r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");i=a.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.indexOf(r)>-1?s:e.unknownHandler;return("function"===typeof i?i:o)(e,t,n)};var i=n(57),r=n(43),a={}.hasOwnProperty;function o(e,t){return function(e){var t=e.data||{};if(a.call(t,"hName")||a.call(t,"hProperties")||a.call(t,"hChildren"))return!1;return"value"in e}(t)?e.augment(t,i("text",t.value)):e(t,"div",r(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=r(e,t),n):t}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"hr")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,a,o={},s=t.ordered?"ol":"ul",l=-1;"number"===typeof t.start&&1!==t.start&&(o.start=t.start);n=r(e,t),a=n.length;for(;++l0?o.get(n-1):void 0,l=n=n&&(i={start:e,end:t})})),"object"!==typeof i&&a(!1),i}(o,c,n),h=d.start,p=d.end;h0&&(n=a.childNodes.length));if(0===n){var f=null;if(null!=u)f=u;else{var d=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||r(e.firstChild));)e=e.firstChild;return e}(a);f=l(r(d))}return{key:f,offset:0}}var h=a.childNodes[n-1],p=null,g=null;if(r(h)){var _=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||r(e.lastChild));)e=e.lastChild;return e}(h);p=l(r(_)),g=c(_)}else p=l(u),g=c(h);return{key:p,offset:g}}function c(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,r,o,s){var c=n.nodeType===Node.TEXT_NODE,f=o.nodeType===Node.TEXT_NODE;if(c&&f)return{selectionState:a(e,l(i(n)),r,l(i(o)),s),needsRecovery:!1};var d=null,h=null,p=!0;return c?(d={key:l(i(n)),offset:r},h=u(t,o,s)):f?(h={key:l(i(o)),offset:s},d=u(t,n,r)):(d=u(t,n,r),h=u(t,o,s),n===o&&r===s&&(p=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:a(e,d.key,d.offset,h.key,h.offset),needsRecovery:p}}},function(e,t,n){"use strict";var i=n(78),r=n(45);e.exports=function(e,t,n,a,o){var s=r(e.getSelection());if(!t||!a)return s;var l=i.decode(t),u=l.blockKey,c=e.getBlockTree(u),f=c&&c.getIn([l.decoratorKey,"leaves",l.leafKey]),d=i.decode(a),h=d.blockKey,p=e.getBlockTree(h),g=p&&p.getIn([d.decoratorKey,"leaves",d.leafKey]);if(!f||!g)return s;var _=f.get("start"),m=g.get("start"),F=f?_+n:null,y=g?m+o:null;if(s.getAnchorKey()===u&&s.getAnchorOffset()===F&&s.getFocusKey()===h&&s.getFocusOffset()===y)return s;var b=!1;if(u===h){var v=f.get("end"),k=g.get("end");b=m===_&&k===v?o0&&window.scrollTo(a.x,a.y+i+10)}else{m(n)||_(!1),(i=n.offsetHeight+n.offsetTop-(r.offsetTop+r.offsetHeight+a.y))>0&&l.setTop(r,l.getTop(r)+i+10)}}}}},b._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),i=t.getText(),l=this.props.tree.size-1,u=y(this.props.selection,n);return this.props.tree.map((function(d,h){var p=d.get("leaves");if(0===p.size)return null;var g=p.size-1,_=p.map((function(r,c){var f=o.encode(n,h,c),d=r.get("start"),p=r.get("end");return s.createElement(a,{key:f,offsetKey:f,block:t,start:d,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:i.slice(d,p),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===l&&c===g})})).toArray(),m=d.get("decoratorKey");if(null==m)return _;if(!e.props.decorator)return _;var y=F(e.props.decorator),b=y.getComponentForKey(m);if(!b)return _;var v=y.getPropsForKey(m),k=o.encode(n,h,0),E=p.first().get("start"),w=p.last().get("end"),x=i.slice(E,w),C=t.getEntityAt(d.get("start")),D=f.getHTMLDirIfDifferent(c.getDirection(x),e.props.direction),T={contentState:e.props.contentState,decoratedText:x,dir:D,start:E,end:w,blockKey:n,entityKey:C,offsetKey:k};return s.createElement(b,r({},v,T,{key:k}),_)})).toArray()},b.render=function(){var e=this,t=this.props,n=t.direction,i=t.offsetKey,r=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return s.createElement("div",{"data-offset-key":i,className:r,ref:function(t){return e._node=t}},this._renderChildren())},i}(s.Component);e.exports=b},function(e,t,n){"use strict";var i=n(968),r=n(969),a=n(396),o=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function l(e){if("file"==e.kind)return e.getAsFile()}var u=function(){function e(e){this.data=e,this.types=e.types?r(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(o,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=u},function(e,t,n){"use strict";function i(e){return function(){return e}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";(function(t){var i=n(14),r=/\.textClipping$/,a={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,n){var o=0,s=[];e.forEach((function(l){!function(e,n){if(!t.FileReader||e.type&&!(e.type in a))return void n("");if(""===e.type){var o="";return r.test(e.name)&&(o=e.name.replace(r,"")),void n(o)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!==typeof e&&i(!1),n(e)},s.onerror=function(){n("")},s.readAsText(e)}(l,(function(t){o++,t&&s.push(t.slice(0,5e3)),o==e.length&&n(s.join("\r"))}))}))}}).call(this,n(52))},function(e,t,n){"use strict";var i=n(183);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:i(e.getCurrentContent(),t)}},function(e,t,n){"use strict";var i=n(19),r=n(106),a=n(255),o=n(148);e.exports=function(e){var t=o(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=t.getAnchorKey(),o=t.getAnchorOffset(),s=n.getBlockForKey(i).getText()[o-1];return a(e,s?r.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return i.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var i=n(46),r=n(14);var a=i.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],i=e.endContainer;null!=i;i=i.parentNode){var a=i===e.commonAncestorContainer;a?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var o,s=Array.from(t.getClientRects());if(n.push(s),a)return n.reverse(),(o=[]).concat.apply(o,n);t.setEndBefore(i)}r(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=a},function(e,t,n){"use strict";var i="['\u2018\u2019]",r="\\s|(?![_])"+n(989).getPunctuation(),a=new RegExp("^(?:"+r+")*(?:"+i+"|(?!"+r+").)*(?:(?!"+r+").)"),o=new RegExp("(?:(?!"+r+").)(?:"+i+"|(?!"+r+").)*(?:"+r+")*$");function s(e,t){var n=t?o.exec(e):a.exec(e);return n?n[0]:e}var l={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=l},function(e,t,n){"use strict";n(256);e.exports=function(e,t){var n,i=e.getSelection(),r=i.getStartKey(),a=i.getStartOffset(),o=e.getCurrentContent(),s=r;return t>o.getBlockForKey(r).getText().length-a?(s=o.getKeyAfter(r),n=0):n=a+t,i.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var i;function r(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some((function(n){e.classList.contains(n)&&(t=R[n])})),t},L=function(e){if(!b(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new f(t.href);return!0}catch(n){return!1}},q=function(e){if(!E(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},z=function(e,t){if(!k(e))return t;var n=e,i=n.style.fontWeight,r=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations((function(e){O.indexOf(i)>=0?e.add("BOLD"):I.indexOf(i)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===a&&e.add("UNDERLINE"),"line-through"===a&&e.add("STRIKETHROUGH"),"none"===a&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},U=function(e){return"ul"===e||"ol"===e},H=function(){function e(e,t){a(this,"characterList",m()),a(this,"currentBlockType","unstyled"),a(this,"currentDepth",0),a(this,"currentEntity",null),a(this,"currentText",""),a(this,"wrapper",null),a(this,"blockConfigs",[]),a(this,"contentBlocks",[]),a(this,"entityMap",c),a(this,"blockTypeMap",void 0),a(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=m(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=c,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],y())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(w?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r({key:e.key||h(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:m(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=m(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],i=0;i(n=void 0!==(i=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-i[0]):n)?(this.currentText="",this.characterList=m()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(D,"")).replace(C," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){v(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(E(e)){var n=e,i={};P.forEach((function(e){var t=n.getAttribute(e);t&&(i[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",i),g("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("\ud83d\udcf7",t):this._appendText("\ud83d\udcf7",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(b(e)){var i=e,r={};M.forEach((function(e){var t=i.getAttribute(e);t&&(r[e]=t)})),r.url=new f(i.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",r||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,i=0;i<=n;i++){var a=e[i];a.parent=t,a.prevSibling=i>0?e[i-1].key:null,a.nextSibling=i2&&void 0!==arguments[2]?arguments[2]:u,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:p)(e=e.trim().replace(x,"").replace(T," ").replace(S,"").replace(A,""));if(!n)return null;var i=function(e){var t={};return e.mapKeys((function(e,n){var i=[n.element];void 0!==n.aliasedElements&&i.push.apply(i,n.aliasedElements),i.forEach((function(n){void 0===t[n]?t[n]=e:"string"===typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),F(t)}(t);return new H(i,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},function(e,t,n){"use strict";var i=n(46),r=n(14),a=i.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!a&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||r(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t,n){"use strict";var i=n(44),r=n(19),a=n(1002),o=n(45),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===i.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=r.push(e,t,"insert-characters");return r.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockBefore(i);if(a&&"atomic"===a.getType()){var o=n.getBlockMap().delete(a.getKey()),l=n.merge({blockMap:o,selectionAfter:t});if(l!==n)return r.push(e,l,"remove-range")}var u=s.tryToRemoveBlockStyle(e);return u?r.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),a=t.getStartKey(),o=n.getBlockForKey(a).getLength();if(t.getStartOffset()o&&i.push(e.substring(o,a.index));var l={href:a.url,key:"parse"+n.parseCounter+"match"+s};for(var u in n.props.properties){var c=n.props.properties[u];c===t.MATCH&&(c=a.url),l[u]=c}i.push(r.default.createElement(n.props.component,l,a.text)),o=a.lastIndex})),o=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),r=1;r/gm),K=c(/\${[\w\W]*}/gm),W=c(/^data-[\-\w.\u00B7-\uFFFF]/),G=c(/^aria-[\-\w]+$/),V=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=c(/^(?:\w+script|data):/i),X=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=c(/^html$/i),J=Object.freeze({__proto__:null,MUSTACHE_EXPR:U,ERB_EXPR:H,TMPLIT_EXPR:K,DATA_ATTR:W,ARIA_ATTR:G,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:X,DOCTYPE_NAME:$}),Q=function(){return"undefined"===typeof window?null:window},Z=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(a){return null}};function ee(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),n=function(e){return ee(e)};if(n.version="3.0.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i,r=t.document,o=r.currentScript,s=t.document,l=t.DocumentFragment,c=t.HTMLTemplateElement,f=t.Node,d=t.Element,h=t.NodeFilter,p=t.NamedNodeMap,C=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,D=t.HTMLFormElement,U=t.DOMParser,H=t.trustedTypes,K=d.prototype,W=A(K,"cloneNode"),G=A(K,"nextSibling"),Y=A(K,"childNodes"),X=A(K,"parentNode");if("function"===typeof c){var te=s.createElement("template");te.content&&te.content.ownerDocument&&(s=te.content.ownerDocument)}var ne="",ie=s,re=ie.implementation,ae=ie.createNodeIterator,oe=ie.createDocumentFragment,se=ie.getElementsByTagName,le=r.importNode,ue={};n.isSupported="function"===typeof e&&"function"===typeof X&&re&&void 0!==re.createHTMLDocument;var ce,fe,de=J.MUSTACHE_EXPR,he=J.ERB_EXPR,pe=J.TMPLIT_EXPR,ge=J.DATA_ATTR,_e=J.ARIA_ATTR,me=J.IS_SCRIPT_OR_DATA,Fe=J.ATTR_WHITESPACE,ye=J.IS_ALLOWED_URI,be=null,ve=T({},[].concat(a(O),a(I),a(M),a(R),a(N))),ke=null,Ee=T({},[].concat(a(B),a(L),a(q),a(z))),we=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Ce=null,De=!0,Te=!0,Se=!1,Ae=!0,Oe=!1,Ie=!1,Me=!1,Pe=!1,Re=!1,je=!1,Ne=!1,Be=!0,Le=!1,qe="user-content-",ze=!0,Ue=!1,He={},Ke=null,We=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ge=null,Ve=T({},["audio","video","img","source","image","track"]),Ye=null,Xe=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$e="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Ze=Qe,et=!1,tt=null,nt=T({},[$e,Je,Qe],y),it=["application/xhtml+xml","text/html"],rt="text/html",at=null,ot=s.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},lt=function(e){if(!at||at!==e){if(e&&"object"===typeof e||(e={}),e=S(e),ce=ce=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?rt:e.PARSER_MEDIA_TYPE,fe="application/xhtml+xml"===ce?y:F,be="ALLOWED_TAGS"in e?T({},e.ALLOWED_TAGS,fe):ve,ke="ALLOWED_ATTR"in e?T({},e.ALLOWED_ATTR,fe):Ee,tt="ALLOWED_NAMESPACES"in e?T({},e.ALLOWED_NAMESPACES,y):nt,Ye="ADD_URI_SAFE_ATTR"in e?T(S(Xe),e.ADD_URI_SAFE_ATTR,fe):Xe,Ge="ADD_DATA_URI_TAGS"in e?T(S(Ve),e.ADD_DATA_URI_TAGS,fe):Ve,Ke="FORBID_CONTENTS"in e?T({},e.FORBID_CONTENTS,fe):We,xe="FORBID_TAGS"in e?T({},e.FORBID_TAGS,fe):{},Ce="FORBID_ATTR"in e?T({},e.FORBID_ATTR,fe):{},He="USE_PROFILES"in e&&e.USE_PROFILES,De=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,Ie=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,Le=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,Ue=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||V,Ze=e.NAMESPACE||Qe,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Te=!1),je&&(Re=!0),He&&(be=T({},a(N)),ke=[],!0===He.html&&(T(be,O),T(ke,B)),!0===He.svg&&(T(be,I),T(ke,L),T(ke,z)),!0===He.svgFilters&&(T(be,M),T(ke,L),T(ke,z)),!0===He.mathMl&&(T(be,R),T(ke,q),T(ke,z))),e.ADD_TAGS&&(be===ve&&(be=S(be)),T(be,e.ADD_TAGS,fe)),e.ADD_ATTR&&(ke===Ee&&(ke=S(ke)),T(ke,e.ADD_ATTR,fe)),e.ADD_URI_SAFE_ATTR&&T(Ye,e.ADD_URI_SAFE_ATTR,fe),e.FORBID_CONTENTS&&(Ke===We&&(Ke=S(Ke)),T(Ke,e.FORBID_CONTENTS,fe)),ze&&(be["#text"]=!0),Ie&&T(be,["html","head","body"]),be.table&&(T(be,["tbody"]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');i=e.TRUSTED_TYPES_POLICY,ne=i.createHTML("")}else void 0===i&&(i=Z(H,o)),null!==i&&"string"===typeof ne&&(ne=i.createHTML(""));u&&u(e),at=e}},ut=T({},["mi","mo","mn","ms","mtext"]),ct=T({},["foreignobject","desc","title","annotation-xml"]),ft=T({},["title","style","font","a","script"]),dt=T({},I);T(dt,M),T(dt,P);var ht=T({},R);T(ht,j);var pt=function(e){var t=X(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});var n=F(e.tagName),i=F(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===$e?"svg"===n&&("annotation-xml"===i||ut[i]):Boolean(dt[n]):e.namespaceURI===$e?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Je?"math"===n&&ct[i]:Boolean(ht[n]):e.namespaceURI===Qe?!(t.namespaceURI===Je&&!ct[i])&&!(t.namespaceURI===$e&&!ut[i])&&!ht[n]&&(ft[n]||!dt[n]):!("application/xhtml+xml"!==ce||!tt[e.namespaceURI]))},gt=function(e){m(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},_t=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(i){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Re||je)try{gt(t)}catch(i){}else try{t.setAttribute(e,"")}catch(i){}},mt=function(e){var t,n;if(Pe)e=""+e;else{var r=b(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ce&&Ze===Qe&&(e=''+e+"");var a=i?i.createHTML(e):e;if(Ze===Qe)try{t=(new U).parseFromString(a,ce)}catch(l){}if(!t||!t.documentElement){t=re.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=et?ne:a}catch(l){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),Ze===Qe?se.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:o},Ft=function(e){return ae.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof D&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof C)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},bt=function(e){return"object"===typeof f?e instanceof f:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},vt=function(e,t,i){ue[e]&&g(ue[e],(function(e){e.call(n,t,i,at)}))},kt=function(e){var t;if(vt("beforeSanitizeElements",e,null),yt(e))return gt(e),!0;var i=fe(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:i,allowedTags:be}),e.hasChildNodes()&&!bt(e.firstElementChild)&&(!bt(e.content)||!bt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return gt(e),!0;if(!be[i]||xe[i]){if(!xe[i]&&wt(i)){if(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,i))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(i))return!1}if(ze&&!Ke[i]){var r=X(e)||e.parentNode,a=Y(e)||e.childNodes;if(a&&r)for(var o=a.length-1;o>=0;--o)r.insertBefore(W(a[o],!0),G(e))}return gt(e),!0}return e instanceof d&&!pt(e)?(gt(e),!0):"noscript"!==i&&"noembed"!==i||!w(/<\/no(script|embed)/i,e.innerHTML)?(Oe&&3===e.nodeType&&(t=e.textContent,t=v(t,de," "),t=v(t,he," "),t=v(t,pe," "),e.textContent!==t&&(m(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(gt(e),!0)},Et=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in s||n in ot))return!1;if(Te&&!Ce[t]&&w(ge,t));else if(De&&w(_e,t));else if(!ke[t]||Ce[t]){if(!(wt(e)&&(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&w(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,n)||we.tagNameCheck instanceof Function&&we.tagNameCheck(n))))return!1}else if(Ye[t]);else if(w(ye,v(n,Fe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!Ge[e])if(Se&&!w(me,v(n,Fe,"")));else if(n)return!1;return!0},wt=function(e){return e.indexOf("-")>0},xt=function(e){var t,r,a,o;vt("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(o=s.length;o--;){var u=t=s[o],c=u.name,f=u.namespaceURI;if(r="value"===c?t.value:E(t.value),a=fe(c),l.attrName=a,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(_t(c,e),l.keepAttr))if(Ae||!w(/\/>/i,r)){Oe&&(r=v(r,de," "),r=v(r,he," "),r=v(r,pe," "));var d=fe(e.nodeName);if(Et(d,a,r)){if(!Le||"id"!==a&&"name"!==a||(_t(c,e),r=qe+r),i&&"object"===typeof H&&"function"===typeof H.getAttributeType)if(f);else switch(H.getAttributeType(d,a)){case"TrustedHTML":r=i.createHTML(r);break;case"TrustedScriptURL":r=i.createScriptURL(r)}try{f?e.setAttributeNS(f,c,r):e.setAttribute(c,r),_(n.removed)}catch(h){}}}else _t(c,e)}vt("afterSanitizeAttributes",e,null)}},Ct=function e(t){var n,i=Ft(t);for(vt("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)vt("uponSanitizeShadowNode",n,null),kt(n)||(n.content instanceof l&&e(n.content),xt(n));vt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var t,a,o,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((et=!e)&&(e="\x3c!--\x3e"),"string"!==typeof e&&!bt(e)){if("function"!==typeof e.toString)throw x("toString is not a function");if("string"!==typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||lt(u),n.removed=[],"string"===typeof e&&(Ue=!1),Ue){if(e.nodeName){var c=fe(e.nodeName);if(!be[c]||xe[c])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof f)1===(a=(t=mt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?t=a:t.appendChild(a);else{if(!Re&&!Oe&&!Ie&&-1===e.indexOf("<"))return i&&Ne?i.createHTML(e):e;if(!(t=mt(e)))return Re?null:Ne?ne:""}t&&Pe&>(t.firstChild);for(var d=Ft(Ue?e:t);o=d.nextNode();)kt(o)||(o.content instanceof l&&Ct(o.content),xt(o));if(Ue)return e;if(Re){if(je)for(s=oe.call(t.ownerDocument);t.firstChild;)s.appendChild(t.firstChild);else s=t;return(ke.shadowroot||ke.shadowrootmod)&&(s=le.call(r,s,!0)),s}var h=Ie?t.outerHTML:t.innerHTML;return Ie&&be["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&w($,t.ownerDocument.doctype.name)&&(h="\n"+h),Oe&&(h=v(h,de," "),h=v(h,he," "),h=v(h,pe," ")),i&&Ne?i.createHTML(h):h},n.setConfig=function(e){lt(e),Me=!0},n.clearConfig=function(){at=null,Me=!1},n.isValidAttribute=function(e,t,n){at||lt({});var i=fe(e),r=fe(t);return Et(i,r,n)},n.addHook=function(e,t){"function"===typeof t&&(ue[e]=ue[e]||[],m(ue[e],t))},n.removeHook=function(e){if(ue[e])return _(ue[e])},n.removeHooks=function(e){ue[e]&&(ue[e]=[])},n.removeAllHooks=function(){ue={}},n}return ee()}()},function(e,t,n){"use strict";var i=n(0),r=n(338),a=n(827),o=n(833),s=n(879),l=n(25),u=n(908),c=n(911),f=n(912),d=n(913).hastChildrenToReact;e.exports=_;var h={}.hasOwnProperty,p="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",g={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function _(e){for(var t in g)if(h.call(g,t)&&h.call(e,t)){var n=g[t];"[react-markdown] Warning: please ".concat(n.to?"use `".concat(n.to,"` instead of"):"remove"," `").concat(t,"` (see <").concat(p,"#").concat(n.id,"> for more info)"),delete g[t]}var l,f=a().use(o).use(e.remarkPlugins||e.plugins||[]).use(s,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(c,e);"string"===typeof e.children?l=r(e.children):(void 0!==e.children&&null!==e.children&&"[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"),l=r());var _=f.runSync(f.parse(l),l);if("root"!==_.type)throw new TypeError("Expected a `root` node");var m=i.createElement(i.Fragment,{},d({options:e,schema:u,listDepth:0},_));return e.className&&(m=i.createElement("div",{className:e.className},m)),m}_.defaultProps={transformLinkUri:f},_.propTypes={children:l.string,className:l.string,allowElement:l.func,allowedElements:l.arrayOf(l.string),disallowedElements:l.arrayOf(l.string),unwrapDisallowed:l.bool,remarkPlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),rehypePlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),sourcePos:l.bool,rawSourcePos:l.bool,skipHtml:l.bool,includeElementIndex:l.bool,transformLinkUri:l.oneOfType([l.func,l.bool]),linkTarget:l.oneOfType([l.func,l.string]),transformImageUri:l.func,components:l.object},_.uriTransformer=f},function(e,t,n){!function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=n(t);function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}var o=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},s={error:null},l=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r=51||!r((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),m=function(e){if(!o(e))return!1;var t=e[g];return void 0!==t?!!t:a(e)};i({target:"Array",proto:!0,arity:1,forced:!_||!d("concat")},{concat:function(e){var t,n,i,r,a,o=s(this),d=f(o,0),h=0;for(t=-1,i=arguments.length;t1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(1),r=n(38).find,a=n(67),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(e,t,n){"use strict";var i=n(1),r=n(38).findIndex,a=n(67),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(e,t,n){"use strict";var i=n(1),r=n(278),a=n(17),o=n(21),s=n(40),l=n(131);i({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=o(t),i=l(t,0);return i.length=r(i,t,t,n,0,void 0===e?1:s(e)),i}})},function(e,t,n){"use strict";var i=n(1),r=n(278),a=n(15),o=n(17),s=n(21),l=n(131);i({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),i=s(n);return a(e),(t=l(n,0)).length=r(t,n,n,i,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},function(e,t,n){var i=n(1),r=n(279);i({target:"Array",stat:!0,forced:!n(157)((function(e){Array.from(e)}))},{from:r})},function(e,t,n){var i=n(7),r=n(156);e.exports=function(e,t,n,a){try{return a?t(i(n)[0],n[1]):t(n)}catch(o){r(e,"throw",o)}}},function(e,t,n){"use strict";var i=n(1),r=n(127).includes,a=n(3),o=n(67);i({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){"use strict";var i=n(1),r=n(84),a=n(127).indexOf,o=n(110),s=r([].indexOf),l=!!s&&1/s([1],1,-0)<0;i({target:"Array",proto:!0,forced:l||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:a(this,e,t)}})},function(e,t,n){var i=n(1),r=n(283);i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(e,t,n){"use strict";var i=n(1),r=n(38).map;i({target:"Array",proto:!0,forced:!n(132)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(1),r=n(3),a=n(95),o=n(83),s=Array;i({target:"Array",stat:!0,forced:r((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(a(this)?this:s)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var i=n(1),r=n(159).left,a=n(110),o=n(80);i({target:"Array",proto:!0,forced:!n(96)&&o>79&&o<83||!a("reduce")},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(1),r=n(159).right,a=n(110),o=n(80);i({target:"Array",proto:!0,forced:!n(96)&&o>79&&o<83||!a("reduceRight")},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(1),r=n(4),a=n(94),o=r([].reverse),s=[1,2];i({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},function(e,t,n){"use strict";var i=n(1),r=n(94),a=n(95),o=n(11),s=n(82),l=n(21),u=n(47),c=n(83),f=n(8),d=n(132),h=n(85),p=d("slice"),g=f("species"),_=Array,m=Math.max;i({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,i,f,d=u(this),p=l(d),F=s(e,p),y=s(void 0===t?p:t,p);if(r(d)&&(n=d.constructor,(a(n)&&(n===_||r(n.prototype))||o(n)&&null===(n=n[g]))&&(n=void 0),n===_||void 0===n))return h(d,F,y);for(i=new(void 0===n?_:n)(m(y-F,0)),f=0;F3)){if(p)return!0;if(_)return _<603;var e,t,n,i,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)m.push({k:t+i,v:n})}for(m.sort((function(e,t){return t.v-e.v})),i=0;iu(n)?1:-1}}(e)),n=s(r),i=0;ib-i+n;_--)d(y,_-1)}else if(n>i)for(_=b-i;_>v;_--)F=_+n-1,(m=_+i-1)in y?y[F]=y[m]:d(y,F);for(_=0;_>1,_=23===t?r(2,-24)-r(2,-77):0,m=e<0||0===e&&1/e<0?1:0,F=0;for((e=i(e))!=e||e===1/0?(c=e!=e?1:0,u=p):(u=a(o(e)/s),e*(f=r(2,-u))<1&&(u--,f*=2),(e+=u+g>=1?_/f:_*r(2,1-g))*f>=2&&(u++,f/=2),u+g>=p?(c=0,u=p):u+g>=1?(c=(e*f-1)*r(2,t),u+=g):(c=e*r(2,g-1)*r(2,t),u=0));t>=8;)d[F++]=255&c,c/=256,t-=8;for(u=u<0;)d[F++]=255&u,u/=256,h-=8;return d[--F]|=128*m,d},unpack:function(e,t){var n,i=e.length,a=8*i-t-1,o=(1<>1,l=a-7,u=i-1,c=e[u--],f=127&c;for(c>>=7;l>0;)f=256*f+e[u--],l-=8;for(n=f&(1<<-l)-1,f>>=-l,l+=t;l>0;)n=256*n+e[u--],l-=8;if(0===f)f=1-s;else{if(f===o)return n?NaN:c?-1/0:1/0;n+=r(2,t),f-=s}return(c?-1:1)*n*r(2,f-t)}}},function(e,t,n){"use strict";var i=n(1),r=n(84),a=n(3),o=n(214),s=n(7),l=n(82),u=n(53),c=n(113),f=o.ArrayBuffer,d=o.DataView,h=d.prototype,p=r(f.prototype.slice),g=r(h.getUint8),_=r(h.setUint8);i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(p&&void 0===t)return p(s(this),e);for(var n=s(this).byteLength,i=l(e,n),r=l(void 0===t?n:t,n),a=new(c(this,f))(u(r-i)),o=new d(this),h=new d(a),m=0;i94906265.62425156?o(t)+l:r(t-1+s(t-1)*s(t+1))}})},function(e,t,n){var i=n(1),r=Math.asinh,a=Math.log,o=Math.sqrt;i({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!=n?n<0?-e(-n):a(n+o(n*n+1)):n}})},function(e,t,n){var i=n(1),r=Math.atanh,a=Math.log;i({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){var t=+e;return 0==t?t:a((1+t)/(1-t))/2}})},function(e,t,n){var i=n(1),r=n(218),a=Math.abs,o=Math.pow;i({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return r(t)*o(a(t),1/3)}})},function(e,t,n){var i=n(1),r=Math.floor,a=Math.log,o=Math.LOG2E;i({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-r(a(t+.5)*o):32}})},function(e,t,n){var i=n(1),r=n(163),a=Math.cosh,o=Math.abs,s=Math.E;i({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(e){var t=r(o(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},function(e,t,n){var i=n(1),r=n(163);i({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(e,t,n){n(1)({target:"Math",stat:!0},{fround:n(290)})},function(e,t,n){var i=n(1),r=Math.hypot,a=Math.abs,o=Math.sqrt;i({target:"Math",stat:!0,arity:2,forced:!!r&&r(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,i,r=0,s=0,l=arguments.length,u=0;s0?(i=n/u)*i:n;return u===1/0?1/0:u*o(r)}})},function(e,t,n){n(1)({target:"Math",stat:!0},{log10:n(487)})},function(e,t){var n=Math.log,i=Math.LOG10E;e.exports=Math.log10||function(e){return n(e)*i}},function(e,t,n){n(1)({target:"Math",stat:!0},{log1p:n(289)})},function(e,t,n){var i=n(1),r=Math.log,a=Math.LN2;i({target:"Math",stat:!0},{log2:function(e){return r(e)/a}})},function(e,t,n){n(1)({target:"Math",stat:!0},{sign:n(218)})},function(e,t,n){var i=n(1),r=n(3),a=n(163),o=Math.abs,s=Math.exp,l=Math.E;i({target:"Math",stat:!0,forced:r((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return o(t)<1?(a(t)-a(-t))/2:(s(t-1)-s(-t-1))*(l/2)}})},function(e,t,n){var i=n(1),r=n(163),a=Math.exp;i({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=r(t),i=r(-t);return n==1/0?1:i==1/0?-1:(n-i)/(a(t)+a(-t))}})},function(e,t,n){n(62)(Math,"Math",!0)},function(e,t,n){n(1)({target:"Math",stat:!0},{trunc:n(271)})},function(e,t,n){"use strict";var i=n(1),r=n(33),a=n(9),o=n(5),s=n(274),l=n(4),u=n(128),c=n(16),f=n(162),d=n(60),h=n(107),p=n(152),g=n(3),_=n(81).f,m=n(35).f,F=n(27).f,y=n(496),b=n(115).trim,v="Number",k=o[v],E=s[v],w=k.prototype,x=o.TypeError,C=l("".slice),D=l("".charCodeAt),T=function(e){var t,n,i,r,a,o,s,l,u=p(e,"number");if(h(u))throw x("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=b(u),43===(t=D(u,0))||45===t){if(88===(n=D(u,2))||120===n)return NaN}else if(48===t){switch(D(u,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(o=(a=C(u,2)).length,s=0;sr)return NaN;return parseInt(a,i)}return+u},S=u(v,!k(" 0o1")||!k("0b1")||k("+0x1")),A=function(e){var t,n=arguments.length<1?0:k(function(e){var t=p(e,"number");return"bigint"==typeof t?t:T(t)}(e));return d(w,t=this)&&g((function(){y(t)}))?f(Object(n),this,A):n};A.prototype=w,S&&!r&&(w.constructor=A),i({global:!0,constructor:!0,wrap:!0,forced:S},{Number:A});var O=function(e,t){for(var n,i=a?_(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;i.length>r;r++)c(t,n=i[r])&&!c(e,n)&&F(e,n,m(t,n))};r&&E&&O(s[v],E),(S||r)&&O(s[v],k)},function(e,t,n){var i=n(4);e.exports=i(1..valueOf)},function(e,t,n){n(1)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){n(1)({target:"Number",stat:!0},{isInteger:n(219)})},function(e,t,n){var i=n(1),r=n(219),a=Math.abs;i({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&a(e)<=9007199254740991}})},function(e,t,n){n(1)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){n(1)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var i=n(1),r=n(291);i({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,n){var i=n(1),r=n(220);i({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,n){var i=n(1),r=n(292);i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var i=n(1),r=n(9),a=n(165),o=n(15),s=n(17),l=n(27);r&&i({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){l.f(s(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var i=n(1),r=n(9),a=n(204).f;i({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!r},{defineProperties:a})},function(e,t,n){var i=n(1),r=n(9),a=n(27).f;i({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!r},{defineProperty:a})},function(e,t,n){"use strict";var i=n(1),r=n(9),a=n(165),o=n(15),s=n(17),l=n(27);r&&i({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){l.f(s(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var i=n(1),r=n(293).entries;i({target:"Object",stat:!0},{entries:function(e){return r(e)}})},function(e,t,n){var i=n(1),r=n(114),a=n(3),o=n(11),s=n(99).onFreeze,l=Object.freeze;i({target:"Object",stat:!0,forced:a((function(){l(1)})),sham:!r},{freeze:function(e){return l&&o(e)?l(s(e)):e}})},function(e,t,n){var i=n(1),r=n(41),a=n(83);i({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){a(t,e,n)}),{AS_ENTRIES:!0}),t}})},function(e,t,n){var i=n(1),r=n(3),a=n(47),o=n(35).f,s=n(9);i({target:"Object",stat:!0,forced:!s||r((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},function(e,t,n){var i=n(1),r=n(9),a=n(201),o=n(47),s=n(35),l=n(83);i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,i=o(e),r=s.f,u=a(i),c={},f=0;u.length>f;)void 0!==(n=r(i,t=u[f++]))&&l(c,t,n);return c}})},function(e,t,n){var i=n(1),r=n(3),a=n(205).f;i({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(e,t,n){var i=n(1),r=n(3),a=n(17),o=n(39),s=n(211);i({target:"Object",stat:!0,forced:r((function(){o(1)})),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},function(e,t,n){var i=n(1),r=n(216);i({target:"Object",stat:!0,forced:Object.isExtensible!==r},{isExtensible:r})},function(e,t,n){var i=n(1),r=n(3),a=n(11),o=n(48),s=n(217),l=Object.isFrozen;i({target:"Object",stat:!0,forced:s||r((function(){l(1)}))},{isFrozen:function(e){return!a(e)||(!(!s||"ArrayBuffer"!=o(e))||!!l&&l(e))}})},function(e,t,n){var i=n(1),r=n(3),a=n(11),o=n(48),s=n(217),l=Object.isSealed;i({target:"Object",stat:!0,forced:s||r((function(){l(1)}))},{isSealed:function(e){return!a(e)||(!(!s||"ArrayBuffer"!=o(e))||!!l&&l(e))}})},function(e,t,n){var i=n(1),r=n(17),a=n(129);i({target:"Object",stat:!0,forced:n(3)((function(){a(1)}))},{keys:function(e){return a(r(e))}})},function(e,t,n){"use strict";var i=n(1),r=n(9),a=n(165),o=n(17),s=n(79),l=n(39),u=n(35).f;r&&i({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,n=o(this),i=s(e);do{if(t=u(n,i))return t.get}while(n=l(n))}})},function(e,t,n){"use strict";var i=n(1),r=n(9),a=n(165),o=n(17),s=n(79),l=n(39),u=n(35).f;r&&i({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,n=o(this),i=s(e);do{if(t=u(n,i))return t.set}while(n=l(n))}})},function(e,t,n){var i=n(1),r=n(11),a=n(99).onFreeze,o=n(114),s=n(3),l=Object.preventExtensions;i({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!o},{preventExtensions:function(e){return l&&r(e)?l(a(e)):e}})},function(e,t,n){var i=n(1),r=n(11),a=n(99).onFreeze,o=n(114),s=n(3),l=Object.seal;i({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!o},{seal:function(e){return l&&r(e)?l(a(e)):e}})},function(e,t,n){n(1)({target:"Object",stat:!0},{setPrototypeOf:n(71)})},function(e,t,n){var i=n(203),r=n(28),a=n(526);i||r(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,n){"use strict";var i=n(203),r=n(66);e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,n){var i=n(1),r=n(293).values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){var i=n(1),r=n(291);i({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(e,t,n){var i=n(1),r=n(220);i({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){n(531),n(535),n(536),n(537),n(538),n(539)},function(e,t,n){"use strict";var i,r,a,o=n(1),s=n(33),l=n(96),u=n(5),c=n(6),f=n(28),d=n(71),h=n(62),p=n(98),g=n(15),_=n(10),m=n(11),F=n(72),y=n(113),b=n(166).set,v=n(295),k=n(297),E=n(116),w=n(296),x=n(29),C=n(117),D=n(137),T=n(86),S="Promise",A=D.CONSTRUCTOR,O=D.REJECTION_EVENT,I=D.SUBCLASSING,M=x.getterFor(S),P=x.set,R=C&&C.prototype,j=C,N=R,B=u.TypeError,L=u.document,q=u.process,z=T.f,U=z,H=!!(L&&L.createEvent&&u.dispatchEvent),K="unhandledrejection",W=function(e){var t;return!(!m(e)||!_(t=e.then))&&t},G=function(e,t){var n,i,r,a=t.value,o=1==t.state,s=o?e.ok:e.fail,l=e.resolve,u=e.reject,f=e.domain;try{s?(o||(2===t.rejection&&J(t),t.rejection=1),!0===s?n=a:(f&&f.enter(),n=s(a),f&&(f.exit(),r=!0)),n===e.promise?u(B("Promise-chain cycle")):(i=W(n))?c(i,n,l,u):l(n)):u(a)}catch(d){f&&!r&&f.exit(),u(d)}},V=function(e,t){e.notified||(e.notified=!0,v((function(){for(var n,i=e.reactions;n=i.get();)G(n,e);e.notified=!1,t&&!e.rejection&&X(e)})))},Y=function(e,t,n){var i,r;H?((i=L.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),u.dispatchEvent(i)):i={promise:t,reason:n},!O&&(r=u["on"+e])?r(i):e===K&&k("Unhandled promise rejection",n)},X=function(e){c(b,u,(function(){var t,n=e.facade,i=e.value;if($(e)&&(t=E((function(){l?q.emit("unhandledRejection",i,n):Y(K,n,i)})),e.rejection=l||$(e)?2:1,t.error))throw t.value}))},$=function(e){return 1!==e.rejection&&!e.parent},J=function(e){c(b,u,(function(){var t=e.facade;l?q.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)}))},Q=function(e,t,n){return function(i){e(t,i,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,V(e,!0))},ee=function e(t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===n)throw B("Promise can't be resolved itself");var r=W(n);r?v((function(){var i={done:!1};try{c(r,n,Q(e,i,t),Q(Z,i,t))}catch(a){Z(i,a,t)}})):(t.value=n,t.state=1,V(t,!1))}catch(a){Z({done:!1},a,t)}}};if(A&&(N=(j=function(e){F(this,N),g(e),c(i,this);var t=M(this);try{e(Q(ee,t),Q(Z,t))}catch(n){Z(t,n)}}).prototype,(i=function(e){P(this,{type:S,done:!1,notified:!1,parent:!1,reactions:new w,rejection:!1,state:0,value:void 0})}).prototype=f(N,"then",(function(e,t){var n=M(this),i=z(y(this,j));return n.parent=!0,i.ok=!_(e)||e,i.fail=_(t)&&t,i.domain=l?q.domain:void 0,0==n.state?n.reactions.add(i):v((function(){G(i,n)})),i.promise})),r=function(){var e=new i,t=M(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q(Z,t)},T.f=z=function(e){return e===j||undefined===e?new r(e):U(e)},!s&&_(C)&&R!==Object.prototype)){a=R.then,I||f(R,"then",(function(e,t){var n=this;return new j((function(e,t){c(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete R.constructor}catch(te){}d&&d(R,N)}o({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:j}),h(j,S,!1,!0),p(S)},function(e,t,n){var i=n(70);e.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},function(e,t,n){var i=n(70);e.exports=/web0s(?!.*chrome)/i.test(i)},function(e,t,n){var i=n(298),r=n(96);e.exports=!i&&!r&&"object"==typeof window&&"object"==typeof document},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(15),o=n(86),s=n(116),l=n(41);i({target:"Promise",stat:!0,forced:n(167)},{all:function(e){var t=this,n=o.f(t),i=n.resolve,u=n.reject,c=s((function(){var n=a(t.resolve),o=[],s=0,c=1;l(e,(function(e){var a=s++,l=!1;c++,r(n,t,e).then((function(e){l||(l=!0,o[a]=e,--c||i(o))}),u)})),--c||i(o)}));return c.error&&u(c.value),n.promise}})},function(e,t,n){"use strict";var i=n(1),r=n(33),a=n(137).CONSTRUCTOR,o=n(117),s=n(26),l=n(10),u=n(28),c=o&&o.prototype;if(i({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(o)){var f=s("Promise").prototype.catch;c.catch!==f&&u(c,"catch",f,{unsafe:!0})}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(15),o=n(86),s=n(116),l=n(41);i({target:"Promise",stat:!0,forced:n(167)},{race:function(e){var t=this,n=o.f(t),i=n.reject,u=s((function(){var o=a(t.resolve);l(e,(function(e){r(o,t,e).then(n.resolve,i)}))}));return u.error&&i(u.value),n.promise}})},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(86);i({target:"Promise",stat:!0,forced:n(137).CONSTRUCTOR},{reject:function(e){var t=a.f(this);return r(t.reject,void 0,e),t.promise}})},function(e,t,n){"use strict";var i=n(1),r=n(26),a=n(33),o=n(117),s=n(137).CONSTRUCTOR,l=n(299),u=r("Promise"),c=a&&!s;i({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return l(c&&this===u?o:this,e)}})},function(e,t,n){"use strict";var i=n(1),r=n(33),a=n(117),o=n(3),s=n(26),l=n(10),u=n(113),c=n(299),f=n(28),d=a&&a.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!r&&l(a)){var h=s("Promise").prototype.finally;d.finally!==h&&f(d,"finally",h,{unsafe:!0})}},function(e,t,n){var i=n(1),r=n(55),a=n(15),o=n(7);i({target:"Reflect",stat:!0,forced:!n(3)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return r(a(e),t,o(n))}})},function(e,t,n){var i=n(1),r=n(26),a=n(55),o=n(543),s=n(160),l=n(7),u=n(11),c=n(54),f=n(3),d=r("Reflect","construct"),h=Object.prototype,p=[].push,g=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),_=!f((function(){d((function(){}))})),m=g||_;i({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(_&&!g)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return a(p,i,t),new(a(o,e,i))}var r=n.prototype,f=c(u(r)?r:h),m=a(e,f,t);return u(m)?m:f}})},function(e,t,n){"use strict";var i=n(4),r=n(15),a=n(11),o=n(16),s=n(85),l=n(123),u=Function,c=i([].concat),f=i([].join),d={};e.exports=l?u.bind:function(e){var t=r(this),n=t.prototype,i=s(arguments,1),l=function(){var n=c(i,s(arguments));return this instanceof l?function(e,t,n){if(!o(d,t)){for(var i=[],r=0;r@^][^\s!#%&*+<=>@^]*>/,P=/a/g,R=/a/g,j=new x(P)!==P,N=p.MISSED_STICKY,B=p.UNSUPPORTED_Y,L=i&&(!j||N||k||E||m((function(){return R[w]=!1,x(P)!=P||x(R)==R||"/a/i"!=x(P,"i")})));if(o("RegExp",L)){for(var q=function(e,t){var n,i,r,a,o,u,p=c(C,this),g=f(e),_=void 0===t,m=[],b=e;if(!p&&g&&_&&e.constructor===q)return e;if((g||c(C,e))&&(e=e.source,_&&(t=h(b))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),b=e,k&&"dotAll"in P&&(i=!!t&&O(t,"s")>-1)&&(t=A(t,/s/g,"")),n=t,N&&"sticky"in P&&(r=!!t&&O(t,"y")>-1)&&B&&(t=A(t,/y/g,"")),E&&(a=function(e){for(var t,n=e.length,i=0,r="",a=[],o={},s=!1,l=!1,u=0,c="";i<=n;i++){if("\\"===(t=S(e,i)))t+=S(e,++i);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T(M,I(e,i+1))&&(i+=2,l=!0),r+=t,u++;continue;case">"===t&&l:if(""===c||F(o,c))throw new D("Invalid capture group name");o[c]=!0,a[a.length]=[c,u],l=!1,c="";continue}l?c+=t:r+=t}return[r,a]}(e),e=a[0],m=a[1]),o=s(x(e,t),p?this:C,q),(i||r||m.length)&&(u=y(o),i&&(u.dotAll=!0,u.raw=q(function(e){for(var t,n=e.length,i=0,r="",a=!1;i<=n;i++)"\\"!==(t=S(e,i))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),r+=t):r+="[\\s\\S]":r+=t+S(e,++i);return r}(e),n)),r&&(u.sticky=!0),m.length&&(u.groups=m)),e!==b)try{l(o,"source",""===b?"(?:)":b)}catch(v){}return o},z=u(x),U=0;z.length>U;)g(q,x,z[U++]);C.constructor=q,q.prototype=C,_(r,"RegExp",q,{constructor:!0})}b("RegExp")},function(e,t,n){var i=n(27).f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){var i=n(5),r=n(9),a=n(50),o=n(221),s=n(3),l=i.RegExp,u=l.prototype;r&&s((function(){var e=!0;try{l(".","d")}catch(s){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",r=function(e,i){Object.defineProperty(t,e,{get:function(){return n+=i,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(a.hasIndices="d"),a)r(o,a[o]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==i||n!==i}))&&a(u,"flags",{configurable:!0,get:o})},function(e,t,n){"use strict";var i=n(125).PROPER,r=n(28),a=n(7),o=n(13),s=n(3),l=n(168),u="toString",c=RegExp.prototype[u],f=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=i&&c.name!=u;(f||d)&&r(RegExp.prototype,u,(function(){var e=a(this);return"/"+o(e.source)+"/"+o(l(e))}),{unsafe:!0})},function(e,t,n){n(560)},function(e,t,n){"use strict";n(161)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(288))},function(e,t,n){"use strict";var i=n(1),r=n(118).codeAt;i({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var i=n(1),r=n(84),a=n(35).f,o=n(53),s=n(13),l=n(223),u=n(31),c=n(224),f=n(33),d=r("".endsWith),h=r("".slice),p=Math.min,g=c("endsWith");i({target:"String",proto:!0,forced:!(!f&&!g&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}())&&!g},{endsWith:function(e){var t=s(u(this));l(e);var n=arguments.length>1?arguments[1]:void 0,i=t.length,r=void 0===n?i:p(o(n),i),a=s(e);return d?d(t,a,r):h(t,r-a.length,r)===a}})},function(e,t,n){var i=n(1),r=n(4),a=n(82),o=RangeError,s=String.fromCharCode,l=String.fromCodePoint,u=r([].join);i({target:"String",stat:!0,arity:1,forced:!!l&&1!=l.length},{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,r=0;i>r;){if(t=+arguments[r++],a(t,1114111)!==t)throw o(t+" is not a valid code point");n[r]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(n,"")}})},function(e,t,n){"use strict";var i=n(1),r=n(4),a=n(223),o=n(31),s=n(13),l=n(224),u=r("".indexOf);i({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(6),r=n(170),a=n(7),o=n(32),s=n(53),l=n(13),u=n(31),c=n(61),f=n(171),d=n(139);r("match",(function(e,t,n){return[function(t){var n=u(this),r=o(t)?void 0:c(t,e);return r?i(r,t,n):new RegExp(t)[e](l(n))},function(e){var i=a(this),r=l(e),o=n(t,i,r);if(o.done)return o.value;if(!i.global)return d(i,r);var u=i.unicode;i.lastIndex=0;for(var c,h=[],p=0;null!==(c=d(i,r));){var g=l(c[0]);h[p]=g,""===g&&(i.lastIndex=f(r,s(i.lastIndex),u)),p++}return 0===p?null:h}]}))},function(e,t,n){"use strict";var i=n(1),r=n(305).end;i({target:"String",proto:!0,forced:n(307)},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(1),r=n(305).start;i({target:"String",proto:!0,forced:n(307)},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(1),r=n(4),a=n(47),o=n(17),s=n(13),l=n(21),u=r([].push),c=r([].join);i({target:"String",stat:!0},{raw:function(e){var t=a(o(e).raw),n=l(t);if(!n)return"";for(var i=arguments.length,r=[],f=0;;){if(u(r,s(t[f++])),f===n)return c(r,"");f=A&&(S+=x(s,A,M)+B,A=M+I.length)}return S+x(s,A)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!C||D)},function(e,t,n){"use strict";var i=n(6),r=n(170),a=n(7),o=n(32),s=n(31),l=n(572),u=n(13),c=n(61),f=n(139);r("search",(function(e,t,n){return[function(t){var n=s(this),r=o(t)?void 0:c(t,e);return r?i(r,t,n):new RegExp(t)[e](u(n))},function(e){var i=a(this),r=u(e),o=n(t,i,r);if(o.done)return o.value;var s=i.lastIndex;l(s,0)||(i.lastIndex=0);var c=f(i,r);return l(i.lastIndex,s)||(i.lastIndex=s),null===c?-1:c.index}]}))},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var i=n(55),r=n(6),a=n(4),o=n(170),s=n(7),l=n(32),u=n(138),c=n(31),f=n(113),d=n(171),h=n(53),p=n(13),g=n(61),_=n(130),m=n(139),F=n(169),y=n(222),b=n(3),v=y.UNSUPPORTED_Y,k=4294967295,E=Math.min,w=[].push,x=a(/./.exec),C=a(w),D=a("".slice),T=!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(e,t,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var a=p(c(this)),o=void 0===n?k:n>>>0;if(0===o)return[];if(void 0===e)return[a];if(!u(e))return r(t,a,e,o);for(var s,l,f,d=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,m=new RegExp(e.source,h+"g");(s=r(F,m,a))&&!((l=m.lastIndex)>g&&(C(d,D(a,g,s.index)),s.length>1&&s.index=o));)m.lastIndex===s.index&&m.lastIndex++;return g===a.length?!f&&x(m,"")||C(d,""):C(d,D(a,g)),d.length>o?_(d,0,o):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t,[function(t,n){var i=c(this),o=l(t)?void 0:g(t,e);return o?r(o,t,i,n):r(a,p(i),t,n)},function(e,i){var r=s(this),o=p(e),l=n(a,r,o,i,a!==t);if(l.done)return l.value;var u=f(r,RegExp),c=r.unicode,g=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(v?"g":"y"),_=new u(v?"^(?:"+r.source+")":r,g),F=void 0===i?k:i>>>0;if(0===F)return[];if(0===o.length)return null===m(_,o)?[o]:[];for(var y=0,b=0,w=[];b1?arguments[1]:void 0,t.length)),i=s(e);return d?d(t,i,n):h(t,n,n+i.length)===i}})},function(e,t,n){"use strict";var i=n(1),r=n(115).trim;i({target:"String",proto:!0,forced:n(225)("trim")},{trim:function(){return r(this)}})},function(e,t,n){n(577);var i=n(1),r=n(309);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==r},{trimEnd:r})},function(e,t,n){var i=n(1),r=n(309);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==r},{trimRight:r})},function(e,t,n){n(579);var i=n(1),r=n(310);i({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==r},{trimStart:r})},function(e,t,n){var i=n(1),r=n(310);i({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r})},function(e,t,n){n(73)("Float32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){var i=n(40),r=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw r("The argument can't be less than 0");return t}},function(e,t,n){var i=n(66);e.exports=function(e){var t=i(e);return"BigInt64Array"==t||"BigUint64Array"==t}},function(e,t,n){n(73)("Float64",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Int8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Int16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Int32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},function(e,t,n){n(73)("Uint16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Uint32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";var i=n(4),r=n(18),a=i(n(277)),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return a(o(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(38).every,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("every",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(208),a=n(313),o=n(66),s=n(6),l=n(4),u=n(3),c=i.aTypedArray,f=i.exportTypedArrayMethod,d=l("".slice);f("fill",(function(e){var t=arguments.length;c(this);var n="Big"===d(o(this),0,3)?a(e):+e;return s(r,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},function(e,t,n){"use strict";var i=n(18),r=n(38).filter,a=n(595),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("filter",(function(e){var t=r(o(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)}))},function(e,t,n){var i=n(596),r=n(227);e.exports=function(e,t){return i(r(e),t)}},function(e,t,n){var i=n(21);e.exports=function(e,t){for(var n=0,r=i(t),a=new e(r);r>n;)a[n]=t[n++];return a}},function(e,t,n){"use strict";var i=n(18),r=n(38).find,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("find",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(38).findIndex,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("findIndex",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(38).forEach,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("forEach",(function(e){r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(226);(0,n(18).exportTypedArrayStaticMethod)("from",n(312),i)},function(e,t,n){"use strict";var i=n(18),r=n(127).includes,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("includes",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(127).indexOf,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("indexOf",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(5),r=n(3),a=n(4),o=n(18),s=n(158),l=n(8)("iterator"),u=i.Uint8Array,c=a(s.values),f=a(s.keys),d=a(s.entries),h=o.aTypedArray,p=o.exportTypedArrayMethod,g=u&&u.prototype,_=!r((function(){g[l].call([1])})),m=!!g&&g.values&&g[l]===g.values&&"values"===g.values.name,F=function(){return c(h(this))};p("entries",(function(){return d(h(this))}),_),p("keys",(function(){return f(h(this))}),_),p("values",F,_||!m,{name:"values"}),p(l,F,_||!m,{name:"values"})},function(e,t,n){"use strict";var i=n(18),r=n(4),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=r([].join);o("join",(function(e){return s(a(this),e)}))},function(e,t,n){"use strict";var i=n(18),r=n(55),a=n(283),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return r(a,o(this),t>1?[e,arguments[1]]:[e])}))},function(e,t,n){"use strict";var i=n(18),r=n(38).map,a=n(227),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("map",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(a(e))(t)}))}))},function(e,t,n){"use strict";var i=n(18),r=n(226),a=i.aTypedArrayConstructor;(0,i.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(a(this))(t);t>e;)n[e]=arguments[e++];return n}),r)},function(e,t,n){"use strict";var i=n(18),r=n(159).left,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return r(a(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(159).right,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return r(a(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=i.aTypedArray,a=i.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var e,t=this,n=r(t).length,i=o(n/2),a=0;a1?arguments[1]:void 0,1),n=l(e);if(_)return r(h,this,n,t);var i=this.length,a=o(n),u=0;if(a+t>i)throw c("Wrong length");for(;ua;)u[a]=n[a++];return u}),a((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var i=n(18),r=n(38).some,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("some",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(5),r=n(84),a=n(3),o=n(15),s=n(212),l=n(18),u=n(284),c=n(285),f=n(80),d=n(213),h=l.aTypedArray,p=l.exportTypedArrayMethod,g=i.Uint16Array,_=g&&r(g.prototype.sort),m=!!_&&!(a((function(){_(new g(2),null)}))&&a((function(){_(new g(2),{})}))),F=!!_&&!a((function(){if(f)return f<74;if(u)return u<67;if(c)return!0;if(d)return d<602;var e,t,n=new g(516),i=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,i[e]=e-2*t+3;for(_(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==i[e])return!0}));p("sort",(function(e){return void 0!==e&&o(e),F?_(this,e):s(h(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!F||m)},function(e,t,n){"use strict";var i=n(5),r=n(55),a=n(18),o=n(3),s=n(85),l=i.Int8Array,u=a.aTypedArray,c=a.exportTypedArrayMethod,f=[].toLocaleString,d=!!l&&o((function(){f.call(new l(1))}));c("toLocaleString",(function(){return r(f,d?s(u(this)):u(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!o((function(){l.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var i=n(18).exportTypedArrayMethod,r=n(3),a=n(5),o=n(4),s=a.Uint8Array,l=s&&s.prototype||{},u=[].toString,c=o([].join);r((function(){u.call({})}))&&(u=function(){return c(this)});var f=l.toString!=u;i("toString",u,f)},function(e,t,n){"use strict";var i,r=n(114),a=n(5),o=n(4),s=n(112),l=n(99),u=n(161),c=n(314),f=n(11),d=n(29).enforce,h=n(3),p=n(269),g=Object,_=Array.isArray,m=g.isExtensible,F=g.isFrozen,y=g.isSealed,b=g.freeze,v=g.seal,k={},E={},w=!a.ActiveXObject&&"ActiveXObject"in a,x=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},C=u("WeakMap",x,c),D=C.prototype,T=o(D.set);if(p)if(w){i=c.getConstructor(x,"WeakMap",!0),l.enable();var S=o(D.delete),A=o(D.has),O=o(D.get);s(D,{delete:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new i),S(this,e)||t.frozen.delete(e)}return S(this,e)},has:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new i),A(this,e)||t.frozen.has(e)}return A(this,e)},get:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new i),A(this,e)?O(this,e):t.frozen.get(e)}return O(this,e)},set:function(e,t){if(f(e)&&!m(e)){var n=d(this);n.frozen||(n.frozen=new i),A(this,e)?T(this,e,t):n.frozen.set(e,t)}else T(this,e,t);return this}})}else r&&h((function(){var e=b([]);return T(new C,e,1),!F(e)}))&&s(D,{set:function(e,t){var n;return _(e)&&(F(e)?n=k:y(e)&&(n=E)),T(this,e,t),n==k&&b(e),n==E&&v(e),this}})},function(e,t,n){n(619)},function(e,t,n){"use strict";n(161)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(314))},function(e,t,n){n(621)},function(e,t,n){n(622)},function(e,t,n){"use strict";var i=n(1),r=n(60),a=n(39),o=n(71),s=n(200),l=n(54),u=n(49),c=n(65),f=n(623),d=n(624),h=n(41),p=n(627),g=n(8)("toStringTag"),_=Error,m=[].push,F=function(e,t){var n,i=r(y,this);o?n=o(_(),i?a(this):y):(n=i?this:l(y),u(n,g,"Error")),void 0!==t&&u(n,"message",p(t)),d(n,F,n.stack,1),arguments.length>2&&f(n,arguments[2]);var s=[];return h(e,m,{that:s}),u(n,"errors",s),n};o?o(F,_):s(F,_,{name:!0});var y=F.prototype=l(_.prototype,{constructor:c(1,F),message:c(1,""),name:c(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:F})},function(e,t,n){var i=n(11),r=n(49);e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},function(e,t,n){var i=n(49),r=n(625),a=n(626),o=Error.captureStackTrace;e.exports=function(e,t,n,s){a&&(o?o(e,t):i(e,"stack",r(n,s)))}},function(e,t,n){var i=n(4),r=Error,a=i("".replace),o=String(r("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)for(;t--;)e=a(e,s,"");return e}},function(e,t,n){var i=n(3),r=n(65);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},function(e,t,n){var i=n(13);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},function(e,t,n){"use strict";var i=n(9),r=n(67),a=n(17),o=n(21),s=n(50);i&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=a(this),t=o(e);return 0==t?0:t-1}}),r("lastIndex"))},function(e,t,n){"use strict";var i=n(9),r=n(67),a=n(17),o=n(21),s=n(50);i&&(s(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=a(this),t=o(e);return 0==t?void 0:e[t-1]},set:function(e){var t=a(this),n=o(t);return t[0==n?0:n-1]=e}}),r("lastItem"))},function(e,t,n){var i=n(1),r=n(55),a=n(315),o=n(26),s=n(54),l=Object,u=function(){var e=o("Object","freeze");return e?e(s(null)):s(null)};i({global:!0,forced:!0},{compositeKey:function(){return r(a,l,arguments).get("object",u)}})},function(e,t,n){var i=n(1),r=n(315),a=n(26),o=n(55);i({global:!0,forced:!0},{compositeSymbol:function(){return 1==arguments.length&&"string"==typeof arguments[0]?a("Symbol").for(arguments[0]):o(r,null,arguments).get("symbol",a("Symbol"))}})},function(e,t,n){n(633)},function(e,t,n){var i=n(1),r=n(5);i({global:!0,forced:r.globalThis!==r},{globalThis:r})},function(e,t,n){"use strict";var i=n(1),r=n(51),a=n(63).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=r(this),n=!0,i=0,o=arguments.length;i1?arguments[1]:void 0);return!1!==o(t,(function(e,i){if(!n(e,i,t))return!1}),!0)}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(51),o=n(63),s=n(64),l=o.Map,u=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){n(e,r,t)&&u(i,r,e)})),i}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(51),o=n(64);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e,i){if(n(e,i,t))return{value:e}}),!0);return i&&i.value}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(51),o=n(64);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e,i){if(n(e,i,t))return{key:i}}),!0);return i&&i.key}})},function(e,t,n){n(1)({target:"Map",stat:!0,forced:!0},{from:n(172)})},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(4),o=n(10),s=n(15),l=n(41),u=n(63).Map,c=a([].push);i({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var n=new(o(this)?this:u);s(t);var i=s(n.has),a=s(n.get),f=s(n.set);return l(e,(function(e){var o=t(e);r(i,n,o)?c(r(a,n,o),e):r(f,n,o,[e])})),n}})},function(e,t,n){"use strict";var i=n(1),r=n(642),a=n(51),o=n(64);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===o(a(this),(function(t){if(r(t,e))return!0}),!0)}})},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(41),o=n(10),s=n(15),l=n(63).Map;i({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(o(this)?this:l);s(t);var i=s(n.set);return a(e,(function(e){r(i,n,t(e),e)})),n}})},function(e,t,n){"use strict";var i=n(1),r=n(51),a=n(64);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=a(r(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(51),o=n(63),s=n(64),l=o.Map,u=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){u(i,n(e,r,t),e)})),i}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(51),o=n(63),s=n(64),l=o.Map,u=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){u(i,r,n(e,r,t))})),i}})},function(e,t,n){"use strict";var i=n(1),r=n(51),a=n(41),o=n(63).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=r(this),n=arguments.length,i=0;i1?arguments[1]:void 0);return!0===o(t,(function(e,i){if(n(e,i,t))return!0}),!0)}})},function(e,t,n){"use strict";var i=n(1),r=n(15),a=n(51),o=n(63),s=TypeError,l=o.get,u=o.has,c=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=a(this),i=arguments.length;r(t);var o=u(n,e);if(!o&&i<3)throw s("Updating absent value");var f=o?l(n,e):r(i>2?arguments[2]:void 0)(e,n);return c(n,e,t(f,e,n)),n}})},function(e,t,n){var i=n(1),r=Math.min,a=Math.max;i({target:"Math",stat:!0,forced:!0},{clamp:function(e,t,n){return r(n,a(t,e))}})},function(e,t,n){n(1)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var i=n(1),r=180/Math.PI;i({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*r}})},function(e,t,n){var i=n(1),r=n(316),a=n(290);i({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,n,i,o){return a(r(e,t,n,i,o))}})},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)+(i>>>0)+((r&a|(r|a)&~(r+a>>>0))>>>31)|0}})},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var n=65535,i=+e,r=+t,a=i&n,o=r&n,s=i>>16,l=r>>16,u=(s*o>>>0)+(a*o>>>16);return s*l+(u>>16)+((a*l>>>0)+(u&n)>>16)}})},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)-(i>>>0)-((~r&a|~(r^a)&r-a>>>0)>>>31)|0}})},function(e,t,n){n(1)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var i=n(1),r=Math.PI/180;i({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*r}})},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{scale:n(316)})},function(e,t,n){var i=n(1),r=n(7),a=n(663),o=n(135),s=n(111),l=n(29),u="Seeded Random",c=u+" Generator",f=l.set,d=l.getterFor(c),h=TypeError,p=o((function(e){f(this,{type:c,seed:e%2147483647})}),u,(function(){var e=d(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return s((1073741823&t)/1073741823,!1)}));i({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=r(e).seed;if(!a(t))throw h('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new p(t)}})},function(e,t,n){var i=n(5).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&i(e)}},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t==t&&0==t?1/t==-1/0:t<0}})},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var n=65535,i=+e,r=+t,a=i&n,o=r&n,s=i>>>16,l=r>>>16,u=(s*o>>>0)+(a*o>>>16);return s*l+(u>>>16)+((a*l>>>0)+(u&n)>>>16)}})},function(e,t,n){"use strict";var i=n(1),r=n(4),a=n(40),o=n(220),s="Invalid number representation",l=RangeError,u=SyntaxError,c=TypeError,f=/^[\da-z]+$/,d=r("".charAt),h=r(f.exec),p=r(1..toString),g=r("".slice);i({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var n,i,r=1;if("string"!=typeof e)throw c(s);if(!e.length)throw u(s);if("-"==d(e,0)&&(r=-1,!(e=g(e,1)).length))throw u(s);if((n=void 0===t?10:a(t))<2||n>36)throw l("Invalid radix");if(!h(f,e)||p(i=o(e,n),n)!==e)throw u(s);return r*i}})},function(e,t,n){n(668),n(669),n(670)},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(9),o=n(98),s=n(15),l=n(7),u=n(72),c=n(10),f=n(32),d=n(11),h=n(61),p=n(28),g=n(112),_=n(50),m=n(297),F=n(8),y=n(29),b=n(229),v=F("observable"),k="Observable",E="Subscription",w="SubscriptionObserver",x=y.getterFor,C=y.set,D=x(k),T=x(E),S=x(w),A=function(e){this.observer=l(e),this.cleanup=void 0,this.subscriptionObserver=void 0};A.prototype={type:E,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(t){m(t)}}},close:function(){if(!a){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return void 0===this.observer}};var O=function(e,t){var n,i=C(this,new A(e));a||(this.closed=!1);try{(n=h(e,"start"))&&r(n,e,this)}catch(d){m(d)}if(!i.isClosed()){var o=i.subscriptionObserver=new I(i);try{var l=t(o),u=l;f(l)||(i.cleanup=c(l.unsubscribe)?function(){u.unsubscribe()}:s(l))}catch(d){return void o.error(d)}i.isClosed()&&i.clean()}};O.prototype=g({},{unsubscribe:function(){var e=T(this);e.isClosed()||(e.close(),e.clean())}}),a&&_(O.prototype,"closed",{configurable:!0,get:function(){return T(this).isClosed()}});var I=function(e){C(this,{type:w,subscriptionState:e}),a||(this.closed=!1)};I.prototype=g({},{next:function(e){var t=S(this).subscriptionState;if(!t.isClosed()){var n=t.observer;try{var i=h(n,"next");i&&r(i,n,e)}catch(a){m(a)}}},error:function(e){var t=S(this).subscriptionState;if(!t.isClosed()){var n=t.observer;t.close();try{var i=h(n,"error");i?r(i,n,e):m(e)}catch(a){m(a)}t.clean()}},complete:function(){var e=S(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var n=h(t,"complete");n&&r(n,t)}catch(i){m(i)}e.clean()}}}),a&&_(I.prototype,"closed",{configurable:!0,get:function(){return S(this).subscriptionState.isClosed()}});var M=function(e){u(this,P),C(this,{type:k,subscriber:s(e)})},P=M.prototype;g(P,{subscribe:function(e){var t=arguments.length;return new O(c(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:d(e)?e:{},D(this).subscriber)}}),p(P,v,(function(){return this})),i({global:!0,constructor:!0,forced:b},{Observable:M}),o(k)},function(e,t,n){"use strict";var i=n(1),r=n(26),a=n(6),o=n(7),s=n(95),l=n(133),u=n(61),c=n(41),f=n(8),d=n(229),h=f("observable");i({target:"Observable",stat:!0,forced:d},{from:function(e){var t=s(this)?this:r("Observable"),n=u(o(e),h);if(n){var i=o(a(n,e));return i.constructor===t?i:new t((function(e){return i.subscribe(e)}))}var f=l(e);return new t((function(e){c(f,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}})},function(e,t,n){"use strict";var i=n(1),r=n(26),a=n(95),o=n(229),s=r("Array");i({target:"Observable",stat:!0,forced:o},{of:function(){for(var e=a(this)?this:r("Observable"),t=arguments.length,n=s(t),i=0;i1?arguments[1]:void 0);return!1!==o(t,(function(e){if(!n(e,e,t))return!1}),!0)}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(37),o=n(42),s=n(56),l=o.Set,u=o.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e){n(e,e,t)&&u(i,e)})),i}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(37),o=n(56);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return i&&i.value}})},function(e,t,n){n(1)({target:"Set",stat:!0,forced:!0},{from:n(172)})},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(696);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(42),a=n(140),o=n(101),s=n(56),l=n(87),u=r.Set,c=r.add,f=r.has,d=r.$has,h=r.$keys;e.exports=function(e){var t,n=i(this),r=o(e),p=new u;if(((t=r).has!==d||t.keys!==h)&&a(n)>r.size){if(l(r.getIterator(),(function(e){f(n,e)&&c(p,e)})),a(p)<2)return p;var g=p;p=new u,s(n,(function(e){f(g,e)&&c(p,e)}))}else s(n,(function(e){r.includes(e)&&c(p,e)}));return p}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(698);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(42).has,a=n(140),o=n(101),s=n(56),l=n(87),u=n(156);e.exports=function(e){var t=i(this),n=o(e);if(a(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var c=n.getIterator();return!1!==l(c,(function(e){if(r(t,e))return u(c,"normal",!1)}))}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(700);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(140),a=n(56),o=n(101);e.exports=function(e){var t=i(this),n=o(e);return!(r(t)>n.size)&&!1!==a(t,(function(e){if(!n.includes(e))return!1}),!0)}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(702);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(42).has,a=n(140),o=n(101),s=n(87),l=n(156);e.exports=function(e){var t=i(this),n=o(e);if(a(t)1?arguments[1]:void 0),i=new l;return s(t,(function(e){u(i,n(e,e,t))})),i}})},function(e,t,n){n(1)({target:"Set",stat:!0,forced:!0},{of:n(173)})},function(e,t,n){"use strict";var i=n(1),r=n(15),a=n(37),o=n(56),s=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=a(this),n=arguments.length<2,i=n?void 0:arguments[1];if(r(e),o(t,(function(r){n?(n=!1,i=r):i=e(i,r,r,t)})),n)throw s("Reduce of empty set with no initial value");return i}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(37),o=n(56);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0);return!0===o(t,(function(e){if(n(e,e,t))return!0}),!0)}})},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(709);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(42),a=n(230),o=n(101),s=n(87),l=r.add,u=r.has,c=r.remove;e.exports=function(e){var t=i(this),n=o(e).getIterator(),r=a(t);return s(n,(function(e){u(t,e)?c(r,e):l(r,e)})),r}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(711);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(42).add,a=n(230),o=n(101),s=n(87);e.exports=function(e){var t=i(this),n=o(e).getIterator(),l=a(t);return s(n,(function(e){r(l,e)})),l}},function(e,t,n){"use strict";var i=n(1),r=n(118).charAt,a=n(31),o=n(40),s=n(13);i({target:"String",proto:!0,forced:!0},{at:function(e){var t=s(a(this)),n=t.length,i=o(e),l=i>=0?i:n+i;return l<0||l>=n?void 0:r(t,l)}})},function(e,t,n){"use strict";var i=n(1),r=n(135),a=n(111),o=n(31),s=n(13),l=n(29),u=n(118),c=u.codeAt,f=u.charAt,d="String Iterator",h=l.set,p=l.getterFor(d),g=r((function(e){h(this,{type:d,string:e,index:0})}),"String",(function(){var e,t=p(this),n=t.string,i=t.index;return i>=n.length?a(void 0,!0):(e=f(n,i),t.index+=e.length,a({codePoint:c(e,0),position:i},!1))}));i({target:"String",proto:!0,forced:!0},{codePoints:function(){return new g(s(o(this)))}})},function(e,t,n){n(715)},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(84),o=n(135),s=n(111),l=n(31),u=n(53),c=n(13),f=n(7),d=n(32),h=n(48),p=n(138),g=n(168),_=n(61),m=n(28),F=n(3),y=n(8),b=n(113),v=n(171),k=n(139),E=n(29),w=n(33),x=y("matchAll"),C="RegExp String",D=C+" Iterator",T=E.set,S=E.getterFor(D),A=RegExp.prototype,O=TypeError,I=a("".indexOf),M=a("".matchAll),P=!!M&&!F((function(){M("a",/./)})),R=o((function(e,t,n,i){T(this,{type:D,regexp:e,string:t,global:n,unicode:i,done:!1})}),C,(function(){var e=S(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,i=k(t,n);return null===i?(e.done=!0,s(void 0,!0)):e.global?(""===c(i[0])&&(t.lastIndex=v(n,u(t.lastIndex),e.unicode)),s(i,!1)):(e.done=!0,s(i,!1))})),j=function(e){var t,n,i,r=f(this),a=c(e),o=b(r,RegExp),s=c(g(r));return t=new o(o===RegExp?r.source:r,s),n=!!~I(s,"g"),i=!!~I(s,"u"),t.lastIndex=u(r.lastIndex),new R(t,a,n,i)};i({target:"String",proto:!0,forced:P},{matchAll:function(e){var t,n,i,a,o=l(this);if(d(e)){if(P)return M(o,e)}else{if(p(e)&&(t=c(l(g(e))),!~I(t,"g")))throw O("`.matchAll` does not allow non-global regexes");if(P)return M(o,e);if(void 0===(i=_(e,x))&&w&&"RegExp"==h(e)&&(i=j),i)return r(i,e,o)}return n=c(o),a=new RegExp(e,"g"),w?r(j,a,n):a[x](n)}}),w||x in A||m(A,x,j)},function(e,t,n){n(717)},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(4),o=n(31),s=n(10),l=n(32),u=n(138),c=n(13),f=n(61),d=n(168),h=n(308),p=n(8),g=n(33),_=p("replace"),m=TypeError,F=a("".indexOf),y=a("".replace),b=a("".slice),v=Math.max,k=function(e,t,n){return n>e.length?-1:""===t?n:F(e,t,n)};i({target:"String",proto:!0},{replaceAll:function(e,t){var n,i,a,p,E,w,x,C,D,T=o(this),S=0,A=0,O="";if(!l(e)){if((n=u(e))&&(i=c(o(d(e))),!~F(i,"g")))throw m("`.replaceAll` does not allow non-global regexes");if(a=f(e,_))return r(a,e,T,t);if(g&&n)return y(c(T),e,t)}for(p=c(T),E=c(e),(w=s(t))||(t=c(t)),x=E.length,C=v(1,x),S=k(p,E,0);-1!==S;)D=w?c(t(E,S,p)):h(E,p,S,[],void 0,t),O+=b(p,A,S)+D,A=S+x,S=k(p,E,S+C);return A1?arguments[1]:void 0)}},function(e,t,n){var i=n(5),r=n(319),a=n(320),o=n(158),s=n(49),l=n(8),u=l("iterator"),c=l("toStringTag"),f=o.values,d=function(e,t){if(e){if(e[u]!==f)try{s(e,u,f)}catch(i){e[u]=f}if(e[c]||s(e,c,t),r[t])for(var n in o)if(e[n]!==o[n])try{s(e,n,o[n])}catch(i){e[n]=o[n]}}};for(var h in r)d(i[h]&&i[h].prototype,h);d(a,"DOMTokenList")},function(e,t,n){n(733),n(734)},function(e,t,n){var i=n(1),r=n(5),a=n(166).clear;i({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==a},{clearImmediate:a})},function(e,t,n){var i=n(1),r=n(5),a=n(166).set,o=n(735),s=r.setImmediate?o(a,!1):a;i({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==s},{setImmediate:s})},function(e,t,n){"use strict";var i=n(5),r=n(55),a=n(10),o=n(736),s=n(70),l=n(85),u=n(136),c=i.Function,f=/MSIE .\./.test(s)||o&&function(){var e=i.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}();e.exports=function(e,t){var n=t?2:1;return f?function(i,o){var s=u(arguments.length,1)>n,f=a(i)?i:c(i),d=s?l(arguments,n):[],h=s?function(){r(f,this,d)}:f;return t?e(h,o):e(h)}:e}},function(e,t){e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,n){var i=n(1),r=n(5),a=n(295),o=n(15),s=n(136),l=n(96),u=r.process;i({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){s(arguments.length,1),o(e);var t=l&&u.domain;a(t?t.bind(e):e)}})},function(e,t,n){n(739)},function(e,t,n){"use strict";n(304);var i,r=n(1),a=n(9),o=n(321),s=n(5),l=n(22),u=n(4),c=n(28),f=n(50),d=n(72),h=n(16),p=n(292),g=n(279),_=n(130),m=n(118).codeAt,F=n(740),y=n(13),b=n(62),v=n(136),k=n(322),E=n(29),w=E.set,x=E.getterFor("URL"),C=k.URLSearchParams,D=k.getState,T=s.URL,S=s.TypeError,A=s.parseInt,O=Math.floor,I=Math.pow,M=u("".charAt),P=u(/./.exec),R=u([].join),j=u(1..toString),N=u([].pop),B=u([].push),L=u("".replace),q=u([].shift),z=u("".split),U=u("".slice),H=u("".toLowerCase),K=u([].unshift),W="Invalid scheme",G="Invalid host",V="Invalid port",Y=/[a-z]/i,X=/[\d+-.a-z]/i,$=/\d/,J=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,re=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,oe=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)K(t,e%256),e=O(e/256);return R(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,a=0;a<8;a++)0!==e[a]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=a),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=j(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},le=p({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=p({},le,{"#":1,"?":1,"{":1,"}":1}),ce=p({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=m(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var n;return 2==e.length&&P(Y,M(e,0))&&(":"==(n=M(e,1))||!t&&"|"==n)},pe=function(e){var t;return e.length>1&&he(U(e,0,2))&&(2==e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===H(e)},_e={},me={},Fe={},ye={},be={},ve={},ke={},Ee={},we={},xe={},Ce={},De={},Te={},Se={},Ae={},Oe={},Ie={},Me={},Pe={},Re={},je={},Ne=function e(t,n,i){var r,a,o,s=y(t);if(n){if(a=this.parse(s))throw S(a);this.searchParams=null}else{if(void 0!==i&&(r=new e(i,!0)),a=this.parse(s,null,r))throw S(a);(o=D(new C)).bindURL(this),this.searchParams=o}};Ne.prototype={type:"URL",parse:function(e,t,n){var r,a,o,s,l,u=this,c=t||_e,f=0,d="",p=!1,m=!1,F=!1;for(e=y(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=L(e,ie,""),e=L(e,re,"$1")),e=L(e,ae,""),r=g(e);f<=r.length;){switch(a=r[f],c){case _e:if(!a||!P(Y,a)){if(t)return W;c=Fe;continue}d+=H(a),c=me;break;case me:if(a&&(P(X,a)||"+"==a||"-"==a||"."==a))d+=H(a);else{if(":"!=a){if(t)return W;d="",c=Fe,f=0;continue}if(t&&(u.isSpecial()!=h(de,d)||"file"==d&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&de[u.scheme]==u.port&&(u.port=null));d="","file"==u.scheme?c=Se:u.isSpecial()&&n&&n.scheme==u.scheme?c=ye:u.isSpecial()?c=Ee:"/"==r[f+1]?(c=be,f++):(u.cannotBeABaseURL=!0,B(u.path,""),c=Pe)}break;case Fe:if(!n||n.cannotBeABaseURL&&"#"!=a)return W;if(n.cannotBeABaseURL&&"#"==a){u.scheme=n.scheme,u.path=_(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=je;break}c="file"==n.scheme?Se:ve;continue;case ye:if("/"!=a||"/"!=r[f+1]){c=ve;continue}c=we,f++;break;case be:if("/"==a){c=xe;break}c=Me;continue;case ve:if(u.scheme=n.scheme,a==i)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=_(n.path),u.query=n.query;else if("/"==a||"\\"==a&&u.isSpecial())c=ke;else if("?"==a)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=_(n.path),u.query="",c=Re;else{if("#"!=a){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=_(n.path),u.path.length--,c=Me;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=_(n.path),u.query=n.query,u.fragment="",c=je}break;case ke:if(!u.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=Me;continue}c=xe}else c=we;break;case Ee:if(c=we,"/"!=a||"/"!=M(d,f+1))continue;f++;break;case we:if("/"!=a&&"\\"!=a){c=xe;continue}break;case xe:if("@"==a){p&&(d="%40"+d),p=!0,o=g(d);for(var b=0;b65535)return V;u.port=u.isSpecial()&&E===de[u.scheme]?null:E,d=""}if(t)return;c=Ie;continue}return V}d+=a;break;case Se:if(u.scheme="file","/"==a||"\\"==a)c=Ae;else{if(!n||"file"!=n.scheme){c=Me;continue}if(a==i)u.host=n.host,u.path=_(n.path),u.query=n.query;else if("?"==a)u.host=n.host,u.path=_(n.path),u.query="",c=Re;else{if("#"!=a){pe(R(_(r,f),""))||(u.host=n.host,u.path=_(n.path),u.shortenPath()),c=Me;continue}u.host=n.host,u.path=_(n.path),u.query=n.query,u.fragment="",c=je}}break;case Ae:if("/"==a||"\\"==a){c=Oe;break}n&&"file"==n.scheme&&!pe(R(_(r,f),""))&&(he(n.path[0],!0)?B(u.path,n.path[0]):u.host=n.host),c=Me;continue;case Oe:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&he(d))c=Me;else if(""==d){if(u.host="",t)return;c=Ie}else{if(s=u.parseHost(d))return s;if("localhost"==u.host&&(u.host=""),t)return;d="",c=Ie}continue}d+=a;break;case Ie:if(u.isSpecial()){if(c=Me,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=i&&(c=Me,"/"!=a))continue}else u.fragment="",c=je;else u.query="",c=Re;break;case Me:if(a==i||"/"==a||"\\"==a&&u.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(l=H(l=d))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(u.shortenPath(),"/"==a||"\\"==a&&u.isSpecial()||B(u.path,"")):ge(d)?"/"==a||"\\"==a&&u.isSpecial()||B(u.path,""):("file"==u.scheme&&!u.path.length&&he(d)&&(u.host&&(u.host=""),d=M(d,0)+":"),B(u.path,d)),d="","file"==u.scheme&&(a==i||"?"==a||"#"==a))for(;u.path.length>1&&""===u.path[0];)q(u.path);"?"==a?(u.query="",c=Re):"#"==a&&(u.fragment="",c=je)}else d+=fe(a,ue);break;case Pe:"?"==a?(u.query="",c=Re):"#"==a?(u.fragment="",c=je):a!=i&&(u.path[0]+=fe(a,se));break;case Re:t||"#"!=a?a!=i&&("'"==a&&u.isSpecial()?u.query+="%27":u.query+="#"==a?"%23":fe(a,se)):(u.fragment="",c=je);break;case je:a!=i&&(u.fragment+=fe(a,le))}f++}},parseHost:function(e){var t,n,i;if("["==M(e,0)){if("]"!=M(e,e.length-1))return G;if(t=function(e){var t,n,i,r,a,o,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,f=0,d=function(){return M(e,f)};if(":"==d()){if(":"!=M(e,1))return;f+=2,c=++u}for(;d();){if(8==u)return;if(":"!=d()){for(t=n=0;n<4&&P(ee,d());)t=16*t+A(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,u>6)return;for(i=0;d();){if(r=null,i>0){if(!("."==d()&&i<4))return;f++}if(!P($,d()))return;for(;P($,d());){if(a=A(d(),10),null===r)r=a;else{if(0==r)return;r=10*r+a}if(r>255)return;f++}l[u]=256*l[u]+r,2!=++i&&4!=i||u++}if(4!=i)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[u++]=t}else{if(null!==c)return;f++,c=++u}}if(null!==c)for(o=u-c,u=7;0!=u&&o>0;)s=l[u],l[u--]=l[c+o-1],l[c+--o]=s;else if(8!=u)return;return l}(U(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=F(e),P(te,e))return G;if(t=function(e){var t,n,i,r,a,o,s,l=z(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],i=0;i1&&"0"==M(r,0)&&(a=P(J,r)?16:8,r=U(r,8==a?1:2)),""===r)o=0;else{if(!P(10==a?Z:8==a?Q:ee,r))return e;o=A(r,a)}B(n,o)}for(i=0;i=I(256,5-t))return null}else if(o>255)return null;for(s=N(n),i=0;i1?arguments[1]:void 0,i=w(t,new Ne(e,!1,n));a||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Le=Be.prototype,qe=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(f(Le,"href",qe("serialize","setHref")),f(Le,"origin",qe("getOrigin")),f(Le,"protocol",qe("getProtocol","setProtocol")),f(Le,"username",qe("getUsername","setUsername")),f(Le,"password",qe("getPassword","setPassword")),f(Le,"host",qe("getHost","setHost")),f(Le,"hostname",qe("getHostname","setHostname")),f(Le,"port",qe("getPort","setPort")),f(Le,"pathname",qe("getPathname","setPathname")),f(Le,"search",qe("getSearch","setSearch")),f(Le,"searchParams",qe("getSearchParams")),f(Le,"hash",qe("getHash","setHash"))),c(Le,"toJSON",(function(){return x(this).serialize()}),{enumerable:!0}),c(Le,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),T){var ze=T.createObjectURL,Ue=T.revokeObjectURL;ze&&c(Be,"createObjectURL",l(ze,T)),Ue&&c(Be,"revokeObjectURL",l(Ue,T))}b(Be,"URL"),r({global:!0,constructor:!0,forced:!o,sham:!a},{URL:Be})},function(e,t,n){var i=n(4),r=2147483647,a=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,u=i(o.exec),c=Math.floor,f=String.fromCharCode,d=i("".charCodeAt),h=i([].join),p=i([].push),g=i("".replace),_=i("".split),m=i("".toLowerCase),F=function(e){return e+22+75*(e<26)},y=function(e,t,n){var i=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),i+=36;return c(i+36*e/(e+38))},b=function(e){var t=[];e=function(e){for(var t=[],n=0,i=e.length;n=55296&&r<=56319&&n=o&&ic((r-u)/v))throw l(s);for(u+=(b-o)*v,o=b,n=0;nr)throw l(s);if(i==o){for(var k=u,E=36;;){var w=E<=g?1:E>=g+26?26:E-g;if(kA.length&&A.push(e)}function M(e,t,n,i){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var s=!1;if(null===e)s=!0;else switch(r){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return n(i,e,""===t?"."+R(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l, only round last child */\n &:last-child {\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n margin-bottom: 0;\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.color.primary}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini}));function Ql(e){var t=e.element,n=e.handleButtonClick,i=t.title,r=t.type,o=t.url,s=Lt(i,gt.PANEL,"elementTitleCharLimit");return r===_t.HYPERLINK&&o?a.a.createElement(nc,t):a.a.createElement(Jl,{value:s,onClick:n},a.a.createElement(Ju,null,s))}function Zl(e){var t=e.content,n=e.addMessage,i=e.templateType,o=e.isCarouselElem,s=e.templateIdentifier,l=t.title,u=t.subtitle,c=t.elements,f=t.imageData,d=t.imageDescription,h=t.preIndex,p=t.nextIndex,g=t.listId,_=t.referenceId,m=Lt(l,gt.PANEL,"titleCharLimit"),F=Lt(u,gt.PANEL,"subtitleCharLimit"),y=qt(c,gt.PANEL,"elementsRenderedMax"),b=Ot(Object(r.useState)(!1),2),v=b[0],k=b[1];return a.a.createElement(a.a.Fragment,null,f&&a.a.createElement($l,{showImage:v,isCarouselElem:o},a.a.createElement(Zu,{imageSrc:f,imageDescription:d,onImageLoad:function(){k(!0)}})),a.a.createElement(ec,{title:m,subtitle:F}),a.a.createElement(Xu,{isCarouselElem:o},a.a.createElement("div",null,y.map((function(e,t){return a.a.createElement(Ql,{key:"element-"+t,handleButtonClick:function(){!function(e){var t=Nt(y[e],h,p,g,i,_,o,m,s);n(t)}(t)},element:e})})))))}var eu=3,tu=Q.b.div(Bl||(Bl=q(["\n background-color: white;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n padding: ",";\n \n span {\n padding: 0 5px;\n flex-grow: 2;\n }\n"])),(function(e){return e.theme.globals.basePadding})),nu=Object(Q.b)(Me)(Ll||(Ll=q(["\n border: ",";\n padding: 0;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n \n &[disabled] {\n opacity: 0.3 !important;\n }\n \n &>div {\n display: flex;\n }\n"])),(function(e){return e.theme.globals.baseBorder}));tu.PrevDateButton=Object(Q.b)(nu)(ql||(ql=q(["\n align-self: flex-start;\n"]))),tu.NextDateButton=Object(Q.b)(nu)(zl||(zl=q(["\n align-self: flex-end;\n"])));var iu,ru,au=Q.b.div(Ul||(Ul=q(["\n font-size: 0;\n transform: rotate(","deg);\n \n svg {\n width: 8px;\n height: 12px;\n }\n"])),(function(e){return"left"===e.direction?"180":"0"})),ou=Q.b.div(Hl||(Hl=q(["\n padding: 0 ",";\n \n button {\n margin-top: ",";\n width: 100%;\n max-width: none;\n border-radius: ",";\n white-space: pre-line;\n \n &[data-selected='true'] { \n box-shadow: none;\n border: 1px solid ",";\n }\n }\n"])),(function(e){return e.theme.spacing.large}),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.color.highlightColor})),su=Q.b.div(Kl||(Kl=q(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: "," ",";\n \n button{\n border-radius: ",";\n\t padding: ",";\n\t \n\t &[disabled] {\n\t opacity: 0.3 !important;\n\t }\n }\n"])),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.large}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.globals.basePadding})),lu=Q.b.button(Wl||(Wl=q(["\n background-color: #fff;\n align-self: flex-start;\n"]))),uu=Q.b.button(Gl||(Gl=q(["\n background-color: #fff;\n align-self: flex-end;\n"]))),cu=Q.b.button(Vl||(Vl=q(["\n background-color: #3F5773;\n color: #fff !important;\n"]))),fu=Object(Q.b)(cu)(Yl||(Yl=q(["\n flex-grow: 2;\n"]))),du=Object(Q.b)(cu)(Xl||(Xl=q(["\n font-size: 0;\n margin-right: ",";\n svg {\n width: ",";\n height: ",";\n }\n"])),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.fontsSize.small}),(function(e){return e.theme.fontsSize.small}));function hu(){return(navigator.languages&&navigator.languages.length>0?navigator.languages[0]:navigator.language)||"en-US"}function pu(e){var t=e.timeslot,n=e.onClick,i=e.onKeyPress,r=e.selected,o=t.date,s=new Date(o).toLocaleTimeString("".concat(hu()),{hour:"numeric",minute:"numeric",timeZoneName:"short"});return a.a.createElement(Me,{selected:r,value:o,onKeyPress:i,onClick:n},"".concat(s))}function gu(e){var t=e.direction;return a.a.createElement(au,{direction:t},a.a.createElement("svg",{width:"8px",height:"12px",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("title",null,"Path"),a.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("polygon",{id:"Path",fill:"currentColor",fillRule:"nonzero",points:"2 0 0.59 1.41 5.17 6 0.59 10.59 2 12 8 6"}))))}function _u(e){var t=e.content,n=e.addMessage,i=t.title,o=t.subtitle,s=t.timeZoneOffset,l=t.timeslots,u=Lt(i,gt.TIME_PICKER,"titleCharLimit"),c=Lt(o,gt.TIME_PICKER,"subtitleCharLimit"),f=function(e,t){var n=e.map((function(e){return lt({},e,{date:mu(e.date,t)})}));return n}(l,s),d=function(e){return e.sort((function(e,t){return e.date.localeCompare(t.date)})),e.reduce((function(e,t){var n=new Date(t.date).setHours(0,0,0,0),i=new Date(n).toDateString();return e[i]||(e[i]=[]),e[i].push(t),e}),{})}(f),h=Object.keys(d),p=Ot(Object(r.useState)(0),2),g=p[0],_=p[1],m=h[g],F=d[m],y=Ot(Object(r.useState)(null),2),b=y[0],v=y[1],k=Ot(Object(r.useState)(0),2),E=k[0],w=k[1],x=E*eu,C=x+eu,D=F.slice(x,Math.min(F.length,C));function T(){S(g-1)}function S(e){_(e),w(0),v(null)}function A(e){v(e.currentTarget.value)}var O=new Date(m).toLocaleDateString(hu(),{weekday:"long",month:"long",day:"numeric"}),I=h.length>0,M=null==b&&F.length>eu;return a.a.createElement(a.a.Fragment,null,a.a.createElement(ec,{title:u,subtitle:c}),a.a.createElement(Xu,null,a.a.createElement(tu,null,I&&a.a.createElement(tu.PrevDateButton,{disabled:0===g,onKeyPress:T,onClick:T,"data-testid":"time-picker-prev-date-button"},a.a.createElement(gu,{direction:"left"})),a.a.createElement("span",null,O),I&&a.a.createElement(tu.NextDateButton,{disabled:g===h.length-1,onClick:function(){S(g+1)},"data-testid":"time-picker-next-date-button"},a.a.createElement(gu,{direction:"right"}))),a.a.createElement(ou,null,D.map((function(e){var t=new Date(b).getTime()===new Date(e.date).getTime();return a.a.createElement(pu,{selected:t,key:"timeslot".concat(e.date),timeslot:e,onKeypress:A,onClick:A})}))),a.a.createElement(su,null,null!=b&&a.a.createElement(a.a.Fragment,null,a.a.createElement(du,{onClick:function(){v(null)},"data-testid":"time-picker-reset-selection-button"},a.a.createElement("svg",{viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},a.a.createElement("path",{d:"M13 1.3L11.7 0 6.5 5.2 1.3 0 0 1.3l5.2 5.2L0 11.7 1.3 13l5.2-5.2 5.2 5.2 1.3-1.3-5.2-5.2z",fillRule:"evenodd"}))),a.a.createElement(fu,{disabled:null==b,onClick:function(){n({text:b})},"data-testid":"time-picker-confirm-selection-button"},"Confirm")),M&&a.a.createElement(a.a.Fragment,null,a.a.createElement(lu,{disabled:0===E,onClick:function(){w(E-1)}},"Earlier"),a.a.createElement(uu,{disabled:C>=F.length,onClick:function(){w(E+1)}},"Later")))))}function mu(e,t){if(t){var n=new Date(e).getTime();return new Date(n+6e4*t).toISOString().slice(0,-2)+"+00:00"}return e}var Fu="#077398",yu="#FFFFFF",bu=Q.b.div(iu||(iu=q(["\n padding: "," 0;\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n gap: ",";\n justify-content: flex-end;\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.spacing.mini})),vu=Object(Q.b)(Me)(ru||(ru=q(["\n padding: 4px ",";\n text-align: left;\n cursor: pointer;\n border: 2px solid ",";\n border-radius: 2px;\n white-space: pre-wrap;\n font-weight: bold;\n font-size: ",";\n line-height: 22px;\n font-weight: 600;\n font-style: normal;\n color: ",";\n background: ",";\n text-shadow: none;\n box-shadow: none;\n\n :hover, :focus {\n background: ",";\n color: ",";\n border: 2px solid "," !important;\n }\n"])),(function(e){return e.theme.spacing.base}),Fu,(function(e){return e.theme.fontsSize.regular}),Fu,yu,Fu,yu,Fu);function ku(e){var t=e.element,n=e.handleSelection,i=Lt(t.title,gt.QUICK_REPLY,"replyOptionCharLimit");return a.a.createElement(vu,{onClick:function(){return n({text:t.title})}},i)}function Eu(e){var t=e.content,n=e.addMessage,i=t.title,r=t.elements,o=Lt(i,gt.QUICK_REPLY,"titleCharLimit");return a.a.createElement(a.a.Fragment,null,a.a.createElement(Ku,{addChildBackgroundStyles:!0,"data-testid":"interactive-quickreply-message-title",applySpeechBubbleCaret:!0},a.a.createElement(ha,{content:o})),a.a.createElement(bu,{"data-testid":"interactive-quickreply-response-section"},r.slice(0,5).map((function(e,t){return a.a.createElement(ku,{element:e,handleSelection:n,key:t})}))))}var wu,xu,Cu,Du=n(149),Tu=n.n(Du),Su=200;var Au,Ou,Iu,Mu,Pu,Ru,ju,Nu,Bu=Q.b.div(wu||(wu=q(["\n padding: ",";\n margin: 0 ",";\n display: flex;\n gap: 2%;\n overflow-x: scroll;\n position: relative;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n scroll-snap-type: x proximity;\n\n /* Hide scrollbar */\n ::-webkit-scrollbar {\n display: none; /* Chrome, Safari and Opera */\n }\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.spacing.mini})),Lu=Object(Q.b)(Me)(xu||(xu=q(["\n cursor: pointer;\n position: absolute;\n top: 50%;\n display: block;\n --offset-x: 0;\n z-index: 99;\n ","\n\n width: 32px;\n height: 32px;\n border: 2px solid #fff;\n border-radius: 50%;\n\n background-size: 14px auto;\n background: white;\n -webkit-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n -moz-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n"])),(function(e){return"right"===e.direction?"right: 0;":""})),qu=Q.b.div(Cu||(Cu=q(["\n font-size: 0;\n transform: rotate(","deg);\n\n svg {\n width: 8px;\n height: 12px;\n }\n"])),(function(e){return"left"===e.direction?"180":"0"}));function zu(e){var t=e.elements,n=e.addMessage;return a.a.createElement(a.a.Fragment,null,t.map((function(e,t){return a.a.createElement(Qu,{key:t,content:e.data.content,templateType:e.templateType,addMessage:n,templateIdentifier:e.templateIdentifier,isCarouselElem:!0})})))}function Uu(e){var t=e.direction;return a.a.createElement(qu,{direction:t},a.a.createElement("svg",{width:"8px",height:"12px",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("polygon",{id:"Path",fill:"currentColor",fillRule:"nonzero",points:"2 0 0.59 1.41 5.17 6 0.59 10.59 2 12 8 6"}))))}function Hu(e){var t=e.content,n=e.addMessage,i=t.title,o=t.elements,s=Object(r.useRef)(null),l=function(){s.current.scrollLeft+=-1*Su},u=function(){s.current.scrollLeft+=Su},c=Lt(i,gt.CAROUSEL,"titleCharLimit"),f=qt(o,gt.CAROUSEL,"elementsRenderedMax");return a.a.createElement(a.a.Fragment,null,a.a.createElement(Ku,{addChildBackgroundStyles:!0,"data-testid":"interactive-carousel-message-title",applySpeechBubbleCaret:!0},a.a.createElement(ha,{content:c})),a.a.createElement(Lu,{onKeyPress:l,onClick:l,"data-testid":"interactive-carousel-scroll-left-btn",direction:"left"},a.a.createElement(Uu,{direction:"left"})),a.a.createElement(Bu,{ref:s,"data-testid":"interactive-carousel-response-section"},a.a.createElement(zu,{elements:f,addMessage:n})),a.a.createElement(Lu,{onKeyPress:u,onClick:u,"data-testid":"interactive-carousel-scroll-right-btn",direction:"right"},a.a.createElement(Uu,{direction:"right"})))}var Ku=Q.b.div(Au||(Au=q(["\n border: ",";\n border-radius: ",";\n\n ","\n\n ","\n\n ","\n\n button {\n cursor: pointer;\n border: ",";\n \n &:hover:enabled {\n color: #fff;\n background: ",";\n }\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.spacing.mini}),(function(e){return e.addChildBackgroundStyles?"\n background: ".concat(e.theme.chatTranscriptor.incomingMsgBg,"\n padding: 14px;\n "):""}),(function(e){return e.isCarouselElem?"\n position: relative;\n max-width: 350px;\n min-width: 225px;\n scroll-snap-align: start;\n background: ".concat(e.theme.chatTranscriptor.incomingMsgBg,"\n display: flex;\n flex-direction: column;\n "):""}),(function(e){return e.applySpeechBubbleCaret?'\n position: relative;\n\n &:after {\n display: block;\n content: " ";\n position: absolute;\n left: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 10px solid transparent;\n border-right: 12px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.incomingMsgBg,";\n }\n "):""}),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.color.primary})),Wu=Object(Q.b)(Ce)(Ou||(Ou=q(["\n font-weight: bold !important;\n"]))),Gu=Object(Q.b)(Ce)(Iu||(Iu=q(["\n color: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor})),Vu=Q.b.img(Mu||(Mu=q(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"]))),Yu=Q.b.div(Pu||(Pu=q(["\n padding: ",";\n text-align: left;\n\n ","\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.hasNestedSVG?"\n align-items: center;\n display: flex;\n justify-content: center;\n ":""})),Xu=Q.b.div(Ru||(Ru=q(["\n position: relative;\n white-space: pre-line;\n border-radius: ",";\n\n ","\n"])),(function(e){return e.theme.spacing.mini}),(function(e){return e.isCarouselElem?"\n margin-top: auto;\n flex: none;\n ":""})),$u=Q.b.div(ju||(ju=q(["\n display: flex;\n justify-content: center;\n width: 100%;\n max-width: none;\n border: ",";\n background: ",";\n white-space: pre-line;\n padding-right: ",";\n padding-left: ",";\n padding-top: ",";\n padding-bottom: ",";\n font-size: ",";\n line-height: 1.465;\n text-decoration: none;\n\n &:last-child {\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n margin-bottom: 0;\n }\n\n a: {\n text-decoration: none !important;\n font-weight: bold !important;\n }\n\n svg: {\n color: ",";\n margin: 0 ",";\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.palette.white}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.button.normal.padding}),(function(e){return e.theme.button.normal.padding}),(function(e){return e.theme.button.normal.fontSize}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.micro})),Ju=Object(Q.b)(Ce)(Nu||(Nu=q(["\n font-weight: bold;\n\n a {\n text-decoration: none;\n }\n\n ","\n"])),(function(e){return e.hasNestedSVG?"\n align-items: center;\n display: flex;\n justify-content: center;\n ":""}));function Qu(e){var t=e.content,n=e.templateType,i=e.addMessage,o=e.textInputRef,s=e.isCarouselElem,l=e.templateIdentifier,u=Ot(Object(r.useState)(!1),2),c=u[0],f=u[1];function d(e){i(e),f(!0)}return Object(r.useLayoutEffect)((function(){o&&o.current&&o.current.focus&&o.current.focus()}),[c,o]),n===gt.QUICK_REPLY?a.a.createElement(Eu,{content:t,addMessage:d}):n===gt.CAROUSEL?a.a.createElement(Hu,{content:t,addMessage:d}):a.a.createElement(Ku,{"data-testid":l,isCarouselElem:s},n===gt.LIST_PICKER?a.a.createElement(Nl,{content:t,addMessage:d,templateType:n,isCarouselElem:s,templateIdentifier:l}):n===gt.PANEL?a.a.createElement(Zl,{content:t,addMessage:d,templateType:n,isCarouselElem:s,templateIdentifier:l}):n===gt.TIME_PICKER?a.a.createElement(_u,{content:t,addMessage:d}):void 0)}function Zu(e){var t=e.imageSrc,n=e.imageDescription,i=e.onImageLoad;return a.a.createElement(Vu,{src:t,alt:n,onLoad:i,onError:function(e){return console.log("Failed to load image:",e)}})}function ec(e){var t=e.title,n=e.subtitle;return a.a.createElement(Yu,null,a.a.createElement(ha,{content:t,styledWrapper:Wu}),n&&a.a.createElement(ha,{content:n,styledWrapper:Gu}))}function tc(){return a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor",stroke:"none"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}))}function nc(e){var t=e.url,n=e.title,i=e.target,r=e.testId;return a.a.createElement($u,{"data-testid":r},a.a.createElement(Ju,{hasNestedSVG:!0},a.a.createElement("a",{href:t,target:i||"_blank"},n),a.a.createElement(tc,null)))}function ic(){return ic=Object.assign||function(e){for(var t=1;t=e}));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=a),null==(n=r.get(t.target))||n.forEach((function(e){e(a,t)}))}))}),e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},ac.set(t,n)}return n}(n),o=a.id,s=a.observer,l=a.elements,u=l.get(e)||[];return l.has(e)||l.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),ac.delete(o))}}var fc=["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function dc(e){return"function"!==typeof e.children}var hc,pc,gc,_c,mc,Fc,yc,bc,vc,kc,Ec,wc,xc=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),dc(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,rc(t,n);var a=i.prototype;return a.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},a.componentWillUnmount=function(){this.unobserve(),this.node=null},a.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,i=e.rootMargin,r=e.trackVisibility,a=e.delay,o=e.fallbackInView;this._unobserveCb=cc(this.node,this.handleChange,{threshold:t,root:n,rootMargin:i,trackVisibility:r,delay:a},o)}},a.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},a.render=function(){if(!dc(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var i=this.props,a=i.children,o=i.as,s=i.tag,l=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}(i,fc);return r.createElement(o||s||"div",ic({ref:this.handleNode},l),a)},i}(r.Component);xc.displayName="InView",xc.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};var Cc=Q.b.div(hc||(hc=q(["\n padding: "," ",";\n word-break: break-word;\n white-space: pre-line;\n overflow: auto;\n text-align: ",";\n"])),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.base}),(function(e){return e.textAlign})),Dc=Q.b.div(pc||(pc=q(["\n overflow: auto;\n"])));Dc.Sender=Q.b.div(gc||(gc=q(["\n float: left;\n max-width: 150px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),Dc.Status=Q.b.div(_c||(_c=q(["\n float: right;\n"])));var Tc=Q.b.div(mc||(mc=q(["\n overflow: auto;\n color: ",";\n padding-right: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.mini}));Tc.MessageReceipt=Q.b.div(Fc||(Fc=q(["\n float: right;\n"])));var Sc=Q.b.div(yc||(yc=q(["\n ",";\n\n ",";\n\n ","\n\n padding: ",";\n margin-top: ",";\n border-radius: 5px;\n position: relative;\n &:after {\n display: ",";\n ","\n }\n"])),(function(e){return e.direction===bt.Outgoing?e.theme.chatTranscriptor.outgoingMsg:e.theme.chatTranscriptor.incomingMsg}),(function(e){return e.messageStyle?e.messageStyle:""}),(function(e){return e.childWillAddBackground?"background: none":""}),(function(e){return e.removePadding?0:e.theme.spacing.base}),(function(e){return e.theme.spacing.mini}),(function(e){return e.hideDirectionArrow?"none":"block"}),(function(e){return e.direction===bt.Outgoing?'\n content: " ";\n position: absolute;\n right: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 12px solid transparent;\n border-right: 10px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.outgoingMsgBg,";\n "):'\n content: " ";\n position: absolute;\n left: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 10px solid transparent;\n border-right: 12px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.incomingMsgBg,";")})),Ac=Q.b.div(bc||(bc=q(["\n color: ",";\n display: flex;\n > img {\n margin-right: ",";\n }\n"])),(function(e){return e.theme.palette.red}),(function(e){return e.theme.spacing.mini})),Oc=Q.b.span(vc||(vc=q(["\n color: ",";\n padding-right: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.mini})),Ic=Q.b.div(kc||(kc=q(["\n margin-left: ",";\n padding: "," "," ",";\n\n span {\n color: ",";\n }\n"])),(function(e){return e.theme.chatTranscriptor.msgStatusWidth}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.micro}),(function(e){return e.theme.palette.red}));Ic.RetryButton=Q.b.a(Ec||(Ec=q(["\n margin-left: ",";\n"])),(function(e){return e.theme.spacing.micro}));var Mc,Pc,Rc=function(e){e.error;var t=e.resetErrorBoundary,n=e.InteractiveMessageType+"_ERROR";return window.connect&&window.connect.csmService&&window.connect.csmService.addCountAndErrorMetric(n,st,!1),a.a.createElement("div",{role:"alert"},a.a.createElement("p",null,"Something went wrong"),a.a.createElement("button",{onClick:t},"Reload Editor"))},jc=function(e){function t(e){var n;return z(this,t),(n=V(this,Y(t).call(this,e))).state={inView:!1,isVisible:!1},n.csmService=void 0,window.connect&&window.connect.csmService&&(n.csmService=window.connect.csmService),n}return $(t,e),H(t,[{key:"timestampToDisplayable",value:function(e){var t=new Date(0);t.setUTCSeconds(e);var n={hour:"numeric",minute:"numeric"};return(new Date).toDateString()===new Date(1e3*e).toDateString()?t.toLocaleTimeString([],n):t.toLocaleTimeString([],lt({},n,{weekday:"short",month:"short",day:"numeric"}))}},{key:"renderHeader",value:function(){var e=this.props.messageDetails.transportDetails.direction===bt.Outgoing,t=this.props.messageDetails.displayName||(e?"Customer":"Agent"),n=this.props.messageDetails.transportDetails,i=a.a.createElement(a.a.Fragment,null);switch(n.status){case mt.Sending:i=a.a.createElement(a.a.Fragment,null,a.a.createElement(Oc,null,a.a.createElement("span",null,"Sending")));break;case mt.SendSuccess:i=a.a.createElement(a.a.Fragment,null,this.timestampToDisplayable(n.sentTime,e));break;case mt.SendFailed:i=a.a.createElement(Ac,null,a.a.createElement(Je,null),a.a.createElement("span",null,"Failed to send!"));break;default:i=a.a.createElement(a.a.Fragment,null)}return a.a.createElement(a.a.Fragment,null,a.a.createElement(Dc.Sender,null,t),a.a.createElement(Dc.Status,null,i))}},{key:"renderMessageReceipts",value:function(){var e=this.props.messageDetails,t=e.lastReadReceipt,n=void 0!==t&&t,i=e.lastDeliveredReceipt,r=void 0!==i&&i,o=e.transportDetails,s=void 0===o?{}:o,l=s.messageReceiptType;return s.direction===bt.Outgoing&&l?a.a.createElement(a.a.Fragment,null,a.a.createElement(Tc.MessageReceipt,null,n&&"Read",r&&"Delivered")):null}},{key:"visibilityChangeListener",value:function(){var e="visible"===document.visibilityState;this.setState({isVisible:e})}},{key:"componentDidUpdate",value:function(){var e=this.props.messageDetails,t=e.transportDetails.direction,n=e.type,i=e.id,r=e.participantRole;this.state.inView&&this.state.isVisible&&xt.isTypeMessageOrAttachment(n)&&xt.isParticipantAgentOrCustomer(r)&&t===bt.Incoming&&this.props.sendReadReceipt(i,n===ft?{disableThrottle:!0}:{})}},{key:"componentDidMount",value:function(){this.visibilityChangeListener(),document.addEventListener("visibilitychange",this.visibilityChangeListener.bind(this))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("visibilitychange",this.visibilityChangeListener.bind(this))}},{key:"render",value:function(){var e,t,n=this,i=this.props.messageDetails.transportDetails,r=i.direction,o=i.error,s=r===bt.Outgoing?this.props.outgoingMsgStyle:this.props.incomingMsgStyle,l={};if(this.props.isLatestMessage&&this.props.messageDetails.content&&this.props.messageDetails.content.type===ht.MESSAGE_CONTENT_TYPE.INTERACTIVE_MESSAGE){l.hideDirectionArrow=!0,l.removePadding=!0;var u=JSON.parse(this.props.messageDetails.content.data).templateType;u!==gt.QUICK_REPLY&&u!==gt.CAROUSEL||(l.childWillAddBackground=!0)}if(this.props.messageDetails.type===ft)this.props.messageDetails.Attachments&&this.props.messageDetails.Attachments.length>0?(e=this.props.messageDetails.Attachments[0],t=e.ContentType,e.Status===yt&&void 0===o&&(o={message:"Attachment was rejected."})):(e={AttachmentName:this.props.messageDetails.content.name},t=this.props.messageDetails.content.type);else if(e=this.props.messageDetails.content.data,!function(e){var t=!1;for(var n in ht.MESSAGE_CONTENT_TYPE)ht.MESSAGE_CONTENT_TYPE[n]===e&&(t=!0);return t}(t=this.props.messageDetails.content.type))return null;return a.a.createElement("div",{"data-testid":"main-message"},a.a.createElement(Dc,{"data-testid":"message-header"},this.renderHeader()),a.a.createElement(xc,{onChange:function(e){return n.setState({inView:e})}},(function(i){var o=i.ref;return a.a.createElement(Sc,Object.assign({"data-testid":"message-body",direction:r,messageStyle:s},l,{ref:n.props.isLatestMessage?o:null}),n.renderContent(e,t))})),a.a.createElement(Tc,null,this.renderMessageReceipts()),o&&this.renderTransportError(o))}},{key:"triggerCountMetric",value:function(e){this.csmService&&this.csmService.addCountMetric(e,st)}},{key:"renderContent",value:function(e,t){if(this.props.messageDetails.type===ft)return a.a.createElement(qc,{content:e,downloadAttachment:this.props.mediaOperations.downloadAttachment});if(t===ht.MESSAGE_CONTENT_TYPE.INTERACTIVE_MESSAGE){var n=JSON.parse(e),i=n.data,r=n.templateType;return this.props.isLatestMessage?(this.triggerCountMetric(r+rt),a.a.createElement(At.ErrorBoundary,{fallback:a.a.createElement(Rc,{InteractiveMessageType:r})},a.a.createElement(Qu,{content:i.content,templateType:r,addMessage:this.props.mediaOperations.addMessage,textInputRef:this.props.textInputRef}))):(this.triggerCountMetric(at),a.a.createElement(ha,{content:i.content.title}))}if(t===ht.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN)return this.triggerCountMetric(at),a.a.createElement(ha,{content:e});if(this.triggerCountMetric(ot),function(e){if(Tu()(e)){var t=JSON.parse(e);return["listTitle","selectionText","templateIdentifier"].every((function(e){return e in t&&"string"===typeof t[e]}))}return!1}(e)){var o=function(e){var t=JSON.parse(e),n=t.listTitle,i=t.selectionText,r=":"===n.slice(-1)?"":" -";return"".concat(n).concat(r," ").concat(i)}(e);return a.a.createElement(Nc,{content:o})}return a.a.createElement(Nc,{content:e})}},{key:"renderTransportError",value:function(e){return e&&e.message?a.a.createElement(Ic,null,a.a.createElement("span",null,e.message),e.retry&&this.renderRetryButton(e.retry)):null}},{key:"renderRetryButton",value:function(e){var t=function(t){t.preventDefault(),e()};return a.a.createElement(Ic.RetryButton,{href:"Retry",tabIndex:0,onClick:t,onKeyPress:t},"Retry")}}]),t}(r.PureComponent),Nc=function(e){function t(){return z(this,t),V(this,Y(t).apply(this,arguments))}return $(t,e),H(t,[{key:"render",value:function(){return a.a.createElement(St.a,{properties:{target:"_blank"}},this.props.content)}}]),t}(r.PureComponent),Bc=Object(Q.b)(Cc)(wc||(wc=q(["\n > ","{\n display: inline-block;\n float: ","\n"])),Sc,(function(e){return e.direction===bt.Outgoing?"right":"left"})),Lc=function(e){function t(){return z(this,t),V(this,Y(t).apply(this,arguments))}return $(t,e),H(t,[{key:"render",value:function(){return a.a.createElement(Bc,{direction:this.props.direction},a.a.createElement(Sc,{direction:this.props.direction},a.a.createElement(et,{color:this.props.direction===bt.Outgoing?"#fff":"#000"})))}}]),t}(r.PureComponent),qc=function(e){function t(){var e,n;z(this,t);for(var i=arguments.length,r=new Array(i),a=0;al.current.clientHeight&&l.current.scrollTop<=0&&!d&&(h(!0),i().then((function(){h(!1)})))},className:o},d&&a.a.createElement(Gc,null,a.a.createElement(Ze,{size:20,color:he.color.primary}),a.a.createElement(Ce,null,a.a.createElement("span",null,"Loading previous messages..."))),s)}Vc.defaultProps={loadPreviousTranscript:function(){return Promise.resolve()},lastSentMessageId:""};var Yc=Q.b.div(Hc||(Hc=q(["\n margin: 0 auto;\n"]))),Xc=Object(Q.b)(Vc)(Kc||(Kc=q(["\n background: ",";\n -webkit-text-size-adjust: none;\n text-size-adjust: none;\n flex: 12 1 auto;\n"])),(function(e){return e.theme.chatTranscriptor.background})),$c={participantMessageConfig:{render:function(e){var t=ut({},e);return a.a.createElement(jc,t)}},attachmentMessageConfig:{render:function(e){var t=ut({},e);return a.a.createElement(jc,t)}},systemMessageConfig:{render:function(e){var t=ut({},e);return a.a.createElement(zc,t)}}},Jc=function(e){function t(){var e,n;z(this,t);for(var i=arguments.length,r=new Array(i),o=0;o=0||(r[n]=e[n]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var f=void 0!==c.value,d=Object(r.useRef)(null),h=rf(d,t),p=Object(r.useRef)(0),g=Object(r.useRef)(),_=function(){var e=d.current,t=n&&g.current?g.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,i=(n=t,cf.reduce((function(e,t){return e[t]=n[t],e}),{})),r=i.boxSizing;return""===r?null:(ff&&"border-box"===r&&(i.width=parseFloat(i.width)+parseFloat(i.borderRightWidth)+parseFloat(i.borderLeftWidth)+parseFloat(i.paddingRight)+parseFloat(i.paddingLeft)+"px"),{sizingStyle:i,paddingSize:parseFloat(i.paddingBottom)+parseFloat(i.paddingTop),borderSize:parseFloat(i.borderBottomWidth)+parseFloat(i.borderTopWidth)})}(e);if(t){g.current=t;var r=function(e,t,n,i){void 0===n&&(n=1),void 0===i&&(i=1/0),sf||((sf=document.createElement("textarea")).setAttribute("tabindex","-1"),sf.setAttribute("aria-hidden","true"),of(sf)),null===sf.parentNode&&document.body.appendChild(sf);var r=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach((function(e){var t=e;sf.style[t]=o[t]})),of(sf),sf.value=t;var l=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(sf,e);sf.value="x";var u=sf.scrollHeight-r,c=u*n;"border-box"===s&&(c=c+r+a),l=Math.max(c,l);var f=u*i;return"border-box"===s&&(f=f+r+a),[l=Math.min(f,l),u]}(t,e.value||e.placeholder||"x",a,i),o=r[0],s=r[1];p.current!==o&&(p.current=o,e.style.setProperty("height",o+"px","important"),u(o,{rowHeight:s}))}};return Object(r.useLayoutEffect)(_),df(_),Object(r.createElement)("textarea",ef({},c,{onChange:function(e){f||_(),s(e)},ref:h}))},pf=Object(r.forwardRef)(hf),gf=he.palette.secondaryBlack,_f=he.palette.whisper,mf=Q.b.div(lf||(lf=q(["\n cursor: ",";\n\n &>svg {\n fill: ",";\n }\n"])),(function(e){return e.isActive?"pointer":"default"}),(function(e){return e.isActive?gf:_f}));var Ff,yf,bf,vf,kf,Ef,wf,xf,Cf,Df,Tf,Sf,Af,Of=function(e){var t=e.isActive,n=e.sendMessage;return a.a.createElement(mf,{isActive:t,onClick:n,"data-testid":"customer-chat-send-message-button","aria-label":"Send Message",tabIndex:0,onKeyDown:function(e){e.key!==it.SPACE&&e.key!==it.ENTER||n(e)}},a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})))},If=Q.b.div(Ff||(Ff=q(["\n margin: 0;\n padding: 0;\n"]))),Mf=Q.b.div(yf||(yf=q(["\n position: relative;\n display: flex;\n background: ",";\n border: 0.5px solid ",";\n border-left: 0;\n border-right: 0;\n"])),(function(e){return e.theme.palette.white}),(function(e){return e.theme.palette.lightGray})),Pf=Q.b.div(bf||(bf=q(["\n position: absolute;\n padding: ",";\n padding-right: ",";\n top: 0;\n right: 0;\n z-index: 2;\n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.base})),Rf=Q.b.div(vf||(vf=q(["\n cursor: pointer;\n height: auto;\n vertical-align: top;\n\n button {\n height: 100%;\n width: 100%;\n }\n\n label {\n align-items: center;\n display: flex;\n cursor: pointer;\n font-size: 0;\n height: 100%;\n padding-left: ",";\n padding-right: ",';\n margin-bottom: 0;\n }\n\n input {\n display: none;\n }\n\n & + [role="textbox"] {\n padding-left: 0;\n }\n'])),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini})),jf=Q.b.button(kf||(kf=q(["\n background-color: transparent;\n border: 1px solid transparent;\n position: relative;\n padding: 0;\n margin: 0;\n"]))),Nf=Q.b.div(Ef||(Ef=q(["\n display: flex;\n background-color: ",";\n border-radius: 5px;\n margin: 5px;\n padding: ",";\n min-width: 0;\n\n & > div {\n width: 100%;\n\n span {\n overflow-wrap: break-word;\n }\n\n button {\n align-items: center;\n display: inline-flex;\n cursor: pointer;\n margin-left: 5px;\n }\n }\n\n & + div {\n padding-left: 0;\n }\n"])),(function(e){return e.theme.chatTranscriptor.outgoingMsgBg}),(function(e){return e.theme.spacing.mini})),Bf=Object(Q.b)(pf)(wf||(wf=q(["\n flex: 1;\n outline: none;\n user-select: text;\n word-break: break-word;\n font-family: inherit;\n font-size: 1rem !important;\n padding: ",";\n padding-left: 0;\n padding-right: ",";\n margin-left: ",";\n max-height: 80px;\n line-height: 1.5rem;\n overflow: auto;\n min-height: 39px;\n z-index: 2;\n resize: none;\n letter-spacing: ",";\n font-size: ",";\n border: none;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus::placeholder {\n color: transparent;\n }\n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.xxlarge}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.globals.letterSpacing}),(function(e){return e.theme.fontsSize.regular||"1rem"}),(function(e){return e.theme.palette.mediumGray})),Lf=Q.b.div(xf||(xf=q(["\n display: flex;\n font-size: 0;\n\n svg {\n width: 24px;\n height: 24px;\n }\n"]))),qf=Q.b.div(Cf||(Cf=q(["\n display: flex;\n font-size: 0;\n svg {\n width: ",";\n height: ",";\n }\n"])),(function(e){return e.theme.fontsSize.mini}),(function(e){return e.theme.fontsSize.mini}));function zf(e){var t,n,i=e.addMessage,o=e.addAttachment,s=e.onTyping,l=e.contactId,u=e.contactStatus,c=e.onTypingValidityTime,f=e.textInputRef,d=e.composerConfig;window.connect&&window.connect.LogManager&&(t=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatComposer"}));var h=Ot(Object(r.useState)(""),2),p=h[0],g=h[1],_=Ot(Object(r.useState)(null),2),m=_[0],F=_[1],y=Object(r.useRef)(null);function b(e){return e.shiftKey||e.key!==it.ENTER?(function(e){return e.target.innerText===p}(e)||k(),g(e.target.value),e.key!==it.DELETE&&e.key!==it.BACKSPACE||!m||""!==p?void 0:(e.preventDefault(),void E())):(e.preventDefault(),v(),!1)}function v(){var e;k.cancel(),(e=p).trim()&&i(l,{text:e}),g(""),m&&(o(l,m),E())}Object(r.useEffect)((function(){t&&t.info("Component mounted.")}),[t]),Object(r.useLayoutEffect)((function(){f&&f.current&&f.current.focus&&f.current.focus()}),[m,f]);var k=Object(r.useMemo)((function(){return Zc()((function(){s().then((function(){}))}),c,{trailing:!1,leading:!0})}),[s,c,{trailing:!1,leading:!0}]);function E(){F(null),y.current.value=null,t&&t.info("File is removed.")}var w="Type a message",x=null==m?w:"",C=a.a.createElement(us,{allowedFileContentTypes:pt,attachmentsEnabled:d&&d.attachmentsEnabled,sendMessage:function(e){k.cancel(),e.trim()&&i(l,{text:e,type:ht.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN})},sendAttachment:function(e){o(l,e)},placeholder:x,onTyping:k}),D=a.a.createElement(Mf,null,d&&d.attachmentsEnabled&&a.a.createElement(Rf,{tabIndex:0,"data-testid":"customer-chat-attachment-icon",onKeyDown:function(e){e.key!==it.SPACE&&e.key!==it.ENTER||(e.preventDefault(),document.getElementById("customer-chat-file-select-".concat(l)).click())}},a.a.createElement(jf,{"aria-label":"Attach a file"},a.a.createElement("label",{htmlFor:"customer-chat-file-select-".concat(l)},a.a.createElement(Lf,null,a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}))),a.a.createElement("input",{ref:y,type:"file",id:"customer-chat-file-select-".concat(l),"data-testid":"customer-chat-file-select",accept:pt.join(","),onChange:function(e){var n=e.target.files[0];F(n),t&&t.info("File added.")},"aria-label":"Attach a file",tabIndex:-1})))),null!=m&&a.a.createElement(Nf,null,a.a.createElement("div",null,a.a.createElement("span",null,m.name),a.a.createElement(jf,{onClick:E,"aria-label":"Remove attachment"},a.a.createElement(qf,null,a.a.createElement("svg",{viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},a.a.createElement("path",{d:"M13 1.3L11.7 0 6.5 5.2 1.3 0 0 1.3l5.2 5.2L0 11.7 1.3 13l5.2-5.2 5.2 5.2 1.3-1.3-5.2-5.2z",fillRule:"evenodd"})))))),a.a.createElement(Bf,{"data-testid":"customer-chat-text-input",ref:f,value:p,onInput:b,onKeyPress:b,onKeyDown:b,onFocus:function(){if(!n&&function(){var e=window.navigator&&window.navigator.userAgent;return e&&-1!==e.search(/iPhone/i)}()){n=!0;var e=document.createElement("input"),t=document.querySelector('[data-testid="amazon-connect-chat-wrapper"] div');t&&(t.appendChild(e),e.focus()),setTimeout((function(){f&&f.current&&f.current.focus(),e.remove(),n=!1}),300)}},"aria-label":w,placeholder:x,tabIndex:"0",spellCheck:"true"}),a.a.createElement(Pf,null,a.a.createElement(Of,{isActive:!!p||m,sendMessage:v.bind(this)})));return a.a.createElement(If,null,u===nt.CONNECTED&&(d&&d.richMessagingEnabled?C:D))}zf.defaultProps={onTypingValidityTime:1e4};var Uf=Q.b.div(Df||(Df=q(["\n background: ",";\n height: ",";\n"])),(function(e){return e.theme.palette.dustyGray}),"85px"),Hf=Q.b.div(Tf||(Tf=q(["\n order: 3;\n @media (max-width: 640px) {\n position: absolute;\n left: 0;\n bottom: 0;\n right: 0;\n }\n"]))),Kf=Q.b.div(Sf||(Sf=q(["\n display: flex;\n justify-content: center;\n flex-direction: row;\n height: 100%;\n align-items: center;\n > button {\n min-width: 85px;\n margin: ",";\n font-weight: bold;\n }\n"])),(function(e){return e.theme.spacing.mini})),Wf=Object(Q.b)(Me)(Af||(Af=q(["\n margin: ",";\n width: ",";\n \n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.col?100/e.col-7+"%":""}));function Gf(e){return{__html:e}}var Vf,Yf,Xf,$f,Jf,Qf=function(e){function t(){var e;return z(this,t),e=V(this,Y(t).call(this)),window.connect&&window.connect.LogManager&&(e.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatActionBar"})),e}return $(t,e),H(t,[{key:"componentDidMount",value:function(){this.logger&&this.logger.info("Component mounted.")}},{key:"render",value:function(){var e=this.props,t=e.contactStatus,n=e.onEndChat,i=e.onClose,a=e.footerConfig;if(a.render){var o=a.render(this.props);return a.isHTML?r.createElement(Hf,{dangerouslySetInnerHTML:Gf(o)}):r.createElement(Hf,null,o)}return r.createElement(Hf,null,r.createElement(Uf,null,r.createElement(Kf,null,(t===nt.CONNECTED||t===nt.CONNECTING)&&r.createElement(r.Fragment,null,r.createElement(Wf,{col:"2",type:"default",onClick:n},r.createElement("span",null,"End chat"))),t===nt.ENDED&&r.createElement(r.Fragment,null,r.createElement(Wf,{col:"2",type:"default",onClick:i},r.createElement("span",null,"Close"))))))}}]),t}(r.Component);J(Qf,"defaultProps",{onEndChat:function(){},onClose:function(){},footerConfig:{}});var Zf=Q.b.div(Vf||(Vf=q(["\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n @media (max-width:640px) {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n }\n"]))),ed=Q.b.div(Yf||(Yf=q(["\n margin: 0;\n padding: 0;\n order: 1;\n @media (max-width: 640px) {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n }\n"]))),td=Q.b.div(Xf||(Xf=q(["\n order: 2;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n height: 340px;\n @media (max-width:640px) {\n position: absolute;\n left: 0;\n bottom: 85px;\n right: 0;\n top: ","px;\n min-height: auto;\n }\n"])),(function(e){return e.parentHeaderWrapperHeight})),nd=Q.b.div($f||($f=q(["\n background: #3F5773;\n text-align: center;\n padding: 16px;\n color: #fff;\n border-radius: 3px;\n flex-shrink: 0;\n"]))),id=Object(Q.b)(Ce)(Jf||(Jf=q(["\n padding-bottom: 10px;\n"]))),rd={isHTML:!1,render:function(){return a.a.createElement(nd,null,a.a.createElement(id,{type:"h2"},"Hi there! "),a.a.createElement(Ce,{type:"p"},"This is an example of how customers experience chat on your website"))}};function ad(e){var t=e.headerConfig,n=Object.assign({},rd,t);return n.isHTML?Dt()(n.render()):n.render()}ad.defaultProps={headerConfig:{}};var od=a.a.createRef(),sd=function(e){function t(e){var n;return z(this,t),(n=V(this,Y(t).call(this,e))).state={transcript:[],typingParticipants:[],contactStatus:nt.DISCONNECTED,parentHeaderWrapperHeight:115},n.parentHeaderRef=a.a.createRef(),n.updateTranscript=function(e){return n.setState({transcript:tt(e)})},n.updateTypingParticipants=function(e){return n.setState({typingParticipants:e})},n.updateContactStatus=function(e){return n.setState({contactStatus:e})},window.connect&&window.connect.LogManager&&(n.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-Chat"})),n}return $(t,e),H(t,[{key:"resetChatHeight",value:function(){this.setState({parentHeaderWrapperHeight:this.parentHeaderRef&&this.parentHeaderRef.current?this.parentHeaderRef.current.clientHeight:115})}},{key:"componentDidMount",value:function(){this.init(this.props.chatSession),this.resetChatHeight(),this.logger&&this.logger.info("Component mounted.")}},{key:"componentDidUpdate",value:function(e){e.chatSession!==this.props.chatSession&&(this.cleanUp(e.chatSession),this.init(this.props.chatSession))}},{key:"componentWillUnmount",value:function(){this.cleanUp(this.props.chatSession)}},{key:"init",value:function(e){this.setState({contactStatus:e.contactStatus}),e.on("transcript-changed",this.updateTranscript),e.on("typing-participants-changed",this.updateTypingParticipants),e.on("contact-status-changed",this.updateContactStatus)}},{key:"cleanUp",value:function(e){e.off("transcript-changed",this.updateTranscript),e.off("typing-participants-changed",this.updateTypingParticipants),e.off("contact-status-changed",this.updateContactStatus)}},{key:"endChat",value:function(){this.props.chatSession.endChat(),this.props.onEnded()}},{key:"closeChat",value:function(){this.props.chatSession.closeChat(),this.props.onEnded()}},{key:"render",value:function(){var e=this,t=this.props,n=t.chatSession,i=t.headerConfig,r=t.transcriptConfig,o=t.composerConfig,s=t.footerConfig;return this.state.transcript,a.a.createElement(Zf,{"data-testid":"amazon-connect-chat-wrapper"},(this.state.contactStatus===nt.CONNECTED||this.state.contactStatus===nt.CONNECTING||this.state.contactStatus===nt.ENDED)&&a.a.createElement(ed,{ref:this.parentHeaderRef},a.a.createElement(ad,{headerConfig:i})),a.a.createElement(td,{parentHeaderWrapperHeight:this.state.parentHeaderWrapperHeight},a.a.createElement(Jc,{loadPreviousTranscript:function(){return n.loadPreviousTranscript()},addMessage:function(e){return n.addOutgoingMessage(e)},downloadAttachment:function(e){return n.downloadAttachment(e)},transcript:this.state.transcript,typingParticipants:this.state.typingParticipants,contactStatus:this.state.contactStatus,contactId:n.contactId,transcriptConfig:r,textInputRef:od,sendReadReceipt:function(){return n.sendReadReceipt.apply(n,arguments)}}),a.a.createElement(zf,{contactStatus:this.state.contactStatus,contactId:n.contactId,addMessage:function(e,t){return n.addOutgoingMessage(t)},addAttachment:function(e,t){return n.addOutgoingAttachment(t)},onTyping:function(){return n.sendTypingEvent()},composerConfig:o,textInputRef:od})),a.a.createElement(Qf,{onEndChat:function(){return e.endChat()},onClose:function(){return e.closeChat()},contactStatus:this.state.contactStatus,footerConfig:s}))}}]),t}(r.Component);J(sd,"defaultProps",{onEnded:function(){}});n(1029);function ld(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return ud(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ud(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function ud(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),r=1;r=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;w(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var gd=Object.values(ht.EVENT_CONTENT_TYPE),_d="Amazon-Connect-ChatInterface-ChatSession",md=function(){function e(t,n,i){z(this,e),J(this,"session",null),this.session=connect.ChatSession.create({chatDetails:t.startChatResult,type:"CUSTOMER",options:{region:n}})}return H(e,[{key:"connect",value:function(){return this.session.connect()}},{key:"disconnect",value:function(){return this.session.disconnectParticipant()}},{key:"onParticipantReturned",value:function(e){return this.session.onParticipantReturned(e)}},{key:"onAutoDisconnection",value:function(e){return this.session.onAutoDisconnection(e)}},{key:"onParticipantIdle",value:function(e){return this.session.onParticipantIdle(e)}},{key:"onTyping",value:function(e){return this.session.onTyping(e)}},{key:"onReadReceipt",value:function(e){return this.session.onReadReceipt(e)}},{key:"onDeliveredReceipt",value:function(e){return this.session.onDeliveredReceipt(e)}},{key:"onEnded",value:function(e){return this.session.onEnded(e)}},{key:"onMessage",value:function(e){return this.session.onMessage(e)}},{key:"onConnectionEstablished",value:function(e){return this.session.onConnectionEstablished(e)}},{key:"onConnectionBroken",value:function(e){return this.session.onConnectionBroken(e)}},{key:"getContactId",value:function(){return this.session.controller.contactId}},{key:"getParticipantId",value:function(){return this.session.getChatDetails().participantId}},{key:"getTranscript",value:function(e){return this.session.getTranscript(e)}},{key:"sendTypingEvent",value:function(){return this.session.sendEvent({contentType:ht.EVENT_CONTENT_TYPE.TYPING})}},{key:"sendReadReceipt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.session.sendEvent({contentType:ht.EVENT_CONTENT_TYPE.READ_RECEIPT,content:JSON.stringify(lt({messageId:e},t))})}},{key:"sendDeliveredReceipt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.session.sendEvent({contentType:ht.EVENT_CONTENT_TYPE.DELIVERED_RECEIPT,content:JSON.stringify(lt({messageId:e},t))})}},{key:"sendMessage",value:function(e){return this.session.sendMessage({message:e.data,contentType:e.type})}},{key:"sendAttachment",value:function(e){return this.session.sendAttachment({attachment:e})}},{key:"downloadAttachment",value:function(e){return this.session.downloadAttachment({attachmentId:e})}}]),e}(),Fd=function(){function e(t,n,i,r){z(this,e),J(this,"transcript",[]),J(this,"typingParticipants",[]),J(this,"thisParticipant",null),J(this,"client",null),J(this,"contactId",null),J(this,"contactStatus",nt.DISCONNECTED),J(this,"nextToken",null),J(this,"isOutgoingMessageInFlight",!1),J(this,"_eventHandlers",{"transcript-changed":[],"typing-participants-changed":[],"contact-status-changed":[],"incoming-message":[],"outgoing-message":[],"chat-disconnected":[],"chat-closed":[]}),this.client=new md(t,i,r),this.contactId=this.client.getContactId(),this.thisParticipant={participantId:this.client.getParticipantId(),displayName:n},window.connect&&(window.connect.LogManager&&(this.logger=window.connect.LogManager.getLogger({prefix:_d})),window.connect.csmService&&(this.csmService=window.connect.csmService)),window.connect&&window.connect.LogManager&&(this.logger=window.connect.LogManager.getLogger({prefix:_d}))}return H(e,[{key:"onChatDisconnected",value:function(e){this.on("chat-disconnected",(function(){e.apply(void 0,arguments)}))}},{key:"onChatClose",value:function(e){this.on("chat-closed",(function(){e.apply(void 0,arguments)}))}},{key:"onIncoming",value:function(e){this.on("incoming-message",(function(){e.apply(void 0,arguments)}))}},{key:"onOutgoing",value:function(e){this.on("outgoing-message",(function(){e.apply(void 0,arguments)}))}},{key:"incomingItemDecorator",value:function(e){return e}},{key:"outgoingItemDecorator",value:function(e){return e}},{key:"openChatSession",value:function(){var e=this;return this._addEventListeners(),this._updateContactStatus(nt.CONNECTING),this.client.connect().then((function(t){return e._updateContactStatus(nt.CONNECTED),t}),(function(t){return e._updateContactStatus(nt.DISCONNECTED),Promise.reject(t)}))}},{key:"endChat",value:function(){var e=_e(pd().mark((function e(){return pd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.disconnect();case 2:this._updateContactStatus(nt.DISCONNECTED),this._triggerEvent("chat-disconnected"),this._triggerEvent("chat-closed");case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"closeChat",value:function(){this._triggerEvent("chat-closed")}},{key:"sendTypingEvent",value:function(){return this.logger&&this.logger.info("Calling SendEvent API for Typing"),this.client.sendTypingEvent()}},{key:"sendReadReceipt",value:function(e,t){return this.logger&&this.logger.info("Calling SendEvent API for ReadReceipt",e,t),this.client.sendReadReceipt(e,t)}},{key:"sendDeliveredReceipt",value:function(e,t){return this.logger&&this.logger.info("Calling SendEvent API for DeliveredReceipt",e,t),this.client.sendDeliveredReceipt(e,t)}},{key:"addOutgoingMessage",value:function(e){var t=this,n=xt.createOutgoingTranscriptItem(ct,{data:e.text,type:e.type||ht.MESSAGE_CONTENT_TYPE.TEXT_PLAIN},this.thisParticipant);this.logger&&this.logger.info("Adding outgoing message. ContactId: ".concat(this.contactId)),this._shouldAddToTranscript(n)&&this._addItemsToTranscript([n]),this.isOutgoingMessageInFlight=!0,this.client.sendMessage(n.content).then((function(e){return t._shouldAddToTranscript(n)&&t._replaceItemInTranscript(n,xt.createTranscriptItemFromSuccessResponse(n,e)),t.isOutgoingMessageInFlight=!1,e})).catch((function(e){t.isOutgoingMessageInFlight=!1,t._failMessage(n)}))}},{key:"addOutgoingAttachment",value:function(e){var t=xt.createOutgoingTranscriptItem(ft,e,this.thisParticipant);return this._addItemsToTranscript([t]),this.logger&&this.logger.info("Sending File. ContactId: ".concat(this.contactId,".")),this.sendAttachment(t)}},{key:"sendAttachment",value:function(e){var t=this,n=this.thisParticipant,i=n.participantId,r=n.displayName;return this.client.sendAttachment(e.content).then((function(n){return t.transcript.splice(t.transcript.indexOf(e),1),n})).catch((function(n){e.transportDetails.error={type:n.type,message:n.message},n.type!==vt&&(n.type===kt?e.transportDetails.error.message="Attachment failed to send. The maximum number of attachments allowed, has been reached":(e.transportDetails.error.message="Attachment failed to send",e.transportDetails.error.retry=function(){var n=xt.createOutgoingTranscriptItem(ft,e.content,{displayName:r,participantId:i});n.id=e.id,t._replaceItemInTranscript(e,n),t.sendAttachment(n)})),t._failMessage(e)}))}},{key:"downloadAttachment",value:function(e){return this.client.downloadAttachment(e)}},{key:"loadPreviousTranscript",value:function(){var e={scanDirection:"BACKWARD",sortOrder:"ASCENDING",maxResults:15};return this._loadTranscript(e)}},{key:"on",value:function(e,t){this.logger&&this.logger.info("Event [".concat(e,"] is on!")),-1===this._eventHandlers[e].indexOf(t)&&this._eventHandlers[e].push(t)}},{key:"off",value:function(e,t){this.logger&&this.logger.info("Event [".concat(e,"] is off!"));var n=this._eventHandlers[e].indexOf(t);n>-1&&this._eventHandlers[e].splice(n,1)}},{key:"_triggerEvent",value:function(e,t){this.logger&&this.logger.info("Event [".concat(e,"] is triggered!")),this._eventHandlers[e].forEach((function(e){e(t)}))}},{key:"_updateTranscript",value:function(e){this.transcript=e,this._triggerEvent("transcript-changed",e)}},{key:"_updateTypingParticipants",value:function(e){this.typingParticipants=e,this._triggerEvent("typing-participants-changed",e)}},{key:"_updateContactStatus",value:function(e){this.contactStatus=e,this._triggerEvent("contact-status-changed",e)}},{key:"_addEventListeners",value:function(){var e=this;this.client.onMessage((function(t){e._handleIncomingData(t)})),this.client.onTyping((function(t){e._handleTypingEvent(t)})),this.client.onAutoDisconnection((function(t){e._handleIdleEvent(t)})),this.client.onParticipantReturned((function(t){e._handleIdleEvent(t)})),this.client.onParticipantIdle((function(t){e._handleIdleEvent(t)})),this.client.onReadReceipt((function(t){e._handleMessageReceipt("read",t)})),this.client.onDeliveredReceipt((function(t){e._handleMessageReceipt("delivered",t)})),this.client.onEnded((function(t){e._handleEndedEvent(t)})),this.client.onConnectionEstablished((function(){e._loadLatestTranscript()}))}},{key:"_handleIdleEvent",value:function(e){var t=e.data,n=xt.createItemFromIncoming(t);n&&this._shouldAddToTranscript(n)&&this._addItemsToTranscript([n])}},{key:"_loadLatestTranscript",value:function(){return this._loadTranscript({scanDirection:"BACKWARD",sortOrder:"ASCENDING",maxResults:15})}},{key:"_loadTranscript",value:function(e){var t=this;return this.nextToken&&(e.nextToken=this.nextToken),this.client.getTranscript(e).then((function(e){var n=e.data.Transcript;t.nextToken=e.data.NextToken;var i=n.map((function(e){return xt.createItemFromIncoming(e,t.thisParticipant)}));t._addItemsToTranscript(i)})).catch((function(e){}))}},{key:"_handleIncomingData",value:function(e){var t=e.data,n=xt.createItemFromIncoming(t,this.thisParticipant);if(n){this._isRoundtripMessage(t)||this._updateTypingParticipantsUsingIncoming(n);var i=n.transportDetails,r=n.type,a=n.participantRole;i.direction===bt.Incoming?(this._triggerEvent("incoming-message",t),xt.isTypeMessageOrAttachment(r)&&xt.isParticipantAgentOrCustomer(a)&&this.sendDeliveredReceipt(n.id,r===ft?{disableThrottle:!0}:{})):this._triggerEvent("outgoing-message",t),!0===this.isOutgoingMessageInFlight&&n.participantRole===dt.CUSTOMER||this._shouldAddToTranscript(n)&&this._addItemsToTranscript([n])}}},{key:"_handleMessageReceipt",value:function(e,t){var n=t.data,i=n.MessageMetadata.MessageId,r=this._findItemInTranscriptUsingMessageId(i);if(-1!==r){var a=r.transportDetails.sentTime;this._handleMessageReceiptLatencyMetric(e,t,a);var o=xt.createIncomingTranscriptReceiptItem(this.thisParticipant,r,n,e);this._replaceItemInTranscript(r,o,e)}else this.logger&&this.logger.debug("Message with messageId:".concat(i," not found in transcript"))}},{key:"_handleMessageReceiptLatencyMetric",value:function(e,t,n){var i=t.chatDetails.participantId,r=t.data.MessageMetadata.Receipts;if(r.length>0){var a=this._findReceipt(r,i);if(a){var o=a.DeliveredTimestamp,s=a.ReadTimestamp,l="read"===e?jt(s)-1e3*n:jt(o)-1e3*n;this.logger&&this.logger.info(e,l)}}}},{key:"_findReceipt",value:function(e,t){return e.find((function(e){return e.RecipientParticipantId!==t}))}},{key:"_failMessage",value:function(e){var t=this.transcript.length>0?this.transcript[this.transcript.length-1].transportDetails.sentTime+.001:0;this._replaceItemInTranscript(e,xt.createFailedItem(e,t))}},{key:"_isRoundTripSystemEvent",value:function(e){return-1!==gd.indexOf(e.contentType)&&this.thisParticipant.participantId===e.participantId}},{key:"_addItemsToTranscript",value:function(e){var t=this,n=this;if(0!==e.length){var i=(e=e.filter((function(e){return!t._isRoundTripSystemEvent(e)}))).reduce((function(e,t){return lt({},e,J({},t.id,t))}),{}),r=this.transcript.filter((function(e){return void 0===i[e.id]}));n._removePreviousInteractiveMessage(r,e),r.push.apply(r,tt(e)),r.sort((function(e,t){var n=e.transportDetails.status===mt.Sending,i=t.transportDetails.status===mt.Sending;return n&&!i||!n&&i?n?1:-1:e.transportDetails.sentTime-t.transportDetails.sentTime})),r.forEach((function(e){(e=e.transportDetails.direction===bt.Incoming?n.incomingItemDecorator(e):n.outgoingItemDecorator(e)).lastReadReceipt=!1,e.lastDeliveredReceipt=!1}));var a=this._findLastMessageReceiptInTranscript("read",r),o=this._findLastMessageReceiptInTranscript("delivered",r),s=this._findLastMessageInTranscript(bt.Incoming,r),l=this._findLastMessageInTranscript(bt.Outgoing,r);if(-1!==s&&l>s){var u=r[s],c=u.type,f=u.id;this.sendReadReceipt(f,c===ft?{disableThrottle:!0}:{})}-1!==a&&(r[a].lastReadReceipt=!0),-1!==o&&a-1&&this.transcript.splice(n,1),this._addItemsToTranscript([t])}},{key:"_findItemInTranscriptUsingMessageId",value:function(e){var t=this.transcript.findIndex((function(t){return t.id===e}));return-1!==t?this.transcript[t]:-1}},{key:"_findLastMessageReceiptInTranscript",value:function(e,t){for(var n=-1,i=t.length-1;i>=0;i--){var r=t[i].transportDetails;if(r&&r.direction===bt.Outgoing&&r.messageReceiptType===e){n=i;break}}return n}},{key:"_findLastMessageInTranscript",value:function(e,t){for(var n=-1,i=t.length-1;i>=0;i--){var r=t[i].transportDetails;if(r&&r.direction===e){n=i;break}}return n}},{key:"_isRoundtripMessage",value:function(e){return this.thisParticipant.participantId===e.ParticipantId}},{key:"_handleEndedEvent",value:function(){this._updateContactStatus(nt.ENDED),this._triggerEvent("chat-disconnected"),hd.trigger("agentEndChat",{})}},{key:"_handleTypingEvent",value:function(e){var t=this,n=e.data;if(!this._isRoundtripMessage(n)){var i=xt.createTypingParticipant(n,this.thisParticipant.participantId);i.callback=setTimeout((function(){t._removeTypingParticipant(i.participantId)}),12e3);for(var r=[],a=0;a-1};function wd(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function xd(e){return"string"!==typeof e&&(e=String(e)),e}function Cd(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return vd.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Dd(e){this.map={},e instanceof Dd?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Td(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Sd(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Ad(e){var t=new FileReader,n=Sd(t);return t.readAsArrayBuffer(e),n}function Od(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Id(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:vd.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:vd.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:vd.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():vd.arrayBuffer&&vd.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Od(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):vd.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||Ed(e))?this._bodyArrayBuffer=Od(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):vd.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},vd.blob&&(this.blob=function(){var e=Td(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Td(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Ad)}),this.text=function(){var e=Td(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=Sd(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Rd(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function jd(e){var t=new Dd;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}})),t}function Nd(e,t){if(!(this instanceof Nd))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new Dd(t.headers),this.url=t.url||"",this._initBody(e)}Pd.prototype.clone=function(){return new Pd(this,{body:this._bodyInit})},Id.call(Pd.prototype),Id.call(Nd.prototype),Nd.prototype.clone=function(){return new Nd(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Dd(this.headers),url:this.url})},Nd.error=function(){var e=new Nd(null,{status:0,statusText:""});return e.type="error",e};var Bd=[301,302,303,307,308];Nd.redirect=function(e,t){if(-1===Bd.indexOf(t))throw new RangeError("Invalid status code");return new Nd(null,{status:t,headers:{location:e}})};var Ld=bd.DOMException;try{new Ld}catch(lh){(Ld=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Ld.prototype.constructor=Ld}function qd(e,t){return new Promise((function(n,i){var r=new Pd(e,t);if(r.signal&&r.signal.aborted)return i(new Ld("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:jd(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var t="response"in a?a.response:a.responseText;setTimeout((function(){n(new Nd(t,e))}),0)},a.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){i(new Ld("Aborted","AbortError"))}),0)},a.open(r.method,function(e){try{return""===e&&bd.location.href?bd.location.href:e}catch(t){return e}}(r.url),!0),"include"===r.credentials?a.withCredentials=!0:"omit"===r.credentials&&(a.withCredentials=!1),"responseType"in a&&(vd.blob?a.responseType="blob":vd.arrayBuffer&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!==typeof t.headers||t.headers instanceof Dd?r.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,xd(t.headers[e]))})),r.signal&&(r.signal.addEventListener("abort",o),a.onreadystatechange=function(){4===a.readyState&&r.signal.removeEventListener("abort",o)}),a.send("undefined"===typeof r._bodyInit?null:r._bodyInit)}))}function zd(e){return new Promise((function(t){return e.json().then((function(n){return t({status:e.status,ok:e.ok,json:n})}))}))}qd.polyfill=!0,bd.fetch||(bd.fetch=qd,bd.Headers=Dd,bd.Request=Pd,bd.Response=Nd);function Ud(e){var t={InstanceId:e.instanceId,ContactFlowId:e.contactFlowId,ParticipantDetails:{DisplayName:e.name},Username:e.username};e.persistentChat&&e.persistentChat.sourceContactId&&e.persistentChat.rehydrationType&&(t.PersistentChat={SourceContactId:e.persistentChat.sourceContactId,RehydrationType:e.persistentChat.rehydrationType});var n=function(e,t){try{return JSON.parse(e)}catch(n){return t}}(e.contactAttributes,null);n&&(t.Attributes=n),e.initialMessage&&(t.InitialMessage={ContentType:"text/plain",Content:e.initialMessage}),e.supportedMessagingContentTypes&&(t.SupportedMessagingContentTypes=e.supportedMessagingContentTypes.split(",")),e.chatDurationInMinutes&&(t.ChatDurationInMinutes=Number(e.chatDurationInMinutes));var i,r,a=new Headers;return e.headers&&(a=e.headers),(i=e.apiGatewayEndpoint,r={headers:a,method:"post",body:JSON.stringify(t)},new Promise((function(e,t){window.fetch(i,r).then(zd).then((function(n){return n.ok?e(n):t(n)})).catch((function(e){return t({networkError:e.message})}))}))).then((function(e){return e.json.data}))}var Hd=function(){function e(){z(this,e),J(this,"clientConfig",{contactFlowId:"",instanceId:"",region:"",stage:"prod",contactAttributes:{},featurePermissions:{}})}return H(e,[{key:"initiateChat",value:function(e,t,n){var i=Object.assign({},this.clientConfig,e);hd.trigger("initChat",i,t,n)}}]),e}();window.connect=window.connect||{},window.connect.ChatInterface=window.connect.ChatInterface||new Hd,window.addEventListener("message",(function(e){e.initChat&&window.connect.ChatInterface.initiateChat(e)}));var Kd,Wd,Gd,Vd,Yd=function(){function e(){z(this,e),J(this,"_eventHandlers",{"chat-disconnected":[],"chat-loading":[],"chat-start-new":[],"push-notification-eligible-message-received":[],"agent-end-chat":[],"voice-escalation":[]}),hd.on("endChat",this.endChat.bind(this)),hd.on("loadChat",this.loadChat.bind(this)),hd.on("startNewChat",this.startNewChat.bind(this)),hd.on("pushNotificationEligibleMessageReceived",this.approvePushNotificationEligibleMessageReceived.bind(this)),hd.on("agentEndChat",this.agentEndChat.bind(this)),hd.on("escalateToVoice",this.escalateToVoice.bind(this))}return H(e,[{key:"onVoiceEscalation",value:function(e){this.on("voice-escalation",(function(){e.apply(void 0,arguments)}))}},{key:"onChatEnded",value:function(e){this.on("chat-disconnected",(function(){e.apply(void 0,arguments)}))}},{key:"onStartNewChat",value:function(e){this.on("chat-start-new",(function(){e.apply(void 0,arguments)}))}},{key:"onChatLoading",value:function(e){this.on("chat-loading",(function(){e.apply(void 0,arguments)}))}},{key:"onPushNotificationEligibleMessageReceived",value:function(e){this.on("push-notification-eligible-message-received",(function(){e.apply(void 0,arguments)}))}},{key:"onAgentEndChat",value:function(e){this.on("agent-end-chat",(function(){e.apply(void 0,arguments)}))}},{key:"on",value:function(e,t){-1===this._eventHandlers[e].indexOf(t)&&this._eventHandlers[e].push(t)}},{key:"_triggerEvent",value:function(e,t){this._eventHandlers[e].forEach((function(e){e(t)}))}},{key:"escalateToVoice",value:function(e){this._triggerEvent("voice-escalation",e)}},{key:"endChat",value:function(){this._triggerEvent("chat-disconnected")}},{key:"loadChat",value:function(){this._triggerEvent("chat-loading")}},{key:"startNewChat",value:function(){this._triggerEvent("chat-start-new")}},{key:"approvePushNotificationEligibleMessageReceived",value:function(){this._triggerEvent("push-notification-eligible-message-received")}},{key:"agentEndChat",value:function(){this._triggerEvent("agent-end-chat")}}]),e}();function Xd(){Xd=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(lh){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),s=new x(r||[]);return i(o,"_invoke",{value:v(e,n,s)}),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(lh){return{type:"throw",arg:lh}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var g={};l(g,a,(function(){return this}));var _=Object.getPrototypeOf,m=_&&_(_(C([])));m&&m!==t&&n.call(m,a)&&(g=m);var F=p.prototype=d.prototype=Object.create(g);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,a,o,s){var l=c(e[i],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(f).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function v(e,t,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return{value:void 0,done:!0}}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e||""===e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;w(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}window.connect=window.connect||{},window.connect.ChatEvents=window.connect.ChatEvents||new Yd;var $d,Jd=Q.b.div(Kd||(Kd=q(["\n display: flex;\n justify-content: center;\n margin-top: 10px;\n > button {\n min-width: 85px;\n }\n"]))),Qd=Q.b.div(Wd||(Wd=q(["\n padding: 10;\n background-color: red;\n"]))),Zd=Object(Q.b)(We)(Gd||(Gd=q(["\n padding: ",";\n height: 100%;\n"])),(function(e){return e.theme.globals.basePadding})),eh=Q.b.div(Vd||(Vd=q(["\n padding: ",";\n height: 100%;\n"])),(function(e){return e.theme.globals.basePadding})),th=function(e){function t(e){var n;return z(this,t),J(G(n=V(this,Y(t).call(this,e))),"resetState",(function(){n.setState({status:"NotInitiated",chatSession:null}),n.logger&&n.logger.info("Chat session is reset")})),n.state={chatSession:null,composerConfig:{},status:"NotInitiated"},n.submitChatInitiationHandler=n.initiateChatSession.bind(G(n)),hd.on("initChat",n.initiateChatSession.bind(G(n))),window.connect&&window.connect.LogManager&&(n.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatContainer"})),n}return $(t,e),H(t,[{key:"componentWillUnmount",value:function(){hd.off(this.submitChatInitiationHandler)}},{key:"initiateChatSession",value:function(e,t,n){var i={contactFlowId:e.contactFlowId?e.contactFlowId:null,instanceId:e.instanceId?e.instanceId:null,region:e.region?e.region:null,stage:e.stage?e.stage:null,featurePermissions:e.featurePermissions?e.featurePermissions:null,apiGatewayEndpoint:e.apiGatewayEndpoint?e.apiGatewayEndpoint:null};this.logger&&this.logger.info("Chat session meta data:",i),this.submitChatInitiation(e,t,n)}},{key:"submitChatInitiation",value:function(){var e=_e(Xd().mark((function e(t,n,i){var r,a,o,s;return Xd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({status:"Initiating"}),e.prev=1,e.next=4,Ud(t);case 4:return r=e.sent,e.next=7,this.openChatSession(r,t.name,t.region,t.stage);case 7:a=e.sent,o=t.featurePermissions&&t.featurePermissions[Mt]||r.featurePermissions&&r.featurePermissions[Mt],s="string"===typeof t.supportedMessagingContentTypes&&t.supportedMessagingContentTypes.split(",").includes(ht.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN),this.setState({status:"Initiated",chatSession:a,composerConfig:{attachmentsEnabled:o,richMessagingEnabled:s}}),n&&n(a),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(1),this.setState({status:"InitiateFailed"}),i&&i(e.t0);case 18:case"end":return e.stop()}}),e,this,[[1,14]])})));return function(t,n,i){return e.apply(this,arguments)}}()},{key:"openChatSession",value:function(e,t,n,i){var r=new yd(e,t,n,i);return r.onChatClose((function(){hd.trigger("endChat",{})})),r.openChatSession().then((function(){return r}))}},{key:"render",value:function(){return"NotInitiated"===this.state.status||"Initiating"===this.state.status?a.a.createElement(Zd,{center:!0},a.a.createElement(Ze,{color:he.color.primary,size:30})):"InitiateFailed"===this.state.status?a.a.createElement(eh,null,a.a.createElement(Qd,null,"Initialization failed"),a.a.createElement(Jd,null,a.a.createElement(Me,{col:"2",type:"tertiary",onClick:this.resetState},a.a.createElement("span",null,"Go Back")))):a.a.createElement(sd,Object.assign({chatSession:this.state.chatSession,composerConfig:this.state.composerConfig,onEnded:this.resetState},this.props))}}]),t}(r.Component),nh=th,ih=Q.b.div($d||($d=q(["\n\n width: 300px;\n font-family: ",";\n\n margin: ",";\n border-collapse: collapse;\n box-shadow: 0px 2px 3px ",";\n\n box-sizing: border-box;\n\n *, *:before, *:after {\n box-sizing: inherit;\n }\n"])),(function(e){return e.theme.fonts.regular}),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.palette.alto})),rh=function(e){return a.a.createElement(pe,{theme:Object.assign({},he,e.themeConfig)},e.children)};function ah(e){var t=e.baseCssClass,n=i(e,["baseCssClass"]);return a.a.createElement(rh,{themeConfig:n.themeConfig||{}},a.a.createElement(ih,{className:t},a.a.createElement(nh,n)))}ah.defaultProps={baseCssClass:"connect-customer-interface"};var oh=ah,sh={loggerConfig:{level:connect.LogLevel.DEBUG,useDefaultLogger:!0}};!function(e){e.LogManager&&e.LogManager.updateLoggerConfig(sh),e.ChatInterface=e.ChatInterface||{},e.ChatInterface.init=function(t){var n=t.containerId,r=i(t,["containerId"]);r.widgetType&&(sh.csmConfig={widgetType:r.widgetType}),sh.features={messageReceipts:{shouldSendMessageReceipts:!0,throttleTime:5e3}},e.ChatSession.setGlobalConfig(sh),s.a.render(a.a.createElement(L,null,a.a.createElement(oh,r)),document.getElementById(n)||document.getElementById("root"))},e.ChatInterface.getCurrentTheme=function(){return he},window.connect=e}(window.connect||{})}]); \ No newline at end of file +!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/amazon-connect/amazon-connect-chat-interface/",n(n.s=421)}([function(e,t,n){"use strict";e.exports=n(743)},function(e,t,n){var i=n(5),r=n(35).f,a=n(49),o=n(28),s=n(197),l=n(200),u=n(128);e.exports=function(e,t){var n,c,f,d,h,p=e.target,g=e.global,_=e.stat;if(n=g?i:_?i[p]||s(p,{}):(i[p]||{}).prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(h=r(n,c))&&h.value:n[c],!u(g?c:p+(_?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&a(d,"sham",!0),o(n,c,d,e)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Xe}));var i=n(260),r=n.n(i),a=n(411),o=n.n(a),s=n(0),l=n.n(s),u=n(412),c=n(261),f=n(262),d=n(419),h=n(420),p=function(e,t){for(var n=[e[0]],i=0,r=t.length;i1?i-1:0),a=1;a0?" Additional arguments: "+r.join(", "):"")));return b(o)}return y(t,e),t}(Error),M=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,P=function(e){var t=""+(e||""),n=[];return t.replace(M,(function(e,t,i){return n.push({componentId:t,matchIndex:i}),e})),n.map((function(e,i){var r=e.componentId,a=e.matchIndex,o=n[i+1];return{componentId:r,cssFromDOM:o?t.slice(a,o.matchIndex):t.slice(a)}}))},R=/^\s*\/\/.*$/gm,j=new r.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),N=new r.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),B=[],L=function(e){if(-2===e){var t=B;return B=[],t}},q=o()((function(e){B.push(e)})),z=void 0,U=void 0,H=void 0,K=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(U)&&n.slice(t-U.length,t)!==U?"."+z:e};N.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(U)>0&&(n[0]=n[0].replace(H,K))},q,L]),j.use([q,L]);var W=function(e){return j("",e)};function G(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",r=e.join("").replace(R,""),a=t&&n?n+" "+t+" { "+r+" }":r;return z=i,U=t,H=new RegExp("\\"+U+"\\b","g"),N(n||!t?"":t,a)}var V=function(){return n.nc},Y=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},X=function(e,t){e[t]=Object.create(null)},$=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},J=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},Q=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n"+e()+""}},ie=function(e,t){return function(){var n,i=((n={})[D]=J(t),n[T]="4.4.1",n),r=V();return r&&(i.nonce=r),l.a.createElement("style",F({},i,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},ae=function(e,t){return e.createTextNode(ee(t))},oe=function e(t,n){var i=void 0===t?Object.create(null):t,r=void 0===n?Object.create(null):n,a=function(e){var t=r[e];return void 0!==t?t:r[e]=[""]},o=function(){var e="";for(var t in r){var n=r[t][0];n&&(e+=ee(t)+n)}return e},s={clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=F({},e[n]);return t}(i),n=Object.create(null);for(var a in r)n[a]=[r[a][0]];return e(t,n)},css:o,getIds:re(r),hasNameForId:$(i),insertMarker:a,insertRules:function(e,t,n){a(e)[0]+=t.join(" "),Y(i,e,n)},removeRules:function(e){var t=r[e];void 0!==t&&(t[0]="",X(i,e))},sealed:!1,styleTag:null,toElement:ie(o,i),toHTML:ne(o,i)};return s},se=function(e,t,n,i,r){if(A&&!n){var a=function(e,t,n){var i=document;e?i=e.ownerDocument:t&&(i=t.ownerDocument);var r=i.createElement("style");r.setAttribute(D,""),r.setAttribute(T,"4.4.1");var a=V();if(a&&r.setAttribute("nonce",a),r.appendChild(i.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new I(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,i);return O?function(e,t){var n=Object.create(null),i=Object.create(null),r=void 0!==t,a=!1,o=function(t){var r=i[t];return void 0!==r?r:(i[t]=ae(e.ownerDocument,t),e.appendChild(i[t]),n[t]=Object.create(null),i[t])},s=function(){var e="";for(var t in i)e+=i[t].data;return e};return{clone:function(){throw new I(5)},css:s,getIds:re(i),hasNameForId:$(n),insertMarker:o,insertRules:function(e,i,s){for(var l=o(e),u=[],c=i.length,f=0;f0&&(a=!0,t().insertRules(e+"-import",u))},removeRules:function(o){var s=i[o];if(void 0!==s){var l=ae(e.ownerDocument,o);e.replaceChild(l,s),i[o]=l,X(n,o),r&&a&&t().removeRules(o+"-import")}},sealed:!1,styleTag:e,toElement:ie(s,n),toHTML:ne(s,n)}}(a,r):function(e,t){var n=Object.create(null),i=Object.create(null),r=[],a=void 0!==t,o=!1,s=function(e){var t=i[e];return void 0!==t?t:(i[e]=r.length,r.push(0),X(n,e),i[e])},l=function(){var t=Q(e).cssRules,n="";for(var a in i){n+=ee(a);for(var o=i[a],s=te(r,o),l=s-r[o];l0&&(o=!0,t().insertRules(i+"-import",p)),r[c]+=h,Y(n,i,u)},removeRules:function(s){var l=i[s];if(void 0!==l&&!1!==e.isConnected){var u=r[l];!function(e,t,n){for(var i=t-n,r=t;r>i;r-=1)e.deleteRule(r)}(Q(e),te(r,l)-1,u),r[l]=0,X(n,s),a&&o&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ie(l,n),toHTML:ne(l,n)}}(a,r)}return oe()},le=/\s+/,ue=void 0;ue=A?O?40:1e3:-1;var ce=0,fe=void 0,de=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A?document.head:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=se(t.target,n?n.styleTag:null,t.forceServer,!0)},ce+=1,this.id=ce,this.forceServer=i,this.target=i?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!A||this.forceServer)return this;var e=[],t=[],n=!1,i=document.querySelectorAll("style["+D+"]["+T+'="4.4.1"]'),r=i.length;if(!r)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0]).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),i=e.clone(),r=0;r1?t-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:E;if(!Object(c.isValidElementType)(t))throw new I(1,String(t));var i=function(){return e(t,n,be.apply(void 0,arguments))};return i.withConfig=function(i){return ve(e,t,F({},n,i))},i.attrs=function(i){return ve(e,t,F({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}function ke(e){for(var t,n=0|e.length,i=0|n,r=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+((1540483477*(t>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++r;switch(n){case 3:i^=(255&e.charCodeAt(r+2))<<16;case 2:i^=(255&e.charCodeAt(r+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(r)))+((1540483477*(i>>>16)&65535)<<16)}return((i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16))^i>>>15)>>>0}var Ee=52,we=function(e){return String.fromCharCode(e+(e>25?39:97))};function xe(e){var t="",n=void 0;for(n=e;n>Ee;n=Math.floor(n/Ee))t=we(n%Ee)+t;return we(n%Ee)+t}function Ce(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:E,i=!!n&&e.theme===n.theme;return e.theme&&!i?e.theme:t||n.theme},Oe=/[[\].#*$><+~=|^:(),"'`-]+/g,Ie=/(^-|-$)/g;function Me(e){return e.replace(Oe,"-").replace(Ie,"")}function Pe(e){return"string"===typeof e&&!0}var Re={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},je={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ne=((De={})[c.ForwardRef]={$$typeof:!0,render:!0},De),Be=Object.defineProperty,Le=Object.getOwnPropertyNames,qe=Object.getOwnPropertySymbols,ze=void 0===qe?function(){return[]}:qe,Ue=Object.getOwnPropertyDescriptor,He=Object.getPrototypeOf,Ke=Object.prototype,We=Array.prototype;function Ge(e,t,n){if("string"!==typeof t){var i=He(t);i&&i!==Ke&&Ge(e,i,n);for(var r=We.concat(Le(t),ze(t)),a=Ne[e.$$typeof]||Re,o=Ne[t.$$typeof]||Re,s=r.length,l=void 0,u=void 0;s--;)if(u=r[s],!je[u]&&(!n||!n[u])&&(!o||!o[u])&&(!a||!a[u])&&(l=Ue(t,u)))try{Be(e,u,l)}catch(c){}return e}return e}var Ve=Object(s.createContext)(),Ye=Ve.Consumer,Xe=function(e){function t(n){_(this,t);var i=b(this,e.call(this,n));return i.getContext=Object(f.a)(i.getContext.bind(i)),i.renderInner=i.renderInner.bind(i),i}return y(t,e),t.prototype.render=function(){return this.props.children?l.a.createElement(Ve.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return l.a.createElement(Ve.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(w(e))return e(t);if(null===e||Array.isArray(e)||"object"!==("undefined"===typeof e?"undefined":g(e)))throw new I(8);return F({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(s.Component),$e=(function(){function e(){_(this,e),this.masterSheet=de.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new I(2);return l.a.createElement(Qe,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new I(3)}}(),Object(s.createContext)()),Je=$e.Consumer,Qe=function(e){function t(n){_(this,t);var i=b(this,e.call(this,n));return i.getContext=Object(f.a)(i.getContext),i}return y(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new de(t);throw new I(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,i=e.target;return l.a.createElement($e.Provider,{value:this.getContext(n,i)},t)},t}(s.Component),Ze={};var et=function(e){function t(){_(this,t);var n=b(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return y(t,e),t.prototype.render=function(){return l.a.createElement(Je,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.a.createElement(Ye,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,i=t.defaultProps,r=(t.displayName,t.foldedComponentIds),a=t.styledComponentId,o=t.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(E,this.props):this.generateAndInjectStyles(Ae(this.props,e,i)||E,this.props);var u=this.props.as||this.attrs.as||o,c=Pe(u),f={},h=F({},this.props,this.attrs),p=void 0;for(p in h)"forwardedComponent"!==p&&"as"!==p&&("forwardedRef"===p?f.ref=h[p]:"forwardedAs"===p?f.as=h[p]:c&&!Object(d.a)(p)||(f[p]=h[p]));return this.props.style&&this.attrs.style&&(f.style=F({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(r,a,l!==a?l:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(u,f)},t.prototype.buildExecutionContext=function(e,t,n){var i=this,r=F({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,a=!1,o=void 0,s=void 0;for(s in w(n)&&(n=n(r),a=!0),n)o=n[s],a||!w(o)||(t=o)&&t.prototype&&t.prototype.isReactComponent||C(o)||(o=o(r)),i.attrs[s]=o,r[s]=o})),r):r},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,i=n.attrs,r=n.componentStyle;n.warnTooManyClasses;return r.isStatic&&!i.length?r.generateAndInjectStyles(E,this.styleSheet):r.generateAndInjectStyles(this.buildExecutionContext(e,t,i),this.styleSheet)},t}(s.Component);function tt(e,t,n){var i=C(e),r=!Pe(e),a=t.displayName,o=void 0===a?function(e){return Pe(e)?"styled."+e:"Styled("+x(e)+")"}(e):a,s=t.componentId,u=void 0===s?function(e,t,n){var i="string"!==typeof t?"sc":Me(t),r=(Ze[i]||0)+1;Ze[i]=r;var a=i+"-"+e.generateName(i+r);return n?n+"-"+a:a}(Se,t.displayName,t.parentComponentId):s,c=t.ParentComponent,f=void 0===c?et:c,d=t.attrs,p=void 0===d?k:d,g=t.displayName&&t.componentId?Me(t.displayName)+"-"+t.componentId:t.componentId||u,_=i&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,m=new Se(i?e.componentStyle.rules.concat(n):n,_,g),y=void 0,b=function(e,t){return l.a.createElement(f,F({},e,{forwardedComponent:y,forwardedRef:t}))};return b.displayName=o,(y=l.a.forwardRef(b)).displayName=o,y.attrs=_,y.componentStyle=m,y.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):k,y.styledComponentId=g,y.target=i?e.target:e,y.withComponent=function(e){var i=t.componentId,r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["componentId"]),a=i&&i+"-"+(Pe(e)?e:Me(x(e)));return tt(e,F({},r,{attrs:_,componentId:a,ParentComponent:f}),n)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Object(h.a)(e.defaultProps,t):t}}),y.toString=function(){return"."+y.styledComponentId},r&&Ge(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var nt=function(e){return ve(tt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){nt[e]=nt(e)}));!function(){function e(t,n){_(this,e),this.rules=t,this.componentId=n,this.isStatic=Ce(t,k),de.master.hasId(n)||de.master.deferredInject(n,[])}e.prototype.createStyles=function(e,t){var n=G(ye(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)}}();A&&(window.scCGSHMRCache={});t.b=nt}).call(this,n(97))},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var i=n(123),r=Function.prototype,a=r.call,o=i&&r.bind.bind(a,a);e.exports=i?o:function(e){return function(){return a.apply(e,arguments)}}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(52))},function(e,t,n){var i=n(123),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},function(e,t,n){var i=n(11),r=String,a=TypeError;e.exports=function(e){if(i(e))return e;throw a(r(e)+" is not an object")}},function(e,t,n){var i=n(5),r=n(93),a=n(16),o=n(124),s=n(108),l=n(265),u=i.Symbol,c=r("wks"),f=l?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)||(c[e]=s&&a(u,e)?u[e]:f("Symbol."+e)),c[e]}},function(e,t,n){var i=n(3);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var i=n(264),r=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},function(e,t,n){var i=n(10),r=n(264),a=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===a}:function(e){return"object"==typeof e?null!==e:i(e)}},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return o(e)?e:V(e)}function i(e){return s(e)?e:Y(e)}function r(e){return l(e)?e:X(e)}function a(e){return o(e)&&!u(e)?e:$(e)}function o(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function l(e){return!(!e||!e[h])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[p])}t(i,n),t(r,n),t(a,n),n.isIterable=o,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=i,n.Indexed=r,n.Set=a;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",g="delete",_=5,m=1<<_,F=m-1,y={},b={value:!1},v={value:!1};function k(e){return e.value=!1,e}function E(e){e&&(e.value=!0)}function w(){}function x(e,t){t=t||0;for(var n=Math.max(0,e.length-t),i=new Array(n),r=0;r>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function T(){return!0}function S(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return I(e,t,0)}function O(e,t){return I(e,t,t)}function I(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var M=0,P=1,R=2,j="function"===typeof Symbol&&Symbol.iterator,N="@@iterator",B=j||N;function L(e){this.next=e}function q(e,t,n,i){var r=0===e?t:1===e?n:[t,n];return i?i.value=r:i={value:r,done:!1},i}function z(){return{value:void 0,done:!0}}function U(e){return!!W(e)}function H(e){return e&&"function"===typeof e.next}function K(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(j&&e[j]||e[N]);if("function"===typeof t)return t}function G(e){return e&&"number"===typeof e.length}function V(e){return null===e||void 0===e?oe():o(e)?e.toSeq():ue(e)}function Y(e){return null===e||void 0===e?oe().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function X(e){return null===e||void 0===e?oe():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function $(e){return(null===e||void 0===e?oe():o(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=M,L.VALUES=P,L.ENTRIES=R,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[B]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},V.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(Y,V),Y.prototype.toKeyedSeq=function(){return this},t(X,V),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},X.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t($,V),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},V.isSeq=ae,V.Keyed=Y,V.Set=$,V.Indexed=X;var J,Q,Z,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function ie(e){this._iterable=e,this.size=e.length||e.size}function re(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function oe(){return J||(J=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():U(e)?new ie(e).fromEntrySeq():"object"===typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(e)||"object"===typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return G(e)?new te(e):H(e)?new re(e):U(e)?new ie(e):void 0}function fe(e,t,n,i){var r=e._cache;if(r){for(var a=r.length-1,o=0;o<=a;o++){var s=r[n?a-o:o];if(!1===t(s[1],i?s[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function de(e,t,n,i){var r=e._cache;if(r){var a=r.length-1,o=0;return new L((function(){var e=r[n?a-o:o];return o++>a?z():q(t,i?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,n)}function he(e,t){return t?pe(t,e,"",{"":e}):ge(e)}function pe(e,t,n,i){return Array.isArray(t)?e.call(i,n,X(t).map((function(n,i){return pe(e,n,i,t)}))):_e(t)?e.call(i,n,Y(t).map((function(n,i){return pe(e,n,i,t)}))):t}function ge(e){return Array.isArray(e)?X(e).map(ge).toList():_e(e)?Y(e).map(ge).toMap():e}function _e(e){return e&&(e.constructor===Object||void 0===e.constructor)}function me(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function Fe(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&me(r[1],e)&&(n||me(r[0],t))}))&&i.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{r=!0;var a=e;e=t,t=a}var f=!0,d=t.__iterate((function(t,i){if(n?!e.has(t):r?!me(t,e.get(i,y)):!me(e.get(i,y),t))return f=!1,!1}));return f&&e.size===d}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function be(e,t){if(!e)throw new Error(t)}function ve(e,t,n){if(!(this instanceof ve))return new ve(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),ti?z():q(e,r,n[t?i-r++:r++])}))},t(ne,Y),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,i=this._keys,r=i.length-1,a=0;a<=r;a++){var o=i[t?r-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,i=this._keys,r=i.length-1,a=0;return new L((function(){var o=i[t?r-a:a];return a++>r?z():q(e,o,n[o])}))},ne.prototype[p]=!0,t(ie,X),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),i=0;if(H(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!H(n))return new L(z);var i=0;return new L((function(){var t=n.next();return t.done?t:q(e,i++,t.value)}))},t(re,X),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,i=this._iterator,r=this._iteratorCache,a=0;a=i.length){var t=n.next();if(t.done)return t;i[r]=t.value}return q(e,r,i[r++])}))},t(ye,X),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return me(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:new ye(this._value,O(t,n)-A(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return me(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},ve.prototype.get=function(e,t){return this.has(e)?this._start+D(this,e)*this._step:t},ve.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?z():q(e,a++,o)}))},ve.prototype.equals=function(e){return e instanceof ve?this._start===e._start&&this._end===e._end&&this._step===e._step:Fe(this,e)},t(ke,n),t(Ee,ke),t(we,ke),t(xe,ke),ke.Keyed=Ee,ke.Indexed=we,ke.Set=xe;var Ce="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),i=65535&(t|=0);return n*i+((e>>>16)*i+n*(t>>>16)<<16>>>0)|0};function De(e){return e>>>1&1073741824|3221225471&e}function Te(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return De(n)}if("string"===t)return e.length>Le?Se(e):Ae(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return Oe(e);if("function"===typeof e.toString)return Ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Se(e){var t=Ue[e];return void 0===t&&(t=Ae(e),ze===qe&&(ze=0,Ue={}),ze++,Ue[e]=t),t}function Ae(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Re,je="function"===typeof WeakMap;je&&(Re=new WeakMap);var Ne=0,Be="__immutablehash__";"function"===typeof Symbol&&(Be=Symbol(Be));var Le=16,qe=255,ze=0,Ue={};function He(e){be(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null===e||void 0===e?rt():We(e)&&!c(e)?e:rt().withMutations((function(t){var n=i(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[Ve])}t(Ke,Ee),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return at(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,y,(function(){return t}))},Ke.prototype.remove=function(e){return at(this,e,y)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return y}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var i=_t(this,kn(e),t,n);return i===y?void 0:i},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):rt()},Ke.prototype.merge=function(){return dt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return dt(this,ht,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,pt(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Ut(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Ut(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,i=0;return this._root&&this._root.iterate((function(t){return i++,e(t[1],t[0],n)}),t),i},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?it(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=We;var Ge,Ve="@@__IMMUTABLE_MAP__@@",Ye=Ke.prototype;function Xe(e,t){this.ownerID=e,this.entries=t}function $e(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ze(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return q(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function it(e,t,n,i){var r=Object.create(Ye);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function rt(){return Ge||(Ge=it(0))}function at(e,t,n){var i,r;if(e._root){var a=k(b),o=k(v);if(i=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;r=e.size+(a.value?n===y?-1:1:0)}else{if(n===y)return e;r=1,i=new Xe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?it(r,i):rt()}function ot(e,t,n,i,r,a,o,s){return e?e.update(t,n,i,r,a,o,s):a===y?e:(E(s),E(o),new Ze(t,i,[r,a]))}function st(e){return e.constructor===Ze||e.constructor===Qe}function lt(e,t,n,i,r){if(e.keyHash===i)return new Qe(t,i,[e.entry,r]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&F,s=(0===n?i:i>>>n)&F;return new $e(t,1<>>=1)o[s]=1&n?t[a++]:void 0;return o[i]=r,new Je(e,a+1,o)}function dt(e,t,n){for(var r=[],a=0;a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ft(e,t,n,i){var r=i?e:x(e);return r[t]=n,r}function yt(e,t,n,i){var r=e.length+1;if(i&&t+1===r)return e[t]=n,e;for(var a=new Array(r),o=0,s=0;s=vt)return ut(e,l,i,r);var d=e&&e===this.ownerID,h=d?l:x(l);return f?s?u===c-1?h.pop():h[u]=h.pop():h[u]=[i,r]:h.push([i,r]),d?(this.entries=h,this):new Xe(e,h)}},$e.prototype.get=function(e,t,n,i){void 0===t&&(t=Te(n));var r=1<<((0===e?t:t>>>e)&F),a=this.bitmap;return 0===(a&r)?i:this.nodes[mt(a&r-1)].get(e+_,t,n,i)},$e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=Te(i));var s=(0===t?n:n>>>t)&F,l=1<=kt)return ft(e,d,u,s,p);if(c&&!p&&2===d.length&&st(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&st(p))return p;var g=e&&e===this.ownerID,m=c?p?u:u^l:u|l,b=c?p?Ft(d,f,p,g):bt(d,f,g):yt(d,f,p,g);return g?(this.bitmap=m,this.nodes=b,this):new $e(e,m,b)},Je.prototype.get=function(e,t,n,i){void 0===t&&(t=Te(n));var r=(0===e?t:t>>>e)&F,a=this.nodes[r];return a?a.get(e+_,t,n,i):i},Je.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=Te(i));var s=(0===t?n:n>>>t)&F,l=r===y,u=this.nodes,c=u[s];if(l&&!c)return this;var f=ot(c,e,t+_,n,i,r,a,o);if(f===c)return this;var d=this.count;if(c){if(!f&&--d0&&i=0&&e>>t&F;if(i>=this.array.length)return new Tt([],e);var r,a=0===i;if(t>0){var o=this.array[i];if((r=o&&o.removeBefore(e,t-_,n))===o&&a)return this}if(a&&!r)return this;var s=Nt(this,e);if(!a)for(var l=0;l>>t&F;if(r>=this.array.length)return this;if(t>0){var a=this.array[r];if((i=a&&a.removeAfter(e,t-_,n))===a&&r===this.array.length-1)return this}var o=Nt(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var St,At,Ot={};function It(e,t){var n=e._origin,i=e._capacity,r=zt(i),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,o){var s=o===r?a&&a.array:e&&e.array,l=o>n?0:n-o,u=i-o;return u>m&&(u=m),function(){if(l===u)return Ot;var e=t?--u:l++;return s&&s[e]}}function l(e,r,a){var s,l=e&&e.array,u=a>n?0:n-a>>r,c=1+(i-a>>r);return c>m&&(c=m),function(){for(;;){if(s){var e=s();if(e!==Ot)return e;s=null}if(u===c)return Ot;var n=t?--c:u++;s=o(l&&l[n],r-_,a+(n<=e.size||t<0)return e.withMutations((function(e){t<0?Lt(e,t).set(0,n):Lt(e,0,t+1).set(t,n)}));t+=e._origin;var i=e._tail,r=e._root,a=k(v);return t>=zt(e._capacity)?i=jt(i,e.__ownerID,0,t,n,a):r=jt(r,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=r,e._tail=i,e.__hash=void 0,e.__altered=!0,e):Mt(e._origin,e._capacity,e._level,r,i):e}function jt(e,t,n,i,r,a){var o,s=i>>>n&F,l=e&&s0){var u=e&&e.array[s],c=jt(u,t,n-_,i,r,a);return c===u?e:((o=Nt(e,t)).array[s]=c,o)}return l&&e.array[s]===r?e:(E(a),o=Nt(e,t),void 0===r&&s===o.array.length-1?o.array.pop():o.array[s]=r,o)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new Tt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=zt(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>i&F],i-=_;return n}}function Lt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var i=e.__ownerID||new w,r=e._origin,a=e._capacity,o=r+t,s=void 0===n?a:n<0?a+n:r+n;if(o===r&&s===a)return e;if(o>=s)return e.clear();for(var l=e._level,u=e._root,c=0;o+c<0;)u=new Tt(u&&u.array.length?[void 0,u]:[],i),c+=1<<(l+=_);c&&(o+=c,r+=c,s+=c,a+=c);for(var f=zt(a),d=zt(s);d>=1<f?new Tt([],i):h;if(h&&d>f&&o_;m-=_){var y=f>>>m&F;g=g.array[y]=Nt(g.array[y],i)}g.array[f>>>_&F]=h}if(s=d)o-=d,s-=d,l=_,u=null,p=p&&p.removeBefore(i,0,o);else if(o>r||d>>l&F;if(b!==d>>>l&F)break;b&&(c+=(1<r&&(u=u.removeBefore(i,l,o-c)),u&&da&&(a=u.size),o(l)||(u=u.map((function(e){return he(e)}))),i.push(u)}return a>e.size&&(e=e.setSize(a)),gt(e,t,i)}function zt(e){return e>>_<<_}function Ut(e){return null===e||void 0===e?Wt():Ht(e)?e:Wt().withMutations((function(t){var n=i(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ht(e){return We(e)&&c(e)}function Kt(e,t,n,i){var r=Object.create(Ut.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=i,r}function Wt(){return At||(At=Kt(rt(),Pt()))}function Gt(e,t,n){var i,r,a=e._map,o=e._list,s=a.get(t),l=void 0!==s;if(n===y){if(!l)return e;o.size>=m&&o.size>=2*a.size?(i=(r=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=r.__ownerID=e.__ownerID)):(i=a.remove(t),r=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return e;i=a,r=o.set(s,[t,n])}else i=a.set(t,o.size),r=o.set(o.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=r,e.__hash=void 0,e):Kt(i,r)}function Vt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){this._iter=e,this.size=e.size}function $t(e){this._iter=e,this.size=e.size}function Jt(e){var t=yn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=bn,t.__iterateUncached=function(t,n){var i=this;return e.__iterate((function(e,n){return!1!==t(n,e,i)}),n)},t.__iteratorUncached=function(t,n){if(t===R){var i=e.__iterator(t,n);return new L((function(){var e=i.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===P?M:P,n)},t}function Qt(e,t,n){var i=yn(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,r){var a=e.get(i,y);return a===y?r:t.call(n,a,i,e)},i.__iterateUncached=function(i,r){var a=this;return e.__iterate((function(e,r,o){return!1!==i(t.call(n,e,r,o),r,a)}),r)},i.__iteratorUncached=function(i,r){var a=e.__iterator(R,r);return new L((function(){var r=a.next();if(r.done)return r;var o=r.value,s=o[0];return q(i,s,t.call(n,o[1],s,e),r)}))},i}function Zt(e,t){var n=yn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Jt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,i){return e.get(t?n:-1-n,i)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=bn,n.__iterate=function(t,n){var i=this;return e.__iterate((function(e,n){return t(e,n,i)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,i){var r=yn(e);return i&&(r.has=function(i){var r=e.get(i,y);return r!==y&&!!t.call(n,r,i,e)},r.get=function(i,r){var a=e.get(i,y);return a!==y&&t.call(n,a,i,e)?a:r}),r.__iterateUncached=function(r,a){var o=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,r(e,i?a:s-1,o)}),a),s},r.__iteratorUncached=function(r,a){var o=e.__iterator(R,a),s=0;return new L((function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return q(r,i?u:s++,c,a)}}))},r}function tn(e,t,n){var i=Ke().asMutable();return e.__iterate((function(r,a){i.update(t.call(n,r,a,e),0,(function(e){return e+1}))})),i.asImmutable()}function nn(e,t,n){var i=s(e),r=(c(e)?Ut():Ke()).asMutable();e.__iterate((function(a,o){r.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(i?[o,a]:a),e}))}));var a=Fn(e);return r.map((function(t){return gn(e,a(t))}))}function rn(e,t,n,i){var r=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),S(t,n,r))return e;var a=A(t,r),o=O(n,r);if(a!==a||o!==o)return rn(e.toSeq().cacheResult(),t,n,i);var s,l=o-a;l===l&&(s=l<0?0:l);var u=yn(e);return u.size=0===s?s:e.size&&s||void 0,!i&&ae(e)&&s>=0&&(u.get=function(t,n){return(t=D(this,t))>=0&&ts)return z();var e=r.next();return i||t===P?e:q(t,l-1,t===M?void 0:e.value[1],e)}))},u}function an(e,t,n){var i=yn(e);return i.__iterateUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterate(i,r);var o=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++o&&i(e,r,a)})),o},i.__iteratorUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterator(i,r);var o=e.__iterator(R,r),s=!0;return new L((function(){if(!s)return z();var e=o.next();if(e.done)return e;var r=e.value,l=r[0],u=r[1];return t.call(n,u,l,a)?i===R?e:q(i,l,u,e):(s=!1,z())}))},i}function on(e,t,n,i){var r=yn(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var s=!0,l=0;return e.__iterate((function(e,a,u){if(!s||!(s=t.call(n,e,a,u)))return l++,r(e,i?a:l-1,o)})),l},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var s=e.__iterator(R,a),l=!0,u=0;return new L((function(){var e,a,c;do{if((e=s.next()).done)return i||r===P?e:q(r,u++,r===M?void 0:e.value[1],e);var f=e.value;a=f[0],c=f[1],l&&(l=t.call(n,c,a,o))}while(l);return r===R?e:q(r,a,c,e)}))},r}function sn(e,t){var n=s(e),r=[e].concat(t).map((function(e){return o(e)?n&&(e=i(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var a=r[0];if(a===e||n&&s(a)||l(e)&&l(a))return a}var u=new te(r);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function ln(e,t,n){var i=yn(e);return i.__iterateUncached=function(i,r){var a=0,s=!1;function l(e,u){var c=this;e.__iterate((function(e,r){return(!t||u0}function pn(e,t,i){var r=yn(e);return r.size=new te(i).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,i=this.__iterator(P,t),r=0;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var a=i.map((function(e){return e=n(e),K(r?e.reverse():e)})),o=0,s=!1;return new L((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?z():q(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function gn(e,t){return ae(e)?t:e.constructor(t)}function _n(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function mn(e){return He(e.size),C(e)}function Fn(e){return s(e)?i:l(e)?r:a}function yn(e){return Object.create((s(e)?Y:l(e)?X:$).prototype)}function bn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function vn(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yn(e,t)},Hn.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;He(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yn(t,n)},Hn.prototype.pop=function(){return this.slice(1)},Hn.prototype.unshift=function(){return this.push.apply(this,arguments)},Hn.prototype.unshiftAll=function(e){return this.pushAll(e)},Hn.prototype.shift=function(){return this.pop.apply(this,arguments)},Hn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Xn()},Hn.prototype.slice=function(e,t){if(S(e,t,this.size))return this;var n=A(e,this.size);if(O(t,this.size)!==this.size)return we.prototype.slice.call(this,e,t);for(var i=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=i,this._head=r,this.__hash=void 0,this.__altered=!0,this):Yn(i,r)},Hn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Hn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,i=this._head;i&&!1!==e(i.value,n++,this);)i=i.next;return n},Hn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,i=this._head;return new L((function(){if(i){var t=i.value;return i=i.next,q(e,n++,t)}return z()}))},Hn.isStack=Kn;var Wn,Gn="@@__IMMUTABLE_STACK__@@",Vn=Hn.prototype;function Yn(e,t,n,i){var r=Object.create(Vn);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Xn(){return Wn||(Wn=Yn(0))}function $n(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Vn[Gn]=!0,Vn.withMutations=Ye.withMutations,Vn.asMutable=Ye.asMutable,Vn.asImmutable=Ye.asImmutable,Vn.wasAltered=Ye.wasAltered,n.Iterator=L,$n(n,{toArray:function(){He(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Yt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){He(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ut(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return Sn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Xt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Hn(s(this)?this.valueSeq():this)},toList:function(){return wt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return me(t,e)}))},entries:function(){return this.__iterator(R)},every:function(e,t){He(this.size);var n=!0;return this.__iterate((function(i,r,a){if(!e.call(t,i,r,a))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var i=this.findEntry(e,t);return i?i[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(i,r,a){if(e.call(t,i,r,a))return n=[r,i],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return He(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){He(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(i){n?n=!1:t+=e,t+=null!==i&&void 0!==i?i.toString():""})),t},keys:function(){return this.__iterator(M)},map:function(e,t){return gn(this,Qt(this,e,t))},reduce:function(e,t,n){var i,r;return He(this.size),arguments.length<2?r=!0:i=t,this.__iterate((function(t,a,o){r?(r=!1,i=t):i=e.call(n,i,t,a,o)})),i},reduceRight:function(e,t,n){var i=this.toKeyedSeq().reverse();return i.reduce.apply(i,arguments)},reverse:function(){return gn(this,Zt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(ti(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(P)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return Fe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ei).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ti(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(T)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,ln(this,e,!0))},fromEntrySeq:function(){return new $t(this)},get:function(e,t){return this.find((function(t,n){return me(n,e)}),void 0,t)},getIn:function(e,t){for(var n,i=this,r=kn(e);!(n=r.next()).done;){var a=n.value;if((i=i&&i.get?i.get(a,y):y)===y)return t}return i},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e="function"===typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Zn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?ni(e):ai)},minBy:function(e,t){return dn(this,t?ni(t):ai,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ti(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,an(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ti(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=oi(this))}});var Jn=n.prototype;Jn[f]=!0,Jn[B]=Jn.values,Jn.__toJS=Jn.toArray,Jn.__toStringMapper=ii,Jn.inspect=Jn.toSource=function(){return this.toString()},Jn.chain=Jn.flatMap,Jn.contains=Jn.includes,function(){try{Object.defineProperty(Jn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn,this.size}}})}catch(e){}}(),$n(i,{flip:function(){return gn(this,Jt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return me(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return me(t,e)}))},mapEntries:function(e,t){var n=this,i=0;return gn(this,this.toSeq().map((function(r,a){return e.call(t,[a,r],i++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(i,r){return e.call(t,i,r,n)})).flip())}});var Qn=i.prototype;function Zn(e,t){return t}function ei(e,t){return[t,e]}function ti(e){return function(){return!e.apply(this,arguments)}}function ni(e){return function(){return-e.apply(this,arguments)}}function ii(e){return"string"===typeof e?JSON.stringify(e):e}function ri(){return x(arguments)}function ai(e,t){return et?-1:0}function oi(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),i=t?1:0;return si(e.__iterate(n?t?function(e,t){i=31*i+li(Te(e),Te(t))|0}:function(e,t){i=i+li(Te(e),Te(t))|0}:t?function(e){i=31*i+Te(e)|0}:function(e){i=i+Te(e)|0}),i)}function si(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=De((t=Ce(t^t>>>13,3266489909))^t>>>16)}function li(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Qn[d]=!0,Qn[B]=Jn.entries,Qn.__toJS=Jn.toObject,Qn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+ii(e)},$n(r,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Zt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var i=this.slice(0,e);return gn(this,1===n?i:i.concat(x(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,ln(this,e,!1))},get:function(e,t){return(e=D(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=D(this,e))>=0&&(void 0!==this.size?this.size===1/0||e2?n-2:0),a=2;a0)return r.getInlineStyleAt(i-1);if(r.getLength())return r.getInlineStyleAt(0);return y(e,n)}(t,n):function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),r=e.getBlockForKey(n);if(i0)return r.getInlineStyleAt(i-1);return y(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return m(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),m(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),i=n.getKey(),r=n.getLength();return t.acceptSelection(e,new l({anchorKey:i,anchorOffset:r,focusKey:i,focusOffset:r,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var a=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var o=e.getSelection(),l=e.getCurrentContent(),u=e.getUndoStack(),c=n;o!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,i)?(u=u.push(l),c=c.set("selectionBefore",o)):"insert-characters"!==i&&"backspace-character"!==i&&"delete-character"!==i||(c=c.set("selectionBefore",l.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(i)&&(f=null);var h={currentContent:c,directionMap:a,undoStack:u,redoStack:d(),lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:f};return t.set(e,h)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=s.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=s.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:e.getUndoStack().push(r),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:i.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function m(e,t,n){return _.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function F(e,t){return e.getBlockMap().map((function(n){return a.generate(e,n,t)})).toOrderedMap()}function y(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):c()}e.exports=_},function(e,t,n){"use strict";var i=n(924),r=n(145),a=n(58),o=n(940),s=n(103),l=n(249),u=n(251),c=n(378),f=n(941),d=n(394),h=n(184),p=n(44),g=n(376),_=n(19),m=n(257),F=n(1006),y=n(405),b=n(185),v=n(1007),k=n(1010),E=n(69),w=n(406),x=n(1016),C={Editor:f,EditorBlock:d,EditorState:_,CompositeDecorator:o,Entity:h,EntityInstance:g,BlockMapBuilder:r,CharacterMetadata:a,ContentBlock:s,ContentState:l,RawDraftContentState:F,SelectionState:b,AtomicBlockUtils:i,KeyBindingUtil:m,Modifier:p,RichUtils:y,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:c,convertFromHTML:n(403),convertFromRaw:k,convertToRaw:v,genKey:E,getDefaultKeyBinding:w,getVisibleSelectionRect:x};e.exports=C},function(e,t,n){var i=n(53);e.exports=function(e){return i(e.length)}},function(e,t,n){var i=n(84),r=n(15),a=n(123),o=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(324),t),r(n(752),t),r(n(753),t)},function(e,t,n){"use strict";n.r(t),n.d(t,"CacheProvider",(function(){return S})),n.d(t,"ThemeContext",(function(){return T})),n.d(t,"withEmotionCache",(function(){return A})),n.d(t,"css",(function(){return G})),n.d(t,"ClassNames",(function(){return Z})),n.d(t,"Global",(function(){return Y})),n.d(t,"createElement",(function(){return V})),n.d(t,"jsx",(function(){return V})),n.d(t,"keyframes",(function(){return $}));var i=n(0);var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;th)&&(L=(U=U.replace(" ",":")).length),0i&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:return t.replace(_,"$1"+e.trim());case 58:return e.trim()+t.replace(_,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102i.charCodeAt(0)&&(i=i.trim()),i=[i],0=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var _=/[A-Z]|^ms/g,m=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F=function(e){return 45===e.charCodeAt(1)},y=function(e){return null!=e&&"boolean"!==typeof e},b=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return F(e)?e:e.replace(_,"-$&").toLowerCase()})),v=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(m,(function(e,t,n){return E={name:t,styles:n,next:E},t}))}return 1===g[e]||F(e)||"number"!==typeof t||0===t?t:t+"px"};function k(e,t,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return E={name:n.name,styles:n.styles,next:E},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)E={name:r.name,styles:r.styles,next:E},r=r.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},j={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var N=/[A-Z]|^ms/g,B=/_EMO_([^_]+?)_([^]*?)_EMO_/g,L=function(e){return 45===e.charCodeAt(1)},q=function(e){return null!=e&&"boolean"!==typeof e},z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return L(e)?e:e.replace(N,"-$&").toLowerCase()})),U=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(B,(function(e,t,n){return K={name:t,styles:n,next:K},t}))}return 1===j[e]||L(e)||"number"!==typeof t||0===t?t:t+"px"};function H(e,t,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return K={name:n.name,styles:n.styles,next:K},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)K={name:r.name,styles:r.styles,next:K},r=r.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;rw;w++)if((h||w in v)&&(y=k(F=v[w],w,b),e))if(t)C[w]=y;else if(y)switch(e){case 3:return!0;case 5:return F;case 6:return w;case 2:u(C,F)}else switch(e){case 4:return!1;case 7:u(C,F)}return f?-1:r||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(e,t,n){var i=n(16),r=n(10),a=n(17),o=n(154),s=n(211),l=o("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=a(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},function(e,t,n){var i=n(271);e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},function(e,t,n){var i=n(22),r=n(6),a=n(7),o=n(92),s=n(209),l=n(21),u=n(60),c=n(133),f=n(134),d=n(156),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var _,m,F,y,b,v,k,E=n&&n.that,w=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),D=!(!n||!n.INTERRUPTED),T=i(t,E),S=function(e){return _&&d(_,"normal",e),new p(!0,e)},A=function(e){return w?(a(e),D?T(e[0],e[1],S):T(e[0],e[1])):D?T(e,S):T(e)};if(x)_=e.iterator;else if(C)_=e;else{if(!(m=f(e)))throw h(o(e)+" is not iterable");if(s(m)){for(F=0,y=l(e);y>F;F++)if((b=A(e[F]))&&u(g,b))return b;return new p(!1)}_=c(e,m)}for(v=x?e.next:_.next;!(k=r(v,_)).done;){try{b=A(k.value)}catch(O){d(_,"throw",O)}if("object"==typeof b&&b&&u(g,b))return b}return new p(!1)}},function(e,t,n){var i=n(4),r=Set.prototype;e.exports={Set:Set,add:i(r.add),has:i(r.has),remove:i(r.delete),proto:r,$has:r.has,$keys:r.keys}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,a=t.children||[],o=a.length,s=[],l=-1;for(;++l3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",r=h(e,t),a=p(r,t);return u(a,a.getSelectionAfter(),n,i)},removeRange:function(e,t,n){var i,r,a,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),i=t.getAnchorKey(),r=t.getFocusKey(),a=e.getBlockForKey(i),s=e.getBlockForKey(r);var l=t.getStartOffset(),u=t.getEndOffset(),c=a.getEntityAt(l),f=s.getEntityAt(u-1);if(i===r&&c&&c===f){var d=o(e.getEntityMap(),a,s,t,n);return p(e,d)}var g=h(e,t);return p(g,t)},splitBlock:function(e,t){var n=h(e,t),i=p(n,t);return g(i,i.getSelectionAfter())},applyInlineStyle:function(e,t,n){return r.add(e,t,n)},removeInlineStyle:function(e,t,n){return r.remove(e,t,n)},setBlockType:function(e,t,n){return d(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var i=h(e,t);return a(i,t,n)}};e.exports=m},function(e,t,n){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var i=n(944),r=n(947),a=n(948),o=n(949);function s(e,t,n,i){if(e===n)return!0;if(!n.startsWith(e))return!1;var a=n.slice(e.length);return!!t&&(a=i?i(a):a,r.contains(a,t))}function l(e){return"Windows"===i.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return s(i.browserName,i.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(i.browserArchitecture,null,e)},isDevice:function(e){return s(i.deviceName,null,e)},isEngine:function(e){return s(i.engineName,i.engineVersion,e)},isPlatform:function(e){return s(i.platformName,i.platformFullVersion,e,l)},isPlatformArchitecture:function(e){return s(i.platformArchitecture,null,e)}};e.exports=a(u,o)},function(e,t,n){var i=n(151),r=n(31);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(4),r=i({}.toString),a=i("".slice);e.exports=function(e){return a(r(e),8,-1)}},function(e,t,n){var i=n(9),r=n(27),a=n(65);e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(198),r=n(27);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},function(e,t,n){var i=n(63).has;e.exports=function(e){return i(e),e}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(40),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){var i,r=n(7),a=n(204),o=n(202),s=n(126),l=n(272),u=n(153),c=n(154),f="prototype",d="script",h=c("IE_PROTO"),p=function(){},g=function(e){return"<"+d+">"+e+""},_=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}m="undefined"!=typeof document?document.domain&&i?_(i):function(){var e,t=u("iframe"),n="java"+d+":";return t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F}():_(i);for(var e=o.length;e--;)delete m[f][o[e]];return m()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[f]=r(e),n=new p,p[f]=null,n[h]=e):n=m(),void 0===t?n:a.f(n,t)}},function(e,t,n){var i=n(123),r=Function.prototype,a=r.apply,o=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(a):function(){return o.apply(a,arguments)})},function(e,t,n){var i=n(4),r=n(87),a=n(42),o=a.Set,s=a.proto,l=i(s.forEach),u=i(s.keys),c=u(new o).next;e.exports=function(e,t,n){return n?r(u(e),t,c):l(e,t)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var i;null!==n&&void 0!==n||"object"===typeof t&&!Array.isArray(t)||(n=t,t={});i=Object.assign({type:String(e)},t),Array.isArray(n)?i.children=n:null!==n&&void 0!==n&&(i.value=String(n));return i}},function(e,t,n){"use strict";var i=n(12),r=i.Map,a=i.OrderedSet,o=i.Record,s=a(),l={style:s,entity:null},u=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},i.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return i.create(n)},i.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return i.create(n)},i.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return i.create(n)},i.create=function(e){if(!e)return c;var t=r({style:s,entity:null}).merge(e),n=f.get(t);if(n)return n;var a=new i(t);return f=f.set(t,a),a},i.fromJS=function(e){var t=e.style,n=e.entity;return new i({style:Array.isArray(t)?a(t):t,entity:Array.isArray(n)?a(n):n})},i}(o(l)),c=new u,f=r([[r(l),c]]);u.EMPTY=c,e.exports=u},function(e,t,n){"use strict";var i=n(58),r=n(146),a=n(12),o=a.List,s=a.Map,l=a.OrderedSet,u=a.Record,c=a.Repeat,f=l(),d={parent:null,characterList:o(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:o(),prevSibling:null,nextSibling:null},h=function(e,t){return e.getStyle()===t.getStyle()},p=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){var t,n;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=o(c(i.EMPTY,n.length))),e}(t))||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){r(this.getCharacterList(),h,e,t)},s.findEntityRanges=function(e,t){r(this.getCharacterList(),p,e,t)},a}(u(d));e.exports=g},function(e,t,n){var i=n(4);e.exports=i({}.isPrototypeOf)},function(e,t,n){var i=n(15),r=n(32);e.exports=function(e,t){var n=e[t];return r(n)?void 0:i(n)}},function(e,t,n){var i=n(27).f,r=n(16),a=n(8)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,a)&&i(e,a,{configurable:!0,value:t})}},function(e,t,n){var i=n(4),r=Map.prototype;e.exports={Map:Map,set:i(r.set),get:i(r.get),has:i(r.has),remove:i(r.delete),proto:r}},function(e,t,n){var i=n(4),r=n(87),a=n(63),o=a.Map,s=a.proto,l=i(s.forEach),u=i(s.entries),c=u(new o).next;e.exports=function(e,t,n){return n?r(u(e),(function(e){return t(e[1],e[0])}),c):l(e,t)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(203),r=n(10),a=n(48),o=n(8)("toStringTag"),s=Object,l="Arguments"==a(function(){return arguments}());e.exports=i?a:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),o))?n:l?a(t):"Object"==(i=a(t))&&r(t.callee)?"Arguments":i}},function(e,t,n){var i=n(8),r=n(54),a=n(27).f,o=i("unscopables"),s=Array.prototype;void 0==s[o]&&a(s,o,{configurable:!0,value:r(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,n){"use strict";var i=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",MENUITEM:"menuitem",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"},a=t.SPECIAL_ELEMENTS=Object.create(null);a[i.HTML]=Object.create(null),a[i.HTML][r.ADDRESS]=!0,a[i.HTML][r.APPLET]=!0,a[i.HTML][r.AREA]=!0,a[i.HTML][r.ARTICLE]=!0,a[i.HTML][r.ASIDE]=!0,a[i.HTML][r.BASE]=!0,a[i.HTML][r.BASEFONT]=!0,a[i.HTML][r.BGSOUND]=!0,a[i.HTML][r.BLOCKQUOTE]=!0,a[i.HTML][r.BODY]=!0,a[i.HTML][r.BR]=!0,a[i.HTML][r.BUTTON]=!0,a[i.HTML][r.CAPTION]=!0,a[i.HTML][r.CENTER]=!0,a[i.HTML][r.COL]=!0,a[i.HTML][r.COLGROUP]=!0,a[i.HTML][r.DD]=!0,a[i.HTML][r.DETAILS]=!0,a[i.HTML][r.DIR]=!0,a[i.HTML][r.DIV]=!0,a[i.HTML][r.DL]=!0,a[i.HTML][r.DT]=!0,a[i.HTML][r.EMBED]=!0,a[i.HTML][r.FIELDSET]=!0,a[i.HTML][r.FIGCAPTION]=!0,a[i.HTML][r.FIGURE]=!0,a[i.HTML][r.FOOTER]=!0,a[i.HTML][r.FORM]=!0,a[i.HTML][r.FRAME]=!0,a[i.HTML][r.FRAMESET]=!0,a[i.HTML][r.H1]=!0,a[i.HTML][r.H2]=!0,a[i.HTML][r.H3]=!0,a[i.HTML][r.H4]=!0,a[i.HTML][r.H5]=!0,a[i.HTML][r.H6]=!0,a[i.HTML][r.HEAD]=!0,a[i.HTML][r.HEADER]=!0,a[i.HTML][r.HGROUP]=!0,a[i.HTML][r.HR]=!0,a[i.HTML][r.HTML]=!0,a[i.HTML][r.IFRAME]=!0,a[i.HTML][r.IMG]=!0,a[i.HTML][r.INPUT]=!0,a[i.HTML][r.LI]=!0,a[i.HTML][r.LINK]=!0,a[i.HTML][r.LISTING]=!0,a[i.HTML][r.MAIN]=!0,a[i.HTML][r.MARQUEE]=!0,a[i.HTML][r.MENU]=!0,a[i.HTML][r.META]=!0,a[i.HTML][r.NAV]=!0,a[i.HTML][r.NOEMBED]=!0,a[i.HTML][r.NOFRAMES]=!0,a[i.HTML][r.NOSCRIPT]=!0,a[i.HTML][r.OBJECT]=!0,a[i.HTML][r.OL]=!0,a[i.HTML][r.P]=!0,a[i.HTML][r.PARAM]=!0,a[i.HTML][r.PLAINTEXT]=!0,a[i.HTML][r.PRE]=!0,a[i.HTML][r.SCRIPT]=!0,a[i.HTML][r.SECTION]=!0,a[i.HTML][r.SELECT]=!0,a[i.HTML][r.SOURCE]=!0,a[i.HTML][r.STYLE]=!0,a[i.HTML][r.SUMMARY]=!0,a[i.HTML][r.TABLE]=!0,a[i.HTML][r.TBODY]=!0,a[i.HTML][r.TD]=!0,a[i.HTML][r.TEMPLATE]=!0,a[i.HTML][r.TEXTAREA]=!0,a[i.HTML][r.TFOOT]=!0,a[i.HTML][r.TH]=!0,a[i.HTML][r.THEAD]=!0,a[i.HTML][r.TITLE]=!0,a[i.HTML][r.TR]=!0,a[i.HTML][r.TRACK]=!0,a[i.HTML][r.UL]=!0,a[i.HTML][r.WBR]=!0,a[i.HTML][r.XMP]=!0,a[i.MATHML]=Object.create(null),a[i.MATHML][r.MI]=!0,a[i.MATHML][r.MO]=!0,a[i.MATHML][r.MN]=!0,a[i.MATHML][r.MS]=!0,a[i.MATHML][r.MTEXT]=!0,a[i.MATHML][r.ANNOTATION_XML]=!0,a[i.SVG]=Object.create(null),a[i.SVG][r.TITLE]=!0,a[i.SVG][r.FOREIGN_OBJECT]=!0,a[i.SVG][r.DESC]=!0},function(e,t,n){"use strict";var i={},r=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||i.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*r).toString(32);return i[e]=!0,e}},function(e,t){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,n){var i=n(281),r=n(7),a=n(282);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(o){}return function(n,i){return r(n),a(i),t?e(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){var i=n(60),r=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw r("Incorrect invocation")}},function(e,t,n){"use strict";var i=n(1),r=n(5),a=n(6),o=n(9),s=n(226),l=n(18),u=n(214),c=n(72),f=n(65),d=n(49),h=n(219),p=n(53),g=n(287),_=n(311),m=n(79),F=n(16),y=n(66),b=n(11),v=n(107),k=n(54),E=n(60),w=n(71),x=n(81).f,C=n(312),D=n(38).forEach,T=n(98),S=n(50),A=n(27),O=n(35),I=n(29),M=n(162),P=I.get,R=I.set,j=I.enforce,N=A.f,B=O.f,L=Math.round,q=r.RangeError,z=u.ArrayBuffer,U=z.prototype,H=u.DataView,K=l.NATIVE_ARRAY_BUFFER_VIEWS,W=l.TYPED_ARRAY_TAG,G=l.TypedArray,V=l.TypedArrayPrototype,Y=l.aTypedArrayConstructor,X=l.isTypedArray,$="BYTES_PER_ELEMENT",J="Wrong length",Q=function(e,t){Y(e);for(var n=0,i=t.length,r=new e(i);i>n;)r[n]=t[n++];return r},Z=function(e,t){S(e,t,{configurable:!0,get:function(){return P(this)[t]}})},ee=function(e){var t;return E(U,e)||"ArrayBuffer"==(t=y(e))||"SharedArrayBuffer"==t},te=function(e,t){return X(e)&&!v(t)&&t in e&&h(+t)&&t>=0},ne=function(e,t){return t=m(t),te(e,t)?f(2,e[t]):B(e,t)},ie=function(e,t,n){return t=m(t),!(te(e,t)&&b(n)&&F(n,"value"))||F(n,"get")||F(n,"set")||n.configurable||F(n,"writable")&&!n.writable||F(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};o?(K||(O.f=ne,A.f=ie,Z(V,"buffer"),Z(V,"byteOffset"),Z(V,"byteLength"),Z(V,"length")),i({target:"Object",stat:!0,forced:!K},{getOwnPropertyDescriptor:ne,defineProperty:ie}),e.exports=function(e,t,n){var o=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,f="set"+e,h=r[l],m=h,F=m&&m.prototype,y={},v=function(e,t){N(e,t,{get:function(){return function(e,t){var n=P(e);return n.view[u](t*o+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var r=P(e);n&&(i=(i=L(i))<0?0:i>255?255:255&i),r.view[f](t*o+r.byteOffset,i,!0)}(this,t,e)},enumerable:!0})};K?s&&(m=t((function(e,t,n,i){return c(e,F),M(b(t)?ee(t)?void 0!==i?new h(t,_(n,o),i):void 0!==n?new h(t,_(n,o)):new h(t):X(t)?Q(m,t):a(C,m,t):new h(g(t)),e,m)})),w&&w(m,G),D(x(h),(function(e){e in m||d(m,e,h[e])})),m.prototype=F):(m=t((function(e,t,n,i){c(e,F);var r,s,l,u=0,f=0;if(b(t)){if(!ee(t))return X(t)?Q(m,t):a(C,m,t);r=t,f=_(n,o);var d=t.byteLength;if(void 0===i){if(d%o)throw q(J);if((s=d-f)<0)throw q(J)}else if((s=p(i)*o)+f>d)throw q(J);l=s/o}else l=g(t),r=new z(s=l*o);for(R(e,{buffer:r,byteOffset:f,byteLength:s,length:l,view:new H(r)});u=a)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return e}})),l=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),F(i.showHidden)&&(i.showHidden=!1),F(i.depth)&&(i.depth=2),F(i.colors)&&(i.colors=!1),F(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=l),c(i,e,i.depth)}function l(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function u(e,t){return e}function c(e,n,i){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return m(r)||(r=c(e,r,i)),r}var a=function(e,t){if(F(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(_(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),k(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(n);if(0===o.length){if(E(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(y(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(v(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return f(n)}var u,b="",w=!1,x=["{","}"];(h(n)&&(w=!0,x=["[","]"]),E(n))&&(b=" [Function"+(n.name?": "+n.name:"")+"]");return y(n)&&(b=" "+RegExp.prototype.toString.call(n)),v(n)&&(b=" "+Date.prototype.toUTCString.call(n)),k(n)&&(b=" "+f(n)),0!==o.length||w&&0!=n.length?i<0?y(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=w?function(e,t,n,i,r){for(var a=[],o=0,s=t.length;o=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(i>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,b,x)):x[0]+b+x[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,i,r,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),D(i,r)||(o="["+r+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),F(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"===typeof e}function g(e){return null===e}function _(e){return"number"===typeof e}function m(e){return"string"===typeof e}function F(e){return void 0===e}function y(e){return b(e)&&"[object RegExp]"===w(e)}function b(e){return"object"===typeof e&&null!==e}function v(e){return b(e)&&"[object Date]"===w(e)}function k(e){return b(e)&&("[object Error]"===w(e)||e instanceof Error)}function E(e){return"function"===typeof e}function w(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(F(a)&&(a=Object({NODE_ENV:"production",PUBLIC_URL:"/amazon-connect/amazon-connect-chat-interface"}).NODE_DEBUG||""),n=n.toUpperCase(),!o[n])if(new RegExp("\\b"+n+"\\b","i").test(a)){var i=e.pid;o[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,i,e)}}else o[n]=function(){};return o[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=p,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=_,t.isString=m,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=F,t.isRegExp=y,t.isObject=b,t.isDate=v,t.isError=k,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(782);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){(function(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");[e.getDate(),C[e.getMonth()],t].join(" ")})(),t.format.apply(t,arguments)},t.inherits=n(783),t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var T="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!==typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,i=new Promise((function(e,i){t=e,n=i})),r=[],a=0;a0&&i[0]<4?1:+(i[0]+i[1])),!r&&o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},function(e,t,n){var i=n(270),r=n(202).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){var i=n(40),r=Math.max,a=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):a(n,t)}},function(e,t,n){"use strict";var i=n(79),r=n(27),a=n(65);e.exports=function(e,t,n){var o=i(t);o in e?r.f(e,o,a(0,n)):e[o]=n}},function(e,t,n){var i=n(48),r=n(4);e.exports=function(e){if("Function"===i(e))return r(e)}},function(e,t,n){var i=n(4);e.exports=i([].slice)},function(e,t,n){"use strict";var i=n(15),r=TypeError,a=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw r("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new a(e)}},function(e,t,n){var i=n(6);e.exports=function(e,t,n){for(var r,a,o=n||e.next;!(r=i(o,e)).done;)if(void 0!==(a=t(r.value)))return a}},function(e,t,n){"use strict";var i=n(843);e.exports=function(e,t,n,r){var a,o=e.length,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(a=Array.from(r)).unshift(t,n),i.apply(e,a);else for(n&&i.apply(e,[t,n]);s1)for(var n=1;ni||n<=0)return"";var r=0;if(t>0){for(;t>0&&r=i)return""}else if(t<0){for(r=i;t<0&&00&&a=h?e?"":void 0:(i=l(f,d))<55296||i>56319||d+1===h||(c=l(f,d+1))<56320||c>57343?e?s(f,d):i:e?u(f,d,d+2):c-56320+(i-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},function(e,t,n){"use strict";var i=n(777),r=n(141),a=n(778),o=r.CODE_POINTS,s=r.CODE_POINT_SEQUENCES,l={0:65533,13:13,128:8364,129:129,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,141:141,142:381,143:143,144:144,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,157:157,158:382,159:376},u="DATA_STATE",c="CHARACTER_REFERENCE_IN_DATA_STATE",f="RCDATA_STATE",d="CHARACTER_REFERENCE_IN_RCDATA_STATE",h="RAWTEXT_STATE",p="SCRIPT_DATA_STATE",g="PLAINTEXT_STATE",_="TAG_OPEN_STATE",m="END_TAG_OPEN_STATE",F="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",v="RCDATA_END_TAG_NAME_STATE",k="RAWTEXT_LESS_THAN_SIGN_STATE",E="RAWTEXT_END_TAG_OPEN_STATE",w="RAWTEXT_END_TAG_NAME_STATE",x="SCRIPT_DATA_LESS_THAN_SIGN_STATE",C="SCRIPT_DATA_END_TAG_OPEN_STATE",D="SCRIPT_DATA_END_TAG_NAME_STATE",T="SCRIPT_DATA_ESCAPE_START_STATE",S="SCRIPT_DATA_ESCAPE_START_DASH_STATE",A="SCRIPT_DATA_ESCAPED_STATE",O="SCRIPT_DATA_ESCAPED_DASH_STATE",I="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",M="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",P="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",R="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",j="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",N="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",L="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",q="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",z="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",U="BEFORE_ATTRIBUTE_NAME_STATE",H="ATTRIBUTE_NAME_STATE",K="AFTER_ATTRIBUTE_NAME_STATE",W="BEFORE_ATTRIBUTE_VALUE_STATE",G="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",V="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",Y="ATTRIBUTE_VALUE_UNQUOTED_STATE",X="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE",$="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",J="SELF_CLOSING_START_TAG_STATE",Q="BOGUS_COMMENT_STATE",Z="BOGUS_COMMENT_STATE_CONTINUATION",ee="MARKUP_DECLARATION_OPEN_STATE",te="COMMENT_START_STATE",ne="COMMENT_START_DASH_STATE",ie="COMMENT_STATE",re="COMMENT_END_DASH_STATE",ae="COMMENT_END_STATE",oe="COMMENT_END_BANG_STATE",se="DOCTYPE_STATE",le="DOCTYPE_NAME_STATE",ue="AFTER_DOCTYPE_NAME_STATE",ce="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",fe="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",de="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",he="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",pe="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ge="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",_e="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",me="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Fe="BOGUS_DOCTYPE_STATE",ye="CDATA_SECTION_STATE";function be(e){return e===o.SPACE||e===o.LINE_FEED||e===o.TABULATION||e===o.FORM_FEED}function ve(e){return e>=o.DIGIT_0&&e<=o.DIGIT_9}function ke(e){return e>=o.LATIN_CAPITAL_A&&e<=o.LATIN_CAPITAL_Z}function Ee(e){return e>=o.LATIN_SMALL_A&&e<=o.LATIN_SMALL_Z}function we(e){return Ee(e)||ke(e)}function xe(e,t){return ve(e)||t&&(e>=o.LATIN_CAPITAL_A&&e<=o.LATIN_CAPITAL_F||e>=o.LATIN_SMALL_A&&e<=o.LATIN_SMALL_F)}function Ce(e){return e+32}function De(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function Te(e){return String.fromCharCode(Ce(e))}function Se(e,t){for(var n=a[++e],i=++e,r=i+n-1;i<=r;){var o=i+r>>>1,s=a[o];if(st))return a[o+n];r=o-1}}return-1}var Ae=e.exports=function(){this.preprocessor=new i,this.tokenQueue=[],this.allowCDATA=!1,this.state=u,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null};Ae.CHARACTER_TOKEN="CHARACTER_TOKEN",Ae.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ae.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ae.START_TAG_TOKEN="START_TAG_TOKEN",Ae.END_TAG_TOKEN="END_TAG_TOKEN",Ae.COMMENT_TOKEN="COMMENT_TOKEN",Ae.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ae.EOF_TOKEN="EOF_TOKEN",Ae.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ae.MODE={DATA:u,RCDATA:f,RAWTEXT:h,SCRIPT_DATA:p,PLAINTEXT:g},Ae.getTokenAttr=function(e,t){for(var n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},Ae.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()},Ae.prototype.write=function(e,t){this.active=!0,this.preprocessor.write(e,t)},Ae.prototype.insertHtmlAtCurrentPos=function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)},Ae.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0},Ae.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ae.HIBERNATION_TOKEN}),!0}return!1},Ae.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},Ae.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat()},Ae.prototype._unconsumeSeveral=function(e){for(;e--;)this._unconsume()},Ae.prototype._reconsumeInState=function(e){this.state=e,this._unconsume()},Ae.prototype._consumeSubsequentIfMatch=function(e,t,n){for(var i=0,r=!0,a=e.length,s=0,l=t,u=void 0;s0&&(l=this._consume(),i++),l===o.EOF){r=!1;break}if(l!==(u=e[s])&&(n||l!==Ce(u))){r=!1;break}}return r||this._unconsumeSeveral(i),r},Ae.prototype._lookahead=function(){var e=this._consume();return this._unconsume(),e},Ae.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==s.SCRIPT_STRING.length)return!1;for(var e=0;e=55296&&i<=57343||i>1114111?o.REPLACEMENT_CHARACTER:r)},Ae.prototype._consumeNamedEntity=function(e){for(var t=null,n=0,i=null,r=0,s=!1,l=0;l>-1;){var u=a[l],c=u<7;if(c&&1&u&&(t=2&u?[a[++l],a[++l]]:[a[++l]],n=r,i===o.SEMICOLON)){s=!0;break}if(r++,(i=this._consume())===o.EOF)break;l=c?4&u?Se(l,i):-1:i===u?++l:-1}if(t){if(!s&&(this._unconsumeSeveral(r-n),e)){var f=this._lookahead();if(f===o.EQUALS_SIGN||function(e){return we(e)||ve(e)}(f))return this._unconsumeSeveral(n),null}return t}return this._unconsumeSeveral(r),null},Ae.prototype._consumeCharacterReference=function(e,t){if(be(e)||e===o.GREATER_THAN_SIGN||e===o.AMPERSAND||e===this.additionalAllowedCp||e===o.EOF)return this._unconsume(),null;if(e===o.NUMBER_SIGN){var n=!1,i=this._lookahead();return i!==o.LATIN_SMALL_X&&i!==o.LATIN_CAPITAL_X||(this._consume(),n=!0),(i=this._lookahead())!==o.EOF&&xe(i,n)?[this._consumeNumericEntity(n)]:(this._unconsumeSeveral(n?2:1),null)}return this._unconsume(),this._consumeNamedEntity(t)};var Oe=Ae.prototype;Oe[u]=function(e){this.preprocessor.dropParsedChunk(),e===o.AMPERSAND?this.state=c:e===o.LESS_THAN_SIGN?this.state=_:e===o.NULL?this._emitCodePoint(e):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[c]=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=u)},Oe[f]=function(e){this.preprocessor.dropParsedChunk(),e===o.AMPERSAND?this.state=d:e===o.LESS_THAN_SIGN?this.state=y:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[d]=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=f)},Oe[h]=function(e){this.preprocessor.dropParsedChunk(),e===o.LESS_THAN_SIGN?this.state=k:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[p]=function(e){this.preprocessor.dropParsedChunk(),e===o.LESS_THAN_SIGN?this.state=x:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[g]=function(e){this.preprocessor.dropParsedChunk(),e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[_]=function(e){e===o.EXCLAMATION_MARK?this.state=ee:e===o.SOLIDUS?this.state=m:we(e)?(this._createStartTagToken(),this._reconsumeInState(F)):e===o.QUESTION_MARK?this._reconsumeInState(Q):(this._emitChar("<"),this._reconsumeInState(u))},Oe[m]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(F)):e===o.GREATER_THAN_SIGN?this.state=u:e===o.EOF?(this._reconsumeInState(u),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState(Q)},Oe[F]=function(e){be(e)?this.state=U:e===o.SOLIDUS?this.state=J:e===o.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):ke(e)?this.currentToken.tagName+=Te(e):e===o.NULL?this.currentToken.tagName+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(u):this.currentToken.tagName+=De(e)},Oe[y]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=b):(this._emitChar("<"),this._reconsumeInState(f))},Oe[b]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(v)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(f))},Oe[v]=function(e){if(ke(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(be(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this.state=u,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(f)}},Oe[k]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=E):(this._emitChar("<"),this._reconsumeInState(h))},Oe[E]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(w)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(h))},Oe[w]=function(e){if(ke(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(be(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(h)}},Oe[x]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=C):e===o.EXCLAMATION_MARK?(this.state=T,this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState(p))},Oe[C]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(D)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(p))},Oe[D]=function(e){if(ke(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(be(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(p)}},Oe[T]=function(e){e===o.HYPHEN_MINUS?(this.state=S,this._emitChar("-")):this._reconsumeInState(p)},Oe[S]=function(e){e===o.HYPHEN_MINUS?(this.state=I,this._emitChar("-")):this._reconsumeInState(p)},Oe[A]=function(e){e===o.HYPHEN_MINUS?(this.state=O,this._emitChar("-")):e===o.LESS_THAN_SIGN?this.state=M:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._reconsumeInState(u):this._emitCodePoint(e)},Oe[O]=function(e){e===o.HYPHEN_MINUS?(this.state=I,this._emitChar("-")):e===o.LESS_THAN_SIGN?this.state=M:e===o.NULL?(this.state=A,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(u):(this.state=A,this._emitCodePoint(e))},Oe[I]=function(e){e===o.HYPHEN_MINUS?this._emitChar("-"):e===o.LESS_THAN_SIGN?this.state=M:e===o.GREATER_THAN_SIGN?(this.state=p,this._emitChar(">")):e===o.NULL?(this.state=A,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(u):(this.state=A,this._emitCodePoint(e))},Oe[M]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=P):we(e)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState(j)):(this._emitChar("<"),this._reconsumeInState(A))},Oe[P]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(R)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(A))},Oe[R]=function(e){if(ke(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(be(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(A)}},Oe[j]=function(e){be(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?N:A,this._emitCodePoint(e)):ke(e)?(this.tempBuff.push(Ce(e)),this._emitCodePoint(e)):Ee(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(A)},Oe[N]=function(e){e===o.HYPHEN_MINUS?(this.state=B,this._emitChar("-")):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._reconsumeInState(u):this._emitCodePoint(e)},Oe[B]=function(e){e===o.HYPHEN_MINUS?(this.state=L,this._emitChar("-")):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.NULL?(this.state=N,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(u):(this.state=N,this._emitCodePoint(e))},Oe[L]=function(e){e===o.HYPHEN_MINUS?this._emitChar("-"):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.GREATER_THAN_SIGN?(this.state=p,this._emitChar(">")):e===o.NULL?(this.state=N,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(u):(this.state=N,this._emitCodePoint(e))},Oe[q]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=z,this._emitChar("/")):this._reconsumeInState(N)},Oe[z]=function(e){be(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?A:N,this._emitCodePoint(e)):ke(e)?(this.tempBuff.push(Ce(e)),this._emitCodePoint(e)):Ee(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(N)},Oe[U]=function(e){be(e)||(e===o.SOLIDUS||e===o.GREATER_THAN_SIGN||e===o.EOF?this._reconsumeInState(K):e===o.EQUALS_SIGN?(this._createAttr("="),this.state=H):(this._createAttr(""),this._reconsumeInState(H)))},Oe[H]=function(e){be(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN||e===o.EOF?(this._leaveAttrName(K),this._unconsume()):e===o.EQUALS_SIGN?this._leaveAttrName(W):ke(e)?this.currentAttr.name+=Te(e):e===o.QUOTATION_MARK||e===o.APOSTROPHE||e===o.LESS_THAN_SIGN?this.currentAttr.name+=De(e):e===o.NULL?this.currentAttr.name+=r.REPLACEMENT_CHARACTER:this.currentAttr.name+=De(e)},Oe[K]=function(e){be(e)||(e===o.SOLIDUS?this.state=J:e===o.EQUALS_SIGN?this.state=W:e===o.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===o.EOF?this._reconsumeInState(u):(this._createAttr(""),this._reconsumeInState(H)))},Oe[W]=function(e){be(e)||(e===o.QUOTATION_MARK?this.state=G:e===o.APOSTROPHE?this.state=V:this._reconsumeInState(Y))},Oe[G]=function(e){e===o.QUOTATION_MARK?this.state=$:e===o.AMPERSAND?(this.additionalAllowedCp=o.QUOTATION_MARK,this.returnState=this.state,this.state=X):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(u):this.currentAttr.value+=De(e)},Oe[V]=function(e){e===o.APOSTROPHE?this.state=$:e===o.AMPERSAND?(this.additionalAllowedCp=o.APOSTROPHE,this.returnState=this.state,this.state=X):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(u):this.currentAttr.value+=De(e)},Oe[Y]=function(e){be(e)?this._leaveAttrValue(U):e===o.AMPERSAND?(this.additionalAllowedCp=o.GREATER_THAN_SIGN,this.returnState=this.state,this.state=X):e===o.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.QUOTATION_MARK||e===o.APOSTROPHE||e===o.LESS_THAN_SIGN||e===o.EQUALS_SIGN||e===o.GRAVE_ACCENT?this.currentAttr.value+=De(e):e===o.EOF?this._reconsumeInState(u):this.currentAttr.value+=De(e)},Oe[X]=function(e){var t=this._consumeCharacterReference(e,!0);if(!this._ensureHibernation()){if(t)for(var n=0;nc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var i=n(3),r=n(10),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n==c||n!=u&&(r(t)?i(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var i=n(270),r=n(202);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(82),r=n(21),a=n(83),o=Array,s=Math.max;e.exports=function(e,t,n){for(var l=r(e),u=i(t,l),c=i(void 0===n?l:n,l),f=o(s(c-u,0)),d=0;u=51||!i((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var i=n(6),r=n(15),a=n(7),o=n(92),s=n(134),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return a(i(n,e));throw l(o(e)+" is not iterable")}},function(e,t,n){var i=n(66),r=n(61),a=n(32),o=n(109),s=n(8)("iterator");e.exports=function(e){if(!a(e))return r(e,s)||r(e,"@@iterator")||o[i(e)]}},function(e,t,n){"use strict";var i=n(280).IteratorPrototype,r=n(54),a=n(65),o=n(62),s=n(109),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=r(i,{next:a(+!u,n)}),o(e,c,!1,!0),s[c]=l,e}},function(e,t){var n=TypeError;e.exports=function(e,t){if(e0&&n.push(i("text","\n"));return n};var i=n(57)},function(e,t,n){"use strict";var i=n(12).OrderedMap,r={createFromArray:function(e){return i(e.map((function(e){return[e.getKey(),e]})))}};e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t,n,i){if(e.size){var r=0;e.reduce((function(e,a,o){return t(e,a)||(n(e)&&i(r,o),r=o),a})),n(e.last())&&i(r,e.count())}}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},function(e,t,n){"use strict";var i=n(44),r=n(91)("draft_tree_data_support");e.exports=function(e,t,n){var a=e.getSelection(),o=e.getCurrentContent(),s=a,l=a.getAnchorKey(),u=a.getFocusKey(),c=o.getBlockForKey(l);if(r&&"forward"===n&&l!==u)return o;if(a.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(r)if(a.getAnchorOffset()===o.getBlockForKey(l).getLength()){var f=o.getBlockForKey(c.nextSibling);if(!f||0===f.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((s=t(e))===a)return o}return i.removeRange(o,s,n)}},function(e,t,n){"use strict";function i(e,t){return!(!t||!r(e))||(n=e,"[object String]"===Object.prototype.toString.call(n)&&(e=e.replace(/\s/g,"").replace(/\n|\r/,""),/^\{(.*?)\}$/.test(e)?/"(.*?)":(.*?)/g.test(e):!!/^\[(.*?)\]$/.test(e)&&e.replace(/^\[/,"").replace(/\]$/,"").replace(/},{/g,"}\n{").split(/\n/).map((function(e){return i(e)})).reduce((function(e,t){return!!t}))));var n}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}e.exports=i,i.strict=function(e){if(r(e))return!0;try{return JSON.parse(e)&&!0}catch(t){return!1}}},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},function(e,t,n){var i=n(4),r=n(3),a=n(48),o=Object,s=i("".split);e.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):o(e)}:o},function(e,t,n){var i=n(6),r=n(11),a=n(107),o=n(61),s=n(266),l=n(8),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||a(e))return e;var n,l=o(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||a(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,n){var i=n(5),r=n(11),a=i.document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var i=n(93),r=n(124),a=i("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(6),r=n(7),a=n(61);e.exports=function(e,t,n){var o,s;r(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=i(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw n;if(s)throw o;return r(o),n}},function(e,t,n){var i=n(8)("iterator"),r=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){r=!0}};o[i]=function(){return this},Array.from(o,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var a={};a[i]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(s){}return n}},function(e,t,n){"use strict";var i=n(47),r=n(67),a=n(109),o=n(29),s=n(27).f,l=n(210),u=n(111),c=n(33),f=n(9),d="Array Iterator",h=o.set,p=o.getterFor(d);e.exports=l(Array,"Array",(function(e,t){h(this,{type:d,target:i(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?i:"values"==n?t[i]:[i,t[i]],!1)}),"values");var g=a.Arguments=a.Array;if(r("keys"),r("values"),r("entries"),!c&&f&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(_){}},function(e,t,n){var i=n(15),r=n(17),a=n(151),o=n(21),s=TypeError,l=function(e){return function(t,n,l,u){i(n);var c=r(t),f=a(c),d=o(c),h=e?d-1:0,p=e?-1:1;if(l<2)for(;;){if(h in f){u=f[h],h+=p;break}if(h+=p,e?h<0:d<=h)throw s("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=p)h in f&&(u=n(u,f[h],h,c));return u}};e.exports={left:l(!1),right:l(!0)}},function(e,t,n){var i=n(95),r=n(92),a=TypeError;e.exports=function(e){if(i(e))return e;throw a(r(e)+" is not a constructor")}},function(e,t,n){"use strict";var i=n(1),r=n(5),a=n(4),o=n(128),s=n(28),l=n(99),u=n(41),c=n(72),f=n(10),d=n(32),h=n(11),p=n(3),g=n(157),_=n(62),m=n(162);e.exports=function(e,t,n){var F=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=F?"set":"add",v=r[e],k=v&&v.prototype,E=v,w={},x=function(e){var t=a(k[e]);s(k,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return y&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(o(e,!f(v)||!(y||k.forEach&&!p((function(){(new v).entries().next()})))))E=n.getConstructor(t,e,F,b),l.enable();else if(o(e,!0)){var C=new E,D=C[b](y?{}:-0,1)!=C,T=p((function(){C.has(1)})),S=g((function(e){new v(e)})),A=!y&&p((function(){for(var e=new v,t=5;t--;)e[b](t,t);return!e.has(-0)}));S||((E=t((function(e,t){c(e,k);var n=m(new v,e,E);return d(t)||u(t,n[b],{that:n,AS_ENTRIES:F}),n}))).prototype=k,k.constructor=E),(T||A)&&(x("delete"),x("has"),F&&x("get")),(A||D)&&x(b),y&&k.clear&&delete k.clear}return w[e]=E,i({global:!0,constructor:!0,forced:E!=v},w),_(E,e),y||n.setStrong(E,e,F),E}},function(e,t,n){var i=n(10),r=n(11),a=n(71);e.exports=function(e,t,n){var o,s;return a&&i(o=t.constructor)&&o!==n&&r(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},function(e,t){var n=Math.expm1,i=Math.exp;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){var t=+e;return 0==t?t:t>-1e-6&&t<1e-6?t+t*t/2:i(t)-1}:n},function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t,n){"use strict";var i=n(33),r=n(5),a=n(3),o=n(213);e.exports=i||!a((function(){if(!(o&&o<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete r[e]}}))},function(e,t,n){var i,r,a,o,s=n(5),l=n(55),u=n(22),c=n(10),f=n(16),d=n(3),h=n(272),p=n(85),g=n(153),_=n(136),m=n(294),F=n(96),y=s.setImmediate,b=s.clearImmediate,v=s.process,k=s.Dispatch,E=s.Function,w=s.MessageChannel,x=s.String,C=0,D={},T="onreadystatechange";d((function(){i=s.location}));var S=function(e){if(f(D,e)){var t=D[e];delete D[e],t()}},A=function(e){return function(){S(e)}},O=function(e){S(e.data)},I=function(e){s.postMessage(x(e),i.protocol+"//"+i.host)};y&&b||(y=function(e){_(arguments.length,1);var t=c(e)?e:E(e),n=p(arguments,1);return D[++C]=function(){l(t,void 0,n)},r(C),C},b=function(e){delete D[e]},F?r=function(e){v.nextTick(A(e))}:k&&k.now?r=function(e){k.now(A(e))}:w&&!m?(o=(a=new w).port2,a.port1.onmessage=O,r=u(o.postMessage,o)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!d(I)?(r=I,s.addEventListener("message",O,!1)):r=T in g("script")?function(e){h.appendChild(g("script"))[T]=function(){h.removeChild(this),S(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:y,clear:b}},function(e,t,n){var i=n(117),r=n(157),a=n(137).CONSTRUCTOR;e.exports=a||!r((function(e){i.all(e).then(void 0,(function(){}))}))},function(e,t,n){var i=n(6),r=n(16),a=n(60),o=n(221),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!a(s,e)?t:i(o,e)}},function(e,t,n){"use strict";var i=n(6),r=n(4),a=n(13),o=n(221),s=n(222),l=n(93),u=n(54),c=n(29).get,f=n(301),d=n(302),h=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,_=r("".charAt),m=r("".indexOf),F=r("".replace),y=r("".slice),b=function(){var e=/a/,t=/b*/g;return i(p,e,"a"),i(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),v=s.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(b||k||v||f||d)&&(g=function(e){var t,n,r,s,l,f,d,E=this,w=c(E),x=a(e),C=w.raw;if(C)return C.lastIndex=E.lastIndex,t=i(g,C,x),E.lastIndex=C.lastIndex,t;var D=w.groups,T=v&&E.sticky,S=i(o,E),A=E.source,O=0,I=x;if(T&&(S=F(S,"y",""),-1===m(S,"g")&&(S+="g"),I=y(x,E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&"\n"!==_(x,E.lastIndex-1))&&(A="(?: "+A+")",I=" "+I,O++),n=new RegExp("^(?:"+A+")",S)),k&&(n=new RegExp("^"+A+"$(?!\\s)",S)),b&&(r=E.lastIndex),s=i(p,T?n:E,I),T?s?(s.input=y(s.input,O),s[0]=y(s[0],O),s.index=E.lastIndex,E.lastIndex+=s[0].length):E.lastIndex=0:b&&s&&(E.lastIndex=E.global?s.index+s[0].length:r),k&&s&&s.length>1&&i(h,s[0],n,(function(){for(l=1;l1?arguments[1]:void 0;return o(this),(t=void 0!==h)&&a(h),s(e)?new this:(n=[],t?(c=0,f=i(h,d>2?arguments[2]:void 0),l(e,(function(e){r(u,n,f(e,c++))}))):l(e,u,{that:n}),new this(n))}},function(e,t,n){"use strict";var i=n(85);e.exports=function(){return new this(i(arguments))}},function(e,t,n){"use strict";(e.exports=function(e){var t={},n=this._getOverriddenMethods(this,t);Object.keys(n).forEach((function(i){"function"===typeof n[i]&&(t[i]=e[i],e[i]=n[i])}))}).prototype._getOverriddenMethods=function(){throw new Error("Not implemented")}},function(e,t,n){e.exports=r;var i=n(235).EventEmitter;function r(){i.call(this)}n(120)(r,i),r.Readable=n(236),r.Writable=n(797),r.Duplex=n(798),r.Transform=n(799),r.PassThrough=n(800),r.Stream=r,r.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",r),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},function(e,t,n){"use strict";(function(t){"undefined"===typeof t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,i,r){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,i)}));case 4:return t.nextTick((function(){e.call(null,n,i,r)}));default:for(a=new Array(s-1),o=0;o=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&l<=57343){c+=encodeURIComponent(e[a]+e[a+1]),a++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[a]);return c}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r},function(e,t,n){"use strict";var i=0;function r(){return Math.pow(2,++i)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},function(e,t,n){"use strict";var i=n(370),r=n(371);e.exports=function(e,t){var n=t.getStartKey(),a=t.getStartOffset(),o=t.getEndKey(),s=t.getEndOffset(),l=r(e,t).getBlockMap(),u=l.keySeq(),c=u.indexOf(n),f=u.indexOf(o)+1;return i(l.slice(c,f).map((function(e,t){var i=e.getText(),r=e.getCharacterList();return n===o?e.merge({text:i.slice(a,s),characterList:r.slice(a,s)}):t===n?e.merge({text:i.slice(a),characterList:r.slice(a)}):t===o?e.merge({text:i.slice(0,s),characterList:r.slice(0,s)}):e})))}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(376),a=n(12),o=n(14),s=n(936),l=(0,a.Map)(),u=s();var c={getLastCreatedEntityKey:function(){return c.__getLastCreatedEntityKey()},create:function(e,t,n){return c.__create(e,t,n)},add:function(e){return c.__add(e)},get:function(e){return c.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,u=s()},mergeData:function(e,t){return c.__mergeData(e,t)},replaceData:function(e,t){return c.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,n){return c.__add(new r({type:e,mutability:t,data:n||{}}))},__add:function(e){return u=s(),l=l.set(u,e),u},__get:function(e){var t=l.get(e);return t||o(!1),t},__mergeData:function(e,t){var n=c.__get(e),r=function(e){for(var t=1;t=s},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},i.createEmpty=function(e){return new i({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},i}((0,n(12).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=i},function(e,t,n){"use strict";var i=n(14),r="LTR",a="RTL",o=null;function s(e){return e===r||e===a}function l(e){return s(e)||i(!1),e===r?"ltr":"rtl"}function u(e){o=e}var c={NEUTRAL:"NEUTRAL",LTR:r,RTL:a,isStrong:s,getHTMLDir:l,getHTMLDirIfDifferent:function(e,t){return s(e)||i(!1),s(t)||i(!1),e===t?null:l(e)},setGlobalDir:u,initGlobalDir:function(){u(r)},getGlobalDir:function(){return o||this.initGlobalDir(),o||i(!1),o}};e.exports=c},function(e,t,n){"use strict";var i=n(188),r=n(379);e.exports=function(e){for(var t=e;t&&t!==i(e).documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},function(e,t,n){"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},function(e,t,n){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function i(e,t){var n=r.get(e,t);return"auto"===n||"scroll"===n}var r={get:n(959),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(i(e,"overflow")||i(e,"overflowY")||i(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=r},function(e,t,n){"use strict";var i=n(963),r=n(964);e.exports=function(e){var t=i(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=r(e),a=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-a.clientWidth,s=e.scrollHeight-a.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t,n){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";var i=n(776),r=n(0),a=n(806),o=n(807);function s(e,t){if("#text"===e.nodeName)return e.value;if("#comment"===e.nodeName)return e.value;var n=e.attrs.reduce((function(e,t){var n=a(t.name);return e[n]="style"===n?o(t.value):t.value,e}),{key:t});if(0===e.childNodes.length)return r.createElement(e.tagName,n);if("script"===e.nodeName)return n.dangerouslySetInnerHTML={__html:e.childNodes[0].value},r.createElement("script",n);var i=e.childNodes.map(s);return r.createElement(e.tagName,n,i)}e.exports=function(e){var t=i.parseFragment(e);if(0===t.childNodes.length)return null;var n=t.childNodes.map(s);return 1===n.length?n[0]:n}},function(e,t,n){"use strict";var i=function(){};e.exports=i},function(e,t,n){var i=n(5),r=n(197),a="__core-js_shared__",o=i[a]||r(a,{});e.exports=o},function(e,t,n){var i=n(5),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},function(e,t,n){var i=n(4),r=n(3),a=n(10),o=n(16),s=n(9),l=n(125).CONFIGURABLE,u=n(199),c=n(29),f=c.enforce,d=c.get,h=String,p=Object.defineProperty,g=i("".slice),_=i("".replace),m=i([].join),F=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===g(h(t),0,7)&&(t="["+_(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),F&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=f(e);return o(i,"source")||(i.source=m(y,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return a(this)&&d(this).source||u(this)}),"toString")},function(e,t,n){var i=n(4),r=n(10),a=n(196),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},function(e,t,n){var i=n(16),r=n(201),a=n(35),o=n(27);e.exports=function(e,t,n){for(var s=r(t),l=o.f,u=a.f,c=0;cc;)a.f(e,n=r[c++],i[n]);return e}},function(e,t,n){var i=n(48),r=n(47),a=n(81).f,o=n(130),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==i(e)?function(e){try{return a(e)}catch(t){return o(s)}}(e):a(r(e))}},function(e,t){var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},function(e,t,n){"use strict";var i=n(92),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw r("Cannot delete property "+i(t)+" of "+i(e))}},function(e,t,n){"use strict";var i=n(17),r=n(82),a=n(21);e.exports=function(e){for(var t=i(this),n=a(t),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){var i=n(8),r=n(109),a=i("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[a]===e)}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(33),o=n(125),s=n(10),l=n(135),u=n(39),c=n(71),f=n(62),d=n(49),h=n(28),p=n(8),g=n(109),_=n(280),m=o.PROPER,F=o.CONFIGURABLE,y=_.IteratorPrototype,b=_.BUGGY_SAFARI_ITERATORS,v=p("iterator"),k="keys",E="values",w="entries",x=function(){return this};e.exports=function(e,t,n,o,p,_,C){l(n,t,o);var D,T,S,A=function(e){if(e===p&&R)return R;if(!b&&e in M)return M[e];switch(e){case k:case E:case w:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",I=!1,M=e.prototype,P=M[v]||M["@@iterator"]||p&&M[p],R=!b&&P||A(p),j="Array"==t&&M.entries||P;if(j&&(D=u(j.call(new e)))!==Object.prototype&&D.next&&(a||u(D)===y||(c?c(D,y):s(D[v])||h(D,v,x)),f(D,O,!0,!0),a&&(g[O]=x)),m&&p==E&&P&&P.name!==E&&(!a&&F?d(M,"name",E):(I=!0,R=function(){return r(P,this)})),p)if(T={values:A(E),keys:_?R:A(k),entries:A(w)},C)for(S in T)(b||I||!(S in M))&&h(M,S,T[S]);else i({target:t,proto:!0,forced:b||I},T);return a&&!C||M[v]===R||h(M,v,R,{name:p}),g[t]=R,T}},function(e,t,n){var i=n(3);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var i=n(130),r=Math.floor,a=function(e,t){for(var n,i,r=e.length,a=1;a0;)e[i]=e[--i];i!==a++&&(e[i]=n)}return e},o=function(e,t,n,i){for(var r=t.length,a=n.length,o=0,s=0;o>8&255]},V=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},X=function(e){return H(e,23,4)},$=function(e){return H(e,52,8)},J=function(e,t,n){u(e[T],t,{configurable:!0,get:function(){return n(this)[t]}})},Q=function(e,t,n,i){var r=g(n),a=O(e);if(r+t>a.byteLength)throw q(S);var o=a.bytes,s=r+a.byteOffset,l=v(o,s,s+t);return i?l:U(l)},Z=function(e,t,n,i,r,a){var o=g(n),s=O(e);if(o+t>s.byteLength)throw q(S);for(var l=s.bytes,u=o+s.byteOffset,c=i(+r),f=0;fie;)(te=ne[ie++])in P||l(P,te,M[te]);R.constructor=P}F&&m(N)!==B&&F(N,B);var re=new j(new P(2)),ae=r(N.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||c(N,{setInt8:function(e,t){ae(this,e,t<<24>>24)},setUint8:function(e,t){ae(this,e,t<<24>>24)}},{unsafe:!0})}else R=(P=function(e){d(this,R);var t=g(e);I(this,{type:C,bytes:z(L(t),0),byteLength:t}),a||(this.byteLength=t,this.detached=!1)})[T],N=(j=function(e,t,n){d(this,N),d(e,R);var i=A(e),r=i.byteLength,o=h(t);if(o<0||o>r)throw q("Wrong offset");if(o+(n=void 0===n?r-o:p(n))>r)throw q("Wrong length");I(this,{type:D,buffer:e,byteLength:n,byteOffset:o,bytes:i.bytes}),a||(this.buffer=e,this.byteLength=n,this.byteOffset=o)})[T],a&&(J(P,"byteLength",A),J(j,"buffer",O),J(j,"byteLength",O),J(j,"byteOffset",O)),c(N,{getInt8:function(e){return Q(this,1,e)[0]<<24>>24},getUint8:function(e){return Q(this,1,e)[0]},getInt16:function(e){var t=Q(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Q(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Y(Q(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Y(Q(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return K(Q(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return K(Q(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Z(this,1,e,W,t)},setUint8:function(e,t){Z(this,1,e,W,t)},setInt16:function(e,t){Z(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Z(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Z(this,4,e,V,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Z(this,4,e,V,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Z(this,4,e,X,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Z(this,8,e,$,t,arguments.length>2?arguments[2]:void 0)}});k(P,C),k(j,D),e.exports={ArrayBuffer:P,DataView:j}},function(e,t,n){n(476)},function(e,t,n){var i=n(3),r=n(11),a=n(48),o=n(217),s=Object.isExtensible,l=i((function(){s(1)}));e.exports=l||o?function(e){return!!r(e)&&((!o||"ArrayBuffer"!=a(e))&&(!s||s(e)))}:s},function(e,t,n){var i=n(3);e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t){e.exports=Math.sign||function(e){var t=+e;return 0==t||t!=t?t:t<0?-1:1}},function(e,t,n){var i=n(11),r=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){var i=n(5),r=n(3),a=n(4),o=n(13),s=n(115).trim,l=n(164),u=i.parseInt,c=i.Symbol,f=c&&c.iterator,d=/^[+-]?0x/i,h=a(d.exec),p=8!==u(l+"08")||22!==u(l+"0x16")||f&&!r((function(){u(Object(f))}));e.exports=p?function(e,t){var n=s(o(e));return u(n,t>>>0||(h(d,n)?16:10))}:u},function(e,t,n){"use strict";var i=n(7);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){var i=n(3),r=n(5).RegExp,a=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),o=a||i((function(){return!r("a","y").sticky})),s=a||i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},function(e,t,n){var i=n(138),r=TypeError;e.exports=function(e){if(i(e))throw r("The method doesn't accept regular expressions");return e}},function(e,t,n){var i=n(8)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},function(e,t,n){var i=n(125).PROPER,r=n(3),a=n(164);e.exports=function(e){return r((function(){return!!a[e]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[e]()||i&&a[e].name!==e}))}},function(e,t,n){var i=n(5),r=n(3),a=n(157),o=n(18).NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;e.exports=!o||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!a((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},function(e,t,n){var i=n(18),r=n(113),a=i.aTypedArrayConstructor,o=i.getTypedArrayConstructor;e.exports=function(e){return a(r(e,o(e)))}},function(e,t,n){n(617)},function(e,t,n){var i=n(5),r=n(10),a=n(8)("observable"),o=i.Observable,s=o&&o.prototype;e.exports=!r(o)||!r(o.from)||!r(o.of)||!r(s.subscribe)||!r(s[a])},function(e,t,n){var i=n(42),r=n(56),a=i.Set,o=i.add;e.exports=function(e){var t=new a;return r(e,(function(e){o(t,e)})),t}},function(e,t,n){var i=n(4),r=WeakSet.prototype;e.exports={WeakSet:WeakSet,add:i(r.add),has:i(r.has),remove:i(r.delete)}},function(e,t,n){"use strict";var i=n(68).DOCUMENT_MODE;t.createDocument=function(){return{nodeName:"#document",mode:i.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};var r=function(e){return{nodeName:"#text",value:e,parentNode:null}},a=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},o=t.insertBefore=function(e,t,n){var i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,i){for(var r=null,o=0;o-1)return i.QUIRKS;var u=null===n?a:r;if(c(t,u))return i.QUIRKS;if(c(t,u=null===n?s:l))return i.LIMITED_QUIRKS}return i.NO_QUIRKS},t.serializeContent=function(e,t,n){var i="!DOCTYPE ";return e&&(i+=e),null!==t?i+=" PUBLIC "+u(t):null!==n&&(i+=" SYSTEM"),null!==n&&(i+=" "+u(n)),i}},function(e,t,n){"use strict";var i,r="object"===typeof Reflect?Reflect:null,a=r&&"function"===typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,a),i(n)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,r,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,i){var r,a,o;if(u(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"===typeof o?o=a[t]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),(r=c(e))>0&&o.length>r&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,console&&console.warn}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=d.bind(i);return r.listener=n,i.wrapFn=r,r}function p(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"===typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=r[e];if(void 0===l)return!1;if("function"===typeof l)a(l,this,t);else{var u=l.length,c=_(l,u);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,r=a;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){(t=e.exports=n(331)).Stream=t,t.Readable=t,t.Writable=n(239),t.Duplex=n(102),t.Transform=n(336),t.PassThrough=n(796)},function(e,t,n){var i=n(238),r=i.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),a(r,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";(function(e){var i=n(787),r=n(788),a=n(789);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return z(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function _(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:F(e,t,n,i,r);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):F(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function F(e,t,n,i,r){var a,o=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var c=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var f=!0,d=0;dr&&(i=r):i=r;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o>8,r=n%256,a.push(r),a.push(i);return a}(t,e.length-n),e,n,i)}function x(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r239?4:u>223?3:u>191?2:1;if(r+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128===(192&(a=e[r+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[r+1],o=e[r+2],128===(192&a)&&128===(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[r+1],o=e[r+2],s=e[r+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=f}return function(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,i,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(i,r),c=e.slice(t,n),f=0;fr)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function T(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;ri)&&(n=i);for(var r="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,i,r,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function P(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function R(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function j(e,t,n,i,r,a){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,i,a){return a||j(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function B(e,t,n,i,a){return a||j(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=this[e],r=1,a=0;++a=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=t,r=1,a=this[e+--i];i>0&&(r*=256);)a+=this[e+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+r]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function U(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function H(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(52))},function(e,t,n){"use strict";(function(t,i,r){var a=n(176);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=F;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:a.nextTick;F.WritableState=m;var u=Object.create(n(142));u.inherits=n(120);var c={deprecate:n(794)},f=n(332),d=n(237).Buffer,h=("undefined"!==typeof r?r:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var p,g=n(333);function _(){}function m(e,t){s=s||n(102),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,r=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,r){--t.pendingcb,n?(a.nextTick(r,i),a.nextTick(w,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(r(i),e._writableState.errorEmitted=!0,e.emit("error",i),w(e,t))}(e,n,i,t,r);else{var o=k(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||v(e,n),i?l(b,e,n,o,r):b(e,n,o,r)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function F(e){if(s=s||n(102),!p.call(F,this)&&!(this instanceof s))return new F(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),f.call(this)}function y(e,t,n,i,r,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(r,t.onwrite):e._write(r,a,t.onwrite),t.sync=!1}function b(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),w(e,t)}function v(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,r=new Array(i),a=t.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)r[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;r.allBuffers=l,y(e,t,!0,t.length,r,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,f=n.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),w(e,t)}))}function w(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(F,f),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===F&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},F.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},F.prototype.write=function(e,t,n){var i,r=this._writableState,o=!1,s=!r.objectMode&&(i=e,d.isBuffer(i)||i instanceof h);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=r.defaultEncoding),"function"!==typeof n&&(n=_),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var r=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(i,o),r=!1),r}(this,r,e,n))&&(r.pendingcb++,o=function(e,t,n,i,r,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,n));return t}(t,i,r);i!==o&&(n=!0,r="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),F.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},F.prototype._writev=null,F.prototype.end=function(e,t,n){var i=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,w(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(F.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),F.prototype.destroy=g.destroy,F.prototype._undestroy=g.undestroy,F.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(97),n(793).setImmediate,n(52))},function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,i)}e.exports=n},function(e,t,n){var i=n(819),r=n(820),a=n(821);e.exports=function(e){return i(e)||r(e)||a()}},function(e,t,n){"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e?[]:"length"in e?e:[e]}},function(e,t,n){"use strict";var i=n(88);e.exports=function(e,t){return e.length?(i(e,e.length,0,t),e):t}},function(e,t,n){"use strict";e.exports=function(e,t,n){for(var i,r=[],a=-1;++a-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l)};function l(n){return 40===n?e.attempt(p,t,r?t:u)(n):91===n?e.attempt(g,t,r?e.attempt(_,t,u):u)(n):r?t(n):u(n)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){var n,i,o,u,c,f,d,h=e.length,p=0;for(;h--;)if(u=e[h][1],c){if("link"===u.type||"labelLink"===u.type&&u._inactive)break;"enter"===e[h][0]&&"labelLink"===u.type&&(u._inactive=!0)}else if(f){if("enter"===e[h][0]&&("labelImage"===u.type||"labelLink"===u.type)&&!u._balanced&&(c=h,"labelLink"!==u.type)){p=2;break}}else"labelEnd"===u.type&&(f=h);return n={type:"labelLink"===e[c][1].type?"link":"image",start:l(e[c][1].start),end:l(e[e.length-1][1].end)},i={type:"label",start:l(e[c][1].start),end:l(e[f][1].end)},o={type:"labelText",start:l(e[c+p+2][1].end),end:l(e[f-2][1].start)},d=r(d=[["enter",n,t],["enter",i,t]],e.slice(c+1,c+p+3)),d=r(d,[["enter",o,t]]),d=r(d,s(t.parser.constructs.insideSpan.null,e.slice(c+p+4,f-3),t)),d=r(d,[["exit",o,t],e[f-2],e[f-1],["exit",i,t]]),d=r(d,e.slice(f+1)),d=r(d,[["exit",n,t]]),a(e,c,e.length,d),e},resolveAll:function(e){var t,n=-1;for(;++n1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,n){return u.__create(e,t,n),this},s.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},s.addEntity=function(e){return u.__add(e),this},s.getEntity=function(e){return u.__get(e)},s.getAllEntities=function(){return u.__getAll()},s.loadWithEntities=function(e){return u.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,i=a.createFromArray(n),o=i.isEmpty()?new c:c.createEmpty(i.first().getKey());return new r({blockMap:i,entityMap:t||u,selectionBefore:o,selectionAfter:o})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=g(e),new k({key:f(),text:e,type:"unstyled",characterList:_(F(o.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(i({},e,{blockMap:b(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new c(e.selectionBefore),selectionAfter:new c(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new k(i({},e,{data:y(e.data),characterList:null!=t?_((Array.isArray(t)?t:d(t)).map((function(e){return o.fromJS(e)}))):void 0}))},r}(v);e.exports=E},function(e,t,n){"use strict";var i=n(186),r=n(14),a="\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05cf\u05d0-\u05ea\u05eb-\u05ef\u05f0-\u05f2\u05f3-\u05f4\u05f5-\u05ff\u07c0-\u07c9\u07ca-\u07ea\u07f4-\u07f5\u07fa\u07fb-\u07ff\u0800-\u0815\u081a\u0824\u0828\u082e-\u082f\u0830-\u083e\u083f\u0840-\u0858\u085c-\u085d\u085e\u085f-\u089f\u200f\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb37\ufb38-\ufb3c\ufb3d\ufb3e\ufb3f\ufb40-\ufb41\ufb42\ufb43-\ufb44\ufb45\ufb46-\ufb4f",o="\u0608\u060b\u060d\u061b\u061c\u061d\u061e-\u061f\u0620-\u063f\u0640\u0641-\u064a\u066d\u066e-\u066f\u0671-\u06d3\u06d4\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06fd-\u06fe\u06ff\u0700-\u070d\u070e\u070f\u0710\u0712-\u072f\u074b-\u074c\u074d-\u07a5\u07b1\u07b2-\u07bf\u08a0-\u08b2\u08b3-\u08e3\ufb50-\ufbb1\ufbb2-\ufbc1\ufbc2-\ufbd2\ufbd3-\ufd3d\ufd40-\ufd4f\ufd50-\ufd8f\ufd90-\ufd91\ufd92-\ufdc7\ufdc8-\ufdcf\ufdf0-\ufdfb\ufdfc\ufdfe-\ufdff\ufe70-\ufe74\ufe75\ufe76-\ufefc\ufefd-\ufefe",s=new RegExp("["+"A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u01ba\u01bb\u01bc-\u01bf\u01c0-\u01c3\u01c4-\u0293\u0294\u0295-\u02af\u02b0-\u02b8\u02bb-\u02c1\u02d0-\u02d1\u02e0-\u02e4\u02ee\u0370-\u0373\u0376-\u0377\u037a\u037b-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0482\u048a-\u052f\u0531-\u0556\u0559\u055a-\u055f\u0561-\u0587\u0589\u0903\u0904-\u0939\u093b\u093d\u093e-\u0940\u0949-\u094c\u094e-\u094f\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096f\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09be-\u09c0\u09c7-\u09c8\u09cb-\u09cc\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e1\u09e6-\u09ef\u09f0-\u09f1\u09f4-\u09f9\u09fa\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3e-\u0a40\u0a59-\u0a5c\u0a5e\u0a66-\u0a6f\u0a72-\u0a74\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0abe-\u0ac0\u0ac9\u0acb-\u0acc\u0ad0\u0ae0-\u0ae1\u0ae6-\u0aef\u0af0\u0b02-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b3e\u0b40\u0b47-\u0b48\u0b4b-\u0b4c\u0b57\u0b5c-\u0b5d\u0b5f-\u0b61\u0b66-\u0b6f\u0b70\u0b71\u0b72-\u0b77\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bbf\u0bc1-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0be6-\u0bef\u0bf0-\u0bf2\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c41-\u0c44\u0c58-\u0c59\u0c60-\u0c61\u0c66-\u0c6f\u0c7f\u0c82-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cbe\u0cbf\u0cc0-\u0cc4\u0cc6\u0cc7-\u0cc8\u0cca-\u0ccb\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce1\u0ce6-\u0cef\u0cf1-\u0cf2\u0d02-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d57\u0d60-\u0d61\u0d66-\u0d6f\u0d70-\u0d75\u0d79\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd1\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0df4\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e45\u0e46\u0e4f\u0e50-\u0e59\u0e5a-\u0e5b\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f01-\u0f03\u0f04-\u0f12\u0f13\u0f14\u0f15-\u0f17\u0f1a-\u0f1f\u0f20-\u0f29\u0f2a-\u0f33\u0f34\u0f36\u0f38\u0f3e-\u0f3f\u0f40-\u0f47\u0f49-\u0f6c\u0f7f\u0f85\u0f88-\u0f8c\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce-\u0fcf\u0fd0-\u0fd4\u0fd5-\u0fd8\u0fd9-\u0fda\u1000-\u102a\u102b-\u102c\u1031\u1038\u103b-\u103c\u103f\u1040-\u1049\u104a-\u104f\u1050-\u1055\u1056-\u1057\u105a-\u105d\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106d\u106e-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108c\u108e\u108f\u1090-\u1099\u109a-\u109c\u109e-\u109f\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fb\u10fc\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1360-\u1368\u1369-\u137c\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166d-\u166e\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16eb-\u16ed\u16ee-\u16f0\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17b6\u17be-\u17c5\u17c7-\u17c8\u17d4-\u17d6\u17d7\u17d8-\u17da\u17dc\u17e0-\u17e9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1923-\u1926\u1929-\u192b\u1930-\u1931\u1933-\u1938\u1946-\u194f\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c0\u19c1-\u19c7\u19c8-\u19c9\u19d0-\u19d9\u19da\u1a00-\u1a16\u1a19-\u1a1a\u1a1e-\u1a1f\u1a20-\u1a54\u1a55\u1a57\u1a61\u1a63-\u1a64\u1a6d-\u1a72\u1a80-\u1a89\u1a90-\u1a99\u1aa0-\u1aa6\u1aa7\u1aa8-\u1aad\u1b04\u1b05-\u1b33\u1b35\u1b3b\u1b3d-\u1b41\u1b43-\u1b44\u1b45-\u1b4b\u1b50-\u1b59\u1b5a-\u1b60\u1b61-\u1b6a\u1b74-\u1b7c\u1b82\u1b83-\u1ba0\u1ba1\u1ba6-\u1ba7\u1baa\u1bae-\u1baf\u1bb0-\u1bb9\u1bba-\u1be5\u1be7\u1bea-\u1bec\u1bee\u1bf2-\u1bf3\u1bfc-\u1bff\u1c00-\u1c23\u1c24-\u1c2b\u1c34-\u1c35\u1c3b-\u1c3f\u1c40-\u1c49\u1c4d-\u1c4f\u1c50-\u1c59\u1c5a-\u1c77\u1c78-\u1c7d\u1c7e-\u1c7f\u1cc0-\u1cc7\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf1\u1cf2-\u1cf3\u1cf5-\u1cf6\u1d00-\u1d2b\u1d2c-\u1d6a\u1d6b-\u1d77\u1d78\u1d79-\u1d9a\u1d9b-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200e\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2134\u2135-\u2138\u2139\u213c-\u213f\u2145-\u2149\u214e\u214f\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237a\u2395\u249c-\u24e9\u26ac\u2800-\u28ff\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c7b\u2c7c-\u2c7d\u2c7e-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d70\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005\u3006\u3007\u3021-\u3029\u302e-\u302f\u3031-\u3035\u3038-\u303a\u303b\u303c\u3041-\u3096\u309d-\u309e\u309f\u30a1-\u30fa\u30fc-\u30fe\u30ff\u3105-\u312d\u3131-\u318e\u3190-\u3191\u3192-\u3195\u3196-\u319f\u31a0-\u31ba\u31f0-\u31ff\u3200-\u321c\u3220-\u3229\u322a-\u3247\u3248-\u324f\u3260-\u327b\u327f\u3280-\u3289\u328a-\u32b0\u32c0-\u32cb\u32d0-\u32fe\u3300-\u3376\u337b-\u33dd\u33e0-\u33fe\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua014\ua015\ua016-\ua48c\ua4d0-\ua4f7\ua4f8-\ua4fd\ua4fe-\ua4ff\ua500-\ua60b\ua60c\ua610-\ua61f\ua620-\ua629\ua62a-\ua62b\ua640-\ua66d\ua66e\ua680-\ua69b\ua69c-\ua69d\ua6a0-\ua6e5\ua6e6-\ua6ef\ua6f2-\ua6f7\ua722-\ua76f\ua770\ua771-\ua787\ua789-\ua78a\ua78b-\ua78e\ua790-\ua7ad\ua7b0-\ua7b1\ua7f7\ua7f8-\ua7f9\ua7fa\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua823-\ua824\ua827\ua830-\ua835\ua836-\ua837\ua840-\ua873\ua880-\ua881\ua882-\ua8b3\ua8b4-\ua8c3\ua8ce-\ua8cf\ua8d0-\ua8d9\ua8f2-\ua8f7\ua8f8-\ua8fa\ua8fb\ua900-\ua909\ua90a-\ua925\ua92e-\ua92f\ua930-\ua946\ua952-\ua953\ua95f\ua960-\ua97c\ua983\ua984-\ua9b2\ua9b4-\ua9b5\ua9ba-\ua9bb\ua9bd-\ua9c0\ua9c1-\ua9cd\ua9cf\ua9d0-\ua9d9\ua9de-\ua9df\ua9e0-\ua9e4\ua9e6\ua9e7-\ua9ef\ua9f0-\ua9f9\ua9fa-\ua9fe\uaa00-\uaa28\uaa2f-\uaa30\uaa33-\uaa34\uaa40-\uaa42\uaa44-\uaa4b\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f\uaa60-\uaa6f\uaa70\uaa71-\uaa76\uaa77-\uaa79\uaa7a\uaa7b\uaa7d\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadc\uaadd\uaade-\uaadf\uaae0-\uaaea\uaaeb\uaaee-\uaaef\uaaf0-\uaaf1\uaaf2\uaaf3-\uaaf4\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5b\uab5c-\uab5f\uab64-\uab65\uabc0-\uabe2\uabe3-\uabe4\uabe6-\uabe7\uabe9-\uabea\uabeb\uabec\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ue000-\uf8ff\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\uff21-\uff3a\uff41-\uff5a\uff66-\uff6f\uff70\uff71-\uff9d\uff9e-\uff9f\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"+a+o+"]"),l=new RegExp("["+a+o+"]");function u(e){var t=s.exec(e);return null==t?null:t[0]}function c(e){var t=u(e);return null==t?i.NEUTRAL:l.exec(t)?i.RTL:i.LTR}function f(e,t){if(t=t||i.NEUTRAL,!e.length)return t;var n=c(e);return n===i.NEUTRAL?t:n}function d(e,t){return t||(t=i.getGlobalDir()),i.isStrong(t)||r(!1),f(e,t)}var h={firstStrongChar:u,firstStrongCharDir:c,resolveBlockDir:f,getDirection:d,isDirectionLTR:function(e,t){return d(e,t)===i.LTR},isDirectionRTL:function(e,t){return d(e,t)===i.RTL}};e.exports=h},function(e,t,n){"use strict";var i=n(0),r=n(104),a=(0,n(12).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:i.createElement("ul",{className:r("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:i.createElement("ol",{className:r("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:i.createElement("pre",{className:r("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},function(e,t,n){"use strict";var i=n(387).notEmptyKey;function r(e,t){return i(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var i=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(n=e.getBlockForKey(i).getEntityAt(a-1))!==e.getBlockForKey(i).getEntityAt(a)?null:r(e.getEntityMap(),n):null}var o=t.getStartKey(),s=t.getStartOffset(),l=e.getBlockForKey(o);return n=s===l.getLength()?null:l.getEntityAt(s),r(e.getEntityMap(),n)}},function(e,t,n){"use strict";var i=n(957);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!i(t)&&(i(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";function i(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return i(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;i(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return i(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;i(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";n(256);e.exports=function(e,t){var n=e.getSelection(),i=e.getCurrentContent(),r=n.getStartKey(),a=n.getStartOffset(),o=r,s=0;if(t>a){var l=i.getKeyBefore(r);if(null==l)o=r;else o=l,s=i.getBlockForKey(l).getText().length}else s=a-t;return n.merge({focusKey:o,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var i=n(396);e.exports=i},function(e,t,n){"use strict";var i=n(46),r=n(984),a=i.isPlatform("Mac OS X"),o={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return a&&e.altKey},usesMacOSHeuristics:function(){return a},hasCommandModifier:function(e){return a?!!e.metaKey&&!e.altKey:o.isCtrlKeyCommand(e)},isSoftNewlineEvent:r};e.exports=o},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(744)},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,i=/[\0\r\f]/g,r=/: */g,a=/zoo|gra/,o=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,u=/ *[\0] */g,c=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,h=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,_=/:(read-only)/g,m=/\s+(?=[{\];=:>])/g,F=/([[}=:>])\s+/g,y=/(\{[^{]+?);(?=\})/g,b=/\s{2,}/g,v=/([^\(])(:+) */g,k=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,x=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,D=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,S="-webkit-",A="-moz-",O="-ms-",I=59,M=125,P=123,R=40,j=41,N=91,B=93,L=10,q=13,z=9,U=64,H=32,K=38,W=45,G=95,V=42,Y=44,X=58,$=39,J=34,Q=47,Z=62,ee=43,te=126,ne=0,ie=12,re=11,ae=107,oe=109,se=115,le=112,ue=111,ce=105,fe=99,de=100,he=112,pe=1,ge=1,_e=0,me=1,Fe=1,ye=1,be=0,ve=0,ke=0,Ee=[],we=[],xe=0,Ce=null,De=-2,Te=-1,Se=0,Ae=1,Oe=2,Ie=3,Me=0,Pe=1,Re="",je="",Ne="";function Be(e,t,r,a,o){for(var s,l,c=0,f=0,d=0,h=0,m=0,F=0,y=0,b=0,k=0,w=0,x=0,C=0,D=0,T=0,G=0,be=0,we=0,Ce=0,De=0,Te=r.length,qe=Te-1,Ge="",Ve="",Ye="",Xe="",$e="",Je="";G0&&(Ve=Ve.replace(i,"")),Ve.trim().length>0)){switch(y){case H:case z:case I:case q:case L:break;default:Ve+=r.charAt(G)}y=I}if(1===we)switch(y){case P:case M:case I:case J:case $:case R:case j:case Y:we=0;case z:case q:case L:case H:break;default:for(we=0,De=G,m=y,G--,y=I;De0&&(++G,y=m);case P:De=Te}}switch(y){case P:for(m=(Ve=Ve.trim()).charCodeAt(0),x=1,De=++G;G0&&(Ve=Ve.replace(i,"")),F=Ve.charCodeAt(1)){case de:case oe:case se:case W:s=t;break;default:s=Ee}if(De=(Ye=Be(t,s,Ye,F,o+1)).length,ke>0&&0===De&&(De=Ve.length),xe>0&&(s=Le(Ee,Ve,Ce),l=Ke(Ie,Ye,s,t,ge,pe,De,F,o,a),Ve=s.join(""),void 0!==l&&0===(De=(Ye=l.trim()).length)&&(F=0,Ye="")),De>0)switch(F){case se:Ve=Ve.replace(E,He);case de:case oe:case W:Ye=Ve+"{"+Ye+"}";break;case ae:Ye=(Ve=Ve.replace(p,"$1 $2"+(Pe>0?Re:"")))+"{"+Ye+"}",Ye=1===Fe||2===Fe&&Ue("@"+Ye,3)?"@"+S+Ye+"@"+Ye:"@"+Ye;break;default:Ye=Ve+Ye,a===he&&(Xe+=Ye,Ye="")}else Ye=""}else Ye=Be(t,Le(t,Ve,Ce),Ye,a,o+1);$e+=Ye,C=0,we=0,T=0,be=0,Ce=0,D=0,Ve="",Ye="",y=r.charCodeAt(++G);break;case M:case I:if((De=(Ve=(be>0?Ve.replace(i,""):Ve).trim()).length)>1)switch(0===T&&((m=Ve.charCodeAt(0))===W||m>96&&m<123)&&(De=(Ve=Ve.replace(" ",":")).length),xe>0&&void 0!==(l=Ke(Ae,Ve,t,e,ge,pe,Xe.length,a,o,a))&&0===(De=(Ve=l.trim()).length)&&(Ve="\0\0"),m=Ve.charCodeAt(0),F=Ve.charCodeAt(1),m){case ne:break;case U:if(F===ce||F===fe){Je+=Ve+r.charAt(G);break}default:if(Ve.charCodeAt(De-1)===X)break;Xe+=ze(Ve,m,F,Ve.charCodeAt(2))}C=0,we=0,T=0,be=0,Ce=0,Ve="",y=r.charCodeAt(++G)}}switch(y){case q:case L:if(f+h+d+c+ve===0)switch(w){case j:case $:case J:case U:case te:case Z:case V:case ee:case Q:case W:case X:case Y:case I:case P:case M:break;default:T>0&&(we=1)}f===Q?f=0:me+C===0&&a!==ae&&Ve.length>0&&(be=1,Ve+="\0"),xe*Me>0&&Ke(Se,Ve,t,e,ge,pe,Xe.length,a,o,a),pe=1,ge++;break;case I:case M:if(f+h+d+c===0){pe++;break}default:switch(pe++,Ge=r.charAt(G),y){case z:case H:if(h+c+f===0)switch(b){case Y:case X:case z:case H:Ge="";break;default:y!==H&&(Ge=" ")}break;case ne:Ge="\\0";break;case ie:Ge="\\f";break;case re:Ge="\\v";break;case K:h+f+c===0&&me>0&&(Ce=1,be=1,Ge="\f"+Ge);break;case 108:if(h+f+c+_e===0&&T>0)switch(G-T){case 2:b===le&&r.charCodeAt(G-3)===X&&(_e=b);case 8:k===ue&&(_e=k)}break;case X:h+f+c===0&&(T=G);break;case Y:f+d+h+c===0&&(be=1,Ge+="\r");break;case J:case $:0===f&&(h=h===y?0:0===h?y:h);break;case N:h+f+d===0&&c++;break;case B:h+f+d===0&&c--;break;case j:h+f+c===0&&d--;break;case R:h+f+c===0&&(0===C&&(2*b+3*k===533||(x=0,C=1)),d++);break;case U:f+d+h+c+T+D===0&&(D=1);break;case V:case Q:if(h+c+d>0)break;switch(f){case 0:switch(2*y+3*r.charCodeAt(G+1)){case 235:f=Q;break;case 220:De=G,f=V}break;case V:y===Q&&b===V&&De+2!==G&&(33===r.charCodeAt(De+2)&&(Xe+=r.substring(De,G+1)),Ge="",f=0)}}if(0===f){if(me+h+c+D===0&&a!==ae&&y!==I)switch(y){case Y:case te:case Z:case ee:case j:case R:if(0===C){switch(b){case z:case H:case L:case q:Ge+="\0";break;default:Ge="\0"+Ge+(y===Y?"":"\0")}be=1}else switch(y){case R:T+7===G&&108===b&&(T=0),C=++x;break;case j:0==(C=--x)&&(be=1,Ge+="\0")}break;case z:case H:switch(b){case ne:case P:case M:case I:case Y:case ie:case z:case H:case L:case q:break;default:0===C&&(be=1,Ge+="\0")}}Ve+=Ge,y!==H&&y!==z&&(w=y)}}k=b,b=y,G++}if(De=Xe.length,ke>0&&0===De&&0===$e.length&&0===t[0].length==0&&(a!==oe||1===t.length&&(me>0?je:Ne)===t[0])&&(De=t.join(",").length+2),De>0){if(s=0===me&&a!==ae?function(e){for(var t,n,r=0,a=e.length,o=Array(a);r1)){if(d=l.charCodeAt(l.length-1),h=n.charCodeAt(0),t="",0!==c)switch(d){case V:case te:case Z:case ee:case H:case R:break;default:t=" "}switch(h){case K:n=t+je;case te:case Z:case ee:case H:case j:case R:break;case N:n=t+n+je;break;case X:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ye>0){n=t+n.substring(8,f-1);break}default:(c<1||s[c-1].length<1)&&(n=t+je+n)}break;case Y:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(v,"$1"+je+"$2"):t+n+je}l+=n}o[r]=l.replace(i,"").trim()}return o}(t):t,xe>0&&void 0!==(l=Ke(Oe,Xe,s,e,ge,pe,De,a,o,a))&&0===(Xe=l).length)return Je+Xe+$e;if(Xe=s.join(",")+"{"+Xe+"}",Fe*_e!=0){switch(2!==Fe||Ue(Xe,2)||(_e=0),_e){case ue:Xe=Xe.replace(_,":"+A+"$1")+Xe;break;case le:Xe=Xe.replace(g,"::"+S+"input-$1")+Xe.replace(g,"::"+A+"$1")+Xe.replace(g,":"+O+"input-$1")+Xe}_e=0}}return Je+Xe+$e}function Le(e,t,n){var i=t.trim().split(c),r=i,a=i.length,o=e.length;switch(o){case 0:case 1:for(var s=0,l=0===o?"":e[0]+" ";s0&&me>0)return r.replace(d,"$1").replace(f,"$1"+Ne);default:if(n*me>0&&r.indexOf("\f")>0)return r.replace(f,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+r}function ze(e,t,n,i){var u,c=0,f=e+";",d=2*t+3*n+4*i;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,i=e.substring(0,n).trim(),r=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Pe){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:var a=r.split((r="",s)),o=0;for(n=0,t=a.length;oU&&f<90||f>96&&f<123||f===G||f===W&&u.charCodeAt(1)!==W)&&isNaN(parseFloat(u))+(-1!==u.indexOf("("))===1)switch(u){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:u+=Re}c[n++]=u}r+=(0===o?"":",")+c.join(" ")}}return r=i+r+";",1===Fe||2===Fe&&Ue(r,1)?S+r+r:r}(f);if(0===Fe||2===Fe&&!Ue(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?S+f+f:f;case 951:return 116===f.charCodeAt(3)?S+f+f:f;case 963:return 110===f.charCodeAt(5)?S+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return S+f+f;case 978:return S+f+A+f+f;case 1019:case 983:return S+f+A+f+O+f+f;case 883:return f.charCodeAt(8)===W?S+f+f:f.indexOf("image-set(",11)>0?f.replace(T,"$1"+S+"$2")+f:f;case 932:if(f.charCodeAt(4)===W)switch(f.charCodeAt(5)){case 103:return S+"box-"+f.replace("-grow","")+S+f+O+f.replace("grow","positive")+f;case 115:return S+f+O+f.replace("shrink","negative")+f;case 98:return S+f+O+f.replace("basis","preferred-size")+f}return S+f+O+f+f;case 964:return S+f+O+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return u=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),S+"box-pack"+u+S+f+O+"flex-pack"+u+f;case 1005:return a.test(f)?f.replace(r,":"+S)+f.replace(r,":"+A)+f:f;case 1e3:switch(c=(u=f.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(c)){case 226:u=f.replace(k,"tb");break;case 232:u=f.replace(k,"tb-rl");break;case 220:u=f.replace(k,"lr");break;default:return f}return S+f+O+u+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(c=(f=e).length-10,d=(u=(33===f.charCodeAt(c)?f.substring(0,c):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(u.charCodeAt(8)<111)break;case 115:f=f.replace(u,S+u)+";"+f;break;case 207:case 102:f=f.replace(u,S+(d>102?"inline-":"")+"box")+";"+f.replace(u,S+u)+";"+f.replace(u,O+u+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===W)switch(f.charCodeAt(6)){case 105:return u=f.replace("-items",""),S+f+S+"box-"+u+O+"flex-"+u+f;case 115:return S+f+O+"flex-item-"+f.replace(x,"")+f;default:return S+f+O+"flex-line-pack"+f.replace("align-content","").replace(x,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==W||122===f.charCodeAt(4))break;case 931:case 953:if(!0===D.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?ze(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):f.replace(u,S+u)+f.replace(u,A+u.replace("fill-",""))+f;break;case 962:if(f=S+f+(102===f.charCodeAt(5)?O+f:"")+f,n+i===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(o,"$1"+S+"$2")+f}return f}function Ue(e,t){var n=e.indexOf(1===t?":":"{"),i=e.substring(0,3!==t?n:10),r=e.substring(n+1,e.length-1);return Ce(2!==t?i:i.replace(C,"$1"),r,t)}function He(e,t){var n=ze(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function Ke(e,t,n,i,r,a,o,s,l,u){for(var c,f=0,d=t;f0&&(Re=r.replace(h,a===N?"":"-")),a=1,1===me?Ne=r:je=r;var o,s=[Ne];xe>0&&void 0!==(o=Ke(Te,n,s,s,ge,pe,0,0,0,0))&&"string"==typeof o&&(n=o);var l=Be(Ee,s,n,0,0);return xe>0&&void 0!==(o=Ke(De,l,s,s,ge,pe,l.length,0,0,0))&&"string"!=typeof(l=o)&&(a=0),Re="",Ne="",je="",_e=0,ge=1,pe=1,be*a==0?l:l.replace(i,"").replace(m,"").replace(F,"$1").replace(y,"$1").replace(b," ")}return Ve.use=function e(t){switch(t){case void 0:case null:xe=we.length=0;break;default:if("function"==typeof t)we[xe++]=t;else if("object"==typeof t)for(var n=0,i=t.length;nu;)r(i,n=t[u++])&&(~o(c,n)||l(c,n));return c}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:n)(t)}},function(e,t,n){var i=n(26);e.exports=i("document","documentElement")},function(e,t,n){var i=n(8);t.f=i},function(e,t,n){var i=n(5);e.exports=i},function(e,t,n){var i=n(6),r=n(26),a=n(8),o=n(28);e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&o(t,s,(function(e){return i(n,this)}),{arity:1})}},function(e,t,n){var i=n(108);e.exports=i&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";var i=n(17),r=n(82),a=n(21),o=n(207),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=i(this),l=a(n),u=r(e,l),c=r(t,l),f=arguments.length>2?arguments[2]:void 0,d=s((void 0===f?l:r(f,l))-c,l-u),h=1;for(c0;)c in n?n[u]=n[c]:o(n,u),u+=h,c+=h;return n}},function(e,t,n){"use strict";var i=n(94),r=n(21),a=n(206),o=n(22);e.exports=function e(t,n,s,l,u,c,f,d){for(var h,p=u,g=0,_=!!f&&o(f,d);g0&&i(h)?p=e(t,n,h,r(h),p,c-1)-1:(a(p+1),t[p]=h),p++),g++;return p}},function(e,t,n){"use strict";var i=n(22),r=n(6),a=n(17),o=n(452),s=n(209),l=n(95),u=n(21),c=n(83),f=n(133),d=n(134),h=Array;e.exports=function(e){var t=a(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,_=void 0!==g;_&&(g=i(g,p>2?arguments[2]:void 0));var m,F,y,b,v,k,E=d(t),w=0;if(!E||this===h&&s(E))for(m=u(t),F=n?new this(m):h(m);m>w;w++)k=_?g(t[w],w):t[w],c(F,w,k);else for(v=(b=f(t,E)).next,F=n?new this:[];!(y=r(v,b)).done;w++)k=_?o(b,g,[y.value,w],!0):y.value,c(F,w,k);return F.length=w,F}},function(e,t,n){"use strict";var i,r,a,o=n(3),s=n(10),l=n(11),u=n(54),c=n(39),f=n(28),d=n(8),h=n(33),p=d("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(r=c(c(a)))!==Object.prototype&&(i=r):g=!0),!l(i)||o((function(){var e={};return i[p].call(e)!==e}))?i={}:h&&(i=u(i)),s(i[p])||f(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},function(e,t,n){var i=n(4),r=n(15);e.exports=function(e,t,n){try{return i(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},function(e,t,n){var i=n(10),r=String,a=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw a("Can't set "+r(e)+" as a prototype")}},function(e,t,n){"use strict";var i=n(55),r=n(47),a=n(40),o=n(21),s=n(110),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),d=c||!f;e.exports=d?function(e){if(c)return i(u,this,arguments)||0;var t=r(this),n=o(t),s=n-1;for(arguments.length>1&&(s=l(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},function(e,t,n){var i=n(70).match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},function(e,t,n){var i=n(70);e.exports=/MSIE|Trident/.test(i)},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var i=n(40),r=n(53),a=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw a("Wrong length or index");return n}},function(e,t,n){"use strict";var i=n(54),r=n(50),a=n(112),o=n(22),s=n(72),l=n(32),u=n(41),c=n(210),f=n(111),d=n(98),h=n(9),p=n(99).fastKey,g=n(29),_=g.set,m=g.getterFor;e.exports={getConstructor:function(e,t,n,c){var f=e((function(e,r){s(e,d),_(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),l(r)||u(r,e[c],{that:e,AS_ENTRIES:n})})),d=f.prototype,g=m(t),F=function(e,t,n){var i,r,a=g(e),o=y(e,t);return o?o.value=n:(a.last=o={index:r=p(t,!0),key:t,value:n,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=o),i&&(i.next=o),h?a.size++:e.size++,"F"!==r&&(a.index[r]=o)),e},y=function(e,t){var n,i=g(e),r=p(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return a(d,{clear:function(){for(var e=g(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=this,n=g(t),i=y(t,e);if(i){var r=i.next,a=i.previous;delete n.index[i.index],i.removed=!0,a&&(a.next=r),r&&(r.previous=a),n.first==i&&(n.first=r),n.last==i&&(n.last=a),h?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=g(this),i=o(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),a(d,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return F(this,0===e?0:e,t)}}:{add:function(e){return F(this,e=0===e?0:e,e)}}),h&&r(d,"size",{configurable:!0,get:function(){return g(this).size}}),f},setStrong:function(e,t,n){var i=t+" Iterator",r=m(t),a=m(i);c(e,t,(function(e,t){_(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?f("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},function(e,t,n){var i=n(218),r=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),u=a(2,-126);e.exports=Math.fround||function(e){var t,n,a=+e,c=r(a),f=i(a);return cl||n!=n?f*(1/0):f*n}},function(e,t,n){var i=n(5),r=n(3),a=n(4),o=n(13),s=n(115).trim,l=n(164),u=a("".charAt),c=i.parseFloat,f=i.Symbol,d=f&&f.iterator,h=1/c(l+"-0")!==-1/0||d&&!r((function(){c(Object(d))}));e.exports=h?function(e){var t=s(o(e)),n=c(t);return 0===n&&"-"==u(t,0)?-0:n}:c},function(e,t,n){"use strict";var i=n(9),r=n(4),a=n(6),o=n(3),s=n(129),l=n(155),u=n(150),c=n(17),f=n(151),d=Object.assign,h=Object.defineProperty,p=r([].concat);e.exports=!d||o((function(){if(i&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||s(d({},t)).join("")!=r}))?function(e,t){for(var n=c(e),r=arguments.length,o=1,d=l.f,h=u.f;r>o;)for(var g,_=f(arguments[o++]),m=d?p(s(_),d(_)):s(_),F=m.length,y=0;F>y;)g=m[y++],i&&!a(h,_,g)||(n[g]=_[g]);return n}:d},function(e,t,n){var i=n(9),r=n(4),a=n(129),o=n(47),s=r(n(150).f),l=r([].push),u=function(e){return function(t){for(var n,r=o(t),u=a(r),c=u.length,f=0,d=[];c>f;)n=u[f++],i&&!s(r,n)||l(d,e?[n,r[n]]:r[n]);return d}};e.exports={entries:u(!0),values:u(!1)}},function(e,t,n){var i=n(70);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},function(e,t,n){var i,r,a,o,s,l=n(5),u=n(22),c=n(35).f,f=n(166).set,d=n(296),h=n(294),p=n(532),g=n(533),_=n(96),m=l.MutationObserver||l.WebKitMutationObserver,F=l.document,y=l.process,b=l.Promise,v=c(l,"queueMicrotask"),k=v&&v.value;if(!k){var E=new d,w=function(){var e,t;for(_&&(e=y.domain)&&e.exit();t=E.get();)try{t()}catch(n){throw E.head&&i(),n}e&&e.enter()};h||_||g||!m||!F?!p&&b&&b.resolve?((o=b.resolve(void 0)).constructor=b,s=u(o.then,o),i=function(){s(w)}):_?i=function(){y.nextTick(w)}:(f=u(f,l),i=function(){f(w)}):(r=!0,a=F.createTextNode(""),new m(w).observe(a,{characterData:!0}),i=function(){a.data=r=!r}),k=function(e){E.head||i(),E.add(e)}}e.exports=k},function(e,t){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=n},function(e,t){e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(n){}}},function(e,t){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(e,t,n){var i=n(7),r=n(11),a=n(86);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var i=n(16);e.exports=function(e){return void 0!==e&&(i(e,"value")||i(e,"writable"))}},function(e,t,n){var i=n(3),r=n(5).RegExp;e.exports=i((function(){var e=r(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},function(e,t,n){var i=n(3),r=n(5).RegExp;e.exports=i((function(){var e=r("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},function(e,t,n){"use strict";var i=n(1),r=n(169);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){"use strict";var i=n(118).charAt,r=n(13),a=n(29),o=n(210),s=n(111),l="String Iterator",u=a.set,c=a.getterFor(l);o(String,"String",(function(e){u(this,{type:l,string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=i(n,r),t.index+=e.length,s(e,!1))}))},function(e,t,n){var i=n(4),r=n(53),a=n(13),o=n(306),s=n(31),l=i(o),u=i("".slice),c=Math.ceil,f=function(e){return function(t,n,i){var o,f,d=a(s(t)),h=r(n),p=d.length,g=void 0===i?" ":a(i);return h<=p||""==g?d:((f=l(g,c((o=h-p)/g.length))).length>o&&(f=u(f,0,o)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},function(e,t,n){"use strict";var i=n(40),r=n(13),a=n(31),o=RangeError;e.exports=function(e){var t=r(a(this)),n="",s=i(e);if(s<0||s==1/0)throw o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},function(e,t,n){var i=n(70);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(i)},function(e,t,n){var i=n(4),r=n(17),a=Math.floor,o=i("".charAt),s=i("".replace),l=i("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,f,d){var h=n+e.length,p=i.length,g=c;return void 0!==f&&(f=r(f),g=u),s(d,g,(function(r,s){var u;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,h);case"<":u=f[l(s,1,-1)];break;default:var c=+s;if(0===c)return r;if(c>p){var d=a(c/10);return 0===d?r:d<=p?void 0===i[d-1]?o(s,1):i[d-1]+o(s,1):r}u=i[c-1]}return void 0===u?"":u}))}},function(e,t,n){"use strict";var i=n(115).end,r=n(225);e.exports=r("trimEnd")?function(){return i(this)}:"".trimEnd},function(e,t,n){"use strict";var i=n(115).start,r=n(225);e.exports=r("trimStart")?function(){return i(this)}:"".trimStart},function(e,t,n){var i=n(581),r=RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw r("Wrong offset");return n}},function(e,t,n){var i=n(22),r=n(6),a=n(160),o=n(17),s=n(21),l=n(133),u=n(134),c=n(209),f=n(582),d=n(18).aTypedArrayConstructor,h=n(313);e.exports=function(e){var t,n,p,g,_,m,F,y,b=a(this),v=o(e),k=arguments.length,E=k>1?arguments[1]:void 0,w=void 0!==E,x=u(v);if(x&&!c(x))for(y=(F=l(v,x)).next,v=[];!(m=r(y,F)).done;)v.push(m.value);for(w&&k>2&&(E=i(E,arguments[2])),n=s(v),p=new(d(b))(n),g=f(p),t=0;n>t;t++)_=w?E(v[t],t):v[t],p[t]=g?h(_):+_;return p}},function(e,t,n){var i=n(152),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw r("Can't convert number to bigint");return BigInt(t)}},function(e,t,n){"use strict";var i=n(4),r=n(112),a=n(99).getWeakData,o=n(72),s=n(7),l=n(32),u=n(11),c=n(41),f=n(38),d=n(16),h=n(29),p=h.set,g=h.getterFor,_=f.find,m=f.findIndex,F=i([].splice),y=0,b=function(e){return e.frozen||(e.frozen=new v)},v=function(){this.entries=[]},k=function(e,t){return _(e.entries,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=k(this,e);if(t)return t[1]},has:function(e){return!!k(this,e)},set:function(e,t){var n=k(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&F(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var f=e((function(e,r){o(e,h),p(e,{type:t,id:y++,frozen:void 0}),l(r)||c(r,e[i],{that:e,AS_ENTRIES:n})})),h=f.prototype,_=g(t),m=function(e,t,n){var i=_(e),r=a(s(t),!0);return!0===r?b(i).set(t,n):r[i.id]=n,e};return r(h,{delete:function(e){var t=_(this);if(!u(e))return!1;var n=a(e);return!0===n?b(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=_(this);if(!u(e))return!1;var n=a(e);return!0===n?b(t).has(e):n&&d(n,t.id)}}),r(h,n?{get:function(e){var t=_(this);if(u(e)){var n=a(e);return!0===n?b(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},function(e,t,n){n(215),n(228);var i=n(26),r=n(54),a=n(11),o=Object,s=TypeError,l=i("Map"),u=i("WeakMap"),c=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=r(null)};c.prototype.get=function(e,t){return this[e]||(this[e]=t())},c.prototype.next=function(e,t,n){var i=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new u):this.primitives||(this.primitives=new l),r=i.get(t);return r||i.set(t,r=new c),r};var f=new c;e.exports=function(){var e,t,n=f,i=arguments.length;for(e=0;e0?arguments[0]:void 0));s||(this.length=e.entries.length)},he=de.prototype;if(f(he,{append:function(e,t){D(arguments.length,2);var n=P(this);X(n.entries,{key:k(e),value:k(t)}),s||this.length++,n.updateURL()},delete:function(e){D(arguments.length,1);for(var t=P(this),n=t.entries,i=k(e),r=0;rt.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=P(this).entries,i=F(e,arguments.length>1?arguments[1]:void 0),r=0;r1?_e(arguments[1]):{})}}),_(L)){var me=function(e){return g(this,z),new L(e,arguments.length>1?_e(arguments[1]):{})};z.constructor=me,me.prototype=z,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:me})}}e.exports={URLSearchParams:de,getState:P}},function(e,t,n){e.exports=n.p+"static/media/ico_logo_dk.a8aea59e.svg"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heightWidthRadiusDefaults=t.heightWidthDefaults=t.sizeMarginDefaults=t.sizeDefaults=void 0;var i={loading:!0,color:"#000000",css:""};function r(e){return Object.assign({},i,{size:e})}function a(e,t){return Object.assign({},i,{height:e,width:t})}t.sizeDefaults=r,t.sizeMarginDefaults=function(e){return Object.assign({},r(e),{margin:2})},t.heightWidthDefaults=a,t.heightWidthRadiusDefaults=function(e,t,n){return void 0===n&&(n=2),Object.assign({},a(e,t),{radius:n,margin:2})}},function(e,t,n){"use strict";var i=n(119),r=n(779),a=n(780),o=n(781),s=n(232),l=n(233),u=n(234),c=n(328),f=n(141),d=n(68),h=d.TAG_NAMES,p=d.NAMESPACES,g=d.ATTRS,_={locationInfo:!1,treeAdapter:s},m="hidden",F=8,y=3,b="INITIAL_MODE",v="BEFORE_HTML_MODE",k="BEFORE_HEAD_MODE",E="IN_HEAD_MODE",w="AFTER_HEAD_MODE",x="IN_BODY_MODE",C="TEXT_MODE",D="IN_TABLE_MODE",T="IN_TABLE_TEXT_MODE",S="IN_CAPTION_MODE",A="IN_COLUMN_GROUP_MODE",O="IN_TABLE_BODY_MODE",I="IN_ROW_MODE",M="IN_CELL_MODE",P="IN_SELECT_MODE",R="IN_SELECT_IN_TABLE_MODE",j="IN_TEMPLATE_MODE",N="AFTER_BODY_MODE",B="IN_FRAMESET_MODE",L="AFTER_FRAMESET_MODE",q="AFTER_AFTER_BODY_MODE",z="AFTER_AFTER_FRAMESET_MODE",U=Object.create(null);U[h.TR]=I,U[h.TBODY]=U[h.THEAD]=U[h.TFOOT]=O,U[h.CAPTION]=S,U[h.COLGROUP]=A,U[h.TABLE]=D,U[h.BODY]=x,U[h.FRAMESET]=B;var H=Object.create(null);H[h.CAPTION]=H[h.COLGROUP]=H[h.TBODY]=H[h.TFOOT]=H[h.THEAD]=D,H[h.COL]=A,H[h.TR]=O,H[h.TD]=H[h.TH]=I;var K=Object.create(null);K[b]=Object.create(null),K[b][i.CHARACTER_TOKEN]=K[b][i.NULL_CHARACTER_TOKEN]=re,K[b][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[b][i.COMMENT_TOKEN]=ee,K[b][i.DOCTYPE_TOKEN]=function(e,t){e._setDocumentType(t);var n=t.forceQuirks?d.DOCUMENT_MODE.QUIRKS:u.getDocumentMode(t.name,t.publicId,t.systemId);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=v},K[b][i.START_TAG_TOKEN]=K[b][i.END_TAG_TOKEN]=K[b][i.EOF_TOKEN]=re,K[v]=Object.create(null),K[v][i.CHARACTER_TOKEN]=K[v][i.NULL_CHARACTER_TOKEN]=ae,K[v][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[v][i.COMMENT_TOKEN]=ee,K[v][i.DOCTYPE_TOKEN]=Z,K[v][i.START_TAG_TOKEN]=function(e,t){t.tagName===h.HTML?(e._insertElement(t,p.HTML),e.insertionMode=k):ae(e,t)},K[v][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==h.HTML&&n!==h.HEAD&&n!==h.BODY&&n!==h.BR||ae(e,t)},K[v][i.EOF_TOKEN]=ae,K[k]=Object.create(null),K[k][i.CHARACTER_TOKEN]=K[k][i.NULL_CHARACTER_TOKEN]=oe,K[k][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[k][i.COMMENT_TOKEN]=ee,K[k][i.DOCTYPE_TOKEN]=Z,K[k][i.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===h.HTML?Ee(e,t):n===h.HEAD?(e._insertElement(t,p.HTML),e.headElement=e.openElements.current,e.insertionMode=E):oe(e,t)},K[k][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==h.HEAD&&n!==h.BODY&&n!==h.HTML&&n!==h.BR||oe(e,t)},K[k][i.EOF_TOKEN]=oe,K[E]=Object.create(null),K[E][i.CHARACTER_TOKEN]=K[E][i.NULL_CHARACTER_TOKEN]=ue,K[E][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[E][i.COMMENT_TOKEN]=ee,K[E][i.DOCTYPE_TOKEN]=Z,K[E][i.START_TAG_TOKEN]=se,K[E][i.END_TAG_TOKEN]=le,K[E][i.EOF_TOKEN]=ue,K[w]=Object.create(null),K[w][i.CHARACTER_TOKEN]=K[w][i.NULL_CHARACTER_TOKEN]=ce,K[w][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[w][i.COMMENT_TOKEN]=ee,K[w][i.DOCTYPE_TOKEN]=Z,K[w][i.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===h.HTML?Ee(e,t):n===h.BODY?(e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=x):n===h.FRAMESET?(e._insertElement(t,p.HTML),e.insertionMode=B):n===h.BASE||n===h.BASEFONT||n===h.BGSOUND||n===h.LINK||n===h.META||n===h.NOFRAMES||n===h.SCRIPT||n===h.STYLE||n===h.TEMPLATE||n===h.TITLE?(e.openElements.push(e.headElement),se(e,t),e.openElements.remove(e.headElement)):n!==h.HEAD&&ce(e,t)},K[w][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===h.BODY||n===h.HTML||n===h.BR?ce(e,t):n===h.TEMPLATE&&le(e,t)},K[w][i.EOF_TOKEN]=ce,K[x]=Object.create(null),K[x][i.CHARACTER_TOKEN]=de,K[x][i.NULL_CHARACTER_TOKEN]=Z,K[x][i.WHITESPACE_CHARACTER_TOKEN]=fe,K[x][i.COMMENT_TOKEN]=ee,K[x][i.DOCTYPE_TOKEN]=Z,K[x][i.START_TAG_TOKEN]=Ee,K[x][i.END_TAG_TOKEN]=De,K[x][i.EOF_TOKEN]=Te,K[C]=Object.create(null),K[C][i.CHARACTER_TOKEN]=K[C][i.NULL_CHARACTER_TOKEN]=K[C][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[C][i.COMMENT_TOKEN]=K[C][i.DOCTYPE_TOKEN]=K[C][i.START_TAG_TOKEN]=Z,K[C][i.END_TAG_TOKEN]=function(e,t){t.tagName===h.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},K[C][i.EOF_TOKEN]=function(e,t){e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)},K[D]=Object.create(null),K[D][i.CHARACTER_TOKEN]=K[D][i.NULL_CHARACTER_TOKEN]=K[D][i.WHITESPACE_CHARACTER_TOKEN]=Se,K[D][i.COMMENT_TOKEN]=ee,K[D][i.DOCTYPE_TOKEN]=Z,K[D][i.START_TAG_TOKEN]=Ae,K[D][i.END_TAG_TOKEN]=Oe,K[D][i.EOF_TOKEN]=Te,K[T]=Object.create(null),K[T][i.CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},K[T][i.NULL_CHARACTER_TOKEN]=Z,K[T][i.WHITESPACE_CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t)},K[T][i.COMMENT_TOKEN]=K[T][i.DOCTYPE_TOKEN]=K[T][i.START_TAG_TOKEN]=K[T][i.END_TAG_TOKEN]=K[T][i.EOF_TOKEN]=function(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n=0;i--){var r=e.openElements.items[i];if(r===t.element)break;e._isSpecialElement(r)&&(n=r)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Y(e,t,n){for(var i=t,r=e.openElements.getCommonAncestor(t),a=0,o=r;o!==n;a++,o=r){r=e.openElements.getCommonAncestor(o);var s=e.activeFormattingElements.getElementEntry(o),l=s&&a>=y;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=X(e,s),i===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(o,i),i=o)}return i}function X(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function $(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{var i=e.treeAdapter.getTagName(t),r=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&r===p.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function J(e,t,n){var i=e.treeAdapter.getNamespaceURI(n.element),r=n.token,a=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Q(e,t){for(var n,i=0;i0&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode())}function ue(e,t){e.openElements.pop(),e.insertionMode=w,e._processToken(t)}function ce(e,t){e._insertFakeElement(h.BODY),e.insertionMode=x,e._processToken(t)}function fe(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function de(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function he(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML)}function pe(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ge(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function me(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.HTML),e.framesetOk=!1}function Fe(e,t){e._appendElement(t,p.HTML)}function ye(e,t){e._switchToTextParsing(t,i.MODE.RAWTEXT)}function be(e,t){e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}function ve(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,p.HTML)}function ke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}function Ee(e,t){var n=t.tagName;switch(n.length){case 1:n===h.I||n===h.S||n===h.B||n===h.U?ge(e,t):n===h.P?he(e,t):n===h.A?function(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(h.A);n&&(Q(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ke(e,t);break;case 2:n===h.DL||n===h.OL||n===h.UL?he(e,t):n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement();var n=e.openElements.currentTagName;n!==h.H1&&n!==h.H2&&n!==h.H3&&n!==h.H4&&n!==h.H5&&n!==h.H6||e.openElements.pop(),e._insertElement(t,p.HTML)}(e,t):n===h.LI||n===h.DD||n===h.DT?function(e,t){e.framesetOk=!1;for(var n=t.tagName,i=e.openElements.stackTop;i>=0;i--){var r=e.openElements.items[i],a=e.treeAdapter.getTagName(r),o=null;if(n===h.LI&&a===h.LI?o=h.LI:n!==h.DD&&n!==h.DT||a!==h.DD&&a!==h.DT||(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==h.ADDRESS&&a!==h.DIV&&a!==h.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML)}(e,t):n===h.EM||n===h.TT?ge(e,t):n===h.BR?me(e,t):n===h.HR?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagName===h.MENUITEM&&e.openElements.pop(),e._appendElement(t,p.HTML),e.framesetOk=!1}(e,t):n===h.RB?ve(e,t):n===h.RT||n===h.RP?function(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,p.HTML)}(e,t):n!==h.TH&&n!==h.TD&&n!==h.TR&&ke(e,t);break;case 3:n===h.DIV||n===h.DIR||n===h.NAV?he(e,t):n===h.PRE?pe(e,t):n===h.BIG?ge(e,t):n===h.IMG||n===h.WBR?me(e,t):n===h.XMP?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,i.MODE.RAWTEXT)}(e,t):n===h.SVG?function(e,t){e._reconstructActiveFormattingElements(),c.adjustTokenSVGAttrs(t),c.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,p.SVG):e._insertElement(t,p.SVG)}(e,t):n===h.RTC?ve(e,t):n!==h.COL&&ke(e,t);break;case 4:n===h.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===h.BASE||n===h.LINK||n===h.META?se(e,t):n===h.BODY?function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===h.MAIN?he(e,t):n===h.FORM?function(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===h.CODE||n===h.FONT?ge(e,t):n===h.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(Q(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===h.AREA?me(e,t):n===h.MATH?function(e,t){e._reconstructActiveFormattingElements(),c.adjustTokenMathMLAttrs(t),c.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,p.MATHML):e._insertElement(t,p.MATHML)}(e,t):n===h.MENU?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagName===h.MENUITEM&&e.openElements.pop(),e._insertElement(t,p.HTML)}(e,t):n!==h.HEAD&&ke(e,t);break;case 5:n===h.STYLE||n===h.TITLE?se(e,t):n===h.ASIDE?he(e,t):n===h.SMALL?ge(e,t):n===h.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==d.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=D}(e,t):n===h.EMBED?me(e,t):n===h.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.HTML);var n=i.getTokenAttr(t,g.TYPE);n&&n.toLowerCase()===m||(e.framesetOk=!1)}(e,t):n===h.PARAM||n===h.TRACK?Fe(e,t):n===h.IMAGE?function(e,t){t.tagName=h.IMG,me(e,t)}(e,t):n!==h.FRAME&&n!==h.TBODY&&n!==h.TFOOT&&n!==h.THEAD&&ke(e,t);break;case 6:n===h.SCRIPT?se(e,t):n===h.CENTER||n===h.FIGURE||n===h.FOOTER||n===h.HEADER||n===h.HGROUP?he(e,t):n===h.BUTTON?function(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.framesetOk=!1}(e,t):n===h.STRIKE||n===h.STRONG?ge(e,t):n===h.APPLET||n===h.OBJECT?_e(e,t):n===h.KEYGEN?me(e,t):n===h.SOURCE?Fe(e,t):n===h.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,i.MODE.RAWTEXT)}(e,t):n===h.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode===D||e.insertionMode===S||e.insertionMode===O||e.insertionMode===I||e.insertionMode===M?e.insertionMode=R:e.insertionMode=P}(e,t):n===h.OPTION?be(e,t):ke(e,t);break;case 7:n===h.BGSOUND?se(e,t):n===h.DETAILS||n===h.ADDRESS||n===h.ARTICLE||n===h.SECTION||n===h.SUMMARY?he(e,t):n===h.LISTING?pe(e,t):n===h.MARQUEE?_e(e,t):n===h.NOEMBED?ye(e,t):n!==h.CAPTION&&ke(e,t);break;case 8:n===h.BASEFONT?se(e,t):n===h.MENUITEM?function(e,t){e.openElements.currentTagName===h.MENUITEM&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}(e,t):n===h.FRAMESET?function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,p.HTML),e.insertionMode=B)}(e,t):n===h.FIELDSET?he(e,t):n===h.TEXTAREA?function(e,t){e._insertElement(t,p.HTML),e.skipNextNewLine=!0,e.tokenizer.state=i.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=C}(e,t):n===h.TEMPLATE?se(e,t):n===h.NOSCRIPT?ye(e,t):n===h.OPTGROUP?be(e,t):n!==h.COLGROUP&&ke(e,t);break;case 9:n===h.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.tokenizer.state=i.MODE.PLAINTEXT}(e,t):ke(e,t);break;case 10:n===h.BLOCKQUOTE||n===h.FIGCAPTION?he(e,t):ke(e,t);break;default:ke(e,t)}}function we(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function xe(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Ce(e,t){for(var n=t.tagName,i=e.openElements.stackTop;i>0;i--){var r=e.openElements.items[i];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function De(e,t){var n=t.tagName;switch(n.length){case 1:n===h.A||n===h.B||n===h.I||n===h.S||n===h.U?Q(e,t):n===h.P?function(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(h.P),e._closePElement()}(e):Ce(e,t);break;case 2:n===h.DL||n===h.UL||n===h.OL?we(e,t):n===h.LI?function(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}(e):n===h.DD||n===h.DT?function(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===h.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(h.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===h.EM||n===h.TT?Q(e,t):Ce(e,t);break;case 3:n===h.BIG?Q(e,t):n===h.DIR||n===h.DIV||n===h.NAV?we(e,t):Ce(e,t);break;case 4:n===h.BODY?function(e){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=N)}(e):n===h.HTML?function(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=N,e._processToken(t))}(e,t):n===h.FORM?function(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):e.openElements.remove(n))}(e):n===h.CODE||n===h.FONT||n===h.NOBR?Q(e,t):n===h.MAIN||n===h.MENU?we(e,t):Ce(e,t);break;case 5:n===h.ASIDE?we(e,t):n===h.SMALL?Q(e,t):Ce(e,t);break;case 6:n===h.CENTER||n===h.FIGURE||n===h.FOOTER||n===h.HEADER||n===h.HGROUP?we(e,t):n===h.APPLET||n===h.OBJECT?xe(e,t):n===h.STRIKE||n===h.STRONG?Q(e,t):Ce(e,t);break;case 7:n===h.ADDRESS||n===h.ARTICLE||n===h.DETAILS||n===h.SECTION||n===h.SUMMARY?we(e,t):n===h.MARQUEE?xe(e,t):Ce(e,t);break;case 8:n===h.FIELDSET?we(e,t):n===h.TEMPLATE?le(e,t):Ce(e,t);break;case 10:n===h.BLOCKQUOTE||n===h.FIGCAPTION?we(e,t):Ce(e,t);break;default:Ce(e,t)}}function Te(e,t){e.tmplInsertionModeStackTop>-1?je(e,t):e.stopped=!0}function Se(e,t){var n=e.openElements.currentTagName;n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=T,e._processToken(t)):Ie(e,t)}function Ae(e,t){var n=t.tagName;switch(n.length){case 2:n===h.TD||n===h.TH||n===h.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(h.TBODY),e.insertionMode=O,e._processToken(t)}(e,t):Ie(e,t);break;case 3:n===h.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(h.COLGROUP),e.insertionMode=A,e._processToken(t)}(e,t):Ie(e,t);break;case 4:n===h.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,p.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Ie(e,t);break;case 5:n===h.TABLE?function(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===h.STYLE?se(e,t):n===h.TBODY||n===h.TFOOT||n===h.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,p.HTML),e.insertionMode=O}(e,t):n===h.INPUT?function(e,t){var n=i.getTokenAttr(t,g.TYPE);n&&n.toLowerCase()===m?e._appendElement(t,p.HTML):Ie(e,t)}(e,t):Ie(e,t);break;case 6:n===h.SCRIPT?se(e,t):Ie(e,t);break;case 7:n===h.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,p.HTML),e.insertionMode=S}(e,t):Ie(e,t);break;case 8:n===h.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,p.HTML),e.insertionMode=A}(e,t):n===h.TEMPLATE?se(e,t):Ie(e,t);break;default:Ie(e,t)}}function Oe(e,t){var n=t.tagName;n===h.TABLE?e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode()):n===h.TEMPLATE?le(e,t):n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP&&n!==h.HTML&&n!==h.TBODY&&n!==h.TD&&n!==h.TFOOT&&n!==h.TH&&n!==h.THEAD&&n!==h.TR&&Ie(e,t)}function Ie(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Me(e,t){e.openElements.currentTagName===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=D,e._processToken(t))}function Pe(e,t){var n=t.tagName;n===h.HTML?Ee(e,t):n===h.OPTION?(e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e._insertElement(t,p.HTML)):n===h.OPTGROUP?(e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e.openElements.currentTagName===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,p.HTML)):n===h.INPUT||n===h.KEYGEN||n===h.TEXTAREA||n===h.SELECT?e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),n!==h.SELECT&&e._processToken(t)):n!==h.SCRIPT&&n!==h.TEMPLATE||se(e,t)}function Re(e,t){var n=t.tagName;if(n===h.OPTGROUP){var i=e.openElements.items[e.openElements.stackTop-1],r=i&&e.treeAdapter.getTagName(i);e.openElements.currentTagName===h.OPTION&&r===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===h.OPTGROUP&&e.openElements.pop()}else n===h.OPTION?e.openElements.currentTagName===h.OPTION&&e.openElements.pop():n===h.SELECT&&e.openElements.hasInSelectScope(h.SELECT)?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode()):n===h.TEMPLATE&&le(e,t)}function je(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Ne(e,t){e.insertionMode=x,e._processToken(t)}function Be(e,t){e.insertionMode=x,e._processToken(t)}W.prototype.parse=function(e){var t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t},W.prototype.parseFragment=function(e,t){t||(t=this.treeAdapter.createElement(h.TEMPLATE,p.HTML,[]));var n=this.treeAdapter.createElement("documentmock",p.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===h.TEMPLATE&&this._pushTmplInsertionMode(j),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);var i=this.treeAdapter.getFirstChild(n),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,r),r},W.prototype._bootstrap=function(e,t){this.tokenizer=new i(this.options),this.stopped=!1,this.insertionMode=b,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new r(this.document,this.treeAdapter),this.activeFormattingElements=new a(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1},W.prototype._runParsingLoop=function(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();var t=this.tokenizer.getNextToken();if(t.type===i.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===i.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}},W.prototype.runParsingLoopForCurrentChunk=function(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){var n=this.pendingScript;return this.pendingScript=null,void t(n)}e&&e()},W.prototype._setupTokenizerCDATAMode=function(){var e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==p.HTML&&!this._isIntegrationPoint(e)},W.prototype._switchToTextParsing=function(e,t){this._insertElement(e,p.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=C},W.prototype.switchToPlaintextParsing=function(){this.insertionMode=C,this.originalInsertionMode=x,this.tokenizer.state=i.MODE.PLAINTEXT},W.prototype._getAdjustedCurrentElement=function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current},W.prototype._findFormInFragmentContext=function(){var e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===h.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)},W.prototype._initTokenizerForFragmentParsing=function(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===p.HTML){var e=this.treeAdapter.getTagName(this.fragmentContext);e===h.TITLE||e===h.TEXTAREA?this.tokenizer.state=i.MODE.RCDATA:e===h.STYLE||e===h.XMP||e===h.IFRAME||e===h.NOEMBED||e===h.NOFRAMES||e===h.NOSCRIPT?this.tokenizer.state=i.MODE.RAWTEXT:e===h.SCRIPT?this.tokenizer.state=i.MODE.SCRIPT_DATA:e===h.PLAINTEXT&&(this.tokenizer.state=i.MODE.PLAINTEXT)}},W.prototype._setDocumentType=function(e){this.treeAdapter.setDocumentType(this.document,e.name,e.publicId,e.systemId)},W.prototype._attachElementToTree=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}},W.prototype._appendElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)},W.prototype._insertElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)},W.prototype._insertFakeElement=function(e){var t=this.treeAdapter.createElement(e,p.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)},W.prototype._insertTemplate=function(e){var t=this.treeAdapter.createElement(e.tagName,p.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)},W.prototype._insertFakeRootElement=function(){var e=this.treeAdapter.createElement(h.HTML,p.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)},W.prototype._appendCommentNode=function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)},W.prototype._insertCharacters=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}},W.prototype._adoptNodes=function(e,t){for(;;){var n=this.treeAdapter.getFirstChild(e);if(!n)break;this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}},W.prototype._shouldProcessTokenInForeignContent=function(e){var t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;var n=this.treeAdapter.getNamespaceURI(t);if(n===p.HTML)return!1;if(this.treeAdapter.getTagName(t)===h.ANNOTATION_XML&&n===p.MATHML&&e.type===i.START_TAG_TOKEN&&e.tagName===h.SVG)return!1;var r=e.type===i.CHARACTER_TOKEN||e.type===i.NULL_CHARACTER_TOKEN||e.type===i.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===i.START_TAG_TOKEN&&e.tagName!==h.MGLYPH&&e.tagName!==h.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,p.MATHML))&&((e.type!==i.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,p.HTML))&&e.type!==i.EOF_TOKEN)},W.prototype._processToken=function(e){K[this.insertionMode][e.type](this,e)},W.prototype._processTokenInBodyMode=function(e){K[x][e.type](this,e)},W.prototype._processTokenInForeignContent=function(e){e.type===i.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===i.NULL_CHARACTER_TOKEN?function(e,t){t.chars=f.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===i.WHITESPACE_CHARACTER_TOKEN?ne(this,e):e.type===i.COMMENT_TOKEN?ee(this,e):e.type===i.START_TAG_TOKEN?function(e,t){if(c.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==p.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{var n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===p.MATHML?c.adjustTokenMathMLAttrs(t):i===p.SVG&&(c.adjustTokenSVGTagName(t),c.adjustTokenSVGAttrs(t)),c.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i)}}(this,e):e.type===i.END_TAG_TOKEN&&function(e,t){for(var n=e.openElements.stackTop;n>0;n--){var i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===p.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(i).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(i);break}}}(this,e)},W.prototype._processInputToken=function(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e)},W.prototype._isIntegrationPoint=function(e,t){var n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e),r=this.treeAdapter.getAttrList(e);return c.isIntegrationPoint(n,i,r,t)},W.prototype._reconstructActiveFormattingElements=function(){var e=this.activeFormattingElements.length;if(e){var t=e,n=null;do{if(t--,(n=this.activeFormattingElements.entries[t]).type===a.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(var i=t;i=0;e--){var n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));var i=this.treeAdapter.getTagName(n),r=U[i];if(r){this.insertionMode=r;break}if(!(t||i!==h.TD&&i!==h.TH)){this.insertionMode=M;break}if(!t&&i===h.HEAD){this.insertionMode=E;break}if(i===h.SELECT){this._resetInsertionModeForSelect(e);break}if(i===h.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(i===h.HTML){this.insertionMode=this.headElement?w:k;break}if(t){this.insertionMode=x;break}}},W.prototype._resetInsertionModeForSelect=function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.items[t],i=this.treeAdapter.getTagName(n);if(i===h.TEMPLATE)break;if(i===h.TABLE)return void(this.insertionMode=R)}this.insertionMode=P},W.prototype._pushTmplInsertionMode=function(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e},W.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]},W.prototype._isElementCausesFosterParenting=function(e){var t=this.treeAdapter.getTagName(e);return t===h.TABLE||t===h.TBODY||t===h.TFOOT||t===h.THEAD||t===h.TR},W.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},W.prototype._findFosterParentingLocation=function(){for(var e={parent:null,beforeElement:null},t=this.openElements.stackTop;t>=0;t--){var n=this.openElements.items[t],i=this.treeAdapter.getTagName(n),r=this.treeAdapter.getNamespaceURI(n);if(i===h.TEMPLATE&&r===p.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(i===h.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e},W.prototype._fosterParentElement=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)},W.prototype._fosterParentText=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)},W.prototype._isSpecialElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return d.SPECIAL_ELEMENTS[n][t]}},function(e,t,n){"use strict";var i=n(174),r=n(119),a=n(327),o=n(76).inherits,s=e.exports=function(e){i.call(this,e),this.tokenizer=e,this.posTracker=new a(e.preprocessor),this.currentAttrLocation=null,this.currentTokenLocation=null};o(s,i),s.prototype._getCurrentLocation=function(){return{line:this.posTracker.line,col:this.posTracker.col,startOffset:this.posTracker.offset,endOffset:-1}},s.prototype._attachCurrentAttrLocationInfo=function(){this.currentAttrLocation.endOffset=this.posTracker.offset;var e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation},s.prototype._getOverriddenMethods=function(e,t){var n={_createStartTagToken:function(){t._createStartTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createEndTagToken:function(){t._createEndTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createCommentToken:function(){t._createCommentToken.call(this),this.currentToken.location=e.currentTokenLocation},_createDoctypeToken:function(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.currentTokenLocation},_createCharacterToken:function(n,i){t._createCharacterToken.call(this,n,i),this.currentCharacterToken.location=e.currentTokenLocation},_createAttr:function(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName:function(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue:function(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken:function(){this.currentCharacterToken&&(this.currentCharacterToken.location.endOffset=this.currentToken.location.startOffset),this.currentToken.location.endOffset=e.posTracker.offset+1,t._emitCurrentToken.call(this)},_emitCurrentCharacterToken:function(){this.currentCharacterToken&&-1===this.currentCharacterToken.location.endOffset&&(this.currentCharacterToken.location.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(r.MODE).forEach((function(i){var a=r.MODE[i];n[a]=function(n){e.currentTokenLocation=e._getCurrentLocation(),t[a].call(this,n)}})),n}},function(e,t,n){"use strict";var i=n(174),r=n(76).inherits,a=n(141).CODE_POINTS,o=e.exports=function(e){return e.__locTracker||(e.__locTracker=this,i.call(this,e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.col=-1,this.line=1),e.__locTracker};r(o,i),Object.defineProperty(o.prototype,"offset",{get:function(){return this.droppedBufferSize+this.preprocessor.pos}}),o.prototype._getOverriddenMethods=function(e,t){return{advance:function(){var n=t.advance.call(this);return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=e.offset),n===a.LINE_FEED&&(e.isEol=!0),e.col=e.offset-e.lineStartPos+1,n},retreat:function(){t.retreat.call(this),e.isEol=!1,e.col=e.offset-e.lineStartPos+1},dropParsedChunk:function(){var n=this.pos;t.dropParsedChunk.call(this),e.droppedBufferSize+=n-this.pos}}}},function(e,t,n){"use strict";var i=n(119),r=n(68),a=r.TAG_NAMES,o=r.NAMESPACES,s=r.ATTRS,l="text/html",u="application/xhtml+xml",c={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},f={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:o.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:o.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:o.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:o.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:o.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:o.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:o.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:o.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:o.XML},"xml:space":{prefix:"xml",name:"space",namespace:o.XML},xmlns:{prefix:"",name:"xmlns",namespace:o.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:o.XMLNS}},d=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},h=Object.create(null);h[a.B]=!0,h[a.BIG]=!0,h[a.BLOCKQUOTE]=!0,h[a.BODY]=!0,h[a.BR]=!0,h[a.CENTER]=!0,h[a.CODE]=!0,h[a.DD]=!0,h[a.DIV]=!0,h[a.DL]=!0,h[a.DT]=!0,h[a.EM]=!0,h[a.EMBED]=!0,h[a.H1]=!0,h[a.H2]=!0,h[a.H3]=!0,h[a.H4]=!0,h[a.H5]=!0,h[a.H6]=!0,h[a.HEAD]=!0,h[a.HR]=!0,h[a.I]=!0,h[a.IMG]=!0,h[a.LI]=!0,h[a.LISTING]=!0,h[a.MENU]=!0,h[a.META]=!0,h[a.NOBR]=!0,h[a.OL]=!0,h[a.P]=!0,h[a.PRE]=!0,h[a.RUBY]=!0,h[a.S]=!0,h[a.SMALL]=!0,h[a.SPAN]=!0,h[a.STRONG]=!0,h[a.STRIKE]=!0,h[a.SUB]=!0,h[a.SUP]=!0,h[a.TABLE]=!0,h[a.TT]=!0,h[a.U]=!0,h[a.UL]=!0,h[a.VAR]=!0,t.causesExit=function(e){var t=e.tagName;return!!(t===a.FONT&&(null!==i.getTokenAttr(e,s.COLOR)||null!==i.getTokenAttr(e,s.SIZE)||null!==i.getTokenAttr(e,s.FACE)))||h[t]},t.adjustTokenMathMLAttrs=function(e){for(var t=0;t/g,g=e.exports=function(e,t){this.options=r(u,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e};g.escapeString=function(e,t){return e=e.replace(c,"&").replace(f," "),e=t?e.replace(d,"""):e.replace(h,"<").replace(p,">")},g.prototype.serialize=function(){return this._serializeChildNodes(this.startNode),this.html},g.prototype._serializeChildNodes=function(e){var t=this.treeAdapter.getChildNodes(e);if(t)for(var n=0,i=t.length;n",t!==s.AREA&&t!==s.BASE&&t!==s.BASEFONT&&t!==s.BGSOUND&&t!==s.BR&&t!==s.BR&&t!==s.COL&&t!==s.EMBED&&t!==s.FRAME&&t!==s.HR&&t!==s.IMG&&t!==s.INPUT&&t!==s.KEYGEN&&t!==s.LINK&&t!==s.MENUITEM&&t!==s.META&&t!==s.PARAM&&t!==s.SOURCE&&t!==s.TRACK&&t!==s.WBR){var i=t===s.TEMPLATE&&n===l.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(i),this.html+=""}},g.prototype._serializeAttributes=function(e){for(var t=this.treeAdapter.getAttrList(e),n=0,i=t.length;n"}},function(e,t,n){"use strict";var i=n(175).Writable,r=n(76).inherits,a=n(325),o=e.exports=function(e){i.call(this),this.parser=new a(e),this.lastChunkWritten=!1,this.writeCallback=null,this.pausedByScript=!1,this.document=this.parser.treeAdapter.createDocument(),this.pendingHtmlInsertions=[],this._resume=this._resume.bind(this),this._documentWrite=this._documentWrite.bind(this),this._scriptHandler=this._scriptHandler.bind(this),this.parser._bootstrap(this.document,null)};r(o,i),o.prototype._write=function(e,t,n){this.writeCallback=n,this.parser.tokenizer.write(e.toString("utf8"),this.lastChunkWritten),this._runParsingLoop()},o.prototype.end=function(e,t,n){this.lastChunkWritten=!0,i.prototype.end.call(this,e||"",t,n)},o.prototype._runParsingLoop=function(){this.parser.runParsingLoopForCurrentChunk(this.writeCallback,this._scriptHandler)},o.prototype._resume=function(){if(!this.pausedByScript)throw new Error("Parser was already resumed");for(;this.pendingHtmlInsertions.length;){var e=this.pendingHtmlInsertions.pop();this.parser.tokenizer.insertHtmlAtCurrentPos(e)}this.pausedByScript=!1,this.parser.tokenizer.active&&this._runParsingLoop()},o.prototype._documentWrite=function(e){this.parser.stopped||this.pendingHtmlInsertions.push(e)},o.prototype._scriptHandler=function(e){this.listeners("script").length?(this.pausedByScript=!0,this.emit("script",e,this._documentWrite,this._resume)):this._runParsingLoop()}},function(e,t,n){"use strict";(function(t,i){var r=n(176);e.exports=y;var a,o=n(786);y.ReadableState=F;n(235).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(332),u=n(237).Buffer,c=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var f=Object.create(n(142));f.inherits=n(120);var d=n(790),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,g=n(791),_=n(333);f.inherits(y,l);var m=["error","close","destroy","pause","resume"];function F(e,t){e=e||{};var i=t instanceof(a=a||n(102));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(335).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(a=a||n(102),!(this instanceof y))return new y(e);this._readableState=new F(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function b(e,t,n,i,r){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,w(e)}(e,o)):(r||(a=function(e,t){var n;i=t,u.isBuffer(i)||i instanceof c||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):v(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?v(e,o,t,!1):C(e,o)):v(e,o,t,!1))):i||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function w(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(x,e):x(e))}function x(e){h("emit readable"),e.emit("readable"),A(e)}function C(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(D,e,t))}function D(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var i;ea.length?a.length:e;if(o===a.length?r+=a:r+=a.slice(0,e),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}(e,t):function(e,t){var n=u.allocUnsafe(e),i=t.head,r=1;i.data.copy(n),e-=i.data.length;for(;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++r}return t.length-=r,n}(e,t);return i}(e,t.buffer,t.decoder),n);var n}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):w(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&I(this),null;var i,r=t.needReadable;return h("need readable",r),(0===t.length||t.length-e0?O(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&I(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,t);var l=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:y;function u(t,i){h("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),e.removeListener("close",m),e.removeListener("finish",F),e.removeListener("drain",f),e.removeListener("error",_),e.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",y),n.removeListener("data",g),d=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){h("onend"),e.end()}a.endEmitted?r.nextTick(l):n.once("end",l),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",f);var d=!1;var p=!1;function g(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==P(a.pipes,e))&&!d&&(h("false write response, pause",a.awaitDrain),a.awaitDrain++,p=!0),n.pause())}function _(t){h("onerror",t),y(),e.removeListener("error",_),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",F),y()}function F(){h("onfinish"),e.removeListener("close",m),y()}function y(){h("unpipe"),n.unpipe(e)}return n.on("data",g),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",_),e.once("close",m),e.once("finish",F),e.emit("pipe",n),a.flowing||(h("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return r>0&&(e.lastNeed=r-1),r;if(--i=0)return r>0&&(e.lastNeed=r-2),r;if(--i=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=o;var i=n(102),r=Object.create(n(142));function a(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.lengthd?n(a):(e.consume(a),m):41===a?h--?(e.consume(a),m):(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(o),t(a)):null===a||r(a)?h?n(a):(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(o),t(a)):i(a)?n(a):(e.consume(a),92===a?F:m)}function F(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}},function(e,t,n){"use strict";var i=n(30),r=n(77);e.exports=function(e,t,n,a,o,s){var l,u=this,c=0;return function(t){return e.enter(a),e.enter(o),e.consume(t),e.exit(o),e.enter(s),f};function f(r){return null===r||91===r||93===r&&!l||94===r&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs||c>999?n(r):93===r?(e.exit(s),e.enter(o),e.consume(r),e.exit(o),e.exit(a),t):i(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(r))}function d(t){return null===t||91===t||93===t||i(t)||c++>999?(e.exit("chunkString"),f(t)):(e.consume(t),l=l||!r(t),92===t?h:d)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,d):d(t)}}},function(e,t,n){"use strict";var i=n(30),r=n(77),a=n(34);e.exports=function(e,t){var n;return function o(s){if(i(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,o;if(r(s))return a(e,o,n?"linePrefix":"lineSuffix")(s);return t(s)}}},function(e,t,n){"use strict";var i=n(30),r=n(34);e.exports=function(e,t,n,a,o,s){var l;return function(t){return e.enter(a),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,u};function u(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),t):(e.enter(s),c(n))}function c(t){return t===l?(e.exit(s),u(l)):null===t?n(t):i(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===l||null===t||i(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?d:f)}function d(t){return t===l||92===t?(e.consume(t),f):f(t)}}},function(e,t,n){"use strict";var i=n(30),r=n(77),a=n(34),o={name:"thematicBreak",tokenize:function(e,t,n){var o,s=0;return function(t){return e.enter("thematicBreak"),o=t,l(t)};function l(c){return c===o?(e.enter("thematicBreakSequence"),u(c)):r(c)?a(e,l,"whitespace")(c):s<3||null!==c&&!i(c)?n(c):(e.exit("thematicBreak"),t(c))}function u(t){return t===o?(e.consume(t),s++,u):(e.exit("thematicBreakSequence"),l(t))}}};e.exports=o},function(e,t,n){"use strict";var i=o("start"),r=o("end");function a(e){return{start:i(e),end:r(e)}}function o(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=a,a.start=i,a.end=r},function(e,t,n){"use strict";e.exports=function(e,t,n){var i,r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");i=a.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.indexOf(r)>-1?s:e.unknownHandler;return("function"===typeof i?i:o)(e,t,n)};var i=n(57),r=n(43),a={}.hasOwnProperty;function o(e,t){return function(e){var t=e.data||{};if(a.call(t,"hName")||a.call(t,"hProperties")||a.call(t,"hChildren"))return!1;return"value"in e}(t)?e.augment(t,i("text",t.value)):e(t,"div",r(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=r(e,t),n):t}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"hr")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,a,o={},s=t.ordered?"ol":"ul",l=-1;"number"===typeof t.start&&1!==t.start&&(o.start=t.start);n=r(e,t),a=n.length;for(;++l0?o.get(n-1):void 0,l=n=n&&(i={start:e,end:t})})),"object"!==typeof i&&a(!1),i}(o,c,n),h=d.start,p=d.end;h0&&(n=a.childNodes.length));if(0===n){var f=null;if(null!=u)f=u;else{var d=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||r(e.firstChild));)e=e.firstChild;return e}(a);f=l(r(d))}return{key:f,offset:0}}var h=a.childNodes[n-1],p=null,g=null;if(r(h)){var _=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||r(e.lastChild));)e=e.lastChild;return e}(h);p=l(r(_)),g=c(_)}else p=l(u),g=c(h);return{key:p,offset:g}}function c(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,r,o,s){var c=n.nodeType===Node.TEXT_NODE,f=o.nodeType===Node.TEXT_NODE;if(c&&f)return{selectionState:a(e,l(i(n)),r,l(i(o)),s),needsRecovery:!1};var d=null,h=null,p=!0;return c?(d={key:l(i(n)),offset:r},h=u(t,o,s)):f?(h={key:l(i(o)),offset:s},d=u(t,n,r)):(d=u(t,n,r),h=u(t,o,s),n===o&&r===s&&(p=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:a(e,d.key,d.offset,h.key,h.offset),needsRecovery:p}}},function(e,t,n){"use strict";var i=n(78),r=n(45);e.exports=function(e,t,n,a,o){var s=r(e.getSelection());if(!t||!a)return s;var l=i.decode(t),u=l.blockKey,c=e.getBlockTree(u),f=c&&c.getIn([l.decoratorKey,"leaves",l.leafKey]),d=i.decode(a),h=d.blockKey,p=e.getBlockTree(h),g=p&&p.getIn([d.decoratorKey,"leaves",d.leafKey]);if(!f||!g)return s;var _=f.get("start"),m=g.get("start"),F=f?_+n:null,y=g?m+o:null;if(s.getAnchorKey()===u&&s.getAnchorOffset()===F&&s.getFocusKey()===h&&s.getFocusOffset()===y)return s;var b=!1;if(u===h){var v=f.get("end"),k=g.get("end");b=m===_&&k===v?o0&&window.scrollTo(a.x,a.y+i+10)}else{m(n)||_(!1),(i=n.offsetHeight+n.offsetTop-(r.offsetTop+r.offsetHeight+a.y))>0&&l.setTop(r,l.getTop(r)+i+10)}}}}},b._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),i=t.getText(),l=this.props.tree.size-1,u=y(this.props.selection,n);return this.props.tree.map((function(d,h){var p=d.get("leaves");if(0===p.size)return null;var g=p.size-1,_=p.map((function(r,c){var f=o.encode(n,h,c),d=r.get("start"),p=r.get("end");return s.createElement(a,{key:f,offsetKey:f,block:t,start:d,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:i.slice(d,p),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===l&&c===g})})).toArray(),m=d.get("decoratorKey");if(null==m)return _;if(!e.props.decorator)return _;var y=F(e.props.decorator),b=y.getComponentForKey(m);if(!b)return _;var v=y.getPropsForKey(m),k=o.encode(n,h,0),E=p.first().get("start"),w=p.last().get("end"),x=i.slice(E,w),C=t.getEntityAt(d.get("start")),D=f.getHTMLDirIfDifferent(c.getDirection(x),e.props.direction),T={contentState:e.props.contentState,decoratedText:x,dir:D,start:E,end:w,blockKey:n,entityKey:C,offsetKey:k};return s.createElement(b,r({},v,T,{key:k}),_)})).toArray()},b.render=function(){var e=this,t=this.props,n=t.direction,i=t.offsetKey,r=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return s.createElement("div",{"data-offset-key":i,className:r,ref:function(t){return e._node=t}},this._renderChildren())},i}(s.Component);e.exports=b},function(e,t,n){"use strict";var i=n(968),r=n(969),a=n(396),o=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function l(e){if("file"==e.kind)return e.getAsFile()}var u=function(){function e(e){this.data=e,this.types=e.types?r(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(o,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=u},function(e,t,n){"use strict";function i(e){return function(){return e}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";(function(t){var i=n(14),r=/\.textClipping$/,a={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,n){var o=0,s=[];e.forEach((function(l){!function(e,n){if(!t.FileReader||e.type&&!(e.type in a))return void n("");if(""===e.type){var o="";return r.test(e.name)&&(o=e.name.replace(r,"")),void n(o)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!==typeof e&&i(!1),n(e)},s.onerror=function(){n("")},s.readAsText(e)}(l,(function(t){o++,t&&s.push(t.slice(0,5e3)),o==e.length&&n(s.join("\r"))}))}))}}).call(this,n(52))},function(e,t,n){"use strict";var i=n(183);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:i(e.getCurrentContent(),t)}},function(e,t,n){"use strict";var i=n(19),r=n(106),a=n(255),o=n(148);e.exports=function(e){var t=o(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=t.getAnchorKey(),o=t.getAnchorOffset(),s=n.getBlockForKey(i).getText()[o-1];return a(e,s?r.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return i.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var i=n(46),r=n(14);var a=i.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],i=e.endContainer;null!=i;i=i.parentNode){var a=i===e.commonAncestorContainer;a?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var o,s=Array.from(t.getClientRects());if(n.push(s),a)return n.reverse(),(o=[]).concat.apply(o,n);t.setEndBefore(i)}r(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=a},function(e,t,n){"use strict";var i="['\u2018\u2019]",r="\\s|(?![_])"+n(989).getPunctuation(),a=new RegExp("^(?:"+r+")*(?:"+i+"|(?!"+r+").)*(?:(?!"+r+").)"),o=new RegExp("(?:(?!"+r+").)(?:"+i+"|(?!"+r+").)*(?:"+r+")*$");function s(e,t){var n=t?o.exec(e):a.exec(e);return n?n[0]:e}var l={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=l},function(e,t,n){"use strict";n(256);e.exports=function(e,t){var n,i=e.getSelection(),r=i.getStartKey(),a=i.getStartOffset(),o=e.getCurrentContent(),s=r;return t>o.getBlockForKey(r).getText().length-a?(s=o.getKeyAfter(r),n=0):n=a+t,i.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var i;function r(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some((function(n){e.classList.contains(n)&&(t=R[n])})),t},L=function(e){if(!b(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new f(t.href);return!0}catch(n){return!1}},q=function(e){if(!E(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},z=function(e,t){if(!k(e))return t;var n=e,i=n.style.fontWeight,r=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations((function(e){O.indexOf(i)>=0?e.add("BOLD"):I.indexOf(i)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===a&&e.add("UNDERLINE"),"line-through"===a&&e.add("STRIKETHROUGH"),"none"===a&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},U=function(e){return"ul"===e||"ol"===e},H=function(){function e(e,t){a(this,"characterList",m()),a(this,"currentBlockType","unstyled"),a(this,"currentDepth",0),a(this,"currentEntity",null),a(this,"currentText",""),a(this,"wrapper",null),a(this,"blockConfigs",[]),a(this,"contentBlocks",[]),a(this,"entityMap",c),a(this,"blockTypeMap",void 0),a(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=m(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=c,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],y())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(w?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r({key:e.key||h(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:m(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=m(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],i=0;i(n=void 0!==(i=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-i[0]):n)?(this.currentText="",this.characterList=m()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(D,"")).replace(C," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){v(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(E(e)){var n=e,i={};P.forEach((function(e){var t=n.getAttribute(e);t&&(i[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",i),g("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("\ud83d\udcf7",t):this._appendText("\ud83d\udcf7",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(b(e)){var i=e,r={};M.forEach((function(e){var t=i.getAttribute(e);t&&(r[e]=t)})),r.url=new f(i.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",r||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,i=0;i<=n;i++){var a=e[i];a.parent=t,a.prevSibling=i>0?e[i-1].key:null,a.nextSibling=i2&&void 0!==arguments[2]?arguments[2]:u,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:p)(e=e.trim().replace(x,"").replace(T," ").replace(S,"").replace(A,""));if(!n)return null;var i=function(e){var t={};return e.mapKeys((function(e,n){var i=[n.element];void 0!==n.aliasedElements&&i.push.apply(i,n.aliasedElements),i.forEach((function(n){void 0===t[n]?t[n]=e:"string"===typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),F(t)}(t);return new H(i,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},function(e,t,n){"use strict";var i=n(46),r=n(14),a=i.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!a&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||r(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t,n){"use strict";var i=n(44),r=n(19),a=n(1002),o=n(45),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===i.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=r.push(e,t,"insert-characters");return r.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockBefore(i);if(a&&"atomic"===a.getType()){var o=n.getBlockMap().delete(a.getKey()),l=n.merge({blockMap:o,selectionAfter:t});if(l!==n)return r.push(e,l,"remove-range")}var u=s.tryToRemoveBlockStyle(e);return u?r.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),a=t.getStartKey(),o=n.getBlockForKey(a).getLength();if(t.getStartOffset()o&&i.push(e.substring(o,a.index));var l={href:a.url,key:"parse"+n.parseCounter+"match"+s};for(var u in n.props.properties){var c=n.props.properties[u];c===t.MATCH&&(c=a.url),l[u]=c}i.push(r.default.createElement(n.props.component,l,a.text)),o=a.lastIndex})),o=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),r=1;r/gm),K=c(/\${[\w\W]*}/gm),W=c(/^data-[\-\w.\u00B7-\uFFFF]/),G=c(/^aria-[\-\w]+$/),V=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=c(/^(?:\w+script|data):/i),X=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=c(/^html$/i),J=Object.freeze({__proto__:null,MUSTACHE_EXPR:U,ERB_EXPR:H,TMPLIT_EXPR:K,DATA_ATTR:W,ARIA_ATTR:G,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:X,DOCTYPE_NAME:$}),Q=function(){return"undefined"===typeof window?null:window},Z=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(a){return null}};function ee(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),n=function(e){return ee(e)};if(n.version="3.0.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i,r=t.document,o=r.currentScript,s=t.document,l=t.DocumentFragment,c=t.HTMLTemplateElement,f=t.Node,d=t.Element,h=t.NodeFilter,p=t.NamedNodeMap,C=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,D=t.HTMLFormElement,U=t.DOMParser,H=t.trustedTypes,K=d.prototype,W=A(K,"cloneNode"),G=A(K,"nextSibling"),Y=A(K,"childNodes"),X=A(K,"parentNode");if("function"===typeof c){var te=s.createElement("template");te.content&&te.content.ownerDocument&&(s=te.content.ownerDocument)}var ne="",ie=s,re=ie.implementation,ae=ie.createNodeIterator,oe=ie.createDocumentFragment,se=ie.getElementsByTagName,le=r.importNode,ue={};n.isSupported="function"===typeof e&&"function"===typeof X&&re&&void 0!==re.createHTMLDocument;var ce,fe,de=J.MUSTACHE_EXPR,he=J.ERB_EXPR,pe=J.TMPLIT_EXPR,ge=J.DATA_ATTR,_e=J.ARIA_ATTR,me=J.IS_SCRIPT_OR_DATA,Fe=J.ATTR_WHITESPACE,ye=J.IS_ALLOWED_URI,be=null,ve=T({},[].concat(a(O),a(I),a(M),a(R),a(N))),ke=null,Ee=T({},[].concat(a(B),a(L),a(q),a(z))),we=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Ce=null,De=!0,Te=!0,Se=!1,Ae=!0,Oe=!1,Ie=!1,Me=!1,Pe=!1,Re=!1,je=!1,Ne=!1,Be=!0,Le=!1,qe="user-content-",ze=!0,Ue=!1,He={},Ke=null,We=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ge=null,Ve=T({},["audio","video","img","source","image","track"]),Ye=null,Xe=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$e="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Ze=Qe,et=!1,tt=null,nt=T({},[$e,Je,Qe],y),it=["application/xhtml+xml","text/html"],rt="text/html",at=null,ot=s.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},lt=function(e){if(!at||at!==e){if(e&&"object"===typeof e||(e={}),e=S(e),ce=ce=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?rt:e.PARSER_MEDIA_TYPE,fe="application/xhtml+xml"===ce?y:F,be="ALLOWED_TAGS"in e?T({},e.ALLOWED_TAGS,fe):ve,ke="ALLOWED_ATTR"in e?T({},e.ALLOWED_ATTR,fe):Ee,tt="ALLOWED_NAMESPACES"in e?T({},e.ALLOWED_NAMESPACES,y):nt,Ye="ADD_URI_SAFE_ATTR"in e?T(S(Xe),e.ADD_URI_SAFE_ATTR,fe):Xe,Ge="ADD_DATA_URI_TAGS"in e?T(S(Ve),e.ADD_DATA_URI_TAGS,fe):Ve,Ke="FORBID_CONTENTS"in e?T({},e.FORBID_CONTENTS,fe):We,xe="FORBID_TAGS"in e?T({},e.FORBID_TAGS,fe):{},Ce="FORBID_ATTR"in e?T({},e.FORBID_ATTR,fe):{},He="USE_PROFILES"in e&&e.USE_PROFILES,De=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,Ie=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,Le=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,Ue=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||V,Ze=e.NAMESPACE||Qe,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Te=!1),je&&(Re=!0),He&&(be=T({},a(N)),ke=[],!0===He.html&&(T(be,O),T(ke,B)),!0===He.svg&&(T(be,I),T(ke,L),T(ke,z)),!0===He.svgFilters&&(T(be,M),T(ke,L),T(ke,z)),!0===He.mathMl&&(T(be,R),T(ke,q),T(ke,z))),e.ADD_TAGS&&(be===ve&&(be=S(be)),T(be,e.ADD_TAGS,fe)),e.ADD_ATTR&&(ke===Ee&&(ke=S(ke)),T(ke,e.ADD_ATTR,fe)),e.ADD_URI_SAFE_ATTR&&T(Ye,e.ADD_URI_SAFE_ATTR,fe),e.FORBID_CONTENTS&&(Ke===We&&(Ke=S(Ke)),T(Ke,e.FORBID_CONTENTS,fe)),ze&&(be["#text"]=!0),Ie&&T(be,["html","head","body"]),be.table&&(T(be,["tbody"]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');i=e.TRUSTED_TYPES_POLICY,ne=i.createHTML("")}else void 0===i&&(i=Z(H,o)),null!==i&&"string"===typeof ne&&(ne=i.createHTML(""));u&&u(e),at=e}},ut=T({},["mi","mo","mn","ms","mtext"]),ct=T({},["foreignobject","desc","title","annotation-xml"]),ft=T({},["title","style","font","a","script"]),dt=T({},I);T(dt,M),T(dt,P);var ht=T({},R);T(ht,j);var pt=function(e){var t=X(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});var n=F(e.tagName),i=F(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===$e?"svg"===n&&("annotation-xml"===i||ut[i]):Boolean(dt[n]):e.namespaceURI===$e?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Je?"math"===n&&ct[i]:Boolean(ht[n]):e.namespaceURI===Qe?!(t.namespaceURI===Je&&!ct[i])&&!(t.namespaceURI===$e&&!ut[i])&&!ht[n]&&(ft[n]||!dt[n]):!("application/xhtml+xml"!==ce||!tt[e.namespaceURI]))},gt=function(e){m(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},_t=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(i){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Re||je)try{gt(t)}catch(i){}else try{t.setAttribute(e,"")}catch(i){}},mt=function(e){var t,n;if(Pe)e=""+e;else{var r=b(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ce&&Ze===Qe&&(e=''+e+"");var a=i?i.createHTML(e):e;if(Ze===Qe)try{t=(new U).parseFromString(a,ce)}catch(l){}if(!t||!t.documentElement){t=re.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=et?ne:a}catch(l){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),Ze===Qe?se.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:o},Ft=function(e){return ae.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof D&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof C)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},bt=function(e){return"object"===typeof f?e instanceof f:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},vt=function(e,t,i){ue[e]&&g(ue[e],(function(e){e.call(n,t,i,at)}))},kt=function(e){var t;if(vt("beforeSanitizeElements",e,null),yt(e))return gt(e),!0;var i=fe(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:i,allowedTags:be}),e.hasChildNodes()&&!bt(e.firstElementChild)&&(!bt(e.content)||!bt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return gt(e),!0;if(!be[i]||xe[i]){if(!xe[i]&&wt(i)){if(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,i))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(i))return!1}if(ze&&!Ke[i]){var r=X(e)||e.parentNode,a=Y(e)||e.childNodes;if(a&&r)for(var o=a.length-1;o>=0;--o)r.insertBefore(W(a[o],!0),G(e))}return gt(e),!0}return e instanceof d&&!pt(e)?(gt(e),!0):"noscript"!==i&&"noembed"!==i||!w(/<\/no(script|embed)/i,e.innerHTML)?(Oe&&3===e.nodeType&&(t=e.textContent,t=v(t,de," "),t=v(t,he," "),t=v(t,pe," "),e.textContent!==t&&(m(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(gt(e),!0)},Et=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in s||n in ot))return!1;if(Te&&!Ce[t]&&w(ge,t));else if(De&&w(_e,t));else if(!ke[t]||Ce[t]){if(!(wt(e)&&(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&w(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,n)||we.tagNameCheck instanceof Function&&we.tagNameCheck(n))))return!1}else if(Ye[t]);else if(w(ye,v(n,Fe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!Ge[e])if(Se&&!w(me,v(n,Fe,"")));else if(n)return!1;return!0},wt=function(e){return e.indexOf("-")>0},xt=function(e){var t,r,a,o;vt("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(o=s.length;o--;){var u=t=s[o],c=u.name,f=u.namespaceURI;if(r="value"===c?t.value:E(t.value),a=fe(c),l.attrName=a,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(_t(c,e),l.keepAttr))if(Ae||!w(/\/>/i,r)){Oe&&(r=v(r,de," "),r=v(r,he," "),r=v(r,pe," "));var d=fe(e.nodeName);if(Et(d,a,r)){if(!Le||"id"!==a&&"name"!==a||(_t(c,e),r=qe+r),i&&"object"===typeof H&&"function"===typeof H.getAttributeType)if(f);else switch(H.getAttributeType(d,a)){case"TrustedHTML":r=i.createHTML(r);break;case"TrustedScriptURL":r=i.createScriptURL(r)}try{f?e.setAttributeNS(f,c,r):e.setAttribute(c,r),_(n.removed)}catch(h){}}}else _t(c,e)}vt("afterSanitizeAttributes",e,null)}},Ct=function e(t){var n,i=Ft(t);for(vt("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)vt("uponSanitizeShadowNode",n,null),kt(n)||(n.content instanceof l&&e(n.content),xt(n));vt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var t,a,o,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((et=!e)&&(e="\x3c!--\x3e"),"string"!==typeof e&&!bt(e)){if("function"!==typeof e.toString)throw x("toString is not a function");if("string"!==typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||lt(u),n.removed=[],"string"===typeof e&&(Ue=!1),Ue){if(e.nodeName){var c=fe(e.nodeName);if(!be[c]||xe[c])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof f)1===(a=(t=mt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?t=a:t.appendChild(a);else{if(!Re&&!Oe&&!Ie&&-1===e.indexOf("<"))return i&&Ne?i.createHTML(e):e;if(!(t=mt(e)))return Re?null:Ne?ne:""}t&&Pe&>(t.firstChild);for(var d=Ft(Ue?e:t);o=d.nextNode();)kt(o)||(o.content instanceof l&&Ct(o.content),xt(o));if(Ue)return e;if(Re){if(je)for(s=oe.call(t.ownerDocument);t.firstChild;)s.appendChild(t.firstChild);else s=t;return(ke.shadowroot||ke.shadowrootmod)&&(s=le.call(r,s,!0)),s}var h=Ie?t.outerHTML:t.innerHTML;return Ie&&be["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&w($,t.ownerDocument.doctype.name)&&(h="\n"+h),Oe&&(h=v(h,de," "),h=v(h,he," "),h=v(h,pe," ")),i&&Ne?i.createHTML(h):h},n.setConfig=function(e){lt(e),Me=!0},n.clearConfig=function(){at=null,Me=!1},n.isValidAttribute=function(e,t,n){at||lt({});var i=fe(e),r=fe(t);return Et(i,r,n)},n.addHook=function(e,t){"function"===typeof t&&(ue[e]=ue[e]||[],m(ue[e],t))},n.removeHook=function(e){if(ue[e])return _(ue[e])},n.removeHooks=function(e){ue[e]&&(ue[e]=[])},n.removeAllHooks=function(){ue={}},n}return ee()}()},function(e,t,n){"use strict";var i=n(0),r=n(338),a=n(827),o=n(833),s=n(879),l=n(25),u=n(908),c=n(911),f=n(912),d=n(913).hastChildrenToReact;e.exports=_;var h={}.hasOwnProperty,p="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",g={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function _(e){for(var t in g)if(h.call(g,t)&&h.call(e,t)){var n=g[t];"[react-markdown] Warning: please ".concat(n.to?"use `".concat(n.to,"` instead of"):"remove"," `").concat(t,"` (see <").concat(p,"#").concat(n.id,"> for more info)"),delete g[t]}var l,f=a().use(o).use(e.remarkPlugins||e.plugins||[]).use(s,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(c,e);"string"===typeof e.children?l=r(e.children):(void 0!==e.children&&null!==e.children&&"[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"),l=r());var _=f.runSync(f.parse(l),l);if("root"!==_.type)throw new TypeError("Expected a `root` node");var m=i.createElement(i.Fragment,{},d({options:e,schema:u,listDepth:0},_));return e.className&&(m=i.createElement("div",{className:e.className},m)),m}_.defaultProps={transformLinkUri:f},_.propTypes={children:l.string,className:l.string,allowElement:l.func,allowedElements:l.arrayOf(l.string),disallowedElements:l.arrayOf(l.string),unwrapDisallowed:l.bool,remarkPlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),rehypePlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),sourcePos:l.bool,rawSourcePos:l.bool,skipHtml:l.bool,includeElementIndex:l.bool,transformLinkUri:l.oneOfType([l.func,l.bool]),linkTarget:l.oneOfType([l.func,l.string]),transformImageUri:l.func,components:l.object},_.uriTransformer=f},function(e,t,n){!function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=n(t);function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}var o=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},s={error:null},l=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r=51||!r((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),m=function(e){if(!o(e))return!1;var t=e[g];return void 0!==t?!!t:a(e)};i({target:"Array",proto:!0,arity:1,forced:!_||!d("concat")},{concat:function(e){var t,n,i,r,a,o=s(this),d=f(o,0),h=0;for(t=-1,i=arguments.length;t1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(1),r=n(38).find,a=n(67),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(e,t,n){"use strict";var i=n(1),r=n(38).findIndex,a=n(67),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(e,t,n){"use strict";var i=n(1),r=n(278),a=n(17),o=n(21),s=n(40),l=n(131);i({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=o(t),i=l(t,0);return i.length=r(i,t,t,n,0,void 0===e?1:s(e)),i}})},function(e,t,n){"use strict";var i=n(1),r=n(278),a=n(15),o=n(17),s=n(21),l=n(131);i({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),i=s(n);return a(e),(t=l(n,0)).length=r(t,n,n,i,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},function(e,t,n){var i=n(1),r=n(279);i({target:"Array",stat:!0,forced:!n(157)((function(e){Array.from(e)}))},{from:r})},function(e,t,n){var i=n(7),r=n(156);e.exports=function(e,t,n,a){try{return a?t(i(n)[0],n[1]):t(n)}catch(o){r(e,"throw",o)}}},function(e,t,n){"use strict";var i=n(1),r=n(127).includes,a=n(3),o=n(67);i({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){"use strict";var i=n(1),r=n(84),a=n(127).indexOf,o=n(110),s=r([].indexOf),l=!!s&&1/s([1],1,-0)<0;i({target:"Array",proto:!0,forced:l||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:a(this,e,t)}})},function(e,t,n){var i=n(1),r=n(283);i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(e,t,n){"use strict";var i=n(1),r=n(38).map;i({target:"Array",proto:!0,forced:!n(132)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(1),r=n(3),a=n(95),o=n(83),s=Array;i({target:"Array",stat:!0,forced:r((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(a(this)?this:s)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var i=n(1),r=n(159).left,a=n(110),o=n(80);i({target:"Array",proto:!0,forced:!n(96)&&o>79&&o<83||!a("reduce")},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(1),r=n(159).right,a=n(110),o=n(80);i({target:"Array",proto:!0,forced:!n(96)&&o>79&&o<83||!a("reduceRight")},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(1),r=n(4),a=n(94),o=r([].reverse),s=[1,2];i({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},function(e,t,n){"use strict";var i=n(1),r=n(94),a=n(95),o=n(11),s=n(82),l=n(21),u=n(47),c=n(83),f=n(8),d=n(132),h=n(85),p=d("slice"),g=f("species"),_=Array,m=Math.max;i({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,i,f,d=u(this),p=l(d),F=s(e,p),y=s(void 0===t?p:t,p);if(r(d)&&(n=d.constructor,(a(n)&&(n===_||r(n.prototype))||o(n)&&null===(n=n[g]))&&(n=void 0),n===_||void 0===n))return h(d,F,y);for(i=new(void 0===n?_:n)(m(y-F,0)),f=0;F3)){if(p)return!0;if(_)return _<603;var e,t,n,i,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)m.push({k:t+i,v:n})}for(m.sort((function(e,t){return t.v-e.v})),i=0;iu(n)?1:-1}}(e)),n=s(r),i=0;ib-i+n;_--)d(y,_-1)}else if(n>i)for(_=b-i;_>v;_--)F=_+n-1,(m=_+i-1)in y?y[F]=y[m]:d(y,F);for(_=0;_>1,_=23===t?r(2,-24)-r(2,-77):0,m=e<0||0===e&&1/e<0?1:0,F=0;for((e=i(e))!=e||e===1/0?(c=e!=e?1:0,u=p):(u=a(o(e)/s),e*(f=r(2,-u))<1&&(u--,f*=2),(e+=u+g>=1?_/f:_*r(2,1-g))*f>=2&&(u++,f/=2),u+g>=p?(c=0,u=p):u+g>=1?(c=(e*f-1)*r(2,t),u+=g):(c=e*r(2,g-1)*r(2,t),u=0));t>=8;)d[F++]=255&c,c/=256,t-=8;for(u=u<0;)d[F++]=255&u,u/=256,h-=8;return d[--F]|=128*m,d},unpack:function(e,t){var n,i=e.length,a=8*i-t-1,o=(1<>1,l=a-7,u=i-1,c=e[u--],f=127&c;for(c>>=7;l>0;)f=256*f+e[u--],l-=8;for(n=f&(1<<-l)-1,f>>=-l,l+=t;l>0;)n=256*n+e[u--],l-=8;if(0===f)f=1-s;else{if(f===o)return n?NaN:c?-1/0:1/0;n+=r(2,t),f-=s}return(c?-1:1)*n*r(2,f-t)}}},function(e,t,n){"use strict";var i=n(1),r=n(84),a=n(3),o=n(214),s=n(7),l=n(82),u=n(53),c=n(113),f=o.ArrayBuffer,d=o.DataView,h=d.prototype,p=r(f.prototype.slice),g=r(h.getUint8),_=r(h.setUint8);i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(p&&void 0===t)return p(s(this),e);for(var n=s(this).byteLength,i=l(e,n),r=l(void 0===t?n:t,n),a=new(c(this,f))(u(r-i)),o=new d(this),h=new d(a),m=0;i94906265.62425156?o(t)+l:r(t-1+s(t-1)*s(t+1))}})},function(e,t,n){var i=n(1),r=Math.asinh,a=Math.log,o=Math.sqrt;i({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!=n?n<0?-e(-n):a(n+o(n*n+1)):n}})},function(e,t,n){var i=n(1),r=Math.atanh,a=Math.log;i({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){var t=+e;return 0==t?t:a((1+t)/(1-t))/2}})},function(e,t,n){var i=n(1),r=n(218),a=Math.abs,o=Math.pow;i({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return r(t)*o(a(t),1/3)}})},function(e,t,n){var i=n(1),r=Math.floor,a=Math.log,o=Math.LOG2E;i({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-r(a(t+.5)*o):32}})},function(e,t,n){var i=n(1),r=n(163),a=Math.cosh,o=Math.abs,s=Math.E;i({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(e){var t=r(o(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},function(e,t,n){var i=n(1),r=n(163);i({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(e,t,n){n(1)({target:"Math",stat:!0},{fround:n(290)})},function(e,t,n){var i=n(1),r=Math.hypot,a=Math.abs,o=Math.sqrt;i({target:"Math",stat:!0,arity:2,forced:!!r&&r(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,i,r=0,s=0,l=arguments.length,u=0;s0?(i=n/u)*i:n;return u===1/0?1/0:u*o(r)}})},function(e,t,n){n(1)({target:"Math",stat:!0},{log10:n(487)})},function(e,t){var n=Math.log,i=Math.LOG10E;e.exports=Math.log10||function(e){return n(e)*i}},function(e,t,n){n(1)({target:"Math",stat:!0},{log1p:n(289)})},function(e,t,n){var i=n(1),r=Math.log,a=Math.LN2;i({target:"Math",stat:!0},{log2:function(e){return r(e)/a}})},function(e,t,n){n(1)({target:"Math",stat:!0},{sign:n(218)})},function(e,t,n){var i=n(1),r=n(3),a=n(163),o=Math.abs,s=Math.exp,l=Math.E;i({target:"Math",stat:!0,forced:r((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return o(t)<1?(a(t)-a(-t))/2:(s(t-1)-s(-t-1))*(l/2)}})},function(e,t,n){var i=n(1),r=n(163),a=Math.exp;i({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=r(t),i=r(-t);return n==1/0?1:i==1/0?-1:(n-i)/(a(t)+a(-t))}})},function(e,t,n){n(62)(Math,"Math",!0)},function(e,t,n){n(1)({target:"Math",stat:!0},{trunc:n(271)})},function(e,t,n){"use strict";var i=n(1),r=n(33),a=n(9),o=n(5),s=n(274),l=n(4),u=n(128),c=n(16),f=n(162),d=n(60),h=n(107),p=n(152),g=n(3),_=n(81).f,m=n(35).f,F=n(27).f,y=n(496),b=n(115).trim,v="Number",k=o[v],E=s[v],w=k.prototype,x=o.TypeError,C=l("".slice),D=l("".charCodeAt),T=function(e){var t,n,i,r,a,o,s,l,u=p(e,"number");if(h(u))throw x("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=b(u),43===(t=D(u,0))||45===t){if(88===(n=D(u,2))||120===n)return NaN}else if(48===t){switch(D(u,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(o=(a=C(u,2)).length,s=0;sr)return NaN;return parseInt(a,i)}return+u},S=u(v,!k(" 0o1")||!k("0b1")||k("+0x1")),A=function(e){var t,n=arguments.length<1?0:k(function(e){var t=p(e,"number");return"bigint"==typeof t?t:T(t)}(e));return d(w,t=this)&&g((function(){y(t)}))?f(Object(n),this,A):n};A.prototype=w,S&&!r&&(w.constructor=A),i({global:!0,constructor:!0,wrap:!0,forced:S},{Number:A});var O=function(e,t){for(var n,i=a?_(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;i.length>r;r++)c(t,n=i[r])&&!c(e,n)&&F(e,n,m(t,n))};r&&E&&O(s[v],E),(S||r)&&O(s[v],k)},function(e,t,n){var i=n(4);e.exports=i(1..valueOf)},function(e,t,n){n(1)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){n(1)({target:"Number",stat:!0},{isInteger:n(219)})},function(e,t,n){var i=n(1),r=n(219),a=Math.abs;i({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&a(e)<=9007199254740991}})},function(e,t,n){n(1)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){n(1)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var i=n(1),r=n(291);i({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,n){var i=n(1),r=n(220);i({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,n){var i=n(1),r=n(292);i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var i=n(1),r=n(9),a=n(165),o=n(15),s=n(17),l=n(27);r&&i({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){l.f(s(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var i=n(1),r=n(9),a=n(204).f;i({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!r},{defineProperties:a})},function(e,t,n){var i=n(1),r=n(9),a=n(27).f;i({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!r},{defineProperty:a})},function(e,t,n){"use strict";var i=n(1),r=n(9),a=n(165),o=n(15),s=n(17),l=n(27);r&&i({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){l.f(s(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var i=n(1),r=n(293).entries;i({target:"Object",stat:!0},{entries:function(e){return r(e)}})},function(e,t,n){var i=n(1),r=n(114),a=n(3),o=n(11),s=n(99).onFreeze,l=Object.freeze;i({target:"Object",stat:!0,forced:a((function(){l(1)})),sham:!r},{freeze:function(e){return l&&o(e)?l(s(e)):e}})},function(e,t,n){var i=n(1),r=n(41),a=n(83);i({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){a(t,e,n)}),{AS_ENTRIES:!0}),t}})},function(e,t,n){var i=n(1),r=n(3),a=n(47),o=n(35).f,s=n(9);i({target:"Object",stat:!0,forced:!s||r((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},function(e,t,n){var i=n(1),r=n(9),a=n(201),o=n(47),s=n(35),l=n(83);i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,i=o(e),r=s.f,u=a(i),c={},f=0;u.length>f;)void 0!==(n=r(i,t=u[f++]))&&l(c,t,n);return c}})},function(e,t,n){var i=n(1),r=n(3),a=n(205).f;i({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(e,t,n){var i=n(1),r=n(3),a=n(17),o=n(39),s=n(211);i({target:"Object",stat:!0,forced:r((function(){o(1)})),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},function(e,t,n){var i=n(1),r=n(216);i({target:"Object",stat:!0,forced:Object.isExtensible!==r},{isExtensible:r})},function(e,t,n){var i=n(1),r=n(3),a=n(11),o=n(48),s=n(217),l=Object.isFrozen;i({target:"Object",stat:!0,forced:s||r((function(){l(1)}))},{isFrozen:function(e){return!a(e)||(!(!s||"ArrayBuffer"!=o(e))||!!l&&l(e))}})},function(e,t,n){var i=n(1),r=n(3),a=n(11),o=n(48),s=n(217),l=Object.isSealed;i({target:"Object",stat:!0,forced:s||r((function(){l(1)}))},{isSealed:function(e){return!a(e)||(!(!s||"ArrayBuffer"!=o(e))||!!l&&l(e))}})},function(e,t,n){var i=n(1),r=n(17),a=n(129);i({target:"Object",stat:!0,forced:n(3)((function(){a(1)}))},{keys:function(e){return a(r(e))}})},function(e,t,n){"use strict";var i=n(1),r=n(9),a=n(165),o=n(17),s=n(79),l=n(39),u=n(35).f;r&&i({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,n=o(this),i=s(e);do{if(t=u(n,i))return t.get}while(n=l(n))}})},function(e,t,n){"use strict";var i=n(1),r=n(9),a=n(165),o=n(17),s=n(79),l=n(39),u=n(35).f;r&&i({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,n=o(this),i=s(e);do{if(t=u(n,i))return t.set}while(n=l(n))}})},function(e,t,n){var i=n(1),r=n(11),a=n(99).onFreeze,o=n(114),s=n(3),l=Object.preventExtensions;i({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!o},{preventExtensions:function(e){return l&&r(e)?l(a(e)):e}})},function(e,t,n){var i=n(1),r=n(11),a=n(99).onFreeze,o=n(114),s=n(3),l=Object.seal;i({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!o},{seal:function(e){return l&&r(e)?l(a(e)):e}})},function(e,t,n){n(1)({target:"Object",stat:!0},{setPrototypeOf:n(71)})},function(e,t,n){var i=n(203),r=n(28),a=n(526);i||r(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,n){"use strict";var i=n(203),r=n(66);e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,n){var i=n(1),r=n(293).values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){var i=n(1),r=n(291);i({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(e,t,n){var i=n(1),r=n(220);i({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){n(531),n(535),n(536),n(537),n(538),n(539)},function(e,t,n){"use strict";var i,r,a,o=n(1),s=n(33),l=n(96),u=n(5),c=n(6),f=n(28),d=n(71),h=n(62),p=n(98),g=n(15),_=n(10),m=n(11),F=n(72),y=n(113),b=n(166).set,v=n(295),k=n(297),E=n(116),w=n(296),x=n(29),C=n(117),D=n(137),T=n(86),S="Promise",A=D.CONSTRUCTOR,O=D.REJECTION_EVENT,I=D.SUBCLASSING,M=x.getterFor(S),P=x.set,R=C&&C.prototype,j=C,N=R,B=u.TypeError,L=u.document,q=u.process,z=T.f,U=z,H=!!(L&&L.createEvent&&u.dispatchEvent),K="unhandledrejection",W=function(e){var t;return!(!m(e)||!_(t=e.then))&&t},G=function(e,t){var n,i,r,a=t.value,o=1==t.state,s=o?e.ok:e.fail,l=e.resolve,u=e.reject,f=e.domain;try{s?(o||(2===t.rejection&&J(t),t.rejection=1),!0===s?n=a:(f&&f.enter(),n=s(a),f&&(f.exit(),r=!0)),n===e.promise?u(B("Promise-chain cycle")):(i=W(n))?c(i,n,l,u):l(n)):u(a)}catch(d){f&&!r&&f.exit(),u(d)}},V=function(e,t){e.notified||(e.notified=!0,v((function(){for(var n,i=e.reactions;n=i.get();)G(n,e);e.notified=!1,t&&!e.rejection&&X(e)})))},Y=function(e,t,n){var i,r;H?((i=L.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),u.dispatchEvent(i)):i={promise:t,reason:n},!O&&(r=u["on"+e])?r(i):e===K&&k("Unhandled promise rejection",n)},X=function(e){c(b,u,(function(){var t,n=e.facade,i=e.value;if($(e)&&(t=E((function(){l?q.emit("unhandledRejection",i,n):Y(K,n,i)})),e.rejection=l||$(e)?2:1,t.error))throw t.value}))},$=function(e){return 1!==e.rejection&&!e.parent},J=function(e){c(b,u,(function(){var t=e.facade;l?q.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)}))},Q=function(e,t,n){return function(i){e(t,i,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,V(e,!0))},ee=function e(t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===n)throw B("Promise can't be resolved itself");var r=W(n);r?v((function(){var i={done:!1};try{c(r,n,Q(e,i,t),Q(Z,i,t))}catch(a){Z(i,a,t)}})):(t.value=n,t.state=1,V(t,!1))}catch(a){Z({done:!1},a,t)}}};if(A&&(N=(j=function(e){F(this,N),g(e),c(i,this);var t=M(this);try{e(Q(ee,t),Q(Z,t))}catch(n){Z(t,n)}}).prototype,(i=function(e){P(this,{type:S,done:!1,notified:!1,parent:!1,reactions:new w,rejection:!1,state:0,value:void 0})}).prototype=f(N,"then",(function(e,t){var n=M(this),i=z(y(this,j));return n.parent=!0,i.ok=!_(e)||e,i.fail=_(t)&&t,i.domain=l?q.domain:void 0,0==n.state?n.reactions.add(i):v((function(){G(i,n)})),i.promise})),r=function(){var e=new i,t=M(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q(Z,t)},T.f=z=function(e){return e===j||undefined===e?new r(e):U(e)},!s&&_(C)&&R!==Object.prototype)){a=R.then,I||f(R,"then",(function(e,t){var n=this;return new j((function(e,t){c(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete R.constructor}catch(te){}d&&d(R,N)}o({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:j}),h(j,S,!1,!0),p(S)},function(e,t,n){var i=n(70);e.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},function(e,t,n){var i=n(70);e.exports=/web0s(?!.*chrome)/i.test(i)},function(e,t,n){var i=n(298),r=n(96);e.exports=!i&&!r&&"object"==typeof window&&"object"==typeof document},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(15),o=n(86),s=n(116),l=n(41);i({target:"Promise",stat:!0,forced:n(167)},{all:function(e){var t=this,n=o.f(t),i=n.resolve,u=n.reject,c=s((function(){var n=a(t.resolve),o=[],s=0,c=1;l(e,(function(e){var a=s++,l=!1;c++,r(n,t,e).then((function(e){l||(l=!0,o[a]=e,--c||i(o))}),u)})),--c||i(o)}));return c.error&&u(c.value),n.promise}})},function(e,t,n){"use strict";var i=n(1),r=n(33),a=n(137).CONSTRUCTOR,o=n(117),s=n(26),l=n(10),u=n(28),c=o&&o.prototype;if(i({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(o)){var f=s("Promise").prototype.catch;c.catch!==f&&u(c,"catch",f,{unsafe:!0})}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(15),o=n(86),s=n(116),l=n(41);i({target:"Promise",stat:!0,forced:n(167)},{race:function(e){var t=this,n=o.f(t),i=n.reject,u=s((function(){var o=a(t.resolve);l(e,(function(e){r(o,t,e).then(n.resolve,i)}))}));return u.error&&i(u.value),n.promise}})},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(86);i({target:"Promise",stat:!0,forced:n(137).CONSTRUCTOR},{reject:function(e){var t=a.f(this);return r(t.reject,void 0,e),t.promise}})},function(e,t,n){"use strict";var i=n(1),r=n(26),a=n(33),o=n(117),s=n(137).CONSTRUCTOR,l=n(299),u=r("Promise"),c=a&&!s;i({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return l(c&&this===u?o:this,e)}})},function(e,t,n){"use strict";var i=n(1),r=n(33),a=n(117),o=n(3),s=n(26),l=n(10),u=n(113),c=n(299),f=n(28),d=a&&a.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!r&&l(a)){var h=s("Promise").prototype.finally;d.finally!==h&&f(d,"finally",h,{unsafe:!0})}},function(e,t,n){var i=n(1),r=n(55),a=n(15),o=n(7);i({target:"Reflect",stat:!0,forced:!n(3)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return r(a(e),t,o(n))}})},function(e,t,n){var i=n(1),r=n(26),a=n(55),o=n(543),s=n(160),l=n(7),u=n(11),c=n(54),f=n(3),d=r("Reflect","construct"),h=Object.prototype,p=[].push,g=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),_=!f((function(){d((function(){}))})),m=g||_;i({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(_&&!g)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return a(p,i,t),new(a(o,e,i))}var r=n.prototype,f=c(u(r)?r:h),m=a(e,f,t);return u(m)?m:f}})},function(e,t,n){"use strict";var i=n(4),r=n(15),a=n(11),o=n(16),s=n(85),l=n(123),u=Function,c=i([].concat),f=i([].join),d={};e.exports=l?u.bind:function(e){var t=r(this),n=t.prototype,i=s(arguments,1),l=function(){var n=c(i,s(arguments));return this instanceof l?function(e,t,n){if(!o(d,t)){for(var i=[],r=0;r@^][^\s!#%&*+<=>@^]*>/,P=/a/g,R=/a/g,j=new x(P)!==P,N=p.MISSED_STICKY,B=p.UNSUPPORTED_Y,L=i&&(!j||N||k||E||m((function(){return R[w]=!1,x(P)!=P||x(R)==R||"/a/i"!=x(P,"i")})));if(o("RegExp",L)){for(var q=function(e,t){var n,i,r,a,o,u,p=c(C,this),g=f(e),_=void 0===t,m=[],b=e;if(!p&&g&&_&&e.constructor===q)return e;if((g||c(C,e))&&(e=e.source,_&&(t=h(b))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),b=e,k&&"dotAll"in P&&(i=!!t&&O(t,"s")>-1)&&(t=A(t,/s/g,"")),n=t,N&&"sticky"in P&&(r=!!t&&O(t,"y")>-1)&&B&&(t=A(t,/y/g,"")),E&&(a=function(e){for(var t,n=e.length,i=0,r="",a=[],o={},s=!1,l=!1,u=0,c="";i<=n;i++){if("\\"===(t=S(e,i)))t+=S(e,++i);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T(M,I(e,i+1))&&(i+=2,l=!0),r+=t,u++;continue;case">"===t&&l:if(""===c||F(o,c))throw new D("Invalid capture group name");o[c]=!0,a[a.length]=[c,u],l=!1,c="";continue}l?c+=t:r+=t}return[r,a]}(e),e=a[0],m=a[1]),o=s(x(e,t),p?this:C,q),(i||r||m.length)&&(u=y(o),i&&(u.dotAll=!0,u.raw=q(function(e){for(var t,n=e.length,i=0,r="",a=!1;i<=n;i++)"\\"!==(t=S(e,i))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),r+=t):r+="[\\s\\S]":r+=t+S(e,++i);return r}(e),n)),r&&(u.sticky=!0),m.length&&(u.groups=m)),e!==b)try{l(o,"source",""===b?"(?:)":b)}catch(v){}return o},z=u(x),U=0;z.length>U;)g(q,x,z[U++]);C.constructor=q,q.prototype=C,_(r,"RegExp",q,{constructor:!0})}b("RegExp")},function(e,t,n){var i=n(27).f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){var i=n(5),r=n(9),a=n(50),o=n(221),s=n(3),l=i.RegExp,u=l.prototype;r&&s((function(){var e=!0;try{l(".","d")}catch(s){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",r=function(e,i){Object.defineProperty(t,e,{get:function(){return n+=i,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(a.hasIndices="d"),a)r(o,a[o]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==i||n!==i}))&&a(u,"flags",{configurable:!0,get:o})},function(e,t,n){"use strict";var i=n(125).PROPER,r=n(28),a=n(7),o=n(13),s=n(3),l=n(168),u="toString",c=RegExp.prototype[u],f=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=i&&c.name!=u;(f||d)&&r(RegExp.prototype,u,(function(){var e=a(this);return"/"+o(e.source)+"/"+o(l(e))}),{unsafe:!0})},function(e,t,n){n(560)},function(e,t,n){"use strict";n(161)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(288))},function(e,t,n){"use strict";var i=n(1),r=n(118).codeAt;i({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var i=n(1),r=n(84),a=n(35).f,o=n(53),s=n(13),l=n(223),u=n(31),c=n(224),f=n(33),d=r("".endsWith),h=r("".slice),p=Math.min,g=c("endsWith");i({target:"String",proto:!0,forced:!(!f&&!g&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}())&&!g},{endsWith:function(e){var t=s(u(this));l(e);var n=arguments.length>1?arguments[1]:void 0,i=t.length,r=void 0===n?i:p(o(n),i),a=s(e);return d?d(t,a,r):h(t,r-a.length,r)===a}})},function(e,t,n){var i=n(1),r=n(4),a=n(82),o=RangeError,s=String.fromCharCode,l=String.fromCodePoint,u=r([].join);i({target:"String",stat:!0,arity:1,forced:!!l&&1!=l.length},{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,r=0;i>r;){if(t=+arguments[r++],a(t,1114111)!==t)throw o(t+" is not a valid code point");n[r]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(n,"")}})},function(e,t,n){"use strict";var i=n(1),r=n(4),a=n(223),o=n(31),s=n(13),l=n(224),u=r("".indexOf);i({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(6),r=n(170),a=n(7),o=n(32),s=n(53),l=n(13),u=n(31),c=n(61),f=n(171),d=n(139);r("match",(function(e,t,n){return[function(t){var n=u(this),r=o(t)?void 0:c(t,e);return r?i(r,t,n):new RegExp(t)[e](l(n))},function(e){var i=a(this),r=l(e),o=n(t,i,r);if(o.done)return o.value;if(!i.global)return d(i,r);var u=i.unicode;i.lastIndex=0;for(var c,h=[],p=0;null!==(c=d(i,r));){var g=l(c[0]);h[p]=g,""===g&&(i.lastIndex=f(r,s(i.lastIndex),u)),p++}return 0===p?null:h}]}))},function(e,t,n){"use strict";var i=n(1),r=n(305).end;i({target:"String",proto:!0,forced:n(307)},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(1),r=n(305).start;i({target:"String",proto:!0,forced:n(307)},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(1),r=n(4),a=n(47),o=n(17),s=n(13),l=n(21),u=r([].push),c=r([].join);i({target:"String",stat:!0},{raw:function(e){var t=a(o(e).raw),n=l(t);if(!n)return"";for(var i=arguments.length,r=[],f=0;;){if(u(r,s(t[f++])),f===n)return c(r,"");f=A&&(S+=x(s,A,M)+B,A=M+I.length)}return S+x(s,A)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!C||D)},function(e,t,n){"use strict";var i=n(6),r=n(170),a=n(7),o=n(32),s=n(31),l=n(572),u=n(13),c=n(61),f=n(139);r("search",(function(e,t,n){return[function(t){var n=s(this),r=o(t)?void 0:c(t,e);return r?i(r,t,n):new RegExp(t)[e](u(n))},function(e){var i=a(this),r=u(e),o=n(t,i,r);if(o.done)return o.value;var s=i.lastIndex;l(s,0)||(i.lastIndex=0);var c=f(i,r);return l(i.lastIndex,s)||(i.lastIndex=s),null===c?-1:c.index}]}))},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var i=n(55),r=n(6),a=n(4),o=n(170),s=n(7),l=n(32),u=n(138),c=n(31),f=n(113),d=n(171),h=n(53),p=n(13),g=n(61),_=n(130),m=n(139),F=n(169),y=n(222),b=n(3),v=y.UNSUPPORTED_Y,k=4294967295,E=Math.min,w=[].push,x=a(/./.exec),C=a(w),D=a("".slice),T=!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(e,t,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var a=p(c(this)),o=void 0===n?k:n>>>0;if(0===o)return[];if(void 0===e)return[a];if(!u(e))return r(t,a,e,o);for(var s,l,f,d=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,m=new RegExp(e.source,h+"g");(s=r(F,m,a))&&!((l=m.lastIndex)>g&&(C(d,D(a,g,s.index)),s.length>1&&s.index=o));)m.lastIndex===s.index&&m.lastIndex++;return g===a.length?!f&&x(m,"")||C(d,""):C(d,D(a,g)),d.length>o?_(d,0,o):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t,[function(t,n){var i=c(this),o=l(t)?void 0:g(t,e);return o?r(o,t,i,n):r(a,p(i),t,n)},function(e,i){var r=s(this),o=p(e),l=n(a,r,o,i,a!==t);if(l.done)return l.value;var u=f(r,RegExp),c=r.unicode,g=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(v?"g":"y"),_=new u(v?"^(?:"+r.source+")":r,g),F=void 0===i?k:i>>>0;if(0===F)return[];if(0===o.length)return null===m(_,o)?[o]:[];for(var y=0,b=0,w=[];b1?arguments[1]:void 0,t.length)),i=s(e);return d?d(t,i,n):h(t,n,n+i.length)===i}})},function(e,t,n){"use strict";var i=n(1),r=n(115).trim;i({target:"String",proto:!0,forced:n(225)("trim")},{trim:function(){return r(this)}})},function(e,t,n){n(577);var i=n(1),r=n(309);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==r},{trimEnd:r})},function(e,t,n){var i=n(1),r=n(309);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==r},{trimRight:r})},function(e,t,n){n(579);var i=n(1),r=n(310);i({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==r},{trimStart:r})},function(e,t,n){var i=n(1),r=n(310);i({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r})},function(e,t,n){n(73)("Float32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){var i=n(40),r=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw r("The argument can't be less than 0");return t}},function(e,t,n){var i=n(66);e.exports=function(e){var t=i(e);return"BigInt64Array"==t||"BigUint64Array"==t}},function(e,t,n){n(73)("Float64",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Int8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Int16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Int32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},function(e,t,n){n(73)("Uint16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(73)("Uint32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";var i=n(4),r=n(18),a=i(n(277)),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return a(o(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(38).every,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("every",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(208),a=n(313),o=n(66),s=n(6),l=n(4),u=n(3),c=i.aTypedArray,f=i.exportTypedArrayMethod,d=l("".slice);f("fill",(function(e){var t=arguments.length;c(this);var n="Big"===d(o(this),0,3)?a(e):+e;return s(r,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},function(e,t,n){"use strict";var i=n(18),r=n(38).filter,a=n(595),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("filter",(function(e){var t=r(o(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)}))},function(e,t,n){var i=n(596),r=n(227);e.exports=function(e,t){return i(r(e),t)}},function(e,t,n){var i=n(21);e.exports=function(e,t){for(var n=0,r=i(t),a=new e(r);r>n;)a[n]=t[n++];return a}},function(e,t,n){"use strict";var i=n(18),r=n(38).find,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("find",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(38).findIndex,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("findIndex",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(38).forEach,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("forEach",(function(e){r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(226);(0,n(18).exportTypedArrayStaticMethod)("from",n(312),i)},function(e,t,n){"use strict";var i=n(18),r=n(127).includes,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("includes",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(127).indexOf,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("indexOf",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(5),r=n(3),a=n(4),o=n(18),s=n(158),l=n(8)("iterator"),u=i.Uint8Array,c=a(s.values),f=a(s.keys),d=a(s.entries),h=o.aTypedArray,p=o.exportTypedArrayMethod,g=u&&u.prototype,_=!r((function(){g[l].call([1])})),m=!!g&&g.values&&g[l]===g.values&&"values"===g.values.name,F=function(){return c(h(this))};p("entries",(function(){return d(h(this))}),_),p("keys",(function(){return f(h(this))}),_),p("values",F,_||!m,{name:"values"}),p(l,F,_||!m,{name:"values"})},function(e,t,n){"use strict";var i=n(18),r=n(4),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=r([].join);o("join",(function(e){return s(a(this),e)}))},function(e,t,n){"use strict";var i=n(18),r=n(55),a=n(283),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return r(a,o(this),t>1?[e,arguments[1]]:[e])}))},function(e,t,n){"use strict";var i=n(18),r=n(38).map,a=n(227),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("map",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(a(e))(t)}))}))},function(e,t,n){"use strict";var i=n(18),r=n(226),a=i.aTypedArrayConstructor;(0,i.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(a(this))(t);t>e;)n[e]=arguments[e++];return n}),r)},function(e,t,n){"use strict";var i=n(18),r=n(159).left,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return r(a(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=n(159).right,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return r(a(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(18),r=i.aTypedArray,a=i.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var e,t=this,n=r(t).length,i=o(n/2),a=0;a1?arguments[1]:void 0,1),n=l(e);if(_)return r(h,this,n,t);var i=this.length,a=o(n),u=0;if(a+t>i)throw c("Wrong length");for(;ua;)u[a]=n[a++];return u}),a((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var i=n(18),r=n(38).some,a=i.aTypedArray;(0,i.exportTypedArrayMethod)("some",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var i=n(5),r=n(84),a=n(3),o=n(15),s=n(212),l=n(18),u=n(284),c=n(285),f=n(80),d=n(213),h=l.aTypedArray,p=l.exportTypedArrayMethod,g=i.Uint16Array,_=g&&r(g.prototype.sort),m=!!_&&!(a((function(){_(new g(2),null)}))&&a((function(){_(new g(2),{})}))),F=!!_&&!a((function(){if(f)return f<74;if(u)return u<67;if(c)return!0;if(d)return d<602;var e,t,n=new g(516),i=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,i[e]=e-2*t+3;for(_(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==i[e])return!0}));p("sort",(function(e){return void 0!==e&&o(e),F?_(this,e):s(h(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!F||m)},function(e,t,n){"use strict";var i=n(5),r=n(55),a=n(18),o=n(3),s=n(85),l=i.Int8Array,u=a.aTypedArray,c=a.exportTypedArrayMethod,f=[].toLocaleString,d=!!l&&o((function(){f.call(new l(1))}));c("toLocaleString",(function(){return r(f,d?s(u(this)):u(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!o((function(){l.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var i=n(18).exportTypedArrayMethod,r=n(3),a=n(5),o=n(4),s=a.Uint8Array,l=s&&s.prototype||{},u=[].toString,c=o([].join);r((function(){u.call({})}))&&(u=function(){return c(this)});var f=l.toString!=u;i("toString",u,f)},function(e,t,n){"use strict";var i,r=n(114),a=n(5),o=n(4),s=n(112),l=n(99),u=n(161),c=n(314),f=n(11),d=n(29).enforce,h=n(3),p=n(269),g=Object,_=Array.isArray,m=g.isExtensible,F=g.isFrozen,y=g.isSealed,b=g.freeze,v=g.seal,k={},E={},w=!a.ActiveXObject&&"ActiveXObject"in a,x=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},C=u("WeakMap",x,c),D=C.prototype,T=o(D.set);if(p)if(w){i=c.getConstructor(x,"WeakMap",!0),l.enable();var S=o(D.delete),A=o(D.has),O=o(D.get);s(D,{delete:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new i),S(this,e)||t.frozen.delete(e)}return S(this,e)},has:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new i),A(this,e)||t.frozen.has(e)}return A(this,e)},get:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new i),A(this,e)?O(this,e):t.frozen.get(e)}return O(this,e)},set:function(e,t){if(f(e)&&!m(e)){var n=d(this);n.frozen||(n.frozen=new i),A(this,e)?T(this,e,t):n.frozen.set(e,t)}else T(this,e,t);return this}})}else r&&h((function(){var e=b([]);return T(new C,e,1),!F(e)}))&&s(D,{set:function(e,t){var n;return _(e)&&(F(e)?n=k:y(e)&&(n=E)),T(this,e,t),n==k&&b(e),n==E&&v(e),this}})},function(e,t,n){n(619)},function(e,t,n){"use strict";n(161)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(314))},function(e,t,n){n(621)},function(e,t,n){n(622)},function(e,t,n){"use strict";var i=n(1),r=n(60),a=n(39),o=n(71),s=n(200),l=n(54),u=n(49),c=n(65),f=n(623),d=n(624),h=n(41),p=n(627),g=n(8)("toStringTag"),_=Error,m=[].push,F=function(e,t){var n,i=r(y,this);o?n=o(_(),i?a(this):y):(n=i?this:l(y),u(n,g,"Error")),void 0!==t&&u(n,"message",p(t)),d(n,F,n.stack,1),arguments.length>2&&f(n,arguments[2]);var s=[];return h(e,m,{that:s}),u(n,"errors",s),n};o?o(F,_):s(F,_,{name:!0});var y=F.prototype=l(_.prototype,{constructor:c(1,F),message:c(1,""),name:c(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:F})},function(e,t,n){var i=n(11),r=n(49);e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},function(e,t,n){var i=n(49),r=n(625),a=n(626),o=Error.captureStackTrace;e.exports=function(e,t,n,s){a&&(o?o(e,t):i(e,"stack",r(n,s)))}},function(e,t,n){var i=n(4),r=Error,a=i("".replace),o=String(r("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)for(;t--;)e=a(e,s,"");return e}},function(e,t,n){var i=n(3),r=n(65);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},function(e,t,n){var i=n(13);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},function(e,t,n){"use strict";var i=n(9),r=n(67),a=n(17),o=n(21),s=n(50);i&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=a(this),t=o(e);return 0==t?0:t-1}}),r("lastIndex"))},function(e,t,n){"use strict";var i=n(9),r=n(67),a=n(17),o=n(21),s=n(50);i&&(s(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=a(this),t=o(e);return 0==t?void 0:e[t-1]},set:function(e){var t=a(this),n=o(t);return t[0==n?0:n-1]=e}}),r("lastItem"))},function(e,t,n){var i=n(1),r=n(55),a=n(315),o=n(26),s=n(54),l=Object,u=function(){var e=o("Object","freeze");return e?e(s(null)):s(null)};i({global:!0,forced:!0},{compositeKey:function(){return r(a,l,arguments).get("object",u)}})},function(e,t,n){var i=n(1),r=n(315),a=n(26),o=n(55);i({global:!0,forced:!0},{compositeSymbol:function(){return 1==arguments.length&&"string"==typeof arguments[0]?a("Symbol").for(arguments[0]):o(r,null,arguments).get("symbol",a("Symbol"))}})},function(e,t,n){n(633)},function(e,t,n){var i=n(1),r=n(5);i({global:!0,forced:r.globalThis!==r},{globalThis:r})},function(e,t,n){"use strict";var i=n(1),r=n(51),a=n(63).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=r(this),n=!0,i=0,o=arguments.length;i1?arguments[1]:void 0);return!1!==o(t,(function(e,i){if(!n(e,i,t))return!1}),!0)}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(51),o=n(63),s=n(64),l=o.Map,u=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){n(e,r,t)&&u(i,r,e)})),i}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(51),o=n(64);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e,i){if(n(e,i,t))return{value:e}}),!0);return i&&i.value}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(51),o=n(64);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e,i){if(n(e,i,t))return{key:i}}),!0);return i&&i.key}})},function(e,t,n){n(1)({target:"Map",stat:!0,forced:!0},{from:n(172)})},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(4),o=n(10),s=n(15),l=n(41),u=n(63).Map,c=a([].push);i({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var n=new(o(this)?this:u);s(t);var i=s(n.has),a=s(n.get),f=s(n.set);return l(e,(function(e){var o=t(e);r(i,n,o)?c(r(a,n,o),e):r(f,n,o,[e])})),n}})},function(e,t,n){"use strict";var i=n(1),r=n(642),a=n(51),o=n(64);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===o(a(this),(function(t){if(r(t,e))return!0}),!0)}})},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(41),o=n(10),s=n(15),l=n(63).Map;i({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(o(this)?this:l);s(t);var i=s(n.set);return a(e,(function(e){r(i,n,t(e),e)})),n}})},function(e,t,n){"use strict";var i=n(1),r=n(51),a=n(64);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=a(r(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(51),o=n(63),s=n(64),l=o.Map,u=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){u(i,n(e,r,t),e)})),i}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(51),o=n(63),s=n(64),l=o.Map,u=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){u(i,r,n(e,r,t))})),i}})},function(e,t,n){"use strict";var i=n(1),r=n(51),a=n(41),o=n(63).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=r(this),n=arguments.length,i=0;i1?arguments[1]:void 0);return!0===o(t,(function(e,i){if(n(e,i,t))return!0}),!0)}})},function(e,t,n){"use strict";var i=n(1),r=n(15),a=n(51),o=n(63),s=TypeError,l=o.get,u=o.has,c=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=a(this),i=arguments.length;r(t);var o=u(n,e);if(!o&&i<3)throw s("Updating absent value");var f=o?l(n,e):r(i>2?arguments[2]:void 0)(e,n);return c(n,e,t(f,e,n)),n}})},function(e,t,n){var i=n(1),r=Math.min,a=Math.max;i({target:"Math",stat:!0,forced:!0},{clamp:function(e,t,n){return r(n,a(t,e))}})},function(e,t,n){n(1)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var i=n(1),r=180/Math.PI;i({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*r}})},function(e,t,n){var i=n(1),r=n(316),a=n(290);i({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,n,i,o){return a(r(e,t,n,i,o))}})},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)+(i>>>0)+((r&a|(r|a)&~(r+a>>>0))>>>31)|0}})},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var n=65535,i=+e,r=+t,a=i&n,o=r&n,s=i>>16,l=r>>16,u=(s*o>>>0)+(a*o>>>16);return s*l+(u>>16)+((a*l>>>0)+(u&n)>>16)}})},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)-(i>>>0)-((~r&a|~(r^a)&r-a>>>0)>>>31)|0}})},function(e,t,n){n(1)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var i=n(1),r=Math.PI/180;i({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*r}})},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{scale:n(316)})},function(e,t,n){var i=n(1),r=n(7),a=n(663),o=n(135),s=n(111),l=n(29),u="Seeded Random",c=u+" Generator",f=l.set,d=l.getterFor(c),h=TypeError,p=o((function(e){f(this,{type:c,seed:e%2147483647})}),u,(function(){var e=d(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return s((1073741823&t)/1073741823,!1)}));i({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=r(e).seed;if(!a(t))throw h('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new p(t)}})},function(e,t,n){var i=n(5).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&i(e)}},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t==t&&0==t?1/t==-1/0:t<0}})},function(e,t,n){n(1)({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var n=65535,i=+e,r=+t,a=i&n,o=r&n,s=i>>>16,l=r>>>16,u=(s*o>>>0)+(a*o>>>16);return s*l+(u>>>16)+((a*l>>>0)+(u&n)>>>16)}})},function(e,t,n){"use strict";var i=n(1),r=n(4),a=n(40),o=n(220),s="Invalid number representation",l=RangeError,u=SyntaxError,c=TypeError,f=/^[\da-z]+$/,d=r("".charAt),h=r(f.exec),p=r(1..toString),g=r("".slice);i({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var n,i,r=1;if("string"!=typeof e)throw c(s);if(!e.length)throw u(s);if("-"==d(e,0)&&(r=-1,!(e=g(e,1)).length))throw u(s);if((n=void 0===t?10:a(t))<2||n>36)throw l("Invalid radix");if(!h(f,e)||p(i=o(e,n),n)!==e)throw u(s);return r*i}})},function(e,t,n){n(668),n(669),n(670)},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(9),o=n(98),s=n(15),l=n(7),u=n(72),c=n(10),f=n(32),d=n(11),h=n(61),p=n(28),g=n(112),_=n(50),m=n(297),F=n(8),y=n(29),b=n(229),v=F("observable"),k="Observable",E="Subscription",w="SubscriptionObserver",x=y.getterFor,C=y.set,D=x(k),T=x(E),S=x(w),A=function(e){this.observer=l(e),this.cleanup=void 0,this.subscriptionObserver=void 0};A.prototype={type:E,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(t){m(t)}}},close:function(){if(!a){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return void 0===this.observer}};var O=function(e,t){var n,i=C(this,new A(e));a||(this.closed=!1);try{(n=h(e,"start"))&&r(n,e,this)}catch(d){m(d)}if(!i.isClosed()){var o=i.subscriptionObserver=new I(i);try{var l=t(o),u=l;f(l)||(i.cleanup=c(l.unsubscribe)?function(){u.unsubscribe()}:s(l))}catch(d){return void o.error(d)}i.isClosed()&&i.clean()}};O.prototype=g({},{unsubscribe:function(){var e=T(this);e.isClosed()||(e.close(),e.clean())}}),a&&_(O.prototype,"closed",{configurable:!0,get:function(){return T(this).isClosed()}});var I=function(e){C(this,{type:w,subscriptionState:e}),a||(this.closed=!1)};I.prototype=g({},{next:function(e){var t=S(this).subscriptionState;if(!t.isClosed()){var n=t.observer;try{var i=h(n,"next");i&&r(i,n,e)}catch(a){m(a)}}},error:function(e){var t=S(this).subscriptionState;if(!t.isClosed()){var n=t.observer;t.close();try{var i=h(n,"error");i?r(i,n,e):m(e)}catch(a){m(a)}t.clean()}},complete:function(){var e=S(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var n=h(t,"complete");n&&r(n,t)}catch(i){m(i)}e.clean()}}}),a&&_(I.prototype,"closed",{configurable:!0,get:function(){return S(this).subscriptionState.isClosed()}});var M=function(e){u(this,P),C(this,{type:k,subscriber:s(e)})},P=M.prototype;g(P,{subscribe:function(e){var t=arguments.length;return new O(c(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:d(e)?e:{},D(this).subscriber)}}),p(P,v,(function(){return this})),i({global:!0,constructor:!0,forced:b},{Observable:M}),o(k)},function(e,t,n){"use strict";var i=n(1),r=n(26),a=n(6),o=n(7),s=n(95),l=n(133),u=n(61),c=n(41),f=n(8),d=n(229),h=f("observable");i({target:"Observable",stat:!0,forced:d},{from:function(e){var t=s(this)?this:r("Observable"),n=u(o(e),h);if(n){var i=o(a(n,e));return i.constructor===t?i:new t((function(e){return i.subscribe(e)}))}var f=l(e);return new t((function(e){c(f,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}})},function(e,t,n){"use strict";var i=n(1),r=n(26),a=n(95),o=n(229),s=r("Array");i({target:"Observable",stat:!0,forced:o},{of:function(){for(var e=a(this)?this:r("Observable"),t=arguments.length,n=s(t),i=0;i1?arguments[1]:void 0);return!1!==o(t,(function(e){if(!n(e,e,t))return!1}),!0)}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(37),o=n(42),s=n(56),l=o.Set,u=o.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e){n(e,e,t)&&u(i,e)})),i}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(37),o=n(56);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return i&&i.value}})},function(e,t,n){n(1)({target:"Set",stat:!0,forced:!0},{from:n(172)})},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(696);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(42),a=n(140),o=n(101),s=n(56),l=n(87),u=r.Set,c=r.add,f=r.has,d=r.$has,h=r.$keys;e.exports=function(e){var t,n=i(this),r=o(e),p=new u;if(((t=r).has!==d||t.keys!==h)&&a(n)>r.size){if(l(r.getIterator(),(function(e){f(n,e)&&c(p,e)})),a(p)<2)return p;var g=p;p=new u,s(n,(function(e){f(g,e)&&c(p,e)}))}else s(n,(function(e){r.includes(e)&&c(p,e)}));return p}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(698);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(42).has,a=n(140),o=n(101),s=n(56),l=n(87),u=n(156);e.exports=function(e){var t=i(this),n=o(e);if(a(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var c=n.getIterator();return!1!==l(c,(function(e){if(r(t,e))return u(c,"normal",!1)}))}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(700);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(140),a=n(56),o=n(101);e.exports=function(e){var t=i(this),n=o(e);return!(r(t)>n.size)&&!1!==a(t,(function(e){if(!n.includes(e))return!1}),!0)}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(702);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(42).has,a=n(140),o=n(101),s=n(87),l=n(156);e.exports=function(e){var t=i(this),n=o(e);if(a(t)1?arguments[1]:void 0),i=new l;return s(t,(function(e){u(i,n(e,e,t))})),i}})},function(e,t,n){n(1)({target:"Set",stat:!0,forced:!0},{of:n(173)})},function(e,t,n){"use strict";var i=n(1),r=n(15),a=n(37),o=n(56),s=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=a(this),n=arguments.length<2,i=n?void 0:arguments[1];if(r(e),o(t,(function(r){n?(n=!1,i=r):i=e(i,r,r,t)})),n)throw s("Reduce of empty set with no initial value");return i}})},function(e,t,n){"use strict";var i=n(1),r=n(22),a=n(37),o=n(56);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0);return!0===o(t,(function(e){if(n(e,e,t))return!0}),!0)}})},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(709);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(42),a=n(230),o=n(101),s=n(87),l=r.add,u=r.has,c=r.remove;e.exports=function(e){var t=i(this),n=o(e).getIterator(),r=a(t);return s(n,(function(e){u(t,e)?c(r,e):l(r,e)})),r}},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(100),o=n(711);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(37),r=n(42).add,a=n(230),o=n(101),s=n(87);e.exports=function(e){var t=i(this),n=o(e).getIterator(),l=a(t);return s(n,(function(e){r(l,e)})),l}},function(e,t,n){"use strict";var i=n(1),r=n(118).charAt,a=n(31),o=n(40),s=n(13);i({target:"String",proto:!0,forced:!0},{at:function(e){var t=s(a(this)),n=t.length,i=o(e),l=i>=0?i:n+i;return l<0||l>=n?void 0:r(t,l)}})},function(e,t,n){"use strict";var i=n(1),r=n(135),a=n(111),o=n(31),s=n(13),l=n(29),u=n(118),c=u.codeAt,f=u.charAt,d="String Iterator",h=l.set,p=l.getterFor(d),g=r((function(e){h(this,{type:d,string:e,index:0})}),"String",(function(){var e,t=p(this),n=t.string,i=t.index;return i>=n.length?a(void 0,!0):(e=f(n,i),t.index+=e.length,a({codePoint:c(e,0),position:i},!1))}));i({target:"String",proto:!0,forced:!0},{codePoints:function(){return new g(s(o(this)))}})},function(e,t,n){n(715)},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(84),o=n(135),s=n(111),l=n(31),u=n(53),c=n(13),f=n(7),d=n(32),h=n(48),p=n(138),g=n(168),_=n(61),m=n(28),F=n(3),y=n(8),b=n(113),v=n(171),k=n(139),E=n(29),w=n(33),x=y("matchAll"),C="RegExp String",D=C+" Iterator",T=E.set,S=E.getterFor(D),A=RegExp.prototype,O=TypeError,I=a("".indexOf),M=a("".matchAll),P=!!M&&!F((function(){M("a",/./)})),R=o((function(e,t,n,i){T(this,{type:D,regexp:e,string:t,global:n,unicode:i,done:!1})}),C,(function(){var e=S(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,i=k(t,n);return null===i?(e.done=!0,s(void 0,!0)):e.global?(""===c(i[0])&&(t.lastIndex=v(n,u(t.lastIndex),e.unicode)),s(i,!1)):(e.done=!0,s(i,!1))})),j=function(e){var t,n,i,r=f(this),a=c(e),o=b(r,RegExp),s=c(g(r));return t=new o(o===RegExp?r.source:r,s),n=!!~I(s,"g"),i=!!~I(s,"u"),t.lastIndex=u(r.lastIndex),new R(t,a,n,i)};i({target:"String",proto:!0,forced:P},{matchAll:function(e){var t,n,i,a,o=l(this);if(d(e)){if(P)return M(o,e)}else{if(p(e)&&(t=c(l(g(e))),!~I(t,"g")))throw O("`.matchAll` does not allow non-global regexes");if(P)return M(o,e);if(void 0===(i=_(e,x))&&w&&"RegExp"==h(e)&&(i=j),i)return r(i,e,o)}return n=c(o),a=new RegExp(e,"g"),w?r(j,a,n):a[x](n)}}),w||x in A||m(A,x,j)},function(e,t,n){n(717)},function(e,t,n){"use strict";var i=n(1),r=n(6),a=n(4),o=n(31),s=n(10),l=n(32),u=n(138),c=n(13),f=n(61),d=n(168),h=n(308),p=n(8),g=n(33),_=p("replace"),m=TypeError,F=a("".indexOf),y=a("".replace),b=a("".slice),v=Math.max,k=function(e,t,n){return n>e.length?-1:""===t?n:F(e,t,n)};i({target:"String",proto:!0},{replaceAll:function(e,t){var n,i,a,p,E,w,x,C,D,T=o(this),S=0,A=0,O="";if(!l(e)){if((n=u(e))&&(i=c(o(d(e))),!~F(i,"g")))throw m("`.replaceAll` does not allow non-global regexes");if(a=f(e,_))return r(a,e,T,t);if(g&&n)return y(c(T),e,t)}for(p=c(T),E=c(e),(w=s(t))||(t=c(t)),x=E.length,C=v(1,x),S=k(p,E,0);-1!==S;)D=w?c(t(E,S,p)):h(E,p,S,[],void 0,t),O+=b(p,A,S)+D,A=S+x,S=k(p,E,S+C);return A1?arguments[1]:void 0)}},function(e,t,n){var i=n(5),r=n(319),a=n(320),o=n(158),s=n(49),l=n(8),u=l("iterator"),c=l("toStringTag"),f=o.values,d=function(e,t){if(e){if(e[u]!==f)try{s(e,u,f)}catch(i){e[u]=f}if(e[c]||s(e,c,t),r[t])for(var n in o)if(e[n]!==o[n])try{s(e,n,o[n])}catch(i){e[n]=o[n]}}};for(var h in r)d(i[h]&&i[h].prototype,h);d(a,"DOMTokenList")},function(e,t,n){n(733),n(734)},function(e,t,n){var i=n(1),r=n(5),a=n(166).clear;i({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==a},{clearImmediate:a})},function(e,t,n){var i=n(1),r=n(5),a=n(166).set,o=n(735),s=r.setImmediate?o(a,!1):a;i({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==s},{setImmediate:s})},function(e,t,n){"use strict";var i=n(5),r=n(55),a=n(10),o=n(736),s=n(70),l=n(85),u=n(136),c=i.Function,f=/MSIE .\./.test(s)||o&&function(){var e=i.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}();e.exports=function(e,t){var n=t?2:1;return f?function(i,o){var s=u(arguments.length,1)>n,f=a(i)?i:c(i),d=s?l(arguments,n):[],h=s?function(){r(f,this,d)}:f;return t?e(h,o):e(h)}:e}},function(e,t){e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,n){var i=n(1),r=n(5),a=n(295),o=n(15),s=n(136),l=n(96),u=r.process;i({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){s(arguments.length,1),o(e);var t=l&&u.domain;a(t?t.bind(e):e)}})},function(e,t,n){n(739)},function(e,t,n){"use strict";n(304);var i,r=n(1),a=n(9),o=n(321),s=n(5),l=n(22),u=n(4),c=n(28),f=n(50),d=n(72),h=n(16),p=n(292),g=n(279),_=n(130),m=n(118).codeAt,F=n(740),y=n(13),b=n(62),v=n(136),k=n(322),E=n(29),w=E.set,x=E.getterFor("URL"),C=k.URLSearchParams,D=k.getState,T=s.URL,S=s.TypeError,A=s.parseInt,O=Math.floor,I=Math.pow,M=u("".charAt),P=u(/./.exec),R=u([].join),j=u(1..toString),N=u([].pop),B=u([].push),L=u("".replace),q=u([].shift),z=u("".split),U=u("".slice),H=u("".toLowerCase),K=u([].unshift),W="Invalid scheme",G="Invalid host",V="Invalid port",Y=/[a-z]/i,X=/[\d+-.a-z]/i,$=/\d/,J=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,re=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,oe=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)K(t,e%256),e=O(e/256);return R(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,a=0;a<8;a++)0!==e[a]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=a),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=j(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},le=p({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=p({},le,{"#":1,"?":1,"{":1,"}":1}),ce=p({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=m(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var n;return 2==e.length&&P(Y,M(e,0))&&(":"==(n=M(e,1))||!t&&"|"==n)},pe=function(e){var t;return e.length>1&&he(U(e,0,2))&&(2==e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===H(e)},_e={},me={},Fe={},ye={},be={},ve={},ke={},Ee={},we={},xe={},Ce={},De={},Te={},Se={},Ae={},Oe={},Ie={},Me={},Pe={},Re={},je={},Ne=function e(t,n,i){var r,a,o,s=y(t);if(n){if(a=this.parse(s))throw S(a);this.searchParams=null}else{if(void 0!==i&&(r=new e(i,!0)),a=this.parse(s,null,r))throw S(a);(o=D(new C)).bindURL(this),this.searchParams=o}};Ne.prototype={type:"URL",parse:function(e,t,n){var r,a,o,s,l,u=this,c=t||_e,f=0,d="",p=!1,m=!1,F=!1;for(e=y(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=L(e,ie,""),e=L(e,re,"$1")),e=L(e,ae,""),r=g(e);f<=r.length;){switch(a=r[f],c){case _e:if(!a||!P(Y,a)){if(t)return W;c=Fe;continue}d+=H(a),c=me;break;case me:if(a&&(P(X,a)||"+"==a||"-"==a||"."==a))d+=H(a);else{if(":"!=a){if(t)return W;d="",c=Fe,f=0;continue}if(t&&(u.isSpecial()!=h(de,d)||"file"==d&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&de[u.scheme]==u.port&&(u.port=null));d="","file"==u.scheme?c=Se:u.isSpecial()&&n&&n.scheme==u.scheme?c=ye:u.isSpecial()?c=Ee:"/"==r[f+1]?(c=be,f++):(u.cannotBeABaseURL=!0,B(u.path,""),c=Pe)}break;case Fe:if(!n||n.cannotBeABaseURL&&"#"!=a)return W;if(n.cannotBeABaseURL&&"#"==a){u.scheme=n.scheme,u.path=_(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=je;break}c="file"==n.scheme?Se:ve;continue;case ye:if("/"!=a||"/"!=r[f+1]){c=ve;continue}c=we,f++;break;case be:if("/"==a){c=xe;break}c=Me;continue;case ve:if(u.scheme=n.scheme,a==i)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=_(n.path),u.query=n.query;else if("/"==a||"\\"==a&&u.isSpecial())c=ke;else if("?"==a)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=_(n.path),u.query="",c=Re;else{if("#"!=a){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=_(n.path),u.path.length--,c=Me;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=_(n.path),u.query=n.query,u.fragment="",c=je}break;case ke:if(!u.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=Me;continue}c=xe}else c=we;break;case Ee:if(c=we,"/"!=a||"/"!=M(d,f+1))continue;f++;break;case we:if("/"!=a&&"\\"!=a){c=xe;continue}break;case xe:if("@"==a){p&&(d="%40"+d),p=!0,o=g(d);for(var b=0;b65535)return V;u.port=u.isSpecial()&&E===de[u.scheme]?null:E,d=""}if(t)return;c=Ie;continue}return V}d+=a;break;case Se:if(u.scheme="file","/"==a||"\\"==a)c=Ae;else{if(!n||"file"!=n.scheme){c=Me;continue}if(a==i)u.host=n.host,u.path=_(n.path),u.query=n.query;else if("?"==a)u.host=n.host,u.path=_(n.path),u.query="",c=Re;else{if("#"!=a){pe(R(_(r,f),""))||(u.host=n.host,u.path=_(n.path),u.shortenPath()),c=Me;continue}u.host=n.host,u.path=_(n.path),u.query=n.query,u.fragment="",c=je}}break;case Ae:if("/"==a||"\\"==a){c=Oe;break}n&&"file"==n.scheme&&!pe(R(_(r,f),""))&&(he(n.path[0],!0)?B(u.path,n.path[0]):u.host=n.host),c=Me;continue;case Oe:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&he(d))c=Me;else if(""==d){if(u.host="",t)return;c=Ie}else{if(s=u.parseHost(d))return s;if("localhost"==u.host&&(u.host=""),t)return;d="",c=Ie}continue}d+=a;break;case Ie:if(u.isSpecial()){if(c=Me,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=i&&(c=Me,"/"!=a))continue}else u.fragment="",c=je;else u.query="",c=Re;break;case Me:if(a==i||"/"==a||"\\"==a&&u.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(l=H(l=d))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(u.shortenPath(),"/"==a||"\\"==a&&u.isSpecial()||B(u.path,"")):ge(d)?"/"==a||"\\"==a&&u.isSpecial()||B(u.path,""):("file"==u.scheme&&!u.path.length&&he(d)&&(u.host&&(u.host=""),d=M(d,0)+":"),B(u.path,d)),d="","file"==u.scheme&&(a==i||"?"==a||"#"==a))for(;u.path.length>1&&""===u.path[0];)q(u.path);"?"==a?(u.query="",c=Re):"#"==a&&(u.fragment="",c=je)}else d+=fe(a,ue);break;case Pe:"?"==a?(u.query="",c=Re):"#"==a?(u.fragment="",c=je):a!=i&&(u.path[0]+=fe(a,se));break;case Re:t||"#"!=a?a!=i&&("'"==a&&u.isSpecial()?u.query+="%27":u.query+="#"==a?"%23":fe(a,se)):(u.fragment="",c=je);break;case je:a!=i&&(u.fragment+=fe(a,le))}f++}},parseHost:function(e){var t,n,i;if("["==M(e,0)){if("]"!=M(e,e.length-1))return G;if(t=function(e){var t,n,i,r,a,o,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,f=0,d=function(){return M(e,f)};if(":"==d()){if(":"!=M(e,1))return;f+=2,c=++u}for(;d();){if(8==u)return;if(":"!=d()){for(t=n=0;n<4&&P(ee,d());)t=16*t+A(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,u>6)return;for(i=0;d();){if(r=null,i>0){if(!("."==d()&&i<4))return;f++}if(!P($,d()))return;for(;P($,d());){if(a=A(d(),10),null===r)r=a;else{if(0==r)return;r=10*r+a}if(r>255)return;f++}l[u]=256*l[u]+r,2!=++i&&4!=i||u++}if(4!=i)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[u++]=t}else{if(null!==c)return;f++,c=++u}}if(null!==c)for(o=u-c,u=7;0!=u&&o>0;)s=l[u],l[u--]=l[c+o-1],l[c+--o]=s;else if(8!=u)return;return l}(U(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=F(e),P(te,e))return G;if(t=function(e){var t,n,i,r,a,o,s,l=z(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],i=0;i1&&"0"==M(r,0)&&(a=P(J,r)?16:8,r=U(r,8==a?1:2)),""===r)o=0;else{if(!P(10==a?Z:8==a?Q:ee,r))return e;o=A(r,a)}B(n,o)}for(i=0;i=I(256,5-t))return null}else if(o>255)return null;for(s=N(n),i=0;i1?arguments[1]:void 0,i=w(t,new Ne(e,!1,n));a||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Le=Be.prototype,qe=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(f(Le,"href",qe("serialize","setHref")),f(Le,"origin",qe("getOrigin")),f(Le,"protocol",qe("getProtocol","setProtocol")),f(Le,"username",qe("getUsername","setUsername")),f(Le,"password",qe("getPassword","setPassword")),f(Le,"host",qe("getHost","setHost")),f(Le,"hostname",qe("getHostname","setHostname")),f(Le,"port",qe("getPort","setPort")),f(Le,"pathname",qe("getPathname","setPathname")),f(Le,"search",qe("getSearch","setSearch")),f(Le,"searchParams",qe("getSearchParams")),f(Le,"hash",qe("getHash","setHash"))),c(Le,"toJSON",(function(){return x(this).serialize()}),{enumerable:!0}),c(Le,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),T){var ze=T.createObjectURL,Ue=T.revokeObjectURL;ze&&c(Be,"createObjectURL",l(ze,T)),Ue&&c(Be,"revokeObjectURL",l(Ue,T))}b(Be,"URL"),r({global:!0,constructor:!0,forced:!o,sham:!a},{URL:Be})},function(e,t,n){var i=n(4),r=2147483647,a=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,u=i(o.exec),c=Math.floor,f=String.fromCharCode,d=i("".charCodeAt),h=i([].join),p=i([].push),g=i("".replace),_=i("".split),m=i("".toLowerCase),F=function(e){return e+22+75*(e<26)},y=function(e,t,n){var i=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),i+=36;return c(i+36*e/(e+38))},b=function(e){var t=[];e=function(e){for(var t=[],n=0,i=e.length;n=55296&&r<=56319&&n=o&&ic((r-u)/v))throw l(s);for(u+=(b-o)*v,o=b,n=0;nr)throw l(s);if(i==o){for(var k=u,E=36;;){var w=E<=g?1:E>=g+26?26:E-g;if(kA.length&&A.push(e)}function M(e,t,n,i){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var s=!1;if(null===e)s=!0;else switch(r){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return n(i,e,""===t?"."+R(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l, only round last child */\n &:last-child {\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n margin-bottom: 0;\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.color.primary}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini}));function Jl(e){var t=e.element,n=e.handleButtonClick,i=t.title,r=t.type,o=t.url,s=Lt(i,gt.PANEL,"elementTitleCharLimit");return r===_t.HYPERLINK&&o?a.a.createElement(tc,t):a.a.createElement($l,{value:s,onClick:n},a.a.createElement($u,null,s))}function Ql(e){var t=e.content,n=e.addMessage,i=e.templateType,o=e.isCarouselElem,s=e.templateIdentifier,l=t.title,u=t.subtitle,c=t.elements,f=t.imageData,d=t.imageDescription,h=t.preIndex,p=t.nextIndex,g=t.listId,_=t.referenceId,m=Lt(l,gt.PANEL,"titleCharLimit"),F=Lt(u,gt.PANEL,"subtitleCharLimit"),y=Ot(Object(r.useState)(!1),2),b=y[0],v=y[1];return a.a.createElement(a.a.Fragment,null,f&&a.a.createElement(Xl,{showImage:b,isCarouselElem:o},a.a.createElement(Qu,{imageSrc:f,imageDescription:d,onImageLoad:function(){v(!0)}})),a.a.createElement(Zu,{title:m,subtitle:F}),a.a.createElement(Yu,{isCarouselElem:o},a.a.createElement("div",null,c.map((function(e,t){return a.a.createElement(Jl,{key:"element-"+t,handleButtonClick:function(){!function(e){var t=Nt(c[e],h,p,g,i,_,o,m,s);n(t)}(t)},element:e})})))))}var Zl=3,eu=Q.b.div(Nl||(Nl=q(["\n background-color: white;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n padding: ",";\n \n span {\n padding: 0 5px;\n flex-grow: 2;\n }\n"])),(function(e){return e.theme.globals.basePadding})),tu=Object(Q.b)(Me)(Bl||(Bl=q(["\n border: ",";\n padding: 0;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n \n &[disabled] {\n opacity: 0.3 !important;\n }\n \n &>div {\n display: flex;\n }\n"])),(function(e){return e.theme.globals.baseBorder}));eu.PrevDateButton=Object(Q.b)(tu)(Ll||(Ll=q(["\n align-self: flex-start;\n"]))),eu.NextDateButton=Object(Q.b)(tu)(ql||(ql=q(["\n align-self: flex-end;\n"])));var nu,iu,ru=Q.b.div(zl||(zl=q(["\n font-size: 0;\n transform: rotate(","deg);\n \n svg {\n width: 8px;\n height: 12px;\n }\n"])),(function(e){return"left"===e.direction?"180":"0"})),au=Q.b.div(Ul||(Ul=q(["\n padding: 0 ",";\n \n button {\n margin-top: ",";\n width: 100%;\n max-width: none;\n border-radius: ",";\n white-space: pre-line;\n \n &[data-selected='true'] { \n box-shadow: none;\n border: 1px solid ",";\n }\n }\n"])),(function(e){return e.theme.spacing.large}),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.color.highlightColor})),ou=Q.b.div(Hl||(Hl=q(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: "," ",";\n \n button{\n border-radius: ",";\n\t padding: ",";\n\t \n\t &[disabled] {\n\t opacity: 0.3 !important;\n\t }\n }\n"])),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.large}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.globals.basePadding})),su=Q.b.button(Kl||(Kl=q(["\n background-color: #fff;\n align-self: flex-start;\n"]))),lu=Q.b.button(Wl||(Wl=q(["\n background-color: #fff;\n align-self: flex-end;\n"]))),uu=Q.b.button(Gl||(Gl=q(["\n background-color: #3F5773;\n color: #fff !important;\n"]))),cu=Object(Q.b)(uu)(Vl||(Vl=q(["\n flex-grow: 2;\n"]))),fu=Object(Q.b)(uu)(Yl||(Yl=q(["\n font-size: 0;\n margin-right: ",";\n svg {\n width: ",";\n height: ",";\n }\n"])),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.fontsSize.small}),(function(e){return e.theme.fontsSize.small}));function du(){return(navigator.languages&&navigator.languages.length>0?navigator.languages[0]:navigator.language)||"en-US"}function hu(e){var t=e.timeslot,n=e.onClick,i=e.onKeyPress,r=e.selected,o=t.date,s=new Date(o).toLocaleTimeString("".concat(du()),{hour:"numeric",minute:"numeric",timeZoneName:"short"});return a.a.createElement(Me,{selected:r,value:o,onKeyPress:i,onClick:n},"".concat(s))}function pu(e){var t=e.direction;return a.a.createElement(ru,{direction:t},a.a.createElement("svg",{width:"8px",height:"12px",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("title",null,"Path"),a.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("polygon",{id:"Path",fill:"currentColor",fillRule:"nonzero",points:"2 0 0.59 1.41 5.17 6 0.59 10.59 2 12 8 6"}))))}function gu(e){var t=e.content,n=e.addMessage,i=t.title,o=t.subtitle,s=t.timeZoneOffset,l=t.timeslots,u=Lt(i,gt.TIME_PICKER,"titleCharLimit"),c=Lt(o,gt.TIME_PICKER,"subtitleCharLimit"),f=function(e,t){var n=e.map((function(e){return lt({},e,{date:_u(e.date,t)})}));return n}(l,s),d=function(e){return e.sort((function(e,t){return e.date.localeCompare(t.date)})),e.reduce((function(e,t){var n=new Date(t.date).setHours(0,0,0,0),i=new Date(n).toDateString();return e[i]||(e[i]=[]),e[i].push(t),e}),{})}(f),h=Object.keys(d),p=Ot(Object(r.useState)(0),2),g=p[0],_=p[1],m=h[g],F=d[m],y=Ot(Object(r.useState)(null),2),b=y[0],v=y[1],k=Ot(Object(r.useState)(0),2),E=k[0],w=k[1],x=E*Zl,C=x+Zl,D=F.slice(x,Math.min(F.length,C));function T(){S(g-1)}function S(e){_(e),w(0),v(null)}function A(e){v(e.currentTarget.value)}var O=new Date(m).toLocaleDateString(du(),{weekday:"long",month:"long",day:"numeric"}),I=h.length>0,M=null==b&&F.length>Zl;return a.a.createElement(a.a.Fragment,null,a.a.createElement(Zu,{title:u,subtitle:c}),a.a.createElement(Yu,null,a.a.createElement(eu,null,I&&a.a.createElement(eu.PrevDateButton,{disabled:0===g,onKeyPress:T,onClick:T,"data-testid":"time-picker-prev-date-button"},a.a.createElement(pu,{direction:"left"})),a.a.createElement("span",null,O),I&&a.a.createElement(eu.NextDateButton,{disabled:g===h.length-1,onClick:function(){S(g+1)},"data-testid":"time-picker-next-date-button"},a.a.createElement(pu,{direction:"right"}))),a.a.createElement(au,null,D.map((function(e){var t=new Date(b).getTime()===new Date(e.date).getTime();return a.a.createElement(hu,{selected:t,key:"timeslot".concat(e.date),timeslot:e,onKeypress:A,onClick:A})}))),a.a.createElement(ou,null,null!=b&&a.a.createElement(a.a.Fragment,null,a.a.createElement(fu,{onClick:function(){v(null)},"data-testid":"time-picker-reset-selection-button"},a.a.createElement("svg",{viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},a.a.createElement("path",{d:"M13 1.3L11.7 0 6.5 5.2 1.3 0 0 1.3l5.2 5.2L0 11.7 1.3 13l5.2-5.2 5.2 5.2 1.3-1.3-5.2-5.2z",fillRule:"evenodd"}))),a.a.createElement(cu,{disabled:null==b,onClick:function(){n({text:b})},"data-testid":"time-picker-confirm-selection-button"},"Confirm")),M&&a.a.createElement(a.a.Fragment,null,a.a.createElement(su,{disabled:0===E,onClick:function(){w(E-1)}},"Earlier"),a.a.createElement(lu,{disabled:C>=F.length,onClick:function(){w(E+1)}},"Later")))))}function _u(e,t){if(t){var n=new Date(e).getTime();return new Date(n+6e4*t).toISOString().slice(0,-2)+"+00:00"}return e}var mu="#077398",Fu="#FFFFFF",yu=Q.b.div(nu||(nu=q(["\n padding: "," 0;\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n gap: ",";\n justify-content: flex-end;\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.spacing.mini})),bu=Object(Q.b)(Me)(iu||(iu=q(["\n padding: 4px ",";\n text-align: left;\n cursor: pointer;\n border: 2px solid ",";\n border-radius: 2px;\n white-space: pre-wrap;\n font-weight: bold;\n font-size: ",";\n line-height: 22px;\n font-weight: 600;\n font-style: normal;\n color: ",";\n background: ",";\n text-shadow: none;\n box-shadow: none;\n\n :hover, :focus {\n background: ",";\n color: ",";\n border: 2px solid "," !important;\n }\n"])),(function(e){return e.theme.spacing.base}),mu,(function(e){return e.theme.fontsSize.regular}),mu,Fu,mu,Fu,mu);function vu(e){var t=e.element,n=e.handleSelection,i=Lt(t.title,gt.QUICK_REPLY,"replyOptionCharLimit");return a.a.createElement(bu,{onClick:function(){return n({text:t.title})}},i)}function ku(e){var t=e.content,n=e.addMessage,i=t.title,r=t.elements,o=Lt(i,gt.QUICK_REPLY,"titleCharLimit");return a.a.createElement(a.a.Fragment,null,a.a.createElement(Hu,{addChildBackgroundStyles:!0,"data-testid":"interactive-quickreply-message-title",applySpeechBubbleCaret:!0},a.a.createElement(da,{content:o})),a.a.createElement(yu,{"data-testid":"interactive-quickreply-response-section"},r.map((function(e,t){return a.a.createElement(vu,{element:e,handleSelection:n,key:t})}))))}var Eu,wu,xu,Cu=n(149),Du=n.n(Cu),Tu=200;var Su,Au,Ou,Iu,Mu,Pu,Ru,ju,Nu=Q.b.div(Eu||(Eu=q(["\n padding: ",";\n margin: 0 ",";\n display: flex;\n gap: 2%;\n overflow-x: scroll;\n position: relative;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n scroll-snap-type: x proximity;\n\n /* Hide scrollbar */\n ::-webkit-scrollbar {\n display: none; /* Chrome, Safari and Opera */\n }\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.spacing.mini})),Bu=Object(Q.b)(Me)(wu||(wu=q(["\n cursor: pointer;\n position: absolute;\n top: 50%;\n display: block;\n --offset-x: 0;\n z-index: 99;\n ","\n\n width: 32px;\n height: 32px;\n border: 2px solid #fff;\n border-radius: 50%;\n\n background-size: 14px auto;\n background: white;\n -webkit-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n -moz-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n"])),(function(e){return"right"===e.direction?"right: 0;":""})),Lu=Q.b.div(xu||(xu=q(["\n font-size: 0;\n transform: rotate(","deg);\n\n svg {\n width: 8px;\n height: 12px;\n }\n"])),(function(e){return"left"===e.direction?"180":"0"}));function qu(e){var t=e.elements,n=e.addMessage;return a.a.createElement(a.a.Fragment,null,t.map((function(e,t){return a.a.createElement(Ju,{key:t,content:e.data.content,templateType:e.templateType,addMessage:n,templateIdentifier:e.templateIdentifier,isCarouselElem:!0})})))}function zu(e){var t=e.direction;return a.a.createElement(Lu,{direction:t},a.a.createElement("svg",{width:"8px",height:"12px",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("polygon",{id:"Path",fill:"currentColor",fillRule:"nonzero",points:"2 0 0.59 1.41 5.17 6 0.59 10.59 2 12 8 6"}))))}function Uu(e){var t=e.content,n=e.addMessage,i=t.title,o=t.elements,s=Object(r.useRef)(null),l=function(){s.current.scrollLeft+=-1*Tu},u=function(){s.current.scrollLeft+=Tu},c=Lt(i,gt.CAROUSEL,"titleCharLimit");return a.a.createElement(a.a.Fragment,null,a.a.createElement(Hu,{addChildBackgroundStyles:!0,"data-testid":"interactive-carousel-message-title",applySpeechBubbleCaret:!0},a.a.createElement(da,{content:c})),a.a.createElement(Bu,{onKeyPress:l,onClick:l,"data-testid":"interactive-carousel-scroll-left-btn",direction:"left"},a.a.createElement(zu,{direction:"left"})),a.a.createElement(Nu,{ref:s,"data-testid":"interactive-carousel-response-section"},a.a.createElement(qu,{elements:o,addMessage:n})),a.a.createElement(Bu,{onKeyPress:u,onClick:u,"data-testid":"interactive-carousel-scroll-right-btn",direction:"right"},a.a.createElement(zu,{direction:"right"})))}var Hu=Q.b.div(Su||(Su=q(["\n border: ",";\n border-radius: ",";\n\n ","\n\n ","\n\n ","\n\n button {\n cursor: pointer;\n border: ",";\n \n &:hover:enabled {\n color: #fff;\n background: ",";\n }\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.spacing.mini}),(function(e){return e.addChildBackgroundStyles?"\n background: ".concat(e.theme.chatTranscriptor.incomingMsgBg,"\n padding: 14px;\n "):""}),(function(e){return e.isCarouselElem?"\n position: relative;\n max-width: 350px;\n min-width: 225px;\n scroll-snap-align: start;\n background: ".concat(e.theme.chatTranscriptor.incomingMsgBg,"\n display: flex;\n flex-direction: column;\n "):""}),(function(e){return e.applySpeechBubbleCaret?'\n position: relative;\n\n &:after {\n display: block;\n content: " ";\n position: absolute;\n left: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 10px solid transparent;\n border-right: 12px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.incomingMsgBg,";\n }\n "):""}),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.color.primary})),Ku=Object(Q.b)(Ce)(Au||(Au=q(["\n font-weight: bold !important;\n"]))),Wu=Object(Q.b)(Ce)(Ou||(Ou=q(["\n color: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor})),Gu=Q.b.img(Iu||(Iu=q(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"]))),Vu=Q.b.div(Mu||(Mu=q(["\n padding: ",";\n text-align: left;\n\n ","\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.hasNestedSVG?"\n align-items: center;\n display: flex;\n justify-content: center;\n ":""})),Yu=Q.b.div(Pu||(Pu=q(["\n position: relative;\n white-space: pre-line;\n border-radius: ",";\n\n ","\n"])),(function(e){return e.theme.spacing.mini}),(function(e){return e.isCarouselElem?"\n margin-top: auto;\n flex: none;\n ":""})),Xu=Q.b.div(Ru||(Ru=q(["\n display: flex;\n justify-content: center;\n width: 100%;\n max-width: none;\n border: ",";\n background: ",";\n white-space: pre-line;\n padding-right: ",";\n padding-left: ",";\n padding-top: ",";\n padding-bottom: ",";\n font-size: ",";\n line-height: 1.465;\n text-decoration: none;\n\n &:last-child {\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n margin-bottom: 0;\n }\n\n a: {\n text-decoration: none !important;\n font-weight: bold !important;\n }\n\n svg: {\n color: ",";\n margin: 0 ",";\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.palette.white}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.button.normal.padding}),(function(e){return e.theme.button.normal.padding}),(function(e){return e.theme.button.normal.fontSize}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.micro})),$u=Object(Q.b)(Ce)(ju||(ju=q(["\n font-weight: bold;\n\n a {\n text-decoration: none;\n }\n\n ","\n"])),(function(e){return e.hasNestedSVG?"\n align-items: center;\n display: flex;\n justify-content: center;\n ":""}));function Ju(e){var t=e.content,n=e.templateType,i=e.addMessage,o=e.textInputRef,s=e.isCarouselElem,l=e.templateIdentifier,u=Ot(Object(r.useState)(!1),2),c=u[0],f=u[1];function d(e){i(e),f(!0)}return Object(r.useLayoutEffect)((function(){o&&o.current&&o.current.focus&&o.current.focus()}),[c,o]),n===gt.QUICK_REPLY?a.a.createElement(ku,{content:t,addMessage:d}):n===gt.CAROUSEL?a.a.createElement(Uu,{content:t,addMessage:d}):a.a.createElement(Hu,{"data-testid":l,isCarouselElem:s},n===gt.LIST_PICKER?a.a.createElement(jl,{content:t,addMessage:d,templateType:n,isCarouselElem:s,templateIdentifier:l}):n===gt.PANEL?a.a.createElement(Ql,{content:t,addMessage:d,templateType:n,isCarouselElem:s,templateIdentifier:l}):n===gt.TIME_PICKER?a.a.createElement(gu,{content:t,addMessage:d}):void 0)}function Qu(e){var t=e.imageSrc,n=e.imageDescription,i=e.onImageLoad;return a.a.createElement(Gu,{src:t,alt:n,onLoad:i,onError:function(e){return console.log("Failed to load image:",e)}})}function Zu(e){var t=e.title,n=e.subtitle;return a.a.createElement(Vu,null,a.a.createElement(da,{content:t,styledWrapper:Ku}),n&&a.a.createElement(da,{content:n,styledWrapper:Wu}))}function ec(){return a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor",stroke:"none"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}))}function tc(e){var t=e.url,n=e.title,i=e.target,r=e.testId;return a.a.createElement(Xu,{"data-testid":r},a.a.createElement($u,{hasNestedSVG:!0},a.a.createElement("a",{href:t,target:i||"_blank"},n),a.a.createElement(ec,null)))}function nc(){return nc=Object.assign||function(e){for(var t=1;t=e}));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=a),null==(n=r.get(t.target))||n.forEach((function(e){e(a,t)}))}))}),e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},rc.set(t,n)}return n}(n),o=a.id,s=a.observer,l=a.elements,u=l.get(e)||[];return l.has(e)||l.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),rc.delete(o))}}var cc=["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function fc(e){return"function"!==typeof e.children}var dc,hc,pc,gc,_c,mc,Fc,yc,bc,vc,kc,Ec,wc=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),fc(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,ic(t,n);var a=i.prototype;return a.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},a.componentWillUnmount=function(){this.unobserve(),this.node=null},a.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,i=e.rootMargin,r=e.trackVisibility,a=e.delay,o=e.fallbackInView;this._unobserveCb=uc(this.node,this.handleChange,{threshold:t,root:n,rootMargin:i,trackVisibility:r,delay:a},o)}},a.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},a.render=function(){if(!fc(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var i=this.props,a=i.children,o=i.as,s=i.tag,l=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}(i,cc);return r.createElement(o||s||"div",nc({ref:this.handleNode},l),a)},i}(r.Component);wc.displayName="InView",wc.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};var xc=Q.b.div(dc||(dc=q(["\n padding: "," ",";\n word-break: break-word;\n white-space: pre-line;\n overflow: auto;\n text-align: ",";\n"])),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.base}),(function(e){return e.textAlign})),Cc=Q.b.div(hc||(hc=q(["\n overflow: auto;\n"])));Cc.Sender=Q.b.div(pc||(pc=q(["\n float: left;\n max-width: 150px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),Cc.Status=Q.b.div(gc||(gc=q(["\n float: right;\n"])));var Dc=Q.b.div(_c||(_c=q(["\n overflow: auto;\n color: ",";\n padding-right: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.mini}));Dc.MessageReceipt=Q.b.div(mc||(mc=q(["\n float: right;\n"])));var Tc=Q.b.div(Fc||(Fc=q(["\n ",";\n\n ",";\n\n ","\n\n padding: ",";\n margin-top: ",";\n border-radius: 5px;\n position: relative;\n &:after {\n display: ",";\n ","\n }\n"])),(function(e){return e.direction===bt.Outgoing?e.theme.chatTranscriptor.outgoingMsg:e.theme.chatTranscriptor.incomingMsg}),(function(e){return e.messageStyle?e.messageStyle:""}),(function(e){return e.childWillAddBackground?"background: none":""}),(function(e){return e.removePadding?0:e.theme.spacing.base}),(function(e){return e.theme.spacing.mini}),(function(e){return e.hideDirectionArrow?"none":"block"}),(function(e){return e.direction===bt.Outgoing?'\n content: " ";\n position: absolute;\n right: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 12px solid transparent;\n border-right: 10px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.outgoingMsgBg,";\n "):'\n content: " ";\n position: absolute;\n left: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 10px solid transparent;\n border-right: 12px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.incomingMsgBg,";")})),Sc=Q.b.div(yc||(yc=q(["\n color: ",";\n display: flex;\n > img {\n margin-right: ",";\n }\n"])),(function(e){return e.theme.palette.red}),(function(e){return e.theme.spacing.mini})),Ac=Q.b.span(bc||(bc=q(["\n color: ",";\n padding-right: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.mini})),Oc=Q.b.div(vc||(vc=q(["\n margin-left: ",";\n padding: "," "," ",";\n\n span {\n color: ",";\n }\n"])),(function(e){return e.theme.chatTranscriptor.msgStatusWidth}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.micro}),(function(e){return e.theme.palette.red}));Oc.RetryButton=Q.b.a(kc||(kc=q(["\n margin-left: ",";\n"])),(function(e){return e.theme.spacing.micro}));var Ic,Mc,Pc=function(e){e.error;var t=e.resetErrorBoundary,n=e.InteractiveMessageType+"_ERROR";return window.connect&&window.connect.csmService&&window.connect.csmService.addCountAndErrorMetric(n,st,!1),a.a.createElement("div",{role:"alert"},a.a.createElement("p",null,"Something went wrong"),a.a.createElement("button",{onClick:t},"Reload Editor"))},Rc=function(e){function t(e){var n;return z(this,t),(n=V(this,Y(t).call(this,e))).state={inView:!1,isVisible:!1},n.csmService=void 0,window.connect&&window.connect.csmService&&(n.csmService=window.connect.csmService),n}return $(t,e),H(t,[{key:"timestampToDisplayable",value:function(e){var t=new Date(0);t.setUTCSeconds(e);var n={hour:"numeric",minute:"numeric"};return(new Date).toDateString()===new Date(1e3*e).toDateString()?t.toLocaleTimeString([],n):t.toLocaleTimeString([],lt({},n,{weekday:"short",month:"short",day:"numeric"}))}},{key:"renderHeader",value:function(){var e=this.props.messageDetails.transportDetails.direction===bt.Outgoing,t=this.props.messageDetails.displayName||(e?"Customer":"Agent"),n=this.props.messageDetails.transportDetails,i=a.a.createElement(a.a.Fragment,null);switch(n.status){case mt.Sending:i=a.a.createElement(a.a.Fragment,null,a.a.createElement(Ac,null,a.a.createElement("span",null,"Sending")));break;case mt.SendSuccess:i=a.a.createElement(a.a.Fragment,null,this.timestampToDisplayable(n.sentTime,e));break;case mt.SendFailed:i=a.a.createElement(Sc,null,a.a.createElement(Je,null),a.a.createElement("span",null,"Failed to send!"));break;default:i=a.a.createElement(a.a.Fragment,null)}return a.a.createElement(a.a.Fragment,null,a.a.createElement(Cc.Sender,null,t),a.a.createElement(Cc.Status,null,i))}},{key:"renderMessageReceipts",value:function(){var e=this.props.messageDetails,t=e.lastReadReceipt,n=void 0!==t&&t,i=e.lastDeliveredReceipt,r=void 0!==i&&i,o=e.transportDetails,s=void 0===o?{}:o,l=s.messageReceiptType;return s.direction===bt.Outgoing&&l?a.a.createElement(a.a.Fragment,null,a.a.createElement(Dc.MessageReceipt,null,n&&"Read",r&&"Delivered")):null}},{key:"visibilityChangeListener",value:function(){var e="visible"===document.visibilityState;this.setState({isVisible:e})}},{key:"componentDidUpdate",value:function(){var e=this.props.messageDetails,t=e.transportDetails.direction,n=e.type,i=e.id,r=e.participantRole;this.state.inView&&this.state.isVisible&&xt.isTypeMessageOrAttachment(n)&&xt.isParticipantAgentOrCustomer(r)&&t===bt.Incoming&&this.props.sendReadReceipt(i,n===ft?{disableThrottle:!0}:{})}},{key:"componentDidMount",value:function(){this.visibilityChangeListener(),document.addEventListener("visibilitychange",this.visibilityChangeListener.bind(this))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("visibilitychange",this.visibilityChangeListener.bind(this))}},{key:"render",value:function(){var e,t,n=this,i=this.props.messageDetails.transportDetails,r=i.direction,o=i.error,s=r===bt.Outgoing?this.props.outgoingMsgStyle:this.props.incomingMsgStyle,l={};if(this.props.isLatestMessage&&this.props.messageDetails.content&&this.props.messageDetails.content.type===ht.MESSAGE_CONTENT_TYPE.INTERACTIVE_MESSAGE){l.hideDirectionArrow=!0,l.removePadding=!0;var u=JSON.parse(this.props.messageDetails.content.data).templateType;u!==gt.QUICK_REPLY&&u!==gt.CAROUSEL||(l.childWillAddBackground=!0)}if(this.props.messageDetails.type===ft)this.props.messageDetails.Attachments&&this.props.messageDetails.Attachments.length>0?(e=this.props.messageDetails.Attachments[0],t=e.ContentType,e.Status===yt&&void 0===o&&(o={message:"Attachment was rejected."})):(e={AttachmentName:this.props.messageDetails.content.name},t=this.props.messageDetails.content.type);else if(e=this.props.messageDetails.content.data,!function(e){var t=!1;for(var n in ht.MESSAGE_CONTENT_TYPE)ht.MESSAGE_CONTENT_TYPE[n]===e&&(t=!0);return t}(t=this.props.messageDetails.content.type))return null;return a.a.createElement("div",{"data-testid":"main-message"},a.a.createElement(Cc,{"data-testid":"message-header"},this.renderHeader()),a.a.createElement(wc,{onChange:function(e){return n.setState({inView:e})}},(function(i){var o=i.ref;return a.a.createElement(Tc,Object.assign({"data-testid":"message-body",direction:r,messageStyle:s},l,{ref:n.props.isLatestMessage?o:null}),n.renderContent(e,t))})),a.a.createElement(Dc,null,this.renderMessageReceipts()),o&&this.renderTransportError(o))}},{key:"triggerCountMetric",value:function(e){this.csmService&&this.csmService.addCountMetric(e,st)}},{key:"renderContent",value:function(e,t){if(this.props.messageDetails.type===ft)return a.a.createElement(Lc,{content:e,downloadAttachment:this.props.mediaOperations.downloadAttachment});if(t===ht.MESSAGE_CONTENT_TYPE.INTERACTIVE_MESSAGE){var n=JSON.parse(e),i=n.data,r=n.templateType;return this.props.isLatestMessage?(this.triggerCountMetric(r+rt),a.a.createElement(At.ErrorBoundary,{fallback:a.a.createElement(Pc,{InteractiveMessageType:r})},a.a.createElement(Ju,{content:i.content,templateType:r,addMessage:this.props.mediaOperations.addMessage,textInputRef:this.props.textInputRef}))):(this.triggerCountMetric(at),a.a.createElement(da,{content:i.content.title}))}if(t===ht.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN)return this.triggerCountMetric(at),a.a.createElement(da,{content:e});if(this.triggerCountMetric(ot),function(e){if(Du()(e)){var t=JSON.parse(e);return["listTitle","selectionText","templateIdentifier"].every((function(e){return e in t&&"string"===typeof t[e]}))}return!1}(e)){var o=function(e){var t=JSON.parse(e),n=t.listTitle,i=t.selectionText,r=":"===n.slice(-1)?"":" -";return"".concat(n).concat(r," ").concat(i)}(e);return a.a.createElement(jc,{content:o})}return a.a.createElement(jc,{content:e})}},{key:"renderTransportError",value:function(e){return e&&e.message?a.a.createElement(Oc,null,a.a.createElement("span",null,e.message),e.retry&&this.renderRetryButton(e.retry)):null}},{key:"renderRetryButton",value:function(e){var t=function(t){t.preventDefault(),e()};return a.a.createElement(Oc.RetryButton,{href:"Retry",tabIndex:0,onClick:t,onKeyPress:t},"Retry")}}]),t}(r.PureComponent),jc=function(e){function t(){return z(this,t),V(this,Y(t).apply(this,arguments))}return $(t,e),H(t,[{key:"render",value:function(){return a.a.createElement(St.a,{properties:{target:"_blank"}},this.props.content)}}]),t}(r.PureComponent),Nc=Object(Q.b)(xc)(Ec||(Ec=q(["\n > ","{\n display: inline-block;\n float: ","\n"])),Tc,(function(e){return e.direction===bt.Outgoing?"right":"left"})),Bc=function(e){function t(){return z(this,t),V(this,Y(t).apply(this,arguments))}return $(t,e),H(t,[{key:"render",value:function(){return a.a.createElement(Nc,{direction:this.props.direction},a.a.createElement(Tc,{direction:this.props.direction},a.a.createElement(et,{color:this.props.direction===bt.Outgoing?"#fff":"#000"})))}}]),t}(r.PureComponent),Lc=function(e){function t(){var e,n;z(this,t);for(var i=arguments.length,r=new Array(i),a=0;al.current.clientHeight&&l.current.scrollTop<=0&&!d&&(h(!0),i().then((function(){h(!1)})))},className:o},d&&a.a.createElement(Wc,null,a.a.createElement(Ze,{size:20,color:he.color.primary}),a.a.createElement(Ce,null,a.a.createElement("span",null,"Loading previous messages..."))),s)}Gc.defaultProps={loadPreviousTranscript:function(){return Promise.resolve()},lastSentMessageId:""};var Vc=Q.b.div(Uc||(Uc=q(["\n margin: 0 auto;\n"]))),Yc=Object(Q.b)(Gc)(Hc||(Hc=q(["\n background: ",";\n -webkit-text-size-adjust: none;\n text-size-adjust: none;\n flex: 12 1 auto;\n"])),(function(e){return e.theme.chatTranscriptor.background})),Xc={participantMessageConfig:{render:function(e){var t=ut({},e);return a.a.createElement(Rc,t)}},attachmentMessageConfig:{render:function(e){var t=ut({},e);return a.a.createElement(Rc,t)}},systemMessageConfig:{render:function(e){var t=ut({},e);return a.a.createElement(qc,t)}}},$c=function(e){function t(){var e,n;z(this,t);for(var i=arguments.length,r=new Array(i),o=0;o=0||(r[n]=e[n]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var f=void 0!==c.value,d=Object(r.useRef)(null),h=nf(d,t),p=Object(r.useRef)(0),g=Object(r.useRef)(),_=function(){var e=d.current,t=n&&g.current?g.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,i=(n=t,uf.reduce((function(e,t){return e[t]=n[t],e}),{})),r=i.boxSizing;return""===r?null:(cf&&"border-box"===r&&(i.width=parseFloat(i.width)+parseFloat(i.borderRightWidth)+parseFloat(i.borderLeftWidth)+parseFloat(i.paddingRight)+parseFloat(i.paddingLeft)+"px"),{sizingStyle:i,paddingSize:parseFloat(i.paddingBottom)+parseFloat(i.paddingTop),borderSize:parseFloat(i.borderBottomWidth)+parseFloat(i.borderTopWidth)})}(e);if(t){g.current=t;var r=function(e,t,n,i){void 0===n&&(n=1),void 0===i&&(i=1/0),of||((of=document.createElement("textarea")).setAttribute("tabindex","-1"),of.setAttribute("aria-hidden","true"),af(of)),null===of.parentNode&&document.body.appendChild(of);var r=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach((function(e){var t=e;of.style[t]=o[t]})),af(of),of.value=t;var l=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(of,e);of.value="x";var u=of.scrollHeight-r,c=u*n;"border-box"===s&&(c=c+r+a),l=Math.max(c,l);var f=u*i;return"border-box"===s&&(f=f+r+a),[l=Math.min(f,l),u]}(t,e.value||e.placeholder||"x",a,i),o=r[0],s=r[1];p.current!==o&&(p.current=o,e.style.setProperty("height",o+"px","important"),u(o,{rowHeight:s}))}};return Object(r.useLayoutEffect)(_),ff(_),Object(r.createElement)("textarea",Zc({},c,{onChange:function(e){f||_(),s(e)},ref:h}))},hf=Object(r.forwardRef)(df),pf=he.palette.secondaryBlack,gf=he.palette.whisper,_f=Q.b.div(sf||(sf=q(["\n cursor: ",";\n\n &>svg {\n fill: ",";\n }\n"])),(function(e){return e.isActive?"pointer":"default"}),(function(e){return e.isActive?pf:gf}));var mf,Ff,yf,bf,vf,kf,Ef,wf,xf,Cf,Df,Tf,Sf,Af=function(e){var t=e.isActive,n=e.sendMessage;return a.a.createElement(_f,{isActive:t,onClick:n,"data-testid":"customer-chat-send-message-button","aria-label":"Send Message",tabIndex:0,onKeyDown:function(e){e.key!==it.SPACE&&e.key!==it.ENTER||n(e)}},a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})))},Of=Q.b.div(mf||(mf=q(["\n margin: 0;\n padding: 0;\n"]))),If=Q.b.div(Ff||(Ff=q(["\n position: relative;\n display: flex;\n background: ",";\n border: 0.5px solid ",";\n border-left: 0;\n border-right: 0;\n"])),(function(e){return e.theme.palette.white}),(function(e){return e.theme.palette.lightGray})),Mf=Q.b.div(yf||(yf=q(["\n position: absolute;\n padding: ",";\n padding-right: ",";\n top: 0;\n right: 0;\n z-index: 2;\n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.base})),Pf=Q.b.div(bf||(bf=q(["\n cursor: pointer;\n height: auto;\n vertical-align: top;\n\n button {\n height: 100%;\n width: 100%;\n }\n\n label {\n align-items: center;\n display: flex;\n cursor: pointer;\n font-size: 0;\n height: 100%;\n padding-left: ",";\n padding-right: ",';\n margin-bottom: 0;\n }\n\n input {\n display: none;\n }\n\n & + [role="textbox"] {\n padding-left: 0;\n }\n'])),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini})),Rf=Q.b.button(vf||(vf=q(["\n background-color: transparent;\n border: 1px solid transparent;\n position: relative;\n padding: 0;\n margin: 0;\n"]))),jf=Q.b.div(kf||(kf=q(["\n display: flex;\n background-color: ",";\n border-radius: 5px;\n margin: 5px;\n padding: ",";\n min-width: 0;\n\n & > div {\n width: 100%;\n\n span {\n overflow-wrap: break-word;\n }\n\n button {\n align-items: center;\n display: inline-flex;\n cursor: pointer;\n margin-left: 5px;\n }\n }\n\n & + div {\n padding-left: 0;\n }\n"])),(function(e){return e.theme.chatTranscriptor.outgoingMsgBg}),(function(e){return e.theme.spacing.mini})),Nf=Object(Q.b)(hf)(Ef||(Ef=q(["\n flex: 1;\n outline: none;\n user-select: text;\n word-break: break-word;\n font-family: inherit;\n font-size: 1rem !important;\n padding: ",";\n padding-left: 0;\n padding-right: ",";\n margin-left: ",";\n max-height: 80px;\n line-height: 1.5rem;\n overflow: auto;\n min-height: 39px;\n z-index: 2;\n resize: none;\n letter-spacing: ",";\n font-size: ",";\n border: none;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus::placeholder {\n color: transparent;\n }\n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.xxlarge}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.globals.letterSpacing}),(function(e){return e.theme.fontsSize.regular||"1rem"}),(function(e){return e.theme.palette.mediumGray})),Bf=Q.b.div(wf||(wf=q(["\n display: flex;\n font-size: 0;\n\n svg {\n width: 24px;\n height: 24px;\n }\n"]))),Lf=Q.b.div(xf||(xf=q(["\n display: flex;\n font-size: 0;\n svg {\n width: ",";\n height: ",";\n }\n"])),(function(e){return e.theme.fontsSize.mini}),(function(e){return e.theme.fontsSize.mini}));function qf(e){var t,n,i=e.addMessage,o=e.addAttachment,s=e.onTyping,l=e.contactId,u=e.contactStatus,c=e.onTypingValidityTime,f=e.textInputRef,d=e.composerConfig;window.connect&&window.connect.LogManager&&(t=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatComposer"}));var h=Ot(Object(r.useState)(""),2),p=h[0],g=h[1],_=Ot(Object(r.useState)(null),2),m=_[0],F=_[1],y=Object(r.useRef)(null);function b(e){return e.shiftKey||e.key!==it.ENTER?(function(e){return e.target.innerText===p}(e)||k(),g(e.target.value),e.key!==it.DELETE&&e.key!==it.BACKSPACE||!m||""!==p?void 0:(e.preventDefault(),void E())):(e.preventDefault(),v(),!1)}function v(){var e;k.cancel(),(e=p).trim()&&i(l,{text:e}),g(""),m&&(o(l,m),E())}Object(r.useEffect)((function(){t&&t.info("Component mounted.")}),[t]),Object(r.useLayoutEffect)((function(){f&&f.current&&f.current.focus&&f.current.focus()}),[m,f]);var k=Object(r.useMemo)((function(){return Qc()((function(){s().then((function(){}))}),c,{trailing:!1,leading:!0})}),[s,c,{trailing:!1,leading:!0}]);function E(){F(null),y.current.value=null,t&&t.info("File is removed.")}var w="Type a message",x=null==m?w:"",C=a.a.createElement(ls,{allowedFileContentTypes:pt,attachmentsEnabled:d&&d.attachmentsEnabled,sendMessage:function(e){k.cancel(),e.trim()&&i(l,{text:e,type:ht.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN})},sendAttachment:function(e){o(l,e)},placeholder:x,onTyping:k}),D=a.a.createElement(If,null,d&&d.attachmentsEnabled&&a.a.createElement(Pf,{tabIndex:0,"data-testid":"customer-chat-attachment-icon",onKeyDown:function(e){e.key!==it.SPACE&&e.key!==it.ENTER||(e.preventDefault(),document.getElementById("customer-chat-file-select-".concat(l)).click())}},a.a.createElement(Rf,{"aria-label":"Attach a file"},a.a.createElement("label",{htmlFor:"customer-chat-file-select-".concat(l)},a.a.createElement(Bf,null,a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}))),a.a.createElement("input",{ref:y,type:"file",id:"customer-chat-file-select-".concat(l),"data-testid":"customer-chat-file-select",accept:pt.join(","),onChange:function(e){var n=e.target.files[0];F(n),t&&t.info("File added.")},"aria-label":"Attach a file",tabIndex:-1})))),null!=m&&a.a.createElement(jf,null,a.a.createElement("div",null,a.a.createElement("span",null,m.name),a.a.createElement(Rf,{onClick:E,"aria-label":"Remove attachment"},a.a.createElement(Lf,null,a.a.createElement("svg",{viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},a.a.createElement("path",{d:"M13 1.3L11.7 0 6.5 5.2 1.3 0 0 1.3l5.2 5.2L0 11.7 1.3 13l5.2-5.2 5.2 5.2 1.3-1.3-5.2-5.2z",fillRule:"evenodd"})))))),a.a.createElement(Nf,{"data-testid":"customer-chat-text-input",ref:f,value:p,onInput:b,onKeyPress:b,onKeyDown:b,onFocus:function(){if(!n&&function(){var e=window.navigator&&window.navigator.userAgent;return e&&-1!==e.search(/iPhone/i)}()){n=!0;var e=document.createElement("input"),t=document.querySelector('[data-testid="amazon-connect-chat-wrapper"] div');t&&(t.appendChild(e),e.focus()),setTimeout((function(){f&&f.current&&f.current.focus(),e.remove(),n=!1}),300)}},"aria-label":w,placeholder:x,tabIndex:"0",spellCheck:"true"}),a.a.createElement(Mf,null,a.a.createElement(Af,{isActive:!!p||m,sendMessage:v.bind(this)})));return a.a.createElement(Of,null,u===nt.CONNECTED&&(d&&d.richMessagingEnabled?C:D))}qf.defaultProps={onTypingValidityTime:1e4};var zf=Q.b.div(Cf||(Cf=q(["\n background: ",";\n height: ",";\n"])),(function(e){return e.theme.palette.dustyGray}),"85px"),Uf=Q.b.div(Df||(Df=q(["\n order: 3;\n @media (max-width: 640px) {\n position: absolute;\n left: 0;\n bottom: 0;\n right: 0;\n }\n"]))),Hf=Q.b.div(Tf||(Tf=q(["\n display: flex;\n justify-content: center;\n flex-direction: row;\n height: 100%;\n align-items: center;\n > button {\n min-width: 85px;\n margin: ",";\n font-weight: bold;\n }\n"])),(function(e){return e.theme.spacing.mini})),Kf=Object(Q.b)(Me)(Sf||(Sf=q(["\n margin: ",";\n width: ",";\n \n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.col?100/e.col-7+"%":""}));function Wf(e){return{__html:e}}var Gf,Vf,Yf,Xf,$f,Jf=function(e){function t(){var e;return z(this,t),e=V(this,Y(t).call(this)),window.connect&&window.connect.LogManager&&(e.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatActionBar"})),e}return $(t,e),H(t,[{key:"componentDidMount",value:function(){this.logger&&this.logger.info("Component mounted.")}},{key:"render",value:function(){var e=this.props,t=e.contactStatus,n=e.onEndChat,i=e.onClose,a=e.footerConfig;if(a.render){var o=a.render(this.props);return a.isHTML?r.createElement(Uf,{dangerouslySetInnerHTML:Wf(o)}):r.createElement(Uf,null,o)}return r.createElement(Uf,null,r.createElement(zf,null,r.createElement(Hf,null,(t===nt.CONNECTED||t===nt.CONNECTING)&&r.createElement(r.Fragment,null,r.createElement(Kf,{col:"2",type:"default",onClick:n},r.createElement("span",null,"End chat"))),t===nt.ENDED&&r.createElement(r.Fragment,null,r.createElement(Kf,{col:"2",type:"default",onClick:i},r.createElement("span",null,"Close"))))))}}]),t}(r.Component);J(Jf,"defaultProps",{onEndChat:function(){},onClose:function(){},footerConfig:{}});var Qf=Q.b.div(Gf||(Gf=q(["\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n @media (max-width:640px) {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n }\n"]))),Zf=Q.b.div(Vf||(Vf=q(["\n margin: 0;\n padding: 0;\n order: 1;\n @media (max-width: 640px) {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n }\n"]))),ed=Q.b.div(Yf||(Yf=q(["\n order: 2;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n height: 340px;\n @media (max-width:640px) {\n position: absolute;\n left: 0;\n bottom: 85px;\n right: 0;\n top: ","px;\n min-height: auto;\n }\n"])),(function(e){return e.parentHeaderWrapperHeight})),td=Q.b.div(Xf||(Xf=q(["\n background: #3F5773;\n text-align: center;\n padding: 16px;\n color: #fff;\n border-radius: 3px;\n flex-shrink: 0;\n"]))),nd=Object(Q.b)(Ce)($f||($f=q(["\n padding-bottom: 10px;\n"]))),id={isHTML:!1,render:function(){return a.a.createElement(td,null,a.a.createElement(nd,{type:"h2"},"Hi there! "),a.a.createElement(Ce,{type:"p"},"This is an example of how customers experience chat on your website"))}};function rd(e){var t=e.headerConfig,n=Object.assign({},id,t);return n.isHTML?Dt()(n.render()):n.render()}rd.defaultProps={headerConfig:{}};var ad=a.a.createRef(),od=function(e){function t(e){var n;return z(this,t),(n=V(this,Y(t).call(this,e))).state={transcript:[],typingParticipants:[],contactStatus:nt.DISCONNECTED,parentHeaderWrapperHeight:115},n.parentHeaderRef=a.a.createRef(),n.updateTranscript=function(e){return n.setState({transcript:tt(e)})},n.updateTypingParticipants=function(e){return n.setState({typingParticipants:e})},n.updateContactStatus=function(e){return n.setState({contactStatus:e})},window.connect&&window.connect.LogManager&&(n.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-Chat"})),n}return $(t,e),H(t,[{key:"resetChatHeight",value:function(){this.setState({parentHeaderWrapperHeight:this.parentHeaderRef&&this.parentHeaderRef.current?this.parentHeaderRef.current.clientHeight:115})}},{key:"componentDidMount",value:function(){this.init(this.props.chatSession),this.resetChatHeight(),this.logger&&this.logger.info("Component mounted.")}},{key:"componentDidUpdate",value:function(e){e.chatSession!==this.props.chatSession&&(this.cleanUp(e.chatSession),this.init(this.props.chatSession))}},{key:"componentWillUnmount",value:function(){this.cleanUp(this.props.chatSession)}},{key:"init",value:function(e){this.setState({contactStatus:e.contactStatus}),e.on("transcript-changed",this.updateTranscript),e.on("typing-participants-changed",this.updateTypingParticipants),e.on("contact-status-changed",this.updateContactStatus)}},{key:"cleanUp",value:function(e){e.off("transcript-changed",this.updateTranscript),e.off("typing-participants-changed",this.updateTypingParticipants),e.off("contact-status-changed",this.updateContactStatus)}},{key:"endChat",value:function(){this.props.chatSession.endChat(),this.props.onEnded()}},{key:"closeChat",value:function(){this.props.chatSession.closeChat(),this.props.onEnded()}},{key:"render",value:function(){var e=this,t=this.props,n=t.chatSession,i=t.headerConfig,r=t.transcriptConfig,o=t.composerConfig,s=t.footerConfig;return this.state.transcript,a.a.createElement(Qf,{"data-testid":"amazon-connect-chat-wrapper"},(this.state.contactStatus===nt.CONNECTED||this.state.contactStatus===nt.CONNECTING||this.state.contactStatus===nt.ENDED)&&a.a.createElement(Zf,{ref:this.parentHeaderRef},a.a.createElement(rd,{headerConfig:i})),a.a.createElement(ed,{parentHeaderWrapperHeight:this.state.parentHeaderWrapperHeight},a.a.createElement($c,{loadPreviousTranscript:function(){return n.loadPreviousTranscript()},addMessage:function(e){return n.addOutgoingMessage(e)},downloadAttachment:function(e){return n.downloadAttachment(e)},transcript:this.state.transcript,typingParticipants:this.state.typingParticipants,contactStatus:this.state.contactStatus,contactId:n.contactId,transcriptConfig:r,textInputRef:ad,sendReadReceipt:function(){return n.sendReadReceipt.apply(n,arguments)}}),a.a.createElement(qf,{contactStatus:this.state.contactStatus,contactId:n.contactId,addMessage:function(e,t){return n.addOutgoingMessage(t)},addAttachment:function(e,t){return n.addOutgoingAttachment(t)},onTyping:function(){return n.sendTypingEvent()},composerConfig:o,textInputRef:ad})),a.a.createElement(Jf,{onEndChat:function(){return e.endChat()},onClose:function(){return e.closeChat()},contactStatus:this.state.contactStatus,footerConfig:s}))}}]),t}(r.Component);J(od,"defaultProps",{onEnded:function(){}});n(1029);function sd(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return ld(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ld(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function ld(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),r=1;r=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;w(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var pd=Object.values(ht.EVENT_CONTENT_TYPE),gd="Amazon-Connect-ChatInterface-ChatSession",_d=function(){function e(t,n,i){z(this,e),J(this,"session",null),this.session=connect.ChatSession.create({chatDetails:t.startChatResult,type:"CUSTOMER",options:{region:n}})}return H(e,[{key:"connect",value:function(){return this.session.connect()}},{key:"disconnect",value:function(){return this.session.disconnectParticipant()}},{key:"onParticipantReturned",value:function(e){return this.session.onParticipantReturned(e)}},{key:"onAutoDisconnection",value:function(e){return this.session.onAutoDisconnection(e)}},{key:"onParticipantIdle",value:function(e){return this.session.onParticipantIdle(e)}},{key:"onTyping",value:function(e){return this.session.onTyping(e)}},{key:"onReadReceipt",value:function(e){return this.session.onReadReceipt(e)}},{key:"onDeliveredReceipt",value:function(e){return this.session.onDeliveredReceipt(e)}},{key:"onEnded",value:function(e){return this.session.onEnded(e)}},{key:"onMessage",value:function(e){return this.session.onMessage(e)}},{key:"onConnectionEstablished",value:function(e){return this.session.onConnectionEstablished(e)}},{key:"onConnectionBroken",value:function(e){return this.session.onConnectionBroken(e)}},{key:"getContactId",value:function(){return this.session.controller.contactId}},{key:"getParticipantId",value:function(){return this.session.getChatDetails().participantId}},{key:"getTranscript",value:function(e){return this.session.getTranscript(e)}},{key:"sendTypingEvent",value:function(){return this.session.sendEvent({contentType:ht.EVENT_CONTENT_TYPE.TYPING})}},{key:"sendReadReceipt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.session.sendEvent({contentType:ht.EVENT_CONTENT_TYPE.READ_RECEIPT,content:JSON.stringify(lt({messageId:e},t))})}},{key:"sendDeliveredReceipt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.session.sendEvent({contentType:ht.EVENT_CONTENT_TYPE.DELIVERED_RECEIPT,content:JSON.stringify(lt({messageId:e},t))})}},{key:"sendMessage",value:function(e){return this.session.sendMessage({message:e.data,contentType:e.type})}},{key:"sendAttachment",value:function(e){return this.session.sendAttachment({attachment:e})}},{key:"downloadAttachment",value:function(e){return this.session.downloadAttachment({attachmentId:e})}}]),e}(),md=function(){function e(t,n,i,r){z(this,e),J(this,"transcript",[]),J(this,"typingParticipants",[]),J(this,"thisParticipant",null),J(this,"client",null),J(this,"contactId",null),J(this,"contactStatus",nt.DISCONNECTED),J(this,"nextToken",null),J(this,"isOutgoingMessageInFlight",!1),J(this,"_eventHandlers",{"transcript-changed":[],"typing-participants-changed":[],"contact-status-changed":[],"incoming-message":[],"outgoing-message":[],"chat-disconnected":[],"chat-closed":[]}),this.client=new _d(t,i,r),this.contactId=this.client.getContactId(),this.thisParticipant={participantId:this.client.getParticipantId(),displayName:n},window.connect&&(window.connect.LogManager&&(this.logger=window.connect.LogManager.getLogger({prefix:gd})),window.connect.csmService&&(this.csmService=window.connect.csmService)),window.connect&&window.connect.LogManager&&(this.logger=window.connect.LogManager.getLogger({prefix:gd}))}return H(e,[{key:"onChatDisconnected",value:function(e){this.on("chat-disconnected",(function(){e.apply(void 0,arguments)}))}},{key:"onChatClose",value:function(e){this.on("chat-closed",(function(){e.apply(void 0,arguments)}))}},{key:"onIncoming",value:function(e){this.on("incoming-message",(function(){e.apply(void 0,arguments)}))}},{key:"onOutgoing",value:function(e){this.on("outgoing-message",(function(){e.apply(void 0,arguments)}))}},{key:"incomingItemDecorator",value:function(e){return e}},{key:"outgoingItemDecorator",value:function(e){return e}},{key:"openChatSession",value:function(){var e=this;return this._addEventListeners(),this._updateContactStatus(nt.CONNECTING),this.client.connect().then((function(t){return e._updateContactStatus(nt.CONNECTED),t}),(function(t){return e._updateContactStatus(nt.DISCONNECTED),Promise.reject(t)}))}},{key:"endChat",value:function(){var e=_e(hd().mark((function e(){return hd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.disconnect();case 2:this._updateContactStatus(nt.DISCONNECTED),this._triggerEvent("chat-disconnected"),this._triggerEvent("chat-closed");case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"closeChat",value:function(){this._triggerEvent("chat-closed")}},{key:"sendTypingEvent",value:function(){return this.logger&&this.logger.info("Calling SendEvent API for Typing"),this.client.sendTypingEvent()}},{key:"sendReadReceipt",value:function(e,t){return this.logger&&this.logger.info("Calling SendEvent API for ReadReceipt",e,t),this.client.sendReadReceipt(e,t)}},{key:"sendDeliveredReceipt",value:function(e,t){return this.logger&&this.logger.info("Calling SendEvent API for DeliveredReceipt",e,t),this.client.sendDeliveredReceipt(e,t)}},{key:"addOutgoingMessage",value:function(e){var t=this,n=xt.createOutgoingTranscriptItem(ct,{data:e.text,type:e.type||ht.MESSAGE_CONTENT_TYPE.TEXT_PLAIN},this.thisParticipant);this.logger&&this.logger.info("Adding outgoing message. ContactId: ".concat(this.contactId)),this._shouldAddToTranscript(n)&&this._addItemsToTranscript([n]),this.isOutgoingMessageInFlight=!0,this.client.sendMessage(n.content).then((function(e){return t._shouldAddToTranscript(n)&&t._replaceItemInTranscript(n,xt.createTranscriptItemFromSuccessResponse(n,e)),t.isOutgoingMessageInFlight=!1,e})).catch((function(e){t.isOutgoingMessageInFlight=!1,t._failMessage(n)}))}},{key:"addOutgoingAttachment",value:function(e){var t=xt.createOutgoingTranscriptItem(ft,e,this.thisParticipant);return this._addItemsToTranscript([t]),this.logger&&this.logger.info("Sending File. ContactId: ".concat(this.contactId,".")),this.sendAttachment(t)}},{key:"sendAttachment",value:function(e){var t=this,n=this.thisParticipant,i=n.participantId,r=n.displayName;return this.client.sendAttachment(e.content).then((function(n){return t.transcript.splice(t.transcript.indexOf(e),1),n})).catch((function(n){e.transportDetails.error={type:n.type,message:n.message},n.type!==vt&&(n.type===kt?e.transportDetails.error.message="Attachment failed to send. The maximum number of attachments allowed, has been reached":(e.transportDetails.error.message="Attachment failed to send",e.transportDetails.error.retry=function(){var n=xt.createOutgoingTranscriptItem(ft,e.content,{displayName:r,participantId:i});n.id=e.id,t._replaceItemInTranscript(e,n),t.sendAttachment(n)})),t._failMessage(e)}))}},{key:"downloadAttachment",value:function(e){return this.client.downloadAttachment(e)}},{key:"loadPreviousTranscript",value:function(){var e={scanDirection:"BACKWARD",sortOrder:"ASCENDING",maxResults:15};return this._loadTranscript(e)}},{key:"on",value:function(e,t){this.logger&&this.logger.info("Event [".concat(e,"] is on!")),-1===this._eventHandlers[e].indexOf(t)&&this._eventHandlers[e].push(t)}},{key:"off",value:function(e,t){this.logger&&this.logger.info("Event [".concat(e,"] is off!"));var n=this._eventHandlers[e].indexOf(t);n>-1&&this._eventHandlers[e].splice(n,1)}},{key:"_triggerEvent",value:function(e,t){this.logger&&this.logger.info("Event [".concat(e,"] is triggered!")),this._eventHandlers[e].forEach((function(e){e(t)}))}},{key:"_updateTranscript",value:function(e){this.transcript=e,this._triggerEvent("transcript-changed",e)}},{key:"_updateTypingParticipants",value:function(e){this.typingParticipants=e,this._triggerEvent("typing-participants-changed",e)}},{key:"_updateContactStatus",value:function(e){this.contactStatus=e,this._triggerEvent("contact-status-changed",e)}},{key:"_addEventListeners",value:function(){var e=this;this.client.onMessage((function(t){e._handleIncomingData(t)})),this.client.onTyping((function(t){e._handleTypingEvent(t)})),this.client.onAutoDisconnection((function(t){e._handleIdleEvent(t)})),this.client.onParticipantReturned((function(t){e._handleIdleEvent(t)})),this.client.onParticipantIdle((function(t){e._handleIdleEvent(t)})),this.client.onReadReceipt((function(t){e._handleMessageReceipt("read",t)})),this.client.onDeliveredReceipt((function(t){e._handleMessageReceipt("delivered",t)})),this.client.onEnded((function(t){e._handleEndedEvent(t)})),this.client.onConnectionEstablished((function(){e._loadLatestTranscript()}))}},{key:"_handleIdleEvent",value:function(e){var t=e.data,n=xt.createItemFromIncoming(t);n&&this._shouldAddToTranscript(n)&&this._addItemsToTranscript([n])}},{key:"_loadLatestTranscript",value:function(){return this._loadTranscript({scanDirection:"BACKWARD",sortOrder:"ASCENDING",maxResults:15})}},{key:"_loadTranscript",value:function(e){var t=this;return this.nextToken&&(e.nextToken=this.nextToken),this.client.getTranscript(e).then((function(e){var n=e.data.Transcript;t.nextToken=e.data.NextToken;var i=n.map((function(e){return xt.createItemFromIncoming(e,t.thisParticipant)}));t._addItemsToTranscript(i)})).catch((function(e){}))}},{key:"_handleIncomingData",value:function(e){var t=e.data,n=xt.createItemFromIncoming(t,this.thisParticipant);if(n){this._isRoundtripMessage(t)||this._updateTypingParticipantsUsingIncoming(n);var i=n.transportDetails,r=n.type,a=n.participantRole;i.direction===bt.Incoming?(this._triggerEvent("incoming-message",t),xt.isTypeMessageOrAttachment(r)&&xt.isParticipantAgentOrCustomer(a)&&this.sendDeliveredReceipt(n.id,r===ft?{disableThrottle:!0}:{})):this._triggerEvent("outgoing-message",t),!0===this.isOutgoingMessageInFlight&&n.participantRole===dt.CUSTOMER||this._shouldAddToTranscript(n)&&this._addItemsToTranscript([n])}}},{key:"_handleMessageReceipt",value:function(e,t){var n=t.data,i=n.MessageMetadata.MessageId,r=this._findItemInTranscriptUsingMessageId(i);if(-1!==r){var a=r.transportDetails.sentTime;this._handleMessageReceiptLatencyMetric(e,t,a);var o=xt.createIncomingTranscriptReceiptItem(this.thisParticipant,r,n,e);this._replaceItemInTranscript(r,o,e)}else this.logger&&this.logger.debug("Message with messageId:".concat(i," not found in transcript"))}},{key:"_handleMessageReceiptLatencyMetric",value:function(e,t,n){var i=t.chatDetails.participantId,r=t.data.MessageMetadata.Receipts;if(r.length>0){var a=this._findReceipt(r,i);if(a){var o=a.DeliveredTimestamp,s=a.ReadTimestamp,l="read"===e?jt(s)-1e3*n:jt(o)-1e3*n;this.logger&&this.logger.info(e,l)}}}},{key:"_findReceipt",value:function(e,t){return e.find((function(e){return e.RecipientParticipantId!==t}))}},{key:"_failMessage",value:function(e){var t=this.transcript.length>0?this.transcript[this.transcript.length-1].transportDetails.sentTime+.001:0;this._replaceItemInTranscript(e,xt.createFailedItem(e,t))}},{key:"_isRoundTripSystemEvent",value:function(e){return-1!==pd.indexOf(e.contentType)&&this.thisParticipant.participantId===e.participantId}},{key:"_addItemsToTranscript",value:function(e){var t=this,n=this;if(0!==e.length){var i=(e=e.filter((function(e){return!t._isRoundTripSystemEvent(e)}))).reduce((function(e,t){return lt({},e,J({},t.id,t))}),{}),r=this.transcript.filter((function(e){return void 0===i[e.id]}));n._removePreviousInteractiveMessage(r,e),r.push.apply(r,tt(e)),r.sort((function(e,t){var n=e.transportDetails.status===mt.Sending,i=t.transportDetails.status===mt.Sending;return n&&!i||!n&&i?n?1:-1:e.transportDetails.sentTime-t.transportDetails.sentTime})),r.forEach((function(e){(e=e.transportDetails.direction===bt.Incoming?n.incomingItemDecorator(e):n.outgoingItemDecorator(e)).lastReadReceipt=!1,e.lastDeliveredReceipt=!1}));var a=this._findLastMessageReceiptInTranscript("read",r),o=this._findLastMessageReceiptInTranscript("delivered",r),s=this._findLastMessageInTranscript(bt.Incoming,r),l=this._findLastMessageInTranscript(bt.Outgoing,r);if(-1!==s&&l>s){var u=r[s],c=u.type,f=u.id;this.sendReadReceipt(f,c===ft?{disableThrottle:!0}:{})}-1!==a&&(r[a].lastReadReceipt=!0),-1!==o&&a-1&&this.transcript.splice(n,1),this._addItemsToTranscript([t])}},{key:"_findItemInTranscriptUsingMessageId",value:function(e){var t=this.transcript.findIndex((function(t){return t.id===e}));return-1!==t?this.transcript[t]:-1}},{key:"_findLastMessageReceiptInTranscript",value:function(e,t){for(var n=-1,i=t.length-1;i>=0;i--){var r=t[i].transportDetails;if(r&&r.direction===bt.Outgoing&&r.messageReceiptType===e){n=i;break}}return n}},{key:"_findLastMessageInTranscript",value:function(e,t){for(var n=-1,i=t.length-1;i>=0;i--){var r=t[i].transportDetails;if(r&&r.direction===e){n=i;break}}return n}},{key:"_isRoundtripMessage",value:function(e){return this.thisParticipant.participantId===e.ParticipantId}},{key:"_handleEndedEvent",value:function(){this._updateContactStatus(nt.ENDED),this._triggerEvent("chat-disconnected"),dd.trigger("agentEndChat",{})}},{key:"_handleTypingEvent",value:function(e){var t=this,n=e.data;if(!this._isRoundtripMessage(n)){var i=xt.createTypingParticipant(n,this.thisParticipant.participantId);i.callback=setTimeout((function(){t._removeTypingParticipant(i.participantId)}),12e3);for(var r=[],a=0;a-1};function Ed(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function wd(e){return"string"!==typeof e&&(e=String(e)),e}function xd(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return bd.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Cd(e){this.map={},e instanceof Cd?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Dd(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Td(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Sd(e){var t=new FileReader,n=Td(t);return t.readAsArrayBuffer(e),n}function Ad(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Od(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:bd.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:bd.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:bd.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():bd.arrayBuffer&&bd.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Ad(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):bd.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||kd(e))?this._bodyArrayBuffer=Ad(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):bd.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},bd.blob&&(this.blob=function(){var e=Dd(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Dd(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Sd)}),this.text=function(){var e=Dd(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=Td(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Pd(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function Rd(e){var t=new Cd;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}})),t}function jd(e,t){if(!(this instanceof jd))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new Cd(t.headers),this.url=t.url||"",this._initBody(e)}Md.prototype.clone=function(){return new Md(this,{body:this._bodyInit})},Od.call(Md.prototype),Od.call(jd.prototype),jd.prototype.clone=function(){return new jd(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Cd(this.headers),url:this.url})},jd.error=function(){var e=new jd(null,{status:0,statusText:""});return e.type="error",e};var Nd=[301,302,303,307,308];jd.redirect=function(e,t){if(-1===Nd.indexOf(t))throw new RangeError("Invalid status code");return new jd(null,{status:t,headers:{location:e}})};var Bd=yd.DOMException;try{new Bd}catch(sh){(Bd=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Bd.prototype.constructor=Bd}function Ld(e,t){return new Promise((function(n,i){var r=new Md(e,t);if(r.signal&&r.signal.aborted)return i(new Bd("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:Rd(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var t="response"in a?a.response:a.responseText;setTimeout((function(){n(new jd(t,e))}),0)},a.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){i(new Bd("Aborted","AbortError"))}),0)},a.open(r.method,function(e){try{return""===e&&yd.location.href?yd.location.href:e}catch(t){return e}}(r.url),!0),"include"===r.credentials?a.withCredentials=!0:"omit"===r.credentials&&(a.withCredentials=!1),"responseType"in a&&(bd.blob?a.responseType="blob":bd.arrayBuffer&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!==typeof t.headers||t.headers instanceof Cd?r.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,wd(t.headers[e]))})),r.signal&&(r.signal.addEventListener("abort",o),a.onreadystatechange=function(){4===a.readyState&&r.signal.removeEventListener("abort",o)}),a.send("undefined"===typeof r._bodyInit?null:r._bodyInit)}))}function qd(e){return new Promise((function(t){return e.json().then((function(n){return t({status:e.status,ok:e.ok,json:n})}))}))}Ld.polyfill=!0,yd.fetch||(yd.fetch=Ld,yd.Headers=Cd,yd.Request=Md,yd.Response=jd);function zd(e){var t={InstanceId:e.instanceId,ContactFlowId:e.contactFlowId,ParticipantDetails:{DisplayName:e.name},Username:e.username};e.persistentChat&&e.persistentChat.sourceContactId&&e.persistentChat.rehydrationType&&(t.PersistentChat={SourceContactId:e.persistentChat.sourceContactId,RehydrationType:e.persistentChat.rehydrationType});var n=function(e,t){try{return JSON.parse(e)}catch(n){return t}}(e.contactAttributes,null);n&&(t.Attributes=n),e.initialMessage&&(t.InitialMessage={ContentType:"text/plain",Content:e.initialMessage}),e.supportedMessagingContentTypes&&(t.SupportedMessagingContentTypes=e.supportedMessagingContentTypes.split(",")),e.chatDurationInMinutes&&(t.ChatDurationInMinutes=Number(e.chatDurationInMinutes));var i,r,a=new Headers;return e.headers&&(a=e.headers),(i=e.apiGatewayEndpoint,r={headers:a,method:"post",body:JSON.stringify(t)},new Promise((function(e,t){window.fetch(i,r).then(qd).then((function(n){return n.ok?e(n):t(n)})).catch((function(e){return t({networkError:e.message})}))}))).then((function(e){return e.json.data}))}var Ud=function(){function e(){z(this,e),J(this,"clientConfig",{contactFlowId:"",instanceId:"",region:"",stage:"prod",contactAttributes:{},featurePermissions:{}})}return H(e,[{key:"initiateChat",value:function(e,t,n){var i=Object.assign({},this.clientConfig,e);dd.trigger("initChat",i,t,n)}}]),e}();window.connect=window.connect||{},window.connect.ChatInterface=window.connect.ChatInterface||new Ud,window.addEventListener("message",(function(e){e.initChat&&window.connect.ChatInterface.initiateChat(e)}));var Hd,Kd,Wd,Gd,Vd=function(){function e(){z(this,e),J(this,"_eventHandlers",{"chat-disconnected":[],"chat-loading":[],"chat-start-new":[],"push-notification-eligible-message-received":[],"agent-end-chat":[],"voice-escalation":[]}),dd.on("endChat",this.endChat.bind(this)),dd.on("loadChat",this.loadChat.bind(this)),dd.on("startNewChat",this.startNewChat.bind(this)),dd.on("pushNotificationEligibleMessageReceived",this.approvePushNotificationEligibleMessageReceived.bind(this)),dd.on("agentEndChat",this.agentEndChat.bind(this)),dd.on("escalateToVoice",this.escalateToVoice.bind(this))}return H(e,[{key:"onVoiceEscalation",value:function(e){this.on("voice-escalation",(function(){e.apply(void 0,arguments)}))}},{key:"onChatEnded",value:function(e){this.on("chat-disconnected",(function(){e.apply(void 0,arguments)}))}},{key:"onStartNewChat",value:function(e){this.on("chat-start-new",(function(){e.apply(void 0,arguments)}))}},{key:"onChatLoading",value:function(e){this.on("chat-loading",(function(){e.apply(void 0,arguments)}))}},{key:"onPushNotificationEligibleMessageReceived",value:function(e){this.on("push-notification-eligible-message-received",(function(){e.apply(void 0,arguments)}))}},{key:"onAgentEndChat",value:function(e){this.on("agent-end-chat",(function(){e.apply(void 0,arguments)}))}},{key:"on",value:function(e,t){-1===this._eventHandlers[e].indexOf(t)&&this._eventHandlers[e].push(t)}},{key:"_triggerEvent",value:function(e,t){this._eventHandlers[e].forEach((function(e){e(t)}))}},{key:"escalateToVoice",value:function(e){this._triggerEvent("voice-escalation",e)}},{key:"endChat",value:function(){this._triggerEvent("chat-disconnected")}},{key:"loadChat",value:function(){this._triggerEvent("chat-loading")}},{key:"startNewChat",value:function(){this._triggerEvent("chat-start-new")}},{key:"approvePushNotificationEligibleMessageReceived",value:function(){this._triggerEvent("push-notification-eligible-message-received")}},{key:"agentEndChat",value:function(){this._triggerEvent("agent-end-chat")}}]),e}();function Yd(){Yd=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(sh){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),s=new x(r||[]);return i(o,"_invoke",{value:v(e,n,s)}),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(sh){return{type:"throw",arg:sh}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var g={};l(g,a,(function(){return this}));var _=Object.getPrototypeOf,m=_&&_(_(C([])));m&&m!==t&&n.call(m,a)&&(g=m);var F=p.prototype=d.prototype=Object.create(g);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,a,o,s){var l=c(e[i],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(f).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function v(e,t,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return{value:void 0,done:!0}}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e||""===e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;w(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}window.connect=window.connect||{},window.connect.ChatEvents=window.connect.ChatEvents||new Vd;var Xd,$d=Q.b.div(Hd||(Hd=q(["\n display: flex;\n justify-content: center;\n margin-top: 10px;\n > button {\n min-width: 85px;\n }\n"]))),Jd=Q.b.div(Kd||(Kd=q(["\n padding: 10;\n background-color: red;\n"]))),Qd=Object(Q.b)(We)(Wd||(Wd=q(["\n padding: ",";\n height: 100%;\n"])),(function(e){return e.theme.globals.basePadding})),Zd=Q.b.div(Gd||(Gd=q(["\n padding: ",";\n height: 100%;\n"])),(function(e){return e.theme.globals.basePadding})),eh=function(e){function t(e){var n;return z(this,t),J(G(n=V(this,Y(t).call(this,e))),"resetState",(function(){n.setState({status:"NotInitiated",chatSession:null}),n.logger&&n.logger.info("Chat session is reset")})),n.state={chatSession:null,composerConfig:{},status:"NotInitiated"},n.submitChatInitiationHandler=n.initiateChatSession.bind(G(n)),dd.on("initChat",n.initiateChatSession.bind(G(n))),window.connect&&window.connect.LogManager&&(n.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatContainer"})),n}return $(t,e),H(t,[{key:"componentWillUnmount",value:function(){dd.off(this.submitChatInitiationHandler)}},{key:"initiateChatSession",value:function(e,t,n){var i={contactFlowId:e.contactFlowId?e.contactFlowId:null,instanceId:e.instanceId?e.instanceId:null,region:e.region?e.region:null,stage:e.stage?e.stage:null,featurePermissions:e.featurePermissions?e.featurePermissions:null,apiGatewayEndpoint:e.apiGatewayEndpoint?e.apiGatewayEndpoint:null};this.logger&&this.logger.info("Chat session meta data:",i),this.submitChatInitiation(e,t,n)}},{key:"submitChatInitiation",value:function(){var e=_e(Yd().mark((function e(t,n,i){var r,a,o,s;return Yd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({status:"Initiating"}),e.prev=1,e.next=4,zd(t);case 4:return r=e.sent,e.next=7,this.openChatSession(r,t.name,t.region,t.stage);case 7:a=e.sent,o=t.featurePermissions&&t.featurePermissions[Mt]||r.featurePermissions&&r.featurePermissions[Mt],s="string"===typeof t.supportedMessagingContentTypes&&t.supportedMessagingContentTypes.split(",").includes(ht.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN),this.setState({status:"Initiated",chatSession:a,composerConfig:{attachmentsEnabled:o,richMessagingEnabled:s}}),n&&n(a),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(1),this.setState({status:"InitiateFailed"}),i&&i(e.t0);case 18:case"end":return e.stop()}}),e,this,[[1,14]])})));return function(t,n,i){return e.apply(this,arguments)}}()},{key:"openChatSession",value:function(e,t,n,i){var r=new Fd(e,t,n,i);return r.onChatClose((function(){dd.trigger("endChat",{})})),r.openChatSession().then((function(){return r}))}},{key:"render",value:function(){return"NotInitiated"===this.state.status||"Initiating"===this.state.status?a.a.createElement(Qd,{center:!0},a.a.createElement(Ze,{color:he.color.primary,size:30})):"InitiateFailed"===this.state.status?a.a.createElement(Zd,null,a.a.createElement(Jd,null,"Initialization failed"),a.a.createElement($d,null,a.a.createElement(Me,{col:"2",type:"tertiary",onClick:this.resetState},a.a.createElement("span",null,"Go Back")))):a.a.createElement(od,Object.assign({chatSession:this.state.chatSession,composerConfig:this.state.composerConfig,onEnded:this.resetState},this.props))}}]),t}(r.Component),th=eh,nh=Q.b.div(Xd||(Xd=q(["\n\n width: 300px;\n font-family: ",";\n\n margin: ",";\n border-collapse: collapse;\n box-shadow: 0px 2px 3px ",";\n\n box-sizing: border-box;\n\n *, *:before, *:after {\n box-sizing: inherit;\n }\n"])),(function(e){return e.theme.fonts.regular}),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.palette.alto})),ih=function(e){return a.a.createElement(pe,{theme:Object.assign({},he,e.themeConfig)},e.children)};function rh(e){var t=e.baseCssClass,n=i(e,["baseCssClass"]);return a.a.createElement(ih,{themeConfig:n.themeConfig||{}},a.a.createElement(nh,{className:t},a.a.createElement(th,n)))}rh.defaultProps={baseCssClass:"connect-customer-interface"};var ah=rh,oh={loggerConfig:{level:connect.LogLevel.DEBUG,useDefaultLogger:!0}};!function(e){e.LogManager&&e.LogManager.updateLoggerConfig(oh),e.ChatInterface=e.ChatInterface||{},e.ChatInterface.init=function(t){var n=t.containerId,r=i(t,["containerId"]);r.widgetType&&(oh.csmConfig={widgetType:r.widgetType}),oh.features={messageReceipts:{shouldSendMessageReceipts:!0,throttleTime:5e3}},e.ChatSession.setGlobalConfig(oh),s.a.render(a.a.createElement(L,null,a.a.createElement(ah,r)),document.getElementById(n)||document.getElementById("root"))},e.ChatInterface.getCurrentTheme=function(){return he},window.connect=e}(window.connect||{})}]); \ No newline at end of file diff --git a/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Carousel.js b/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Carousel.js index 3dbb990..bbf9ddd 100644 --- a/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Carousel.js +++ b/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Carousel.js @@ -7,7 +7,7 @@ import PT from "prop-types"; import { RichMessageRenderer } from "../../../RichMessageComponents"; import { InteractiveMessage, MessageBody } from "../InteractiveMessage"; import { Button } from "connect-core"; -import { truncateStrFromCharLimit, truncateElementFromLimit } from "../../../../../utils/helper"; +import { truncateStrFromCharLimit } from "../../../../../utils/helper"; import isJSON from "is-json"; import { InteractiveMessageType } from "../../../datamodel/Model"; @@ -142,7 +142,6 @@ export default function Carousel({ content, addMessage }) { // Frontend field validations const title = truncateStrFromCharLimit(inputTitle, InteractiveMessageType.CAROUSEL, "titleCharLimit"); - const elements = truncateElementFromLimit(inputElems, InteractiveMessageType.CAROUSEL, "elementsRenderedMax"); return ( <> @@ -160,7 +159,7 @@ export default function Carousel({ content, addMessage }) { - + ", () => { }); }); - it("Should only render up to 5 nested pickers", () => { - const carouselOverFiveLimit = { - ...mockCarouselContent, - elements: [ - ...mockCarouselContent.elements, - mockNestedPanelPickerFlights, - mockNestedPanelPickerHotels, - mockNestedListPickerDining, - mockNestedPanelPickerFlights, - ], - }; - renderElement({ ...mockProps, content: carouselOverFiveLimit }); - - expect(screen.getAllByText("Select an option:")).toHaveLength(5); - }); - it("Should render reply option buttons and be accessible", () => { renderElement(mockProps); diff --git a/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/ListPicker.js b/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/ListPicker.js index 8b7d8f1..e66f826 100644 --- a/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/ListPicker.js +++ b/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/ListPicker.js @@ -15,7 +15,7 @@ import { PickerOptionTitle, PickerElementLinkOption } from "../InteractiveMessage"; -import { createInteractiveMessagePayload, truncateElementFromLimit, truncateStrFromCharLimit } from "../../../../../utils/helper"; +import { createInteractiveMessagePayload, truncateStrFromCharLimit } from "../../../../../utils/helper"; import { InteractiveMessageSelectionType, InteractiveMessageType } from "../../../datamodel/Model"; import { RichMessageRenderer } from "../../../RichMessageComponents"; @@ -147,7 +147,6 @@ export default function ListPicker({ // Frontend field validations const title = truncateStrFromCharLimit(inputTitle, InteractiveMessageType.LIST_PICKER, "titleCharLimit"); const subtitle = truncateStrFromCharLimit(inputSubtitle, InteractiveMessageType.LIST_PICKER, "subtitleCharLimit"); - const elements = truncateElementFromLimit(inputElements, InteractiveMessageType.LIST_PICKER, "elementsRenderedMax"); const [imageLoaded, setImageLoaded] = useState(false); const [elementImagesLoadedCount, setElementImagesLoadedCount] = useState(0); @@ -161,7 +160,7 @@ export default function ListPicker({ } function onItemClick(index) { - const selectedElement = elements[index]; + const selectedElement = inputElements[index]; const payload = createInteractiveMessagePayload( selectedElement, preIndex, @@ -177,10 +176,10 @@ export default function ListPicker({ } const showElementImages = () => { - const actionBtnCount = elements.filter((ele) => { + const actionBtnCount = inputElements.filter((ele) => { return ele.actionDetail; }).length; - return elementImagesLoadedCount === elements.length - actionBtnCount; + return elementImagesLoadedCount === inputElements.length - actionBtnCount; }; return ( @@ -197,7 +196,7 @@ export default function ListPicker({
- {elements.map((listPickerElement, index) => ( + {inputElements.map((listPickerElement, index) => ( ", () => { createMsgPayloadSpy.mockRestore(); }); - it("Should only render max number of elements", () => { - const { elementsRenderedMax } = LIST_PICKER_CONSTRAINTS; - - const listPickerOverElementLimit = { - ...mockListPickerContent, - elements: Array.apply(null, Array(elementsRenderedMax + 3)).map((e, index) => ({ title: `ListPickerElement${index}` })), - }; - renderElement({ ...mockProps, content: listPickerOverElementLimit }); - - const elementOptions = screen.getAllByRole("button"); - expect(elementOptions).toHaveLength(elementsRenderedMax); - expect(() => screen.getByText(`ListPickerElement${elementsRenderedMax}`)).toThrow( - "Unable to find an element" - ); - expect(() => screen.getByText(`ListPickerElement${elementsRenderedMax - 1}`)).not.toThrow(); - }); - it.each([ ["title", LIST_PICKER_CONSTRAINTS.titleCharLimit], ["subtitle", LIST_PICKER_CONSTRAINTS.subtitleCharLimit] diff --git a/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Panel.js b/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Panel.js index b0b8751..91d792d 100644 --- a/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Panel.js +++ b/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Panel.js @@ -13,7 +13,7 @@ import { import styled from "styled-components"; import PT from "prop-types"; import { InteractiveMessageSelectionType, InteractiveMessageType } from "../../../datamodel/Model"; -import { createInteractiveMessagePayload, truncateElementFromLimit, truncateStrFromCharLimit } from "../../../../../utils/helper"; +import { createInteractiveMessagePayload, truncateStrFromCharLimit } from "../../../../../utils/helper"; //#region Styled Components const ImageContainer = styled.div` @@ -96,7 +96,6 @@ export default function Panel({ // Frontend field validations const title = truncateStrFromCharLimit(inputTitle, InteractiveMessageType.PANEL, "titleCharLimit"); const subtitle = truncateStrFromCharLimit(inputSubtitle, InteractiveMessageType.PANEL, "subtitleCharLimit"); - const elements = truncateElementFromLimit(inputElements, InteractiveMessageType.PANEL, "elementsRenderedMax"); const [imageLoaded, setImageLoaded] = useState(false); @@ -105,7 +104,7 @@ export default function Panel({ } function onItemClick(index) { - const selectedElement = elements[index]; + const selectedElement = inputElements[index]; const payload = createInteractiveMessagePayload( selectedElement, preIndex, @@ -134,7 +133,7 @@ export default function Panel({
- {elements.map((element, index) => ( + {inputElements.map((element, index) => ( { diff --git a/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Panel.test.js b/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Panel.test.js index 7e94fef..354fcbc 100644 --- a/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Panel.test.js +++ b/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/Panel.test.js @@ -72,23 +72,6 @@ describe("", () => { createMsgPayloadSpy.mockRestore(); }); - it("Should only render max number of elements", () => { - const { elementsRenderedMax } = PANEL_CONSTRAINTS; - - const panelOverElementLimit = { - ...mockPanelContent, - elements: Array.apply(null, Array(elementsRenderedMax + 3)).map((e, index) => ({ title: `PanelElement${index}` })), - }; - renderElement({ ...mockProps, content: panelOverElementLimit }); - - const elementOptions = screen.getAllByRole("button"); - expect(elementOptions).toHaveLength(elementsRenderedMax); - expect(() => screen.getByText(`PanelElement${elementsRenderedMax}`)).toThrow( - "Unable to find an element" - ); - expect(() => screen.getByText(`PanelElement${elementsRenderedMax - 1}`)).not.toThrow(); - }); - it.each([ ["title", PANEL_CONSTRAINTS.titleCharLimit], ["subtitle", PANEL_CONSTRAINTS.subtitleCharLimit] diff --git a/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/QuickReply.js b/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/QuickReply.js index faffa60..a192db0 100644 --- a/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/QuickReply.js +++ b/src/components/Chat/ChatTranscriptor/ChatMessages/InteractiveMessages/QuickReply.js @@ -76,7 +76,7 @@ export default function QuickReply({ content, addMessage }) { - {elements.slice(0, 5).map((element, index) => ( + {elements.map((element, index) => ( ", () => { }); }); - it("Should only render up to 5 elements", () => { - const { elementsRenderedMax } = QUICK_REPLY_CONSTRAINTS; - - const quickReplyOverFiveLimit = { - ...mockQuickReplyContent, - elements: [ - ...mockQuickReplyContent.elements, - { title: "Ignored Option #6!" }, - ], - }; - renderElement({ ...mockProps, content: quickReplyOverFiveLimit }); - - const quickReplyOptions = screen.getAllByRole("button"); - expect(quickReplyOptions).toHaveLength(elementsRenderedMax); - expect(() => screen.getByText("Ignored Option #6!")).toThrow( - "Unable to find an element" - ); - }); - it("Should truncate a title over the character limit", () => { const { titleCharLimit } = QUICK_REPLY_CONSTRAINTS; diff --git a/src/utils/helper.js b/src/utils/helper.js index 38a8c93..144fa6d 100644 --- a/src/utils/helper.js +++ b/src/utils/helper.js @@ -76,13 +76,11 @@ export const INTERACTIVE_MESSAGE_CONSTRAINTS = { [InteractiveMessageType.PANEL]: { titleCharLimit: 400, subtitleCharLimit: 400, - elementsRenderedMax: 10, elementTitleCharLimit: 400 }, [InteractiveMessageType.LIST_PICKER]: { titleCharLimit: 400, subtitleCharLimit: 400, - elementsRenderedMax: 6, elementTitleCharLimit: 400, elementSubtitleCharLimit: 400, }, @@ -92,11 +90,9 @@ export const INTERACTIVE_MESSAGE_CONSTRAINTS = { }, [InteractiveMessageType.CAROUSEL]: { titleCharLimit: 400, - elementsRenderedMax: 5, }, [InteractiveMessageType.QUICK_REPLY]: { titleCharLimit: 400, - elementsRenderedMax: 5, replyOptionCharLimit: 200, } } @@ -132,23 +128,3 @@ export const truncateStrFromCharLimit = (str, InteractiveMessageType, fieldLimit return sanitizedStr.substring(0, MAX_LENGTH) + "..."; } } - -/** - * Truncates an array of elements based on the specified minimum and maximum limits. - * - * @param {Array} elements - The array of elements to truncate. - * @param {string} InteractiveMessageType - interactive message templateType. - * @param {string} elementsRenderedMaxKey - key to retrieve max constraint from INTERACTIVE_MESSAGE_CONSTRAINTS. - * @returns {Array} The truncated array of elements. - */ -export const truncateElementFromLimit = (elements, InteractiveMessageType, elementsRenderedMaxKey) => { - const templateContraints = INTERACTIVE_MESSAGE_CONSTRAINTS[InteractiveMessageType] || {}; - const MAX_LIMIT = templateContraints[elementsRenderedMaxKey] || elements.length ; - - if (elements.length > MAX_LIMIT) { - console.warn(`[${InteractiveMessageType} template] ${elementsRenderedMaxKey} of ${MAX_LIMIT} was exceeded`) - return elements.slice(0, MAX_LIMIT); - } - - return elements; -} diff --git a/src/utils/helper.test.js b/src/utils/helper.test.js index 4f5c914..2dd2031 100644 --- a/src/utils/helper.test.js +++ b/src/utils/helper.test.js @@ -69,7 +69,6 @@ describe("Interactive Message Constraints", () => { it("should include constraints matching public documentation", () => { expect(PANEL_CONSTRAINTS).toHaveProperty("titleCharLimit", 400); expect(PANEL_CONSTRAINTS).toHaveProperty("subtitleCharLimit", 400); - expect(PANEL_CONSTRAINTS).toHaveProperty("elementsRenderedMax", 10); expect(PANEL_CONSTRAINTS).toHaveProperty("elementTitleCharLimit", 400); }); }); @@ -80,7 +79,6 @@ describe("Interactive Message Constraints", () => { it("should include constraints matching public documentation", () => { expect(LIST_PICKER_CONSTRAINTS).toHaveProperty("titleCharLimit", 400); expect(LIST_PICKER_CONSTRAINTS).toHaveProperty("subtitleCharLimit", 400); - expect(LIST_PICKER_CONSTRAINTS).toHaveProperty("elementsRenderedMax", 6); expect(LIST_PICKER_CONSTRAINTS).toHaveProperty("elementTitleCharLimit", 400); expect(LIST_PICKER_CONSTRAINTS).toHaveProperty("elementSubtitleCharLimit", 400); }); @@ -100,7 +98,6 @@ describe("Interactive Message Constraints", () => { it("should include constraints matching public documentation", () => { expect(CAROUSEL_CONSTRAINTS).toHaveProperty("titleCharLimit", 400); - expect(CAROUSEL_CONSTRAINTS).toHaveProperty("elementsRenderedMax", 5); }); }); @@ -109,7 +106,6 @@ describe("Interactive Message Constraints", () => { it("should include constraints matching public documentation", () => { expect(QUICK_REPLY_CONSTRAINTS).toHaveProperty("titleCharLimit", 400); - expect(QUICK_REPLY_CONSTRAINTS).toHaveProperty("elementsRenderedMax", 5); expect(QUICK_REPLY_CONSTRAINTS).toHaveProperty("replyOptionCharLimit", 200); }); }); @@ -187,45 +183,3 @@ describe("truncateStrFromCharLimit util", () => { expect(truncateStrFromCharLimit(rawStr, InteractiveMessageType.PANEL, "titleCharLimit")).toEqual(expectedCleanStr); }); }); - -describe("truncateElementFromLimit util", () => { - it("should return the original array when the length is within the limits", () => { - const elements = [1, 2, 3]; - const result = truncateElementFromLimit( - elements, - "Carousel", - "elementsRenderedMax" - ); - expect(result).toEqual(elements); - }); - - it("should truncate the array when the length is below the minimum limit", () => { - const elements = [1]; - const result = truncateElementFromLimit( - elements, - "Carousel", - "elementsRenderedMax" - ); - expect(result).toEqual(elements.slice(0, 2)); - }); - - it("should truncate the array when the length exceeds the maximum limit", () => { - const elements = [1, 2, 3, 4, 5, 6]; - const result = truncateElementFromLimit( - elements, - "Carousel", - "elementsRenderedMax" - ); - expect(result).toEqual(elements.slice(0, 5)); - }); - - it("should handle missing limits gracefully", () => { - const elements = [1, 2]; - const result = truncateElementFromLimit( - elements, - "InvalidMessageType", - "elementsRenderedMax" - ); - expect(result).toEqual(elements); - }); -});