UNPKG

samagra-chatui

Version:
1 lines 195 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ChatUI={},e.React,e.ReactDOM)}(this,(function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}e.version="1.0.3";var o=r(t),a=r(n);function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function c(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function s(e,t,n){return s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o},s.apply(null,arguments)}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(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 d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=o(t);n;)n=o(t=n.ownerDocument);return t}(),t=[],n=null,r=null;i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?f(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},i._resetCrossOriginUpdater=function(){n=null,r=null},i.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},i.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},i.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,i=null;this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(c(n,"resize",r,!0),c(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(i=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),u(e,"resize",r,!0)),u(t,"scroll",r,!0),i&&i.disconnect()}));var l=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=l){var s=o(t);s&&this._monitorIntersections(s.ownerDocument)}}},i.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,a=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var a=o(n);if((n=a&&a.ownerDocument)==t)return!0}return!1}));if(!a){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=r){var c=o(t);c&&this._unmonitorIntersections(c.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},i.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,i=l(o),c=this._rootContainsTarget(o),u=r.entry,s=e&&c&&this._computeTargetAndRootIntersection(o,i,t),f=null;this._rootContainsTarget(o)?n&&!this.root||(f=t):f={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new a({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:f,intersectionRect:s});u?e&&c?this._hasCrossedThreshold(u,d)&&this._queuedEntries.push(d):u&&u.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},i.prototype._computeTargetAndRootIntersection=function(t,o,a){if("none"!=window.getComputedStyle(t).display){for(var i,c,u,s,d,p,v,h,g=o,y=m(t),b=!1;!b&&y;){var E=null,w=1==y.nodeType?window.getComputedStyle(y):{};if("none"==w.display)return null;if(y==this.root||9==y.nodeType)if(b=!0,y==this.root||y==e)n&&!this.root?!r||0==r.width&&0==r.height?(y=null,E=null,g=null):E=r:E=a;else{var N=m(y),S=N&&l(N),x=N&&this._computeTargetAndRootIntersection(N,S,a);S&&x?(y=N,E=f(S,x)):(y=null,g=null)}else{var T=y.ownerDocument;y!=T.body&&y!=T.documentElement&&"visible"!=w.overflow&&(E=l(y))}if(E&&(i=E,c=g,u=void 0,s=void 0,d=void 0,p=void 0,v=void 0,h=void 0,u=Math.max(i.top,c.top),s=Math.min(i.bottom,c.bottom),d=Math.max(i.left,c.left),p=Math.min(i.right,c.right),h=s-u,g=(v=p-d)>=0&&h>=0&&{top:u,bottom:s,left:d,right:p,width:v,height:h}||null),!g)break;y=y&&m(y)}return g}},i.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=l(this.root);else{var n=p(this.root)?this.root:e,r=n.documentElement,o=n.body;t={top:0,left:0,right:r.clientWidth||o.clientWidth,width:r.clientWidth||o.clientWidth,bottom:r.clientHeight||o.clientHeight,height:r.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var a=this.thresholds[o];if(a==n||a==r||a<n!=a<r)return!0}},i.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},i.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return d(n,t)&&(!this.root||n==t.ownerDocument)},i.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},i.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=a}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function a(e){this.time=e.time,this.target=e.target,this.rootBounds=s(e.rootBounds),this.boundingClientRect=s(e.boundingClientRect),this.intersectionRect=s(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function i(e,t){var n,r,o,a=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(a.root&&1!=a.root.nodeType&&9!=a.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(a.rootMargin),this.thresholds=this._initThresholds(a.threshold),this.root=a.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function c(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function u(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function l(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function s(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function f(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function d(e,t){for(var n=t;n;){if(n==e)return!0;n=m(n)}return!1}function m(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?o(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function p(e){return e&&9===e.nodeType}}();var m=Object.hasOwnProperty,p=Object.setPrototypeOf,v=Object.isFrozen,h=Object.getPrototypeOf,g=Object.getOwnPropertyDescriptor,y=Object.freeze,b=Object.seal,E=Object.create,w="undefined"!=typeof Reflect&&Reflect,N=w.apply,S=w.construct;N||(N=function(e,t,n){return e.apply(t,n)}),y||(y=function(e){return e}),b||(b=function(e){return e}),S||(S=function(e,t){return s(e,f(t))});var x,T=P(Array.prototype.forEach),C=P(Array.prototype.pop),O=P(Array.prototype.push),R=P(String.prototype.toLowerCase),k=P(String.prototype.toString),I=P(String.prototype.match),A=P(String.prototype.replace),M=P(String.prototype.indexOf),_=P(String.prototype.trim),L=P(RegExp.prototype.test),j=(x=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S(x,t)});function P(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return N(e,t,r)}}function D(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:R,p&&p(e,null);for(var o=t.length;o--;){var a=t[o];if("string"==typeof a){var i=n(a);i!==a&&(v(t)||(t[o]=i),a=i)}e[a]=!0}return e}function F(e){var t,n=E(null);for(t in e)!0===N(m,e,[t])&&(n[t]=e[t]);return n}function H(e,t){for(;null!==e;){var n=g(e,t);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}e=h(e)}return function(e){return null}}var B=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),G=y(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),V=y(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),W=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=y(["#text"]),X=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),q=y(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),K=y(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),J=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Q=b(/<%[\w\W]*|[\w\W]*%>/gm),Z=b(/\${[\w\W]*}/gm),ee=b(/^data-[\-\w.\u00B7-\uFFFF]/),te=b(/^aria-[\-\w]+$/),ne=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),re=b(/^(?:\w+script|data):/i),oe=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ae=b(/^html$/i),ie=function(){return"undefined"==typeof window?null:window};var ce=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie(),n=function(t){return e(t)};if(n.version="2.4.7",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,a=t.DocumentFragment,i=t.HTMLTemplateElement,c=t.Node,l=t.Element,s=t.NodeFilter,d=t.NamedNodeMap,m=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,p=t.HTMLFormElement,v=t.DOMParser,h=t.trustedTypes,g=l.prototype,b=H(g,"cloneNode"),E=H(g,"nextSibling"),w=H(g,"childNodes"),N=H(g,"parentNode");if("function"==typeof i){var S=o.createElement("template");S.content&&S.content.ownerDocument&&(o=S.content.ownerDocument)}var x=function(e,t){if("object"!==u(e)||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return null}}(h,r),P=x?x.createHTML(""):"",ce=o,ue=ce.implementation,le=ce.createNodeIterator,se=ce.createDocumentFragment,fe=ce.getElementsByTagName,de=r.importNode,me={};try{me=F(o).documentMode?o.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof N&&ue&&void 0!==ue.createHTMLDocument&&9!==me;var ve,he,ge=J,ye=Q,be=Z,Ee=ee,we=te,Ne=re,Se=oe,xe=ne,Te=null,Ce=D({},[].concat(f(B),f(U),f(z),f(V),f(Y))),Oe=null,Re=D({},[].concat(f(X),f(q),f(K),f($))),ke=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}})),Ie=null,Ae=null,Me=!0,_e=!0,Le=!1,je=!0,Pe=!1,De=!1,Fe=!1,He=!1,Be=!1,Ue=!1,ze=!1,Ge=!0,Ve=!1,We=!0,Ye=!1,Xe={},qe=null,Ke=D({},["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"]),$e=null,Je=D({},["audio","video","img","source","image","track"]),Qe=null,Ze=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=nt,ot=!1,at=null,it=D({},[et,tt,nt],k),ct=["application/xhtml+xml","text/html"],ut=null,lt=o.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},ft=function(e){ut&&ut===e||(e&&"object"===u(e)||(e={}),e=F(e),ve=ve=-1===ct.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===ve?k:R,Te="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS,he):Ce,Oe="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR,he):Re,at="ALLOWED_NAMESPACES"in e?D({},e.ALLOWED_NAMESPACES,k):it,Qe="ADD_URI_SAFE_ATTR"in e?D(F(Ze),e.ADD_URI_SAFE_ATTR,he):Ze,$e="ADD_DATA_URI_TAGS"in e?D(F(Je),e.ADD_DATA_URI_TAGS,he):Je,qe="FORBID_CONTENTS"in e?D({},e.FORBID_CONTENTS,he):Ke,Ie="FORBID_TAGS"in e?D({},e.FORBID_TAGS,he):{},Ae="FORBID_ATTR"in e?D({},e.FORBID_ATTR,he):{},Xe="USE_PROFILES"in e&&e.USE_PROFILES,Me=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,De=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||xe,rt=e.NAMESPACE||nt,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(_e=!1),Ue&&(Be=!0),Xe&&(Te=D({},f(Y)),Oe=[],!0===Xe.html&&(D(Te,B),D(Oe,X)),!0===Xe.svg&&(D(Te,U),D(Oe,q),D(Oe,$)),!0===Xe.svgFilters&&(D(Te,z),D(Oe,q),D(Oe,$)),!0===Xe.mathMl&&(D(Te,V),D(Oe,K),D(Oe,$))),e.ADD_TAGS&&(Te===Ce&&(Te=F(Te)),D(Te,e.ADD_TAGS,he)),e.ADD_ATTR&&(Oe===Re&&(Oe=F(Oe)),D(Oe,e.ADD_ATTR,he)),e.ADD_URI_SAFE_ATTR&&D(Qe,e.ADD_URI_SAFE_ATTR,he),e.FORBID_CONTENTS&&(qe===Ke&&(qe=F(qe)),D(qe,e.FORBID_CONTENTS,he)),We&&(Te["#text"]=!0),De&&D(Te,["html","head","body"]),Te.table&&(D(Te,["tbody"]),delete Ie.tbody),y&&y(e),ut=e)},dt=D({},["mi","mo","mn","ms","mtext"]),mt=D({},["foreignobject","desc","title","annotation-xml"]),pt=D({},["title","style","font","a","script"]),vt=D({},U);D(vt,z),D(vt,G);var ht=D({},V);D(ht,W);var gt=function(e){O(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=P}catch(t){e.remove()}}},yt=function(e,t){try{O(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){O(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Be||Ue)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){var t,n;if(He)e="<remove></remove>"+e;else{var r=I(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ve&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var a=x?x.createHTML(e):e;if(rt===nt)try{t=(new v).parseFromString(a,ve)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(rt,"template",null);try{t.documentElement.innerHTML=ot?P:a}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),rt===nt?fe.call(t,De?"html":"body")[0]:De?t.documentElement:i},Et=function(e){return le.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,null,!1)},wt=function(e){return"object"===u(c)?e instanceof c:e&&"object"===u(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Nt=function(e,t,r){pe[e]&&T(pe[e],(function(e){e.call(n,t,r,ut)}))},St=function(e){var t,r;if(Nt("beforeSanitizeElements",e,null),(r=e)instanceof p&&("string"!=typeof r.nodeName||"string"!=typeof r.textContent||"function"!=typeof r.removeChild||!(r.attributes instanceof m)||"function"!=typeof r.removeAttribute||"function"!=typeof r.setAttribute||"string"!=typeof r.namespaceURI||"function"!=typeof r.insertBefore||"function"!=typeof r.hasChildNodes))return gt(e),!0;if(L(/[\u0080-\uFFFF]/,e.nodeName))return gt(e),!0;var o=he(e.nodeName);if(Nt("uponSanitizeElement",e,{tagName:o,allowedTags:Te}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&L(/<[/\w]/g,e.innerHTML)&&L(/<[/\w]/g,e.textContent))return gt(e),!0;if("select"===o&&L(/<template/i,e.innerHTML))return gt(e),!0;if(!Te[o]||Ie[o]){if(!Ie[o]&&Tt(o)){if(ke.tagNameCheck instanceof RegExp&&L(ke.tagNameCheck,o))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(o))return!1}if(We&&!qe[o]){var a=N(e)||e.parentNode,i=w(e)||e.childNodes;if(i&&a)for(var c=i.length-1;c>=0;--c)a.insertBefore(b(i[c],!0),E(e))}return gt(e),!0}return e instanceof l&&!function(e){var t=N(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});var n=R(e.tagName),r=R(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(vt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&mt[r]:Boolean(ht[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!mt[r])&&!(t.namespaceURI===et&&!dt[r])&&!ht[n]&&(pt[n]||!vt[n]):!("application/xhtml+xml"!==ve||!at[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!L(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,t=A(t,ge," "),t=A(t,ye," "),t=A(t,be," "),e.textContent!==t&&(O(n.removed,{element:e.cloneNode()}),e.textContent=t)),Nt("afterSanitizeElements",e,null),!1):(gt(e),!0)},xt=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in o||n in lt))return!1;if(_e&&!Ae[t]&&L(Ee,t));else if(Me&&L(we,t));else if(!Oe[t]||Ae[t]){if(!(Tt(e)&&(ke.tagNameCheck instanceof RegExp&&L(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&L(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&L(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(Qe[t]);else if(L(xe,A(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==M(n,"data:")||!$e[e]){if(Le&&!L(Ne,A(n,Se,"")));else if(n)return!1}else;return!0},Tt=function(e){return e.indexOf("-")>0},Ct=function(e){var t,r,o,a;Nt("beforeSanitizeAttributes",e,null);var i=e.attributes;if(i){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};for(a=i.length;a--;){var l=t=i[a],s=l.name,f=l.namespaceURI;if(r="value"===s?t.value:_(t.value),o=he(s),c.attrName=o,c.attrValue=r,c.keepAttr=!0,c.forceKeepAttr=void 0,Nt("uponSanitizeAttribute",e,c),r=c.attrValue,!c.forceKeepAttr&&(yt(s,e),c.keepAttr))if(je||!L(/\/>/i,r)){Pe&&(r=A(r,ge," "),r=A(r,ye," "),r=A(r,be," "));var d=he(e.nodeName);if(xt(d,o,r)){if(!Ve||"id"!==o&&"name"!==o||(yt(s,e),r="user-content-"+r),x&&"object"===u(h)&&"function"==typeof h.getAttributeType)if(f);else switch(h.getAttributeType(d,o)){case"TrustedHTML":r=x.createHTML(r);break;case"TrustedScriptURL":r=x.createScriptURL(r)}try{f?e.setAttributeNS(f,s,r):e.setAttribute(s,r),C(n.removed)}catch(e){}}}else yt(s,e)}Nt("afterSanitizeAttributes",e,null)}},Ot=function e(t){var n,r=Et(t);for(Nt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Nt("uponSanitizeShadowNode",n,null),St(n)||(n.content instanceof a&&e(n.content),Ct(n));Nt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var o,i,l,s,f,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ot=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw j("toString is not a function");if("string"!=typeof(e=e.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===u(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(wt(e))return t.toStaticHTML(e.outerHTML)}return e}if(Fe||ft(d),n.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){var m=he(e.nodeName);if(!Te[m]||Ie[m])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(i=(o=bt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!Be&&!Pe&&!De&&-1===e.indexOf("<"))return x&&ze?x.createHTML(e):e;if(!(o=bt(e)))return Be?null:ze?P:""}o&&He&&gt(o.firstChild);for(var p=Et(Ye?e:o);l=p.nextNode();)3===l.nodeType&&l===s||St(l)||(l.content instanceof a&&Ot(l.content),Ct(l),s=l);if(s=null,Ye)return e;if(Be){if(Ue)for(f=se.call(o.ownerDocument);o.firstChild;)f.appendChild(o.firstChild);else f=o;return(Oe.shadowroot||Oe.shadowrootmod)&&(f=de.call(r,f,!0)),f}var v=De?o.outerHTML:o.innerHTML;return De&&Te["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&L(ae,o.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+v),Pe&&(v=A(v,ge," "),v=A(v,ye," "),v=A(v,be," ")),x&&ze?x.createHTML(v):v},n.setConfig=function(e){ft(e),Fe=!0},n.clearConfig=function(){ut=null,Fe=!1},n.isValidAttribute=function(e,t,n){ut||ft({});var r=he(e),o=he(t);return xt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],O(pe[e],t))},n.removeHook=function(e){if(pe[e])return C(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}(),ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var se={exports:{}},fe=function(e){return e&&e.Math==Math&&e},de=fe("object"==typeof globalThis&&globalThis)||fe("object"==typeof window&&window)||fe("object"==typeof self&&self)||fe("object"==typeof ue&&ue)||function(){return this}()||ue||Function("return this")(),me=function(e){try{return!!e()}catch(e){return!0}},pe=!me((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ve=pe,he=Function.prototype,ge=he.apply,ye=he.call,be="object"==typeof Reflect&&Reflect.apply||(ve?ye.bind(ge):function(){return ye.apply(ge,arguments)}),Ee=pe,we=Function.prototype,Ne=we.call,Se=Ee&&we.bind.bind(Ne,Ne),xe=Ee?Se:function(e){return function(){return Ne.apply(e,arguments)}},Te=xe,Ce=Te({}.toString),Oe=Te("".slice),Re=function(e){return Oe(Ce(e),8,-1)},ke=Re,Ie=xe,Ae=function(e){if("Function"===ke(e))return Ie(e)},Me="object"==typeof document&&document.all,_e={all:Me,IS_HTMLDDA:void 0===Me&&void 0!==Me},Le=_e.all,je=_e.IS_HTMLDDA?function(e){return"function"==typeof e||e===Le}:function(e){return"function"==typeof e},Pe={},De=!me((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Fe=pe,He=Function.prototype.call,Be=Fe?He.bind(He):function(){return He.apply(He,arguments)},Ue={},ze={}.propertyIsEnumerable,Ge=Object.getOwnPropertyDescriptor,Ve=Ge&&!ze.call({1:2},1);Ue.f=Ve?function(e){var t=Ge(this,e);return!!t&&t.enumerable}:ze;var We,Ye,Xe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qe=me,Ke=Re,$e=Object,Je=xe("".split),Qe=qe((function(){return!$e("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ke(e)?Je(e,""):$e(e)}:$e,Ze=function(e){return null==e},et=Ze,tt=TypeError,nt=function(e){if(et(e))throw tt("Can't call method on "+e);return e},rt=Qe,ot=nt,at=function(e){return rt(ot(e))},it=je,ct=_e.all,ut=_e.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:it(e)||e===ct}:function(e){return"object"==typeof e?null!==e:it(e)},lt={},st=lt,ft=de,dt=je,mt=function(e){return dt(e)?e:void 0},pt=function(e,t){return arguments.length<2?mt(st[e])||mt(ft[e]):st[e]&&st[e][t]||ft[e]&&ft[e][t]},vt=xe({}.isPrototypeOf),ht="undefined"!=typeof navigator&&String(navigator.userAgent)||"",gt=de,yt=ht,bt=gt.process,Et=gt.Deno,wt=bt&&bt.versions||Et&&Et.version,Nt=wt&&wt.v8;Nt&&(Ye=(We=Nt.split("."))[0]>0&&We[0]<4?1:+(We[0]+We[1])),!Ye&&yt&&(!(We=yt.match(/Edge\/(\d+)/))||We[1]>=74)&&(We=yt.match(/Chrome\/(\d+)/))&&(Ye=+We[1]);var St=Ye,xt=St,Tt=me,Ct=de.String,Ot=!!Object.getOwnPropertySymbols&&!Tt((function(){var e=Symbol();return!Ct(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xt&&xt<41})),Rt=Ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kt=pt,It=je,At=vt,Mt=Object,_t=Rt?function(e){return"symbol"==typeof e}:function(e){var t=kt("Symbol");return It(t)&&At(t.prototype,Mt(e))},Lt=String,jt=function(e){try{return Lt(e)}catch(e){return"Object"}},Pt=je,Dt=jt,Ft=TypeError,Ht=function(e){if(Pt(e))return e;throw Ft(Dt(e)+" is not a function")},Bt=Ht,Ut=Ze,zt=function(e,t){var n=e[t];return Ut(n)?void 0:Bt(n)},Gt=Be,Vt=je,Wt=ut,Yt=TypeError,Xt={exports:{}},qt=de,Kt=Object.defineProperty,$t=function(e,t){try{Kt(qt,e,{value:t,configurable:!0,writable:!0})}catch(n){qt[e]=t}return t},Jt="__core-js_shared__",Qt=de[Jt]||$t(Jt,{}),Zt=Qt;(Xt.exports=function(e,t){return Zt[e]||(Zt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"});var en=nt,tn=Object,nn=function(e){return tn(en(e))},rn=nn,on=xe({}.hasOwnProperty),an=Object.hasOwn||function(e,t){return on(rn(e),t)},cn=xe,un=0,ln=Math.random(),sn=cn(1..toString),fn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+sn(++un+ln,36)},dn=de,mn=Xt.exports,pn=an,vn=fn,hn=Ot,gn=Rt,yn=dn.Symbol,bn=mn("wks"),En=gn?yn.for||yn:yn&&yn.withoutSetter||vn,wn=function(e){return pn(bn,e)||(bn[e]=hn&&pn(yn,e)?yn[e]:En("Symbol."+e)),bn[e]},Nn=Be,Sn=ut,xn=_t,Tn=zt,Cn=function(e,t){var n,r;if("string"===t&&Vt(n=e.toString)&&!Wt(r=Gt(n,e)))return r;if(Vt(n=e.valueOf)&&!Wt(r=Gt(n,e)))return r;if("string"!==t&&Vt(n=e.toString)&&!Wt(r=Gt(n,e)))return r;throw Yt("Can't convert object to primitive value")},On=TypeError,Rn=wn("toPrimitive"),kn=function(e,t){if(!Sn(e)||xn(e))return e;var n,r=Tn(e,Rn);if(r){if(void 0===t&&(t="default"),n=Nn(r,e,t),!Sn(n)||xn(n))return n;throw On("Can't convert object to primitive value")}return void 0===t&&(t="number"),Cn(e,t)},In=_t,An=function(e){var t=kn(e,"string");return In(t)?t:t+""},Mn=ut,_n=de.document,Ln=Mn(_n)&&Mn(_n.createElement),jn=function(e){return Ln?_n.createElement(e):{}},Pn=jn,Dn=!De&&!me((function(){return 7!=Object.defineProperty(Pn("div"),"a",{get:function(){return 7}}).a})),Fn=De,Hn=Be,Bn=Ue,Un=Xe,zn=at,Gn=An,Vn=an,Wn=Dn,Yn=Object.getOwnPropertyDescriptor;Pe.f=Fn?Yn:function(e,t){if(e=zn(e),t=Gn(t),Wn)try{return Yn(e,t)}catch(e){}if(Vn(e,t))return Un(!Hn(Bn.f,e,t),e[t])};var Xn=me,qn=je,Kn=/#|\.prototype\./,$n=function(e,t){var n=Qn[Jn(e)];return n==er||n!=Zn&&(qn(t)?Xn(t):!!t)},Jn=$n.normalize=function(e){return String(e).replace(Kn,".").toLowerCase()},Qn=$n.data={},Zn=$n.NATIVE="N",er=$n.POLYFILL="P",tr=$n,nr=Ht,rr=pe,or=Ae(Ae.bind),ar=function(e,t){return nr(e),void 0===t?e:rr?or(e,t):function(){return e.apply(t,arguments)}},ir={},cr=De&&me((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ur=ut,lr=String,sr=TypeError,fr=function(e){if(ur(e))return e;throw sr(lr(e)+" is not an object")},dr=De,mr=Dn,pr=cr,vr=fr,hr=An,gr=TypeError,yr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,Er="enumerable",wr="configurable",Nr="writable";ir.f=dr?pr?function(e,t,n){if(vr(e),t=hr(t),vr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Nr in n&&!n[Nr]){var r=br(e,t);r&&r[Nr]&&(e[t]=n.value,n={configurable:wr in n?n[wr]:r[wr],enumerable:Er in n?n[Er]:r[Er],writable:!1})}return yr(e,t,n)}:yr:function(e,t,n){if(vr(e),t=hr(t),vr(n),mr)try{return yr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw gr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Sr=ir,xr=Xe,Tr=De?function(e,t,n){return Sr.f(e,t,xr(1,n))}:function(e,t,n){return e[t]=n,e},Cr=de,Or=be,Rr=Ae,kr=je,Ir=Pe.f,Ar=tr,Mr=lt,_r=ar,Lr=Tr,jr=an,Pr=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return Or(e,this,arguments)};return t.prototype=e.prototype,t},Dr=function(e,t){var n,r,o,a,i,c,u,l,s,f=e.target,d=e.global,m=e.stat,p=e.proto,v=d?Cr:m?Cr[f]:(Cr[f]||{}).prototype,h=d?Mr:Mr[f]||Lr(Mr,f,{})[f],g=h.prototype;for(a in t)r=!(n=Ar(d?a:f+(m?".":"#")+a,e.forced))&&v&&jr(v,a),c=h[a],r&&(u=e.dontCallGetSet?(s=Ir(v,a))&&s.value:v[a]),i=r&&u?u:t[a],r&&typeof c==typeof i||(l=e.bind&&r?_r(i,Cr):e.wrap&&r?Pr(i):p&&kr(i)?Rr(i):i,(e.sham||i&&i.sham||c&&c.sham)&&Lr(l,"sham",!0),Lr(h,a,l),p&&(jr(Mr,o=f+"Prototype")||Lr(Mr,o,{}),Lr(Mr[o],a,i),e.real&&g&&(n||!g[a])&&Lr(g,a,i)))},Fr=Xt.exports,Hr=fn,Br=Fr("keys"),Ur=function(e){return Br[e]||(Br[e]=Hr(e))},zr=!me((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Gr=an,Vr=je,Wr=nn,Yr=zr,Xr=Ur("IE_PROTO"),qr=Object,Kr=qr.prototype,$r=Yr?qr.getPrototypeOf:function(e){var t=Wr(e);if(Gr(t,Xr))return t[Xr];var n=t.constructor;return Vr(n)&&t instanceof n?n.prototype:t instanceof qr?Kr:null},Jr=xe,Qr=Ht,Zr=je,eo=String,to=TypeError,no=function(e,t,n){try{return Jr(Qr(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},ro=fr,oo=function(e){if("object"==typeof e||Zr(e))return e;throw to("Can't set "+eo(e)+" as a prototype")},ao=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=no(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return ro(n),oo(r),t?e(n,r):n.__proto__=r,n}}():void 0),io={},co=Math.ceil,uo=Math.floor,lo=Math.trunc||function(e){var t=+e;return(t>0?uo:co)(t)},so=function(e){var t=+e;return t!=t||0===t?0:lo(t)},fo=so,mo=Math.max,po=Math.min,vo=function(e,t){var n=fo(e);return n<0?mo(n+t,0):po(n,t)},ho=so,go=Math.min,yo=function(e){return e>0?go(ho(e),9007199254740991):0},bo=function(e){return yo(e.length)},Eo=at,wo=vo,No=bo,So=function(e){return function(t,n,r){var o,a=Eo(t),i=No(a),c=wo(r,i);if(e&&n!=n){for(;i>c;)if((o=a[c++])!=o)return!0}else for(;i>c;c++)if((e||c in a)&&a[c]===n)return e||c||0;return!e&&-1}},xo={includes:So(!0),indexOf:So(!1)},To={},Co=an,Oo=at,Ro=xo.indexOf,ko=To,Io=xe([].push),Ao=function(e,t){var n,r=Oo(e),o=0,a=[];for(n in r)!Co(ko,n)&&Co(r,n)&&Io(a,n);for(;t.length>o;)Co(r,n=t[o++])&&(~Ro(a,n)||Io(a,n));return a},Mo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_o=Ao,Lo=Mo.concat("length","prototype");io.f=Object.getOwnPropertyNames||function(e){return _o(e,Lo)};var jo={};jo.f=Object.getOwnPropertySymbols;var Po=pt,Do=io,Fo=jo,Ho=fr,Bo=xe([].concat),Uo=Po("Reflect","ownKeys")||function(e){var t=Do.f(Ho(e)),n=Fo.f;return n?Bo(t,n(e)):t},zo=an,Go=Uo,Vo=Pe,Wo=ir,Yo={},Xo=Ao,qo=Mo,Ko=Object.keys||function(e){return Xo(e,qo)},$o=De,Jo=cr,Qo=ir,Zo=fr,ea=at,ta=Ko;Yo.f=$o&&!Jo?Object.defineProperties:function(e,t){Zo(e);for(var n,r=ea(t),o=ta(t),a=o.length,i=0;a>i;)Qo.f(e,n=o[i++],r[n]);return e};var na,ra=pt("document","documentElement"),oa=fr,aa=Yo,ia=Mo,ca=To,ua=ra,la=jn,sa="prototype",fa="script",da=Ur("IE_PROTO"),ma=function(){},pa=function(e){return"<"+fa+">"+e+"</"+fa+">"},va=function(e){e.write(pa("")),e.close();var t=e.parentWindow.Object;return e=null,t},ha=function(){try{na=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;ha="undefined"!=typeof document?document.domain&&na?va(na):(t=la("iframe"),n="java"+fa+":",t.style.display="none",ua.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(pa("document.F=Object")),e.close(),e.F):va(na);for(var r=ia.length;r--;)delete ha[sa][ia[r]];return ha()};ca[da]=!0;var ga=Object.create||function(e,t){var n;return null!==e?(ma[sa]=oa(e),n=new ma,ma[sa]=null,n[da]=e):n=ha(),void 0===t?n:aa.f(n,t)},ya=ut,ba=Tr,Ea=Error,wa=xe("".replace),Na=String(Ea("zxcasd").stack),Sa=/\n\s*at [^:]*:[^\n]*/,xa=Sa.test(Na),Ta=Xe,Ca=!me((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ta(1,7)),7!==e.stack)})),Oa=Tr,Ra=function(e,t){if(xa&&"string"==typeof e&&!Ea.prepareStackTrace)for(;t--;)e=wa(e,Sa,"");return e},ka=Ca,Ia=Error.captureStackTrace,Aa={},Ma=Aa,_a=wn("iterator"),La=Array.prototype,ja=function(e){return void 0!==e&&(Ma.Array===e||La[_a]===e)},Pa={};Pa[wn("toStringTag")]="z";var Da="[object z]"===String(Pa),Fa=Da,Ha=je,Ba=Re,Ua=wn("toStringTag"),za=Object,Ga="Arguments"==Ba(function(){return arguments}()),Va=Fa?Ba:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=za(e),Ua))?n:Ga?Ba(t):"Object"==(r=Ba(t))&&Ha(t.callee)?"Arguments":r},Wa=Va,Ya=zt,Xa=Ze,qa=Aa,Ka=wn("iterator"),$a=function(e){if(!Xa(e))return Ya(e,Ka)||Ya(e,"@@iterator")||qa[Wa(e)]},Ja=Be,Qa=Ht,Za=fr,ei=jt,ti=$a,ni=TypeError,ri=function(e,t){var n=arguments.length<2?ti(e):t;if(Qa(n))return Za(Ja(n,e));throw ni(ei(e)+" is not iterable")},oi=Be,ai=fr,ii=zt,ci=function(e,t,n){var r,o;ai(e);try{if(!(r=ii(e,"return"))){if("throw"===t)throw n;return n}r=oi(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return ai(r),n},ui=ar,li=Be,si=fr,fi=jt,di=ja,mi=bo,pi=vt,vi=ri,hi=$a,gi=ci,yi=TypeError,bi=function(e,t){this.stopped=e,this.result=t},Ei=bi.prototype,wi=function(e,t,n){var r,o,a,i,c,u,l,s=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),m=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=ui(t,s),h=function(e){return r&&gi(r,"normal",e),new bi(!0,e)},g=function(e){return f?(si(e),p?v(e[0],e[1],h):v(e[0],e[1])):p?v(e,h):v(e)};if(d)r=e.iterator;else if(m)r=e;else{if(!(o=hi(e)))throw yi(fi(e)+" is not iterable");if(di(o)){for(a=0,i=mi(e);i>a;a++)if((c=g(e[a]))&&pi(Ei,c))return c;return new bi(!1)}r=vi(e,o)}for(u=d?e.next:r.next;!(l=li(u,r)).done;){try{c=g(l.value)}catch(e){gi(r,"throw",e)}if("object"==typeof c&&c&&pi(Ei,c))return c}return new bi(!1)},Ni=Va,Si=String,xi=function(e){if("Symbol"===Ni(e))throw TypeError("Cannot convert a Symbol value to a string");return Si(e)},Ti=xi,Ci=Dr,Oi=vt,Ri=$r,ki=ao,Ii=function(e,t,n){for(var r=Go(t),o=Wo.f,a=Vo.f,i=0;i<r.length;i++){var c=r[i];zo(e,c)||n&&zo(n,c)||o(e,c,a(t,c))}},Ai=ga,Mi=Tr,_i=Xe,Li=function(e,t){ya(t)&&"cause"in t&&ba(e,"cause",t.cause)},ji=function(e,t,n,r){ka&&(Ia?Ia(e,t):Oa(e,"stack",Ra(n,r)))},Pi=wi,Di=function(e,t){return void 0===e?arguments.length<2?"":t:Ti(e)},Fi=wn("toStringTag"),Hi=Error,Bi=[].push,Ui=function(e,t){var n,r=Oi(zi,this);ki?n=ki(Hi(),r?Ri(this):zi):(n=r?this:Ai(zi),Mi(n,Fi,"Error")),void 0!==t&&Mi(n,"message",Di(t)),ji(n,Ui,n.stack,1),arguments.length>2&&Li(n,arguments[2]);var o=[];return Pi(e,Bi,{that:o}),Mi(n,"errors",o),n};ki?ki(Ui,Hi):Ii(Ui,Hi,{name:!0});var zi=Ui.prototype=Ai(Hi.prototype,{constructor:_i(1,Ui),message:_i(1,""),name:_i(1,"AggregateError")});Ci({global:!0,constructor:!0,arity:2},{AggregateError:Ui});var Gi,Vi,Wi,Yi=je,Xi=de.WeakMap,qi=Yi(Xi)&&/native code/.test(String(Xi)),Ki=de,$i=ut,Ji=Tr,Qi=an,Zi=Qt,ec=Ur,tc=To,nc="Object already initialized",rc=Ki.TypeError,oc=Ki.WeakMap;if(qi||Zi.state){var ac=Zi.state||(Zi.state=new oc);ac.get=ac.get,ac.has=ac.has,ac.set=ac.set,Gi=function(e,t){if(ac.has(e))throw rc(nc);return t.facade=e,ac.set(e,t),t},Vi=function(e){return ac.get(e)||{}},Wi=function(e){return ac.has(e)}}else{var ic=ec("state");tc[ic]=!0,Gi=function(e,t){if(Qi(e,ic))throw rc(nc);return t.facade=e,Ji(e,ic,t),t},Vi=function(e){return Qi(e,ic)?e[ic]:{}},Wi=function(e){return Qi(e,ic)}}var cc,uc,lc,sc={set:Gi,get:Vi,has:Wi,enforce:function(e){return Wi(e)?Vi(e):Gi(e,{})},getterFor:function(e){return function(t){var n;if(!$i(t)||(n=Vi(t)).type!==e)throw rc("Incompatible receiver, "+e+" required");return n}}},fc=De,dc=an,mc=Function.prototype,pc=fc&&Object.getOwnPropertyDescriptor,vc=dc(mc,"name"),hc={EXISTS:vc,PROPER:vc&&"something"===function(){}.name,CONFIGURABLE:vc&&(!fc||fc&&pc(mc,"name").configurable)},gc=Tr,yc=function(e,t,n,r){return r&&r.enumerable?e[t]=n:gc(e,t,n),e},bc=me,Ec=je,wc=ut,Nc=ga,Sc=$r,xc=yc,Tc=wn("iterator"),Cc=!1;[].keys&&("next"in(lc=[].keys())?(uc=Sc(Sc(lc)))!==Object.prototype&&(cc=uc):Cc=!0);var Oc=!wc(cc)||bc((function(){var e={};return cc[Tc].call(e)!==e}));Ec((cc=Oc?{}:Nc(cc))[Tc])||xc(cc,Tc,(function(){return this}));var Rc={IteratorPrototype:cc,BUGGY_SAFARI_ITERATORS:Cc},kc=Va,Ic=Da?{}.toString:function(){return"[object "+kc(this)+"]"},Ac=Da,Mc=ir.f,_c=Tr,Lc=an,jc=Ic,Pc=wn("toStringTag"),Dc=function(e,t,n,r){if(e){var o=n?e:e.prototype;Lc(o,Pc)||Mc(o,Pc,{configurable:!0,value:t}),r&&!Ac&&_c(o,"toString",jc)}},Fc=Rc.IteratorPrototype,Hc=ga,Bc=Xe,Uc=Dc,zc=Aa,Gc=function(){return this},Vc=Dr,Wc=Be,Yc=hc,Xc=function(e,t,n,r){var o=t+" Iterator";return e.prototype=Hc(Fc,{next:Bc(+!r,n)}),Uc(e,o,!1,!0),zc[o]=Gc,e},qc=$r,Kc=Dc,$c=yc,Jc=Aa,Qc=Rc,Zc=Yc.PROPER,eu=Qc.BUGGY_SAFARI_ITERATORS,tu=wn("iterator"),nu="keys",ru="values",ou="entries",au=function(){return this},iu=function(e,t,n,r,o,a,i){Xc(n,t,r);var c,u,l,s=function(e){if(e===o&&v)return v;if(!eu&&e in m)return m[e];switch(e){case nu:case ru:case ou:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,m=e.prototype,p=m[tu]||m["@@iterator"]||o&&m[o],v=!eu&&p||s(o),h="Array"==t&&m.entries||p;if(h&&(c=qc(h.call(new e)))!==Object.prototype&&c.next&&(Kc(c,f,!0,!0),Jc[f]=au),Zc&&o==ru&&p&&p.name!==ru&&(d=!0,v=function(){return Wc(p,this)}),o)if(u={values:s(ru),keys:a?v:s(nu),entries:s(ou)},i)for(l in u)(eu||d||!(l in m))&&$c(m,l,u[l]);else Vc({target:t,proto:!0,forced:eu||d},u);return i&&m[tu]!==v&&$c(m,tu,v,{name:o}),Jc[t]=v,u},cu=function(e,t){return{value:e,done:t}},uu=at,lu=function(){},su=Aa,fu=sc,du=(ir.f,iu),mu=cu,pu="Array Iterator",vu=fu.set,hu=fu.getterFor(pu);du(Array,"Array",(function(e,t){vu(this,{type:pu,target:uu(e),index:0,kind:t})}),(function(){var e=hu(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,mu(void 0,!0)):mu("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");su.Arguments=su.Array;lu(),lu(),lu();var gu="undefined"!=typeof process&&"process"==Re(process),yu=ir,bu=function(e,t,n){return yu.f(e,t,n)},Eu=pt,wu=bu,Nu=De,Su=wn("species"),xu=vt,Tu=TypeError,Cu=je,Ou=Qt,Ru=xe(Function.toString);Cu(Ou.inspectSource)||(Ou.inspectSource=function(e){return Ru(e)});var ku=Ou.inspectSource,Iu=xe,Au=me,Mu=je,_u=Va,Lu=ku,ju=function(){},Pu=[],Du=pt("Reflect","construct"),Fu=/^\s*(?:class|function)\b/,Hu=Iu(Fu.exec),Bu=!Fu.exec(ju),Uu=function(e){if(!Mu(e))return!1;try{return Du(ju,Pu,e),!0}catch(e){return!1}},zu=function(e){if(!Mu(e))return!1;switch(_u(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Bu||!!Hu(Fu,Lu(e))}catch(e){return!0}};zu.sham=!0;var Gu,Vu,Wu,Yu,Xu=!Du||Au((function(){var e;return Uu(Uu.call)||!Uu(Object)||!Uu((function(){e=!0}))||e}))?zu:Uu,qu=Xu,Ku=jt,$u=TypeError,Ju=function(e){if(qu(e))return e;throw $u(Ku(e)+" is not a constructor")},Qu=fr,Zu=Ju,el=Ze,tl=wn("species"),nl=function(e,t){var n,r=Qu(e).constructor;return void 0===r||el(n=Qu(r)[tl])?t:Zu(n)},rl=xe([].slice),ol=TypeError,al=/(?:ipad|iphone|ipod).*applewebkit/i.test(ht),il=de,cl=be,ul=ar,ll=je,sl=an,fl=me,dl=ra,ml=rl,pl=jn,vl=function(e,t){if(e<t)throw ol("Not enough arguments");return e},hl=al,gl=gu,yl=il.setImmediate,bl=il.clearImmediate,El=il.process,wl=il.Dispatch,Nl=il.Function,Sl=il.MessageChannel,xl=il.String,Tl=0,Cl={},Ol="onreadystatechange";fl((function(){Gu=il.location}));var Rl=function(e){if(sl(Cl,e)){var t=Cl[e];delete Cl[e],t()}},kl=function(e){return function(){Rl(e)}},Il=function(e){Rl(e.data)},Al=function(e){il.postMessage(xl(e),Gu.protocol+"//"+Gu.host)};yl&&bl||(yl=function(e){vl(arguments.length,1);var t=ll(e)?e:Nl(e),n=ml(arguments,1);return Cl[++Tl]=function(){cl(t,void 0,n)},Vu(Tl),Tl},bl=function(e){delete Cl[e]},gl?Vu=function(e){El.nextTick(kl(e))}:wl&&wl.now?Vu=function(e){wl.now(kl(e))}:Sl&&!hl?(Yu=(Wu=new Sl).port2,Wu.port1.onmessage=Il,Vu=ul(Yu.postMessage,Yu)):il.addEventListener&&ll(il.postMessage)&&!il.importScripts&&Gu&&"file:"!==Gu.protocol&&!fl(Al)?(Vu=Al,il.addEventListener("message",Il,!1)):Vu=Ol in pl("script")?function(e){dl.appendChild(pl("script"))[Ol]=function(){dl.removeChild(this),R